@puukis/cli 0.1.9 → 0.1.11

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,78 @@
1
+ (function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const c of h.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&u(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(o){if(o.ep)return;o.ep=!0;const h=r(o);fetch(o.href,h)}})();function ig(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pc={exports:{}},fr={};/**
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 $m;function k0(){if($m)return fr;$m=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(u,o,h){var c=null;if(h!==void 0&&(c=""+h),o.key!==void 0&&(c=""+o.key),"key"in o){h={};for(var m in o)m!=="key"&&(h[m]=o[m])}else h=o;return o=h.ref,{$$typeof:n,type:u,key:c,ref:o!==void 0?o:null,props:h}}return fr.Fragment=i,fr.jsx=r,fr.jsxs=r,fr}var Pm;function E0(){return Pm||(Pm=1,pc.exports=k0()),pc.exports}var v=E0(),gc={exports:{}},Ae={};/**
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 Wm;function C0(){if(Wm)return Ae;Wm=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),k=Symbol.iterator;function x(_){return _===null||typeof _!="object"?null:(_=k&&_[k]||_["@@iterator"],typeof _=="function"?_:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,Y={};function N(_,Q,E){this.props=_,this.context=Q,this.refs=Y,this.updater=E||w}N.prototype.isReactComponent={},N.prototype.setState=function(_,Q){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,_,Q,"setState")},N.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function P(){}P.prototype=N.prototype;function X(_,Q,E){this.props=_,this.context=Q,this.refs=Y,this.updater=E||w}var se=X.prototype=new P;se.constructor=X,O(se,N.prototype),se.isPureReactComponent=!0;var ce=Array.isArray;function j(){}var ne={H:null,A:null,T:null,S:null},pe=Object.prototype.hasOwnProperty;function xe(_,Q,E){var re=E.ref;return{$$typeof:n,type:_,key:Q,ref:re!==void 0?re:null,props:E}}function H(_,Q){return xe(_.type,Q,_.props)}function ue(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function G(_){var Q={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(E){return Q[E]})}var we=/\/+/g;function fe(_,Q){return typeof _=="object"&&_!==null&&_.key!=null?G(""+_.key):Q.toString(36)}function te(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(j,j):(_.status="pending",_.then(function(Q){_.status==="pending"&&(_.status="fulfilled",_.value=Q)},function(Q){_.status==="pending"&&(_.status="rejected",_.reason=Q)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function B(_,Q,E,re,F){var le=typeof _;(le==="undefined"||le==="boolean")&&(_=null);var ve=!1;if(_===null)ve=!0;else switch(le){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(_.$$typeof){case n:case i:ve=!0;break;case b:return ve=_._init,B(ve(_._payload),Q,E,re,F)}}if(ve)return F=F(_),ve=re===""?"."+fe(_,0):re,ce(F)?(E="",ve!=null&&(E=ve.replace(we,"$&/")+"/"),B(F,Q,E,"",function(dt){return dt})):F!=null&&(ue(F)&&(F=H(F,E+(F.key==null||_&&_.key===F.key?"":(""+F.key).replace(we,"$&/")+"/")+ve)),Q.push(F)),1;ve=0;var Ge=re===""?".":re+":";if(ce(_))for(var je=0;je<_.length;je++)re=_[je],le=Ge+fe(re,je),ve+=B(re,Q,E,le,F);else if(je=x(_),typeof je=="function")for(_=je.call(_),je=0;!(re=_.next()).done;)re=re.value,le=Ge+fe(re,je++),ve+=B(re,Q,E,le,F);else if(le==="object"){if(typeof _.then=="function")return B(te(_),Q,E,re,F);throw Q=String(_),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function W(_,Q,E){if(_==null)return _;var re=[],F=0;return B(_,re,"","",function(le){return Q.call(E,le,F++)}),re}function he(_){if(_._status===-1){var Q=_._result;Q=Q(),Q.then(function(E){(_._status===0||_._status===-1)&&(_._status=1,_._result=E)},function(E){(_._status===0||_._status===-1)&&(_._status=2,_._result=E)}),_._status===-1&&(_._status=0,_._result=Q)}if(_._status===1)return _._result.default;throw _._result}var Te=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},T={map:W,forEach:function(_,Q,E){W(_,function(){Q.apply(this,arguments)},E)},count:function(_){var Q=0;return W(_,function(){Q++}),Q},toArray:function(_){return W(_,function(Q){return Q})||[]},only:function(_){if(!ue(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ae.Activity=y,Ae.Children=T,Ae.Component=N,Ae.Fragment=r,Ae.Profiler=o,Ae.PureComponent=X,Ae.StrictMode=u,Ae.Suspense=p,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(_){return ne.H.useMemoCache(_)}},Ae.cache=function(_){return function(){return _.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(_,Q,E){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var re=O({},_.props),F=_.key;if(Q!=null)for(le in Q.key!==void 0&&(F=""+Q.key),Q)!pe.call(Q,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&Q.ref===void 0||(re[le]=Q[le]);var le=arguments.length-2;if(le===1)re.children=E;else if(1<le){for(var ve=Array(le),Ge=0;Ge<le;Ge++)ve[Ge]=arguments[Ge+2];re.children=ve}return xe(_.type,F,re)},Ae.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:h,_context:_},_},Ae.createElement=function(_,Q,E){var re,F={},le=null;if(Q!=null)for(re in Q.key!==void 0&&(le=""+Q.key),Q)pe.call(Q,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(F[re]=Q[re]);var ve=arguments.length-2;if(ve===1)F.children=E;else if(1<ve){for(var Ge=Array(ve),je=0;je<ve;je++)Ge[je]=arguments[je+2];F.children=Ge}if(_&&_.defaultProps)for(re in ve=_.defaultProps,ve)F[re]===void 0&&(F[re]=ve[re]);return xe(_,le,F)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(_){return{$$typeof:m,render:_}},Ae.isValidElement=ue,Ae.lazy=function(_){return{$$typeof:b,_payload:{_status:-1,_result:_},_init:he}},Ae.memo=function(_,Q){return{$$typeof:d,type:_,compare:Q===void 0?null:Q}},Ae.startTransition=function(_){var Q=ne.T,E={};ne.T=E;try{var re=_(),F=ne.S;F!==null&&F(E,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(j,Te)}catch(le){Te(le)}finally{Q!==null&&E.types!==null&&(Q.types=E.types),ne.T=Q}},Ae.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},Ae.use=function(_){return ne.H.use(_)},Ae.useActionState=function(_,Q,E){return ne.H.useActionState(_,Q,E)},Ae.useCallback=function(_,Q){return ne.H.useCallback(_,Q)},Ae.useContext=function(_){return ne.H.useContext(_)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(_,Q){return ne.H.useDeferredValue(_,Q)},Ae.useEffect=function(_,Q){return ne.H.useEffect(_,Q)},Ae.useEffectEvent=function(_){return ne.H.useEffectEvent(_)},Ae.useId=function(){return ne.H.useId()},Ae.useImperativeHandle=function(_,Q,E){return ne.H.useImperativeHandle(_,Q,E)},Ae.useInsertionEffect=function(_,Q){return ne.H.useInsertionEffect(_,Q)},Ae.useLayoutEffect=function(_,Q){return ne.H.useLayoutEffect(_,Q)},Ae.useMemo=function(_,Q){return ne.H.useMemo(_,Q)},Ae.useOptimistic=function(_,Q){return ne.H.useOptimistic(_,Q)},Ae.useReducer=function(_,Q,E){return ne.H.useReducer(_,Q,E)},Ae.useRef=function(_){return ne.H.useRef(_)},Ae.useState=function(_){return ne.H.useState(_)},Ae.useSyncExternalStore=function(_,Q,E){return ne.H.useSyncExternalStore(_,Q,E)},Ae.useTransition=function(){return ne.H.useTransition()},Ae.version="19.2.4",Ae}var ep;function lf(){return ep||(ep=1,gc.exports=C0()),gc.exports}var V=lf(),yc={exports:{}},hr={},bc={exports:{}},vc={};/**
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 tp;function T0(){return tp||(tp=1,(function(n){function i(B,W){var he=B.length;B.push(W);e:for(;0<he;){var Te=he-1>>>1,T=B[Te];if(0<o(T,W))B[Te]=W,B[he]=T,he=Te;else break e}}function r(B){return B.length===0?null:B[0]}function u(B){if(B.length===0)return null;var W=B[0],he=B.pop();if(he!==W){B[0]=he;e:for(var Te=0,T=B.length,_=T>>>1;Te<_;){var Q=2*(Te+1)-1,E=B[Q],re=Q+1,F=B[re];if(0>o(E,he))re<T&&0>o(F,E)?(B[Te]=F,B[re]=he,Te=re):(B[Te]=E,B[Q]=he,Te=Q);else if(re<T&&0>o(F,he))B[Te]=F,B[re]=he,Te=re;else break e}}return W}function o(B,W){var he=B.sortIndex-W.sortIndex;return he!==0?he:B.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var c=Date,m=c.now();n.unstable_now=function(){return c.now()-m}}var p=[],d=[],b=1,y=null,k=3,x=!1,w=!1,O=!1,Y=!1,N=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function se(B){for(var W=r(d);W!==null;){if(W.callback===null)u(d);else if(W.startTime<=B)u(d),W.sortIndex=W.expirationTime,i(p,W);else break;W=r(d)}}function ce(B){if(O=!1,se(B),!w)if(r(p)!==null)w=!0,j||(j=!0,G());else{var W=r(d);W!==null&&te(ce,W.startTime-B)}}var j=!1,ne=-1,pe=5,xe=-1;function H(){return Y?!0:!(n.unstable_now()-xe<pe)}function ue(){if(Y=!1,j){var B=n.unstable_now();xe=B;var W=!0;try{e:{w=!1,O&&(O=!1,P(ne),ne=-1),x=!0;var he=k;try{t:{for(se(B),y=r(p);y!==null&&!(y.expirationTime>B&&H());){var Te=y.callback;if(typeof Te=="function"){y.callback=null,k=y.priorityLevel;var T=Te(y.expirationTime<=B);if(B=n.unstable_now(),typeof T=="function"){y.callback=T,se(B),W=!0;break t}y===r(p)&&u(p),se(B)}else u(p);y=r(p)}if(y!==null)W=!0;else{var _=r(d);_!==null&&te(ce,_.startTime-B),W=!1}}break e}finally{y=null,k=he,x=!1}W=void 0}}finally{W?G():j=!1}}}var G;if(typeof X=="function")G=function(){X(ue)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,fe=we.port2;we.port1.onmessage=ue,G=function(){fe.postMessage(null)}}else G=function(){N(ue,0)};function te(B,W){ne=N(function(){B(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pe=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_next=function(B){switch(k){case 1:case 2:case 3:var W=3;break;default:W=k}var he=k;k=W;try{return B()}finally{k=he}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var he=k;k=B;try{return W()}finally{k=he}},n.unstable_scheduleCallback=function(B,W,he){var Te=n.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?Te+he:Te):he=Te,B){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=he+T,B={id:b++,callback:W,priorityLevel:B,startTime:he,expirationTime:T,sortIndex:-1},he>Te?(B.sortIndex=he,i(d,B),r(p)===null&&B===r(d)&&(O?(P(ne),ne=-1):O=!0,te(ce,he-Te))):(B.sortIndex=T,i(p,B),w||x||(w=!0,j||(j=!0,G()))),B},n.unstable_shouldYield=H,n.unstable_wrapCallback=function(B){var W=k;return function(){var he=k;k=W;try{return B.apply(this,arguments)}finally{k=he}}}})(vc)),vc}var np;function A0(){return np||(np=1,bc.exports=T0()),bc.exports}var xc={exports:{}},Ut={};/**
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 lp;function w0(){if(lp)return Ut;lp=1;var n=lf();function i(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(p,d,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:d,implementation:b}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Ut.createPortal=function(p,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return h(p,d,null,b)},Ut.flushSync=function(p){var d=c.T,b=u.p;try{if(c.T=null,u.p=2,p)return p()}finally{c.T=d,u.p=b,u.d.f()}},Ut.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,u.d.C(p,d))},Ut.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},Ut.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin),k=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?u.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:k,fetchPriority:x}):b==="script"&&u.d.X(p,{crossOrigin:y,integrity:k,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ut.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=m(d.as,d.crossOrigin);u.d.M(p,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&u.d.M(p)},Ut.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,y=m(b,d.crossOrigin);u.d.L(p,b,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Ut.preloadModule=function(p,d){if(typeof p=="string")if(d){var b=m(d.as,d.crossOrigin);u.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else u.d.m(p)},Ut.requestFormReset=function(p){u.d.r(p)},Ut.unstable_batchedUpdates=function(p,d){return p(d)},Ut.useFormState=function(p,d,b){return c.H.useFormState(p,d,b)},Ut.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ut.version="19.2.4",Ut}var ip;function _0(){if(ip)return xc.exports;ip=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),xc.exports=w0(),xc.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 ap;function z0(){if(ap)return hr;ap=1;var n=A0(),i=lf(),r=_0();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(u(188))}function d(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,a=t;;){var s=l.return;if(s===null)break;var f=s.alternate;if(f===null){if(a=s.return,a!==null){l=a;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===l)return p(s),e;if(f===a)return p(s),t;f=f.sibling}throw Error(u(188))}if(l.return!==a.return)l=s,a=f;else{for(var g=!1,S=s.child;S;){if(S===l){g=!0,l=s,a=f;break}if(S===a){g=!0,a=s,l=f;break}S=S.sibling}if(!g){for(S=f.child;S;){if(S===l){g=!0,l=f,a=s;break}if(S===a){g=!0,a=f,l=s;break}S=S.sibling}if(!g)throw Error(u(189))}}if(l.alternate!==a)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,k=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),X=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),pe=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case N:return"Profiler";case Y:return"StrictMode";case ce:return"Suspense";case j:return"SuspenseList";case xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case X:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case pe:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var te=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Te=[],T=-1;function _(e){return{current:e}}function Q(e){0>T||(e.current=Te[T],Te[T]=null,T--)}function E(e,t){T++,Te[T]=e.current,e.current=t}var re=_(null),F=_(null),le=_(null),ve=_(null);function Ge(e,t){switch(E(le,t),E(F,e),E(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(re),E(re,e)}function je(){Q(re),Q(F),Q(le)}function dt(e){e.memoizedState!==null&&E(ve,e);var t=re.current,l=Sm(t,e.type);t!==l&&(E(F,e),E(re,l))}function wt(e){F.current===e&&(Q(re),Q(F)),ve.current===e&&(Q(ve),ur._currentValue=he)}var vn,xn;function _t(e){if(vn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);vn=t&&t[1]||"",xn=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+vn+e+xn}var Qt=!1;function ln(e,t){if(!e||Qt)return"";Qt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(q){var U=q}Reflect.construct(e,[],$)}else{try{$.call()}catch(q){U=q}e.call($.prototype)}}else{try{throw Error()}catch(q){U=q}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(q){if(q&&U&&typeof q.stack=="string")return[q.stack,U.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=a.DetermineComponentFrameRoot(),g=f[0],S=f[1];if(g&&S){var A=g.split(`
44
+ `),L=S.split(`
45
+ `);for(s=a=0;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(a===A.length||s===L.length)for(a=A.length-1,s=L.length-1;1<=a&&0<=s&&A[a]!==L[s];)s--;for(;1<=a&&0<=s;a--,s--)if(A[a]!==L[s]){if(a!==1||s!==1)do if(a--,s--,0>s||A[a]!==L[s]){var I=`
46
+ `+A[a].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=a&&0<=s);break}}}finally{Qt=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?_t(l):""}function Ci(e,t){switch(e.tag){case 26:case 27:case 5:return _t(e.type);case 16:return _t("Lazy");case 13:return e.child!==t&&t!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return ln(e.type,!1);case 11:return ln(e.type.render,!1);case 1:return ln(e.type,!0);case 31:return _t("Activity");default:return""}}function Ti(e){try{var t="",l=null;do t+=Ci(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var at=Object.prototype.hasOwnProperty,In=n.unstable_scheduleCallback,It=n.unstable_cancelCallback,$l=n.unstable_shouldYield,hl=n.unstable_requestPaint,Ct=n.unstable_now,dl=n.unstable_getCurrentPriorityLevel,Z=n.unstable_ImmediatePriority,ie=n.unstable_UserBlockingPriority,ke=n.unstable_NormalPriority,_e=n.unstable_LowPriority,Ye=n.unstable_IdlePriority,Rt=n.log,Yt=n.unstable_setDisableYieldValue,yt=null,tt=null;function Bt(e){if(typeof Rt=="function"&&Yt(e),tt&&typeof tt.setStrictMode=="function")try{tt.setStrictMode(yt,e)}catch{}}var Ze=Math.clz32?Math.clz32:ss,Ln=Math.log,an=Math.LN2;function ss(e){return e>>>=0,e===0?32:31-(Ln(e)/an|0)|0}var Ai=256,wi=262144,Pl=4194304;function Zn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&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 Wl(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var s=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=a&134217727;return S!==0?(a=S&~f,a!==0?s=Zn(a):(g&=S,g!==0?s=Zn(g):l||(l=S&~e,l!==0&&(s=Zn(l))))):(S=a&~f,S!==0?s=Zn(S):g!==0?s=Zn(g):l||(l=a&~e,l!==0&&(s=Zn(l)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:s}function ei(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ya(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ar(){var e=Pl;return Pl<<=1,(Pl&62914560)===0&&(Pl=4194304),e}function ba(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Vt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wr(e,t,l,a,s,f){var g=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,L=e.hiddenUpdates;for(l=g&~l;0<l;){var I=31-Ze(l),$=1<<I;S[I]=0,A[I]=-1;var U=L[I];if(U!==null)for(L[I]=null,I=0;I<U.length;I++){var q=U[I];q!==null&&(q.lane&=-536870913)}l&=~$}a!==0&&rn(e,a,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~t))}function rn(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ze(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ml(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ze(l),s=1<<a;s&t|e[a]&t&&(e[a]|=t),l&=~s}}function pl(e,t){var l=t&-t;return l=(l&42)!==0?1:va(l),(l&(e.suspendedLanes|t))!==0?0:l}function va(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 gl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _i(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Xm(e.type))}function $e(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var Un=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Un,Lt="__reactProps$"+Un,Me="__reactContainer$"+Un,yl="__reactEvents$"+Un,Nn="__reactListeners$"+Un,os="__reactHandles$"+Un,bl="__reactResources$"+Un,un="__reactMarker$"+Un;function Dn(e){delete e[Tt],delete e[Lt],delete e[yl],delete e[Nn],delete e[os]}function sn(e){var t=e[Tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Me]||l[Tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=_m(e);e!==null;){if(l=e[Tt])return l;e=_m(e)}return t}e=l,l=e.parentNode}return null}function vl(e){if(e=e[Tt]||e[Me]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function be(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function ge(e){var t=e[bl];return t||(t=e[bl]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[un]=!0}var _r=new Set,zi={};function Hn(e,t){xl(e,t),xl(e+"Capture",t)}function xl(e,t){for(zi[e]=t,e=0;e<t.length;e++)_r.add(t[e])}var cs=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]*$"),zr={},Nr={};function fs(e){return at.call(Nr,e)?!0:at.call(zr,e)?!1:cs.test(e)?Nr[e]=!0:(zr[e]=!0,!1)}function Ni(e,t,l){if(fs(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Di(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function On(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fn(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kl(e){if(!e._valueTracker){var t=Sl(e)?"checked":"value";e._valueTracker=Fn(e,t,""+e[t])}}function xa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Sl(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function El(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 hs=/[\n"\\]/g;function Ft(e){return e.replace(hs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sa(e,t,l,a,s,f,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?ti(e,g,Zt(t)):l!=null?ti(e,g,Zt(l)):a!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Zt(S):e.removeAttribute("name")}function ka(e,t,l,a,s,f,g,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){kl(e);return}l=l!=null?""+Zt(l):"",t=t!=null?""+Zt(t):l,S||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=S?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),kl(e)}function ti(e,t,l){t==="number"&&El(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Cl(e,t,l,a){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Zt(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Dr(e,t,l){if(t!=null&&(t=""+Zt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Zt(l):""}function Or(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(te(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Zt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),kl(e)}function Tl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ds=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 jr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||ds.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Mr(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&l[s]!==a&&jr(e,s,a)}else for(var f in t)t.hasOwnProperty(f)&&jr(e,f,t[f])}function Ea(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 ms=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"]]),ps=/^[\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 Oi(e){return ps.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bt(){}var Ca=null;function Al(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ni=null,Kn=null;function Rr(e){var t=vl(e);if(t&&(e=t.stateNode)){var l=e[Lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sa(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ft(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var s=a[Lt]||null;if(!s)throw Error(u(90));Sa(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&xa(a)}break e;case"textarea":Dr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Cl(e,!!l.multiple,t,!1)}}}var Ta=!1;function Br(e,t,l){if(Ta)return e(t,l);Ta=!0;try{var a=e(t);return a}finally{if(Ta=!1,(ni!==null||Kn!==null)&&(xu(),ni&&(t=ni,e=Kn,Kn=ni=null,Rr(t),e)))for(t=0;t<e.length;t++)Rr(e[t])}}function li(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Lt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ji=!1;if(on)try{var C={};Object.defineProperty(C,"passive",{get:function(){ji=!0}}),window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch{ji=!1}var oe=null,M=null,J=null;function ae(){if(J)return J;var e,t=M,l=t.length,a,s="value"in oe?oe.value:oe.textContent,f=s.length;for(e=0;e<l&&t[e]===s[e];e++);var g=l-e;for(a=1;a<=g&&t[l-a]===s[f-a];a++);return J=s.slice(e,1<a?1-a:void 0)}function de(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fe(){return!0}function zt(){return!1}function ot(e){function t(l,a,s,f,g){this._reactName=l,this._targetInst=s,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(l=e[S],this[S]=l?l(f):f[S]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Fe:zt,this.isPropagationStopped=zt,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fe)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fe)},persist:function(){},isPersistent:Fe}),t}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lr=ot(ii),Aa=y({},ii,{view:0,detail:0}),xy=ot(Aa),gs,ys,wa,Ur=y({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vs,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!==wa&&(wa&&e.type==="mousemove"?(gs=e.screenX-wa.screenX,ys=e.screenY-wa.screenY):ys=gs=0,wa=e),gs)},movementY:function(e){return"movementY"in e?e.movementY:ys}}),Ef=ot(Ur),Sy=y({},Ur,{dataTransfer:0}),ky=ot(Sy),Ey=y({},Aa,{relatedTarget:0}),bs=ot(Ey),Cy=y({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),Ty=ot(Cy),Ay=y({},ii,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=ot(Ay),_y=y({},ii,{data:0}),Cf=ot(_y),zy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ny={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"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Oy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dy[e])?!!t[e]:!1}function vs(){return Oy}var jy=y({},Aa,{key:function(e){if(e.key){var t=zy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=de(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ny[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vs,charCode:function(e){return e.type==="keypress"?de(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?de(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),My=ot(jy),Ry=y({},Ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=ot(Ry),By=y({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vs}),Ly=ot(By),Uy=y({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hy=ot(Uy),qy=y({},Ur,{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}),Yy=ot(qy),Vy=y({},ii,{newState:0,oldState:0}),Gy=ot(Vy),Xy=[9,13,27,32],xs=on&&"CompositionEvent"in window,_a=null;on&&"documentMode"in document&&(_a=document.documentMode);var Qy=on&&"TextEvent"in window&&!_a,Af=on&&(!xs||_a&&8<_a&&11>=_a),wf=" ",_f=!1;function zf(e,t){switch(e){case"keyup":return Xy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mi=!1;function Iy(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(_f=!0,wf);case"textInput":return e=t.data,e===wf&&_f?null:e;default:return null}}function Zy(e,t){if(Mi)return e==="compositionend"||!xs&&zf(e,t)?(e=ae(),J=M=oe=null,Mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Af&&t.locale!=="ko"?null:t.data;default:return null}}var Fy={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 Df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fy[e.type]:t==="textarea"}function Of(e,t,l,a){ni?Kn?Kn.push(a):Kn=[a]:ni=a,t=wu(t,"onChange"),0<t.length&&(l=new Lr("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var za=null,Na=null;function Ky(e){mm(e,0)}function Hr(e){var t=be(e);if(xa(t))return e}function jf(e,t){if(e==="change")return t}var Mf=!1;if(on){var Ss;if(on){var ks="oninput"in document;if(!ks){var Rf=document.createElement("div");Rf.setAttribute("oninput","return;"),ks=typeof Rf.oninput=="function"}Ss=ks}else Ss=!1;Mf=Ss&&(!document.documentMode||9<document.documentMode)}function Bf(){za&&(za.detachEvent("onpropertychange",Lf),Na=za=null)}function Lf(e){if(e.propertyName==="value"&&Hr(Na)){var t=[];Of(t,Na,e,Al(e)),Br(Ky,t)}}function Jy(e,t,l){e==="focusin"?(Bf(),za=t,Na=l,za.attachEvent("onpropertychange",Lf)):e==="focusout"&&Bf()}function $y(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hr(Na)}function Py(e,t){if(e==="click")return Hr(t)}function Wy(e,t){if(e==="input"||e==="change")return Hr(t)}function e1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:e1;function Da(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var s=l[a];if(!at.call(t,s)||!cn(e[s],t[s]))return!1}return!0}function Uf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hf(e,t){var l=Uf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Uf(l)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=El(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=El(e.document)}return t}function Es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var t1=on&&"documentMode"in document&&11>=document.documentMode,Ri=null,Cs=null,Oa=null,Ts=!1;function Vf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ts||Ri==null||Ri!==El(a)||(a=Ri,"selectionStart"in a&&Es(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Oa&&Da(Oa,a)||(Oa=a,a=wu(Cs,"onSelect"),0<a.length&&(t=new Lr("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Ri)))}function ai(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Bi={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionrun:ai("Transition","TransitionRun"),transitionstart:ai("Transition","TransitionStart"),transitioncancel:ai("Transition","TransitionCancel"),transitionend:ai("Transition","TransitionEnd")},As={},Gf={};on&&(Gf=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function ri(e){if(As[e])return As[e];if(!Bi[e])return e;var t=Bi[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Gf)return As[e]=t[l];return e}var Xf=ri("animationend"),Qf=ri("animationiteration"),If=ri("animationstart"),n1=ri("transitionrun"),l1=ri("transitionstart"),i1=ri("transitioncancel"),Zf=ri("transitionend"),Ff=new Map,ws="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(" ");ws.push("scrollEnd");function jn(e,t){Ff.set(e,t),Hn(t,[e])}var qr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Sn=[],Li=0,_s=0;function Yr(){for(var e=Li,t=_s=Li=0;t<e;){var l=Sn[t];Sn[t++]=null;var a=Sn[t];Sn[t++]=null;var s=Sn[t];Sn[t++]=null;var f=Sn[t];if(Sn[t++]=null,a!==null&&s!==null){var g=a.pending;g===null?s.next=s:(s.next=g.next,g.next=s),a.pending=s}f!==0&&Kf(l,s,f)}}function Vr(e,t,l,a){Sn[Li++]=e,Sn[Li++]=t,Sn[Li++]=l,Sn[Li++]=a,_s|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function zs(e,t,l,a){return Vr(e,t,l,a),Gr(e)}function ui(e,t){return Vr(e,null,null,t),Gr(e)}function Kf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var s=!1,f=e.return;f!==null;)f.childLanes|=l,a=f.alternate,a!==null&&(a.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(s=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,s&&t!==null&&(s=31-Ze(l),e=f.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=l|536870912),f):null}function Gr(e){if(50<er)throw er=0,Ho=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ui={};function a1(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,l,a){return new a1(e,t,l,a)}function Ns(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(e,t){var l=e.alternate;return l===null?(l=fn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Jf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xr(e,t,l,a,s,f){var g=0;if(a=e,typeof e=="function")Ns(e)&&(g=1);else if(typeof e=="string")g=c0(e,l,re.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xe:return e=fn(31,l,t,s),e.elementType=xe,e.lanes=f,e;case O:return si(l.children,s,f,t);case Y:g=8,s|=24;break;case N:return e=fn(12,l,t,s|2),e.elementType=N,e.lanes=f,e;case ce:return e=fn(13,l,t,s),e.elementType=ce,e.lanes=f,e;case j:return e=fn(19,l,t,s),e.elementType=j,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:g=10;break e;case P:g=9;break e;case se:g=11;break e;case ne:g=14;break e;case pe:g=16,a=null;break e}g=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=fn(g,l,t,s),t.elementType=e,t.type=a,t.lanes=f,t}function si(e,t,l,a){return e=fn(7,e,a,t),e.lanes=l,e}function Ds(e,t,l){return e=fn(6,e,null,t),e.lanes=l,e}function $f(e){var t=fn(18,null,null,0);return t.stateNode=e,t}function Os(e,t,l){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Pf=new WeakMap;function kn(e,t){if(typeof e=="object"&&e!==null){var l=Pf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ti(t)},Pf.set(e,t),t)}return{value:e,source:t,stack:Ti(t)}}var Hi=[],qi=0,Qr=null,ja=0,En=[],Cn=0,wl=null,qn=1,Yn="";function $n(e,t){Hi[qi++]=ja,Hi[qi++]=Qr,Qr=e,ja=t}function Wf(e,t,l){En[Cn++]=qn,En[Cn++]=Yn,En[Cn++]=wl,wl=e;var a=qn;e=Yn;var s=32-Ze(a)-1;a&=~(1<<s),l+=1;var f=32-Ze(t)+s;if(30<f){var g=s-s%5;f=(a&(1<<g)-1).toString(32),a>>=g,s-=g,qn=1<<32-Ze(t)+s|l<<s|a,Yn=f+e}else qn=1<<f|l<<s|a,Yn=e}function js(e){e.return!==null&&($n(e,1),Wf(e,1,0))}function Ms(e){for(;e===Qr;)Qr=Hi[--qi],Hi[qi]=null,ja=Hi[--qi],Hi[qi]=null;for(;e===wl;)wl=En[--Cn],En[Cn]=null,Yn=En[--Cn],En[Cn]=null,qn=En[--Cn],En[Cn]=null}function eh(e,t){En[Cn++]=qn,En[Cn++]=Yn,En[Cn++]=wl,qn=t.id,Yn=t.overflow,wl=e}var Dt=null,rt=null,qe=!1,_l=null,Tn=!1,Rs=Error(u(519));function zl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ma(kn(t,e)),Rs}function th(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Tt]=e,t[Lt]=a,l){case"dialog":Be("cancel",t),Be("close",t);break;case"iframe":case"object":case"embed":Be("load",t);break;case"video":case"audio":for(l=0;l<nr.length;l++)Be(nr[l],t);break;case"source":Be("error",t);break;case"img":case"image":case"link":Be("error",t),Be("load",t);break;case"details":Be("toggle",t);break;case"input":Be("invalid",t),ka(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Be("invalid",t);break;case"textarea":Be("invalid",t),Or(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||bm(t.textContent,l)?(a.popover!=null&&(Be("beforetoggle",t),Be("toggle",t)),a.onScroll!=null&&Be("scroll",t),a.onScrollEnd!=null&&Be("scrollend",t),a.onClick!=null&&(t.onclick=bt),t=!0):t=!1,t||zl(e,!0)}function nh(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Tn=!1;return;case 27:case 3:Tn=!0;return;default:Dt=Dt.return}}function Yi(e){if(e!==Dt)return!1;if(!qe)return nh(e),qe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ec(e.type,e.memoizedProps)),l=!l),l&&rt&&zl(e),nh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));rt=wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));rt=wm(e)}else t===27?(t=rt,Gl(e.type)?(e=ac,ac=null,rt=e):rt=t):rt=Dt?wn(e.stateNode.nextSibling):null;return!0}function oi(){rt=Dt=null,qe=!1}function Bs(){var e=_l;return e!==null&&(Pt===null?Pt=e:Pt.push.apply(Pt,e),_l=null),e}function Ma(e){_l===null?_l=[e]:_l.push(e)}var Ls=_(null),ci=null,Pn=null;function Nl(e,t,l){E(Ls,t._currentValue),t._currentValue=l}function Wn(e){e._currentValue=Ls.current,Q(Ls)}function Us(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Hs(e,t,l,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var f=s.dependencies;if(f!==null){var g=s.child;f=f.firstContext;e:for(;f!==null;){var S=f;f=s;for(var A=0;A<t.length;A++)if(S.context===t[A]){f.lanes|=l,S=f.alternate,S!==null&&(S.lanes|=l),Us(f.return,l,e),a||(g=null);break e}f=S.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(u(341));g.lanes|=l,f=g.alternate,f!==null&&(f.lanes|=l),Us(g,l,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function Vi(e,t,l,a){e=null;for(var s=t,f=!1;s!==null;){if(!f){if((s.flags&524288)!==0)f=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(u(387));if(g=g.memoizedProps,g!==null){var S=s.type;cn(s.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(s===ve.current){if(g=s.alternate,g===null)throw Error(u(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ur):e=[ur])}s=s.return}e!==null&&Hs(t,e,l,a),t.flags|=262144}function Ir(e){for(e=e.firstContext;e!==null;){if(!cn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fi(e){ci=e,Pn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return lh(ci,e)}function Zr(e,t){return ci===null&&fi(e),lh(e,t)}function lh(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pn===null){if(e===null)throw Error(u(308));Pn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pn=Pn.next=t;return l}var r1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},u1=n.unstable_scheduleCallback,s1=n.unstable_NormalPriority,vt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qs(){return{controller:new r1,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&u1(s1,function(){e.controller.abort()})}var Ba=null,Ys=0,Gi=0,Xi=null;function o1(e,t){if(Ba===null){var l=Ba=[];Ys=0,Gi=Qo(),Xi={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ys++,t.then(ih,ih),t}function ih(){if(--Ys===0&&Ba!==null){Xi!==null&&(Xi.status="fulfilled");var e=Ba;Ba=null,Gi=0,Xi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function c1(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),a}var ah=B.S;B.S=function(e,t){Vd=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&o1(e,t),ah!==null&&ah(e,t)};var hi=_(null);function Vs(){var e=hi.current;return e!==null?e:nt.pooledCache}function Fr(e,t){t===null?E(hi,hi.current):E(hi,t.pool)}function rh(){var e=Vs();return e===null?null:{parent:vt._currentValue,pool:e}}var Qi=Error(u(460)),Gs=Error(u(474)),Kr=Error(u(542)),Jr={then:function(){}};function uh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sh(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(bt,bt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ch(e),e;default:if(typeof t.status=="string")t.then(bt,bt);else{if(e=nt,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ch(e),e}throw mi=t,Qi}}function di(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(mi=l,Qi):l}}var mi=null;function oh(){if(mi===null)throw Error(u(459));var e=mi;return mi=null,e}function ch(e){if(e===Qi||e===Kr)throw Error(u(483))}var Ii=null,La=0;function $r(e){var t=La;return La+=1,Ii===null&&(Ii=[]),sh(Ii,e,t)}function Ua(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Pr(e,t){throw t.$$typeof===k?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fh(e){function t(D,z){if(e){var R=D.deletions;R===null?(D.deletions=[z],D.flags|=16):R.push(z)}}function l(D,z){if(!e)return null;for(;z!==null;)t(D,z),z=z.sibling;return null}function a(D){for(var z=new Map;D!==null;)D.key!==null?z.set(D.key,D):z.set(D.index,D),D=D.sibling;return z}function s(D,z){return D=Jn(D,z),D.index=0,D.sibling=null,D}function f(D,z,R){return D.index=R,e?(R=D.alternate,R!==null?(R=R.index,R<z?(D.flags|=67108866,z):R):(D.flags|=67108866,z)):(D.flags|=1048576,z)}function g(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,z,R,K){return z===null||z.tag!==6?(z=Ds(R,D.mode,K),z.return=D,z):(z=s(z,R),z.return=D,z)}function A(D,z,R,K){var Se=R.type;return Se===O?I(D,z,R.props.children,K,R.key):z!==null&&(z.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===pe&&di(Se)===z.type)?(z=s(z,R.props),Ua(z,R),z.return=D,z):(z=Xr(R.type,R.key,R.props,null,D.mode,K),Ua(z,R),z.return=D,z)}function L(D,z,R,K){return z===null||z.tag!==4||z.stateNode.containerInfo!==R.containerInfo||z.stateNode.implementation!==R.implementation?(z=Os(R,D.mode,K),z.return=D,z):(z=s(z,R.children||[]),z.return=D,z)}function I(D,z,R,K,Se){return z===null||z.tag!==7?(z=si(R,D.mode,K,Se),z.return=D,z):(z=s(z,R),z.return=D,z)}function $(D,z,R){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Ds(""+z,D.mode,R),z.return=D,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return R=Xr(z.type,z.key,z.props,null,D.mode,R),Ua(R,z),R.return=D,R;case w:return z=Os(z,D.mode,R),z.return=D,z;case pe:return z=di(z),$(D,z,R)}if(te(z)||G(z))return z=si(z,D.mode,R,null),z.return=D,z;if(typeof z.then=="function")return $(D,$r(z),R);if(z.$$typeof===X)return $(D,Zr(D,z),R);Pr(D,z)}return null}function U(D,z,R,K){var Se=z!==null?z.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return Se!==null?null:S(D,z,""+R,K);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case x:return R.key===Se?A(D,z,R,K):null;case w:return R.key===Se?L(D,z,R,K):null;case pe:return R=di(R),U(D,z,R,K)}if(te(R)||G(R))return Se!==null?null:I(D,z,R,K,null);if(typeof R.then=="function")return U(D,z,$r(R),K);if(R.$$typeof===X)return U(D,z,Zr(D,R),K);Pr(D,R)}return null}function q(D,z,R,K,Se){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return D=D.get(R)||null,S(z,D,""+K,Se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case x:return D=D.get(K.key===null?R:K.key)||null,A(z,D,K,Se);case w:return D=D.get(K.key===null?R:K.key)||null,L(z,D,K,Se);case pe:return K=di(K),q(D,z,R,K,Se)}if(te(K)||G(K))return D=D.get(R)||null,I(z,D,K,Se,null);if(typeof K.then=="function")return q(D,z,R,$r(K),Se);if(K.$$typeof===X)return q(D,z,R,Zr(z,K),Se);Pr(z,K)}return null}function me(D,z,R,K){for(var Se=null,Xe=null,ye=z,De=z=0,He=null;ye!==null&&De<R.length;De++){ye.index>De?(He=ye,ye=null):He=ye.sibling;var Qe=U(D,ye,R[De],K);if(Qe===null){ye===null&&(ye=He);break}e&&ye&&Qe.alternate===null&&t(D,ye),z=f(Qe,z,De),Xe===null?Se=Qe:Xe.sibling=Qe,Xe=Qe,ye=He}if(De===R.length)return l(D,ye),qe&&$n(D,De),Se;if(ye===null){for(;De<R.length;De++)ye=$(D,R[De],K),ye!==null&&(z=f(ye,z,De),Xe===null?Se=ye:Xe.sibling=ye,Xe=ye);return qe&&$n(D,De),Se}for(ye=a(ye);De<R.length;De++)He=q(ye,D,De,R[De],K),He!==null&&(e&&He.alternate!==null&&ye.delete(He.key===null?De:He.key),z=f(He,z,De),Xe===null?Se=He:Xe.sibling=He,Xe=He);return e&&ye.forEach(function(Fl){return t(D,Fl)}),qe&&$n(D,De),Se}function Ce(D,z,R,K){if(R==null)throw Error(u(151));for(var Se=null,Xe=null,ye=z,De=z=0,He=null,Qe=R.next();ye!==null&&!Qe.done;De++,Qe=R.next()){ye.index>De?(He=ye,ye=null):He=ye.sibling;var Fl=U(D,ye,Qe.value,K);if(Fl===null){ye===null&&(ye=He);break}e&&ye&&Fl.alternate===null&&t(D,ye),z=f(Fl,z,De),Xe===null?Se=Fl:Xe.sibling=Fl,Xe=Fl,ye=He}if(Qe.done)return l(D,ye),qe&&$n(D,De),Se;if(ye===null){for(;!Qe.done;De++,Qe=R.next())Qe=$(D,Qe.value,K),Qe!==null&&(z=f(Qe,z,De),Xe===null?Se=Qe:Xe.sibling=Qe,Xe=Qe);return qe&&$n(D,De),Se}for(ye=a(ye);!Qe.done;De++,Qe=R.next())Qe=q(ye,D,De,Qe.value,K),Qe!==null&&(e&&Qe.alternate!==null&&ye.delete(Qe.key===null?De:Qe.key),z=f(Qe,z,De),Xe===null?Se=Qe:Xe.sibling=Qe,Xe=Qe);return e&&ye.forEach(function(S0){return t(D,S0)}),qe&&$n(D,De),Se}function et(D,z,R,K){if(typeof R=="object"&&R!==null&&R.type===O&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case x:e:{for(var Se=R.key;z!==null;){if(z.key===Se){if(Se=R.type,Se===O){if(z.tag===7){l(D,z.sibling),K=s(z,R.props.children),K.return=D,D=K;break e}}else if(z.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===pe&&di(Se)===z.type){l(D,z.sibling),K=s(z,R.props),Ua(K,R),K.return=D,D=K;break e}l(D,z);break}else t(D,z);z=z.sibling}R.type===O?(K=si(R.props.children,D.mode,K,R.key),K.return=D,D=K):(K=Xr(R.type,R.key,R.props,null,D.mode,K),Ua(K,R),K.return=D,D=K)}return g(D);case w:e:{for(Se=R.key;z!==null;){if(z.key===Se)if(z.tag===4&&z.stateNode.containerInfo===R.containerInfo&&z.stateNode.implementation===R.implementation){l(D,z.sibling),K=s(z,R.children||[]),K.return=D,D=K;break e}else{l(D,z);break}else t(D,z);z=z.sibling}K=Os(R,D.mode,K),K.return=D,D=K}return g(D);case pe:return R=di(R),et(D,z,R,K)}if(te(R))return me(D,z,R,K);if(G(R)){if(Se=G(R),typeof Se!="function")throw Error(u(150));return R=Se.call(R),Ce(D,z,R,K)}if(typeof R.then=="function")return et(D,z,$r(R),K);if(R.$$typeof===X)return et(D,z,Zr(D,R),K);Pr(D,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,z!==null&&z.tag===6?(l(D,z.sibling),K=s(z,R),K.return=D,D=K):(l(D,z),K=Ds(R,D.mode,K),K.return=D,D=K),g(D)):l(D,z)}return function(D,z,R,K){try{La=0;var Se=et(D,z,R,K);return Ii=null,Se}catch(ye){if(ye===Qi||ye===Kr)throw ye;var Xe=fn(29,ye,null,D.mode);return Xe.lanes=K,Xe.return=D,Xe}finally{}}}var pi=fh(!0),hh=fh(!1),Dl=!1;function Xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ie&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Gr(e),Kf(e,null,l),t}return Vr(e,a,t,l),Gr(e)}function Ha(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ml(e,l)}}function Is(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var s=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var g={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?s=f=g:f=f.next=g,l=l.next}while(l!==null);f===null?s=f=t:f=f.next=t}else s=f=t;l={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Zs=!1;function qa(){if(Zs){var e=Xi;if(e!==null)throw e}}function Ya(e,t,l,a){Zs=!1;var s=e.updateQueue;Dl=!1;var f=s.firstBaseUpdate,g=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var A=S,L=A.next;A.next=null,g===null?f=L:g.next=L,g=A;var I=e.alternate;I!==null&&(I=I.updateQueue,S=I.lastBaseUpdate,S!==g&&(S===null?I.firstBaseUpdate=L:S.next=L,I.lastBaseUpdate=A))}if(f!==null){var $=s.baseState;g=0,I=L=A=null,S=f;do{var U=S.lane&-536870913,q=U!==S.lane;if(q?(Ue&U)===U:(a&U)===U){U!==0&&U===Gi&&(Zs=!0),I!==null&&(I=I.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var me=e,Ce=S;U=t;var et=l;switch(Ce.tag){case 1:if(me=Ce.payload,typeof me=="function"){$=me.call(et,$,U);break e}$=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ce.payload,U=typeof me=="function"?me.call(et,$,U):me,U==null)break e;$=y({},$,U);break e;case 2:Dl=!0}}U=S.callback,U!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[U]:q.push(U))}else q={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},I===null?(L=I=q,A=$):I=I.next=q,g|=U;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);I===null&&(A=$),s.baseState=A,s.firstBaseUpdate=L,s.lastBaseUpdate=I,f===null&&(s.shared.lanes=0),Ul|=g,e.lanes=g,e.memoizedState=$}}function dh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function mh(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)dh(l[e],t)}var Zi=_(null),Wr=_(0);function ph(e,t){e=sl,E(Wr,e),E(Zi,t),sl=e|t.baseLanes}function Fs(){E(Wr,sl),E(Zi,Zi.current)}function Ks(){sl=Wr.current,Q(Zi),Q(Wr)}var hn=_(null),An=null;function Ml(e){var t=e.alternate;E(pt,pt.current&1),E(hn,e),An===null&&(t===null||Zi.current!==null||t.memoizedState!==null)&&(An=e)}function Js(e){E(pt,pt.current),E(hn,e),An===null&&(An=e)}function gh(e){e.tag===22?(E(pt,pt.current),E(hn,e),An===null&&(An=e)):Rl()}function Rl(){E(pt,pt.current),E(hn,hn.current)}function dn(e){Q(hn),An===e&&(An=null),Q(pt)}var pt=_(0);function eu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||lc(l)||ic(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=0,ze=null,Pe=null,xt=null,tu=!1,Fi=!1,gi=!1,nu=0,Va=0,Ki=null,f1=0;function ct(){throw Error(u(321))}function $s(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!cn(e[l],t[l]))return!1;return!0}function Ps(e,t,l,a,s,f){return el=f,ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Wh:mo,gi=!1,f=l(a,s),gi=!1,Fi&&(f=bh(t,l,a,s)),yh(e),f}function yh(e){B.H=Qa;var t=Pe!==null&&Pe.next!==null;if(el=0,xt=Pe=ze=null,tu=!1,Va=0,Ki=null,t)throw Error(u(300));e===null||St||(e=e.dependencies,e!==null&&Ir(e)&&(St=!0))}function bh(e,t,l,a){ze=e;var s=0;do{if(Fi&&(Ki=null),Va=0,Fi=!1,25<=s)throw Error(u(301));if(s+=1,xt=Pe=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=ed,f=t(l,a)}while(Fi);return f}function h1(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Ga(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(ze.flags|=1024),t}function Ws(){var e=nu!==0;return nu=0,e}function eo(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function to(e){if(tu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tu=!1}el=0,xt=Pe=ze=null,Fi=!1,Va=nu=0,Ki=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?ze.memoizedState=xt=e:xt=xt.next=e,xt}function gt(){if(Pe===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=xt===null?ze.memoizedState:xt.next;if(t!==null)xt=t,Pe=e;else{if(e===null)throw ze.alternate===null?Error(u(467)):Error(u(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},xt===null?ze.memoizedState=xt=e:xt=xt.next=e}return xt}function lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ga(e){var t=Va;return Va+=1,Ki===null&&(Ki=[]),e=sh(Ki,e,t),t=ze,(xt===null?t.memoizedState:xt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Wh:mo),e}function iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ga(e);if(e.$$typeof===X)return Ot(e)}throw Error(u(438,String(e)))}function no(e){var t=null,l=ze.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ze.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=lu(),ze.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=H;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function au(e){var t=gt();return lo(t,Pe,e)}function lo(e,t,l){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var s=e.baseQueue,f=a.pending;if(f!==null){if(s!==null){var g=s.next;s.next=f.next,f.next=g}t.baseQueue=s=f,a.pending=null}if(f=e.baseState,s===null)e.memoizedState=f;else{t=s.next;var S=g=null,A=null,L=t,I=!1;do{var $=L.lane&-536870913;if($!==L.lane?(Ue&$)===$:(el&$)===$){var U=L.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),$===Gi&&(I=!0);else if((el&U)===U){L=L.next,U===Gi&&(I=!0);continue}else $={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(S=A=$,g=f):A=A.next=$,ze.lanes|=U,Ul|=U;$=L.action,gi&&l(f,$),f=L.hasEagerState?L.eagerState:l(f,$)}else U={lane:$,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},A===null?(S=A=U,g=f):A=A.next=U,ze.lanes|=$,Ul|=$;L=L.next}while(L!==null&&L!==t);if(A===null?g=f:A.next=S,!cn(f,e.memoizedState)&&(St=!0,I&&(l=Xi,l!==null)))throw l;e.memoizedState=f,e.baseState=g,e.baseQueue=A,a.lastRenderedState=f}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function io(e){var t=gt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=l.dispatch,s=l.pending,f=t.memoizedState;if(s!==null){l.pending=null;var g=s=s.next;do f=e(f,g.action),g=g.next;while(g!==s);cn(f,t.memoizedState)||(St=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,a]}function vh(e,t,l){var a=ze,s=gt(),f=qe;if(f){if(l===void 0)throw Error(u(407));l=l()}else l=t();var g=!cn((Pe||s).memoizedState,l);if(g&&(s.memoizedState=l,St=!0),s=s.queue,uo(kh.bind(null,a,s,e),[e]),s.getSnapshot!==t||g||xt!==null&&xt.memoizedState.tag&1){if(a.flags|=2048,Ji(9,{destroy:void 0},Sh.bind(null,a,s,l,t),null),nt===null)throw Error(u(349));f||(el&127)!==0||xh(a,t,l)}return l}function xh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ze.updateQueue,t===null?(t=lu(),ze.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Sh(e,t,l,a){t.value=l,t.getSnapshot=a,Eh(t)&&Ch(e)}function kh(e,t,l){return l(function(){Eh(t)&&Ch(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!cn(e,l)}catch{return!0}}function Ch(e){var t=ui(e,2);t!==null&&Wt(t,e,2)}function ao(e){var t=Gt();if(typeof e=="function"){var l=e;if(e=l(),gi){Bt(!0);try{l()}finally{Bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function Th(e,t,l,a){return e.baseState=l,lo(e,Pe,typeof a=="function"?a:tl)}function d1(e,t,l,a,s){if(su(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};B.T!==null?l(!0):f.isTransition=!1,a(f),l=t.pending,l===null?(f.next=t.pending=f,Ah(t,f)):(f.next=l.next,t.pending=l.next=f)}}function Ah(e,t){var l=t.action,a=t.payload,s=e.state;if(t.isTransition){var f=B.T,g={};B.T=g;try{var S=l(s,a),A=B.S;A!==null&&A(g,S),wh(e,t,S)}catch(L){ro(e,t,L)}finally{f!==null&&g.types!==null&&(f.types=g.types),B.T=f}}else try{f=l(s,a),wh(e,t,f)}catch(L){ro(e,t,L)}}function wh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){_h(e,t,a)},function(a){return ro(e,t,a)}):_h(e,t,l)}function _h(e,t,l){t.status="fulfilled",t.value=l,zh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ah(e,l)))}function ro(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,zh(t),t=t.next;while(t!==a)}e.action=null}function zh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nh(e,t){return t}function Dh(e,t){if(qe){var l=nt.formState;if(l!==null){e:{var a=ze;if(qe){if(rt){t:{for(var s=rt,f=Tn;s.nodeType!==8;){if(!f){s=null;break t}if(s=wn(s.nextSibling),s===null){s=null;break t}}f=s.data,s=f==="F!"||f==="F"?s:null}if(s){rt=wn(s.nextSibling),a=s.data==="F!";break e}}zl(a)}a=!1}a&&(t=l[0])}}return l=Gt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:t},l.queue=a,l=Jh.bind(null,ze,a),a.dispatch=l,a=ao(!1),f=ho.bind(null,ze,!1,a.queue),a=Gt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,l=d1.bind(null,ze,s,f,l),s.dispatch=l,a.memoizedState=e,[t,l,!1]}function Oh(e){var t=gt();return jh(t,Pe,e)}function jh(e,t,l){if(t=lo(e,t,Nh)[0],e=au(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ga(t)}catch(g){throw g===Qi?Kr:g}else a=t;t=gt();var s=t.queue,f=s.dispatch;return l!==t.memoizedState&&(ze.flags|=2048,Ji(9,{destroy:void 0},m1.bind(null,s,l),null)),[a,f,e]}function m1(e,t){e.action=t}function Mh(e){var t=gt(),l=Pe;if(l!==null)return jh(t,l,e);gt(),t=t.memoizedState,l=gt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ji(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ze.updateQueue,t===null&&(t=lu(),ze.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Rh(){return gt().memoizedState}function ru(e,t,l,a){var s=Gt();ze.flags|=e,s.memoizedState=Ji(1|t,{destroy:void 0},l,a===void 0?null:a)}function uu(e,t,l,a){var s=gt();a=a===void 0?null:a;var f=s.memoizedState.inst;Pe!==null&&a!==null&&$s(a,Pe.memoizedState.deps)?s.memoizedState=Ji(t,f,l,a):(ze.flags|=e,s.memoizedState=Ji(1|t,f,l,a))}function Bh(e,t){ru(8390656,8,e,t)}function uo(e,t){uu(2048,8,e,t)}function p1(e){ze.flags|=4;var t=ze.updateQueue;if(t===null)t=lu(),ze.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Lh(e){var t=gt().memoizedState;return p1({ref:t,nextImpl:e}),function(){if((Ie&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Uh(e,t){return uu(4,2,e,t)}function Hh(e,t){return uu(4,4,e,t)}function qh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yh(e,t,l){l=l!=null?l.concat([e]):null,uu(4,4,qh.bind(null,t,e),l)}function so(){}function Vh(e,t){var l=gt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&$s(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Gh(e,t){var l=gt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&$s(t,a[1]))return a[0];if(a=e(),gi){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a}function oo(e,t,l){return l===void 0||(el&1073741824)!==0&&(Ue&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Xd(),ze.lanes|=e,Ul|=e,l)}function Xh(e,t,l,a){return cn(l,t)?l:Zi.current!==null?(e=oo(e,l,a),cn(e,t)||(St=!0),e):(el&42)===0||(el&1073741824)!==0&&(Ue&261930)===0?(St=!0,e.memoizedState=l):(e=Xd(),ze.lanes|=e,Ul|=e,t)}function Qh(e,t,l,a,s){var f=W.p;W.p=f!==0&&8>f?f:8;var g=B.T,S={};B.T=S,ho(e,!1,t,l);try{var A=s(),L=B.S;if(L!==null&&L(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var I=c1(A,a);Xa(e,t,I,gn(e))}else Xa(e,t,a,gn(e))}catch($){Xa(e,t,{then:function(){},status:"rejected",reason:$},gn())}finally{W.p=f,g!==null&&S.types!==null&&(g.types=S.types),B.T=g}}function g1(){}function co(e,t,l,a){if(e.tag!==5)throw Error(u(476));var s=Ih(e).queue;Qh(e,s,t,he,l===null?g1:function(){return Zh(e),l(a)})}function Ih(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:he},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zh(e){var t=Ih(e);t.next===null&&(t=e.alternate.memoizedState),Xa(e,t.next.queue,{},gn())}function fo(){return Ot(ur)}function Fh(){return gt().memoizedState}function Kh(){return gt().memoizedState}function y1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gn();e=Ol(l);var a=jl(t,e,l);a!==null&&(Wt(a,t,l),Ha(a,t,l)),t={cache:qs()},e.payload=t;return}t=t.return}}function b1(e,t,l){var a=gn();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},su(e)?$h(t,l):(l=zs(e,t,l,a),l!==null&&(Wt(l,e,a),Ph(l,t,a)))}function Jh(e,t,l){var a=gn();Xa(e,t,l,a)}function Xa(e,t,l,a){var s={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(su(e))$h(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var g=t.lastRenderedState,S=f(g,l);if(s.hasEagerState=!0,s.eagerState=S,cn(S,g))return Vr(e,t,s,0),nt===null&&Yr(),!1}catch{}finally{}if(l=zs(e,t,s,a),l!==null)return Wt(l,e,a),Ph(l,t,a),!0}return!1}function ho(e,t,l,a){if(a={lane:2,revertLane:Qo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},su(e)){if(t)throw Error(u(479))}else t=zs(e,l,a,2),t!==null&&Wt(t,e,2)}function su(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function $h(e,t){Fi=tu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Ph(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ml(e,l)}}var Qa={readContext:Ot,use:iu,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Qa.useEffectEvent=ct;var Wh={readContext:Ot,use:iu,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Bh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ru(4194308,4,qh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){ru(4,2,e,t)},useMemo:function(e,t){var l=Gt();t=t===void 0?null:t;var a=e();if(gi){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Gt();if(l!==void 0){var s=l(t);if(gi){Bt(!0);try{l(t)}finally{Bt(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=b1.bind(null,ze,e),[a.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=ao(e);var t=e.queue,l=Jh.bind(null,ze,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:so,useDeferredValue:function(e,t){var l=Gt();return oo(l,e,t)},useTransition:function(){var e=ao(!1);return e=Qh.bind(null,ze,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ze,s=Gt();if(qe){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),nt===null)throw Error(u(349));(Ue&127)!==0||xh(a,t,l)}s.memoizedState=l;var f={value:l,getSnapshot:t};return s.queue=f,Bh(kh.bind(null,a,f,e),[e]),a.flags|=2048,Ji(9,{destroy:void 0},Sh.bind(null,a,f,l,t),null),l},useId:function(){var e=Gt(),t=nt.identifierPrefix;if(qe){var l=Yn,a=qn;l=(a&~(1<<32-Ze(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=nu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=f1++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fo,useFormState:Dh,useActionState:Dh,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ho.bind(null,ze,!0,l),l.dispatch=t,[e,t]},useMemoCache:no,useCacheRefresh:function(){return Gt().memoizedState=y1.bind(null,ze)},useEffectEvent:function(e){var t=Gt(),l={impl:e};return t.memoizedState=l,function(){if((Ie&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},mo={readContext:Ot,use:iu,useCallback:Vh,useContext:Ot,useEffect:uo,useImperativeHandle:Yh,useInsertionEffect:Uh,useLayoutEffect:Hh,useMemo:Gh,useReducer:au,useRef:Rh,useState:function(){return au(tl)},useDebugValue:so,useDeferredValue:function(e,t){var l=gt();return Xh(l,Pe.memoizedState,e,t)},useTransition:function(){var e=au(tl)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ga(e),t]},useSyncExternalStore:vh,useId:Fh,useHostTransitionStatus:fo,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var l=gt();return Th(l,Pe,e,t)},useMemoCache:no,useCacheRefresh:Kh};mo.useEffectEvent=Lh;var ed={readContext:Ot,use:iu,useCallback:Vh,useContext:Ot,useEffect:uo,useImperativeHandle:Yh,useInsertionEffect:Uh,useLayoutEffect:Hh,useMemo:Gh,useReducer:io,useRef:Rh,useState:function(){return io(tl)},useDebugValue:so,useDeferredValue:function(e,t){var l=gt();return Pe===null?oo(l,e,t):Xh(l,Pe.memoizedState,e,t)},useTransition:function(){var e=io(tl)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:Ga(e),t]},useSyncExternalStore:vh,useId:Fh,useHostTransitionStatus:fo,useFormState:Mh,useActionState:Mh,useOptimistic:function(e,t){var l=gt();return Pe!==null?Th(l,Pe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:no,useCacheRefresh:Kh};ed.useEffectEvent=Lh;function po(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var go={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gn(),s=Ol(a);s.payload=t,l!=null&&(s.callback=l),t=jl(e,s,a),t!==null&&(Wt(t,e,a),Ha(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gn(),s=Ol(a);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=jl(e,s,a),t!==null&&(Wt(t,e,a),Ha(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gn(),a=Ol(l);a.tag=2,t!=null&&(a.callback=t),t=jl(e,a,l),t!==null&&(Wt(t,e,l),Ha(t,e,l))}};function td(e,t,l,a,s,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,f,g):t.prototype&&t.prototype.isPureReactComponent?!Da(l,a)||!Da(s,f):!0}function nd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&go.enqueueReplaceState(t,t.state,null)}function yi(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function ld(e){qr(e)}function id(e){console.error(e)}function ad(e){qr(e)}function ou(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function rd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function yo(e,t,l){return l=Ol(l),l.tag=3,l.payload={element:null},l.callback=function(){ou(e,t)},l}function ud(e){return e=Ol(e),e.tag=3,e}function sd(e,t,l,a){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var f=a.value;e.payload=function(){return s(f)},e.callback=function(){rd(t,l,a)}}var g=l.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){rd(t,l,a),typeof s!="function"&&(Hl===null?Hl=new Set([this]):Hl.add(this));var S=a.stack;this.componentDidCatch(a.value,{componentStack:S!==null?S:""})})}function v1(e,t,l,a,s){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Vi(t,l,s,!0),l=hn.current,l!==null){switch(l.tag){case 31:case 13:return An===null?Su():l.alternate===null&&ft===0&&(ft=3),l.flags&=-257,l.flags|=65536,l.lanes=s,a===Jr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Vo(e,a,s)),!1;case 22:return l.flags|=65536,a===Jr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Vo(e,a,s)),!1}throw Error(u(435,l.tag))}return Vo(e,a,s),Su(),!1}if(qe)return t=hn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Rs&&(e=Error(u(422),{cause:a}),Ma(kn(e,l)))):(a!==Rs&&(t=Error(u(423),{cause:a}),Ma(kn(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=kn(a,l),s=yo(e.stateNode,a,s),Is(e,s),ft!==4&&(ft=2)),!1;var f=Error(u(520),{cause:a});if(f=kn(f,l),Wa===null?Wa=[f]:Wa.push(f),ft!==4&&(ft=2),t===null)return!0;a=kn(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=yo(l.stateNode,a,e),Is(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Hl===null||!Hl.has(f))))return l.flags|=65536,s&=-s,l.lanes|=s,s=ud(s),sd(s,e,l,a),Is(l,s),!1}l=l.return}while(l!==null);return!1}var bo=Error(u(461)),St=!1;function jt(e,t,l,a){t.child=e===null?hh(t,null,l,a):pi(t,e.child,l,a)}function od(e,t,l,a,s){l=l.render;var f=t.ref;if("ref"in a){var g={};for(var S in a)S!=="ref"&&(g[S]=a[S])}else g=a;return fi(t),a=Ps(e,t,l,g,f,s),S=Ws(),e!==null&&!St?(eo(e,t,s),nl(e,t,s)):(qe&&S&&js(t),t.flags|=1,jt(e,t,a,s),t.child)}function cd(e,t,l,a,s){if(e===null){var f=l.type;return typeof f=="function"&&!Ns(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,fd(e,t,f,a,s)):(e=Xr(l.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ao(e,s)){var g=f.memoizedProps;if(l=l.compare,l=l!==null?l:Da,l(g,a)&&e.ref===t.ref)return nl(e,t,s)}return t.flags|=1,e=Jn(f,a),e.ref=t.ref,e.return=t,t.child=e}function fd(e,t,l,a,s){if(e!==null){var f=e.memoizedProps;if(Da(f,a)&&e.ref===t.ref)if(St=!1,t.pendingProps=a=f,Ao(e,s))(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,nl(e,t,s)}return vo(e,t,l,a,s)}function hd(e,t,l,a){var s=a.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~f}else a=0,t.child=null;return dd(e,t,f,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fr(t,f!==null?f.cachePool:null),f!==null?ph(t,f):Fs(),gh(t);else return a=t.lanes=536870912,dd(e,t,f!==null?f.baseLanes|l:l,l,a)}else f!==null?(Fr(t,f.cachePool),ph(t,f),Rl(),t.memoizedState=null):(e!==null&&Fr(t,null),Fs(),Rl());return jt(e,t,s,l),t.child}function Ia(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dd(e,t,l,a,s){var f=Vs();return f=f===null?null:{parent:vt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Fr(t,null),Fs(),gh(t),e!==null&&Vi(e,t,a,!0),t.childLanes=s,null}function cu(e,t){return t=hu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function md(e,t,l){return pi(t,e.child,null,l),e=cu(t,t.pendingProps),e.flags|=2,dn(t),t.memoizedState=null,e}function x1(e,t,l){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(qe){if(a.mode==="hidden")return e=cu(t,a),t.lanes=536870912,Ia(null,e);if(Js(t),(e=rt)?(e=Am(e,Tn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wl!==null?{id:qn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},l=$f(e),l.return=t,t.child=l,Dt=t,rt=null)):e=null,e===null)throw zl(t);return t.lanes=536870912,null}return cu(t,a)}var f=e.memoizedState;if(f!==null){var g=f.dehydrated;if(Js(t),s)if(t.flags&256)t.flags&=-257,t=md(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(St||Vi(e,t,l,!1),s=(l&e.childLanes)!==0,St||s){if(a=nt,a!==null&&(g=pl(a,l),g!==0&&g!==f.retryLane))throw f.retryLane=g,ui(e,g),Wt(a,e,g),bo;Su(),t=md(e,t,l)}else e=f.treeContext,rt=wn(g.nextSibling),Dt=t,qe=!0,_l=null,Tn=!1,e!==null&&eh(t,e),t=cu(t,a),t.flags|=4096;return t}return e=Jn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function vo(e,t,l,a,s){return fi(t),l=Ps(e,t,l,a,void 0,s),a=Ws(),e!==null&&!St?(eo(e,t,s),nl(e,t,s)):(qe&&a&&js(t),t.flags|=1,jt(e,t,l,s),t.child)}function pd(e,t,l,a,s,f){return fi(t),t.updateQueue=null,l=bh(t,a,l,s),yh(e),a=Ws(),e!==null&&!St?(eo(e,t,f),nl(e,t,f)):(qe&&a&&js(t),t.flags|=1,jt(e,t,l,f),t.child)}function gd(e,t,l,a,s){if(fi(t),t.stateNode===null){var f=Ui,g=l.contextType;typeof g=="object"&&g!==null&&(f=Ot(g)),f=new l(a,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=go,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=a,f.state=t.memoizedState,f.refs={},Xs(t),g=l.contextType,f.context=typeof g=="object"&&g!==null?Ot(g):Ui,f.state=t.memoizedState,g=l.getDerivedStateFromProps,typeof g=="function"&&(po(t,l,g,a),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&go.enqueueReplaceState(f,f.state,null),Ya(t,a,f,s),qa(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){f=t.stateNode;var S=t.memoizedProps,A=yi(l,S);f.props=A;var L=f.context,I=l.contextType;g=Ui,typeof I=="object"&&I!==null&&(g=Ot(I));var $=l.getDerivedStateFromProps;I=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,I||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||L!==g)&&nd(t,f,a,g),Dl=!1;var U=t.memoizedState;f.state=U,Ya(t,a,f,s),qa(),L=t.memoizedState,S||U!==L||Dl?(typeof $=="function"&&(po(t,l,$,a),L=t.memoizedState),(A=Dl||td(t,l,A,a,U,L,g))?(I||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=L),f.props=a,f.state=L,f.context=g,a=A):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{f=t.stateNode,Qs(e,t),g=t.memoizedProps,I=yi(l,g),f.props=I,$=t.pendingProps,U=f.context,L=l.contextType,A=Ui,typeof L=="object"&&L!==null&&(A=Ot(L)),S=l.getDerivedStateFromProps,(L=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==$||U!==A)&&nd(t,f,a,A),Dl=!1,U=t.memoizedState,f.state=U,Ya(t,a,f,s),qa();var q=t.memoizedState;g!==$||U!==q||Dl||e!==null&&e.dependencies!==null&&Ir(e.dependencies)?(typeof S=="function"&&(po(t,l,S,a),q=t.memoizedState),(I=Dl||td(t,l,I,a,U,q,A)||e!==null&&e.dependencies!==null&&Ir(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(a,q,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(a,q,A)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),f.props=a,f.state=q,f.context=A,a=I):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return f=a,fu(e,t),a=(t.flags&128)!==0,f||a?(f=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&a?(t.child=pi(t,e.child,null,s),t.child=pi(t,null,l,s)):jt(e,t,l,s),t.memoizedState=f.state,e=t.child):e=nl(e,t,s),e}function yd(e,t,l,a){return oi(),t.flags|=256,jt(e,t,l,a),t.child}var xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function So(e){return{baseLanes:e,cachePool:rh()}}function ko(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pn),e}function bd(e,t,l){var a=t.pendingProps,s=!1,f=(t.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(qe){if(s?Ml(t):Rl(),(e=rt)?(e=Am(e,Tn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wl!==null?{id:qn,overflow:Yn}:null,retryLane:536870912,hydrationErrors:null},l=$f(e),l.return=t,t.child=l,Dt=t,rt=null)):e=null,e===null)throw zl(t);return ic(e)?t.lanes=32:t.lanes=536870912,null}var S=a.children;return a=a.fallback,s?(Rl(),s=t.mode,S=hu({mode:"hidden",children:S},s),a=si(a,s,l,null),S.return=t,a.return=t,S.sibling=a,t.child=S,a=t.child,a.memoizedState=So(l),a.childLanes=ko(e,g,l),t.memoizedState=xo,Ia(null,a)):(Ml(t),Eo(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(f)t.flags&256?(Ml(t),t.flags&=-257,t=Co(e,t,l)):t.memoizedState!==null?(Rl(),t.child=e.child,t.flags|=128,t=null):(Rl(),S=a.fallback,s=t.mode,a=hu({mode:"visible",children:a.children},s),S=si(S,s,l,null),S.flags|=2,a.return=t,S.return=t,a.sibling=S,t.child=a,pi(t,e.child,null,l),a=t.child,a.memoizedState=So(l),a.childLanes=ko(e,g,l),t.memoizedState=xo,t=Ia(null,a));else if(Ml(t),ic(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var L=g.dgst;g=L,a=Error(u(419)),a.stack="",a.digest=g,Ma({value:a,source:null,stack:null}),t=Co(e,t,l)}else if(St||Vi(e,t,l,!1),g=(l&e.childLanes)!==0,St||g){if(g=nt,g!==null&&(a=pl(g,l),a!==0&&a!==A.retryLane))throw A.retryLane=a,ui(e,a),Wt(g,e,a),bo;lc(S)||Su(),t=Co(e,t,l)}else lc(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,rt=wn(S.nextSibling),Dt=t,qe=!0,_l=null,Tn=!1,e!==null&&eh(t,e),t=Eo(t,a.children),t.flags|=4096);return t}return s?(Rl(),S=a.fallback,s=t.mode,A=e.child,L=A.sibling,a=Jn(A,{mode:"hidden",children:a.children}),a.subtreeFlags=A.subtreeFlags&65011712,L!==null?S=Jn(L,S):(S=si(S,s,l,null),S.flags|=2),S.return=t,a.return=t,a.sibling=S,t.child=a,Ia(null,a),a=t.child,S=e.child.memoizedState,S===null?S=So(l):(s=S.cachePool,s!==null?(A=vt._currentValue,s=s.parent!==A?{parent:A,pool:A}:s):s=rh(),S={baseLanes:S.baseLanes|l,cachePool:s}),a.memoizedState=S,a.childLanes=ko(e,g,l),t.memoizedState=xo,Ia(e.child,a)):(Ml(t),l=e.child,e=l.sibling,l=Jn(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=l,t.memoizedState=null,l)}function Eo(e,t){return t=hu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hu(e,t){return e=fn(22,e,null,t),e.lanes=0,e}function Co(e,t,l){return pi(t,e.child,null,l),e=Eo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Us(e.return,t,l)}function To(e,t,l,a,s,f){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:s,treeForkCount:f}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=l,g.tailMode=s,g.treeForkCount=f)}function xd(e,t,l){var a=t.pendingProps,s=a.revealOrder,f=a.tail;a=a.children;var g=pt.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,E(pt,g),jt(e,t,a,l),a=qe?ja:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vd(e,l,t);else if(e.tag===19)vd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&eu(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),To(t,!1,s,l,f,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&eu(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}To(t,!0,l,null,f,a);break;case"together":To(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function nl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Vi(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=Jn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ao(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ir(e)))}function S1(e,t,l){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),Nl(t,vt,e.memoizedState.cache),oi();break;case 27:case 5:dt(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:Nl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Js(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ml(t),t.flags|=128,null):(l&t.child.childLanes)!==0?bd(e,t,l):(Ml(t),e=nl(e,t,l),e!==null?e.sibling:null);Ml(t);break;case 19:var s=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Vi(e,t,l,!1),a=(l&t.childLanes)!==0),s){if(a)return xd(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),E(pt,pt.current),a)break;return null;case 22:return t.lanes=0,hd(e,t,l,t.pendingProps);case 24:Nl(t,vt,e.memoizedState.cache)}return nl(e,t,l)}function Sd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)St=!0;else{if(!Ao(e,l)&&(t.flags&128)===0)return St=!1,S1(e,t,l);St=(e.flags&131072)!==0}else St=!1,qe&&(t.flags&1048576)!==0&&Wf(t,ja,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=di(t.elementType),t.type=e,typeof e=="function")Ns(e)?(a=yi(e,a),t.tag=1,t=gd(null,t,e,a,l)):(t.tag=0,t=vo(null,t,e,a,l));else{if(e!=null){var s=e.$$typeof;if(s===se){t.tag=11,t=od(null,t,e,a,l);break e}else if(s===ne){t.tag=14,t=cd(null,t,e,a,l);break e}}throw t=fe(e)||e,Error(u(306,t,""))}}return t;case 0:return vo(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,s=yi(a,t.pendingProps),gd(e,t,a,s,l);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var f=t.memoizedState;s=f.element,Qs(e,t),Ya(t,a,null,l);var g=t.memoizedState;if(a=g.cache,Nl(t,vt,a),a!==f.cache&&Hs(t,[vt],l,!0),qa(),a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=yd(e,t,a,l);break e}else if(a!==s){s=kn(Error(u(424)),t),Ma(s),t=yd(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(rt=wn(e.firstChild),Dt=t,qe=!0,_l=null,Tn=!0,l=hh(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(oi(),a===s){t=nl(e,t,l);break e}jt(e,t,a,l)}t=t.child}return t;case 26:return fu(e,t),e===null?(l=Om(t.type,null,t.pendingProps,null))?t.memoizedState=l:qe||(l=t.type,e=t.pendingProps,a=_u(le.current).createElement(l),a[Tt]=t,a[Lt]=e,Mt(a,l,e),mt(a),t.stateNode=a):t.memoizedState=Om(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dt(t),e===null&&qe&&(a=t.stateNode=zm(t.type,t.pendingProps,le.current),Dt=t,Tn=!0,s=rt,Gl(t.type)?(ac=s,rt=wn(a.firstChild)):rt=s),jt(e,t,t.pendingProps.children,l),fu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&qe&&((s=a=rt)&&(a=$1(a,t.type,t.pendingProps,Tn),a!==null?(t.stateNode=a,Dt=t,rt=wn(a.firstChild),Tn=!1,s=!0):s=!1),s||zl(t)),dt(t),s=t.type,f=t.pendingProps,g=e!==null?e.memoizedProps:null,a=f.children,ec(s,f)?a=null:g!==null&&ec(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=Ps(e,t,h1,null,null,l),ur._currentValue=s),fu(e,t),jt(e,t,a,l),t.child;case 6:return e===null&&qe&&((e=l=rt)&&(l=P1(l,t.pendingProps,Tn),l!==null?(t.stateNode=l,Dt=t,rt=null,e=!0):e=!1),e||zl(t)),null;case 13:return bd(e,t,l);case 4:return Ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=pi(t,null,a,l):jt(e,t,a,l),t.child;case 11:return od(e,t,t.type,t.pendingProps,l);case 7:return jt(e,t,t.pendingProps,l),t.child;case 8:return jt(e,t,t.pendingProps.children,l),t.child;case 12:return jt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Nl(t,t.type,a.value),jt(e,t,a.children,l),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,fi(t),s=Ot(s),a=a(s),t.flags|=1,jt(e,t,a,l),t.child;case 14:return cd(e,t,t.type,t.pendingProps,l);case 15:return fd(e,t,t.type,t.pendingProps,l);case 19:return xd(e,t,l);case 31:return x1(e,t,l);case 22:return hd(e,t,l,t.pendingProps);case 24:return fi(t),a=Ot(vt),e===null?(s=Vs(),s===null&&(s=nt,f=qs(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=l),s=f),t.memoizedState={parent:a,cache:s},Xs(t),Nl(t,vt,s)):((e.lanes&l)!==0&&(Qs(e,t),Ya(t,null,null,l),qa()),s=e.memoizedState,f=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Nl(t,vt,a)):(a=f.cache,Nl(t,vt,a),a!==s.cache&&Hs(t,[vt],l,!0))),jt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ll(e){e.flags|=4}function wo(e,t,l,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Fd())e.flags|=8192;else throw mi=Jr,Gs}else e.flags&=-16777217}function kd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lm(t))if(Fd())e.flags|=8192;else throw mi=Jr,Gs}function du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ar():536870912,e.lanes|=t,ea|=t)}function Za(e,t){if(!qe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function k1(e,t,l){var a=t.pendingProps;switch(Ms(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return ut(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wn(vt),je(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bs())),ut(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(ll(t),f!==null?(ut(t),kd(t,f)):(ut(t),wo(t,s,null,a,l))):f?f!==e.memoizedState?(ll(t),ut(t),kd(t,f)):(ut(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),ut(t),wo(t,s,e,a,l)),null;case 27:if(wt(t),l=le.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ut(t),null}e=re.current,Yi(t)?th(t):(e=zm(s,a,l),t.stateNode=e,ll(t))}return ut(t),null;case 5:if(wt(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return ut(t),null}if(f=re.current,Yi(t))th(t);else{var g=_u(le.current);switch(f){case 1:f=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:f=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":f=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":f=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":f=g.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?f.multiple=!0:a.size&&(f.size=a.size);break;default:f=typeof a.is=="string"?g.createElement(s,{is:a.is}):g.createElement(s)}}f[Tt]=t,f[Lt]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=f;e:switch(Mt(f,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return ut(t),wo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=le.current,Yi(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,s=Dt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||bm(e.nodeValue,l)),e||zl(t,!0)}else e=_u(e).createTextNode(a),e[Tt]=t,t.stateNode=e}return ut(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Yi(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Tt]=t}else oi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),e=!1}else l=Bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(dn(t),t):(dn(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ut(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Yi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[Tt]=t}else oi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),s=!1}else s=Bs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(dn(t),t):(dn(t),null)}return dn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==s&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),du(t,t.updateQueue),ut(t),null);case 4:return je(),e===null&&Ko(t.stateNode.containerInfo),ut(t),null;case 10:return Wn(t.type),ut(t),null;case 19:if(Q(pt),a=t.memoizedState,a===null)return ut(t),null;if(s=(t.flags&128)!==0,f=a.rendering,f===null)if(s)Za(a,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=eu(e),f!==null){for(t.flags|=128,Za(a,!1),e=f.updateQueue,t.updateQueue=e,du(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Jf(l,e),l=l.sibling;return E(pt,pt.current&1|2),qe&&$n(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ct()>bu&&(t.flags|=128,s=!0,Za(a,!1),t.lanes=4194304)}else{if(!s)if(e=eu(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,du(t,e),Za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!qe)return ut(t),null}else 2*Ct()-a.renderingStartTime>bu&&l!==536870912&&(t.flags|=128,s=!0,Za(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(e=a.last,e!==null?e.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ct(),e.sibling=null,l=pt.current,E(pt,s?l&1|2:l&1),qe&&$n(t,a.treeForkCount),e):(ut(t),null);case 22:case 23:return dn(t),Ks(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),l=t.updateQueue,l!==null&&du(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Q(hi),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wn(vt),ut(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function E1(e,t){switch(Ms(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(vt),je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wt(t),null;case 31:if(t.memoizedState!==null){if(dn(t),t.alternate===null)throw Error(u(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(pt),null;case 4:return je(),null;case 10:return Wn(t.type),null;case 22:case 23:return dn(t),Ks(),e!==null&&Q(hi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wn(vt),null;case 25:return null;default:return null}}function Ed(e,t){switch(Ms(t),t.tag){case 3:Wn(vt),je();break;case 26:case 27:case 5:wt(t);break;case 4:je();break;case 31:t.memoizedState!==null&&dn(t);break;case 13:dn(t);break;case 19:Q(pt);break;case 10:Wn(t.type);break;case 22:case 23:dn(t),Ks(),e!==null&&Q(hi);break;case 24:Wn(vt)}}function Fa(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var s=a.next;l=s;do{if((l.tag&e)===e){a=void 0;var f=l.create,g=l.inst;a=f(),g.destroy=a}l=l.next}while(l!==s)}}catch(S){Je(t,t.return,S)}}function Bl(e,t,l){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var f=s.next;a=f;do{if((a.tag&e)===e){var g=a.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,s=t;var A=l,L=S;try{L()}catch(I){Je(s,A,I)}}}a=a.next}while(a!==f)}}catch(I){Je(t,t.return,I)}}function Cd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{mh(t,l)}catch(a){Je(e,e.return,a)}}}function Td(e,t,l){l.props=yi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Je(e,t,a)}}function Ka(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(s){Je(e,t,s)}}function Vn(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(s){Je(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Je(e,t,s)}else l.current=null}function Ad(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(s){Je(e,e.return,s)}}function _o(e,t,l){try{var a=e.stateNode;Q1(a,e.type,l,t),a[Lt]=t}catch(s){Je(e,e.return,s)}}function wd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Gl(e.type)||e.tag===4}function zo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wd(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&&Gl(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 No(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=bt));else if(a!==4&&(a===27&&Gl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(No(e,t,l),e=e.sibling;e!==null;)No(e,t,l),e=e.sibling}function mu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Gl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(mu(e,t,l),e=e.sibling;e!==null;)mu(e,t,l),e=e.sibling}function _d(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Mt(t,a,l),t[Tt]=e,t[Lt]=l}catch(f){Je(e,e.return,f)}}var il=!1,kt=!1,Do=!1,zd=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function C1(e,t){if(e=e.containerInfo,Po=Ru,e=Yf(e),Es(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var s=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var g=0,S=-1,A=-1,L=0,I=0,$=e,U=null;t:for(;;){for(var q;$!==l||s!==0&&$.nodeType!==3||(S=g+s),$!==f||a!==0&&$.nodeType!==3||(A=g+a),$.nodeType===3&&(g+=$.nodeValue.length),(q=$.firstChild)!==null;)U=$,$=q;for(;;){if($===e)break t;if(U===l&&++L===s&&(S=g),U===f&&++I===a&&(A=g),(q=$.nextSibling)!==null)break;$=U,U=$.parentNode}$=q}l=S===-1||A===-1?null:{start:S,end:A}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wo={focusedElem:e,selectionRange:l},Ru=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,s=f.memoizedProps,f=f.memoizedState,a=l.stateNode;try{var me=yi(l.type,s);e=a.getSnapshotBeforeUpdate(me,f),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){Je(l,l.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)nc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nc(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function Nd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(e,l),a&4&&Fa(5,l);break;case 1:if(rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(g){Je(l,l.return,g)}else{var s=yi(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Je(l,l.return,g)}}a&64&&Cd(l),a&512&&Ka(l,l.return);break;case 3:if(rl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{mh(e,t)}catch(g){Je(l,l.return,g)}}break;case 27:t===null&&a&4&&_d(l);case 26:case 5:rl(e,l),t===null&&a&4&&Ad(l),a&512&&Ka(l,l.return);break;case 12:rl(e,l);break;case 31:rl(e,l),a&4&&jd(e,l);break;case 13:rl(e,l),a&4&&Md(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=j1.bind(null,l),W1(e,l))));break;case 22:if(a=l.memoizedState!==null||il,!a){t=t!==null&&t.memoizedState!==null||kt,s=il;var f=kt;il=a,(kt=t)&&!f?ul(e,l,(l.subtreeFlags&8772)!==0):rl(e,l),il=s,kt=f}break;case 30:break;default:rl(e,l)}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Dn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Kt=!1;function al(e,t,l){for(l=l.child;l!==null;)Od(e,t,l),l=l.sibling}function Od(e,t,l){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(yt,l)}catch{}switch(l.tag){case 26:kt||Vn(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:kt||Vn(l,t);var a=st,s=Kt;Gl(l.type)&&(st=l.stateNode,Kt=!1),al(e,t,l),ir(l.stateNode),st=a,Kt=s;break;case 5:kt||Vn(l,t);case 6:if(a=st,s=Kt,st=null,al(e,t,l),st=a,Kt=s,st!==null)if(Kt)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(l.stateNode)}catch(f){Je(l,t,f)}else try{st.removeChild(l.stateNode)}catch(f){Je(l,t,f)}break;case 18:st!==null&&(Kt?(e=st,Cm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),sa(e)):Cm(st,l.stateNode));break;case 4:a=st,s=Kt,st=l.stateNode.containerInfo,Kt=!0,al(e,t,l),st=a,Kt=s;break;case 0:case 11:case 14:case 15:Bl(2,l,t),kt||Bl(4,l,t),al(e,t,l);break;case 1:kt||(Vn(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Td(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:kt=(a=kt)||l.memoizedState!==null,al(e,t,l),kt=a;break;default:al(e,t,l)}}function jd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{sa(e)}catch(l){Je(t,t.return,l)}}}function Md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{sa(e)}catch(l){Je(t,t.return,l)}}function T1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zd),t;default:throw Error(u(435,e.tag))}}function pu(e,t){var l=T1(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var s=M1.bind(null,e,a);a.then(s,s)}})}function Jt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var s=l[a],f=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(Gl(S.type)){st=S.stateNode,Kt=!1;break e}break;case 5:st=S.stateNode,Kt=!1;break e;case 3:case 4:st=S.stateNode.containerInfo,Kt=!0;break e}S=S.return}if(st===null)throw Error(u(160));Od(f,g,s),st=null,Kt=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Rd(t,e),t=t.sibling}var Mn=null;function Rd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Jt(t,e),$t(e),a&4&&(Bl(3,e,e.return),Fa(3,e),Bl(5,e,e.return));break;case 1:Jt(t,e),$t(e),a&512&&(kt||l===null||Vn(l,l.return)),a&64&&il&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var s=Mn;if(Jt(t,e),$t(e),a&512&&(kt||l===null||Vn(l,l.return)),a&4){var f=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":f=s.getElementsByTagName("title")[0],(!f||f[un]||f[Tt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=s.createElement(a),s.head.insertBefore(f,s.querySelector("head > title"))),Mt(f,a,l),f[Tt]=e,mt(f),a=f;break e;case"link":var g=Rm("link","href",s).get(a+(l.href||""));if(g){for(var S=0;S<g.length;S++)if(f=g[S],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){g.splice(S,1);break t}}f=s.createElement(a),Mt(f,a,l),s.head.appendChild(f);break;case"meta":if(g=Rm("meta","content",s).get(a+(l.content||""))){for(S=0;S<g.length;S++)if(f=g[S],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){g.splice(S,1);break t}}f=s.createElement(a),Mt(f,a,l),s.head.appendChild(f);break;default:throw Error(u(468,a))}f[Tt]=e,mt(f),a=f}e.stateNode=a}else Bm(s,e.type,e.stateNode);else e.stateNode=Mm(s,a,e.memoizedProps);else f!==a?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,a===null?Bm(s,e.type,e.stateNode):Mm(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&_o(e,e.memoizedProps,l.memoizedProps)}break;case 27:Jt(t,e),$t(e),a&512&&(kt||l===null||Vn(l,l.return)),l!==null&&a&4&&_o(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Jt(t,e),$t(e),a&512&&(kt||l===null||Vn(l,l.return)),e.flags&32){s=e.stateNode;try{Tl(s,"")}catch(me){Je(e,e.return,me)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,_o(e,s,l!==null?l.memoizedProps:s)),a&1024&&(Do=!0);break;case 6:if(Jt(t,e),$t(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(me){Je(e,e.return,me)}}break;case 3:if(Du=null,s=Mn,Mn=zu(t.containerInfo),Jt(t,e),Mn=s,$t(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{sa(t.containerInfo)}catch(me){Je(e,e.return,me)}Do&&(Do=!1,Bd(e));break;case 4:a=Mn,Mn=zu(e.stateNode.containerInfo),Jt(t,e),$t(e),Mn=a;break;case 12:Jt(t,e),$t(e);break;case 31:Jt(t,e),$t(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pu(e,a)));break;case 13:Jt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(yu=Ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pu(e,a)));break;case 22:s=e.memoizedState!==null;var A=l!==null&&l.memoizedState!==null,L=il,I=kt;if(il=L||s,kt=I||A,Jt(t,e),kt=I,il=L,$t(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||A||il||kt||bi(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){A=l=t;try{if(f=A.stateNode,s)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=A.stateNode;var $=A.memoizedProps.style,U=$!=null&&$.hasOwnProperty("display")?$.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(me){Je(A,A.return,me)}}}else if(t.tag===6){if(l===null){A=t;try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(me){Je(A,A.return,me)}}}else if(t.tag===18){if(l===null){A=t;try{var q=A.stateNode;s?Tm(q,!0):Tm(A.stateNode,!1)}catch(me){Je(A,A.return,me)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,pu(e,l))));break;case 19:Jt(t,e),$t(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pu(e,a)));break;case 30:break;case 21:break;default:Jt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(wd(a)){l=a;break}a=a.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,f=zo(e);mu(e,f,s);break;case 5:var g=l.stateNode;l.flags&32&&(Tl(g,""),l.flags&=-33);var S=zo(e);mu(e,S,g);break;case 3:case 4:var A=l.stateNode.containerInfo,L=zo(e);No(e,L,A);break;default:throw Error(u(161))}}catch(I){Je(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function rl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Nd(e,t.alternate,t),t=t.sibling}function bi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bl(4,t,t.return),bi(t);break;case 1:Vn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Td(t,t.return,l),bi(t);break;case 27:ir(t.stateNode);case 26:case 5:Vn(t,t.return),bi(t);break;case 22:t.memoizedState===null&&bi(t);break;case 30:bi(t);break;default:bi(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,f=t,g=f.flags;switch(f.tag){case 0:case 11:case 15:ul(s,f,l),Fa(4,f);break;case 1:if(ul(s,f,l),a=f,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){Je(a,a.return,L)}if(a=f,s=a.updateQueue,s!==null){var S=a.stateNode;try{var A=s.shared.hiddenCallbacks;if(A!==null)for(s.shared.hiddenCallbacks=null,s=0;s<A.length;s++)dh(A[s],S)}catch(L){Je(a,a.return,L)}}l&&g&64&&Cd(f),Ka(f,f.return);break;case 27:_d(f);case 26:case 5:ul(s,f,l),l&&a===null&&g&4&&Ad(f),Ka(f,f.return);break;case 12:ul(s,f,l);break;case 31:ul(s,f,l),l&&g&4&&jd(s,f);break;case 13:ul(s,f,l),l&&g&4&&Md(s,f);break;case 22:f.memoizedState===null&&ul(s,f,l),Ka(f,f.return);break;case 30:break;default:ul(s,f,l)}t=t.sibling}}function Oo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ra(l))}function jo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function Rn(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ld(e,t,l,a),t=t.sibling}function Ld(e,t,l,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Rn(e,t,l,a),s&2048&&Fa(9,t);break;case 1:Rn(e,t,l,a);break;case 3:Rn(e,t,l,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e)));break;case 12:if(s&2048){Rn(e,t,l,a),e=t.stateNode;try{var f=t.memoizedProps,g=f.id,S=f.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Je(t,t.return,A)}}else Rn(e,t,l,a);break;case 31:Rn(e,t,l,a);break;case 13:Rn(e,t,l,a);break;case 23:break;case 22:f=t.stateNode,g=t.alternate,t.memoizedState!==null?f._visibility&2?Rn(e,t,l,a):Ja(e,t):f._visibility&2?Rn(e,t,l,a):(f._visibility|=2,$i(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Oo(g,t);break;case 24:Rn(e,t,l,a),s&2048&&jo(t.alternate,t);break;default:Rn(e,t,l,a)}}function $i(e,t,l,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,g=t,S=l,A=a,L=g.flags;switch(g.tag){case 0:case 11:case 15:$i(f,g,S,A,s),Fa(8,g);break;case 23:break;case 22:var I=g.stateNode;g.memoizedState!==null?I._visibility&2?$i(f,g,S,A,s):Ja(f,g):(I._visibility|=2,$i(f,g,S,A,s)),s&&L&2048&&Oo(g.alternate,g);break;case 24:$i(f,g,S,A,s),s&&L&2048&&jo(g.alternate,g);break;default:$i(f,g,S,A,s)}t=t.sibling}}function Ja(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,s=a.flags;switch(a.tag){case 22:Ja(l,a),s&2048&&Oo(a.alternate,a);break;case 24:Ja(l,a),s&2048&&jo(a.alternate,a);break;default:Ja(l,a)}t=t.sibling}}var $a=8192;function Pi(e,t,l){if(e.subtreeFlags&$a)for(e=e.child;e!==null;)Ud(e,t,l),e=e.sibling}function Ud(e,t,l){switch(e.tag){case 26:Pi(e,t,l),e.flags&$a&&e.memoizedState!==null&&f0(l,Mn,e.memoizedState,e.memoizedProps);break;case 5:Pi(e,t,l);break;case 3:case 4:var a=Mn;Mn=zu(e.stateNode.containerInfo),Pi(e,t,l),Mn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=$a,$a=16777216,Pi(e,t,l),$a=a):Pi(e,t,l));break;default:Pi(e,t,l)}}function Hd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Nt=a,Yd(a,e)}Hd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qd(e),e=e.sibling}function qd(e){switch(e.tag){case 0:case 11:case 15:Pa(e),e.flags&2048&&Bl(9,e,e.return);break;case 3:Pa(e);break;case 12:Pa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gu(e)):Pa(e);break;default:Pa(e)}}function gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Nt=a,Yd(a,e)}Hd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bl(8,t,t.return),gu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,gu(t));break;default:gu(t)}e=e.sibling}}function Yd(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ra(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Nt=a;else e:for(l=e;Nt!==null;){a=Nt;var s=a.sibling,f=a.return;if(Dd(a),a===l){Nt=null;break e}if(s!==null){s.return=f,Nt=s;break e}Nt=f}}}var A1={getCacheForType:function(e){var t=Ot(vt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ot(vt).controller.signal}},w1=typeof WeakMap=="function"?WeakMap:Map,Ie=0,nt=null,Re=null,Ue=0,Ke=0,mn=null,Ll=!1,Wi=!1,Mo=!1,sl=0,ft=0,Ul=0,vi=0,Ro=0,pn=0,ea=0,Wa=null,Pt=null,Bo=!1,yu=0,Vd=0,bu=1/0,vu=null,Hl=null,At=0,ql=null,ta=null,ol=0,Lo=0,Uo=null,Gd=null,er=0,Ho=null;function gn(){return(Ie&2)!==0&&Ue!==0?Ue&-Ue:B.T!==null?Qo():_i()}function Xd(){if(pn===0)if((Ue&536870912)===0||qe){var e=wi;wi<<=1,(wi&3932160)===0&&(wi=262144),pn=e}else pn=536870912;return e=hn.current,e!==null&&(e.flags|=32),pn}function Wt(e,t,l){(e===nt&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(na(e,0),Yl(e,Ue,pn,!1)),Vt(e,l),((Ie&2)===0||e!==nt)&&(e===nt&&((Ie&2)===0&&(vi|=l),ft===4&&Yl(e,Ue,pn,!1)),Gn(e))}function Qd(e,t,l){if((Ie&6)!==0)throw Error(u(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ei(e,t),s=a?N1(e,t):Yo(e,t,!0),f=a;do{if(s===0){Wi&&!a&&Yl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!_1(l)){s=Yo(e,t,!1),f=!1;continue}if(s===2){if(f=t,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;s=Wa;var A=S.current.memoizedState.isDehydrated;if(A&&(na(S,g).flags|=256),g=Yo(S,g,!1),g!==2){if(Mo&&!A){S.errorRecoveryDisabledLanes|=f,vi|=f,s=4;break e}f=Pt,Pt=s,f!==null&&(Pt===null?Pt=f:Pt.push.apply(Pt,f))}s=g}if(f=!1,s!==2)continue}}if(s===1){na(e,0),Yl(e,t,0,!0);break}e:{switch(a=e,f=s,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Yl(a,t,pn,!Ll);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=yu+300-Ct(),10<s)){if(Yl(a,t,pn,!Ll),Wl(a,0,!0)!==0)break e;ol=t,a.timeoutHandle=km(Id.bind(null,a,l,Pt,vu,Bo,t,pn,vi,ea,Ll,f,"Throttled",-0,0),s);break e}Id(a,l,Pt,vu,Bo,t,pn,vi,ea,Ll,f,null,-0,0)}}break}while(!0);Gn(e)}function Id(e,t,l,a,s,f,g,S,A,L,I,$,U,q){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bt},Ud(t,f,$);var me=(f&62914560)===f?yu-Ct():(f&4194048)===f?Vd-Ct():0;if(me=h0($,me),me!==null){ol=f,e.cancelPendingCommit=me(em.bind(null,e,t,f,l,a,s,g,S,A,I,$,null,U,q)),Yl(e,f,g,!L);return}}em(e,t,f,l,a,s,g,S,A)}function _1(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var s=l[a],f=s.getSnapshot;s=s.value;try{if(!cn(f(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yl(e,t,l,a){t&=~Ro,t&=~vi,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var f=31-Ze(s),g=1<<f;a[f]=-1,s&=~g}l!==0&&rn(e,l,t)}function xu(){return(Ie&6)===0?(tr(0),!1):!0}function qo(){if(Re!==null){if(Ke===0)var e=Re.return;else e=Re,Pn=ci=null,to(e),Ii=null,La=0,e=Re;for(;e!==null;)Ed(e.alternate,e),e=e.return;Re=null}}function na(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,F1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ol=0,qo(),nt=e,Re=l=Jn(e.current,null),Ue=t,Ke=0,mn=null,Ll=!1,Wi=ei(e,t),Mo=!1,ea=pn=Ro=vi=Ul=ft=0,Pt=Wa=null,Bo=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Ze(a),f=1<<s;t|=e[s],a&=~f}return sl=t,Yr(),l}function Zd(e,t){ze=null,B.H=Qa,t===Qi||t===Kr?(t=oh(),Ke=3):t===Gs?(t=oh(),Ke=4):Ke=t===bo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mn=t,Re===null&&(ft=1,ou(e,kn(t,e.current)))}function Fd(){var e=hn.current;return e===null?!0:(Ue&4194048)===Ue?An===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?e===An:!1}function Kd(){var e=B.H;return B.H=Qa,e===null?Qa:e}function Jd(){var e=B.A;return B.A=A1,e}function Su(){ft=4,Ll||(Ue&4194048)!==Ue&&hn.current!==null||(Wi=!0),(Ul&134217727)===0&&(vi&134217727)===0||nt===null||Yl(nt,Ue,pn,!1)}function Yo(e,t,l){var a=Ie;Ie|=2;var s=Kd(),f=Jd();(nt!==e||Ue!==t)&&(vu=null,na(e,t)),t=!1;var g=ft;e:do try{if(Ke!==0&&Re!==null){var S=Re,A=mn;switch(Ke){case 8:qo(),g=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(t=!0);var L=Ke;if(Ke=0,mn=null,la(e,S,A,L),l&&Wi){g=0;break e}break;default:L=Ke,Ke=0,mn=null,la(e,S,A,L)}}z1(),g=ft;break}catch(I){Zd(e,I)}while(!0);return t&&e.shellSuspendCounter++,Pn=ci=null,Ie=a,B.H=s,B.A=f,Re===null&&(nt=null,Ue=0,Yr()),g}function z1(){for(;Re!==null;)$d(Re)}function N1(e,t){var l=Ie;Ie|=2;var a=Kd(),s=Jd();nt!==e||Ue!==t?(vu=null,bu=Ct()+500,na(e,t)):Wi=ei(e,t);e:do try{if(Ke!==0&&Re!==null){t=Re;var f=mn;t:switch(Ke){case 1:Ke=0,mn=null,la(e,t,f,1);break;case 2:case 9:if(uh(f)){Ke=0,mn=null,Pd(t);break}t=function(){Ke!==2&&Ke!==9||nt!==e||(Ke=7),Gn(e)},f.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:uh(f)?(Ke=0,mn=null,Pd(t)):(Ke=0,mn=null,la(e,t,f,7));break;case 5:var g=null;switch(Re.tag){case 26:g=Re.memoizedState;case 5:case 27:var S=Re;if(g?Lm(g):S.stateNode.complete){Ke=0,mn=null;var A=S.sibling;if(A!==null)Re=A;else{var L=S.return;L!==null?(Re=L,ku(L)):Re=null}break t}}Ke=0,mn=null,la(e,t,f,5);break;case 6:Ke=0,mn=null,la(e,t,f,6);break;case 8:qo(),ft=6;break e;default:throw Error(u(462))}}D1();break}catch(I){Zd(e,I)}while(!0);return Pn=ci=null,B.H=a,B.A=s,Ie=l,Re!==null?0:(nt=null,Ue=0,Yr(),ft)}function D1(){for(;Re!==null&&!$l();)$d(Re)}function $d(e){var t=Sd(e.alternate,e,sl);e.memoizedProps=e.pendingProps,t===null?ku(e):Re=t}function Pd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=pd(l,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=pd(l,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:to(t);default:Ed(l,t),t=Re=Jf(t,sl),t=Sd(l,t,sl)}e.memoizedProps=e.pendingProps,t===null?ku(e):Re=t}function la(e,t,l,a){Pn=ci=null,to(t),Ii=null,La=0;var s=t.return;try{if(v1(e,s,t,l,Ue)){ft=1,ou(e,kn(l,e.current)),Re=null;return}}catch(f){if(s!==null)throw Re=s,f;ft=1,ou(e,kn(l,e.current)),Re=null;return}t.flags&32768?(qe||a===1?e=!0:Wi||(Ue&536870912)!==0?e=!1:(Ll=e=!0,(a===2||a===9||a===3||a===6)&&(a=hn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Wd(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){Wd(t,Ll);return}e=t.return;var l=k1(t.alternate,t,sl);if(l!==null){Re=l;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);ft===0&&(ft=5)}function Wd(e,t){do{var l=E1(e.alternate,e);if(l!==null){l.flags&=32767,Re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=l}while(e!==null);ft=6,Re=null}function em(e,t,l,a,s,f,g,S,A){e.cancelPendingCommit=null;do Eu();while(At!==0);if((Ie&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=_s,wr(e,l,f,g,S,A),e===nt&&(Re=nt=null,Ue=0),ta=t,ql=e,ol=l,Lo=f,Uo=s,Gd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,R1(ke,function(){return am(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,s=W.p,W.p=2,g=Ie,Ie|=4;try{C1(e,t,l)}finally{Ie=g,W.p=s,B.T=a}}At=1,tm(),nm(),lm()}}function tm(){if(At===1){At=0;var e=ql,t=ta,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=W.p;W.p=2;var s=Ie;Ie|=4;try{Rd(t,e);var f=Wo,g=Yf(e.containerInfo),S=f.focusedElem,A=f.selectionRange;if(g!==S&&S&&S.ownerDocument&&qf(S.ownerDocument.documentElement,S)){if(A!==null&&Es(S)){var L=A.start,I=A.end;if(I===void 0&&(I=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(I,S.value.length);else{var $=S.ownerDocument||document,U=$&&$.defaultView||window;if(U.getSelection){var q=U.getSelection(),me=S.textContent.length,Ce=Math.min(A.start,me),et=A.end===void 0?Ce:Math.min(A.end,me);!q.extend&&Ce>et&&(g=et,et=Ce,Ce=g);var D=Hf(S,Ce),z=Hf(S,et);if(D&&z&&(q.rangeCount!==1||q.anchorNode!==D.node||q.anchorOffset!==D.offset||q.focusNode!==z.node||q.focusOffset!==z.offset)){var R=$.createRange();R.setStart(D.node,D.offset),q.removeAllRanges(),Ce>et?(q.addRange(R),q.extend(z.node,z.offset)):(R.setEnd(z.node,z.offset),q.addRange(R))}}}}for($=[],q=S;q=q.parentNode;)q.nodeType===1&&$.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<$.length;S++){var K=$[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Ru=!!Po,Wo=Po=null}finally{Ie=s,W.p=a,B.T=l}}e.current=t,At=2}}function nm(){if(At===2){At=0;var e=ql,t=ta,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=W.p;W.p=2;var s=Ie;Ie|=4;try{Nd(e,t.alternate,t)}finally{Ie=s,W.p=a,B.T=l}}At=3}}function lm(){if(At===4||At===3){At=0,hl();var e=ql,t=ta,l=ol,a=Gd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?At=5:(At=0,ta=ql=null,im(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Hl=null),gl(l),t=t.stateNode,tt&&typeof tt.onCommitFiberRoot=="function")try{tt.onCommitFiberRoot(yt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,s=W.p,W.p=2,B.T=null;try{for(var f=e.onRecoverableError,g=0;g<a.length;g++){var S=a[g];f(S.value,{componentStack:S.stack})}}finally{B.T=t,W.p=s}}(ol&3)!==0&&Eu(),Gn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Ho?er++:(er=0,Ho=e):er=0,tr(0)}}function im(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function Eu(){return tm(),nm(),lm(),am()}function am(){if(At!==5)return!1;var e=ql,t=Lo;Lo=0;var l=gl(ol),a=B.T,s=W.p;try{W.p=32>l?32:l,B.T=null,l=Uo,Uo=null;var f=ql,g=ol;if(At=0,ta=ql=null,ol=0,(Ie&6)!==0)throw Error(u(331));var S=Ie;if(Ie|=4,qd(f.current),Ld(f,f.current,g,l),Ie=S,tr(0,!1),tt&&typeof tt.onPostCommitFiberRoot=="function")try{tt.onPostCommitFiberRoot(yt,f)}catch{}return!0}finally{W.p=s,B.T=a,im(e,t)}}function rm(e,t,l){t=kn(l,t),t=yo(e.stateNode,t,2),e=jl(e,t,2),e!==null&&(Vt(e,2),Gn(e))}function Je(e,t,l){if(e.tag===3)rm(e,e,l);else for(;t!==null;){if(t.tag===3){rm(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hl===null||!Hl.has(a))){e=kn(l,e),l=ud(2),a=jl(t,l,2),a!==null&&(sd(l,a,t,e),Vt(a,2),Gn(a));break}}t=t.return}}function Vo(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new w1;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(l)||(Mo=!0,s.add(l),e=O1.bind(null,e,t,l),t.then(e,e))}function O1(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,nt===e&&(Ue&l)===l&&(ft===4||ft===3&&(Ue&62914560)===Ue&&300>Ct()-yu?(Ie&2)===0&&na(e,0):Ro|=l,ea===Ue&&(ea=0)),Gn(e)}function um(e,t){t===0&&(t=Ar()),e=ui(e,t),e!==null&&(Vt(e,t),Gn(e))}function j1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),um(e,l)}function M1(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),um(e,l)}function R1(e,t){return In(e,t)}var Cu=null,ia=null,Go=!1,Tu=!1,Xo=!1,Vl=0;function Gn(e){e!==ia&&e.next===null&&(ia===null?Cu=ia=e:ia=ia.next=e),Tu=!0,Go||(Go=!0,L1())}function tr(e,t){if(!Xo&&Tu){Xo=!0;do for(var l=!1,a=Cu;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var f=0;else{var g=a.suspendedLanes,S=a.pingedLanes;f=(1<<31-Ze(42|e)+1)-1,f&=s&~(g&~S),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,fm(a,f))}else f=Ue,f=Wl(a,a===nt?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(f&3)===0||ei(a,f)||(l=!0,fm(a,f));a=a.next}while(l);Xo=!1}}function B1(){sm()}function sm(){Tu=Go=!1;var e=0;Vl!==0&&Z1()&&(e=Vl);for(var t=Ct(),l=null,a=Cu;a!==null;){var s=a.next,f=om(a,t);f===0?(a.next=null,l===null?Cu=s:l.next=s,s===null&&(ia=l)):(l=a,(e!==0||(f&3)!==0)&&(Tu=!0)),a=s}At!==0&&At!==5||tr(e),Vl!==0&&(Vl=0)}function om(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Ze(f),S=1<<g,A=s[g];A===-1?((S&l)===0||(S&a)!==0)&&(s[g]=ya(S,t)):A<=t&&(e.expiredLanes|=S),f&=~S}if(t=nt,l=Ue,l=Wl(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&It(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ei(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&It(a),gl(l)){case 2:case 8:l=ie;break;case 32:l=ke;break;case 268435456:l=Ye;break;default:l=ke}return a=cm.bind(null,e),l=In(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&It(a),e.callbackPriority=2,e.callbackNode=null,2}function cm(e,t){if(At!==0&&At!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Eu()&&e.callbackNode!==l)return null;var a=Ue;return a=Wl(e,e===nt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Qd(e,a,t),om(e,Ct()),e.callbackNode!=null&&e.callbackNode===l?cm.bind(null,e):null)}function fm(e,t){if(Eu())return null;Qd(e,t,!0)}function L1(){K1(function(){(Ie&6)!==0?In(Z,B1):sm()})}function Qo(){if(Vl===0){var e=Gi;e===0&&(e=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),Vl=e}return Vl}function hm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Oi(""+e)}function dm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function U1(e,t,l,a,s){if(t==="submit"&&l&&l.stateNode===s){var f=hm((s[Lt]||null).action),g=a.submitter;g&&(t=(t=g[Lt]||null)?hm(t.formAction):g.getAttribute("formAction"),t!==null&&(f=t,g=null));var S=new Lr("action","action",null,a,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Vl!==0){var A=g?dm(s,g):new FormData(s);co(l,{pending:!0,data:A,method:s.method,action:f},null,A)}}else typeof f=="function"&&(S.preventDefault(),A=g?dm(s,g):new FormData(s),co(l,{pending:!0,data:A,method:s.method,action:f},f,A))},currentTarget:s}]})}}for(var Io=0;Io<ws.length;Io++){var Zo=ws[Io],H1=Zo.toLowerCase(),q1=Zo[0].toUpperCase()+Zo.slice(1);jn(H1,"on"+q1)}jn(Xf,"onAnimationEnd"),jn(Qf,"onAnimationIteration"),jn(If,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(n1,"onTransitionRun"),jn(l1,"onTransitionStart"),jn(i1,"onTransitionCancel"),jn(Zf,"onTransitionEnd"),xl("onMouseEnter",["mouseout","mouseover"]),xl("onMouseLeave",["mouseout","mouseover"]),xl("onPointerEnter",["pointerout","pointerover"]),xl("onPointerLeave",["pointerout","pointerover"]),Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nr="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(" "),Y1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nr));function mm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],s=a.event;a=a.listeners;e:{var f=void 0;if(t)for(var g=a.length-1;0<=g;g--){var S=a[g],A=S.instance,L=S.currentTarget;if(S=S.listener,A!==f&&s.isPropagationStopped())break e;f=S,s.currentTarget=L;try{f(s)}catch(I){qr(I)}s.currentTarget=null,f=A}else for(g=0;g<a.length;g++){if(S=a[g],A=S.instance,L=S.currentTarget,S=S.listener,A!==f&&s.isPropagationStopped())break e;f=S,s.currentTarget=L;try{f(s)}catch(I){qr(I)}s.currentTarget=null,f=A}}}}function Be(e,t){var l=t[yl];l===void 0&&(l=t[yl]=new Set);var a=e+"__bubble";l.has(a)||(pm(t,e,2,!1),l.add(a))}function Fo(e,t,l){var a=0;t&&(a|=4),pm(l,e,a,t)}var Au="_reactListening"+Math.random().toString(36).slice(2);function Ko(e){if(!e[Au]){e[Au]=!0,_r.forEach(function(l){l!=="selectionchange"&&(Y1.has(l)||Fo(l,!1,e),Fo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Au]||(t[Au]=!0,Fo("selectionchange",!1,t))}}function pm(e,t,l,a){switch(Xm(t)){case 2:var s=p0;break;case 8:s=g0;break;default:s=cc}l=s.bind(null,t,l,e),s=void 0,!ji||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function Jo(e,t,l,a,s){var f=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var S=a.stateNode.containerInfo;if(S===s)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=sn(S),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){a=f=g;continue e}S=S.parentNode}}a=a.return}Br(function(){var L=f,I=Al(l),$=[];e:{var U=Ff.get(e);if(U!==void 0){var q=Lr,me=e;switch(e){case"keypress":if(de(l)===0)break e;case"keydown":case"keyup":q=My;break;case"focusin":me="focus",q=bs;break;case"focusout":me="blur",q=bs;break;case"beforeblur":case"afterblur":q=bs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Ef;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=ky;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Ly;break;case Xf:case Qf:case If:q=Ty;break;case Zf:q=Hy;break;case"scroll":case"scrollend":q=xy;break;case"wheel":q=Yy;break;case"copy":case"cut":case"paste":q=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Tf;break;case"toggle":case"beforetoggle":q=Gy}var Ce=(t&4)!==0,et=!Ce&&(e==="scroll"||e==="scrollend"),D=Ce?U!==null?U+"Capture":null:U;Ce=[];for(var z=L,R;z!==null;){var K=z;if(R=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||R===null||D===null||(K=li(z,D),K!=null&&Ce.push(lr(z,K,R))),et)break;z=z.return}0<Ce.length&&(U=new q(U,me,null,l,I),$.push({event:U,listeners:Ce}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",U&&l!==Ca&&(me=l.relatedTarget||l.fromElement)&&(sn(me)||me[Me]))break e;if((q||U)&&(U=I.window===I?I:(U=I.ownerDocument)?U.defaultView||U.parentWindow:window,q?(me=l.relatedTarget||l.toElement,q=L,me=me?sn(me):null,me!==null&&(et=h(me),Ce=me.tag,me!==et||Ce!==5&&Ce!==27&&Ce!==6)&&(me=null)):(q=null,me=L),q!==me)){if(Ce=Ef,K="onMouseLeave",D="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Tf,K="onPointerLeave",D="onPointerEnter",z="pointer"),et=q==null?U:be(q),R=me==null?U:be(me),U=new Ce(K,z+"leave",q,l,I),U.target=et,U.relatedTarget=R,K=null,sn(I)===L&&(Ce=new Ce(D,z+"enter",me,l,I),Ce.target=R,Ce.relatedTarget=et,K=Ce),et=K,q&&me)t:{for(Ce=V1,D=q,z=me,R=0,K=D;K;K=Ce(K))R++;K=0;for(var Se=z;Se;Se=Ce(Se))K++;for(;0<R-K;)D=Ce(D),R--;for(;0<K-R;)z=Ce(z),K--;for(;R--;){if(D===z||z!==null&&D===z.alternate){Ce=D;break t}D=Ce(D),z=Ce(z)}Ce=null}else Ce=null;q!==null&&gm($,U,q,Ce,!1),me!==null&&et!==null&&gm($,et,me,Ce,!0)}}e:{if(U=L?be(L):window,q=U.nodeName&&U.nodeName.toLowerCase(),q==="select"||q==="input"&&U.type==="file")var Xe=jf;else if(Df(U))if(Mf)Xe=Wy;else{Xe=$y;var ye=Jy}else q=U.nodeName,!q||q.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&Ea(L.elementType)&&(Xe=jf):Xe=Py;if(Xe&&(Xe=Xe(e,L))){Of($,Xe,l,I);break e}ye&&ye(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&ti(U,"number",U.value)}switch(ye=L?be(L):window,e){case"focusin":(Df(ye)||ye.contentEditable==="true")&&(Ri=ye,Cs=L,Oa=null);break;case"focusout":Oa=Cs=Ri=null;break;case"mousedown":Ts=!0;break;case"contextmenu":case"mouseup":case"dragend":Ts=!1,Vf($,l,I);break;case"selectionchange":if(t1)break;case"keydown":case"keyup":Vf($,l,I)}var De;if(xs)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Mi?zf(e,l)&&(He="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(He="onCompositionStart");He&&(Af&&l.locale!=="ko"&&(Mi||He!=="onCompositionStart"?He==="onCompositionEnd"&&Mi&&(De=ae()):(oe=I,M="value"in oe?oe.value:oe.textContent,Mi=!0)),ye=wu(L,He),0<ye.length&&(He=new Cf(He,e,null,l,I),$.push({event:He,listeners:ye}),De?He.data=De:(De=Nf(l),De!==null&&(He.data=De)))),(De=Qy?Iy(e,l):Zy(e,l))&&(He=wu(L,"onBeforeInput"),0<He.length&&(ye=new Cf("onBeforeInput","beforeinput",null,l,I),$.push({event:ye,listeners:He}),ye.data=De)),U1($,e,L,l,I)}mm($,t)})}function lr(e,t,l){return{instance:e,listener:t,currentTarget:l}}function wu(e,t){for(var l=t+"Capture",a=[];e!==null;){var s=e,f=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||f===null||(s=li(e,l),s!=null&&a.unshift(lr(e,s,f)),s=li(e,t),s!=null&&a.push(lr(e,s,f))),e.tag===3)return a;e=e.return}return[]}function V1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gm(e,t,l,a,s){for(var f=t._reactName,g=[];l!==null&&l!==a;){var S=l,A=S.alternate,L=S.stateNode;if(S=S.tag,A!==null&&A===a)break;S!==5&&S!==26&&S!==27||L===null||(A=L,s?(L=li(l,f),L!=null&&g.unshift(lr(l,L,A))):s||(L=li(l,f),L!=null&&g.push(lr(l,L,A)))),l=l.return}g.length!==0&&e.push({event:t,listeners:g})}var G1=/\r\n?/g,X1=/\u0000|\uFFFD/g;function ym(e){return(typeof e=="string"?e:""+e).replace(G1,`
49
+ `).replace(X1,"")}function bm(e,t){return t=ym(t),ym(e)===t}function We(e,t,l,a,s,f){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Tl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Tl(e,""+a);break;case"className":Di(e,"class",a);break;case"tabIndex":Di(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Di(e,l,a);break;case"style":Mr(e,a,f);break;case"data":if(t!=="object"){Di(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Oi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 f=="function"&&(l==="formAction"?(t!=="input"&&We(e,t,"name",s.name,s,null),We(e,t,"formEncType",s.formEncType,s,null),We(e,t,"formMethod",s.formMethod,s,null),We(e,t,"formTarget",s.formTarget,s,null)):(We(e,t,"encType",s.encType,s,null),We(e,t,"method",s.method,s,null),We(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Oi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=bt);break;case"onScroll":a!=null&&Be("scroll",e);break;case"onScrollEnd":a!=null&&Be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Oi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Be("beforetoggle",e),Be("toggle",e),Ni(e,"popover",a);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ni(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=ms.get(l)||l,Ni(e,l,a))}}function $o(e,t,l,a,s,f){switch(l){case"style":Mr(e,a,f);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Tl(e,a):(typeof a=="number"||typeof a=="bigint")&&Tl(e,""+a);break;case"onScroll":a!=null&&Be("scroll",e);break;case"onScrollEnd":a!=null&&Be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=bt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zi.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),f=e[Lt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,s),typeof a=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,s);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Ni(e,l,a)}}}function Mt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",e),Be("load",e);var a=!1,s=!1,f;for(f in l)if(l.hasOwnProperty(f)){var g=l[f];if(g!=null)switch(f){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:We(e,t,f,g,l,null)}}s&&We(e,t,"srcSet",l.srcSet,l,null),a&&We(e,t,"src",l.src,l,null);return;case"input":Be("invalid",e);var S=f=g=s=null,A=null,L=null;for(a in l)if(l.hasOwnProperty(a)){var I=l[a];if(I!=null)switch(a){case"name":s=I;break;case"type":g=I;break;case"checked":A=I;break;case"defaultChecked":L=I;break;case"value":f=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:We(e,t,a,I,l,null)}}ka(e,f,S,A,L,g,s,!1);return;case"select":Be("invalid",e),a=g=f=null;for(s in l)if(l.hasOwnProperty(s)&&(S=l[s],S!=null))switch(s){case"value":f=S;break;case"defaultValue":g=S;break;case"multiple":a=S;default:We(e,t,s,S,l,null)}t=f,l=g,e.multiple=!!a,t!=null?Cl(e,!!a,t,!1):l!=null&&Cl(e,!!a,l,!0);return;case"textarea":Be("invalid",e),f=s=a=null;for(g in l)if(l.hasOwnProperty(g)&&(S=l[g],S!=null))switch(g){case"value":a=S;break;case"defaultValue":s=S;break;case"children":f=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:We(e,t,g,S,l,null)}Or(e,a,s,f);return;case"option":for(A in l)if(l.hasOwnProperty(A)&&(a=l[A],a!=null))switch(A){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:We(e,t,A,a,l,null)}return;case"dialog":Be("beforetoggle",e),Be("toggle",e),Be("cancel",e),Be("close",e);break;case"iframe":case"object":Be("load",e);break;case"video":case"audio":for(a=0;a<nr.length;a++)Be(nr[a],e);break;case"image":Be("error",e),Be("load",e);break;case"details":Be("toggle",e);break;case"embed":case"source":case"link":Be("error",e),Be("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(L in l)if(l.hasOwnProperty(L)&&(a=l[L],a!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:We(e,t,L,a,l,null)}return;default:if(Ea(t)){for(I in l)l.hasOwnProperty(I)&&(a=l[I],a!==void 0&&$o(e,t,I,a,l,void 0));return}}for(S in l)l.hasOwnProperty(S)&&(a=l[S],a!=null&&We(e,t,S,a,l,null))}function Q1(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,f=null,g=null,S=null,A=null,L=null,I=null;for(q in l){var $=l[q];if(l.hasOwnProperty(q)&&$!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":A=$;default:a.hasOwnProperty(q)||We(e,t,q,null,a,$)}}for(var U in a){var q=a[U];if($=l[U],a.hasOwnProperty(U)&&(q!=null||$!=null))switch(U){case"type":f=q;break;case"name":s=q;break;case"checked":L=q;break;case"defaultChecked":I=q;break;case"value":g=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:q!==$&&We(e,t,U,q,a,$)}}Sa(e,g,S,A,L,I,f,s);return;case"select":q=g=S=U=null;for(f in l)if(A=l[f],l.hasOwnProperty(f)&&A!=null)switch(f){case"value":break;case"multiple":q=A;default:a.hasOwnProperty(f)||We(e,t,f,null,a,A)}for(s in a)if(f=a[s],A=l[s],a.hasOwnProperty(s)&&(f!=null||A!=null))switch(s){case"value":U=f;break;case"defaultValue":S=f;break;case"multiple":g=f;default:f!==A&&We(e,t,s,f,a,A)}t=S,l=g,a=q,U!=null?Cl(e,!!l,U,!1):!!a!=!!l&&(t!=null?Cl(e,!!l,t,!0):Cl(e,!!l,l?[]:"",!1));return;case"textarea":q=U=null;for(S in l)if(s=l[S],l.hasOwnProperty(S)&&s!=null&&!a.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:We(e,t,S,null,a,s)}for(g in a)if(s=a[g],f=l[g],a.hasOwnProperty(g)&&(s!=null||f!=null))switch(g){case"value":U=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==f&&We(e,t,g,s,a,f)}Dr(e,U,q);return;case"option":for(var me in l)if(U=l[me],l.hasOwnProperty(me)&&U!=null&&!a.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:We(e,t,me,null,a,U)}for(A in a)if(U=a[A],q=l[A],a.hasOwnProperty(A)&&U!==q&&(U!=null||q!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:We(e,t,A,U,a,q)}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 Ce in l)U=l[Ce],l.hasOwnProperty(Ce)&&U!=null&&!a.hasOwnProperty(Ce)&&We(e,t,Ce,null,a,U);for(L in a)if(U=a[L],q=l[L],a.hasOwnProperty(L)&&U!==q&&(U!=null||q!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:We(e,t,L,U,a,q)}return;default:if(Ea(t)){for(var et in l)U=l[et],l.hasOwnProperty(et)&&U!==void 0&&!a.hasOwnProperty(et)&&$o(e,t,et,void 0,a,U);for(I in a)U=a[I],q=l[I],!a.hasOwnProperty(I)||U===q||U===void 0&&q===void 0||$o(e,t,I,U,a,q);return}}for(var D in l)U=l[D],l.hasOwnProperty(D)&&U!=null&&!a.hasOwnProperty(D)&&We(e,t,D,null,a,U);for($ in a)U=a[$],q=l[$],!a.hasOwnProperty($)||U===q||U==null&&q==null||We(e,t,$,U,a,q)}function vm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function I1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var s=l[a],f=s.transferSize,g=s.initiatorType,S=s.duration;if(f&&S&&vm(g)){for(g=0,S=s.responseEnd,a+=1;a<l.length;a++){var A=l[a],L=A.startTime;if(L>S)break;var I=A.transferSize,$=A.initiatorType;I&&vm($)&&(A=A.responseEnd,g+=I*(A<S?1:(S-L)/(A-L)))}if(--a,t+=8*(f+g)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Po=null,Wo=null;function _u(e){return e.nodeType===9?e:e.ownerDocument}function xm(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 Sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ec(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tc=null;function Z1(){var e=window.event;return e&&e.type==="popstate"?e===tc?!1:(tc=e,!0):(tc=null,!1)}var km=typeof setTimeout=="function"?setTimeout:void 0,F1=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,K1=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(e){return Em.resolve(null).then(e).catch(J1)}:km;function J1(e){setTimeout(function(){throw e})}function Gl(e){return e==="head"}function Cm(e,t){var l=t,a=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(s),sa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ir(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ir(l);for(var f=l.firstChild;f;){var g=f.nextSibling,S=f.nodeName;f[un]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=g}}else l==="body"&&ir(e.ownerDocument.body);l=s}while(l);sa(t)}function Tm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":nc(l),Dn(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function $1(e,t,l,a){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[un])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function P1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function Am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function lc(e){return e.data==="$?"||e.data==="$~"}function ic(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function W1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ac=null;function wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return wn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function zm(e,t,l){switch(t=_u(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function ir(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Dn(e)}var _n=new Map,Nm=new Set;function zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=W.d;W.d={f:e0,r:t0,D:n0,C:l0,L:i0,m:a0,X:u0,S:r0,M:s0};function e0(){var e=cl.f(),t=xu();return e||t}function t0(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?Zh(t):cl.r(e)}var aa=typeof document>"u"?null:document;function Dm(e,t,l){var a=aa;if(a&&typeof t=="string"&&t){var s=Ft(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),Nm.has(s)||(Nm.add(s),e={rel:e,crossOrigin:l,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),Mt(t,"link",e),mt(t),a.head.appendChild(t)))}}function n0(e){cl.D(e),Dm("dns-prefetch",e,null)}function l0(e,t){cl.C(e,t),Dm("preconnect",e,t)}function i0(e,t,l){cl.L(e,t,l);var a=aa;if(a&&e&&t){var s='link[rel="preload"][as="'+Ft(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+Ft(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+Ft(l.imageSizes)+'"]')):s+='[href="'+Ft(e)+'"]';var f=s;switch(t){case"style":f=ra(e);break;case"script":f=ua(e)}_n.has(f)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),_n.set(f,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(ar(f))||t==="script"&&a.querySelector(rr(f))||(t=a.createElement("link"),Mt(t,"link",e),mt(t),a.head.appendChild(t)))}}function a0(e,t){cl.m(e,t);var l=aa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Ft(a)+'"][href="'+Ft(e)+'"]',f=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ua(e)}if(!_n.has(f)&&(e=y({rel:"modulepreload",href:e},t),_n.set(f,e),l.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(rr(f)))return}a=l.createElement("link"),Mt(a,"link",e),mt(a),l.head.appendChild(a)}}}function r0(e,t,l){cl.S(e,t,l);var a=aa;if(a&&e){var s=ge(a).hoistableStyles,f=ra(e);t=t||"default";var g=s.get(f);if(!g){var S={loading:0,preload:null};if(g=a.querySelector(ar(f)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=_n.get(f))&&rc(e,l);var A=g=a.createElement("link");mt(A),Mt(A,"link",e),A._p=new Promise(function(L,I){A.onload=L,A.onerror=I}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Nu(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(f,g)}}}function u0(e,t){cl.X(e,t);var l=aa;if(l&&e){var a=ge(l).hoistableScripts,s=ua(e),f=a.get(s);f||(f=l.querySelector(rr(s)),f||(e=y({src:e,async:!0},t),(t=_n.get(s))&&uc(e,t),f=l.createElement("script"),mt(f),Mt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(s,f))}}function s0(e,t){cl.M(e,t);var l=aa;if(l&&e){var a=ge(l).hoistableScripts,s=ua(e),f=a.get(s);f||(f=l.querySelector(rr(s)),f||(e=y({src:e,async:!0,type:"module"},t),(t=_n.get(s))&&uc(e,t),f=l.createElement("script"),mt(f),Mt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},a.set(s,f))}}function Om(e,t,l,a){var s=(s=le.current)?zu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ra(l.href),l=ge(s).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ra(l.href);var f=ge(s).hoistableStyles,g=f.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=s.querySelector(ar(e)))&&!f._p&&(g.instance=f,g.state.loading=5),_n.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_n.set(e,l),f||o0(s,e,l,g.state))),t&&a===null)throw Error(u(528,""));return g}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ua(l),l=ge(s).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ra(e){return'href="'+Ft(e)+'"'}function ar(e){return'link[rel="stylesheet"]['+e+"]"}function jm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function o0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Mt(t,"link",l),mt(t),e.head.appendChild(t))}function ua(e){return'[src="'+Ft(e)+'"]'}function rr(e){return"script[async]"+e}function Mm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ft(l.href)+'"]');if(a)return t.instance=a,mt(a),a;var s=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),mt(a),Mt(a,"style",s),Nu(a,l.precedence,e),t.instance=a;case"stylesheet":s=ra(l.href);var f=e.querySelector(ar(s));if(f)return t.state.loading|=4,t.instance=f,mt(f),f;a=jm(l),(s=_n.get(s))&&rc(a,s),f=(e.ownerDocument||e).createElement("link"),mt(f);var g=f;return g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),Mt(f,"link",a),t.state.loading|=4,Nu(f,l.precedence,e),t.instance=f;case"script":return f=ua(l.src),(s=e.querySelector(rr(f)))?(t.instance=s,mt(s),s):(a=l,(s=_n.get(f))&&(a=y({},l),uc(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),mt(s),Mt(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Nu(a,l.precedence,e));return t.instance}function Nu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,f=s,g=0;g<a.length;g++){var S=a[g];if(S.dataset.precedence===t)f=S;else if(f!==s)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function rc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Du=null;function Rm(e,t,l){if(Du===null){var a=new Map,s=Du=new Map;s.set(l,a)}else s=Du,a=s.get(l),a||(a=new Map,s.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var f=l[s];if(!(f[un]||f[Tt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(t)||"";g=e+g;var S=a.get(g);S?S.push(f):a.set(g,[f])}}return a}function Bm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function c0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=ra(a.href),f=t.querySelector(ar(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ou.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,mt(f);return}f=t.ownerDocument||t,a=jm(a),(s=_n.get(s))&&rc(a,s),f=f.createElement("link"),mt(f);var g=f;g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),Mt(f,"link",a),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ou.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var sc=0;function h0(e,t){return e.stylesheets&&e.count===0&&Mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&sc===0&&(sc=62500*I1());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Mu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>sc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ju=null;function Mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,t.forEach(d0,e),ju=null,Ou.call(e))}function d0(e,t){if(!(t.state.loading&4)){var l=ju.get(e);if(l)var a=l.get(null);else{l=new Map,ju.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<s.length;f++){var g=s[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(l.set(g.dataset.precedence,g),a=g)}a&&l.set(null,a)}s=t.instance,g=s.getAttribute("data-precedence"),f=l.get(g)||a,f===a&&l.set(null,s),l.set(g,s),this.count++,a=Ou.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),f?f.parentNode.insertBefore(s,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var ur={$$typeof:X,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function m0(e,t,l,a,s,f,g,S,A){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=ba(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ba(0),this.hiddenUpdates=ba(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Um(e,t,l,a,s,f,g,S,A,L,I,$){return e=new m0(e,t,l,g,A,L,I,$,S),t=1,f===!0&&(t|=24),f=fn(3,null,null,t),e.current=f,f.stateNode=e,t=qs(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:a,isDehydrated:l,cache:t},Xs(f),e}function Hm(e){return e?(e=Ui,e):Ui}function qm(e,t,l,a,s,f){s=Hm(s),a.context===null?a.context=s:a.pendingContext=s,a=Ol(t),a.payload={element:l},f=f===void 0?null:f,f!==null&&(a.callback=f),l=jl(e,a,t),l!==null&&(Wt(l,e,t),Ha(l,e,t))}function Ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function oc(e,t){Ym(e,t),(e=e.alternate)&&Ym(e,t)}function Vm(e){if(e.tag===13||e.tag===31){var t=ui(e,67108864);t!==null&&Wt(t,e,67108864),oc(e,67108864)}}function Gm(e){if(e.tag===13||e.tag===31){var t=gn();t=va(t);var l=ui(e,t);l!==null&&Wt(l,e,t),oc(e,t)}}var Ru=!0;function p0(e,t,l,a){var s=B.T;B.T=null;var f=W.p;try{W.p=2,cc(e,t,l,a)}finally{W.p=f,B.T=s}}function g0(e,t,l,a){var s=B.T;B.T=null;var f=W.p;try{W.p=8,cc(e,t,l,a)}finally{W.p=f,B.T=s}}function cc(e,t,l,a){if(Ru){var s=fc(a);if(s===null)Jo(e,t,a,Bu,l),Qm(e,a);else if(b0(s,e,t,l,a))a.stopPropagation();else if(Qm(e,a),t&4&&-1<y0.indexOf(e)){for(;s!==null;){var f=vl(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Zn(f.pendingLanes);if(g!==0){var S=f;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var A=1<<31-Ze(g);S.entanglements[1]|=A,g&=~A}Gn(f),(Ie&6)===0&&(bu=Ct()+500,tr(0))}}break;case 31:case 13:S=ui(f,2),S!==null&&Wt(S,f,2),xu(),oc(f,2)}if(f=fc(a),f===null&&Jo(e,t,a,Bu,l),f===s)break;s=f}s!==null&&a.stopPropagation()}else Jo(e,t,a,null,l)}}function fc(e){return e=Al(e),hc(e)}var Bu=null;function hc(e){if(Bu=null,e=sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=c(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Bu=e,null}function Xm(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(dl()){case Z:return 2;case ie:return 8;case ke:case _e:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var dc=!1,Xl=null,Ql=null,Il=null,sr=new Map,or=new Map,Zl=[],y0="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 Qm(e,t){switch(e){case"focusin":case"focusout":Xl=null;break;case"dragenter":case"dragleave":Ql=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function cr(e,t,l,a,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:f,targetContainers:[s]},t!==null&&(t=vl(t),t!==null&&Vm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function b0(e,t,l,a,s){switch(t){case"focusin":return Xl=cr(Xl,e,t,l,a,s),!0;case"dragenter":return Ql=cr(Ql,e,t,l,a,s),!0;case"mouseover":return Il=cr(Il,e,t,l,a,s),!0;case"pointerover":var f=s.pointerId;return sr.set(f,cr(sr.get(f)||null,e,t,l,a,s)),!0;case"gotpointercapture":return f=s.pointerId,or.set(f,cr(or.get(f)||null,e,t,l,a,s)),!0}return!1}function Im(e){var t=sn(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=c(l),t!==null){e.blockedOn=t,$e(e.priority,function(){Gm(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,$e(e.priority,function(){Gm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=fc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ca=a,l.target.dispatchEvent(a),Ca=null}else return t=vl(l),t!==null&&Vm(t),e.blockedOn=l,!1;t.shift()}return!0}function Zm(e,t,l){Lu(e)&&l.delete(t)}function v0(){dc=!1,Xl!==null&&Lu(Xl)&&(Xl=null),Ql!==null&&Lu(Ql)&&(Ql=null),Il!==null&&Lu(Il)&&(Il=null),sr.forEach(Zm),or.forEach(Zm)}function Uu(e,t){e.blockedOn===t&&(e.blockedOn=null,dc||(dc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,v0)))}var Hu=null;function Fm(e){Hu!==e&&(Hu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Hu===e&&(Hu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(hc(a||l)===null)continue;break}var f=vl(l);f!==null&&(e.splice(t,3),t-=3,co(f,{pending:!0,data:s,method:l.method,action:a},a,s))}}))}function sa(e){function t(A){return Uu(A,e)}Xl!==null&&Uu(Xl,e),Ql!==null&&Uu(Ql,e),Il!==null&&Uu(Il,e),sr.forEach(t),or.forEach(t);for(var l=0;l<Zl.length;l++){var a=Zl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Zl.length&&(l=Zl[0],l.blockedOn===null);)Im(l),l.blockedOn===null&&Zl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var s=l[a],f=l[a+1],g=s[Lt]||null;if(typeof f=="function")g||Fm(l);else if(g){var S=null;if(f&&f.hasAttribute("formAction")){if(s=f,g=f[Lt]||null)S=g.formAction;else if(hc(s)!==null)continue}else S=g.action;typeof S=="function"?l[a+1]=S:(l.splice(a,3),a-=3),Fm(l)}}}function Km(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function mc(e){this._internalRoot=e}qu.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,a=gn();qm(l,a,e,t,null,null)},qu.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qm(e.current,2,null,e,null,null),xu(),t[Me]=null}};function qu(e){this._internalRoot=e}qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=_i();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Zl.length&&t!==0&&t<Zl[l].priority;l++);Zl.splice(l,0,e),l===0&&Im(e)}};var Jm=i.version;if(Jm!=="19.2.4")throw Error(u(527,Jm,"19.2.4"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=d(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var x0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yu.isDisabled&&Yu.supportsFiber)try{yt=Yu.inject(x0),tt=Yu}catch{}}return hr.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,a="",s=ld,f=id,g=ad;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Um(e,1,!1,null,null,l,a,null,s,f,g,Km),e[Me]=t.current,Ko(e),new mc(t)},hr.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var a=!1,s="",f=ld,g=id,S=ad,A=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(g=l.onCaughtError),l.onRecoverableError!==void 0&&(S=l.onRecoverableError),l.formState!==void 0&&(A=l.formState)),t=Um(e,1,!0,t,l??null,a,s,A,f,g,S,Km),t.context=Hm(null),l=t.current,a=gn(),a=va(a),s=Ol(a),s.callback=null,jl(l,s,a),l=a,t.current.lanes=l,Vt(t,l),Gn(t),e[Me]=t.current,Ko(e),new qu(t)},hr.version="19.2.4",hr}var rp;function N0(){if(rp)return yc.exports;rp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),yc.exports=z0(),yc.exports}var D0=N0();function O0(n,i){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const j0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R0={};function up(n,i){return(R0.jsx?M0:j0).test(n)}const B0=/[ \t\n\f\r]/g;function L0(n){return typeof n=="object"?n.type==="text"?sp(n.value):!1:sp(n)}function sp(n){return n.replace(B0,"")===""}class Er{constructor(i,r,u){this.normal=r,this.property=i,u&&(this.space=u)}}Er.prototype.normal={};Er.prototype.property={};Er.prototype.space=void 0;function ag(n,i){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new Er(r,u,i)}function Gc(n){return n.toLowerCase()}class nn{constructor(i,r){this.attribute=r,this.property=i}}nn.prototype.attribute="";nn.prototype.booleanish=!1;nn.prototype.boolean=!1;nn.prototype.commaOrSpaceSeparated=!1;nn.prototype.commaSeparated=!1;nn.prototype.defined=!1;nn.prototype.mustUseProperty=!1;nn.prototype.number=!1;nn.prototype.overloadedBoolean=!1;nn.prototype.property="";nn.prototype.spaceSeparated=!1;nn.prototype.space=void 0;let U0=0;const Oe=Ei(),Et=Ei(),Xc=Ei(),ee=Ei(),it=Ei(),da=Ei(),yn=Ei();function Ei(){return 2**++U0}const Qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Et,commaOrSpaceSeparated:yn,commaSeparated:da,number:ee,overloadedBoolean:Xc,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Sc=Object.keys(Qc);class af extends nn{constructor(i,r,u,o){let h=-1;if(super(i,r),op(this,"space",o),typeof u=="number")for(;++h<Sc.length;){const c=Sc[h];op(this,Sc[h],(u&Qc[c])===Qc[c])}}}af.prototype.defined=!0;function op(n,i,r){r&&(n[i]=r)}function pa(n){const i={},r={};for(const[u,o]of Object.entries(n.properties)){const h=new af(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(h.mustUseProperty=!0),i[u]=h,r[Gc(u)]=u,r[Gc(h.attribute)]=u}return new Er(i,r,n.space)}const rg=pa({properties:{ariaActiveDescendant:null,ariaAtomic:Et,ariaAutoComplete:null,ariaBusy:Et,ariaChecked:Et,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:Et,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:Et,ariaFlowTo:it,ariaGrabbed:Et,ariaHasPopup:null,ariaHidden:Et,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:ee,ariaLive:null,ariaModal:Et,ariaMultiLine:Et,ariaMultiSelectable:Et,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Et,ariaReadOnly:Et,ariaRelevant:null,ariaRequired:Et,ariaRoleDescription:it,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Et,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(n,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function ug(n,i){return i in n?n[i]:i}function sg(n,i){return ug(n,i.toLowerCase())}const H0=pa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:da,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:it,autoFocus:Oe,autoPlay:Oe,blocking:it,capture:null,charSet:null,checked:Oe,cite:null,className:it,cols:ee,colSpan:null,content:null,contentEditable:Et,controls:Oe,controlsList:it,coords:ee|da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Xc,draggable:Et,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:it,height:ee,hidden:Xc,high:ee,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:it,itemRef:it,itemScope:Oe,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,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:Oe,optimum:ee,pattern:null,ping:it,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:it,required:Oe,reversed:Oe,rows:ee,rowSpan:ee,sandbox:it,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Et,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Et,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Et,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:sg}),q0=pa({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:yn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:it,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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,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:da,g2:da,glyphName:da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,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:ee,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:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,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:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ug}),og=pa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,i){return"xlink:"+i.slice(5).toLowerCase()}}),cg=pa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sg}),fg=pa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,i){return"xml:"+i.slice(3).toLowerCase()}}),Y0={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"},V0=/[A-Z]/g,cp=/-[a-z]/g,G0=/^data[-\w.:]+$/i;function X0(n,i){const r=Gc(i);let u=i,o=nn;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&G0.test(i)){if(i.charAt(4)==="-"){const h=i.slice(5).replace(cp,I0);u="data"+h.charAt(0).toUpperCase()+h.slice(1)}else{const h=i.slice(4);if(!cp.test(h)){let c=h.replace(V0,Q0);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}o=af}return new o(u,i)}function Q0(n){return"-"+n.toLowerCase()}function I0(n){return n.charAt(1).toUpperCase()}const Z0=ag([rg,H0,og,cg,fg],"html"),rf=ag([rg,q0,og,cg,fg],"svg");function F0(n){return n.join(" ").trim()}var oa={},kc,fp;function K0(){if(fp)return kc;fp=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,h=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,m=/^\s+|\s+$/g,p=`
50
+ `,d="/",b="*",y="",k="comment",x="declaration";function w(Y,N){if(typeof Y!="string")throw new TypeError("First argument must be a string");if(!Y)return[];N=N||{};var P=1,X=1;function se(fe){var te=fe.match(i);te&&(P+=te.length);var B=fe.lastIndexOf(p);X=~B?fe.length-B:X+fe.length}function ce(){var fe={line:P,column:X};return function(te){return te.position=new j(fe),xe(),te}}function j(fe){this.start=fe,this.end={line:P,column:X},this.source=N.source}j.prototype.content=Y;function ne(fe){var te=new Error(N.source+":"+P+":"+X+": "+fe);if(te.reason=fe,te.filename=N.source,te.line=P,te.column=X,te.source=Y,!N.silent)throw te}function pe(fe){var te=fe.exec(Y);if(te){var B=te[0];return se(B),Y=Y.slice(B.length),te}}function xe(){pe(r)}function H(fe){var te;for(fe=fe||[];te=ue();)te!==!1&&fe.push(te);return fe}function ue(){var fe=ce();if(!(d!=Y.charAt(0)||b!=Y.charAt(1))){for(var te=2;y!=Y.charAt(te)&&(b!=Y.charAt(te)||d!=Y.charAt(te+1));)++te;if(te+=2,y===Y.charAt(te-1))return ne("End of comment missing");var B=Y.slice(2,te-2);return X+=2,se(B),Y=Y.slice(te),X+=2,fe({type:k,comment:B})}}function G(){var fe=ce(),te=pe(u);if(te){if(ue(),!pe(o))return ne("property missing ':'");var B=pe(h),W=fe({type:x,property:O(te[0].replace(n,y)),value:B?O(B[0].replace(n,y)):y});return pe(c),W}}function we(){var fe=[];H(fe);for(var te;te=G();)te!==!1&&(fe.push(te),H(fe));return fe}return xe(),we()}function O(Y){return Y?Y.replace(m,y):y}return kc=w,kc}var hp;function J0(){if(hp)return oa;hp=1;var n=oa&&oa.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=r;const i=n(K0());function r(u,o){let h=null;if(!u||typeof u!="string")return h;const c=(0,i.default)(u),m=typeof o=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:b}=p;m?o(d,b,p):b&&(h=h||{},h[d]=b)}),h}return oa}var dr={},dp;function $0(){if(dp)return dr;dp=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,h=function(d){return!d||r.test(d)||n.test(d)},c=function(d,b){return b.toUpperCase()},m=function(d,b){return"".concat(b,"-")},p=function(d,b){return b===void 0&&(b={}),h(d)?d:(d=d.toLowerCase(),b.reactCompat?d=d.replace(o,m):d=d.replace(u,m),d.replace(i,c))};return dr.camelCase=p,dr}var mr,mp;function P0(){if(mp)return mr;mp=1;var n=mr&&mr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},i=n(J0()),r=$0();function u(o,h){var c={};return!o||typeof o!="string"||(0,i.default)(o,function(m,p){m&&p&&(c[(0,r.camelCase)(m,h)]=p)}),c}return u.default=u,mr=u,mr}var W0=P0();const eb=ig(W0),hg=dg("end"),uf=dg("start");function dg(n){return i;function i(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function tb(n){const i=uf(n),r=hg(n);if(i&&r)return{start:i,end:r}}function yr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?pp(n.position):"start"in n||"end"in n?pp(n):"line"in n||"column"in n?Ic(n):""}function Ic(n){return gp(n&&n.line)+":"+gp(n&&n.column)}function pp(n){return Ic(n&&n.start)+"-"+Ic(n&&n.end)}function gp(n){return n&&typeof n=="number"?n:1}class qt extends Error{constructor(i,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",h={},c=!1;if(r&&("line"in r&&"column"in r?h={place:r}:"start"in r&&"end"in r?h={place:r}:"type"in r?h={ancestors:[r],place:r.position}:h={...r}),typeof i=="string"?o=i:!h.cause&&i&&(c=!0,o=i.message,h.cause=i),!h.ruleId&&!h.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?h.ruleId=u:(h.source=u.slice(0,p),h.ruleId=u.slice(p+1))}if(!h.place&&h.ancestors&&h.ancestors){const p=h.ancestors[h.ancestors.length-1];p&&(h.place=p.position)}const m=h.place&&"start"in h.place?h.place.start:h.place;this.ancestors=h.ancestors||void 0,this.cause=h.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=yr(h.place)||"1:1",this.place=h.place||void 0,this.reason=this.message,this.ruleId=h.ruleId||void 0,this.source=h.source||void 0,this.stack=c&&h.cause&&typeof h.cause.stack=="string"?h.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}qt.prototype.file="";qt.prototype.name="";qt.prototype.reason="";qt.prototype.message="";qt.prototype.stack="";qt.prototype.column=void 0;qt.prototype.line=void 0;qt.prototype.ancestors=void 0;qt.prototype.cause=void 0;qt.prototype.fatal=void 0;qt.prototype.place=void 0;qt.prototype.ruleId=void 0;qt.prototype.source=void 0;const sf={}.hasOwnProperty,nb=new Map,lb=/[A-Z]/g,ib=new Set(["table","tbody","thead","tfoot","tr"]),ab=new Set(["td","th"]),mg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rb(n,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=i.filePath||void 0;let u;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=mb(r,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=db(r,i.jsx,i.jsxs)}const o={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:u,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?rf:Z0,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},h=pg(o,n,void 0);return h&&typeof h!="string"?h:o.create(n,o.Fragment,{children:h||void 0},void 0)}function pg(n,i,r){if(i.type==="element")return ub(n,i,r);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return sb(n,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return cb(n,i,r);if(i.type==="mdxjsEsm")return ob(n,i);if(i.type==="root")return fb(n,i,r);if(i.type==="text")return hb(n,i)}function ub(n,i,r){const u=n.schema;let o=u;i.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=rf,n.schema=o),n.ancestors.push(i);const h=yg(n,i.tagName,!1),c=pb(n,i);let m=cf(n,i);return ib.has(i.tagName)&&(m=m.filter(function(p){return typeof p=="string"?!L0(p):!0})),gg(n,c,h,i),of(c,m),n.ancestors.pop(),n.schema=u,n.create(i,h,c,r)}function sb(n,i){if(i.data&&i.data.estree&&n.evaluater){const u=i.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Sr(n,i.position)}function ob(n,i){if(i.data&&i.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(i.data.estree);Sr(n,i.position)}function cb(n,i,r){const u=n.schema;let o=u;i.name==="svg"&&u.space==="html"&&(o=rf,n.schema=o),n.ancestors.push(i);const h=i.name===null?n.Fragment:yg(n,i.name,!0),c=gb(n,i),m=cf(n,i);return gg(n,c,h,i),of(c,m),n.ancestors.pop(),n.schema=u,n.create(i,h,c,r)}function fb(n,i,r){const u={};return of(u,cf(n,i)),n.create(i,n.Fragment,u,r)}function hb(n,i){return i.value}function gg(n,i,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(i.node=u)}function of(n,i){if(i.length>0){const r=i.length>1?i:i[0];r&&(n.children=r)}}function db(n,i,r){return u;function u(o,h,c,m){const d=Array.isArray(c.children)?r:i;return m?d(h,c,m):d(h,c)}}function mb(n,i){return r;function r(u,o,h,c){const m=Array.isArray(h.children),p=uf(u);return i(o,h,c,m,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function pb(n,i){const r={};let u,o;for(o in i.properties)if(o!=="children"&&sf.call(i.properties,o)){const h=yb(n,o,i.properties[o]);if(h){const[c,m]=h;n.tableCellAlignToStyle&&c==="align"&&typeof m=="string"&&ab.has(i.tagName)?u=m:r[c]=m}}if(u){const h=r.style||(r.style={});h[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function gb(n,i){const r={};for(const u of i.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const h=u.data.estree.body[0];h.type;const c=h.expression;c.type;const m=c.properties[0];m.type,Object.assign(r,n.evaluater.evaluateExpression(m.argument))}else Sr(n,i.position);else{const o=u.name;let h;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const m=u.value.data.estree.body[0];m.type,h=n.evaluater.evaluateExpression(m.expression)}else Sr(n,i.position);else h=u.value===null?!0:u.value;r[o]=h}return r}function cf(n,i){const r=[];let u=-1;const o=n.passKeys?new Map:nb;for(;++u<i.children.length;){const h=i.children[u];let c;if(n.passKeys){const p=h.type==="element"?h.tagName:h.type==="mdxJsxFlowElement"||h.type==="mdxJsxTextElement"?h.name:void 0;if(p){const d=o.get(p)||0;c=p+"-"+d,o.set(p,d+1)}}const m=pg(n,h,c);m!==void 0&&r.push(m)}return r}function yb(n,i,r){const u=X0(n.schema,i);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?O0(r):F0(r)),u.property==="style"){let o=typeof r=="object"?r:bb(n,String(r));return n.stylePropertyNameCase==="css"&&(o=vb(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?Y0[u.property]||u.property:u.attribute,r]}}function bb(n,i){try{return eb(i,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,o=new qt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=mg+"#cannot-parse-style-attribute",o}}function yg(n,i,r){let u;if(!r)u={type:"Literal",value:i};else if(i.includes(".")){const o=i.split(".");let h=-1,c;for(;++h<o.length;){const m=up(o[h])?{type:"Identifier",name:o[h]}:{type:"Literal",value:o[h]};c=c?{type:"MemberExpression",object:c,property:m,computed:!!(h&&m.type==="Literal"),optional:!1}:m}u=c}else u=up(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(u.type==="Literal"){const o=u.value;return sf.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);Sr(n)}function Sr(n,i){const r=new qt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=mg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function vb(n){const i={};let r;for(r in n)sf.call(n,r)&&(i[xb(r)]=n[r]);return i}function xb(n){let i=n.replace(lb,Sb);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function Sb(n){return"-"+n.toLowerCase()}const Ec={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"]},kb={};function ff(n,i){const r=kb,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return bg(n,u,o)}function bg(n,i,r){if(Eb(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(i&&"alt"in n&&n.alt)return n.alt;if("children"in n)return yp(n.children,i,r)}return Array.isArray(n)?yp(n,i,r):""}function yp(n,i,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=bg(n[o],i,r);return u.join("")}function Eb(n){return!!(n&&typeof n=="object")}const bp=document.createElement("i");function hf(n){const i="&"+n+";";bp.innerHTML=i;const r=bp.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===i?!1:r}function bn(n,i,r,u){const o=n.length;let h=0,c;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,r=r>0?r:0,u.length<1e4)c=Array.from(u),c.unshift(i,r),n.splice(...c);else for(r&&n.splice(i,r);h<u.length;)c=u.slice(h,h+1e4),c.unshift(i,0),n.splice(...c),h+=1e4,i+=1e4}function zn(n,i){return n.length>0?(bn(n,n.length,0,i),n):i}const vp={}.hasOwnProperty;function vg(n){const i={};let r=-1;for(;++r<n.length;)Cb(i,n[r]);return i}function Cb(n,i){let r;for(r in i){const o=(vp.call(n,r)?n[r]:void 0)||(n[r]={}),h=i[r];let c;if(h)for(c in h){vp.call(o,c)||(o[c]=[]);const m=h[c];Tb(o[c],Array.isArray(m)?m:m?[m]:[])}}}function Tb(n,i){let r=-1;const u=[];for(;++r<i.length;)(i[r].add==="after"?n:u).push(i[r]);bn(n,0,0,u)}function xg(n,i){const r=Number.parseInt(n,i);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 Bn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xt=Jl(/[A-Za-z]/),Ht=Jl(/[\dA-Za-z]/),Ab=Jl(/[#-'*+\--9=?A-Z^-~]/);function Ju(n){return n!==null&&(n<32||n===127)}const Zc=Jl(/\d/),wb=Jl(/[\dA-Fa-f]/),_b=Jl(/[!-/:-@[-`{-~]/);function Ee(n){return n!==null&&n<-2}function lt(n){return n!==null&&(n<0||n===32)}function Le(n){return n===-2||n===-1||n===32}const ls=Jl(new RegExp("\\p{P}|\\p{S}","u")),ki=Jl(/\s/);function Jl(n){return i;function i(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function ga(n){const i=[];let r=-1,u=0,o=0;for(;++r<n.length;){const h=n.charCodeAt(r);let c="";if(h===37&&Ht(n.charCodeAt(r+1))&&Ht(n.charCodeAt(r+2)))o=2;else if(h<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(h))||(c=String.fromCharCode(h));else if(h>55295&&h<57344){const m=n.charCodeAt(r+1);h<56320&&m>56319&&m<57344?(c=String.fromCharCode(h,m),o=1):c="�"}else c=String.fromCharCode(h);c&&(i.push(n.slice(u,r),encodeURIComponent(c)),u=r+o+1,c=""),o&&(r+=o,o=0)}return i.join("")+n.slice(u)}function Ve(n,i,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let h=0;return c;function c(p){return Le(p)?(n.enter(r),m(p)):i(p)}function m(p){return Le(p)&&h++<o?(n.consume(p),m):(n.exit(r),i(p))}}const zb={tokenize:Nb};function Nb(n){const i=n.attempt(this.parser.constructs.contentInitial,u,o);let r;return i;function u(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Ve(n,i,"linePrefix")}function o(m){return n.enter("paragraph"),h(m)}function h(m){const p=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(m)}function c(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return Ee(m)?(n.consume(m),n.exit("chunkText"),h):(n.consume(m),c)}}const Db={tokenize:Ob},xp={tokenize:jb};function Ob(n){const i=this,r=[];let u=0,o,h,c;return m;function m(X){if(u<r.length){const se=r[u];return i.containerState=se[1],n.attempt(se[0].continuation,p,d)(X)}return d(X)}function p(X){if(u++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&P();const se=i.events.length;let ce=se,j;for(;ce--;)if(i.events[ce][0]==="exit"&&i.events[ce][1].type==="chunkFlow"){j=i.events[ce][1].end;break}N(u);let ne=se;for(;ne<i.events.length;)i.events[ne][1].end={...j},ne++;return bn(i.events,ce+1,0,i.events.slice(se)),i.events.length=ne,d(X)}return m(X)}function d(X){if(u===r.length){if(!o)return k(X);if(o.currentConstruct&&o.currentConstruct.concrete)return w(X);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},n.check(xp,b,y)(X)}function b(X){return o&&P(),N(u),k(X)}function y(X){return i.parser.lazy[i.now().line]=u!==r.length,c=i.now().offset,w(X)}function k(X){return i.containerState={},n.attempt(xp,x,w)(X)}function x(X){return u++,r.push([i.currentConstruct,i.containerState]),k(X)}function w(X){if(X===null){o&&P(),N(0),n.consume(X);return}return o=o||i.parser.flow(i.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:h}),O(X)}function O(X){if(X===null){Y(n.exit("chunkFlow"),!0),N(0),n.consume(X);return}return Ee(X)?(n.consume(X),Y(n.exit("chunkFlow")),u=0,i.interrupt=void 0,m):(n.consume(X),O)}function Y(X,se){const ce=i.sliceStream(X);if(se&&ce.push(null),X.previous=h,h&&(h.next=X),h=X,o.defineSkip(X.start),o.write(ce),i.parser.lazy[X.start.line]){let j=o.events.length;for(;j--;)if(o.events[j][1].start.offset<c&&(!o.events[j][1].end||o.events[j][1].end.offset>c))return;const ne=i.events.length;let pe=ne,xe,H;for(;pe--;)if(i.events[pe][0]==="exit"&&i.events[pe][1].type==="chunkFlow"){if(xe){H=i.events[pe][1].end;break}xe=!0}for(N(u),j=ne;j<i.events.length;)i.events[j][1].end={...H},j++;bn(i.events,pe+1,0,i.events.slice(ne)),i.events.length=j}}function N(X){let se=r.length;for(;se-- >X;){const ce=r[se];i.containerState=ce[1],ce[0].exit.call(i,n)}r.length=X}function P(){o.write([null]),h=void 0,o=void 0,i.containerState._closeFlow=void 0}}function jb(n,i,r){return Ve(n,n.attempt(this.parser.constructs.document,i,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ma(n){if(n===null||lt(n)||ki(n))return 1;if(ls(n))return 2}function is(n,i,r){const u=[];let o=-1;for(;++o<n.length;){const h=n[o].resolveAll;h&&!u.includes(h)&&(i=h(i,r),u.push(h))}return i}const Fc={name:"attention",resolveAll:Mb,tokenize:Rb};function Mb(n,i){let r=-1,u,o,h,c,m,p,d,b;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&i.sliceSerialize(n[u][1]).charCodeAt(0)===i.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const y={...n[u][1].end},k={...n[r][1].start};Sp(y,-p),Sp(k,p),c={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},m={type:p>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:k},h={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},o={type:p>1?"strong":"emphasis",start:{...c.start},end:{...m.end}},n[u][1].end={...c.start},n[r][1].start={...m.end},d=[],n[u][1].end.offset-n[u][1].start.offset&&(d=zn(d,[["enter",n[u][1],i],["exit",n[u][1],i]])),d=zn(d,[["enter",o,i],["enter",c,i],["exit",c,i],["enter",h,i]]),d=zn(d,is(i.parser.constructs.insideSpan.null,n.slice(u+1,r),i)),d=zn(d,[["exit",h,i],["enter",m,i],["exit",m,i],["exit",o,i]]),n[r][1].end.offset-n[r][1].start.offset?(b=2,d=zn(d,[["enter",n[r][1],i],["exit",n[r][1],i]])):b=0,bn(n,u-1,r-u+3,d),r=u+d.length-b-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function Rb(n,i){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=ma(u);let h;return c;function c(p){return h=p,n.enter("attentionSequence"),m(p)}function m(p){if(p===h)return n.consume(p),m;const d=n.exit("attentionSequence"),b=ma(p),y=!b||b===2&&o||r.includes(p),k=!o||o===2&&b||r.includes(u);return d._open=!!(h===42?y:y&&(o||!k)),d._close=!!(h===42?k:k&&(b||!y)),i(p)}}function Sp(n,i){n.column+=i,n.offset+=i,n._bufferIndex+=i}const Bb={name:"autolink",tokenize:Lb};function Lb(n,i,r){let u=0;return o;function o(x){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),h}function h(x){return Xt(x)?(n.consume(x),c):x===64?r(x):d(x)}function c(x){return x===43||x===45||x===46||Ht(x)?(u=1,m(x)):d(x)}function m(x){return x===58?(n.consume(x),u=0,p):(x===43||x===45||x===46||Ht(x))&&u++<32?(n.consume(x),m):(u=0,d(x))}function p(x){return x===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),i):x===null||x===32||x===60||Ju(x)?r(x):(n.consume(x),p)}function d(x){return x===64?(n.consume(x),b):Ab(x)?(n.consume(x),d):r(x)}function b(x){return Ht(x)?y(x):r(x)}function y(x){return x===46?(n.consume(x),u=0,b):x===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(x),n.exit("autolinkMarker"),n.exit("autolink"),i):k(x)}function k(x){if((x===45||Ht(x))&&u++<63){const w=x===45?k:y;return n.consume(x),w}return r(x)}}const Cr={partial:!0,tokenize:Ub};function Ub(n,i,r){return u;function u(h){return Le(h)?Ve(n,o,"linePrefix")(h):o(h)}function o(h){return h===null||Ee(h)?i(h):r(h)}}const Sg={continuation:{tokenize:qb},exit:Yb,name:"blockQuote",tokenize:Hb};function Hb(n,i,r){const u=this;return o;function o(c){if(c===62){const m=u.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),h}return r(c)}function h(c){return Le(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),i):(n.exit("blockQuotePrefix"),i(c))}}function qb(n,i,r){const u=this;return o;function o(c){return Le(c)?Ve(n,h,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):h(c)}function h(c){return n.attempt(Sg,i,r)(c)}}function Yb(n){n.exit("blockQuote")}const kg={name:"characterEscape",tokenize:Vb};function Vb(n,i,r){return u;function u(h){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(h),n.exit("escapeMarker"),o}function o(h){return _b(h)?(n.enter("characterEscapeValue"),n.consume(h),n.exit("characterEscapeValue"),n.exit("characterEscape"),i):r(h)}}const Eg={name:"characterReference",tokenize:Gb};function Gb(n,i,r){const u=this;let o=0,h,c;return m;function m(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),d):(n.enter("characterReferenceValue"),h=31,c=Ht,b(y))}function d(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),h=6,c=wb,b):(n.enter("characterReferenceValue"),h=7,c=Zc,b(y))}function b(y){if(y===59&&o){const k=n.exit("characterReferenceValue");return c===Ht&&!hf(u.sliceSerialize(k))?r(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),i)}return c(y)&&o++<h?(n.consume(y),b):r(y)}}const kp={partial:!0,tokenize:Qb},Ep={concrete:!0,name:"codeFenced",tokenize:Xb};function Xb(n,i,r){const u=this,o={partial:!0,tokenize:ce};let h=0,c=0,m;return p;function p(j){return d(j)}function d(j){const ne=u.events[u.events.length-1];return h=ne&&ne[1].type==="linePrefix"?ne[2].sliceSerialize(ne[1],!0).length:0,m=j,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(j)}function b(j){return j===m?(c++,n.consume(j),b):c<3?r(j):(n.exit("codeFencedFenceSequence"),Le(j)?Ve(n,y,"whitespace")(j):y(j))}function y(j){return j===null||Ee(j)?(n.exit("codeFencedFence"),u.interrupt?i(j):n.check(kp,O,se)(j)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===null||Ee(j)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(j)):Le(j)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ve(n,x,"whitespace")(j)):j===96&&j===m?r(j):(n.consume(j),k)}function x(j){return j===null||Ee(j)?y(j):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(j))}function w(j){return j===null||Ee(j)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(j)):j===96&&j===m?r(j):(n.consume(j),w)}function O(j){return n.attempt(o,se,Y)(j)}function Y(j){return n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),N}function N(j){return h>0&&Le(j)?Ve(n,P,"linePrefix",h+1)(j):P(j)}function P(j){return j===null||Ee(j)?n.check(kp,O,se)(j):(n.enter("codeFlowValue"),X(j))}function X(j){return j===null||Ee(j)?(n.exit("codeFlowValue"),P(j)):(n.consume(j),X)}function se(j){return n.exit("codeFenced"),i(j)}function ce(j,ne,pe){let xe=0;return H;function H(te){return j.enter("lineEnding"),j.consume(te),j.exit("lineEnding"),ue}function ue(te){return j.enter("codeFencedFence"),Le(te)?Ve(j,G,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):G(te)}function G(te){return te===m?(j.enter("codeFencedFenceSequence"),we(te)):pe(te)}function we(te){return te===m?(xe++,j.consume(te),we):xe>=c?(j.exit("codeFencedFenceSequence"),Le(te)?Ve(j,fe,"whitespace")(te):fe(te)):pe(te)}function fe(te){return te===null||Ee(te)?(j.exit("codeFencedFence"),ne(te)):pe(te)}}}function Qb(n,i,r){const u=this;return o;function o(c){return c===null?r(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),h)}function h(c){return u.parser.lazy[u.now().line]?r(c):i(c)}}const Cc={name:"codeIndented",tokenize:Zb},Ib={partial:!0,tokenize:Fb};function Zb(n,i,r){const u=this;return o;function o(d){return n.enter("codeIndented"),Ve(n,h,"linePrefix",5)(d)}function h(d){const b=u.events[u.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(d):r(d)}function c(d){return d===null?p(d):Ee(d)?n.attempt(Ib,c,p)(d):(n.enter("codeFlowValue"),m(d))}function m(d){return d===null||Ee(d)?(n.exit("codeFlowValue"),c(d)):(n.consume(d),m)}function p(d){return n.exit("codeIndented"),i(d)}}function Fb(n,i,r){const u=this;return o;function o(c){return u.parser.lazy[u.now().line]?r(c):Ee(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):Ve(n,h,"linePrefix",5)(c)}function h(c){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?i(c):Ee(c)?o(c):r(c)}}const Kb={name:"codeText",previous:$b,resolve:Jb,tokenize:Pb};function Jb(n){let i=n.length-4,r=3,u,o;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(u=r;++u<i;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[i][1].type="codeTextPadding",r+=2,i-=2;break}}for(u=r-1,i++;++u<=i;)o===void 0?u!==i&&n[u][1].type!=="lineEnding"&&(o=u):(u===i||n[u][1].type==="lineEnding")&&(n[o][1].type="codeTextData",u!==o+2&&(n[o][1].end=n[u-1][1].end,n.splice(o+2,u-o-2),i-=u-o-2,u=o+2),o=void 0);return n}function $b(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Pb(n,i,r){let u=0,o,h;return c;function c(y){return n.enter("codeText"),n.enter("codeTextSequence"),m(y)}function m(y){return y===96?(n.consume(y),u++,m):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?r(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(h=n.enter("codeTextSequence"),o=0,b(y)):Ee(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||Ee(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),d)}function b(y){return y===96?(n.consume(y),o++,b):o===u?(n.exit("codeTextSequence"),n.exit("codeText"),i(y)):(h.type="codeTextData",d(y))}}class Wb{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(i,u):i>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(i,r,u){const o=r||0;this.setCursor(Math.trunc(i));const h=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&pr(this.left,u),h.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),pr(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),pr(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const r=this.left.splice(i,Number.POSITIVE_INFINITY);pr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);pr(this.left,r.reverse())}}}function pr(n,i){let r=0;if(i.length<1e4)n.push(...i);else for(;r<i.length;)n.push(...i.slice(r,r+1e4)),r+=1e4}function Cg(n){const i={};let r=-1,u,o,h,c,m,p,d;const b=new Wb(n);for(;++r<b.length;){for(;r in i;)r=i[r];if(u=b.get(r),r&&u[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,h=0,h<p.length&&p[h][1].type==="lineEndingBlank"&&(h+=2),h<p.length&&p[h][1].type==="content"))for(;++h<p.length&&p[h][1].type!=="content";)p[h][1].type==="chunkText"&&(p[h][1]._isInFirstContentOfListItem=!0,h++);if(u[0]==="enter")u[1].contentType&&(Object.assign(i,ev(b,r)),r=i[r],d=!0);else if(u[1]._container){for(h=r,o=void 0;h--;)if(c=b.get(h),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=h);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(u[1].end={...b.get(o)[1].start},m=b.slice(o,r),m.unshift(u),b.splice(o,r-o+1,m))}}return bn(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!d}function ev(n,i){const r=n.get(i)[1],u=n.get(i)[2];let o=i-1;const h=[];let c=r._tokenizer;c||(c=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const m=c.events,p=[],d={};let b,y,k=-1,x=r,w=0,O=0;const Y=[O];for(;x;){for(;n.get(++o)[1]!==x;);h.push(o),x._tokenizer||(b=u.sliceStream(x),x.next||b.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=r;++k<m.length;)m[k][0]==="exit"&&m[k-1][0]==="enter"&&m[k][1].type===m[k-1][1].type&&m[k][1].start.line!==m[k][1].end.line&&(O=k+1,Y.push(O),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):Y.pop(),k=Y.length;k--;){const N=m.slice(Y[k],Y[k+1]),P=h.pop();p.push([P,P+N.length-1]),n.splice(P,2,N)}for(p.reverse(),k=-1;++k<p.length;)d[w+p[k][0]]=w+p[k][1],w+=p[k][1]-p[k][0]-1;return d}const tv={resolve:lv,tokenize:iv},nv={partial:!0,tokenize:av};function lv(n){return Cg(n),n}function iv(n,i){let r;return u;function u(m){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?h(m):Ee(m)?n.check(nv,c,h)(m):(n.consume(m),o)}function h(m){return n.exit("chunkContent"),n.exit("content"),i(m)}function c(m){return n.consume(m),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function av(n,i,r){const u=this;return o;function o(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Ve(n,h,"linePrefix")}function h(c){if(c===null||Ee(c))return r(c);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?i(c):n.interrupt(u.parser.constructs.flow,r,i)(c)}}function Tg(n,i,r,u,o,h,c,m,p){const d=p||Number.POSITIVE_INFINITY;let b=0;return y;function y(N){return N===60?(n.enter(u),n.enter(o),n.enter(h),n.consume(N),n.exit(h),k):N===null||N===32||N===41||Ju(N)?r(N):(n.enter(u),n.enter(c),n.enter(m),n.enter("chunkString",{contentType:"string"}),O(N))}function k(N){return N===62?(n.enter(h),n.consume(N),n.exit(h),n.exit(o),n.exit(u),i):(n.enter(m),n.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===62?(n.exit("chunkString"),n.exit(m),k(N)):N===null||N===60||Ee(N)?r(N):(n.consume(N),N===92?w:x)}function w(N){return N===60||N===62||N===92?(n.consume(N),x):x(N)}function O(N){return!b&&(N===null||N===41||lt(N))?(n.exit("chunkString"),n.exit(m),n.exit(c),n.exit(u),i(N)):b<d&&N===40?(n.consume(N),b++,O):N===41?(n.consume(N),b--,O):N===null||N===32||N===40||Ju(N)?r(N):(n.consume(N),N===92?Y:O)}function Y(N){return N===40||N===41||N===92?(n.consume(N),O):O(N)}}function Ag(n,i,r,u,o,h){const c=this;let m=0,p;return d;function d(x){return n.enter(u),n.enter(o),n.consume(x),n.exit(o),n.enter(h),b}function b(x){return m>999||x===null||x===91||x===93&&!p||x===94&&!m&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(n.exit(h),n.enter(o),n.consume(x),n.exit(o),n.exit(u),i):Ee(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||Ee(x)||m++>999?(n.exit("chunkString"),b(x)):(n.consume(x),p||(p=!Le(x)),x===92?k:y)}function k(x){return x===91||x===92||x===93?(n.consume(x),m++,y):y(x)}}function wg(n,i,r,u,o,h){let c;return m;function m(k){return k===34||k===39||k===40?(n.enter(u),n.enter(o),n.consume(k),n.exit(o),c=k===40?41:k,p):r(k)}function p(k){return k===c?(n.enter(o),n.consume(k),n.exit(o),n.exit(u),i):(n.enter(h),d(k))}function d(k){return k===c?(n.exit(h),p(c)):k===null?r(k):Ee(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),Ve(n,d,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===c||k===null||Ee(k)?(n.exit("chunkString"),d(k)):(n.consume(k),k===92?y:b)}function y(k){return k===c||k===92?(n.consume(k),b):b(k)}}function br(n,i){let r;return u;function u(o){return Ee(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),r=!0,u):Le(o)?Ve(n,u,r?"linePrefix":"lineSuffix")(o):i(o)}}const rv={name:"definition",tokenize:sv},uv={partial:!0,tokenize:ov};function sv(n,i,r){const u=this;let o;return h;function h(x){return n.enter("definition"),c(x)}function c(x){return Ag.call(u,n,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function m(x){return o=Bn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),x===58?(n.enter("definitionMarker"),n.consume(x),n.exit("definitionMarker"),p):r(x)}function p(x){return lt(x)?br(n,d)(x):d(x)}function d(x){return Tg(n,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function b(x){return n.attempt(uv,y,y)(x)}function y(x){return Le(x)?Ve(n,k,"whitespace")(x):k(x)}function k(x){return x===null||Ee(x)?(n.exit("definition"),u.parser.defined.push(o),i(x)):r(x)}}function ov(n,i,r){return u;function u(m){return lt(m)?br(n,o)(m):r(m)}function o(m){return wg(n,h,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function h(m){return Le(m)?Ve(n,c,"whitespace")(m):c(m)}function c(m){return m===null||Ee(m)?i(m):r(m)}}const cv={name:"hardBreakEscape",tokenize:fv};function fv(n,i,r){return u;function u(h){return n.enter("hardBreakEscape"),n.consume(h),o}function o(h){return Ee(h)?(n.exit("hardBreakEscape"),i(h)):r(h)}}const hv={name:"headingAtx",resolve:dv,tokenize:mv};function dv(n,i){let r=n.length-2,u=3,o,h;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},h={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},bn(n,u,r-u+1,[["enter",o,i],["enter",h,i],["exit",h,i],["exit",o,i]])),n}function mv(n,i,r){let u=0;return o;function o(b){return n.enter("atxHeading"),h(b)}function h(b){return n.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&u++<6?(n.consume(b),c):b===null||lt(b)?(n.exit("atxHeadingSequence"),m(b)):r(b)}function m(b){return b===35?(n.enter("atxHeadingSequence"),p(b)):b===null||Ee(b)?(n.exit("atxHeading"),i(b)):Le(b)?Ve(n,m,"whitespace")(b):(n.enter("atxHeadingText"),d(b))}function p(b){return b===35?(n.consume(b),p):(n.exit("atxHeadingSequence"),m(b))}function d(b){return b===null||b===35||lt(b)?(n.exit("atxHeadingText"),m(b)):(n.consume(b),d)}}const pv=["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"],Cp=["pre","script","style","textarea"],gv={concrete:!0,name:"htmlFlow",resolveTo:vv,tokenize:xv},yv={partial:!0,tokenize:kv},bv={partial:!0,tokenize:Sv};function vv(n){let i=n.length;for(;i--&&!(n[i][0]==="enter"&&n[i][1].type==="htmlFlow"););return i>1&&n[i-2][1].type==="linePrefix"&&(n[i][1].start=n[i-2][1].start,n[i+1][1].start=n[i-2][1].start,n.splice(i-2,2)),n}function xv(n,i,r){const u=this;let o,h,c,m,p;return d;function d(E){return b(E)}function b(E){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(E),y}function y(E){return E===33?(n.consume(E),k):E===47?(n.consume(E),h=!0,O):E===63?(n.consume(E),o=3,u.interrupt?i:T):Xt(E)?(n.consume(E),c=String.fromCharCode(E),Y):r(E)}function k(E){return E===45?(n.consume(E),o=2,x):E===91?(n.consume(E),o=5,m=0,w):Xt(E)?(n.consume(E),o=4,u.interrupt?i:T):r(E)}function x(E){return E===45?(n.consume(E),u.interrupt?i:T):r(E)}function w(E){const re="CDATA[";return E===re.charCodeAt(m++)?(n.consume(E),m===re.length?u.interrupt?i:G:w):r(E)}function O(E){return Xt(E)?(n.consume(E),c=String.fromCharCode(E),Y):r(E)}function Y(E){if(E===null||E===47||E===62||lt(E)){const re=E===47,F=c.toLowerCase();return!re&&!h&&Cp.includes(F)?(o=1,u.interrupt?i(E):G(E)):pv.includes(c.toLowerCase())?(o=6,re?(n.consume(E),N):u.interrupt?i(E):G(E)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(E):h?P(E):X(E))}return E===45||Ht(E)?(n.consume(E),c+=String.fromCharCode(E),Y):r(E)}function N(E){return E===62?(n.consume(E),u.interrupt?i:G):r(E)}function P(E){return Le(E)?(n.consume(E),P):H(E)}function X(E){return E===47?(n.consume(E),H):E===58||E===95||Xt(E)?(n.consume(E),se):Le(E)?(n.consume(E),X):H(E)}function se(E){return E===45||E===46||E===58||E===95||Ht(E)?(n.consume(E),se):ce(E)}function ce(E){return E===61?(n.consume(E),j):Le(E)?(n.consume(E),ce):X(E)}function j(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),p=E,ne):Le(E)?(n.consume(E),j):pe(E)}function ne(E){return E===p?(n.consume(E),p=null,xe):E===null||Ee(E)?r(E):(n.consume(E),ne)}function pe(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||lt(E)?ce(E):(n.consume(E),pe)}function xe(E){return E===47||E===62||Le(E)?X(E):r(E)}function H(E){return E===62?(n.consume(E),ue):r(E)}function ue(E){return E===null||Ee(E)?G(E):Le(E)?(n.consume(E),ue):r(E)}function G(E){return E===45&&o===2?(n.consume(E),B):E===60&&o===1?(n.consume(E),W):E===62&&o===4?(n.consume(E),_):E===63&&o===3?(n.consume(E),T):E===93&&o===5?(n.consume(E),Te):Ee(E)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(yv,Q,we)(E)):E===null||Ee(E)?(n.exit("htmlFlowData"),we(E)):(n.consume(E),G)}function we(E){return n.check(bv,fe,Q)(E)}function fe(E){return n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),te}function te(E){return E===null||Ee(E)?we(E):(n.enter("htmlFlowData"),G(E))}function B(E){return E===45?(n.consume(E),T):G(E)}function W(E){return E===47?(n.consume(E),c="",he):G(E)}function he(E){if(E===62){const re=c.toLowerCase();return Cp.includes(re)?(n.consume(E),_):G(E)}return Xt(E)&&c.length<8?(n.consume(E),c+=String.fromCharCode(E),he):G(E)}function Te(E){return E===93?(n.consume(E),T):G(E)}function T(E){return E===62?(n.consume(E),_):E===45&&o===2?(n.consume(E),T):G(E)}function _(E){return E===null||Ee(E)?(n.exit("htmlFlowData"),Q(E)):(n.consume(E),_)}function Q(E){return n.exit("htmlFlow"),i(E)}}function Sv(n,i,r){const u=this;return o;function o(c){return Ee(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),h):r(c)}function h(c){return u.parser.lazy[u.now().line]?r(c):i(c)}}function kv(n,i,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(Cr,i,r)}}const Ev={name:"htmlText",tokenize:Cv};function Cv(n,i,r){const u=this;let o,h,c;return m;function m(T){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(T),p}function p(T){return T===33?(n.consume(T),d):T===47?(n.consume(T),ce):T===63?(n.consume(T),X):Xt(T)?(n.consume(T),pe):r(T)}function d(T){return T===45?(n.consume(T),b):T===91?(n.consume(T),h=0,w):Xt(T)?(n.consume(T),P):r(T)}function b(T){return T===45?(n.consume(T),x):r(T)}function y(T){return T===null?r(T):T===45?(n.consume(T),k):Ee(T)?(c=y,W(T)):(n.consume(T),y)}function k(T){return T===45?(n.consume(T),x):y(T)}function x(T){return T===62?B(T):T===45?k(T):y(T)}function w(T){const _="CDATA[";return T===_.charCodeAt(h++)?(n.consume(T),h===_.length?O:w):r(T)}function O(T){return T===null?r(T):T===93?(n.consume(T),Y):Ee(T)?(c=O,W(T)):(n.consume(T),O)}function Y(T){return T===93?(n.consume(T),N):O(T)}function N(T){return T===62?B(T):T===93?(n.consume(T),N):O(T)}function P(T){return T===null||T===62?B(T):Ee(T)?(c=P,W(T)):(n.consume(T),P)}function X(T){return T===null?r(T):T===63?(n.consume(T),se):Ee(T)?(c=X,W(T)):(n.consume(T),X)}function se(T){return T===62?B(T):X(T)}function ce(T){return Xt(T)?(n.consume(T),j):r(T)}function j(T){return T===45||Ht(T)?(n.consume(T),j):ne(T)}function ne(T){return Ee(T)?(c=ne,W(T)):Le(T)?(n.consume(T),ne):B(T)}function pe(T){return T===45||Ht(T)?(n.consume(T),pe):T===47||T===62||lt(T)?xe(T):r(T)}function xe(T){return T===47?(n.consume(T),B):T===58||T===95||Xt(T)?(n.consume(T),H):Ee(T)?(c=xe,W(T)):Le(T)?(n.consume(T),xe):B(T)}function H(T){return T===45||T===46||T===58||T===95||Ht(T)?(n.consume(T),H):ue(T)}function ue(T){return T===61?(n.consume(T),G):Ee(T)?(c=ue,W(T)):Le(T)?(n.consume(T),ue):xe(T)}function G(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(n.consume(T),o=T,we):Ee(T)?(c=G,W(T)):Le(T)?(n.consume(T),G):(n.consume(T),fe)}function we(T){return T===o?(n.consume(T),o=void 0,te):T===null?r(T):Ee(T)?(c=we,W(T)):(n.consume(T),we)}function fe(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||lt(T)?xe(T):(n.consume(T),fe)}function te(T){return T===47||T===62||lt(T)?xe(T):r(T)}function B(T){return T===62?(n.consume(T),n.exit("htmlTextData"),n.exit("htmlText"),i):r(T)}function W(T){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(T),n.exit("lineEnding"),he}function he(T){return Le(T)?Ve(n,Te,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):Te(T)}function Te(T){return n.enter("htmlTextData"),c(T)}}const df={name:"labelEnd",resolveAll:_v,resolveTo:zv,tokenize:Nv},Tv={tokenize:Dv},Av={tokenize:Ov},wv={tokenize:jv};function _v(n){let i=-1;const r=[];for(;++i<n.length;){const u=n[i][1];if(r.push(n[i]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",i+=o}}return n.length!==r.length&&bn(n,0,n.length,r),n}function zv(n,i){let r=n.length,u=0,o,h,c,m;for(;r--;)if(o=n[r][1],h){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(n[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(h=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(c=r);const p={type:n[h][1].type==="labelLink"?"link":"image",start:{...n[h][1].start},end:{...n[n.length-1][1].end}},d={type:"label",start:{...n[h][1].start},end:{...n[c][1].end}},b={type:"labelText",start:{...n[h+u+2][1].end},end:{...n[c-2][1].start}};return m=[["enter",p,i],["enter",d,i]],m=zn(m,n.slice(h+1,h+u+3)),m=zn(m,[["enter",b,i]]),m=zn(m,is(i.parser.constructs.insideSpan.null,n.slice(h+u+4,c-3),i)),m=zn(m,[["exit",b,i],n[c-2],n[c-1],["exit",d,i]]),m=zn(m,n.slice(c+1)),m=zn(m,[["exit",p,i]]),bn(n,h,n.length,m),n}function Nv(n,i,r){const u=this;let o=u.events.length,h,c;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){h=u.events[o][1];break}return m;function m(k){return h?h._inactive?y(k):(c=u.parser.defined.includes(Bn(u.sliceSerialize({start:h.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),p):r(k)}function p(k){return k===40?n.attempt(Tv,b,c?b:y)(k):k===91?n.attempt(Av,b,c?d:y)(k):c?b(k):y(k)}function d(k){return n.attempt(wv,b,y)(k)}function b(k){return i(k)}function y(k){return h._balanced=!0,r(k)}}function Dv(n,i,r){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),o}function o(y){return lt(y)?br(n,h)(y):h(y)}function h(y){return y===41?b(y):Tg(n,c,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return lt(y)?br(n,p)(y):b(y)}function m(y){return r(y)}function p(y){return y===34||y===39||y===40?wg(n,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function d(y){return lt(y)?br(n,b)(y):b(y)}function b(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),i):r(y)}}function Ov(n,i,r){const u=this;return o;function o(m){return Ag.call(u,n,h,c,"reference","referenceMarker","referenceString")(m)}function h(m){return u.parser.defined.includes(Bn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?i(m):r(m)}function c(m){return r(m)}}function jv(n,i,r){return u;function u(h){return n.enter("reference"),n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),o}function o(h){return h===93?(n.enter("referenceMarker"),n.consume(h),n.exit("referenceMarker"),n.exit("reference"),i):r(h)}}const Mv={name:"labelStartImage",resolveAll:df.resolveAll,tokenize:Rv};function Rv(n,i,r){const u=this;return o;function o(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),h}function h(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),c):r(m)}function c(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(m):i(m)}}const Bv={name:"labelStartLink",resolveAll:df.resolveAll,tokenize:Lv};function Lv(n,i,r){const u=this;return o;function o(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),h}function h(c){return c===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(c):i(c)}}const Tc={name:"lineEnding",tokenize:Uv};function Uv(n,i){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ve(n,i,"linePrefix")}}const Fu={name:"thematicBreak",tokenize:Hv};function Hv(n,i,r){let u=0,o;return h;function h(d){return n.enter("thematicBreak"),c(d)}function c(d){return o=d,m(d)}function m(d){return d===o?(n.enter("thematicBreakSequence"),p(d)):u>=3&&(d===null||Ee(d))?(n.exit("thematicBreak"),i(d)):r(d)}function p(d){return d===o?(n.consume(d),u++,p):(n.exit("thematicBreakSequence"),Le(d)?Ve(n,m,"whitespace")(d):m(d))}}const tn={continuation:{tokenize:Gv},exit:Qv,name:"list",tokenize:Vv},qv={partial:!0,tokenize:Iv},Yv={partial:!0,tokenize:Xv};function Vv(n,i,r){const u=this,o=u.events[u.events.length-1];let h=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return m;function m(x){const w=u.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||x===u.containerState.marker:Zc(x)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),x===42||x===45?n.check(Fu,r,d)(x):d(x);if(!u.interrupt||x===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(x)}return r(x)}function p(x){return Zc(x)&&++c<10?(n.consume(x),p):(!u.interrupt||c<2)&&(u.containerState.marker?x===u.containerState.marker:x===41||x===46)?(n.exit("listItemValue"),d(x)):r(x)}function d(x){return n.enter("listItemMarker"),n.consume(x),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||x,n.check(Cr,u.interrupt?r:b,n.attempt(qv,k,y))}function b(x){return u.containerState.initialBlankLine=!0,h++,k(x)}function y(x){return Le(x)?(n.enter("listItemPrefixWhitespace"),n.consume(x),n.exit("listItemPrefixWhitespace"),k):r(x)}function k(x){return u.containerState.size=h+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,i(x)}}function Gv(n,i,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Cr,o,h);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ve(n,i,"listItemIndent",u.containerState.size+1)(m)}function h(m){return u.containerState.furtherBlankLines||!Le(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,c(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(Yv,i,c)(m))}function c(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ve(n,n.attempt(tn,i,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Xv(n,i,r){const u=this;return Ve(n,o,"listItemIndent",u.containerState.size+1);function o(h){const c=u.events[u.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===u.containerState.size?i(h):r(h)}}function Qv(n){n.exit(this.containerState.type)}function Iv(n,i,r){const u=this;return Ve(n,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(h){const c=u.events[u.events.length-1];return!Le(h)&&c&&c[1].type==="listItemPrefixWhitespace"?i(h):r(h)}}const Tp={name:"setextUnderline",resolveTo:Zv,tokenize:Fv};function Zv(n,i){let r=n.length,u,o,h;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(o=r)}else n[r][1].type==="content"&&n.splice(r,1),!h&&n[r][1].type==="definition"&&(h=r);const c={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",h?(n.splice(o,0,["enter",c,i]),n.splice(h+1,0,["exit",n[u][1],i]),n[u][1].end={...n[h][1].end}):n[u][1]=c,n.push(["exit",c,i]),n}function Fv(n,i,r){const u=this;let o;return h;function h(d){let b=u.events.length,y;for(;b--;)if(u.events[b][1].type!=="lineEnding"&&u.events[b][1].type!=="linePrefix"&&u.events[b][1].type!=="content"){y=u.events[b][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),o=d,c(d)):r(d)}function c(d){return n.enter("setextHeadingLineSequence"),m(d)}function m(d){return d===o?(n.consume(d),m):(n.exit("setextHeadingLineSequence"),Le(d)?Ve(n,p,"lineSuffix")(d):p(d))}function p(d){return d===null||Ee(d)?(n.exit("setextHeadingLine"),i(d)):r(d)}}const Kv={tokenize:Jv};function Jv(n){const i=this,r=n.attempt(Cr,u,n.attempt(this.parser.constructs.flowInitial,o,Ve(n,n.attempt(this.parser.constructs.flow,o,n.attempt(tv,o)),"linePrefix")));return r;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEndingBlank"),n.consume(h),n.exit("lineEndingBlank"),i.currentConstruct=void 0,r}function o(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),i.currentConstruct=void 0,r}}const $v={resolveAll:zg()},Pv=_g("string"),Wv=_g("text");function _g(n){return{resolveAll:zg(n==="text"?ex:void 0),tokenize:i};function i(r){const u=this,o=this.parser.constructs[n],h=r.attempt(o,c,m);return c;function c(b){return d(b)?h(b):m(b)}function m(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),p}function p(b){return d(b)?(r.exit("data"),h(b)):(r.consume(b),p)}function d(b){if(b===null)return!0;const y=o[b];let k=-1;if(y)for(;++k<y.length;){const x=y[k];if(!x.previous||x.previous.call(u,u.previous))return!0}return!1}}}function zg(n){return i;function i(r,u){let o=-1,h;for(;++o<=r.length;)h===void 0?r[o]&&r[o][1].type==="data"&&(h=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==h+2&&(r[h][1].end=r[o-1][1].end,r.splice(h+2,o-h-2),o=h+2),h=void 0);return n?n(r,u):r}}function ex(n,i){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],o=i.sliceStream(u);let h=o.length,c=-1,m=0,p;for(;h--;){const d=o[h];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)m++,c--;if(c)break;c=-1}else if(d===-2)p=!0,m++;else if(d!==-1){h++;break}}if(i._contentTypeTextTrailing&&r===n.length&&(m=0),m){const d={type:r===n.length||p||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:h?c:u.start._bufferIndex+c,_index:u.start._index+h,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...d.start},u.start.offset===u.end.offset?Object.assign(u,d):(n.splice(r,0,["enter",d,i],["exit",d,i]),r+=2)}r++}return n}const tx={42:tn,43:tn,45:tn,48:tn,49:tn,50:tn,51:tn,52:tn,53:tn,54:tn,55:tn,56:tn,57:tn,62:Sg},nx={91:rv},lx={[-2]:Cc,[-1]:Cc,32:Cc},ix={35:hv,42:Fu,45:[Tp,Fu],60:gv,61:Tp,95:Fu,96:Ep,126:Ep},ax={38:Eg,92:kg},rx={[-5]:Tc,[-4]:Tc,[-3]:Tc,33:Mv,38:Eg,42:Fc,60:[Bb,Ev],91:Bv,92:[cv,kg],93:df,95:Fc,96:Kb},ux={null:[Fc,$v]},sx={null:[42,95]},ox={null:[]},cx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sx,contentInitial:nx,disable:ox,document:tx,flow:ix,flowInitial:lx,insideSpan:ux,string:ax,text:rx},Symbol.toStringTag,{value:"Module"}));function fx(n,i,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},h=[];let c=[],m=[];const p={attempt:ne(ce),check:ne(j),consume:P,enter:X,exit:se,interrupt:ne(j,{interrupt:!0})},d={code:null,containerState:{},defineSkip:O,events:[],now:w,parser:n,previous:null,sliceSerialize:k,sliceStream:x,write:y};let b=i.tokenize.call(d,p);return i.resolveAll&&h.push(i),d;function y(ue){return c=zn(c,ue),Y(),c[c.length-1]!==null?[]:(pe(i,0),d.events=is(h,d.events,d),d.events)}function k(ue,G){return dx(x(ue),G)}function x(ue){return hx(c,ue)}function w(){const{_bufferIndex:ue,_index:G,line:we,column:fe,offset:te}=u;return{_bufferIndex:ue,_index:G,line:we,column:fe,offset:te}}function O(ue){o[ue.line]=ue.column,H()}function Y(){let ue;for(;u._index<c.length;){const G=c[u._index];if(typeof G=="string")for(ue=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ue&&u._bufferIndex<G.length;)N(G.charCodeAt(u._bufferIndex));else N(G)}}function N(ue){b=b(ue)}function P(ue){Ee(ue)?(u.line++,u.column=1,u.offset+=ue===-3?2:1,H()):ue!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===c[u._index].length&&(u._bufferIndex=-1,u._index++)),d.previous=ue}function X(ue,G){const we=G||{};return we.type=ue,we.start=w(),d.events.push(["enter",we,d]),m.push(we),we}function se(ue){const G=m.pop();return G.end=w(),d.events.push(["exit",G,d]),G}function ce(ue,G){pe(ue,G.from)}function j(ue,G){G.restore()}function ne(ue,G){return we;function we(fe,te,B){let W,he,Te,T;return Array.isArray(fe)?Q(fe):"tokenize"in fe?Q([fe]):_(fe);function _(le){return ve;function ve(Ge){const je=Ge!==null&&le[Ge],dt=Ge!==null&&le.null,wt=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(dt)?dt:dt?[dt]:[]];return Q(wt)(Ge)}}function Q(le){return W=le,he=0,le.length===0?B:E(le[he])}function E(le){return ve;function ve(Ge){return T=xe(),Te=le,le.partial||(d.currentConstruct=le),le.name&&d.parser.constructs.disable.null.includes(le.name)?F():le.tokenize.call(G?Object.assign(Object.create(d),G):d,p,re,F)(Ge)}}function re(le){return ue(Te,T),te}function F(le){return T.restore(),++he<W.length?E(W[he]):B}}}function pe(ue,G){ue.resolveAll&&!h.includes(ue)&&h.push(ue),ue.resolve&&bn(d.events,G,d.events.length-G,ue.resolve(d.events.slice(G),d)),ue.resolveTo&&(d.events=ue.resolveTo(d.events,d))}function xe(){const ue=w(),G=d.previous,we=d.currentConstruct,fe=d.events.length,te=Array.from(m);return{from:fe,restore:B};function B(){u=ue,d.previous=G,d.currentConstruct=we,d.events.length=fe,m=te,H()}}function H(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function hx(n,i){const r=i.start._index,u=i.start._bufferIndex,o=i.end._index,h=i.end._bufferIndex;let c;if(r===o)c=[n[r].slice(u,h)];else{if(c=n.slice(r,o),u>-1){const m=c[0];typeof m=="string"?c[0]=m.slice(u):c.shift()}h>0&&c.push(n[o].slice(0,h))}return c}function dx(n,i){let r=-1;const u=[];let o;for(;++r<n.length;){const h=n[r];let c;if(typeof h=="string")c=h;else switch(h){case-5:{c="\r";break}case-4:{c=`
51
+ `;break}case-3:{c=`\r
52
+ `;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&o)continue;c=" ";break}default:c=String.fromCharCode(h)}o=h===-2,u.push(c)}return u.join("")}function mx(n){const u={constructs:vg([cx,...(n||{}).extensions||[]]),content:o(zb),defined:[],document:o(Db),flow:o(Kv),lazy:{},string:o(Pv),text:o(Wv)};return u;function o(h){return c;function c(m){return fx(u,h,m)}}}function px(n){for(;!Cg(n););return n}const Ap=/[\0\t\n\r]/g;function gx(){let n=1,i="",r=!0,u;return o;function o(h,c,m){const p=[];let d,b,y,k,x;for(h=i+(typeof h=="string"?h.toString():new TextDecoder(c||void 0).decode(h)),y=0,i="",r&&(h.charCodeAt(0)===65279&&y++,r=void 0);y<h.length;){if(Ap.lastIndex=y,d=Ap.exec(h),k=d&&d.index!==void 0?d.index:h.length,x=h.charCodeAt(k),!d){i=h.slice(y);break}if(x===10&&y===k&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),y<k&&(p.push(h.slice(y,k)),n+=k-y),x){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}y=k+1}return m&&(u&&p.push(-5),i&&p.push(i),p.push(null)),p}}const yx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bx(n){return n.replace(yx,vx)}function vx(n,i,r){if(i)return i;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),h=o===120||o===88;return xg(r.slice(h?2:1),h?16:10)}return hf(r)||n}const Ng={}.hasOwnProperty;function xx(n,i,r){return typeof i!="string"&&(r=i,i=void 0),Sx(r)(px(mx(r).document().write(gx()(n,i,!0))))}function Sx(n){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:h(at),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:h(Qt),blockQuote:h(dt),characterEscape:xe,characterReference:xe,codeFenced:h(wt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:h(wt,c),codeText:h(vn,c),codeTextData:xe,data:xe,codeFlowValue:xe,definition:h(xn),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:h(_t),hardBreakEscape:h(ln),hardBreakTrailing:h(ln),htmlFlow:h(Ci,c),htmlFlowData:xe,htmlText:h(Ci,c),htmlTextData:xe,image:h(Ti),label:c,link:h(at),listItem:h(It),listItemValue:k,listOrdered:h(In,y),listUnordered:h(In),paragraph:h($l),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:h(Qt),strong:h(hl),thematicBreak:h(dl)},exit:{atxHeading:p(),atxHeadingSequence:ce,autolink:p(),autolinkEmail:je,autolinkProtocol:Ge,blockQuote:p(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:F,characterReferenceMarkerNumeric:F,characterReferenceValue:le,characterReference:ve,codeFenced:p(Y),codeFencedFence:O,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:H,codeIndented:p(N),codeText:p(te),codeTextData:H,data:H,definition:p(),definitionDestinationString:se,definitionLabelString:P,definitionTitleString:X,emphasis:p(),hardBreakEscape:p(G),hardBreakTrailing:p(G),htmlFlow:p(we),htmlFlowData:H,htmlText:p(fe),htmlTextData:H,image:p(W),label:Te,labelText:he,lineEnding:ue,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:re,resourceDestinationString:T,resourceTitleString:_,resource:Q,setextHeading:p(pe),setextHeadingLineSequence:ne,setextHeadingText:j,strong:p(),thematicBreak:p()}};Dg(i,(n||{}).mdastExtensions||[]);const r={};return u;function u(Z){let ie={type:"root",children:[]};const ke={stack:[ie],tokenStack:[],config:i,enter:m,exit:d,buffer:c,resume:b,data:r},_e=[];let Ye=-1;for(;++Ye<Z.length;)if(Z[Ye][1].type==="listOrdered"||Z[Ye][1].type==="listUnordered")if(Z[Ye][0]==="enter")_e.push(Ye);else{const Rt=_e.pop();Ye=o(Z,Rt,Ye)}for(Ye=-1;++Ye<Z.length;){const Rt=i[Z[Ye][0]];Ng.call(Rt,Z[Ye][1].type)&&Rt[Z[Ye][1].type].call(Object.assign({sliceSerialize:Z[Ye][2].sliceSerialize},ke),Z[Ye][1])}if(ke.tokenStack.length>0){const Rt=ke.tokenStack[ke.tokenStack.length-1];(Rt[1]||wp).call(ke,void 0,Rt[0])}for(ie.position={start:Kl(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Kl(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<i.transforms.length;)ie=i.transforms[Ye](ie)||ie;return ie}function o(Z,ie,ke){let _e=ie-1,Ye=-1,Rt=!1,Yt,yt,tt,Bt;for(;++_e<=ke;){const Ze=Z[_e];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Ye++:Ye--,Bt=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(Yt&&!Bt&&!Ye&&!tt&&(tt=_e),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!Ye&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Ye===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(Yt){let Ln=_e;for(yt=void 0;Ln--;){const an=Z[Ln];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;yt&&(Z[yt][1].type="lineEndingBlank",Rt=!0),an[1].type="lineEnding",yt=Ln}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}tt&&(!yt||tt<yt)&&(Yt._spread=!0),Yt.end=Object.assign({},yt?Z[yt][1].start:Ze[1].end),Z.splice(yt||_e,0,["exit",Yt,Ze[2]]),_e++,ke++}if(Ze[1].type==="listItemPrefix"){const Ln={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};Yt=Ln,Z.splice(_e,0,["enter",Ln,Ze[2]]),_e++,ke++,tt=void 0,Bt=!0}}}return Z[ie][1]._spread=Rt,ke}function h(Z,ie){return ke;function ke(_e){m.call(this,Z(_e),_e),ie&&ie.call(this,_e)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(Z,ie,ke){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ie,ke||void 0]),Z.position={start:Kl(ie.start),end:void 0}}function p(Z){return ie;function ie(ke){Z&&Z.call(this,ke),d.call(this,ke)}}function d(Z,ie){const ke=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==Z.type&&(ie?ie.call(this,Z,_e[0]):(_e[1]||wp).call(this,Z,_e[0]));else throw new Error("Cannot close `"+Z.type+"` ("+yr({start:Z.start,end:Z.end})+"): it’s not open");ke.position.end=Kl(Z.end)}function b(){return ff(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(Z){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function x(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=Z}function w(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=Z}function O(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z.replace(/(\r?\n|\r)$/g,"")}function P(Z){const ie=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ie,ke.identifier=Bn(this.sliceSerialize(Z)).toLowerCase()}function X(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function se(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function ce(Z){const ie=this.stack[this.stack.length-1];if(!ie.depth){const ke=this.sliceSerialize(Z).length;ie.depth=ke}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function ne(Z){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function pe(){this.data.setextHeadingSlurpLineEnding=void 0}function xe(Z){const ke=this.stack[this.stack.length-1].children;let _e=ke[ke.length-1];(!_e||_e.type!=="text")&&(_e=Ct(),_e.position={start:Kl(Z.start),end:void 0},ke.push(_e)),this.stack.push(_e)}function H(Z){const ie=this.stack.pop();ie.value+=this.sliceSerialize(Z),ie.position.end=Kl(Z.end)}function ue(Z){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=ie.children[ie.children.length-1];ke.position.end=Kl(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(ie.type)&&(xe.call(this,Z),H.call(this,Z))}function G(){this.data.atHardBreak=!0}function we(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function fe(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function te(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Z}function B(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function W(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ie,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function he(Z){const ie=this.sliceSerialize(Z),ke=this.stack[this.stack.length-2];ke.label=bx(ie),ke.identifier=Bn(ie).toLowerCase()}function Te(){const Z=this.stack[this.stack.length-1],ie=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const _e=Z.children;ke.children=_e}else ke.alt=ie}function T(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Z}function _(){const Z=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Z}function Q(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function re(Z){const ie=this.resume(),ke=this.stack[this.stack.length-1];ke.label=ie,ke.identifier=Bn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function F(Z){this.data.characterReferenceType=Z.type}function le(Z){const ie=this.sliceSerialize(Z),ke=this.data.characterReferenceType;let _e;ke?(_e=xg(ie,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=hf(ie);const Ye=this.stack[this.stack.length-1];Ye.value+=_e}function ve(Z){const ie=this.stack.pop();ie.position.end=Kl(Z.end)}function Ge(Z){H.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(Z)}function je(Z){H.call(this,Z);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(Z)}function dt(){return{type:"blockquote",children:[]}}function wt(){return{type:"code",lang:null,meta:null,value:""}}function vn(){return{type:"inlineCode",value:""}}function xn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function _t(){return{type:"emphasis",children:[]}}function Qt(){return{type:"heading",depth:0,children:[]}}function ln(){return{type:"break"}}function Ci(){return{type:"html",value:""}}function Ti(){return{type:"image",title:null,url:"",alt:null}}function at(){return{type:"link",title:null,url:"",children:[]}}function In(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function It(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function $l(){return{type:"paragraph",children:[]}}function hl(){return{type:"strong",children:[]}}function Ct(){return{type:"text",value:""}}function dl(){return{type:"thematicBreak"}}}function Kl(n){return{line:n.line,column:n.column,offset:n.offset}}function Dg(n,i){let r=-1;for(;++r<i.length;){const u=i[r];Array.isArray(u)?Dg(n,u):kx(n,u)}}function kx(n,i){let r;for(r in i)if(Ng.call(i,r))switch(r){case"canContainEols":{const u=i[r];u&&n[r].push(...u);break}case"transforms":{const u=i[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=i[r];u&&Object.assign(n[r],u);break}}}function wp(n,i){throw n?new Error("Cannot close `"+n.type+"` ("+yr({start:n.start,end:n.end})+"): a different token (`"+i.type+"`, "+yr({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+yr({start:i.start,end:i.end})+") is still open")}function Ex(n){const i=this;i.parser=r;function r(u){return xx(u,{...i.data("settings"),...n,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function Cx(n,i){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(i),!0)};return n.patch(i,r),n.applyData(i,r)}function Tx(n,i){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(i,r),[n.applyData(i,r),{type:"text",value:`
53
+ `}]}function Ax(n,i){const r=i.value?i.value+`
54
+ `:"",u={},o=i.lang?i.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let h={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return i.meta&&(h.data={meta:i.meta}),n.patch(i,h),h=n.applyData(i,h),h={type:"element",tagName:"pre",properties:{},children:[h]},n.patch(i,h),h}function wx(n,i){const r={type:"element",tagName:"del",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function _x(n,i){const r={type:"element",tagName:"em",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function zx(n,i){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(i.identifier).toUpperCase(),o=ga(u.toLowerCase()),h=n.footnoteOrder.indexOf(u);let c,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),c=n.footnoteOrder.length):c=h+1,m+=1,n.footnoteCounts.set(u,m);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(i,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(i,d),n.applyData(i,d)}function Nx(n,i){const r={type:"element",tagName:"h"+i.depth,properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function Dx(n,i){if(n.options.allowDangerousHtml){const r={type:"raw",value:i.value};return n.patch(i,r),n.applyData(i,r)}}function Og(n,i){const r=i.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+u}];const o=n.all(i),h=o[0];h&&h.type==="text"?h.value="["+h.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=u:o.push({type:"text",value:u}),o}function Ox(n,i){const r=String(i.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Og(n,i);const o={src:ga(u.url||""),alt:i.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const h={type:"element",tagName:"img",properties:o,children:[]};return n.patch(i,h),n.applyData(i,h)}function jx(n,i){const r={src:ga(i.url)};i.alt!==null&&i.alt!==void 0&&(r.alt=i.alt),i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(i,u),n.applyData(i,u)}function Mx(n,i){const r={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};n.patch(i,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(i,u),n.applyData(i,u)}function Rx(n,i){const r=String(i.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Og(n,i);const o={href:ga(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const h={type:"element",tagName:"a",properties:o,children:n.all(i)};return n.patch(i,h),n.applyData(i,h)}function Bx(n,i){const r={href:ga(i.url)};i.title!==null&&i.title!==void 0&&(r.title=i.title);const u={type:"element",tagName:"a",properties:r,children:n.all(i)};return n.patch(i,u),n.applyData(i,u)}function Lx(n,i,r){const u=n.all(i),o=r?Ux(r):jg(i),h={},c=[];if(typeof i.checked=="boolean"){const b=u[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),h.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const b=u[m];(o||m!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
55
+ `}),b.type==="element"&&b.tagName==="p"&&!o?c.push(...b.children):c.push(b)}const p=u[u.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
56
+ `});const d={type:"element",tagName:"li",properties:h,children:c};return n.patch(i,d),n.applyData(i,d)}function Ux(n){let i=!1;if(n.type==="list"){i=n.spread||!1;const r=n.children;let u=-1;for(;!i&&++u<r.length;)i=jg(r[u])}return i}function jg(n){const i=n.spread;return i??n.children.length>1}function Hx(n,i){const r={},u=n.all(i);let o=-1;for(typeof i.start=="number"&&i.start!==1&&(r.start=i.start);++o<u.length;){const c=u[o];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 h={type:"element",tagName:i.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(i,h),n.applyData(i,h)}function qx(n,i){const r={type:"element",tagName:"p",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function Yx(n,i){const r={type:"root",children:n.wrap(n.all(i))};return n.patch(i,r),n.applyData(i,r)}function Vx(n,i){const r={type:"element",tagName:"strong",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}function Gx(n,i){const r=n.all(i),u=r.shift(),o=[];if(u){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(i.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},m=uf(i.children[1]),p=hg(i.children[i.children.length-1]);m&&p&&(c.position={start:m,end:p}),o.push(c)}const h={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(i,h),n.applyData(i,h)}function Xx(n,i,r){const u=r?r.children:void 0,h=(u?u.indexOf(i):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,m=c?c.length:i.children.length;let p=-1;const d=[];for(;++p<m;){const y=i.children[p],k={},x=c?c[p]:void 0;x&&(k.align=x);let w={type:"element",tagName:h,properties:k,children:[]};y&&(w.children=n.all(y),n.patch(y,w),w=n.applyData(y,w)),d.push(w)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(d,!0)};return n.patch(i,b),n.applyData(i,b)}function Qx(n,i){const r={type:"element",tagName:"td",properties:{},children:n.all(i)};return n.patch(i,r),n.applyData(i,r)}const _p=9,zp=32;function Ix(n){const i=String(n),r=/\r?\n|\r/g;let u=r.exec(i),o=0;const h=[];for(;u;)h.push(Np(i.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(i);return h.push(Np(i.slice(o),o>0,!1)),h.join("")}function Np(n,i,r){let u=0,o=n.length;if(i){let h=n.codePointAt(u);for(;h===_p||h===zp;)u++,h=n.codePointAt(u)}if(r){let h=n.codePointAt(o-1);for(;h===_p||h===zp;)o--,h=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function Zx(n,i){const r={type:"text",value:Ix(String(i.value))};return n.patch(i,r),n.applyData(i,r)}function Fx(n,i){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(i,r),n.applyData(i,r)}const Kx={blockquote:Cx,break:Tx,code:Ax,delete:wx,emphasis:_x,footnoteReference:zx,heading:Nx,html:Dx,imageReference:Ox,image:jx,inlineCode:Mx,linkReference:Rx,link:Bx,listItem:Lx,list:Hx,paragraph:qx,root:Yx,strong:Vx,table:Gx,tableCell:Qx,tableRow:Xx,text:Zx,thematicBreak:Fx,toml:Vu,yaml:Vu,definition:Vu,footnoteDefinition:Vu};function Vu(){}const Mg=-1,as=0,vr=1,$u=2,mf=3,pf=4,gf=5,yf=6,Rg=7,Bg=8,Dp=typeof self=="object"?self:globalThis,Jx=(n,i)=>{const r=(o,h)=>(n.set(h,o),o),u=o=>{if(n.has(o))return n.get(o);const[h,c]=i[o];switch(h){case as:case Mg:return r(c,o);case vr:{const m=r([],o);for(const p of c)m.push(u(p));return m}case $u:{const m=r({},o);for(const[p,d]of c)m[u(p)]=u(d);return m}case mf:return r(new Date(c),o);case pf:{const{source:m,flags:p}=c;return r(new RegExp(m,p),o)}case gf:{const m=r(new Map,o);for(const[p,d]of c)m.set(u(p),u(d));return m}case yf:{const m=r(new Set,o);for(const p of c)m.add(u(p));return m}case Rg:{const{name:m,message:p}=c;return r(new Dp[m](p),o)}case Bg:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:m}=new Uint8Array(c);return r(new DataView(m),c)}}return r(new Dp[h](c),o)};return u},Op=n=>Jx(new Map,n)(0),ca="",{toString:$x}={},{keys:Px}=Object,gr=n=>{const i=typeof n;if(i!=="object"||!n)return[as,i];const r=$x.call(n).slice(8,-1);switch(r){case"Array":return[vr,ca];case"Object":return[$u,ca];case"Date":return[mf,ca];case"RegExp":return[pf,ca];case"Map":return[gf,ca];case"Set":return[yf,ca];case"DataView":return[vr,r]}return r.includes("Array")?[vr,r]:r.includes("Error")?[Rg,r]:[$u,r]},Gu=([n,i])=>n===as&&(i==="function"||i==="symbol"),Wx=(n,i,r,u)=>{const o=(c,m)=>{const p=u.push(c)-1;return r.set(m,p),p},h=c=>{if(r.has(c))return r.get(c);let[m,p]=gr(c);switch(m){case as:{let b=c;switch(p){case"bigint":m=Bg,b=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return o([Mg],c)}return o([m,b],c)}case vr:{if(p){let k=c;return p==="DataView"?k=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(k=new Uint8Array(c)),o([p,[...k]],c)}const b=[],y=o([m,b],c);for(const k of c)b.push(h(k));return y}case $u:{if(p)switch(p){case"BigInt":return o([p,c.toString()],c);case"Boolean":case"Number":case"String":return o([p,c.valueOf()],c)}if(i&&"toJSON"in c)return h(c.toJSON());const b=[],y=o([m,b],c);for(const k of Px(c))(n||!Gu(gr(c[k])))&&b.push([h(k),h(c[k])]);return y}case mf:return o([m,c.toISOString()],c);case pf:{const{source:b,flags:y}=c;return o([m,{source:b,flags:y}],c)}case gf:{const b=[],y=o([m,b],c);for(const[k,x]of c)(n||!(Gu(gr(k))||Gu(gr(x))))&&b.push([h(k),h(x)]);return y}case yf:{const b=[],y=o([m,b],c);for(const k of c)(n||!Gu(gr(k)))&&b.push(h(k));return y}}const{message:d}=c;return o([m,{name:p,message:d}],c)};return h},jp=(n,{json:i,lossy:r}={})=>{const u=[];return Wx(!(i||r),!!i,new Map,u)(n),u},Pu=typeof structuredClone=="function"?(n,i)=>i&&("json"in i||"lossy"in i)?Op(jp(n,i)):structuredClone(n):(n,i)=>Op(jp(n,i));function eS(n,i){const r=[{type:"text",value:"↩"}];return i>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),r}function tS(n,i){return"Back to reference "+(n+1)+(i>1?"-"+i:"")}function nS(n){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||eS,u=n.options.footnoteBackLabel||tS,o=n.options.footnoteLabel||"Footnotes",h=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let p=-1;for(;++p<n.footnoteOrder.length;){const d=n.footnoteById.get(n.footnoteOrder[p]);if(!d)continue;const b=n.all(d),y=String(d.identifier).toUpperCase(),k=ga(y.toLowerCase());let x=0;const w=[],O=n.footnoteCounts.get(y);for(;O!==void 0&&++x<=O;){w.length>0&&w.push({type:"text",value:" "});let P=typeof r=="string"?r:r(p,x);typeof P=="string"&&(P={type:"text",value:P}),w.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+k+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,x),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const Y=b[b.length-1];if(Y&&Y.type==="element"&&Y.tagName==="p"){const P=Y.children[Y.children.length-1];P&&P.type==="text"?P.value+=" ":Y.children.push({type:"text",value:" "}),Y.children.push(...w)}else b.push(...w);const N={type:"element",tagName:"li",properties:{id:i+"fn-"+k},children:n.wrap(b,!0)};n.patch(d,N),m.push(N)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:h,properties:{...Pu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
57
+ `},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
58
+ `}]}}const rs=(function(n){if(n==null)return rS;if(typeof n=="function")return us(n);if(typeof n=="object")return Array.isArray(n)?lS(n):iS(n);if(typeof n=="string")return aS(n);throw new Error("Expected function, string, or object as test")});function lS(n){const i=[];let r=-1;for(;++r<n.length;)i[r]=rs(n[r]);return us(u);function u(...o){let h=-1;for(;++h<i.length;)if(i[h].apply(this,o))return!0;return!1}}function iS(n){const i=n;return us(r);function r(u){const o=u;let h;for(h in n)if(o[h]!==i[h])return!1;return!0}}function aS(n){return us(i);function i(r){return r&&r.type===n}}function us(n){return i;function i(r,u,o){return!!(uS(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function rS(){return!0}function uS(n){return n!==null&&typeof n=="object"&&"type"in n}const Lg=[],sS=!0,Kc=!1,oS="skip";function Ug(n,i,r,u){let o;typeof i=="function"&&typeof r!="function"?(u=r,r=i):o=i;const h=rs(o),c=u?-1:1;m(n,void 0,[])();function m(p,d,b){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(p.type+(x?"<"+x+">":""))+")"})}return k;function k(){let x=Lg,w,O,Y;if((!i||h(p,d,b[b.length-1]||void 0))&&(x=cS(r(p,b)),x[0]===Kc))return x;if("children"in p&&p.children){const N=p;if(N.children&&x[0]!==oS)for(O=(u?N.children.length:-1)+c,Y=b.concat(N);O>-1&&O<N.children.length;){const P=N.children[O];if(w=m(P,O,Y)(),w[0]===Kc)return w;O=typeof w[1]=="number"?w[1]:O+c}}return x}}}function cS(n){return Array.isArray(n)?n:typeof n=="number"?[sS,n]:n==null?Lg:[n]}function bf(n,i,r,u){let o,h,c;typeof i=="function"&&typeof r!="function"?(h=void 0,c=i,o=r):(h=i,c=r,o=u),Ug(n,h,m,o);function m(p,d){const b=d[d.length-1],y=b?b.children.indexOf(p):void 0;return c(p,y,b)}}const Jc={}.hasOwnProperty,fS={};function hS(n,i){const r=i||fS,u=new Map,o=new Map,h=new Map,c={...Kx,...r.handlers},m={all:d,applyData:mS,definitionById:u,footnoteById:o,footnoteCounts:h,footnoteOrder:[],handlers:c,one:p,options:r,patch:dS,wrap:gS};return bf(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?u:o,k=String(b.identifier).toUpperCase();y.has(k)||y.set(k,b)}}),m;function p(b,y){const k=b.type,x=m.handlers[k];if(Jc.call(m.handlers,k)&&x)return x(m,b,y);if(m.options.passThrough&&m.options.passThrough.includes(k)){if("children"in b){const{children:O,...Y}=b,N=Pu(Y);return N.children=m.all(b),N}return Pu(b)}return(m.options.unknownHandler||pS)(m,b,y)}function d(b){const y=[];if("children"in b){const k=b.children;let x=-1;for(;++x<k.length;){const w=m.one(k[x],b);if(w){if(x&&k[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Mp(w.value)),!Array.isArray(w)&&w.type==="element")){const O=w.children[0];O&&O.type==="text"&&(O.value=Mp(O.value))}Array.isArray(w)?y.push(...w):y.push(w)}}}return y}}function dS(n,i){n.position&&(i.position=tb(n))}function mS(n,i){let r=i;if(n&&n.data){const u=n.data.hName,o=n.data.hChildren,h=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const c="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:c}}r.type==="element"&&h&&Object.assign(r.properties,Pu(h)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function pS(n,i){const r=i.data||{},u="value"in i&&!(Jc.call(r,"hProperties")||Jc.call(r,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:n.all(i)};return n.patch(i,u),n.applyData(i,u)}function gS(n,i){const r=[];let u=-1;for(i&&r.push({type:"text",value:`
59
+ `});++u<n.length;)u&&r.push({type:"text",value:`
60
+ `}),r.push(n[u]);return i&&n.length>0&&r.push({type:"text",value:`
61
+ `}),r}function Mp(n){let i=0,r=n.charCodeAt(i);for(;r===9||r===32;)i++,r=n.charCodeAt(i);return n.slice(i)}function Rp(n,i){const r=hS(n,i),u=r.one(n,void 0),o=nS(r),h=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&h.children.push({type:"text",value:`
62
+ `},o),h}function yS(n,i){return n&&"run"in n?async function(r,u){const o=Rp(r,{file:u,...i});await n.run(o,u)}:function(r,u){return Rp(r,{file:u,...n||i})}}function Bp(n){if(n)throw n}var Ac,Lp;function bS(){if(Lp)return Ac;Lp=1;var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):i.call(d)==="[object Array]"},h=function(d){if(!d||i.call(d)!=="[object Object]")return!1;var b=n.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&n.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!b&&!y)return!1;var k;for(k in d);return typeof k>"u"||n.call(d,k)},c=function(d,b){r&&b.name==="__proto__"?r(d,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):d[b.name]=b.newValue},m=function(d,b){if(b==="__proto__")if(n.call(d,b)){if(u)return u(d,b).value}else return;return d[b]};return Ac=function p(){var d,b,y,k,x,w,O=arguments[0],Y=1,N=arguments.length,P=!1;for(typeof O=="boolean"&&(P=O,O=arguments[1]||{},Y=2),(O==null||typeof O!="object"&&typeof O!="function")&&(O={});Y<N;++Y)if(d=arguments[Y],d!=null)for(b in d)y=m(O,b),k=m(d,b),O!==k&&(P&&k&&(h(k)||(x=o(k)))?(x?(x=!1,w=y&&o(y)?y:[]):w=y&&h(y)?y:{},c(O,{name:b,newValue:p(P,w,k)})):typeof k<"u"&&c(O,{name:b,newValue:k}));return O},Ac}var vS=bS();const wc=ig(vS);function $c(n){if(typeof n!="object"||n===null)return!1;const i=Object.getPrototypeOf(n);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function xS(){const n=[],i={run:r,use:u};return i;function r(...o){let h=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);m(null,...o);function m(p,...d){const b=n[++h];let y=-1;if(p){c(p);return}for(;++y<o.length;)(d[y]===null||d[y]===void 0)&&(d[y]=o[y]);o=d,b?SS(b,m)(...d):c(null,...d)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),i}}function SS(n,i){let r;return u;function u(...c){const m=n.length>c.length;let p;m&&c.push(o);try{p=n.apply(this,c)}catch(d){const b=d;if(m&&r)throw b;return o(b)}m||(p&&p.then&&typeof p.then=="function"?p.then(h,o):p instanceof Error?o(p):h(p))}function o(c,...m){r||(r=!0,i(c,...m))}function h(c){o(null,c)}}const Xn={basename:kS,dirname:ES,extname:CS,join:TS,sep:"/"};function kS(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Tr(n);let r=0,u=-1,o=n.length,h;if(i===void 0||i.length===0||i.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(h){r=o+1;break}}else u<0&&(h=!0,u=o+1);return u<0?"":n.slice(r,u)}if(i===n)return"";let c=-1,m=i.length-1;for(;o--;)if(n.codePointAt(o)===47){if(h){r=o+1;break}}else c<0&&(h=!0,c=o+1),m>-1&&(n.codePointAt(o)===i.codePointAt(m--)?m<0&&(u=o):(m=-1,u=c));return r===u?u=c:u<0&&(u=n.length),n.slice(r,u)}function ES(n){if(Tr(n),n.length===0)return".";let i=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){i=r;break}}else u||(u=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function CS(n){Tr(n);let i=n.length,r=-1,u=0,o=-1,h=0,c;for(;i--;){const m=n.codePointAt(i);if(m===47){if(c){u=i+1;break}continue}r<0&&(c=!0,r=i+1),m===46?o<0?o=i:h!==1&&(h=1):o>-1&&(h=-1)}return o<0||r<0||h===0||h===1&&o===r-1&&o===u+1?"":n.slice(o,r)}function TS(...n){let i=-1,r;for(;++i<n.length;)Tr(n[i]),n[i]&&(r=r===void 0?n[i]:r+"/"+n[i]);return r===void 0?".":AS(r)}function AS(n){Tr(n);const i=n.codePointAt(0)===47;let r=wS(n,!i);return r.length===0&&!i&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),i?"/"+r:r}function wS(n,i){let r="",u=0,o=-1,h=0,c=-1,m,p;for(;++c<=n.length;){if(c<n.length)m=n.codePointAt(c);else{if(m===47)break;m=47}if(m===47){if(!(o===c-1||h===1))if(o!==c-1&&h===2){if(r.length<2||u!==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="",u=0):(r=r.slice(0,p),u=r.length-1-r.lastIndexOf("/")),o=c,h=0;continue}}else if(r.length>0){r="",u=0,o=c,h=0;continue}}i&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(o+1,c):r=n.slice(o+1,c),u=c-o-1;o=c,h=0}else m===46&&h>-1?h++:h=-1}return r}function Tr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const _S={cwd:zS};function zS(){return"/"}function Pc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function NS(n){if(typeof n=="string")n=new URL(n);else if(!Pc(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return DS(n)}function DS(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const i=n.pathname;let r=-1;for(;++r<i.length;)if(i.codePointAt(r)===37&&i.codePointAt(r+1)===50){const u=i.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(i)}const _c=["history","path","basename","stem","extname","dirname"];class Hg{constructor(i){let r;i?Pc(i)?r={path:i}:typeof i=="string"||OS(i)?r={value:i}:r=i:r={},this.cwd="cwd"in r?"":_S.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<_c.length;){const h=_c[u];h in r&&r[h]!==void 0&&r[h]!==null&&(this[h]=h==="history"?[...r[h]]:r[h])}let o;for(o in r)_c.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Xn.basename(this.path):void 0}set basename(i){Nc(i,"basename"),zc(i,"basename"),this.path=Xn.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?Xn.dirname(this.path):void 0}set dirname(i){Up(this.basename,"dirname"),this.path=Xn.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?Xn.extname(this.path):void 0}set extname(i){if(zc(i,"extname"),Up(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xn.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){Pc(i)&&(i=NS(i)),Nc(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?Xn.basename(this.path,this.extname):void 0}set stem(i){Nc(i,"stem"),zc(i,"stem"),this.path=Xn.join(this.dirname||"",i+(this.extname||""))}fail(i,r,u){const o=this.message(i,r,u);throw o.fatal=!0,o}info(i,r,u){const o=this.message(i,r,u);return o.fatal=void 0,o}message(i,r,u){const o=new qt(i,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function zc(n,i){if(n&&n.includes(Xn.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+Xn.sep+"`")}function Nc(n,i){if(!n)throw new Error("`"+i+"` cannot be empty")}function Up(n,i){if(!n)throw new Error("Setting `"+i+"` requires `path` to be set too")}function OS(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const jS=(function(n){const u=this.constructor.prototype,o=u[n],h=function(){return o.apply(h,arguments)};return Object.setPrototypeOf(h,u),h}),MS={}.hasOwnProperty;class vf extends jS{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=xS()}copy(){const i=new vf;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];i.use(...u)}return i.data(wc(!0,{},this.namespace)),i}data(i,r){return typeof i=="string"?arguments.length===2?(jc("data",this.frozen),this.namespace[i]=r,this):MS.call(this.namespace,i)&&this.namespace[i]||void 0:i?(jc("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(i,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const r=Xu(i),u=this.parser||this.Parser;return Dc("parse",u),u(String(r),r)}process(i,r){const u=this;return this.freeze(),Dc("process",this.parser||this.Parser),Oc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(h,c){const m=Xu(i),p=u.parse(m);u.run(p,m,function(b,y,k){if(b||!y||!k)return d(b);const x=y,w=u.stringify(x,k);LS(w)?k.value=w:k.result=w,d(b,k)});function d(b,y){b||!y?c(b):h?h(y):r(void 0,y)}}}processSync(i){let r=!1,u;return this.freeze(),Dc("processSync",this.parser||this.Parser),Oc("processSync",this.compiler||this.Compiler),this.process(i,o),qp("processSync","process",r),u;function o(h,c){r=!0,Bp(h),u=c}}run(i,r,u){Hp(i),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?h(void 0,u):new Promise(h);function h(c,m){const p=Xu(r);o.run(i,p,d);function d(b,y,k){const x=y||i;b?m(b):c?c(x):u(void 0,x,k)}}}runSync(i,r){let u=!1,o;return this.run(i,r,h),qp("runSync","run",u),o;function h(c,m){Bp(c),o=m,u=!0}}stringify(i,r){this.freeze();const u=Xu(r),o=this.compiler||this.Compiler;return Oc("stringify",o),Hp(i),o(i,u)}use(i,...r){const u=this.attachers,o=this.namespace;if(jc("use",this.frozen),i!=null)if(typeof i=="function")p(i,r);else if(typeof i=="object")Array.isArray(i)?m(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function h(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[b,...y]=d;p(b,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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");m(d.plugins),d.settings&&(o.settings=wc(!0,o.settings,d.settings))}function m(d){let b=-1;if(d!=null)if(Array.isArray(d))for(;++b<d.length;){const y=d[b];h(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,b){let y=-1,k=-1;for(;++y<u.length;)if(u[y][0]===d){k=y;break}if(k===-1)u.push([d,...b]);else if(b.length>0){let[x,...w]=b;const O=u[k][1];$c(O)&&$c(x)&&(x=wc(!0,O,x)),u[k]=[d,x,...w]}}}}const RS=new vf().freeze();function Dc(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Oc(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function jc(n,i){if(i)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Hp(n){if(!$c(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function qp(n,i,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+i+"` instead")}function Xu(n){return BS(n)?n:new Hg(n)}function BS(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function LS(n){return typeof n=="string"||US(n)}function US(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const HS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Yp=[],Vp={allowDangerousHtml:!0},qS=/^(https?|ircs?|mailto|xmpp)$/i,YS=[{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 VS(n){const i=GS(n),r=XS(n);return QS(i.runSync(i.parse(r),r),n)}function GS(n){const i=n.rehypePlugins||Yp,r=n.remarkPlugins||Yp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Vp}:Vp;return RS().use(Ex).use(r).use(yS,u).use(i)}function XS(n){const i=n.children||"",r=new Hg;return typeof i=="string"&&(r.value=i),r}function QS(n,i){const r=i.allowedElements,u=i.allowElement,o=i.components,h=i.disallowedElements,c=i.skipHtml,m=i.unwrapDisallowed,p=i.urlTransform||IS;for(const b of YS)Object.hasOwn(i,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+HS+b.id,void 0);return bf(n,d),rb(n,{Fragment:v.Fragment,components:o,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function d(b,y,k){if(b.type==="raw"&&k&&typeof y=="number")return c?k.children.splice(y,1):k.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let x;for(x in Ec)if(Object.hasOwn(Ec,x)&&Object.hasOwn(b.properties,x)){const w=b.properties[x],O=Ec[x];(O===null||O.includes(b.tagName))&&(b.properties[x]=p(String(w||""),x,b))}}if(b.type==="element"){let x=r?!r.includes(b.tagName):h?h.includes(b.tagName):!1;if(!x&&u&&typeof y=="number"&&(x=!u(b,y,k)),x&&k&&typeof y=="number")return m&&b.children?k.children.splice(y,1,...b.children):k.children.splice(y,1),y}}}function IS(n){const i=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),o=n.indexOf("/");return i===-1||o!==-1&&i>o||r!==-1&&i>r||u!==-1&&i>u||qS.test(n.slice(0,i))?n:""}function Gp(n,i){const r=String(n);if(typeof i!="string")throw new TypeError("Expected character");let u=0,o=r.indexOf(i);for(;o!==-1;)u++,o=r.indexOf(i,o+i.length);return u}function ZS(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function FS(n,i,r){const o=rs((r||{}).ignore||[]),h=KS(i);let c=-1;for(;++c<h.length;)Ug(n,"text",m);function m(d,b){let y=-1,k;for(;++y<b.length;){const x=b[y],w=k?k.children:void 0;if(o(x,w?w.indexOf(x):void 0,k))return;k=x}if(k)return p(d,b)}function p(d,b){const y=b[b.length-1],k=h[c][0],x=h[c][1];let w=0;const Y=y.children.indexOf(d);let N=!1,P=[];k.lastIndex=0;let X=k.exec(d.value);for(;X;){const se=X.index,ce={index:X.index,input:X.input,stack:[...b,d]};let j=x(...X,ce);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?k.lastIndex=se+1:(w!==se&&P.push({type:"text",value:d.value.slice(w,se)}),Array.isArray(j)?P.push(...j):j&&P.push(j),w=se+X[0].length,N=!0),!k.global)break;X=k.exec(d.value)}return N?(w<d.value.length&&P.push({type:"text",value:d.value.slice(w)}),y.children.splice(Y,1,...P)):P=[d],Y+P.length}}function KS(n){const i=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<r.length;){const o=r[u];i.push([JS(o[0]),$S(o[1])])}return i}function JS(n){return typeof n=="string"?new RegExp(ZS(n),"g"):n}function $S(n){return typeof n=="function"?n:function(){return n}}const Mc="phrasing",Rc=["autolink","link","image","label"];function PS(){return{transforms:[ak],enter:{literalAutolink:ek,literalAutolinkEmail:Bc,literalAutolinkHttp:Bc,literalAutolinkWww:Bc},exit:{literalAutolink:ik,literalAutolinkEmail:lk,literalAutolinkHttp:tk,literalAutolinkWww:nk}}}function WS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Rc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Rc},{character:":",before:"[ps]",after:"\\/",inConstruct:Mc,notInConstruct:Rc}]}}function ek(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Bc(n){this.config.enter.autolinkProtocol.call(this,n)}function tk(n){this.config.exit.autolinkProtocol.call(this,n)}function nk(n){this.config.exit.data.call(this,n);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(n)}function lk(n){this.config.exit.autolinkEmail.call(this,n)}function ik(n){this.exit(n)}function ak(n){FS(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uk]],{ignore:["link","linkReference"]})}function rk(n,i,r,u,o){let h="";if(!qg(o)||(/^w/i.test(i)&&(r=i+r,i="",h="http://"),!sk(r)))return!1;const c=ok(r+u);if(!c[0])return!1;const m={type:"link",title:null,url:h+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[m,{type:"text",value:c[1]}]:m}function uk(n,i,r,u){return!qg(u,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+r,children:[{type:"text",value:i+"@"+r}]}}function sk(n){const i=n.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function ok(n){const i=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!i)return[n,void 0];n=n.slice(0,i.index);let r=i[0],u=r.indexOf(")");const o=Gp(n,"(");let h=Gp(n,")");for(;u!==-1&&o>h;)n+=r.slice(0,u+1),r=r.slice(u+1),u=r.indexOf(")"),h++;return[n,r]}function qg(n,i){const r=n.input.charCodeAt(n.index-1);return(n.index===0||ki(r)||ls(r))&&(!i||r!==47)}Yg.peek=bk;function ck(){this.buffer()}function fk(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function hk(){this.buffer()}function dk(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function mk(n){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Bn(this.sliceSerialize(n)).toLowerCase(),r.label=i}function pk(n){this.exit(n)}function gk(n){const i=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Bn(this.sliceSerialize(n)).toLowerCase(),r.label=i}function yk(n){this.exit(n)}function bk(){return"["}function Yg(n,i,r,u){const o=r.createTracker(u);let h=o.move("[^");const c=r.enter("footnoteReference"),m=r.enter("reference");return h+=o.move(r.safe(r.associationId(n),{after:"]",before:h})),m(),c(),h+=o.move("]"),h}function vk(){return{enter:{gfmFootnoteCallString:ck,gfmFootnoteCall:fk,gfmFootnoteDefinitionLabelString:hk,gfmFootnoteDefinition:dk},exit:{gfmFootnoteCallString:mk,gfmFootnoteCall:pk,gfmFootnoteDefinitionLabelString:gk,gfmFootnoteDefinition:yk}}}function xk(n){let i=!1;return n&&n.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:r,footnoteReference:Yg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(u,o,h,c){const m=h.createTracker(c);let p=m.move("[^");const d=h.enter("footnoteDefinition"),b=h.enter("label");return p+=m.move(h.safe(h.associationId(u),{before:p,after:"]"})),b(),p+=m.move("]:"),u.children&&u.children.length>0&&(m.shift(4),p+=m.move((i?`
63
+ `:" ")+h.indentLines(h.containerFlow(u,m.current()),i?Vg:Sk))),d(),p}}function Sk(n,i,r){return i===0?n:Vg(n,i,r)}function Vg(n,i,r){return(r?"":" ")+n}const kk=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gg.peek=wk;function Ek(){return{canContainEols:["delete"],enter:{strikethrough:Tk},exit:{strikethrough:Ak}}}function Ck(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kk}],handlers:{delete:Gg}}}function Tk(n){this.enter({type:"delete",children:[]},n)}function Ak(n){this.exit(n)}function Gg(n,i,r,u){const o=r.createTracker(u),h=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(n,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),h(),c}function wk(){return"~"}function _k(n){return n.length}function zk(n,i){const r=i||{},u=(r.align||[]).concat(),o=r.stringLength||_k,h=[],c=[],m=[],p=[];let d=0,b=-1;for(;++b<n.length;){const O=[],Y=[];let N=-1;for(n[b].length>d&&(d=n[b].length);++N<n[b].length;){const P=Nk(n[b][N]);if(r.alignDelimiters!==!1){const X=o(P);Y[N]=X,(p[N]===void 0||X>p[N])&&(p[N]=X)}O.push(P)}c[b]=O,m[b]=Y}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<d;)h[y]=Xp(u[y]);else{const O=Xp(u);for(;++y<d;)h[y]=O}y=-1;const k=[],x=[];for(;++y<d;){const O=h[y];let Y="",N="";O===99?(Y=":",N=":"):O===108?Y=":":O===114&&(N=":");let P=r.alignDelimiters===!1?1:Math.max(1,p[y]-Y.length-N.length);const X=Y+"-".repeat(P)+N;r.alignDelimiters!==!1&&(P=Y.length+P+N.length,P>p[y]&&(p[y]=P),x[y]=P),k[y]=X}c.splice(1,0,k),m.splice(1,0,x),b=-1;const w=[];for(;++b<c.length;){const O=c[b],Y=m[b];y=-1;const N=[];for(;++y<d;){const P=O[y]||"";let X="",se="";if(r.alignDelimiters!==!1){const ce=p[y]-(Y[y]||0),j=h[y];j===114?X=" ".repeat(ce):j===99?ce%2?(X=" ".repeat(ce/2+.5),se=" ".repeat(ce/2-.5)):(X=" ".repeat(ce/2),se=X):se=" ".repeat(ce)}r.delimiterStart!==!1&&!y&&N.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&P==="")&&(r.delimiterStart!==!1||y)&&N.push(" "),r.alignDelimiters!==!1&&N.push(X),N.push(P),r.alignDelimiters!==!1&&N.push(se),r.padding!==!1&&N.push(" "),(r.delimiterEnd!==!1||y!==d-1)&&N.push("|")}w.push(r.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return w.join(`
64
+ `)}function Nk(n){return n==null?"":String(n)}function Xp(n){const i=typeof n=="string"?n.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function Dk(n,i,r,u){const o=r.enter("blockquote"),h=r.createTracker(u);h.move("> "),h.shift(2);const c=r.indentLines(r.containerFlow(n,h.current()),Ok);return o(),c}function Ok(n,i,r){return">"+(r?"":" ")+n}function jk(n,i){return Qp(n,i.inConstruct,!0)&&!Qp(n,i.notInConstruct,!1)}function Qp(n,i,r){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return r;let u=-1;for(;++u<i.length;)if(n.includes(i[u]))return!0;return!1}function Ip(n,i,r,u){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
65
+ `&&jk(r.stack,r.unsafe[o]))return/[ \t]/.test(u.before)?"":" ";return`\\
66
+ `}function Mk(n,i){const r=String(n);let u=r.indexOf(i),o=u,h=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===o?++h>c&&(c=h):h=1,o=u+i.length,u=r.indexOf(i,o);return c}function Rk(n,i){return!!(i.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function Bk(n){const i=n.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function Lk(n,i,r,u){const o=Bk(r),h=n.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Rk(n,r)){const y=r.enter("codeIndented"),k=r.indentLines(h,Uk);return y(),k}const m=r.createTracker(u),p=o.repeat(Math.max(Mk(h,o)+1,3)),d=r.enter("codeFenced");let b=m.move(p);if(n.lang){const y=r.enter(`codeFencedLang${c}`);b+=m.move(r.safe(n.lang,{before:b,after:" ",encode:["`"],...m.current()})),y()}if(n.lang&&n.meta){const y=r.enter(`codeFencedMeta${c}`);b+=m.move(" "),b+=m.move(r.safe(n.meta,{before:b,after:`
67
+ `,encode:["`"],...m.current()})),y()}return b+=m.move(`
68
+ `),h&&(b+=m.move(h+`
69
+ `)),b+=m.move(p),d(),b}function Uk(n,i,r){return(r?"":" ")+n}function xf(n){const i=n.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function Hk(n,i,r,u){const o=xf(r),h=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let m=r.enter("label");const p=r.createTracker(u);let d=p.move("[");return d+=p.move(r.safe(r.associationId(n),{before:d,after:"]",...p.current()})),d+=p.move("]: "),m(),!n.url||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=r.enter("destinationRaw"),d+=p.move(r.safe(n.url,{before:d,after:n.title?" ":`
70
+ `,...p.current()}))),m(),n.title&&(m=r.enter(`title${h}`),d+=p.move(" "+o),d+=p.move(r.safe(n.title,{before:d,after:o,...p.current()})),d+=p.move(o),m()),c(),d}function qk(n){const i=n.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function kr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function Wu(n,i,r){const u=ma(n),o=ma(i);return u===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Xg.peek=Yk;function Xg(n,i,r,u){const o=qk(r),h=r.enter("emphasis"),c=r.createTracker(u),m=c.move(o);let p=c.move(r.containerPhrasing(n,{after:o,before:m,...c.current()}));const d=p.charCodeAt(0),b=Wu(u.before.charCodeAt(u.before.length-1),d,o);b.inside&&(p=kr(d)+p.slice(1));const y=p.charCodeAt(p.length-1),k=Wu(u.after.charCodeAt(0),y,o);k.inside&&(p=p.slice(0,-1)+kr(y));const x=c.move(o);return h(),r.attentionEncodeSurroundingInfo={after:k.outside,before:b.outside},m+p+x}function Yk(n,i,r){return r.options.emphasis||"*"}function Vk(n,i){let r=!1;return bf(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return r=!0,Kc}),!!((!n.depth||n.depth<3)&&ff(n)&&(i.options.setext||r))}function Gk(n,i,r,u){const o=Math.max(Math.min(6,n.depth||1),1),h=r.createTracker(u);if(Vk(n,r)){const b=r.enter("headingSetext"),y=r.enter("phrasing"),k=r.containerPhrasing(n,{...h.current(),before:`
71
+ `,after:`
72
+ `});return y(),b(),k+`
73
+ `+(o===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
74
+ `))+1))}const c="#".repeat(o),m=r.enter("headingAtx"),p=r.enter("phrasing");h.move(c+" ");let d=r.containerPhrasing(n,{before:"# ",after:`
75
+ `,...h.current()});return/^[\t ]/.test(d)&&(d=kr(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,r.options.closeAtx&&(d+=" "+c),p(),m(),d}Qg.peek=Xk;function Qg(n){return n.value||""}function Xk(){return"<"}Ig.peek=Qk;function Ig(n,i,r,u){const o=xf(r),h=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let m=r.enter("label");const p=r.createTracker(u);let d=p.move("![");return d+=p.move(r.safe(n.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(n.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(m=r.enter("destinationRaw"),d+=p.move(r.safe(n.url,{before:d,after:n.title?" ":")",...p.current()}))),m(),n.title&&(m=r.enter(`title${h}`),d+=p.move(" "+o),d+=p.move(r.safe(n.title,{before:d,after:o,...p.current()})),d+=p.move(o),m()),d+=p.move(")"),c(),d}function Qk(){return"!"}Zg.peek=Ik;function Zg(n,i,r,u){const o=n.referenceType,h=r.enter("imageReference");let c=r.enter("label");const m=r.createTracker(u);let p=m.move("![");const d=r.safe(n.alt,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),c();const b=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...m.current()});return c(),r.stack=b,h(),o==="full"||!d||d!==y?p+=m.move(y+"]"):o==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function Ik(){return"!"}Fg.peek=Zk;function Fg(n,i,r){let u=n.value||"",o="`",h=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(u);)o+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++h<r.unsafe.length;){const c=r.unsafe[h],m=r.compilePattern(c);let p;if(c.atBreak)for(;p=m.exec(u);){let d=p.index;u.charCodeAt(d)===10&&u.charCodeAt(d-1)===13&&d--,u=u.slice(0,d)+" "+u.slice(p.index+1)}}return o+u+o}function Zk(){return"`"}function Kg(n,i){const r=ff(n);return!!(!i.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(r===n.url||"mailto:"+r===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}Jg.peek=Fk;function Jg(n,i,r,u){const o=xf(r),h=o==='"'?"Quote":"Apostrophe",c=r.createTracker(u);let m,p;if(Kg(n,r)){const b=r.stack;r.stack=[],m=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(n,{before:y,after:">",...c.current()})),y+=c.move(">"),m(),r.stack=b,y}m=r.enter("link"),p=r.enter("label");let d=c.move("[");return d+=c.move(r.containerPhrasing(n,{before:d,after:"](",...c.current()})),d+=c.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=r.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(r.safe(n.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(p=r.enter("destinationRaw"),d+=c.move(r.safe(n.url,{before:d,after:n.title?" ":")",...c.current()}))),p(),n.title&&(p=r.enter(`title${h}`),d+=c.move(" "+o),d+=c.move(r.safe(n.title,{before:d,after:o,...c.current()})),d+=c.move(o),p()),d+=c.move(")"),m(),d}function Fk(n,i,r){return Kg(n,r)?"<":"["}$g.peek=Kk;function $g(n,i,r,u){const o=n.referenceType,h=r.enter("linkReference");let c=r.enter("label");const m=r.createTracker(u);let p=m.move("[");const d=r.containerPhrasing(n,{before:p,after:"]",...m.current()});p+=m.move(d+"]["),c();const b=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(n),{before:p,after:"]",...m.current()});return c(),r.stack=b,h(),o==="full"||!d||d!==y?p+=m.move(y+"]"):o==="shortcut"?p=p.slice(0,-1):p+=m.move("]"),p}function Kk(){return"["}function Sf(n){const i=n.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function Jk(n){const i=Sf(n),r=n.options.bulletOther;if(!r)return i==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+r+"`) to be different");return r}function $k(n){const i=n.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function Pg(n){const i=n.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function Pk(n,i,r,u){const o=r.enter("list"),h=r.bulletCurrent;let c=n.ordered?$k(r):Sf(r);const m=n.ordered?c==="."?")":".":Jk(r);let p=i&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&b&&(!b.children||!b.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),Pg(r)===c&&b){let y=-1;for(;++y<n.children.length;){const k=n.children[y];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=m),r.bulletCurrent=c;const d=r.containerFlow(n,u);return r.bulletLastUsed=c,r.bulletCurrent=h,o(),d}function Wk(n){const i=n.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function eE(n,i,r,u){const o=Wk(r);let h=r.bulletCurrent||Sf(r);i&&i.type==="list"&&i.ordered&&(h=(typeof i.start=="number"&&i.start>-1?i.start:1)+(r.options.incrementListMarker===!1?0:i.children.indexOf(n))+h);let c=h.length+1;(o==="tab"||o==="mixed"&&(i&&i.type==="list"&&i.spread||n.spread))&&(c=Math.ceil(c/4)*4);const m=r.createTracker(u);m.move(h+" ".repeat(c-h.length)),m.shift(c);const p=r.enter("listItem"),d=r.indentLines(r.containerFlow(n,m.current()),b);return p(),d;function b(y,k,x){return k?(x?"":" ".repeat(c))+y:(x?h:h+" ".repeat(c-h.length))+y}}function tE(n,i,r,u){const o=r.enter("paragraph"),h=r.enter("phrasing"),c=r.containerPhrasing(n,u);return h(),o(),c}const nE=rs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lE(n,i,r,u){return(n.children.some(function(c){return nE(c)})?r.containerPhrasing:r.containerFlow).call(r,n,u)}function iE(n){const i=n.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}Wg.peek=aE;function Wg(n,i,r,u){const o=iE(r),h=r.enter("strong"),c=r.createTracker(u),m=c.move(o+o);let p=c.move(r.containerPhrasing(n,{after:o,before:m,...c.current()}));const d=p.charCodeAt(0),b=Wu(u.before.charCodeAt(u.before.length-1),d,o);b.inside&&(p=kr(d)+p.slice(1));const y=p.charCodeAt(p.length-1),k=Wu(u.after.charCodeAt(0),y,o);k.inside&&(p=p.slice(0,-1)+kr(y));const x=c.move(o+o);return h(),r.attentionEncodeSurroundingInfo={after:k.outside,before:b.outside},m+p+x}function aE(n,i,r){return r.options.strong||"*"}function rE(n,i,r,u){return r.safe(n.value,u)}function uE(n){const i=n.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function sE(n,i,r){const u=(Pg(r)+(r.options.ruleSpaces?" ":"")).repeat(uE(r));return r.options.ruleSpaces?u.slice(0,-1):u}const ey={blockquote:Dk,break:Ip,code:Lk,definition:Hk,emphasis:Xg,hardBreak:Ip,heading:Gk,html:Qg,image:Ig,imageReference:Zg,inlineCode:Fg,link:Jg,linkReference:$g,list:Pk,listItem:eE,paragraph:tE,root:lE,strong:Wg,text:rE,thematicBreak:sE};function oE(){return{enter:{table:cE,tableData:Zp,tableHeader:Zp,tableRow:hE},exit:{codeText:dE,table:fE,tableData:Lc,tableHeader:Lc,tableRow:Lc}}}function cE(n){const i=n._align;this.enter({type:"table",align:i.map(function(r){return r==="none"?null:r}),children:[]},n),this.data.inTable=!0}function fE(n){this.exit(n),this.data.inTable=void 0}function hE(n){this.enter({type:"tableRow",children:[]},n)}function Lc(n){this.exit(n)}function Zp(n){this.enter({type:"tableCell",children:[]},n)}function dE(n){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,mE));const r=this.stack[this.stack.length-1];r.type,r.value=i,this.exit(n)}function mE(n,i){return i==="|"?i:n}function pE(n){const i=n||{},r=i.tableCellPadding,u=i.tablePipeAlign,o=i.stringLength,h=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
76
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:c,tableCell:p,tableRow:m}};function c(x,w,O,Y){return d(b(x,O,Y),x.align)}function m(x,w,O,Y){const N=y(x,O,Y),P=d([N]);return P.slice(0,P.indexOf(`
77
+ `))}function p(x,w,O,Y){const N=O.enter("tableCell"),P=O.enter("phrasing"),X=O.containerPhrasing(x,{...Y,before:h,after:h});return P(),N(),X}function d(x,w){return zk(x,{align:w,alignDelimiters:u,padding:r,stringLength:o})}function b(x,w,O){const Y=x.children;let N=-1;const P=[],X=w.enter("table");for(;++N<Y.length;)P[N]=y(Y[N],w,O);return X(),P}function y(x,w,O){const Y=x.children;let N=-1;const P=[],X=w.enter("tableRow");for(;++N<Y.length;)P[N]=p(Y[N],x,w,O);return X(),P}function k(x,w,O){let Y=ey.inlineCode(x,w,O);return O.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function gE(){return{exit:{taskListCheckValueChecked:Fp,taskListCheckValueUnchecked:Fp,paragraph:bE}}}function yE(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vE}}}function Fp(n){const i=this.stack[this.stack.length-2];i.type,i.checked=n.type==="taskListCheckValueChecked"}function bE(n){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const u=r.children[0];if(u&&u.type==="text"){const o=i.children;let h=-1,c;for(;++h<o.length;){const m=o[h];if(m.type==="paragraph"){c=m;break}}c===r&&(u.value=u.value.slice(1),u.value.length===0?r.children.shift():r.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,r.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function vE(n,i,r,u){const o=n.children[0],h=typeof n.checked=="boolean"&&o&&o.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",m=r.createTracker(u);h&&m.move(c);let p=ey.listItem(n,i,r,{...u,...m.current()});return h&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(b){return b+c}}function xE(){return[PS(),vk(),Ek(),oE(),gE()]}function SE(n){return{extensions:[WS(),xk(n),Ck(),pE(n),yE()]}}const kE={tokenize:_E,partial:!0},ty={tokenize:zE,partial:!0},ny={tokenize:NE,partial:!0},ly={tokenize:DE,partial:!0},EE={tokenize:OE,partial:!0},iy={name:"wwwAutolink",tokenize:AE,previous:ry},ay={name:"protocolAutolink",tokenize:wE,previous:uy},fl={name:"emailAutolink",tokenize:TE,previous:sy},Qn={};function CE(){return{text:Qn}}let xi=48;for(;xi<123;)Qn[xi]=fl,xi++,xi===58?xi=65:xi===91&&(xi=97);Qn[43]=fl;Qn[45]=fl;Qn[46]=fl;Qn[95]=fl;Qn[72]=[fl,ay];Qn[104]=[fl,ay];Qn[87]=[fl,iy];Qn[119]=[fl,iy];function TE(n,i,r){const u=this;let o,h;return c;function c(y){return!Wc(y)||!sy.call(u,u.previous)||kf(u.events)?r(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),m(y))}function m(y){return Wc(y)?(n.consume(y),m):y===64?(n.consume(y),p):r(y)}function p(y){return y===46?n.check(EE,b,d)(y):y===45||y===95||Ht(y)?(h=!0,n.consume(y),p):b(y)}function d(y){return n.consume(y),o=!0,p}function b(y){return h&&o&&Xt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),i(y)):r(y)}}function AE(n,i,r){const u=this;return o;function o(c){return c!==87&&c!==119||!ry.call(u,u.previous)||kf(u.events)?r(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(kE,n.attempt(ty,n.attempt(ny,h),r),r)(c))}function h(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),i(c)}}function wE(n,i,r){const u=this;let o="",h=!1;return c;function c(y){return(y===72||y===104)&&uy.call(u,u.previous)&&!kf(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),n.consume(y),m):r(y)}function m(y){if(Xt(y)&&o.length<5)return o+=String.fromCodePoint(y),n.consume(y),m;if(y===58){const k=o.toLowerCase();if(k==="http"||k==="https")return n.consume(y),p}return r(y)}function p(y){return y===47?(n.consume(y),h?d:(h=!0,p)):r(y)}function d(y){return y===null||Ju(y)||lt(y)||ki(y)||ls(y)?r(y):n.attempt(ty,n.attempt(ny,b),r)(y)}function b(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(y)}}function _E(n,i,r){let u=0;return o;function o(c){return(c===87||c===119)&&u<3?(u++,n.consume(c),o):c===46&&u===3?(n.consume(c),h):r(c)}function h(c){return c===null?r(c):i(c)}}function zE(n,i,r){let u,o,h;return c;function c(d){return d===46||d===95?n.check(ly,p,m)(d):d===null||lt(d)||ki(d)||d!==45&&ls(d)?p(d):(h=!0,n.consume(d),c)}function m(d){return d===95?u=!0:(o=u,u=void 0),n.consume(d),c}function p(d){return o||u||!h?r(d):i(d)}}function NE(n,i){let r=0,u=0;return o;function o(c){return c===40?(r++,n.consume(c),o):c===41&&u<r?h(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?n.check(ly,i,h)(c):c===null||lt(c)||ki(c)?i(c):(n.consume(c),o)}function h(c){return c===41&&u++,n.consume(c),o}}function DE(n,i,r){return u;function u(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(n.consume(m),u):m===38?(n.consume(m),h):m===93?(n.consume(m),o):m===60||m===null||lt(m)||ki(m)?i(m):r(m)}function o(m){return m===null||m===40||m===91||lt(m)||ki(m)?i(m):u(m)}function h(m){return Xt(m)?c(m):r(m)}function c(m){return m===59?(n.consume(m),u):Xt(m)?(n.consume(m),c):r(m)}}function OE(n,i,r){return u;function u(h){return n.consume(h),o}function o(h){return Ht(h)?r(h):i(h)}}function ry(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||lt(n)}function uy(n){return!Xt(n)}function sy(n){return!(n===47||Wc(n))}function Wc(n){return n===43||n===45||n===46||n===95||Ht(n)}function kf(n){let i=n.length,r=!1;for(;i--;){const u=n[i][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){r=!0;break}if(u._gfmAutolinkLiteralWalkedInto){r=!1;break}}return n.length>0&&!r&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const jE={tokenize:YE,partial:!0};function ME(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:UE,continuation:{tokenize:HE},exit:qE}},text:{91:{name:"gfmFootnoteCall",tokenize:LE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RE,resolveTo:BE}}}}function RE(n,i,r){const u=this;let o=u.events.length;const h=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c;for(;o--;){const p=u.events[o][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 m;function m(p){if(!c||!c._balanced)return r(p);const d=Bn(u.sliceSerialize({start:c.end,end:u.now()}));return d.codePointAt(0)!==94||!h.includes(d.slice(1))?r(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),i(p))}}function BE(n,i){let r=n.length;for(;r--;)if(n[r][1].type==="labelImage"&&n[r][0]==="enter"){n[r][1];break}n[r+1][1].type="data",n[r+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[r+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[r+3][1].end),end:Object.assign({},n[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const h={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},h.start),end:Object.assign({},h.end)},m=[n[r+1],n[r+2],["enter",u,i],n[r+3],n[r+4],["enter",o,i],["exit",o,i],["enter",h,i],["enter",c,i],["exit",c,i],["exit",h,i],n[n.length-2],n[n.length-1],["exit",u,i]];return n.splice(r,n.length-r+1,...m),n}function LE(n,i,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h=0,c;return m;function m(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?r(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",d)}function d(y){if(h>999||y===93&&!c||y===null||y===91||lt(y))return r(y);if(y===93){n.exit("chunkString");const k=n.exit("gfmFootnoteCallString");return o.includes(Bn(u.sliceSerialize(k)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),i):r(y)}return lt(y)||(c=!0),h++,n.consume(y),y===92?b:d}function b(y){return y===91||y===92||y===93?(n.consume(y),h++,d):d(y)}}function UE(n,i,r){const u=this,o=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let h,c=0,m;return p;function p(w){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(w){return w===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):r(w)}function b(w){if(c>999||w===93&&!m||w===null||w===91||lt(w))return r(w);if(w===93){n.exit("chunkString");const O=n.exit("gfmFootnoteDefinitionLabelString");return h=Bn(u.sliceSerialize(O)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),k}return lt(w)||(m=!0),c++,n.consume(w),w===92?y:b}function y(w){return w===91||w===92||w===93?(n.consume(w),c++,b):b(w)}function k(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),o.includes(h)||o.push(h),Ve(n,x,"gfmFootnoteDefinitionWhitespace")):r(w)}function x(w){return i(w)}}function HE(n,i,r){return n.check(Cr,i,n.attempt(jE,i,r))}function qE(n){n.exit("gfmFootnoteDefinition")}function YE(n,i,r){const u=this;return Ve(n,o,"gfmFootnoteDefinitionIndent",5);function o(h){const c=u.events[u.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(h):r(h)}}function VE(n){let r=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:h,resolveAll:o};return r==null&&(r=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function o(c,m){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let d=p;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[p][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[p][1].end)},y={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[p][1].start)},k=[["enter",b,m],["enter",c[d][1],m],["exit",c[d][1],m],["enter",y,m]],x=m.parser.constructs.insideSpan.null;x&&bn(k,k.length,0,is(x,c.slice(d+1,p),m)),bn(k,k.length,0,[["exit",y,m],["enter",c[p][1],m],["exit",c[p][1],m],["exit",b,m]]),bn(c,d-1,p-d+3,k),p=d+k.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function h(c,m,p){const d=this.previous,b=this.events;let y=0;return k;function k(w){return d===126&&b[b.length-1][1].type!=="characterEscape"?p(w):(c.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const O=ma(d);if(w===126)return y>1?p(w):(c.consume(w),y++,x);if(y<2&&!r)return p(w);const Y=c.exit("strikethroughSequenceTemporary"),N=ma(w);return Y._open=!N||N===2&&!!O,Y._close=!O||O===2&&!!N,m(w)}}}class GE{constructor(){this.map=[]}add(i,r,u){XE(this,i,r,u)}consume(i){if(this.map.sort(function(h,c){return h[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const u=[];for(;r>0;)r-=1,u.push(i.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),i.length=this.map[r][0];u.push(i.slice()),i.length=0;let o=u.pop();for(;o;){for(const h of o)i.push(h);o=u.pop()}this.map.length=0}}function XE(n,i,r,u){let o=0;if(!(r===0&&u.length===0)){for(;o<n.map.length;){if(n.map[o][0]===i){n.map[o][1]+=r,n.map[o][2].push(...u);return}o+=1}n.map.push([i,r,u])}}function QE(n,i){let r=!1;const u=[];for(;i<n.length;){const o=n[i];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&u.push(n[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[i-1][1].type==="tableDelimiterMarker"){const h=u.length-1;u[h]=u[h]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);i+=1}return u}function IE(){return{flow:{null:{name:"table",tokenize:ZE,resolveAll:FE}}}}function ZE(n,i,r){const u=this;let o=0,h=0,c;return m;function m(H){let ue=u.events.length-1;for(;ue>-1;){const fe=u.events[ue][1].type;if(fe==="lineEnding"||fe==="linePrefix")ue--;else break}const G=ue>-1?u.events[ue][1].type:null,we=G==="tableHead"||G==="tableRow"?j:p;return we===j&&u.parser.lazy[u.now().line]?r(H):we(H)}function p(H){return n.enter("tableHead"),n.enter("tableRow"),d(H)}function d(H){return H===124||(c=!0,h+=1),b(H)}function b(H){return H===null?r(H):Ee(H)?h>1?(h=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),x):r(H):Le(H)?Ve(n,b,"whitespace")(H):(h+=1,c&&(c=!1,o+=1),H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),c=!0,b):(n.enter("data"),y(H)))}function y(H){return H===null||H===124||lt(H)?(n.exit("data"),b(H)):(n.consume(H),H===92?k:y)}function k(H){return H===92||H===124?(n.consume(H),y):y(H)}function x(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?r(H):(n.enter("tableDelimiterRow"),c=!1,Le(H)?Ve(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):w(H))}function w(H){return H===45||H===58?Y(H):H===124?(c=!0,n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),O):ce(H)}function O(H){return Le(H)?Ve(n,Y,"whitespace")(H):Y(H)}function Y(H){return H===58?(h+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),N):H===45?(h+=1,N(H)):H===null||Ee(H)?se(H):ce(H)}function N(H){return H===45?(n.enter("tableDelimiterFiller"),P(H)):ce(H)}function P(H){return H===45?(n.consume(H),P):H===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),X):(n.exit("tableDelimiterFiller"),X(H))}function X(H){return Le(H)?Ve(n,se,"whitespace")(H):se(H)}function se(H){return H===124?w(H):H===null||Ee(H)?!c||o!==h?ce(H):(n.exit("tableDelimiterRow"),n.exit("tableHead"),i(H)):ce(H)}function ce(H){return r(H)}function j(H){return n.enter("tableRow"),ne(H)}function ne(H){return H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),ne):H===null||Ee(H)?(n.exit("tableRow"),i(H)):Le(H)?Ve(n,ne,"whitespace")(H):(n.enter("data"),pe(H))}function pe(H){return H===null||H===124||lt(H)?(n.exit("data"),ne(H)):(n.consume(H),H===92?xe:pe)}function xe(H){return H===92||H===124?(n.consume(H),pe):pe(H)}}function FE(n,i){let r=-1,u=!0,o=0,h=[0,0,0,0],c=[0,0,0,0],m=!1,p=0,d,b,y;const k=new GE;for(;++r<n.length;){const x=n[r],w=x[1];x[0]==="enter"?w.type==="tableHead"?(m=!1,p!==0&&(Kp(k,i,p,d,b),b=void 0,p=0),d={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(r,0,[["enter",d,i]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=!0,y=void 0,h=[0,0,0,0],c=[0,r+1,0,0],m&&(m=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},k.add(r,0,[["enter",b,i]])),o=w.type==="tableDelimiterRow"?2:b?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,c[2]===0&&(h[1]!==0&&(c[0]=c[1],y=Qu(k,i,h,o,void 0,y),h=[0,0,0,0]),c[2]=r)):w.type==="tableCellDivider"&&(u?u=!1:(h[1]!==0&&(c[0]=c[1],y=Qu(k,i,h,o,void 0,y)),h=c,c=[h[1],r,0,0])):w.type==="tableHead"?(m=!0,p=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=r,h[1]!==0?(c[0]=c[1],y=Qu(k,i,h,o,r,y)):c[1]!==0&&(y=Qu(k,i,c,o,r,y)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Kp(k,i,p,d,b),k.consume(i.events),r=-1;++r<i.events.length;){const x=i.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=QE(i.events,r))}return n}function Qu(n,i,r,u,o,h){const c=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",m="tableContent";r[0]!==0&&(h.end=Object.assign({},ha(i.events,r[0])),n.add(r[0],0,[["exit",h,i]]));const p=ha(i.events,r[1]);if(h={type:c,start:Object.assign({},p),end:Object.assign({},p)},n.add(r[1],0,[["enter",h,i]]),r[2]!==0){const d=ha(i.events,r[2]),b=ha(i.events,r[3]),y={type:m,start:Object.assign({},d),end:Object.assign({},b)};if(n.add(r[2],0,[["enter",y,i]]),u!==2){const k=i.events[r[2]],x=i.events[r[3]];if(k[1].end=Object.assign({},x[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,O=r[3]-r[2]-1;n.add(w,O,[])}}n.add(r[3]+1,0,[["exit",y,i]])}return o!==void 0&&(h.end=Object.assign({},ha(i.events,o)),n.add(o,0,[["exit",h,i]]),h=void 0),h}function Kp(n,i,r,u,o){const h=[],c=ha(i.events,r);o&&(o.end=Object.assign({},c),h.push(["exit",o,i])),u.end=Object.assign({},c),h.push(["exit",u,i]),n.add(r+1,0,h)}function ha(n,i){const r=n[i],u=r[0]==="enter"?"start":"end";return r[1][u]}const KE={name:"tasklistCheck",tokenize:$E};function JE(){return{text:{91:KE}}}function $E(n,i,r){const u=this;return o;function o(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?r(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),h)}function h(p){return lt(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),m):r(p)}function m(p){return Ee(p)?i(p):Le(p)?n.check({tokenize:PE},i,r)(p):r(p)}}function PE(n,i,r){return Ve(n,u,"whitespace");function u(o){return o===null?r(o):i(o)}}function WE(n){return vg([CE(),ME(),VE(n),IE(),JE()])}const eC={};function tC(n){const i=this,r=n||eC,u=i.data(),o=u.micromarkExtensions||(u.micromarkExtensions=[]),h=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),c=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);o.push(WE(r)),h.push(xE()),c.push(SE(r))}function nC(n){return`/api/browser/latest?sessionId=${encodeURIComponent(n)}`}const lC=/^session-([A-Za-z0-9:_-]+)-step-\d+\.png$/i,Jp=/session-[A-Za-z0-9:_-]+-step-\d+\.png/gi;function iC(n){return`/api/browser/image?filename=${encodeURIComponent(n)}`}function aC(n){var c;const i=n.trim();if(!i||/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(i)||/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(i)&&!i.startsWith("session-"))return null;const r=((c=i.split("#",1)[0])==null?void 0:c.split("?",1)[0])??"";if(!r)return null;const u=r.split("/").filter(m=>m.length>0).at(-1)??r,o=sC(u);if(!o)return null;const h=o.match(lC);return h?{filename:o,sessionId:h[1]}:null}function rC(n){const i=[],r=new Set;let u=null;for(Jp.lastIndex=0;(u=Jp.exec(n))!==null;){const o=aC(u[0]??"");if(!o)continue;const h=o.filename.toLowerCase();r.has(h)||(r.add(h),i.push(o))}return i}function uC(n,i){return n!==i}function sC(n){try{return decodeURIComponent(n)}catch{return n}}const Uc=/```(?:\s*([a-zA-Z0-9_+-]+))?[ \t]*\n?([\s\S]*?)```/g;function oC(n){var o;if(!n.includes("```"))return[{type:"text",content:n}];const i=[];let r=0,u=null;for(Uc.lastIndex=0;(u=Uc.exec(n))!==null;){const h=u.index,c=Uc.lastIndex,m=u[0],p=((o=u[1])==null?void 0:o.trim())||null,d=cC(u[2]??"",p,m);h>r&&i.push({type:"text",content:n.slice(r,h)}),i.push({type:"code",content:d,language:p}),r=c}return i.length===0?[{type:"text",content:n}]:(r<n.length&&i.push({type:"text",content:n.slice(r)}),i)}function cC(n,i,r){let u=n;return i&&(r.slice(0,r.indexOf(n)).includes(`
78
+ `)||(u=u.replace(/^[ \t]+/,""))),u.replace(/\n$/,"").replace(/[ \t]+$/,"")}const fC=["Summarize the latest project changes and open tasks.","Check the repo for security risks and suggest quick fixes.","Write a deployment checklist for today's release.","Draft a concise standup update from current progress."],hC=80,ef=5,dC=10*1024*1024,mC="K",pC=new Set(["image/png","image/jpeg","image/webp","image/gif"]),gC=new RegExp("(?:\\p{Extended_Pictographic}(?:\\uFE0F|\\uFE0E)?(?:\\u200D\\p{Extended_Pictographic}(?:\\uFE0F|\\uFE0E)?)*)|(?:[\\u{1F1E6}-\\u{1F1FF}]{2})","u"),yC=new RegExp("(?:\\p{Extended_Pictographic}(?:\\uFE0F|\\uFE0E)?(?:\\u200D\\p{Extended_Pictographic}(?:\\uFE0F|\\uFE0E)?)*)|(?:[\\u{1F1E6}-\\u{1F1FF}]{2})","gu"),bC=/signature\s*emoji(?:\s*[:=-]|\s+is)?\s*(.+)$/i,vC=/^:[a-z0-9_+-]+:/i,xC=/[\s"'`~!@#$%^&*(){}[\]|\\/<>.,?;:_+=-]/g,SC={a:({node:n,...i})=>v.jsx("a",{...i,target:"_blank",rel:"noreferrer noopener"}),img:({node:n,...i})=>{const r=typeof i.src=="string"?i.src:"";return r?v.jsx("a",{href:r,target:"_blank",rel:"noreferrer noopener",children:v.jsx("img",{...i,src:r,alt:i.alt??"Assistant image",loading:"lazy",className:"message-markdown-image"})}):null}};function kC(n){return pC.has(n.type)?n.size>dC?"Each image must be 10MB or smaller.":null:"Only PNG, JPEG, WEBP, and GIF images are supported."}function EC(n,i,r){const u=[...n],o=new Set(n.map(c=>c.dedupeKey));let h=null;for(const c of i){if(u.length>=ef){h=`You can attach up to ${ef} images per message.`;break}const m=kC(c);if(m){h=m;continue}const p=`${c.name}:${c.size}:${c.lastModified}`;o.has(p)||(o.add(p),u.push({id:r.createId(),dedupeKey:p,file:c,previewUrl:r.createPreviewUrl(c)}))}return{next:u,error:h}}function CC(n,i){const r=n.find(o=>o.id===i)??null;return{next:r?n.filter(o=>o.id!==i):n,removed:r}}function oy(n){const i=n.match(gC);return(i==null?void 0:i[0])??null}function TC(n){const i=n.trim();if(!i)return null;const r=oy(i);if(r)return r;const u=i.match(vC);return(u==null?void 0:u[0])??null}function AC(n){const i=n.split(/\r?\n/g);for(const r of i){const u=r.match(bC);if(!u)continue;const o=TC(u[1]??"");if(o)return o}return null}function wC(n){const i=n.trim();if(!i||i.length>16)return null;const r=oy(i);return r&&i.replace(yC,"").replace(xC,"").length===0?r:null}function _C(n){for(let i=n.length-1;i>=0;i-=1){const r=n[i];if(!r||r.role!=="user")continue;const u=AC(r.content);if(u)return u;const o=wC(r.content);if(o)return o}return mC}function zC(n){return n.scrollHeight-n.scrollTop-n.clientHeight<=hC}function NC({messages:n,onSendMessage:i,isStreaming:r,streamActivities:u,disabled:o,inputPlaceholder:h,sessionIdForUploads:c,readOnlyHint:m}){const[p,d]=V.useState(""),[b,y]=V.useState(null),[k,x]=V.useState([]),[w,O]=V.useState(null),[Y,N]=V.useState(!1),[P,X]=V.useState(!1),se=V.useRef(null),ce=V.useRef(!0),j=V.useRef(null),ne=V.useRef(null),pe=V.useRef(null),xe=V.useRef([]),H=n.some(F=>F.id==="streaming"),ue=u.slice(-4).reverse(),G=ue[0],we=V.useMemo(()=>_C(n),[n]);V.useEffect(()=>{xe.current=k},[k]),V.useEffect(()=>()=>{pe.current!==null&&window.clearTimeout(pe.current);for(const F of xe.current)URL.revokeObjectURL(F.previewUrl)},[]),V.useEffect(()=>{const F=se.current;!F||!ce.current||F.scrollTo({top:F.scrollHeight,behavior:"auto"})},[n,r]),V.useEffect(()=>{const F=se.current;if(!F)return;const le=()=>{ce.current=zC(F)};return le(),F.addEventListener("scroll",le,{passive:!0}),()=>{F.removeEventListener("scroll",le)}},[]);const fe=()=>{for(const F of xe.current)URL.revokeObjectURL(F.previewUrl);xe.current=[],x([])},te=F=>{if(F.length===0)return;const le=EC(xe.current,F,{createId:()=>crypto.randomUUID(),createPreviewUrl:ve=>URL.createObjectURL(ve)});xe.current=le.next,x(le.next),O(le.error)},B=F=>{const{next:le,removed:ve}=CC(xe.current,F);ve&&URL.revokeObjectURL(ve.previewUrl),xe.current=le,x(le)},W=F=>{const le=Array.from(F.target.files??[]);te(le),F.target.value=""},he=F=>{if(F.preventDefault(),X(!1),o||r||Y)return;const le=Array.from(F.dataTransfer.files??[]);te(le)},Te=F=>{if(o||r||Y)return;const le=Array.from(F.clipboardData.items??[]).filter(ve=>ve.kind==="file"&&ve.type.startsWith("image/")).map(ve=>ve.getAsFile()).filter(ve=>ve!==null);le.length!==0&&(F.preventDefault(),te(le))},T=async F=>{F==null||F.preventDefault();const le=p.trim(),ve=k.length>0;if(!le&&!ve||o||r||Y)return;if(ve&&!c){O("Upload session is unavailable. Reconnect and try again.");return}O(null);let Ge;if(ve){N(!0);try{const je=[];for(const dt of k){const wt=await fetch(`/api/uploads/image?sessionId=${encodeURIComponent(c)}`,{method:"POST",headers:{"Content-Type":dt.file.type},body:dt.file});if(!wt.ok){const _t=await jC(wt);throw new Error(_t)}const vn=await wt.json(),xn=OC(vn);if(!xn)throw new Error("Image upload response was malformed.");je.push(xn)}Ge=je}catch(je){O(je instanceof Error?je.message:"Image upload failed."),N(!1);return}}i(le,Ge),d(""),fe(),N(!1)},_=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),T())},Q=F=>{var le;o||r||Y||(d(F),(le=j.current)==null||le.focus())},E=async(F,le)=>{await MC(le)&&(y(F),pe.current!==null&&window.clearTimeout(pe.current),pe.current=window.setTimeout(()=>{y(null),pe.current=null},1500))},re=!p.trim()&&k.length===0||o||r||Y;return v.jsxs("div",{className:"chat-view",children:[m&&v.jsx("div",{className:"chat-readonly-banner",children:m}),v.jsx("div",{className:"messages-container",ref:se,children:n.length===0?v.jsxs("div",{className:"empty-state animate-slide-in",children:[v.jsx("p",{className:"empty-kicker",children:"Ready"}),v.jsx("h2",{children:"Talk to your AI workspace"}),v.jsx("p",{className:"empty-copy",children:"Use natural language to run tools, inspect files, and coordinate work in one place."}),v.jsx("div",{className:"starter-grid",children:fC.map(F=>v.jsx("button",{type:"button",className:"starter-chip",onClick:()=>Q(F),disabled:o||r||Y,children:F},F))})]}):v.jsxs(v.Fragment,{children:[n.map(F=>v.jsx(DC,{msg:F,assistantAvatar:we,copiedCodeBlockId:b,onCopyCode:E},F.id)),r&&!H&&v.jsxs("div",{className:"message assistant animate-slide-in thinking-message",children:[v.jsx("div",{className:"message-avatar","aria-hidden":"true",children:we}),v.jsxs("div",{className:"message-content",children:[v.jsxs("div",{className:"message-header",children:[v.jsx("span",{className:"message-role",children:"Keygate"}),v.jsx("span",{className:"thinking-badge",children:G?"Live":"Thinking"})]}),v.jsxs("div",{className:"message-bubble thinking-bubble",children:[v.jsxs("div",{className:"thinking-status",children:[(G==null?void 0:G.status)??"Working on your request",!G&&v.jsxs("span",{className:"thinking-dots","aria-hidden":"true",children:[v.jsx("span",{children:"."}),v.jsx("span",{children:"."}),v.jsx("span",{children:"."})]})]}),(G==null?void 0:G.detail)&&v.jsx("div",{className:"thinking-detail",children:G.detail}),ue.length>1&&v.jsx("div",{className:"thinking-activity-list",children:ue.slice(1).map(F=>v.jsxs("div",{className:"thinking-activity-item",children:[v.jsx("span",{className:"thinking-activity-time",children:F.timestamp.toLocaleTimeString()}),v.jsx("span",{children:F.status})]},F.id))})]})]})]})]})}),v.jsxs("form",{className:`input-container ${P?"drag-active":""}`,onSubmit:F=>void T(F),onDragOver:F=>{F.preventDefault(),!o&&!r&&!Y&&X(!0)},onDragLeave:()=>X(!1),onDrop:he,children:[v.jsxs("div",{className:"composer-field",children:[v.jsx("textarea",{ref:j,value:p,onChange:F=>d(F.target.value),onKeyDown:_,onPaste:Te,placeholder:h,disabled:o||r||Y,rows:1}),v.jsxs("div",{className:"composer-actions-row",children:[v.jsx("button",{type:"button",className:"attach-btn",onClick:()=>{var F;return(F=ne.current)==null?void 0:F.click()},disabled:o||r||Y||k.length>=ef,children:"Add image"}),v.jsx("p",{className:"composer-tip",children:"Press Enter to send, Shift+Enter for a new line."})]}),v.jsx("input",{ref:ne,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",multiple:!0,className:"composer-file-input",onChange:W}),k.length>0&&v.jsx("div",{className:"pending-attachments-grid",children:k.map(F=>v.jsxs("div",{className:"pending-attachment-card",children:[v.jsx("img",{src:F.previewUrl,alt:F.file.name,loading:"lazy"}),v.jsxs("div",{className:"pending-attachment-meta",children:[v.jsx("span",{children:F.file.name}),v.jsx("button",{type:"button",onClick:()=>B(F.id),disabled:Y,children:"Remove"})]})]},F.id))}),w&&v.jsx("p",{className:"composer-error",children:w})]}),v.jsx("button",{type:"submit",disabled:re,className:"send-btn",children:r||Y?v.jsx("span",{className:"spinner"}):v.jsx("span",{children:"Send"})})]})]})}function DC({msg:n,assistantAvatar:i,copiedCodeBlockId:r,onCopyCode:u}){const o=new Set;return v.jsxs("div",{className:`message ${n.role} animate-slide-in`,children:[v.jsx("div",{className:"message-avatar","aria-hidden":"true",children:n.role==="user"?"U":i}),v.jsxs("div",{className:"message-content",children:[v.jsxs("div",{className:"message-header",children:[v.jsx("span",{className:"message-role",children:n.role==="user"?"You":"Keygate"}),v.jsx("span",{className:"message-time",children:n.timestamp.toLocaleTimeString()})]}),v.jsxs("div",{className:"message-bubble",children:[v.jsxs("div",{className:"message-rendered",children:[n.attachments&&n.attachments.length>0&&v.jsx("div",{className:"message-upload-list",children:n.attachments.map(h=>v.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer noopener",className:"message-upload-item",children:[v.jsx("img",{src:h.url,alt:h.filename,className:"message-upload-image",loading:"lazy"}),v.jsx("span",{children:h.filename})]},h.id))}),oC(n.content).map((h,c)=>{const m=`${n.id}:${c}`;if(h.type==="text"){if(h.content.length===0)return null;const d=(n.role==="assistant"?rC(h.content):[]).filter(b=>{const y=b.filename.toLowerCase();return o.has(y)?!1:(o.add(y),!0)});return v.jsxs("div",{className:"message-text",children:[v.jsx(VS,{remarkPlugins:[tC],components:SC,children:h.content}),d.length>0&&v.jsx("div",{className:"message-screenshot-list",children:d.map(b=>{const y=iC(b.filename);return v.jsxs("span",{className:"message-screenshot-inline",children:[v.jsx("a",{href:y,target:"_blank",rel:"noreferrer noopener",children:b.filename}),v.jsx("img",{src:y,alt:`Browser screenshot for ${b.sessionId}`,className:"message-screenshot-image",loading:"lazy"})]},`${n.id}:${c}:${b.filename}`)})})]},m)}const p=`${n.id}:code:${c}`;return v.jsxs("div",{className:"code-block",children:[v.jsxs("div",{className:"code-block-header",children:[v.jsx("span",{className:"code-block-language",children:h.language??"text"}),v.jsx("button",{type:"button",className:"code-copy-btn",onClick:()=>u(p,h.content),children:r===p?"Copied":"Copy code"})]}),v.jsx("pre",{children:v.jsx("code",{children:h.content})})]},m)})]}),n.id==="streaming"&&v.jsx("span",{className:"cursor-blink",children:"|"})]})]})]})}function OC(n){if(!n||typeof n!="object")return null;const i=n,r=typeof i.id=="string"?i.id.trim():"",u=typeof i.filename=="string"?i.filename.trim():"",o=typeof i.contentType=="string"?i.contentType.trim():"",h=typeof i.url=="string"?i.url.trim():"",c=Number.parseInt(String(i.sizeBytes??""),10);return!r||!u||!o||!h||!Number.isFinite(c)||c<0?null:{id:r,filename:u,contentType:o,sizeBytes:c,url:h}}async function jC(n){try{const i=await n.json();if(typeof i.error=="string"&&i.error.trim().length>0)return i.error}catch{}return`Image upload failed (${n.status}).`}async function MC(n){var u;if(typeof navigator<"u"&&((u=navigator.clipboard)!=null&&u.writeText))try{return await navigator.clipboard.writeText(n),!0}catch{}if(typeof document>"u")return!1;const i=document.createElement("textarea");i.value=n,i.setAttribute("readonly",""),i.style.position="fixed",i.style.left="-9999px",document.body.appendChild(i),i.select();let r=!1;try{r=document.execCommand("copy")}catch{r=!1}finally{document.body.removeChild(i)}return r}const Hc=24;function $p(n,i){return n.length<=i?n:`${n.slice(0,i)}...`}function RC({events:n,latestScreenshot:i,collapsed:r,onToggleCollapsed:u}){const[o,h]=V.useState(!1),[c,m]=V.useState(!1),p=n.slice().reverse(),d=n.filter(O=>O.type==="provider").length,b=n.filter(O=>O.type==="provider"&&!O.important).length,y=o?p:p.filter(O=>O.type!=="provider"||O.important),k=y.length>Hc,x=Math.max(0,y.length-Hc),w=c?y:y.slice(0,Hc);return v.jsxs("aside",{className:`live-activity${r?" live-activity-collapsed":""}`,children:[v.jsxs("div",{className:"activity-header",children:[v.jsx("h3",{children:"Activity Feed"}),v.jsxs("div",{className:"activity-header-right",children:[v.jsx("span",{className:"event-count",children:n.length}),u&&v.jsx("button",{type:"button",className:"activity-collapse-btn",onClick:u,"aria-label":r?"Expand activity feed":"Collapse activity feed",children:r?"◀":"▶"})]})]}),!r&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"activity-controls",children:[v.jsx("button",{type:"button",className:`activity-toggle ${o?"active":""}`,onClick:()=>h(O=>!O),children:o?"Provider events: on":"Provider events: off"}),!o&&b>0&&v.jsxs("span",{className:"provider-summary",children:[b," low-level provider notifications hidden"]})]}),i&&v.jsxs("div",{className:"latest-screenshot-card animate-slide-in",children:[v.jsxs("div",{className:"latest-screenshot-header",children:[v.jsx("strong",{children:"Latest Browser Screenshot"}),v.jsx("span",{children:i.capturedAt?i.capturedAt.toLocaleTimeString():"just now"})]}),v.jsxs("div",{className:"latest-screenshot-meta",children:["Session: ",i.sessionId]}),v.jsx("img",{src:i.imageUrl,alt:`Latest browser capture for ${i.sessionId}`,className:"latest-screenshot-image",loading:"lazy"})]}),v.jsxs("div",{className:"events-list",children:[w.length===0?v.jsx("div",{className:"empty-events",children:v.jsx("p",{children:n.length===0?"Tool and provider updates appear here in real time.":d>0?"No critical events yet. Enable provider events to inspect low-level notifications.":"No tool updates yet."})}):w.map(O=>{var se,ce;const Y=O.type==="start"?">":O.type==="provider"?"~":(se=O.result)!=null&&se.success?"+":"!",N=O.args?$p(JSON.stringify(O.args,null,2),220):void 0,P=O.type==="end"&&O.result?$p(O.result.success?O.result.output:O.result.error??"Request failed",140):void 0,X=((ce=O.result)==null?void 0:ce.success)??!1;return v.jsxs("div",{className:`event-item ${O.type} animate-slide-in`,children:[v.jsx("div",{className:"event-icon",children:Y}),v.jsxs("div",{className:"event-content",children:[v.jsx("div",{className:"event-tool",children:O.tool}),v.jsx("div",{className:"event-time",children:O.timestamp.toLocaleTimeString()}),O.detail&&v.jsx("div",{className:"event-detail",children:O.detail}),N&&v.jsx("pre",{className:"event-args",children:N}),P&&v.jsx("div",{className:`event-result ${X?"success":"error"}`,children:P})]})]},O.id)}),k&&v.jsx("button",{type:"button",className:"activity-more-btn",onClick:()=>m(O=>!O),children:c?"Show fewer events":`Show ${x} more`})]})]})]})}function BC({mode:n,spicyEnabled:i,onModeChange:r}){const u=()=>{r(n==="safe"?"spicy":"safe")};return n==="spicy"?v.jsxs("button",{className:"security-badge spicy",onClick:u,children:[v.jsx("span",{className:"badge-icon","aria-hidden":"true"}),v.jsx("span",{className:"badge-text",children:"Spicy mode active"}),v.jsx("span",{className:"badge-toggle",children:"Return to safe"})]}):v.jsxs("button",{className:"security-badge safe",onClick:u,disabled:!i,title:i?"Click to enable Spicy Mode":"Spicy mode not enabled during installation",children:[v.jsx("span",{className:"badge-icon","aria-hidden":"true"}),v.jsx("span",{className:"badge-text",children:"Safe Mode"}),i&&v.jsx("span",{className:"badge-toggle",children:"Switch"})]})}function LC(n){if(!n||Object.keys(n).length===0)return null;try{return JSON.stringify(n,null,2)}catch{return null}}function UC({prompt:n,details:i,onAllowOnce:r,onAllowAlways:u,onCancel:o}){const h=LC(i==null?void 0:i.args);return v.jsx("div",{className:"modal-overlay",onClick:o,children:v.jsxs("div",{className:"modal-content animate-slide-in",onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("span",{className:"modal-kicker",children:"Approval"}),v.jsx("h2",{children:"Confirmation Required"})]}),v.jsxs("div",{className:"modal-body",children:[v.jsx("pre",{className:"modal-prompt",children:n}),i&&v.jsxs("div",{className:"modal-details",children:[v.jsxs("div",{className:"modal-grid",children:[v.jsxs("div",{children:[v.jsx("span",{className:"modal-label",children:"Tool"}),v.jsx("code",{children:i.tool})]}),v.jsxs("div",{children:[v.jsx("span",{className:"modal-label",children:"Action"}),v.jsx("code",{children:i.action})]}),i.command&&v.jsxs("div",{className:"modal-span",children:[v.jsx("span",{className:"modal-label",children:"Command"}),v.jsx("code",{children:i.command})]}),i.cwd&&v.jsxs("div",{className:"modal-span",children:[v.jsx("span",{className:"modal-label",children:"Directory"}),v.jsx("code",{children:i.cwd})]}),i.path&&v.jsxs("div",{className:"modal-span",children:[v.jsx("span",{className:"modal-label",children:"Path"}),v.jsx("code",{children:i.path})]})]}),h&&v.jsxs("div",{className:"modal-args",children:[v.jsx("span",{className:"modal-label",children:"Arguments"}),v.jsx("pre",{children:h})]})]})]}),v.jsxs("div",{className:"modal-footer",children:[v.jsx("button",{className:"btn-cancel",onClick:o,children:"Cancel"}),v.jsx("button",{className:"btn-confirm-secondary",onClick:r,children:"Allow Once"}),v.jsx("button",{className:"btn-confirm",onClick:u,children:"Allow Always"})]})]})})}function HC({connected:n,disabled:i,searchResults:r,searchTotal:u,featuredEntries:o,selectedEntry:h,installStatus:c,onSearch:m,onSelectEntry:p,onClearSelection:d,onInstall:b,onLoadFeatured:y}){const[k,x]=V.useState(""),[w,O]=V.useState("workspace"),[Y,N]=V.useState(!1),P=V.useCallback(()=>{N(!0),m(k,[])},[k,m]),X=V.useCallback(j=>{j.key==="Enter"&&P()},[P]),se=Y?r:o,ce=!Y&&o.length>0;return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"marketplace-search-row",children:[v.jsx("input",{type:"text",value:k,onChange:j=>x(j.target.value),onKeyDown:X,placeholder:"Search skills...",spellCheck:!1,autoComplete:"off",disabled:!n||i}),v.jsx("button",{className:"btn-secondary",onClick:P,disabled:!n||i,children:"Search"}),v.jsx("button",{className:"btn-secondary",onClick:()=>{N(!1),x(""),y()},disabled:!n||i,children:"Featured"})]}),h?v.jsxs("div",{className:"marketplace-detail",children:[v.jsxs("div",{className:"marketplace-detail-header",children:[v.jsx("h4",{children:h.name}),v.jsx("button",{className:"marketplace-detail-close",onClick:d,"aria-label":"Close detail",children:"×"})]}),v.jsxs("div",{className:"marketplace-detail-body",children:[v.jsx("p",{children:h.description}),v.jsxs("p",{children:["Author: ",h.author]}),v.jsxs("p",{children:["Version: ",h.version]}),v.jsxs("p",{children:["Downloads: ",h.downloads]}),h.homepage&&v.jsxs("p",{children:["Homepage: ",h.homepage]}),h.tags.length>0&&v.jsx("div",{className:"marketplace-tags",children:h.tags.map(j=>v.jsx("span",{className:"marketplace-tag",children:j},j))})]}),v.jsxs("div",{className:"marketplace-detail-actions",children:[v.jsxs("select",{value:w,onChange:j=>O(j.target.value),disabled:!n||i,children:[v.jsx("option",{value:"workspace",children:"Workspace"}),v.jsx("option",{value:"global",children:"Global"})]}),v.jsx("button",{className:"btn-secondary",onClick:()=>b(h.name,w),disabled:!n||i,children:"Install"})]}),c&&c.name===h.name&&v.jsx("p",{className:`marketplace-status ${c.success?"marketplace-status-success":"marketplace-status-error"}`,children:c.message})]}):v.jsxs(v.Fragment,{children:[ce&&v.jsx("small",{className:"config-note",children:"Featured skills"}),Y&&v.jsxs("small",{className:"config-note",children:[u," result",u!==1?"s":""]}),se.length>0?v.jsx("ul",{className:"marketplace-results-list",children:se.map(j=>v.jsxs("li",{className:"marketplace-result-item",onClick:()=>p(j.name),role:"button",tabIndex:0,onKeyDown:ne=>{(ne.key==="Enter"||ne.key===" ")&&p(j.name)},children:[v.jsxs("div",{className:"marketplace-result-header",children:[v.jsxs("span",{className:"marketplace-result-name",children:[j.featured&&"★ ",j.name]}),v.jsx("span",{className:"marketplace-result-version",children:j.version})]}),v.jsx("div",{className:"marketplace-result-desc",children:j.description}),v.jsxs("div",{className:"marketplace-result-meta",children:[v.jsxs("span",{children:["by ",j.author]}),v.jsxs("span",{children:[j.downloads," downloads"]})]}),j.tags.length>0&&v.jsx("div",{className:"marketplace-tags",children:j.tags.map(ne=>v.jsx("span",{className:"marketplace-tag",children:ne},ne))})]},j.name))}):v.jsx("div",{className:"marketplace-empty",children:Y?"No skills found. Try a different query.":'Click "Featured" to browse popular skills, or search above.'})]})]})}function qC({connected:n,disabled:i,memories:r,namespaces:u,onList:o,onSearch:h,onSet:c,onDelete:m,onLoadNamespaces:p}){const[d,b]=V.useState(""),[y,k]=V.useState(""),[x,w]=V.useState(!1),[O,Y]=V.useState("general"),[N,P]=V.useState(""),[X,se]=V.useState(""),[ce,j]=V.useState(null),ne=V.useCallback(()=>{d.trim()?h(d,y||void 0):o(y||void 0)},[d,y,h,o]),pe=V.useCallback(G=>{G.key==="Enter"&&ne()},[ne]),xe=V.useCallback(()=>{!N.trim()||!X.trim()||(c(O,N.trim(),X.trim()),P(""),se(""),w(!1),j(null))},[O,N,X,c]),H=V.useCallback(G=>{j(G),Y(G.namespace),P(G.key),se(G.content),w(!0)},[]),ue=V.useCallback(()=>{w(!1),j(null),P(""),se(""),Y("general")},[]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"memory-controls",children:[v.jsx("input",{type:"text",value:d,onChange:G=>b(G.target.value),onKeyDown:pe,placeholder:"Search memories...",spellCheck:!1,autoComplete:"off",disabled:!n||i}),v.jsxs("select",{value:y,onChange:G=>k(G.target.value),disabled:!n||i,onFocus:p,children:[v.jsx("option",{value:"",children:"All namespaces"}),u.map(G=>v.jsx("option",{value:G,children:G},G))]}),v.jsx("button",{className:"btn-secondary",onClick:ne,disabled:!n||i,children:d.trim()?"Search":"List"}),v.jsx("button",{className:"btn-secondary",onClick:()=>{w(!0),j(null),Y("general"),P(""),se("")},disabled:!n||i,children:"+ Add"})]}),x&&v.jsxs("div",{className:"memory-form",children:[v.jsxs("div",{className:"memory-form-row",children:[v.jsx("input",{type:"text",value:O,onChange:G=>Y(G.target.value),placeholder:"Namespace",spellCheck:!1,disabled:!n||i||ce!==null}),v.jsx("input",{type:"text",value:N,onChange:G=>P(G.target.value),placeholder:"Key",spellCheck:!1,disabled:!n||i||ce!==null})]}),v.jsx("textarea",{value:X,onChange:G=>se(G.target.value),placeholder:"Memory content...",disabled:!n||i}),v.jsxs("div",{className:"memory-form-actions",children:[v.jsx("button",{className:"btn-secondary",onClick:ue,children:"Cancel"}),v.jsx("button",{className:"btn-secondary",onClick:xe,disabled:!n||i||!N.trim()||!X.trim(),children:ce?"Update":"Save"})]})]}),v.jsxs("p",{className:"memory-count",children:[r.length," memor",r.length===1?"y":"ies"]}),r.length>0?v.jsx("ul",{className:"memory-list",children:r.map(G=>v.jsxs("li",{className:"memory-item",children:[v.jsxs("div",{className:"memory-item-header",children:[v.jsx("span",{className:"memory-item-key",children:G.key}),v.jsx("span",{className:"memory-item-ns",children:G.namespace})]}),v.jsx("div",{className:"memory-item-content",children:G.content.length>200?`${G.content.slice(0,197)}...`:G.content}),v.jsxs("div",{className:"memory-item-actions",children:[v.jsx("button",{className:"btn-secondary",onClick:()=>H(G),disabled:!n||i,children:"Edit"}),v.jsx("button",{className:"btn-secondary",onClick:()=>m(G.namespace,G.key),disabled:!n||i,children:"Delete"})]})]},`${G.namespace}/${G.key}`))}):v.jsx("div",{className:"memory-empty",children:'No memories found. Click "+ Add" to create one, or "List" to load existing memories.'})]})}function YC({sessions:n,activeSessionId:i,onSelectSession:r,onNewSession:u,onDeleteSession:o,onRenameSession:h,onOpenSettings:c,disabled:m}){const[p,d]=V.useState(null),[b,y]=V.useState(""),[k,x]=V.useState(!1),w=V.useCallback((N,P)=>{d(N),y(P)},[]),O=V.useCallback(()=>{p&&b.trim()&&h(p,b.trim()),d(null),y("")},[p,b,h]),Y=V.useCallback(N=>{N.key==="Enter"?O():N.key==="Escape"&&(d(null),y(""))},[O]);return k?v.jsx("aside",{className:"session-sidebar session-sidebar--collapsed",children:v.jsx("button",{className:"session-sidebar__toggle",onClick:()=>x(!1),title:"Expand session list","aria-label":"Expand session list",children:"▶"})}):v.jsxs("aside",{className:"session-sidebar",children:[v.jsxs("div",{className:"session-sidebar__header",children:[v.jsx("button",{className:"session-sidebar__toggle",onClick:()=>x(!0),title:"Collapse session list","aria-label":"Collapse session list",children:"◀"}),v.jsx("span",{className:"session-sidebar__title",children:"Sessions"}),v.jsx("button",{className:"session-sidebar__new-btn",onClick:u,disabled:m,title:"New chat session","aria-label":"New chat session",children:"+"})]}),v.jsx("ul",{className:"session-sidebar__list",children:n.map(N=>{const P=N.sessionId===i,X=p===N.sessionId,se=N.channelType==="web",ce=N.channelType==="discord"?"💬":N.channelType==="terminal"?"🖥️":"🌐";return v.jsxs("li",{className:`session-sidebar__item ${P?"session-sidebar__item--active":""}`,children:[v.jsxs("button",{className:"session-sidebar__item-btn",onClick:()=>r(N.sessionId),disabled:m,title:N.label,children:[v.jsx("span",{className:"session-sidebar__item-icon",children:ce}),X?v.jsx("input",{className:"session-sidebar__rename-input",value:b,onChange:j=>y(j.target.value),onBlur:O,onKeyDown:Y,autoFocus:!0,onClick:j=>j.stopPropagation()}):v.jsx("span",{className:"session-sidebar__item-label",children:N.label}),N.readOnly&&v.jsx("span",{className:"session-sidebar__readonly-badge",children:"RO"})]}),se&&!X&&v.jsxs("div",{className:"session-sidebar__item-actions",children:[v.jsx("button",{className:"session-sidebar__action-btn",onClick:j=>{j.stopPropagation(),w(N.sessionId,N.label)},disabled:m,title:"Rename session","aria-label":"Rename session",children:"✏️"}),v.jsx("button",{className:"session-sidebar__action-btn",onClick:j=>{j.stopPropagation(),o(N.sessionId)},disabled:m,title:"Delete session","aria-label":"Delete session",children:"🗑️"})]})]},N.sessionId)})}),c&&v.jsx("div",{className:"session-sidebar__footer",children:v.jsxs("button",{className:"session-sidebar__settings-btn",onClick:c,title:"Settings","aria-label":"Settings",children:[v.jsx("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:v.jsx("path",{d:"M8.325 2.317a1 1 0 0 1 .98-.804h1.39a1 1 0 0 1 .98.804l.232 1.16a5.98 5.98 0 0 1 1.308.754l1.116-.372a1 1 0 0 1 1.177.481l.694 1.202a1 1 0 0 1-.196 1.284l-.884.788a6.1 6.1 0 0 1 0 1.512l.884.788a1 1 0 0 1 .196 1.284l-.694 1.202a1 1 0 0 1-1.177.481l-1.116-.372a5.98 5.98 0 0 1-1.308.754l-.231 1.16a1 1 0 0 1-.981.804H9.305a1 1 0 0 1-.98-.804l-.232-1.16a5.98 5.98 0 0 1-1.308-.754l-1.116.372a1 1 0 0 1-1.177-.481l-.694-1.202a1 1 0 0 1 .196-1.284l.884-.788a6.1 6.1 0 0 1 0-1.512l-.884-.788a1 1 0 0 1-.196-1.284l.694-1.202a1 1 0 0 1 1.177-.481l1.116.372a5.98 5.98 0 0 1 1.308-.754l.231-1.16ZM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})}),v.jsx("span",{children:"Settings"})]})})]})}function VC(n,i){const[r,u]=V.useState(!1),[o,h]=V.useState(!0),c=V.useRef(null),m=V.useRef(void 0),p=V.useRef(void 0),d=V.useRef(!1),b=V.useRef(i);b.current=i;const y=V.useCallback(()=>{if(!d.current)return;h(!0);const x=new WebSocket(n);c.current=x,x.onopen=()=>{if(!d.current){x.close();return}console.log("WebSocket connected"),u(!0),h(!1)},x.onmessage=w=>{try{const O=JSON.parse(w.data);b.current(O)}catch(O){console.error("Failed to parse WebSocket message:",O)}},x.onclose=()=>{c.current===x&&(c.current=null),d.current&&(console.log("WebSocket disconnected"),u(!1),h(!1),m.current=window.setTimeout(()=>{d.current&&(console.log("Attempting to reconnect..."),y())},3e3))},x.onerror=w=>{d.current&&console.error("WebSocket error:",w)}},[n]);return V.useEffect(()=>(d.current=!0,p.current=window.setTimeout(y,0),()=>{if(d.current=!1,p.current!==void 0&&clearTimeout(p.current),m.current!==void 0&&clearTimeout(m.current),c.current){const x=c.current;if(c.current=null,x.readyState===WebSocket.CONNECTING){x.onopen=()=>x.close(),x.onmessage=null,x.onerror=null,x.onclose=null;return}x.onopen=null,x.onmessage=null,x.onerror=null,x.onclose=null,x.readyState===WebSocket.OPEN&&x.close()}}),[y]),{send:V.useCallback(x=>{var w;return((w=c.current)==null?void 0:w.readyState)===WebSocket.OPEN?(c.current.send(JSON.stringify(x)),!0):(console.warn("WebSocket not connected, message not sent"),!1)},[]),connected:r,connecting:o}}function GC(n){return{type:"set_spicy_obedience",enabled:n}}function XC(n){return{type:"enable_spicy_mode",riskAck:n}}const QC={messagesBySession:{},metaBySession:{},streamingBySession:{},streamBuffersBySession:{}};function qc(n){return n.startsWith("discord:")?"discord":n.startsWith("terminal:")?"terminal":"web"}function Yc(n,i,r,u){return`${n}:${i}:${r.getTime()}:${u}`}function en(n,i){var r,u,o,h;switch(i.type){case"session_snapshot":{const c={...n.messagesBySession},m={...n.metaBySession},p={...n.streamingBySession},d={...n.streamBuffersBySession};for(const b of i.sessions)m[b.sessionId]={channelType:b.channelType,title:b.title,updatedAt:new Date(b.updatedAt)},n.streamingBySession[b.sessionId]!==!0&&(c[b.sessionId]=b.messages.map((y,k)=>({id:`snapshot:${b.sessionId}:${k}`,role:y.role,content:y.content,attachments:y.attachments,timestamp:new Date(b.updatedAt)})),p[b.sessionId]=!1,d[b.sessionId]="");return{messagesBySession:c,metaBySession:m,streamingBySession:p,streamBuffersBySession:d}}case"session_stream_start":{const c=n.messagesBySession[i.sessionId]??[],m=c[c.length-1],p=(m==null?void 0:m.id)==="streaming"&&m.role==="assistant"?c.slice(0,-1):c;return{messagesBySession:{...n.messagesBySession,[i.sessionId]:p},metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:i.channelType,updatedAt:new Date(i.timestamp)}},streamingBySession:{...n.streamingBySession,[i.sessionId]:!0},streamBuffersBySession:{...n.streamBuffersBySession,[i.sessionId]:""}}}case"session_touch":return{...n,metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:i.channelType,updatedAt:new Date(i.updatedAt)}}};case"session_clear":{const c=((r=n.metaBySession[i.sessionId])==null?void 0:r.channelType)??qc(i.sessionId);return{messagesBySession:{...n.messagesBySession,[i.sessionId]:[]},metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:c,updatedAt:new Date(i.updatedAt)}},streamingBySession:{...n.streamingBySession,[i.sessionId]:!1},streamBuffersBySession:{...n.streamBuffersBySession,[i.sessionId]:""}}}case"session_user_message":{const c=n.messagesBySession[i.sessionId]??[],m={id:Yc(i.sessionId,"user",i.timestamp,c.length),role:"user",content:i.content,attachments:i.attachments,timestamp:new Date(i.timestamp)};return{messagesBySession:{...n.messagesBySession,[i.sessionId]:[...c,m]},metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:i.channelType,updatedAt:new Date(i.timestamp)}},streamingBySession:n.streamingBySession,streamBuffersBySession:n.streamBuffersBySession}}case"session_chunk":{const c=((u=n.metaBySession[i.sessionId])==null?void 0:u.channelType)??qc(i.sessionId),p=(n.streamBuffersBySession[i.sessionId]??"")+i.content,d=n.messagesBySession[i.sessionId]??[],b=d[d.length-1],y=(b==null?void 0:b.id)==="streaming"&&b.role==="assistant"?[...d.slice(0,-1),{...b,content:p,timestamp:new Date(i.timestamp)}]:[...d,{id:"streaming",role:"assistant",content:p,timestamp:new Date(i.timestamp)}];return{messagesBySession:{...n.messagesBySession,[i.sessionId]:y},metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:c,updatedAt:new Date(i.timestamp)}},streamingBySession:{...n.streamingBySession,[i.sessionId]:!0},streamBuffersBySession:{...n.streamBuffersBySession,[i.sessionId]:p}}}case"session_message_end":{const c=((o=n.metaBySession[i.sessionId])==null?void 0:o.channelType)??qc(i.sessionId),m=n.messagesBySession[i.sessionId]??[],p=m[m.length-1],d=((h=n.streamBuffersBySession[i.sessionId])==null?void 0:h.trim())??"",b=i.content.trim().length>0?i.content:d.length>0?d:"(No response)",y=(p==null?void 0:p.id)==="streaming"&&p.role==="assistant"?[...m.slice(0,-1),{id:Yc(i.sessionId,"assistant",i.timestamp,m.length),role:"assistant",content:b,timestamp:new Date(i.timestamp)}]:[...m,{id:Yc(i.sessionId,"assistant",i.timestamp,m.length),role:"assistant",content:b,timestamp:new Date(i.timestamp)}];return{messagesBySession:{...n.messagesBySession,[i.sessionId]:y},metaBySession:{...n.metaBySession,[i.sessionId]:{channelType:c,updatedAt:new Date(i.timestamp)}},streamingBySession:{...n.streamingBySession,[i.sessionId]:!1},streamBuffersBySession:{...n.streamBuffersBySession,[i.sessionId]:""}}}default:return n}}function IC(n,i){const r=n&&i[n]?[{sessionId:n,label:i[n].title||"main:agent",channelType:i[n].channelType,updatedAt:i[n].updatedAt,readOnly:!1}]:[],u=Object.entries(i).filter(([p])=>p!==n).sort((p,d)=>{const b=d[1].updatedAt.getTime()-p[1].updatedAt.getTime();return b!==0?b:p[0].localeCompare(d[0])});let o=0,h=0,c=0;const m=u.map(([p,d])=>{const b=d.channelType==="discord"?`discord:agent-${++o}`:d.channelType==="terminal"?`terminal:agent-${++h}`:`web:agent-${++c}`;return{sessionId:p,label:d.title||b,channelType:d.channelType,updatedAt:d.updatedAt,readOnly:d.channelType!=="web"}});return[...r,...m]}function cy(n,i){return!n||!i?!1:!n.startsWith("web:")}function ZC(n,i,r,u){return!r||!u?!0:!n||i||cy(r,u)}const fy="keygate.themePreference",FC="(prefers-color-scheme: dark)";function KC(n){return n==="system"||n==="light"||n==="dark"}function hy(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function Pp(n=hy()){const i=n==null?void 0:n.getItem(fy);return KC(i)?i:"system"}function JC(n,i=hy()){try{i==null||i.setItem(fy,n)}catch{}}function Wp(){return typeof window>"u"||typeof window.matchMedia!="function"?"light":window.matchMedia(FC).matches?"dark":"light"}function eg(n,i){return n==="system"?i:n}function $C(n){if(typeof document>"u")return;const i=document.documentElement;i.dataset.theme=n,i.style.colorScheme=n}function PC(n,i){return n==="system"?i==="dark"?"light":"dark":n==="dark"?"light":"dark"}function WC(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const e2=[{value:"openai",label:"OpenAI API"},{value:"openai-codex",label:"OpenAI Codex (ChatGPT OAuth)"},{value:"gemini",label:"Google Gemini"},{value:"ollama",label:"Ollama (Local)"}],t2=[{value:"system",label:"System"},{value:"light",label:"Light"},{value:"dark",label:"Dark"}],dy=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"},{value:"xhigh",label:"Extra High"}],xr="!keygate ",es="0.0.64",n2=[{value:"none",label:"No domain restrictions"},{value:"allowlist",label:"Allowlist only"},{value:"blocklist",label:"Blocklist deny"}],l2={installed:!1,healthy:!1,serverName:"playwright",configuredVersion:null,desiredVersion:es,domainPolicy:"none",domainAllowlist:[],domainBlocklist:[],traceRetentionDays:7,artifactsPath:"",command:null,args:[]},i2=[/ratelimits/i,/tokenusage/i,/token_count/i,/reasoning_content_delta/i,/summarytextdelta/i,/agent_reasoning_delta/i];function tf(n){if(typeof n!="string")return;const i=n.trim().toLowerCase();switch(i){case"low":case"medium":case"high":case"xhigh":return i;case"extra-high":case"extra_high":case"extra high":return"xhigh";default:return}}function my(n){const i=Array.isArray(n==null?void 0:n.reasoningEffort)?n.reasoningEffort.map(u=>tf(u)).filter(u=>u!==void 0):[],r=Array.from(new Set(i));return r.length>0?r:dy.map(u=>u.value)}function Vc(n,i){const r=my(n),u=tf(i);if(u&&r.includes(u))return u;const o=tf(n==null?void 0:n.defaultReasoningEffort);return o&&r.includes(o)?o:r[0]??"medium"}function ht(n){if(!(typeof n!="object"||n===null||Array.isArray(n)))return n}function ts(n){return n.replace(/\s+/g," ").trim()}function Si(n,i){return n.length<=i?n:`${n.slice(0,i)}...`}function Ne(...n){for(const i of n){if(typeof i!="string")continue;const r=ts(i);if(r.length>0)return r}}function Ku(...n){for(const i of n)if(typeof i=="string")return i}function tg(n){const i=ht(n);if(!i)return;const r=i.configured===!0,u=typeof i.prefix=="string"?i.prefix:xr;return{configured:r,prefix:py(u,!0)}}function ng(n){const i=ht(n);if(i)return{configured:i.configured===!0}}function lg(n){var p;const i=ht(n);if(!i)return;const r=(p=Ne(i.domainPolicy))==null?void 0:p.toLowerCase(),u=r==="allowlist"||r==="blocklist"?r:"none",o=Ne(i.configuredVersion)??null,h=Ne(i.desiredVersion)??es,c=Number.parseInt(String(i.traceRetentionDays??""),10),m=Number.isFinite(c)&&c>0?c:7;return{installed:i.installed===!0,healthy:i.healthy===!0,serverName:Ne(i.serverName)??"playwright",configuredVersion:o,desiredVersion:h,domainPolicy:u,domainAllowlist:ns(i.domainAllowlist),domainBlocklist:ns(i.domainBlocklist),traceRetentionDays:m,artifactsPath:Ne(i.artifactsPath)??"",command:Ne(i.command)??null,args:Array.isArray(i.args)?i.args.filter(d=>typeof d=="string"):[],warning:Ne(i.warning)}}function ns(n){return Array.isArray(n)?Array.from(new Set(n.filter(i=>typeof i=="string").map(i=>i.trim()).filter(i=>i.length>0))):typeof n!="string"?[]:Array.from(new Set(n.split(",").map(i=>i.trim()).filter(i=>i.length>0)))}function fa(n){return n.join(", ")}function py(n,i=!1){const r=a2(n);return r.length===0?i?xr:"":r.length===1&&!n.includes(",")?r[0]:r.join(", ")}function a2(n){return n.includes(",")?n.split(",").map(i=>i.trim()).filter(i=>i.length>0):n.trim().length>0?[n]:[]}function nf(n){if(typeof n=="string")return ts(n);if(!Array.isArray(n))return;const i=n.filter(r=>typeof r=="string").map(r=>ts(r)).filter(r=>r.length>0);if(i.length!==0)return i.join(" ")}function r2(n){return n.replace(/^codex\/event\//i,"").replace(/[/_]+/g," ").replace(/\s+/g," ").trim().replace(/\b\w/g,i=>i.toUpperCase())}function gy(n){const i=ht(n==null?void 0:n.msg),r=i==null?void 0:i.type;return typeof r=="string"?r:void 0}function u2(n){const i=ht(n==null?void 0:n.msg);return nf(i==null?void 0:i.command)??nf(n==null?void 0:n.command)}function s2(n){const i=ht(n==null?void 0:n.msg),r=ht(n==null?void 0:n.delta),u=ht(i==null?void 0:i.delta);return Ne(n==null?void 0:n.text,i==null?void 0:i.text,n==null?void 0:n.delta,r==null?void 0:r.text,i==null?void 0:i.delta,u==null?void 0:u.text)}function yy(n){const i=ht(n==null?void 0:n.msg),r=ht(n==null?void 0:n.item)??ht(i==null?void 0:i.item),u=r==null?void 0:r.type;return typeof u=="string"?u:void 0}function by(n){const i=ht(n==null?void 0:n.msg),r=ht(n==null?void 0:n.turn)??ht(i==null?void 0:i.turn),u=r==null?void 0:r.status;return typeof u=="string"?u:void 0}function o2(n){if(!n)return;const i=nf(n.command);if(i)return Si(i,180);const r=Ne(n.path,n.file,n.target,n.cwd);if(r)return Si(r,180);const u=JSON.stringify(n);if(!(!u||u==="{}"))return Si(u,180)}function c2(n){if(!n)return;if(n.success){const r=ts(n.output);return r.length>0?Si(r,180):"Completed successfully"}const i=Ne(n.error,n.output)??"Request failed";return Si(i,180)}function f2(n,i){const r=n.toLowerCase(),u=gy(i),o=u==null?void 0:u.toLowerCase();if(i2.some(c=>c.test(r)||!!(o&&c.test(o))))return null;if(r.includes("exec_approval_request")||o!=null&&o.includes("exec_approval_request")){const c=u2(i);return{source:"provider",status:"Waiting for approval",detail:c?`Command: ${Si(c,180)}`:"Tool execution requires confirmation."}}if(r.includes("agent_reasoning")||o!=null&&o.includes("agent_reasoning")){const c=s2(i);return{source:"provider",status:"Analyzing request",detail:c?Si(c,180):"Planning the next step."}}if(r.includes("item/completed")||o!=null&&o.includes("item_completed")){const c=yy(i);return{source:"provider",status:"Step completed",detail:c?`Item: ${c}`:void 0}}if(r.includes("turn/completed")||o!=null&&o.includes("turn_completed")){const c=by(i);return{source:"provider",status:c==="failed"?"Turn failed":"Turn completed",detail:c?`Status: ${c}`:void 0}}return{source:"provider",status:r2(n)}}function h2(n,i){var c,m,p;const r=n.toLowerCase(),u=(c=gy(i))==null?void 0:c.toLowerCase(),o=(m=yy(i))==null?void 0:m.toLowerCase(),h=(p=by(i))==null?void 0:p.toLowerCase();return r.includes("approval")||u!=null&&u.includes("approval")||r.includes("exec")||r.includes("apply_patch")||r.includes("patch")||u!=null&&u.includes("exec")||u!=null&&u.includes("apply_patch")||u!=null&&u.includes("patch")?!0:r.includes("item/completed")||u!=null&&u.includes("item_completed")?!!(o&&/(tool|exec|command|patch|shell|function)/.test(o)):!!(r.includes("turn/completed")||u!=null&&u.includes("turn_completed")||r.includes("error")||r.includes("failed")||u!=null&&u.includes("error")||u!=null&&u.includes("failed")||h==="failed")}function Iu(n){return n.startsWith("discord:")?"discord":n.startsWith("terminal:")?"terminal":"web"}function Zu(n){return n.startsWith("web:")?n:`web:${n}`}function vy(n){if(!Array.isArray(n))return;const i=n.flatMap(r=>{const u=ht(r);if(!u)return[];const o=Ne(u.id),h=Ne(u.filename),c=Ne(u.contentType),m=Ne(u.url),p=Number.parseInt(String(u.sizeBytes??""),10);return!o||!h||!c||!m||!Number.isFinite(p)||p<0?[]:[{id:o,filename:h,contentType:c,sizeBytes:p,url:m}]});return i.length>0?i:void 0}function d2(n){return Array.isArray(n)?n.flatMap(i=>{const r=ht(i);if(!r)return[];const u=Ne(r.sessionId),o=Ne(r.channelType),h=Ne(r.updatedAt),c=r.messages;if(!u||o!=="web"&&o!=="discord"&&o!=="terminal"&&o!=="slack")return[];const m=h?new Date(h):new Date,p=Ne(r.title),d=Array.isArray(c)?c.flatMap(b=>{const y=ht(b);if(!y)return[];const k=Ne(y.role),x=Ku(y.content)??"",w=vy(y.attachments);return k!=="user"&&k!=="assistant"?[]:[{role:k,content:x,attachments:w}]}):[];return[{sessionId:u,channelType:o,title:p,updatedAt:m,messages:d}]}):[]}function m2(){var ji;const[n,i]=V.useState(QC),[r,u]=V.useState({}),[o,h]=V.useState({}),[c,m]=V.useState(null),[p,d]=V.useState(null),[b,y]=V.useState({}),[k,x]=V.useState("safe"),[w,O]=V.useState(!1),[Y,N]=V.useState(!1),[P,X]=V.useState(""),[se,ce]=V.useState(!1),[j,ne]=V.useState(null),[pe,xe]=V.useState(()=>Pp()),[H,ue]=V.useState(()=>eg(Pp(),Wp())),[G,we]=V.useState({provider:"openai",model:"gpt-4o",reasoningEffort:"medium"}),[fe,te]=V.useState({configured:!1,prefix:xr}),[B,W]=V.useState(xr),[he,Te]=V.useState(""),[T,_]=V.useState(!1),[Q,E]=V.useState(!1),[re,F]=V.useState({configured:!1}),[le,ve]=V.useState(""),[Ge,je]=V.useState(""),[dt,wt]=V.useState(""),[vn,xn]=V.useState(!1),[_t,Qt]=V.useState(!1),ln=V.useRef(null),[Ci,Ti]=V.useState(!1),[at,In]=V.useState(l2),[It,$l]=V.useState("none"),[hl,Ct]=V.useState(""),[dl,Z]=V.useState(""),[ie,ke]=V.useState("7"),[_e,Ye]=V.useState(es),[Rt,Yt]=V.useState(!1),[yt,tt]=V.useState(null),[Bt,Ze]=V.useState([]),[Ln,an]=V.useState(0),[ss,Ai]=V.useState([]),[wi,Pl]=V.useState(null),[Zn,Wl]=V.useState(null),[ei,ya]=V.useState([]),[Ar,ba]=V.useState([]),[Vt,wr]=V.useState(null),[rn,ml]=V.useState(null),[pl,va]=V.useState({}),[gl,_i]=V.useState(!1),$e=p??c,Un=$e?n.messagesBySession[$e]??[]:[],Tt=$e?r[$e]??[]:[],Lt=$e?o[$e]??[]:[],Me=$e?n.streamingBySession[$e]===!0:!1,yl=cy($e,c),Nn=$e?b[$e]:void 0,os=Vt&&$e===Vt.sessionId?Vt:null,bl=V.useMemo(()=>IC(c,n.metaBySession),[c,n.metaBySession]);V.useEffect(()=>{JC(pe);const C=eg(pe,Wp());ue(oe=>oe===C?oe:C)},[pe]),V.useEffect(()=>{$C(H)},[H]),V.useEffect(()=>{if(pe!=="system"||typeof window>"u"||typeof window.matchMedia!="function")return;const C=window.matchMedia("(prefers-color-scheme: dark)"),oe=J=>{ue(J?"dark":"light")};if(oe(C.matches),typeof C.addEventListener=="function"){const J=ae=>{oe(ae.matches)};return C.addEventListener("change",J),()=>{C.removeEventListener("change",J)}}const M=J=>{oe(J.matches)};return C.addListener(M),()=>{C.removeListener(M)}},[pe]),V.useEffect(()=>{if(!(p&&bl.some(C=>C.sessionId===p))){if(c){d(c);return}bl.length>0&&d(bl[0].sessionId)}},[c,p,bl]);const un=V.useCallback((C,oe)=>{u(M=>({...M,[C]:[...M[C]??[],{id:crypto.randomUUID(),timestamp:new Date,...oe}]}))},[]),Dn=V.useCallback((C,oe)=>{h(M=>{const J=M[C]??[],ae={id:crypto.randomUUID(),timestamp:new Date,...oe},de=J[J.length-1],Fe=de&&de.source===ae.source&&de.status===ae.status&&de.detail===ae.detail?[...J.slice(0,-1),{...de,timestamp:ae.timestamp}]:[...J,ae];return{...M,[C]:Fe.slice(-8)}})},[]),sn=V.useCallback(C=>{h(oe=>({...oe,[C]:[]}))},[]),vl=V.useCallback(C=>{switch(C.type){case"connected":{x(C.mode),O(C.spicyEnabled),N(C.spicyObedienceEnabled===!0);const M=C.llm;M!=null&&M.provider&&(M!=null&&M.model)&&we(M);const J=tg(C.discord);J&&(te(J),W(J.prefix),Te(""),_(!1)),E(!1);const ae=ng(C.slack);ae&&(F(ae),ve(""),je(""),wt(""),xn(!1)),Qt(!1),Yt(!1),tt(null);const de=lg(C.browser);de&&(In(de),$l(de.domainPolicy),Ct(fa(de.domainAllowlist)),Z(fa(de.domainBlocklist)),ke(String(de.traceRetentionDays)),Ye(de.desiredVersion));const Fe=Ne(C.sessionId);if(Fe){const zt=Zu(Fe);m(zt),d(ot=>ot??zt),i(ot=>en(ot,{type:"session_touch",sessionId:zt,channelType:"web",updatedAt:new Date}))}break}case"session_snapshot":{const M=d2(C.sessions);i(J=>en(J,{type:"session_snapshot",sessions:M}));break}case"session_user_message":{const M=Ne(C.sessionId),J=Ne(C.channelType),ae=Ku(C.content)??"",de=vy(C.attachments);if(!M||ae.trim().length===0&&(!de||de.length===0)||J!=="web"&&J!=="discord"&&J!=="terminal"&&J!=="slack")break;const Fe=new Date;i(zt=>en(zt,{type:"session_user_message",sessionId:M,channelType:J,content:ae,attachments:de,timestamp:Fe}));break}case"session_chunk":{const M=Ne(C.sessionId),J=Ku(C.content)??"";if(!M)break;i(ae=>en(ae,{type:"session_chunk",sessionId:M,content:J,timestamp:new Date})),Dn(M,{source:"system",status:"Writing response"});break}case"session_message_end":{const M=Ne(C.sessionId),J=Ku(C.content)??"";if(!M)break;i(ae=>en(ae,{type:"session_message_end",sessionId:M,content:J,timestamp:new Date})),sn(M);break}case"message_received":{const M=Ne(C.sessionId),J=M?Zu(M):c??p;if(!J)break;const ae=new Date;i(de=>en(de,{type:"session_stream_start",sessionId:J,channelType:"web",timestamp:ae})),sn(J),Dn(J,{source:"system",status:"Starting model turn",detail:"Waiting for live updates from the provider."});break}case"models":{_i(!1);const M=C.provider,J=Array.isArray(C.models)?C.models:[],ae=typeof C.error=="string"?C.error:"";if(va(de=>({...de,[M]:J})),ae){ml(null);const de=c??p;de&&i(Fe=>en(Fe,{type:"session_message_end",sessionId:de,content:`Error: ${ae}`,timestamp:new Date}))}else J.length===0&&rn===M&&ml(null);break}case"model_changed":{const M=C.llm;M!=null&&M.provider&&(M!=null&&M.model)&&(we(M),ml(null));break}case"codex_install_required":{const M=String(C.message??"Codex CLI is required for openai-codex."),J=c??p;J&&i(ae=>en(ae,{type:"session_message_end",sessionId:J,content:`Error: ${M}`,timestamp:new Date})),ml(null),_i(!1);break}case"tool_start":{const M=C.tool,J=ht(C.args),ae=Ne(C.sessionId)??c;if(!ae)break;un(ae,{type:"start",tool:M,args:J}),Dn(ae,{source:"tool",status:`Running ${M}`,detail:o2(J)}),i(de=>en(de,{type:"session_touch",sessionId:ae,channelType:Iu(ae),updatedAt:new Date}));break}case"tool_end":{const M=C.tool,J=C.result,ae=Ne(C.sessionId)??c;if(!ae)break;un(ae,{type:"end",tool:M,result:J}),Dn(ae,{source:"tool",status:(J==null?void 0:J.success)===!1?`Failed ${M}`:`Finished ${M}`,detail:c2(J)}),i(de=>en(de,{type:"session_touch",sessionId:ae,channelType:Iu(ae),updatedAt:new Date}));break}case"provider_event":{const M=ht(C.event),J=M==null?void 0:M.method,ae=ht(M==null?void 0:M.params),de=typeof J=="string"?f2(J,ae):null,Fe=typeof J=="string"?h2(J,ae):!1,zt=Ne(C.sessionId)??c;if(!zt)break;un(zt,{type:"provider",tool:typeof J=="string"?J:"provider/notification",args:ae,detail:(de==null?void 0:de.detail)??(Fe?"Important provider event":"Codex app-server notification"),important:Fe}),de&&Dn(zt,de),i(ot=>en(ot,{type:"session_touch",sessionId:zt,channelType:Iu(zt),updatedAt:new Date}));break}case"confirm_request":{const M=ht(C.details),J=M&&typeof M.tool=="string"?{tool:M.tool,action:typeof M.action=="string"?M.action:"tool execution",summary:typeof M.summary=="string"?M.summary:"",command:Ne(M.command),cwd:Ne(M.cwd),path:Ne(M.path),args:ht(M.args)}:void 0,ae=Ne(C.sessionId),de=ae?Zu(ae):c??p;if(!de)break;un(de,{type:"start",tool:(J==null?void 0:J.tool)??"confirmation",args:J==null?void 0:J.args,detail:Ne(J==null?void 0:J.summary,C.prompt)??"Waiting for confirmation"}),ne({id:crypto.randomUUID(),prompt:C.prompt,details:J,sessionId:de}),Dn(de,{source:"system",status:"Waiting for your confirmation",detail:Ne(J==null?void 0:J.summary,C.prompt)});break}case"mode_changed":x(C.mode);break;case"spicy_obedience_changed":N(C.enabled===!0);break;case"spicy_enabled_changed":O(C.enabled===!0),C.enabled===!0&&X("");break;case"discord_config_updated":{const M=tg(C.discord);M&&(te(M),W(M.prefix)),Te(""),_(!1),E(!1);break}case"slack_config_updated":{const M=ng(C.slack);M&&F(M),ve(""),je(""),wt(""),xn(!1),Qt(!1),ln.current&&(clearTimeout(ln.current),ln.current=null);break}case"mcp_browser_status":{const M=lg(C.browser);M&&(In(M),$l(M.domainPolicy),Ct(fa(M.domainAllowlist)),Z(fa(M.domainBlocklist)),ke(String(M.traceRetentionDays)),Ye(M.desiredVersion)),Yt(!1),tt(null);break}case"session_cleared":{const M=Ne(C.sessionId),J=M?Zu(M):c??p;if(!J)break;i(ae=>en(ae,{type:"session_clear",sessionId:J,updatedAt:new Date})),u(ae=>({...ae,[J]:[]})),sn(J);break}case"session_created":{const M=Ne(C.sessionId);M&&(m(M),d(M),i(J=>en(J,{type:"session_touch",sessionId:M,channelType:"web",updatedAt:new Date})));break}case"session_switched":{const M=Ne(C.sessionId);M&&(m(M),d(M));break}case"session_deleted":{const M=Ne(C.sessionId);if(!M)break;i(J=>{const ae={...J.messagesBySession},de={...J.metaBySession},Fe={...J.streamingBySession},zt={...J.streamBuffersBySession};return delete ae[M],delete de[M],delete Fe[M],delete zt[M],{messagesBySession:ae,metaBySession:de,streamingBySession:Fe,streamBuffersBySession:zt}}),u(J=>{const ae={...J};return delete ae[M],ae}),sn(M);break}case"session_renamed":{const M=Ne(C.sessionId),J=Ne(C.title);M&&i(ae=>({...ae,metaBySession:{...ae.metaBySession,[M]:{...ae.metaBySession[M],title:J||void 0}}}));break}case"context_usage":{const M=Ne(C.sessionId),J=typeof C.usedTokens=="number"?C.usedTokens:0,ae=typeof C.limitTokens=="number"?C.limitTokens:0,de=typeof C.percent=="number"?C.percent:0;M&&y(Fe=>({...Fe,[M]:{usedTokens:J,limitTokens:ae,percent:de}}));break}case"marketplace_search_result":{const M=Array.isArray(C.entries)?C.entries:[],J=typeof C.total=="number"?C.total:M.length;Ze(M),an(J);break}case"marketplace_info_result":{const M=C.entry;Pl(M);break}case"marketplace_featured_result":{const M=Array.isArray(C.entries)?C.entries:[];Ai(M);break}case"marketplace_install_result":{const M=typeof C.name=="string"?C.name:"",J=C.installed!==!1;Wl({name:M,success:J,message:J?`${M} installed successfully`:`Failed to install ${M}`});break}case"memory_list_result":case"memory_search_result":{const M=Array.isArray(C.memories)?C.memories:[];ya(M);break}case"memory_set_result":{const M=C.memory;M&&ya(J=>{const ae=J.filter(de=>!(de.namespace===M.namespace&&de.key===M.key));return[M,...ae]});break}case"memory_delete_result":{const M=typeof C.namespace=="string"?C.namespace:"",J=typeof C.key=="string"?C.key:"";C.deleted&&ya(ae=>ae.filter(de=>!(de.namespace===M&&de.key===J)));break}case"memory_namespaces_result":{const M=Array.isArray(C.namespaces)?C.namespaces:[];ba(M);break}case"error":{E(!1),Qt(!1),Yt(!1),tt(null);const M=c??p;if(!M)break;const J=C.error,ae=typeof J=="string"&&J.trim()?`Error: ${J}`:"Error: Request failed";i(de=>en(de,{type:"session_message_end",sessionId:M,content:ae,timestamp:new Date})),sn(M);break}}},[Dn,un,sn,c,rn,p]),{send:be,connected:ge,connecting:mt}=VC(WC(),vl);V.useEffect(()=>{ge||(E(!1),Qt(!1),Yt(!1),tt(null))},[ge]),V.useEffect(()=>{if(!ge)return;const C=()=>{be({type:"get_session_snapshot"})},oe=()=>{be({type:"get_mcp_browser_status"})};C(),oe();const M=window.setInterval(C,2500),J=window.setInterval(oe,8e3);return()=>{window.clearInterval(M),window.clearInterval(J)}},[ge,be]),V.useEffect(()=>{const C=()=>{wr(ae=>ae&&null)};if(!ge||!$e){C();return}uC((Vt==null?void 0:Vt.sessionId)??null,$e)&&C();let oe=!1;const M=async()=>{var ae;try{const de=nC($e),Fe=await fetch(de,{method:"HEAD",cache:"no-store"});if(Fe.status===404){oe||C();return}if(!Fe.ok)return;if(!(((ae=Fe.headers.get("content-type"))==null?void 0:ae.toLowerCase())??"").startsWith("image/")){oe||C();return}const ot=`${de}&ts=${Date.now()}`;if(oe)return;wr(()=>({sessionId:$e,imageUrl:ot,capturedAt:new Date}))}catch{}};M();const J=window.setInterval(()=>{M()},4e3);return()=>{oe=!0,window.clearInterval(J)}},[$e,ge,Vt==null?void 0:Vt.sessionId]),V.useEffect(()=>{if(!se)return;const C=oe=>{oe.key==="Escape"&&ce(!1)};return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}},[se]),V.useEffect(()=>{var de;if(!ge)return;const C=rn??G.provider,oe=pl[C];if(!rn||!oe||oe.length===0)return;const M=((de=oe.find(Fe=>Fe.isDefault))==null?void 0:de.id)??oe[0].id,J=oe.find(Fe=>Fe.id===M),ae=C==="openai-codex"?Vc(J,G.reasoningEffort):void 0;be({type:"set_model",provider:C,model:M,reasoningEffort:ae})},[ge,G.reasoningEffort,G.provider,pl,rn,be]);const _r=V.useCallback((C,oe)=>{const M=C.trim(),J=!!(oe&&oe.length>0);!M&&!J||!ge||!$e||!$e.startsWith("web:")||be({type:"message",content:M,attachments:oe})},[ge,$e,be]),zi=V.useCallback(C=>{var J,ae;const oe=j;if(be({type:"confirm_response",decision:C}),ne(null),!oe)return;const M=C!=="cancel";un(oe.sessionId,{type:"end",tool:((J=oe.details)==null?void 0:J.tool)??"confirmation",detail:Ne((ae=oe.details)==null?void 0:ae.summary,oe.prompt),result:{success:M,output:M?C==="allow_always"?"Approved for this session":"Approved once":"Cancelled by user",error:M?void 0:"Cancelled by user"}})},[un,j,be]),Hn=V.useCallback(C=>{if(C==="spicy"&&!w){alert("Spicy mode is not enabled. Re-run the installer and accept the risk.");return}be({type:"set_mode",mode:C})},[be,w]),xl=V.useCallback(C=>{be(GC(C))},[be]),cs=V.useCallback(()=>{be(XC(P))},[be,P]),zr=V.useCallback(()=>{!ge||!c||p!==c||(be({type:"clear_session"}),ce(!1))},[ge,c,p,be]),Nr=V.useCallback(()=>{ge&&be({type:"new_session"})},[ge,be]),fs=V.useCallback(C=>{ge&&be({type:"delete_session",sessionId:C})},[ge,be]),Ni=V.useCallback((C,oe)=>{ge&&be({type:"rename_session",sessionId:C,title:oe})},[ge,be]),Di=V.useCallback(C=>{d(C),C.startsWith("web:")&&ge&&be({type:"switch_session",sessionId:C})},[ge,be]),On=V.useCallback(C=>{ml(C),_i(!0),be({type:"get_models",provider:C})},[be]),Zt=V.useCallback(C=>{const oe=rn??G.provider,J=(pl[oe]??[]).find(de=>de.id===C),ae=oe==="openai-codex"?Vc(J,G.reasoningEffort):void 0;be({type:"set_model",provider:oe,model:C,reasoningEffort:ae})},[G.provider,G.reasoningEffort,pl,rn,be]),Sl=rn??G.provider,Fn=pl[Sl]??[],kl=Fn.some(C=>C.id===G.model)?G.model:((ji=Fn[0])==null?void 0:ji.id)??G.model,xa=Fn.find(C=>C.id===kl),El=k==="spicy",hs=w||El,Ft=P.trim()==="I ACCEPT THE RISK",Sa=Sl==="openai-codex"?my(xa):[],ka=Sl==="openai-codex"?Vc(xa,G.reasoningEffort):void 0,ti=dy.filter(C=>Sa.includes(C.value)),Cl=V.useCallback(C=>{const oe=rn??G.provider;oe==="openai-codex"&&be({type:"set_model",provider:oe,model:kl,reasoningEffort:C})},[G.provider,rn,kl,be]),Dr=V.useCallback(()=>{xe(C=>PC(C,H))},[H]),Or=V.useCallback(()=>{const C=py(B);if(C.length===0){alert("Discord prefix list cannot be empty.");return}E(!0),be({type:"set_discord_config",prefix:C,token:he.trim().length>0?he.trim():void 0,clearToken:T})||E(!1)},[T,B,he,be]),Tl=V.useCallback(()=>{Qt(!0),ln.current&&clearTimeout(ln.current),be({type:"set_slack_config",botToken:le.trim().length>0?le.trim():void 0,appToken:Ge.trim().length>0?Ge.trim():void 0,signingSecret:dt.trim().length>0?dt.trim():void 0,clearBotToken:vn})?ln.current=setTimeout(()=>Qt(!1),1e4):Qt(!1)},[le,Ge,dt,vn,be]),ds=V.useCallback(()=>{tt("install"),be({type:"setup_mcp_browser"})},[be]),jr=V.useCallback(()=>{tt("update"),be({type:"setup_mcp_browser"})},[be]),Mr=V.useCallback(()=>{tt("remove"),be({type:"remove_mcp_browser"})},[be]),Ea=V.useCallback(()=>{const C=Number.parseInt(ie.trim(),10);if(!Number.isFinite(C)||C<1){alert("Trace retention must be a whole number >= 1 day.");return}const oe=ns(hl),M=ns(dl);if(It==="allowlist"&&oe.length===0){alert("Allowlist policy requires at least one origin.");return}if(It==="blocklist"&&M.length===0){alert("Blocklist policy requires at least one origin.");return}Yt(!0),be({type:"set_browser_policy",domainPolicy:It,domainAllowlist:oe,domainBlocklist:M,traceRetentionDays:C,mcpPlaywrightVersion:_e.trim().length>0?_e.trim():at.desiredVersion})},[hl,dl,at.desiredVersion,It,ie,_e,be]),ms=B!==fe.prefix||he.trim().length>0||T,ps=le.trim().length>0||Ge.trim().length>0||dt.trim().length>0||vn,Oi=It!==at.domainPolicy||hl!==fa(at.domainAllowlist)||dl!==fa(at.domainBlocklist)||ie!==String(at.traceRetentionDays)||_e.trim()!==at.desiredVersion,bt=Rt||yt!==null,Ca=ge&&!!c&&p===c&&!Me,Al=yl&&$e?Iu($e):null,Kn=`Read-only here. Reply in ${Al==="discord"?"Discord":Al==="terminal"?"Terminal TUI":"the original channel"}.`,Rr=Al==="discord"?"Read-only (Discord)":Al==="terminal"?"Read-only (Terminal)":"Read-only",Ta=ZC(ge,Me,$e,c),Br=ge?yl?Kn:"Ask Keygate anything...":"Connecting...",li=H==="dark"?"Light mode":"Dark mode",on=H==="dark"?"Dark":"Light";return v.jsxs("div",{className:"app",children:[v.jsxs("header",{className:"app-header",children:[v.jsxs("div",{className:"header-left",children:[v.jsxs("div",{className:"brand-block",children:[v.jsx("span",{className:"brand-mark","aria-hidden":"true"}),v.jsxs("div",{className:"brand-copy",children:[v.jsx("h1",{className:"logo",children:"Keygate"}),v.jsx("p",{className:"brand-subtitle",children:"AI Gateway Workspace"})]})]}),v.jsx(BC,{mode:k,spicyEnabled:w,onModeChange:Hn})]}),v.jsxs("div",{className:"header-right",children:[v.jsxs("div",{className:`connection-status ${ge?"connected":mt?"connecting":"disconnected"}`,children:[v.jsx("span",{className:"status-dot"}),ge?"Connected":mt?"Connecting...":"Disconnected"]}),v.jsx("button",{className:"btn-secondary",onClick:Dr,title:pe==="system"?`Following system (${on})`:`Using ${on} theme`,children:li}),v.jsx("button",{className:"btn-icon",onClick:()=>ce(C=>!C),"aria-expanded":se,"aria-controls":"config-drawer",title:"Settings","aria-label":"Settings",children:v.jsx("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:v.jsx("path",{d:"M8.325 2.317a1 1 0 0 1 .98-.804h1.39a1 1 0 0 1 .98.804l.232 1.16a5.98 5.98 0 0 1 1.308.754l1.116-.372a1 1 0 0 1 1.177.481l.694 1.202a1 1 0 0 1-.196 1.284l-.884.788a6.1 6.1 0 0 1 0 1.512l.884.788a1 1 0 0 1 .196 1.284l-.694 1.202a1 1 0 0 1-1.177.481l-1.116-.372a5.98 5.98 0 0 1-1.308.754l-.231 1.16a1 1 0 0 1-.981.804H9.305a1 1 0 0 1-.98-.804l-.232-1.16a5.98 5.98 0 0 1-1.308-.754l-1.116.372a1 1 0 0 1-1.177-.481l-.694-1.202a1 1 0 0 1 .196-1.284l.884-.788a6.1 6.1 0 0 1 0-1.512l-.884-.788a1 1 0 0 1-.196-1.284l.694-1.202a1 1 0 0 1 1.177-.481l1.116.372a5.98 5.98 0 0 1 1.308-.754l.231-1.16ZM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})})})]})]}),v.jsxs("main",{className:"app-main",children:[v.jsx(YC,{sessions:bl,activeSessionId:$e,onSelectSession:Di,onNewSession:Nr,onDeleteSession:fs,onRenameSession:Ni,onOpenSettings:()=>ce(!0),disabled:!ge}),v.jsxs("section",{className:"chat-shell",children:[v.jsxs("div",{className:"chat-toolbar",children:[Nn&&Nn.limitTokens>0&&v.jsxs("div",{className:"context-meter",title:`Context: ${Nn.usedTokens.toLocaleString()} / ${Nn.limitTokens.toLocaleString()} tokens (${Nn.percent}%)`,children:[v.jsx("div",{className:"context-meter-bar",children:v.jsx("div",{className:`context-meter-fill${Nn.percent>=90?" context-meter-critical":Nn.percent>=70?" context-meter-warn":""}`,style:{width:`${Nn.percent}%`}})}),v.jsxs("span",{className:"context-meter-label",children:[Nn.percent,"%"]})]}),yl&&v.jsx("span",{className:"session-readonly-chip",children:Rr})]}),v.jsx(NC,{messages:Un,onSendMessage:_r,isStreaming:Me,streamActivities:Lt,disabled:Ta,inputPlaceholder:Br,sessionIdForUploads:$e,readOnlyHint:yl?Kn:void 0})]}),v.jsx(RC,{events:Tt,latestScreenshot:os,collapsed:Ci,onToggleCollapsed:()=>Ti(C=>!C)})]}),se&&v.jsx("div",{className:"config-drawer-backdrop",onClick:()=>ce(!1),role:"presentation",children:v.jsxs("aside",{id:"config-drawer",className:"config-drawer",onClick:C=>C.stopPropagation(),"aria-label":"Configuration",children:[v.jsxs("div",{className:"config-drawer-header",children:[v.jsx("h2",{children:"Configuration"}),v.jsx("button",{className:"config-close-btn",onClick:()=>ce(!1),"aria-label":"Close configuration",children:"Close"})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Appearance"}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Theme"}),v.jsx("select",{value:pe,onChange:C=>xe(C.target.value),children:t2.map(C=>v.jsx("option",{value:C.value,children:C.label},C.value))})]}),v.jsxs("small",{className:"config-note",children:["Current theme: ",on,". ",pe==="system"?"Following your OS preference.":"Using manual override."]})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Security"}),v.jsxs("label",{className:"config-switch-row",children:[v.jsxs("span",{className:"config-switch-copy",children:[v.jsx("strong",{children:"Spicy Mode"}),v.jsx("small",{children:"Enable autonomous full-host execution."})]}),v.jsx("input",{type:"checkbox",checked:El,onChange:C=>Hn(C.target.checked?"spicy":"safe"),disabled:!ge||Me||!hs})]}),!w&&v.jsxs("div",{className:"config-risk-block",children:[v.jsxs("p",{className:"config-hint",children:["Spicy mode is currently locked. To unlock it, type ",v.jsx("code",{children:"I ACCEPT THE RISK"}),"."]}),v.jsx("input",{className:"config-risk-input",type:"text",value:P,onChange:C=>X(C.target.value),placeholder:"I ACCEPT THE RISK",spellCheck:!1,autoComplete:"off",disabled:!ge||Me}),v.jsx("button",{className:"btn-secondary",onClick:cs,disabled:!ge||Me||!Ft,children:"Enable Spicy Mode"})]}),v.jsxs("label",{className:"config-switch-row",children:[v.jsxs("span",{className:"config-switch-copy",children:[v.jsx("strong",{children:"Spicy Max Obedience"}),v.jsx("small",{children:"Best-effort reduction of avoidable refusals in spicy mode."})]}),v.jsx("input",{type:"checkbox",checked:Y,onChange:C=>xl(C.target.checked),disabled:!ge||Me||!w||!El})]})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Model"}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Provider"}),v.jsx("select",{value:Sl,onChange:C=>On(C.target.value),disabled:!ge||Me,children:e2.map(C=>v.jsx("option",{value:C.value,children:C.label},C.value))})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Model"}),v.jsx("select",{value:kl,onChange:C=>Zt(C.target.value),disabled:!ge||Me||Fn.length===0||gl,children:Fn.length===0?v.jsx("option",{value:G.model,children:gl?"Loading models...":G.model}):Fn.map(C=>v.jsx("option",{value:C.id,children:C.displayName},C.id))})]}),Sl==="openai-codex"&&v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Reasoning"}),v.jsx("select",{value:ka??"medium",onChange:C=>Cl(C.target.value),disabled:!ge||Me||Fn.length===0||gl||ti.length===0,children:ti.length===0?v.jsx("option",{value:ka??"medium",children:"Medium"}):ti.map(C=>v.jsx("option",{value:C.value,children:C.label},C.value))})]}),gl&&v.jsx("span",{className:"models-loading",children:"Refreshing model catalog..."})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"MCP Browser"}),v.jsxs("p",{className:"config-note",children:["Installed: ",at.installed?"Yes":"No"]}),v.jsxs("p",{className:"config-note",children:["Health: ",at.healthy?"Ready":"Needs setup"]}),v.jsxs("p",{className:"config-note",children:["Version: ",at.configuredVersion??"(not configured)"," / pinned ",at.desiredVersion]}),v.jsxs("p",{className:"config-note",children:["Policy: ",at.domainPolicy]}),v.jsxs("p",{className:"config-note",children:["Output path: ",at.artifactsPath||"(not set)"]}),at.warning&&v.jsx("p",{className:"config-note config-warning",children:at.warning}),v.jsxs("div",{className:"config-button-row",children:[v.jsx("button",{className:"btn-secondary",onClick:ds,disabled:!ge||Me||bt||at.installed,children:yt==="install"?"Installing...":"Install"}),v.jsx("button",{className:"btn-secondary",onClick:jr,disabled:!ge||Me||bt||!at.installed,children:yt==="update"?"Updating...":"Update"}),v.jsx("button",{className:"btn-secondary",onClick:Mr,disabled:!ge||Me||bt||!at.installed,children:yt==="remove"?"Removing...":"Remove"}),v.jsx("button",{className:"btn-secondary",onClick:()=>be({type:"get_mcp_browser_status"}),disabled:!ge||Me||bt,children:"Refresh Status"})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Domain Policy"}),v.jsx("select",{value:It,onChange:C=>$l(C.target.value),disabled:!ge||Me||bt,children:n2.map(C=>v.jsx("option",{value:C.value,children:C.label},C.value))})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Allowlist Origins (comma separated)"}),v.jsx("input",{className:"config-text-input",type:"text",value:hl,onChange:C=>Ct(C.target.value),placeholder:"https://example.com, https://docs.example.com",spellCheck:!1,autoComplete:"off",disabled:!ge||Me||bt||It!=="allowlist"})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Blocklist Origins (comma separated)"}),v.jsx("input",{className:"config-text-input",type:"text",value:dl,onChange:C=>Z(C.target.value),placeholder:"https://ads.example, https://trackers.example",spellCheck:!1,autoComplete:"off",disabled:!ge||Me||bt||It!=="blocklist"})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Retention (days)"}),v.jsx("input",{className:"config-text-input",type:"number",min:1,value:ie,onChange:C=>ke(C.target.value),disabled:!ge||Me||bt})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Playwright MCP Version"}),v.jsx("input",{className:"config-text-input",type:"text",value:_e,onChange:C=>Ye(C.target.value),placeholder:es,spellCheck:!1,autoComplete:"off",disabled:!ge||Me||bt})]}),v.jsx("button",{className:"btn-secondary",onClick:Ea,disabled:!ge||Me||bt||!Oi,children:Rt?"Saving...":"Save Browser Policy"}),v.jsx("small",{className:"config-note",children:"Policy changes reconfigure Playwright MCP when the browser server is already installed."})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Discord Bot"}),v.jsxs("p",{className:"config-note",children:["Status: ",fe.configured?"Token configured":"Token not configured"]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Command Prefixes"}),v.jsx("input",{className:"config-text-input",type:"text",value:B,onChange:C=>W(C.target.value),placeholder:`${xr}, ?keygate , 1`,spellCheck:!1,autoComplete:"off",disabled:!ge||Me||Q})]}),v.jsx("small",{className:"config-note",children:"Use commas to separate multiple prefixes."}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Bot Token"}),v.jsx("input",{className:"config-text-input",type:"password",value:he,onChange:C=>{Te(C.target.value),C.target.value.trim().length>0&&_(!1)},placeholder:fe.configured?"Leave blank to keep current token":"Paste Discord bot token",autoComplete:"off",disabled:!ge||Me||Q})]}),v.jsxs("label",{className:"config-switch-row",children:[v.jsxs("span",{className:"config-switch-copy",children:[v.jsx("strong",{children:"Clear saved token"}),v.jsx("small",{children:"Remove token from local config on save."})]}),v.jsx("input",{type:"checkbox",checked:T,onChange:C=>{const oe=C.target.checked;_(oe),oe&&Te("")},disabled:!ge||Me||Q||!fe.configured})]}),v.jsx("button",{className:"btn-secondary",onClick:Or,disabled:!ge||Me||Q||!ms,children:Q?"Saving...":"Save Discord Config"}),v.jsx("small",{className:"config-note",children:"Restart the Discord bot process to apply updated settings."})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Slack Bot"}),v.jsxs("p",{className:"config-note",children:["Status: ",re.configured?"Token configured":"Token not configured"]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Bot Token"}),v.jsx("input",{className:"config-text-input",type:"password",value:le,onChange:C=>{ve(C.target.value),C.target.value.trim().length>0&&xn(!1)},placeholder:re.configured?"Leave blank to keep current token":"Paste Slack bot token (xoxb-...)",autoComplete:"off",disabled:!ge||Me||_t})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"App Token"}),v.jsx("input",{className:"config-text-input",type:"password",value:Ge,onChange:C=>je(C.target.value),placeholder:"Paste Slack app token (xapp-...)",autoComplete:"off",disabled:!ge||Me||_t})]}),v.jsxs("label",{className:"llm-control config-control",children:[v.jsx("span",{children:"Signing Secret"}),v.jsx("input",{className:"config-text-input",type:"password",value:dt,onChange:C=>wt(C.target.value),placeholder:"Paste Slack signing secret",autoComplete:"off",disabled:!ge||Me||_t})]}),v.jsxs("label",{className:"config-switch-row",children:[v.jsxs("span",{className:"config-switch-copy",children:[v.jsx("strong",{children:"Clear saved tokens"}),v.jsx("small",{children:"Remove all Slack tokens from local config on save."})]}),v.jsx("input",{type:"checkbox",checked:vn,onChange:C=>{const oe=C.target.checked;xn(oe),oe&&(ve(""),je(""),wt(""))},disabled:!ge||Me||_t||!re.configured})]}),v.jsx("button",{className:"btn-secondary",onClick:Tl,disabled:!ge||Me||_t||!ps,children:_t?"Saving...":"Save Slack Config"}),v.jsx("small",{className:"config-note",children:"Restart the Slack bot process to apply updated settings."})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Session"}),v.jsx("button",{className:"btn-secondary",onClick:zr,disabled:!Ca,children:"Clear main session"})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Skill Marketplace"}),v.jsx(HC,{connected:ge,disabled:Me,searchResults:Bt,searchTotal:Ln,featuredEntries:ss,selectedEntry:wi,installStatus:Zn,onSearch:(C,oe)=>{be({type:"marketplace_search",query:C,tags:oe})},onSelectEntry:C=>{be({type:"marketplace_info",content:C})},onClearSelection:()=>Pl(null),onInstall:(C,oe)=>{Wl(null),be({type:"marketplace_install",content:C,scope:oe})},onLoadFeatured:()=>{be({type:"marketplace_featured"})}})]}),v.jsxs("section",{className:"config-section",children:[v.jsx("h3",{children:"Agent Memory"}),v.jsx(qC,{connected:ge,disabled:Me,memories:ei,namespaces:Ar,onList:C=>{be({type:"memory_list",namespace:C??""})},onSearch:(C,oe)=>{be({type:"memory_search",query:C,namespace:oe??""})},onSet:(C,oe,M)=>{be({type:"memory_set",namespace:C,key:oe,content:M})},onDelete:(C,oe)=>{be({type:"memory_delete",namespace:C,key:oe})},onLoadNamespaces:()=>{be({type:"memory_namespaces"})}})]})]})}),j&&v.jsx(UC,{prompt:j.prompt,details:j.details,onAllowOnce:()=>zi("allow_once"),onAllowAlways:()=>zi("allow_always"),onCancel:()=>zi("cancel")})]})}D0.createRoot(document.getElementById("root")).render(v.jsx(V.StrictMode,{children:v.jsx(m2,{})}));