@clawnify/agent-control-ui 0.0.1

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.
@@ -0,0 +1,307 @@
1
+ var Rw=Object.defineProperty;var _w=(t,l,r)=>l in t?Rw(t,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[l]=r;var $t=(t,l,r)=>_w(t,typeof l!="symbol"?l+"":l,r);function Dw(t,l){for(var r=0;r<l.length;r++){const a=l[r];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in t)){const s=Object.getOwnPropertyDescriptor(a,u);s&&Object.defineProperty(t,u,s.get?s:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(u){if(u.ep)return;u.ep=!0;const s=r(u);fetch(u.href,s)}})();function Nu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ff={exports:{}},ya={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var sy;function Mw(){if(sy)return ya;sy=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(a,u,s){var c=null;if(s!==void 0&&(c=""+s),u.key!==void 0&&(c=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:t,type:a,key:c,ref:u!==void 0?u:null,props:s}}return ya.Fragment=l,ya.jsx=r,ya.jsxs=r,ya}var cy;function jw(){return cy||(cy=1,ff.exports=Mw()),ff.exports}var S=jw(),df={exports:{}},ke={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var fy;function Lw(){if(fy)return ke;fy=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,N={};function T(_,X,w){this.props=_,this.context=X,this.refs=N,this.updater=w||E}T.prototype.isReactComponent={},T.prototype.setState=function(_,X){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,X,"setState")},T.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function z(){}z.prototype=T.prototype;function D(_,X,w){this.props=_,this.context=X,this.refs=N,this.updater=w||E}var L=D.prototype=new z;L.constructor=D,A(L,T.prototype),L.isPureReactComponent=!0;var I=Array.isArray;function M(){}var F={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ue(_,X,w){var J=w.ref;return{$$typeof:t,type:_,key:X,ref:J!==void 0?J:null,props:w}}function H(_,X){return ue(_.type,X,_.props)}function ie(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function le(_){var X={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(w){return X[w]})}var he=/\/+/g;function ae(_,X){return typeof _=="object"&&_!==null&&_.key!=null?le(""+_.key):X.toString(36)}function ne(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(M,M):(_.status="pending",_.then(function(X){_.status==="pending"&&(_.status="fulfilled",_.value=X)},function(X){_.status==="pending"&&(_.status="rejected",_.reason=X)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function U(_,X,w,J,te){var W=typeof _;(W==="undefined"||W==="boolean")&&(_=null);var se=!1;if(_===null)se=!0;else switch(W){case"bigint":case"string":case"number":se=!0;break;case"object":switch(_.$$typeof){case t:case l:se=!0;break;case y:return se=_._init,U(se(_._payload),X,w,J,te)}}if(se)return te=te(_),se=J===""?"."+ae(_,0):J,I(te)?(w="",se!=null&&(w=se.replace(he,"$&/")+"/"),U(te,X,w,"",function(Ye){return Ye})):te!=null&&(ie(te)&&(te=H(te,w+(te.key==null||_&&_.key===te.key?"":(""+te.key).replace(he,"$&/")+"/")+se)),X.push(te)),1;se=0;var ve=J===""?".":J+":";if(I(_))for(var fe=0;fe<_.length;fe++)J=_[fe],W=ve+ae(J,fe),se+=U(J,X,w,W,te);else if(fe=x(_),typeof fe=="function")for(_=fe.call(_),fe=0;!(J=_.next()).done;)J=J.value,W=ve+ae(J,fe++),se+=U(J,X,w,W,te);else if(W==="object"){if(typeof _.then=="function")return U(ne(_),X,w,J,te);throw X=String(_),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return se}function Z(_,X,w){if(_==null)return _;var J=[],te=0;return U(_,J,"","",function(W){return X.call(w,W,te++)}),J}function re(_){if(_._status===-1){var X=_._result;X=X(),X.then(function(w){(_._status===0||_._status===-1)&&(_._status=1,_._result=w)},function(w){(_._status===0||_._status===-1)&&(_._status=2,_._result=w)}),_._status===-1&&(_._status=0,_._result=X)}if(_._status===1)return _._result.default;throw _._result}var ge=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},O={map:Z,forEach:function(_,X,w){Z(_,function(){X.apply(this,arguments)},w)},count:function(_){var X=0;return Z(_,function(){X++}),X},toArray:function(_){return Z(_,function(X){return X})||[]},only:function(_){if(!ie(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ke.Activity=g,ke.Children=O,ke.Component=T,ke.Fragment=r,ke.Profiler=u,ke.PureComponent=D,ke.StrictMode=a,ke.Suspense=p,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ke.__COMPILER_RUNTIME={__proto__:null,c:function(_){return F.H.useMemoCache(_)}},ke.cache=function(_){return function(){return _.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(_,X,w){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=A({},_.props),te=_.key;if(X!=null)for(W in X.key!==void 0&&(te=""+X.key),X)!V.call(X,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&X.ref===void 0||(J[W]=X[W]);var W=arguments.length-2;if(W===1)J.children=w;else if(1<W){for(var se=Array(W),ve=0;ve<W;ve++)se[ve]=arguments[ve+2];J.children=se}return ue(_.type,te,J)},ke.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:s,_context:_},_},ke.createElement=function(_,X,w){var J,te={},W=null;if(X!=null)for(J in X.key!==void 0&&(W=""+X.key),X)V.call(X,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=X[J]);var se=arguments.length-2;if(se===1)te.children=w;else if(1<se){for(var ve=Array(se),fe=0;fe<se;fe++)ve[fe]=arguments[fe+2];te.children=ve}if(_&&_.defaultProps)for(J in se=_.defaultProps,se)te[J]===void 0&&(te[J]=se[J]);return ue(_,W,te)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(_){return{$$typeof:d,render:_}},ke.isValidElement=ie,ke.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:re}},ke.memo=function(_,X){return{$$typeof:m,type:_,compare:X===void 0?null:X}},ke.startTransition=function(_){var X=F.T,w={};F.T=w;try{var J=_(),te=F.S;te!==null&&te(w,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(M,ge)}catch(W){ge(W)}finally{X!==null&&w.types!==null&&(X.types=w.types),F.T=X}},ke.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ke.use=function(_){return F.H.use(_)},ke.useActionState=function(_,X,w){return F.H.useActionState(_,X,w)},ke.useCallback=function(_,X){return F.H.useCallback(_,X)},ke.useContext=function(_){return F.H.useContext(_)},ke.useDebugValue=function(){},ke.useDeferredValue=function(_,X){return F.H.useDeferredValue(_,X)},ke.useEffect=function(_,X){return F.H.useEffect(_,X)},ke.useEffectEvent=function(_){return F.H.useEffectEvent(_)},ke.useId=function(){return F.H.useId()},ke.useImperativeHandle=function(_,X,w){return F.H.useImperativeHandle(_,X,w)},ke.useInsertionEffect=function(_,X){return F.H.useInsertionEffect(_,X)},ke.useLayoutEffect=function(_,X){return F.H.useLayoutEffect(_,X)},ke.useMemo=function(_,X){return F.H.useMemo(_,X)},ke.useOptimistic=function(_,X){return F.H.useOptimistic(_,X)},ke.useReducer=function(_,X,w){return F.H.useReducer(_,X,w)},ke.useRef=function(_){return F.H.useRef(_)},ke.useState=function(_){return F.H.useState(_)},ke.useSyncExternalStore=function(_,X,w){return F.H.useSyncExternalStore(_,X,w)},ke.useTransition=function(){return F.H.useTransition()},ke.version="19.2.6",ke}var dy;function bd(){return dy||(dy=1,df.exports=Lw()),df.exports}var C=bd();const Uw=Nu(C),nb=Dw({__proto__:null,default:Uw},[C]);var hf={exports:{}},xa={},mf={exports:{}},pf={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var hy;function Bw(){return hy||(hy=1,(function(t){function l(U,Z){var re=U.length;U.push(Z);e:for(;0<re;){var ge=re-1>>>1,O=U[ge];if(0<u(O,Z))U[ge]=Z,U[re]=O,re=ge;else break e}}function r(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var Z=U[0],re=U.pop();if(re!==Z){U[0]=re;e:for(var ge=0,O=U.length,_=O>>>1;ge<_;){var X=2*(ge+1)-1,w=U[X],J=X+1,te=U[J];if(0>u(w,re))J<O&&0>u(te,w)?(U[ge]=te,U[J]=re,ge=J):(U[ge]=w,U[X]=re,ge=X);else if(J<O&&0>u(te,re))U[ge]=te,U[J]=re,ge=J;else break e}}return Z}function u(U,Z){var re=U.sortIndex-Z.sortIndex;return re!==0?re:U.id-Z.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var p=[],m=[],y=1,g=null,v=3,x=!1,E=!1,A=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function L(U){for(var Z=r(m);Z!==null;){if(Z.callback===null)a(m);else if(Z.startTime<=U)a(m),Z.sortIndex=Z.expirationTime,l(p,Z);else break;Z=r(m)}}function I(U){if(A=!1,L(U),!E)if(r(p)!==null)E=!0,M||(M=!0,le());else{var Z=r(m);Z!==null&&ne(I,Z.startTime-U)}}var M=!1,F=-1,V=5,ue=-1;function H(){return N?!0:!(t.unstable_now()-ue<V)}function ie(){if(N=!1,M){var U=t.unstable_now();ue=U;var Z=!0;try{e:{E=!1,A&&(A=!1,z(F),F=-1),x=!0;var re=v;try{t:{for(L(U),g=r(p);g!==null&&!(g.expirationTime>U&&H());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,v=g.priorityLevel;var O=ge(g.expirationTime<=U);if(U=t.unstable_now(),typeof O=="function"){g.callback=O,L(U),Z=!0;break t}g===r(p)&&a(p),L(U)}else a(p);g=r(p)}if(g!==null)Z=!0;else{var _=r(m);_!==null&&ne(I,_.startTime-U),Z=!1}}break e}finally{g=null,v=re,x=!1}Z=void 0}}finally{Z?le():M=!1}}}var le;if(typeof D=="function")le=function(){D(ie)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,ae=he.port2;he.port1.onmessage=ie,le=function(){ae.postMessage(null)}}else le=function(){T(ie,0)};function ne(U,Z){F=T(function(){U(t.unstable_now())},Z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(U){switch(v){case 1:case 2:case 3:var Z=3;break;default:Z=v}var re=v;v=Z;try{return U()}finally{v=re}},t.unstable_requestPaint=function(){N=!0},t.unstable_runWithPriority=function(U,Z){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var re=v;v=U;try{return Z()}finally{v=re}},t.unstable_scheduleCallback=function(U,Z,re){var ge=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ge+re:ge):re=ge,U){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=re+O,U={id:y++,callback:Z,priorityLevel:U,startTime:re,expirationTime:O,sortIndex:-1},re>ge?(U.sortIndex=re,l(m,U),r(p)===null&&U===r(m)&&(A?(z(F),F=-1):A=!0,ne(I,re-ge))):(U.sortIndex=O,l(p,U),E||x||(E=!0,M||(M=!0,le()))),U},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(U){var Z=v;return function(){var re=v;v=Z;try{return U.apply(this,arguments)}finally{v=re}}}})(pf)),pf}var my;function Hw(){return my||(my=1,mf.exports=Bw()),mf.exports}var gf={exports:{}},kt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var py;function qw(){if(py)return kt;py=1;var t=bd();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,kt.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return s(p,m,null,y)},kt.flushSync=function(p){var m=c.T,y=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=m,a.p=y,a.d.f()}},kt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(p,m))},kt.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},kt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,x=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?a.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:x}):y==="script"&&a.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:x,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},kt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);a.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(p)},kt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);a.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},kt.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);a.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(p)},kt.requestFormReset=function(p){a.d.r(p)},kt.unstable_batchedUpdates=function(p,m){return p(m)},kt.useFormState=function(p,m,y){return c.H.useFormState(p,m,y)},kt.useFormStatus=function(){return c.H.useHostTransitionStatus()},kt.version="19.2.6",kt}var gy;function lb(){if(gy)return gf.exports;gy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),gf.exports=qw(),gf.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var yy;function Yw(){if(yy)return xa;yy=1;var t=Hw(),l=bd(),r=lb();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(s(e)!==e)throw Error(a(188))}function m(e){var n=e.alternate;if(!n){if(n=s(e),n===null)throw Error(a(188));return n!==e?null:e}for(var i=e,o=n;;){var f=i.return;if(f===null)break;var h=f.alternate;if(h===null){if(o=f.return,o!==null){i=o;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===i)return p(f),e;if(h===o)return p(f),n;h=h.sibling}throw Error(a(188))}if(i.return!==o.return)i=f,o=h;else{for(var b=!1,k=f.child;k;){if(k===i){b=!0,i=f,o=h;break}if(k===o){b=!0,o=f,i=h;break}k=k.sibling}if(!b){for(k=h.child;k;){if(k===i){b=!0,i=h,o=f;break}if(k===o){b=!0,o=h,i=f;break}k=k.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),D=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case T:return"Profiler";case N:return"StrictMode";case I:return"Suspense";case M:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case D:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case L:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return n=e.displayName||null,n!==null?n:ae(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return ae(e(n))}catch{}}return null}var ne=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ge=[],O=-1;function _(e){return{current:e}}function X(e){0>O||(e.current=ge[O],ge[O]=null,O--)}function w(e,n){O++,ge[O]=e.current,e.current=n}var J=_(null),te=_(null),W=_(null),se=_(null);function ve(e,n){switch(w(W,n),w(te,e),w(J,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?_g(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=_g(n),e=Dg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(J),w(J,e)}function fe(){X(J),X(te),X(W)}function Ye(e){e.memoizedState!==null&&w(se,e);var n=J.current,i=Dg(n,e.type);n!==i&&(w(te,e),w(J,i))}function ct(e){te.current===e&&(X(J),X(te)),se.current===e&&(X(se),ha._currentValue=re)}var Vt,Rt;function yt(e){if(Vt===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);Vt=n&&n[1]||"",Rt=-1<i.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Vt+e+Rt}var il=!1;function al(e,n){if(!e||il)return"";il=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(P){var G=P}Reflect.construct(e,[],ee)}else{try{ee.call()}catch(P){G=P}e.call(ee.prototype)}}else{try{throw Error()}catch(P){G=P}(ee=e())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(P){if(P&&G&&typeof P.stack=="string")return[P.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),b=h[0],k=h[1];if(b&&k){var R=b.split(`
44
+ `),Y=k.split(`
45
+ `);for(f=o=0;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;for(;f<Y.length&&!Y[f].includes("DetermineComponentFrameRoot");)f++;if(o===R.length||f===Y.length)for(o=R.length-1,f=Y.length-1;1<=o&&0<=f&&R[o]!==Y[f];)f--;for(;1<=o&&0<=f;o--,f--)if(R[o]!==Y[f]){if(o!==1||f!==1)do if(o--,f--,0>f||R[o]!==Y[f]){var Q=`
46
+ `+R[o].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=o&&0<=f);break}}}finally{il=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?yt(i):""}function vr(e,n){switch(e.tag){case 26:case 27:case 5:return yt(e.type);case 16:return yt("Lazy");case 13:return e.child!==n&&n!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return al(e.type,!1);case 11:return al(e.type.render,!1);case 1:return al(e.type,!0);case 31:return yt("Activity");default:return""}}function Sr(e){try{var n="",i=null;do n+=vr(e,i),i=e,e=e.return;while(e);return n}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}var pn=Object.prototype.hasOwnProperty,wr=t.unstable_scheduleCallback,Ci=t.unstable_cancelCallback,Zu=t.unstable_shouldYield,Ku=t.unstable_requestPaint,Tt=t.unstable_now,$u=t.unstable_getCurrentPriorityLevel,K=t.unstable_ImmediatePriority,ce=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,He=t.unstable_IdlePriority,Gt=t.log,jn=t.unstable_setDisableYieldValue,Ot=null,ft=null;function _t(e){if(typeof Gt=="function"&&jn(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Ot,e)}catch{}}var Xe=Math.clz32?Math.clz32:y0,ol=Math.log,gn=Math.LN2;function y0(e){return e>>>=0,e===0?32:31-(ol(e)/gn|0)|0}var Ua=256,Ba=262144,Ha=4194304;function Il(e){var n=e&42;if(n!==0)return n;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&261888;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 qa(e,n,i){var o=e.pendingLanes;if(o===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var k=o&134217727;return k!==0?(o=k&~h,o!==0?f=Il(o):(b&=k,b!==0?f=Il(b):i||(i=k&~e,i!==0&&(f=Il(i))))):(k=o&~h,k!==0?f=Il(k):b!==0?f=Il(b):i||(i=o&~e,i!==0&&(f=Il(i)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,i=n&-n,h>=i||h===32&&(i&4194048)!==0)?n:f}function Ai(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function x0(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 hh(){var e=Ha;return Ha<<=1,(Ha&62914560)===0&&(Ha=4194304),e}function Ju(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Ti(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function b0(e,n,i,o,f,h){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var k=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(i=b&~i;0<i;){var Q=31-Xe(i),ee=1<<Q;k[Q]=0,R[Q]=-1;var G=Y[Q];if(G!==null)for(Y[Q]=null,Q=0;Q<G.length;Q++){var P=G[Q];P!==null&&(P.lane&=-536870913)}i&=~ee}o!==0&&mh(e,o,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function mh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Xe(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|i&261930}function ph(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var o=31-Xe(i),f=1<<o;f&n|e[o]&n&&(e[o]|=n),i&=~f}}function gh(e,n){var i=n&-n;return i=(i&42)!==0?1:Wu(i),(i&(e.suspendedLanes|n))!==0?0:i}function Wu(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 es(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function yh(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:ny(e.type))}function xh(e,n){var i=Z.p;try{return Z.p=e,n()}finally{Z.p=i}}var ul=Math.random().toString(36).slice(2),xt="__reactFiber$"+ul,Dt="__reactProps$"+ul,kr="__reactContainer$"+ul,ts="__reactEvents$"+ul,v0="__reactListeners$"+ul,S0="__reactHandles$"+ul,bh="__reactResources$"+ul,Oi="__reactMarker$"+ul;function ns(e){delete e[xt],delete e[Dt],delete e[ts],delete e[v0],delete e[S0]}function Er(e){var n=e[xt];if(n)return n;for(var i=e.parentNode;i;){if(n=i[kr]||i[xt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=qg(e);e!==null;){if(i=e[xt])return i;e=qg(e)}return n}e=i,i=e.parentNode}return null}function Cr(e){if(e=e[xt]||e[kr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ni(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function Ar(e){var n=e[bh];return n||(n=e[bh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[Oi]=!0}var vh=new Set,Sh={};function Pl(e,n){Tr(e,n),Tr(e+"Capture",n)}function Tr(e,n){for(Sh[e]=n,e=0;e<n.length;e++)vh.add(n[e])}var w0=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]*$"),wh={},kh={};function k0(e){return pn.call(kh,e)?!0:pn.call(wh,e)?!1:w0.test(e)?kh[e]=!0:(wh[e]=!0,!1)}function Ya(e,n,i){if(k0(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Va(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Ln(e,n,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+o)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function E0(e,n,i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){i=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(b){i=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ls(e){if(!e._valueTracker){var n=Eh(e)?"checked":"value";e._valueTracker=E0(e,n,""+e[n])}}function Ch(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return e&&(o=Eh(e)?e.checked?"true":"false":e.value),e=o,e!==i?(n.setValue(e),!0):!1}function Ga(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}}var C0=/[\n"\\]/g;function rn(e){return e.replace(C0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function rs(e,n,i,o,f,h,b,k){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+ln(n)):e.value!==""+ln(n)&&(e.value=""+ln(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?is(e,b,ln(n)):i!=null?is(e,b,ln(i)):o!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?e.name=""+ln(k):e.removeAttribute("name")}function Ah(e,n,i,o,f,h,b,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||i!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){ls(e);return}i=i!=null?""+ln(i):"",n=n!=null?""+ln(n):i,k||n===e.value||(e.value=n),e.defaultValue=n}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=k?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),ls(e)}function is(e,n,i){n==="number"&&Ga(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Or(e,n,i,o){if(e=e.options,n){n={};for(var f=0;f<i.length;f++)n["$"+i[f]]=!0;for(i=0;i<e.length;i++)f=n.hasOwnProperty("$"+e[i].value),e[i].selected!==f&&(e[i].selected=f),f&&o&&(e[i].defaultSelected=!0)}else{for(i=""+ln(i),n=null,f=0;f<e.length;f++){if(e[f].value===i){e[f].selected=!0,o&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Th(e,n,i){if(n!=null&&(n=""+ln(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+ln(i):""}function Oh(e,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(ne(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=ln(n),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o),ls(e)}function Nr(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var A0=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 Nh(e,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,i):typeof i!="number"||i===0||A0.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function zh(e,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var f in n)o=n[f],n.hasOwnProperty(f)&&i[f]!==o&&Nh(e,f,o)}else for(var h in n)n.hasOwnProperty(h)&&Nh(e,h,n[h])}function as(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 T0=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"],["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"]]),O0=/^[\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 Fa(e){return O0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Un(){}var os=null;function us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zr=null,Rr=null;function Rh(e){var n=Cr(e);if(n&&(e=n.stateNode)){var i=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(rs(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+rn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==e&&o.form===e.form){var f=o[Dt]||null;if(!f)throw Error(a(90));rs(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===e.form&&Ch(o)}break e;case"textarea":Th(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&Or(e,!!i.multiple,n,!1)}}}var ss=!1;function _h(e,n,i){if(ss)return e(n,i);ss=!0;try{var o=e(n);return o}finally{if(ss=!1,(zr!==null||Rr!==null)&&(_o(),zr&&(n=zr,e=Rr,Rr=zr=null,Rh(n),e)))for(n=0;n<e.length;n++)Rh(e[n])}}function zi(e,n){var i=e.stateNode;if(i===null)return null;var o=i[Dt]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cs=!1;if(Bn)try{var Ri={};Object.defineProperty(Ri,"passive",{get:function(){cs=!0}}),window.addEventListener("test",Ri,Ri),window.removeEventListener("test",Ri,Ri)}catch{cs=!1}var sl=null,fs=null,Ia=null;function Dh(){if(Ia)return Ia;var e,n=fs,i=n.length,o,f="value"in sl?sl.value:sl.textContent,h=f.length;for(e=0;e<i&&n[e]===f[e];e++);var b=i-e;for(o=1;o<=b&&n[i-o]===f[h-o];o++);return Ia=f.slice(e,1<o?1-o:void 0)}function Pa(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Xa(){return!0}function Mh(){return!1}function Mt(e){function n(i,o,f,h,b){this._reactName=i,this._targetInst=f,this.type=o,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var k in e)e.hasOwnProperty(k)&&(i=e[k],this[k]=i?i(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Xa:Mh,this.isPropagationStopped=Mh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Xa)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Xa)},persist:function(){},isPersistent:Xa}),n}var Xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qa=Mt(Xl),_i=g({},Xl,{view:0,detail:0}),N0=Mt(_i),ds,hs,Di,Za=g({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ps,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!==Di&&(Di&&e.type==="mousemove"?(ds=e.screenX-Di.screenX,hs=e.screenY-Di.screenY):hs=ds=0,Di=e),ds)},movementY:function(e){return"movementY"in e?e.movementY:hs}}),jh=Mt(Za),z0=g({},Za,{dataTransfer:0}),R0=Mt(z0),_0=g({},_i,{relatedTarget:0}),ms=Mt(_0),D0=g({},Xl,{animationName:0,elapsedTime:0,pseudoElement:0}),M0=Mt(D0),j0=g({},Xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),L0=Mt(j0),U0=g({},Xl,{data:0}),Lh=Mt(U0),B0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H0={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"},q0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y0(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=q0[e])?!!n[e]:!1}function ps(){return Y0}var V0=g({},_i,{key:function(e){if(e.key){var n=B0[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Pa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ps,charCode:function(e){return e.type==="keypress"?Pa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),G0=Mt(V0),F0=g({},Za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=Mt(F0),I0=g({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ps}),P0=Mt(I0),X0=g({},Xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q0=Mt(X0),Z0=g({},Za,{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}),K0=Mt(Z0),$0=g({},Xl,{newState:0,oldState:0}),J0=Mt($0),W0=[9,13,27,32],gs=Bn&&"CompositionEvent"in window,Mi=null;Bn&&"documentMode"in document&&(Mi=document.documentMode);var eS=Bn&&"TextEvent"in window&&!Mi,Bh=Bn&&(!gs||Mi&&8<Mi&&11>=Mi),Hh=" ",qh=!1;function Yh(e,n){switch(e){case"keyup":return W0.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _r=!1;function tS(e,n){switch(e){case"compositionend":return Vh(n);case"keypress":return n.which!==32?null:(qh=!0,Hh);case"textInput":return e=n.data,e===Hh&&qh?null:e;default:return null}}function nS(e,n){if(_r)return e==="compositionend"||!gs&&Yh(e,n)?(e=Dh(),Ia=fs=sl=null,_r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Bh&&n.locale!=="ko"?null:n.data;default:return null}}var lS={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 Gh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!lS[e.type]:n==="textarea"}function Fh(e,n,i,o){zr?Rr?Rr.push(o):Rr=[o]:zr=o,n=Ho(n,"onChange"),0<n.length&&(i=new Qa("onChange","change",null,i,o),e.push({event:i,listeners:n}))}var ji=null,Li=null;function rS(e){Ag(e,0)}function Ka(e){var n=Ni(e);if(Ch(n))return e}function Ih(e,n){if(e==="change")return n}var Ph=!1;if(Bn){var ys;if(Bn){var xs="oninput"in document;if(!xs){var Xh=document.createElement("div");Xh.setAttribute("oninput","return;"),xs=typeof Xh.oninput=="function"}ys=xs}else ys=!1;Ph=ys&&(!document.documentMode||9<document.documentMode)}function Qh(){ji&&(ji.detachEvent("onpropertychange",Zh),Li=ji=null)}function Zh(e){if(e.propertyName==="value"&&Ka(Li)){var n=[];Fh(n,Li,e,us(e)),_h(rS,n)}}function iS(e,n,i){e==="focusin"?(Qh(),ji=n,Li=i,ji.attachEvent("onpropertychange",Zh)):e==="focusout"&&Qh()}function aS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ka(Li)}function oS(e,n){if(e==="click")return Ka(n)}function uS(e,n){if(e==="input"||e==="change")return Ka(n)}function sS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ft=typeof Object.is=="function"?Object.is:sS;function Ui(e,n){if(Ft(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var f=i[o];if(!pn.call(n,f)||!Ft(e[f],n[f]))return!1}return!0}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $h(e,n){var i=Kh(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=n&&o>=n)return{node:i,offset:n-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Kh(i)}}function Jh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Wh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ga(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Ga(e.document)}return n}function bs(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var cS=Bn&&"documentMode"in document&&11>=document.documentMode,Dr=null,vs=null,Bi=null,Ss=!1;function em(e,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ss||Dr==null||Dr!==Ga(o)||(o=Dr,"selectionStart"in o&&bs(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Bi&&Ui(Bi,o)||(Bi=o,o=Ho(vs,"onSelect"),0<o.length&&(n=new Qa("onSelect","select",null,n,i),e.push({event:n,listeners:o}),n.target=Dr)))}function Ql(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Mr={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},ws={},tm={};Bn&&(tm=document.createElement("div").style,"AnimationEvent"in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),"TransitionEvent"in window||delete Mr.transitionend.transition);function Zl(e){if(ws[e])return ws[e];if(!Mr[e])return e;var n=Mr[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in tm)return ws[e]=n[i];return e}var nm=Zl("animationend"),lm=Zl("animationiteration"),rm=Zl("animationstart"),fS=Zl("transitionrun"),dS=Zl("transitionstart"),hS=Zl("transitioncancel"),im=Zl("transitionend"),am=new Map,ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ks.push("scrollEnd");function yn(e,n){am.set(e,n),Pl(n,[e])}var $a=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],jr=0,Es=0;function Ja(){for(var e=jr,n=Es=jr=0;n<e;){var i=an[n];an[n++]=null;var o=an[n];an[n++]=null;var f=an[n];an[n++]=null;var h=an[n];if(an[n++]=null,o!==null&&f!==null){var b=o.pending;b===null?f.next=f:(f.next=b.next,b.next=f),o.pending=f}h!==0&&om(i,f,h)}}function Wa(e,n,i,o){an[jr++]=e,an[jr++]=n,an[jr++]=i,an[jr++]=o,Es|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Cs(e,n,i,o){return Wa(e,n,i,o),eo(e)}function Kl(e,n){return Wa(e,null,null,n),eo(e)}function om(e,n,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var f=!1,h=e.return;h!==null;)h.childLanes|=i,o=h.alternate,o!==null&&(o.childLanes|=i),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Xe(i),e=h.hiddenUpdates,o=e[f],o===null?e[f]=[n]:o.push(n),n.lane=i|536870912),h):null}function eo(e){if(50<aa)throw aa=0,Mc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Lr={};function mS(e,n,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,n,i,o){return new mS(e,n,i,o)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hn(e,n){var i=e.alternate;return i===null?(i=It(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function um(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function to(e,n,i,o,f,h){var b=0;if(o=e,typeof e=="function")As(e)&&(b=1);else if(typeof e=="string")b=bw(e,i,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=It(31,i,n,f),e.elementType=ue,e.lanes=h,e;case A:return $l(i.children,f,h,n);case N:b=8,f|=24;break;case T:return e=It(12,i,n,f|2),e.elementType=T,e.lanes=h,e;case I:return e=It(13,i,n,f),e.elementType=I,e.lanes=h,e;case M:return e=It(19,i,n,f),e.elementType=M,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:b=10;break e;case z:b=9;break e;case L:b=11;break e;case F:b=14;break e;case V:b=16,o=null;break e}b=29,i=Error(a(130,e===null?"null":typeof e,"")),o=null}return n=It(b,i,n,f),n.elementType=e,n.type=o,n.lanes=h,n}function $l(e,n,i,o){return e=It(7,e,o,n),e.lanes=i,e}function Ts(e,n,i){return e=It(6,e,null,n),e.lanes=i,e}function sm(e){var n=It(18,null,null,0);return n.stateNode=e,n}function Os(e,n,i){return n=It(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var cm=new WeakMap;function on(e,n){if(typeof e=="object"&&e!==null){var i=cm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:Sr(n)},cm.set(e,n),n)}return{value:e,source:n,stack:Sr(n)}}var Ur=[],Br=0,no=null,Hi=0,un=[],sn=0,cl=null,En=1,Cn="";function qn(e,n){Ur[Br++]=Hi,Ur[Br++]=no,no=e,Hi=n}function fm(e,n,i){un[sn++]=En,un[sn++]=Cn,un[sn++]=cl,cl=e;var o=En;e=Cn;var f=32-Xe(o)-1;o&=~(1<<f),i+=1;var h=32-Xe(n)+f;if(30<h){var b=f-f%5;h=(o&(1<<b)-1).toString(32),o>>=b,f-=b,En=1<<32-Xe(n)+f|i<<f|o,Cn=h+e}else En=1<<h|i<<f|o,Cn=e}function Ns(e){e.return!==null&&(qn(e,1),fm(e,1,0))}function zs(e){for(;e===no;)no=Ur[--Br],Ur[Br]=null,Hi=Ur[--Br],Ur[Br]=null;for(;e===cl;)cl=un[--sn],un[sn]=null,Cn=un[--sn],un[sn]=null,En=un[--sn],un[sn]=null}function dm(e,n){un[sn++]=En,un[sn++]=Cn,un[sn++]=cl,En=n.id,Cn=n.overflow,cl=e}var bt=null,Je=null,Me=!1,fl=null,cn=!1,Rs=Error(a(519));function dl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qi(on(n,e)),Rs}function hm(e){var n=e.stateNode,i=e.type,o=e.memoizedProps;switch(n[xt]=e,n[Dt]=o,i){case"dialog":ze("cancel",n),ze("close",n);break;case"iframe":case"object":case"embed":ze("load",n);break;case"video":case"audio":for(i=0;i<ua.length;i++)ze(ua[i],n);break;case"source":ze("error",n);break;case"img":case"image":case"link":ze("error",n),ze("load",n);break;case"details":ze("toggle",n);break;case"input":ze("invalid",n),Ah(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ze("invalid",n);break;case"textarea":ze("invalid",n),Oh(n,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||zg(n.textContent,i)?(o.popover!=null&&(ze("beforetoggle",n),ze("toggle",n)),o.onScroll!=null&&ze("scroll",n),o.onScrollEnd!=null&&ze("scrollend",n),o.onClick!=null&&(n.onclick=Un),n=!0):n=!1,n||dl(e,!0)}function mm(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:bt=bt.return}}function Hr(e){if(e!==bt)return!1;if(!Me)return mm(e),Me=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Zc(e.type,e.memoizedProps)),i=!i),i&&Je&&dl(e),mm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=Hg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=Hg(e)}else n===27?(n=Je,Al(e.type)?(e=ef,ef=null,Je=e):Je=n):Je=bt?dn(e.stateNode.nextSibling):null;return!0}function Jl(){Je=bt=null,Me=!1}function _s(){var e=fl;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),fl=null),e}function qi(e){fl===null?fl=[e]:fl.push(e)}var Ds=_(null),Wl=null,Yn=null;function hl(e,n,i){w(Ds,n._currentValue),n._currentValue=i}function Vn(e){e._currentValue=Ds.current,X(Ds)}function Ms(e,n,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===i)break;e=e.return}}function js(e,n,i,o){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=f;for(var R=0;R<n.length;R++)if(k.context===n[R]){h.lanes|=i,k=h.alternate,k!==null&&(k.lanes|=i),Ms(h.return,i,e),o||(b=null);break e}h=k.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=i,h=b.alternate,h!==null&&(h.lanes|=i),Ms(b,i,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function qr(e,n,i,o){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var k=f.type;Ft(f.pendingProps.value,b.value)||(e!==null?e.push(k):e=[k])}}else if(f===se.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ha):e=[ha])}f=f.return}e!==null&&js(n,e,i,o),n.flags|=262144}function lo(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function er(e){Wl=e,Yn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return pm(Wl,e)}function ro(e,n){return Wl===null&&er(e),pm(e,n)}function pm(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Yn===null){if(e===null)throw Error(a(308));Yn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Yn=Yn.next=n;return i}var pS=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},gS=t.unstable_scheduleCallback,yS=t.unstable_NormalPriority,it={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ls(){return{controller:new pS,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&gS(yS,function(){e.controller.abort()})}var Vi=null,Us=0,Yr=0,Vr=null;function xS(e,n){if(Vi===null){var i=Vi=[];Us=0,Yr=qc(),Vr={status:"pending",value:void 0,then:function(o){i.push(o)}}}return Us++,n.then(gm,gm),n}function gm(){if(--Us===0&&Vi!==null){Vr!==null&&(Vr.status="fulfilled");var e=Vi;Vi=null,Yr=0,Vr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function bS(e,n){var i=[],o={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var f=0;f<i.length;f++)(0,i[f])(n)},function(f){for(o.status="rejected",o.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),o}var ym=U.S;U.S=function(e,n){eg=Tt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&xS(e,n),ym!==null&&ym(e,n)};var tr=_(null);function Bs(){var e=tr.current;return e!==null?e:Qe.pooledCache}function io(e,n){n===null?w(tr,tr.current):w(tr,n.pool)}function xm(){var e=Bs();return e===null?null:{parent:it._currentValue,pool:e}}var Gr=Error(a(460)),Hs=Error(a(474)),ao=Error(a(542)),oo={then:function(){}};function bm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vm(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Un,Un),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,wm(e),e;default:if(typeof n.status=="string")n.then(Un,Un);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=o}},function(o){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,wm(e),e}throw lr=n,Gr}}function nr(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(lr=i,Gr):i}}var lr=null;function Sm(){if(lr===null)throw Error(a(459));var e=lr;return lr=null,e}function wm(e){if(e===Gr||e===ao)throw Error(a(483))}var Fr=null,Gi=0;function uo(e){var n=Gi;return Gi+=1,Fr===null&&(Fr=[]),vm(Fr,e,n)}function Fi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function so(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function km(e){function n(B,j){if(e){var q=B.deletions;q===null?(B.deletions=[j],B.flags|=16):q.push(j)}}function i(B,j){if(!e)return null;for(;j!==null;)n(B,j),j=j.sibling;return null}function o(B){for(var j=new Map;B!==null;)B.key!==null?j.set(B.key,B):j.set(B.index,B),B=B.sibling;return j}function f(B,j){return B=Hn(B,j),B.index=0,B.sibling=null,B}function h(B,j,q){return B.index=q,e?(q=B.alternate,q!==null?(q=q.index,q<j?(B.flags|=67108866,j):q):(B.flags|=67108866,j)):(B.flags|=1048576,j)}function b(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function k(B,j,q,$){return j===null||j.tag!==6?(j=Ts(q,B.mode,$),j.return=B,j):(j=f(j,q),j.return=B,j)}function R(B,j,q,$){var xe=q.type;return xe===A?Q(B,j,q.props.children,$,q.key):j!==null&&(j.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&nr(xe)===j.type)?(j=f(j,q.props),Fi(j,q),j.return=B,j):(j=to(q.type,q.key,q.props,null,B.mode,$),Fi(j,q),j.return=B,j)}function Y(B,j,q,$){return j===null||j.tag!==4||j.stateNode.containerInfo!==q.containerInfo||j.stateNode.implementation!==q.implementation?(j=Os(q,B.mode,$),j.return=B,j):(j=f(j,q.children||[]),j.return=B,j)}function Q(B,j,q,$,xe){return j===null||j.tag!==7?(j=$l(q,B.mode,$,xe),j.return=B,j):(j=f(j,q),j.return=B,j)}function ee(B,j,q){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Ts(""+j,B.mode,q),j.return=B,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case x:return q=to(j.type,j.key,j.props,null,B.mode,q),Fi(q,j),q.return=B,q;case E:return j=Os(j,B.mode,q),j.return=B,j;case V:return j=nr(j),ee(B,j,q)}if(ne(j)||le(j))return j=$l(j,B.mode,q,null),j.return=B,j;if(typeof j.then=="function")return ee(B,uo(j),q);if(j.$$typeof===D)return ee(B,ro(B,j),q);so(B,j)}return null}function G(B,j,q,$){var xe=j!==null?j.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return xe!==null?null:k(B,j,""+q,$);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return q.key===xe?R(B,j,q,$):null;case E:return q.key===xe?Y(B,j,q,$):null;case V:return q=nr(q),G(B,j,q,$)}if(ne(q)||le(q))return xe!==null?null:Q(B,j,q,$,null);if(typeof q.then=="function")return G(B,j,uo(q),$);if(q.$$typeof===D)return G(B,j,ro(B,q),$);so(B,q)}return null}function P(B,j,q,$,xe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return B=B.get(q)||null,k(j,B,""+$,xe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return B=B.get($.key===null?q:$.key)||null,R(j,B,$,xe);case E:return B=B.get($.key===null?q:$.key)||null,Y(j,B,$,xe);case V:return $=nr($),P(B,j,q,$,xe)}if(ne($)||le($))return B=B.get(q)||null,Q(j,B,$,xe,null);if(typeof $.then=="function")return P(B,j,q,uo($),xe);if($.$$typeof===D)return P(B,j,q,ro(j,$),xe);so(j,$)}return null}function pe(B,j,q,$){for(var xe=null,Le=null,ye=j,Ce=j=0,De=null;ye!==null&&Ce<q.length;Ce++){ye.index>Ce?(De=ye,ye=null):De=ye.sibling;var Ue=G(B,ye,q[Ce],$);if(Ue===null){ye===null&&(ye=De);break}e&&ye&&Ue.alternate===null&&n(B,ye),j=h(Ue,j,Ce),Le===null?xe=Ue:Le.sibling=Ue,Le=Ue,ye=De}if(Ce===q.length)return i(B,ye),Me&&qn(B,Ce),xe;if(ye===null){for(;Ce<q.length;Ce++)ye=ee(B,q[Ce],$),ye!==null&&(j=h(ye,j,Ce),Le===null?xe=ye:Le.sibling=ye,Le=ye);return Me&&qn(B,Ce),xe}for(ye=o(ye);Ce<q.length;Ce++)De=P(ye,B,Ce,q[Ce],$),De!==null&&(e&&De.alternate!==null&&ye.delete(De.key===null?Ce:De.key),j=h(De,j,Ce),Le===null?xe=De:Le.sibling=De,Le=De);return e&&ye.forEach(function(Rl){return n(B,Rl)}),Me&&qn(B,Ce),xe}function Se(B,j,q,$){if(q==null)throw Error(a(151));for(var xe=null,Le=null,ye=j,Ce=j=0,De=null,Ue=q.next();ye!==null&&!Ue.done;Ce++,Ue=q.next()){ye.index>Ce?(De=ye,ye=null):De=ye.sibling;var Rl=G(B,ye,Ue.value,$);if(Rl===null){ye===null&&(ye=De);break}e&&ye&&Rl.alternate===null&&n(B,ye),j=h(Rl,j,Ce),Le===null?xe=Rl:Le.sibling=Rl,Le=Rl,ye=De}if(Ue.done)return i(B,ye),Me&&qn(B,Ce),xe;if(ye===null){for(;!Ue.done;Ce++,Ue=q.next())Ue=ee(B,Ue.value,$),Ue!==null&&(j=h(Ue,j,Ce),Le===null?xe=Ue:Le.sibling=Ue,Le=Ue);return Me&&qn(B,Ce),xe}for(ye=o(ye);!Ue.done;Ce++,Ue=q.next())Ue=P(ye,B,Ce,Ue.value,$),Ue!==null&&(e&&Ue.alternate!==null&&ye.delete(Ue.key===null?Ce:Ue.key),j=h(Ue,j,Ce),Le===null?xe=Ue:Le.sibling=Ue,Le=Ue);return e&&ye.forEach(function(zw){return n(B,zw)}),Me&&qn(B,Ce),xe}function Pe(B,j,q,$){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case x:e:{for(var xe=q.key;j!==null;){if(j.key===xe){if(xe=q.type,xe===A){if(j.tag===7){i(B,j.sibling),$=f(j,q.props.children),$.return=B,B=$;break e}}else if(j.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&nr(xe)===j.type){i(B,j.sibling),$=f(j,q.props),Fi($,q),$.return=B,B=$;break e}i(B,j);break}else n(B,j);j=j.sibling}q.type===A?($=$l(q.props.children,B.mode,$,q.key),$.return=B,B=$):($=to(q.type,q.key,q.props,null,B.mode,$),Fi($,q),$.return=B,B=$)}return b(B);case E:e:{for(xe=q.key;j!==null;){if(j.key===xe)if(j.tag===4&&j.stateNode.containerInfo===q.containerInfo&&j.stateNode.implementation===q.implementation){i(B,j.sibling),$=f(j,q.children||[]),$.return=B,B=$;break e}else{i(B,j);break}else n(B,j);j=j.sibling}$=Os(q,B.mode,$),$.return=B,B=$}return b(B);case V:return q=nr(q),Pe(B,j,q,$)}if(ne(q))return pe(B,j,q,$);if(le(q)){if(xe=le(q),typeof xe!="function")throw Error(a(150));return q=xe.call(q),Se(B,j,q,$)}if(typeof q.then=="function")return Pe(B,j,uo(q),$);if(q.$$typeof===D)return Pe(B,j,ro(B,q),$);so(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,j!==null&&j.tag===6?(i(B,j.sibling),$=f(j,q),$.return=B,B=$):(i(B,j),$=Ts(q,B.mode,$),$.return=B,B=$),b(B)):i(B,j)}return function(B,j,q,$){try{Gi=0;var xe=Pe(B,j,q,$);return Fr=null,xe}catch(ye){if(ye===Gr||ye===ao)throw ye;var Le=It(29,ye,null,B.mode);return Le.lanes=$,Le.return=B,Le}finally{}}}var rr=km(!0),Em=km(!1),ml=!1;function qs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ys(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function pl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,n,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var f=o.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),o.pending=n,n=eo(e),om(e,null,i),n}return Wa(e,o,n,i),eo(e)}function Ii(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,ph(e,i)}}function Vs(e,n){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var f=null,h=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,i=i.next}while(i!==null);h===null?f=h=n:h=h.next=n}else f=h=n;i={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var Gs=!1;function Pi(){if(Gs){var e=Vr;if(e!==null)throw e}}function Xi(e,n,i,o){Gs=!1;var f=e.updateQueue;ml=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,k=f.shared.pending;if(k!==null){f.shared.pending=null;var R=k,Y=R.next;R.next=null,b===null?h=Y:b.next=Y,b=R;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,k=Q.lastBaseUpdate,k!==b&&(k===null?Q.firstBaseUpdate=Y:k.next=Y,Q.lastBaseUpdate=R))}if(h!==null){var ee=f.baseState;b=0,Q=Y=R=null,k=h;do{var G=k.lane&-536870913,P=G!==k.lane;if(P?(_e&G)===G:(o&G)===G){G!==0&&G===Yr&&(Gs=!0),Q!==null&&(Q=Q.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var pe=e,Se=k;G=n;var Pe=i;switch(Se.tag){case 1:if(pe=Se.payload,typeof pe=="function"){ee=pe.call(Pe,ee,G);break e}ee=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Se.payload,G=typeof pe=="function"?pe.call(Pe,ee,G):pe,G==null)break e;ee=g({},ee,G);break e;case 2:ml=!0}}G=k.callback,G!==null&&(e.flags|=64,P&&(e.flags|=8192),P=f.callbacks,P===null?f.callbacks=[G]:P.push(G))}else P={lane:G,tag:k.tag,payload:k.payload,callback:k.callback,next:null},Q===null?(Y=Q=P,R=ee):Q=Q.next=P,b|=G;if(k=k.next,k===null){if(k=f.shared.pending,k===null)break;P=k,k=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);Q===null&&(R=ee),f.baseState=R,f.firstBaseUpdate=Y,f.lastBaseUpdate=Q,h===null&&(f.shared.lanes=0),Sl|=b,e.lanes=b,e.memoizedState=ee}}function Cm(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function Am(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Cm(i[e],n)}var Ir=_(null),co=_(0);function Tm(e,n){e=$n,w(co,e),w(Ir,n),$n=e|n.baseLanes}function Fs(){w(co,$n),w(Ir,Ir.current)}function Is(){$n=co.current,X(Ir),X(co)}var Pt=_(null),fn=null;function yl(e){var n=e.alternate;w(lt,lt.current&1),w(Pt,e),fn===null&&(n===null||Ir.current!==null||n.memoizedState!==null)&&(fn=e)}function Ps(e){w(lt,lt.current),w(Pt,e),fn===null&&(fn=e)}function Om(e){e.tag===22?(w(lt,lt.current),w(Pt,e),fn===null&&(fn=e)):xl()}function xl(){w(lt,lt.current),w(Pt,Pt.current)}function Xt(e){X(Pt),fn===e&&(fn=null),X(lt)}var lt=_(0);function fo(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Jc(i)||Wc(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Gn=0,Ee=null,Fe=null,at=null,ho=!1,Pr=!1,ir=!1,mo=0,Qi=0,Xr=null,vS=0;function tt(){throw Error(a(321))}function Xs(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Ft(e[i],n[i]))return!1;return!0}function Qs(e,n,i,o,f,h){return Gn=h,Ee=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,U.H=e===null||e.memoizedState===null?fp:sc,ir=!1,h=i(o,f),ir=!1,Pr&&(h=zm(n,i,o,f)),Nm(e),h}function Nm(e){U.H=$i;var n=Fe!==null&&Fe.next!==null;if(Gn=0,at=Fe=Ee=null,ho=!1,Qi=0,Xr=null,n)throw Error(a(300));e===null||ot||(e=e.dependencies,e!==null&&lo(e)&&(ot=!0))}function zm(e,n,i,o){Ee=e;var f=0;do{if(Pr&&(Xr=null),Qi=0,Pr=!1,25<=f)throw Error(a(301));if(f+=1,at=Fe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}U.H=dp,h=n(i,o)}while(Pr);return h}function SS(){var e=U.H,n=e.useState()[0];return n=typeof n.then=="function"?Zi(n):n,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(Ee.flags|=1024),n}function Zs(){var e=mo!==0;return mo=0,e}function Ks(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function $s(e){if(ho){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ho=!1}Gn=0,at=Fe=Ee=null,Pr=!1,Qi=mo=0,Xr=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Ee.memoizedState=at=e:at=at.next=e,at}function rt(){if(Fe===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var n=at===null?Ee.memoizedState:at.next;if(n!==null)at=n,Fe=e;else{if(e===null)throw Ee.alternate===null?Error(a(467)):Error(a(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},at===null?Ee.memoizedState=at=e:at=at.next=e}return at}function po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zi(e){var n=Qi;return Qi+=1,Xr===null&&(Xr=[]),e=vm(Xr,e,n),n=Ee,(at===null?n.memoizedState:at.next)===null&&(n=n.alternate,U.H=n===null||n.memoizedState===null?fp:sc),e}function go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zi(e);if(e.$$typeof===D)return vt(e)}throw Error(a(438,String(e)))}function Js(e){var n=null,i=Ee.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Ee.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=po(),Ee.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),o=0;o<e;o++)i[o]=H;return n.index++,i}function Fn(e,n){return typeof n=="function"?n(e):n}function yo(e){var n=rt();return Ws(n,Fe,e)}function Ws(e,n,i){var o=e.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var f=e.baseQueue,h=o.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,o.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var k=b=null,R=null,Y=n,Q=!1;do{var ee=Y.lane&-536870913;if(ee!==Y.lane?(_e&ee)===ee:(Gn&ee)===ee){var G=Y.revertLane;if(G===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ee===Yr&&(Q=!0);else if((Gn&G)===G){Y=Y.next,G===Yr&&(Q=!0);continue}else ee={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(k=R=ee,b=h):R=R.next=ee,Ee.lanes|=G,Sl|=G;ee=Y.action,ir&&i(h,ee),h=Y.hasEagerState?Y.eagerState:i(h,ee)}else G={lane:ee,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(k=R=G,b=h):R=R.next=G,Ee.lanes|=ee,Sl|=ee;Y=Y.next}while(Y!==null&&Y!==n);if(R===null?b=h:R.next=k,!Ft(h,e.memoizedState)&&(ot=!0,Q&&(i=Vr,i!==null)))throw i;e.memoizedState=h,e.baseState=b,e.baseQueue=R,o.lastRenderedState=h}return f===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ec(e){var n=rt(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=e;var o=i.dispatch,f=i.pending,h=n.memoizedState;if(f!==null){i.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Ft(h,n.memoizedState)||(ot=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),i.lastRenderedState=h}return[h,o]}function Rm(e,n,i){var o=Ee,f=rt(),h=Me;if(h){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!Ft((Fe||f).memoizedState,i);if(b&&(f.memoizedState=i,ot=!0),f=f.queue,lc(Mm.bind(null,o,f,e),[e]),f.getSnapshot!==n||b||at!==null&&at.memoizedState.tag&1){if(o.flags|=2048,Qr(9,{destroy:void 0},Dm.bind(null,o,f,i,n),null),Qe===null)throw Error(a(349));h||(Gn&127)!==0||_m(o,n,i)}return i}function _m(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=Ee.updateQueue,n===null?(n=po(),Ee.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Dm(e,n,i,o){n.value=i,n.getSnapshot=o,jm(n)&&Lm(e)}function Mm(e,n,i){return i(function(){jm(n)&&Lm(e)})}function jm(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Ft(e,i)}catch{return!0}}function Lm(e){var n=Kl(e,2);n!==null&&Ht(n,e,2)}function tc(e){var n=Nt();if(typeof e=="function"){var i=e;if(e=i(),ir){_t(!0);try{i()}finally{_t(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:e},n}function Um(e,n,i,o){return e.baseState=i,Ws(e,Fe,typeof o=="function"?o:Fn)}function wS(e,n,i,o,f){if(vo(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};U.T!==null?i(!0):h.isTransition=!1,o(h),i=n.pending,i===null?(h.next=n.pending=h,Bm(n,h)):(h.next=i.next,n.pending=i.next=h)}}function Bm(e,n){var i=n.action,o=n.payload,f=e.state;if(n.isTransition){var h=U.T,b={};U.T=b;try{var k=i(f,o),R=U.S;R!==null&&R(b,k),Hm(e,n,k)}catch(Y){nc(e,n,Y)}finally{h!==null&&b.types!==null&&(h.types=b.types),U.T=h}}else try{h=i(f,o),Hm(e,n,h)}catch(Y){nc(e,n,Y)}}function Hm(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){qm(e,n,o)},function(o){return nc(e,n,o)}):qm(e,n,i)}function qm(e,n,i){n.status="fulfilled",n.value=i,Ym(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Bm(e,i)))}function nc(e,n,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,Ym(n),n=n.next;while(n!==o)}e.action=null}function Ym(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Vm(e,n){return n}function Gm(e,n){if(Me){var i=Qe.formState;if(i!==null){e:{var o=Ee;if(Me){if(Je){t:{for(var f=Je,h=cn;f.nodeType!==8;){if(!h){f=null;break t}if(f=dn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Je=dn(f.nextSibling),o=f.data==="F!";break e}}dl(o)}o=!1}o&&(n=i[0])}}return i=Nt(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vm,lastRenderedState:n},i.queue=o,i=up.bind(null,Ee,o),o.dispatch=i,o=tc(!1),h=uc.bind(null,Ee,!1,o.queue),o=Nt(),f={state:n,dispatch:null,action:e,pending:null},o.queue=f,i=wS.bind(null,Ee,f,h,i),f.dispatch=i,o.memoizedState=e,[n,i,!1]}function Fm(e){var n=rt();return Im(n,Fe,e)}function Im(e,n,i){if(n=Ws(e,n,Vm)[0],e=yo(Fn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=Zi(n)}catch(b){throw b===Gr?ao:b}else o=n;n=rt();var f=n.queue,h=f.dispatch;return i!==n.memoizedState&&(Ee.flags|=2048,Qr(9,{destroy:void 0},kS.bind(null,f,i),null)),[o,h,e]}function kS(e,n){e.action=n}function Pm(e){var n=rt(),i=Fe;if(i!==null)return Im(n,i,e);rt(),n=n.memoizedState,i=rt();var o=i.queue.dispatch;return i.memoizedState=e,[n,o,!1]}function Qr(e,n,i,o){return e={tag:e,create:i,deps:o,inst:n,next:null},n=Ee.updateQueue,n===null&&(n=po(),Ee.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,n.lastEffect=e),e}function Xm(){return rt().memoizedState}function xo(e,n,i,o){var f=Nt();Ee.flags|=e,f.memoizedState=Qr(1|n,{destroy:void 0},i,o===void 0?null:o)}function bo(e,n,i,o){var f=rt();o=o===void 0?null:o;var h=f.memoizedState.inst;Fe!==null&&o!==null&&Xs(o,Fe.memoizedState.deps)?f.memoizedState=Qr(n,h,i,o):(Ee.flags|=e,f.memoizedState=Qr(1|n,h,i,o))}function Qm(e,n){xo(8390656,8,e,n)}function lc(e,n){bo(2048,8,e,n)}function ES(e){Ee.flags|=4;var n=Ee.updateQueue;if(n===null)n=po(),Ee.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Zm(e){var n=rt().memoizedState;return ES({ref:n,nextImpl:e}),function(){if((Be&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function Km(e,n){return bo(4,2,e,n)}function $m(e,n){return bo(4,4,e,n)}function Jm(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Wm(e,n,i){i=i!=null?i.concat([e]):null,bo(4,4,Jm.bind(null,n,e),i)}function rc(){}function ep(e,n){var i=rt();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&Xs(n,o[1])?o[0]:(i.memoizedState=[e,n],e)}function tp(e,n){var i=rt();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&Xs(n,o[1]))return o[0];if(o=e(),ir){_t(!0);try{e()}finally{_t(!1)}}return i.memoizedState=[o,n],o}function ic(e,n,i){return i===void 0||(Gn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=ng(),Ee.lanes|=e,Sl|=e,i)}function np(e,n,i,o){return Ft(i,n)?i:Ir.current!==null?(e=ic(e,i,o),Ft(e,n)||(ot=!0),e):(Gn&42)===0||(Gn&1073741824)!==0&&(_e&261930)===0?(ot=!0,e.memoizedState=i):(e=ng(),Ee.lanes|=e,Sl|=e,n)}function lp(e,n,i,o,f){var h=Z.p;Z.p=h!==0&&8>h?h:8;var b=U.T,k={};U.T=k,uc(e,!1,n,i);try{var R=f(),Y=U.S;if(Y!==null&&Y(k,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Q=bS(R,o);Ki(e,n,Q,Kt(e))}else Ki(e,n,o,Kt(e))}catch(ee){Ki(e,n,{then:function(){},status:"rejected",reason:ee},Kt())}finally{Z.p=h,b!==null&&k.types!==null&&(b.types=k.types),U.T=b}}function CS(){}function ac(e,n,i,o){if(e.tag!==5)throw Error(a(476));var f=rp(e).queue;lp(e,f,n,re,i===null?CS:function(){return ip(e),i(o)})}function rp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:re},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function ip(e){var n=rp(e);n.next===null&&(n=e.alternate.memoizedState),Ki(e,n.next.queue,{},Kt())}function oc(){return vt(ha)}function ap(){return rt().memoizedState}function op(){return rt().memoizedState}function AS(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Kt();e=pl(i);var o=gl(n,e,i);o!==null&&(Ht(o,n,i),Ii(o,n,i)),n={cache:Ls()},e.payload=n;return}n=n.return}}function TS(e,n,i){var o=Kt();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},vo(e)?sp(n,i):(i=Cs(e,n,i,o),i!==null&&(Ht(i,e,o),cp(i,n,o)))}function up(e,n,i){var o=Kt();Ki(e,n,i,o)}function Ki(e,n,i,o){var f={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(vo(e))sp(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,k=h(b,i);if(f.hasEagerState=!0,f.eagerState=k,Ft(k,b))return Wa(e,n,f,0),Qe===null&&Ja(),!1}catch{}finally{}if(i=Cs(e,n,f,o),i!==null)return Ht(i,e,o),cp(i,n,o),!0}return!1}function uc(e,n,i,o){if(o={lane:2,revertLane:qc(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},vo(e)){if(n)throw Error(a(479))}else n=Cs(e,i,o,2),n!==null&&Ht(n,e,2)}function vo(e){var n=e.alternate;return e===Ee||n!==null&&n===Ee}function sp(e,n){Pr=ho=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function cp(e,n,i){if((i&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,i|=o,n.lanes=i,ph(e,i)}}var $i={readContext:vt,use:go,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};$i.useEffectEvent=tt;var fp={readContext:vt,use:go,useCallback:function(e,n){return Nt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:Qm,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,xo(4194308,4,Jm.bind(null,n,e),i)},useLayoutEffect:function(e,n){return xo(4194308,4,e,n)},useInsertionEffect:function(e,n){xo(4,2,e,n)},useMemo:function(e,n){var i=Nt();n=n===void 0?null:n;var o=e();if(ir){_t(!0);try{e()}finally{_t(!1)}}return i.memoizedState=[o,n],o},useReducer:function(e,n,i){var o=Nt();if(i!==void 0){var f=i(n);if(ir){_t(!0);try{i(n)}finally{_t(!1)}}}else f=n;return o.memoizedState=o.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},o.queue=e,e=e.dispatch=TS.bind(null,Ee,e),[o.memoizedState,e]},useRef:function(e){var n=Nt();return e={current:e},n.memoizedState=e},useState:function(e){e=tc(e);var n=e.queue,i=up.bind(null,Ee,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:rc,useDeferredValue:function(e,n){var i=Nt();return ic(i,e,n)},useTransition:function(){var e=tc(!1);return e=lp.bind(null,Ee,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var o=Ee,f=Nt();if(Me){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),Qe===null)throw Error(a(349));(_e&127)!==0||_m(o,n,i)}f.memoizedState=i;var h={value:i,getSnapshot:n};return f.queue=h,Qm(Mm.bind(null,o,h,e),[e]),o.flags|=2048,Qr(9,{destroy:void 0},Dm.bind(null,o,h,i,n),null),i},useId:function(){var e=Nt(),n=Qe.identifierPrefix;if(Me){var i=Cn,o=En;i=(o&~(1<<32-Xe(o)-1)).toString(32)+i,n="_"+n+"R_"+i,i=mo++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=vS++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:oc,useFormState:Gm,useActionState:Gm,useOptimistic:function(e){var n=Nt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=uc.bind(null,Ee,!0,i),i.dispatch=n,[e,n]},useMemoCache:Js,useCacheRefresh:function(){return Nt().memoizedState=AS.bind(null,Ee)},useEffectEvent:function(e){var n=Nt(),i={impl:e};return n.memoizedState=i,function(){if((Be&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}},sc={readContext:vt,use:go,useCallback:ep,useContext:vt,useEffect:lc,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:tp,useReducer:yo,useRef:Xm,useState:function(){return yo(Fn)},useDebugValue:rc,useDeferredValue:function(e,n){var i=rt();return np(i,Fe.memoizedState,e,n)},useTransition:function(){var e=yo(Fn)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:Zi(e),n]},useSyncExternalStore:Rm,useId:ap,useHostTransitionStatus:oc,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,n){var i=rt();return Um(i,Fe,e,n)},useMemoCache:Js,useCacheRefresh:op};sc.useEffectEvent=Zm;var dp={readContext:vt,use:go,useCallback:ep,useContext:vt,useEffect:lc,useImperativeHandle:Wm,useInsertionEffect:Km,useLayoutEffect:$m,useMemo:tp,useReducer:ec,useRef:Xm,useState:function(){return ec(Fn)},useDebugValue:rc,useDeferredValue:function(e,n){var i=rt();return Fe===null?ic(i,e,n):np(i,Fe.memoizedState,e,n)},useTransition:function(){var e=ec(Fn)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:Zi(e),n]},useSyncExternalStore:Rm,useId:ap,useHostTransitionStatus:oc,useFormState:Pm,useActionState:Pm,useOptimistic:function(e,n){var i=rt();return Fe!==null?Um(i,Fe,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Js,useCacheRefresh:op};dp.useEffectEvent=Zm;function cc(e,n,i,o){n=e.memoizedState,i=i(o,n),i=i==null?n:g({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var fc={enqueueSetState:function(e,n,i){e=e._reactInternals;var o=Kt(),f=pl(o);f.payload=n,i!=null&&(f.callback=i),n=gl(e,f,o),n!==null&&(Ht(n,e,o),Ii(n,e,o))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var o=Kt(),f=pl(o);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=gl(e,f,o),n!==null&&(Ht(n,e,o),Ii(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Kt(),o=pl(i);o.tag=2,n!=null&&(o.callback=n),n=gl(e,o,i),n!==null&&(Ht(n,e,i),Ii(n,e,i))}};function hp(e,n,i,o,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,b):n.prototype&&n.prototype.isPureReactComponent?!Ui(i,o)||!Ui(f,h):!0}function mp(e,n,i,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==e&&fc.enqueueReplaceState(n,n.state,null)}function ar(e,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(e=e.defaultProps){i===n&&(i=g({},i));for(var f in e)i[f]===void 0&&(i[f]=e[f])}return i}function pp(e){$a(e)}function gp(e){console.error(e)}function yp(e){$a(e)}function So(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function xp(e,n,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function dc(e,n,i){return i=pl(i),i.tag=3,i.payload={element:null},i.callback=function(){So(e,n)},i}function bp(e){return e=pl(e),e.tag=3,e}function vp(e,n,i,o){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var h=o.value;e.payload=function(){return f(h)},e.callback=function(){xp(n,i,o)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){xp(n,i,o),typeof f!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})})}function OS(e,n,i,o,f){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&qr(n,i,f,!0),i=Pt.current,i!==null){switch(i.tag){case 31:case 13:return fn===null?Do():i.alternate===null&&nt===0&&(nt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,o===oo?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),Uc(e,o,f)),!1;case 22:return i.flags|=65536,o===oo?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),Uc(e,o,f)),!1}throw Error(a(435,i.tag))}return Uc(e,o,f),Do(),!1}if(Me)return n=Pt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,o!==Rs&&(e=Error(a(422),{cause:o}),qi(on(e,i)))):(o!==Rs&&(n=Error(a(423),{cause:o}),qi(on(n,i))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,o=on(o,i),f=dc(e.stateNode,o,f),Vs(e,f),nt!==4&&(nt=2)),!1;var h=Error(a(520),{cause:o});if(h=on(h,i),ia===null?ia=[h]:ia.push(h),nt!==4&&(nt=2),n===null)return!0;o=on(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=f&-f,i.lanes|=e,e=dc(i.stateNode,o,e),Vs(i,e),!1;case 1:if(n=i.type,h=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(wl===null||!wl.has(h))))return i.flags|=65536,f&=-f,i.lanes|=f,f=bp(f),vp(f,e,i,o),Vs(i,f),!1}i=i.return}while(i!==null);return!1}var hc=Error(a(461)),ot=!1;function St(e,n,i,o){n.child=e===null?Em(n,null,i,o):rr(n,e.child,i,o)}function Sp(e,n,i,o,f){i=i.render;var h=n.ref;if("ref"in o){var b={};for(var k in o)k!=="ref"&&(b[k]=o[k])}else b=o;return er(n),o=Qs(e,n,i,b,h,f),k=Zs(),e!==null&&!ot?(Ks(e,n,f),In(e,n,f)):(Me&&k&&Ns(n),n.flags|=1,St(e,n,o,f),n.child)}function wp(e,n,i,o,f){if(e===null){var h=i.type;return typeof h=="function"&&!As(h)&&h.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=h,kp(e,n,h,o,f)):(e=to(i.type,null,o,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Sc(e,f)){var b=h.memoizedProps;if(i=i.compare,i=i!==null?i:Ui,i(b,o)&&e.ref===n.ref)return In(e,n,f)}return n.flags|=1,e=Hn(h,o),e.ref=n.ref,e.return=n,n.child=e}function kp(e,n,i,o,f){if(e!==null){var h=e.memoizedProps;if(Ui(h,o)&&e.ref===n.ref)if(ot=!1,n.pendingProps=o=h,Sc(e,f))(e.flags&131072)!==0&&(ot=!0);else return n.lanes=e.lanes,In(e,n,f)}return mc(e,n,i,o,f)}function Ep(e,n,i,o){var f=o.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|i:i,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~h}else o=0,n.child=null;return Cp(e,n,h,i,o)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&io(n,h!==null?h.cachePool:null),h!==null?Tm(n,h):Fs(),Om(n);else return o=n.lanes=536870912,Cp(e,n,h!==null?h.baseLanes|i:i,i,o)}else h!==null?(io(n,h.cachePool),Tm(n,h),xl(),n.memoizedState=null):(e!==null&&io(n,null),Fs(),xl());return St(e,n,f,i),n.child}function Ji(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Cp(e,n,i,o,f){var h=Bs();return h=h===null?null:{parent:it._currentValue,pool:h},n.memoizedState={baseLanes:i,cachePool:h},e!==null&&io(n,null),Fs(),Om(n),e!==null&&qr(e,n,o,!0),n.childLanes=f,null}function wo(e,n){return n=Eo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Ap(e,n,i){return rr(n,e.child,null,i),e=wo(n,n.pendingProps),e.flags|=2,Xt(n),n.memoizedState=null,e}function NS(e,n,i){var o=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Me){if(o.mode==="hidden")return e=wo(n,o),n.lanes=536870912,Ji(null,e);if(Ps(n),(e=Je)?(e=Bg(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:cl!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},i=sm(e),i.return=n,n.child=i,bt=n,Je=null)):e=null,e===null)throw dl(n);return n.lanes=536870912,null}return wo(n,o)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(Ps(n),f)if(n.flags&256)n.flags&=-257,n=Ap(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(ot||qr(e,n,i,!1),f=(i&e.childLanes)!==0,ot||f){if(o=Qe,o!==null&&(b=gh(o,i),b!==0&&b!==h.retryLane))throw h.retryLane=b,Kl(e,b),Ht(o,e,b),hc;Do(),n=Ap(e,n,i)}else e=h.treeContext,Je=dn(b.nextSibling),bt=n,Me=!0,fl=null,cn=!1,e!==null&&dm(n,e),n=wo(n,o),n.flags|=4096;return n}return e=Hn(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function ko(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function mc(e,n,i,o,f){return er(n),i=Qs(e,n,i,o,void 0,f),o=Zs(),e!==null&&!ot?(Ks(e,n,f),In(e,n,f)):(Me&&o&&Ns(n),n.flags|=1,St(e,n,i,f),n.child)}function Tp(e,n,i,o,f,h){return er(n),n.updateQueue=null,i=zm(n,o,i,f),Nm(e),o=Zs(),e!==null&&!ot?(Ks(e,n,h),In(e,n,h)):(Me&&o&&Ns(n),n.flags|=1,St(e,n,i,h),n.child)}function Op(e,n,i,o,f){if(er(n),n.stateNode===null){var h=Lr,b=i.contextType;typeof b=="object"&&b!==null&&(h=vt(b)),h=new i(o,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=fc,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=o,h.state=n.memoizedState,h.refs={},qs(n),b=i.contextType,h.context=typeof b=="object"&&b!==null?vt(b):Lr,h.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(cc(n,i,b,o),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&fc.enqueueReplaceState(h,h.state,null),Xi(n,o,h,f),Pi(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){h=n.stateNode;var k=n.memoizedProps,R=ar(i,k);h.props=R;var Y=h.context,Q=i.contextType;b=Lr,typeof Q=="object"&&Q!==null&&(b=vt(Q));var ee=i.getDerivedStateFromProps;Q=typeof ee=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=n.pendingProps!==k,Q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||Y!==b)&&mp(n,h,o,b),ml=!1;var G=n.memoizedState;h.state=G,Xi(n,o,h,f),Pi(),Y=n.memoizedState,k||G!==Y||ml?(typeof ee=="function"&&(cc(n,i,ee,o),Y=n.memoizedState),(R=ml||hp(n,i,R,o,G,Y,b))?(Q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=Y),h.props=o,h.state=Y,h.context=b,o=R):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{h=n.stateNode,Ys(e,n),b=n.memoizedProps,Q=ar(i,b),h.props=Q,ee=n.pendingProps,G=h.context,Y=i.contextType,R=Lr,typeof Y=="object"&&Y!==null&&(R=vt(Y)),k=i.getDerivedStateFromProps,(Y=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==ee||G!==R)&&mp(n,h,o,R),ml=!1,G=n.memoizedState,h.state=G,Xi(n,o,h,f),Pi();var P=n.memoizedState;b!==ee||G!==P||ml||e!==null&&e.dependencies!==null&&lo(e.dependencies)?(typeof k=="function"&&(cc(n,i,k,o),P=n.memoizedState),(Q=ml||hp(n,i,Q,o,G,P,R)||e!==null&&e.dependencies!==null&&lo(e.dependencies))?(Y||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,P,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,P,R)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=P),h.props=o,h.state=P,h.context=R,o=Q):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),o=!1)}return h=o,ko(e,n),o=(n.flags&128)!==0,h||o?(h=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&o?(n.child=rr(n,e.child,null,f),n.child=rr(n,null,i,f)):St(e,n,i,f),n.memoizedState=h.state,e=n.child):e=In(e,n,f),e}function Np(e,n,i,o){return Jl(),n.flags|=256,St(e,n,i,o),n.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:xm()}}function yc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Zt),e}function zp(e,n,i){var o=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Me){if(f?yl(n):xl(),(e=Je)?(e=Bg(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:cl!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},i=sm(e),i.return=n,n.child=i,bt=n,Je=null)):e=null,e===null)throw dl(n);return Wc(e)?n.lanes=32:n.lanes=536870912,null}var k=o.children;return o=o.fallback,f?(xl(),f=n.mode,k=Eo({mode:"hidden",children:k},f),o=$l(o,f,i,null),k.return=n,o.return=n,k.sibling=o,n.child=k,o=n.child,o.memoizedState=gc(i),o.childLanes=yc(e,b,i),n.memoizedState=pc,Ji(null,o)):(yl(n),xc(n,k))}var R=e.memoizedState;if(R!==null&&(k=R.dehydrated,k!==null)){if(h)n.flags&256?(yl(n),n.flags&=-257,n=bc(e,n,i)):n.memoizedState!==null?(xl(),n.child=e.child,n.flags|=128,n=null):(xl(),k=o.fallback,f=n.mode,o=Eo({mode:"visible",children:o.children},f),k=$l(k,f,i,null),k.flags|=2,o.return=n,k.return=n,o.sibling=k,n.child=o,rr(n,e.child,null,i),o=n.child,o.memoizedState=gc(i),o.childLanes=yc(e,b,i),n.memoizedState=pc,n=Ji(null,o));else if(yl(n),Wc(k)){if(b=k.nextSibling&&k.nextSibling.dataset,b)var Y=b.dgst;b=Y,o=Error(a(419)),o.stack="",o.digest=b,qi({value:o,source:null,stack:null}),n=bc(e,n,i)}else if(ot||qr(e,n,i,!1),b=(i&e.childLanes)!==0,ot||b){if(b=Qe,b!==null&&(o=gh(b,i),o!==0&&o!==R.retryLane))throw R.retryLane=o,Kl(e,o),Ht(b,e,o),hc;Jc(k)||Do(),n=bc(e,n,i)}else Jc(k)?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,Je=dn(k.nextSibling),bt=n,Me=!0,fl=null,cn=!1,e!==null&&dm(n,e),n=xc(n,o.children),n.flags|=4096);return n}return f?(xl(),k=o.fallback,f=n.mode,R=e.child,Y=R.sibling,o=Hn(R,{mode:"hidden",children:o.children}),o.subtreeFlags=R.subtreeFlags&65011712,Y!==null?k=Hn(Y,k):(k=$l(k,f,i,null),k.flags|=2),k.return=n,o.return=n,o.sibling=k,n.child=o,Ji(null,o),o=n.child,k=e.child.memoizedState,k===null?k=gc(i):(f=k.cachePool,f!==null?(R=it._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=xm(),k={baseLanes:k.baseLanes|i,cachePool:f}),o.memoizedState=k,o.childLanes=yc(e,b,i),n.memoizedState=pc,Ji(e.child,o)):(yl(n),i=e.child,e=i.sibling,i=Hn(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=i,n.memoizedState=null,i)}function xc(e,n){return n=Eo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Eo(e,n){return e=It(22,e,null,n),e.lanes=0,e}function bc(e,n,i){return rr(n,e.child,null,i),e=xc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Rp(e,n,i){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Ms(e.return,n,i)}function vc(e,n,i,o,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=i,b.tailMode=f,b.treeForkCount=h)}function _p(e,n,i){var o=n.pendingProps,f=o.revealOrder,h=o.tail;o=o.children;var b=lt.current,k=(b&2)!==0;if(k?(b=b&1|2,n.flags|=128):b&=1,w(lt,b),St(e,n,o,i),o=Me?Hi:0,!k&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rp(e,i,n);else if(e.tag===19)Rp(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(i=n.child,f=null;i!==null;)e=i.alternate,e!==null&&fo(e)===null&&(f=i),i=i.sibling;i=f,i===null?(f=n.child,n.child=null):(f=i.sibling,i.sibling=null),vc(n,!1,f,i,h,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&fo(e)===null){n.child=f;break}e=f.sibling,f.sibling=i,i=f,f=e}vc(n,!0,i,null,h,o);break;case"together":vc(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function In(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),Sl|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(qr(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,i=Hn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Hn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Sc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&lo(e)))}function zS(e,n,i){switch(n.tag){case 3:ve(n,n.stateNode.containerInfo),hl(n,it,e.memoizedState.cache),Jl();break;case 27:case 5:Ye(n);break;case 4:ve(n,n.stateNode.containerInfo);break;case 10:hl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ps(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(yl(n),n.flags|=128,null):(i&n.child.childLanes)!==0?zp(e,n,i):(yl(n),e=In(e,n,i),e!==null?e.sibling:null);yl(n);break;case 19:var f=(e.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(qr(e,n,i,!1),o=(i&n.childLanes)!==0),f){if(o)return _p(e,n,i);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),w(lt,lt.current),o)break;return null;case 22:return n.lanes=0,Ep(e,n,i,n.pendingProps);case 24:hl(n,it,e.memoizedState.cache)}return In(e,n,i)}function Dp(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)ot=!0;else{if(!Sc(e,i)&&(n.flags&128)===0)return ot=!1,zS(e,n,i);ot=(e.flags&131072)!==0}else ot=!1,Me&&(n.flags&1048576)!==0&&fm(n,Hi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=nr(n.elementType),n.type=e,typeof e=="function")As(e)?(o=ar(e,o),n.tag=1,n=Op(null,n,e,o,i)):(n.tag=0,n=mc(null,n,e,o,i));else{if(e!=null){var f=e.$$typeof;if(f===L){n.tag=11,n=Sp(null,n,e,o,i);break e}else if(f===F){n.tag=14,n=wp(null,n,e,o,i);break e}}throw n=ae(e)||e,Error(a(306,n,""))}}return n;case 0:return mc(e,n,n.type,n.pendingProps,i);case 1:return o=n.type,f=ar(o,n.pendingProps),Op(e,n,o,f,i);case 3:e:{if(ve(n,n.stateNode.containerInfo),e===null)throw Error(a(387));o=n.pendingProps;var h=n.memoizedState;f=h.element,Ys(e,n),Xi(n,o,null,i);var b=n.memoizedState;if(o=b.cache,hl(n,it,o),o!==h.cache&&js(n,[it],i,!0),Pi(),o=b.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Np(e,n,o,i);break e}else if(o!==f){f=on(Error(a(424)),n),qi(f),n=Np(e,n,o,i);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Je=dn(e.firstChild),bt=n,Me=!0,fl=null,cn=!0,i=Em(n,null,o,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Jl(),o===f){n=In(e,n,i);break e}St(e,n,o,i)}n=n.child}return n;case 26:return ko(e,n),e===null?(i=Fg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Me||(i=n.type,e=n.pendingProps,o=qo(W.current).createElement(i),o[xt]=n,o[Dt]=e,wt(o,i,e),pt(o),n.stateNode=o):n.memoizedState=Fg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ye(n),e===null&&Me&&(o=n.stateNode=Yg(n.type,n.pendingProps,W.current),bt=n,cn=!0,f=Je,Al(n.type)?(ef=f,Je=dn(o.firstChild)):Je=f),St(e,n,n.pendingProps.children,i),ko(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Me&&((f=o=Je)&&(o=aw(o,n.type,n.pendingProps,cn),o!==null?(n.stateNode=o,bt=n,Je=dn(o.firstChild),cn=!1,f=!0):f=!1),f||dl(n)),Ye(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,o=h.children,Zc(f,h)?o=null:b!==null&&Zc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=Qs(e,n,SS,null,null,i),ha._currentValue=f),ko(e,n),St(e,n,o,i),n.child;case 6:return e===null&&Me&&((e=i=Je)&&(i=ow(i,n.pendingProps,cn),i!==null?(n.stateNode=i,bt=n,Je=null,e=!0):e=!1),e||dl(n)),null;case 13:return zp(e,n,i);case 4:return ve(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=rr(n,null,o,i):St(e,n,o,i),n.child;case 11:return Sp(e,n,n.type,n.pendingProps,i);case 7:return St(e,n,n.pendingProps,i),n.child;case 8:return St(e,n,n.pendingProps.children,i),n.child;case 12:return St(e,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,hl(n,n.type,o.value),St(e,n,o.children,i),n.child;case 9:return f=n.type._context,o=n.pendingProps.children,er(n),f=vt(f),o=o(f),n.flags|=1,St(e,n,o,i),n.child;case 14:return wp(e,n,n.type,n.pendingProps,i);case 15:return kp(e,n,n.type,n.pendingProps,i);case 19:return _p(e,n,i);case 31:return NS(e,n,i);case 22:return Ep(e,n,i,n.pendingProps);case 24:return er(n),o=vt(it),e===null?(f=Bs(),f===null&&(f=Qe,h=Ls(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=i),f=h),n.memoizedState={parent:o,cache:f},qs(n),hl(n,it,f)):((e.lanes&i)!==0&&(Ys(e,n),Xi(n,null,null,i),Pi()),f=e.memoizedState,h=n.memoizedState,f.parent!==o?(f={parent:o,cache:o},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),hl(n,it,o)):(o=h.cache,hl(n,it,o),o!==f.cache&&js(n,[it],i,!0))),St(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Pn(e){e.flags|=4}function wc(e,n,i,o,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(ag())e.flags|=8192;else throw lr=oo,Hs}else e.flags&=-16777217}function Mp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zg(n))if(ag())e.flags|=8192;else throw lr=oo,Hs}function Co(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?hh():536870912,e.lanes|=n,Jr|=n)}function Wi(e,n){if(!Me)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(n)for(var f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=o,e.childLanes=i,n}function RS(e,n,i){var o=n.pendingProps;switch(zs(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return i=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Vn(it),fe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Hr(n)?Pn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,_s())),We(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Pn(n),h!==null?(We(n),Mp(n,h)):(We(n),wc(n,f,null,o,i))):h?h!==e.memoizedState?(Pn(n),We(n),Mp(n,h)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&Pn(n),We(n),wc(n,f,e,o,i)),null;case 27:if(ct(n),i=W.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Pn(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return We(n),null}e=J.current,Hr(n)?hm(n):(e=Yg(f,o,i),n.stateNode=e,Pn(n))}return We(n),null;case 5:if(ct(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Pn(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return We(n),null}if(h=J.current,Hr(n))hm(n);else{var b=qo(W.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?b.createElement(f,{is:o.is}):b.createElement(f)}}h[xt]=n,h[Dt]=o;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(wt(h,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Pn(n)}}return We(n),wc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Pn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(e=W.current,Hr(n)){if(e=n.stateNode,i=n.memoizedProps,o=null,f=bt,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}e[xt]=n,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||zg(e.nodeValue,i)),e||dl(n,!0)}else e=qo(e).createTextNode(o),e[xt]=n,n.stateNode=e}return We(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(o=Hr(n),i!==null){if(e===null){if(!o)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[xt]=n}else Jl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else i=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Xt(n),n):(Xt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return We(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Hr(n),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[xt]=n}else Jl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Xt(n),n):(Xt(n),null)}return Xt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=o!==null,e=e!==null&&e.memoizedState!==null,i&&(o=n.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==f&&(o.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),Co(n,n.updateQueue),We(n),null);case 4:return fe(),e===null&&Fc(n.stateNode.containerInfo),We(n),null;case 10:return Vn(n.type),We(n),null;case 19:if(X(lt),o=n.memoizedState,o===null)return We(n),null;if(f=(n.flags&128)!==0,h=o.rendering,h===null)if(f)Wi(o,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=fo(e),h!==null){for(n.flags|=128,Wi(o,!1),e=h.updateQueue,n.updateQueue=e,Co(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)um(i,e),i=i.sibling;return w(lt,lt.current&1|2),Me&&qn(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&Tt()>zo&&(n.flags|=128,f=!0,Wi(o,!1),n.lanes=4194304)}else{if(!f)if(e=fo(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,Co(n,e),Wi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Me)return We(n),null}else 2*Tt()-o.renderingStartTime>zo&&i!==536870912&&(n.flags|=128,f=!0,Wi(o,!1),n.lanes=4194304);o.isBackwards?(h.sibling=n.child,n.child=h):(e=o.last,e!==null?e.sibling=h:n.child=h,o.last=h)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Tt(),e.sibling=null,i=lt.current,w(lt,f?i&1|2:i&1),Me&&qn(n,o.treeForkCount),e):(We(n),null);case 22:case 23:return Xt(n),Is(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(i&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),i=n.updateQueue,i!==null&&Co(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),e!==null&&X(tr),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Vn(it),We(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function _S(e,n){switch(zs(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Vn(it),fe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ct(n),null;case 31:if(n.memoizedState!==null){if(Xt(n),n.alternate===null)throw Error(a(340));Jl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Xt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Jl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return X(lt),null;case 4:return fe(),null;case 10:return Vn(n.type),null;case 22:case 23:return Xt(n),Is(),e!==null&&X(tr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Vn(it),null;case 25:return null;default:return null}}function jp(e,n){switch(zs(n),n.tag){case 3:Vn(it),fe();break;case 26:case 27:case 5:ct(n);break;case 4:fe();break;case 31:n.memoizedState!==null&&Xt(n);break;case 13:Xt(n);break;case 19:X(lt);break;case 10:Vn(n.type);break;case 22:case 23:Xt(n),Is(),e!==null&&X(tr);break;case 24:Vn(it)}}function ea(e,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var f=o.next;i=f;do{if((i.tag&e)===e){o=void 0;var h=i.create,b=i.inst;o=h(),b.destroy=o}i=i.next}while(i!==f)}}catch(k){Ge(n,n.return,k)}}function bl(e,n,i){try{var o=n.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var h=f.next;o=h;do{if((o.tag&e)===e){var b=o.inst,k=b.destroy;if(k!==void 0){b.destroy=void 0,f=n;var R=i,Y=k;try{Y()}catch(Q){Ge(f,R,Q)}}}o=o.next}while(o!==h)}}catch(Q){Ge(n,n.return,Q)}}function Lp(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Am(n,i)}catch(o){Ge(e,e.return,o)}}}function Up(e,n,i){i.props=ar(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){Ge(e,n,o)}}function ta(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(f){Ge(e,n,f)}}function An(e,n){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(f){Ge(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Ge(e,n,f)}else i.current=null}function Bp(e){var n=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(f){Ge(e,e.return,f)}}function kc(e,n,i){try{var o=e.stateNode;ew(o,e.type,i,n),o[Dt]=n}catch(f){Ge(e,e.return,f)}}function Hp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function Ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hp(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&&Al(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 Cc(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Un));else if(o!==4&&(o===27&&Al(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(Cc(e,n,i),e=e.sibling;e!==null;)Cc(e,n,i),e=e.sibling}function Ao(e,n,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(o!==4&&(o===27&&Al(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Ao(e,n,i),e=e.sibling;e!==null;)Ao(e,n,i),e=e.sibling}function qp(e){var n=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);wt(n,o,i),n[xt]=e,n[Dt]=i}catch(h){Ge(e,e.return,h)}}var Xn=!1,ut=!1,Ac=!1,Yp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function DS(e,n){if(e=e.containerInfo,Xc=Xo,e=Wh(e),bs(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var f=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{i.nodeType,h.nodeType}catch{i=null;break e}var b=0,k=-1,R=-1,Y=0,Q=0,ee=e,G=null;t:for(;;){for(var P;ee!==i||f!==0&&ee.nodeType!==3||(k=b+f),ee!==h||o!==0&&ee.nodeType!==3||(R=b+o),ee.nodeType===3&&(b+=ee.nodeValue.length),(P=ee.firstChild)!==null;)G=ee,ee=P;for(;;){if(ee===e)break t;if(G===i&&++Y===f&&(k=b),G===h&&++Q===o&&(R=b),(P=ee.nextSibling)!==null)break;ee=G,G=ee.parentNode}ee=P}i=k===-1||R===-1?null:{start:k,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(Qc={focusedElem:e,selectionRange:i},Xo=!1,gt=n;gt!==null;)if(n=gt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,gt=e;else for(;gt!==null;){switch(n=gt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)f=e[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,i=n,f=h.memoizedProps,h=h.memoizedState,o=i.stateNode;try{var pe=ar(i.type,f);e=o.getSnapshotBeforeUpdate(pe,h),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ge(i,i.return,Se)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)$c(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$c(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,gt=e;break}gt=n.return}}function Vp(e,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Zn(e,i),o&4&&ea(5,i);break;case 1:if(Zn(e,i),o&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(b){Ge(i,i.return,b)}else{var f=ar(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(i,i.return,b)}}o&64&&Lp(i),o&512&&ta(i,i.return);break;case 3:if(Zn(e,i),o&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Am(e,n)}catch(b){Ge(i,i.return,b)}}break;case 27:n===null&&o&4&&qp(i);case 26:case 5:Zn(e,i),n===null&&o&4&&Bp(i),o&512&&ta(i,i.return);break;case 12:Zn(e,i);break;case 31:Zn(e,i),o&4&&Ip(e,i);break;case 13:Zn(e,i),o&4&&Pp(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=VS.bind(null,i),uw(e,i))));break;case 22:if(o=i.memoizedState!==null||Xn,!o){n=n!==null&&n.memoizedState!==null||ut,f=Xn;var h=ut;Xn=o,(ut=n)&&!h?Kn(e,i,(i.subtreeFlags&8772)!==0):Zn(e,i),Xn=f,ut=h}break;case 30:break;default:Zn(e,i)}}function Gp(e){var n=e.alternate;n!==null&&(e.alternate=null,Gp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ns(n)),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 et=null,jt=!1;function Qn(e,n,i){for(i=i.child;i!==null;)Fp(e,n,i),i=i.sibling}function Fp(e,n,i){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ot,i)}catch{}switch(i.tag){case 26:ut||An(i,n),Qn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ut||An(i,n);var o=et,f=jt;Al(i.type)&&(et=i.stateNode,jt=!1),Qn(e,n,i),ca(i.stateNode),et=o,jt=f;break;case 5:ut||An(i,n);case 6:if(o=et,f=jt,et=null,Qn(e,n,i),et=o,jt=f,et!==null)if(jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(i.stateNode)}catch(h){Ge(i,n,h)}else try{et.removeChild(i.stateNode)}catch(h){Ge(i,n,h)}break;case 18:et!==null&&(jt?(e=et,Lg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),ai(e)):Lg(et,i.stateNode));break;case 4:o=et,f=jt,et=i.stateNode.containerInfo,jt=!0,Qn(e,n,i),et=o,jt=f;break;case 0:case 11:case 14:case 15:bl(2,i,n),ut||bl(4,i,n),Qn(e,n,i);break;case 1:ut||(An(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Up(i,n,o)),Qn(e,n,i);break;case 21:Qn(e,n,i);break;case 22:ut=(o=ut)||i.memoizedState!==null,Qn(e,n,i),ut=o;break;default:Qn(e,n,i)}}function Ip(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(i){Ge(n,n.return,i)}}}function Pp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(i){Ge(n,n.return,i)}}function MS(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Yp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Yp),n;default:throw Error(a(435,e.tag))}}function To(e,n){var i=MS(e);n.forEach(function(o){if(!i.has(o)){i.add(o);var f=GS.bind(null,e,o);o.then(f,f)}})}function Lt(e,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var f=i[o],h=e,b=n,k=b;e:for(;k!==null;){switch(k.tag){case 27:if(Al(k.type)){et=k.stateNode,jt=!1;break e}break;case 5:et=k.stateNode,jt=!1;break e;case 3:case 4:et=k.stateNode.containerInfo,jt=!0;break e}k=k.return}if(et===null)throw Error(a(160));Fp(h,b,f),et=null,jt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Xp(n,e),n=n.sibling}var xn=null;function Xp(e,n){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(n,e),Ut(e),o&4&&(bl(3,e,e.return),ea(3,e),bl(5,e,e.return));break;case 1:Lt(n,e),Ut(e),o&512&&(ut||i===null||An(i,i.return)),o&64&&Xn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var f=xn;if(Lt(n,e),Ut(e),o&512&&(ut||i===null||An(i,i.return)),o&4){var h=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Oi]||h[xt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),wt(h,o,i),h[xt]=e,pt(h),o=h;break e;case"link":var b=Xg("link","href",f).get(o+(i.href||""));if(b){for(var k=0;k<b.length;k++)if(h=b[k],h.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&h.getAttribute("rel")===(i.rel==null?null:i.rel)&&h.getAttribute("title")===(i.title==null?null:i.title)&&h.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(k,1);break t}}h=f.createElement(o),wt(h,o,i),f.head.appendChild(h);break;case"meta":if(b=Xg("meta","content",f).get(o+(i.content||""))){for(k=0;k<b.length;k++)if(h=b[k],h.getAttribute("content")===(i.content==null?null:""+i.content)&&h.getAttribute("name")===(i.name==null?null:i.name)&&h.getAttribute("property")===(i.property==null?null:i.property)&&h.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&h.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(k,1);break t}}h=f.createElement(o),wt(h,o,i),f.head.appendChild(h);break;default:throw Error(a(468,o))}h[xt]=e,pt(h),o=h}e.stateNode=o}else Qg(f,e.type,e.stateNode);else e.stateNode=Pg(f,o,e.memoizedProps);else h!==o?(h===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):h.count--,o===null?Qg(f,e.type,e.stateNode):Pg(f,o,e.memoizedProps)):o===null&&e.stateNode!==null&&kc(e,e.memoizedProps,i.memoizedProps)}break;case 27:Lt(n,e),Ut(e),o&512&&(ut||i===null||An(i,i.return)),i!==null&&o&4&&kc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Lt(n,e),Ut(e),o&512&&(ut||i===null||An(i,i.return)),e.flags&32){f=e.stateNode;try{Nr(f,"")}catch(pe){Ge(e,e.return,pe)}}o&4&&e.stateNode!=null&&(f=e.memoizedProps,kc(e,f,i!==null?i.memoizedProps:f)),o&1024&&(Ac=!0);break;case 6:if(Lt(n,e),Ut(e),o&4){if(e.stateNode===null)throw Error(a(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(pe){Ge(e,e.return,pe)}}break;case 3:if(Go=null,f=xn,xn=Yo(n.containerInfo),Lt(n,e),xn=f,Ut(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{ai(n.containerInfo)}catch(pe){Ge(e,e.return,pe)}Ac&&(Ac=!1,Qp(e));break;case 4:o=xn,xn=Yo(e.stateNode.containerInfo),Lt(n,e),Ut(e),xn=o;break;case 12:Lt(n,e),Ut(e);break;case 31:Lt(n,e),Ut(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,To(e,o)));break;case 13:Lt(n,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(No=Tt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,To(e,o)));break;case 22:f=e.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,Y=Xn,Q=ut;if(Xn=Y||f,ut=Q||R,Lt(n,e),ut=Q,Xn=Y,Ut(e),o&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(i===null||R||Xn||ut||or(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){R=i=n;try{if(h=R.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{k=R.stateNode;var ee=R.memoizedProps.style,G=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;k.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(pe){Ge(R,R.return,pe)}}}else if(n.tag===6){if(i===null){R=n;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(pe){Ge(R,R.return,pe)}}}else if(n.tag===18){if(i===null){R=n;try{var P=R.stateNode;f?Ug(P,!0):Ug(R.stateNode,!1)}catch(pe){Ge(R,R.return,pe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,To(e,i))));break;case 19:Lt(n,e),Ut(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,To(e,o)));break;case 30:break;case 21:break;default:Lt(n,e),Ut(e)}}function Ut(e){var n=e.flags;if(n&2){try{for(var i,o=e.return;o!==null;){if(Hp(o)){i=o;break}o=o.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,h=Ec(e);Ao(e,h,f);break;case 5:var b=i.stateNode;i.flags&32&&(Nr(b,""),i.flags&=-33);var k=Ec(e);Ao(e,k,b);break;case 3:case 4:var R=i.stateNode.containerInfo,Y=Ec(e);Cc(e,Y,R);break;default:throw Error(a(161))}}catch(Q){Ge(e,e.return,Q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Qp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Vp(e,n.alternate,n),n=n.sibling}function or(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:bl(4,n,n.return),or(n);break;case 1:An(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Up(n,n.return,i),or(n);break;case 27:ca(n.stateNode);case 26:case 5:An(n,n.return),or(n);break;case 22:n.memoizedState===null&&or(n);break;case 30:or(n);break;default:or(n)}e=e.sibling}}function Kn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Kn(f,h,i),ea(4,h);break;case 1:if(Kn(f,h,i),o=h,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Y){Ge(o,o.return,Y)}if(o=h,f=o.updateQueue,f!==null){var k=o.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)Cm(R[f],k)}catch(Y){Ge(o,o.return,Y)}}i&&b&64&&Lp(h),ta(h,h.return);break;case 27:qp(h);case 26:case 5:Kn(f,h,i),i&&o===null&&b&4&&Bp(h),ta(h,h.return);break;case 12:Kn(f,h,i);break;case 31:Kn(f,h,i),i&&b&4&&Ip(f,h);break;case 13:Kn(f,h,i),i&&b&4&&Pp(f,h);break;case 22:h.memoizedState===null&&Kn(f,h,i),ta(h,h.return);break;case 30:break;default:Kn(f,h,i)}n=n.sibling}}function Tc(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Yi(i))}function Oc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Yi(e))}function bn(e,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Zp(e,n,i,o),n=n.sibling}function Zp(e,n,i,o){var f=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n,i,o),f&2048&&ea(9,n);break;case 1:bn(e,n,i,o);break;case 3:bn(e,n,i,o),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Yi(e)));break;case 12:if(f&2048){bn(e,n,i,o),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,k=h.onPostCommit;typeof k=="function"&&k(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Ge(n,n.return,R)}}else bn(e,n,i,o);break;case 31:bn(e,n,i,o);break;case 13:bn(e,n,i,o);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?bn(e,n,i,o):na(e,n):h._visibility&2?bn(e,n,i,o):(h._visibility|=2,Zr(e,n,i,o,(n.subtreeFlags&10256)!==0||!1)),f&2048&&Tc(b,n);break;case 24:bn(e,n,i,o),f&2048&&Oc(n.alternate,n);break;default:bn(e,n,i,o)}}function Zr(e,n,i,o,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,k=i,R=o,Y=b.flags;switch(b.tag){case 0:case 11:case 15:Zr(h,b,k,R,f),ea(8,b);break;case 23:break;case 22:var Q=b.stateNode;b.memoizedState!==null?Q._visibility&2?Zr(h,b,k,R,f):na(h,b):(Q._visibility|=2,Zr(h,b,k,R,f)),f&&Y&2048&&Tc(b.alternate,b);break;case 24:Zr(h,b,k,R,f),f&&Y&2048&&Oc(b.alternate,b);break;default:Zr(h,b,k,R,f)}n=n.sibling}}function na(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,o=n,f=o.flags;switch(o.tag){case 22:na(i,o),f&2048&&Tc(o.alternate,o);break;case 24:na(i,o),f&2048&&Oc(o.alternate,o);break;default:na(i,o)}n=n.sibling}}var la=8192;function Kr(e,n,i){if(e.subtreeFlags&la)for(e=e.child;e!==null;)Kp(e,n,i),e=e.sibling}function Kp(e,n,i){switch(e.tag){case 26:Kr(e,n,i),e.flags&la&&e.memoizedState!==null&&vw(i,xn,e.memoizedState,e.memoizedProps);break;case 5:Kr(e,n,i);break;case 3:case 4:var o=xn;xn=Yo(e.stateNode.containerInfo),Kr(e,n,i),xn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=la,la=16777216,Kr(e,n,i),la=o):Kr(e,n,i));break;default:Kr(e,n,i)}}function $p(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ra(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];gt=o,Wp(o,e)}$p(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jp(e),e=e.sibling}function Jp(e){switch(e.tag){case 0:case 11:case 15:ra(e),e.flags&2048&&bl(9,e,e.return);break;case 3:ra(e);break;case 12:ra(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Oo(e)):ra(e);break;default:ra(e)}}function Oo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];gt=o,Wp(o,e)}$p(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:bl(8,n,n.return),Oo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Oo(n));break;default:Oo(n)}e=e.sibling}}function Wp(e,n){for(;gt!==null;){var i=gt;switch(i.tag){case 0:case 11:case 15:bl(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Yi(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,gt=o;else e:for(i=e;gt!==null;){o=gt;var f=o.sibling,h=o.return;if(Gp(o),o===i){gt=null;break e}if(f!==null){f.return=h,gt=f;break e}gt=h}}}var jS={getCacheForType:function(e){var n=vt(it),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return vt(it).controller.signal}},LS=typeof WeakMap=="function"?WeakMap:Map,Be=0,Qe=null,Ne=null,_e=0,Ve=0,Qt=null,vl=!1,$r=!1,Nc=!1,$n=0,nt=0,Sl=0,ur=0,zc=0,Zt=0,Jr=0,ia=null,Bt=null,Rc=!1,No=0,eg=0,zo=1/0,Ro=null,wl=null,dt=0,kl=null,Wr=null,Jn=0,_c=0,Dc=null,tg=null,aa=0,Mc=null;function Kt(){return(Be&2)!==0&&_e!==0?_e&-_e:U.T!==null?qc():yh()}function ng(){if(Zt===0)if((_e&536870912)===0||Me){var e=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),Zt=e}else Zt=536870912;return e=Pt.current,e!==null&&(e.flags|=32),Zt}function Ht(e,n,i){(e===Qe&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(ei(e,0),El(e,_e,Zt,!1)),Ti(e,i),((Be&2)===0||e!==Qe)&&(e===Qe&&((Be&2)===0&&(ur|=i),nt===4&&El(e,_e,Zt,!1)),Tn(e))}function lg(e,n,i){if((Be&6)!==0)throw Error(a(327));var o=!i&&(n&127)===0&&(n&e.expiredLanes)===0||Ai(e,n),f=o?HS(e,n):Lc(e,n,!0),h=o;do{if(f===0){$r&&!o&&El(e,n,0,!1);break}else{if(i=e.current.alternate,h&&!US(i)){f=Lc(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var k=e;f=ia;var R=k.current.memoizedState.isDehydrated;if(R&&(ei(k,b).flags|=256),b=Lc(k,b,!1),b!==2){if(Nc&&!R){k.errorRecoveryDisabledLanes|=h,ur|=h,f=4;break e}h=Bt,Bt=f,h!==null&&(Bt===null?Bt=h:Bt.push.apply(Bt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){ei(e,0),El(e,n,0,!0);break}e:{switch(o=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:El(o,n,Zt,!vl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=No+300-Tt(),10<f)){if(El(o,n,Zt,!vl),qa(o,0,!0)!==0)break e;Jn=n,o.timeoutHandle=Mg(rg.bind(null,o,i,Bt,Ro,Rc,n,Zt,ur,Jr,vl,h,"Throttled",-0,0),f);break e}rg(o,i,Bt,Ro,Rc,n,Zt,ur,Jr,vl,h,null,-0,0)}}break}while(!0);Tn(e)}function rg(e,n,i,o,f,h,b,k,R,Y,Q,ee,G,P){if(e.timeoutHandle=-1,ee=n.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Un},Kp(n,h,ee);var pe=(h&62914560)===h?No-Tt():(h&4194048)===h?eg-Tt():0;if(pe=Sw(ee,pe),pe!==null){Jn=h,e.cancelPendingCommit=pe(dg.bind(null,e,n,h,i,o,f,b,k,R,Q,ee,null,G,P)),El(e,h,b,!Y);return}}dg(e,n,h,i,o,f,b,k,R)}function US(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var f=i[o],h=f.getSnapshot;f=f.value;try{if(!Ft(h(),f))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function El(e,n,i,o){n&=~zc,n&=~ur,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var f=n;0<f;){var h=31-Xe(f),b=1<<h;o[h]=-1,f&=~b}i!==0&&mh(e,i,n)}function _o(){return(Be&6)===0?(oa(0),!1):!0}function jc(){if(Ne!==null){if(Ve===0)var e=Ne.return;else e=Ne,Yn=Wl=null,$s(e),Fr=null,Gi=0,e=Ne;for(;e!==null;)jp(e.alternate,e),e=e.return;Ne=null}}function ei(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,lw(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Jn=0,jc(),Qe=e,Ne=i=Hn(e.current,null),_e=n,Ve=0,Qt=null,vl=!1,$r=Ai(e,n),Nc=!1,Jr=Zt=zc=ur=Sl=nt=0,Bt=ia=null,Rc=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var f=31-Xe(o),h=1<<f;n|=e[f],o&=~h}return $n=n,Ja(),i}function ig(e,n){Ee=null,U.H=$i,n===Gr||n===ao?(n=Sm(),Ve=3):n===Hs?(n=Sm(),Ve=4):Ve=n===hc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Qt=n,Ne===null&&(nt=1,So(e,on(n,e.current)))}function ag(){var e=Pt.current;return e===null?!0:(_e&4194048)===_e?fn===null:(_e&62914560)===_e||(_e&536870912)!==0?e===fn:!1}function og(){var e=U.H;return U.H=$i,e===null?$i:e}function ug(){var e=U.A;return U.A=jS,e}function Do(){nt=4,vl||(_e&4194048)!==_e&&Pt.current!==null||($r=!0),(Sl&134217727)===0&&(ur&134217727)===0||Qe===null||El(Qe,_e,Zt,!1)}function Lc(e,n,i){var o=Be;Be|=2;var f=og(),h=ug();(Qe!==e||_e!==n)&&(Ro=null,ei(e,n)),n=!1;var b=nt;e:do try{if(Ve!==0&&Ne!==null){var k=Ne,R=Qt;switch(Ve){case 8:jc(),b=6;break e;case 3:case 2:case 9:case 6:Pt.current===null&&(n=!0);var Y=Ve;if(Ve=0,Qt=null,ti(e,k,R,Y),i&&$r){b=0;break e}break;default:Y=Ve,Ve=0,Qt=null,ti(e,k,R,Y)}}BS(),b=nt;break}catch(Q){ig(e,Q)}while(!0);return n&&e.shellSuspendCounter++,Yn=Wl=null,Be=o,U.H=f,U.A=h,Ne===null&&(Qe=null,_e=0,Ja()),b}function BS(){for(;Ne!==null;)sg(Ne)}function HS(e,n){var i=Be;Be|=2;var o=og(),f=ug();Qe!==e||_e!==n?(Ro=null,zo=Tt()+500,ei(e,n)):$r=Ai(e,n);e:do try{if(Ve!==0&&Ne!==null){n=Ne;var h=Qt;t:switch(Ve){case 1:Ve=0,Qt=null,ti(e,n,h,1);break;case 2:case 9:if(bm(h)){Ve=0,Qt=null,cg(n);break}n=function(){Ve!==2&&Ve!==9||Qe!==e||(Ve=7),Tn(e)},h.then(n,n);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:bm(h)?(Ve=0,Qt=null,cg(n)):(Ve=0,Qt=null,ti(e,n,h,7));break;case 5:var b=null;switch(Ne.tag){case 26:b=Ne.memoizedState;case 5:case 27:var k=Ne;if(b?Zg(b):k.stateNode.complete){Ve=0,Qt=null;var R=k.sibling;if(R!==null)Ne=R;else{var Y=k.return;Y!==null?(Ne=Y,Mo(Y)):Ne=null}break t}}Ve=0,Qt=null,ti(e,n,h,5);break;case 6:Ve=0,Qt=null,ti(e,n,h,6);break;case 8:jc(),nt=6;break e;default:throw Error(a(462))}}qS();break}catch(Q){ig(e,Q)}while(!0);return Yn=Wl=null,U.H=o,U.A=f,Be=i,Ne!==null?0:(Qe=null,_e=0,Ja(),nt)}function qS(){for(;Ne!==null&&!Zu();)sg(Ne)}function sg(e){var n=Dp(e.alternate,e,$n);e.memoizedProps=e.pendingProps,n===null?Mo(e):Ne=n}function cg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Tp(i,n,n.pendingProps,n.type,void 0,_e);break;case 11:n=Tp(i,n,n.pendingProps,n.type.render,n.ref,_e);break;case 5:$s(n);default:jp(i,n),n=Ne=um(n,$n),n=Dp(i,n,$n)}e.memoizedProps=e.pendingProps,n===null?Mo(e):Ne=n}function ti(e,n,i,o){Yn=Wl=null,$s(n),Fr=null,Gi=0;var f=n.return;try{if(OS(e,f,n,i,_e)){nt=1,So(e,on(i,e.current)),Ne=null;return}}catch(h){if(f!==null)throw Ne=f,h;nt=1,So(e,on(i,e.current)),Ne=null;return}n.flags&32768?(Me||o===1?e=!0:$r||(_e&536870912)!==0?e=!1:(vl=e=!0,(o===2||o===9||o===3||o===6)&&(o=Pt.current,o!==null&&o.tag===13&&(o.flags|=16384))),fg(n,e)):Mo(n)}function Mo(e){var n=e;do{if((n.flags&32768)!==0){fg(n,vl);return}e=n.return;var i=RS(n.alternate,n,$n);if(i!==null){Ne=i;return}if(n=n.sibling,n!==null){Ne=n;return}Ne=n=e}while(n!==null);nt===0&&(nt=5)}function fg(e,n){do{var i=_S(e.alternate,e);if(i!==null){i.flags&=32767,Ne=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=i}while(e!==null);nt=6,Ne=null}function dg(e,n,i,o,f,h,b,k,R){e.cancelPendingCommit=null;do jo();while(dt!==0);if((Be&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=Es,b0(e,i,h,b,k,R),e===Qe&&(Ne=Qe=null,_e=0),Wr=n,kl=e,Jn=i,_c=h,Dc=f,tg=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FS(we,function(){return yg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,f=Z.p,Z.p=2,b=Be,Be|=4;try{DS(e,n,i)}finally{Be=b,Z.p=f,U.T=o}}dt=1,hg(),mg(),pg()}}function hg(){if(dt===1){dt=0;var e=kl,n=Wr,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=U.T,U.T=null;var o=Z.p;Z.p=2;var f=Be;Be|=4;try{Xp(n,e);var h=Qc,b=Wh(e.containerInfo),k=h.focusedElem,R=h.selectionRange;if(b!==k&&k&&k.ownerDocument&&Jh(k.ownerDocument.documentElement,k)){if(R!==null&&bs(k)){var Y=R.start,Q=R.end;if(Q===void 0&&(Q=Y),"selectionStart"in k)k.selectionStart=Y,k.selectionEnd=Math.min(Q,k.value.length);else{var ee=k.ownerDocument||document,G=ee&&ee.defaultView||window;if(G.getSelection){var P=G.getSelection(),pe=k.textContent.length,Se=Math.min(R.start,pe),Pe=R.end===void 0?Se:Math.min(R.end,pe);!P.extend&&Se>Pe&&(b=Pe,Pe=Se,Se=b);var B=$h(k,Se),j=$h(k,Pe);if(B&&j&&(P.rangeCount!==1||P.anchorNode!==B.node||P.anchorOffset!==B.offset||P.focusNode!==j.node||P.focusOffset!==j.offset)){var q=ee.createRange();q.setStart(B.node,B.offset),P.removeAllRanges(),Se>Pe?(P.addRange(q),P.extend(j.node,j.offset)):(q.setEnd(j.node,j.offset),P.addRange(q))}}}}for(ee=[],P=k;P=P.parentNode;)P.nodeType===1&&ee.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<ee.length;k++){var $=ee[k];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}Xo=!!Xc,Qc=Xc=null}finally{Be=f,Z.p=o,U.T=i}}e.current=n,dt=2}}function mg(){if(dt===2){dt=0;var e=kl,n=Wr,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=U.T,U.T=null;var o=Z.p;Z.p=2;var f=Be;Be|=4;try{Vp(e,n.alternate,n)}finally{Be=f,Z.p=o,U.T=i}}dt=3}}function pg(){if(dt===4||dt===3){dt=0,Ku();var e=kl,n=Wr,i=Jn,o=tg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,Wr=kl=null,gg(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(wl=null),es(i),n=n.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Ot,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=U.T,f=Z.p,Z.p=2,U.T=null;try{for(var h=e.onRecoverableError,b=0;b<o.length;b++){var k=o[b];h(k.value,{componentStack:k.stack})}}finally{U.T=n,Z.p=f}}(Jn&3)!==0&&jo(),Tn(e),f=e.pendingLanes,(i&261930)!==0&&(f&42)!==0?e===Mc?aa++:(aa=0,Mc=e):aa=0,oa(0)}}function gg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Yi(n)))}function jo(){return hg(),mg(),pg(),yg()}function yg(){if(dt!==5)return!1;var e=kl,n=_c;_c=0;var i=es(Jn),o=U.T,f=Z.p;try{Z.p=32>i?32:i,U.T=null,i=Dc,Dc=null;var h=kl,b=Jn;if(dt=0,Wr=kl=null,Jn=0,(Be&6)!==0)throw Error(a(331));var k=Be;if(Be|=4,Jp(h.current),Zp(h,h.current,b,i),Be=k,oa(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Ot,h)}catch{}return!0}finally{Z.p=f,U.T=o,gg(e,n)}}function xg(e,n,i){n=on(i,n),n=dc(e.stateNode,n,2),e=gl(e,n,2),e!==null&&(Ti(e,2),Tn(e))}function Ge(e,n,i){if(e.tag===3)xg(e,e,i);else for(;n!==null;){if(n.tag===3){xg(n,e,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(wl===null||!wl.has(o))){e=on(i,e),i=bp(2),o=gl(n,i,2),o!==null&&(vp(i,o,n,e),Ti(o,2),Tn(o));break}}n=n.return}}function Uc(e,n,i){var o=e.pingCache;if(o===null){o=e.pingCache=new LS;var f=new Set;o.set(n,f)}else f=o.get(n),f===void 0&&(f=new Set,o.set(n,f));f.has(i)||(Nc=!0,f.add(i),e=YS.bind(null,e,n,i),n.then(e,e))}function YS(e,n,i){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Qe===e&&(_e&i)===i&&(nt===4||nt===3&&(_e&62914560)===_e&&300>Tt()-No?(Be&2)===0&&ei(e,0):zc|=i,Jr===_e&&(Jr=0)),Tn(e)}function bg(e,n){n===0&&(n=hh()),e=Kl(e,n),e!==null&&(Ti(e,n),Tn(e))}function VS(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),bg(e,i)}function GS(e,n){var i=0;switch(e.tag){case 31:case 13:var o=e.stateNode,f=e.memoizedState;f!==null&&(i=f.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),bg(e,i)}function FS(e,n){return wr(e,n)}var Lo=null,ni=null,Bc=!1,Uo=!1,Hc=!1,Cl=0;function Tn(e){e!==ni&&e.next===null&&(ni===null?Lo=ni=e:ni=ni.next=e),Uo=!0,Bc||(Bc=!0,PS())}function oa(e,n){if(!Hc&&Uo){Hc=!0;do for(var i=!1,o=Lo;o!==null;){if(e!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var b=o.suspendedLanes,k=o.pingedLanes;h=(1<<31-Xe(42|e)+1)-1,h&=f&~(b&~k),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(i=!0,kg(o,h))}else h=_e,h=qa(o,o===Qe?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Ai(o,h)||(i=!0,kg(o,h));o=o.next}while(i);Hc=!1}}function IS(){vg()}function vg(){Uo=Bc=!1;var e=0;Cl!==0&&nw()&&(e=Cl);for(var n=Tt(),i=null,o=Lo;o!==null;){var f=o.next,h=Sg(o,n);h===0?(o.next=null,i===null?Lo=f:i.next=f,f===null&&(ni=i)):(i=o,(e!==0||(h&3)!==0)&&(Uo=!0)),o=f}dt!==0&&dt!==5||oa(e),Cl!==0&&(Cl=0)}function Sg(e,n){for(var i=e.suspendedLanes,o=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Xe(h),k=1<<b,R=f[b];R===-1?((k&i)===0||(k&o)!==0)&&(f[b]=x0(k,n)):R<=n&&(e.expiredLanes|=k),h&=~k}if(n=Qe,i=_e,i=qa(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===n&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ci(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Ai(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(o!==null&&Ci(o),es(i)){case 2:case 8:i=ce;break;case 32:i=we;break;case 268435456:i=He;break;default:i=we}return o=wg.bind(null,e),i=wr(i,o),e.callbackPriority=n,e.callbackNode=i,n}return o!==null&&o!==null&&Ci(o),e.callbackPriority=2,e.callbackNode=null,2}function wg(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(jo()&&e.callbackNode!==i)return null;var o=_e;return o=qa(e,e===Qe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(lg(e,o,n),Sg(e,Tt()),e.callbackNode!=null&&e.callbackNode===i?wg.bind(null,e):null)}function kg(e,n){if(jo())return null;lg(e,n,!0)}function PS(){rw(function(){(Be&6)!==0?wr(K,IS):vg()})}function qc(){if(Cl===0){var e=Yr;e===0&&(e=Ua,Ua<<=1,(Ua&261888)===0&&(Ua=256)),Cl=e}return Cl}function Eg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fa(""+e)}function Cg(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function XS(e,n,i,o,f){if(n==="submit"&&i&&i.stateNode===f){var h=Eg((f[Dt]||null).action),b=o.submitter;b&&(n=(n=b[Dt]||null)?Eg(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var k=new Qa("action","action",null,o,f);e.push({event:k,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Cl!==0){var R=b?Cg(f,b):new FormData(f);ac(i,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(k.preventDefault(),R=b?Cg(f,b):new FormData(f),ac(i,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var Yc=0;Yc<ks.length;Yc++){var Vc=ks[Yc],QS=Vc.toLowerCase(),ZS=Vc[0].toUpperCase()+Vc.slice(1);yn(QS,"on"+ZS)}yn(nm,"onAnimationEnd"),yn(lm,"onAnimationIteration"),yn(rm,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(fS,"onTransitionRun"),yn(dS,"onTransitionStart"),yn(hS,"onTransitionCancel"),yn(im,"onTransitionEnd"),Tr("onMouseEnter",["mouseout","mouseover"]),Tr("onMouseLeave",["mouseout","mouseover"]),Tr("onPointerEnter",["pointerout","pointerover"]),Tr("onPointerLeave",["pointerout","pointerover"]),Pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ua="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(" "),KS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ua));function Ag(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],f=o.event;o=o.listeners;e:{var h=void 0;if(n)for(var b=o.length-1;0<=b;b--){var k=o[b],R=k.instance,Y=k.currentTarget;if(k=k.listener,R!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Y;try{h(f)}catch(Q){$a(Q)}f.currentTarget=null,h=R}else for(b=0;b<o.length;b++){if(k=o[b],R=k.instance,Y=k.currentTarget,k=k.listener,R!==h&&f.isPropagationStopped())break e;h=k,f.currentTarget=Y;try{h(f)}catch(Q){$a(Q)}f.currentTarget=null,h=R}}}}function ze(e,n){var i=n[ts];i===void 0&&(i=n[ts]=new Set);var o=e+"__bubble";i.has(o)||(Tg(n,e,2,!1),i.add(o))}function Gc(e,n,i){var o=0;n&&(o|=4),Tg(i,e,o,n)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function Fc(e){if(!e[Bo]){e[Bo]=!0,vh.forEach(function(i){i!=="selectionchange"&&(KS.has(i)||Gc(i,!1,e),Gc(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Bo]||(n[Bo]=!0,Gc("selectionchange",!1,n))}}function Tg(e,n,i,o){switch(ny(n)){case 2:var f=Ew;break;case 8:f=Cw;break;default:f=af}i=f.bind(null,n,i,e),f=void 0,!cs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),o?f!==void 0?e.addEventListener(n,i,{capture:!0,passive:f}):e.addEventListener(n,i,!0):f!==void 0?e.addEventListener(n,i,{passive:f}):e.addEventListener(n,i,!1)}function Ic(e,n,i,o,f){var h=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var k=o.stateNode.containerInfo;if(k===f)break;if(b===4)for(b=o.return;b!==null;){var R=b.tag;if((R===3||R===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;k!==null;){if(b=Er(k),b===null)return;if(R=b.tag,R===5||R===6||R===26||R===27){o=h=b;continue e}k=k.parentNode}}o=o.return}_h(function(){var Y=h,Q=us(i),ee=[];e:{var G=am.get(e);if(G!==void 0){var P=Qa,pe=e;switch(e){case"keypress":if(Pa(i)===0)break e;case"keydown":case"keyup":P=G0;break;case"focusin":pe="focus",P=ms;break;case"focusout":pe="blur",P=ms;break;case"beforeblur":case"afterblur":P=ms;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=R0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=P0;break;case nm:case lm:case rm:P=M0;break;case im:P=Q0;break;case"scroll":case"scrollend":P=N0;break;case"wheel":P=K0;break;case"copy":case"cut":case"paste":P=L0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=Uh;break;case"toggle":case"beforetoggle":P=J0}var Se=(n&4)!==0,Pe=!Se&&(e==="scroll"||e==="scrollend"),B=Se?G!==null?G+"Capture":null:G;Se=[];for(var j=Y,q;j!==null;){var $=j;if(q=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||q===null||B===null||($=zi(j,B),$!=null&&Se.push(sa(j,$,q))),Pe)break;j=j.return}0<Se.length&&(G=new P(G,pe,null,i,Q),ee.push({event:G,listeners:Se}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",G&&i!==os&&(pe=i.relatedTarget||i.fromElement)&&(Er(pe)||pe[kr]))break e;if((P||G)&&(G=Q.window===Q?Q:(G=Q.ownerDocument)?G.defaultView||G.parentWindow:window,P?(pe=i.relatedTarget||i.toElement,P=Y,pe=pe?Er(pe):null,pe!==null&&(Pe=s(pe),Se=pe.tag,pe!==Pe||Se!==5&&Se!==27&&Se!==6)&&(pe=null)):(P=null,pe=Y),P!==pe)){if(Se=jh,$="onMouseLeave",B="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(Se=Uh,$="onPointerLeave",B="onPointerEnter",j="pointer"),Pe=P==null?G:Ni(P),q=pe==null?G:Ni(pe),G=new Se($,j+"leave",P,i,Q),G.target=Pe,G.relatedTarget=q,$=null,Er(Q)===Y&&(Se=new Se(B,j+"enter",pe,i,Q),Se.target=q,Se.relatedTarget=Pe,$=Se),Pe=$,P&&pe)t:{for(Se=$S,B=P,j=pe,q=0,$=B;$;$=Se($))q++;$=0;for(var xe=j;xe;xe=Se(xe))$++;for(;0<q-$;)B=Se(B),q--;for(;0<$-q;)j=Se(j),$--;for(;q--;){if(B===j||j!==null&&B===j.alternate){Se=B;break t}B=Se(B),j=Se(j)}Se=null}else Se=null;P!==null&&Og(ee,G,P,Se,!1),pe!==null&&Pe!==null&&Og(ee,Pe,pe,Se,!0)}}e:{if(G=Y?Ni(Y):window,P=G.nodeName&&G.nodeName.toLowerCase(),P==="select"||P==="input"&&G.type==="file")var Le=Ih;else if(Gh(G))if(Ph)Le=uS;else{Le=aS;var ye=iS}else P=G.nodeName,!P||P.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?Y&&as(Y.elementType)&&(Le=Ih):Le=oS;if(Le&&(Le=Le(e,Y))){Fh(ee,Le,i,Q);break e}ye&&ye(e,G,Y),e==="focusout"&&Y&&G.type==="number"&&Y.memoizedProps.value!=null&&is(G,"number",G.value)}switch(ye=Y?Ni(Y):window,e){case"focusin":(Gh(ye)||ye.contentEditable==="true")&&(Dr=ye,vs=Y,Bi=null);break;case"focusout":Bi=vs=Dr=null;break;case"mousedown":Ss=!0;break;case"contextmenu":case"mouseup":case"dragend":Ss=!1,em(ee,i,Q);break;case"selectionchange":if(cS)break;case"keydown":case"keyup":em(ee,i,Q)}var Ce;if(gs)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else _r?Yh(e,i)&&(De="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(De="onCompositionStart");De&&(Bh&&i.locale!=="ko"&&(_r||De!=="onCompositionStart"?De==="onCompositionEnd"&&_r&&(Ce=Dh()):(sl=Q,fs="value"in sl?sl.value:sl.textContent,_r=!0)),ye=Ho(Y,De),0<ye.length&&(De=new Lh(De,e,null,i,Q),ee.push({event:De,listeners:ye}),Ce?De.data=Ce:(Ce=Vh(i),Ce!==null&&(De.data=Ce)))),(Ce=eS?tS(e,i):nS(e,i))&&(De=Ho(Y,"onBeforeInput"),0<De.length&&(ye=new Lh("onBeforeInput","beforeinput",null,i,Q),ee.push({event:ye,listeners:De}),ye.data=Ce)),XS(ee,e,Y,i,Q)}Ag(ee,n)})}function sa(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ho(e,n){for(var i=n+"Capture",o=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=zi(e,i),f!=null&&o.unshift(sa(e,f,h)),f=zi(e,n),f!=null&&o.push(sa(e,f,h))),e.tag===3)return o;e=e.return}return[]}function $S(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Og(e,n,i,o,f){for(var h=n._reactName,b=[];i!==null&&i!==o;){var k=i,R=k.alternate,Y=k.stateNode;if(k=k.tag,R!==null&&R===o)break;k!==5&&k!==26&&k!==27||Y===null||(R=Y,f?(Y=zi(i,h),Y!=null&&b.unshift(sa(i,Y,R))):f||(Y=zi(i,h),Y!=null&&b.push(sa(i,Y,R)))),i=i.return}b.length!==0&&e.push({event:n,listeners:b})}var JS=/\r\n?/g,WS=/\u0000|\uFFFD/g;function Ng(e){return(typeof e=="string"?e:""+e).replace(JS,`
49
+ `).replace(WS,"")}function zg(e,n){return n=Ng(n),Ng(e)===n}function Ie(e,n,i,o,f,h){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Nr(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Nr(e,""+o);break;case"className":Va(e,"class",o);break;case"tabIndex":Va(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Va(e,i,o);break;case"style":zh(e,o,h);break;case"data":if(n!=="object"){Va(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Fa(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"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 h=="function"&&(i==="formAction"?(n!=="input"&&Ie(e,n,"name",f.name,f,null),Ie(e,n,"formEncType",f.formEncType,f,null),Ie(e,n,"formMethod",f.formMethod,f,null),Ie(e,n,"formTarget",f.formTarget,f,null)):(Ie(e,n,"encType",f.encType,f,null),Ie(e,n,"method",f.method,f,null),Ie(e,n,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=Fa(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=Un);break;case"onScroll":o!=null&&ze("scroll",e);break;case"onScrollEnd":o!=null&&ze("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=Fa(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":ze("beforetoggle",e),ze("toggle",e),Ya(e,"popover",o);break;case"xlinkActuate":Ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ln(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ln(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ln(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ln(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ya(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=T0.get(i)||i,Ya(e,i,o))}}function Pc(e,n,i,o,f,h){switch(i){case"style":zh(e,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Nr(e,o):(typeof o=="number"||typeof o=="bigint")&&Nr(e,""+o);break;case"onScroll":o!=null&&ze("scroll",e);break;case"onScrollEnd":o!=null&&ze("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Sh.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),n=i.slice(2,f?i.length-7:void 0),h=e[Dt]||null,h=h!=null?h[i]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof o=="function")){typeof h!="function"&&h!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,o,f);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):Ya(e,i,o)}}}function wt(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ze("error",e),ze("load",e);var o=!1,f=!1,h;for(h in i)if(i.hasOwnProperty(h)){var b=i[h];if(b!=null)switch(h){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ie(e,n,h,b,i,null)}}f&&Ie(e,n,"srcSet",i.srcSet,i,null),o&&Ie(e,n,"src",i.src,i,null);return;case"input":ze("invalid",e);var k=h=b=f=null,R=null,Y=null;for(o in i)if(i.hasOwnProperty(o)){var Q=i[o];if(Q!=null)switch(o){case"name":f=Q;break;case"type":b=Q;break;case"checked":R=Q;break;case"defaultChecked":Y=Q;break;case"value":h=Q;break;case"defaultValue":k=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,n));break;default:Ie(e,n,o,Q,i,null)}}Ah(e,h,k,R,Y,b,f,!1);return;case"select":ze("invalid",e),o=b=h=null;for(f in i)if(i.hasOwnProperty(f)&&(k=i[f],k!=null))switch(f){case"value":h=k;break;case"defaultValue":b=k;break;case"multiple":o=k;default:Ie(e,n,f,k,i,null)}n=h,i=b,e.multiple=!!o,n!=null?Or(e,!!o,n,!1):i!=null&&Or(e,!!o,i,!0);return;case"textarea":ze("invalid",e),h=f=o=null;for(b in i)if(i.hasOwnProperty(b)&&(k=i[b],k!=null))switch(b){case"value":o=k;break;case"defaultValue":f=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(a(91));break;default:Ie(e,n,b,k,i,null)}Oh(e,o,f,h);return;case"option":for(R in i)if(i.hasOwnProperty(R)&&(o=i[R],o!=null))switch(R){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ie(e,n,R,o,i,null)}return;case"dialog":ze("beforetoggle",e),ze("toggle",e),ze("cancel",e),ze("close",e);break;case"iframe":case"object":ze("load",e);break;case"video":case"audio":for(o=0;o<ua.length;o++)ze(ua[o],e);break;case"image":ze("error",e),ze("load",e);break;case"details":ze("toggle",e);break;case"embed":case"source":case"link":ze("error",e),ze("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(Y in i)if(i.hasOwnProperty(Y)&&(o=i[Y],o!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ie(e,n,Y,o,i,null)}return;default:if(as(n)){for(Q in i)i.hasOwnProperty(Q)&&(o=i[Q],o!==void 0&&Pc(e,n,Q,o,i,void 0));return}}for(k in i)i.hasOwnProperty(k)&&(o=i[k],o!=null&&Ie(e,n,k,o,i,null))}function ew(e,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,k=null,R=null,Y=null,Q=null;for(P in i){var ee=i[P];if(i.hasOwnProperty(P)&&ee!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":R=ee;default:o.hasOwnProperty(P)||Ie(e,n,P,null,o,ee)}}for(var G in o){var P=o[G];if(ee=i[G],o.hasOwnProperty(G)&&(P!=null||ee!=null))switch(G){case"type":h=P;break;case"name":f=P;break;case"checked":Y=P;break;case"defaultChecked":Q=P;break;case"value":b=P;break;case"defaultValue":k=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,n));break;default:P!==ee&&Ie(e,n,G,P,o,ee)}}rs(e,b,k,R,Y,Q,h,f);return;case"select":P=b=k=G=null;for(h in i)if(R=i[h],i.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":P=R;default:o.hasOwnProperty(h)||Ie(e,n,h,null,o,R)}for(f in o)if(h=o[f],R=i[f],o.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":G=h;break;case"defaultValue":k=h;break;case"multiple":b=h;default:h!==R&&Ie(e,n,f,h,o,R)}n=k,i=b,o=P,G!=null?Or(e,!!i,G,!1):!!o!=!!i&&(n!=null?Or(e,!!i,n,!0):Or(e,!!i,i?[]:"",!1));return;case"textarea":P=G=null;for(k in i)if(f=i[k],i.hasOwnProperty(k)&&f!=null&&!o.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ie(e,n,k,null,o,f)}for(b in o)if(f=o[b],h=i[b],o.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":G=f;break;case"defaultValue":P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Ie(e,n,b,f,o,h)}Th(e,G,P);return;case"option":for(var pe in i)if(G=i[pe],i.hasOwnProperty(pe)&&G!=null&&!o.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:Ie(e,n,pe,null,o,G)}for(R in o)if(G=o[R],P=i[R],o.hasOwnProperty(R)&&G!==P&&(G!=null||P!=null))switch(R){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:Ie(e,n,R,G,o,P)}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 Se in i)G=i[Se],i.hasOwnProperty(Se)&&G!=null&&!o.hasOwnProperty(Se)&&Ie(e,n,Se,null,o,G);for(Y in o)if(G=o[Y],P=i[Y],o.hasOwnProperty(Y)&&G!==P&&(G!=null||P!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:Ie(e,n,Y,G,o,P)}return;default:if(as(n)){for(var Pe in i)G=i[Pe],i.hasOwnProperty(Pe)&&G!==void 0&&!o.hasOwnProperty(Pe)&&Pc(e,n,Pe,void 0,o,G);for(Q in o)G=o[Q],P=i[Q],!o.hasOwnProperty(Q)||G===P||G===void 0&&P===void 0||Pc(e,n,Q,G,o,P);return}}for(var B in i)G=i[B],i.hasOwnProperty(B)&&G!=null&&!o.hasOwnProperty(B)&&Ie(e,n,B,null,o,G);for(ee in o)G=o[ee],P=i[ee],!o.hasOwnProperty(ee)||G===P||G==null&&P==null||Ie(e,n,ee,G,o,P)}function Rg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var f=i[o],h=f.transferSize,b=f.initiatorType,k=f.duration;if(h&&k&&Rg(b)){for(b=0,k=f.responseEnd,o+=1;o<i.length;o++){var R=i[o],Y=R.startTime;if(Y>k)break;var Q=R.transferSize,ee=R.initiatorType;Q&&Rg(ee)&&(R=R.responseEnd,b+=Q*(R<k?1:(k-Y)/(R-Y)))}if(--o,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xc=null,Qc=null;function qo(e){return e.nodeType===9?e:e.ownerDocument}function _g(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 Dg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Zc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Kc=null;function nw(){var e=window.event;return e&&e.type==="popstate"?e===Kc?!1:(Kc=e,!0):(Kc=null,!1)}var Mg=typeof setTimeout=="function"?setTimeout:void 0,lw=typeof clearTimeout=="function"?clearTimeout:void 0,jg=typeof Promise=="function"?Promise:void 0,rw=typeof queueMicrotask=="function"?queueMicrotask:typeof jg<"u"?function(e){return jg.resolve(null).then(e).catch(iw)}:Mg;function iw(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function Lg(e,n){var i=n,o=0;do{var f=i.nextSibling;if(e.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(o===0){e.removeChild(f),ai(n);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")ca(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,ca(i);for(var h=i.firstChild;h;){var b=h.nextSibling,k=h.nodeName;h[Oi]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&h.rel.toLowerCase()==="stylesheet"||i.removeChild(h),h=b}}else i==="body"&&ca(e.ownerDocument.body);i=f}while(i);ai(n)}function Ug(e,n){var i=e;e=0;do{var o=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=o}while(i)}function $c(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":$c(i),ns(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function aw(e,n,i,o){for(;e.nodeType===1;){var f=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Oi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function ow(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=dn(e.nextSibling),e===null))return null;return e}function Bg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function Jc(e){return e.data==="$?"||e.data==="$~"}function Wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function uw(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var o=function(){n(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var ef=null;function Hg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return dn(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function qg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Yg(e,n,i){switch(n=qo(i),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ca(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ns(e)}var hn=new Map,Vg=new Set;function Yo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wn=Z.d;Z.d={f:sw,r:cw,D:fw,C:dw,L:hw,m:mw,X:gw,S:pw,M:yw};function sw(){var e=Wn.f(),n=_o();return e||n}function cw(e){var n=Cr(e);n!==null&&n.tag===5&&n.type==="form"?ip(n):Wn.r(e)}var li=typeof document>"u"?null:document;function Gg(e,n,i){var o=li;if(o&&typeof n=="string"&&n){var f=rn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Vg.has(f)||(Vg.add(f),e={rel:e,crossOrigin:i,href:n},o.querySelector(f)===null&&(n=o.createElement("link"),wt(n,"link",e),pt(n),o.head.appendChild(n)))}}function fw(e){Wn.D(e),Gg("dns-prefetch",e,null)}function dw(e,n){Wn.C(e,n),Gg("preconnect",e,n)}function hw(e,n,i){Wn.L(e,n,i);var o=li;if(o&&e&&n){var f='link[rel="preload"][as="'+rn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+rn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+rn(i.imageSizes)+'"]')):f+='[href="'+rn(e)+'"]';var h=f;switch(n){case"style":h=ri(e);break;case"script":h=ii(e)}hn.has(h)||(e=g({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),hn.set(h,e),o.querySelector(f)!==null||n==="style"&&o.querySelector(fa(h))||n==="script"&&o.querySelector(da(h))||(n=o.createElement("link"),wt(n,"link",e),pt(n),o.head.appendChild(n)))}}function mw(e,n){Wn.m(e,n);var i=li;if(i&&e){var o=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+rn(o)+'"][href="'+rn(e)+'"]',h=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ii(e)}if(!hn.has(h)&&(e=g({rel:"modulepreload",href:e},n),hn.set(h,e),i.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(da(h)))return}o=i.createElement("link"),wt(o,"link",e),pt(o),i.head.appendChild(o)}}}function pw(e,n,i){Wn.S(e,n,i);var o=li;if(o&&e){var f=Ar(o).hoistableStyles,h=ri(e);n=n||"default";var b=f.get(h);if(!b){var k={loading:0,preload:null};if(b=o.querySelector(fa(h)))k.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},i),(i=hn.get(h))&&tf(e,i);var R=b=o.createElement("link");pt(R),wt(R,"link",e),R._p=new Promise(function(Y,Q){R.onload=Y,R.onerror=Q}),R.addEventListener("load",function(){k.loading|=1}),R.addEventListener("error",function(){k.loading|=2}),k.loading|=4,Vo(b,n,o)}b={type:"stylesheet",instance:b,count:1,state:k},f.set(h,b)}}}function gw(e,n){Wn.X(e,n);var i=li;if(i&&e){var o=Ar(i).hoistableScripts,f=ii(e),h=o.get(f);h||(h=i.querySelector(da(f)),h||(e=g({src:e,async:!0},n),(n=hn.get(f))&&nf(e,n),h=i.createElement("script"),pt(h),wt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function yw(e,n){Wn.M(e,n);var i=li;if(i&&e){var o=Ar(i).hoistableScripts,f=ii(e),h=o.get(f);h||(h=i.querySelector(da(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=hn.get(f))&&nf(e,n),h=i.createElement("script"),pt(h),wt(h,"link",e),i.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function Fg(e,n,i,o){var f=(f=W.current)?Yo(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=ri(i.href),i=Ar(f).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ri(i.href);var h=Ar(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(fa(e)))&&!h._p&&(b.instance=h,b.state.loading=5),hn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},hn.set(e,i),h||xw(f,e,i,b.state))),n&&o===null)throw Error(a(528,""));return b}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ii(i),i=Ar(f).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function ri(e){return'href="'+rn(e)+'"'}function fa(e){return'link[rel="stylesheet"]['+e+"]"}function Ig(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function xw(e,n,i,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),wt(n,"link",i),pt(n),e.head.appendChild(n))}function ii(e){return'[src="'+rn(e)+'"]'}function da(e){return"script[async]"+e}function Pg(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+rn(i.href)+'"]');if(o)return n.instance=o,pt(o),o;var f=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),pt(o),wt(o,"style",f),Vo(o,i.precedence,e),n.instance=o;case"stylesheet":f=ri(i.href);var h=e.querySelector(fa(f));if(h)return n.state.loading|=4,n.instance=h,pt(h),h;o=Ig(i),(f=hn.get(f))&&tf(o,f),h=(e.ownerDocument||e).createElement("link"),pt(h);var b=h;return b._p=new Promise(function(k,R){b.onload=k,b.onerror=R}),wt(h,"link",o),n.state.loading|=4,Vo(h,i.precedence,e),n.instance=h;case"script":return h=ii(i.src),(f=e.querySelector(da(h)))?(n.instance=f,pt(f),f):(o=i,(f=hn.get(h))&&(o=g({},i),nf(o,f)),e=e.ownerDocument||e,f=e.createElement("script"),pt(f),wt(f,"link",o),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Vo(o,i.precedence,e));return n.instance}function Vo(e,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,h=f,b=0;b<o.length;b++){var k=o[b];if(k.dataset.precedence===n)h=k;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function tf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Go=null;function Xg(e,n,i){if(Go===null){var o=new Map,f=Go=new Map;f.set(i,o)}else f=Go,o=f.get(i),o||(o=new Map,f.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),f=0;f<i.length;f++){var h=i[f];if(!(h[Oi]||h[xt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var k=o.get(b);k?k.push(h):o.set(b,[h])}}return o}function Qg(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function bw(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Zg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vw(e,n,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=ri(o.href),h=n.querySelector(fa(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Fo.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=h,pt(h);return}h=n.ownerDocument||n,o=Ig(o),(f=hn.get(f))&&tf(o,f),h=h.createElement("link"),pt(h);var b=h;b._p=new Promise(function(k,R){b.onload=k,b.onerror=R}),wt(h,"link",o),i.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Fo.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var lf=0;function Sw(e,n){return e.stylesheets&&e.count===0&&Po(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var o=setTimeout(function(){if(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&lf===0&&(lf=62500*tw());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Po(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>lf?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function Fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Po(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Po(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,n.forEach(ww,e),Io=null,Fo.call(e))}function ww(e,n){if(!(n.state.loading&4)){var i=Io.get(e);if(i)var o=i.get(null);else{i=new Map,Io.set(e,i);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),o=b)}o&&i.set(null,o)}f=n.instance,b=f.getAttribute("data-precedence"),h=i.get(b)||o,h===o&&i.set(null,f),i.set(b,f),this.count++,o=Fo.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var ha={$$typeof:D,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function kw(e,n,i,o,f,h,b,k,R){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=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Kg(e,n,i,o,f,h,b,k,R,Y,Q,ee){return e=new kw(e,n,i,b,R,Y,Q,ee,k),n=1,h===!0&&(n|=24),h=It(3,null,null,n),e.current=h,h.stateNode=e,n=Ls(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:o,isDehydrated:i,cache:n},qs(h),e}function $g(e){return e?(e=Lr,e):Lr}function Jg(e,n,i,o,f,h){f=$g(f),o.context===null?o.context=f:o.pendingContext=f,o=pl(n),o.payload={element:i},h=h===void 0?null:h,h!==null&&(o.callback=h),i=gl(e,o,n),i!==null&&(Ht(i,e,n),Ii(i,e,n))}function Wg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function rf(e,n){Wg(e,n),(e=e.alternate)&&Wg(e,n)}function ey(e){if(e.tag===13||e.tag===31){var n=Kl(e,67108864);n!==null&&Ht(n,e,67108864),rf(e,67108864)}}function ty(e){if(e.tag===13||e.tag===31){var n=Kt();n=Wu(n);var i=Kl(e,n);i!==null&&Ht(i,e,n),rf(e,n)}}var Xo=!0;function Ew(e,n,i,o){var f=U.T;U.T=null;var h=Z.p;try{Z.p=2,af(e,n,i,o)}finally{Z.p=h,U.T=f}}function Cw(e,n,i,o){var f=U.T;U.T=null;var h=Z.p;try{Z.p=8,af(e,n,i,o)}finally{Z.p=h,U.T=f}}function af(e,n,i,o){if(Xo){var f=of(o);if(f===null)Ic(e,n,o,Qo,i),ly(e,o);else if(Tw(f,e,n,i,o))o.stopPropagation();else if(ly(e,o),n&4&&-1<Aw.indexOf(e)){for(;f!==null;){var h=Cr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Il(h.pendingLanes);if(b!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;b;){var R=1<<31-Xe(b);k.entanglements[1]|=R,b&=~R}Tn(h),(Be&6)===0&&(zo=Tt()+500,oa(0))}}break;case 31:case 13:k=Kl(h,2),k!==null&&Ht(k,h,2),_o(),rf(h,2)}if(h=of(o),h===null&&Ic(e,n,o,Qo,i),h===f)break;f=h}f!==null&&o.stopPropagation()}else Ic(e,n,o,null,i)}}function of(e){return e=us(e),uf(e)}var Qo=null;function uf(e){if(Qo=null,e=Er(e),e!==null){var n=s(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=c(n),e!==null)return e;e=null}else if(i===31){if(e=d(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Qo=e,null}function ny(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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($u()){case K:return 2;case ce:return 8;case we:case Oe:return 32;case He:return 268435456;default:return 32}default:return 32}}var sf=!1,Tl=null,Ol=null,Nl=null,ma=new Map,pa=new Map,zl=[],Aw="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 ly(e,n){switch(e){case"focusin":case"focusout":Tl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":ma.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":pa.delete(n.pointerId)}}function ga(e,n,i,o,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:h,targetContainers:[f]},n!==null&&(n=Cr(n),n!==null&&ey(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function Tw(e,n,i,o,f){switch(n){case"focusin":return Tl=ga(Tl,e,n,i,o,f),!0;case"dragenter":return Ol=ga(Ol,e,n,i,o,f),!0;case"mouseover":return Nl=ga(Nl,e,n,i,o,f),!0;case"pointerover":var h=f.pointerId;return ma.set(h,ga(ma.get(h)||null,e,n,i,o,f)),!0;case"gotpointercapture":return h=f.pointerId,pa.set(h,ga(pa.get(h)||null,e,n,i,o,f)),!0}return!1}function ry(e){var n=Er(e.target);if(n!==null){var i=s(n);if(i!==null){if(n=i.tag,n===13){if(n=c(i),n!==null){e.blockedOn=n,xh(e.priority,function(){ty(i)});return}}else if(n===31){if(n=d(i),n!==null){e.blockedOn=n,xh(e.priority,function(){ty(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=of(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);os=o,i.target.dispatchEvent(o),os=null}else return n=Cr(i),n!==null&&ey(n),e.blockedOn=i,!1;n.shift()}return!0}function iy(e,n,i){Zo(e)&&i.delete(n)}function Ow(){sf=!1,Tl!==null&&Zo(Tl)&&(Tl=null),Ol!==null&&Zo(Ol)&&(Ol=null),Nl!==null&&Zo(Nl)&&(Nl=null),ma.forEach(iy),pa.forEach(iy)}function Ko(e,n){e.blockedOn===n&&(e.blockedOn=null,sf||(sf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ow)))}var $o=null;function ay(e){$o!==e&&($o=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){$o===e&&($o=null);for(var n=0;n<e.length;n+=3){var i=e[n],o=e[n+1],f=e[n+2];if(typeof o!="function"){if(uf(o||i)===null)continue;break}var h=Cr(i);h!==null&&(e.splice(n,3),n-=3,ac(h,{pending:!0,data:f,method:i.method,action:o},o,f))}}))}function ai(e){function n(R){return Ko(R,e)}Tl!==null&&Ko(Tl,e),Ol!==null&&Ko(Ol,e),Nl!==null&&Ko(Nl,e),ma.forEach(n),pa.forEach(n);for(var i=0;i<zl.length;i++){var o=zl[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<zl.length&&(i=zl[0],i.blockedOn===null);)ry(i),i.blockedOn===null&&zl.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var f=i[o],h=i[o+1],b=f[Dt]||null;if(typeof h=="function")b||ay(i);else if(b){var k=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Dt]||null)k=b.formAction;else if(uf(f)!==null)continue}else k=b.action;typeof k=="function"?i[o+1]=k:(i.splice(o,3),o-=3),ay(i)}}}function oy(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function cf(e){this._internalRoot=e}Jo.prototype.render=cf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=Kt();Jg(i,o,e,n,null,null)},Jo.prototype.unmount=cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Jg(e.current,2,null,e,null,null),_o(),n[kr]=null}};function Jo(e){this._internalRoot=e}Jo.prototype.unstable_scheduleHydration=function(e){if(e){var n=yh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<zl.length&&n!==0&&n<zl[i].priority;i++);zl.splice(i,0,e),i===0&&ry(e)}};var uy=l.version;if(uy!=="19.2.6")throw Error(a(527,uy,"19.2.6"));Z.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Nw={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wo.isDisabled&&Wo.supportsFiber)try{Ot=Wo.inject(Nw),ft=Wo}catch{}}return xa.createRoot=function(e,n){if(!u(e))throw Error(a(299));var i=!1,o="",f=pp,h=gp,b=yp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Kg(e,1,!1,null,null,i,o,null,f,h,b,oy),e[kr]=n.current,Fc(e),new cf(n)},xa.hydrateRoot=function(e,n,i){if(!u(e))throw Error(a(299));var o=!1,f="",h=pp,b=gp,k=yp,R=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(k=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),n=Kg(e,1,!0,n,i??null,o,f,R,h,b,k,oy),n.context=$g(null),i=n.current,o=Kt(),o=Wu(o),f=pl(o),f.callback=null,gl(i,f,o),i=o,n.current.lanes=i,Ti(n,i),Tn(n),e[kr]=n.current,Fc(e),new Jo(n)},xa.version="19.2.6",xa}var xy;function Vw(){if(xy)return hf.exports;xy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),hf.exports=Yw(),hf.exports}var Gw=Vw();function mt(t,l,{checkForDefaultPrevented:r=!0}={}){return function(u){if(t==null||t(u),r===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function by(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}function rb(...t){return l=>{let r=!1;const a=t.map(u=>{const s=by(u,l);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let u=0;u<a.length;u++){const s=a[u];typeof s=="function"?s():by(t[u],null)}}}}function nn(...t){return C.useCallback(rb(...t),t)}function Fw(t,l){const r=C.createContext(l),a=s=>{const{children:c,...d}=s,p=C.useMemo(()=>d,Object.values(d));return S.jsx(r.Provider,{value:p,children:c})};a.displayName=t+"Provider";function u(s){const c=C.useContext(r);if(c)return c;if(l!==void 0)return l;throw new Error(`\`${s}\` must be used within \`${t}\``)}return[a,u]}function zu(t,l=[]){let r=[];function a(s,c){const d=C.createContext(c),p=r.length;r=[...r,c];const m=g=>{var T;const{scope:v,children:x,...E}=g,A=((T=v==null?void 0:v[t])==null?void 0:T[p])||d,N=C.useMemo(()=>E,Object.values(E));return S.jsx(A.Provider,{value:N,children:x})};m.displayName=s+"Provider";function y(g,v){var A;const x=((A=v==null?void 0:v[t])==null?void 0:A[p])||d,E=C.useContext(x);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[m,y]}const u=()=>{const s=r.map(c=>C.createContext(c));return function(d){const p=(d==null?void 0:d[t])||s;return C.useMemo(()=>({[`__scope${t}`]:{...d,[t]:p}}),[d,p])}};return u.scopeName=t,[a,Iw(u,...l)]}function Iw(...t){const l=t[0];if(t.length===1)return l;const r=()=>{const a=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(s){const c=a.reduce((d,{useScope:p,scopeName:m})=>{const g=p(s)[`__scope${m}`];return{...d,...g}},{});return C.useMemo(()=>({[`__scope${l.scopeName}`]:c}),[c])}};return r.scopeName=l.scopeName,r}var vd=lb();const Pw=Nu(vd);function Sd(t){const l=Xw(t),r=C.forwardRef((a,u)=>{const{children:s,...c}=a,d=C.Children.toArray(s),p=d.find(Zw);if(p){const m=p.props.children,y=d.map(g=>g===p?C.Children.count(m)>1?C.Children.only(null):C.isValidElement(m)?m.props.children:null:g);return S.jsx(l,{...c,ref:u,children:C.isValidElement(m)?C.cloneElement(m,void 0,y):null})}return S.jsx(l,{...c,ref:u,children:s})});return r.displayName=`${t}.Slot`,r}function Xw(t){const l=C.forwardRef((r,a)=>{const{children:u,...s}=r;if(C.isValidElement(u)){const c=$w(u),d=Kw(s,u.props);return u.type!==C.Fragment&&(d.ref=a?rb(a,c):c),C.cloneElement(u,d)}return C.Children.count(u)>1?C.Children.only(null):null});return l.displayName=`${t}.SlotClone`,l}var ib=Symbol("radix.slottable");function Qw(t){const l=({children:r})=>S.jsx(S.Fragment,{children:r});return l.displayName=`${t}.Slottable`,l.__radixId=ib,l}function Zw(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ib}function Kw(t,l){const r={...l};for(const a in l){const u=t[a],s=l[a];/^on[A-Z]/.test(a)?u&&s?r[a]=(...d)=>{const p=s(...d);return u(...d),p}:u&&(r[a]=u):a==="style"?r[a]={...u,...s}:a==="className"&&(r[a]=[u,s].filter(Boolean).join(" "))}return{...t,...r}}function $w(t){var a,u;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?t.ref:(l=(u=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var Jw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ct=Jw.reduce((t,l)=>{const r=Sd(`Primitive.${l}`),a=C.forwardRef((u,s)=>{const{asChild:c,...d}=u,p=c?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),S.jsx(p,{...d,ref:s})});return a.displayName=`Primitive.${l}`,{...t,[l]:a}},{});function Ww(t,l){t&&vd.flushSync(()=>t.dispatchEvent(l))}function gi(t){const l=C.useRef(t);return C.useEffect(()=>{l.current=t}),C.useMemo(()=>(...r)=>{var a;return(a=l.current)==null?void 0:a.call(l,...r)},[])}function ek(t,l=globalThis==null?void 0:globalThis.document){const r=gi(t);C.useEffect(()=>{const a=u=>{u.key==="Escape"&&r(u)};return l.addEventListener("keydown",a,{capture:!0}),()=>l.removeEventListener("keydown",a,{capture:!0})},[r,l])}var tk="DismissableLayer",$f="dismissableLayer.update",nk="dismissableLayer.pointerDownOutside",lk="dismissableLayer.focusOutside",vy,ab=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ru=C.forwardRef((t,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...p}=t,m=C.useContext(ab),[y,g]=C.useState(null),v=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=C.useState({}),E=nn(l,F=>g(F)),A=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=A.indexOf(N),z=y?A.indexOf(y):-1,D=m.layersWithOutsidePointerEventsDisabled.size>0,L=z>=T,I=ak(F=>{const V=F.target,ue=[...m.branches].some(H=>H.contains(V));!L||ue||(u==null||u(F),c==null||c(F),F.defaultPrevented||d==null||d())},v),M=ok(F=>{const V=F.target;[...m.branches].some(H=>H.contains(V))||(s==null||s(F),c==null||c(F),F.defaultPrevented||d==null||d())},v);return ek(F=>{z===m.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&d&&(F.preventDefault(),d()))},v),C.useEffect(()=>{if(y)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(vy=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(y)),m.layers.add(y),Sy(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vy)}},[y,v,r,m]),C.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),Sy())},[y,m]),C.useEffect(()=>{const F=()=>x({});return document.addEventListener($f,F),()=>document.removeEventListener($f,F)},[]),S.jsx(Ct.div,{...p,ref:E,style:{pointerEvents:D?L?"auto":"none":void 0,...t.style},onFocusCapture:mt(t.onFocusCapture,M.onFocusCapture),onBlurCapture:mt(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:mt(t.onPointerDownCapture,I.onPointerDownCapture)})});Ru.displayName=tk;var rk="DismissableLayerBranch",ik=C.forwardRef((t,l)=>{const r=C.useContext(ab),a=C.useRef(null),u=nn(l,a);return C.useEffect(()=>{const s=a.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),S.jsx(Ct.div,{...t,ref:u})});ik.displayName=rk;function ak(t,l=globalThis==null?void 0:globalThis.document){const r=gi(t),a=C.useRef(!1),u=C.useRef(()=>{});return C.useEffect(()=>{const s=d=>{if(d.target&&!a.current){let p=function(){ob(nk,r,m,{discrete:!0})};const m={originalEvent:d};d.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=p,l.addEventListener("click",u.current,{once:!0})):p()}else l.removeEventListener("click",u.current);a.current=!1},c=window.setTimeout(()=>{l.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),l.removeEventListener("pointerdown",s),l.removeEventListener("click",u.current)}},[l,r]),{onPointerDownCapture:()=>a.current=!0}}function ok(t,l=globalThis==null?void 0:globalThis.document){const r=gi(t),a=C.useRef(!1);return C.useEffect(()=>{const u=s=>{s.target&&!a.current&&ob(lk,r,{originalEvent:s},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Sy(){const t=new CustomEvent($f);document.dispatchEvent(t)}function ob(t,l,r,{discrete:a}){const u=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});l&&u.addEventListener(t,l,{once:!0}),a?Ww(u,s):u.dispatchEvent(s)}var jl=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},uk=nb[" useId ".trim().toString()]||(()=>{}),sk=0;function Ea(t){const[l,r]=C.useState(uk());return jl(()=>{r(a=>a??String(sk++))},[t]),t||(l?`radix-${l}`:"")}const ck=["top","right","bottom","left"],Ll=Math.min,Wt=Math.max,bu=Math.round,eu=Math.floor,_n=t=>({x:t,y:t}),fk={left:"right",right:"left",bottom:"top",top:"bottom"};function Jf(t,l,r){return Wt(t,Ll(l,r))}function tl(t,l){return typeof t=="function"?t(l):t}function nl(t){return t.split("-")[0]}function Si(t){return t.split("-")[1]}function wd(t){return t==="x"?"y":"x"}function kd(t){return t==="y"?"height":"width"}function Rn(t){const l=t[0];return l==="t"||l==="b"?"y":"x"}function Ed(t){return wd(Rn(t))}function dk(t,l,r){r===void 0&&(r=!1);const a=Si(t),u=Ed(t),s=kd(u);let c=u==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return l.reference[s]>l.floating[s]&&(c=vu(c)),[c,vu(c)]}function hk(t){const l=vu(t);return[Wf(t),l,Wf(l)]}function Wf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const wy=["left","right"],ky=["right","left"],mk=["top","bottom"],pk=["bottom","top"];function gk(t,l,r){switch(t){case"top":case"bottom":return r?l?ky:wy:l?wy:ky;case"left":case"right":return l?mk:pk;default:return[]}}function yk(t,l,r,a){const u=Si(t);let s=gk(nl(t),r==="start",a);return u&&(s=s.map(c=>c+"-"+u),l&&(s=s.concat(s.map(Wf)))),s}function vu(t){const l=nl(t);return fk[l]+t.slice(l.length)}function xk(t){return{top:0,right:0,bottom:0,left:0,...t}}function ub(t){return typeof t!="number"?xk(t):{top:t,right:t,bottom:t,left:t}}function Su(t){const{x:l,y:r,width:a,height:u}=t;return{width:a,height:u,top:r,left:l,right:l+a,bottom:r+u,x:l,y:r}}function Ey(t,l,r){let{reference:a,floating:u}=t;const s=Rn(l),c=Ed(l),d=kd(c),p=nl(l),m=s==="y",y=a.x+a.width/2-u.width/2,g=a.y+a.height/2-u.height/2,v=a[d]/2-u[d]/2;let x;switch(p){case"top":x={x:y,y:a.y-u.height};break;case"bottom":x={x:y,y:a.y+a.height};break;case"right":x={x:a.x+a.width,y:g};break;case"left":x={x:a.x-u.width,y:g};break;default:x={x:a.x,y:a.y}}switch(Si(l)){case"start":x[c]-=v*(r&&m?-1:1);break;case"end":x[c]+=v*(r&&m?-1:1);break}return x}async function bk(t,l){var r;l===void 0&&(l={});const{x:a,y:u,platform:s,rects:c,elements:d,strategy:p}=t,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:v=!1,padding:x=0}=tl(l,t),E=ub(x),N=d[v?g==="floating"?"reference":"floating":g],T=Su(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(N)))==null||r?N:N.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:m,rootBoundary:y,strategy:p})),z=g==="floating"?{x:a,y:u,width:c.floating.width,height:c.floating.height}:c.reference,D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),L=await(s.isElement==null?void 0:s.isElement(D))?await(s.getScale==null?void 0:s.getScale(D))||{x:1,y:1}:{x:1,y:1},I=Su(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:z,offsetParent:D,strategy:p}):z);return{top:(T.top-I.top+E.top)/L.y,bottom:(I.bottom-T.bottom+E.bottom)/L.y,left:(T.left-I.left+E.left)/L.x,right:(I.right-T.right+E.right)/L.x}}const vk=50,Sk=async(t,l,r)=>{const{placement:a="bottom",strategy:u="absolute",middleware:s=[],platform:c}=r,d=c.detectOverflow?c:{...c,detectOverflow:bk},p=await(c.isRTL==null?void 0:c.isRTL(l));let m=await c.getElementRects({reference:t,floating:l,strategy:u}),{x:y,y:g}=Ey(m,a,p),v=a,x=0;const E={};for(let A=0;A<s.length;A++){const N=s[A];if(!N)continue;const{name:T,fn:z}=N,{x:D,y:L,data:I,reset:M}=await z({x:y,y:g,initialPlacement:a,placement:v,strategy:u,middlewareData:E,rects:m,platform:d,elements:{reference:t,floating:l}});y=D??y,g=L??g,E[T]={...E[T],...I},M&&x<vk&&(x++,typeof M=="object"&&(M.placement&&(v=M.placement),M.rects&&(m=M.rects===!0?await c.getElementRects({reference:t,floating:l,strategy:u}):M.rects),{x:y,y:g}=Ey(m,v,p)),A=-1)}return{x:y,y:g,placement:v,strategy:u,middlewareData:E}},wk=t=>({name:"arrow",options:t,async fn(l){const{x:r,y:a,placement:u,rects:s,platform:c,elements:d,middlewareData:p}=l,{element:m,padding:y=0}=tl(t,l)||{};if(m==null)return{};const g=ub(y),v={x:r,y:a},x=Ed(u),E=kd(x),A=await c.getDimensions(m),N=x==="y",T=N?"top":"left",z=N?"bottom":"right",D=N?"clientHeight":"clientWidth",L=s.reference[E]+s.reference[x]-v[x]-s.floating[E],I=v[x]-s.reference[x],M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let F=M?M[D]:0;(!F||!await(c.isElement==null?void 0:c.isElement(M)))&&(F=d.floating[D]||s.floating[E]);const V=L/2-I/2,ue=F/2-A[E]/2-1,H=Ll(g[T],ue),ie=Ll(g[z],ue),le=H,he=F-A[E]-ie,ae=F/2-A[E]/2+V,ne=Jf(le,ae,he),U=!p.arrow&&Si(u)!=null&&ae!==ne&&s.reference[E]/2-(ae<le?H:ie)-A[E]/2<0,Z=U?ae<le?ae-le:ae-he:0;return{[x]:v[x]+Z,data:{[x]:ne,centerOffset:ae-ne-Z,...U&&{alignmentOffset:Z}},reset:U}}}),kk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(l){var r,a;const{placement:u,middlewareData:s,rects:c,initialPlacement:d,platform:p,elements:m}=l,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...N}=tl(t,l);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const T=nl(u),z=Rn(d),D=nl(d)===d,L=await(p.isRTL==null?void 0:p.isRTL(m.floating)),I=v||(D||!A?[vu(d)]:hk(d)),M=E!=="none";!v&&M&&I.push(...yk(d,A,E,L));const F=[d,...I],V=await p.detectOverflow(l,N),ue=[];let H=((a=s.flip)==null?void 0:a.overflows)||[];if(y&&ue.push(V[T]),g){const ae=dk(u,c,L);ue.push(V[ae[0]],V[ae[1]])}if(H=[...H,{placement:u,overflows:ue}],!ue.every(ae=>ae<=0)){var ie,le;const ae=(((ie=s.flip)==null?void 0:ie.index)||0)+1,ne=F[ae];if(ne&&(!(g==="alignment"?z!==Rn(ne):!1)||H.every(re=>Rn(re.placement)===z?re.overflows[0]>0:!0)))return{data:{index:ae,overflows:H},reset:{placement:ne}};let U=(le=H.filter(Z=>Z.overflows[0]<=0).sort((Z,re)=>Z.overflows[1]-re.overflows[1])[0])==null?void 0:le.placement;if(!U)switch(x){case"bestFit":{var he;const Z=(he=H.filter(re=>{if(M){const ge=Rn(re.placement);return ge===z||ge==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(ge=>ge>0).reduce((ge,O)=>ge+O,0)]).sort((re,ge)=>re[1]-ge[1])[0])==null?void 0:he[0];Z&&(U=Z);break}case"initialPlacement":U=d;break}if(u!==U)return{reset:{placement:U}}}return{}}}};function Cy(t,l){return{top:t.top-l.height,right:t.right-l.width,bottom:t.bottom-l.height,left:t.left-l.width}}function Ay(t){return ck.some(l=>t[l]>=0)}const Ek=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(l){const{rects:r,platform:a}=l,{strategy:u="referenceHidden",...s}=tl(t,l);switch(u){case"referenceHidden":{const c=await a.detectOverflow(l,{...s,elementContext:"reference"}),d=Cy(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Ay(d)}}}case"escaped":{const c=await a.detectOverflow(l,{...s,altBoundary:!0}),d=Cy(c,r.floating);return{data:{escapedOffsets:d,escaped:Ay(d)}}}default:return{}}}}},sb=new Set(["left","top"]);async function Ck(t,l){const{placement:r,platform:a,elements:u}=t,s=await(a.isRTL==null?void 0:a.isRTL(u.floating)),c=nl(r),d=Si(r),p=Rn(r)==="y",m=sb.has(c)?-1:1,y=s&&p?-1:1,g=tl(l,t);let{mainAxis:v,crossAxis:x,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof E=="number"&&(x=d==="end"?E*-1:E),p?{x:x*y,y:v*m}:{x:v*m,y:x*y}}const Ak=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(l){var r,a;const{x:u,y:s,placement:c,middlewareData:d}=l,p=await Ck(l,t);return c===((r=d.offset)==null?void 0:r.placement)&&(a=d.arrow)!=null&&a.alignmentOffset?{}:{x:u+p.x,y:s+p.y,data:{...p,placement:c}}}}},Tk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(l){const{x:r,y:a,placement:u,platform:s}=l,{mainAxis:c=!0,crossAxis:d=!1,limiter:p={fn:T=>{let{x:z,y:D}=T;return{x:z,y:D}}},...m}=tl(t,l),y={x:r,y:a},g=await s.detectOverflow(l,m),v=Rn(nl(u)),x=wd(v);let E=y[x],A=y[v];if(c){const T=x==="y"?"top":"left",z=x==="y"?"bottom":"right",D=E+g[T],L=E-g[z];E=Jf(D,E,L)}if(d){const T=v==="y"?"top":"left",z=v==="y"?"bottom":"right",D=A+g[T],L=A-g[z];A=Jf(D,A,L)}const N=p.fn({...l,[x]:E,[v]:A});return{...N,data:{x:N.x-r,y:N.y-a,enabled:{[x]:c,[v]:d}}}}}},Ok=function(t){return t===void 0&&(t={}),{options:t,fn(l){const{x:r,y:a,placement:u,rects:s,middlewareData:c}=l,{offset:d=0,mainAxis:p=!0,crossAxis:m=!0}=tl(t,l),y={x:r,y:a},g=Rn(u),v=wd(g);let x=y[v],E=y[g];const A=tl(d,l),N=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(p){const D=v==="y"?"height":"width",L=s.reference[v]-s.floating[D]+N.mainAxis,I=s.reference[v]+s.reference[D]-N.mainAxis;x<L?x=L:x>I&&(x=I)}if(m){var T,z;const D=v==="y"?"width":"height",L=sb.has(nl(u)),I=s.reference[g]-s.floating[D]+(L&&((T=c.offset)==null?void 0:T[g])||0)+(L?0:N.crossAxis),M=s.reference[g]+s.reference[D]+(L?0:((z=c.offset)==null?void 0:z[g])||0)-(L?N.crossAxis:0);E<I?E=I:E>M&&(E=M)}return{[v]:x,[g]:E}}}},Nk=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(l){var r,a;const{placement:u,rects:s,platform:c,elements:d}=l,{apply:p=()=>{},...m}=tl(t,l),y=await c.detectOverflow(l,m),g=nl(u),v=Si(u),x=Rn(u)==="y",{width:E,height:A}=s.floating;let N,T;g==="top"||g==="bottom"?(N=g,T=v===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(T=g,N=v==="end"?"top":"bottom");const z=A-y.top-y.bottom,D=E-y.left-y.right,L=Ll(A-y[N],z),I=Ll(E-y[T],D),M=!l.middlewareData.shift;let F=L,V=I;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(V=D),(a=l.middlewareData.shift)!=null&&a.enabled.y&&(F=z),M&&!v){const H=Wt(y.left,0),ie=Wt(y.right,0),le=Wt(y.top,0),he=Wt(y.bottom,0);x?V=E-2*(H!==0||ie!==0?H+ie:Wt(y.left,y.right)):F=A-2*(le!==0||he!==0?le+he:Wt(y.top,y.bottom))}await p({...l,availableWidth:V,availableHeight:F});const ue=await c.getDimensions(d.floating);return E!==ue.width||A!==ue.height?{reset:{rects:!0}}:{}}}};function _u(){return typeof window<"u"}function wi(t){return cb(t)?(t.nodeName||"").toLowerCase():"#document"}function en(t){var l;return(t==null||(l=t.ownerDocument)==null?void 0:l.defaultView)||window}function Dn(t){var l;return(l=(cb(t)?t.ownerDocument:t.document)||window.document)==null?void 0:l.documentElement}function cb(t){return _u()?t instanceof Node||t instanceof en(t).Node:!1}function Sn(t){return _u()?t instanceof Element||t instanceof en(t).Element:!1}function ll(t){return _u()?t instanceof HTMLElement||t instanceof en(t).HTMLElement:!1}function Ty(t){return!_u()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof en(t).ShadowRoot}function _a(t){const{overflow:l,overflowX:r,overflowY:a,display:u}=wn(t);return/auto|scroll|overlay|hidden|clip/.test(l+a+r)&&u!=="inline"&&u!=="contents"}function zk(t){return/^(table|td|th)$/.test(wi(t))}function Du(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Rk=/transform|translate|scale|rotate|perspective|filter/,_k=/paint|layout|strict|content/,sr=t=>!!t&&t!=="none";let yf;function Cd(t){const l=Sn(t)?wn(t):t;return sr(l.transform)||sr(l.translate)||sr(l.scale)||sr(l.rotate)||sr(l.perspective)||!Ad()&&(sr(l.backdropFilter)||sr(l.filter))||Rk.test(l.willChange||"")||_k.test(l.contain||"")}function Dk(t){let l=Ul(t);for(;ll(l)&&!yi(l);){if(Cd(l))return l;if(Du(l))return null;l=Ul(l)}return null}function Ad(){return yf==null&&(yf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yf}function yi(t){return/^(html|body|#document)$/.test(wi(t))}function wn(t){return en(t).getComputedStyle(t)}function Mu(t){return Sn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ul(t){if(wi(t)==="html")return t;const l=t.assignedSlot||t.parentNode||Ty(t)&&t.host||Dn(t);return Ty(l)?l.host:l}function fb(t){const l=Ul(t);return yi(l)?t.ownerDocument?t.ownerDocument.body:t.body:ll(l)&&_a(l)?l:fb(l)}function Oa(t,l,r){var a;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=fb(t),s=u===((a=t.ownerDocument)==null?void 0:a.body),c=en(u);if(s){const d=ed(c);return l.concat(c,c.visualViewport||[],_a(u)?u:[],d&&r?Oa(d):[])}else return l.concat(u,Oa(u,[],r))}function ed(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function db(t){const l=wn(t);let r=parseFloat(l.width)||0,a=parseFloat(l.height)||0;const u=ll(t),s=u?t.offsetWidth:r,c=u?t.offsetHeight:a,d=bu(r)!==s||bu(a)!==c;return d&&(r=s,a=c),{width:r,height:a,$:d}}function Td(t){return Sn(t)?t:t.contextElement}function hi(t){const l=Td(t);if(!ll(l))return _n(1);const r=l.getBoundingClientRect(),{width:a,height:u,$:s}=db(l);let c=(s?bu(r.width):r.width)/a,d=(s?bu(r.height):r.height)/u;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const Mk=_n(0);function hb(t){const l=en(t);return!Ad()||!l.visualViewport?Mk:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function jk(t,l,r){return l===void 0&&(l=!1),!r||l&&r!==en(t)?!1:l}function hr(t,l,r,a){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=t.getBoundingClientRect(),s=Td(t);let c=_n(1);l&&(a?Sn(a)&&(c=hi(a)):c=hi(t));const d=jk(s,r,a)?hb(s):_n(0);let p=(u.left+d.x)/c.x,m=(u.top+d.y)/c.y,y=u.width/c.x,g=u.height/c.y;if(s){const v=en(s),x=a&&Sn(a)?en(a):a;let E=v,A=ed(E);for(;A&&a&&x!==E;){const N=hi(A),T=A.getBoundingClientRect(),z=wn(A),D=T.left+(A.clientLeft+parseFloat(z.paddingLeft))*N.x,L=T.top+(A.clientTop+parseFloat(z.paddingTop))*N.y;p*=N.x,m*=N.y,y*=N.x,g*=N.y,p+=D,m+=L,E=en(A),A=ed(E)}}return Su({width:y,height:g,x:p,y:m})}function ju(t,l){const r=Mu(t).scrollLeft;return l?l.left+r:hr(Dn(t)).left+r}function mb(t,l){const r=t.getBoundingClientRect(),a=r.left+l.scrollLeft-ju(t,r),u=r.top+l.scrollTop;return{x:a,y:u}}function Lk(t){let{elements:l,rect:r,offsetParent:a,strategy:u}=t;const s=u==="fixed",c=Dn(a),d=l?Du(l.floating):!1;if(a===c||d&&s)return r;let p={scrollLeft:0,scrollTop:0},m=_n(1);const y=_n(0),g=ll(a);if((g||!g&&!s)&&((wi(a)!=="body"||_a(c))&&(p=Mu(a)),g)){const x=hr(a);m=hi(a),y.x=x.x+a.clientLeft,y.y=x.y+a.clientTop}const v=c&&!g&&!s?mb(c,p):_n(0);return{width:r.width*m.x,height:r.height*m.y,x:r.x*m.x-p.scrollLeft*m.x+y.x+v.x,y:r.y*m.y-p.scrollTop*m.y+y.y+v.y}}function Uk(t){return Array.from(t.getClientRects())}function Bk(t){const l=Dn(t),r=Mu(t),a=t.ownerDocument.body,u=Wt(l.scrollWidth,l.clientWidth,a.scrollWidth,a.clientWidth),s=Wt(l.scrollHeight,l.clientHeight,a.scrollHeight,a.clientHeight);let c=-r.scrollLeft+ju(t);const d=-r.scrollTop;return wn(a).direction==="rtl"&&(c+=Wt(l.clientWidth,a.clientWidth)-u),{width:u,height:s,x:c,y:d}}const Oy=25;function Hk(t,l){const r=en(t),a=Dn(t),u=r.visualViewport;let s=a.clientWidth,c=a.clientHeight,d=0,p=0;if(u){s=u.width,c=u.height;const y=Ad();(!y||y&&l==="fixed")&&(d=u.offsetLeft,p=u.offsetTop)}const m=ju(a);if(m<=0){const y=a.ownerDocument,g=y.body,v=getComputedStyle(g),x=y.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(a.clientWidth-g.clientWidth-x);E<=Oy&&(s-=E)}else m<=Oy&&(s+=m);return{width:s,height:c,x:d,y:p}}function qk(t,l){const r=hr(t,!0,l==="fixed"),a=r.top+t.clientTop,u=r.left+t.clientLeft,s=ll(t)?hi(t):_n(1),c=t.clientWidth*s.x,d=t.clientHeight*s.y,p=u*s.x,m=a*s.y;return{width:c,height:d,x:p,y:m}}function Ny(t,l,r){let a;if(l==="viewport")a=Hk(t,r);else if(l==="document")a=Bk(Dn(t));else if(Sn(l))a=qk(l,r);else{const u=hb(t);a={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Su(a)}function pb(t,l){const r=Ul(t);return r===l||!Sn(r)||yi(r)?!1:wn(r).position==="fixed"||pb(r,l)}function Yk(t,l){const r=l.get(t);if(r)return r;let a=Oa(t,[],!1).filter(d=>Sn(d)&&wi(d)!=="body"),u=null;const s=wn(t).position==="fixed";let c=s?Ul(t):t;for(;Sn(c)&&!yi(c);){const d=wn(c),p=Cd(c);!p&&d.position==="fixed"&&(u=null),(s?!p&&!u:!p&&d.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||_a(c)&&!p&&pb(t,c))?a=a.filter(y=>y!==c):u=d,c=Ul(c)}return l.set(t,a),a}function Vk(t){let{element:l,boundary:r,rootBoundary:a,strategy:u}=t;const c=[...r==="clippingAncestors"?Du(l)?[]:Yk(l,this._c):[].concat(r),a],d=Ny(l,c[0],u);let p=d.top,m=d.right,y=d.bottom,g=d.left;for(let v=1;v<c.length;v++){const x=Ny(l,c[v],u);p=Wt(x.top,p),m=Ll(x.right,m),y=Ll(x.bottom,y),g=Wt(x.left,g)}return{width:m-g,height:y-p,x:g,y:p}}function Gk(t){const{width:l,height:r}=db(t);return{width:l,height:r}}function Fk(t,l,r){const a=ll(l),u=Dn(l),s=r==="fixed",c=hr(t,!0,s,l);let d={scrollLeft:0,scrollTop:0};const p=_n(0);function m(){p.x=ju(u)}if(a||!a&&!s)if((wi(l)!=="body"||_a(u))&&(d=Mu(l)),a){const x=hr(l,!0,s,l);p.x=x.x+l.clientLeft,p.y=x.y+l.clientTop}else u&&m();s&&!a&&u&&m();const y=u&&!a&&!s?mb(u,d):_n(0),g=c.left+d.scrollLeft-p.x-y.x,v=c.top+d.scrollTop-p.y-y.y;return{x:g,y:v,width:c.width,height:c.height}}function xf(t){return wn(t).position==="static"}function zy(t,l){if(!ll(t)||wn(t).position==="fixed")return null;if(l)return l(t);let r=t.offsetParent;return Dn(t)===r&&(r=r.ownerDocument.body),r}function gb(t,l){const r=en(t);if(Du(t))return r;if(!ll(t)){let u=Ul(t);for(;u&&!yi(u);){if(Sn(u)&&!xf(u))return u;u=Ul(u)}return r}let a=zy(t,l);for(;a&&zk(a)&&xf(a);)a=zy(a,l);return a&&yi(a)&&xf(a)&&!Cd(a)?r:a||Dk(t)||r}const Ik=async function(t){const l=this.getOffsetParent||gb,r=this.getDimensions,a=await r(t.floating);return{reference:Fk(t.reference,await l(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Pk(t){return wn(t).direction==="rtl"}const Xk={convertOffsetParentRelativeRectToViewportRelativeRect:Lk,getDocumentElement:Dn,getClippingRect:Vk,getOffsetParent:gb,getElementRects:Ik,getClientRects:Uk,getDimensions:Gk,getScale:hi,isElement:Sn,isRTL:Pk};function yb(t,l){return t.x===l.x&&t.y===l.y&&t.width===l.width&&t.height===l.height}function Qk(t,l){let r=null,a;const u=Dn(t);function s(){var d;clearTimeout(a),(d=r)==null||d.disconnect(),r=null}function c(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),s();const m=t.getBoundingClientRect(),{left:y,top:g,width:v,height:x}=m;if(d||l(),!v||!x)return;const E=eu(g),A=eu(u.clientWidth-(y+v)),N=eu(u.clientHeight-(g+x)),T=eu(y),D={rootMargin:-E+"px "+-A+"px "+-N+"px "+-T+"px",threshold:Wt(0,Ll(1,p))||1};let L=!0;function I(M){const F=M[0].intersectionRatio;if(F!==p){if(!L)return c();F?c(!1,F):a=setTimeout(()=>{c(!1,1e-7)},1e3)}F===1&&!yb(m,t.getBoundingClientRect())&&c(),L=!1}try{r=new IntersectionObserver(I,{...D,root:u.ownerDocument})}catch{r=new IntersectionObserver(I,D)}r.observe(t)}return c(!0),s}function Zk(t,l,r,a){a===void 0&&(a={});const{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=a,m=Td(t),y=u||s?[...m?Oa(m):[],...l?Oa(l):[]]:[];y.forEach(T=>{u&&T.addEventListener("scroll",r,{passive:!0}),s&&T.addEventListener("resize",r)});const g=m&&d?Qk(m,r):null;let v=-1,x=null;c&&(x=new ResizeObserver(T=>{let[z]=T;z&&z.target===m&&x&&l&&(x.unobserve(l),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var D;(D=x)==null||D.observe(l)})),r()}),m&&!p&&x.observe(m),l&&x.observe(l));let E,A=p?hr(t):null;p&&N();function N(){const T=hr(t);A&&!yb(A,T)&&r(),A=T,E=requestAnimationFrame(N)}return r(),()=>{var T;y.forEach(z=>{u&&z.removeEventListener("scroll",r),s&&z.removeEventListener("resize",r)}),g==null||g(),(T=x)==null||T.disconnect(),x=null,p&&cancelAnimationFrame(E)}}const Kk=Ak,$k=Tk,Jk=kk,Wk=Nk,e2=Ek,Ry=wk,t2=Ok,n2=(t,l,r)=>{const a=new Map,u={platform:Xk,...r},s={...u.platform,_c:a};return Sk(t,l,{...u,platform:s})};var l2=typeof document<"u",r2=function(){},du=l2?C.useLayoutEffect:r2;function wu(t,l){if(t===l)return!0;if(typeof t!=typeof l)return!1;if(typeof t=="function"&&t.toString()===l.toString())return!0;let r,a,u;if(t&&l&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==l.length)return!1;for(a=r;a--!==0;)if(!wu(t[a],l[a]))return!1;return!0}if(u=Object.keys(t),r=u.length,r!==Object.keys(l).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(l,u[a]))return!1;for(a=r;a--!==0;){const s=u[a];if(!(s==="_owner"&&t.$$typeof)&&!wu(t[s],l[s]))return!1}return!0}return t!==t&&l!==l}function xb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function _y(t,l){const r=xb(t);return Math.round(l*r)/r}function bf(t){const l=C.useRef(t);return du(()=>{l.current=t}),l}function i2(t){t===void 0&&(t={});const{placement:l="bottom",strategy:r="absolute",middleware:a=[],platform:u,elements:{reference:s,floating:c}={},transform:d=!0,whileElementsMounted:p,open:m}=t,[y,g]=C.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[v,x]=C.useState(a);wu(v,a)||x(a);const[E,A]=C.useState(null),[N,T]=C.useState(null),z=C.useCallback(re=>{re!==M.current&&(M.current=re,A(re))},[]),D=C.useCallback(re=>{re!==F.current&&(F.current=re,T(re))},[]),L=s||E,I=c||N,M=C.useRef(null),F=C.useRef(null),V=C.useRef(y),ue=p!=null,H=bf(p),ie=bf(u),le=bf(m),he=C.useCallback(()=>{if(!M.current||!F.current)return;const re={placement:l,strategy:r,middleware:v};ie.current&&(re.platform=ie.current),n2(M.current,F.current,re).then(ge=>{const O={...ge,isPositioned:le.current!==!1};ae.current&&!wu(V.current,O)&&(V.current=O,vd.flushSync(()=>{g(O)}))})},[v,l,r,ie,le]);du(()=>{m===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(re=>({...re,isPositioned:!1})))},[m]);const ae=C.useRef(!1);du(()=>(ae.current=!0,()=>{ae.current=!1}),[]),du(()=>{if(L&&(M.current=L),I&&(F.current=I),L&&I){if(H.current)return H.current(L,I,he);he()}},[L,I,he,H,ue]);const ne=C.useMemo(()=>({reference:M,floating:F,setReference:z,setFloating:D}),[z,D]),U=C.useMemo(()=>({reference:L,floating:I}),[L,I]),Z=C.useMemo(()=>{const re={position:r,left:0,top:0};if(!U.floating)return re;const ge=_y(U.floating,y.x),O=_y(U.floating,y.y);return d?{...re,transform:"translate("+ge+"px, "+O+"px)",...xb(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ge,top:O}},[r,d,U.floating,y.x,y.y]);return C.useMemo(()=>({...y,update:he,refs:ne,elements:U,floatingStyles:Z}),[y,he,ne,U,Z])}const a2=t=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:a,padding:u}=typeof t=="function"?t(r):t;return a&&l(a)?a.current!=null?Ry({element:a.current,padding:u}).fn(r):{}:a?Ry({element:a,padding:u}).fn(r):{}}}},o2=(t,l)=>{const r=Kk(t);return{name:r.name,fn:r.fn,options:[t,l]}},u2=(t,l)=>{const r=$k(t);return{name:r.name,fn:r.fn,options:[t,l]}},s2=(t,l)=>({fn:t2(t).fn,options:[t,l]}),c2=(t,l)=>{const r=Jk(t);return{name:r.name,fn:r.fn,options:[t,l]}},f2=(t,l)=>{const r=Wk(t);return{name:r.name,fn:r.fn,options:[t,l]}},d2=(t,l)=>{const r=e2(t);return{name:r.name,fn:r.fn,options:[t,l]}},h2=(t,l)=>{const r=a2(t);return{name:r.name,fn:r.fn,options:[t,l]}};var m2="Arrow",bb=C.forwardRef((t,l)=>{const{children:r,width:a=10,height:u=5,...s}=t;return S.jsx(Ct.svg,{...s,ref:l,width:a,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:S.jsx("polygon",{points:"0,0 30,0 15,10"})})});bb.displayName=m2;var p2=bb;function g2(t){const[l,r]=C.useState(void 0);return jl(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const s=u[0];let c,d;if("borderBoxSize"in s){const p=s.borderBoxSize,m=Array.isArray(p)?p[0]:p;c=m.inlineSize,d=m.blockSize}else c=t.offsetWidth,d=t.offsetHeight;r({width:c,height:d})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else r(void 0)},[t]),l}var Od="Popper",[vb,Lu]=zu(Od),[y2,Sb]=vb(Od),wb=t=>{const{__scopePopper:l,children:r}=t,[a,u]=C.useState(null);return S.jsx(y2,{scope:l,anchor:a,onAnchorChange:u,children:r})};wb.displayName=Od;var kb="PopperAnchor",Eb=C.forwardRef((t,l)=>{const{__scopePopper:r,virtualRef:a,...u}=t,s=Sb(kb,r),c=C.useRef(null),d=nn(l,c),p=C.useRef(null);return C.useEffect(()=>{const m=p.current;p.current=(a==null?void 0:a.current)||c.current,m!==p.current&&s.onAnchorChange(p.current)}),a?null:S.jsx(Ct.div,{...u,ref:d})});Eb.displayName=kb;var Nd="PopperContent",[x2,b2]=vb(Nd),Cb=C.forwardRef((t,l)=>{var se,ve,fe,Ye,ct,Vt;const{__scopePopper:r,side:a="bottom",sideOffset:u=0,align:s="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:y=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:E,...A}=t,N=Sb(Nd,r),[T,z]=C.useState(null),D=nn(l,Rt=>z(Rt)),[L,I]=C.useState(null),M=g2(L),F=(M==null?void 0:M.width)??0,V=(M==null?void 0:M.height)??0,ue=a+(s!=="center"?"-"+s:""),H=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ie=Array.isArray(m)?m:[m],le=ie.length>0,he={padding:H,boundary:ie.filter(S2),altBoundary:le},{refs:ae,floatingStyles:ne,placement:U,isPositioned:Z,middlewareData:re}=i2({strategy:"fixed",placement:ue,whileElementsMounted:(...Rt)=>Zk(...Rt,{animationFrame:x==="always"}),elements:{reference:N.anchor},middleware:[o2({mainAxis:u+V,alignmentAxis:c}),p&&u2({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?s2():void 0,...he}),p&&c2({...he}),f2({...he,apply:({elements:Rt,rects:yt,availableWidth:il,availableHeight:al})=>{const{width:vr,height:Sr}=yt.reference,pn=Rt.floating.style;pn.setProperty("--radix-popper-available-width",`${il}px`),pn.setProperty("--radix-popper-available-height",`${al}px`),pn.setProperty("--radix-popper-anchor-width",`${vr}px`),pn.setProperty("--radix-popper-anchor-height",`${Sr}px`)}}),L&&h2({element:L,padding:d}),w2({arrowWidth:F,arrowHeight:V}),v&&d2({strategy:"referenceHidden",...he})]}),[ge,O]=Ob(U),_=gi(E);jl(()=>{Z&&(_==null||_())},[Z,_]);const X=(se=re.arrow)==null?void 0:se.x,w=(ve=re.arrow)==null?void 0:ve.y,J=((fe=re.arrow)==null?void 0:fe.centerOffset)!==0,[te,W]=C.useState();return jl(()=>{T&&W(window.getComputedStyle(T).zIndex)},[T]),S.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:Z?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(Ye=re.transformOrigin)==null?void 0:Ye.x,(ct=re.transformOrigin)==null?void 0:ct.y].join(" "),...((Vt=re.hide)==null?void 0:Vt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:S.jsx(x2,{scope:r,placedSide:ge,onArrowChange:I,arrowX:X,arrowY:w,shouldHideArrow:J,children:S.jsx(Ct.div,{"data-side":ge,"data-align":O,...A,ref:D,style:{...A.style,animation:Z?void 0:"none"}})})})});Cb.displayName=Nd;var Ab="PopperArrow",v2={top:"bottom",right:"left",bottom:"top",left:"right"},Tb=C.forwardRef(function(l,r){const{__scopePopper:a,...u}=l,s=b2(Ab,a),c=v2[s.placedSide];return S.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:S.jsx(p2,{...u,ref:r,style:{...u.style,display:"block"}})})});Tb.displayName=Ab;function S2(t){return t!==null}var w2=t=>({name:"transformOrigin",options:t,fn(l){var N,T,z;const{placement:r,rects:a,middlewareData:u}=l,c=((N=u.arrow)==null?void 0:N.centerOffset)!==0,d=c?0:t.arrowWidth,p=c?0:t.arrowHeight,[m,y]=Ob(r),g={start:"0%",center:"50%",end:"100%"}[y],v=(((T=u.arrow)==null?void 0:T.x)??0)+d/2,x=(((z=u.arrow)==null?void 0:z.y)??0)+p/2;let E="",A="";return m==="bottom"?(E=c?g:`${v}px`,A=`${-p}px`):m==="top"?(E=c?g:`${v}px`,A=`${a.floating.height+p}px`):m==="right"?(E=`${-p}px`,A=c?g:`${x}px`):m==="left"&&(E=`${a.floating.width+p}px`,A=c?g:`${x}px`),{data:{x:E,y:A}}}});function Ob(t){const[l,r="center"]=t.split("-");return[l,r]}var Nb=wb,zd=Eb,zb=Cb,Rb=Tb,k2="Portal",Rd=C.forwardRef((t,l)=>{var d;const{container:r,...a}=t,[u,s]=C.useState(!1);jl(()=>s(!0),[]);const c=r||u&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return c?Pw.createPortal(S.jsx(Ct.div,{...a,ref:l}),c):null});Rd.displayName=k2;function E2(t,l){return C.useReducer((r,a)=>l[r][a]??r,t)}var yr=t=>{const{present:l,children:r}=t,a=C2(l),u=typeof r=="function"?r({present:a.isPresent}):C.Children.only(r),s=nn(a.ref,A2(u));return typeof r=="function"||a.isPresent?C.cloneElement(u,{ref:s}):null};yr.displayName="Presence";function C2(t){const[l,r]=C.useState(),a=C.useRef(null),u=C.useRef(t),s=C.useRef("none"),c=t?"mounted":"unmounted",[d,p]=E2(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const m=tu(a.current);s.current=d==="mounted"?m:"none"},[d]),jl(()=>{const m=a.current,y=u.current;if(y!==t){const v=s.current,x=tu(m);t?p("MOUNT"):x==="none"||(m==null?void 0:m.display)==="none"?p("UNMOUNT"):p(y&&v!==x?"ANIMATION_OUT":"UNMOUNT"),u.current=t}},[t,p]),jl(()=>{if(l){let m;const y=l.ownerDocument.defaultView??window,g=x=>{const A=tu(a.current).includes(CSS.escape(x.animationName));if(x.target===l&&A&&(p("ANIMATION_END"),!u.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",m=y.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},v=x=>{x.target===l&&(s.current=tu(a.current))};return l.addEventListener("animationstart",v),l.addEventListener("animationcancel",g),l.addEventListener("animationend",g),()=>{y.clearTimeout(m),l.removeEventListener("animationstart",v),l.removeEventListener("animationcancel",g),l.removeEventListener("animationend",g)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(m=>{a.current=m?getComputedStyle(m):null,r(m)},[])}}function tu(t){return(t==null?void 0:t.animationName)||"none"}function A2(t){var a,u;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?t.ref:(l=(u=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var T2=nb[" useInsertionEffect ".trim().toString()]||jl;function _d({prop:t,defaultProp:l,onChange:r=()=>{},caller:a}){const[u,s,c]=O2({defaultProp:l,onChange:r}),d=t!==void 0,p=d?t:u;{const y=C.useRef(t!==void 0);C.useEffect(()=>{const g=y.current;g!==d&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=d},[d,a])}const m=C.useCallback(y=>{var g;if(d){const v=N2(y)?y(t):y;v!==t&&((g=c.current)==null||g.call(c,v))}else s(y)},[d,t,s,c]);return[p,m]}function O2({defaultProp:t,onChange:l}){const[r,a]=C.useState(t),u=C.useRef(r),s=C.useRef(l);return T2(()=>{s.current=l},[l]),C.useEffect(()=>{var c;u.current!==r&&((c=s.current)==null||c.call(s,r),u.current=r)},[r,u]),[r,a,s]}function N2(t){return typeof t=="function"}var z2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),R2="VisuallyHidden",_b=C.forwardRef((t,l)=>S.jsx(Ct.span,{...t,ref:l,style:{...z2,...t.style}}));_b.displayName=R2;var _2=_b,[Uu]=zu("Tooltip",[Lu]),Bu=Lu(),Db="TooltipProvider",D2=700,td="tooltip.open",[M2,Dd]=Uu(Db),Mb=t=>{const{__scopeTooltip:l,delayDuration:r=D2,skipDelayDuration:a=300,disableHoverableContent:u=!1,children:s}=t,c=C.useRef(!0),d=C.useRef(!1),p=C.useRef(0);return C.useEffect(()=>{const m=p.current;return()=>window.clearTimeout(m)},[]),S.jsx(M2,{scope:l,isOpenDelayedRef:c,delayDuration:r,onOpen:C.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,a)},[a]),isPointerInTransitRef:d,onPointerInTransitChange:C.useCallback(m=>{d.current=m},[]),disableHoverableContent:u,children:s})};Mb.displayName=Db;var Na="Tooltip",[j2,Hu]=Uu(Na),jb=t=>{const{__scopeTooltip:l,children:r,open:a,defaultOpen:u,onOpenChange:s,disableHoverableContent:c,delayDuration:d}=t,p=Dd(Na,t.__scopeTooltip),m=Bu(l),[y,g]=C.useState(null),v=Ea(),x=C.useRef(0),E=c??p.disableHoverableContent,A=d??p.delayDuration,N=C.useRef(!1),[T,z]=_d({prop:a,defaultProp:u??!1,onChange:F=>{F?(p.onOpen(),document.dispatchEvent(new CustomEvent(td))):p.onClose(),s==null||s(F)},caller:Na}),D=C.useMemo(()=>T?N.current?"delayed-open":"instant-open":"closed",[T]),L=C.useCallback(()=>{window.clearTimeout(x.current),x.current=0,N.current=!1,z(!0)},[z]),I=C.useCallback(()=>{window.clearTimeout(x.current),x.current=0,z(!1)},[z]),M=C.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{N.current=!0,z(!0),x.current=0},A)},[A,z]);return C.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),S.jsx(Nb,{...m,children:S.jsx(j2,{scope:l,contentId:v,open:T,stateAttribute:D,trigger:y,onTriggerChange:g,onTriggerEnter:C.useCallback(()=>{p.isOpenDelayedRef.current?M():L()},[p.isOpenDelayedRef,M,L]),onTriggerLeave:C.useCallback(()=>{E?I():(window.clearTimeout(x.current),x.current=0)},[I,E]),onOpen:L,onClose:I,disableHoverableContent:E,children:r})})};jb.displayName=Na;var nd="TooltipTrigger",Lb=C.forwardRef((t,l)=>{const{__scopeTooltip:r,...a}=t,u=Hu(nd,r),s=Dd(nd,r),c=Bu(r),d=C.useRef(null),p=nn(l,d,u.onTriggerChange),m=C.useRef(!1),y=C.useRef(!1),g=C.useCallback(()=>m.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),S.jsx(zd,{asChild:!0,...c,children:S.jsx(Ct.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...a,ref:p,onPointerMove:mt(t.onPointerMove,v=>{v.pointerType!=="touch"&&!y.current&&!s.isPointerInTransitRef.current&&(u.onTriggerEnter(),y.current=!0)}),onPointerLeave:mt(t.onPointerLeave,()=>{u.onTriggerLeave(),y.current=!1}),onPointerDown:mt(t.onPointerDown,()=>{u.open&&u.onClose(),m.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:mt(t.onFocus,()=>{m.current||u.onOpen()}),onBlur:mt(t.onBlur,u.onClose),onClick:mt(t.onClick,u.onClose)})})});Lb.displayName=nd;var L2="TooltipPortal",[qD,U2]=Uu(L2,{forceMount:void 0}),xi="TooltipContent",Ub=C.forwardRef((t,l)=>{const r=U2(xi,t.__scopeTooltip),{forceMount:a=r.forceMount,side:u="top",...s}=t,c=Hu(xi,t.__scopeTooltip);return S.jsx(yr,{present:a||c.open,children:c.disableHoverableContent?S.jsx(Bb,{side:u,...s,ref:l}):S.jsx(B2,{side:u,...s,ref:l})})}),B2=C.forwardRef((t,l)=>{const r=Hu(xi,t.__scopeTooltip),a=Dd(xi,t.__scopeTooltip),u=C.useRef(null),s=nn(l,u),[c,d]=C.useState(null),{trigger:p,onClose:m}=r,y=u.current,{onPointerInTransitChange:g}=a,v=C.useCallback(()=>{d(null),g(!1)},[g]),x=C.useCallback((E,A)=>{const N=E.currentTarget,T={x:E.clientX,y:E.clientY},z=G2(T,N.getBoundingClientRect()),D=F2(T,z),L=I2(A.getBoundingClientRect()),I=X2([...D,...L]);d(I),g(!0)},[g]);return C.useEffect(()=>()=>v(),[v]),C.useEffect(()=>{if(p&&y){const E=N=>x(N,y),A=N=>x(N,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",A),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",A)}}},[p,y,x,v]),C.useEffect(()=>{if(c){const E=A=>{const N=A.target,T={x:A.clientX,y:A.clientY},z=(p==null?void 0:p.contains(N))||(y==null?void 0:y.contains(N)),D=!P2(T,c);z?v():D&&(v(),m())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,c,m,v]),S.jsx(Bb,{...t,ref:s})}),[H2,q2]=Uu(Na,{isInside:!1}),Y2=Qw("TooltipContent"),Bb=C.forwardRef((t,l)=>{const{__scopeTooltip:r,children:a,"aria-label":u,onEscapeKeyDown:s,onPointerDownOutside:c,...d}=t,p=Hu(xi,r),m=Bu(r),{onClose:y}=p;return C.useEffect(()=>(document.addEventListener(td,y),()=>document.removeEventListener(td,y)),[y]),C.useEffect(()=>{if(p.trigger){const g=v=>{const x=v.target;x!=null&&x.contains(p.trigger)&&y()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[p.trigger,y]),S.jsx(Ru,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:g=>g.preventDefault(),onDismiss:y,children:S.jsxs(zb,{"data-state":p.stateAttribute,...m,...d,ref:l,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[S.jsx(Y2,{children:a}),S.jsx(H2,{scope:r,isInside:!0,children:S.jsx(_2,{id:p.contentId,role:"tooltip",children:u||a})})]})})});Ub.displayName=xi;var Hb="TooltipArrow",V2=C.forwardRef((t,l)=>{const{__scopeTooltip:r,...a}=t,u=Bu(r);return q2(Hb,r).isInside?null:S.jsx(Rb,{...u,...a,ref:l})});V2.displayName=Hb;function G2(t,l){const r=Math.abs(l.top-t.y),a=Math.abs(l.bottom-t.y),u=Math.abs(l.right-t.x),s=Math.abs(l.left-t.x);switch(Math.min(r,a,u,s)){case s:return"left";case u:return"right";case r:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function F2(t,l,r=5){const a=[];switch(l){case"top":a.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":a.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":a.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":a.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return a}function I2(t){const{top:l,right:r,bottom:a,left:u}=t;return[{x:u,y:l},{x:r,y:l},{x:r,y:a},{x:u,y:a}]}function P2(t,l){const{x:r,y:a}=t;let u=!1;for(let s=0,c=l.length-1;s<l.length;c=s++){const d=l[s],p=l[c],m=d.x,y=d.y,g=p.x,v=p.y;y>a!=v>a&&r<(g-m)*(a-y)/(v-y)+m&&(u=!u)}return u}function X2(t){const l=t.slice();return l.sort((r,a)=>r.x<a.x?-1:r.x>a.x?1:r.y<a.y?-1:r.y>a.y?1:0),Q2(l)}function Q2(t){if(t.length<=1)return t.slice();const l=[];for(let a=0;a<t.length;a++){const u=t[a];for(;l.length>=2;){const s=l[l.length-1],c=l[l.length-2];if((s.x-c.x)*(u.y-c.y)>=(s.y-c.y)*(u.x-c.x))l.pop();else break}l.push(u)}l.pop();const r=[];for(let a=t.length-1;a>=0;a--){const u=t[a];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(u.y-c.y)>=(s.y-c.y)*(u.x-c.x))r.pop();else break}r.push(u)}return r.pop(),l.length===1&&r.length===1&&l[0].x===r[0].x&&l[0].y===r[0].y?l:l.concat(r)}var Z2=Mb,K2=jb,$2=Lb,qb=Ub;function Yb(t){var l,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(l=0;l<u;l++)t[l]&&(r=Yb(t[l]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function J2(){for(var t,l,r=0,a="",u=arguments.length;r<u;r++)(t=arguments[r])&&(l=Yb(t))&&(a&&(a+=" "),a+=l);return a}const W2=(t,l)=>{const r=new Array(t.length+l.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<l.length;a++)r[t.length+a]=l[a];return r},eE=(t,l)=>({classGroupId:t,validator:l}),Vb=(t=new Map,l=null,r)=>({nextPart:t,validators:l,classGroupId:r}),ku="-",Dy=[],tE="arbitrary..",nE=t=>{const l=rE(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return lE(c);const d=c.split(ku),p=d[0]===""&&d.length>1?1:0;return Gb(d,p,l)},getConflictingClassGroupIds:(c,d)=>{if(d){const p=a[c],m=r[c];return p?m?W2(m,p):p:m||Dy}return r[c]||Dy}}},Gb=(t,l,r)=>{if(t.length-l===0)return r.classGroupId;const u=t[l],s=r.nextPart.get(u);if(s){const m=Gb(t,l+1,s);if(m)return m}const c=r.validators;if(c===null)return;const d=l===0?t.join(ku):t.slice(l).join(ku),p=c.length;for(let m=0;m<p;m++){const y=c[m];if(y.validator(d))return y.classGroupId}},lE=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),r=l.indexOf(":"),a=l.slice(0,r);return a?tE+a:void 0})(),rE=t=>{const{theme:l,classGroups:r}=t;return iE(r,l)},iE=(t,l)=>{const r=Vb();for(const a in t){const u=t[a];Md(u,r,a,l)}return r},Md=(t,l,r,a)=>{const u=t.length;for(let s=0;s<u;s++){const c=t[s];aE(c,l,r,a)}},aE=(t,l,r,a)=>{if(typeof t=="string"){oE(t,l,r);return}if(typeof t=="function"){uE(t,l,r,a);return}sE(t,l,r,a)},oE=(t,l,r)=>{const a=t===""?l:Fb(l,t);a.classGroupId=r},uE=(t,l,r,a)=>{if(cE(t)){Md(t(a),l,r,a);return}l.validators===null&&(l.validators=[]),l.validators.push(eE(r,t))},sE=(t,l,r,a)=>{const u=Object.entries(t),s=u.length;for(let c=0;c<s;c++){const[d,p]=u[c];Md(p,Fb(l,d),r,a)}},Fb=(t,l)=>{let r=t;const a=l.split(ku),u=a.length;for(let s=0;s<u;s++){const c=a[s];let d=r.nextPart.get(c);d||(d=Vb(),r.nextPart.set(c,d)),r=d}return r},cE=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,fE=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,r=Object.create(null),a=Object.create(null);const u=(s,c)=>{r[s]=c,l++,l>t&&(l=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return u(s,c),c},set(s,c){s in r?r[s]=c:u(s,c)}}},ld="!",My=":",dE=[],jy=(t,l,r,a,u)=>({modifiers:t,hasImportantModifier:l,baseClassName:r,maybePostfixModifierPosition:a,isExternal:u}),hE=t=>{const{prefix:l,experimentalParseClassName:r}=t;let a=u=>{const s=[];let c=0,d=0,p=0,m;const y=u.length;for(let A=0;A<y;A++){const N=u[A];if(c===0&&d===0){if(N===My){s.push(u.slice(p,A)),p=A+1;continue}if(N==="/"){m=A;continue}}N==="["?c++:N==="]"?c--:N==="("?d++:N===")"&&d--}const g=s.length===0?u:u.slice(p);let v=g,x=!1;g.endsWith(ld)?(v=g.slice(0,-1),x=!0):g.startsWith(ld)&&(v=g.slice(1),x=!0);const E=m&&m>p?m-p:void 0;return jy(s,x,v,E)};if(l){const u=l+My,s=a;a=c=>c.startsWith(u)?s(c.slice(u.length)):jy(dE,!1,c,void 0,!0)}if(r){const u=a;a=s=>r({className:s,parseClassName:u})}return a},mE=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{l.set(r,1e6+a)}),r=>{const a=[];let u=[];for(let s=0;s<r.length;s++){const c=r[s],d=c[0]==="[",p=l.has(c);d||p?(u.length>0&&(u.sort(),a.push(...u),u=[]),a.push(c)):u.push(c)}return u.length>0&&(u.sort(),a.push(...u)),a}},pE=t=>({cache:fE(t.cacheSize),parseClassName:hE(t),sortModifiers:mE(t),postfixLookupClassGroupIds:gE(t),...nE(t)}),gE=t=>{const l=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)l[r[a]]=!0;return l},yE=/\s+/,xE=(t,l)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:u,sortModifiers:s,postfixLookupClassGroupIds:c}=l,d=[],p=t.trim().split(yE);let m="";for(let y=p.length-1;y>=0;y-=1){const g=p[y],{isExternal:v,modifiers:x,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:N}=r(g);if(v){m=g+(m.length>0?" "+m:m);continue}let T=!!N,z;if(T){const F=A.substring(0,N);z=a(F);const V=z&&c[z]?a(A):void 0;V&&V!==z&&(z=V,T=!1)}else z=a(A);if(!z){if(!T){m=g+(m.length>0?" "+m:m);continue}if(z=a(A),!z){m=g+(m.length>0?" "+m:m);continue}T=!1}const D=x.length===0?"":x.length===1?x[0]:s(x).join(":"),L=E?D+ld:D,I=L+z;if(d.indexOf(I)>-1)continue;d.push(I);const M=u(z,T);for(let F=0;F<M.length;++F){const V=M[F];d.push(L+V)}m=g+(m.length>0?" "+m:m)}return m},bE=(...t)=>{let l=0,r,a,u="";for(;l<t.length;)(r=t[l++])&&(a=Ib(r))&&(u&&(u+=" "),u+=a);return u},Ib=t=>{if(typeof t=="string")return t;let l,r="";for(let a=0;a<t.length;a++)t[a]&&(l=Ib(t[a]))&&(r&&(r+=" "),r+=l);return r},vE=(t,...l)=>{let r,a,u,s;const c=p=>{const m=l.reduce((y,g)=>g(y),t());return r=pE(m),a=r.cache.get,u=r.cache.set,s=d,d(p)},d=p=>{const m=a(p);if(m)return m;const y=xE(p,r);return u(p,y),y};return s=c,(...p)=>s(bE(...p))},SE=[],ht=t=>{const l=r=>r[t]||SE;return l.isThemeGetter=!0,l},Pb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,EE=/\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$/,CE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_l=t=>wE.test(t),Te=t=>!!t&&!Number.isNaN(Number(t)),On=t=>!!t&&Number.isInteger(Number(t)),vf=t=>t.endsWith("%")&&Te(t.slice(0,-1)),el=t=>kE.test(t),Qb=()=>!0,OE=t=>EE.test(t)&&!CE.test(t),jd=()=>!1,NE=t=>AE.test(t),zE=t=>TE.test(t),RE=t=>!de(t)&&!me(t),_E=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),DE=t=>Vl(t,$b,jd),de=t=>Pb.test(t),cr=t=>Vl(t,Jb,OE),Ly=t=>Vl(t,YE,Te),ME=t=>Vl(t,ev,Qb),jE=t=>Vl(t,Wb,jd),Uy=t=>Vl(t,Zb,jd),LE=t=>Vl(t,Kb,zE),nu=t=>Vl(t,tv,NE),me=t=>Xb.test(t),ba=t=>xr(t,Jb),UE=t=>xr(t,Wb),By=t=>xr(t,Zb),BE=t=>xr(t,$b),HE=t=>xr(t,Kb),lu=t=>xr(t,tv,!0),qE=t=>xr(t,ev,!0),Vl=(t,l,r)=>{const a=Pb.exec(t);return a?a[1]?l(a[1]):r(a[2]):!1},xr=(t,l,r=!1)=>{const a=Xb.exec(t);return a?a[1]?l(a[1]):r:!1},Zb=t=>t==="position"||t==="percentage",Kb=t=>t==="image"||t==="url",$b=t=>t==="length"||t==="size"||t==="bg-size",Jb=t=>t==="length",YE=t=>t==="number",Wb=t=>t==="family-name",ev=t=>t==="number"||t==="weight",tv=t=>t==="shadow",VE=()=>{const t=ht("color"),l=ht("font"),r=ht("text"),a=ht("font-weight"),u=ht("tracking"),s=ht("leading"),c=ht("breakpoint"),d=ht("container"),p=ht("spacing"),m=ht("radius"),y=ht("shadow"),g=ht("inset-shadow"),v=ht("text-shadow"),x=ht("drop-shadow"),E=ht("blur"),A=ht("perspective"),N=ht("aspect"),T=ht("ease"),z=ht("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...L(),me,de],M=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],V=()=>[me,de,p],ue=()=>[_l,"full","auto",...V()],H=()=>[On,"none","subgrid",me,de],ie=()=>["auto",{span:["full",On,me,de]},On,me,de],le=()=>[On,"auto",me,de],he=()=>["auto","min","max","fr",me,de],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...V()],Z=()=>[_l,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],re=()=>[_l,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ge=()=>[_l,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],O=()=>[t,me,de],_=()=>[...L(),By,Uy,{position:[me,de]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",BE,DE,{size:[me,de]}],J=()=>[vf,ba,cr],te=()=>["","none","full",m,me,de],W=()=>["",Te,ba,cr],se=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Te,vf,By,Uy],Ye=()=>["","none",E,me,de],ct=()=>["none",Te,me,de],Vt=()=>["none",Te,me,de],Rt=()=>[Te,me,de],yt=()=>[_l,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[el],breakpoint:[el],color:[Qb],container:[el],"drop-shadow":[el],ease:["in","out","in-out"],font:[RE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[el],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[el],shadow:[el],spacing:["px",Te],text:[el],"text-shadow":[el],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_l,de,me,N]}],container:["container"],"container-type":[{"@container":["","normal","size",me,de]}],"container-named":[_E],columns:[{columns:[Te,de,me,d]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:I()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ue()}],"inset-x":[{"inset-x":ue()}],"inset-y":[{"inset-y":ue()}],start:[{"inset-s":ue(),start:ue()}],end:[{"inset-e":ue(),end:ue()}],"inset-bs":[{"inset-bs":ue()}],"inset-be":[{"inset-be":ue()}],top:[{top:ue()}],right:[{right:ue()}],bottom:[{bottom:ue()}],left:[{left:ue()}],visibility:["visible","invisible","collapse"],z:[{z:[On,"auto",me,de]}],basis:[{basis:[_l,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,_l,"auto","initial","none",de]}],grow:[{grow:["",Te,me,de]}],shrink:[{shrink:["",Te,me,de]}],order:[{order:[On,"first","last","none",me,de]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ge()]}],"min-block-size":[{"min-block":["auto",...ge()]}],"max-block-size":[{"max-block":["none",...ge()]}],w:[{w:[d,"screen",...Z()]}],"min-w":[{"min-w":[d,"screen","none",...Z()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,ba,cr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,qE,ME]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vf,de]}],"font-family":[{font:[UE,jE,l]}],"font-features":[{"font-features":[de]}],"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:[u,me,de]}],"line-clamp":[{"line-clamp":[Te,"none",me,Ly]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",me,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",me,cr]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[Te,"auto",me,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[On,me,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,de]}],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",me,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},On,me,de],radial:["",me,de],conic:[On,me,de]},HE,LE]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,me,de]}],"outline-w":[{outline:["",Te,ba,cr]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",y,lu,nu]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",g,lu,nu]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[Te,cr]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",v,lu,nu]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[Te,me,de]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[me,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,de]}],filter:[{filter:["","none",me,de]}],blur:[{blur:Ye()}],brightness:[{brightness:[Te,me,de]}],contrast:[{contrast:[Te,me,de]}],"drop-shadow":[{"drop-shadow":["","none",x,lu,nu]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",Te,me,de]}],"hue-rotate":[{"hue-rotate":[Te,me,de]}],invert:[{invert:["",Te,me,de]}],saturate:[{saturate:[Te,me,de]}],sepia:[{sepia:["",Te,me,de]}],"backdrop-filter":[{"backdrop-filter":["","none",me,de]}],"backdrop-blur":[{"backdrop-blur":Ye()}],"backdrop-brightness":[{"backdrop-brightness":[Te,me,de]}],"backdrop-contrast":[{"backdrop-contrast":[Te,me,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,me,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,me,de]}],"backdrop-invert":[{"backdrop-invert":["",Te,me,de]}],"backdrop-opacity":[{"backdrop-opacity":[Te,me,de]}],"backdrop-saturate":[{"backdrop-saturate":[Te,me,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,me,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",me,de]}],ease:[{ease:["linear","initial",T,me,de]}],delay:[{delay:[Te,me,de]}],animate:[{animate:["none",z,me,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,me,de]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:ct()}],"rotate-x":[{"rotate-x":ct()}],"rotate-y":[{"rotate-y":ct()}],"rotate-z":[{"rotate-z":ct()}],scale:[{scale:Vt()}],"scale-x":[{"scale-x":Vt()}],"scale-y":[{"scale-y":Vt()}],"scale-z":[{"scale-z":Vt()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[me,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],zoom:[{zoom:[On,me,de]}],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,de]}],"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":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",me,de]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[Te,ba,cr,Ly]}],stroke:[{stroke:["none",...O()]}],"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":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},GE=vE(VE);function $e(...t){return GE(J2(t))}const FE=Z2,nv=K2,lv=$2,Ld=C.forwardRef(({className:t,sideOffset:l=4,...r},a)=>S.jsx(qb,{ref:a,sideOffset:l,className:$e("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 origin-[--radix-tooltip-content-transform-origin]",t),...r}));Ld.displayName=qb.displayName;const Hy="agent-control-ui-device-identity";function rv(t){const l=new Uint8Array(t);let r="";for(let a=0;a<l.length;a++)r+=String.fromCharCode(l[a]);return btoa(r).replaceAll("+","-").replaceAll("/","_").replace(/=+$/g,"")}function IE(t){const l=new Uint8Array(t);let r="";for(let a=0;a<l.length;a++)r+=String.fromCharCode(l[a]);return btoa(r)}function PE(t){const l=atob(t),r=new Uint8Array(l.length);for(let a=0;a<l.length;a++)r[a]=l.charCodeAt(a);return r}async function XE(t){const l=await crypto.subtle.digest("SHA-256",t);return[...new Uint8Array(l)].map(r=>r.toString(16).padStart(2,"0")).join("")}async function QE(){const t=localStorage.getItem(Hy);if(t)try{const c=JSON.parse(t);if(c.deviceId&&c.publicKeyB64Url&&c.privateKeyB64)return c}catch{}const l=await crypto.subtle.generateKey("Ed25519",!0,["sign","verify"]),r=await crypto.subtle.exportKey("raw",l.publicKey),a=await crypto.subtle.exportKey("pkcs8",l.privateKey),s={deviceId:await XE(r),publicKeyB64Url:rv(r),privateKeyB64:IE(a)};return localStorage.setItem(Hy,JSON.stringify(s)),s}async function ZE(t,l){const r=Date.now(),a=["v2",t.deviceId,l.clientId,l.clientMode,l.role,l.scopes.join(","),r.toString(),l.token,l.nonce].join("|"),u=await crypto.subtle.importKey("pkcs8",PE(t.privateKeyB64).buffer,"Ed25519",!1,["sign"]),s=await crypto.subtle.sign("Ed25519",u,new TextEncoder().encode(a));return{deviceId:t.deviceId,publicKey:t.publicKeyB64Url,signature:rv(s),signedAt:r}}class iv extends Error{constructor(l="Device pairing required"){super(l),this.name="PairingRequiredError"}}class KE{constructor(){$t(this,"ws",null);$t(this,"pending",new Map);$t(this,"seq",0);$t(this,"gatewayUrl",null);$t(this,"gatewayToken",null);$t(this,"autoReconnect",!1);$t(this,"reconnecting",!1);$t(this,"disposed",!1);$t(this,"reconnectTimer",null);$t(this,"visibilityHandler",null);$t(this,"eventHandler",null);$t(this,"connectionChangeHandler",null)}onEvent(l){this.eventHandler=l}onConnectionChange(l){this.connectionChangeHandler=l}connect(l,r){return this.gatewayUrl=l,this.gatewayToken=r,new Promise((a,u)=>{const s=$E(l),c=new WebSocket(s);this.ws=c;const d=setTimeout(()=>{c.close(),u(new Error("Gateway connection timed out"))},15e3);c.onclose=()=>{clearTimeout(d),u(new Error("WebSocket closed before connect"))},c.onerror=()=>{clearTimeout(d),u(new Error("WebSocket error"))},c.onmessage=p=>{let m;try{m=JSON.parse(typeof p.data=="string"?p.data:"")}catch{return}if(m.type==="event"&&m.event==="connect.challenge"){const y=m.payload,g=(y==null?void 0:y.nonce)??"";QE().then(v=>ZE(v,{clientId:"openclaw-control-ui",clientMode:"webchat",role:"operator",scopes:["operator.read","operator.write","operator.admin","operator.approvals"],token:r,nonce:g})).then(v=>{const x=this.nextId();c.send(JSON.stringify({type:"req",id:x,method:"connect",params:{minProtocol:4,maxProtocol:4,client:{id:"openclaw-control-ui",version:"1.0.0",platform:"web",mode:"webchat"},role:"operator",scopes:["operator.read","operator.write","operator.admin","operator.approvals"],caps:["tool-events"],auth:{token:r},device:{id:v.deviceId,publicKey:v.publicKey,signature:v.signature,signedAt:v.signedAt,nonce:g},locale:navigator.language||"en-US",userAgent:"clawnify-agent-control-ui/0.0.1"}}))}).catch(v=>{clearTimeout(d),c.close(),u(v)});return}if(m.type==="res"&&!this.pending.has(m.id??"")){if(clearTimeout(d),m.ok)c.onmessage=this.handleMessage.bind(this),c.onclose=()=>{var y;this.rejectAll("WebSocket closed"),(y=this.connectionChangeHandler)==null||y.call(this,!1),this.scheduleAutoReconnect()},c.onerror=()=>{this.rejectAll("WebSocket error")},a();else{c.close();const y=JSON.stringify(m.error);/pairing|device.identity/i.test(y)?u(new iv(y)):u(new Error(`Gateway auth failed: ${y}`))}return}}})}enableAutoReconnect(){this.autoReconnect=!0,this.visibilityHandler||(this.visibilityHandler=()=>{!document.hidden&&this.autoReconnect&&!this.disposed&&(!this.ws||this.ws.readyState!==WebSocket.OPEN)&&this.scheduleAutoReconnect(500)},document.addEventListener("visibilitychange",this.visibilityHandler))}scheduleAutoReconnect(l=3e3){!this.autoReconnect||this.disposed||this.reconnecting||this.reconnectTimer||(this.reconnectTimer=setTimeout(async()=>{if(this.reconnectTimer=null,!(this.disposed||this.reconnecting)){this.reconnecting=!0;try{await this.reconnect()}catch{this.disposed||this.scheduleAutoReconnect(Math.min(l*2,3e4))}finally{this.reconnecting=!1}}},l))}request(l,r={}){return new Promise((a,u)=>{if(!this.ws||this.ws.readyState!==WebSocket.OPEN)return u(new Error("Not connected"));const s=this.nextId(),c=typeof r.timeoutMs=="number"?r.timeoutMs+5e3:1e4,d=setTimeout(()=>{this.pending.delete(s),u(new Error(`Request "${l}" timed out`))},c);this.pending.set(s,{resolve:a,reject:u,timer:d}),this.ws.send(JSON.stringify({type:"req",id:s,method:l,params:r}))})}async reconnect(){var l;if(!this.gatewayUrl||!this.gatewayToken)throw new Error("Cannot reconnect: no previous connection");this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.close(),this.ws=null),await this.connect(this.gatewayUrl,this.gatewayToken),(l=this.connectionChangeHandler)==null||l.call(this,!0)}get connected(){var l;return((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN}disconnect(){this.disposed=!0,this.autoReconnect=!1,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.rejectAll("Disconnected"),this.ws&&(this.ws.onclose=null,this.ws.onerror=null,this.ws.onmessage=null,this.ws.close(),this.ws=null)}handleMessage(l){let r;try{r=JSON.parse(typeof l.data=="string"?l.data:"")}catch{return}if(r.type==="res"&&r.id){const a=this.pending.get(r.id);if(!a)return;this.pending.delete(r.id),clearTimeout(a.timer),r.ok?a.resolve(r.payload):a.reject(new Error(JSON.stringify(r.error)));return}r.type==="event"&&r.event&&this.eventHandler&&this.eventHandler({event:r.event,payload:r.payload,seq:r.seq,stateVersion:r.stateVersion})}nextId(){return`clw-${++this.seq}-${Date.now()}`}rejectAll(l){for(const[r,a]of this.pending)clearTimeout(a.timer),a.reject(new Error(l)),this.pending.delete(r)}}function $E(t){const l=t.trim();return l.startsWith("ws://")||l.startsWith("wss://")?l:l.startsWith("http://")?"ws://"+l.slice(7):l.startsWith("https://")?"wss://"+l.slice(8):(/^(127\.|localhost|::1)/.test(l)?"ws://":"wss://")+l}const rd="agent-control-ui-gateway-url",Ud="agent-control-ui-token";function JE(){let t=null,l=null,r=!1;if(window.location.hash){const c=new URLSearchParams(window.location.hash.slice(1)).get("token");c&&(l=c),c&&history.replaceState(null,"",window.location.pathname+window.location.search)}const a=new URLSearchParams(window.location.search),u=a.get("gatewayUrl");if(u){t=u,localStorage.setItem(rd,u),a.delete("gatewayUrl");const s=a.toString();history.replaceState(null,"",window.location.pathname+(s?`?${s}`:""))}if(t||(t=localStorage.getItem(rd)),!l){const s=localStorage.getItem(Ud);s&&(l=s,r=!0)}return{gatewayUrl:t,token:l,tokenPersisted:r}}function WE(t){localStorage.setItem(rd,t)}function eC(t){localStorage.setItem(Ud,t)}function tC(){localStorage.removeItem(Ud)}async function nC(){try{const t=await fetch("/__local/gateway",{method:"GET"});return t.ok?await t.json():null}catch{return null}}/**
50
+ * @license lucide-react v1.16.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const av=(...t)=>t.filter((l,r,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===r).join(" ").trim();/**
55
+ * @license lucide-react v1.16.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const lC=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v1.16.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const rC=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,a)=>a?a.toUpperCase():r.toLowerCase());/**
65
+ * @license lucide-react v1.16.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const qy=t=>{const l=rC(t);return l.charAt(0).toUpperCase()+l.slice(1)};/**
70
+ * @license lucide-react v1.16.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */var Sf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
75
+ * @license lucide-react v1.16.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const iC=t=>{for(const l in t)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},aC=C.createContext({}),oC=()=>C.useContext(aC),uC=C.forwardRef(({color:t,size:l,strokeWidth:r,absoluteStrokeWidth:a,className:u="",children:s,iconNode:c,...d},p)=>{const{size:m=24,strokeWidth:y=2,absoluteStrokeWidth:g=!1,color:v="currentColor",className:x=""}=oC()??{},E=a??g?Number(r??y)*24/Number(l??m):r??y;return C.createElement("svg",{ref:p,...Sf,width:l??m??Sf.width,height:l??m??Sf.height,stroke:t??v,strokeWidth:E,className:av("lucide",x,u),...!s&&!iC(d)&&{"aria-hidden":"true"},...d},[...c.map(([A,N])=>C.createElement(A,N)),...Array.isArray(s)?s:[s]])});/**
80
+ * @license lucide-react v1.16.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const qe=(t,l)=>{const r=C.forwardRef(({className:a,...u},s)=>C.createElement(uC,{ref:s,iconNode:l,className:av(`lucide-${lC(qy(t))}`,`lucide-${t}`,a),...u}));return r.displayName=qy(t),r};/**
85
+ * @license lucide-react v1.16.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const sC=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],cC=qe("arrow-up",sC);/**
90
+ * @license lucide-react v1.16.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const fC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],wf=qe("ban",fC);/**
95
+ * @license lucide-react v1.16.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const dC=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],hC=qe("bot",dC);/**
100
+ * @license lucide-react v1.16.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const mC=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],pC=qe("brain",mC);/**
105
+ * @license lucide-react v1.16.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const gC=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],yC=qe("camera",gC);/**
110
+ * @license lucide-react v1.16.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const xC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hu=qe("check",xC);/**
115
+ * @license lucide-react v1.16.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const bC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ov=qe("chevron-down",bC);/**
120
+ * @license lucide-react v1.16.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const vC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uv=qe("chevron-right",vC);/**
125
+ * @license lucide-react v1.16.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const SC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],wC=qe("compass",SC);/**
130
+ * @license lucide-react v1.16.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const kC=[["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"}]],id=qe("eye",kC);/**
135
+ * @license lucide-react v1.16.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const EC=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],sv=qe("file-pen",EC);/**
140
+ * @license lucide-react v1.16.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const CC=[["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"}]],Yy=qe("globe",CC);/**
145
+ * @license lucide-react v1.16.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const AC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],TC=qe("info",AC);/**
150
+ * @license lucide-react v1.16.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const OC=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],NC=qe("key-round",OC);/**
155
+ * @license lucide-react v1.16.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const zC=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],RC=qe("keyboard",zC);/**
160
+ * @license lucide-react v1.16.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const _C=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],mu=qe("loader-circle",_C);/**
165
+ * @license lucide-react v1.16.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const DC=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Bd=qe("monitor",DC);/**
170
+ * @license lucide-react v1.16.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const MC=[["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"}]],cv=qe("moon",MC);/**
175
+ * @license lucide-react v1.16.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const jC=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],LC=qe("mouse-pointer-click",jC);/**
180
+ * @license lucide-react v1.16.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const UC=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],BC=qe("paperclip",UC);/**
185
+ * @license lucide-react v1.16.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const HC=[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Hd=qe("pencil",HC);/**
190
+ * @license lucide-react v1.16.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const qC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],YC=qe("plus",qC);/**
195
+ * @license lucide-react v1.16.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const VC=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fv=qe("search",VC);/**
200
+ * @license lucide-react v1.16.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const GC=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],FC=qe("settings",GC);/**
205
+ * @license lucide-react v1.16.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const IC=[["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"}]],PC=qe("sparkles",IC);/**
210
+ * @license lucide-react v1.16.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const XC=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],QC=qe("square",XC);/**
215
+ * @license lucide-react v1.16.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const ZC=[["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"}]],dv=qe("sun",ZC);/**
220
+ * @license lucide-react v1.16.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const KC=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],hv=qe("terminal",KC);/**
225
+ * @license lucide-react v1.16.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const $C=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],JC=qe("trash-2",$C);/**
230
+ * @license lucide-react v1.16.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const WC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],eA=qe("x",WC),mv="agent-control-ui-theme";function tA(t){return t==="dark"?!0:t==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches}function Vy(t){document.documentElement.classList.toggle("dark",tA(t))}function nA(){const t=localStorage.getItem(mv);return t==="light"||t==="dark"?t:"system"}function pv(){const[t,l]=C.useState(()=>nA());return C.useEffect(()=>{Vy(t),localStorage.setItem(mv,t)},[t]),C.useEffect(()=>{if(t!=="system")return;const r=window.matchMedia("(prefers-color-scheme: dark)"),a=()=>Vy("system");return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[t]),[t,l]}var kf="focusScope.autoFocusOnMount",Ef="focusScope.autoFocusOnUnmount",Gy={bubbles:!1,cancelable:!0},lA="FocusScope",qd=C.forwardRef((t,l)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:u,onUnmountAutoFocus:s,...c}=t,[d,p]=C.useState(null),m=gi(u),y=gi(s),g=C.useRef(null),v=nn(l,A=>p(A)),x=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(a){let A=function(D){if(x.paused||!d)return;const L=D.target;d.contains(L)?g.current=L:Ml(g.current,{select:!0})},N=function(D){if(x.paused||!d)return;const L=D.relatedTarget;L!==null&&(d.contains(L)||Ml(g.current,{select:!0}))},T=function(D){if(document.activeElement===document.body)for(const I of D)I.removedNodes.length>0&&Ml(d)};document.addEventListener("focusin",A),document.addEventListener("focusout",N);const z=new MutationObserver(T);return d&&z.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",N),z.disconnect()}}},[a,d,x.paused]),C.useEffect(()=>{if(d){Iy.add(x);const A=document.activeElement;if(!d.contains(A)){const T=new CustomEvent(kf,Gy);d.addEventListener(kf,m),d.dispatchEvent(T),T.defaultPrevented||(rA(sA(gv(d)),{select:!0}),document.activeElement===A&&Ml(d))}return()=>{d.removeEventListener(kf,m),setTimeout(()=>{const T=new CustomEvent(Ef,Gy);d.addEventListener(Ef,y),d.dispatchEvent(T),T.defaultPrevented||Ml(A??document.body,{select:!0}),d.removeEventListener(Ef,y),Iy.remove(x)},0)}}},[d,m,y,x]);const E=C.useCallback(A=>{if(!r&&!a||x.paused)return;const N=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,T=document.activeElement;if(N&&T){const z=A.currentTarget,[D,L]=iA(z);D&&L?!A.shiftKey&&T===L?(A.preventDefault(),r&&Ml(D,{select:!0})):A.shiftKey&&T===D&&(A.preventDefault(),r&&Ml(L,{select:!0})):T===z&&A.preventDefault()}},[r,a,x.paused]);return S.jsx(Ct.div,{tabIndex:-1,...c,ref:v,onKeyDown:E})});qd.displayName=lA;function rA(t,{select:l=!1}={}){const r=document.activeElement;for(const a of t)if(Ml(a,{select:l}),document.activeElement!==r)return}function iA(t){const l=gv(t),r=Fy(l,t),a=Fy(l.reverse(),t);return[r,a]}function gv(t){const l=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const u=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||u?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function Fy(t,l){for(const r of t)if(!aA(r,{upTo:l}))return r}function aA(t,{upTo:l}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(l!==void 0&&t===l)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function oA(t){return t instanceof HTMLInputElement&&"select"in t}function Ml(t,{select:l=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&oA(t)&&l&&t.select()}}var Iy=uA();function uA(){let t=[];return{add(l){const r=t[0];l!==r&&(r==null||r.pause()),t=Py(t,l),t.unshift(l)},remove(l){var r;t=Py(t,l),(r=t[0])==null||r.resume()}}}function Py(t,l){const r=[...t],a=r.indexOf(l);return a!==-1&&r.splice(a,1),r}function sA(t){return t.filter(l=>l.tagName!=="A")}var Cf=0;function yv(){C.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Xy()),document.body.insertAdjacentElement("beforeend",t[1]??Xy()),Cf++,()=>{Cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Cf--}},[])}function Xy(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var zn=function(){return zn=Object.assign||function(l){for(var r,a=1,u=arguments.length;a<u;a++){r=arguments[a];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(l[s]=r[s])}return l},zn.apply(this,arguments)};function xv(t,l){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(t);u<a.length;u++)l.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(t,a[u])&&(r[a[u]]=t[a[u]]);return r}function cA(t,l,r){if(r||arguments.length===2)for(var a=0,u=l.length,s;a<u;a++)(s||!(a in l))&&(s||(s=Array.prototype.slice.call(l,0,a)),s[a]=l[a]);return t.concat(s||Array.prototype.slice.call(l))}var pu="right-scroll-bar-position",gu="width-before-scroll-bar",fA="with-scroll-bars-hidden",dA="--removed-body-scroll-bar-size";function Af(t,l){return typeof t=="function"?t(l):t&&(t.current=l),t}function hA(t,l){var r=C.useState(function(){return{value:t,callback:l,facade:{get current(){return r.value},set current(a){var u=r.value;u!==a&&(r.value=a,r.callback(a,u))}}}})[0];return r.callback=l,r.facade}var mA=typeof window<"u"?C.useLayoutEffect:C.useEffect,Qy=new WeakMap;function pA(t,l){var r=hA(null,function(a){return t.forEach(function(u){return Af(u,a)})});return mA(function(){var a=Qy.get(r);if(a){var u=new Set(a),s=new Set(t),c=r.current;u.forEach(function(d){s.has(d)||Af(d,null)}),s.forEach(function(d){u.has(d)||Af(d,c)})}Qy.set(r,t)},[t]),r}function gA(t){return t}function yA(t,l){l===void 0&&(l=gA);var r=[],a=!1,u={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(s){var c=l(s,a);return r.push(c),function(){r=r.filter(function(d){return d!==c})}},assignSyncMedium:function(s){for(a=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(d){return s(d)},filter:function(){return r}}},assignMedium:function(s){a=!0;var c=[];if(r.length){var d=r;r=[],d.forEach(s),c=r}var p=function(){var y=c;c=[],y.forEach(s)},m=function(){return Promise.resolve().then(p)};m(),r={push:function(y){c.push(y),m()},filter:function(y){return c=c.filter(y),r}}}};return u}function xA(t){t===void 0&&(t={});var l=yA(null);return l.options=zn({async:!0,ssr:!1},t),l}var bv=function(t){var l=t.sideCar,r=xv(t,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=l.read();if(!a)throw new Error("Sidecar medium not found");return C.createElement(a,zn({},r))};bv.isSideCarExport=!0;function bA(t,l){return t.useMedium(l),bv}var vv=xA(),Tf=function(){},qu=C.forwardRef(function(t,l){var r=C.useRef(null),a=C.useState({onScrollCapture:Tf,onWheelCapture:Tf,onTouchMoveCapture:Tf}),u=a[0],s=a[1],c=t.forwardProps,d=t.children,p=t.className,m=t.removeScrollBar,y=t.enabled,g=t.shards,v=t.sideCar,x=t.noRelative,E=t.noIsolation,A=t.inert,N=t.allowPinchZoom,T=t.as,z=T===void 0?"div":T,D=t.gapMode,L=xv(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=v,M=pA([r,l]),F=zn(zn({},L),u);return C.createElement(C.Fragment,null,y&&C.createElement(I,{sideCar:vv,removeScrollBar:m,shards:g,noRelative:x,noIsolation:E,inert:A,setCallbacks:s,allowPinchZoom:!!N,lockRef:r,gapMode:D}),c?C.cloneElement(C.Children.only(d),zn(zn({},F),{ref:M})):C.createElement(z,zn({},F,{className:p,ref:M}),d))});qu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qu.classNames={fullWidth:gu,zeroRight:pu};var vA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SA(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var l=vA();return l&&t.setAttribute("nonce",l),t}function wA(t,l){t.styleSheet?t.styleSheet.cssText=l:t.appendChild(document.createTextNode(l))}function kA(t){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(t)}var EA=function(){var t=0,l=null;return{add:function(r){t==0&&(l=SA())&&(wA(l,r),kA(l)),t++},remove:function(){t--,!t&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},CA=function(){var t=EA();return function(l,r){C.useEffect(function(){return t.add(l),function(){t.remove()}},[l&&r])}},Sv=function(){var t=CA(),l=function(r){var a=r.styles,u=r.dynamic;return t(a,u),null};return l},AA={left:0,top:0,right:0,gap:0},Of=function(t){return parseInt(t||"",10)||0},TA=function(t){var l=window.getComputedStyle(document.body),r=l[t==="padding"?"paddingLeft":"marginLeft"],a=l[t==="padding"?"paddingTop":"marginTop"],u=l[t==="padding"?"paddingRight":"marginRight"];return[Of(r),Of(a),Of(u)]},OA=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return AA;var l=TA(t),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,a-r+l[2]-l[0])}},NA=Sv(),mi="data-scroll-locked",zA=function(t,l,r,a){var u=t.left,s=t.top,c=t.right,d=t.gap;return r===void 0&&(r="margin"),`
235
+ .`.concat(fA,` {
236
+ overflow: hidden `).concat(a,`;
237
+ padding-right: `).concat(d,"px ").concat(a,`;
238
+ }
239
+ body[`).concat(mi,`] {
240
+ overflow: hidden `).concat(a,`;
241
+ overscroll-behavior: contain;
242
+ `).concat([l&&"position: relative ".concat(a,";"),r==="margin"&&`
243
+ padding-left: `.concat(u,`px;
244
+ padding-top: `).concat(s,`px;
245
+ padding-right: `).concat(c,`px;
246
+ margin-left:0;
247
+ margin-top:0;
248
+ margin-right: `).concat(d,"px ").concat(a,`;
249
+ `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(a,";")].filter(Boolean).join(""),`
250
+ }
251
+
252
+ .`).concat(pu,` {
253
+ right: `).concat(d,"px ").concat(a,`;
254
+ }
255
+
256
+ .`).concat(gu,` {
257
+ margin-right: `).concat(d,"px ").concat(a,`;
258
+ }
259
+
260
+ .`).concat(pu," .").concat(pu,` {
261
+ right: 0 `).concat(a,`;
262
+ }
263
+
264
+ .`).concat(gu," .").concat(gu,` {
265
+ margin-right: 0 `).concat(a,`;
266
+ }
267
+
268
+ body[`).concat(mi,`] {
269
+ `).concat(dA,": ").concat(d,`px;
270
+ }
271
+ `)},Zy=function(){var t=parseInt(document.body.getAttribute(mi)||"0",10);return isFinite(t)?t:0},RA=function(){C.useEffect(function(){return document.body.setAttribute(mi,(Zy()+1).toString()),function(){var t=Zy()-1;t<=0?document.body.removeAttribute(mi):document.body.setAttribute(mi,t.toString())}},[])},_A=function(t){var l=t.noRelative,r=t.noImportant,a=t.gapMode,u=a===void 0?"margin":a;RA();var s=C.useMemo(function(){return OA(u)},[u]);return C.createElement(NA,{styles:zA(s,!l,u,r?"":"!important")})},ad=!1;if(typeof window<"u")try{var ru=Object.defineProperty({},"passive",{get:function(){return ad=!0,!0}});window.addEventListener("test",ru,ru),window.removeEventListener("test",ru,ru)}catch{ad=!1}var oi=ad?{passive:!1}:!1,DA=function(t){return t.tagName==="TEXTAREA"},wv=function(t,l){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!DA(t)&&r[l]==="visible")},MA=function(t){return wv(t,"overflowY")},jA=function(t){return wv(t,"overflowX")},Ky=function(t,l){var r=l.ownerDocument,a=l;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=kv(t,a);if(u){var s=Ev(t,a),c=s[1],d=s[2];if(c>d)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},LA=function(t){var l=t.scrollTop,r=t.scrollHeight,a=t.clientHeight;return[l,r,a]},UA=function(t){var l=t.scrollLeft,r=t.scrollWidth,a=t.clientWidth;return[l,r,a]},kv=function(t,l){return t==="v"?MA(l):jA(l)},Ev=function(t,l){return t==="v"?LA(l):UA(l)},BA=function(t,l){return t==="h"&&l==="rtl"?-1:1},HA=function(t,l,r,a,u){var s=BA(t,window.getComputedStyle(l).direction),c=s*a,d=r.target,p=l.contains(d),m=!1,y=c>0,g=0,v=0;do{if(!d)break;var x=Ev(t,d),E=x[0],A=x[1],N=x[2],T=A-N-s*E;(E||T)&&kv(t,d)&&(g+=T,v+=E);var z=d.parentNode;d=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!p&&d!==document.body||p&&(l.contains(d)||l===d));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(m=!0),m},iu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},$y=function(t){return[t.deltaX,t.deltaY]},Jy=function(t){return t&&"current"in t?t.current:t},qA=function(t,l){return t[0]===l[0]&&t[1]===l[1]},YA=function(t){return`
272
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
273
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
274
+ `)},VA=0,ui=[];function GA(t){var l=C.useRef([]),r=C.useRef([0,0]),a=C.useRef(),u=C.useState(VA++)[0],s=C.useState(Sv)[0],c=C.useRef(t);C.useEffect(function(){c.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(u));var A=cA([t.lockRef.current],(t.shards||[]).map(Jy),!0).filter(Boolean);return A.forEach(function(N){return N.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),A.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(u))})}}},[t.inert,t.lockRef.current,t.shards]);var d=C.useCallback(function(A,N){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!c.current.allowPinchZoom;var T=iu(A),z=r.current,D="deltaX"in A?A.deltaX:z[0]-T[0],L="deltaY"in A?A.deltaY:z[1]-T[1],I,M=A.target,F=Math.abs(D)>Math.abs(L)?"h":"v";if("touches"in A&&F==="h"&&M.type==="range")return!1;var V=window.getSelection(),ue=V&&V.anchorNode,H=ue?ue===M||ue.contains(M):!1;if(H)return!1;var ie=Ky(F,M);if(!ie)return!0;if(ie?I=F:(I=F==="v"?"h":"v",ie=Ky(F,M)),!ie)return!1;if(!a.current&&"changedTouches"in A&&(D||L)&&(a.current=I),!I)return!0;var le=a.current||I;return HA(le,N,A,le==="h"?D:L)},[]),p=C.useCallback(function(A){var N=A;if(!(!ui.length||ui[ui.length-1]!==s)){var T="deltaY"in N?$y(N):iu(N),z=l.current.filter(function(I){return I.name===N.type&&(I.target===N.target||N.target===I.shadowParent)&&qA(I.delta,T)})[0];if(z&&z.should){N.cancelable&&N.preventDefault();return}if(!z){var D=(c.current.shards||[]).map(Jy).filter(Boolean).filter(function(I){return I.contains(N.target)}),L=D.length>0?d(N,D[0]):!c.current.noIsolation;L&&N.cancelable&&N.preventDefault()}}},[]),m=C.useCallback(function(A,N,T,z){var D={name:A,delta:N,target:T,should:z,shadowParent:FA(T)};l.current.push(D),setTimeout(function(){l.current=l.current.filter(function(L){return L!==D})},1)},[]),y=C.useCallback(function(A){r.current=iu(A),a.current=void 0},[]),g=C.useCallback(function(A){m(A.type,$y(A),A.target,d(A,t.lockRef.current))},[]),v=C.useCallback(function(A){m(A.type,iu(A),A.target,d(A,t.lockRef.current))},[]);C.useEffect(function(){return ui.push(s),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",p,oi),document.addEventListener("touchmove",p,oi),document.addEventListener("touchstart",y,oi),function(){ui=ui.filter(function(A){return A!==s}),document.removeEventListener("wheel",p,oi),document.removeEventListener("touchmove",p,oi),document.removeEventListener("touchstart",y,oi)}},[]);var x=t.removeScrollBar,E=t.inert;return C.createElement(C.Fragment,null,E?C.createElement(s,{styles:YA(u)}):null,x?C.createElement(_A,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function FA(t){for(var l=null;t!==null;)t instanceof ShadowRoot&&(l=t.host,t=t.host),t=t.parentNode;return l}const IA=bA(vv,GA);var Yd=C.forwardRef(function(t,l){return C.createElement(qu,zn({},t,{ref:l,sideCar:IA}))});Yd.classNames=qu.classNames;var PA=function(t){if(typeof document>"u")return null;var l=Array.isArray(t)?t[0]:t;return l.ownerDocument.body},si=new WeakMap,au=new WeakMap,ou={},Nf=0,Cv=function(t){return t&&(t.host||Cv(t.parentNode))},XA=function(t,l){return l.map(function(r){if(t.contains(r))return r;var a=Cv(r);return a&&t.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},QA=function(t,l,r,a){var u=XA(l,Array.isArray(t)?t:[t]);ou[r]||(ou[r]=new WeakMap);var s=ou[r],c=[],d=new Set,p=new Set(u),m=function(g){!g||d.has(g)||(d.add(g),m(g.parentNode))};u.forEach(m);var y=function(g){!g||p.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))y(v);else try{var x=v.getAttribute(a),E=x!==null&&x!=="false",A=(si.get(v)||0)+1,N=(s.get(v)||0)+1;si.set(v,A),s.set(v,N),c.push(v),A===1&&E&&au.set(v,!0),N===1&&v.setAttribute(r,"true"),E||v.setAttribute(a,"true")}catch(T){console.error("aria-hidden: cannot operate on ",v,T)}})};return y(l),d.clear(),Nf++,function(){c.forEach(function(g){var v=si.get(g)-1,x=s.get(g)-1;si.set(g,v),s.set(g,x),v||(au.has(g)||g.removeAttribute(a),au.delete(g)),x||g.removeAttribute(r)}),Nf--,Nf||(si=new WeakMap,si=new WeakMap,au=new WeakMap,ou={})}},Av=function(t,l,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),u=PA(t);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live], script"))),QA(a,u,r,"aria-hidden")):function(){return null}},Yu="Dialog",[Tv]=zu(Yu),[ZA,kn]=Tv(Yu),Ov=t=>{const{__scopeDialog:l,children:r,open:a,defaultOpen:u,onOpenChange:s,modal:c=!0}=t,d=C.useRef(null),p=C.useRef(null),[m,y]=_d({prop:a,defaultProp:u??!1,onChange:s,caller:Yu});return S.jsx(ZA,{scope:l,triggerRef:d,contentRef:p,contentId:Ea(),titleId:Ea(),descriptionId:Ea(),open:m,onOpenChange:y,onOpenToggle:C.useCallback(()=>y(g=>!g),[y]),modal:c,children:r})};Ov.displayName=Yu;var Nv="DialogTrigger",KA=C.forwardRef((t,l)=>{const{__scopeDialog:r,...a}=t,u=kn(Nv,r),s=nn(l,u.triggerRef);return S.jsx(Ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Fd(u.open),...a,ref:s,onClick:mt(t.onClick,u.onOpenToggle)})});KA.displayName=Nv;var Vd="DialogPortal",[$A,zv]=Tv(Vd,{forceMount:void 0}),Rv=t=>{const{__scopeDialog:l,forceMount:r,children:a,container:u}=t,s=kn(Vd,l);return S.jsx($A,{scope:l,forceMount:r,children:C.Children.map(a,c=>S.jsx(yr,{present:r||s.open,children:S.jsx(Rd,{asChild:!0,container:u,children:c})}))})};Rv.displayName=Vd;var Eu="DialogOverlay",_v=C.forwardRef((t,l)=>{const r=zv(Eu,t.__scopeDialog),{forceMount:a=r.forceMount,...u}=t,s=kn(Eu,t.__scopeDialog);return s.modal?S.jsx(yr,{present:a||s.open,children:S.jsx(WA,{...u,ref:l})}):null});_v.displayName=Eu;var JA=Sd("DialogOverlay.RemoveScroll"),WA=C.forwardRef((t,l)=>{const{__scopeDialog:r,...a}=t,u=kn(Eu,r);return S.jsx(Yd,{as:JA,allowPinchZoom:!0,shards:[u.contentRef],children:S.jsx(Ct.div,{"data-state":Fd(u.open),...a,ref:l,style:{pointerEvents:"auto",...a.style}})})}),mr="DialogContent",Dv=C.forwardRef((t,l)=>{const r=zv(mr,t.__scopeDialog),{forceMount:a=r.forceMount,...u}=t,s=kn(mr,t.__scopeDialog);return S.jsx(yr,{present:a||s.open,children:s.modal?S.jsx(eT,{...u,ref:l}):S.jsx(tT,{...u,ref:l})})});Dv.displayName=mr;var eT=C.forwardRef((t,l)=>{const r=kn(mr,t.__scopeDialog),a=C.useRef(null),u=nn(l,r.contentRef,a);return C.useEffect(()=>{const s=a.current;if(s)return Av(s)},[]),S.jsx(Mv,{...t,ref:u,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(t.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:mt(t.onPointerDownOutside,s=>{const c=s.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&s.preventDefault()}),onFocusOutside:mt(t.onFocusOutside,s=>s.preventDefault())})}),tT=C.forwardRef((t,l)=>{const r=kn(mr,t.__scopeDialog),a=C.useRef(!1),u=C.useRef(!1);return S.jsx(Mv,{...t,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,d;(c=t.onCloseAutoFocus)==null||c.call(t,s),s.defaultPrevented||(a.current||(d=r.triggerRef.current)==null||d.focus(),s.preventDefault()),a.current=!1,u.current=!1},onInteractOutside:s=>{var p,m;(p=t.onInteractOutside)==null||p.call(t,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const c=s.target;((m=r.triggerRef.current)==null?void 0:m.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&u.current&&s.preventDefault()}})}),Mv=C.forwardRef((t,l)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,...c}=t,d=kn(mr,r),p=C.useRef(null),m=nn(l,p);return yv(),S.jsxs(S.Fragment,{children:[S.jsx(qd,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:u,onUnmountAutoFocus:s,children:S.jsx(Ru,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Fd(d.open),...c,ref:m,onDismiss:()=>d.onOpenChange(!1)})}),S.jsxs(S.Fragment,{children:[S.jsx(nT,{titleId:d.titleId}),S.jsx(rT,{contentRef:p,descriptionId:d.descriptionId})]})]})}),Gd="DialogTitle",jv=C.forwardRef((t,l)=>{const{__scopeDialog:r,...a}=t,u=kn(Gd,r);return S.jsx(Ct.h2,{id:u.titleId,...a,ref:l})});jv.displayName=Gd;var Lv="DialogDescription",Uv=C.forwardRef((t,l)=>{const{__scopeDialog:r,...a}=t,u=kn(Lv,r);return S.jsx(Ct.p,{id:u.descriptionId,...a,ref:l})});Uv.displayName=Lv;var Bv="DialogClose",Hv=C.forwardRef((t,l)=>{const{__scopeDialog:r,...a}=t,u=kn(Bv,r);return S.jsx(Ct.button,{type:"button",...a,ref:l,onClick:mt(t.onClick,()=>u.onOpenChange(!1))})});Hv.displayName=Bv;function Fd(t){return t?"open":"closed"}var qv="DialogTitleWarning",[YD,Yv]=Fw(qv,{contentName:mr,titleName:Gd,docsSlug:"dialog"}),nT=({titleId:t})=>{const l=Yv(qv),r=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
275
+
276
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
277
+
278
+ For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return C.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},lT="DialogDescriptionWarning",rT=({contentRef:t,descriptionId:l})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yv(lT).contentName}}.`;return C.useEffect(()=>{var s;const u=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");l&&u&&(document.getElementById(l)||console.warn(a))},[a,t,l]),null},iT=Ov,aT=Rv,Vv=_v,Gv=Dv,Fv=jv,Iv=Uv,oT=Hv;const pr=iT,uT=aT,Pv=C.forwardRef(({className:t,...l},r)=>S.jsx(Vv,{ref:r,className:$e("fixed inset-0 z-50 bg-foreground/20 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...l}));Pv.displayName=Vv.displayName;const Bl=C.forwardRef(({className:t,children:l,...r},a)=>S.jsxs(uT,{children:[S.jsx(Pv,{}),S.jsxs(Gv,{ref:a,className:$e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-150 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",t),...r,children:[l,S.jsxs(oT,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[S.jsx(eA,{className:"h-4 w-4"}),S.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Bl.displayName=Gv.displayName;const Hl=({className:t,...l})=>S.jsx("div",{className:$e("flex flex-col space-y-1.5 text-center sm:text-left",t),...l});Hl.displayName="DialogHeader";const Id=({className:t,...l})=>S.jsx("div",{className:$e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...l});Id.displayName="DialogFooter";const ql=C.forwardRef(({className:t,...l},r)=>S.jsx(Fv,{ref:r,className:$e("text-lg font-semibold leading-none tracking-tight",t),...l}));ql.displayName=Fv.displayName;const Yl=C.forwardRef(({className:t,...l},r)=>S.jsx(Iv,{ref:r,className:$e("text-sm text-muted-foreground",t),...l}));Yl.displayName=Iv.displayName;const Wy="w-full bg-background border border-input rounded-md px-3 py-2 text-sm font-mono placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring";function sT({open:t,onOpenChange:l,initialUrl:r,initialToken:a,onSave:u}){return S.jsx(pr,{open:t,onOpenChange:l,children:S.jsxs(Bl,{className:"max-w-lg",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Connection"}),S.jsx(Yl,{children:"OpenClaw gateway URL and shared-secret token."})]}),S.jsx(Xv,{initialUrl:r,initialToken:a,onSave:u,onCancel:()=>l(!1)})]})})}function Xv({initialUrl:t,initialToken:l,onSave:r,onCancel:a}){const[u,s]=C.useState(t),[c,d]=C.useState(l),[p,m]=C.useState(l.length>0);function y(g){g.preventDefault(),!(!u.trim()||!c.trim())&&r(u.trim(),c.trim(),p)}return S.jsxs("form",{onSubmit:y,className:"flex flex-col gap-5",children:[S.jsx(ex,{label:"Gateway URL",hint:S.jsxs(S.Fragment,{children:["Accepts ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"ws://"}),","," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"wss://"}),","," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"http://"}),","," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"https://"}),", or a bare"," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"host:port"}),"."]}),children:S.jsx("input",{type:"text",value:u,onChange:g=>s(g.currentTarget.value),placeholder:"ws://127.0.0.1:18789",autoFocus:!0,spellCheck:!1,className:Wy})}),S.jsx(ex,{label:"Gateway token",hint:S.jsxs(S.Fragment,{children:["From your gateway's"," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"~/.openclaw/openclaw.json"})," ","under ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"gateway.auth.token"}),"."]}),children:S.jsx("input",{type:"password",value:c,onChange:g=>d(g.currentTarget.value),placeholder:"shared secret",spellCheck:!1,autoComplete:"off",className:Wy})}),S.jsxs("label",{className:"inline-flex items-center gap-2 text-sm",children:[S.jsx("input",{type:"checkbox",checked:p,onChange:g=>m(g.currentTarget.checked),className:"h-4 w-4 rounded border border-input"}),S.jsx("span",{children:"Remember token in this browser (localStorage)"})]}),S.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[S.jsx("button",{type:"button",onClick:a,className:"px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80 transition-colors",children:"Cancel"}),S.jsx("button",{type:"submit",disabled:!u.trim()||!c.trim(),className:"px-3 py-1.5 rounded-md text-sm bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Connect"})]})]})}function cT({open:t,onOpenChange:l,gw:r}){const[a,u]=C.useState([]),[s,c]=C.useState(!0),[d,p]=C.useState(null);return C.useEffect(()=>{if(!t||!r)return;c(!0);let m=!1;return r.request("agents.list",{}).then(y=>{m||(u((y==null?void 0:y.agents)??[]),c(!1))}).catch(y=>{m||(p(y instanceof Error?y.message:String(y)),c(!1))}),()=>{m=!0}},[t,r]),S.jsx(pr,{open:t,onOpenChange:l,children:S.jsxs(Bl,{className:"max-w-lg",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Agents"}),S.jsxs(Yl,{children:["Registered agents and the model each uses. Read-only — manage with"," ",S.jsx("code",{className:"px-1 bg-muted rounded text-xs",children:"openclaw agents"}),"."]})]}),s&&S.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"}),d&&S.jsx("p",{className:"text-sm text-destructive",children:d}),!s&&!d&&a.length===0&&S.jsx("p",{className:"text-sm text-muted-foreground",children:"No agents reported."}),!s&&a.length>0&&S.jsx("ul",{className:"flex flex-col gap-2 max-h-96 overflow-y-auto no-scrollbar",children:a.map((m,y)=>{var g;return S.jsxs("li",{className:"border rounded-lg px-3 py-2.5 flex flex-col gap-1",children:[S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsx("span",{className:"font-medium text-sm",children:m.name??m.id??"agent"}),m.thinking&&S.jsxs("span",{className:"text-[11px] text-muted-foreground",children:["thinking: ",m.thinking]})]}),m.id&&m.id!==(m.name??"")&&S.jsx("code",{className:"text-xs text-muted-foreground",children:m.id}),((g=m.model)==null?void 0:g.primary)&&S.jsxs("code",{className:"text-xs text-muted-foreground",children:["model: ",m.model.primary]})]},m.id??y)})})]})})}function fT({open:t,onOpenChange:l,gw:r}){const[a,u]=C.useState([]),[s,c]=C.useState(!0),[d,p]=C.useState(null);return C.useEffect(()=>{if(!t||!r)return;c(!0);let m=!1;return r.request("config.get",{}).then(y=>{var g;if(!m){try{const v=y.raw?JSON.parse(y.raw):{},x=((g=v==null?void 0:v.auth)==null?void 0:g.profiles)??{};u(Object.entries(x).map(([E,A])=>({id:E,provider:A.provider??E.split(":")[0]??"",mode:A.mode})))}catch{u([])}c(!1)}}).catch(y=>{m||(p(y instanceof Error?y.message:String(y)),c(!1))}),()=>{m=!0}},[t,r]),S.jsx(pr,{open:t,onOpenChange:l,children:S.jsxs(Bl,{className:"max-w-lg",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Model Providers"}),S.jsxs(Yl,{children:["Auth profiles known to your gateway. Read-only — run"," ",S.jsx("code",{className:"px-1 bg-muted rounded text-xs",children:"openclaw configure"})," ","to add or rotate keys."]})]}),s&&S.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"}),d&&S.jsx("p",{className:"text-sm text-destructive",children:d}),!s&&!d&&a.length===0&&S.jsx("p",{className:"text-sm text-muted-foreground",children:"No provider profiles configured yet."}),!s&&a.length>0&&S.jsx("ul",{className:"flex flex-col gap-2",children:a.map(m=>S.jsxs("li",{className:"border rounded-lg px-3 py-2.5 flex items-center justify-between gap-2",children:[S.jsx("span",{className:"font-medium text-sm capitalize",children:m.provider}),S.jsxs("code",{className:"text-[11px] text-muted-foreground",children:[m.mode??"configured"," · ",m.id]})]},m.id))})]})})}function dT({open:t,onOpenChange:l}){const[r,a]=pv(),u=[{id:"system",label:"System",icon:S.jsx(Bd,{size:16})},{id:"light",label:"Light",icon:S.jsx(dv,{size:16})},{id:"dark",label:"Dark",icon:S.jsx(cv,{size:16})}];return S.jsx(pr,{open:t,onOpenChange:l,children:S.jsxs(Bl,{className:"max-w-md",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Appearance"}),S.jsx(Yl,{children:"Choose how the app looks. System follows your OS preference."})]}),S.jsx("div",{className:"grid grid-cols-3 gap-2",children:u.map(s=>S.jsxs("button",{type:"button",onClick:()=>a(s.id),className:$e("flex flex-col items-center justify-center gap-2 py-4 rounded-lg border text-sm transition-colors",r===s.id?"border-ring bg-muted text-foreground":"border-border hover:bg-muted/60 text-muted-foreground hover:text-foreground"),children:[s.icon,s.label]},s.id))})]})})}function hT({open:t,onOpenChange:l}){return S.jsx(pr,{open:t,onOpenChange:l,children:S.jsxs(Bl,{className:"max-w-md",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"About"}),S.jsx(Yl,{children:"Open-source chat UI for OpenClaw gateways."})]}),S.jsxs("dl",{className:"grid grid-cols-[120px_1fr] gap-y-2 gap-x-4 text-sm",children:[S.jsx("dt",{className:"text-muted-foreground",children:"Package"}),S.jsx("dd",{children:S.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted",children:"@clawnify/agent-control-ui"})}),S.jsx("dt",{className:"text-muted-foreground",children:"Source"}),S.jsx("dd",{children:S.jsx("a",{href:"https://github.com/clawnify/agent-control-ui",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2",children:"github.com/clawnify/agent-control-ui"})}),S.jsx("dt",{className:"text-muted-foreground",children:"Protocol"}),S.jsxs("dd",{children:["OpenClaw Gateway WebSocket (v4) —"," ",S.jsx("a",{href:"https://docs.openclaw.ai",target:"_blank",rel:"noreferrer",className:"text-foreground underline underline-offset-2",children:"docs.openclaw.ai"})]}),S.jsx("dt",{className:"text-muted-foreground",children:"License"}),S.jsx("dd",{children:"MIT"})]}),S.jsxs("p",{className:"text-xs text-muted-foreground",children:["agent-control-ui is an independent client for the OpenClaw protocol. Built and maintained by"," ",S.jsx("a",{href:"https://clawnify.com",target:"_blank",rel:"noreferrer",className:"underline underline-offset-2",children:"Clawnify"}),"; shared with the OpenClaw community."]})]})})}function ex({label:t,hint:l,children:r}){return S.jsxs("label",{className:"flex flex-col gap-1.5",children:[S.jsx("span",{className:"text-sm font-medium",children:t}),r,l&&S.jsx("span",{className:"text-xs text-muted-foreground",children:l})]})}function dr(t){return typeof t=="string"?t:Array.isArray(t)?t.filter(l=>l.type==="text").map(l=>l.text).join(""):""}function mT(t){if(!t||typeof t!="object")return typeof t=="string"?t:"";const l=t;return typeof l.text=="string"?l.text:dr(l.content)}function tx(t){return Array.isArray(t)?t.filter(l=>l.type==="thinking"&&typeof l.thinking=="string").map(l=>l.thinking.trim()).filter(Boolean).join(`
279
+ `):""}function pT(t,l){if(!l||typeof l!="object")return"";const r=l;switch(t){case"exec":return typeof r.command=="string"?r.command:"";case"browser":{const a=r.action||"",u=r.url||"",s=r.ref!=null?`ref=${r.ref}`:"",c=typeof r.value=="string"?r.value:"";return[a,u,s,c].filter(Boolean).join(" ")}default:{const a=Object.values(r).find(s=>typeof s=="string");if(a)return a.length>120?a.slice(0,120)+"...":a;const u=JSON.stringify(r);return u.length>120?u.slice(0,120)+"...":u}}}function nx(t){return t.replace(/---+\s*Conversation info \(untrusted metadata\)[\s\S]*?---+/g,"").replace(/Conversation info \(untrusted metadata\):\s*```json[\s\S]*?```\s*/g,"").replace(/System:.*?\n/g,"").replace(/\[chat\.history omitted: message too large\]/g,"[message too large]").replace(/^\[\w{3} \d{4}-\d{2}-\d{2} \d{2}:\d{2} UTC\]\s*/gm,"").trim()}const gT=["HEARTBEAT","Session Startup sequence","A new session was started via /new","A new session was started via /reset","An async command the user already approved has completed","An async command did not run","OpenClaw runtime context (internal)"];function yT(t){return t.provider==="openclaw"&&t.model==="delivery-mirror"}function xT(t){const l=dr(t.content);return gT.some(r=>l.includes(r))}function bT(t){const l=t;if(!l)return[];const r=l.messages;return Array.isArray(r)?lx(r):Array.isArray(t)?lx(t):[]}function lx(t){const l=[];let r=!1;for(const a of t){const u=a,s=u.role;if(s==="user"||s==="assistant"){if(yT(u))continue;if(s==="user"&&xT(u)){r=dr(u.content).includes("HEARTBEAT");continue}if(s==="user"&&(r=!1),s==="assistant"&&r)continue;if(s==="assistant"&&Array.isArray(u.content)){const p=tx(u.content);let m="",y=!1;const g=()=>{const v=nx(m).trim();v&&v!=="NO_REPLY"?(l.push({role:"assistant",content:v,...p&&!y?{thinking:p}:{}}),y=!0):p&&!y&&(l.push({role:"assistant",content:"",thinking:p}),y=!0),m=""};for(const v of u.content)v.type==="text"?m+=v.text:v.type==="toolCall"&&(g(),l.push({role:"action",content:pT(v.name,v.arguments),toolName:v.name,toolCallId:v.id,toolArgs:v.arguments&&typeof v.arguments=="object"?v.arguments:void 0}));g();continue}const c=nx(dr(u.content)),d=s==="assistant"?tx(u.content):"";if((!c||c==="NO_REPLY")&&!d)continue;l.push({role:s,content:c||"",...d?{thinking:d}:{}});continue}if(s==="toolResult"){if(r)continue;const c=u.toolCallId,d=l.findLast(p=>p.toolCallId===c);d&&(d.toolResult=dr(u.content),d.toolError=u.isError===!0);continue}}for(let a=t.length-1;a>=0;a--){const u=t[a];if(u.role==="assistant"){if(u.stopReason==="error"&&u.errorMessage){const s=u.errorMessage,c=kT(s);l.push({role:"assistant",content:ET(s,c,u.model),errorType:c})}break}}return l}const vT=["authentication_error","invalid x-api-key","invalid_api_key"],ST=["no api key found for provider"],wT=["rate_limit","rate limit","overloaded","too many requests","429","529","quota","capacity"];function kT(t){const l=t.toLowerCase();return vT.some(r=>l.includes(r))?"apiKey":ST.some(r=>l.includes(r))?"providerMismatch":wT.some(r=>l.includes(r))?"rateLimit":"generic"}function ET(t,l,r){var u;if(l==="apiKey")return"Your API key is invalid or expired.";if(l==="providerMismatch")return"This model needs a provider prefix to work with your API key. Try switching with /model — for example: /model openrouter/google/gemini-2.5-pro";if(l==="rateLimit")return"We've hit a usage limit for this model. Try again in a moment or switch to a different model.";try{const s=t.indexOf("{");if(s>=0){const c=JSON.parse(t.slice(s)),d=((u=c==null?void 0:c.error)==null?void 0:u.message)||(c==null?void 0:c.message);if(d)return d}}catch{}const a=r?` (model: ${r})`:"";return`${t||"Something went wrong."}${a} Try again, switch model with /model, or start a new session with /new.`}function CT(t,l){const r=t.match(/Approval required \(id ([a-f0-9]+), full ([a-f0-9-]+)\)/);if(!r)return null;const a=r[2],u=t.match(/```sh\n([\s\S]*?)\n```/),s=(u==null?void 0:u[1])||"unknown command",c=t.match(/CWD:\s*(.+)/),d=t.match(/Host:\s*(.+)/);return{approvalId:a,kind:"exec",command:s,cwd:c==null?void 0:c[1],host:d==null?void 0:d[1],status:"pending",timestamp:Date.now(),toolCallId:l}}const AT=[{name:"/new",description:"Start a fresh session",autoSend:!0},{name:"/stop",description:"Stop the current run",autoSend:!0},{name:"/model",description:"Switch AI model",autoSend:!1},{name:"/help",description:"Show available commands",autoSend:!0},{name:"/status",description:"Show agent status",autoSend:!0},{name:"/compact",description:"Compact context window",autoSend:!1}];function TT(t){return t==="read"||t==="write"||t==="edit"||t==="multiedit"}const OT=12;function rx({toolName:t,args:l,size:r=OT}){if(t==="browser"){const a=l.split(/\s/)[0],u=S.jsx(wC,{size:r},"c");switch(a){case"act":case"click":return S.jsxs(S.Fragment,{children:[u,S.jsx(LC,{size:r},"a")]});case"snapshot":return S.jsxs(S.Fragment,{children:[u,S.jsx(id,{size:r},"a")]});case"screenshot":return S.jsxs(S.Fragment,{children:[u,S.jsx(yC,{size:r},"a")]});case"navigate":return S.jsxs(S.Fragment,{children:[u,S.jsx(Yy,{size:r},"a")]});case"fill":case"type":case"press":return S.jsxs(S.Fragment,{children:[u,S.jsx(RC,{size:r},"a")]});default:return u}}return t==="exec"?S.jsx(hv,{size:r}):t==="web_search"?S.jsx(fv,{size:r}):t==="web_fetch"?S.jsx(Yy,{size:r}):t==="memory_search"?S.jsx(pC,{size:r}):t==="read"?S.jsx(id,{size:r}):t==="write"?S.jsx(Hd,{size:r}):t==="edit"||t==="multiedit"?S.jsx(sv,{size:r}):S.jsx("span",{className:"font-mono text-[10px] font-medium leading-none",children:t})}function Qv({action:t}){const l=t.toolName??"tool",r=t.content,a=t.toolResult;return S.jsxs("div",{className:"flex flex-col gap-1.5 text-xs max-w-sm",children:[S.jsxs("div",{className:"flex items-center gap-1.5",children:[S.jsx("span",{className:"font-mono font-semibold",children:l}),t.toolError&&S.jsx("span",{className:"text-destructive",children:"— error"}),!t.toolResult&&S.jsx("span",{className:"text-muted-foreground",children:"— running…"})]}),r&&S.jsx("pre",{className:"font-mono whitespace-pre-wrap break-all opacity-80 max-h-24 overflow-hidden",children:r.length>280?r.slice(0,280)+"…":r}),a&&S.jsx("pre",{className:"font-mono whitespace-pre-wrap break-all opacity-60 border-t pt-1.5 max-h-24 overflow-hidden",children:a.length>280?a.slice(0,280)+"…":a})]})}function NT({actions:t,anyPending:l}){const[r,a]=C.useState(!1),u=t[t.length-1],s=t.some(c=>c.toolError);return S.jsxs("div",{className:"self-start flex flex-col gap-1.5",children:[S.jsxs("button",{type:"button",onClick:()=>a(c=>!c),className:$e("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full border bg-muted/50 text-xs text-muted-foreground transition-colors hover:bg-muted",s&&"border-destructive/40 text-destructive bg-destructive/5",l&&"animate-pulse"),children:[S.jsx(rx,{toolName:u.toolName??"tool",args:u.content}),l&&S.jsx(mu,{size:10,className:"animate-spin"}),S.jsx("span",{className:"tabular-nums opacity-70",children:t.length}),S.jsx(uv,{size:12,className:$e("opacity-50 transition-transform",r&&"rotate-90")})]}),r&&S.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.map((c,d)=>S.jsxs(nv,{children:[S.jsx(lv,{asChild:!0,children:S.jsx("div",{className:$e("inline-flex items-center gap-1 px-2 py-0.5 rounded-full border bg-muted/50 text-muted-foreground text-xs leading-tight cursor-default",c.toolError&&"border-destructive/40 text-destructive bg-destructive/5"),children:S.jsx(rx,{toolName:c.toolName??"tool",args:c.content})})}),S.jsx(Ld,{side:"top",children:S.jsx(Qv,{action:c})})]},d))})]})}const ix=["allow-once","allow-always","deny"];function zT({approval:t,onResolve:l}){const[r,a]=C.useState(null),[u,s]=C.useState(0),[,c]=C.useState(0),d=C.useRef(null),p=t.status==="expired"||t.expiresAt!=null&&Date.now()>t.expiresAt,m=t.status==="pending"&&!p;C.useEffect(()=>{var T;m&&((T=d.current)==null||T.focus())},[m]),C.useEffect(()=>{if(!m||!t.expiresAt)return;const T=setInterval(()=>c(z=>z+1),3e4);return()=>clearInterval(T)},[m,t.expiresAt]);function y(T){a(T),l(t.approvalId,T)}function g(T){var z,D,L,I;if(!(!m||r))if(T.key==="ArrowRight"||T.key==="ArrowDown"){T.preventDefault();const M=Math.min(u+1,ix.length-1);s(M),(D=(z=T.currentTarget.parentElement)==null?void 0:z.children[M])==null||D.focus()}else if(T.key==="ArrowLeft"||T.key==="ArrowUp"){T.preventDefault();const M=Math.max(u-1,0);s(M),(I=(L=T.currentTarget.parentElement)==null?void 0:L.children[M])==null||I.focus()}else T.key==="Enter"&&(T.preventDefault(),y(ix[u]))}const v=t.kind==="plugin",x=t.command??"",E=x.length>240?x.slice(0,240)+"...":x,A=t.description??"",N=A.length>240?A.slice(0,240)+"...":A;return S.jsxs("div",{className:$e("rounded-xl border bg-muted/30 px-4 py-3 flex flex-col gap-2.5 text-sm",p&&"opacity-60"),children:[v?S.jsxs("div",{className:"flex flex-col gap-1.5",children:[S.jsx("div",{className:"text-sm font-medium leading-snug",children:t.title??t.toolName??"Approval required"}),N&&S.jsx("div",{className:"text-xs text-muted-foreground whitespace-pre-wrap break-words",children:N})]}):S.jsxs("div",{className:"font-mono text-xs text-muted-foreground break-all",children:[S.jsx("span",{className:"opacity-50 select-none",children:"$ "}),E]}),S.jsx("div",{className:"flex flex-wrap items-center gap-2",children:p?S.jsxs(ax,{children:[S.jsx(wf,{size:12})," Expired"]}):m?S.jsxs(S.Fragment,{children:[S.jsxs(zf,{ref:d,disabled:r!==null,onClick:()=>y("allow-once"),onKeyDown:g,onFocus:()=>s(0),children:[r==="allow-once"?S.jsx(mu,{size:12,className:"animate-spin"}):S.jsx(hu,{size:12}),"Approve"]}),S.jsxs(zf,{disabled:r!==null,onClick:()=>y("allow-always"),onKeyDown:g,onFocus:()=>s(1),children:[r==="allow-always"?S.jsx(mu,{size:12,className:"animate-spin"}):S.jsx(hu,{size:12}),"Always"]}),S.jsxs(zf,{disabled:r!==null,onClick:()=>y("deny"),onKeyDown:g,onFocus:()=>s(2),children:[r==="deny"?S.jsx(mu,{size:12,className:"animate-spin"}):S.jsx(wf,{size:12}),"Deny"]}),t.expiresAt&&S.jsxs("span",{className:"ml-auto text-[10px] text-muted-foreground/60",children:[Math.max(0,Math.ceil((t.expiresAt-Date.now())/6e4)),"m"]})]}):S.jsx(ax,{children:t.status==="deny"?S.jsxs(S.Fragment,{children:[S.jsx(wf,{size:12})," Denied"]}):S.jsxs(S.Fragment,{children:[S.jsx(hu,{size:12})," ",t.status==="allow-always"?"Always":"Approved"]})})})]})}function ax({children:t}){return S.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full border bg-muted/50 text-xs font-medium text-muted-foreground",children:t})}const zf=function(l){const{className:r,ref:a,...u}=l;return S.jsx("button",{ref:a,type:"button",...u,className:$e("inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full border bg-muted/50 text-xs font-medium text-muted-foreground transition-colors","hover:bg-muted hover:text-foreground hover:border-foreground/30 cursor-pointer","focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none","disabled:opacity-50 disabled:cursor-not-allowed",r)})};function RT(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _T=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MT={};function ox(t,l){return(MT.jsx?DT:_T).test(t)}const jT=/[ \t\n\f\r]/g;function LT(t){return typeof t=="object"?t.type==="text"?ux(t.value):!1:ux(t)}function ux(t){return t.replace(jT,"")===""}class Da{constructor(l,r,a){this.normal=r,this.property=l,a&&(this.space=a)}}Da.prototype.normal={};Da.prototype.property={};Da.prototype.space=void 0;function Zv(t,l){const r={},a={};for(const u of t)Object.assign(r,u.property),Object.assign(a,u.normal);return new Da(r,a,l)}function od(t){return t.toLowerCase()}class Yt{constructor(l,r){this.attribute=r,this.property=l}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let UT=0;const Ae=br(),st=br(),ud=br(),oe=br(),Ke=br(),pi=br(),Jt=br();function br(){return 2**++UT}const sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ae,booleanish:st,commaOrSpaceSeparated:Jt,commaSeparated:pi,number:oe,overloadedBoolean:ud,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Rf=Object.keys(sd);class Pd extends Yt{constructor(l,r,a,u){let s=-1;if(super(l,r),sx(this,"space",u),typeof a=="number")for(;++s<Rf.length;){const c=Rf[s];sx(this,Rf[s],(a&sd[c])===sd[c])}}}Pd.prototype.defined=!0;function sx(t,l,r){r&&(t[l]=r)}function ki(t){const l={},r={};for(const[a,u]of Object.entries(t.properties)){const s=new Pd(a,t.transform(t.attributes||{},a),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),l[a]=s,r[od(a)]=a,r[od(s.attribute)]=a}return new Da(l,r,t.space)}const Kv=ki({properties:{ariaActiveDescendant:null,ariaAtomic:st,ariaAutoComplete:null,ariaBusy:st,ariaChecked:st,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:st,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:st,ariaFlowTo:Ke,ariaGrabbed:st,ariaHasPopup:null,ariaHidden:st,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:oe,ariaLive:null,ariaModal:st,ariaMultiLine:st,ariaMultiSelectable:st,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:st,ariaReadOnly:st,ariaRelevant:null,ariaRequired:st,ariaRoleDescription:Ke,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:st,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function $v(t,l){return l in t?t[l]:l}function Jv(t,l){return $v(t,l.toLowerCase())}const BT=ki({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pi,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Ae,allowPaymentRequest:Ae,allowUserMedia:Ae,alt:null,as:null,async:Ae,autoCapitalize:null,autoComplete:Ke,autoFocus:Ae,autoPlay:Ae,blocking:Ke,capture:null,charSet:null,checked:Ae,cite:null,className:Ke,cols:oe,colSpan:null,content:null,contentEditable:st,controls:Ae,controlsList:Ke,coords:oe|pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ae,defer:Ae,dir:null,dirName:null,disabled:Ae,download:ud,draggable:st,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ae,formTarget:null,headers:Ke,height:oe,hidden:ud,high:oe,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Ae,inputMode:null,integrity:null,is:null,isMap:Ae,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Ae,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ae,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Ae,muted:Ae,name:null,nonce:null,noModule:Ae,noValidate:Ae,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:Ae,optimum:oe,pattern:null,ping:Ke,placeholder:null,playsInline:Ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ae,referrerPolicy:null,rel:Ke,required:Ae,reversed:Ae,rows:oe,rowSpan:oe,sandbox:Ke,scope:null,scoped:Ae,seamless:Ae,selected:Ae,shadowRootClonable:Ae,shadowRootDelegatesFocus:Ae,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:st,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Ae,useMap:null,value:st,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ae,declare:Ae,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Ae,noHref:Ae,noShade:Ae,noWrap:Ae,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:st,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ae,disableRemotePlayback:Ae,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:Jv}),HT=ki({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",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:Jt,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Ke,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:pi,g2:pi,glyphName:pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:Jt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jt,rev:Jt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jt,requiredFeatures:Jt,requiredFonts:Jt,requiredFormats:Jt,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:Jt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jt,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$v}),Wv=ki({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),e1=ki({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Jv}),t1=ki({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),qT={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},YT=/[A-Z]/g,cx=/-[a-z]/g,VT=/^data[-\w.:]+$/i;function GT(t,l){const r=od(l);let a=l,u=Yt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&VT.test(l)){if(l.charAt(4)==="-"){const s=l.slice(5).replace(cx,IT);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=l.slice(4);if(!cx.test(s)){let c=s.replace(YT,FT);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}u=Pd}return new u(a,l)}function FT(t){return"-"+t.toLowerCase()}function IT(t){return t.charAt(1).toUpperCase()}const PT=Zv([Kv,BT,Wv,e1,t1],"html"),Xd=Zv([Kv,HT,Wv,e1,t1],"svg");function XT(t){return t.join(" ").trim()}var ci={},_f,fx;function QT(){if(fx)return _f;fx=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
280
+ `,m="/",y="*",g="",v="comment",x="declaration";function E(N,T){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];T=T||{};var z=1,D=1;function L(ae){var ne=ae.match(l);ne&&(z+=ne.length);var U=ae.lastIndexOf(p);D=~U?ae.length-U:D+ae.length}function I(){var ae={line:z,column:D};return function(ne){return ne.position=new M(ae),ue(),ne}}function M(ae){this.start=ae,this.end={line:z,column:D},this.source=T.source}M.prototype.content=N;function F(ae){var ne=new Error(T.source+":"+z+":"+D+": "+ae);if(ne.reason=ae,ne.filename=T.source,ne.line=z,ne.column=D,ne.source=N,!T.silent)throw ne}function V(ae){var ne=ae.exec(N);if(ne){var U=ne[0];return L(U),N=N.slice(U.length),ne}}function ue(){V(r)}function H(ae){var ne;for(ae=ae||[];ne=ie();)ne!==!1&&ae.push(ne);return ae}function ie(){var ae=I();if(!(m!=N.charAt(0)||y!=N.charAt(1))){for(var ne=2;g!=N.charAt(ne)&&(y!=N.charAt(ne)||m!=N.charAt(ne+1));)++ne;if(ne+=2,g===N.charAt(ne-1))return F("End of comment missing");var U=N.slice(2,ne-2);return D+=2,L(U),N=N.slice(ne),D+=2,ae({type:v,comment:U})}}function le(){var ae=I(),ne=V(a);if(ne){if(ie(),!V(u))return F("property missing ':'");var U=V(s),Z=ae({type:x,property:A(ne[0].replace(t,g)),value:U?A(U[0].replace(t,g)):g});return V(c),Z}}function he(){var ae=[];H(ae);for(var ne;ne=le();)ne!==!1&&(ae.push(ne),H(ae));return ae}return ue(),he()}function A(N){return N?N.replace(d,g):g}return _f=E,_f}var dx;function ZT(){if(dx)return ci;dx=1;var t=ci&&ci.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ci,"__esModule",{value:!0}),ci.default=r;const l=t(QT());function r(a,u){let s=null;if(!a||typeof a!="string")return s;const c=(0,l.default)(a),d=typeof u=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?u(m,y,p):y&&(s=s||{},s[m]=y)}),s}return ci}var va={},hx;function KT(){if(hx)return va;hx=1,Object.defineProperty(va,"__esModule",{value:!0}),va.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,u=/^-(ms)-/,s=function(m){return!m||r.test(m)||t.test(m)},c=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),s(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(u,d):m=m.replace(a,d),m.replace(l,c))};return va.camelCase=p,va}var Sa,mx;function $T(){if(mx)return Sa;mx=1;var t=Sa&&Sa.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},l=t(ZT()),r=KT();function a(u,s){var c={};return!u||typeof u!="string"||(0,l.default)(u,function(d,p){d&&p&&(c[(0,r.camelCase)(d,s)]=p)}),c}return a.default=a,Sa=a,Sa}var JT=$T();const WT=Nu(JT),n1=l1("end"),Qd=l1("start");function l1(t){return l;function l(r){const a=r&&r.position&&r.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function eO(t){const l=Qd(t),r=n1(t);if(l&&r)return{start:l,end:r}}function Ca(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?px(t.position):"start"in t||"end"in t?px(t):"line"in t||"column"in t?cd(t):""}function cd(t){return gx(t&&t.line)+":"+gx(t&&t.column)}function px(t){return cd(t&&t.start)+"-"+cd(t&&t.end)}function gx(t){return t&&typeof t=="number"?t:1}class At extends Error{constructor(l,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let u="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof l=="string"?u=l:!s.cause&&l&&(c=!0,u=l.message,s.cause=l),!s.ruleId&&!s.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?s.ruleId=a:(s.source=a.slice(0,p),s.ruleId=a.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=u,this.line=d?d.line:void 0,this.name=Ca(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}At.prototype.file="";At.prototype.name="";At.prototype.reason="";At.prototype.message="";At.prototype.stack="";At.prototype.column=void 0;At.prototype.line=void 0;At.prototype.ancestors=void 0;At.prototype.cause=void 0;At.prototype.fatal=void 0;At.prototype.place=void 0;At.prototype.ruleId=void 0;At.prototype.source=void 0;const Zd={}.hasOwnProperty,tO=new Map,nO=/[A-Z]/g,lO=new Set(["table","tbody","thead","tfoot","tr"]),rO=new Set(["td","th"]),r1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iO(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=hO(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=dO(r,l.jsx,l.jsxs)}const u={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Xd:PT,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},s=i1(u,t,void 0);return s&&typeof s!="string"?s:u.create(t,u.Fragment,{children:s||void 0},void 0)}function i1(t,l,r){if(l.type==="element")return aO(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return oO(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return sO(t,l,r);if(l.type==="mdxjsEsm")return uO(t,l);if(l.type==="root")return cO(t,l,r);if(l.type==="text")return fO(t,l)}function aO(t,l,r){const a=t.schema;let u=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(u=Xd,t.schema=u),t.ancestors.push(l);const s=o1(t,l.tagName,!1),c=mO(t,l);let d=$d(t,l);return lO.has(l.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!LT(p):!0})),a1(t,c,s,l),Kd(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function oO(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}za(t,l.position)}function uO(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);za(t,l.position)}function sO(t,l,r){const a=t.schema;let u=a;l.name==="svg"&&a.space==="html"&&(u=Xd,t.schema=u),t.ancestors.push(l);const s=l.name===null?t.Fragment:o1(t,l.name,!0),c=pO(t,l),d=$d(t,l);return a1(t,c,s,l),Kd(c,d),t.ancestors.pop(),t.schema=a,t.create(l,s,c,r)}function cO(t,l,r){const a={};return Kd(a,$d(t,l)),t.create(l,t.Fragment,a,r)}function fO(t,l){return l.value}function a1(t,l,r,a){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=a)}function Kd(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function dO(t,l,r){return a;function a(u,s,c,d){const m=Array.isArray(c.children)?r:l;return d?m(s,c,d):m(s,c)}}function hO(t,l){return r;function r(a,u,s,c){const d=Array.isArray(s.children),p=Qd(a);return l(u,s,c,d,{columnNumber:p?p.column-1:void 0,fileName:t,lineNumber:p?p.line:void 0},void 0)}}function mO(t,l){const r={};let a,u;for(u in l.properties)if(u!=="children"&&Zd.call(l.properties,u)){const s=gO(t,u,l.properties[u]);if(s){const[c,d]=s;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&rO.has(l.tagName)?a=d:r[c]=d}}if(a){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function pO(t,l){const r={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else za(t,l.position);else{const u=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,s=t.evaluater.evaluateExpression(d.expression)}else za(t,l.position);else s=a.value===null?!0:a.value;r[u]=s}return r}function $d(t,l){const r=[];let a=-1;const u=t.passKeys?new Map:tO;for(;++a<l.children.length;){const s=l.children[a];let c;if(t.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const m=u.get(p)||0;c=p+"-"+m,u.set(p,m+1)}}const d=i1(t,s,c);d!==void 0&&r.push(d)}return r}function gO(t,l,r){const a=GT(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?RT(r):XT(r)),a.property==="style"){let u=typeof r=="object"?r:yO(t,String(r));return t.stylePropertyNameCase==="css"&&(u=xO(u)),["style",u]}return[t.elementAttributeNameCase==="react"&&a.space?qT[a.property]||a.property:a.attribute,r]}}function yO(t,l){try{return WT(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const a=r,u=new At("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=t.filePath||void 0,u.url=r1+"#cannot-parse-style-attribute",u}}function o1(t,l,r){let a;if(!r)a={type:"Literal",value:l};else if(l.includes(".")){const u=l.split(".");let s=-1,c;for(;++s<u.length;){const d=ox(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=c}else a=ox(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const u=a.value;return Zd.call(t.components,u)?t.components[u]:u}if(t.evaluater)return t.evaluater.evaluateExpression(a);za(t)}function za(t,l){const r=new At("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=r1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xO(t){const l={};let r;for(r in t)Zd.call(t,r)&&(l[bO(r)]=t[r]);return l}function bO(t){let l=t.replace(nO,vO);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function vO(t){return"-"+t.toLowerCase()}const Df={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},SO={};function Jd(t,l){const r=SO,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,u=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return u1(t,a,u)}function u1(t,l,r){if(wO(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return yx(t.children,l,r)}return Array.isArray(t)?yx(t,l,r):""}function yx(t,l,r){const a=[];let u=-1;for(;++u<t.length;)a[u]=u1(t[u],l,r);return a.join("")}function wO(t){return!!(t&&typeof t=="object")}const xx=document.createElement("i");function Wd(t){const l="&"+t+";";xx.innerHTML=l;const r=xx.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function tn(t,l,r,a){const u=t.length;let s=0,c;if(l<0?l=-l>u?0:u+l:l=l>u?u:l,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(l,0),t.splice(...c),s+=1e4,l+=1e4}function mn(t,l){return t.length>0?(tn(t,t.length,0,l),t):l}const bx={}.hasOwnProperty;function s1(t){const l={};let r=-1;for(;++r<t.length;)kO(l,t[r]);return l}function kO(t,l){let r;for(r in l){const u=(bx.call(t,r)?t[r]:void 0)||(t[r]={}),s=l[r];let c;if(s)for(c in s){bx.call(u,c)||(u[c]=[]);const d=s[c];EO(u[c],Array.isArray(d)?d:d?[d]:[])}}}function EO(t,l){let r=-1;const a=[];for(;++r<l.length;)(l[r].add==="after"?t:a).push(l[r]);tn(t,0,0,a)}function c1(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function vn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zt=Gl(/[A-Za-z]/),Et=Gl(/[\dA-Za-z]/),CO=Gl(/[#-'*+\--9=?A-Z^-~]/);function Cu(t){return t!==null&&(t<32||t===127)}const fd=Gl(/\d/),AO=Gl(/[\dA-Fa-f]/),TO=Gl(/[!-/:-@[-`{-~]/);function be(t){return t!==null&&t<-2}function Ze(t){return t!==null&&(t<0||t===32)}function Re(t){return t===-2||t===-1||t===32}const Vu=Gl(new RegExp("\\p{P}|\\p{S}","u")),gr=Gl(/\s/);function Gl(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ei(t){const l=[];let r=-1,a=0,u=0;for(;++r<t.length;){const s=t.charCodeAt(r);let c="";if(s===37&&Et(t.charCodeAt(r+1))&&Et(t.charCodeAt(r+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=t.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),u=1):c="�"}else c=String.fromCharCode(s);c&&(l.push(t.slice(a,r),encodeURIComponent(c)),a=r+u+1,c=""),u&&(r+=u,u=0)}return l.join("")+t.slice(a)}function je(t,l,r,a){const u=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(p){return Re(p)?(t.enter(r),d(p)):l(p)}function d(p){return Re(p)&&s++<u?(t.consume(p),d):(t.exit(r),l(p))}}const OO={tokenize:NO};function NO(t){const l=t.attempt(this.parser.constructs.contentInitial,a,u);let r;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),je(t,l,"linePrefix")}function u(d){return t.enter("paragraph"),s(d)}function s(d){const p=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return be(d)?(t.consume(d),t.exit("chunkText"),s):(t.consume(d),c)}}const zO={tokenize:RO},vx={tokenize:_O};function RO(t){const l=this,r=[];let a=0,u,s,c;return d;function d(D){if(a<r.length){const L=r[a];return l.containerState=L[1],t.attempt(L[0].continuation,p,m)(D)}return m(D)}function p(D){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,u&&z();const L=l.events.length;let I=L,M;for(;I--;)if(l.events[I][0]==="exit"&&l.events[I][1].type==="chunkFlow"){M=l.events[I][1].end;break}T(a);let F=L;for(;F<l.events.length;)l.events[F][1].end={...M},F++;return tn(l.events,I+1,0,l.events.slice(L)),l.events.length=F,m(D)}return d(D)}function m(D){if(a===r.length){if(!u)return v(D);if(u.currentConstruct&&u.currentConstruct.concrete)return E(D);l.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(vx,y,g)(D)}function y(D){return u&&z(),T(a),v(D)}function g(D){return l.parser.lazy[l.now().line]=a!==r.length,c=l.now().offset,E(D)}function v(D){return l.containerState={},t.attempt(vx,x,E)(D)}function x(D){return a++,r.push([l.currentConstruct,l.containerState]),v(D)}function E(D){if(D===null){u&&z(),T(0),t.consume(D);return}return u=u||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:u,contentType:"flow",previous:s}),A(D)}function A(D){if(D===null){N(t.exit("chunkFlow"),!0),T(0),t.consume(D);return}return be(D)?(t.consume(D),N(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(D),A)}function N(D,L){const I=l.sliceStream(D);if(L&&I.push(null),D.previous=s,s&&(s.next=D),s=D,u.defineSkip(D.start),u.write(I),l.parser.lazy[D.start.line]){let M=u.events.length;for(;M--;)if(u.events[M][1].start.offset<c&&(!u.events[M][1].end||u.events[M][1].end.offset>c))return;const F=l.events.length;let V=F,ue,H;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ue){H=l.events[V][1].end;break}ue=!0}for(T(a),M=F;M<l.events.length;)l.events[M][1].end={...H},M++;tn(l.events,V+1,0,l.events.slice(F)),l.events.length=M}}function T(D){let L=r.length;for(;L-- >D;){const I=r[L];l.containerState=I[1],I[0].exit.call(l,t)}r.length=D}function z(){u.write([null]),s=void 0,u=void 0,l.containerState._closeFlow=void 0}}function _O(t,l,r){return je(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bi(t){if(t===null||Ze(t)||gr(t))return 1;if(Vu(t))return 2}function Gu(t,l,r){const a=[];let u=-1;for(;++u<t.length;){const s=t[u].resolveAll;s&&!a.includes(s)&&(l=s(l,r),a.push(s))}return l}const dd={name:"attention",resolveAll:DO,tokenize:MO};function DO(t,l){let r=-1,a,u,s,c,d,p,m,y;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(a=r;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[a][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;p=t[a][1].end.offset-t[a][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[r][1].start};Sx(g,-p),Sx(v,p),c={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},s={type:p>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[r][1].start}},u={type:p>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[a][1].end={...c.start},t[r][1].start={...d.end},m=[],t[a][1].end.offset-t[a][1].start.offset&&(m=mn(m,[["enter",t[a][1],l],["exit",t[a][1],l]])),m=mn(m,[["enter",u,l],["enter",c,l],["exit",c,l],["enter",s,l]]),m=mn(m,Gu(l.parser.constructs.insideSpan.null,t.slice(a+1,r),l)),m=mn(m,[["exit",s,l],["enter",d,l],["exit",d,l],["exit",u,l]]),t[r][1].end.offset-t[r][1].start.offset?(y=2,m=mn(m,[["enter",t[r][1],l],["exit",t[r][1],l]])):y=0,tn(t,a-1,r-a+3,m),r=a+m.length-y-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function MO(t,l){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,u=bi(a);let s;return c;function c(p){return s=p,t.enter("attentionSequence"),d(p)}function d(p){if(p===s)return t.consume(p),d;const m=t.exit("attentionSequence"),y=bi(p),g=!y||y===2&&u||r.includes(p),v=!u||u===2&&y||r.includes(a);return m._open=!!(s===42?g:g&&(u||!v)),m._close=!!(s===42?v:v&&(y||!g)),l(p)}}function Sx(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const jO={name:"autolink",tokenize:LO};function LO(t,l,r){let a=0;return u;function u(x){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(x){return zt(x)?(t.consume(x),c):x===64?r(x):m(x)}function c(x){return x===43||x===45||x===46||Et(x)?(a=1,d(x)):m(x)}function d(x){return x===58?(t.consume(x),a=0,p):(x===43||x===45||x===46||Et(x))&&a++<32?(t.consume(x),d):(a=0,m(x))}function p(x){return x===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):x===null||x===32||x===60||Cu(x)?r(x):(t.consume(x),p)}function m(x){return x===64?(t.consume(x),y):CO(x)?(t.consume(x),m):r(x)}function y(x){return Et(x)?g(x):r(x)}function g(x){return x===46?(t.consume(x),a=0,y):x===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(x),t.exit("autolinkMarker"),t.exit("autolink"),l):v(x)}function v(x){if((x===45||Et(x))&&a++<63){const E=x===45?v:g;return t.consume(x),E}return r(x)}}const Ma={partial:!0,tokenize:UO};function UO(t,l,r){return a;function a(s){return Re(s)?je(t,u,"linePrefix")(s):u(s)}function u(s){return s===null||be(s)?l(s):r(s)}}const f1={continuation:{tokenize:HO},exit:qO,name:"blockQuote",tokenize:BO};function BO(t,l,r){const a=this;return u;function u(c){if(c===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Re(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function HO(t,l,r){const a=this;return u;function u(c){return Re(c)?je(t,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return t.attempt(f1,l,r)(c)}}function qO(t){t.exit("blockQuote")}const d1={name:"characterEscape",tokenize:YO};function YO(t,l,r){return a;function a(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),u}function u(s){return TO(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(s)}}const h1={name:"characterReference",tokenize:VO};function VO(t,l,r){const a=this;let u=0,s,c;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),p}function p(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),m):(t.enter("characterReferenceValue"),s=31,c=Et,y(g))}function m(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,c=AO,y):(t.enter("characterReferenceValue"),s=7,c=fd,y(g))}function y(g){if(g===59&&u){const v=t.exit("characterReferenceValue");return c===Et&&!Wd(a.sliceSerialize(v))?r(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(g)&&u++<s?(t.consume(g),y):r(g)}}const wx={partial:!0,tokenize:FO},kx={concrete:!0,name:"codeFenced",tokenize:GO};function GO(t,l,r){const a=this,u={partial:!0,tokenize:I};let s=0,c=0,d;return p;function p(M){return m(M)}function m(M){const F=a.events[a.events.length-1];return s=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,d=M,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(M)}function y(M){return M===d?(c++,t.consume(M),y):c<3?r(M):(t.exit("codeFencedFenceSequence"),Re(M)?je(t,g,"whitespace")(M):g(M))}function g(M){return M===null||be(M)?(t.exit("codeFencedFence"),a.interrupt?l(M):t.check(wx,A,L)(M)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(M))}function v(M){return M===null||be(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(M)):Re(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),je(t,x,"whitespace")(M)):M===96&&M===d?r(M):(t.consume(M),v)}function x(M){return M===null||be(M)?g(M):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(M))}function E(M){return M===null||be(M)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(M)):M===96&&M===d?r(M):(t.consume(M),E)}function A(M){return t.attempt(u,L,N)(M)}function N(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),T}function T(M){return s>0&&Re(M)?je(t,z,"linePrefix",s+1)(M):z(M)}function z(M){return M===null||be(M)?t.check(wx,A,L)(M):(t.enter("codeFlowValue"),D(M))}function D(M){return M===null||be(M)?(t.exit("codeFlowValue"),z(M)):(t.consume(M),D)}function L(M){return t.exit("codeFenced"),l(M)}function I(M,F,V){let ue=0;return H;function H(ne){return M.enter("lineEnding"),M.consume(ne),M.exit("lineEnding"),ie}function ie(ne){return M.enter("codeFencedFence"),Re(ne)?je(M,le,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):le(ne)}function le(ne){return ne===d?(M.enter("codeFencedFenceSequence"),he(ne)):V(ne)}function he(ne){return ne===d?(ue++,M.consume(ne),he):ue>=c?(M.exit("codeFencedFenceSequence"),Re(ne)?je(M,ae,"whitespace")(ne):ae(ne)):V(ne)}function ae(ne){return ne===null||be(ne)?(M.exit("codeFencedFence"),F(ne)):V(ne)}}}function FO(t,l,r){const a=this;return u;function u(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}const Mf={name:"codeIndented",tokenize:PO},IO={partial:!0,tokenize:XO};function PO(t,l,r){const a=this;return u;function u(m){return t.enter("codeIndented"),je(t,s,"linePrefix",5)(m)}function s(m){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(m):r(m)}function c(m){return m===null?p(m):be(m)?t.attempt(IO,c,p)(m):(t.enter("codeFlowValue"),d(m))}function d(m){return m===null||be(m)?(t.exit("codeFlowValue"),c(m)):(t.consume(m),d)}function p(m){return t.exit("codeIndented"),l(m)}}function XO(t,l,r){const a=this;return u;function u(c){return a.parser.lazy[a.now().line]?r(c):be(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),u):je(t,s,"linePrefix",5)(c)}function s(c){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):be(c)?u(c):r(c)}}const QO={name:"codeText",previous:KO,resolve:ZO,tokenize:$O};function ZO(t){let l=t.length-4,r=3,a,u;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=r;++a<l;)if(t[a][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(a=r-1,l++;++a<=l;)u===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(u=a):(a===l||t[a][1].type==="lineEnding")&&(t[u][1].type="codeTextData",a!==u+2&&(t[u][1].end=t[a-1][1].end,t.splice(u+2,a-u-2),l-=a-u-2,a=u+2),u=void 0);return t}function KO(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $O(t,l,r){let a=0,u,s;return c;function c(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),p):g===96?(s=t.enter("codeTextSequence"),u=0,y(g)):be(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),p):(t.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||be(g)?(t.exit("codeTextData"),p(g)):(t.consume(g),m)}function y(g){return g===96?(t.consume(g),u++,y):u===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(s.type="codeTextData",m(g))}}class JO{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,r,a){const u=r||0;this.setCursor(Math.trunc(l));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return a&&wa(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),wa(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),wa(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);wa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);wa(this.left,r.reverse())}}}function wa(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function m1(t){const l={};let r=-1,a,u,s,c,d,p,m;const y=new JO(t);for(;++r<y.length;){for(;r in l;)r=l[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,WO(y,r)),r=l[r],m=!0);else if(a[1]._container){for(s=r,u=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(u&&(y.get(u)[1].type="lineEndingBlank"),c[1].type="lineEnding",u=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;u&&(a[1].end={...y.get(u)[1].start},d=y.slice(u,r),d.unshift(a),y.splice(u,r-u+1,d))}}return tn(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function WO(t,l){const r=t.get(l)[1],a=t.get(l)[2];let u=l-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,p=[],m={};let y,g,v=-1,x=r,E=0,A=0;const N=[A];for(;x;){for(;t.get(++u)[1]!==x;);s.push(u),x._tokenizer||(y=a.sliceStream(x),x.next||y.push(null),g&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=x,x=x.next}for(x=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(A=v+1,N.push(A),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):N.pop(),v=N.length;v--;){const T=d.slice(N[v],N[v+1]),z=s.pop();p.push([z,z+T.length-1]),t.splice(z,2,T)}for(p.reverse(),v=-1;++v<p.length;)m[E+p[v][0]]=E+p[v][1],E+=p[v][1]-p[v][0]-1;return m}const eN={resolve:nN,tokenize:lN},tN={partial:!0,tokenize:rN};function nN(t){return m1(t),t}function lN(t,l){let r;return a;function a(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),u(d)}function u(d){return d===null?s(d):be(d)?t.check(tN,c,s)(d):(t.consume(d),u)}function s(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,u}}function rN(t,l,r){const a=this;return u;function u(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),je(t,s,"linePrefix")}function s(c){if(c===null||be(c))return r(c);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(a.parser.constructs.flow,r,l)(c)}}function p1(t,l,r,a,u,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(T){return T===60?(t.enter(a),t.enter(u),t.enter(s),t.consume(T),t.exit(s),v):T===null||T===32||T===41||Cu(T)?r(T):(t.enter(a),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),A(T))}function v(T){return T===62?(t.enter(s),t.consume(T),t.exit(s),t.exit(u),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),x(T))}function x(T){return T===62?(t.exit("chunkString"),t.exit(d),v(T)):T===null||T===60||be(T)?r(T):(t.consume(T),T===92?E:x)}function E(T){return T===60||T===62||T===92?(t.consume(T),x):x(T)}function A(T){return!y&&(T===null||T===41||Ze(T))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(a),l(T)):y<m&&T===40?(t.consume(T),y++,A):T===41?(t.consume(T),y--,A):T===null||T===32||T===40||Cu(T)?r(T):(t.consume(T),T===92?N:A)}function N(T){return T===40||T===41||T===92?(t.consume(T),A):A(T)}}function g1(t,l,r,a,u,s){const c=this;let d=0,p;return m;function m(x){return t.enter(a),t.enter(u),t.consume(x),t.exit(u),t.enter(s),y}function y(x){return d>999||x===null||x===91||x===93&&!p||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(t.exit(s),t.enter(u),t.consume(x),t.exit(u),t.exit(a),l):be(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||x===91||x===93||be(x)||d++>999?(t.exit("chunkString"),y(x)):(t.consume(x),p||(p=!Re(x)),x===92?v:g)}function v(x){return x===91||x===92||x===93?(t.consume(x),d++,g):g(x)}}function y1(t,l,r,a,u,s){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(u),t.consume(v),t.exit(u),c=v===40?41:v,p):r(v)}function p(v){return v===c?(t.enter(u),t.consume(v),t.exit(u),t.exit(a),l):(t.enter(s),m(v))}function m(v){return v===c?(t.exit(s),p(c)):v===null?r(v):be(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),je(t,m,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===c||v===null||be(v)?(t.exit("chunkString"),m(v)):(t.consume(v),v===92?g:y)}function g(v){return v===c||v===92?(t.consume(v),y):y(v)}}function Aa(t,l){let r;return a;function a(u){return be(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),r=!0,a):Re(u)?je(t,a,r?"linePrefix":"lineSuffix")(u):l(u)}}const iN={name:"definition",tokenize:oN},aN={partial:!0,tokenize:uN};function oN(t,l,r){const a=this;let u;return s;function s(x){return t.enter("definition"),c(x)}function c(x){return g1.call(a,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return u=vn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),p):r(x)}function p(x){return Ze(x)?Aa(t,m)(x):m(x)}function m(x){return p1(t,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function y(x){return t.attempt(aN,g,g)(x)}function g(x){return Re(x)?je(t,v,"whitespace")(x):v(x)}function v(x){return x===null||be(x)?(t.exit("definition"),a.parser.defined.push(u),l(x)):r(x)}}function uN(t,l,r){return a;function a(d){return Ze(d)?Aa(t,u)(d):r(d)}function u(d){return y1(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Re(d)?je(t,c,"whitespace")(d):c(d)}function c(d){return d===null||be(d)?l(d):r(d)}}const sN={name:"hardBreakEscape",tokenize:cN};function cN(t,l,r){return a;function a(s){return t.enter("hardBreakEscape"),t.consume(s),u}function u(s){return be(s)?(t.exit("hardBreakEscape"),l(s)):r(s)}}const fN={name:"headingAtx",resolve:dN,tokenize:hN};function dN(t,l){let r=t.length-2,a=3,u,s;return t[a][1].type==="whitespace"&&(a+=2),r-2>a&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&t[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(u={type:"atxHeadingText",start:t[a][1].start,end:t[r][1].end},s={type:"chunkText",start:t[a][1].start,end:t[r][1].end,contentType:"text"},tn(t,a,r-a+1,[["enter",u,l],["enter",s,l],["exit",s,l],["exit",u,l]])),t}function hN(t,l,r){let a=0;return u;function u(y){return t.enter("atxHeading"),s(y)}function s(y){return t.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(t.consume(y),c):y===null||Ze(y)?(t.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),p(y)):y===null||be(y)?(t.exit("atxHeading"),l(y)):Re(y)?je(t,d,"whitespace")(y):(t.enter("atxHeadingText"),m(y))}function p(y){return y===35?(t.consume(y),p):(t.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Ze(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),m)}}const mN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ex=["pre","script","style","textarea"],pN={concrete:!0,name:"htmlFlow",resolveTo:xN,tokenize:bN},gN={partial:!0,tokenize:SN},yN={partial:!0,tokenize:vN};function xN(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function bN(t,l,r){const a=this;let u,s,c,d,p;return m;function m(w){return y(w)}function y(w){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(w),g}function g(w){return w===33?(t.consume(w),v):w===47?(t.consume(w),s=!0,A):w===63?(t.consume(w),u=3,a.interrupt?l:O):zt(w)?(t.consume(w),c=String.fromCharCode(w),N):r(w)}function v(w){return w===45?(t.consume(w),u=2,x):w===91?(t.consume(w),u=5,d=0,E):zt(w)?(t.consume(w),u=4,a.interrupt?l:O):r(w)}function x(w){return w===45?(t.consume(w),a.interrupt?l:O):r(w)}function E(w){const J="CDATA[";return w===J.charCodeAt(d++)?(t.consume(w),d===J.length?a.interrupt?l:le:E):r(w)}function A(w){return zt(w)?(t.consume(w),c=String.fromCharCode(w),N):r(w)}function N(w){if(w===null||w===47||w===62||Ze(w)){const J=w===47,te=c.toLowerCase();return!J&&!s&&Ex.includes(te)?(u=1,a.interrupt?l(w):le(w)):mN.includes(c.toLowerCase())?(u=6,J?(t.consume(w),T):a.interrupt?l(w):le(w)):(u=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(w):s?z(w):D(w))}return w===45||Et(w)?(t.consume(w),c+=String.fromCharCode(w),N):r(w)}function T(w){return w===62?(t.consume(w),a.interrupt?l:le):r(w)}function z(w){return Re(w)?(t.consume(w),z):H(w)}function D(w){return w===47?(t.consume(w),H):w===58||w===95||zt(w)?(t.consume(w),L):Re(w)?(t.consume(w),D):H(w)}function L(w){return w===45||w===46||w===58||w===95||Et(w)?(t.consume(w),L):I(w)}function I(w){return w===61?(t.consume(w),M):Re(w)?(t.consume(w),I):D(w)}function M(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),p=w,F):Re(w)?(t.consume(w),M):V(w)}function F(w){return w===p?(t.consume(w),p=null,ue):w===null||be(w)?r(w):(t.consume(w),F)}function V(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ze(w)?I(w):(t.consume(w),V)}function ue(w){return w===47||w===62||Re(w)?D(w):r(w)}function H(w){return w===62?(t.consume(w),ie):r(w)}function ie(w){return w===null||be(w)?le(w):Re(w)?(t.consume(w),ie):r(w)}function le(w){return w===45&&u===2?(t.consume(w),U):w===60&&u===1?(t.consume(w),Z):w===62&&u===4?(t.consume(w),_):w===63&&u===3?(t.consume(w),O):w===93&&u===5?(t.consume(w),ge):be(w)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(gN,X,he)(w)):w===null||be(w)?(t.exit("htmlFlowData"),he(w)):(t.consume(w),le)}function he(w){return t.check(yN,ae,X)(w)}function ae(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),ne}function ne(w){return w===null||be(w)?he(w):(t.enter("htmlFlowData"),le(w))}function U(w){return w===45?(t.consume(w),O):le(w)}function Z(w){return w===47?(t.consume(w),c="",re):le(w)}function re(w){if(w===62){const J=c.toLowerCase();return Ex.includes(J)?(t.consume(w),_):le(w)}return zt(w)&&c.length<8?(t.consume(w),c+=String.fromCharCode(w),re):le(w)}function ge(w){return w===93?(t.consume(w),O):le(w)}function O(w){return w===62?(t.consume(w),_):w===45&&u===2?(t.consume(w),O):le(w)}function _(w){return w===null||be(w)?(t.exit("htmlFlowData"),X(w)):(t.consume(w),_)}function X(w){return t.exit("htmlFlow"),l(w)}}function vN(t,l,r){const a=this;return u;function u(c){return be(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):l(c)}}function SN(t,l,r){return a;function a(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(Ma,l,r)}}const wN={name:"htmlText",tokenize:kN};function kN(t,l,r){const a=this;let u,s,c;return d;function d(O){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(O),p}function p(O){return O===33?(t.consume(O),m):O===47?(t.consume(O),I):O===63?(t.consume(O),D):zt(O)?(t.consume(O),V):r(O)}function m(O){return O===45?(t.consume(O),y):O===91?(t.consume(O),s=0,E):zt(O)?(t.consume(O),z):r(O)}function y(O){return O===45?(t.consume(O),x):r(O)}function g(O){return O===null?r(O):O===45?(t.consume(O),v):be(O)?(c=g,Z(O)):(t.consume(O),g)}function v(O){return O===45?(t.consume(O),x):g(O)}function x(O){return O===62?U(O):O===45?v(O):g(O)}function E(O){const _="CDATA[";return O===_.charCodeAt(s++)?(t.consume(O),s===_.length?A:E):r(O)}function A(O){return O===null?r(O):O===93?(t.consume(O),N):be(O)?(c=A,Z(O)):(t.consume(O),A)}function N(O){return O===93?(t.consume(O),T):A(O)}function T(O){return O===62?U(O):O===93?(t.consume(O),T):A(O)}function z(O){return O===null||O===62?U(O):be(O)?(c=z,Z(O)):(t.consume(O),z)}function D(O){return O===null?r(O):O===63?(t.consume(O),L):be(O)?(c=D,Z(O)):(t.consume(O),D)}function L(O){return O===62?U(O):D(O)}function I(O){return zt(O)?(t.consume(O),M):r(O)}function M(O){return O===45||Et(O)?(t.consume(O),M):F(O)}function F(O){return be(O)?(c=F,Z(O)):Re(O)?(t.consume(O),F):U(O)}function V(O){return O===45||Et(O)?(t.consume(O),V):O===47||O===62||Ze(O)?ue(O):r(O)}function ue(O){return O===47?(t.consume(O),U):O===58||O===95||zt(O)?(t.consume(O),H):be(O)?(c=ue,Z(O)):Re(O)?(t.consume(O),ue):U(O)}function H(O){return O===45||O===46||O===58||O===95||Et(O)?(t.consume(O),H):ie(O)}function ie(O){return O===61?(t.consume(O),le):be(O)?(c=ie,Z(O)):Re(O)?(t.consume(O),ie):ue(O)}function le(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(t.consume(O),u=O,he):be(O)?(c=le,Z(O)):Re(O)?(t.consume(O),le):(t.consume(O),ae)}function he(O){return O===u?(t.consume(O),u=void 0,ne):O===null?r(O):be(O)?(c=he,Z(O)):(t.consume(O),he)}function ae(O){return O===null||O===34||O===39||O===60||O===61||O===96?r(O):O===47||O===62||Ze(O)?ue(O):(t.consume(O),ae)}function ne(O){return O===47||O===62||Ze(O)?ue(O):r(O)}function U(O){return O===62?(t.consume(O),t.exit("htmlTextData"),t.exit("htmlText"),l):r(O)}function Z(O){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),re}function re(O){return Re(O)?je(t,ge,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):ge(O)}function ge(O){return t.enter("htmlTextData"),c(O)}}const eh={name:"labelEnd",resolveAll:TN,resolveTo:ON,tokenize:NN},EN={tokenize:zN},CN={tokenize:RN},AN={tokenize:_N};function TN(t){let l=-1;const r=[];for(;++l<t.length;){const a=t[l][1];if(r.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const u=a.type==="labelImage"?4:2;a.type="data",l+=u}}return t.length!==r.length&&tn(t,0,t.length,r),t}function ON(t,l){let r=t.length,a=0,u,s,c,d;for(;r--;)if(u=t[r][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[r][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=r,u.type!=="labelLink")){a=2;break}}else u.type==="labelEnd"&&(c=r);const p={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},m={type:"label",start:{...t[s][1].start},end:{...t[c][1].end}},y={type:"labelText",start:{...t[s+a+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",p,l],["enter",m,l]],d=mn(d,t.slice(s+1,s+a+3)),d=mn(d,[["enter",y,l]]),d=mn(d,Gu(l.parser.constructs.insideSpan.null,t.slice(s+a+4,c-3),l)),d=mn(d,[["exit",y,l],t[c-2],t[c-1],["exit",m,l]]),d=mn(d,t.slice(c+1)),d=mn(d,[["exit",p,l]]),tn(t,s,t.length,d),t}function NN(t,l,r){const a=this;let u=a.events.length,s,c;for(;u--;)if((a.events[u][1].type==="labelImage"||a.events[u][1].type==="labelLink")&&!a.events[u][1]._balanced){s=a.events[u][1];break}return d;function d(v){return s?s._inactive?g(v):(c=a.parser.defined.includes(vn(a.sliceSerialize({start:s.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),p):r(v)}function p(v){return v===40?t.attempt(EN,y,c?y:g)(v):v===91?t.attempt(CN,y,c?m:g)(v):c?y(v):g(v)}function m(v){return t.attempt(AN,y,g)(v)}function y(v){return l(v)}function g(v){return s._balanced=!0,r(v)}}function zN(t,l,r){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),u}function u(g){return Ze(g)?Aa(t,s)(g):s(g)}function s(g){return g===41?y(g):p1(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return Ze(g)?Aa(t,p)(g):y(g)}function d(g){return r(g)}function p(g){return g===34||g===39||g===40?y1(t,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Ze(g)?Aa(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):r(g)}}function RN(t,l,r){const a=this;return u;function u(d){return g1.call(a,t,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(vn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function _N(t,l,r){return a;function a(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),u}function u(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),l):r(s)}}const DN={name:"labelStartImage",resolveAll:eh.resolveAll,tokenize:MN};function MN(t,l,r){const a=this;return u;function u(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),s}function s(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):l(d)}}const jN={name:"labelStartLink",resolveAll:eh.resolveAll,tokenize:LN};function LN(t,l,r){const a=this;return u;function u(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):l(c)}}const jf={name:"lineEnding",tokenize:UN};function UN(t,l){return r;function r(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),je(t,l,"linePrefix")}}const yu={name:"thematicBreak",tokenize:BN};function BN(t,l,r){let a=0,u;return s;function s(m){return t.enter("thematicBreak"),c(m)}function c(m){return u=m,d(m)}function d(m){return m===u?(t.enter("thematicBreakSequence"),p(m)):a>=3&&(m===null||be(m))?(t.exit("thematicBreak"),l(m)):r(m)}function p(m){return m===u?(t.consume(m),a++,p):(t.exit("thematicBreakSequence"),Re(m)?je(t,d,"whitespace")(m):d(m))}}const qt={continuation:{tokenize:VN},exit:FN,name:"list",tokenize:YN},HN={partial:!0,tokenize:IN},qN={partial:!0,tokenize:GN};function YN(t,l,r){const a=this,u=a.events[a.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,c=0;return d;function d(x){const E=a.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||x===a.containerState.marker:fd(x)){if(a.containerState.type||(a.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),x===42||x===45?t.check(yu,r,m)(x):m(x);if(!a.interrupt||x===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),p(x)}return r(x)}function p(x){return fd(x)&&++c<10?(t.consume(x),p):(!a.interrupt||c<2)&&(a.containerState.marker?x===a.containerState.marker:x===41||x===46)?(t.exit("listItemValue"),m(x)):r(x)}function m(x){return t.enter("listItemMarker"),t.consume(x),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||x,t.check(Ma,a.interrupt?r:y,t.attempt(HN,v,g))}function y(x){return a.containerState.initialBlankLine=!0,s++,v(x)}function g(x){return Re(x)?(t.enter("listItemPrefixWhitespace"),t.consume(x),t.exit("listItemPrefixWhitespace"),v):r(x)}function v(x){return a.containerState.size=s+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(x)}}function VN(t,l,r){const a=this;return a.containerState._closeFlow=void 0,t.check(Ma,u,s);function u(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,je(t,l,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!Re(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(qN,l,c)(d))}function c(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,je(t,t.attempt(qt,l,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function GN(t,l,r){const a=this;return je(t,u,"listItemIndent",a.containerState.size+1);function u(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?l(s):r(s)}}function FN(t){t.exit(this.containerState.type)}function IN(t,l,r){const a=this;return je(t,u,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const c=a.events[a.events.length-1];return!Re(s)&&c&&c[1].type==="listItemPrefixWhitespace"?l(s):r(s)}}const Cx={name:"setextUnderline",resolveTo:PN,tokenize:XN};function PN(t,l){let r=t.length,a,u,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){a=r;break}t[r][1].type==="paragraph"&&(u=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",s?(t.splice(u,0,["enter",c,l]),t.splice(s+1,0,["exit",t[a][1],l]),t[a][1].end={...t[s][1].end}):t[a][1]=c,t.push(["exit",c,l]),t}function XN(t,l,r){const a=this;let u;return s;function s(m){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),u=m,c(m)):r(m)}function c(m){return t.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===u?(t.consume(m),d):(t.exit("setextHeadingLineSequence"),Re(m)?je(t,p,"lineSuffix")(m):p(m))}function p(m){return m===null||be(m)?(t.exit("setextHeadingLine"),l(m)):r(m)}}const QN={tokenize:ZN};function ZN(t){const l=this,r=t.attempt(Ma,a,t.attempt(this.parser.constructs.flowInitial,u,je(t,t.attempt(this.parser.constructs.flow,u,t.attempt(eN,u)),"linePrefix")));return r;function a(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function u(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const KN={resolveAll:b1()},$N=x1("string"),JN=x1("text");function x1(t){return{resolveAll:b1(t==="text"?WN:void 0),tokenize:l};function l(r){const a=this,u=this.parser.constructs[t],s=r.attempt(u,c,d);return c;function c(y){return m(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return m(y)?(r.exit("data"),s(y)):(r.consume(y),p)}function m(y){if(y===null)return!0;const g=u[y];let v=-1;if(g)for(;++v<g.length;){const x=g[v];if(!x.previous||x.previous.call(a,a.previous))return!0}return!1}}}function b1(t){return l;function l(r,a){let u=-1,s;for(;++u<=r.length;)s===void 0?r[u]&&r[u][1].type==="data"&&(s=u,u++):(!r[u]||r[u][1].type!=="data")&&(u!==s+2&&(r[s][1].end=r[u-1][1].end,r.splice(s+2,u-s-2),u=s+2),s=void 0);return t?t(r,a):r}}function WN(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const a=t[r-1][1],u=l.sliceStream(a);let s=u.length,c=-1,d=0,p;for(;s--;){const m=u[s];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(m===-2)p=!0,d++;else if(m!==-1){s++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const m={type:r===t.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...m.start},a.start.offset===a.end.offset?Object.assign(a,m):(t.splice(r,0,["enter",m,l],["exit",m,l]),r+=2)}r++}return t}const e4={42:qt,43:qt,45:qt,48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,62:f1},t4={91:iN},n4={[-2]:Mf,[-1]:Mf,32:Mf},l4={35:fN,42:yu,45:[Cx,yu],60:pN,61:Cx,95:yu,96:kx,126:kx},r4={38:h1,92:d1},i4={[-5]:jf,[-4]:jf,[-3]:jf,33:DN,38:h1,42:dd,60:[jO,wN],91:jN,92:[sN,d1],93:eh,95:dd,96:QO},a4={null:[dd,KN]},o4={null:[42,95]},u4={null:[]},s4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:o4,contentInitial:t4,disable:u4,document:e4,flow:l4,flowInitial:n4,insideSpan:a4,string:r4,text:i4},Symbol.toStringTag,{value:"Module"}));function c4(t,l,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const u={},s=[];let c=[],d=[];const p={attempt:F(I),check:F(M),consume:z,enter:D,exit:L,interrupt:F(M,{interrupt:!0})},m={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:x,write:g};let y=l.tokenize.call(m,p);return l.resolveAll&&s.push(l),m;function g(ie){return c=mn(c,ie),N(),c[c.length-1]!==null?[]:(V(l,0),m.events=Gu(s,m.events,m),m.events)}function v(ie,le){return d4(x(ie),le)}function x(ie){return f4(c,ie)}function E(){const{_bufferIndex:ie,_index:le,line:he,column:ae,offset:ne}=a;return{_bufferIndex:ie,_index:le,line:he,column:ae,offset:ne}}function A(ie){u[ie.line]=ie.column,H()}function N(){let ie;for(;a._index<c.length;){const le=c[a._index];if(typeof le=="string")for(ie=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===ie&&a._bufferIndex<le.length;)T(le.charCodeAt(a._bufferIndex));else T(le)}}function T(ie){y=y(ie)}function z(ie){be(ie)?(a.line++,a.column=1,a.offset+=ie===-3?2:1,H()):ie!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),m.previous=ie}function D(ie,le){const he=le||{};return he.type=ie,he.start=E(),m.events.push(["enter",he,m]),d.push(he),he}function L(ie){const le=d.pop();return le.end=E(),m.events.push(["exit",le,m]),le}function I(ie,le){V(ie,le.from)}function M(ie,le){le.restore()}function F(ie,le){return he;function he(ae,ne,U){let Z,re,ge,O;return Array.isArray(ae)?X(ae):"tokenize"in ae?X([ae]):_(ae);function _(W){return se;function se(ve){const fe=ve!==null&&W[ve],Ye=ve!==null&&W.null,ct=[...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(Ye)?Ye:Ye?[Ye]:[]];return X(ct)(ve)}}function X(W){return Z=W,re=0,W.length===0?U:w(W[re])}function w(W){return se;function se(ve){return O=ue(),ge=W,W.partial||(m.currentConstruct=W),W.name&&m.parser.constructs.disable.null.includes(W.name)?te():W.tokenize.call(le?Object.assign(Object.create(m),le):m,p,J,te)(ve)}}function J(W){return ie(ge,O),ne}function te(W){return O.restore(),++re<Z.length?w(Z[re]):U}}}function V(ie,le){ie.resolveAll&&!s.includes(ie)&&s.push(ie),ie.resolve&&tn(m.events,le,m.events.length-le,ie.resolve(m.events.slice(le),m)),ie.resolveTo&&(m.events=ie.resolveTo(m.events,m))}function ue(){const ie=E(),le=m.previous,he=m.currentConstruct,ae=m.events.length,ne=Array.from(d);return{from:ae,restore:U};function U(){a=ie,m.previous=le,m.currentConstruct=he,m.events.length=ae,d=ne,H()}}function H(){a.line in u&&a.column<2&&(a.column=u[a.line],a.offset+=u[a.line]-1)}}function f4(t,l){const r=l.start._index,a=l.start._bufferIndex,u=l.end._index,s=l.end._bufferIndex;let c;if(r===u)c=[t[r].slice(a,s)];else{if(c=t.slice(r,u),a>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(a):c.shift()}s>0&&c.push(t[u].slice(0,s))}return c}function d4(t,l){let r=-1;const a=[];let u;for(;++r<t.length;){const s=t[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
281
+ `;break}case-3:{c=`\r
282
+ `;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&u)continue;c=" ";break}default:c=String.fromCharCode(s)}u=s===-2,a.push(c)}return a.join("")}function h4(t){const a={constructs:s1([s4,...(t||{}).extensions||[]]),content:u(OO),defined:[],document:u(zO),flow:u(QN),lazy:{},string:u($N),text:u(JN)};return a;function u(s){return c;function c(d){return c4(a,s,d)}}}function m4(t){for(;!m1(t););return t}const Ax=/[\0\t\n\r]/g;function p4(){let t=1,l="",r=!0,a;return u;function u(s,c,d){const p=[];let m,y,g,v,x;for(s=l+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,l="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(Ax.lastIndex=g,m=Ax.exec(s),v=m&&m.index!==void 0?m.index:s.length,x=s.charCodeAt(v),!m){l=s.slice(g);break}if(x===10&&g===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),g<v&&(p.push(s.slice(g,v)),t+=v-g),x){case 0:{p.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,p.push(-2);t++<y;)p.push(-1);break}case 10:{p.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&p.push(-5),l&&p.push(l),p.push(null)),p}}const g4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y4(t){return t.replace(g4,x4)}function x4(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const u=r.charCodeAt(1),s=u===120||u===88;return c1(r.slice(s?2:1),s?16:10)}return Wd(r)||t}const v1={}.hasOwnProperty;function b4(t,l,r){return l&&typeof l=="object"&&(r=l,l=void 0),v4(r)(m4(h4(r).document().write(p4()(t,l,!0))))}function v4(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(pn),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:s(il),blockQuote:s(Ye),characterEscape:ue,characterReference:ue,codeFenced:s(ct),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(ct,c),codeText:s(Vt,c),codeTextData:ue,data:ue,codeFlowValue:ue,definition:s(Rt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(yt),hardBreakEscape:s(al),hardBreakTrailing:s(al),htmlFlow:s(vr,c),htmlFlowData:ue,htmlText:s(vr,c),htmlTextData:ue,image:s(Sr),label:c,link:s(pn),listItem:s(Ci),listItemValue:v,listOrdered:s(wr,g),listUnordered:s(wr),paragraph:s(Zu),reference:w,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(il),strong:s(Ku),thematicBreak:s($u)},exit:{atxHeading:p(),atxHeadingSequence:I,autolink:p(),autolinkEmail:fe,autolinkProtocol:ve,blockQuote:p(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:te,characterReferenceMarkerNumeric:te,characterReferenceValue:W,characterReference:se,codeFenced:p(N),codeFencedFence:A,codeFencedFenceInfo:x,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:p(T),codeText:p(ne),codeTextData:H,data:H,definition:p(),definitionDestinationString:L,definitionLabelString:z,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(le),hardBreakTrailing:p(le),htmlFlow:p(he),htmlFlowData:H,htmlText:p(ae),htmlTextData:H,image:p(Z),label:ge,labelText:re,lineEnding:ie,link:p(U),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:J,resourceDestinationString:O,resourceTitleString:_,resource:X,setextHeading:p(V),setextHeadingLineSequence:F,setextHeadingText:M,strong:p(),thematicBreak:p()}};S1(l,(t||{}).mdastExtensions||[]);const r={};return a;function a(K){let ce={type:"root",children:[]};const we={stack:[ce],tokenStack:[],config:l,enter:d,exit:m,buffer:c,resume:y,data:r},Oe=[];let He=-1;for(;++He<K.length;)if(K[He][1].type==="listOrdered"||K[He][1].type==="listUnordered")if(K[He][0]==="enter")Oe.push(He);else{const Gt=Oe.pop();He=u(K,Gt,He)}for(He=-1;++He<K.length;){const Gt=l[K[He][0]];v1.call(Gt,K[He][1].type)&&Gt[K[He][1].type].call(Object.assign({sliceSerialize:K[He][2].sliceSerialize},we),K[He][1])}if(we.tokenStack.length>0){const Gt=we.tokenStack[we.tokenStack.length-1];(Gt[1]||Tx).call(we,void 0,Gt[0])}for(ce.position={start:Dl(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Dl(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<l.transforms.length;)ce=l.transforms[He](ce)||ce;return ce}function u(K,ce,we){let Oe=ce-1,He=-1,Gt=!1,jn,Ot,ft,_t;for(;++Oe<=we;){const Xe=K[Oe];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?He++:He--,_t=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(jn&&!_t&&!He&&!ft&&(ft=Oe),_t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_t=void 0}if(!He&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||He===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(jn){let ol=Oe;for(Ot=void 0;ol--;){const gn=K[ol];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;Ot&&(K[Ot][1].type="lineEndingBlank",Gt=!0),gn[1].type="lineEnding",Ot=ol}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}ft&&(!Ot||ft<Ot)&&(jn._spread=!0),jn.end=Object.assign({},Ot?K[Ot][1].start:Xe[1].end),K.splice(Ot||Oe,0,["exit",jn,Xe[2]]),Oe++,we++}if(Xe[1].type==="listItemPrefix"){const ol={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};jn=ol,K.splice(Oe,0,["enter",ol,Xe[2]]),Oe++,we++,ft=void 0,_t=!0}}}return K[ce][1]._spread=Gt,we}function s(K,ce){return we;function we(Oe){d.call(this,K(Oe),Oe),ce&&ce.call(this,Oe)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(K,ce,we){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ce,we||void 0]),K.position={start:Dl(ce.start),end:void 0}}function p(K){return ce;function ce(we){K&&K.call(this,we),m.call(this,we)}}function m(K,ce){const we=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==K.type&&(ce?ce.call(this,K,Oe[0]):(Oe[1]||Tx).call(this,K,Oe[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ca({start:K.start,end:K.end})+"): it’s not open");we.position.end=Dl(K.end)}function y(){return Jd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(K){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function x(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=K}function E(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=K}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K.replace(/(\r?\n|\r)$/g,"")}function z(K){const ce=this.resume(),we=this.stack[this.stack.length-1];we.label=ce,we.identifier=vn(this.sliceSerialize(K)).toLowerCase()}function D(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.title=K}function L(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.url=K}function I(K){const ce=this.stack[this.stack.length-1];if(!ce.depth){const we=this.sliceSerialize(K).length;ce.depth=we}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function F(K){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(K){const we=this.stack[this.stack.length-1].children;let Oe=we[we.length-1];(!Oe||Oe.type!=="text")&&(Oe=Tt(),Oe.position={start:Dl(K.start),end:void 0},we.push(Oe)),this.stack.push(Oe)}function H(K){const ce=this.stack.pop();ce.value+=this.sliceSerialize(K),ce.position.end=Dl(K.end)}function ie(K){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=ce.children[ce.children.length-1];we.position.end=Dl(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ce.type)&&(ue.call(this,K),H.call(this,K))}function le(){this.data.atHardBreak=!0}function he(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function ae(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function ne(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function U(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ce,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function Z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ce,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function re(K){const ce=this.sliceSerialize(K),we=this.stack[this.stack.length-2];we.label=y4(ce),we.identifier=vn(ce).toLowerCase()}function ge(){const K=this.stack[this.stack.length-1],ce=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const Oe=K.children;we.children=Oe}else we.alt=ce}function O(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.url=K}function _(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.title=K}function X(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function J(K){const ce=this.resume(),we=this.stack[this.stack.length-1];we.label=ce,we.identifier=vn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function te(K){this.data.characterReferenceType=K.type}function W(K){const ce=this.sliceSerialize(K),we=this.data.characterReferenceType;let Oe;we?(Oe=c1(ce,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=Wd(ce);const He=this.stack[this.stack.length-1];He.value+=Oe}function se(K){const ce=this.stack.pop();ce.position.end=Dl(K.end)}function ve(K){H.call(this,K);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(K)}function fe(K){H.call(this,K);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(K)}function Ye(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function Vt(){return{type:"inlineCode",value:""}}function Rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function il(){return{type:"heading",depth:0,children:[]}}function al(){return{type:"break"}}function vr(){return{type:"html",value:""}}function Sr(){return{type:"image",title:null,url:"",alt:null}}function pn(){return{type:"link",title:null,url:"",children:[]}}function wr(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Ci(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Zu(){return{type:"paragraph",children:[]}}function Ku(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function $u(){return{type:"thematicBreak"}}}function Dl(t){return{line:t.line,column:t.column,offset:t.offset}}function S1(t,l){let r=-1;for(;++r<l.length;){const a=l[r];Array.isArray(a)?S1(t,a):S4(t,a)}}function S4(t,l){let r;for(r in l)if(v1.call(l,r))switch(r){case"canContainEols":{const a=l[r];a&&t[r].push(...a);break}case"transforms":{const a=l[r];a&&t[r].push(...a);break}case"enter":case"exit":{const a=l[r];a&&Object.assign(t[r],a);break}}}function Tx(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Ca({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Ca({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Ca({start:l.start,end:l.end})+") is still open")}function w4(t){const l=this;l.parser=r;function r(a){return b4(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function k4(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function E4(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
283
+ `}]}function C4(t,l){const r=l.value?l.value+`
284
+ `:"",a={},u=l.lang?l.lang.split(/\s+/):[];u.length>0&&(a.className=["language-"+u[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return l.meta&&(s.data={meta:l.meta}),t.patch(l,s),s=t.applyData(l,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(l,s),s}function A4(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function T4(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function O4(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),u=Ei(a.toLowerCase()),s=t.footnoteOrder.indexOf(a);let c,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),c=t.footnoteOrder.length):c=s+1,d+=1,t.footnoteCounts.set(a,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+u,id:r+"fnref-"+u+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return t.patch(l,m),t.applyData(l,m)}function N4(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function z4(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function w1(t,l){const r=l.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const u=t.all(l),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const c=u[u.length-1];return c&&c.type==="text"?c.value+=a:u.push({type:"text",value:a}),u}function R4(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return w1(t,l);const u={src:Ei(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"img",properties:u,children:[]};return t.patch(l,s),t.applyData(l,s)}function _4(t,l){const r={src:Ei(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,a),t.applyData(l,a)}function D4(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,a),t.applyData(l,a)}function M4(t,l){const r=String(l.identifier).toUpperCase(),a=t.definitionById.get(r);if(!a)return w1(t,l);const u={href:Ei(a.url||"")};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"a",properties:u,children:t.all(l)};return t.patch(l,s),t.applyData(l,s)}function j4(t,l){const r={href:Ei(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const a={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function L4(t,l,r){const a=t.all(l),u=r?U4(r):k1(l),s={},c=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(u||d!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
285
+ `}),y.type==="element"&&y.tagName==="p"&&!u?c.push(...y.children):c.push(y)}const p=a[a.length-1];p&&(u||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
286
+ `});const m={type:"element",tagName:"li",properties:s,children:c};return t.patch(l,m),t.applyData(l,m)}function U4(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let a=-1;for(;!l&&++a<r.length;)l=k1(r[a])}return l}function k1(t){const l=t.spread;return l??t.children.length>1}function B4(t,l){const r={},a=t.all(l);let u=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++u<a.length;){const c=a[u];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(a,!0)};return t.patch(l,s),t.applyData(l,s)}function H4(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function q4(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function Y4(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function V4(t,l){const r=t.all(l),a=r.shift(),u=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],c),u.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=Qd(l.children[1]),p=n1(l.children[l.children.length-1]);d&&p&&(c.position={start:d,end:p}),u.push(c)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(u,!0)};return t.patch(l,s),t.applyData(l,s)}function G4(t,l,r){const a=r?r.children:void 0,s=(a?a.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let p=-1;const m=[];for(;++p<d;){const g=l.children[p],v={},x=c?c[p]:void 0;x&&(v.align=x);let E={type:"element",tagName:s,properties:v,children:[]};g&&(E.children=t.all(g),t.patch(g,E),E=t.applyData(g,E)),m.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(m,!0)};return t.patch(l,y),t.applyData(l,y)}function F4(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const Ox=9,Nx=32;function I4(t){const l=String(t),r=/\r?\n|\r/g;let a=r.exec(l),u=0;const s=[];for(;a;)s.push(zx(l.slice(u,a.index),u>0,!0),a[0]),u=a.index+a[0].length,a=r.exec(l);return s.push(zx(l.slice(u),u>0,!1)),s.join("")}function zx(t,l,r){let a=0,u=t.length;if(l){let s=t.codePointAt(a);for(;s===Ox||s===Nx;)a++,s=t.codePointAt(a)}if(r){let s=t.codePointAt(u-1);for(;s===Ox||s===Nx;)u--,s=t.codePointAt(u-1)}return u>a?t.slice(a,u):""}function P4(t,l){const r={type:"text",value:I4(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function X4(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const Q4={blockquote:k4,break:E4,code:C4,delete:A4,emphasis:T4,footnoteReference:O4,heading:N4,html:z4,imageReference:R4,image:_4,inlineCode:D4,linkReference:M4,link:j4,listItem:L4,list:B4,paragraph:H4,root:q4,strong:Y4,table:V4,tableCell:F4,tableRow:G4,text:P4,thematicBreak:X4,toml:uu,yaml:uu,definition:uu,footnoteDefinition:uu};function uu(){}const E1=-1,Fu=0,Ta=1,Au=2,th=3,nh=4,lh=5,rh=6,C1=7,A1=8,Z4=typeof self=="object"?self:globalThis,Rx=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Z4[t](l)},K4=(t,l)=>{const r=(u,s)=>(t.set(s,u),u),a=u=>{if(t.has(u))return t.get(u);const[s,c]=l[u];switch(s){case Fu:case E1:return r(c,u);case Ta:{const d=r([],u);for(const p of c)d.push(a(p));return d}case Au:{const d=r({},u);for(const[p,m]of c)d[a(p)]=a(m);return d}case th:return r(new Date(c),u);case nh:{const{source:d,flags:p}=c;return r(new RegExp(d,p),u)}case lh:{const d=r(new Map,u);for(const[p,m]of c)d.set(a(p),a(m));return d}case rh:{const d=r(new Set,u);for(const p of c)d.add(a(p));return d}case C1:{const{name:d,message:p}=c;return r(Rx(d,p),u)}case A1:return r(BigInt(c),u);case"BigInt":return r(Object(BigInt(c)),u);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(Rx(s,c),u)};return a},_x=t=>K4(new Map,t)(0),fi="",{toString:$4}={},{keys:J4}=Object,ka=t=>{const l=typeof t;if(l!=="object"||!t)return[Fu,l];const r=$4.call(t).slice(8,-1);switch(r){case"Array":return[Ta,fi];case"Object":return[Au,fi];case"Date":return[th,fi];case"RegExp":return[nh,fi];case"Map":return[lh,fi];case"Set":return[rh,fi];case"DataView":return[Ta,r]}return r.includes("Array")?[Ta,r]:r.includes("Error")?[C1,r]:[Au,r]},su=([t,l])=>t===Fu&&(l==="function"||l==="symbol"),W4=(t,l,r,a)=>{const u=(c,d)=>{const p=a.push(c)-1;return r.set(d,p),p},s=c=>{if(r.has(c))return r.get(c);let[d,p]=ka(c);switch(d){case Fu:{let y=c;switch(p){case"bigint":d=A1,y=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return u([E1],c)}return u([d,y],c)}case Ta:{if(p){let v=c;return p==="DataView"?v=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(c)),u([p,[...v]],c)}const y=[],g=u([d,y],c);for(const v of c)y.push(s(v));return g}case Au:{if(p)switch(p){case"BigInt":return u([p,c.toString()],c);case"Boolean":case"Number":case"String":return u([p,c.valueOf()],c)}if(l&&"toJSON"in c)return s(c.toJSON());const y=[],g=u([d,y],c);for(const v of J4(c))(t||!su(ka(c[v])))&&y.push([s(v),s(c[v])]);return g}case th:return u([d,c.toISOString()],c);case nh:{const{source:y,flags:g}=c;return u([d,{source:y,flags:g}],c)}case lh:{const y=[],g=u([d,y],c);for(const[v,x]of c)(t||!(su(ka(v))||su(ka(x))))&&y.push([s(v),s(x)]);return g}case rh:{const y=[],g=u([d,y],c);for(const v of c)(t||!su(ka(v)))&&y.push(s(v));return g}}const{message:m}=c;return u([d,{name:p,message:m}],c)};return s},Dx=(t,{json:l,lossy:r}={})=>{const a=[];return W4(!(l||r),!!l,new Map,a)(t),a},Tu=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?_x(Dx(t,l)):structuredClone(t):(t,l)=>_x(Dx(t,l));function ez(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function tz(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function nz(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||ez,a=t.options.footnoteBackLabel||tz,u=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<t.footnoteOrder.length;){const m=t.footnoteById.get(t.footnoteOrder[p]);if(!m)continue;const y=t.all(m),g=String(m.identifier).toUpperCase(),v=Ei(g.toLowerCase());let x=0;const E=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++x<=A;){E.length>0&&E.push({type:"text",value:" "});let z=typeof r=="string"?r:r(p,x);typeof z=="string"&&(z={type:"text",value:z}),E.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,x),className:["data-footnote-backref"]},children:Array.isArray(z)?z:[z]})}const N=y[y.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const z=N.children[N.children.length-1];z&&z.type==="text"?z.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...E)}else y.push(...E);const T={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(m,T),d.push(T)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Tu(c),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
287
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
288
+ `}]}}const Iu=(function(t){if(t==null)return az;if(typeof t=="function")return Pu(t);if(typeof t=="object")return Array.isArray(t)?lz(t):rz(t);if(typeof t=="string")return iz(t);throw new Error("Expected function, string, or object as test")});function lz(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=Iu(t[r]);return Pu(a);function a(...u){let s=-1;for(;++s<l.length;)if(l[s].apply(this,u))return!0;return!1}}function rz(t){const l=t;return Pu(r);function r(a){const u=a;let s;for(s in t)if(u[s]!==l[s])return!1;return!0}}function iz(t){return Pu(l);function l(r){return r&&r.type===t}}function Pu(t){return l;function l(r,a,u){return!!(oz(r)&&t.call(this,r,typeof a=="number"?a:void 0,u||void 0))}}function az(){return!0}function oz(t){return t!==null&&typeof t=="object"&&"type"in t}const T1=[],uz=!0,hd=!1,sz="skip";function O1(t,l,r,a){let u;typeof l=="function"&&typeof r!="function"?(a=r,r=l):u=l;const s=Iu(u),c=a?-1:1;d(t,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const x=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=T1,E,A,N;if((!l||s(p,m,y[y.length-1]||void 0))&&(x=cz(r(p,y)),x[0]===hd))return x;if("children"in p&&p.children){const T=p;if(T.children&&x[0]!==sz)for(A=(a?T.children.length:-1)+c,N=y.concat(T);A>-1&&A<T.children.length;){const z=T.children[A];if(E=d(z,A,N)(),E[0]===hd)return E;A=typeof E[1]=="number"?E[1]:A+c}}return x}}}function cz(t){return Array.isArray(t)?t:typeof t=="number"?[uz,t]:t==null?T1:[t]}function ih(t,l,r,a){let u,s,c;typeof l=="function"&&typeof r!="function"?(s=void 0,c=l,u=r):(s=l,c=r,u=a),O1(t,s,d,u);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return c(p,g,y)}}const md={}.hasOwnProperty,fz={};function dz(t,l){const r=l||fz,a=new Map,u=new Map,s=new Map,c={...Q4,...r.handlers},d={all:m,applyData:mz,definitionById:a,footnoteById:u,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:hz,wrap:gz};return ih(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:u,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function p(y,g){const v=y.type,x=d.handlers[v];if(md.call(d.handlers,v)&&x)return x(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:A,...N}=y,T=Tu(N);return T.children=d.all(y),T}return Tu(y)}return(d.options.unknownHandler||pz)(d,y,g)}function m(y){const g=[];if("children"in y){const v=y.children;let x=-1;for(;++x<v.length;){const E=d.one(v[x],y);if(E){if(x&&v[x-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Mx(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=Mx(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function hz(t,l){t.position&&(l.position=eO(t))}function mz(t,l){let r=l;if(t&&t.data){const a=t.data.hName,u=t.data.hChildren,s=t.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Tu(s)),"children"in r&&r.children&&u!==null&&u!==void 0&&(r.children=u)}return r}function pz(t,l){const r=l.data||{},a="value"in l&&!(md.call(r,"hProperties")||md.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function gz(t,l){const r=[];let a=-1;for(l&&r.push({type:"text",value:`
289
+ `});++a<t.length;)a&&r.push({type:"text",value:`
290
+ `}),r.push(t[a]);return l&&t.length>0&&r.push({type:"text",value:`
291
+ `}),r}function Mx(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function jx(t,l){const r=dz(t,l),a=r.one(t,void 0),u=nz(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
292
+ `},u),s}function yz(t,l){return t&&"run"in t?async function(r,a){const u=jx(r,{file:a,...l});await t.run(u,a)}:function(r,a){return jx(r,{file:a,...t||l})}}function Lx(t){if(t)throw t}var Lf,Ux;function xz(){if(Ux)return Lf;Ux=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=function(m){return typeof Array.isArray=="function"?Array.isArray(m):l.call(m)==="[object Array]"},s=function(m){if(!m||l.call(m)!=="[object Object]")return!1;var y=t.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&t.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var v;for(v in m);return typeof v>"u"||t.call(m,v)},c=function(m,y){r&&y.name==="__proto__"?r(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(t.call(m,y)){if(a)return a(m,y).value}else return;return m[y]};return Lf=function p(){var m,y,g,v,x,E,A=arguments[0],N=1,T=arguments.length,z=!1;for(typeof A=="boolean"&&(z=A,A=arguments[1]||{},N=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});N<T;++N)if(m=arguments[N],m!=null)for(y in m)g=d(A,y),v=d(m,y),A!==v&&(z&&v&&(s(v)||(x=u(v)))?(x?(x=!1,E=g&&u(g)?g:[]):E=g&&s(g)?g:{},c(A,{name:y,newValue:p(z,E,v)})):typeof v<"u"&&c(A,{name:y,newValue:v}));return A},Lf}var bz=xz();const Uf=Nu(bz);function pd(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function vz(){const t=[],l={run:r,use:a};return l;function r(...u){let s=-1;const c=u.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...u);function d(p,...m){const y=t[++s];let g=-1;if(p){c(p);return}for(;++g<u.length;)(m[g]===null||m[g]===void 0)&&(m[g]=u[g]);u=m,y?Sz(y,d)(...m):c(null,...m)}}function a(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),l}}function Sz(t,l){let r;return a;function a(...c){const d=t.length>c.length;let p;d&&c.push(u);try{p=t.apply(this,c)}catch(m){const y=m;if(d&&r)throw y;return u(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,u):p instanceof Error?u(p):s(p))}function u(c,...d){r||(r=!0,l(c,...d))}function s(c){u(null,c)}}const Nn={basename:wz,dirname:kz,extname:Ez,join:Cz,sep:"/"};function wz(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');ja(t);let r=0,a=-1,u=t.length,s;if(l===void 0||l.length===0||l.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(s){r=u+1;break}}else a<0&&(s=!0,a=u+1);return a<0?"":t.slice(r,a)}if(l===t)return"";let c=-1,d=l.length-1;for(;u--;)if(t.codePointAt(u)===47){if(s){r=u+1;break}}else c<0&&(s=!0,c=u+1),d>-1&&(t.codePointAt(u)===l.codePointAt(d--)?d<0&&(a=u):(d=-1,a=c));return r===a?a=c:a<0&&(a=t.length),t.slice(r,a)}function kz(t){if(ja(t),t.length===0)return".";let l=-1,r=t.length,a;for(;--r;)if(t.codePointAt(r)===47){if(a){l=r;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function Ez(t){ja(t);let l=t.length,r=-1,a=0,u=-1,s=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){a=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?u<0?u=l:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||r<0||s===0||s===1&&u===r-1&&u===a+1?"":t.slice(u,r)}function Cz(...t){let l=-1,r;for(;++l<t.length;)ja(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":Az(r)}function Az(t){ja(t);const l=t.codePointAt(0)===47;let r=Tz(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function Tz(t,l){let r="",a=0,u=-1,s=0,c=-1,d,p;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(u===c-1||s===1))if(u!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),u=c,s=0;continue}}else if(r.length>0){r="",a=0,u=c,s=0;continue}}l&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+t.slice(u+1,c):r=t.slice(u+1,c),a=c-u-1;u=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function ja(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Oz={cwd:Nz};function Nz(){return"/"}function gd(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function zz(t){if(typeof t=="string")t=new URL(t);else if(!gd(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return Rz(t)}function Rz(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const a=l.codePointAt(r+2);if(a===70||a===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(l)}const Bf=["history","path","basename","stem","extname","dirname"];class N1{constructor(l){let r;l?gd(l)?r={path:l}:typeof l=="string"||_z(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":Oz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<Bf.length;){const s=Bf[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let u;for(u in r)Bf.includes(u)||(this[u]=r[u])}get basename(){return typeof this.path=="string"?Nn.basename(this.path):void 0}set basename(l){qf(l,"basename"),Hf(l,"basename"),this.path=Nn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Nn.dirname(this.path):void 0}set dirname(l){Bx(this.basename,"dirname"),this.path=Nn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Nn.extname(this.path):void 0}set extname(l){if(Hf(l,"extname"),Bx(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Nn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){gd(l)&&(l=zz(l)),qf(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Nn.basename(this.path,this.extname):void 0}set stem(l){qf(l,"stem"),Hf(l,"stem"),this.path=Nn.join(this.dirname||"",l+(this.extname||""))}fail(l,r,a){const u=this.message(l,r,a);throw u.fatal=!0,u}info(l,r,a){const u=this.message(l,r,a);return u.fatal=void 0,u}message(l,r,a){const u=new At(l,r,a);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Hf(t,l){if(t&&t.includes(Nn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Nn.sep+"`")}function qf(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function Bx(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function _z(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Dz=(function(t){const a=this.constructor.prototype,u=a[t],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),Mz={}.hasOwnProperty;class ah extends Dz{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vz()}copy(){const l=new ah;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];l.use(...a)}return l.data(Uf(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(Gf("data",this.frozen),this.namespace[l]=r,this):Mz.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Gf("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const u=r.call(l,...a);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=cu(l),a=this.parser||this.Parser;return Yf("parse",a),a(String(r),r)}process(l,r){const a=this;return this.freeze(),Yf("process",this.parser||this.Parser),Vf("process",this.compiler||this.Compiler),r?u(void 0,r):new Promise(u);function u(s,c){const d=cu(l),p=a.parse(d);a.run(p,d,function(y,g,v){if(y||!g||!v)return m(y);const x=g,E=a.stringify(x,v);Uz(E)?v.value=E:v.result=E,m(y,v)});function m(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(l){let r=!1,a;return this.freeze(),Yf("processSync",this.parser||this.Parser),Vf("processSync",this.compiler||this.Compiler),this.process(l,u),qx("processSync","process",r),a;function u(s,c){r=!0,Lx(s),a=c}}run(l,r,a){Hx(l),this.freeze();const u=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,d){const p=cu(r);u.run(l,p,m);function m(y,g,v){const x=g||l;y?d(y):c?c(x):a(void 0,x,v)}}}runSync(l,r){let a=!1,u;return this.run(l,r,s),qx("runSync","run",a),u;function s(c,d){Lx(c),u=d,a=!0}}stringify(l,r){this.freeze();const a=cu(r),u=this.compiler||this.Compiler;return Vf("stringify",u),Hx(l),u(l,a)}use(l,...r){const a=this.attachers,u=this.namespace;if(Gf("use",this.frozen),l!=null)if(typeof l=="function")p(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function s(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(m.plugins),m.settings&&(u.settings=Uf(!0,u.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===m){v=g;break}if(v===-1)a.push([m,...y]);else if(y.length>0){let[x,...E]=y;const A=a[v][1];pd(A)&&pd(x)&&(x=Uf(!0,A,x)),a[v]=[m,x,...E]}}}}const jz=new ah().freeze();function Yf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Vf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Gf(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hx(t){if(!pd(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function qx(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function cu(t){return Lz(t)?t:new N1(t)}function Lz(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function Uz(t){return typeof t=="string"||Bz(t)}function Bz(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Hz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Yx=[],Vx={allowDangerousHtml:!0},qz=/^(https?|ircs?|mailto|xmpp)$/i,Yz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function z1(t){const l=Vz(t),r=Gz(t);return Fz(l.runSync(l.parse(r),r),t)}function Vz(t){const l=t.rehypePlugins||Yx,r=t.remarkPlugins||Yx,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Vx}:Vx;return jz().use(w4).use(r).use(yz,a).use(l)}function Gz(t){const l=t.children||"",r=new N1;return typeof l=="string"&&(r.value=l),r}function Fz(t,l){const r=l.allowedElements,a=l.allowElement,u=l.components,s=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,p=l.urlTransform||Iz;for(const y of Yz)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Hz+y.id,void 0);return ih(t,m),iO(t,{Fragment:S.Fragment,components:u,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function m(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return c?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let x;for(x in Df)if(Object.hasOwn(Df,x)&&Object.hasOwn(y.properties,x)){const E=y.properties[x],A=Df[x];(A===null||A.includes(y.tagName))&&(y.properties[x]=p(String(E||""),x,y))}}if(y.type==="element"){let x=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!x&&a&&typeof g=="number"&&(x=!a(y,g,v)),x&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function Iz(t){const l=t.indexOf(":"),r=t.indexOf("?"),a=t.indexOf("#"),u=t.indexOf("/");return l===-1||u!==-1&&l>u||r!==-1&&l>r||a!==-1&&l>a||qz.test(t.slice(0,l))?t:""}function Gx(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,u=r.indexOf(l);for(;u!==-1;)a++,u=r.indexOf(l,u+l.length);return a}function Pz(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xz(t,l,r){const u=Iu((r||{}).ignore||[]),s=Qz(l);let c=-1;for(;++c<s.length;)O1(t,"text",d);function d(m,y){let g=-1,v;for(;++g<y.length;){const x=y[g],E=v?v.children:void 0;if(u(x,E?E.indexOf(x):void 0,v))return;v=x}if(v)return p(m,y)}function p(m,y){const g=y[y.length-1],v=s[c][0],x=s[c][1];let E=0;const N=g.children.indexOf(m);let T=!1,z=[];v.lastIndex=0;let D=v.exec(m.value);for(;D;){const L=D.index,I={index:D.index,input:D.input,stack:[...y,m]};let M=x(...D,I);if(typeof M=="string"&&(M=M.length>0?{type:"text",value:M}:void 0),M===!1?v.lastIndex=L+1:(E!==L&&z.push({type:"text",value:m.value.slice(E,L)}),Array.isArray(M)?z.push(...M):M&&z.push(M),E=L+D[0].length,T=!0),!v.global)break;D=v.exec(m.value)}return T?(E<m.value.length&&z.push({type:"text",value:m.value.slice(E)}),g.children.splice(N,1,...z)):z=[m],N+z.length}}function Qz(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<r.length;){const u=r[a];l.push([Zz(u[0]),Kz(u[1])])}return l}function Zz(t){return typeof t=="string"?new RegExp(Pz(t),"g"):t}function Kz(t){return typeof t=="function"?t:function(){return t}}const Ff="phrasing",If=["autolink","link","image","label"];function $z(){return{transforms:[rR],enter:{literalAutolink:Wz,literalAutolinkEmail:Pf,literalAutolinkHttp:Pf,literalAutolinkWww:Pf},exit:{literalAutolink:lR,literalAutolinkEmail:nR,literalAutolinkHttp:eR,literalAutolinkWww:tR}}}function Jz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ff,notInConstruct:If},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ff,notInConstruct:If},{character:":",before:"[ps]",after:"\\/",inConstruct:Ff,notInConstruct:If}]}}function Wz(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Pf(t){this.config.enter.autolinkProtocol.call(this,t)}function eR(t){this.config.exit.autolinkProtocol.call(this,t)}function tR(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function nR(t){this.config.exit.autolinkEmail.call(this,t)}function lR(t){this.exit(t)}function rR(t){Xz(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,iR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),aR]],{ignore:["link","linkReference"]})}function iR(t,l,r,a,u){let s="";if(!R1(u)||(/^w/i.test(l)&&(r=l+r,l="",s="http://"),!oR(r)))return!1;const c=uR(r+a);if(!c[0])return!1;const d={type:"link",title:null,url:s+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function aR(t,l,r,a){return!R1(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function oR(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function uR(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],a=r.indexOf(")");const u=Gx(t,"(");let s=Gx(t,")");for(;a!==-1&&u>s;)t+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[t,r]}function R1(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||gr(r)||Vu(r))&&(!l||r!==47)}_1.peek=yR;function sR(){this.buffer()}function cR(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function fR(){this.buffer()}function dR(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function hR(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function mR(t){this.exit(t)}function pR(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=vn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function gR(t){this.exit(t)}function yR(){return"["}function _1(t,l,r,a){const u=r.createTracker(a);let s=u.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return s+=u.move(r.safe(r.associationId(t),{after:"]",before:s})),d(),c(),s+=u.move("]"),s}function xR(){return{enter:{gfmFootnoteCallString:sR,gfmFootnoteCall:cR,gfmFootnoteDefinitionLabelString:fR,gfmFootnoteDefinition:dR},exit:{gfmFootnoteCallString:hR,gfmFootnoteCall:mR,gfmFootnoteDefinitionLabelString:pR,gfmFootnoteDefinition:gR}}}function bR(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:_1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,u,s,c){const d=s.createTracker(c);let p=d.move("[^");const m=s.enter("footnoteDefinition"),y=s.enter("label");return p+=d.move(s.safe(s.associationId(a),{before:p,after:"]"})),y(),p+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),p+=d.move((l?`
293
+ `:" ")+s.indentLines(s.containerFlow(a,d.current()),l?D1:vR))),m(),p}}function vR(t,l,r){return l===0?t:D1(t,l,r)}function D1(t,l,r){return(r?"":" ")+t}const SR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];M1.peek=AR;function wR(){return{canContainEols:["delete"],enter:{strikethrough:ER},exit:{strikethrough:CR}}}function kR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:SR}],handlers:{delete:M1}}}function ER(t){this.enter({type:"delete",children:[]},t)}function CR(t){this.exit(t)}function M1(t,l,r,a){const u=r.createTracker(a),s=r.enter("strikethrough");let c=u.move("~~");return c+=r.containerPhrasing(t,{...u.current(),before:c,after:"~"}),c+=u.move("~~"),s(),c}function AR(){return"~"}function TR(t){return t.length}function OR(t,l){const r=l||{},a=(r.align||[]).concat(),u=r.stringLength||TR,s=[],c=[],d=[],p=[];let m=0,y=-1;for(;++y<t.length;){const A=[],N=[];let T=-1;for(t[y].length>m&&(m=t[y].length);++T<t[y].length;){const z=NR(t[y][T]);if(r.alignDelimiters!==!1){const D=u(z);N[T]=D,(p[T]===void 0||D>p[T])&&(p[T]=D)}A.push(z)}c[y]=A,d[y]=N}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<m;)s[g]=Fx(a[g]);else{const A=Fx(a);for(;++g<m;)s[g]=A}g=-1;const v=[],x=[];for(;++g<m;){const A=s[g];let N="",T="";A===99?(N=":",T=":"):A===108?N=":":A===114&&(T=":");let z=r.alignDelimiters===!1?1:Math.max(1,p[g]-N.length-T.length);const D=N+"-".repeat(z)+T;r.alignDelimiters!==!1&&(z=N.length+z+T.length,z>p[g]&&(p[g]=z),x[g]=z),v[g]=D}c.splice(1,0,v),d.splice(1,0,x),y=-1;const E=[];for(;++y<c.length;){const A=c[y],N=d[y];g=-1;const T=[];for(;++g<m;){const z=A[g]||"";let D="",L="";if(r.alignDelimiters!==!1){const I=p[g]-(N[g]||0),M=s[g];M===114?D=" ".repeat(I):M===99?I%2?(D=" ".repeat(I/2+.5),L=" ".repeat(I/2-.5)):(D=" ".repeat(I/2),L=D):L=" ".repeat(I)}r.delimiterStart!==!1&&!g&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&z==="")&&(r.delimiterStart!==!1||g)&&T.push(" "),r.alignDelimiters!==!1&&T.push(D),T.push(z),r.alignDelimiters!==!1&&T.push(L),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||g!==m-1)&&T.push("|")}E.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return E.join(`
294
+ `)}function NR(t){return t==null?"":String(t)}function Fx(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function zR(t,l,r,a){const u=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(t,s.current()),RR);return u(),c}function RR(t,l,r){return">"+(r?"":" ")+t}function _R(t,l){return Ix(t,l.inConstruct,!0)&&!Ix(t,l.notInConstruct,!1)}function Ix(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function Px(t,l,r,a){let u=-1;for(;++u<r.unsafe.length;)if(r.unsafe[u].character===`
295
+ `&&_R(r.stack,r.unsafe[u]))return/[ \t]/.test(a.before)?"":" ";return`\\
296
+ `}function DR(t,l){const r=String(t);let a=r.indexOf(l),u=a,s=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===u?++s>c&&(c=s):s=1,u=a+l.length,a=r.indexOf(l,u);return c}function MR(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function jR(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function LR(t,l,r,a){const u=jR(r),s=t.value||"",c=u==="`"?"GraveAccent":"Tilde";if(MR(t,r)){const g=r.enter("codeIndented"),v=r.indentLines(s,UR);return g(),v}const d=r.createTracker(a),p=u.repeat(Math.max(DR(s,u)+1,3)),m=r.enter("codeFenced");let y=d.move(p);if(t.lang){const g=r.enter(`codeFencedLang${c}`);y+=d.move(r.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=r.enter(`codeFencedMeta${c}`);y+=d.move(" "),y+=d.move(r.safe(t.meta,{before:y,after:`
297
+ `,encode:["`"],...d.current()})),g()}return y+=d.move(`
298
+ `),s&&(y+=d.move(s+`
299
+ `)),y+=d.move(p),m(),y}function UR(t,l,r){return(r?"":" ")+t}function oh(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function BR(t,l,r,a){const u=oh(r),s=u==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("[");return m+=p.move(r.safe(r.associationId(t),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":`
300
+ `,...p.current()}))),d(),t.title&&(d=r.enter(`title${s}`),m+=p.move(" "+u),m+=p.move(r.safe(t.title,{before:m,after:u,...p.current()})),m+=p.move(u),d()),c(),m}function HR(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function Ra(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Ou(t,l,r){const a=bi(t),u=bi(l);return a===void 0?u===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:u===void 0?{inside:!1,outside:!1}:u===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}j1.peek=qR;function j1(t,l,r,a){const u=HR(r),s=r.enter("emphasis"),c=r.createTracker(a),d=c.move(u);let p=c.move(r.containerPhrasing(t,{after:u,before:d,...c.current()}));const m=p.charCodeAt(0),y=Ou(a.before.charCodeAt(a.before.length-1),m,u);y.inside&&(p=Ra(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=Ou(a.after.charCodeAt(0),g,u);v.inside&&(p=p.slice(0,-1)+Ra(g));const x=c.move(u);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+p+x}function qR(t,l,r){return r.options.emphasis||"*"}function YR(t,l){let r=!1;return ih(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,hd}),!!((!t.depth||t.depth<3)&&Jd(t)&&(l.options.setext||r))}function VR(t,l,r,a){const u=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(a);if(YR(t,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(t,{...s.current(),before:`
301
+ `,after:`
302
+ `});return g(),y(),v+`
303
+ `+(u===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
304
+ `))+1))}const c="#".repeat(u),d=r.enter("headingAtx"),p=r.enter("phrasing");s.move(c+" ");let m=r.containerPhrasing(t,{before:"# ",after:`
305
+ `,...s.current()});return/^[\t ]/.test(m)&&(m=Ra(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,r.options.closeAtx&&(m+=" "+c),p(),d(),m}L1.peek=GR;function L1(t){return t.value||""}function GR(){return"<"}U1.peek=FR;function U1(t,l,r,a){const u=oh(r),s=u==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const p=r.createTracker(a);let m=p.move("![");return m+=p.move(r.safe(t.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(r.safe(t.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=r.enter("destinationRaw"),m+=p.move(r.safe(t.url,{before:m,after:t.title?" ":")",...p.current()}))),d(),t.title&&(d=r.enter(`title${s}`),m+=p.move(" "+u),m+=p.move(r.safe(t.title,{before:m,after:u,...p.current()})),m+=p.move(u),d()),m+=p.move(")"),c(),m}function FR(){return"!"}B1.peek=IR;function B1(t,l,r,a){const u=t.referenceType,s=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("![");const m=r.safe(t.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,s(),u==="full"||!m||m!==g?p+=d.move(g+"]"):u==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function IR(){return"!"}H1.peek=PR;function H1(t,l,r){let a=t.value||"",u="`",s=-1;for(;new RegExp("(^|[^`])"+u+"([^`]|$)").test(a);)u+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],d=r.compilePattern(c);let p;if(c.atBreak)for(;p=d.exec(a);){let m=p.index;a.charCodeAt(m)===10&&a.charCodeAt(m-1)===13&&m--,a=a.slice(0,m)+" "+a.slice(p.index+1)}}return u+a+u}function PR(){return"`"}function q1(t,l){const r=Jd(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Y1.peek=XR;function Y1(t,l,r,a){const u=oh(r),s=u==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let d,p;if(q1(t,r)){const y=r.stack;r.stack=[],d=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(t,{before:g,after:">",...c.current()})),g+=c.move(">"),d(),r.stack=y,g}d=r.enter("link"),p=r.enter("label");let m=c.move("[");return m+=c.move(r.containerPhrasing(t,{before:m,after:"](",...c.current()})),m+=c.move("]("),p(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(p=r.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(r.safe(t.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(p=r.enter("destinationRaw"),m+=c.move(r.safe(t.url,{before:m,after:t.title?" ":")",...c.current()}))),p(),t.title&&(p=r.enter(`title${s}`),m+=c.move(" "+u),m+=c.move(r.safe(t.title,{before:m,after:u,...c.current()})),m+=c.move(u),p()),m+=c.move(")"),d(),m}function XR(t,l,r){return q1(t,r)?"<":"["}V1.peek=QR;function V1(t,l,r,a){const u=t.referenceType,s=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(a);let p=d.move("[");const m=r.containerPhrasing(t,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(t),{before:p,after:"]",...d.current()});return c(),r.stack=y,s(),u==="full"||!m||m!==g?p+=d.move(g+"]"):u==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function QR(){return"["}function uh(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function ZR(t){const l=uh(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function KR(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function G1(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function $R(t,l,r,a){const u=r.enter("list"),s=r.bulletCurrent;let c=t.ordered?KR(r):uh(r);const d=t.ordered?c==="."?")":".":ZR(r);let p=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),G1(r)===c&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=d),r.bulletCurrent=c;const m=r.containerFlow(t,a);return r.bulletLastUsed=c,r.bulletCurrent=s,u(),m}function JR(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function WR(t,l,r,a){const u=JR(r);let s=r.bulletCurrent||uh(r);l&&l.type==="list"&&l.ordered&&(s=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+s);let c=s.length+1;(u==="tab"||u==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(a);d.move(s+" ".repeat(c-s.length)),d.shift(c);const p=r.enter("listItem"),m=r.indentLines(r.containerFlow(t,d.current()),y);return p(),m;function y(g,v,x){return v?(x?"":" ".repeat(c))+g:(x?s:s+" ".repeat(c-s.length))+g}}function e_(t,l,r,a){const u=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(t,a);return s(),u(),c}const t_=Iu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function n_(t,l,r,a){return(t.children.some(function(c){return t_(c)})?r.containerPhrasing:r.containerFlow).call(r,t,a)}function l_(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}F1.peek=r_;function F1(t,l,r,a){const u=l_(r),s=r.enter("strong"),c=r.createTracker(a),d=c.move(u+u);let p=c.move(r.containerPhrasing(t,{after:u,before:d,...c.current()}));const m=p.charCodeAt(0),y=Ou(a.before.charCodeAt(a.before.length-1),m,u);y.inside&&(p=Ra(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=Ou(a.after.charCodeAt(0),g,u);v.inside&&(p=p.slice(0,-1)+Ra(g));const x=c.move(u+u);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+p+x}function r_(t,l,r){return r.options.strong||"*"}function i_(t,l,r,a){return r.safe(t.value,a)}function a_(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function o_(t,l,r){const a=(G1(r)+(r.options.ruleSpaces?" ":"")).repeat(a_(r));return r.options.ruleSpaces?a.slice(0,-1):a}const I1={blockquote:zR,break:Px,code:LR,definition:BR,emphasis:j1,hardBreak:Px,heading:VR,html:L1,image:U1,imageReference:B1,inlineCode:H1,link:Y1,linkReference:V1,list:$R,listItem:WR,paragraph:e_,root:n_,strong:F1,text:i_,thematicBreak:o_};function u_(){return{enter:{table:s_,tableData:Xx,tableHeader:Xx,tableRow:f_},exit:{codeText:d_,table:c_,tableData:Xf,tableHeader:Xf,tableRow:Xf}}}function s_(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function c_(t){this.exit(t),this.data.inTable=void 0}function f_(t){this.enter({type:"tableRow",children:[]},t)}function Xf(t){this.exit(t)}function Xx(t){this.enter({type:"tableCell",children:[]},t)}function d_(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,h_));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function h_(t,l){return l==="|"?l:t}function m_(t){const l=t||{},r=l.tableCellPadding,a=l.tablePipeAlign,u=l.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
306
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:p,tableRow:d}};function c(x,E,A,N){return m(y(x,A,N),x.align)}function d(x,E,A,N){const T=g(x,A,N),z=m([T]);return z.slice(0,z.indexOf(`
307
+ `))}function p(x,E,A,N){const T=A.enter("tableCell"),z=A.enter("phrasing"),D=A.containerPhrasing(x,{...N,before:s,after:s});return z(),T(),D}function m(x,E){return OR(x,{align:E,alignDelimiters:a,padding:r,stringLength:u})}function y(x,E,A){const N=x.children;let T=-1;const z=[],D=E.enter("table");for(;++T<N.length;)z[T]=g(N[T],E,A);return D(),z}function g(x,E,A){const N=x.children;let T=-1;const z=[],D=E.enter("tableRow");for(;++T<N.length;)z[T]=p(N[T],x,E,A);return D(),z}function v(x,E,A){let N=I1.inlineCode(x,E,A);return A.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function p_(){return{exit:{taskListCheckValueChecked:Qx,taskListCheckValueUnchecked:Qx,paragraph:y_}}}function g_(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:x_}}}function Qx(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function y_(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const u=l.children;let s=-1,c;for(;++s<u.length;){const d=u[s];if(d.type==="paragraph"){c=d;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function x_(t,l,r,a){const u=t.children[0],s=typeof t.checked=="boolean"&&u&&u.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(c);let p=I1.listItem(t,l,r,{...a,...d.current()});return s&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+c}}function b_(){return[$z(),xR(),wR(),u_(),p_()]}function v_(t){return{extensions:[Jz(),bR(t),kR(),m_(t),g_()]}}const S_={tokenize:T_,partial:!0},P1={tokenize:O_,partial:!0},X1={tokenize:N_,partial:!0},Q1={tokenize:z_,partial:!0},w_={tokenize:R_,partial:!0},Z1={name:"wwwAutolink",tokenize:C_,previous:$1},K1={name:"protocolAutolink",tokenize:A_,previous:J1},rl={name:"emailAutolink",tokenize:E_,previous:W1},Mn={};function k_(){return{text:Mn}}let fr=48;for(;fr<123;)Mn[fr]=rl,fr++,fr===58?fr=65:fr===91&&(fr=97);Mn[43]=rl;Mn[45]=rl;Mn[46]=rl;Mn[95]=rl;Mn[72]=[rl,K1];Mn[104]=[rl,K1];Mn[87]=[rl,Z1];Mn[119]=[rl,Z1];function E_(t,l,r){const a=this;let u,s;return c;function c(g){return!yd(g)||!W1.call(a,a.previous)||sh(a.events)?r(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return yd(g)?(t.consume(g),d):g===64?(t.consume(g),p):r(g)}function p(g){return g===46?t.check(w_,y,m)(g):g===45||g===95||Et(g)?(s=!0,t.consume(g),p):y(g)}function m(g){return t.consume(g),u=!0,p}function y(g){return s&&u&&zt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):r(g)}}function C_(t,l,r){const a=this;return u;function u(c){return c!==87&&c!==119||!$1.call(a,a.previous)||sh(a.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(S_,t.attempt(P1,t.attempt(X1,s),r),r)(c))}function s(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function A_(t,l,r){const a=this;let u="",s=!1;return c;function c(g){return(g===72||g===104)&&J1.call(a,a.previous)&&!sh(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),u+=String.fromCodePoint(g),t.consume(g),d):r(g)}function d(g){if(zt(g)&&u.length<5)return u+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=u.toLowerCase();if(v==="http"||v==="https")return t.consume(g),p}return r(g)}function p(g){return g===47?(t.consume(g),s?m:(s=!0,p)):r(g)}function m(g){return g===null||Cu(g)||Ze(g)||gr(g)||Vu(g)?r(g):t.attempt(P1,t.attempt(X1,y),r)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function T_(t,l,r){let a=0;return u;function u(c){return(c===87||c===119)&&a<3?(a++,t.consume(c),u):c===46&&a===3?(t.consume(c),s):r(c)}function s(c){return c===null?r(c):l(c)}}function O_(t,l,r){let a,u,s;return c;function c(m){return m===46||m===95?t.check(Q1,p,d)(m):m===null||Ze(m)||gr(m)||m!==45&&Vu(m)?p(m):(s=!0,t.consume(m),c)}function d(m){return m===95?a=!0:(u=a,a=void 0),t.consume(m),c}function p(m){return u||a||!s?r(m):l(m)}}function N_(t,l){let r=0,a=0;return u;function u(c){return c===40?(r++,t.consume(c),u):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(Q1,l,s)(c):c===null||Ze(c)||gr(c)?l(c):(t.consume(c),u)}function s(c){return c===41&&a++,t.consume(c),u}}function z_(t,l,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),s):d===93?(t.consume(d),u):d===60||d===null||Ze(d)||gr(d)?l(d):r(d)}function u(d){return d===null||d===40||d===91||Ze(d)||gr(d)?l(d):a(d)}function s(d){return zt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),a):zt(d)?(t.consume(d),c):r(d)}}function R_(t,l,r){return a;function a(s){return t.consume(s),u}function u(s){return Et(s)?r(s):l(s)}}function $1(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ze(t)}function J1(t){return!zt(t)}function W1(t){return!(t===47||yd(t))}function yd(t){return t===43||t===45||t===46||t===95||Et(t)}function sh(t){let l=t.length,r=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const __={tokenize:q_,partial:!0};function D_(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:U_,continuation:{tokenize:B_},exit:H_}},text:{91:{name:"gfmFootnoteCall",tokenize:L_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:M_,resolveTo:j_}}}}function M_(t,l,r){const a=this;let u=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;u--;){const p=a.events[u][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!c||!c._balanced)return r(p);const m=vn(a.sliceSerialize({start:c.end,end:a.now()}));return m.codePointAt(0)!==94||!s.includes(m.slice(1))?r(p):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),l(p))}}function j_(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},d=[t[r+1],t[r+2],["enter",a,l],t[r+3],t[r+4],["enter",u,l],["exit",u,l],["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(r,t.length-r+1,...d),t}function L_(t,l,r){const a=this,u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",m)}function m(g){if(s>999||g===93&&!c||g===null||g===91||Ze(g))return r(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return u.includes(vn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(g)}return Ze(g)||(c=!0),s++,t.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(t.consume(g),s++,m):m(g)}}function U_(t,l,r){const a=this,u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,d;return p;function p(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):r(E)}function y(E){if(c>999||E===93&&!d||E===null||E===91||Ze(E))return r(E);if(E===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return s=vn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Ze(E)||(d=!0),c++,t.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(t.consume(E),c++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),u.includes(s)||u.push(s),je(t,x,"gfmFootnoteDefinitionWhitespace")):r(E)}function x(E){return l(E)}}function B_(t,l,r){return t.check(Ma,l,t.attempt(__,l,r))}function H_(t){t.exit("gfmFootnoteDefinition")}function q_(t,l,r){const a=this;return je(t,u,"gfmFootnoteDefinitionIndent",5);function u(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(s):r(s)}}function Y_(t){let r=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:u};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function u(c,d){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let m=p;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[p][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[p][1].end)},g={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[p][1].start)},v=[["enter",y,d],["enter",c[m][1],d],["exit",c[m][1],d],["enter",g,d]],x=d.parser.constructs.insideSpan.null;x&&tn(v,v.length,0,Gu(x,c.slice(m+1,p),d)),tn(v,v.length,0,[["exit",g,d],["enter",c[p][1],d],["exit",c[p][1],d],["exit",y,d]]),tn(c,m-1,p-m+3,v),p=m+v.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function s(c,d,p){const m=this.previous,y=this.events;let g=0;return v;function v(E){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(E):(c.enter("strikethroughSequenceTemporary"),x(E))}function x(E){const A=bi(m);if(E===126)return g>1?p(E):(c.consume(E),g++,x);if(g<2&&!r)return p(E);const N=c.exit("strikethroughSequenceTemporary"),T=bi(E);return N._open=!T||T===2&&!!A,N._close=!A||A===2&&!!T,d(E)}}}class V_{constructor(){this.map=[]}add(l,r,a){G_(this,l,r,a)}consume(l){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];a.push(l.slice()),l.length=0;let u=a.pop();for(;u;){for(const s of u)l.push(s);u=a.pop()}this.map.length=0}}function G_(t,l,r,a){let u=0;if(!(r===0&&a.length===0)){for(;u<t.map.length;){if(t.map[u][0]===l){t.map[u][1]+=r,t.map[u][2].push(...a);return}u+=1}t.map.push([l,r,a])}}function F_(t,l){let r=!1;const a=[];for(;l<t.length;){const u=t[l];if(r){if(u[0]==="enter")u[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(u[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(u[1].type==="tableDelimiterRow")break}else u[0]==="enter"&&u[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return a}function I_(){return{flow:{null:{name:"table",tokenize:P_,resolveAll:X_}}}}function P_(t,l,r){const a=this;let u=0,s=0,c;return d;function d(H){let ie=a.events.length-1;for(;ie>-1;){const ae=a.events[ie][1].type;if(ae==="lineEnding"||ae==="linePrefix")ie--;else break}const le=ie>-1?a.events[ie][1].type:null,he=le==="tableHead"||le==="tableRow"?M:p;return he===M&&a.parser.lazy[a.now().line]?r(H):he(H)}function p(H){return t.enter("tableHead"),t.enter("tableRow"),m(H)}function m(H){return H===124||(c=!0,s+=1),y(H)}function y(H){return H===null?r(H):be(H)?s>1?(s=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),x):r(H):Re(H)?je(t,y,"whitespace")(H):(s+=1,c&&(c=!1,u+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),c=!0,y):(t.enter("data"),g(H)))}function g(H){return H===null||H===124||Ze(H)?(t.exit("data"),y(H)):(t.consume(H),H===92?v:g)}function v(H){return H===92||H===124?(t.consume(H),g):g(H)}function x(H){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(H):(t.enter("tableDelimiterRow"),c=!1,Re(H)?je(t,E,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):E(H))}function E(H){return H===45||H===58?N(H):H===124?(c=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),A):I(H)}function A(H){return Re(H)?je(t,N,"whitespace")(H):N(H)}function N(H){return H===58?(s+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),T):H===45?(s+=1,T(H)):H===null||be(H)?L(H):I(H)}function T(H){return H===45?(t.enter("tableDelimiterFiller"),z(H)):I(H)}function z(H){return H===45?(t.consume(H),z):H===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),D):(t.exit("tableDelimiterFiller"),D(H))}function D(H){return Re(H)?je(t,L,"whitespace")(H):L(H)}function L(H){return H===124?E(H):H===null||be(H)?!c||u!==s?I(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(H)):I(H)}function I(H){return r(H)}function M(H){return t.enter("tableRow"),F(H)}function F(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),F):H===null||be(H)?(t.exit("tableRow"),l(H)):Re(H)?je(t,F,"whitespace")(H):(t.enter("data"),V(H))}function V(H){return H===null||H===124||Ze(H)?(t.exit("data"),F(H)):(t.consume(H),H===92?ue:V)}function ue(H){return H===92||H===124?(t.consume(H),V):V(H)}}function X_(t,l){let r=-1,a=!0,u=0,s=[0,0,0,0],c=[0,0,0,0],d=!1,p=0,m,y,g;const v=new V_;for(;++r<t.length;){const x=t[r],E=x[1];x[0]==="enter"?E.type==="tableHead"?(d=!1,p!==0&&(Zx(v,l,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(r,0,[["enter",m,l]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(r,0,[["enter",y,l]])),u=E.type==="tableDelimiterRow"?2:y?3:1):u&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=fu(v,l,s,u,void 0,g),s=[0,0,0,0]),c[2]=r)):E.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=fu(v,l,s,u,void 0,g)),s=c,c=[s[1],r,0,0])):E.type==="tableHead"?(d=!0,p=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(p=r,s[1]!==0?(c[0]=c[1],g=fu(v,l,s,u,r,g)):c[1]!==0&&(g=fu(v,l,c,u,r,g)),u=0):u&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Zx(v,l,p,m,y),v.consume(l.events),r=-1;++r<l.events.length;){const x=l.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=F_(l.events,r))}return t}function fu(t,l,r,a,u,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(s.end=Object.assign({},di(l.events,r[0])),t.add(r[0],0,[["exit",s,l]]));const p=di(l.events,r[1]);if(s={type:c,start:Object.assign({},p),end:Object.assign({},p)},t.add(r[1],0,[["enter",s,l]]),r[2]!==0){const m=di(l.events,r[2]),y=di(l.events,r[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(t.add(r[2],0,[["enter",g,l]]),a!==2){const v=l.events[r[2]],x=l.events[r[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const E=r[2]+1,A=r[3]-r[2]-1;t.add(E,A,[])}}t.add(r[3]+1,0,[["exit",g,l]])}return u!==void 0&&(s.end=Object.assign({},di(l.events,u)),t.add(u,0,[["exit",s,l]]),s=void 0),s}function Zx(t,l,r,a,u){const s=[],c=di(l.events,r);u&&(u.end=Object.assign({},c),s.push(["exit",u,l])),a.end=Object.assign({},c),s.push(["exit",a,l]),t.add(r+1,0,s)}function di(t,l){const r=t[l],a=r[0]==="enter"?"start":"end";return r[1][a]}const Q_={name:"tasklistCheck",tokenize:K_};function Z_(){return{text:{91:Q_}}}function K_(t,l,r){const a=this;return u;function u(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),s)}function s(p){return Ze(p)?(t.enter("taskListCheckValueUnchecked"),t.consume(p),t.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(t.enter("taskListCheckValueChecked"),t.consume(p),t.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(t.enter("taskListCheckMarker"),t.consume(p),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(p)}function d(p){return be(p)?l(p):Re(p)?t.check({tokenize:$_},l,r)(p):r(p)}}function $_(t,l,r){return je(t,a,"whitespace");function a(u){return u===null?r(u):l(u)}}function J_(t){return s1([k_(),D_(),Y_(t),I_(),Z_()])}const W_={};function e0(t){const l=this,r=t||W_,a=l.data(),u=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);u.push(J_(r)),s.push(b_()),c.push(v_(r))}function Kx({content:t,thinking:l,streaming:r}){const[a,u]=C.useState(!1),[s,c]=C.useState(0),d=C.useRef(null),p=!!(r&&!t);return C.useEffect(()=>{if(!p)return;d.current==null&&(d.current=Date.now());const m=()=>c(Math.floor((Date.now()-(d.current??0))/1e3));m();const y=setInterval(m,1e3);return()=>clearInterval(y)},[p]),S.jsxs("div",{className:"flex flex-col gap-2",children:[l&&S.jsx(eD,{text:l,isStreaming:p,elapsedSeconds:s,open:a,onToggle:()=>u(m=>!m)}),t?S.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:S.jsx(z1,{remarkPlugins:[e0],children:t})}):r&&!l&&S.jsx("span",{className:"text-muted-foreground",children:"…"})]})}function eD({text:t,isStreaming:l,elapsedSeconds:r,open:a,onToggle:u}){const s=l?`Thinking… ${lD(r)}`:tD(t);return S.jsxs("div",{className:"flex flex-col gap-2 text-muted-foreground",children:[S.jsxs("button",{type:"button",onClick:u,className:"self-start inline-flex items-center gap-1.5 text-left text-sm hover:text-foreground transition-colors group",children:[S.jsx("span",{className:$e(l&&"italic"),children:s}),a?S.jsx(ov,{size:14,className:"opacity-60 group-hover:opacity-100"}):S.jsx(uv,{size:14,className:"opacity-60 group-hover:opacity-100"})]}),a&&S.jsx("div",{className:"border-l-2 border-border/70 pl-4 ml-1 prose prose-sm prose-neutral dark:prose-invert max-w-none text-muted-foreground prose-headings:text-foreground prose-strong:text-foreground",children:S.jsx(z1,{remarkPlugins:[e0],children:t})})]})}function tD(t){const l=t.trim();if(!l)return"Thinking…";const r=l.match(/^[^.!?\n]{0,180}[.!?]/);let a=r?r[0]:l.split(/\n/)[0];return a=nD(a).trim(),a.length>120&&(a=a.slice(0,117)+"…"),a}function nD(t){return t.replace(/^\s*#{1,6}\s+/,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/__(.*?)__/g,"$1").replace(/(^|\W)\*(\S[^*]*?\S?)\*(?=\W|$)/g,"$1$2").replace(/(^|\W)_(\S[^_]*?\S?)_(?=\W|$)/g,"$1$2").replace(/`([^`]+)`/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1")}function lD(t){if(t<60)return`${t}s`;const l=Math.floor(t/60),r=t%60;return r===0?`${l}m`:`${l}m ${r}s`}var Xu="Popover",[t0]=zu(Xu,[Lu]),La=Lu(),[rD,Fl]=t0(Xu),n0=t=>{const{__scopePopover:l,children:r,open:a,defaultOpen:u,onOpenChange:s,modal:c=!1}=t,d=La(l),p=C.useRef(null),[m,y]=C.useState(!1),[g,v]=_d({prop:a,defaultProp:u??!1,onChange:s,caller:Xu});return S.jsx(Nb,{...d,children:S.jsx(rD,{scope:l,contentId:Ea(),triggerRef:p,open:g,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(x=>!x),[v]),hasCustomAnchor:m,onCustomAnchorAdd:C.useCallback(()=>y(!0),[]),onCustomAnchorRemove:C.useCallback(()=>y(!1),[]),modal:c,children:r})})};n0.displayName=Xu;var l0="PopoverAnchor",iD=C.forwardRef((t,l)=>{const{__scopePopover:r,...a}=t,u=Fl(l0,r),s=La(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:d}=u;return C.useEffect(()=>(c(),()=>d()),[c,d]),S.jsx(zd,{...s,...a,ref:l})});iD.displayName=l0;var r0="PopoverTrigger",i0=C.forwardRef((t,l)=>{const{__scopePopover:r,...a}=t,u=Fl(r0,r),s=La(r),c=nn(l,u.triggerRef),d=S.jsx(Ct.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":c0(u.open),...a,ref:c,onClick:mt(t.onClick,u.onOpenToggle)});return u.hasCustomAnchor?d:S.jsx(zd,{asChild:!0,...s,children:d})});i0.displayName=r0;var ch="PopoverPortal",[aD,oD]=t0(ch,{forceMount:void 0}),a0=t=>{const{__scopePopover:l,forceMount:r,children:a,container:u}=t,s=Fl(ch,l);return S.jsx(aD,{scope:l,forceMount:r,children:S.jsx(yr,{present:r||s.open,children:S.jsx(Rd,{asChild:!0,container:u,children:a})})})};a0.displayName=ch;var vi="PopoverContent",o0=C.forwardRef((t,l)=>{const r=oD(vi,t.__scopePopover),{forceMount:a=r.forceMount,...u}=t,s=Fl(vi,t.__scopePopover);return S.jsx(yr,{present:a||s.open,children:s.modal?S.jsx(sD,{...u,ref:l}):S.jsx(cD,{...u,ref:l})})});o0.displayName=vi;var uD=Sd("PopoverContent.RemoveScroll"),sD=C.forwardRef((t,l)=>{const r=Fl(vi,t.__scopePopover),a=C.useRef(null),u=nn(l,a),s=C.useRef(!1);return C.useEffect(()=>{const c=a.current;if(c)return Av(c)},[]),S.jsx(Yd,{as:uD,allowPinchZoom:!0,children:S.jsx(u0,{...t,ref:u,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{var d;c.preventDefault(),s.current||(d=r.triggerRef.current)==null||d.focus()}),onPointerDownOutside:mt(t.onPointerDownOutside,c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,m=d.button===2||p;s.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:mt(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),cD=C.forwardRef((t,l)=>{const r=Fl(vi,t.__scopePopover),a=C.useRef(!1),u=C.useRef(!1);return S.jsx(u0,{...t,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,d;(c=t.onCloseAutoFocus)==null||c.call(t,s),s.defaultPrevented||(a.current||(d=r.triggerRef.current)==null||d.focus(),s.preventDefault()),a.current=!1,u.current=!1},onInteractOutside:s=>{var p,m;(p=t.onInteractOutside)==null||p.call(t,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const c=s.target;((m=r.triggerRef.current)==null?void 0:m.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&u.current&&s.preventDefault()}})}),u0=C.forwardRef((t,l)=>{const{__scopePopover:r,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:y,...g}=t,v=Fl(vi,r),x=La(r);return yv(),S.jsx(qd,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:u,onUnmountAutoFocus:s,children:S.jsx(Ru,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:y,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>v.onOpenChange(!1),children:S.jsx(zb,{"data-state":c0(v.open),role:"dialog",id:v.contentId,...x,...g,ref:l,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),s0="PopoverClose",fD=C.forwardRef((t,l)=>{const{__scopePopover:r,...a}=t,u=Fl(s0,r);return S.jsx(Ct.button,{type:"button",...a,ref:l,onClick:mt(t.onClick,()=>u.onOpenChange(!1))})});fD.displayName=s0;var dD="PopoverArrow",hD=C.forwardRef((t,l)=>{const{__scopePopover:r,...a}=t,u=La(r);return S.jsx(Rb,{...u,...a,ref:l})});hD.displayName=dD;function c0(t){return t?"open":"closed"}var mD=n0,pD=i0,gD=a0,f0=o0;const fh=mD,dh=pD,Qu=C.forwardRef(({className:t,align:l="center",sideOffset:r=4,...a},u)=>S.jsx(gD,{children:S.jsx(f0,{ref:u,align:l,sideOffset:r,className:$e("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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 origin-[--radix-popover-content-transform-origin]",t),...a})}));Qu.displayName=f0.displayName;function yD({gw:t,sessionKey:l,onSessionsChanged:r,onSessionDeleted:a}){const[u,s]=C.useState(()=>Qf(l)),[c,d]=C.useState(!1),[p,m]=C.useState(!1),[y,g]=C.useState(!1),[v,x]=C.useState(null),E=C.useRef(null);C.useEffect(()=>{let T=!1;if(l==="agent:main:main"){s("Main");return}async function z(){var D,L,I,M;try{const F=await t.request("sessions.list",{});if(T)return;const V=(D=F==null?void 0:F.sessions)==null?void 0:D.find(le=>le.key===l),ue=((L=V==null?void 0:V.derivedTitle)==null?void 0:L.trim())||((I=V==null?void 0:V.displayName)==null?void 0:I.trim())||((M=V==null?void 0:V.label)==null?void 0:M.trim())||Jx((V==null?void 0:V.lastMessagePreview)??"",48);if(ue){s(ue);return}const H=await t.request("chat.history",{sessionKey:l});if(T)return;const ie=Array.isArray(H==null?void 0:H.messages)?H.messages:[];for(const le of ie){const he=le;if(he.role==="user"){const ae=dr(he.content).trim();if(ae){s(Jx(ae,48));return}}}s(Qf(l))}catch{T||s(Qf(l))}}return z(),()=>{T=!0}},[t,l]);async function A(T){const z=T.trim();if(!z||z===u){m(!1);return}x("rename");try{await t.request("sessions.patch",{key:l,displayName:z}),s(z),r()}catch(D){console.error("Rename failed:",D)}finally{x(null),m(!1)}}async function N(){x("delete");try{try{await t.request("sessions.delete",{key:l})}catch{await t.request("sessions.reset",{key:l,reason:"reset"})}r(),a()}catch(T){console.error("Delete failed:",T)}finally{x(null),g(!1)}}return S.jsxs("header",{className:"px-4 py-3",children:[S.jsxs(fh,{open:c,onOpenChange:d,children:[S.jsx(dh,{asChild:!0,children:S.jsxs("button",{type:"button",className:"inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-base font-medium hover:bg-muted transition-colors",children:[S.jsx("span",{className:"truncate max-w-[40ch]",children:u}),S.jsx(ov,{size:14,className:"opacity-50"})]})}),S.jsxs(Qu,{align:"start",className:"w-48 p-1",children:[S.jsx($x,{icon:S.jsx(Hd,{size:14}),label:"Rename",onClick:()=>{d(!1),m(!0),setTimeout(()=>{var T;return(T=E.current)==null?void 0:T.select()},50)}}),S.jsx($x,{icon:S.jsx(JC,{size:14}),label:"Delete",destructive:!0,onClick:()=>{d(!1),g(!0)}})]})]}),S.jsx(pr,{open:p,onOpenChange:m,children:S.jsxs(Bl,{className:"max-w-md",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Rename session"}),S.jsx(Yl,{children:"Pick a name for this conversation."})]}),S.jsx(xD,{initial:u,inputRef:E,disabled:v==="rename",onConfirm:A,onCancel:()=>m(!1)})]})}),S.jsx(pr,{open:y,onOpenChange:g,children:S.jsxs(Bl,{className:"max-w-md",children:[S.jsxs(Hl,{children:[S.jsx(ql,{children:"Delete session?"}),S.jsxs(Yl,{children:["This removes the transcript for"," ",S.jsx("span",{className:"font-medium text-foreground",children:u}),". This action cannot be undone."]})]}),S.jsxs(Id,{children:[S.jsx("button",{type:"button",onClick:()=>g(!1),disabled:v==="delete",className:"px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80",children:"Cancel"}),S.jsx("button",{type:"button",onClick:N,disabled:v==="delete",className:"px-3 py-1.5 rounded-md text-sm bg-destructive text-destructive-foreground hover:bg-destructive/90",children:v==="delete"?"Deleting…":"Delete"})]})]})})]})}function $x({icon:t,label:l,destructive:r,onClick:a}){return S.jsxs("button",{type:"button",onClick:a,className:$e("w-full text-left flex items-center gap-2 px-2.5 py-1.5 rounded-md text-sm transition-colors",r?"text-destructive hover:bg-destructive/10":"text-muted-foreground hover:bg-muted hover:text-foreground"),children:[t,l]})}function xD({initial:t,inputRef:l,disabled:r,onConfirm:a,onCancel:u}){const[s,c]=C.useState(t);return S.jsxs("form",{onSubmit:d=>{d.preventDefault(),a(s)},className:"flex flex-col gap-3",children:[S.jsx("input",{ref:l,type:"text",value:s,onChange:d=>c(d.currentTarget.value),disabled:r,autoFocus:!0,className:"w-full bg-background border border-input rounded-md px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-ring"}),S.jsxs(Id,{children:[S.jsx("button",{type:"button",onClick:u,disabled:r,className:"px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80",children:"Cancel"}),S.jsx("button",{type:"submit",disabled:r||!s.trim(),className:"px-3 py-1.5 rounded-md text-sm bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50",children:r?"Saving…":"Rename"})]})]})}function Qf(t){const l=t.split(":").pop()??t;return l==="main"?"main":l.length>12?l.slice(0,11)+"…":l}function Jx(t,l){return t.length>l?t.slice(0,l-1)+"…":t}function bD({actions:t}){return S.jsx("div",{className:"flex flex-wrap gap-1.5 self-start",children:t.map((l,r)=>S.jsx(vD,{action:l},r))})}function vD({action:t}){const l=t.toolName??"",r=l==="read"?id:l==="write"?Hd:sv,a=t.content||l,u=t.toolError,s=!t.toolResult;return S.jsxs(nv,{children:[S.jsx(lv,{asChild:!0,children:S.jsxs("div",{className:$e("inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md border bg-muted/50 text-xs cursor-default",u?"border-destructive/40 text-destructive bg-destructive/5":"text-muted-foreground border-border/60",s&&"animate-pulse"),children:[S.jsx(r,{size:12,className:"shrink-0"}),S.jsx("span",{className:"font-mono truncate max-w-[28ch]",children:SD(a)})]})}),S.jsx(Ld,{side:"top",children:S.jsx(Qv,{action:t})})]})}function SD(t){const l=t.replace(/\/+$/,""),r=l.lastIndexOf("/");return r>=0?l.slice(r+1):l}function wD({gw:t,sessionKey:l,currentModel:r,onModelChanged:a,children:u}){const[s,c]=C.useState(!1),[d,p]=C.useState(""),[m,y]=C.useState([]),[g,v]=C.useState(!1),[x,E]=C.useState(null),A=C.useRef(null);C.useEffect(()=>{if(!s||m.length>0)return;v(!0);let z=!1;return t.request("models.list",{}).then(D=>{if(z)return;const L=Array.isArray(D)?D:Array.isArray(D==null?void 0:D.models)?D.models:[];y(L),v(!1)}).catch(()=>{z||v(!1)}),()=>{z=!0}},[s,t,m.length]),C.useEffect(()=>{s&&setTimeout(()=>{var z;return(z=A.current)==null?void 0:z.focus()},50)},[s]);const N=kD(m,d);async function T(z){E(z);try{await t.request("sessions.patch",{key:l,model:z}),a(z),c(!1)}catch(D){console.error("Model switch failed:",D)}finally{E(null)}}return S.jsxs(fh,{open:s,onOpenChange:c,children:[S.jsx(dh,{asChild:!0,children:u}),S.jsxs(Qu,{align:"start",side:"top",className:"w-96 p-0",children:[S.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b",children:[S.jsx(fv,{size:14,className:"text-muted-foreground shrink-0"}),S.jsx("input",{ref:A,type:"text",value:d,onChange:z=>p(z.currentTarget.value),placeholder:"Search models…",className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"})]}),S.jsxs("div",{className:"max-h-72 overflow-y-auto no-scrollbar p-1",children:[g&&S.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Loading models…"}),!g&&N.length===0&&S.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:m.length===0?"No models available.":"No matches."}),!g&&N.map(z=>S.jsxs("button",{type:"button",onClick:()=>T(z.id),disabled:x===z.id,className:$e("w-full text-left flex items-center gap-2 px-2.5 py-1.5 rounded-md text-sm transition-colors",z.id===r?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground",x===z.id&&"opacity-50 cursor-wait"),children:[S.jsx(hu,{size:12,className:$e("shrink-0",z.id===r?"opacity-100":"opacity-0")}),S.jsxs("div",{className:"flex min-w-0 flex-col flex-1",children:[S.jsx("span",{className:"truncate font-mono text-xs",children:z.id}),z.name&&z.name!==z.id&&S.jsx("span",{className:"truncate text-[11px] text-muted-foreground",children:z.name})]}),z.provider&&S.jsx("span",{className:"shrink-0 text-[10px] text-muted-foreground/70 uppercase",children:z.provider})]},z.id))]})]})]})}function kD(t,l){const r=l.trim().toLowerCase();return r?t.filter(a=>[a.id,a.name,a.provider].some(u=>u==null?void 0:u.toLowerCase().includes(r))):t}function ED({filter:t,selectedIdx:l,onSelect:r}){const a=d0(t);return a.length===0?null:S.jsxs("div",{className:"absolute bottom-2 left-0 right-0 z-10 rounded-md border bg-popover text-popover-foreground shadow-lg overflow-hidden",children:[S.jsx("div",{className:"max-h-72 overflow-y-auto no-scrollbar p-1",children:a.map((u,s)=>S.jsxs("button",{type:"button",className:$e("w-full flex items-center gap-2 px-2.5 py-1.5 rounded-sm text-left text-sm",s===l?"bg-accent text-accent-foreground":"hover:bg-muted"),onMouseDown:c=>{c.preventDefault(),r(u)},children:[S.jsx(hv,{size:14,className:"shrink-0 text-muted-foreground"}),S.jsxs("div",{className:"flex min-w-0 flex-col",children:[S.jsx("span",{className:"truncate font-mono",children:u.name}),S.jsx("span",{className:"truncate text-xs text-muted-foreground",children:u.description})]})]},u.name))}),S.jsxs("div",{className:"border-t bg-muted/50 px-3 py-1.5 text-xs text-muted-foreground",children:[S.jsx(Zf,{children:"Tab"})," or ",S.jsx(Zf,{children:"Enter"})," to select · ",S.jsx(Zf,{children:"Esc"})," to dismiss"]})]})}function Zf({children:t}){return S.jsx("kbd",{className:"bg-background border rounded px-1 py-0.5 font-mono text-[10px]",children:t})}function d0(t){if(!t.startsWith("/"))return[];const l=t.slice(1).toLowerCase();return AT.filter(r=>r.name.slice(1).toLowerCase().startsWith(l))}function CD({gw:t,sessionKey:l,onSessionsChanged:r,onSessionDeleted:a}){const u=l,[s,c]=C.useState(""),[d,p]=C.useState("medium"),[m,y]=C.useState([]),[g,v]=C.useState([]),[x,E]=C.useState(""),[A,N]=C.useState(0),[T,z]=C.useState(!1),[D,L]=C.useState(null),[I,M]=C.useState(""),F=C.useRef(null),V=C.useRef(null),ue=C.useCallback(async()=>{try{const w=await t.request("chat.history",{sessionKey:u,limit:100}),J=bT(w);y(J),v(te=>{const W=new Set(te.map(ve=>ve.approvalId)),se=[];for(const ve of J)if(ve.toolName==="exec"&&ve.toolResult){const fe=CT(ve.toolResult,ve.toolCallId);fe&&!W.has(fe.approvalId)&&se.push(fe)}return se.length===0?te:[...te,...se]})}catch(w){L(w instanceof Error?w.message:String(w))}},[t,u]),H=C.useCallback(async(w,J)=>{const te=w.startsWith("plugin:")?"plugin.approval.resolve":"exec.approval.resolve";try{await t.request(te,{id:w,decision:J}),v(W=>W.map(se=>se.approvalId===w?{...se,status:J}:se))}catch(W){L(W instanceof Error?W.message:String(W))}},[t]);C.useEffect(()=>{let w=!1;return t.request("agents.list",{}).then(J=>{var ve,fe,Ye;if(w)return;const te=((ve=J==null?void 0:J.agents)==null?void 0:ve.find(ct=>u.includes(ct.id??"")))??((fe=J==null?void 0:J.agents)==null?void 0:fe[0]),W=(Ye=te==null?void 0:te.model)==null?void 0:Ye.primary;W&&c(W);const se=te==null?void 0:te.thinking;typeof se=="string"&&p(se)}).catch(()=>{}),()=>{w=!0}},[t,u]),C.useEffect(()=>{y([]),v([]),M(""),L(null),V.current=null,z(!1)},[u]),C.useEffect(()=>{let w=!1;ue();const J=te=>{if(w)return;const W=te.payload;if(te.event==="exec.approval.requested"&&W){const se=W.request,ve=W.id||W.approvalId;if(!ve)return;v(fe=>fe.some(Ye=>Ye.approvalId===ve)?fe:[...fe,{approvalId:ve,kind:"exec",command:(se==null?void 0:se.command)||W.command||"unknown command",cwd:(se==null?void 0:se.cwd)||W.cwd,agentId:(se==null?void 0:se.agentId)||W.agentId,host:(se==null?void 0:se.host)||W.host,status:"pending",timestamp:W.createdAtMs||Date.now(),expiresAt:W.expiresAtMs}]);return}if(te.event==="plugin.approval.requested"&&W){const se=W.request,ve=W.id||W.approvalId;if(!ve)return;v(fe=>fe.some(Ye=>Ye.approvalId===ve)?fe:[...fe,{approvalId:ve,kind:"plugin",title:se==null?void 0:se.title,description:se==null?void 0:se.description,toolName:se==null?void 0:se.toolName,pluginId:se==null?void 0:se.pluginId,toolCallId:se==null?void 0:se.toolCallId,status:"pending",timestamp:W.createdAtMs||Date.now(),expiresAt:W.expiresAtMs}]);return}if((te.event==="exec.approval.resolved"||te.event==="plugin.approval.resolved")&&W){const se=W.approvalId||W.id,ve=W.decision;se&&ve&&v(fe=>fe.map(Ye=>Ye.approvalId===se?{...Ye,status:ve}:Ye));return}te.event==="chat"&&ie(te.payload)};return t.onEvent(J),()=>{w=!0,t.onEvent(null)}},[t,ue]),C.useEffect(()=>{var w;(w=F.current)==null||w.scrollTo({top:F.current.scrollHeight,behavior:"smooth"})},[m,I]);function ie(w){if(!w)return;const J=w.sessionKey===u,te=V.current!=null&&w.runId===V.current;if(!(!J&&!te)){if(w.state==="delta"){const W=mT(w.message);typeof W=="string"&&M(W);return}if(w.state==="final"){M(""),V.current=null,z(!1),ue();return}if(w.state==="aborted"){M(""),V.current=null,z(!1),ue();return}if(w.state==="error"){L(w.errorMessage??"chat error"),M(""),V.current=null,z(!1);return}}}async function le(){const w=x.trim();if(!w||T)return;if(w==="/stop")return E(""),ae();E(""),z(!0),L(null),y(te=>[...te,{role:"user",content:w,optimistic:!0}]);const J=crypto.randomUUID();V.current=J;try{await t.request("chat.send",{sessionKey:u,message:w,idempotencyKey:J})}catch(te){L(te instanceof Error?te.message:String(te)),z(!1)}}function he(w){if(w.autoSend){if(E(""),w.name==="/stop")return ae();const J=crypto.randomUUID();V.current=J,t.request("chat.send",{sessionKey:u,message:w.name,idempotencyKey:J}).catch(te=>L(te instanceof Error?te.message:String(te)))}else E(w.name+" ");N(0)}async function ae(){const w=V.current;try{await t.request("chat.abort",{sessionKey:u,...w?{runId:w}:{}})}catch(J){L(J instanceof Error?J.message:String(J))}}function ne(w){const J=d0(x);if(x.startsWith("/")&&J.length>0){if(w.key==="ArrowDown"){w.preventDefault(),N(W=>Math.min(W+1,J.length-1));return}if(w.key==="ArrowUp"){w.preventDefault(),N(W=>Math.max(W-1,0));return}if(w.key==="Tab"||w.key==="Enter"&&!w.shiftKey){w.preventDefault();const W=J[A];W&&he(W);return}if(w.key==="Escape"){w.preventDefault(),E("");return}}w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),le())}const U=C.useMemo(()=>AD(m),[m]),[Z,re]=C.useState(!1),ge=C.useRef(null);function O(){const w=ge.current;w&&(w.style.height="auto",w.style.height=Math.min(w.scrollHeight,200)+"px")}const _=T,X=x.trim().length>0;return S.jsxs("main",{className:"flex-1 flex flex-col min-h-0",children:[S.jsx(yD,{gw:t,sessionKey:u,onSessionsChanged:r,onSessionDeleted:a}),S.jsxs("div",{ref:F,className:"flex-1 overflow-y-auto no-scrollbar px-6 py-6 flex flex-col gap-3 max-w-3xl w-full mx-auto",children:[m.length===0&&!T&&S.jsx("div",{className:"m-auto text-sm text-muted-foreground",children:"No messages yet. Say hi."}),U.map((w,J)=>w.kind==="msg"?S.jsx(Wx,{msg:w.msg},J):w.actions.every(te=>TT(te.toolName))?S.jsx(bD,{actions:w.actions},J):S.jsx(NT,{actions:w.actions,anyPending:w.actions.some(te=>!te.toolResult)},J)),I&&S.jsx(Wx,{msg:{role:"assistant",content:I,streaming:!0}})]}),g.length>0&&S.jsx("div",{className:"bg-muted/30 px-6 py-3 flex flex-col gap-2.5 max-h-[50vh] overflow-y-auto no-scrollbar max-w-3xl w-full mx-auto",children:g.map(w=>S.jsx(zT,{approval:w,onResolve:H},w.approvalId))}),D&&S.jsx("div",{className:"px-6 py-2 text-xs text-destructive max-w-3xl w-full mx-auto",children:D}),S.jsx("div",{className:"px-4 pb-4 max-w-2xl w-full mx-auto",children:S.jsxs("div",{className:"relative rounded-2xl border border-border/60 bg-muted/40 p-2",children:[S.jsx(ED,{filter:x,selectedIdx:A,onSelect:he}),S.jsxs("div",{className:$e("overflow-hidden rounded-xl bg-background shadow-sm ring-1 ring-border/50 transition-all",Z&&"ring-border shadow-md"),children:[S.jsx("textarea",{ref:ge,value:x,onChange:w=>{E(w.currentTarget.value),N(0)},onInput:O,onKeyDown:ne,onFocus:()=>re(!0),onBlur:()=>re(!1),placeholder:"Message the agent…",rows:1,disabled:T,className:"w-full resize-none bg-transparent px-4 pt-3.5 pb-2 text-sm outline-none placeholder:text-muted-foreground/70 disabled:opacity-50",style:{maxHeight:"200px",minHeight:"44px"}}),S.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[S.jsx("button",{type:"button",disabled:!0,title:"Attachments (coming soon)",className:"flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground/40 cursor-not-allowed",children:S.jsx(BC,{size:18})}),S.jsx("div",{className:"flex items-center gap-1.5",children:_?S.jsx("button",{type:"button",onClick:ae,title:"Stop",className:"flex h-8 w-8 items-center justify-center rounded-lg bg-red-500/80 text-white hover:bg-red-600 transition-colors",children:S.jsx(QC,{size:12,strokeWidth:2.5})}):S.jsx("button",{type:"button",onClick:le,disabled:!X,title:"Send",className:$e("flex h-8 w-8 items-center justify-center rounded-lg transition-colors",X?"bg-foreground text-background hover:bg-foreground/90":"bg-muted/60 text-muted-foreground/40 cursor-default"),children:S.jsx(cC,{size:16,strokeWidth:2.5})})})]})]}),S.jsxs("div",{className:"flex items-center justify-between gap-4 px-2.5 pt-2 pb-1 text-[11px] text-muted-foreground/70",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsxs("span",{className:"inline-flex items-center gap-1",children:[S.jsx("kbd",{className:"font-mono",children:"/"})," commands"]}),S.jsxs("span",{className:"inline-flex items-center gap-1",children:[S.jsx(PC,{size:11}),"thinking: ",d]}),s&&S.jsx(wD,{gw:t,sessionKey:u,currentModel:s,onModelChanged:c,children:S.jsxs("button",{type:"button",className:"inline-flex items-center gap-1 font-mono truncate max-w-[40ch] hover:text-foreground transition-colors cursor-pointer",title:"Switch model",children:[S.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-muted-foreground/60"}),s]})})]}),S.jsxs("span",{className:"hidden sm:inline",children:[S.jsx("kbd",{className:"font-mono",children:"Enter"})," send ·"," ",S.jsx("kbd",{className:"font-mono",children:"Shift+Enter"})," new line"]})]})]})})]})}function AD(t){const l=[];let r=[];for(const a of t){if(a.role==="action"){r.push(a);continue}r.length&&(l.push({kind:"actions",actions:r}),r=[]),l.push({kind:"msg",msg:a})}return r.length&&l.push({kind:"actions",actions:r}),l}function Wx({msg:t}){if(t.role==="system")return S.jsx("div",{className:"self-start max-w-[85%] bg-muted/50 italic rounded-lg px-3 py-2 text-sm text-muted-foreground",children:t.content});if(t.role==="assistant"&&!t.content&&t.thinking)return S.jsx("div",{className:"self-start max-w-[85%]",children:S.jsx(Kx,{content:"",thinking:t.thinking})});const l=t.role==="user";return S.jsx("div",{className:$e("text-sm",l?"self-end max-w-[80%] bg-muted rounded-2xl px-4 py-2 text-foreground":"self-start max-w-full w-full bg-transparent text-foreground",t.optimistic&&"opacity-60",t.errorType&&"border border-destructive text-destructive bg-destructive/5 rounded-2xl px-4 py-2"),children:t.role==="assistant"?S.jsx(Kx,{content:t.content,thinking:t.thinking,streaming:t.streaming}):S.jsx("div",{className:"whitespace-pre-wrap break-words",children:t.content||(t.streaming?"…":"")})})}function TD({detected:t,onConnect:l,onUseSettings:r}){const a=t.hasToken&&t.token!==null;return S.jsx("main",{className:"flex-1 flex items-center justify-center p-8",children:S.jsxs("div",{className:"w-full max-w-xl rounded-xl border bg-card text-card-foreground p-6 flex flex-col gap-4 shadow-sm",children:[S.jsx("h2",{className:"text-base font-medium",children:"Found a local OpenClaw gateway"}),S.jsxs("dl",{className:"grid grid-cols-[120px_1fr] gap-y-2 gap-x-4 text-sm",children:[S.jsx("dt",{className:"text-muted-foreground",children:"Gateway URL"}),S.jsx("dd",{children:S.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted",children:t.url})}),S.jsx("dt",{className:"text-muted-foreground",children:"Token source"}),S.jsx("dd",{children:S.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-xs break-all",children:t.source})}),S.jsx("dt",{className:"text-muted-foreground",children:"Token"}),S.jsx("dd",{children:t.hasToken?S.jsx("span",{className:"text-emerald-500",children:"read from your OpenClaw config"}):S.jsx("span",{className:"text-amber-500",children:"no token found in config — enter it manually"})})]}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Nothing is sent anywhere. Click Connect to start the gateway WebSocket from this browser tab. The token stays in memory unless you explicitly save it in settings."}),S.jsxs("div",{className:"flex justify-end gap-2",children:[S.jsx("button",{type:"button",onClick:r,className:"px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80 transition-colors",children:"Enter manually"}),S.jsx("button",{type:"button",disabled:!a,onClick:()=>t.token&&l(t.url,t.token),className:"px-3 py-1.5 rounded-md text-sm bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Connect"})]})]})})}function OD({gw:t,activeKey:l,onSelect:r,onNew:a,onOpenSection:u,connState:s,sessionsBust:c}){const[d,p]=C.useState(!1),[m,y]=C.useState([]),[g,v]=C.useState({});return C.useEffect(()=>{let x=!1;return t.request("sessions.list",{}).then(E=>{if(x)return;const A=Array.isArray(E==null?void 0:E.sessions)?E.sessions:[];A.some(N=>N.key===l)?y(A):y([{key:l},...A])}).catch(()=>{x||y([{key:l}])}),()=>{x=!0}},[t,l,c]),C.useEffect(()=>{const x=m.filter(A=>!h0(A)&&!g[A.key]);if(x.length===0)return;let E=!1;return Promise.all(x.map(async A=>{try{const N=await t.request("chat.history",{sessionKey:A.key}),T=Array.isArray(N==null?void 0:N.messages)?N.messages:[];for(const z of T){const D=z;if(D.role==="user"){const L=dr(D.content).trim();if(L)return[A.key,L]}}return[A.key,""]}catch{return[A.key,""]}})).then(A=>{if(E)return;const N={};for(const[T,z]of A)z&&(N[T]=m0(z,8));Object.keys(N).length>0&&v(T=>({...T,...N}))}),()=>{E=!0}},[t,m,g]),S.jsxs("aside",{className:"w-64 shrink-0 border-r flex flex-col",children:[S.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[S.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:"Sessions"}),S.jsx("button",{type:"button",onClick:a,title:"New session",className:"h-6 w-6 inline-flex items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:S.jsx(YC,{size:14})})]}),S.jsx("nav",{className:"flex-1 overflow-y-auto no-scrollbar px-2 pb-2 flex flex-col gap-0.5",children:m.map(x=>S.jsx(_D,{session:x,fallbackTitle:g[x.key],active:x.key===l,onClick:()=>r(x.key)},x.key))}),S.jsxs("div",{className:"border-t px-3 py-2.5 flex items-center justify-between gap-2",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsxs(fh,{open:d,onOpenChange:p,children:[S.jsx(dh,{asChild:!0,children:S.jsx("button",{type:"button",title:"Settings",className:"h-7 w-7 inline-flex items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:S.jsx(FC,{size:14})})}),S.jsx(Qu,{align:"start",side:"top",className:"w-56 p-1",children:zD.map(x=>S.jsxs("button",{type:"button",onClick:()=>{u(x.id),p(!1)},className:"w-full text-left flex items-center gap-2 px-2.5 py-1.5 rounded-md text-sm text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:[x.icon,x.label]},x.id))})]}),S.jsx(ND,{})]}),S.jsx(RD,{state:s,onClick:()=>u("connection")})]})]})}function ND(){const[t,l]=pv(),r=["system","light","dark"],a={system:S.jsx(Bd,{size:14}),light:S.jsx(dv,{size:14}),dark:S.jsx(cv,{size:14})},u={system:"Theme: system (click for light)",light:"Theme: light (click for dark)",dark:"Theme: dark (click for system)"};function s(){const c=r[(r.indexOf(t)+1)%r.length];l(c)}return S.jsx("button",{type:"button",onClick:s,title:u[t],"aria-label":u[t],className:"h-7 w-7 inline-flex items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:a[t]})}const zD=[{id:"agents",label:"Agents",icon:S.jsx(hC,{size:14})},{id:"providers",label:"Model Providers",icon:S.jsx(NC,{size:14})},{id:"appearance",label:"Appearance",icon:S.jsx(Bd,{size:14})},{id:"about",label:"About",icon:S.jsx(TC,{size:14})}];function RD({state:t,onClick:l}){const r={idle:"Disconnected",connecting:"Connecting…",connected:"Connected",error:"Failed"},a={idle:"text-muted-foreground border-border bg-background",connecting:"text-amber-600 dark:text-amber-400 border-amber-500/40 bg-amber-50 dark:bg-amber-950/30",connected:"text-emerald-600 dark:text-emerald-400 border-emerald-500/40 bg-emerald-50 dark:bg-emerald-950/30",error:"text-red-600 dark:text-red-400 border-red-300 dark:border-red-500/40 bg-red-50 dark:bg-red-950/30"},u={idle:"bg-muted-foreground/60",connecting:"bg-amber-500 animate-pulse",connected:"bg-emerald-500",error:"bg-red-500"};return S.jsxs("button",{type:"button",onClick:l,title:"Open connection settings",className:$e("inline-flex items-center gap-1.5 px-2 py-1 rounded-full text-[11px] border transition-colors hover:opacity-80",a[t]),children:[S.jsx("span",{className:$e("inline-block h-1.5 w-1.5 rounded-full",u[t])}),r[t]]})}function _D({session:t,fallbackTitle:l,active:r,onClick:a}){return S.jsxs("button",{type:"button",onClick:a,className:$e("w-full text-left flex items-center justify-between gap-2 px-3 py-2 rounded-md text-sm transition-colors",r?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[S.jsx("span",{className:"truncate",children:DD(t,l)}),S.jsx("span",{className:"shrink-0 text-[11px] text-muted-foreground/70",children:MD(t.updatedAt??void 0)})]})}function h0(t){var l,r,a;return((l=t.derivedTitle)==null?void 0:l.trim())||((r=t.displayName)==null?void 0:r.trim())||((a=t.label)==null?void 0:a.trim())||m0(t.lastMessagePreview)||""}function DD(t,l){if(t.key==="agent:main:main")return"Main";const r=h0(t)||(l==null?void 0:l.trim())||"";if(r)return eb(r,48);const a=t.key.split(":"),u=a[a.length-1]||t.key;return eb(u,12)}function m0(t,l=8){return t?t.trim().split(/\s+/).slice(0,l).join(" "):""}function eb(t,l){return t.length>l?t.slice(0,l-1)+"…":t}function MD(t){if(!t)return"";const l=Math.max(0,Date.now()-t),r=Math.floor(l/6e4);if(r<1)return"now";if(r<60)return`${r}m`;const a=Math.floor(r/60);return a<24?`${a}h`:`${Math.floor(a/24)}d`}const xd="/chat/";function tb(t){if(!t.startsWith(xd))return null;const l=t.slice(xd.length);try{return decodeURIComponent(l)}catch{return null}}function p0(t){return xd+encodeURIComponent(t)}function jD(t){const l=p0(t);window.location.pathname!==l&&window.history.pushState({sessionKey:t},"",l)}function LD(t){const l=p0(t);window.location.pathname!==l&&window.history.replaceState({sessionKey:t},"",l)}const Kf="agent:main:main";function UD(){const[t,l]=C.useState(null),[r,a]=C.useState(null),[u,s]=C.useState({kind:"idle"}),[c,d]=C.useState(null),[p,m]=C.useState(null),[y,g]=C.useState(!1),[v,x]=C.useState(()=>tb(window.location.pathname)??Kf),[E,A]=C.useState(0),N=C.useRef(null);C.useEffect(()=>{const L=JE();if(l(L.gatewayUrl),a(L.token),L.gatewayUrl&&L.token){g(!0);return}nC().then(I=>{I&&I.detected&&I.hasToken&&I.token?m(I):d("connection"),g(!0)})},[]),C.useEffect(()=>{if(!t||!r||u.kind==="connecting"||u.kind==="connected")return;const L=new KE;return N.current=L,s({kind:"connecting"}),L.connect(t,r).then(()=>{L.enableAutoReconnect(),s({kind:"connected"})}).catch(I=>{const M=I instanceof Error?I.message:String(I);s({kind:"error",message:M,pairingRequired:I instanceof iv})}),()=>{L.disconnect(),N.current=null}},[t,r]),C.useEffect(()=>{jD(v)},[v]),C.useEffect(()=>{const L=()=>{const I=tb(window.location.pathname);x(I??Kf)};return window.addEventListener("popstate",L),LD(v),()=>window.removeEventListener("popstate",L)},[]);function T(L,I,M){WE(L),M?eC(I):tC(),l(L),a(I),d(null),s({kind:"idle"})}function z(){const L=crypto.randomUUID().slice(0,8);x(`agent:main:scratch:${L}`)}const D=!t||!r||u.kind!=="connected";return c==="connection"&&D?S.jsxs("div",{className:"h-full flex flex-col mx-auto max-w-2xl p-8",children:[S.jsx("h1",{className:"text-base font-medium mb-4",children:"Connect to a gateway"}),S.jsx(Xv,{initialUrl:t??"",initialToken:r??"",onSave:T,onCancel:()=>d(null)})]}):p&&!t&&!r?S.jsx(TD,{detected:p,onConnect:(L,I)=>{m(null),l(L),a(I),s({kind:"idle"})},onUseSettings:()=>{m(null),d("connection")}}):y?u.kind!=="connected"||!N.current?S.jsx(BD,{state:u,onOpenSettings:()=>d("connection")}):S.jsxs("div",{className:"h-full flex",children:[S.jsx(OD,{gw:N.current,activeKey:v,onSelect:x,onNew:z,onOpenSection:d,connState:u.kind,sessionsBust:E}),S.jsx(CD,{gw:N.current,sessionKey:v,onSessionsChanged:()=>A(L=>L+1),onSessionDeleted:()=>x(Kf)}),S.jsx(sT,{open:c==="connection",onOpenChange:L=>d(L?"connection":null),initialUrl:t??"",initialToken:r??"",onSave:T}),S.jsx(cT,{open:c==="agents",onOpenChange:L=>d(L?"agents":null),gw:N.current}),S.jsx(fT,{open:c==="providers",onOpenChange:L=>d(L?"providers":null),gw:N.current}),S.jsx(dT,{open:c==="appearance",onOpenChange:L=>d(L?"appearance":null)}),S.jsx(hT,{open:c==="about",onOpenChange:L=>d(L?"about":null)})]}):S.jsx(xu,{title:"Looking for a local gateway…"})}function xu({title:t,children:l}){return S.jsxs("main",{className:"h-full flex flex-col items-center justify-center gap-3 p-10 text-center",children:[S.jsx("h2",{className:"text-base font-medium",children:t}),l]})}function BD({state:t,onOpenSettings:l}){return t.kind==="idle"?S.jsxs(xu,{title:"No gateway configured",children:[S.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Set the gateway URL and shared-secret token to start chatting."}),S.jsx("button",{type:"button",onClick:l,className:"px-3 py-1.5 rounded-md text-sm bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"Open settings"})]}):t.kind==="connecting"?S.jsx(xu,{title:"Connecting…"}):t.kind==="error"?S.jsxs(xu,{title:"Couldn’t connect",children:[S.jsx("pre",{className:"max-w-md text-left text-xs text-destructive bg-muted p-3 rounded-md whitespace-pre-wrap break-all",children:t.message}),t.pairingRequired&&S.jsxs("p",{className:"text-sm text-muted-foreground max-w-md",children:["This browser hasn’t been paired with the gateway. On the gateway host run ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"openclaw devices list"})," ","then"," ",S.jsx("code",{className:"px-1 bg-muted rounded",children:"openclaw devices approve <id>"}),"."]}),S.jsx("button",{type:"button",onClick:l,className:"px-3 py-1.5 rounded-md text-sm bg-secondary text-secondary-foreground hover:bg-secondary/80 transition-colors",children:"Edit settings"})]}):null}const g0=document.getElementById("root");if(!g0)throw new Error("#root not found");Gw.createRoot(g0).render(S.jsx(C.StrictMode,{children:S.jsx(FE,{delayDuration:300,children:S.jsx(UD,{})})}));