@herdctl/web 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client/assets/index-Cyochp2F.css +1 -0
- package/dist/client/assets/index-mp9jz5eD.js +373 -0
- package/dist/client/favicon.ico +0 -0
- package/dist/client/favicon.svg +1 -0
- package/dist/client/herdctl-logo.svg +29 -0
- package/dist/client/index.html +21 -0
- package/dist/server/__tests__/routes.test.d.ts +8 -0
- package/dist/server/__tests__/routes.test.d.ts.map +1 -0
- package/dist/server/__tests__/routes.test.js +535 -0
- package/dist/server/__tests__/routes.test.js.map +1 -0
- package/dist/server/__tests__/ws-handler.test.d.ts +7 -0
- package/dist/server/__tests__/ws-handler.test.d.ts.map +1 -0
- package/dist/server/__tests__/ws-handler.test.js +380 -0
- package/dist/server/__tests__/ws-handler.test.js.map +1 -0
- package/dist/server/chat/index.d.ts +5 -0
- package/dist/server/chat/index.d.ts.map +1 -0
- package/dist/server/chat/index.js +5 -0
- package/dist/server/chat/index.js.map +1 -0
- package/dist/server/chat/web-chat-manager.d.ts +158 -0
- package/dist/server/chat/web-chat-manager.d.ts.map +1 -0
- package/dist/server/chat/web-chat-manager.js +437 -0
- package/dist/server/chat/web-chat-manager.js.map +1 -0
- package/dist/server/index.d.ts +144 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +341 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/routes/agents.d.ts +15 -0
- package/dist/server/routes/agents.d.ts.map +1 -0
- package/dist/server/routes/agents.js +66 -0
- package/dist/server/routes/agents.js.map +1 -0
- package/dist/server/routes/chat.d.ts +18 -0
- package/dist/server/routes/chat.d.ts.map +1 -0
- package/dist/server/routes/chat.js +191 -0
- package/dist/server/routes/chat.js.map +1 -0
- package/dist/server/routes/fleet.d.ts +15 -0
- package/dist/server/routes/fleet.d.ts.map +1 -0
- package/dist/server/routes/fleet.js +36 -0
- package/dist/server/routes/fleet.js.map +1 -0
- package/dist/server/routes/jobs.d.ts +17 -0
- package/dist/server/routes/jobs.d.ts.map +1 -0
- package/dist/server/routes/jobs.js +188 -0
- package/dist/server/routes/jobs.js.map +1 -0
- package/dist/server/routes/schedules.d.ts +16 -0
- package/dist/server/routes/schedules.d.ts.map +1 -0
- package/dist/server/routes/schedules.js +126 -0
- package/dist/server/routes/schedules.js.map +1 -0
- package/dist/server/ws/fleet-bridge.d.ts +80 -0
- package/dist/server/ws/fleet-bridge.d.ts.map +1 -0
- package/dist/server/ws/fleet-bridge.js +184 -0
- package/dist/server/ws/fleet-bridge.js.map +1 -0
- package/dist/server/ws/handler.d.ts +93 -0
- package/dist/server/ws/handler.d.ts.map +1 -0
- package/dist/server/ws/handler.js +270 -0
- package/dist/server/ws/handler.js.map +1 -0
- package/dist/server/ws/index.d.ts +8 -0
- package/dist/server/ws/index.d.ts.map +1 -0
- package/dist/server/ws/index.js +8 -0
- package/dist/server/ws/index.js.map +1 -0
- package/dist/server/ws/types.d.ts +215 -0
- package/dist/server/ws/types.d.ts.map +1 -0
- package/dist/server/ws/types.js +67 -0
- package/dist/server/ws/types.js.map +1 -0
- package/package.json +77 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
var O5=Object.defineProperty;var L5=(t,l,r)=>l in t?O5(t,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[l]=r;var S0=(t,l,r)=>L5(t,typeof l!="symbol"?l+"":l,r);function U5(t,l){for(var r=0;r<l.length;r++){const i=l[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(i,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function q1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ic={exports:{}},ui={};/**
|
|
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 w0;function H5(){if(w0)return ui;w0=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(i,s,o){var c=null;if(o!==void 0&&(c=""+o),s.key!==void 0&&(c=""+s.key),"key"in s){o={};for(var d in s)d!=="key"&&(o[d]=s[d])}else o=s;return s=o.ref,{$$typeof:t,type:i,key:c,ref:s!==void 0?s:null,props:o}}return ui.Fragment=l,ui.jsx=r,ui.jsxs=r,ui}var k0;function B5(){return k0||(k0=1,Ic.exports=H5()),Ic.exports}var g=B5(),Fc={exports:{}},we={};/**
|
|
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 C0;function Z5(){if(C0)return we;C0=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),v=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,j={};function E(_,J,k){this.props=_,this.context=J,this.refs=j,this.updater=k||C}E.prototype.isReactComponent={},E.prototype.setState=function(_,J){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,_,J,"setState")},E.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function T(){}T.prototype=E.prototype;function D(_,J,k){this.props=_,this.context=J,this.refs=j,this.updater=k||C}var F=D.prototype=new T;F.constructor=D,z(F,E.prototype),F.isPureReactComponent=!0;var ee=Array.isArray;function O(){}var V={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function de(_,J,k){var X=k.ref;return{$$typeof:t,type:_,key:J,ref:X!==void 0?X:null,props:k}}function L(_,J){return de(_.type,J,_.props)}function ae(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function te(_){var J={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(k){return J[k]})}var ve=/\/+/g;function ue(_,J){return typeof _=="object"&&_!==null&&_.key!=null?te(""+_.key):J.toString(36)}function K(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(O,O):(_.status="pending",_.then(function(J){_.status==="pending"&&(_.status="fulfilled",_.value=J)},function(J){_.status==="pending"&&(_.status="rejected",_.reason=J)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function H(_,J,k,X,re){var W=typeof _;(W==="undefined"||W==="boolean")&&(_=null);var ne=!1;if(_===null)ne=!0;else switch(W){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(_.$$typeof){case t:case l:ne=!0;break;case x:return ne=_._init,H(ne(_._payload),J,k,X,re)}}if(ne)return re=re(_),ne=X===""?"."+ue(_,0):X,ee(re)?(k="",ne!=null&&(k=ne.replace(ve,"$&/")+"/"),H(re,J,k,"",function(Le){return Le})):re!=null&&(ae(re)&&(re=L(re,k+(re.key==null||_&&_.key===re.key?"":(""+re.key).replace(ve,"$&/")+"/")+ne)),J.push(re)),1;ne=0;var ce=X===""?".":X+":";if(ee(_))for(var me=0;me<_.length;me++)X=_[me],W=ce+ue(X,me),ne+=H(X,J,k,W,re);else if(me=S(_),typeof me=="function")for(_=me.call(_),me=0;!(X=_.next()).done;)X=X.value,W=ce+ue(X,me++),ne+=H(X,J,k,W,re);else if(W==="object"){if(typeof _.then=="function")return H(K(_),J,k,X,re);throw J=String(_),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return ne}function P(_,J,k){if(_==null)return _;var X=[],re=0;return H(_,X,"","",function(W){return J.call(k,W,re++)}),X}function oe(_){if(_._status===-1){var J=_._result;J=J(),J.then(function(k){(_._status===0||_._status===-1)&&(_._status=1,_._result=k)},function(k){(_._status===0||_._status===-1)&&(_._status=2,_._result=k)}),_._status===-1&&(_._status=0,_._result=J)}if(_._status===1)return _._result.default;throw _._result}var Se=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},N={map:P,forEach:function(_,J,k){P(_,function(){J.apply(this,arguments)},k)},count:function(_){var J=0;return P(_,function(){J++}),J},toArray:function(_){return P(_,function(J){return J})||[]},only:function(_){if(!ae(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return we.Activity=y,we.Children=N,we.Component=E,we.Fragment=r,we.Profiler=s,we.PureComponent=D,we.StrictMode=i,we.Suspense=m,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,we.__COMPILER_RUNTIME={__proto__:null,c:function(_){return V.H.useMemoCache(_)}},we.cache=function(_){return function(){return _.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(_,J,k){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var X=z({},_.props),re=_.key;if(J!=null)for(W in J.key!==void 0&&(re=""+J.key),J)!se.call(J,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&J.ref===void 0||(X[W]=J[W]);var W=arguments.length-2;if(W===1)X.children=k;else if(1<W){for(var ne=Array(W),ce=0;ce<W;ce++)ne[ce]=arguments[ce+2];X.children=ne}return de(_.type,re,X)},we.createContext=function(_){return _={$$typeof:c,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:o,_context:_},_},we.createElement=function(_,J,k){var X,re={},W=null;if(J!=null)for(X in J.key!==void 0&&(W=""+J.key),J)se.call(J,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(re[X]=J[X]);var ne=arguments.length-2;if(ne===1)re.children=k;else if(1<ne){for(var ce=Array(ne),me=0;me<ne;me++)ce[me]=arguments[me+2];re.children=ce}if(_&&_.defaultProps)for(X in ne=_.defaultProps,ne)re[X]===void 0&&(re[X]=ne[X]);return de(_,W,re)},we.createRef=function(){return{current:null}},we.forwardRef=function(_){return{$$typeof:d,render:_}},we.isValidElement=ae,we.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:oe}},we.memo=function(_,J){return{$$typeof:p,type:_,compare:J===void 0?null:J}},we.startTransition=function(_){var J=V.T,k={};V.T=k;try{var X=_(),re=V.S;re!==null&&re(k,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(O,Se)}catch(W){Se(W)}finally{J!==null&&k.types!==null&&(J.types=k.types),V.T=J}},we.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},we.use=function(_){return V.H.use(_)},we.useActionState=function(_,J,k){return V.H.useActionState(_,J,k)},we.useCallback=function(_,J){return V.H.useCallback(_,J)},we.useContext=function(_){return V.H.useContext(_)},we.useDebugValue=function(){},we.useDeferredValue=function(_,J){return V.H.useDeferredValue(_,J)},we.useEffect=function(_,J){return V.H.useEffect(_,J)},we.useEffectEvent=function(_){return V.H.useEffectEvent(_)},we.useId=function(){return V.H.useId()},we.useImperativeHandle=function(_,J,k){return V.H.useImperativeHandle(_,J,k)},we.useInsertionEffect=function(_,J){return V.H.useInsertionEffect(_,J)},we.useLayoutEffect=function(_,J){return V.H.useLayoutEffect(_,J)},we.useMemo=function(_,J){return V.H.useMemo(_,J)},we.useOptimistic=function(_,J){return V.H.useOptimistic(_,J)},we.useReducer=function(_,J,k){return V.H.useReducer(_,J,k)},we.useRef=function(_){return V.H.useRef(_)},we.useState=function(_){return V.H.useState(_)},we.useSyncExternalStore=function(_,J,k){return V.H.useSyncExternalStore(_,J,k)},we.useTransition=function(){return V.H.useTransition()},we.version="19.2.4",we}var E0;function $1(){return E0||(E0=1,Fc.exports=Z5()),Fc.exports}var M=$1();const na=q1(M),q5=U5({__proto__:null,default:na},[M]);var Yc={exports:{}},si={},Gc={exports:{}},Xc={};/**
|
|
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 M0;function $5(){return M0||(M0=1,(function(t){function l(H,P){var oe=H.length;H.push(P);e:for(;0<oe;){var Se=oe-1>>>1,N=H[Se];if(0<s(N,P))H[Se]=P,H[oe]=N,oe=Se;else break e}}function r(H){return H.length===0?null:H[0]}function i(H){if(H.length===0)return null;var P=H[0],oe=H.pop();if(oe!==P){H[0]=oe;e:for(var Se=0,N=H.length,_=N>>>1;Se<_;){var J=2*(Se+1)-1,k=H[J],X=J+1,re=H[X];if(0>s(k,oe))X<N&&0>s(re,k)?(H[Se]=re,H[X]=oe,Se=X):(H[Se]=k,H[J]=oe,Se=J);else if(X<N&&0>s(re,oe))H[Se]=re,H[X]=oe,Se=X;else break e}}return P}function s(H,P){var oe=H.sortIndex-P.sortIndex;return oe!==0?oe:H.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();t.unstable_now=function(){return c.now()-d}}var m=[],p=[],x=1,y=null,v=3,S=!1,C=!1,z=!1,j=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function F(H){for(var P=r(p);P!==null;){if(P.callback===null)i(p);else if(P.startTime<=H)i(p),P.sortIndex=P.expirationTime,l(m,P);else break;P=r(p)}}function ee(H){if(z=!1,F(H),!C)if(r(m)!==null)C=!0,O||(O=!0,te());else{var P=r(p);P!==null&&K(ee,P.startTime-H)}}var O=!1,V=-1,se=5,de=-1;function L(){return j?!0:!(t.unstable_now()-de<se)}function ae(){if(j=!1,O){var H=t.unstable_now();de=H;var P=!0;try{e:{C=!1,z&&(z=!1,T(V),V=-1),S=!0;var oe=v;try{t:{for(F(H),y=r(m);y!==null&&!(y.expirationTime>H&&L());){var Se=y.callback;if(typeof Se=="function"){y.callback=null,v=y.priorityLevel;var N=Se(y.expirationTime<=H);if(H=t.unstable_now(),typeof N=="function"){y.callback=N,F(H),P=!0;break t}y===r(m)&&i(m),F(H)}else i(m);y=r(m)}if(y!==null)P=!0;else{var _=r(p);_!==null&&K(ee,_.startTime-H),P=!1}}break e}finally{y=null,v=oe,S=!1}P=void 0}}finally{P?te():O=!1}}}var te;if(typeof D=="function")te=function(){D(ae)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,ue=ve.port2;ve.port1.onmessage=ae,te=function(){ue.postMessage(null)}}else te=function(){E(ae,0)};function K(H,P){V=E(function(){H(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(H){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var oe=v;v=P;try{return H()}finally{v=oe}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(H,P){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var oe=v;v=H;try{return P()}finally{v=oe}},t.unstable_scheduleCallback=function(H,P,oe){var Se=t.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Se+oe:Se):oe=Se,H){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=oe+N,H={id:x++,callback:P,priorityLevel:H,startTime:oe,expirationTime:N,sortIndex:-1},oe>Se?(H.sortIndex=oe,l(p,H),r(m)===null&&H===r(p)&&(z?(T(V),V=-1):z=!0,K(ee,oe-Se))):(H.sortIndex=N,l(m,H),C||S||(C=!0,O||(O=!0,te()))),H},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(H){var P=v;return function(){var oe=v;v=P;try{return H.apply(this,arguments)}finally{v=oe}}}})(Xc)),Xc}var N0;function V5(){return N0||(N0=1,Gc.exports=$5()),Gc.exports}var Qc={exports:{}},Nt={};/**
|
|
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 j0;function J5(){if(j0)return Nt;j0=1;var t=$1();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(m,p,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:m,containerInfo:p,implementation:x}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Nt.createPortal=function(m,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(m,p,null,x)},Nt.flushSync=function(m){var p=c.T,x=i.p;try{if(c.T=null,i.p=2,m)return m()}finally{c.T=p,i.p=x,i.d.f()}},Nt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(m,p))},Nt.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},Nt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var x=p.as,y=d(x,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:S}):x==="script"&&i.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=d(p.as,p.crossOrigin);i.d.M(m,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(m)},Nt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,y=d(x,p.crossOrigin);i.d.L(m,x,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nt.preloadModule=function(m,p){if(typeof m=="string")if(p){var x=d(p.as,p.crossOrigin);i.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(m)},Nt.requestFormReset=function(m){i.d.r(m)},Nt.unstable_batchedUpdates=function(m,p){return m(p)},Nt.useFormState=function(m,p,x){return c.H.useFormState(m,p,x)},Nt.useFormStatus=function(){return c.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var A0;function I5(){if(A0)return Qc.exports;A0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Qc.exports=J5(),Qc.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 z0;function F5(){if(z0)return si;z0=1;var t=V5(),l=$1(),r=I5();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function c(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(o(e)!==e)throw Error(i(188))}function p(e){var n=e.alternate;if(!n){if(n=o(e),n===null)throw Error(i(188));return n!==e?null:e}for(var a=e,u=n;;){var f=a.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){a=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===a)return m(f),e;if(h===u)return m(f),n;h=h.sibling}throw Error(i(188))}if(a.return!==u.return)a=f,u=h;else{for(var b=!1,w=f.child;w;){if(w===a){b=!0,a=f,u=h;break}if(w===u){b=!0,u=f,a=h;break}w=w.sibling}if(!b){for(w=h.child;w;){if(w===a){b=!0,a=h,u=f;break}if(w===u){b=!0,u=h,a=f;break}w=w.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==u)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:n}function x(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=x(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),D=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case E:return"Profiler";case j:return"StrictMode";case ee:return"Suspense";case O:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case D:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case F:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case se:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var K=Array.isArray,H=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},Se=[],N=-1;function _(e){return{current:e}}function J(e){0>N||(e.current=Se[N],Se[N]=null,N--)}function k(e,n){N++,Se[N]=e.current,e.current=n}var X=_(null),re=_(null),W=_(null),ne=_(null);function ce(e,n){switch(k(W,n),k(re,e),k(X,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Jh(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Jh(n),e=Ih(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(X),k(X,e)}function me(){J(X),J(re),J(W)}function Le(e){e.memoizedState!==null&&k(ne,e);var n=X.current,a=Ih(n,e.type);n!==a&&(k(re,e),k(X,a))}function st(e){re.current===e&&(J(X),J(re)),ne.current===e&&(J(ne),li._currentValue=oe)}var Mt,Fe;function at(e){if(Mt===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Mt=n&&n[1]||"",Fe=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Mt+e+Fe}var nn=!1;function gn(e,n){if(!e||nn)return"";nn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch($){var q=$}Reflect.construct(e,[],Q)}else{try{Q.call()}catch($){q=$}e.call(Q.prototype)}}else{try{throw Error()}catch($){q=$}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch($){if($&&q&&typeof $.stack=="string")return[$.stack,q.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],w=h[1];if(b&&w){var A=b.split(`
|
|
44
|
+
`),Z=w.split(`
|
|
45
|
+
`);for(f=u=0;u<A.length&&!A[u].includes("DetermineComponentFrameRoot");)u++;for(;f<Z.length&&!Z[f].includes("DetermineComponentFrameRoot");)f++;if(u===A.length||f===Z.length)for(u=A.length-1,f=Z.length-1;1<=u&&0<=f&&A[u]!==Z[f];)f--;for(;1<=u&&0<=f;u--,f--)if(A[u]!==Z[f]){if(u!==1||f!==1)do if(u--,f--,0>f||A[u]!==Z[f]){var I=`
|
|
46
|
+
`+A[u].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=u&&0<=f);break}}}finally{nn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?at(a):""}function al(e,n){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return e.child!==n&&n!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return gn(e.type,!1);case 11:return gn(e.type.render,!1);case 1:return gn(e.type,!0);case 31:return at("Activity");default:return""}}function pt(e){try{var n="",a=null;do n+=al(e,a),a=e,e=e.return;while(e);return n}catch(u){return`
|
|
47
|
+
Error generating stack: `+u.message+`
|
|
48
|
+
`+u.stack}}var Rn=Object.prototype.hasOwnProperty,il=t.unstable_scheduleCallback,yn=t.unstable_cancelCallback,cr=t.unstable_shouldYield,pa=t.unstable_requestPaint,zt=t.unstable_now,Ts=t.unstable_getCurrentPriorityLevel,Y=t.unstable_ImmediatePriority,ie=t.unstable_UserBlockingPriority,xe=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Ze=t.unstable_IdlePriority,It=t.log,Dn=t.unstable_setDisableYieldValue,Tt=null,gt=null;function Dt(e){if(typeof It=="function"&&Dn(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Tt,e)}catch{}}var Ye=Math.clz32?Math.clz32:S4,ul=Math.log,xn=Math.LN2;function S4(e){return e>>>=0,e===0?32:31-(ul(e)/xn|0)|0}var Ti=256,_i=262144,Ri=4194304;function Hl(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Di(e,n,a){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~h,u!==0?f=Hl(u):(b&=w,b!==0?f=Hl(b):a||(a=w&~e,a!==0&&(f=Hl(a))))):(w=u&~h,w!==0?f=Hl(w):b!==0?f=Hl(b):a||(a=u&~e,a!==0&&(f=Hl(a)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,a=n&-n,h>=a||h===32&&(a&4194048)!==0)?n:f}function ga(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function w4(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ef(){var e=Ri;return Ri<<=1,(Ri&62914560)===0&&(Ri=4194304),e}function _s(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function ya(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k4(e,n,a,u,f,h){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,A=e.expirationTimes,Z=e.hiddenUpdates;for(a=b&~a;0<a;){var I=31-Ye(a),Q=1<<I;w[I]=0,A[I]=-1;var q=Z[I];if(q!==null)for(Z[I]=null,I=0;I<q.length;I++){var $=q[I];$!==null&&($.lane&=-536870913)}a&=~Q}u!==0&&Mf(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function Mf(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ye(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|a&261930}function Nf(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var u=31-Ye(a),f=1<<u;f&n|e[u]&n&&(e[u]|=n),a&=~f}}function jf(e,n){var a=n&-n;return a=(a&42)!==0?1:Rs(a),(a&(e.suspendedLanes|n))!==0?0:a}function Rs(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 Ds(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Af(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:m0(e.type))}function zf(e,n){var a=P.p;try{return P.p=e,n()}finally{P.p=a}}var sl=Math.random().toString(36).slice(2),St="__reactFiber$"+sl,Ot="__reactProps$"+sl,fr="__reactContainer$"+sl,Os="__reactEvents$"+sl,C4="__reactListeners$"+sl,E4="__reactHandles$"+sl,Tf="__reactResources$"+sl,xa="__reactMarker$"+sl;function Ls(e){delete e[St],delete e[Ot],delete e[Os],delete e[C4],delete e[E4]}function dr(e){var n=e[St];if(n)return n;for(var a=e.parentNode;a;){if(n=a[fr]||a[St]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Ph(e);e!==null;){if(a=e[St])return a;e=Ph(e)}return n}e=a,a=e.parentNode}return null}function hr(e){if(e=e[St]||e[fr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ba(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function mr(e){var n=e[Tf];return n||(n=e[Tf]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(e){e[xa]=!0}var _f=new Set,Rf={};function Bl(e,n){pr(e,n),pr(e+"Capture",n)}function pr(e,n){for(Rf[e]=n,e=0;e<n.length;e++)_f.add(n[e])}var M4=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]*$"),Df={},Of={};function N4(e){return Rn.call(Of,e)?!0:Rn.call(Df,e)?!1:M4.test(e)?Of[e]=!0:(Df[e]=!0,!1)}function Oi(e,n,a){if(N4(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Li(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function On(e,n,a,u){if(u===null)e.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+u)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lf(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function j4(e,n,a){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){a=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Us(e){if(!e._valueTracker){var n=Lf(e)?"checked":"value";e._valueTracker=j4(e,n,""+e[n])}}function Uf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),u="";return e&&(u=Lf(e)?e.checked?"true":"false":e.value),e=u,e!==a?(n.setValue(e),!0):!1}function Ui(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 A4=/[\n"\\]/g;function rn(e){return e.replace(A4,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Hs(e,n,a,u,f,h,b,w){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+ln(n)):e.value!==""+ln(n)&&(e.value=""+ln(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Bs(e,b,ln(n)):a!=null?Bs(e,b,ln(a)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+ln(w):e.removeAttribute("name")}function Hf(e,n,a,u,f,h,b,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Us(e);return}a=a!=null?""+ln(a):"",n=n!=null?""+ln(n):a,w||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Us(e)}function Bs(e,n,a){n==="number"&&Ui(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function gr(e,n,a,u){if(e=e.options,n){n={};for(var f=0;f<a.length;f++)n["$"+a[f]]=!0;for(a=0;a<e.length;a++)f=n.hasOwnProperty("$"+e[a].value),e[a].selected!==f&&(e[a].selected=f),f&&u&&(e[a].defaultSelected=!0)}else{for(a=""+ln(a),n=null,f=0;f<e.length;f++){if(e[f].value===a){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Bf(e,n,a){if(n!=null&&(n=""+ln(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+ln(a):""}function Zf(e,n,a,u){if(n==null){if(u!=null){if(a!=null)throw Error(i(92));if(K(u)){if(1<u.length)throw Error(i(93));u=u[0]}a=u}a==null&&(a=""),n=a}a=ln(n),e.defaultValue=a,u=e.textContent,u===a&&u!==""&&u!==null&&(e.value=u),Us(e)}function yr(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var z4=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 qf(e,n,a){var u=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,a):typeof a!="number"||a===0||z4.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function $f(e,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,a!=null){for(var u in a)!a.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&a[f]!==u&&qf(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&qf(e,h,n[h])}function Zs(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 T4=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"]]),_4=/^[\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 Hi(e){return _4.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var qs=null;function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xr=null,br=null;function Vf(e){var n=hr(e);if(n&&(e=n.stateNode)){var a=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(Hs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+rn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var u=a[n];if(u!==e&&u.form===e.form){var f=u[Ot]||null;if(!f)throw Error(i(90));Hs(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<a.length;n++)u=a[n],u.form===e.form&&Uf(u)}break e;case"textarea":Bf(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&gr(e,!!a.multiple,n,!1)}}}var Vs=!1;function Jf(e,n,a){if(Vs)return e(n,a);Vs=!0;try{var u=e(n);return u}finally{if(Vs=!1,(xr!==null||br!==null)&&(Eu(),xr&&(n=xr,e=br,br=xr=null,Vf(n),e)))for(n=0;n<e.length;n++)Vf(e[n])}}function va(e,n){var a=e.stateNode;if(a===null)return null;var u=a[Ot]||null;if(u===null)return null;a=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Js=!1;if(Un)try{var Sa={};Object.defineProperty(Sa,"passive",{get:function(){Js=!0}}),window.addEventListener("test",Sa,Sa),window.removeEventListener("test",Sa,Sa)}catch{Js=!1}var ol=null,Is=null,Bi=null;function If(){if(Bi)return Bi;var e,n=Is,a=n.length,u,f="value"in ol?ol.value:ol.textContent,h=f.length;for(e=0;e<a&&n[e]===f[e];e++);var b=a-e;for(u=1;u<=b&&n[a-u]===f[h-u];u++);return Bi=f.slice(e,1<u?1-u:void 0)}function Zi(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function qi(){return!0}function Ff(){return!1}function Lt(e){function n(a,u,f,h,b){this._reactName=a,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?qi:Ff,this.isPropagationStopped=Ff,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),n}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$i=Lt(Zl),wa=y({},Zl,{view:0,detail:0}),R4=Lt(wa),Fs,Ys,ka,Vi=y({},wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xs,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!==ka&&(ka&&e.type==="mousemove"?(Fs=e.screenX-ka.screenX,Ys=e.screenY-ka.screenY):Ys=Fs=0,ka=e),Fs)},movementY:function(e){return"movementY"in e?e.movementY:Ys}}),Yf=Lt(Vi),D4=y({},Vi,{dataTransfer:0}),O4=Lt(D4),L4=y({},wa,{relatedTarget:0}),Gs=Lt(L4),U4=y({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),H4=Lt(U4),B4=y({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Z4=Lt(B4),q4=y({},Zl,{data:0}),Gf=Lt(q4),$4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V4={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"},J4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function I4(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=J4[e])?!!n[e]:!1}function Xs(){return I4}var F4=y({},wa,{key:function(e){if(e.key){var n=$4[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xs,charCode:function(e){return e.type==="keypress"?Zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y4=Lt(F4),G4=y({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xf=Lt(G4),X4=y({},wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xs}),Q4=Lt(X4),K4=y({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),P4=Lt(K4),W4=y({},Vi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),eg=Lt(W4),tg=y({},Zl,{newState:0,oldState:0}),ng=Lt(tg),lg=[9,13,27,32],Qs=Un&&"CompositionEvent"in window,Ca=null;Un&&"documentMode"in document&&(Ca=document.documentMode);var rg=Un&&"TextEvent"in window&&!Ca,Qf=Un&&(!Qs||Ca&&8<Ca&&11>=Ca),Kf=" ",Pf=!1;function Wf(e,n){switch(e){case"keyup":return lg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function ag(e,n){switch(e){case"compositionend":return ed(n);case"keypress":return n.which!==32?null:(Pf=!0,Kf);case"textInput":return e=n.data,e===Kf&&Pf?null:e;default:return null}}function ig(e,n){if(vr)return e==="compositionend"||!Qs&&Wf(e,n)?(e=If(),Bi=Is=ol=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Qf&&n.locale!=="ko"?null:n.data;default:return null}}var ug={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 td(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ug[e.type]:n==="textarea"}function nd(e,n,a,u){xr?br?br.push(u):br=[u]:xr=u,n=_u(n,"onChange"),0<n.length&&(a=new $i("onChange","change",null,a,u),e.push({event:a,listeners:n}))}var Ea=null,Ma=null;function sg(e){Hh(e,0)}function Ji(e){var n=ba(e);if(Uf(n))return e}function ld(e,n){if(e==="change")return n}var rd=!1;if(Un){var Ks;if(Un){var Ps="oninput"in document;if(!Ps){var ad=document.createElement("div");ad.setAttribute("oninput","return;"),Ps=typeof ad.oninput=="function"}Ks=Ps}else Ks=!1;rd=Ks&&(!document.documentMode||9<document.documentMode)}function id(){Ea&&(Ea.detachEvent("onpropertychange",ud),Ma=Ea=null)}function ud(e){if(e.propertyName==="value"&&Ji(Ma)){var n=[];nd(n,Ma,e,$s(e)),Jf(sg,n)}}function og(e,n,a){e==="focusin"?(id(),Ea=n,Ma=a,Ea.attachEvent("onpropertychange",ud)):e==="focusout"&&id()}function cg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ji(Ma)}function fg(e,n){if(e==="click")return Ji(n)}function dg(e,n){if(e==="input"||e==="change")return Ji(n)}function hg(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Ft=typeof Object.is=="function"?Object.is:hg;function Na(e,n){if(Ft(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),u=Object.keys(n);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var f=a[u];if(!Rn.call(n,f)||!Ft(e[f],n[f]))return!1}return!0}function sd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function od(e,n){var a=sd(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=n&&u>=n)return{node:a,offset:n-e};e=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=sd(a)}}function cd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?cd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ui(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Ui(e.document)}return n}function Ws(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var mg=Un&&"documentMode"in document&&11>=document.documentMode,Sr=null,eo=null,ja=null,to=!1;function dd(e,n,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;to||Sr==null||Sr!==Ui(u)||(u=Sr,"selectionStart"in u&&Ws(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),ja&&Na(ja,u)||(ja=u,u=_u(eo,"onSelect"),0<u.length&&(n=new $i("onSelect","select",null,n,a),e.push({event:n,listeners:u}),n.target=Sr)))}function ql(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var wr={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},no={},hd={};Un&&(hd=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);function $l(e){if(no[e])return no[e];if(!wr[e])return e;var n=wr[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in hd)return no[e]=n[a];return e}var md=$l("animationend"),pd=$l("animationiteration"),gd=$l("animationstart"),pg=$l("transitionrun"),gg=$l("transitionstart"),yg=$l("transitioncancel"),yd=$l("transitionend"),xd=new Map,lo="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(" ");lo.push("scrollEnd");function bn(e,n){xd.set(e,n),Bl(n,[e])}var Ii=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],kr=0,ro=0;function Fi(){for(var e=kr,n=ro=kr=0;n<e;){var a=an[n];an[n++]=null;var u=an[n];an[n++]=null;var f=an[n];an[n++]=null;var h=an[n];if(an[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&bd(a,f,h)}}function Yi(e,n,a,u){an[kr++]=e,an[kr++]=n,an[kr++]=a,an[kr++]=u,ro|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function ao(e,n,a,u){return Yi(e,n,a,u),Gi(e)}function Vl(e,n){return Yi(e,null,null,n),Gi(e)}function bd(e,n,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var f=!1,h=e.return;h!==null;)h.childLanes|=a,u=h.alternate,u!==null&&(u.childLanes|=a),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ye(a),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=a|536870912),h):null}function Gi(e){if(50<Qa)throw Qa=0,pc=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Cr={};function xg(e,n,a,u){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,n,a,u){return new xg(e,n,a,u)}function io(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hn(e,n){var a=e.alternate;return a===null?(a=Yt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function vd(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Xi(e,n,a,u,f,h){var b=0;if(u=e,typeof e=="function")io(e)&&(b=1);else if(typeof e=="string")b=k5(e,a,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Yt(31,a,n,f),e.elementType=de,e.lanes=h,e;case z:return Jl(a.children,f,h,n);case j:b=8,f|=24;break;case E:return e=Yt(12,a,n,f|2),e.elementType=E,e.lanes=h,e;case ee:return e=Yt(13,a,n,f),e.elementType=ee,e.lanes=h,e;case O:return e=Yt(19,a,n,f),e.elementType=O,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:b=10;break e;case T:b=9;break e;case F:b=11;break e;case V:b=14;break e;case se:b=16,u=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),u=null}return n=Yt(b,a,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Jl(e,n,a,u){return e=Yt(7,e,u,n),e.lanes=a,e}function uo(e,n,a){return e=Yt(6,e,null,n),e.lanes=a,e}function Sd(e){var n=Yt(18,null,null,0);return n.stateNode=e,n}function so(e,n,a){return n=Yt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var wd=new WeakMap;function un(e,n){if(typeof e=="object"&&e!==null){var a=wd.get(e);return a!==void 0?a:(n={value:e,source:n,stack:pt(n)},wd.set(e,n),n)}return{value:e,source:n,stack:pt(n)}}var Er=[],Mr=0,Qi=null,Aa=0,sn=[],on=0,cl=null,En=1,Mn="";function Bn(e,n){Er[Mr++]=Aa,Er[Mr++]=Qi,Qi=e,Aa=n}function kd(e,n,a){sn[on++]=En,sn[on++]=Mn,sn[on++]=cl,cl=e;var u=En;e=Mn;var f=32-Ye(u)-1;u&=~(1<<f),a+=1;var h=32-Ye(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,En=1<<32-Ye(n)+f|a<<f|u,Mn=h+e}else En=1<<h|a<<f|u,Mn=e}function oo(e){e.return!==null&&(Bn(e,1),kd(e,1,0))}function co(e){for(;e===Qi;)Qi=Er[--Mr],Er[Mr]=null,Aa=Er[--Mr],Er[Mr]=null;for(;e===cl;)cl=sn[--on],sn[on]=null,Mn=sn[--on],sn[on]=null,En=sn[--on],sn[on]=null}function Cd(e,n){sn[on++]=En,sn[on++]=Mn,sn[on++]=cl,En=n.id,Mn=n.overflow,cl=e}var wt=null,Pe=null,De=!1,fl=null,cn=!1,fo=Error(i(519));function dl(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw za(un(n,e)),fo}function Ed(e){var n=e.stateNode,a=e.type,u=e.memoizedProps;switch(n[St]=e,n[Ot]=u,a){case"dialog":Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":case"embed":Ae("load",n);break;case"video":case"audio":for(a=0;a<Pa.length;a++)Ae(Pa[a],n);break;case"source":Ae("error",n);break;case"img":case"image":case"link":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"input":Ae("invalid",n),Hf(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ae("invalid",n);break;case"textarea":Ae("invalid",n),Zf(n,u.value,u.defaultValue,u.children)}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||u.suppressHydrationWarning===!0||$h(n.textContent,a)?(u.popover!=null&&(Ae("beforetoggle",n),Ae("toggle",n)),u.onScroll!=null&&Ae("scroll",n),u.onScrollEnd!=null&&Ae("scrollend",n),u.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||dl(e,!0)}function Md(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:wt=wt.return}}function Nr(e){if(e!==wt)return!1;if(!De)return Md(e),De=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||zc(e.type,e.memoizedProps)),a=!a),a&&Pe&&dl(e),Md(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Pe=Kh(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Pe=Kh(e)}else n===27?(n=Pe,Ml(e.type)?(e=Oc,Oc=null,Pe=e):Pe=n):Pe=wt?dn(e.stateNode.nextSibling):null;return!0}function Il(){Pe=wt=null,De=!1}function ho(){var e=fl;return e!==null&&(Zt===null?Zt=e:Zt.push.apply(Zt,e),fl=null),e}function za(e){fl===null?fl=[e]:fl.push(e)}var mo=_(null),Fl=null,Zn=null;function hl(e,n,a){k(mo,n._currentValue),n._currentValue=a}function qn(e){e._currentValue=mo.current,J(mo)}function po(e,n,a){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===a)break;e=e.return}}function go(e,n,a,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var A=0;A<n.length;A++)if(w.context===n[A]){h.lanes|=a,w=h.alternate,w!==null&&(w.lanes|=a),po(h.return,a,e),u||(b=null);break e}h=w.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(i(341));b.lanes|=a,h=b.alternate,h!==null&&(h.lanes|=a),po(b,a,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function jr(e,n,a,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var w=f.type;Ft(f.pendingProps.value,b.value)||(e!==null?e.push(w):e=[w])}}else if(f===ne.current){if(b=f.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}f=f.return}e!==null&&go(n,e,a,u),n.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Fl=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return Nd(Fl,e)}function Pi(e,n){return Fl===null&&Yl(e),Nd(e,n)}function Nd(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Zn===null){if(e===null)throw Error(i(308));Zn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Zn=Zn.next=n;return a}var bg=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},vg=t.unstable_scheduleCallback,Sg=t.unstable_NormalPriority,ot={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yo(){return{controller:new bg,data:new Map,refCount:0}}function Ta(e){e.refCount--,e.refCount===0&&vg(Sg,function(){e.controller.abort()})}var _a=null,xo=0,Ar=0,zr=null;function wg(e,n){if(_a===null){var a=_a=[];xo=0,Ar=Sc(),zr={status:"pending",value:void 0,then:function(u){a.push(u)}}}return xo++,n.then(jd,jd),n}function jd(){if(--xo===0&&_a!==null){zr!==null&&(zr.status="fulfilled");var e=_a;_a=null,Ar=0,zr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function kg(e,n){var a=[],u={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<a.length;f++)(0,a[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),u}var Ad=H.S;H.S=function(e,n){dh=zt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&wg(e,n),Ad!==null&&Ad(e,n)};var Gl=_(null);function bo(){var e=Gl.current;return e!==null?e:Ge.pooledCache}function Wi(e,n){n===null?k(Gl,Gl.current):k(Gl,n.pool)}function zd(){var e=bo();return e===null?null:{parent:ot._currentValue,pool:e}}var Tr=Error(i(460)),vo=Error(i(474)),eu=Error(i(542)),tu={then:function(){}};function Td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _d(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Ln,Ln),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dd(e),e;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Dd(e),e}throw Ql=n,Tr}}function Xl(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ql=a,Tr):a}}var Ql=null;function Rd(){if(Ql===null)throw Error(i(459));var e=Ql;return Ql=null,e}function Dd(e){if(e===Tr||e===eu)throw Error(i(483))}var _r=null,Ra=0;function nu(e){var n=Ra;return Ra+=1,_r===null&&(_r=[]),_d(_r,e,n)}function Da(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function lu(e,n){throw n.$$typeof===v?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Od(e){function n(U,R){if(e){var B=U.deletions;B===null?(U.deletions=[R],U.flags|=16):B.push(R)}}function a(U,R){if(!e)return null;for(;R!==null;)n(U,R),R=R.sibling;return null}function u(U){for(var R=new Map;U!==null;)U.key!==null?R.set(U.key,U):R.set(U.index,U),U=U.sibling;return R}function f(U,R){return U=Hn(U,R),U.index=0,U.sibling=null,U}function h(U,R,B){return U.index=B,e?(B=U.alternate,B!==null?(B=B.index,B<R?(U.flags|=67108866,R):B):(U.flags|=67108866,R)):(U.flags|=1048576,R)}function b(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function w(U,R,B,G){return R===null||R.tag!==6?(R=uo(B,U.mode,G),R.return=U,R):(R=f(R,B),R.return=U,R)}function A(U,R,B,G){var pe=B.type;return pe===z?I(U,R,B.props.children,G,B.key):R!==null&&(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===se&&Xl(pe)===R.type)?(R=f(R,B.props),Da(R,B),R.return=U,R):(R=Xi(B.type,B.key,B.props,null,U.mode,G),Da(R,B),R.return=U,R)}function Z(U,R,B,G){return R===null||R.tag!==4||R.stateNode.containerInfo!==B.containerInfo||R.stateNode.implementation!==B.implementation?(R=so(B,U.mode,G),R.return=U,R):(R=f(R,B.children||[]),R.return=U,R)}function I(U,R,B,G,pe){return R===null||R.tag!==7?(R=Jl(B,U.mode,G,pe),R.return=U,R):(R=f(R,B),R.return=U,R)}function Q(U,R,B){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=uo(""+R,U.mode,B),R.return=U,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case S:return B=Xi(R.type,R.key,R.props,null,U.mode,B),Da(B,R),B.return=U,B;case C:return R=so(R,U.mode,B),R.return=U,R;case se:return R=Xl(R),Q(U,R,B)}if(K(R)||te(R))return R=Jl(R,U.mode,B,null),R.return=U,R;if(typeof R.then=="function")return Q(U,nu(R),B);if(R.$$typeof===D)return Q(U,Pi(U,R),B);lu(U,R)}return null}function q(U,R,B,G){var pe=R!==null?R.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return pe!==null?null:w(U,R,""+B,G);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===pe?A(U,R,B,G):null;case C:return B.key===pe?Z(U,R,B,G):null;case se:return B=Xl(B),q(U,R,B,G)}if(K(B)||te(B))return pe!==null?null:I(U,R,B,G,null);if(typeof B.then=="function")return q(U,R,nu(B),G);if(B.$$typeof===D)return q(U,R,Pi(U,B),G);lu(U,B)}return null}function $(U,R,B,G,pe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return U=U.get(B)||null,w(R,U,""+G,pe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return U=U.get(G.key===null?B:G.key)||null,A(R,U,G,pe);case C:return U=U.get(G.key===null?B:G.key)||null,Z(R,U,G,pe);case se:return G=Xl(G),$(U,R,B,G,pe)}if(K(G)||te(G))return U=U.get(B)||null,I(R,U,G,pe,null);if(typeof G.then=="function")return $(U,R,B,nu(G),pe);if(G.$$typeof===D)return $(U,R,B,Pi(R,G),pe);lu(R,G)}return null}function fe(U,R,B,G){for(var pe=null,Ue=null,he=R,Ce=R=0,Re=null;he!==null&&Ce<B.length;Ce++){he.index>Ce?(Re=he,he=null):Re=he.sibling;var He=q(U,he,B[Ce],G);if(He===null){he===null&&(he=Re);break}e&&he&&He.alternate===null&&n(U,he),R=h(He,R,Ce),Ue===null?pe=He:Ue.sibling=He,Ue=He,he=Re}if(Ce===B.length)return a(U,he),De&&Bn(U,Ce),pe;if(he===null){for(;Ce<B.length;Ce++)he=Q(U,B[Ce],G),he!==null&&(R=h(he,R,Ce),Ue===null?pe=he:Ue.sibling=he,Ue=he);return De&&Bn(U,Ce),pe}for(he=u(he);Ce<B.length;Ce++)Re=$(he,U,Ce,B[Ce],G),Re!==null&&(e&&Re.alternate!==null&&he.delete(Re.key===null?Ce:Re.key),R=h(Re,R,Ce),Ue===null?pe=Re:Ue.sibling=Re,Ue=Re);return e&&he.forEach(function(Tl){return n(U,Tl)}),De&&Bn(U,Ce),pe}function ye(U,R,B,G){if(B==null)throw Error(i(151));for(var pe=null,Ue=null,he=R,Ce=R=0,Re=null,He=B.next();he!==null&&!He.done;Ce++,He=B.next()){he.index>Ce?(Re=he,he=null):Re=he.sibling;var Tl=q(U,he,He.value,G);if(Tl===null){he===null&&(he=Re);break}e&&he&&Tl.alternate===null&&n(U,he),R=h(Tl,R,Ce),Ue===null?pe=Tl:Ue.sibling=Tl,Ue=Tl,he=Re}if(He.done)return a(U,he),De&&Bn(U,Ce),pe;if(he===null){for(;!He.done;Ce++,He=B.next())He=Q(U,He.value,G),He!==null&&(R=h(He,R,Ce),Ue===null?pe=He:Ue.sibling=He,Ue=He);return De&&Bn(U,Ce),pe}for(he=u(he);!He.done;Ce++,He=B.next())He=$(he,U,Ce,He.value,G),He!==null&&(e&&He.alternate!==null&&he.delete(He.key===null?Ce:He.key),R=h(He,R,Ce),Ue===null?pe=He:Ue.sibling=He,Ue=He);return e&&he.forEach(function(D5){return n(U,D5)}),De&&Bn(U,Ce),pe}function Ie(U,R,B,G){if(typeof B=="object"&&B!==null&&B.type===z&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var pe=B.key;R!==null;){if(R.key===pe){if(pe=B.type,pe===z){if(R.tag===7){a(U,R.sibling),G=f(R,B.props.children),G.return=U,U=G;break e}}else if(R.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===se&&Xl(pe)===R.type){a(U,R.sibling),G=f(R,B.props),Da(G,B),G.return=U,U=G;break e}a(U,R);break}else n(U,R);R=R.sibling}B.type===z?(G=Jl(B.props.children,U.mode,G,B.key),G.return=U,U=G):(G=Xi(B.type,B.key,B.props,null,U.mode,G),Da(G,B),G.return=U,U=G)}return b(U);case C:e:{for(pe=B.key;R!==null;){if(R.key===pe)if(R.tag===4&&R.stateNode.containerInfo===B.containerInfo&&R.stateNode.implementation===B.implementation){a(U,R.sibling),G=f(R,B.children||[]),G.return=U,U=G;break e}else{a(U,R);break}else n(U,R);R=R.sibling}G=so(B,U.mode,G),G.return=U,U=G}return b(U);case se:return B=Xl(B),Ie(U,R,B,G)}if(K(B))return fe(U,R,B,G);if(te(B)){if(pe=te(B),typeof pe!="function")throw Error(i(150));return B=pe.call(B),ye(U,R,B,G)}if(typeof B.then=="function")return Ie(U,R,nu(B),G);if(B.$$typeof===D)return Ie(U,R,Pi(U,B),G);lu(U,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,R!==null&&R.tag===6?(a(U,R.sibling),G=f(R,B),G.return=U,U=G):(a(U,R),G=uo(B,U.mode,G),G.return=U,U=G),b(U)):a(U,R)}return function(U,R,B,G){try{Ra=0;var pe=Ie(U,R,B,G);return _r=null,pe}catch(he){if(he===Tr||he===eu)throw he;var Ue=Yt(29,he,null,U.mode);return Ue.lanes=G,Ue.return=U,Ue}finally{}}}var Kl=Od(!0),Ld=Od(!1),ml=!1;function So(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wo(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function pl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,n,a){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Be&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Gi(e),bd(e,null,a),n}return Yi(e,u,n,a),Gi(e)}function Oa(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,a|=u,n.lanes=a,Nf(e,a)}}function ko(e,n){var a=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var f=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,a=a.next}while(a!==null);h===null?f=h=n:h=h.next=n}else f=h=n;a={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Co=!1;function La(){if(Co){var e=zr;if(e!==null)throw e}}function Ua(e,n,a,u){Co=!1;var f=e.updateQueue;ml=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var A=w,Z=A.next;A.next=null,b===null?h=Z:b.next=Z,b=A;var I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==b&&(w===null?I.firstBaseUpdate=Z:w.next=Z,I.lastBaseUpdate=A))}if(h!==null){var Q=f.baseState;b=0,I=Z=A=null,w=h;do{var q=w.lane&-536870913,$=q!==w.lane;if($?(_e&q)===q:(u&q)===q){q!==0&&q===Ar&&(Co=!0),I!==null&&(I=I.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=e,ye=w;q=n;var Ie=a;switch(ye.tag){case 1:if(fe=ye.payload,typeof fe=="function"){Q=fe.call(Ie,Q,q);break e}Q=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ye.payload,q=typeof fe=="function"?fe.call(Ie,Q,q):fe,q==null)break e;Q=y({},Q,q);break e;case 2:ml=!0}}q=w.callback,q!==null&&(e.flags|=64,$&&(e.flags|=8192),$=f.callbacks,$===null?f.callbacks=[q]:$.push(q))}else $={lane:q,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(Z=I=$,A=Q):I=I.next=$,b|=q;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;$=w,w=$.next,$.next=null,f.lastBaseUpdate=$,f.shared.pending=null}}while(!0);I===null&&(A=Q),f.baseState=A,f.firstBaseUpdate=Z,f.lastBaseUpdate=I,h===null&&(f.shared.lanes=0),Sl|=b,e.lanes=b,e.memoizedState=Q}}function Ud(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function Hd(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ud(a[e],n)}var Rr=_(null),ru=_(0);function Bd(e,n){e=Qn,k(ru,e),k(Rr,n),Qn=e|n.baseLanes}function Eo(){k(ru,Qn),k(Rr,Rr.current)}function Mo(){Qn=ru.current,J(Rr),J(ru)}var Gt=_(null),fn=null;function yl(e){var n=e.alternate;k(it,it.current&1),k(Gt,e),fn===null&&(n===null||Rr.current!==null||n.memoizedState!==null)&&(fn=e)}function No(e){k(it,it.current),k(Gt,e),fn===null&&(fn=e)}function Zd(e){e.tag===22?(k(it,it.current),k(Gt,e),fn===null&&(fn=e)):xl()}function xl(){k(it,it.current),k(Gt,Gt.current)}function Xt(e){J(Gt),fn===e&&(fn=null),J(it)}var it=_(0);function au(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rc(a)||Dc(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var $n=0,ke=null,Ve=null,ct=null,iu=!1,Dr=!1,Pl=!1,uu=0,Ha=0,Or=null,Cg=0;function nt(){throw Error(i(321))}function jo(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Ft(e[a],n[a]))return!1;return!0}function Ao(e,n,a,u,f,h){return $n=h,ke=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?k2:Jo,Pl=!1,h=a(u,f),Pl=!1,Dr&&(h=$d(n,a,u,f)),qd(e),h}function qd(e){H.H=qa;var n=Ve!==null&&Ve.next!==null;if($n=0,ct=Ve=ke=null,iu=!1,Ha=0,Or=null,n)throw Error(i(300));e===null||ft||(e=e.dependencies,e!==null&&Ki(e)&&(ft=!0))}function $d(e,n,a,u){ke=e;var f=0;do{if(Dr&&(Or=null),Ha=0,Dr=!1,25<=f)throw Error(i(301));if(f+=1,ct=Ve=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}H.H=C2,h=n(a,u)}while(Dr);return h}function Eg(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Ba(n):n,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(ke.flags|=1024),n}function zo(){var e=uu!==0;return uu=0,e}function To(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function _o(e){if(iu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}iu=!1}$n=0,ct=Ve=ke=null,Dr=!1,Ha=uu=0,Or=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?ke.memoizedState=ct=e:ct=ct.next=e,ct}function ut(){if(Ve===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var n=ct===null?ke.memoizedState:ct.next;if(n!==null)ct=n,Ve=e;else{if(e===null)throw ke.alternate===null?Error(i(467)):Error(i(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},ct===null?ke.memoizedState=ct=e:ct=ct.next=e}return ct}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ba(e){var n=Ha;return Ha+=1,Or===null&&(Or=[]),e=_d(Or,e,n),n=ke,(ct===null?n.memoizedState:ct.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?k2:Jo),e}function ou(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ba(e);if(e.$$typeof===D)return kt(e)}throw Error(i(438,String(e)))}function Ro(e){var n=null,a=ke.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var u=ke.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=su(),ke.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),u=0;u<e;u++)a[u]=L;return n.index++,a}function Vn(e,n){return typeof n=="function"?n(e):n}function cu(e){var n=ut();return Do(n,Ve,e)}function Do(e,n,a){var u=e.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=a;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var w=b=null,A=null,Z=n,I=!1;do{var Q=Z.lane&-536870913;if(Q!==Z.lane?(_e&Q)===Q:($n&Q)===Q){var q=Z.revertLane;if(q===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),Q===Ar&&(I=!0);else if(($n&q)===q){Z=Z.next,q===Ar&&(I=!0);continue}else Q={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},A===null?(w=A=Q,b=h):A=A.next=Q,ke.lanes|=q,Sl|=q;Q=Z.action,Pl&&a(h,Q),h=Z.hasEagerState?Z.eagerState:a(h,Q)}else q={lane:Q,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},A===null?(w=A=q,b=h):A=A.next=q,ke.lanes|=Q,Sl|=Q;Z=Z.next}while(Z!==null&&Z!==n);if(A===null?b=h:A.next=w,!Ft(h,e.memoizedState)&&(ft=!0,I&&(a=zr,a!==null)))throw a;e.memoizedState=h,e.baseState=b,e.baseQueue=A,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Oo(e){var n=ut(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var u=a.dispatch,f=a.pending,h=n.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Ft(h,n.memoizedState)||(ft=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),a.lastRenderedState=h}return[h,u]}function Vd(e,n,a){var u=ke,f=ut(),h=De;if(h){if(a===void 0)throw Error(i(407));a=a()}else a=n();var b=!Ft((Ve||f).memoizedState,a);if(b&&(f.memoizedState=a,ft=!0),f=f.queue,Ho(Fd.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||ct!==null&&ct.memoizedState.tag&1){if(u.flags|=2048,Lr(9,{destroy:void 0},Id.bind(null,u,f,a,n),null),Ge===null)throw Error(i(349));h||($n&127)!==0||Jd(u,n,a)}return a}function Jd(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=ke.updateQueue,n===null?(n=su(),ke.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function Id(e,n,a,u){n.value=a,n.getSnapshot=u,Yd(n)&&Gd(e)}function Fd(e,n,a){return a(function(){Yd(n)&&Gd(e)})}function Yd(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Ft(e,a)}catch{return!0}}function Gd(e){var n=Vl(e,2);n!==null&&qt(n,e,2)}function Lo(e){var n=_t();if(typeof e=="function"){var a=e;if(e=a(),Pl){Dt(!0);try{a()}finally{Dt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:e},n}function Xd(e,n,a,u){return e.baseState=a,Do(e,Ve,typeof u=="function"?u:Vn)}function Mg(e,n,a,u,f){if(hu(e))throw Error(i(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};H.T!==null?a(!0):h.isTransition=!1,u(h),a=n.pending,a===null?(h.next=n.pending=h,Qd(n,h)):(h.next=a.next,n.pending=a.next=h)}}function Qd(e,n){var a=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=H.T,b={};H.T=b;try{var w=a(f,u),A=H.S;A!==null&&A(b,w),Kd(e,n,w)}catch(Z){Uo(e,n,Z)}finally{h!==null&&b.types!==null&&(h.types=b.types),H.T=h}}else try{h=a(f,u),Kd(e,n,h)}catch(Z){Uo(e,n,Z)}}function Kd(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(u){Pd(e,n,u)},function(u){return Uo(e,n,u)}):Pd(e,n,a)}function Pd(e,n,a){n.status="fulfilled",n.value=a,Wd(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Qd(e,a)))}function Uo(e,n,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=a,Wd(n),n=n.next;while(n!==u)}e.action=null}function Wd(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function e2(e,n){return n}function t2(e,n){if(De){var a=Ge.formState;if(a!==null){e:{var u=ke;if(De){if(Pe){t:{for(var f=Pe,h=cn;f.nodeType!==8;){if(!h){f=null;break t}if(f=dn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Pe=dn(f.nextSibling),u=f.data==="F!";break e}}dl(u)}u=!1}u&&(n=a[0])}}return a=_t(),a.memoizedState=a.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e2,lastRenderedState:n},a.queue=u,a=v2.bind(null,ke,u),u.dispatch=a,u=Lo(!1),h=Vo.bind(null,ke,!1,u.queue),u=_t(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,a=Mg.bind(null,ke,f,h,a),f.dispatch=a,u.memoizedState=e,[n,a,!1]}function n2(e){var n=ut();return l2(n,Ve,e)}function l2(e,n,a){if(n=Do(e,n,e2)[0],e=cu(Vn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Ba(n)}catch(b){throw b===Tr?eu:b}else u=n;n=ut();var f=n.queue,h=f.dispatch;return a!==n.memoizedState&&(ke.flags|=2048,Lr(9,{destroy:void 0},Ng.bind(null,f,a),null)),[u,h,e]}function Ng(e,n){e.action=n}function r2(e){var n=ut(),a=Ve;if(a!==null)return l2(n,a,e);ut(),n=n.memoizedState,a=ut();var u=a.queue.dispatch;return a.memoizedState=e,[n,u,!1]}function Lr(e,n,a,u){return e={tag:e,create:a,deps:u,inst:n,next:null},n=ke.updateQueue,n===null&&(n=su(),ke.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,n.lastEffect=e),e}function a2(){return ut().memoizedState}function fu(e,n,a,u){var f=_t();ke.flags|=e,f.memoizedState=Lr(1|n,{destroy:void 0},a,u===void 0?null:u)}function du(e,n,a,u){var f=ut();u=u===void 0?null:u;var h=f.memoizedState.inst;Ve!==null&&u!==null&&jo(u,Ve.memoizedState.deps)?f.memoizedState=Lr(n,h,a,u):(ke.flags|=e,f.memoizedState=Lr(1|n,h,a,u))}function i2(e,n){fu(8390656,8,e,n)}function Ho(e,n){du(2048,8,e,n)}function jg(e){ke.flags|=4;var n=ke.updateQueue;if(n===null)n=su(),ke.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function u2(e){var n=ut().memoizedState;return jg({ref:n,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function s2(e,n){return du(4,2,e,n)}function o2(e,n){return du(4,4,e,n)}function c2(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function f2(e,n,a){a=a!=null?a.concat([e]):null,du(4,4,c2.bind(null,n,e),a)}function Bo(){}function d2(e,n){var a=ut();n=n===void 0?null:n;var u=a.memoizedState;return n!==null&&jo(n,u[1])?u[0]:(a.memoizedState=[e,n],e)}function h2(e,n){var a=ut();n=n===void 0?null:n;var u=a.memoizedState;if(n!==null&&jo(n,u[1]))return u[0];if(u=e(),Pl){Dt(!0);try{e()}finally{Dt(!1)}}return a.memoizedState=[u,n],u}function Zo(e,n,a){return a===void 0||($n&1073741824)!==0&&(_e&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=mh(),ke.lanes|=e,Sl|=e,a)}function m2(e,n,a,u){return Ft(a,n)?a:Rr.current!==null?(e=Zo(e,a,u),Ft(e,n)||(ft=!0),e):($n&42)===0||($n&1073741824)!==0&&(_e&261930)===0?(ft=!0,e.memoizedState=a):(e=mh(),ke.lanes|=e,Sl|=e,n)}function p2(e,n,a,u,f){var h=P.p;P.p=h!==0&&8>h?h:8;var b=H.T,w={};H.T=w,Vo(e,!1,n,a);try{var A=f(),Z=H.S;if(Z!==null&&Z(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var I=kg(A,u);Za(e,n,I,Pt(e))}else Za(e,n,u,Pt(e))}catch(Q){Za(e,n,{then:function(){},status:"rejected",reason:Q},Pt())}finally{P.p=h,b!==null&&w.types!==null&&(b.types=w.types),H.T=b}}function Ag(){}function qo(e,n,a,u){if(e.tag!==5)throw Error(i(476));var f=g2(e).queue;p2(e,f,n,oe,a===null?Ag:function(){return y2(e),a(u)})}function g2(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:oe},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function y2(e){var n=g2(e);n.next===null&&(n=e.alternate.memoizedState),Za(e,n.next.queue,{},Pt())}function $o(){return kt(li)}function x2(){return ut().memoizedState}function b2(){return ut().memoizedState}function zg(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Pt();e=pl(a);var u=gl(n,e,a);u!==null&&(qt(u,n,a),Oa(u,n,a)),n={cache:yo()},e.payload=n;return}n=n.return}}function Tg(e,n,a){var u=Pt();a={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hu(e)?S2(n,a):(a=ao(e,n,a,u),a!==null&&(qt(a,e,u),w2(a,n,u)))}function v2(e,n,a){var u=Pt();Za(e,n,a,u)}function Za(e,n,a,u){var f={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(hu(e))S2(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,w=h(b,a);if(f.hasEagerState=!0,f.eagerState=w,Ft(w,b))return Yi(e,n,f,0),Ge===null&&Fi(),!1}catch{}finally{}if(a=ao(e,n,f,u),a!==null)return qt(a,e,u),w2(a,n,u),!0}return!1}function Vo(e,n,a,u){if(u={lane:2,revertLane:Sc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},hu(e)){if(n)throw Error(i(479))}else n=ao(e,a,u,2),n!==null&&qt(n,e,2)}function hu(e){var n=e.alternate;return e===ke||n!==null&&n===ke}function S2(e,n){Dr=iu=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function w2(e,n,a){if((a&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,a|=u,n.lanes=a,Nf(e,a)}}var qa={readContext:kt,use:ou,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};qa.useEffectEvent=nt;var k2={readContext:kt,use:ou,useCallback:function(e,n){return _t().memoizedState=[e,n===void 0?null:n],e},useContext:kt,useEffect:i2,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,fu(4194308,4,c2.bind(null,n,e),a)},useLayoutEffect:function(e,n){return fu(4194308,4,e,n)},useInsertionEffect:function(e,n){fu(4,2,e,n)},useMemo:function(e,n){var a=_t();n=n===void 0?null:n;var u=e();if(Pl){Dt(!0);try{e()}finally{Dt(!1)}}return a.memoizedState=[u,n],u},useReducer:function(e,n,a){var u=_t();if(a!==void 0){var f=a(n);if(Pl){Dt(!0);try{a(n)}finally{Dt(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=Tg.bind(null,ke,e),[u.memoizedState,e]},useRef:function(e){var n=_t();return e={current:e},n.memoizedState=e},useState:function(e){e=Lo(e);var n=e.queue,a=v2.bind(null,ke,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Bo,useDeferredValue:function(e,n){var a=_t();return Zo(a,e,n)},useTransition:function(){var e=Lo(!1);return e=p2.bind(null,ke,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var u=ke,f=_t();if(De){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),Ge===null)throw Error(i(349));(_e&127)!==0||Jd(u,n,a)}f.memoizedState=a;var h={value:a,getSnapshot:n};return f.queue=h,i2(Fd.bind(null,u,h,e),[e]),u.flags|=2048,Lr(9,{destroy:void 0},Id.bind(null,u,h,a,n),null),a},useId:function(){var e=_t(),n=Ge.identifierPrefix;if(De){var a=Mn,u=En;a=(u&~(1<<32-Ye(u)-1)).toString(32)+a,n="_"+n+"R_"+a,a=uu++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=Cg++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:$o,useFormState:t2,useActionState:t2,useOptimistic:function(e){var n=_t();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Vo.bind(null,ke,!0,a),a.dispatch=n,[e,n]},useMemoCache:Ro,useCacheRefresh:function(){return _t().memoizedState=zg.bind(null,ke)},useEffectEvent:function(e){var n=_t(),a={impl:e};return n.memoizedState=a,function(){if((Be&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Jo={readContext:kt,use:ou,useCallback:d2,useContext:kt,useEffect:Ho,useImperativeHandle:f2,useInsertionEffect:s2,useLayoutEffect:o2,useMemo:h2,useReducer:cu,useRef:a2,useState:function(){return cu(Vn)},useDebugValue:Bo,useDeferredValue:function(e,n){var a=ut();return m2(a,Ve.memoizedState,e,n)},useTransition:function(){var e=cu(Vn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ba(e),n]},useSyncExternalStore:Vd,useId:x2,useHostTransitionStatus:$o,useFormState:n2,useActionState:n2,useOptimistic:function(e,n){var a=ut();return Xd(a,Ve,e,n)},useMemoCache:Ro,useCacheRefresh:b2};Jo.useEffectEvent=u2;var C2={readContext:kt,use:ou,useCallback:d2,useContext:kt,useEffect:Ho,useImperativeHandle:f2,useInsertionEffect:s2,useLayoutEffect:o2,useMemo:h2,useReducer:Oo,useRef:a2,useState:function(){return Oo(Vn)},useDebugValue:Bo,useDeferredValue:function(e,n){var a=ut();return Ve===null?Zo(a,e,n):m2(a,Ve.memoizedState,e,n)},useTransition:function(){var e=Oo(Vn)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:Ba(e),n]},useSyncExternalStore:Vd,useId:x2,useHostTransitionStatus:$o,useFormState:r2,useActionState:r2,useOptimistic:function(e,n){var a=ut();return Ve!==null?Xd(a,Ve,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ro,useCacheRefresh:b2};C2.useEffectEvent=u2;function Io(e,n,a,u){n=e.memoizedState,a=a(u,n),a=a==null?n:y({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fo={enqueueSetState:function(e,n,a){e=e._reactInternals;var u=Pt(),f=pl(u);f.payload=n,a!=null&&(f.callback=a),n=gl(e,f,u),n!==null&&(qt(n,e,u),Oa(n,e,u))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var u=Pt(),f=pl(u);f.tag=1,f.payload=n,a!=null&&(f.callback=a),n=gl(e,f,u),n!==null&&(qt(n,e,u),Oa(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Pt(),u=pl(a);u.tag=2,n!=null&&(u.callback=n),n=gl(e,u,a),n!==null&&(qt(n,e,a),Oa(n,e,a))}};function E2(e,n,a,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!Na(a,u)||!Na(f,h):!0}function M2(e,n,a,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,u),n.state!==e&&Fo.enqueueReplaceState(n,n.state,null)}function Wl(e,n){var a=n;if("ref"in n){a={};for(var u in n)u!=="ref"&&(a[u]=n[u])}if(e=e.defaultProps){a===n&&(a=y({},a));for(var f in e)a[f]===void 0&&(a[f]=e[f])}return a}function N2(e){Ii(e)}function j2(e){console.error(e)}function A2(e){Ii(e)}function mu(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function z2(e,n,a){try{var u=e.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Yo(e,n,a){return a=pl(a),a.tag=3,a.payload={element:null},a.callback=function(){mu(e,n)},a}function T2(e){return e=pl(e),e.tag=3,e}function _2(e,n,a,u){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){z2(n,a,u)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){z2(n,a,u),typeof f!="function"&&(wl===null?wl=new Set([this]):wl.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function _g(e,n,a,u,f){if(a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=a.alternate,n!==null&&jr(n,a,f,!0),a=Gt.current,a!==null){switch(a.tag){case 31:case 13:return fn===null?Mu():a.alternate===null&<===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=f,u===tu?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([u]):n.add(u),xc(e,u,f)),!1;case 22:return a.flags|=65536,u===tu?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([u]):a.add(u)),xc(e,u,f)),!1}throw Error(i(435,a.tag))}return xc(e,u,f),Mu(),!1}if(De)return n=Gt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==fo&&(e=Error(i(422),{cause:u}),za(un(e,a)))):(u!==fo&&(n=Error(i(423),{cause:u}),za(un(n,a))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=un(u,a),f=Yo(e.stateNode,u,f),ko(e,f),lt!==4&&(lt=2)),!1;var h=Error(i(520),{cause:u});if(h=un(h,a),Xa===null?Xa=[h]:Xa.push(h),lt!==4&&(lt=2),n===null)return!0;u=un(u,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=f&-f,a.lanes|=e,e=Yo(a.stateNode,u,e),ko(a,e),!1;case 1:if(n=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(wl===null||!wl.has(h))))return a.flags|=65536,f&=-f,a.lanes|=f,f=T2(f),_2(f,e,a,u),ko(a,f),!1}a=a.return}while(a!==null);return!1}var Go=Error(i(461)),ft=!1;function Ct(e,n,a,u){n.child=e===null?Ld(n,null,a,u):Kl(n,e.child,a,u)}function R2(e,n,a,u,f){a=a.render;var h=n.ref;if("ref"in u){var b={};for(var w in u)w!=="ref"&&(b[w]=u[w])}else b=u;return Yl(n),u=Ao(e,n,a,b,h,f),w=zo(),e!==null&&!ft?(To(e,n,f),Jn(e,n,f)):(De&&w&&oo(n),n.flags|=1,Ct(e,n,u,f),n.child)}function D2(e,n,a,u,f){if(e===null){var h=a.type;return typeof h=="function"&&!io(h)&&h.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=h,O2(e,n,h,u,f)):(e=Xi(a.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!nc(e,f)){var b=h.memoizedProps;if(a=a.compare,a=a!==null?a:Na,a(b,u)&&e.ref===n.ref)return Jn(e,n,f)}return n.flags|=1,e=Hn(h,u),e.ref=n.ref,e.return=n,n.child=e}function O2(e,n,a,u,f){if(e!==null){var h=e.memoizedProps;if(Na(h,u)&&e.ref===n.ref)if(ft=!1,n.pendingProps=u=h,nc(e,f))(e.flags&131072)!==0&&(ft=!0);else return n.lanes=e.lanes,Jn(e,n,f)}return Xo(e,n,a,u,f)}function L2(e,n,a,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return U2(e,n,h,a,u)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wi(n,h!==null?h.cachePool:null),h!==null?Bd(n,h):Eo(),Zd(n);else return u=n.lanes=536870912,U2(e,n,h!==null?h.baseLanes|a:a,a,u)}else h!==null?(Wi(n,h.cachePool),Bd(n,h),xl(),n.memoizedState=null):(e!==null&&Wi(n,null),Eo(),xl());return Ct(e,n,f,a),n.child}function $a(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function U2(e,n,a,u,f){var h=bo();return h=h===null?null:{parent:ot._currentValue,pool:h},n.memoizedState={baseLanes:a,cachePool:h},e!==null&&Wi(n,null),Eo(),Zd(n),e!==null&&jr(e,n,u,!0),n.childLanes=f,null}function pu(e,n){return n=yu({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function H2(e,n,a){return Kl(n,e.child,null,a),e=pu(n,n.pendingProps),e.flags|=2,Xt(n),n.memoizedState=null,e}function Rg(e,n,a){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(De){if(u.mode==="hidden")return e=pu(n,u),n.lanes=536870912,$a(null,e);if(No(n),(e=Pe)?(e=Qh(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:cl!==null?{id:En,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},a=Sd(e),a.return=n,n.child=a,wt=n,Pe=null)):e=null,e===null)throw dl(n);return n.lanes=536870912,null}return pu(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(No(n),f)if(n.flags&256)n.flags&=-257,n=H2(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(ft||jr(e,n,a,!1),f=(a&e.childLanes)!==0,ft||f){if(u=Ge,u!==null&&(b=jf(u,a),b!==0&&b!==h.retryLane))throw h.retryLane=b,Vl(e,b),qt(u,e,b),Go;Mu(),n=H2(e,n,a)}else e=h.treeContext,Pe=dn(b.nextSibling),wt=n,De=!0,fl=null,cn=!1,e!==null&&Cd(n,e),n=pu(n,u),n.flags|=4096;return n}return e=Hn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function gu(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Xo(e,n,a,u,f){return Yl(n),a=Ao(e,n,a,u,void 0,f),u=zo(),e!==null&&!ft?(To(e,n,f),Jn(e,n,f)):(De&&u&&oo(n),n.flags|=1,Ct(e,n,a,f),n.child)}function B2(e,n,a,u,f,h){return Yl(n),n.updateQueue=null,a=$d(n,u,a,f),qd(e),u=zo(),e!==null&&!ft?(To(e,n,h),Jn(e,n,h)):(De&&u&&oo(n),n.flags|=1,Ct(e,n,a,h),n.child)}function Z2(e,n,a,u,f){if(Yl(n),n.stateNode===null){var h=Cr,b=a.contextType;typeof b=="object"&&b!==null&&(h=kt(b)),h=new a(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Fo,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},So(n),b=a.contextType,h.context=typeof b=="object"&&b!==null?kt(b):Cr,h.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Io(n,a,b,u),h.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Fo.enqueueReplaceState(h,h.state,null),Ua(n,u,h,f),La(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var w=n.memoizedProps,A=Wl(a,w);h.props=A;var Z=h.context,I=a.contextType;b=Cr,typeof I=="object"&&I!==null&&(b=kt(I));var Q=a.getDerivedStateFromProps;I=typeof Q=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,I||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||Z!==b)&&M2(n,h,u,b),ml=!1;var q=n.memoizedState;h.state=q,Ua(n,u,h,f),La(),Z=n.memoizedState,w||q!==Z||ml?(typeof Q=="function"&&(Io(n,a,Q,u),Z=n.memoizedState),(A=ml||E2(n,a,A,u,q,Z,b))?(I||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=Z),h.props=u,h.state=Z,h.context=b,u=A):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,wo(e,n),b=n.memoizedProps,I=Wl(a,b),h.props=I,Q=n.pendingProps,q=h.context,Z=a.contextType,A=Cr,typeof Z=="object"&&Z!==null&&(A=kt(Z)),w=a.getDerivedStateFromProps,(Z=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==Q||q!==A)&&M2(n,h,u,A),ml=!1,q=n.memoizedState,h.state=q,Ua(n,u,h,f),La();var $=n.memoizedState;b!==Q||q!==$||ml||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof w=="function"&&(Io(n,a,w,u),$=n.memoizedState),(I=ml||E2(n,a,I,u,q,$,A)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(Z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,$,A),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,$,A)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=$),h.props=u,h.state=$,h.context=A,u=I):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&q===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,gu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,a=u&&typeof a.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Kl(n,e.child,null,f),n.child=Kl(n,null,a,f)):Ct(e,n,a,f),n.memoizedState=h.state,e=n.child):e=Jn(e,n,f),e}function q2(e,n,a,u){return Il(),n.flags|=256,Ct(e,n,a,u),n.child}var Qo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ko(e){return{baseLanes:e,cachePool:zd()}}function Po(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Kt),e}function $2(e,n,a){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(De){if(f?yl(n):xl(),(e=Pe)?(e=Qh(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:cl!==null?{id:En,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},a=Sd(e),a.return=n,n.child=a,wt=n,Pe=null)):e=null,e===null)throw dl(n);return Dc(e)?n.lanes=32:n.lanes=536870912,null}var w=u.children;return u=u.fallback,f?(xl(),f=n.mode,w=yu({mode:"hidden",children:w},f),u=Jl(u,f,a,null),w.return=n,u.return=n,w.sibling=u,n.child=w,u=n.child,u.memoizedState=Ko(a),u.childLanes=Po(e,b,a),n.memoizedState=Qo,$a(null,u)):(yl(n),Wo(n,w))}var A=e.memoizedState;if(A!==null&&(w=A.dehydrated,w!==null)){if(h)n.flags&256?(yl(n),n.flags&=-257,n=ec(e,n,a)):n.memoizedState!==null?(xl(),n.child=e.child,n.flags|=128,n=null):(xl(),w=u.fallback,f=n.mode,u=yu({mode:"visible",children:u.children},f),w=Jl(w,f,a,null),w.flags|=2,u.return=n,w.return=n,u.sibling=w,n.child=u,Kl(n,e.child,null,a),u=n.child,u.memoizedState=Ko(a),u.childLanes=Po(e,b,a),n.memoizedState=Qo,n=$a(null,u));else if(yl(n),Dc(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var Z=b.dgst;b=Z,u=Error(i(419)),u.stack="",u.digest=b,za({value:u,source:null,stack:null}),n=ec(e,n,a)}else if(ft||jr(e,n,a,!1),b=(a&e.childLanes)!==0,ft||b){if(b=Ge,b!==null&&(u=jf(b,a),u!==0&&u!==A.retryLane))throw A.retryLane=u,Vl(e,u),qt(b,e,u),Go;Rc(w)||Mu(),n=ec(e,n,a)}else Rc(w)?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,Pe=dn(w.nextSibling),wt=n,De=!0,fl=null,cn=!1,e!==null&&Cd(n,e),n=Wo(n,u.children),n.flags|=4096);return n}return f?(xl(),w=u.fallback,f=n.mode,A=e.child,Z=A.sibling,u=Hn(A,{mode:"hidden",children:u.children}),u.subtreeFlags=A.subtreeFlags&65011712,Z!==null?w=Hn(Z,w):(w=Jl(w,f,a,null),w.flags|=2),w.return=n,u.return=n,u.sibling=w,n.child=u,$a(null,u),u=n.child,w=e.child.memoizedState,w===null?w=Ko(a):(f=w.cachePool,f!==null?(A=ot._currentValue,f=f.parent!==A?{parent:A,pool:A}:f):f=zd(),w={baseLanes:w.baseLanes|a,cachePool:f}),u.memoizedState=w,u.childLanes=Po(e,b,a),n.memoizedState=Qo,$a(e.child,u)):(yl(n),a=e.child,e=a.sibling,a=Hn(a,{mode:"visible",children:u.children}),a.return=n,a.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=a,n.memoizedState=null,a)}function Wo(e,n){return n=yu({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function yu(e,n){return e=Yt(22,e,null,n),e.lanes=0,e}function ec(e,n,a){return Kl(n,e.child,null,a),e=Wo(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function V2(e,n,a){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),po(e.return,n,a)}function tc(e,n,a,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=a,b.tailMode=f,b.treeForkCount=h)}function J2(e,n,a){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=it.current,w=(b&2)!==0;if(w?(b=b&1|2,n.flags|=128):b&=1,k(it,b),Ct(e,n,u,a),u=De?Aa:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&V2(e,a,n);else if(e.tag===19)V2(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(a=n.child,f=null;a!==null;)e=a.alternate,e!==null&&au(e)===null&&(f=a),a=a.sibling;a=f,a===null?(f=n.child,n.child=null):(f=a.sibling,a.sibling=null),tc(n,!1,f,a,h,u);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&au(e)===null){n.child=f;break}e=f.sibling,f.sibling=a,a=f,f=e}tc(n,!0,a,null,h,u);break;case"together":tc(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Jn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Sl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(jr(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Hn(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Hn(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function nc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ki(e)))}function Dg(e,n,a){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),hl(n,ot,e.memoizedState.cache),Il();break;case 27:case 5:Le(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:hl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,No(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(yl(n),n.flags|=128,null):(a&n.child.childLanes)!==0?$2(e,n,a):(yl(n),e=Jn(e,n,a),e!==null?e.sibling:null);yl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(a&n.childLanes)!==0,u||(jr(e,n,a,!1),u=(a&n.childLanes)!==0),f){if(u)return J2(e,n,a);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),k(it,it.current),u)break;return null;case 22:return n.lanes=0,L2(e,n,a,n.pendingProps);case 24:hl(n,ot,e.memoizedState.cache)}return Jn(e,n,a)}function I2(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)ft=!0;else{if(!nc(e,a)&&(n.flags&128)===0)return ft=!1,Dg(e,n,a);ft=(e.flags&131072)!==0}else ft=!1,De&&(n.flags&1048576)!==0&&kd(n,Aa,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Xl(n.elementType),n.type=e,typeof e=="function")io(e)?(u=Wl(e,u),n.tag=1,n=Z2(null,n,e,u,a)):(n.tag=0,n=Xo(null,n,e,u,a));else{if(e!=null){var f=e.$$typeof;if(f===F){n.tag=11,n=R2(null,n,e,u,a);break e}else if(f===V){n.tag=14,n=D2(null,n,e,u,a);break e}}throw n=ue(e)||e,Error(i(306,n,""))}}return n;case 0:return Xo(e,n,n.type,n.pendingProps,a);case 1:return u=n.type,f=Wl(u,n.pendingProps),Z2(e,n,u,f,a);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(i(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,wo(e,n),Ua(n,u,null,a);var b=n.memoizedState;if(u=b.cache,hl(n,ot,u),u!==h.cache&&go(n,[ot],a,!0),La(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=q2(e,n,u,a);break e}else if(u!==f){f=un(Error(i(424)),n),za(f),n=q2(e,n,u,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=dn(e.firstChild),wt=n,De=!0,fl=null,cn=!0,a=Ld(n,null,u,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Il(),u===f){n=Jn(e,n,a);break e}Ct(e,n,u,a)}n=n.child}return n;case 26:return gu(e,n),e===null?(a=n0(n.type,null,n.pendingProps,null))?n.memoizedState=a:De||(a=n.type,e=n.pendingProps,u=Ru(W.current).createElement(a),u[St]=n,u[Ot]=e,Et(u,a,e),bt(u),n.stateNode=u):n.memoizedState=n0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Le(n),e===null&&De&&(u=n.stateNode=Wh(n.type,n.pendingProps,W.current),wt=n,cn=!0,f=Pe,Ml(n.type)?(Oc=f,Pe=dn(u.firstChild)):Pe=f),Ct(e,n,n.pendingProps.children,a),gu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&De&&((f=u=Pe)&&(u=c5(u,n.type,n.pendingProps,cn),u!==null?(n.stateNode=u,wt=n,Pe=dn(u.firstChild),cn=!1,f=!0):f=!1),f||dl(n)),Le(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,zc(f,h)?u=null:b!==null&&zc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=Ao(e,n,Eg,null,null,a),li._currentValue=f),gu(e,n),Ct(e,n,u,a),n.child;case 6:return e===null&&De&&((e=a=Pe)&&(a=f5(a,n.pendingProps,cn),a!==null?(n.stateNode=a,wt=n,Pe=null,e=!0):e=!1),e||dl(n)),null;case 13:return $2(e,n,a);case 4:return ce(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Kl(n,null,u,a):Ct(e,n,u,a),n.child;case 11:return R2(e,n,n.type,n.pendingProps,a);case 7:return Ct(e,n,n.pendingProps,a),n.child;case 8:return Ct(e,n,n.pendingProps.children,a),n.child;case 12:return Ct(e,n,n.pendingProps.children,a),n.child;case 10:return u=n.pendingProps,hl(n,n.type,u.value),Ct(e,n,u.children,a),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Yl(n),f=kt(f),u=u(f),n.flags|=1,Ct(e,n,u,a),n.child;case 14:return D2(e,n,n.type,n.pendingProps,a);case 15:return O2(e,n,n.type,n.pendingProps,a);case 19:return J2(e,n,a);case 31:return Rg(e,n,a);case 22:return L2(e,n,a,n.pendingProps);case 24:return Yl(n),u=kt(ot),e===null?(f=bo(),f===null&&(f=Ge,h=yo(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=a),f=h),n.memoizedState={parent:u,cache:f},So(n),hl(n,ot,f)):((e.lanes&a)!==0&&(wo(e,n),Ua(n,null,null,a),La()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),hl(n,ot,u)):(u=h.cache,hl(n,ot,u),u!==f.cache&&go(n,[ot],a,!0))),Ct(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function In(e){e.flags|=4}function lc(e,n,a,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(xh())e.flags|=8192;else throw Ql=tu,vo}else e.flags&=-16777217}function F2(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!u0(n))if(xh())e.flags|=8192;else throw Ql=tu,vo}function xu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Ef():536870912,e.lanes|=n,Zr|=n)}function Va(e,n){if(!De)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,u=0;if(n)for(var f=e.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)a|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=a,n}function Og(e,n,a){var u=n.pendingProps;switch(co(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return a=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),qn(ot),me(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nr(n)?In(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ho())),We(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(In(n),h!==null?(We(n),F2(n,h)):(We(n),lc(n,f,null,u,a))):h?h!==e.memoizedState?(In(n),We(n),F2(n,h)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&In(n),We(n),lc(n,f,e,u,a)),null;case 27:if(st(n),a=W.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(!u){if(n.stateNode===null)throw Error(i(166));return We(n),null}e=X.current,Nr(n)?Ed(n):(e=Wh(f,u,a),n.stateNode=e,In(n))}return We(n),null;case 5:if(st(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(!u){if(n.stateNode===null)throw Error(i(166));return We(n),null}if(h=X.current,Nr(n))Ed(n);else{var b=Ru(W.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[St]=n,h[Ot]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(Et(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&In(n)}}return We(n),lc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(i(166));if(e=W.current,Nr(n)){if(e=n.stateNode,a=n.memoizedProps,u=null,f=wt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[St]=n,e=!!(e.nodeValue===a||u!==null&&u.suppressHydrationWarning===!0||$h(e.nodeValue,a)),e||dl(n,!0)}else e=Ru(e).createTextNode(u),e[St]=n,n.stateNode=e}return We(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(u=Nr(n),a!==null){if(e===null){if(!u)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[St]=n}else Il(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else a=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(Xt(n),n):(Xt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return We(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Nr(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(i(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[St]=n}else Il(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Xt(n),n):(Xt(n),null)}return Xt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=u!==null,e=e!==null&&e.memoizedState!==null,a&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),xu(n,n.updateQueue),We(n),null);case 4:return me(),e===null&&Ec(n.stateNode.containerInfo),We(n),null;case 10:return qn(n.type),We(n),null;case 19:if(J(it),u=n.memoizedState,u===null)return We(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Va(u,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=au(e),h!==null){for(n.flags|=128,Va(u,!1),e=h.updateQueue,n.updateQueue=e,xu(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)vd(a,e),a=a.sibling;return k(it,it.current&1|2),De&&Bn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&zt()>ku&&(n.flags|=128,f=!0,Va(u,!1),n.lanes=4194304)}else{if(!f)if(e=au(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,xu(n,e),Va(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!De)return We(n),null}else 2*zt()-u.renderingStartTime>ku&&a!==536870912&&(n.flags|=128,f=!0,Va(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=zt(),e.sibling=null,a=it.current,k(it,f?a&1|2:a&1),De&&Bn(n,u.treeForkCount),e):(We(n),null);case 22:case 23:return Xt(n),Mo(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(a&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),a=n.updateQueue,a!==null&&xu(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048),e!==null&&J(Gl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),qn(ot),We(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function Lg(e,n){switch(co(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qn(ot),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return st(n),null;case 31:if(n.memoizedState!==null){if(Xt(n),n.alternate===null)throw Error(i(340));Il()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Xt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Il()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return J(it),null;case 4:return me(),null;case 10:return qn(n.type),null;case 22:case 23:return Xt(n),Mo(),e!==null&&J(Gl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return qn(ot),null;case 25:return null;default:return null}}function Y2(e,n){switch(co(n),n.tag){case 3:qn(ot),me();break;case 26:case 27:case 5:st(n);break;case 4:me();break;case 31:n.memoizedState!==null&&Xt(n);break;case 13:Xt(n);break;case 19:J(it);break;case 10:qn(n.type);break;case 22:case 23:Xt(n),Mo(),e!==null&&J(Gl);break;case 24:qn(ot)}}function Ja(e,n){try{var a=n.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var f=u.next;a=f;do{if((a.tag&e)===e){u=void 0;var h=a.create,b=a.inst;u=h(),b.destroy=u}a=a.next}while(a!==f)}}catch(w){$e(n,n.return,w)}}function bl(e,n,a){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,f=n;var A=a,Z=w;try{Z()}catch(I){$e(f,A,I)}}}u=u.next}while(u!==h)}}catch(I){$e(n,n.return,I)}}function G2(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Hd(n,a)}catch(u){$e(e,e.return,u)}}}function X2(e,n,a){a.props=Wl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(u){$e(e,n,u)}}function Ia(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof a=="function"?e.refCleanup=a(u):a.current=u}}catch(f){$e(e,n,f)}}function Nn(e,n){var a=e.ref,u=e.refCleanup;if(a!==null)if(typeof u=="function")try{u()}catch(f){$e(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(f){$e(e,n,f)}else a.current=null}function Q2(e){var n=e.type,a=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&u.focus();break e;case"img":a.src?u.src=a.src:a.srcSet&&(u.srcset=a.srcSet)}}catch(f){$e(e,e.return,f)}}function rc(e,n,a){try{var u=e.stateNode;r5(u,e.type,a,n),u[Ot]=n}catch(f){$e(e,e.return,f)}}function K2(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ml(e.type)||e.tag===4}function ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K2(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&&Ml(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 ic(e,n,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Ln));else if(u!==4&&(u===27&&Ml(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(ic(e,n,a),e=e.sibling;e!==null;)ic(e,n,a),e=e.sibling}function bu(e,n,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(u!==4&&(u===27&&Ml(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(bu(e,n,a),e=e.sibling;e!==null;)bu(e,n,a),e=e.sibling}function P2(e){var n=e.stateNode,a=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Et(n,u,a),n[St]=e,n[Ot]=a}catch(h){$e(e,e.return,h)}}var Fn=!1,dt=!1,uc=!1,W2=typeof WeakSet=="function"?WeakSet:Set,vt=null;function Ug(e,n){if(e=e.containerInfo,jc=Zu,e=fd(e),Ws(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var b=0,w=-1,A=-1,Z=0,I=0,Q=e,q=null;t:for(;;){for(var $;Q!==a||f!==0&&Q.nodeType!==3||(w=b+f),Q!==h||u!==0&&Q.nodeType!==3||(A=b+u),Q.nodeType===3&&(b+=Q.nodeValue.length),($=Q.firstChild)!==null;)q=Q,Q=$;for(;;){if(Q===e)break t;if(q===a&&++Z===f&&(w=b),q===h&&++I===u&&(A=b),($=Q.nextSibling)!==null)break;Q=q,q=Q.parentNode}Q=$}a=w===-1||A===-1?null:{start:w,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},Zu=!1,vt=n;vt!==null;)if(n=vt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,vt=e;else for(;vt!==null;){switch(n=vt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)f=e[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,a=n,f=h.memoizedProps,h=h.memoizedState,u=a.stateNode;try{var fe=Wl(a.type,f);e=u.getSnapshotBeforeUpdate(fe,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ye){$e(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)_c(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_c(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,vt=e;break}vt=n.return}}function eh(e,n,a){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Gn(e,a),u&4&&Ja(5,a);break;case 1:if(Gn(e,a),u&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(b){$e(a,a.return,b)}else{var f=Wl(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){$e(a,a.return,b)}}u&64&&G2(a),u&512&&Ia(a,a.return);break;case 3:if(Gn(e,a),u&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Hd(e,n)}catch(b){$e(a,a.return,b)}}break;case 27:n===null&&u&4&&P2(a);case 26:case 5:Gn(e,a),n===null&&u&4&&Q2(a),u&512&&Ia(a,a.return);break;case 12:Gn(e,a);break;case 31:Gn(e,a),u&4&&lh(e,a);break;case 13:Gn(e,a),u&4&&rh(e,a),u&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Fg.bind(null,a),d5(e,a))));break;case 22:if(u=a.memoizedState!==null||Fn,!u){n=n!==null&&n.memoizedState!==null||dt,f=Fn;var h=dt;Fn=u,(dt=n)&&!h?Xn(e,a,(a.subtreeFlags&8772)!==0):Gn(e,a),Fn=f,dt=h}break;case 30:break;default:Gn(e,a)}}function th(e){var n=e.alternate;n!==null&&(e.alternate=null,th(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Ls(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Ut=!1;function Yn(e,n,a){for(a=a.child;a!==null;)nh(e,n,a),a=a.sibling}function nh(e,n,a){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Tt,a)}catch{}switch(a.tag){case 26:dt||Nn(a,n),Yn(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:dt||Nn(a,n);var u=et,f=Ut;Ml(a.type)&&(et=a.stateNode,Ut=!1),Yn(e,n,a),ei(a.stateNode),et=u,Ut=f;break;case 5:dt||Nn(a,n);case 6:if(u=et,f=Ut,et=null,Yn(e,n,a),et=u,Ut=f,et!==null)if(Ut)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(h){$e(a,n,h)}else try{et.removeChild(a.stateNode)}catch(h){$e(a,n,h)}break;case 18:et!==null&&(Ut?(e=et,Gh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Gr(e)):Gh(et,a.stateNode));break;case 4:u=et,f=Ut,et=a.stateNode.containerInfo,Ut=!0,Yn(e,n,a),et=u,Ut=f;break;case 0:case 11:case 14:case 15:bl(2,a,n),dt||bl(4,a,n),Yn(e,n,a);break;case 1:dt||(Nn(a,n),u=a.stateNode,typeof u.componentWillUnmount=="function"&&X2(a,n,u)),Yn(e,n,a);break;case 21:Yn(e,n,a);break;case 22:dt=(u=dt)||a.memoizedState!==null,Yn(e,n,a),dt=u;break;default:Yn(e,n,a)}}function lh(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gr(e)}catch(a){$e(n,n.return,a)}}}function rh(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gr(e)}catch(a){$e(n,n.return,a)}}function Hg(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new W2),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new W2),n;default:throw Error(i(435,e.tag))}}function vu(e,n){var a=Hg(e);n.forEach(function(u){if(!a.has(u)){a.add(u);var f=Yg.bind(null,e,u);u.then(f,f)}})}function Ht(e,n){var a=n.deletions;if(a!==null)for(var u=0;u<a.length;u++){var f=a[u],h=e,b=n,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(Ml(w.type)){et=w.stateNode,Ut=!1;break e}break;case 5:et=w.stateNode,Ut=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Ut=!0;break e}w=w.return}if(et===null)throw Error(i(160));nh(h,b,f),et=null,Ut=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)ah(n,e),n=n.sibling}var vn=null;function ah(e,n){var a=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(n,e),Bt(e),u&4&&(bl(3,e,e.return),Ja(3,e),bl(5,e,e.return));break;case 1:Ht(n,e),Bt(e),u&512&&(dt||a===null||Nn(a,a.return)),u&64&&Fn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?u:a.concat(u))));break;case 26:var f=vn;if(Ht(n,e),Bt(e),u&512&&(dt||a===null||Nn(a,a.return)),u&4){var h=a!==null?a.memoizedState:null;if(u=e.memoizedState,a===null)if(u===null)if(e.stateNode===null){e:{u=e.type,a=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[xa]||h[St]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),Et(h,u,a),h[St]=e,bt(h),u=h;break e;case"link":var b=a0("link","href",f).get(u+(a.href||""));if(b){for(var w=0;w<b.length;w++)if(h=b[w],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(w,1);break t}}h=f.createElement(u),Et(h,u,a),f.head.appendChild(h);break;case"meta":if(b=a0("meta","content",f).get(u+(a.content||""))){for(w=0;w<b.length;w++)if(h=b[w],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(w,1);break t}}h=f.createElement(u),Et(h,u,a),f.head.appendChild(h);break;default:throw Error(i(468,u))}h[St]=e,bt(h),u=h}e.stateNode=u}else i0(f,e.type,e.stateNode);else e.stateNode=r0(f,u,e.memoizedProps);else h!==u?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,u===null?i0(f,e.type,e.stateNode):r0(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&rc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Ht(n,e),Bt(e),u&512&&(dt||a===null||Nn(a,a.return)),a!==null&&u&4&&rc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Ht(n,e),Bt(e),u&512&&(dt||a===null||Nn(a,a.return)),e.flags&32){f=e.stateNode;try{yr(f,"")}catch(fe){$e(e,e.return,fe)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,rc(e,f,a!==null?a.memoizedProps:f)),u&1024&&(uc=!0);break;case 6:if(Ht(n,e),Bt(e),u&4){if(e.stateNode===null)throw Error(i(162));u=e.memoizedProps,a=e.stateNode;try{a.nodeValue=u}catch(fe){$e(e,e.return,fe)}}break;case 3:if(Lu=null,f=vn,vn=Du(n.containerInfo),Ht(n,e),vn=f,Bt(e),u&4&&a!==null&&a.memoizedState.isDehydrated)try{Gr(n.containerInfo)}catch(fe){$e(e,e.return,fe)}uc&&(uc=!1,ih(e));break;case 4:u=vn,vn=Du(e.stateNode.containerInfo),Ht(n,e),Bt(e),vn=u;break;case 12:Ht(n,e),Bt(e);break;case 31:Ht(n,e),Bt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,vu(e,u)));break;case 13:Ht(n,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(wu=zt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,vu(e,u)));break;case 22:f=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,Z=Fn,I=dt;if(Fn=Z||f,dt=I||A,Ht(n,e),dt=I,Fn=Z,Bt(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(a===null||A||Fn||dt||er(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){A=a=n;try{if(h=A.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=A.stateNode;var Q=A.memoizedProps.style,q=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;w.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(fe){$e(A,A.return,fe)}}}else if(n.tag===6){if(a===null){A=n;try{A.stateNode.nodeValue=f?"":A.memoizedProps}catch(fe){$e(A,A.return,fe)}}}else if(n.tag===18){if(a===null){A=n;try{var $=A.stateNode;f?Xh($,!0):Xh(A.stateNode,!1)}catch(fe){$e(A,A.return,fe)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(a=u.retryQueue,a!==null&&(u.retryQueue=null,vu(e,a))));break;case 19:Ht(n,e),Bt(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,vu(e,u)));break;case 30:break;case 21:break;default:Ht(n,e),Bt(e)}}function Bt(e){var n=e.flags;if(n&2){try{for(var a,u=e.return;u!==null;){if(K2(u)){a=u;break}u=u.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var f=a.stateNode,h=ac(e);bu(e,h,f);break;case 5:var b=a.stateNode;a.flags&32&&(yr(b,""),a.flags&=-33);var w=ac(e);bu(e,w,b);break;case 3:case 4:var A=a.stateNode.containerInfo,Z=ac(e);ic(e,Z,A);break;default:throw Error(i(161))}}catch(I){$e(e,e.return,I)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ih(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ih(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Gn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)eh(e,n.alternate,n),n=n.sibling}function er(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:bl(4,n,n.return),er(n);break;case 1:Nn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&X2(n,n.return,a),er(n);break;case 27:ei(n.stateNode);case 26:case 5:Nn(n,n.return),er(n);break;case 22:n.memoizedState===null&&er(n);break;case 30:er(n);break;default:er(n)}e=e.sibling}}function Xn(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Xn(f,h,a),Ja(4,h);break;case 1:if(Xn(f,h,a),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Z){$e(u,u.return,Z)}if(u=h,f=u.updateQueue,f!==null){var w=u.stateNode;try{var A=f.shared.hiddenCallbacks;if(A!==null)for(f.shared.hiddenCallbacks=null,f=0;f<A.length;f++)Ud(A[f],w)}catch(Z){$e(u,u.return,Z)}}a&&b&64&&G2(h),Ia(h,h.return);break;case 27:P2(h);case 26:case 5:Xn(f,h,a),a&&u===null&&b&4&&Q2(h),Ia(h,h.return);break;case 12:Xn(f,h,a);break;case 31:Xn(f,h,a),a&&b&4&&lh(f,h);break;case 13:Xn(f,h,a),a&&b&4&&rh(f,h);break;case 22:h.memoizedState===null&&Xn(f,h,a),Ia(h,h.return);break;case 30:break;default:Xn(f,h,a)}n=n.sibling}}function sc(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ta(a))}function oc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ta(e))}function Sn(e,n,a,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)uh(e,n,a,u),n=n.sibling}function uh(e,n,a,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n,a,u),f&2048&&Ja(9,n);break;case 1:Sn(e,n,a,u);break;case 3:Sn(e,n,a,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ta(e)));break;case 12:if(f&2048){Sn(e,n,a,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,w=h.onPostCommit;typeof w=="function"&&w(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){$e(n,n.return,A)}}else Sn(e,n,a,u);break;case 31:Sn(e,n,a,u);break;case 13:Sn(e,n,a,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?Sn(e,n,a,u):Fa(e,n):h._visibility&2?Sn(e,n,a,u):(h._visibility|=2,Ur(e,n,a,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&sc(b,n);break;case 24:Sn(e,n,a,u),f&2048&&oc(n.alternate,n);break;default:Sn(e,n,a,u)}}function Ur(e,n,a,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,w=a,A=u,Z=b.flags;switch(b.tag){case 0:case 11:case 15:Ur(h,b,w,A,f),Ja(8,b);break;case 23:break;case 22:var I=b.stateNode;b.memoizedState!==null?I._visibility&2?Ur(h,b,w,A,f):Fa(h,b):(I._visibility|=2,Ur(h,b,w,A,f)),f&&Z&2048&&sc(b.alternate,b);break;case 24:Ur(h,b,w,A,f),f&&Z&2048&&oc(b.alternate,b);break;default:Ur(h,b,w,A,f)}n=n.sibling}}function Fa(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,u=n,f=u.flags;switch(u.tag){case 22:Fa(a,u),f&2048&&sc(u.alternate,u);break;case 24:Fa(a,u),f&2048&&oc(u.alternate,u);break;default:Fa(a,u)}n=n.sibling}}var Ya=8192;function Hr(e,n,a){if(e.subtreeFlags&Ya)for(e=e.child;e!==null;)sh(e,n,a),e=e.sibling}function sh(e,n,a){switch(e.tag){case 26:Hr(e,n,a),e.flags&Ya&&e.memoizedState!==null&&C5(a,vn,e.memoizedState,e.memoizedProps);break;case 5:Hr(e,n,a);break;case 3:case 4:var u=vn;vn=Du(e.stateNode.containerInfo),Hr(e,n,a),vn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Ya,Ya=16777216,Hr(e,n,a),Ya=u):Hr(e,n,a));break;default:Hr(e,n,a)}}function oh(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Ga(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a];vt=u,fh(u,e)}oh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ch(e),e=e.sibling}function ch(e){switch(e.tag){case 0:case 11:case 15:Ga(e),e.flags&2048&&bl(9,e,e.return);break;case 3:Ga(e);break;case 12:Ga(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Su(e)):Ga(e);break;default:Ga(e)}}function Su(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a];vt=u,fh(u,e)}oh(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:bl(8,n,n.return),Su(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Su(n));break;default:Su(n)}e=e.sibling}}function fh(e,n){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:bl(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var u=a.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ta(a.memoizedState.cache)}if(u=a.child,u!==null)u.return=a,vt=u;else e:for(a=e;vt!==null;){u=vt;var f=u.sibling,h=u.return;if(th(u),u===a){vt=null;break e}if(f!==null){f.return=h,vt=f;break e}vt=h}}}var Bg={getCacheForType:function(e){var n=kt(ot),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return kt(ot).controller.signal}},Zg=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ge=null,je=null,_e=0,qe=0,Qt=null,vl=!1,Br=!1,cc=!1,Qn=0,lt=0,Sl=0,tr=0,fc=0,Kt=0,Zr=0,Xa=null,Zt=null,dc=!1,wu=0,dh=0,ku=1/0,Cu=null,wl=null,yt=0,kl=null,qr=null,Kn=0,hc=0,mc=null,hh=null,Qa=0,pc=null;function Pt(){return(Be&2)!==0&&_e!==0?_e&-_e:H.T!==null?Sc():Af()}function mh(){if(Kt===0)if((_e&536870912)===0||De){var e=_i;_i<<=1,(_i&3932160)===0&&(_i=262144),Kt=e}else Kt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Kt}function qt(e,n,a){(e===Ge&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&($r(e,0),Cl(e,_e,Kt,!1)),ya(e,a),((Be&2)===0||e!==Ge)&&(e===Ge&&((Be&2)===0&&(tr|=a),lt===4&&Cl(e,_e,Kt,!1)),jn(e))}function ph(e,n,a){if((Be&6)!==0)throw Error(i(327));var u=!a&&(n&127)===0&&(n&e.expiredLanes)===0||ga(e,n),f=u?Vg(e,n):yc(e,n,!0),h=u;do{if(f===0){Br&&!u&&Cl(e,n,0,!1);break}else{if(a=e.current.alternate,h&&!qg(a)){f=yc(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var w=e;f=Xa;var A=w.current.memoizedState.isDehydrated;if(A&&($r(w,b).flags|=256),b=yc(w,b,!1),b!==2){if(cc&&!A){w.errorRecoveryDisabledLanes|=h,tr|=h,f=4;break e}h=Zt,Zt=f,h!==null&&(Zt===null?Zt=h:Zt.push.apply(Zt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){$r(e,0),Cl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Cl(u,n,Kt,!vl);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(f=wu+300-zt(),10<f)){if(Cl(u,n,Kt,!vl),Di(u,0,!0)!==0)break e;Kn=n,u.timeoutHandle=Fh(gh.bind(null,u,a,Zt,Cu,dc,n,Kt,tr,Zr,vl,h,"Throttled",-0,0),f);break e}gh(u,a,Zt,Cu,dc,n,Kt,tr,Zr,vl,h,null,-0,0)}}break}while(!0);jn(e)}function gh(e,n,a,u,f,h,b,w,A,Z,I,Q,q,$){if(e.timeoutHandle=-1,Q=n.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},sh(n,h,Q);var fe=(h&62914560)===h?wu-zt():(h&4194048)===h?dh-zt():0;if(fe=E5(Q,fe),fe!==null){Kn=h,e.cancelPendingCommit=fe(Ch.bind(null,e,n,h,a,u,f,b,w,A,I,Q,null,q,$)),Cl(e,h,b,!Z);return}}Ch(e,n,h,a,u,f,b,w,A)}function qg(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var f=a[u],h=f.getSnapshot;f=f.value;try{if(!Ft(h(),f))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Cl(e,n,a,u){n&=~fc,n&=~tr,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ye(f),b=1<<h;u[h]=-1,f&=~b}a!==0&&Mf(e,a,n)}function Eu(){return(Be&6)===0?(Ka(0),!1):!0}function gc(){if(je!==null){if(qe===0)var e=je.return;else e=je,Zn=Fl=null,_o(e),_r=null,Ra=0,e=je;for(;e!==null;)Y2(e.alternate,e),e=e.return;je=null}}function $r(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,u5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Kn=0,gc(),Ge=e,je=a=Hn(e.current,null),_e=n,qe=0,Qt=null,vl=!1,Br=ga(e,n),cc=!1,Zr=Kt=fc=tr=Sl=lt=0,Zt=Xa=null,dc=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ye(u),h=1<<f;n|=e[f],u&=~h}return Qn=n,Fi(),a}function yh(e,n){ke=null,H.H=qa,n===Tr||n===eu?(n=Rd(),qe=3):n===vo?(n=Rd(),qe=4):qe=n===Go?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Qt=n,je===null&&(lt=1,mu(e,un(n,e.current)))}function xh(){var e=Gt.current;return e===null?!0:(_e&4194048)===_e?fn===null:(_e&62914560)===_e||(_e&536870912)!==0?e===fn:!1}function bh(){var e=H.H;return H.H=qa,e===null?qa:e}function vh(){var e=H.A;return H.A=Bg,e}function Mu(){lt=4,vl||(_e&4194048)!==_e&&Gt.current!==null||(Br=!0),(Sl&134217727)===0&&(tr&134217727)===0||Ge===null||Cl(Ge,_e,Kt,!1)}function yc(e,n,a){var u=Be;Be|=2;var f=bh(),h=vh();(Ge!==e||_e!==n)&&(Cu=null,$r(e,n)),n=!1;var b=lt;e:do try{if(qe!==0&&je!==null){var w=je,A=Qt;switch(qe){case 8:gc(),b=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(n=!0);var Z=qe;if(qe=0,Qt=null,Vr(e,w,A,Z),a&&Br){b=0;break e}break;default:Z=qe,qe=0,Qt=null,Vr(e,w,A,Z)}}$g(),b=lt;break}catch(I){yh(e,I)}while(!0);return n&&e.shellSuspendCounter++,Zn=Fl=null,Be=u,H.H=f,H.A=h,je===null&&(Ge=null,_e=0,Fi()),b}function $g(){for(;je!==null;)Sh(je)}function Vg(e,n){var a=Be;Be|=2;var u=bh(),f=vh();Ge!==e||_e!==n?(Cu=null,ku=zt()+500,$r(e,n)):Br=ga(e,n);e:do try{if(qe!==0&&je!==null){n=je;var h=Qt;t:switch(qe){case 1:qe=0,Qt=null,Vr(e,n,h,1);break;case 2:case 9:if(Td(h)){qe=0,Qt=null,wh(n);break}n=function(){qe!==2&&qe!==9||Ge!==e||(qe=7),jn(e)},h.then(n,n);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Td(h)?(qe=0,Qt=null,wh(n)):(qe=0,Qt=null,Vr(e,n,h,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var w=je;if(b?u0(b):w.stateNode.complete){qe=0,Qt=null;var A=w.sibling;if(A!==null)je=A;else{var Z=w.return;Z!==null?(je=Z,Nu(Z)):je=null}break t}}qe=0,Qt=null,Vr(e,n,h,5);break;case 6:qe=0,Qt=null,Vr(e,n,h,6);break;case 8:gc(),lt=6;break e;default:throw Error(i(462))}}Jg();break}catch(I){yh(e,I)}while(!0);return Zn=Fl=null,H.H=u,H.A=f,Be=a,je!==null?0:(Ge=null,_e=0,Fi(),lt)}function Jg(){for(;je!==null&&!cr();)Sh(je)}function Sh(e){var n=I2(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,n===null?Nu(e):je=n}function wh(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=B2(a,n,n.pendingProps,n.type,void 0,_e);break;case 11:n=B2(a,n,n.pendingProps,n.type.render,n.ref,_e);break;case 5:_o(n);default:Y2(a,n),n=je=vd(n,Qn),n=I2(a,n,Qn)}e.memoizedProps=e.pendingProps,n===null?Nu(e):je=n}function Vr(e,n,a,u){Zn=Fl=null,_o(n),_r=null,Ra=0;var f=n.return;try{if(_g(e,f,n,a,_e)){lt=1,mu(e,un(a,e.current)),je=null;return}}catch(h){if(f!==null)throw je=f,h;lt=1,mu(e,un(a,e.current)),je=null;return}n.flags&32768?(De||u===1?e=!0:Br||(_e&536870912)!==0?e=!1:(vl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Gt.current,u!==null&&u.tag===13&&(u.flags|=16384))),kh(n,e)):Nu(n)}function Nu(e){var n=e;do{if((n.flags&32768)!==0){kh(n,vl);return}e=n.return;var a=Og(n.alternate,n,Qn);if(a!==null){je=a;return}if(n=n.sibling,n!==null){je=n;return}je=n=e}while(n!==null);lt===0&&(lt=5)}function kh(e,n){do{var a=Lg(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);lt=6,je=null}function Ch(e,n,a,u,f,h,b,w,A){e.cancelPendingCommit=null;do ju();while(yt!==0);if((Be&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(h=n.lanes|n.childLanes,h|=ro,k4(e,a,h,b,w,A),e===Ge&&(je=Ge=null,_e=0),qr=n,kl=e,Kn=a,hc=h,mc=f,hh=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gg(xe,function(){return Ah(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=H.T,H.T=null,f=P.p,P.p=2,b=Be,Be|=4;try{Ug(e,n,a)}finally{Be=b,P.p=f,H.T=u}}yt=1,Eh(),Mh(),Nh()}}function Eh(){if(yt===1){yt=0;var e=kl,n=qr,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var u=P.p;P.p=2;var f=Be;Be|=4;try{ah(n,e);var h=Ac,b=fd(e.containerInfo),w=h.focusedElem,A=h.selectionRange;if(b!==w&&w&&w.ownerDocument&&cd(w.ownerDocument.documentElement,w)){if(A!==null&&Ws(w)){var Z=A.start,I=A.end;if(I===void 0&&(I=Z),"selectionStart"in w)w.selectionStart=Z,w.selectionEnd=Math.min(I,w.value.length);else{var Q=w.ownerDocument||document,q=Q&&Q.defaultView||window;if(q.getSelection){var $=q.getSelection(),fe=w.textContent.length,ye=Math.min(A.start,fe),Ie=A.end===void 0?ye:Math.min(A.end,fe);!$.extend&&ye>Ie&&(b=Ie,Ie=ye,ye=b);var U=od(w,ye),R=od(w,Ie);if(U&&R&&($.rangeCount!==1||$.anchorNode!==U.node||$.anchorOffset!==U.offset||$.focusNode!==R.node||$.focusOffset!==R.offset)){var B=Q.createRange();B.setStart(U.node,U.offset),$.removeAllRanges(),ye>Ie?($.addRange(B),$.extend(R.node,R.offset)):(B.setEnd(R.node,R.offset),$.addRange(B))}}}}for(Q=[],$=w;$=$.parentNode;)$.nodeType===1&&Q.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Q.length;w++){var G=Q[w];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}Zu=!!jc,Ac=jc=null}finally{Be=f,P.p=u,H.T=a}}e.current=n,yt=2}}function Mh(){if(yt===2){yt=0;var e=kl,n=qr,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var u=P.p;P.p=2;var f=Be;Be|=4;try{eh(e,n.alternate,n)}finally{Be=f,P.p=u,H.T=a}}yt=3}}function Nh(){if(yt===4||yt===3){yt=0,pa();var e=kl,n=qr,a=Kn,u=hh;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?yt=5:(yt=0,qr=kl=null,jh(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(wl=null),Ds(a),n=n.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Tt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=H.T,f=P.p,P.p=2,H.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var w=u[b];h(w.value,{componentStack:w.stack})}}finally{H.T=n,P.p=f}}(Kn&3)!==0&&ju(),jn(e),f=e.pendingLanes,(a&261930)!==0&&(f&42)!==0?e===pc?Qa++:(Qa=0,pc=e):Qa=0,Ka(0)}}function jh(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ta(n)))}function ju(){return Eh(),Mh(),Nh(),Ah()}function Ah(){if(yt!==5)return!1;var e=kl,n=hc;hc=0;var a=Ds(Kn),u=H.T,f=P.p;try{P.p=32>a?32:a,H.T=null,a=mc,mc=null;var h=kl,b=Kn;if(yt=0,qr=kl=null,Kn=0,(Be&6)!==0)throw Error(i(331));var w=Be;if(Be|=4,ch(h.current),uh(h,h.current,b,a),Be=w,Ka(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Tt,h)}catch{}return!0}finally{P.p=f,H.T=u,jh(e,n)}}function zh(e,n,a){n=un(a,n),n=Yo(e.stateNode,n,2),e=gl(e,n,2),e!==null&&(ya(e,2),jn(e))}function $e(e,n,a){if(e.tag===3)zh(e,e,a);else for(;n!==null;){if(n.tag===3){zh(n,e,a);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(wl===null||!wl.has(u))){e=un(a,e),a=T2(2),u=gl(n,a,2),u!==null&&(_2(a,u,n,e),ya(u,2),jn(u));break}}n=n.return}}function xc(e,n,a){var u=e.pingCache;if(u===null){u=e.pingCache=new Zg;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(a)||(cc=!0,f.add(a),e=Ig.bind(null,e,n,a),n.then(e,e))}function Ig(e,n,a){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ge===e&&(_e&a)===a&&(lt===4||lt===3&&(_e&62914560)===_e&&300>zt()-wu?(Be&2)===0&&$r(e,0):fc|=a,Zr===_e&&(Zr=0)),jn(e)}function Th(e,n){n===0&&(n=Ef()),e=Vl(e,n),e!==null&&(ya(e,n),jn(e))}function Fg(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Th(e,a)}function Yg(e,n){var a=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(a=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(n),Th(e,a)}function Gg(e,n){return il(e,n)}var Au=null,Jr=null,bc=!1,zu=!1,vc=!1,El=0;function jn(e){e!==Jr&&e.next===null&&(Jr===null?Au=Jr=e:Jr=Jr.next=e),zu=!0,bc||(bc=!0,Qg())}function Ka(e,n){if(!vc&&zu){vc=!0;do for(var a=!1,u=Au;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,w=u.pingedLanes;h=(1<<31-Ye(42|e)+1)-1,h&=f&~(b&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,Oh(u,h))}else h=_e,h=Di(u,u===Ge?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||ga(u,h)||(a=!0,Oh(u,h));u=u.next}while(a);vc=!1}}function Xg(){_h()}function _h(){zu=bc=!1;var e=0;El!==0&&i5()&&(e=El);for(var n=zt(),a=null,u=Au;u!==null;){var f=u.next,h=Rh(u,n);h===0?(u.next=null,a===null?Au=f:a.next=f,f===null&&(Jr=a)):(a=u,(e!==0||(h&3)!==0)&&(zu=!0)),u=f}yt!==0&&yt!==5||Ka(e),El!==0&&(El=0)}function Rh(e,n){for(var a=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ye(h),w=1<<b,A=f[b];A===-1?((w&a)===0||(w&u)!==0)&&(f[b]=w4(w,n)):A<=n&&(e.expiredLanes|=w),h&=~w}if(n=Ge,a=_e,a=Di(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,a===0||e===n&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&yn(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ga(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(u!==null&&yn(u),Ds(a)){case 2:case 8:a=ie;break;case 32:a=xe;break;case 268435456:a=Ze;break;default:a=xe}return u=Dh.bind(null,e),a=il(a,u),e.callbackPriority=n,e.callbackNode=a,n}return u!==null&&u!==null&&yn(u),e.callbackPriority=2,e.callbackNode=null,2}function Dh(e,n){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ju()&&e.callbackNode!==a)return null;var u=_e;return u=Di(e,e===Ge?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(ph(e,u,n),Rh(e,zt()),e.callbackNode!=null&&e.callbackNode===a?Dh.bind(null,e):null)}function Oh(e,n){if(ju())return null;ph(e,n,!0)}function Qg(){s5(function(){(Be&6)!==0?il(Y,Xg):_h()})}function Sc(){if(El===0){var e=Ar;e===0&&(e=Ti,Ti<<=1,(Ti&261888)===0&&(Ti=256)),El=e}return El}function Lh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hi(""+e)}function Uh(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function Kg(e,n,a,u,f){if(n==="submit"&&a&&a.stateNode===f){var h=Lh((f[Ot]||null).action),b=u.submitter;b&&(n=(n=b[Ot]||null)?Lh(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var w=new $i("action","action",null,u,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(El!==0){var A=b?Uh(f,b):new FormData(f);qo(a,{pending:!0,data:A,method:f.method,action:h},null,A)}}else typeof h=="function"&&(w.preventDefault(),A=b?Uh(f,b):new FormData(f),qo(a,{pending:!0,data:A,method:f.method,action:h},h,A))},currentTarget:f}]})}}for(var wc=0;wc<lo.length;wc++){var kc=lo[wc],Pg=kc.toLowerCase(),Wg=kc[0].toUpperCase()+kc.slice(1);bn(Pg,"on"+Wg)}bn(md,"onAnimationEnd"),bn(pd,"onAnimationIteration"),bn(gd,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(pg,"onTransitionRun"),bn(gg,"onTransitionStart"),bn(yg,"onTransitionCancel"),bn(yd,"onTransitionEnd"),pr("onMouseEnter",["mouseout","mouseover"]),pr("onMouseLeave",["mouseout","mouseover"]),pr("onPointerEnter",["pointerout","pointerover"]),pr("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pa="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(" "),e5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pa));function Hh(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var u=e[a],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var w=u[b],A=w.instance,Z=w.currentTarget;if(w=w.listener,A!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Z;try{h(f)}catch(I){Ii(I)}f.currentTarget=null,h=A}else for(b=0;b<u.length;b++){if(w=u[b],A=w.instance,Z=w.currentTarget,w=w.listener,A!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Z;try{h(f)}catch(I){Ii(I)}f.currentTarget=null,h=A}}}}function Ae(e,n){var a=n[Os];a===void 0&&(a=n[Os]=new Set);var u=e+"__bubble";a.has(u)||(Bh(n,e,2,!1),a.add(u))}function Cc(e,n,a){var u=0;n&&(u|=4),Bh(a,e,u,n)}var Tu="_reactListening"+Math.random().toString(36).slice(2);function Ec(e){if(!e[Tu]){e[Tu]=!0,_f.forEach(function(a){a!=="selectionchange"&&(e5.has(a)||Cc(a,!1,e),Cc(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Tu]||(n[Tu]=!0,Cc("selectionchange",!1,n))}}function Bh(e,n,a,u){switch(m0(n)){case 2:var f=j5;break;case 8:f=A5;break;default:f=Zc}a=f.bind(null,n,a,e),f=void 0,!Js||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,a,{capture:!0,passive:f}):e.addEventListener(n,a,!0):f!==void 0?e.addEventListener(n,a,{passive:f}):e.addEventListener(n,a,!1)}function Mc(e,n,a,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var w=u.stateNode.containerInfo;if(w===f)break;if(b===4)for(b=u.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;w!==null;){if(b=dr(w),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){u=h=b;continue e}w=w.parentNode}}u=u.return}Jf(function(){var Z=h,I=$s(a),Q=[];e:{var q=xd.get(e);if(q!==void 0){var $=$i,fe=e;switch(e){case"keypress":if(Zi(a)===0)break e;case"keydown":case"keyup":$=Y4;break;case"focusin":fe="focus",$=Gs;break;case"focusout":fe="blur",$=Gs;break;case"beforeblur":case"afterblur":$=Gs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=O4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=Q4;break;case md:case pd:case gd:$=H4;break;case yd:$=P4;break;case"scroll":case"scrollend":$=R4;break;case"wheel":$=eg;break;case"copy":case"cut":case"paste":$=Z4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Xf;break;case"toggle":case"beforetoggle":$=ng}var ye=(n&4)!==0,Ie=!ye&&(e==="scroll"||e==="scrollend"),U=ye?q!==null?q+"Capture":null:q;ye=[];for(var R=Z,B;R!==null;){var G=R;if(B=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||B===null||U===null||(G=va(R,U),G!=null&&ye.push(Wa(R,G,B))),Ie)break;R=R.return}0<ye.length&&(q=new $(q,fe,null,a,I),Q.push({event:q,listeners:ye}))}}if((n&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",q&&a!==qs&&(fe=a.relatedTarget||a.fromElement)&&(dr(fe)||fe[fr]))break e;if(($||q)&&(q=I.window===I?I:(q=I.ownerDocument)?q.defaultView||q.parentWindow:window,$?(fe=a.relatedTarget||a.toElement,$=Z,fe=fe?dr(fe):null,fe!==null&&(Ie=o(fe),ye=fe.tag,fe!==Ie||ye!==5&&ye!==27&&ye!==6)&&(fe=null)):($=null,fe=Z),$!==fe)){if(ye=Yf,G="onMouseLeave",U="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Xf,G="onPointerLeave",U="onPointerEnter",R="pointer"),Ie=$==null?q:ba($),B=fe==null?q:ba(fe),q=new ye(G,R+"leave",$,a,I),q.target=Ie,q.relatedTarget=B,G=null,dr(I)===Z&&(ye=new ye(U,R+"enter",fe,a,I),ye.target=B,ye.relatedTarget=Ie,G=ye),Ie=G,$&&fe)t:{for(ye=t5,U=$,R=fe,B=0,G=U;G;G=ye(G))B++;G=0;for(var pe=R;pe;pe=ye(pe))G++;for(;0<B-G;)U=ye(U),B--;for(;0<G-B;)R=ye(R),G--;for(;B--;){if(U===R||R!==null&&U===R.alternate){ye=U;break t}U=ye(U),R=ye(R)}ye=null}else ye=null;$!==null&&Zh(Q,q,$,ye,!1),fe!==null&&Ie!==null&&Zh(Q,Ie,fe,ye,!0)}}e:{if(q=Z?ba(Z):window,$=q.nodeName&&q.nodeName.toLowerCase(),$==="select"||$==="input"&&q.type==="file")var Ue=ld;else if(td(q))if(rd)Ue=dg;else{Ue=cg;var he=og}else $=q.nodeName,!$||$.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?Z&&Zs(Z.elementType)&&(Ue=ld):Ue=fg;if(Ue&&(Ue=Ue(e,Z))){nd(Q,Ue,a,I);break e}he&&he(e,q,Z),e==="focusout"&&Z&&q.type==="number"&&Z.memoizedProps.value!=null&&Bs(q,"number",q.value)}switch(he=Z?ba(Z):window,e){case"focusin":(td(he)||he.contentEditable==="true")&&(Sr=he,eo=Z,ja=null);break;case"focusout":ja=eo=Sr=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,dd(Q,a,I);break;case"selectionchange":if(mg)break;case"keydown":case"keyup":dd(Q,a,I)}var Ce;if(Qs)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else vr?Wf(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(Qf&&a.locale!=="ko"&&(vr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&vr&&(Ce=If()):(ol=I,Is="value"in ol?ol.value:ol.textContent,vr=!0)),he=_u(Z,Re),0<he.length&&(Re=new Gf(Re,e,null,a,I),Q.push({event:Re,listeners:he}),Ce?Re.data=Ce:(Ce=ed(a),Ce!==null&&(Re.data=Ce)))),(Ce=rg?ag(e,a):ig(e,a))&&(Re=_u(Z,"onBeforeInput"),0<Re.length&&(he=new Gf("onBeforeInput","beforeinput",null,a,I),Q.push({event:he,listeners:Re}),he.data=Ce)),Kg(Q,e,Z,a,I)}Hh(Q,n)})}function Wa(e,n,a){return{instance:e,listener:n,currentTarget:a}}function _u(e,n){for(var a=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=va(e,a),f!=null&&u.unshift(Wa(e,f,h)),f=va(e,n),f!=null&&u.push(Wa(e,f,h))),e.tag===3)return u;e=e.return}return[]}function t5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zh(e,n,a,u,f){for(var h=n._reactName,b=[];a!==null&&a!==u;){var w=a,A=w.alternate,Z=w.stateNode;if(w=w.tag,A!==null&&A===u)break;w!==5&&w!==26&&w!==27||Z===null||(A=Z,f?(Z=va(a,h),Z!=null&&b.unshift(Wa(a,Z,A))):f||(Z=va(a,h),Z!=null&&b.push(Wa(a,Z,A)))),a=a.return}b.length!==0&&e.push({event:n,listeners:b})}var n5=/\r\n?/g,l5=/\u0000|\uFFFD/g;function qh(e){return(typeof e=="string"?e:""+e).replace(n5,`
|
|
49
|
+
`).replace(l5,"")}function $h(e,n){return n=qh(n),qh(e)===n}function Je(e,n,a,u,f,h){switch(a){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||yr(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&yr(e,""+u);break;case"className":Li(e,"class",u);break;case"tabIndex":Li(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(e,a,u);break;case"style":$f(e,u,h);break;case"data":if(n!=="object"){Li(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}u=Hi(""+u),e.setAttribute(a,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(a==="formAction"?(n!=="input"&&Je(e,n,"name",f.name,f,null),Je(e,n,"formEncType",f.formEncType,f,null),Je(e,n,"formMethod",f.formMethod,f,null),Je(e,n,"formTarget",f.formTarget,f,null)):(Je(e,n,"encType",f.encType,f,null),Je(e,n,"method",f.method,f,null),Je(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}u=Hi(""+u),e.setAttribute(a,u);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"onScroll":u!=null&&Ae("scroll",e);break;case"onScrollEnd":u!=null&&Ae("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}a=Hi(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""+u):e.removeAttribute(a);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":u===!0?e.setAttribute(a,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,u):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(a,u):e.removeAttribute(a);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(a):e.setAttribute(a,u);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),Oi(e,"popover",u);break;case"xlinkActuate":On(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":On(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":On(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":On(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":On(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":On(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":On(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":On(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":On(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Oi(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=T4.get(a)||a,Oi(e,a,u))}}function Nc(e,n,a,u,f,h){switch(a){case"style":$f(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(a=u.__html,a!=null){if(f.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof u=="string"?yr(e,u):(typeof u=="number"||typeof u=="bigint")&&yr(e,""+u);break;case"onScroll":u!=null&&Ae("scroll",e);break;case"onScrollEnd":u!=null&&Ae("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),n=a.slice(2,f?a.length-7:void 0),h=e[Ot]||null,h=h!=null?h[a]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,u,f);break e}a in e?e[a]=u:u===!0?e.setAttribute(a,""):Oi(e,a,u)}}}function Et(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var u=!1,f=!1,h;for(h in a)if(a.hasOwnProperty(h)){var b=a[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Je(e,n,h,b,a,null)}}f&&Je(e,n,"srcSet",a.srcSet,a,null),u&&Je(e,n,"src",a.src,a,null);return;case"input":Ae("invalid",e);var w=h=b=f=null,A=null,Z=null;for(u in a)if(a.hasOwnProperty(u)){var I=a[u];if(I!=null)switch(u){case"name":f=I;break;case"type":b=I;break;case"checked":A=I;break;case"defaultChecked":Z=I;break;case"value":h=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(i(137,n));break;default:Je(e,n,u,I,a,null)}}Hf(e,h,w,A,Z,b,f,!1);return;case"select":Ae("invalid",e),u=b=h=null;for(f in a)if(a.hasOwnProperty(f)&&(w=a[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":b=w;break;case"multiple":u=w;default:Je(e,n,f,w,a,null)}n=h,a=b,e.multiple=!!u,n!=null?gr(e,!!u,n,!1):a!=null&&gr(e,!!u,a,!0);return;case"textarea":Ae("invalid",e),h=f=u=null;for(b in a)if(a.hasOwnProperty(b)&&(w=a[b],w!=null))switch(b){case"value":u=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:Je(e,n,b,w,a,null)}Zf(e,u,f,h);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(u=a[A],u!=null))switch(A){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Je(e,n,A,u,a,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(u=0;u<Pa.length;u++)Ae(Pa[u],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("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(Z in a)if(a.hasOwnProperty(Z)&&(u=a[Z],u!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Je(e,n,Z,u,a,null)}return;default:if(Zs(n)){for(I in a)a.hasOwnProperty(I)&&(u=a[I],u!==void 0&&Nc(e,n,I,u,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(u=a[w],u!=null&&Je(e,n,w,u,a,null))}function r5(e,n,a,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,w=null,A=null,Z=null,I=null;for($ in a){var Q=a[$];if(a.hasOwnProperty($)&&Q!=null)switch($){case"checked":break;case"value":break;case"defaultValue":A=Q;default:u.hasOwnProperty($)||Je(e,n,$,null,u,Q)}}for(var q in u){var $=u[q];if(Q=a[q],u.hasOwnProperty(q)&&($!=null||Q!=null))switch(q){case"type":h=$;break;case"name":f=$;break;case"checked":Z=$;break;case"defaultChecked":I=$;break;case"value":b=$;break;case"defaultValue":w=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:$!==Q&&Je(e,n,q,$,u,Q)}}Hs(e,b,w,A,Z,I,h,f);return;case"select":$=b=w=q=null;for(h in a)if(A=a[h],a.hasOwnProperty(h)&&A!=null)switch(h){case"value":break;case"multiple":$=A;default:u.hasOwnProperty(h)||Je(e,n,h,null,u,A)}for(f in u)if(h=u[f],A=a[f],u.hasOwnProperty(f)&&(h!=null||A!=null))switch(f){case"value":q=h;break;case"defaultValue":w=h;break;case"multiple":b=h;default:h!==A&&Je(e,n,f,h,u,A)}n=w,a=b,u=$,q!=null?gr(e,!!a,q,!1):!!u!=!!a&&(n!=null?gr(e,!!a,n,!0):gr(e,!!a,a?[]:"",!1));return;case"textarea":$=q=null;for(w in a)if(f=a[w],a.hasOwnProperty(w)&&f!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Je(e,n,w,null,u,f)}for(b in u)if(f=u[b],h=a[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":q=f;break;case"defaultValue":$=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&Je(e,n,b,f,u,h)}Bf(e,q,$);return;case"option":for(var fe in a)if(q=a[fe],a.hasOwnProperty(fe)&&q!=null&&!u.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Je(e,n,fe,null,u,q)}for(A in u)if(q=u[A],$=a[A],u.hasOwnProperty(A)&&q!==$&&(q!=null||$!=null))switch(A){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:Je(e,n,A,q,u,$)}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 ye in a)q=a[ye],a.hasOwnProperty(ye)&&q!=null&&!u.hasOwnProperty(ye)&&Je(e,n,ye,null,u,q);for(Z in u)if(q=u[Z],$=a[Z],u.hasOwnProperty(Z)&&q!==$&&(q!=null||$!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,n));break;default:Je(e,n,Z,q,u,$)}return;default:if(Zs(n)){for(var Ie in a)q=a[Ie],a.hasOwnProperty(Ie)&&q!==void 0&&!u.hasOwnProperty(Ie)&&Nc(e,n,Ie,void 0,u,q);for(I in u)q=u[I],$=a[I],!u.hasOwnProperty(I)||q===$||q===void 0&&$===void 0||Nc(e,n,I,q,u,$);return}}for(var U in a)q=a[U],a.hasOwnProperty(U)&&q!=null&&!u.hasOwnProperty(U)&&Je(e,n,U,null,u,q);for(Q in u)q=u[Q],$=a[Q],!u.hasOwnProperty(Q)||q===$||q==null&&$==null||Je(e,n,Q,q,u,$)}function Vh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function a5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var f=a[u],h=f.transferSize,b=f.initiatorType,w=f.duration;if(h&&w&&Vh(b)){for(b=0,w=f.responseEnd,u+=1;u<a.length;u++){var A=a[u],Z=A.startTime;if(Z>w)break;var I=A.transferSize,Q=A.initiatorType;I&&Vh(Q)&&(A=A.responseEnd,b+=I*(A<w?1:(w-Z)/(A-Z)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jc=null,Ac=null;function Ru(e){return e.nodeType===9?e:e.ownerDocument}function Jh(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 Ih(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function zc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Tc=null;function i5(){var e=window.event;return e&&e.type==="popstate"?e===Tc?!1:(Tc=e,!0):(Tc=null,!1)}var Fh=typeof setTimeout=="function"?setTimeout:void 0,u5=typeof clearTimeout=="function"?clearTimeout:void 0,Yh=typeof Promise=="function"?Promise:void 0,s5=typeof queueMicrotask=="function"?queueMicrotask:typeof Yh<"u"?function(e){return Yh.resolve(null).then(e).catch(o5)}:Fh;function o5(e){setTimeout(function(){throw e})}function Ml(e){return e==="head"}function Gh(e,n){var a=n,u=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"||a==="/&"){if(u===0){e.removeChild(f),Gr(n);return}u--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")u++;else if(a==="html")ei(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ei(a);for(var h=a.firstChild;h;){var b=h.nextSibling,w=h.nodeName;h[xa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=b}}else a==="body"&&ei(e.ownerDocument.body);a=f}while(a);Gr(n)}function Xh(e,n){var a=e;e=0;do{var u=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=u}while(a)}function _c(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":_c(a),Ls(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function c5(e,n,a,u){for(;e.nodeType===1;){var f=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[xa])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function f5(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=dn(e.nextSibling),e===null))return null;return e}function Qh(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function Rc(e){return e.data==="$?"||e.data==="$~"}function Dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function d5(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var u=function(){n(),a.removeEventListener("DOMContentLoaded",u)};a.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Oc=null;function Kh(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return dn(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function Ph(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function Wh(e,n,a){switch(n=Ru(a),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function ei(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Ls(e)}var hn=new Map,e0=new Set;function Du(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pn=P.d;P.d={f:h5,r:m5,D:p5,C:g5,L:y5,m:x5,X:v5,S:b5,M:S5};function h5(){var e=Pn.f(),n=Eu();return e||n}function m5(e){var n=hr(e);n!==null&&n.tag===5&&n.type==="form"?y2(n):Pn.r(e)}var Ir=typeof document>"u"?null:document;function t0(e,n,a){var u=Ir;if(u&&typeof n=="string"&&n){var f=rn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),e0.has(f)||(e0.add(f),e={rel:e,crossOrigin:a,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),Et(n,"link",e),bt(n),u.head.appendChild(n)))}}function p5(e){Pn.D(e),t0("dns-prefetch",e,null)}function g5(e,n){Pn.C(e,n),t0("preconnect",e,n)}function y5(e,n,a){Pn.L(e,n,a);var u=Ir;if(u&&e&&n){var f='link[rel="preload"][as="'+rn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+rn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+rn(a.imageSizes)+'"]')):f+='[href="'+rn(e)+'"]';var h=f;switch(n){case"style":h=Fr(e);break;case"script":h=Yr(e)}hn.has(h)||(e=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),hn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(ti(h))||n==="script"&&u.querySelector(ni(h))||(n=u.createElement("link"),Et(n,"link",e),bt(n),u.head.appendChild(n)))}}function x5(e,n){Pn.m(e,n);var a=Ir;if(a&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+rn(u)+'"][href="'+rn(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Yr(e)}if(!hn.has(h)&&(e=y({rel:"modulepreload",href:e},n),hn.set(h,e),a.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ni(h)))return}u=a.createElement("link"),Et(u,"link",e),bt(u),a.head.appendChild(u)}}}function b5(e,n,a){Pn.S(e,n,a);var u=Ir;if(u&&e){var f=mr(u).hoistableStyles,h=Fr(e);n=n||"default";var b=f.get(h);if(!b){var w={loading:0,preload:null};if(b=u.querySelector(ti(h)))w.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},a),(a=hn.get(h))&&Lc(e,a);var A=b=u.createElement("link");bt(A),Et(A,"link",e),A._p=new Promise(function(Z,I){A.onload=Z,A.onerror=I}),A.addEventListener("load",function(){w.loading|=1}),A.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ou(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:w},f.set(h,b)}}}function v5(e,n){Pn.X(e,n);var a=Ir;if(a&&e){var u=mr(a).hoistableScripts,f=Yr(e),h=u.get(f);h||(h=a.querySelector(ni(f)),h||(e=y({src:e,async:!0},n),(n=hn.get(f))&&Uc(e,n),h=a.createElement("script"),bt(h),Et(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function S5(e,n){Pn.M(e,n);var a=Ir;if(a&&e){var u=mr(a).hoistableScripts,f=Yr(e),h=u.get(f);h||(h=a.querySelector(ni(f)),h||(e=y({src:e,async:!0,type:"module"},n),(n=hn.get(f))&&Uc(e,n),h=a.createElement("script"),bt(h),Et(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function n0(e,n,a,u){var f=(f=W.current)?Du(f):null;if(!f)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Fr(a.href),a=mr(f).hoistableStyles,u=a.get(n),u||(u={type:"style",instance:null,count:0,state:null},a.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Fr(a.href);var h=mr(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(ti(e)))&&!h._p&&(b.instance=h,b.state.loading=5),hn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},hn.set(e,a),h||w5(f,e,a,b.state))),n&&u===null)throw Error(i(528,""));return b}if(n&&u!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Yr(a),a=mr(f).hoistableScripts,u=a.get(n),u||(u={type:"script",instance:null,count:0,state:null},a.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fr(e){return'href="'+rn(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function l0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function w5(e,n,a,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),Et(n,"link",a),bt(n),e.head.appendChild(n))}function Yr(e){return'[src="'+rn(e)+'"]'}function ni(e){return"script[async]"+e}function r0(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(u)return n.instance=u,bt(u),u;var f=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),bt(u),Et(u,"style",f),Ou(u,a.precedence,e),n.instance=u;case"stylesheet":f=Fr(a.href);var h=e.querySelector(ti(f));if(h)return n.state.loading|=4,n.instance=h,bt(h),h;u=l0(a),(f=hn.get(f))&&Lc(u,f),h=(e.ownerDocument||e).createElement("link"),bt(h);var b=h;return b._p=new Promise(function(w,A){b.onload=w,b.onerror=A}),Et(h,"link",u),n.state.loading|=4,Ou(h,a.precedence,e),n.instance=h;case"script":return h=Yr(a.src),(f=e.querySelector(ni(h)))?(n.instance=f,bt(f),f):(u=a,(f=hn.get(h))&&(u=y({},a),Uc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),bt(f),Et(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Ou(u,a.precedence,e));return n.instance}function Ou(e,n,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var w=u[b];if(w.dataset.precedence===n)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Lc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Uc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Lu=null;function a0(e,n,a){if(Lu===null){var u=new Map,f=Lu=new Map;f.set(a,u)}else f=Lu,u=f.get(a),u||(u=new Map,f.set(a,u));if(u.has(e))return u;for(u.set(e,null),a=a.getElementsByTagName(e),f=0;f<a.length;f++){var h=a[f];if(!(h[xa]||h[St]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var w=u.get(b);w?w.push(h):u.set(b,[h])}}return u}function i0(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function k5(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function u0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function C5(e,n,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=Fr(u.href),h=n.querySelector(ti(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Uu.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=h,bt(h);return}h=n.ownerDocument||n,u=l0(u),(f=hn.get(f))&&Lc(u,f),h=h.createElement("link"),bt(h);var b=h;b._p=new Promise(function(w,A){b.onload=w,b.onerror=A}),Et(h,"link",u),a.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Uu.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var Hc=0;function E5(e,n){return e.stylesheets&&e.count===0&&Bu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var u=setTimeout(function(){if(e.stylesheets&&Bu(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Hc===0&&(Hc=62500*a5());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bu(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Hc?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hu=null;function Bu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hu=new Map,n.forEach(M5,e),Hu=null,Uu.call(e))}function M5(e,n){if(!(n.state.loading&4)){var a=Hu.get(e);if(a)var u=a.get(null);else{a=new Map,Hu.set(e,a);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),u=b)}u&&a.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=a.get(b)||u,h===u&&a.set(null,f),a.set(b,f),this.count++,u=Uu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var li={$$typeof:D,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function N5(e,n,a,u,f,h,b,w,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=_s(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_s(0),this.hiddenUpdates=_s(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function s0(e,n,a,u,f,h,b,w,A,Z,I,Q){return e=new N5(e,n,a,b,A,Z,I,Q,w),n=1,h===!0&&(n|=24),h=Yt(3,null,null,n),e.current=h,h.stateNode=e,n=yo(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:a,cache:n},So(h),e}function o0(e){return e?(e=Cr,e):Cr}function c0(e,n,a,u,f,h){f=o0(f),u.context===null?u.context=f:u.pendingContext=f,u=pl(n),u.payload={element:a},h=h===void 0?null:h,h!==null&&(u.callback=h),a=gl(e,u,n),a!==null&&(qt(a,e,n),Oa(a,e,n))}function f0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Bc(e,n){f0(e,n),(e=e.alternate)&&f0(e,n)}function d0(e){if(e.tag===13||e.tag===31){var n=Vl(e,67108864);n!==null&&qt(n,e,67108864),Bc(e,67108864)}}function h0(e){if(e.tag===13||e.tag===31){var n=Pt();n=Rs(n);var a=Vl(e,n);a!==null&&qt(a,e,n),Bc(e,n)}}var Zu=!0;function j5(e,n,a,u){var f=H.T;H.T=null;var h=P.p;try{P.p=2,Zc(e,n,a,u)}finally{P.p=h,H.T=f}}function A5(e,n,a,u){var f=H.T;H.T=null;var h=P.p;try{P.p=8,Zc(e,n,a,u)}finally{P.p=h,H.T=f}}function Zc(e,n,a,u){if(Zu){var f=qc(u);if(f===null)Mc(e,n,u,qu,a),p0(e,u);else if(T5(f,e,n,a,u))u.stopPropagation();else if(p0(e,u),n&4&&-1<z5.indexOf(e)){for(;f!==null;){var h=hr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Hl(h.pendingLanes);if(b!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var A=1<<31-Ye(b);w.entanglements[1]|=A,b&=~A}jn(h),(Be&6)===0&&(ku=zt()+500,Ka(0))}}break;case 31:case 13:w=Vl(h,2),w!==null&&qt(w,h,2),Eu(),Bc(h,2)}if(h=qc(u),h===null&&Mc(e,n,u,qu,a),h===f)break;f=h}f!==null&&u.stopPropagation()}else Mc(e,n,u,null,a)}}function qc(e){return e=$s(e),$c(e)}var qu=null;function $c(e){if(qu=null,e=dr(e),e!==null){var n=o(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=c(n),e!==null)return e;e=null}else if(a===31){if(e=d(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return qu=e,null}function m0(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(Ts()){case Y:return 2;case ie:return 8;case xe:case Ne:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var Vc=!1,Nl=null,jl=null,Al=null,ri=new Map,ai=new Map,zl=[],z5="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 p0(e,n){switch(e){case"focusin":case"focusout":Nl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":ri.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(n.pointerId)}}function ii(e,n,a,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=hr(n),n!==null&&d0(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function T5(e,n,a,u,f){switch(n){case"focusin":return Nl=ii(Nl,e,n,a,u,f),!0;case"dragenter":return jl=ii(jl,e,n,a,u,f),!0;case"mouseover":return Al=ii(Al,e,n,a,u,f),!0;case"pointerover":var h=f.pointerId;return ri.set(h,ii(ri.get(h)||null,e,n,a,u,f)),!0;case"gotpointercapture":return h=f.pointerId,ai.set(h,ii(ai.get(h)||null,e,n,a,u,f)),!0}return!1}function g0(e){var n=dr(e.target);if(n!==null){var a=o(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){e.blockedOn=n,zf(e.priority,function(){h0(a)});return}}else if(n===31){if(n=d(a),n!==null){e.blockedOn=n,zf(e.priority,function(){h0(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $u(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=qc(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a);qs=u,a.target.dispatchEvent(u),qs=null}else return n=hr(a),n!==null&&d0(n),e.blockedOn=a,!1;n.shift()}return!0}function y0(e,n,a){$u(e)&&a.delete(n)}function _5(){Vc=!1,Nl!==null&&$u(Nl)&&(Nl=null),jl!==null&&$u(jl)&&(jl=null),Al!==null&&$u(Al)&&(Al=null),ri.forEach(y0),ai.forEach(y0)}function Vu(e,n){e.blockedOn===n&&(e.blockedOn=null,Vc||(Vc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_5)))}var Ju=null;function x0(e){Ju!==e&&(Ju=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ju===e&&(Ju=null);for(var n=0;n<e.length;n+=3){var a=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if($c(u||a)===null)continue;break}var h=hr(a);h!==null&&(e.splice(n,3),n-=3,qo(h,{pending:!0,data:f,method:a.method,action:u},u,f))}}))}function Gr(e){function n(A){return Vu(A,e)}Nl!==null&&Vu(Nl,e),jl!==null&&Vu(jl,e),Al!==null&&Vu(Al,e),ri.forEach(n),ai.forEach(n);for(var a=0;a<zl.length;a++){var u=zl[a];u.blockedOn===e&&(u.blockedOn=null)}for(;0<zl.length&&(a=zl[0],a.blockedOn===null);)g0(a),a.blockedOn===null&&zl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var f=a[u],h=a[u+1],b=f[Ot]||null;if(typeof h=="function")b||x0(a);else if(b){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Ot]||null)w=b.formAction;else if($c(f)!==null)continue}else w=b.action;typeof w=="function"?a[u+1]=w:(a.splice(u,3),u-=3),x0(a)}}}function b0(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(a,20)}function a(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Jc(e){this._internalRoot=e}Iu.prototype.render=Jc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,u=Pt();c0(a,u,e,n,null,null)},Iu.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;c0(e.current,2,null,e,null,null),Eu(),n[fr]=null}};function Iu(e){this._internalRoot=e}Iu.prototype.unstable_scheduleHydration=function(e){if(e){var n=Af();e={blockedOn:null,target:e,priority:n};for(var a=0;a<zl.length&&n!==0&&n<zl[a].priority;a++);zl.splice(a,0,e),a===0&&g0(e)}};var v0=l.version;if(v0!=="19.2.4")throw Error(i(527,v0,"19.2.4"));P.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(n),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var R5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fu.isDisabled&&Fu.supportsFiber)try{Tt=Fu.inject(R5),gt=Fu}catch{}}return si.createRoot=function(e,n){if(!s(e))throw Error(i(299));var a=!1,u="",f=N2,h=j2,b=A2;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=s0(e,1,!1,null,null,a,u,null,f,h,b,b0),e[fr]=n.current,Ec(e),new Jc(n)},si.hydrateRoot=function(e,n,a){if(!s(e))throw Error(i(299));var u=!1,f="",h=N2,b=j2,w=A2,A=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),n=s0(e,1,!0,n,a??null,u,f,A,h,b,w,b0),n.context=o0(null),a=n.current,u=Pt(),u=Rs(u),f=pl(u),f.callback=null,gl(a,f,u),a=u,n.current.lanes=a,ya(n,a),jn(n),e[fr]=n.current,Ec(e),new Iu(n)},si.version="19.2.4",si}var T0;function Y5(){if(T0)return Yc.exports;T0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Yc.exports=F5(),Yc.exports}var G5=Y5();/**
|
|
50
|
+
* react-router v7.13.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var _0="popstate";function X5(t={}){function l(i,s){let{pathname:o,search:c,hash:d}=i.location;return E1("",{pathname:o,search:c,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){return typeof s=="string"?s:bi(s)}return K5(l,r,null,t)}function tt(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function zn(t,l){if(!t){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Q5(){return Math.random().toString(36).substring(2,10)}function R0(t,l){return{usr:t.state,key:t.key,idx:l}}function E1(t,l,r=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof l=="string"?sa(l):l,state:r,key:l&&l.key||i||Q5()}}function bi({pathname:t="/",search:l="",hash:r=""}){return l&&l!=="?"&&(t+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function sa(t){let l={};if(t){let r=t.indexOf("#");r>=0&&(l.hash=t.substring(r),t=t.substring(0,r));let i=t.indexOf("?");i>=0&&(l.search=t.substring(i),t=t.substring(0,i)),t&&(l.pathname=t)}return l}function K5(t,l,r,i={}){let{window:s=document.defaultView,v5Compat:o=!1}=i,c=s.history,d="POP",m=null,p=x();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function x(){return(c.state||{idx:null}).idx}function y(){d="POP";let j=x(),E=j==null?null:j-p;p=j,m&&m({action:d,location:z.location,delta:E})}function v(j,E){d="PUSH";let T=E1(z.location,j,E);p=x()+1;let D=R0(T,p),F=z.createHref(T);try{c.pushState(D,"",F)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;s.location.assign(F)}o&&m&&m({action:d,location:z.location,delta:1})}function S(j,E){d="REPLACE";let T=E1(z.location,j,E);p=x();let D=R0(T,p),F=z.createHref(T);c.replaceState(D,"",F),o&&m&&m({action:d,location:z.location,delta:0})}function C(j){return P5(j)}let z={get action(){return d},get location(){return t(s,c)},listen(j){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(_0,y),m=j,()=>{s.removeEventListener(_0,y),m=null}},createHref(j){return l(s,j)},createURL:C,encodeLocation(j){let E=C(j);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:v,replace:S,go(j){return c.go(j)}};return z}function P5(t,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),tt(r,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:bi(t);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function ip(t,l,r="/"){return W5(t,l,r,!1)}function W5(t,l,r,i){let s=typeof l=="string"?sa(l):l,o=tl(s.pathname||"/",r);if(o==null)return null;let c=up(t);ey(c);let d=null;for(let m=0;d==null&&m<c.length;++m){let p=fy(o);d=oy(c[m],p,i)}return d}function up(t,l=[],r=[],i="",s=!1){let o=(c,d,m=s,p)=>{let x={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&m)return;tt(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let y=el([i,x.relativePath]),v=r.concat(x);c.children&&c.children.length>0&&(tt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),up(c.children,l,v,y,m)),!(c.path==null&&!c.index)&&l.push({path:y,score:uy(y,c.index),routesMeta:v})};return t.forEach((c,d)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))o(c,d);else for(let p of sp(c.path))o(c,d,!0,p)}),l}function sp(t){let l=t.split("/");if(l.length===0)return[];let[r,...i]=l,s=r.endsWith("?"),o=r.replace(/\?$/,"");if(i.length===0)return s?[o,""]:[o];let c=sp(i.join("/")),d=[];return d.push(...c.map(m=>m===""?o:[o,m].join("/"))),s&&d.push(...c),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function ey(t){t.sort((l,r)=>l.score!==r.score?r.score-l.score:sy(l.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var ty=/^:[\w-]+$/,ny=3,ly=2,ry=1,ay=10,iy=-2,D0=t=>t==="*";function uy(t,l){let r=t.split("/"),i=r.length;return r.some(D0)&&(i+=iy),l&&(i+=ly),r.filter(s=>!D0(s)).reduce((s,o)=>s+(ty.test(o)?ny:o===""?ry:ay),i)}function sy(t,l){return t.length===l.length&&t.slice(0,-1).every((i,s)=>i===l[s])?t[t.length-1]-l[l.length-1]:0}function oy(t,l,r=!1){let{routesMeta:i}=t,s={},o="/",c=[];for(let d=0;d<i.length;++d){let m=i[d],p=d===i.length-1,x=o==="/"?l:l.slice(o.length)||"/",y=as({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},x),v=m.route;if(!y&&p&&r&&!i[i.length-1].route.index&&(y=as({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},x)),!y)return null;Object.assign(s,y.params),c.push({params:s,pathname:el([o,y.pathname]),pathnameBase:py(el([o,y.pathnameBase])),route:v}),y.pathnameBase!=="/"&&(o=el([o,y.pathnameBase]))}return c}function as(t,l){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,i]=cy(t.path,t.caseSensitive,t.end),s=l.match(r);if(!s)return null;let o=s[0],c=o.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:y},v)=>{if(x==="*"){let C=d[v]||"";c=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const S=d[v];return y&&!S?p[x]=void 0:p[x]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:o,pathnameBase:c,pattern:t}}function cy(t,l=!1,r=!0){zn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,m)=>(i.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,l?void 0:"i"),i]}function fy(t){try{return t.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return zn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),t}}function tl(t,l){if(l==="/")return t;if(!t.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,i=t.charAt(r);return i&&i!=="/"?null:t.slice(r)||"/"}var dy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function hy(t,l="/"){let{pathname:r,search:i="",hash:s=""}=typeof t=="string"?sa(t):t,o;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?o=O0(r.substring(1),"/"):o=O0(r,l)):o=l,{pathname:o,search:gy(i),hash:yy(s)}}function O0(t,l){let r=l.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function Kc(t,l,r,i){return`Cannot include a '${t}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function my(t){return t.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function op(t){let l=my(t);return l.map((r,i)=>i===l.length-1?r.pathname:r.pathnameBase)}function cp(t,l,r,i=!1){let s;typeof t=="string"?s=sa(t):(s={...t},tt(!s.pathname||!s.pathname.includes("?"),Kc("?","pathname","search",s)),tt(!s.pathname||!s.pathname.includes("#"),Kc("#","pathname","hash",s)),tt(!s.search||!s.search.includes("#"),Kc("#","search","hash",s)));let o=t===""||s.pathname==="",c=o?"/":s.pathname,d;if(c==null)d=r;else{let y=l.length-1;if(!i&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),y-=1;s.pathname=v.join("/")}d=y>=0?l[y]:"/"}let m=hy(s,d),p=c&&c!=="/"&&c.endsWith("/"),x=(o||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||x)&&(m.pathname+="/"),m}var el=t=>t.join("/").replace(/\/\/+/g,"/"),py=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gy=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,yy=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,xy=class{constructor(t,l,r,i=!1){this.status=t,this.statusText=l||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function by(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function vy(t){return t.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var fp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dp(t,l){let r=t;if(typeof r!="string"||!dy.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,s=!1;if(fp)try{let o=new URL(window.location.href),c=r.startsWith("//")?new URL(o.protocol+r):new URL(r),d=tl(c.pathname,l);c.origin===o.origin&&d!=null?r=d+c.search+c.hash:s=!0}catch{zn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hp=["POST","PUT","PATCH","DELETE"];new Set(hp);var Sy=["GET",...hp];new Set(Sy);var oa=M.createContext(null);oa.displayName="DataRouter";var ps=M.createContext(null);ps.displayName="DataRouterState";var wy=M.createContext(!1),mp=M.createContext({isTransitioning:!1});mp.displayName="ViewTransition";var ky=M.createContext(new Map);ky.displayName="Fetchers";var Cy=M.createContext(null);Cy.displayName="Await";var pn=M.createContext(null);pn.displayName="Navigation";var Ei=M.createContext(null);Ei.displayName="Location";var Tn=M.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var V1=M.createContext(null);V1.displayName="RouteError";var pp="REACT_ROUTER_ERROR",Ey="REDIRECT",My="ROUTE_ERROR_RESPONSE";function Ny(t){if(t.startsWith(`${pp}:${Ey}:{`))try{let l=JSON.parse(t.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function jy(t){if(t.startsWith(`${pp}:${My}:{`))try{let l=JSON.parse(t.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new xy(l.status,l.statusText,l.data)}catch{}}function Ay(t,{relative:l}={}){tt(Mi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=M.useContext(pn),{hash:s,pathname:o,search:c}=Ni(t,{relative:l}),d=o;return r!=="/"&&(d=o==="/"?r:el([r,o])),i.createHref({pathname:d,search:c,hash:s})}function Mi(){return M.useContext(Ei)!=null}function ll(){return tt(Mi(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(Ei).location}var gp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yp(t){M.useContext(pn).static||M.useLayoutEffect(t)}function gs(){let{isDataRoute:t}=M.useContext(Tn);return t?$y():zy()}function zy(){tt(Mi(),"useNavigate() may be used only in the context of a <Router> component.");let t=M.useContext(oa),{basename:l,navigator:r}=M.useContext(pn),{matches:i}=M.useContext(Tn),{pathname:s}=ll(),o=JSON.stringify(op(i)),c=M.useRef(!1);return yp(()=>{c.current=!0}),M.useCallback((m,p={})=>{if(zn(c.current,gp),!c.current)return;if(typeof m=="number"){r.go(m);return}let x=cp(m,JSON.parse(o),s,p.relative==="path");t==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:el([l,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[l,r,o,s,t])}M.createContext(null);function J1(){let{matches:t}=M.useContext(Tn),l=t[t.length-1];return l?l.params:{}}function Ni(t,{relative:l}={}){let{matches:r}=M.useContext(Tn),{pathname:i}=ll(),s=JSON.stringify(op(r));return M.useMemo(()=>cp(t,JSON.parse(s),i,l==="path"),[t,s,i,l])}function Ty(t,l){return xp(t,l)}function xp(t,l,r,i,s){var T;tt(Mi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=M.useContext(pn),{matches:c}=M.useContext(Tn),d=c[c.length-1],m=d?d.params:{},p=d?d.pathname:"/",x=d?d.pathnameBase:"/",y=d&&d.route;{let D=y&&y.path||"";vp(p,!y||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let v=ll(),S;if(l){let D=typeof l=="string"?sa(l):l;tt(x==="/"||((T=D.pathname)==null?void 0:T.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=v;let C=S.pathname||"/",z=C;if(x!=="/"){let D=x.replace(/^\//,"").split("/");z="/"+C.replace(/^\//,"").split("/").slice(D.length).join("/")}let j=ip(t,{pathname:z});zn(y||j!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),zn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=Ly(j&&j.map(D=>Object.assign({},D,{params:Object.assign({},m,D.params),pathname:el([x,o.encodeLocation?o.encodeLocation(D.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?x:el([x,o.encodeLocation?o.encodeLocation(D.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),c,r,i,s);return l&&E?M.createElement(Ei.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},E):E}function _y(){let t=qy(),l=by(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",t),c=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:o},"ErrorBoundary")," or"," ",M.createElement("code",{style:o},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},l),r?M.createElement("pre",{style:s},r):null,c)}var Ry=M.createElement(_y,null),bp=class extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,l){return l.location!==t.location||l.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:l.error,location:l.location,revalidation:t.revalidation||l.revalidation}}componentDidCatch(t,l){this.props.onError?this.props.onError(t,l):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=jy(t.digest);r&&(t=r)}let l=t!==void 0?M.createElement(Tn.Provider,{value:this.props.routeContext},M.createElement(V1.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?M.createElement(Dy,{error:t},l):l}};bp.contextType=wy;var Pc=new WeakMap;function Dy({children:t,error:l}){let{basename:r}=M.useContext(pn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=Ny(l.digest);if(i){let s=Pc.get(l);if(s)throw s;let o=dp(i.location,r);if(fp&&!Pc.get(l))if(o.isExternal||i.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw Pc.set(l,c),c}return M.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return t}function Oy({routeContext:t,match:l,children:r}){let i=M.useContext(oa);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),M.createElement(Tn.Provider,{value:t},r)}function Ly(t,l=[],r=null,i=null,s=null){if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,c=r==null?void 0:r.errors;if(c!=null){let x=o.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);tt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,m=-1;if(r)for(let x=0;x<o.length;x++){let y=o[x];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(m=x),y.route.id){let{loaderData:v,errors:S}=r,C=y.route.loader&&!v.hasOwnProperty(y.route.id)&&(!S||S[y.route.id]===void 0);if(y.route.lazy||C){d=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}let p=r&&i?(x,y)=>{var v,S;i(x,{location:r.location,params:((S=(v=r.matches)==null?void 0:v[0])==null?void 0:S.params)??{},unstable_pattern:vy(r.matches),errorInfo:y})}:void 0;return o.reduceRight((x,y,v)=>{let S,C=!1,z=null,j=null;r&&(S=c&&y.route.id?c[y.route.id]:void 0,z=y.route.errorElement||Ry,d&&(m<0&&v===0?(vp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,j=null):m===v&&(C=!0,j=y.route.hydrateFallbackElement||null)));let E=l.concat(o.slice(0,v+1)),T=()=>{let D;return S?D=z:C?D=j:y.route.Component?D=M.createElement(y.route.Component,null):y.route.element?D=y.route.element:D=x,M.createElement(Oy,{match:y,routeContext:{outlet:x,matches:E,isDataRoute:r!=null},children:D})};return r&&(y.route.ErrorBoundary||y.route.errorElement||v===0)?M.createElement(bp,{location:r.location,revalidation:r.revalidation,component:z,error:S,children:T(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:p}):T()},null)}function I1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uy(t){let l=M.useContext(oa);return tt(l,I1(t)),l}function Hy(t){let l=M.useContext(ps);return tt(l,I1(t)),l}function By(t){let l=M.useContext(Tn);return tt(l,I1(t)),l}function F1(t){let l=By(t),r=l.matches[l.matches.length-1];return tt(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Zy(){return F1("useRouteId")}function qy(){var i;let t=M.useContext(V1),l=Hy("useRouteError"),r=F1("useRouteError");return t!==void 0?t:(i=l.errors)==null?void 0:i[r]}function $y(){let{router:t}=Uy("useNavigate"),l=F1("useNavigate"),r=M.useRef(!1);return yp(()=>{r.current=!0}),M.useCallback(async(s,o={})=>{zn(r.current,gp),r.current&&(typeof s=="number"?await t.navigate(s):await t.navigate(s,{fromRouteId:l,...o}))},[t,l])}var L0={};function vp(t,l,r){!l&&!L0[t]&&(L0[t]=!0,zn(!1,r))}M.memo(Vy);function Vy({routes:t,future:l,state:r,onError:i}){return xp(t,void 0,r,i,l)}function Dl(t){tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Jy({basename:t="/",children:l=null,location:r,navigationType:i="POP",navigator:s,static:o=!1,unstable_useTransitions:c}){tt(!Mi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=M.useMemo(()=>({basename:d,navigator:s,static:o,unstable_useTransitions:c,future:{}}),[d,s,o,c]);typeof r=="string"&&(r=sa(r));let{pathname:p="/",search:x="",hash:y="",state:v=null,key:S="default"}=r,C=M.useMemo(()=>{let z=tl(p,d);return z==null?null:{location:{pathname:z,search:x,hash:y,state:v,key:S},navigationType:i}},[d,p,x,y,v,S,i]);return zn(C!=null,`<Router basename="${d}"> is not able to match the URL "${p}${x}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:M.createElement(pn.Provider,{value:m},M.createElement(Ei.Provider,{children:l,value:C}))}function Iy({children:t,location:l}){return Ty(M1(t),l)}function M1(t,l=[]){let r=[];return M.Children.forEach(t,(i,s)=>{if(!M.isValidElement(i))return;let o=[...l,s];if(i.type===M.Fragment){r.push.apply(r,M1(i.props.children,o));return}tt(i.type===Dl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=M1(i.props.children,o)),r.push(c)}),r}var es="get",ts="application/x-www-form-urlencoded";function ys(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Fy(t){return ys(t)&&t.tagName.toLowerCase()==="button"}function Yy(t){return ys(t)&&t.tagName.toLowerCase()==="form"}function Gy(t){return ys(t)&&t.tagName.toLowerCase()==="input"}function Xy(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Qy(t,l){return t.button===0&&(!l||l==="_self")&&!Xy(t)}var Yu=null;function Ky(){if(Yu===null)try{new FormData(document.createElement("form"),0),Yu=!1}catch{Yu=!0}return Yu}var Py=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wc(t){return t!=null&&!Py.has(t)?(zn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ts}"`),null):t}function Wy(t,l){let r,i,s,o,c;if(Yy(t)){let d=t.getAttribute("action");i=d?tl(d,l):null,r=t.getAttribute("method")||es,s=Wc(t.getAttribute("enctype"))||ts,o=new FormData(t)}else if(Fy(t)||Gy(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(i=m?tl(m,l):null,r=t.getAttribute("formmethod")||d.getAttribute("method")||es,s=Wc(t.getAttribute("formenctype"))||Wc(d.getAttribute("enctype"))||ts,o=new FormData(d,t),!Ky()){let{name:p,type:x,value:y}=t;if(x==="image"){let v=p?`${p}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else p&&o.append(p,y)}}else{if(ys(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=es,i=null,s=ts,c=t}return o&&s==="text/plain"&&(c=o,o=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Y1(t,l){if(t===!1||t===null||typeof t>"u")throw new Error(l)}function ex(t,l,r,i){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return r?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:l&&tl(s.pathname,l)==="/"?s.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function tx(t,l){if(t.id in l)return l[t.id];try{let r=await import(t.module);return l[t.id]=r,r}catch(r){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nx(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function lx(t,l,r){let i=await Promise.all(t.map(async s=>{let o=l.routes[s.route.id];if(o){let c=await tx(o,r);return c.links?c.links():[]}return[]}));return ux(i.flat(1).filter(nx).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function U0(t,l,r,i,s,o){let c=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,d=(m,p)=>{var x;return r[p].pathname!==m.pathname||((x=r[p].route.path)==null?void 0:x.endsWith("*"))&&r[p].params["*"]!==m.params["*"]};return o==="assets"?l.filter((m,p)=>c(m,p)||d(m,p)):o==="data"?l.filter((m,p)=>{var y;let x=i.routes[m.route.id];if(!x||!x.hasLoader)return!1;if(c(m,p)||d(m,p))return!0;if(m.route.shouldRevalidate){let v=m.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((y=r[0])==null?void 0:y.params)||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function rx(t,l,{includeHydrateFallback:r}={}){return ax(t.map(i=>{let s=l.routes[i.route.id];if(!s)return[];let o=[s.module];return s.clientActionModule&&(o=o.concat(s.clientActionModule)),s.clientLoaderModule&&(o=o.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(o=o.concat(s.hydrateFallbackModule)),s.imports&&(o=o.concat(s.imports)),o}).flat(1))}function ax(t){return[...new Set(t)]}function ix(t){let l={},r=Object.keys(t).sort();for(let i of r)l[i]=t[i];return l}function ux(t,l){let r=new Set;return new Set(l),t.reduce((i,s)=>{let o=JSON.stringify(ix(s));return r.has(o)||(r.add(o),i.push({key:o,link:s})),i},[])}function Sp(){let t=M.useContext(oa);return Y1(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function sx(){let t=M.useContext(ps);return Y1(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var G1=M.createContext(void 0);G1.displayName="FrameworkContext";function wp(){let t=M.useContext(G1);return Y1(t,"You must render this element inside a <HydratedRouter> element"),t}function ox(t,l){let r=M.useContext(G1),[i,s]=M.useState(!1),[o,c]=M.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:p,onMouseLeave:x,onTouchStart:y}=l,v=M.useRef(null);M.useEffect(()=>{if(t==="render"&&c(!0),t==="viewport"){let z=E=>{E.forEach(T=>{c(T.isIntersecting)})},j=new IntersectionObserver(z,{threshold:.5});return v.current&&j.observe(v.current),()=>{j.disconnect()}}},[t]),M.useEffect(()=>{if(i){let z=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(z)}}},[i]);let S=()=>{s(!0)},C=()=>{s(!1),c(!1)};return r?t!=="intent"?[o,v,{}]:[o,v,{onFocus:oi(d,S),onBlur:oi(m,C),onMouseEnter:oi(p,S),onMouseLeave:oi(x,C),onTouchStart:oi(y,S)}]:[!1,v,{}]}function oi(t,l){return r=>{t&&t(r),r.defaultPrevented||l(r)}}function cx({page:t,...l}){let{router:r}=Sp(),i=M.useMemo(()=>ip(r.routes,t,r.basename),[r.routes,t,r.basename]);return i?M.createElement(dx,{page:t,matches:i,...l}):null}function fx(t){let{manifest:l,routeModules:r}=wp(),[i,s]=M.useState([]);return M.useEffect(()=>{let o=!1;return lx(t,l,r).then(c=>{o||s(c)}),()=>{o=!0}},[t,l,r]),i}function dx({page:t,matches:l,...r}){let i=ll(),{future:s,manifest:o,routeModules:c}=wp(),{basename:d}=Sp(),{loaderData:m,matches:p}=sx(),x=M.useMemo(()=>U0(t,l,p,o,i,"data"),[t,l,p,o,i]),y=M.useMemo(()=>U0(t,l,p,o,i,"assets"),[t,l,p,o,i]),v=M.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let z=new Set,j=!1;if(l.forEach(T=>{var F;let D=o.routes[T.route.id];!D||!D.hasLoader||(!x.some(ee=>ee.route.id===T.route.id)&&T.route.id in m&&((F=c[T.route.id])!=null&&F.shouldRevalidate)||D.hasClientLoader?j=!0:z.add(T.route.id))}),z.size===0)return[];let E=ex(t,d,s.unstable_trailingSlashAwareDataRequests,"data");return j&&z.size>0&&E.searchParams.set("_routes",l.filter(T=>z.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[d,s.unstable_trailingSlashAwareDataRequests,m,i,o,x,l,t,c]),S=M.useMemo(()=>rx(y,o),[y,o]),C=fx(y);return M.createElement(M.Fragment,null,v.map(z=>M.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...r})),S.map(z=>M.createElement("link",{key:z,rel:"modulepreload",href:z,...r})),C.map(({key:z,link:j})=>M.createElement("link",{key:z,nonce:r.nonce,...j,crossOrigin:j.crossOrigin??r.crossOrigin})))}function hx(...t){return l=>{t.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var mx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mx&&(window.__reactRouterVersion="7.13.0")}catch{}function px({basename:t,children:l,unstable_useTransitions:r,window:i}){let s=M.useRef();s.current==null&&(s.current=X5({window:i,v5Compat:!0}));let o=s.current,[c,d]=M.useState({action:o.action,location:o.location}),m=M.useCallback(p=>{r===!1?d(p):M.startTransition(()=>d(p))},[r]);return M.useLayoutEffect(()=>o.listen(m),[o,m]),M.createElement(Jy,{basename:t,children:l,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:r})}var kp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mt=M.forwardRef(function({onClick:l,discover:r="render",prefetch:i="none",relative:s,reloadDocument:o,replace:c,state:d,target:m,to:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:v,...S},C){let{basename:z,unstable_useTransitions:j}=M.useContext(pn),E=typeof p=="string"&&kp.test(p),T=dp(p,z);p=T.to;let D=Ay(p,{relative:s}),[F,ee,O]=ox(i,S),V=bx(p,{replace:c,state:d,target:m,preventScrollReset:x,relative:s,viewTransition:y,unstable_defaultShouldRevalidate:v,unstable_useTransitions:j});function se(L){l&&l(L),L.defaultPrevented||V(L)}let de=M.createElement("a",{...S,...O,href:T.absoluteURL||D,onClick:T.isExternal||o?l:se,ref:hx(C,ee),target:m,"data-discover":!E&&r==="render"?"true":void 0});return F&&!E?M.createElement(M.Fragment,null,de,M.createElement(cx,{page:D})):de});mt.displayName="Link";var gx=M.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:i="",end:s=!1,style:o,to:c,viewTransition:d,children:m,...p},x){let y=Ni(c,{relative:p.relative}),v=ll(),S=M.useContext(ps),{navigator:C,basename:z}=M.useContext(pn),j=S!=null&&Cx(y)&&d===!0,E=C.encodeLocation?C.encodeLocation(y).pathname:y.pathname,T=v.pathname,D=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(T=T.toLowerCase(),D=D?D.toLowerCase():null,E=E.toLowerCase()),D&&z&&(D=tl(D,z)||D);const F=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let ee=T===E||!s&&T.startsWith(E)&&T.charAt(F)==="/",O=D!=null&&(D===E||!s&&D.startsWith(E)&&D.charAt(E.length)==="/"),V={isActive:ee,isPending:O,isTransitioning:j},se=ee?l:void 0,de;typeof i=="function"?de=i(V):de=[i,ee?"active":null,O?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let L=typeof o=="function"?o(V):o;return M.createElement(mt,{...p,"aria-current":se,className:de,ref:x,style:L,to:c,viewTransition:d},typeof m=="function"?m(V):m)});gx.displayName="NavLink";var yx=M.forwardRef(({discover:t="render",fetcherKey:l,navigate:r,reloadDocument:i,replace:s,state:o,method:c=es,action:d,onSubmit:m,relative:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:v,...S},C)=>{let{unstable_useTransitions:z}=M.useContext(pn),j=wx(),E=kx(d,{relative:p}),T=c.toLowerCase()==="get"?"get":"post",D=typeof d=="string"&&kp.test(d),F=ee=>{if(m&&m(ee),ee.defaultPrevented)return;ee.preventDefault();let O=ee.nativeEvent.submitter,V=(O==null?void 0:O.getAttribute("formmethod"))||c,se=()=>j(O||ee.currentTarget,{fetcherKey:l,method:V,navigate:r,replace:s,state:o,relative:p,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:v});z&&r!==!1?M.startTransition(()=>se()):se()};return M.createElement("form",{ref:C,method:T,action:E,onSubmit:i?m:F,...S,"data-discover":!D&&t==="render"?"true":void 0})});yx.displayName="Form";function xx(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cp(t){let l=M.useContext(oa);return tt(l,xx(t)),l}function bx(t,{target:l,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m}={}){let p=gs(),x=ll(),y=Ni(t,{relative:o});return M.useCallback(v=>{if(Qy(v,l)){v.preventDefault();let S=r!==void 0?r:bi(x)===bi(y),C=()=>p(t,{replace:S,state:i,preventScrollReset:s,relative:o,viewTransition:c,unstable_defaultShouldRevalidate:d});m?M.startTransition(()=>C()):C()}},[x,p,y,r,i,l,t,s,o,c,d,m])}var vx=0,Sx=()=>`__${String(++vx)}__`;function wx(){let{router:t}=Cp("useSubmit"),{basename:l}=M.useContext(pn),r=Zy(),i=t.fetch,s=t.navigate;return M.useCallback(async(o,c={})=>{let{action:d,method:m,encType:p,formData:x,body:y}=Wy(o,l);if(c.navigate===!1){let v=c.fetcherKey||Sx();await i(v,r,c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:x,body:y,formMethod:c.method||m,formEncType:c.encType||p,flushSync:c.flushSync})}else await s(c.action||d,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:x,body:y,formMethod:c.method||m,formEncType:c.encType||p,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,s,l,r])}function kx(t,{relative:l}={}){let{basename:r}=M.useContext(pn),i=M.useContext(Tn);tt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),o={...Ni(t||".",{relative:l})},c=ll();if(t==null){o.search=c.search;let d=new URLSearchParams(o.search),m=d.getAll("index");if(m.some(x=>x==="")){d.delete("index"),m.filter(y=>y).forEach(y=>d.append("index",y));let x=d.toString();o.search=x?`?${x}`:""}}return(!t||t===".")&&s.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:el([r,o.pathname])),bi(o)}function Cx(t,{relative:l}={}){let r=M.useContext(mp);tt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Cp("useViewTransitionState"),s=Ni(t,{relative:l});if(!r.isTransitioning)return!1;let o=tl(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=tl(r.nextLocation.pathname,i)||r.nextLocation.pathname;return as(s.pathname,c)!=null||as(s.pathname,o)!=null}function Ex(t={}){const{url:l=Mx(),onMessage:r,onStatusChange:i,initialReconnectDelay:s=1e3,maxReconnectDelay:o=3e4,pingInterval:c=3e4}=t;let d=null,m="disconnected",p=0,x=null,y=null,v=!0;function S(L){m!==L&&(m=L,i==null||i(m))}function C(){const L=s*Math.pow(2,p);return Math.min(L,o)}function z(){j(),y=setInterval(()=>{(d==null?void 0:d.readyState)===WebSocket.OPEN&&F({type:"ping"})},c)}function j(){y!==null&&(clearInterval(y),y=null)}function E(){if(!v)return;const L=C();p++,S("reconnecting"),x=setTimeout(()=>{x=null,D()},L)}function T(){x!==null&&(clearTimeout(x),x=null)}function D(){d&&(d.onopen=null,d.onclose=null,d.onerror=null,d.onmessage=null,(d.readyState===WebSocket.OPEN||d.readyState===WebSocket.CONNECTING)&&d.close());try{d=new WebSocket(l),d.onopen=()=>{p=0,S("connected"),z()},d.onclose=()=>{j(),S("disconnected"),v&&E()},d.onerror=()=>{},d.onmessage=L=>{try{const ae=JSON.parse(L.data);r==null||r(ae)}catch{}}}catch{S("disconnected"),v&&E()}}function F(L){(d==null?void 0:d.readyState)===WebSocket.OPEN&&d.send(JSON.stringify(L))}function ee(L){F({type:"subscribe",payload:{agentName:L}})}function O(L){F({type:"unsubscribe",payload:{agentName:L}})}function V(){return m}function se(){v=!1,T(),j(),d&&(d.onopen=null,d.onclose=null,d.onerror=null,d.onmessage=null,(d.readyState===WebSocket.OPEN||d.readyState===WebSocket.CONNECTING)&&d.close(),d=null),S("disconnected")}function de(){v=!0,T(),p=0,D()}return D(),{send:F,subscribe:ee,unsubscribe:O,getStatus:V,disconnect:se,reconnect:de}}function Mx(){return typeof window>"u"?"ws://localhost:3000/ws":`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const H0=t=>{let l;const r=new Set,i=(p,x)=>{const y=typeof p=="function"?p(l):p;if(!Object.is(y,l)){const v=l;l=x??(typeof y!="object"||y===null)?y:Object.assign({},l,y),r.forEach(S=>S(l,v))}},s=()=>l,d={setState:i,getState:s,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=t(i,s,d);return d},Nx=(t=>t?H0(t):H0),jx=t=>t;function Ax(t,l=jx){const r=na.useSyncExternalStore(t.subscribe,na.useCallback(()=>l(t.getState()),[t,l]),na.useCallback(()=>l(t.getInitialState()),[t,l]));return na.useDebugValue(r),r}const zx=t=>{const l=Nx(t),r=i=>Ax(l,i);return Object.assign(r,l),r},Tx=(t=>zx),B0=t=>Symbol.iterator in t,Z0=t=>"entries"in t,q0=(t,l)=>{const r=t instanceof Map?t:new Map(t.entries()),i=l instanceof Map?l:new Map(l.entries());if(r.size!==i.size)return!1;for(const[s,o]of r)if(!i.has(s)||!Object.is(o,i.get(s)))return!1;return!0},_x=(t,l)=>{const r=t[Symbol.iterator](),i=l[Symbol.iterator]();let s=r.next(),o=i.next();for(;!s.done&&!o.done;){if(!Object.is(s.value,o.value))return!1;s=r.next(),o=i.next()}return!!s.done&&!!o.done};function Rx(t,l){return Object.is(t,l)?!0:typeof t!="object"||t===null||typeof l!="object"||l===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(l)?!1:B0(t)&&B0(l)?Z0(t)&&Z0(l)?q0(t,l):_x(t,l):q0({entries:()=>Object.entries(t)},{entries:()=>Object.entries(l)})}function Vt(t){const l=na.useRef(void 0);return r=>{const i=t(r);return Rx(l.current,i)?l.current:l.current=i}}function Dx(t){return"agent"in t}const $0=50,Ox={fleetStatus:null,agents:[],recentJobs:[],connectionStatus:"disconnected",lastUpdated:null},Lx=t=>({...Ox,setFleetStatus:l=>t({fleetStatus:l,lastUpdated:new Date().toISOString()}),setAgents:l=>t({agents:l,lastUpdated:new Date().toISOString()}),setRecentJobs:l=>t(r=>{const i=new Map;for(const o of l)i.set(o.jobId,o);for(const o of r.recentJobs)i.set(o.jobId,o);const s=Array.from(i.values());return s.sort((o,c)=>new Date(c.createdAt).getTime()-new Date(o.createdAt).getTime()),{recentJobs:s.slice(0,$0),lastUpdated:new Date().toISOString()}}),updateAgent:l=>t(r=>{if(Dx(l)){const i=r.agents.findIndex(s=>s.name===l.agent.name);if(i>=0){const s=[...r.agents];return s[i]=l.agent,{agents:s,lastUpdated:new Date().toISOString()}}else return{agents:[...r.agents,l.agent],lastUpdated:new Date().toISOString()}}else{const i=r.agents.findIndex(s=>s.name===l.agentName);if(i>=0){const s=[...r.agents];return s[i]={...s[i],status:"idle",currentJobId:null},{agents:s,lastUpdated:new Date().toISOString()}}return r}}),addJob:l=>t(r=>({recentJobs:[{jobId:l.jobId,agentName:l.agentName,prompt:l.prompt,status:"running",createdAt:new Date().toISOString(),startedAt:new Date().toISOString()},...r.recentJobs].slice(0,$0),lastUpdated:new Date().toISOString()})),completeJob:l=>t(r=>{const i=r.recentJobs.findIndex(s=>s.jobId===l.jobId);if(i>=0){const s=[...r.recentJobs];return s[i]={...s[i],status:"completed",exitCode:l.exitCode,completedAt:new Date().toISOString()},{recentJobs:s,lastUpdated:new Date().toISOString()}}return r}),failJob:l=>t(r=>{const i=r.recentJobs.findIndex(s=>s.jobId===l.jobId);if(i>=0){const s=[...r.recentJobs];return s[i]={...s[i],status:"failed",error:l.error,completedAt:new Date().toISOString()},{recentJobs:s,lastUpdated:new Date().toISOString()}}return r}),cancelJob:l=>t(r=>{const i=r.recentJobs.findIndex(s=>s.jobId===l.jobId);if(i>=0){const s=[...r.recentJobs];return s[i]={...s[i],status:"cancelled",error:l.reason,completedAt:new Date().toISOString()},{recentJobs:s,lastUpdated:new Date().toISOString()}}return r}),setConnectionStatus:l=>t({connectionStatus:l,lastUpdated:new Date().toISOString()})}),Ep="herd-theme";function is(){if(typeof window>"u")return"system";const t=localStorage.getItem(Ep);return t==="light"||t==="dark"||t==="system"?t:"system"}function Ux(t){const l=t??is();return l==="system"?typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":l}function Mp(t){if(typeof window>"u")return;const l=Ux(t);document.documentElement.classList.toggle("dark",l==="dark")}function Hx(t){typeof window>"u"||(localStorage.setItem(Ep,t),Mp(t))}function Bx(){const t=is();Mp(t);const l=window.matchMedia("(prefers-color-scheme: dark)");function r(i){is()==="system"&&document.documentElement.classList.toggle("dark",i.matches)}return l.addEventListener("change",r),()=>{l.removeEventListener("change",r)}}const Zx={sidebarCollapsed:!1,sidebarMobileOpen:!1,selectedAgent:null,activeView:"dashboard",theme:is(),rightPanelOpen:!1},qx=t=>({...Zx,toggleSidebar:()=>t(l=>({sidebarCollapsed:!l.sidebarCollapsed})),setSidebarCollapsed:l=>t({sidebarCollapsed:l}),toggleSidebarMobile:()=>t(l=>({sidebarMobileOpen:!l.sidebarMobileOpen})),setSidebarMobileOpen:l=>t({sidebarMobileOpen:l}),selectAgent:l=>t({selectedAgent:l,rightPanelOpen:l!==null}),setActiveView:l=>t({activeView:l}),setTheme:l=>(Hx(l),t({theme:l})),toggleRightPanel:()=>t(l=>({rightPanelOpen:!l.rightPanelOpen})),setRightPanelOpen:l=>t({rightPanelOpen:l})}),V0=1e3,$x={outputsByJob:{},activeJobViews:new Set,_messageCounter:0},Vx=t=>({...$x,appendOutput:(l,r,i,s)=>t(o=>{const c=o._messageCounter+1,d={id:`msg-${c}`,jobId:l,agentName:r,data:i,stream:s,timestamp:Date.now()};let p=[...o.outputsByJob[l]??[],d];return p.length>V0&&(p=p.slice(p.length-V0)),{outputsByJob:{...o.outputsByJob,[l]:p},_messageCounter:c}}),clearJobOutput:l=>t(r=>{const{[l]:i,...s}=r.outputsByJob;return{outputsByJob:s}}),setActiveJobView:(l,r)=>t(i=>{const s=new Set(i.activeJobViews);return r?s.add(l):s.delete(l),{activeJobViews:s}}),clearAllOutput:()=>t({outputsByJob:{},activeJobViews:new Set,_messageCounter:0})});let X1=typeof window<"u"?window.location.origin:"";class Jx extends Error{constructor(l,r,i,s){super(l),this.status=r,this.statusText=i,this.url=s,this.name="ApiError"}}async function Q1(t){if(!t.ok){let l=`HTTP ${t.status}: ${t.statusText}`;try{const r=await t.json();r.error?l=r.error:r.message&&(l=r.message)}catch{}throw new Jx(l,t.status,t.statusText,t.url)}return t.json()}async function Ll(t,l){const r=new URL(`${X1}${t}`);if(l)for(const[s,o]of Object.entries(l))o!==void 0&&r.searchParams.set(s,String(o));const i=await fetch(r.toString(),{method:"GET",headers:{Accept:"application/json"}});return Q1(i)}async function ca(t,l){const r=await fetch(`${X1}${t}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(l)});return Q1(r)}async function Ix(t){const l=await fetch(`${X1}${t}`,{method:"DELETE",headers:{Accept:"application/json"}});return Q1(l)}async function Np(){return Ll("/api/fleet/status")}async function jp(){return Ll("/api/agents")}async function Fx(t){return Ll(`/api/agents/${encodeURIComponent(t)}`)}async function Ap(t){return Ll("/api/jobs",t)}async function Yx(t){return Ll(`/api/jobs/${encodeURIComponent(t)}`)}async function Gx(t){return ca(`/api/jobs/${encodeURIComponent(t)}/cancel`,{})}async function Xx(t,l){return ca(`/api/jobs/${encodeURIComponent(t)}/fork`,l??{})}async function Qx(){return Ll("/api/schedules")}async function zp(t,l){return ca(`/api/agents/${encodeURIComponent(t)}/trigger`,l??{})}async function Kx(t,l){return ca(`/api/schedules/${encodeURIComponent(t)}/${encodeURIComponent(l)}/enable`,{})}async function Px(t,l){return ca(`/api/schedules/${encodeURIComponent(t)}/${encodeURIComponent(l)}/disable`,{})}async function Wx(t){return ca(`/api/chat/${encodeURIComponent(t)}/sessions`,{})}async function J0(t){return Ll(`/api/chat/${encodeURIComponent(t)}/sessions`)}async function e6(t,l){return Ll(`/api/chat/${encodeURIComponent(t)}/sessions/${encodeURIComponent(l)}`)}async function t6(t,l){await Ix(`/api/chat/${encodeURIComponent(t)}/sessions/${encodeURIComponent(l)}`)}const n6=20,I0={jobs:[],totalJobs:0,jobsLoading:!1,jobsError:null,jobsFilter:{},jobsOffset:0,jobsLimit:n6,selectedJobId:null,selectedJob:null,selectedJobLoading:!1},l6=(t,l)=>({...I0,fetchJobs:async()=>{const{jobsFilter:r,jobsOffset:i,jobsLimit:s}=l();t({jobsLoading:!0,jobsError:null});try{const o=await Ap({limit:s,offset:i,agentName:r.agentName,status:r.status});t({jobs:o.jobs,totalJobs:o.total,jobsLoading:!1})}catch(o){const c=o instanceof Error?o.message:"Failed to fetch jobs";t({jobsLoading:!1,jobsError:c})}},fetchJobDetail:async r=>{t({selectedJobLoading:!0});try{const i=await Yx(r);t({selectedJob:i,selectedJobId:r,selectedJobLoading:!1})}catch{t({selectedJob:null,selectedJobId:r,selectedJobLoading:!1})}},setJobsFilter:r=>{const i=l().jobsFilter;t({jobsFilter:{...i,...r},jobsOffset:0})},setJobsOffset:r=>{t({jobsOffset:r})},selectJob:r=>{r===null?t({selectedJobId:null,selectedJob:null,selectedJobLoading:!1}):(t({selectedJobId:r}),l().fetchJobDetail(r).catch(()=>{}))},clearJobsState:()=>{t(I0)}}),r6=5,F0={chatSessions:[],chatSessionsLoading:!1,chatMessages:[],chatMessagesLoading:!1,activeChatSessionId:null,chatStreaming:!1,chatStreamingContent:"",chatError:null,sidebarSessions:{},sidebarSessionsLoading:!1},a6=(t,l)=>({...F0,fetchChatSessions:async r=>{t({chatSessionsLoading:!0,chatError:null});try{const i=await J0(r);t({chatSessions:i.sessions,chatSessionsLoading:!1})}catch(i){const s=i instanceof Error?i.message:"Failed to fetch chat sessions";t({chatSessionsLoading:!1,chatError:s})}},fetchChatMessages:async(r,i)=>{t({chatMessagesLoading:!0,chatError:null});try{const s=await e6(r,i);t({chatMessages:s.messages,chatMessagesLoading:!1,activeChatSessionId:i})}catch(s){const o=s instanceof Error?s.message:"Failed to fetch chat messages";t({chatMessagesLoading:!1,chatError:o})}},createChatSession:async r=>{t({chatError:null});try{const i=await Wx(r),s={sessionId:i.sessionId,createdAt:i.createdAt,lastMessageAt:i.createdAt,messageCount:0,preview:""};return t(o=>({chatSessions:[s,...o.chatSessions],activeChatSessionId:i.sessionId,chatMessages:[]})),i.sessionId}catch(i){const s=i instanceof Error?i.message:"Failed to create chat session";return t({chatError:s}),null}},deleteChatSession:async(r,i)=>{t({chatError:null});try{await t6(r,i);const{activeChatSessionId:s}=l();t(o=>({chatSessions:o.chatSessions.filter(c=>c.sessionId!==i),activeChatSessionId:s===i?null:s,chatMessages:s===i?[]:o.chatMessages}))}catch(s){const o=s instanceof Error?s.message:"Failed to delete chat session";t({chatError:o})}},setActiveChatSession:r=>{t({activeChatSessionId:r,chatMessages:r===null?[]:l().chatMessages,chatStreaming:!1,chatStreamingContent:""})},appendStreamingChunk:r=>{t(i=>({chatStreaming:!0,chatStreamingContent:i.chatStreamingContent+r}))},completeStreaming:()=>{const{chatStreamingContent:r}=l();if(r){const i={role:"assistant",content:r,timestamp:new Date().toISOString()};t(s=>({chatMessages:[...s.chatMessages,i],chatStreaming:!1,chatStreamingContent:""}))}else t({chatStreaming:!1,chatStreamingContent:""})},addUserMessage:r=>{const i={role:"user",content:r,timestamp:new Date().toISOString()};t(s=>({chatMessages:[...s.chatMessages,i],chatStreaming:!0,chatStreamingContent:""}))},setChatError:r=>{t({chatError:r,chatStreaming:!1,chatStreamingContent:""})},fetchSidebarSessions:async r=>{t({sidebarSessionsLoading:!0});try{const i=await Promise.all(r.map(o=>J0(o).then(c=>({name:o,sessions:c.sessions.slice(0,r6)})).catch(()=>({name:o,sessions:[]})))),s={};for(const{name:o,sessions:c}of i)s[o]=c;t({sidebarSessions:s,sidebarSessionsLoading:!1})}catch{t({sidebarSessionsLoading:!1})}},clearChatState:()=>{t(F0)}}),Y0={schedules:[],schedulesLoading:!1,schedulesError:null},i6=(t,l)=>({...Y0,fetchSchedules:async()=>{t({schedulesLoading:!0,schedulesError:null});try{const r=await Qx();t({schedules:r,schedulesLoading:!1})}catch(r){const i=r instanceof Error?r.message:"Failed to fetch schedules";t({schedulesLoading:!1,schedulesError:i})}},triggerSchedule:async(r,i)=>{t({schedulesError:null});try{await zp(r,{scheduleName:i}),await l().fetchSchedules()}catch(s){const o=s instanceof Error?s.message:"Failed to trigger schedule";t({schedulesError:o})}},enableSchedule:async(r,i)=>{t({schedulesError:null});try{const s=await Kx(r,i);t(o=>({schedules:o.schedules.map(c=>c.agentName===r&&c.name===i?s:c)}))}catch(s){const o=s instanceof Error?s.message:"Failed to enable schedule";t({schedulesError:o})}},disableSchedule:async(r,i)=>{t({schedulesError:null});try{const s=await Px(r,i);t(o=>({schedules:o.schedules.map(c=>c.agentName===r&&c.name===i?s:c)}))}catch(s){const o=s instanceof Error?s.message:"Failed to disable schedule";t({schedulesError:o})}},updateScheduleFromWS:()=>{l().fetchSchedules().catch(()=>{})},clearSchedulesState:()=>{t(Y0)}});let G0=0;function u6(){return G0+=1,`toast-${G0}-${Date.now()}`}const s6={toasts:[]},o6=t=>({...s6,addToast:l=>{const r=u6(),i=l.duration??3e3;t(s=>({toasts:[...s.toasts,{...l,id:r,duration:i}]})),i>0&&setTimeout(()=>{t(s=>({toasts:s.toasts.filter(o=>o.id!==r)}))},i)},removeToast:l=>t(r=>({toasts:r.toasts.filter(i=>i.id!==l)}))}),ze=Tx()((...t)=>({...Lx(...t),...qx(...t),...Vx(...t),...l6(...t),...a6(...t),...i6(...t),...o6(...t)}));function xs(){return ze(Vt(t=>({fleetStatus:t.fleetStatus,agents:t.agents,recentJobs:t.recentJobs,connectionStatus:t.connectionStatus,lastUpdated:t.lastUpdated})))}function c6(t){return ze(l=>t?l.agents.find(r=>r.name===t)??null:null)}function Tp(){return ze(Vt(t=>({sidebarCollapsed:t.sidebarCollapsed,sidebarMobileOpen:t.sidebarMobileOpen,selectedAgent:t.selectedAgent,activeView:t.activeView,theme:t.theme,rightPanelOpen:t.rightPanelOpen})))}function _p(){return ze(Vt(t=>({toggleSidebar:t.toggleSidebar,setSidebarCollapsed:t.setSidebarCollapsed,toggleSidebarMobile:t.toggleSidebarMobile,setSidebarMobileOpen:t.setSidebarMobileOpen,selectAgent:t.selectAgent,setActiveView:t.setActiveView,setTheme:t.setTheme,toggleRightPanel:t.toggleRightPanel,setRightPanelOpen:t.setRightPanelOpen})))}function f6(){return ze(Vt(t=>({setFleetStatus:t.setFleetStatus,setAgents:t.setAgents,updateAgent:t.updateAgent,setRecentJobs:t.setRecentJobs,addJob:t.addJob,completeJob:t.completeJob,failJob:t.failJob,cancelJob:t.cancelJob,setConnectionStatus:t.setConnectionStatus})))}const X0=[];function d6(t){return ze(l=>t?l.outputsByJob[t]??X0:X0)}function h6(){return ze(Vt(t=>({jobs:t.jobs,totalJobs:t.totalJobs,jobsLoading:t.jobsLoading,jobsError:t.jobsError,jobsFilter:t.jobsFilter,jobsOffset:t.jobsOffset,jobsLimit:t.jobsLimit})))}function Rp(){return ze(Vt(t=>({fetchJobs:t.fetchJobs,fetchJobDetail:t.fetchJobDetail,setJobsFilter:t.setJobsFilter,setJobsOffset:t.setJobsOffset,selectJob:t.selectJob,clearJobsState:t.clearJobsState})))}function m6(){return ze(Vt(t=>({selectedJobId:t.selectedJobId,selectedJob:t.selectedJob,selectedJobLoading:t.selectedJobLoading})))}function Dp(){return ze(Vt(t=>({chatSessions:t.chatSessions,chatSessionsLoading:t.chatSessionsLoading,chatError:t.chatError})))}function K1(){return ze(Vt(t=>({chatMessages:t.chatMessages,chatMessagesLoading:t.chatMessagesLoading,activeChatSessionId:t.activeChatSessionId,chatStreaming:t.chatStreaming,chatStreamingContent:t.chatStreamingContent,chatError:t.chatError})))}function bs(){return ze(Vt(t=>({fetchChatSessions:t.fetchChatSessions,fetchChatMessages:t.fetchChatMessages,createChatSession:t.createChatSession,deleteChatSession:t.deleteChatSession,setActiveChatSession:t.setActiveChatSession,appendStreamingChunk:t.appendStreamingChunk,completeStreaming:t.completeStreaming,addUserMessage:t.addUserMessage,setChatError:t.setChatError,fetchSidebarSessions:t.fetchSidebarSessions,clearChatState:t.clearChatState})))}function p6(){return ze(Vt(t=>({sidebarSessions:t.sidebarSessions,sidebarSessionsLoading:t.sidebarSessionsLoading})))}function g6(){return ze(Vt(t=>({schedules:t.schedules,schedulesLoading:t.schedulesLoading,schedulesError:t.schedulesError})))}function y6(){return ze(Vt(t=>({fetchSchedules:t.fetchSchedules,triggerSchedule:t.triggerSchedule,enableSchedule:t.enableSchedule,disableSchedule:t.disableSchedule,updateScheduleFromWS:t.updateScheduleFromWS,clearSchedulesState:t.clearSchedulesState})))}function x6(){return ze(t=>t.toasts)}function b6(){return ze(Vt(t=>({addToast:t.addToast,removeToast:t.removeToast})))}function v6(){const t=M.useRef(null),l=M.useRef("disconnected"),r=M.useRef(!1),i=ze(T=>T.setFleetStatus),s=ze(T=>T.setAgents),o=ze(T=>T.updateAgent),c=ze(T=>T.addJob),d=ze(T=>T.completeJob),m=ze(T=>T.failJob),p=ze(T=>T.cancelJob),x=ze(T=>T.setConnectionStatus),y=ze(T=>T.connectionStatus),v=ze(T=>T.appendOutput),S=ze(T=>T.appendStreamingChunk),C=ze(T=>T.completeStreaming),z=ze(T=>T.setChatError),j=ze(T=>T.updateScheduleFromWS),E=ze(T=>T.addToast);return M.useEffect(()=>{const T=F=>{switch(F.type){case"fleet:status":i(F.payload);break;case"agent:updated":o(F.payload);break;case"job:created":c(F.payload);break;case"job:completed":d(F.payload),E({message:`Job completed for ${F.payload.agentName}`,type:"success"});break;case"job:failed":m(F.payload),E({message:`Job failed for ${F.payload.agentName}`,type:"error",duration:5e3});break;case"job:cancelled":p(F.payload);break;case"schedule:triggered":j(),E({message:`Schedule triggered for ${F.payload.agentName}`,type:"info"});break;case"job:output":{const{jobId:ee,agentName:O,data:V,stream:se}=F.payload;v(ee,O,V,se);break}case"pong":break;case"chat:response":{const{chunk:ee}=F.payload;S(ee);break}case"chat:complete":{C();break}case"chat:error":{z(F.payload.error);break}}},D=F=>{const ee=l.current;l.current=F,x(F),F==="connected"&&(ee==="disconnected"||ee==="reconnecting")&&r.current&&(async()=>{try{const[O,V]=await Promise.all([Np(),jp()]);i(O),s(V)}catch{}})(),F==="connected"&&(r.current=!0)};return t.current=Ex({onMessage:T,onStatusChange:D}),window.__herdWsClient=t.current,()=>{var F;(F=t.current)==null||F.disconnect(),t.current=null,delete window.__herdWsClient}},[]),{connectionStatus:y,subscribe:T=>{var D;return(D=t.current)==null?void 0:D.subscribe(T)},unsubscribe:T=>{var D;return(D=t.current)==null?void 0:D.unsubscribe(T)},reconnect:()=>{var T;return(T=t.current)==null?void 0:T.reconnect()}}}function Op(){const[t,l]=M.useState(!0),[r,i]=M.useState(null),[s,o]=M.useState(0),c=ze(p=>p.setFleetStatus),d=ze(p=>p.setAgents);return M.useEffect(()=>{let p=!1;async function x(){l(!0),i(null);try{const[y,v]=await Promise.all([Np(),jp()]);if(p)return;c(y),d(v),l(!1)}catch(y){if(p)return;const v=y instanceof Error?y.message:"Failed to fetch fleet data";i(v),l(!1)}}return x(),()=>{p=!0}},[s]),{loading:t,error:r,retry:()=>{o(p=>p+1)}}}const vs=M.createContext(null);vs.displayName="PanelGroupContext";const rt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},P1=10,ar=M.useLayoutEffect,Q0=q5.useId,S6=typeof Q0=="function"?Q0:()=>null;let w6=0;function W1(t=null){const l=S6(),r=M.useRef(t||l||null);return r.current===null&&(r.current=""+w6++),t??r.current}function Lp({children:t,className:l="",collapsedSize:r,collapsible:i,defaultSize:s,forwardedRef:o,id:c,maxSize:d,minSize:m,onCollapse:p,onExpand:x,onResize:y,order:v,style:S,tagName:C="div",...z}){const j=M.useContext(vs);if(j===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:T,getPanelSize:D,getPanelStyle:F,groupId:ee,isPanelCollapsed:O,reevaluatePanelConstraints:V,registerPanel:se,resizePanel:de,unregisterPanel:L}=j,ae=W1(c),te=M.useRef({callbacks:{onCollapse:p,onExpand:x,onResize:y},constraints:{collapsedSize:r,collapsible:i,defaultSize:s,maxSize:d,minSize:m},id:ae,idIsFromProps:c!==void 0,order:v});M.useRef({didLogMissingDefaultSizeWarning:!1}),ar(()=>{const{callbacks:ue,constraints:K}=te.current,H={...K};te.current.id=ae,te.current.idIsFromProps=c!==void 0,te.current.order=v,ue.onCollapse=p,ue.onExpand=x,ue.onResize=y,K.collapsedSize=r,K.collapsible=i,K.defaultSize=s,K.maxSize=d,K.minSize=m,(H.collapsedSize!==K.collapsedSize||H.collapsible!==K.collapsible||H.maxSize!==K.maxSize||H.minSize!==K.minSize)&&V(te.current,H)}),ar(()=>{const ue=te.current;return se(ue),()=>{L(ue)}},[v,ae,se,L]),M.useImperativeHandle(o,()=>({collapse:()=>{E(te.current)},expand:ue=>{T(te.current,ue)},getId(){return ae},getSize(){return D(te.current)},isCollapsed(){return O(te.current)},isExpanded(){return!O(te.current)},resize:ue=>{de(te.current,ue)}}),[E,T,D,O,ae,de]);const ve=F(te.current,s);return M.createElement(C,{...z,children:t,className:l,id:ae,style:{...ve,...S},[rt.groupId]:ee,[rt.panel]:"",[rt.panelCollapsible]:i||void 0,[rt.panelId]:ae,[rt.panelSize]:parseFloat(""+ve.flexGrow).toFixed(1)})}const ns=M.forwardRef((t,l)=>M.createElement(Lp,{...t,forwardedRef:l}));Lp.displayName="Panel";ns.displayName="forwardRef(Panel)";let N1=null,ls=-1,Ol=null;function k6(t,l){if(l){const r=(l&qp)!==0,i=(l&$p)!==0,s=(l&Vp)!==0,o=(l&Jp)!==0;if(r)return s?"se-resize":o?"ne-resize":"e-resize";if(i)return s?"sw-resize":o?"nw-resize":"w-resize";if(s)return"s-resize";if(o)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function C6(){Ol!==null&&(document.head.removeChild(Ol),N1=null,Ol=null,ls=-1)}function e1(t,l){var r,i;const s=k6(t,l);if(N1!==s){if(N1=s,Ol===null&&(Ol=document.createElement("style"),document.head.appendChild(Ol)),ls>=0){var o;(o=Ol.sheet)===null||o===void 0||o.removeRule(ls)}ls=(r=(i=Ol.sheet)===null||i===void 0?void 0:i.insertRule(`*{cursor: ${s} !important;}`))!==null&&r!==void 0?r:-1}}function Up(t){return t.type==="keydown"}function Hp(t){return t.type.startsWith("pointer")}function Bp(t){return t.type.startsWith("mouse")}function Ss(t){if(Hp(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(Bp(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function E6(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function M6(t,l,r){return t.x<l.x+l.width&&t.x+t.width>l.x&&t.y<l.y+l.height&&t.y+t.height>l.y}function N6(t,l){if(t===l)throw new Error("Cannot compare node with itself");const r={a:W0(t),b:W0(l)};let i;for(;r.a.at(-1)===r.b.at(-1);)t=r.a.pop(),l=r.b.pop(),i=t;Me(i,"Stacking order can only be calculated for elements with a common ancestor");const s={a:P0(K0(r.a)),b:P0(K0(r.b))};if(s.a===s.b){const o=i.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=o.length;for(;d--;){const m=o[d];if(m===c.a)return 1;if(m===c.b)return-1}}return Math.sign(s.a-s.b)}const j6=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function A6(t){var l;const r=getComputedStyle((l=Zp(t))!==null&&l!==void 0?l:t).display;return r==="flex"||r==="inline-flex"}function z6(t){const l=getComputedStyle(t);return!!(l.position==="fixed"||l.zIndex!=="auto"&&(l.position!=="static"||A6(t))||+l.opacity<1||"transform"in l&&l.transform!=="none"||"webkitTransform"in l&&l.webkitTransform!=="none"||"mixBlendMode"in l&&l.mixBlendMode!=="normal"||"filter"in l&&l.filter!=="none"||"webkitFilter"in l&&l.webkitFilter!=="none"||"isolation"in l&&l.isolation==="isolate"||j6.test(l.willChange)||l.webkitOverflowScrolling==="touch")}function K0(t){let l=t.length;for(;l--;){const r=t[l];if(Me(r,"Missing node"),z6(r))return r}return null}function P0(t){return t&&Number(getComputedStyle(t).zIndex)||0}function W0(t){const l=[];for(;t;)l.push(t),t=Zp(t);return l}function Zp(t){const{parentNode:l}=t;return l&&l instanceof ShadowRoot?l.host:l}const qp=1,$p=2,Vp=4,Jp=8,T6=E6()==="coarse";let kn=[],ra=!1,rr=new Map,ws=new Map;const vi=new Set;function _6(t,l,r,i,s){var o;const{ownerDocument:c}=l,d={direction:r,element:l,hitAreaMargins:i,setResizeHandlerState:s},m=(o=rr.get(c))!==null&&o!==void 0?o:0;return rr.set(c,m+1),vi.add(d),us(),function(){var x;ws.delete(t),vi.delete(d);const y=(x=rr.get(c))!==null&&x!==void 0?x:1;if(rr.set(c,y-1),us(),y===1&&rr.delete(c),kn.includes(d)){const v=kn.indexOf(d);v>=0&&kn.splice(v,1),tf(),s("up",!0,null)}}}function R6(t){const{target:l}=t,{x:r,y:i}=Ss(t);ra=!0,ef({target:l,x:r,y:i}),us(),kn.length>0&&(ss("down",t),t.preventDefault(),Ip(l)||t.stopImmediatePropagation())}function t1(t){const{x:l,y:r}=Ss(t);if(ra&&t.buttons===0&&(ra=!1,ss("up",t)),!ra){const{target:i}=t;ef({target:i,x:l,y:r})}ss("move",t),tf(),kn.length>0&&t.preventDefault()}function n1(t){const{target:l}=t,{x:r,y:i}=Ss(t);ws.clear(),ra=!1,kn.length>0&&(t.preventDefault(),Ip(l)||t.stopImmediatePropagation()),ss("up",t),ef({target:l,x:r,y:i}),tf(),us()}function Ip(t){let l=t;for(;l;){if(l.hasAttribute(rt.resizeHandle))return!0;l=l.parentElement}return!1}function ef({target:t,x:l,y:r}){kn.splice(0);let i=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(i=t),vi.forEach(s=>{const{element:o,hitAreaMargins:c}=s,d=o.getBoundingClientRect(),{bottom:m,left:p,right:x,top:y}=d,v=T6?c.coarse:c.fine;if(l>=p-v&&l<=x+v&&r>=y-v&&r<=m+v){if(i!==null&&document.contains(i)&&o!==i&&!o.contains(i)&&!i.contains(o)&&N6(i,o)>0){let C=i,z=!1;for(;C&&!C.contains(o);){if(M6(C.getBoundingClientRect(),d)){z=!0;break}C=C.parentElement}if(z)return}kn.push(s)}})}function l1(t,l){ws.set(t,l)}function tf(){let t=!1,l=!1;kn.forEach(i=>{const{direction:s}=i;s==="horizontal"?t=!0:l=!0});let r=0;ws.forEach(i=>{r|=i}),t&&l?e1("intersection",r):t?e1("horizontal",r):l?e1("vertical",r):C6()}let r1=new AbortController;function us(){r1.abort(),r1=new AbortController;const t={capture:!0,signal:r1.signal};vi.size&&(ra?(kn.length>0&&rr.forEach((l,r)=>{const{body:i}=r;l>0&&(i.addEventListener("contextmenu",n1,t),i.addEventListener("pointerleave",t1,t),i.addEventListener("pointermove",t1,t))}),window.addEventListener("pointerup",n1,t),window.addEventListener("pointercancel",n1,t)):rr.forEach((l,r)=>{const{body:i}=r;l>0&&(i.addEventListener("pointerdown",R6,t),i.addEventListener("pointermove",t1,t))}))}function ss(t,l){vi.forEach(r=>{const{setResizeHandlerState:i}=r,s=kn.includes(r);i(t,s,l)})}function D6(){const[t,l]=M.useState(0);return M.useCallback(()=>l(r=>r+1),[])}function Me(t,l){if(!t)throw console.error(l),Error(l)}function ir(t,l,r=P1){return t.toFixed(r)===l.toFixed(r)?0:t>l?1:-1}function Wn(t,l,r=P1){return ir(t,l,r)===0}function en(t,l,r){return ir(t,l,r)===0}function O6(t,l,r){if(t.length!==l.length)return!1;for(let i=0;i<t.length;i++){const s=t[i],o=l[i];if(!en(s,o,r))return!1}return!0}function la({panelConstraints:t,panelIndex:l,size:r}){const i=t[l];Me(i!=null,`Panel constraints not found for index ${l}`);let{collapsedSize:s=0,collapsible:o,maxSize:c=100,minSize:d=0}=i;if(ir(r,d)<0)if(o){const m=(s+d)/2;ir(r,m)<0?r=s:r=d}else r=d;return r=Math.min(c,r),r=parseFloat(r.toFixed(P1)),r}function mi({delta:t,initialLayout:l,panelConstraints:r,pivotIndices:i,prevLayout:s,trigger:o}){if(en(t,0))return l;const c=[...l],[d,m]=i;Me(d!=null,"Invalid first pivot index"),Me(m!=null,"Invalid second pivot index");let p=0;if(o==="keyboard"){{const y=t<0?m:d,v=r[y];Me(v,`Panel constraints not found for index ${y}`);const{collapsedSize:S=0,collapsible:C,minSize:z=0}=v;if(C){const j=l[y];if(Me(j!=null,`Previous layout not found for panel index ${y}`),en(j,S)){const E=z-j;ir(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}{const y=t<0?d:m,v=r[y];Me(v,`No panel constraints found for index ${y}`);const{collapsedSize:S=0,collapsible:C,minSize:z=0}=v;if(C){const j=l[y];if(Me(j!=null,`Previous layout not found for panel index ${y}`),en(j,z)){const E=j-S;ir(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}}{const y=t<0?1:-1;let v=t<0?m:d,S=0;for(;;){const z=l[v];Me(z!=null,`Previous layout not found for panel index ${v}`);const E=la({panelConstraints:r,panelIndex:v,size:100})-z;if(S+=E,v+=y,v<0||v>=r.length)break}const C=Math.min(Math.abs(t),Math.abs(S));t=t<0?0-C:C}{let v=t<0?d:m;for(;v>=0&&v<r.length;){const S=Math.abs(t)-Math.abs(p),C=l[v];Me(C!=null,`Previous layout not found for panel index ${v}`);const z=C-S,j=la({panelConstraints:r,panelIndex:v,size:z});if(!en(C,j)&&(p+=C-j,c[v]=j,p.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?v--:v++}}if(O6(s,c))return s;{const y=t<0?m:d,v=l[y];Me(v!=null,`Previous layout not found for panel index ${y}`);const S=v+p,C=la({panelConstraints:r,panelIndex:y,size:S});if(c[y]=C,!en(C,S)){let z=S-C,E=t<0?m:d;for(;E>=0&&E<r.length;){const T=c[E];Me(T!=null,`Previous layout not found for panel index ${E}`);const D=T+z,F=la({panelConstraints:r,panelIndex:E,size:D});if(en(T,F)||(z-=F-T,c[E]=F),en(z,0))break;t>0?E--:E++}}}const x=c.reduce((y,v)=>v+y,0);return en(x,100)?c:s}function L6({layout:t,panelsArray:l,pivotIndices:r}){let i=0,s=100,o=0,c=0;const d=r[0];Me(d!=null,"No pivot index found"),l.forEach((y,v)=>{const{constraints:S}=y,{maxSize:C=100,minSize:z=0}=S;v===d?(i=z,s=C):(o+=z,c+=C)});const m=Math.min(s,100-o),p=Math.max(i,100-c),x=t[d];return{valueMax:m,valueMin:p,valueNow:x}}function Si(t,l=document){return Array.from(l.querySelectorAll(`[${rt.resizeHandleId}][data-panel-group-id="${t}"]`))}function Fp(t,l,r=document){const s=Si(t,r).findIndex(o=>o.getAttribute(rt.resizeHandleId)===l);return s??null}function Yp(t,l,r){const i=Fp(t,l,r);return i!=null?[i,i+1]:[-1,-1]}function Gp(t,l=document){var r;if(l instanceof HTMLElement&&(l==null||(r=l.dataset)===null||r===void 0?void 0:r.panelGroupId)==t)return l;const i=l.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return i||null}function ks(t,l=document){const r=l.querySelector(`[${rt.resizeHandleId}="${t}"]`);return r||null}function U6(t,l,r,i=document){var s,o,c,d;const m=ks(l,i),p=Si(t,i),x=m?p.indexOf(m):-1,y=(s=(o=r[x])===null||o===void 0?void 0:o.id)!==null&&s!==void 0?s:null,v=(c=(d=r[x+1])===null||d===void 0?void 0:d.id)!==null&&c!==void 0?c:null;return[y,v]}function H6({committedValuesRef:t,eagerValuesRef:l,groupId:r,layout:i,panelDataArray:s,panelGroupElement:o,setLayout:c}){M.useRef({didWarnAboutMissingResizeHandle:!1}),ar(()=>{if(!o)return;const d=Si(r,o);for(let m=0;m<s.length-1;m++){const{valueMax:p,valueMin:x,valueNow:y}=L6({layout:i,panelsArray:s,pivotIndices:[m,m+1]}),v=d[m];if(v!=null){const S=s[m];Me(S,`No panel data found for index "${m}"`),v.setAttribute("aria-controls",S.id),v.setAttribute("aria-valuemax",""+Math.round(p)),v.setAttribute("aria-valuemin",""+Math.round(x)),v.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{d.forEach((m,p)=>{m.removeAttribute("aria-controls"),m.removeAttribute("aria-valuemax"),m.removeAttribute("aria-valuemin"),m.removeAttribute("aria-valuenow")})}},[r,i,s,o]),M.useEffect(()=>{if(!o)return;const d=l.current;Me(d,"Eager values not found");const{panelDataArray:m}=d,p=Gp(r,o);Me(p!=null,`No group found for id "${r}"`);const x=Si(r,o);Me(x,`No resize handles found for group id "${r}"`);const y=x.map(v=>{const S=v.getAttribute(rt.resizeHandleId);Me(S,"Resize handle element has no handle id attribute");const[C,z]=U6(r,S,m,o);if(C==null||z==null)return()=>{};const j=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const T=m.findIndex(D=>D.id===C);if(T>=0){const D=m[T];Me(D,`No panel data found for index ${T}`);const F=i[T],{collapsedSize:ee=0,collapsible:O,minSize:V=0}=D.constraints;if(F!=null&&O){const se=mi({delta:en(F,ee)?V-ee:ee-F,initialLayout:i,panelConstraints:m.map(de=>de.constraints),pivotIndices:Yp(r,S,o),prevLayout:i,trigger:"keyboard"});i!==se&&c(se)}}break}}};return v.addEventListener("keydown",j),()=>{v.removeEventListener("keydown",j)}});return()=>{y.forEach(v=>v())}},[o,t,l,r,i,s,c])}function em(t,l){if(t.length!==l.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==l[r])return!1;return!0}function Xp(t,l){const r=t==="horizontal",{x:i,y:s}=Ss(l);return r?i:s}function B6(t,l,r,i,s){const o=r==="horizontal",c=ks(l,s);Me(c,`No resize handle element found for id "${l}"`);const d=c.getAttribute(rt.groupId);Me(d,"Resize handle element has no group id attribute");let{initialCursorPosition:m}=i;const p=Xp(r,t),x=Gp(d,s);Me(x,`No group element found for id "${d}"`);const y=x.getBoundingClientRect(),v=o?y.width:y.height;return(p-m)/v*100}function Z6(t,l,r,i,s,o){if(Up(t)){const c=r==="horizontal";let d=0;t.shiftKey?d=100:s!=null?d=s:d=10;let m=0;switch(t.key){case"ArrowDown":m=c?0:d;break;case"ArrowLeft":m=c?-d:0;break;case"ArrowRight":m=c?d:0;break;case"ArrowUp":m=c?0:-d;break;case"End":m=100;break;case"Home":m=-100;break}return m}else return i==null?0:B6(t,l,r,i,o)}function q6({panelDataArray:t}){const l=Array(t.length),r=t.map(o=>o.constraints);let i=0,s=100;for(let o=0;o<t.length;o++){const c=r[o];Me(c,`Panel constraints not found for index ${o}`);const{defaultSize:d}=c;d!=null&&(i++,l[o]=d,s-=d)}for(let o=0;o<t.length;o++){const c=r[o];Me(c,`Panel constraints not found for index ${o}`);const{defaultSize:d}=c;if(d!=null)continue;const m=t.length-i,p=s/m;i++,l[o]=p,s-=p}return l}function Xr(t,l,r){l.forEach((i,s)=>{const o=t[s];Me(o,`Panel data not found for index ${s}`);const{callbacks:c,constraints:d,id:m}=o,{collapsedSize:p=0,collapsible:x}=d,y=r[m];if(y==null||i!==y){r[m]=i;const{onCollapse:v,onExpand:S,onResize:C}=c;C&&C(i,y),x&&(v||S)&&(S&&(y==null||Wn(y,p))&&!Wn(i,p)&&S(),v&&(y==null||!Wn(y,p))&&Wn(i,p)&&v())}})}function Gu(t,l){if(t.length!==l.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!=l[r])return!1;return!0}function $6({defaultSize:t,dragState:l,layout:r,panelData:i,panelIndex:s,precision:o=3}){const c=r[s];let d;return c==null?d=t!=null?t.toPrecision(o):"1":i.length===1?d="1":d=c.toPrecision(o),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:l!==null?"none":void 0}}function V6(t,l=10){let r=null;return(...s)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...s)},l)}}function tm(t){try{if(typeof localStorage<"u")t.getItem=l=>localStorage.getItem(l),t.setItem=(l,r)=>{localStorage.setItem(l,r)};else throw new Error("localStorage not supported in this environment")}catch(l){console.error(l),t.getItem=()=>null,t.setItem=()=>{}}}function Qp(t){return`react-resizable-panels:${t}`}function Kp(t){return t.map(l=>{const{constraints:r,id:i,idIsFromProps:s,order:o}=l;return s?i:o?`${o}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((l,r)=>l.localeCompare(r)).join(",")}function Pp(t,l){try{const r=Qp(t),i=l.getItem(r);if(i){const s=JSON.parse(i);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function J6(t,l,r){var i,s;const o=(i=Pp(t,r))!==null&&i!==void 0?i:{},c=Kp(l);return(s=o[c])!==null&&s!==void 0?s:null}function I6(t,l,r,i,s){var o;const c=Qp(t),d=Kp(l),m=(o=Pp(t,s))!==null&&o!==void 0?o:{};m[d]={expandToSizes:Object.fromEntries(r.entries()),layout:i};try{s.setItem(c,JSON.stringify(m))}catch(p){console.error(p)}}function nm({layout:t,panelConstraints:l}){const r=[...t],i=r.reduce((o,c)=>o+c,0);if(r.length!==l.length)throw Error(`Invalid ${l.length} panel layout: ${r.map(o=>`${o}%`).join(", ")}`);if(!en(i,100)&&r.length>0)for(let o=0;o<l.length;o++){const c=r[o];Me(c!=null,`No layout data found for index ${o}`);const d=100/i*c;r[o]=d}let s=0;for(let o=0;o<l.length;o++){const c=r[o];Me(c!=null,`No layout data found for index ${o}`);const d=la({panelConstraints:l,panelIndex:o,size:c});c!=d&&(s+=c-d,r[o]=d)}if(!en(s,0))for(let o=0;o<l.length;o++){const c=r[o];Me(c!=null,`No layout data found for index ${o}`);const d=c+s,m=la({panelConstraints:l,panelIndex:o,size:d});if(c!==m&&(s-=m-c,r[o]=m,en(s,0)))break}return r}const F6=100,pi={getItem:t=>(tm(pi),pi.getItem(t)),setItem:(t,l)=>{tm(pi),pi.setItem(t,l)}},lm={};function Wp({autoSaveId:t=null,children:l,className:r="",direction:i,forwardedRef:s,id:o=null,onLayout:c=null,keyboardResizeBy:d=null,storage:m=pi,style:p,tagName:x="div",...y}){const v=W1(o),S=M.useRef(null),[C,z]=M.useState(null),[j,E]=M.useState([]),T=D6(),D=M.useRef({}),F=M.useRef(new Map),ee=M.useRef(0),O=M.useRef({autoSaveId:t,direction:i,dragState:C,id:v,keyboardResizeBy:d,onLayout:c,storage:m}),V=M.useRef({layout:j,panelDataArray:[],panelDataArrayChanged:!1});M.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),M.useImperativeHandle(s,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:k}=V.current;return k},setLayout:k=>{const{onLayout:X}=O.current,{layout:re,panelDataArray:W}=V.current,ne=nm({layout:k,panelConstraints:W.map(ce=>ce.constraints)});em(re,ne)||(E(ne),V.current.layout=ne,X&&X(ne),Xr(W,ne,D.current))}}),[]),ar(()=>{O.current.autoSaveId=t,O.current.direction=i,O.current.dragState=C,O.current.id=v,O.current.onLayout=c,O.current.storage=m}),H6({committedValuesRef:O,eagerValuesRef:V,groupId:v,layout:j,panelDataArray:V.current.panelDataArray,setLayout:E,panelGroupElement:S.current}),M.useEffect(()=>{const{panelDataArray:k}=V.current;if(t){if(j.length===0||j.length!==k.length)return;let X=lm[t];X==null&&(X=V6(I6,F6),lm[t]=X);const re=[...k],W=new Map(F.current);X(t,re,W,j,m)}},[t,j,m]),M.useEffect(()=>{});const se=M.useCallback(k=>{const{onLayout:X}=O.current,{layout:re,panelDataArray:W}=V.current;if(k.constraints.collapsible){const ne=W.map(st=>st.constraints),{collapsedSize:ce=0,panelSize:me,pivotIndices:Le}=nr(W,k,re);if(Me(me!=null,`Panel size not found for panel "${k.id}"`),!Wn(me,ce)){F.current.set(k.id,me);const Mt=ea(W,k)===W.length-1?me-ce:ce-me,Fe=mi({delta:Mt,initialLayout:re,panelConstraints:ne,pivotIndices:Le,prevLayout:re,trigger:"imperative-api"});Gu(re,Fe)||(E(Fe),V.current.layout=Fe,X&&X(Fe),Xr(W,Fe,D.current))}}},[]),de=M.useCallback((k,X)=>{const{onLayout:re}=O.current,{layout:W,panelDataArray:ne}=V.current;if(k.constraints.collapsible){const ce=ne.map(at=>at.constraints),{collapsedSize:me=0,panelSize:Le=0,minSize:st=0,pivotIndices:Mt}=nr(ne,k,W),Fe=X??st;if(Wn(Le,me)){const at=F.current.get(k.id),nn=at!=null&&at>=Fe?at:Fe,al=ea(ne,k)===ne.length-1?Le-nn:nn-Le,pt=mi({delta:al,initialLayout:W,panelConstraints:ce,pivotIndices:Mt,prevLayout:W,trigger:"imperative-api"});Gu(W,pt)||(E(pt),V.current.layout=pt,re&&re(pt),Xr(ne,pt,D.current))}}},[]),L=M.useCallback(k=>{const{layout:X,panelDataArray:re}=V.current,{panelSize:W}=nr(re,k,X);return Me(W!=null,`Panel size not found for panel "${k.id}"`),W},[]),ae=M.useCallback((k,X)=>{const{panelDataArray:re}=V.current,W=ea(re,k);return $6({defaultSize:X,dragState:C,layout:j,panelData:re,panelIndex:W})},[C,j]),te=M.useCallback(k=>{const{layout:X,panelDataArray:re}=V.current,{collapsedSize:W=0,collapsible:ne,panelSize:ce}=nr(re,k,X);return Me(ce!=null,`Panel size not found for panel "${k.id}"`),ne===!0&&Wn(ce,W)},[]),ve=M.useCallback(k=>{const{layout:X,panelDataArray:re}=V.current,{collapsedSize:W=0,collapsible:ne,panelSize:ce}=nr(re,k,X);return Me(ce!=null,`Panel size not found for panel "${k.id}"`),!ne||ir(ce,W)>0},[]),ue=M.useCallback(k=>{const{panelDataArray:X}=V.current;X.push(k),X.sort((re,W)=>{const ne=re.order,ce=W.order;return ne==null&&ce==null?0:ne==null?-1:ce==null?1:ne-ce}),V.current.panelDataArrayChanged=!0,T()},[T]);ar(()=>{if(V.current.panelDataArrayChanged){V.current.panelDataArrayChanged=!1;const{autoSaveId:k,onLayout:X,storage:re}=O.current,{layout:W,panelDataArray:ne}=V.current;let ce=null;if(k){const Le=J6(k,ne,re);Le&&(F.current=new Map(Object.entries(Le.expandToSizes)),ce=Le.layout)}ce==null&&(ce=q6({panelDataArray:ne}));const me=nm({layout:ce,panelConstraints:ne.map(Le=>Le.constraints)});em(W,me)||(E(me),V.current.layout=me,X&&X(me),Xr(ne,me,D.current))}}),ar(()=>{const k=V.current;return()=>{k.layout=[]}},[]);const K=M.useCallback(k=>{let X=!1;const re=S.current;return re&&window.getComputedStyle(re,null).getPropertyValue("direction")==="rtl"&&(X=!0),function(ne){ne.preventDefault();const ce=S.current;if(!ce)return()=>null;const{direction:me,dragState:Le,id:st,keyboardResizeBy:Mt,onLayout:Fe}=O.current,{layout:at,panelDataArray:nn}=V.current,{initialLayout:gn}=Le??{},al=Yp(st,k,ce);let pt=Z6(ne,k,me,Le,Mt,ce);const Rn=me==="horizontal";Rn&&X&&(pt=-pt);const il=nn.map(pa=>pa.constraints),yn=mi({delta:pt,initialLayout:gn??at,panelConstraints:il,pivotIndices:al,prevLayout:at,trigger:Up(ne)?"keyboard":"mouse-or-touch"}),cr=!Gu(at,yn);(Hp(ne)||Bp(ne))&&ee.current!=pt&&(ee.current=pt,!cr&&pt!==0?Rn?l1(k,pt<0?qp:$p):l1(k,pt<0?Vp:Jp):l1(k,0)),cr&&(E(yn),V.current.layout=yn,Fe&&Fe(yn),Xr(nn,yn,D.current))}},[]),H=M.useCallback((k,X)=>{const{onLayout:re}=O.current,{layout:W,panelDataArray:ne}=V.current,ce=ne.map(at=>at.constraints),{panelSize:me,pivotIndices:Le}=nr(ne,k,W);Me(me!=null,`Panel size not found for panel "${k.id}"`);const Mt=ea(ne,k)===ne.length-1?me-X:X-me,Fe=mi({delta:Mt,initialLayout:W,panelConstraints:ce,pivotIndices:Le,prevLayout:W,trigger:"imperative-api"});Gu(W,Fe)||(E(Fe),V.current.layout=Fe,re&&re(Fe),Xr(ne,Fe,D.current))},[]),P=M.useCallback((k,X)=>{const{layout:re,panelDataArray:W}=V.current,{collapsedSize:ne=0,collapsible:ce}=X,{collapsedSize:me=0,collapsible:Le,maxSize:st=100,minSize:Mt=0}=k.constraints,{panelSize:Fe}=nr(W,k,re);Fe!=null&&(ce&&Le&&Wn(Fe,ne)?Wn(ne,me)||H(k,me):Fe<Mt?H(k,Mt):Fe>st&&H(k,st))},[H]),oe=M.useCallback((k,X)=>{const{direction:re}=O.current,{layout:W}=V.current;if(!S.current)return;const ne=ks(k,S.current);Me(ne,`Drag handle element not found for id "${k}"`);const ce=Xp(re,X);z({dragHandleId:k,dragHandleRect:ne.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:W})},[]),Se=M.useCallback(()=>{z(null)},[]),N=M.useCallback(k=>{const{panelDataArray:X}=V.current,re=ea(X,k);re>=0&&(X.splice(re,1),delete D.current[k.id],V.current.panelDataArrayChanged=!0,T())},[T]),_=M.useMemo(()=>({collapsePanel:se,direction:i,dragState:C,expandPanel:de,getPanelSize:L,getPanelStyle:ae,groupId:v,isPanelCollapsed:te,isPanelExpanded:ve,reevaluatePanelConstraints:P,registerPanel:ue,registerResizeHandle:K,resizePanel:H,startDragging:oe,stopDragging:Se,unregisterPanel:N,panelGroupElement:S.current}),[se,C,i,de,L,ae,v,te,ve,P,ue,K,H,oe,Se,N]),J={display:"flex",flexDirection:i==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return M.createElement(vs.Provider,{value:_},M.createElement(x,{...y,children:l,className:r,id:o,ref:S,style:{...J,...p},[rt.group]:"",[rt.groupDirection]:i,[rt.groupId]:v}))}const e3=M.forwardRef((t,l)=>M.createElement(Wp,{...t,forwardedRef:l}));Wp.displayName="PanelGroup";e3.displayName="forwardRef(PanelGroup)";function ea(t,l){return t.findIndex(r=>r===l||r.id===l.id)}function nr(t,l,r){const i=ea(t,l),o=i===t.length-1?[i-1,i]:[i,i+1],c=r[i];return{...l.constraints,panelSize:c,pivotIndices:o}}function Y6({disabled:t,handleId:l,resizeHandler:r,panelGroupElement:i}){M.useEffect(()=>{if(t||r==null||i==null)return;const s=ks(l,i);if(s==null)return;const o=c=>{if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),r(c);break}case"F6":{c.preventDefault();const d=s.getAttribute(rt.groupId);Me(d,`No group element found for id "${d}"`);const m=Si(d,i),p=Fp(d,l,i);Me(p!==null,`No resize element found for id "${l}"`);const x=c.shiftKey?p>0?p-1:m.length-1:p+1<m.length?p+1:0;m[x].focus();break}}};return s.addEventListener("keydown",o),()=>{s.removeEventListener("keydown",o)}},[i,t,l,r])}function j1({children:t=null,className:l="",disabled:r=!1,hitAreaMargins:i,id:s,onBlur:o,onClick:c,onDragging:d,onFocus:m,onPointerDown:p,onPointerUp:x,style:y={},tabIndex:v=0,tagName:S="div",...C}){var z,j;const E=M.useRef(null),T=M.useRef({onClick:c,onDragging:d,onPointerDown:p,onPointerUp:x});M.useEffect(()=>{T.current.onClick=c,T.current.onDragging=d,T.current.onPointerDown=p,T.current.onPointerUp=x});const D=M.useContext(vs);if(D===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:F,groupId:ee,registerResizeHandle:O,startDragging:V,stopDragging:se,panelGroupElement:de}=D,L=W1(s),[ae,te]=M.useState("inactive"),[ve,ue]=M.useState(!1),[K,H]=M.useState(null),P=M.useRef({state:ae});ar(()=>{P.current.state=ae}),M.useEffect(()=>{if(r)H(null);else{const _=O(L);H(()=>_)}},[r,L,O]);const oe=(z=i==null?void 0:i.coarse)!==null&&z!==void 0?z:15,Se=(j=i==null?void 0:i.fine)!==null&&j!==void 0?j:5;M.useEffect(()=>{if(r||K==null)return;const _=E.current;Me(_,"Element ref not attached");let J=!1;return _6(L,_,F,{coarse:oe,fine:Se},(X,re,W)=>{if(!re){te("inactive");return}switch(X){case"down":{te("drag"),J=!1,Me(W,'Expected event to be defined for "down" action'),V(L,W);const{onDragging:ne,onPointerDown:ce}=T.current;ne==null||ne(!0),ce==null||ce();break}case"move":{const{state:ne}=P.current;J=!0,ne!=="drag"&&te("hover"),Me(W,'Expected event to be defined for "move" action'),K(W);break}case"up":{te("hover"),se();const{onClick:ne,onDragging:ce,onPointerUp:me}=T.current;ce==null||ce(!1),me==null||me(),J||ne==null||ne();break}}})},[oe,F,r,Se,O,L,K,V,se]),Y6({disabled:r,handleId:L,resizeHandler:K,panelGroupElement:de});const N={touchAction:"none",userSelect:"none"};return M.createElement(S,{...C,children:t,className:l,id:s,onBlur:()=>{ue(!1),o==null||o()},onFocus:()=>{ue(!0),m==null||m()},ref:E,role:"separator",style:{...N,...y},tabIndex:v,[rt.groupDirection]:F,[rt.groupId]:ee,[rt.resizeHandle]:"",[rt.resizeHandleActive]:ae==="drag"?"pointer":ve?"keyboard":void 0,[rt.resizeHandleEnabled]:!r,[rt.resizeHandleId]:L,[rt.resizeHandleState]:ae})}j1.displayName="PanelResizeHandle";/**
|
|
61
|
+
* @license lucide-react v0.475.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const G6=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),t3=(...t)=>t.filter((l,r,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===r).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.475.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var X6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
+
* @license lucide-react v0.475.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Q6=M.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:c,...d},m)=>M.createElement("svg",{ref:m,...X6,width:l,height:l,stroke:t,strokeWidth:i?Number(r)*24/Number(l):r,className:t3("lucide",s),...d},[...c.map(([p,x])=>M.createElement(p,x)),...Array.isArray(o)?o:[o]]));/**
|
|
76
|
+
* @license lucide-react v0.475.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const be=(t,l)=>{const r=M.forwardRef(({className:i,...s},o)=>M.createElement(Q6,{ref:o,iconNode:l,className:t3(`lucide-${G6(t)}`,i),...s}));return r.displayName=`${t}`,r};/**
|
|
81
|
+
* @license lucide-react v0.475.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const K6=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],P6=be("ArrowDown",K6);/**
|
|
86
|
+
* @license lucide-react v0.475.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const W6=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],nf=be("ArrowLeft",W6);/**
|
|
91
|
+
* @license lucide-react v0.475.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const e8=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],t8=be("ArrowUp",e8);/**
|
|
96
|
+
* @license lucide-react v0.475.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const n8=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],l8=be("Briefcase",n8);/**
|
|
101
|
+
* @license lucide-react v0.475.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const r8=[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],n3=be("CalendarClock",r8);/**
|
|
106
|
+
* @license lucide-react v0.475.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const a8=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],lf=be("Calendar",a8);/**
|
|
111
|
+
* @license lucide-react v0.475.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const i8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],l3=be("Check",i8);/**
|
|
116
|
+
* @license lucide-react v0.475.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const u8=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],r3=be("ChevronLeft",u8);/**
|
|
121
|
+
* @license lucide-react v0.475.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const s8=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],a3=be("ChevronRight",s8);/**
|
|
126
|
+
* @license lucide-react v0.475.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const o8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],i3=be("CircleAlert",o8);/**
|
|
131
|
+
* @license lucide-react v0.475.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const c8=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],u3=be("CircleCheckBig",c8);/**
|
|
136
|
+
* @license lucide-react v0.475.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const f8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],d8=be("CircleStop",f8);/**
|
|
141
|
+
* @license lucide-react v0.475.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const h8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],m8=be("CircleX",h8);/**
|
|
146
|
+
* @license lucide-react v0.475.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const p8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],A1=be("Clock",p8);/**
|
|
151
|
+
* @license lucide-react v0.475.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const g8=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],s3=be("Copy",g8);/**
|
|
156
|
+
* @license lucide-react v0.475.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const y8=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],x8=be("Cpu",y8);/**
|
|
161
|
+
* @license lucide-react v0.475.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const b8=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],v8=be("ExternalLink",b8);/**
|
|
166
|
+
* @license lucide-react v0.475.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const S8=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],w8=be("Eye",S8);/**
|
|
171
|
+
* @license lucide-react v0.475.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const k8=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],C8=be("FolderOpen",k8);/**
|
|
176
|
+
* @license lucide-react v0.475.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const E8=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],os=be("GitFork",E8);/**
|
|
181
|
+
* @license lucide-react v0.475.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const M8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],o3=be("Globe",M8);/**
|
|
186
|
+
* @license lucide-react v0.475.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const N8=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],j8=be("Hash",N8);/**
|
|
191
|
+
* @license lucide-react v0.475.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const A8=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Cs=be("History",A8);/**
|
|
196
|
+
* @license lucide-react v0.475.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const z8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],T8=be("Info",z8);/**
|
|
201
|
+
* @license lucide-react v0.475.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const _8=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],c3=be("LayoutDashboard",_8);/**
|
|
206
|
+
* @license lucide-react v0.475.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const R8=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],D8=be("Menu",R8);/**
|
|
211
|
+
* @license lucide-react v0.475.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const O8=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],rf=be("MessageCircle",O8);/**
|
|
216
|
+
* @license lucide-react v0.475.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const L8=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],ia=be("MessageSquare",L8);/**
|
|
221
|
+
* @license lucide-react v0.475.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const U8=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],H8=be("Monitor",U8);/**
|
|
226
|
+
* @license lucide-react v0.475.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const B8=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Z8=be("Moon",B8);/**
|
|
231
|
+
* @license lucide-react v0.475.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const q8=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],wi=be("Play",q8);/**
|
|
236
|
+
* @license lucide-react v0.475.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const $8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],f3=be("Plus",$8);/**
|
|
241
|
+
* @license lucide-react v0.475.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const V8=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],J8=be("PowerOff",V8);/**
|
|
246
|
+
* @license lucide-react v0.475.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const I8=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],F8=be("Power",I8);/**
|
|
251
|
+
* @license lucide-react v0.475.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const Y8=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],G8=be("RefreshCw",Y8);/**
|
|
256
|
+
* @license lucide-react v0.475.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const X8=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Q8=be("Search",X8);/**
|
|
261
|
+
* @license lucide-react v0.475.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const K8=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],P8=be("Server",K8);/**
|
|
266
|
+
* @license lucide-react v0.475.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const W8=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],e7=be("Shield",W8);/**
|
|
271
|
+
* @license lucide-react v0.475.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const t7=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],n7=be("Sun",t7);/**
|
|
276
|
+
* @license lucide-react v0.475.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const l7=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],fa=be("Terminal",l7);/**
|
|
281
|
+
* @license lucide-react v0.475.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const r7=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],rm=be("Trash2",r7);/**
|
|
286
|
+
* @license lucide-react v0.475.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const a7=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],i7=be("TriangleAlert",a7);/**
|
|
291
|
+
* @license lucide-react v0.475.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const u7=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],af=be("Webhook",u7);/**
|
|
296
|
+
* @license lucide-react v0.475.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const s7=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],o7=be("WifiOff",s7);/**
|
|
301
|
+
* @license lucide-react v0.475.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const c7=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],f7=be("Wifi",c7);/**
|
|
306
|
+
* @license lucide-react v0.475.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const d7=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Es=be("X",d7);function d3(t){const l=new Date(t),i=new Date().getTime()-l.getTime(),s=Math.floor(i/6e4),o=Math.floor(i/36e5),c=Math.floor(i/864e5);return s<1?"just now":s<60?`${s}m`:o<24?`${o}h`:c<7?`${c}d`:l.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ke(t){return t.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function h7(t){var l,r,i,s,o,c,d;const m=(l=t.meta)===null||l===void 0?void 0:l.title,p=(r=t.meta)===null||r===void 0?void 0:r.creator,x=(i=t.meta)===null||i===void 0?void 0:i.source,y=(o=(s=t.meta)===null||s===void 0?void 0:s.license)===null||o===void 0?void 0:o.url,v=m7(t);return!m&&!p&&!x&&!y&&!v?"":'<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>'+(m?`<dc:title>${Ke(m)}</dc:title>`:"")+(p?`<dc:creator>${Ke(p)}</dc:creator>`:"")+(x?`<dc:source xsi:type="dcterms:URI">${Ke((d=(c=t.meta)===null||c===void 0?void 0:c.source)!==null&&d!==void 0?d:"")}</dc:source>`:"")+(y?`<dcterms:license xsi:type="dcterms:URI">${Ke(y)}</dcterms:license>`:"")+(v?`<dc:rights>${Ke(v)}</dc:rights>`:"")+"</rdf:Description></rdf:RDF></metadata>"}function m7(t){var l,r,i,s,o,c,d,m,p,x,y,v,S,C,z;let j=!((l=t.meta)===null||l===void 0)&&l.title?`„${(r=t.meta)===null||r===void 0?void 0:r.title}”`:"Design",E=`„${(s=(i=t.meta)===null||i===void 0?void 0:i.creator)!==null&&s!==void 0?s:"Unknown"}”`;!((o=t.meta)===null||o===void 0)&&o.source&&(j+=` (${t.meta.source})`);let T="";return((d=(c=t.meta)===null||c===void 0?void 0:c.license)===null||d===void 0?void 0:d.name)!=="MIT"&&((m=t.meta)===null||m===void 0?void 0:m.creator)!=="DiceBear"&&(!((p=t.meta)===null||p===void 0)&&p.title)&&(T+="Remix of "),T+=`${j} by ${E}`,!((y=(x=t.meta)===null||x===void 0?void 0:x.license)===null||y===void 0)&&y.name&&(T+=`, licensed under „${(S=(v=t.meta)===null||v===void 0?void 0:v.license)===null||S===void 0?void 0:S.name}”`,!((z=(C=t.meta)===null||C===void 0?void 0:C.license)===null||z===void 0)&&z.url&&(T+=` (${t.meta.license.url})`)),T}const am=-2147483648,p7=2147483647;function h3(t){return t^=t<<13,t^=t>>17,t^=t<<5,t}function g7(t){let l=0;for(let r=0;r<t.length;r++)l=(l<<5)-l+t.charCodeAt(r)|0,l=h3(l);return l}function cs(t=""){t=t.toString();let l=g7(t)||1;const r=()=>l=h3(l),i=(s,o)=>Math.floor((r()-am)/(p7-am)*(o+1-s)+s);return{seed:t,next:r,bool(s=50){return i(1,100)<=s},integer(s,o){return i(s,o)},pick(s,o){var c;return s.length===0?(r(),o):(c=s[i(0,s.length-1)])!==null&&c!==void 0?c:o},shuffle(s){const o=cs(r().toString()),c=[...s];for(let d=c.length-1;d>0;d--){const m=o.integer(0,d);[c[d],c[m]]=[c[m],c[d]]}return c},string(s,o="abcdefghijklmnopqrstuvwxyz1234567890"){const c=cs(r().toString());let d="";for(let m=0;m<s;m++)d+=o[c.integer(0,o.length-1)];return d}}}function da(t){let l=t.attributes.viewBox.split(" "),r=parseInt(l[0]),i=parseInt(l[1]),s=parseInt(l[2]),o=parseInt(l[3]);return{x:r,y:i,width:s,height:o}}function y7(t,l,r,i,s){let{width:o,height:c,x:d,y:m}=da(t);const p=`<rect fill="${l}" width="${o}" height="${c}" x="${d}" y="${m}" />`;switch(i){case"solid":return p+t.body;case"gradientLinear":return`<rect fill="url(#backgroundLinear)" width="${o}" height="${c}" x="${d}" y="${m}" /><defs><linearGradient id="backgroundLinear" gradientTransform="rotate(${s} 0.5 0.5)"><stop stop-color="${l}"/><stop offset="1" stop-color="${r}"/></linearGradient></defs>`+t.body}}function x7(t,l){let{width:r,height:i,x:s,y:o}=da(t),c=l?(l-100)/100:0,d=(r/2+s)*c*-1,m=(i/2+o)*c*-1;return`<g transform="translate(${d} ${m}) scale(${l/100})">${t.body}</g>`}function b7(t,l,r){let i=da(t),s=(i.width+i.x*2)*((l??0)/100),o=(i.height+i.y*2)*((r??0)/100);return`<g transform="translate(${s} ${o})">${t.body}</g>`}function v7(t,l){let{width:r,height:i,x:s,y:o}=da(t);return`<g transform="rotate(${l}, ${r/2+s}, ${i/2+o})">${t.body}</g>`}function S7(t){let{width:l,x:r}=da(t);return`<g transform="scale(-1 1) translate(${l*-1-r*2} 0)">${t.body}</g>`}function w7(t,l){let{width:r,height:i,x:s,y:o}=da(t),c=l?r*l/100:0,d=l?i*l/100:0;return`<mask id="viewboxMask"><rect width="${r}" height="${i}" rx="${c}" ry="${d}" x="${s}" y="${o}" fill="#fff" /></mask><g mask="url(#viewboxMask)">${t.body}</g>`}function k7(t){const l={xmlns:"http://www.w3.org/2000/svg",...t.attributes};return Object.keys(l).map(r=>`${Ke(r)}="${Ke(l[r])}"`).join(" ")}function C7(t){const l=cs(Math.random().toString()),r={};return t.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(i,s,o,c)=>(r[o]=r[o]||l.string(8),`${s}${r[o]}${c}`))}const E7={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function im(t){var l;let r={},i=(l=t.properties)!==null&&l!==void 0?l:{};return Object.keys(i).forEach(s=>{let o=i[s];typeof o=="object"&&o.default!==void 0&&(Array.isArray(o.default)?r[s]=[...o.default]:typeof o.default=="object"?r[s]={...o.default}:r[s]=o.default)}),r}function M7(t,l){var r;let i={...im(E7),...im((r=t.schema)!==null&&r!==void 0?r:{}),...l};return JSON.parse(JSON.stringify(i))}function um(t){return t==="transparent"?t:`#${t}`}function N7(t,l,r){var i;let s=t.shuffle(l);s.length<=1||l.length==2&&r=="gradientLinear"?(s=l,t.next()):s=t.shuffle(l),s.length===0&&(s=["transparent"]);const o=s[0],c=(i=s[1])!==null&&i!==void 0?i:s[0];return{primary:um(o),secondary:um(c)}}function j7(t,l={}){var r,i,s,o,c;l=M7(t,l);const d=cs(l.seed),m=t.create({prng:d,options:l}),p=d.pick((r=l.backgroundType)!==null&&r!==void 0?r:[],"solid"),{primary:x,secondary:y}=N7(d,(i=l.backgroundColor)!==null&&i!==void 0?i:[],p),v=d.integer(!((s=l.backgroundRotation)===null||s===void 0)&&s.length?Math.min(...l.backgroundRotation):0,!((o=l.backgroundRotation)===null||o===void 0)&&o.length?Math.max(...l.backgroundRotation):0);l.size&&(m.attributes.width=l.size.toString(),m.attributes.height=l.size.toString()),l.scale!==void 0&&l.scale!==100&&(m.body=x7(m,l.scale)),l.flip&&(m.body=S7(m)),l.rotate&&(m.body=v7(m,l.rotate)),(l.translateX||l.translateY)&&(m.body=b7(m,l.translateX,l.translateY)),x!=="transparent"&&y!=="transparent"&&(m.body=y7(m,x,y,p,v)),(l.radius||l.clip)&&(m.body=w7(m,(c=l.radius)!==null&&c!==void 0?c:0)),l.randomizeIds&&(m.body=C7(m));const S=k7(m),C=h7(t),z=`<svg ${S}>${C}${m.body}</svg>`;return{toString:()=>z,toJson:()=>{var j;return{svg:z,extra:{primaryBackgroundColor:x,secondaryBackgroundColor:y,backgroundType:p,backgroundRotation:v,...(j=m.extra)===null||j===void 0?void 0:j.call(m)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(z)}`}}const A7={antenna01:(t,l)=>`<mask id="sidesAntenna01-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="11" width="156" height="51"><g fill="#fff"><rect x="6" y="31" width="36" height="14" rx="4"/><rect x="18" y="14" width="36" height="48" rx="4"/><rect x="126" y="28" width="36" height="24" rx="4"/><path d="M11 11h2v20h-2z"/></g></mask><g mask="url(#sidesAntenna01-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path fill="#fff" fill-opacity=".3" d="M0 0h180v76H0z"/><path fill="#000" fill-opacity=".1" d="M0 38h180v38H0z"/></g><path fill="#fff" fill-opacity=".4" d="M11 11h2v20h-2z"/><circle cx="12" cy="8" r="4" fill="#FFEA8F"/><circle cx="13" cy="7" r="2" fill="#fff"/>`,antenna02:(t,l)=>`<mask id="sidesAntenna02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="10" y="9" width="160" height="51"><g fill="#fff"><rect x="10" y="28" width="36" height="32" rx="4"/><path d="M160 9h2v20h-2z"/><rect x="134" y="28" width="36" height="32" rx="4"/></g></mask><g mask="url(#sidesAntenna02-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#000" fill-opacity=".1" d="M0 38h180v38H0z"/></g><path fill="#fff" fill-opacity=".4" d="M160 8h2v20h-2z"/><circle cx="161" cy="5" r="4" fill="#E1E6E8"/><circle cx="162" cy="4" r="2" fill="#fff"/>`,cables01:(t,l)=>`<path d="M38 12c-2.95 11.7-19.9 6.67-23.37 18-3.46 11.35 8.03 20 17.53 20" stroke="#2A3544" stroke-width="6" opacity=".9"/><path d="M150 55c8.4 3.49 20.1-7.6 16-16.5-4.1-8.9-16-6.7-16-19.3" stroke="#2A3544" stroke-width="4" opacity=".9"/><mask id="sidesCables01-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="21" y="6" width="138" height="58"><g fill="#fff"><rect x="21" y="35" width="16" height="22" rx="2"/><rect x="136" y="42" width="23" height="22" rx="2"/><rect x="136" y="6" width="23" height="18" rx="2"/></g></mask><g mask="url(#sidesCables01-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/></g>`,cables02:(t,l)=>`<g opacity=".9" stroke="#2A3544"><ellipse cx="32.5" cy="23" rx="16.5" ry="18" stroke-width="6"/><path d="M29.51 36.76c-7.4 4.29-17 1.55-21.42-6.1" stroke-width="4"/><ellipse cx="28.5" cy="52.5" rx="16.5" ry="14.5" stroke-width="4"/></g><g opacity=".9" stroke="#2A3544"><path d="M168.6 60.42c-4.27-7.41-13.95-9.84-21.6-5.42" stroke-width="4"/><ellipse cx="148.5" cy="22.5" rx="16.5" ry="15.5" stroke-width="6"/></g><mask id="sidesCables02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="21" y="0" width="138" height="72"><g fill="#fff"><rect x="21" y="27" width="16" height="22" rx="2"/><rect x="22" y="60" width="16" height="12" rx="2"/><rect x="143" y="42" width="16" height="22" rx="2"/><rect x="143" width="16" height="22" rx="2"/></g></mask><g mask="url(#sidesCables02-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/></g>`,round:(t,l)=>`<mask id="sidesRound-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="12" y="16" width="156" height="45"><g fill="#fff"><ellipse cx="150" cy="38.5" rx="18" ry="22.5"/><ellipse cx="18" cy="22.5" rx="18" ry="22.5" transform="matrix(-1 0 0 1 48 16)"/></g></mask><g mask="url(#sidesRound-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#000" fill-opacity=".2" d="M20 0h140v76H20z"/></g>`,square:(t,l)=>`<mask id="sidesSquare-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="14" y="16" width="152" height="44"><g fill="#fff"><rect x="14" y="16" width="36" height="44" rx="9"/><rect x="130" y="16" width="36" height="44" rx="9"/></g></mask><g mask="url(#sidesSquare-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#000" fill-opacity=".1" d="M0 38h180v38H0z"/></g>`,squareAssymetric:(t,l)=>`<mask id="sidesSquareAssymetric-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="10" y="8" width="165" height="60"><g fill="#fff"><rect x="10" y="31" width="36" height="30" rx="4"/><rect x="20" y="15" width="26" height="30" rx="4"/><rect x="139" y="23" width="36" height="30" rx="4"/><rect x="134" y="8" width="36" height="60" rx="4"/></g></mask><g mask="url(#sidesSquareAssymetric-a)"><path d="M0 0h180v76H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h180v76H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#000" fill-opacity=".1" d="M0 47h180v29H0z"/><circle cx="161" cy="20" r="5" fill="#fff" fill-opacity=".6"/><circle cx="161" cy="36" r="5" fill="#fff" fill-opacity=".6"/></g>`},z7={antenna:(t,l)=>`<mask id="topAntenna-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="38" y="5" width="24" height="47"><path d="M38 38c0-1.1.9-2 2-2h20a2 2 0 0 1 2 2v14H38V38ZM48 5h4v31h-4z" fill="#fff"/></mask><g mask="url(#topAntenna-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 3h100v52H0V3Z" fill="#fff" fill-opacity=".3"/><path fill="#fff" fill-opacity=".2" d="M38 36h24v16H38z"/></g><circle cx="50" cy="8" r="8" fill="#FFE65C"/><circle cx="53" cy="5" r="3" fill="#fff"/>`,antennaCrooked:(t,l)=>`<mask id="topAntennaCrooked-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="38" y="12" width="24" height="40"><g fill="#fff"><path d="M55.54 34.39 51 45h-3.74l4.92-10.44-6.05-10.43 3.22-11.84 2.9.8-2.9 10.62 6.2 10.68Z"/><path d="M38 39h24v13H38z"/></g></mask><g mask="url(#topAntennaCrooked-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 6h100v52H0V6Z" fill="#fff" fill-opacity=".3"/><path fill="#fff" fill-opacity=".2" d="M38 39h24v13H38z"/></g><circle cx="50" cy="8" r="8" fill="#FFE65C"/><circle cx="53" cy="5" r="3" fill="#fff"/>`,bulb01:(t,l)=>`<mask id="topBulb01-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="22" y="0" width="56" height="52"><g fill="#fff"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 16A16 16 0 0 1 48 0h4a16 16 0 0 1 16 16v16a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V16Z"/><rect x="22" y="40" width="56" height="12" rx="1"/></g></mask><g mask="url(#topBulb01-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h100v52H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#fff" fill-opacity=".4" d="M20-3h60v43H20z"/><path d="M49 3.5c4.93 0 9.37 2.13 12.44 5.52" stroke="#fff" stroke-width="2" stroke-linecap="round"/><path d="m49.83 26-9-9L38 19.83l10 10V40h4V29.97l10.14-10.14L59.31 17l-9 9h-.48Z" fill="#fff" fill-opacity=".8"/></g>`,glowingBulb01:(t,l)=>'<g filter="url(#topGlowingBulb01-a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 24A16 16 0 0 1 48 8h4a16 16 0 0 1 16 16v8a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-8Z" fill="#fff" fill-opacity=".3"/></g><path d="M49 11.5c4.93 0 9.37 2.13 12.44 5.52" stroke="#fff" stroke-width="2" stroke-linecap="round"/><path d="m49.83 29-9-9L38 22.83l10 10V40h4v-7.03l10.14-10.14L59.31 20l-9 9h-.48Z" fill="#fff" fill-opacity=".8"/><rect x="22" y="40" width="56" height="12" rx="1" fill="#48494B"/><defs><filter id="topGlowingBulb01-a" x="24" y="0" width="52" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="4"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_617_621"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_617_621" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect2_innerShadow_617_621"/></filter></defs>',glowingBulb02:(t,l)=>'<g filter="url(#topGlowingBulb02-a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M30 33a20 20 0 1 1 40 0v11H30V33Z" fill="#fff" fill-opacity=".3"/></g><ellipse cx="50" cy="30" rx="4" ry="6" fill="#fff" fill-opacity=".6"/><path d="M50 15.5c4.93 0 9.37 2.13 12.44 5.52m2.43 3.5c.7 1.3 1.21 2.73 1.53 4.23" stroke="#fff" stroke-width="2" stroke-linecap="round"/><rect x="20" y="36" width="60" height="16" rx="1" fill="#48494B"/><defs><filter id="topGlowingBulb02-a" x="22" y="5" width="56" height="47" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="4"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_617_633"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_617_633" result="shape"/><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset/><feGaussianBlur stdDeviation="2"/><feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect2_innerShadow_617_633"/></filter></defs>',horns:(t,l)=>`<mask id="topHorns-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="8" y="12" width="84" height="40"><g fill="#fff"><path d="M8 40h26v12H8z"/><path transform="matrix(-1 0 0 1 92 40)" d="M0 0h26v12H0z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.52 13.74c0 7.84 5.39 20.71 13.72 27.04H11.36S7.84 22.66 13.43 14.1c.9-1.38 3.1-1.42 3.1-.36ZM84 14c.66 7.04-5.77 20.62-14 27h19s3.14-18.26-2-27c-1-1.7-3.14-1.45-3 0Z"/></g></mask><g mask="url(#topHorns-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h100v52H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#000" fill-opacity=".4" d="M0 40h100v12H0z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.46 13h16.1v27H20.83c-7.45-7.85-5.36-27-5.36-27ZM84.82 13h7.75v27H81.82c5.75-7.8 3-27 3-27Z" fill="#fff" fill-opacity=".4"/></g>`,lights:(t,l)=>`<mask id="topLights-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="10" y="22" width="80" height="30"><g fill="#fff"><path d="M10 42c0-1.1.9-2 2-2h76a2 2 0 0 1 2 2v10H10V42Z"/><path d="M18 27a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v25H18V27ZM42 27a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v25H42V27ZM66 27a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v25H66V27Z"/></g></mask><g mask="url(#topLights-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h100v52H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#fff" fill-opacity=".6" d="M0 0h100v40H0z"/><rect x="24" y="28" width="4" height="8" rx="2" fill="#fff" fill-opacity=".6"/><rect x="48" y="28" width="4" height="8" rx="2" fill="#fff" fill-opacity=".6"/><rect x="72" y="28" width="4" height="8" rx="2" fill="#fff" fill-opacity=".6"/></g>`,pyramid:(t,l)=>`<mask id="topPyramid-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="18" y="8" width="64" height="44"><path fill-rule="evenodd" clip-rule="evenodd" d="m50 8 32 44H18L50 8Z" fill="#fff"/></mask><g mask="url(#topPyramid-a)"><path d="M0 0h100v52H0V0Z" fill="${Ke(`${l.base}`)}"/><path d="M0 0h100v52H0V0Z" fill="#fff" fill-opacity=".3"/><path fill="#fff" fill-opacity=".8" d="M50 4h30v48H50z"/></g>`,radar:(t,l)=>'<mask id="topRadar-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="37" y="0" width="36" height="53"><g fill="#fff"><path fill-rule="evenodd" clip-rule="evenodd" d="M43.8.11A20 20 0 1 0 72.08 28.4"/><circle cx="67.13" cy="5.06" r="4" transform="rotate(45 67.13 5.06)"/><path transform="rotate(45 64.3 6.48)" d="M64.31 6.48h2v26h-2z"/><path d="M47.94 28.11h4v24h-4z"/></g></mask><g mask="url(#topRadar-a)"><path d="M0 0h100v52H0V0Z" fill="#90A4AE"/><path d="M0 0h100v52H0V0Z" fill="#fff" fill-opacity=".3"/><path fill-rule="evenodd" clip-rule="evenodd" d="M43.8.11A20 20 0 1 0 72.08 28.4" fill="#fff" fill-opacity=".2"/><circle cx="67.13" cy="7.41" r="5.66" transform="rotate(45 67.13 7.4)" fill="#fff" fill-opacity=".8"/></g>'},T7={round01:(t,l)=>{var r,i;return`<mask id="faceRound01-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><path fill-rule="evenodd" clip-rule="evenodd" d="M66 0c58.35 0 64 40.69 64 78 0 33.31-25.47 42-64 42-37.46 0-66-8.69-66-42C0 40.69 7.65 0 66 0Z" fill="#fff"/></mask><g mask="url(#faceRound01-a)"><path d="M-4-2h138v124H-4V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`},round02:(t,l)=>{var r,i;return`<mask id="faceRound02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 31v-1c.18-.48.4-1.5 1-3 .83-3.06 2.78-6.56 6-10C16.7 6.6 35.17 0 65 0s48.3 6.6 58 17c3.22 3.44 5.17 6.94 6 10 .6 1.5.82 2.52 1 3v40c0-.1-.03.5 0 1a53.93 53.93 0 0 1-1 6c-1.19 6-3.4 11.91-7 17-9.72 16.34-27.74 26-57 26s-47.28-9.66-57-26C4.4 88.91 2.2 83 1 77a53.95 53.95 0 0 1-1-6c.03-.45 0-1.32 0-1V31Z" fill="#fff"/></mask><g mask="url(#faceRound02-a)"><path d="M-4-2h138v124H-4V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`},square01:(t,l)=>{var r,i;return`<mask id="faceSquare01-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><rect width="130" height="120" rx="18" fill="#fff"/></mask><g mask="url(#faceSquare01-a)"><path d="M-2-2h134v124H-2V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`},square02:(t,l)=>{var r,i;return`<mask id="faceSquare02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><path d="M0 12A12 12 0 0 1 12 0h106a12 12 0 0 1 12 12v70a38 38 0 0 1-38 38H38A38 38 0 0 1 0 82V12Z" fill="#fff"/></mask><g mask="url(#faceSquare02-a)"><path d="M-2-2h134v124H-2V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`},square03:(t,l)=>{var r,i;return`<mask id="faceSquare03-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 18A18 18 0 0 1 18 0h94a18 18 0 0 1 18 18v27.15a40 40 0 0 1-2.28 13.31L110.24 108a18 18 0 0 1-16.98 12H36.74a18 18 0 0 1-16.98-12L2.28 58.45A40 40 0 0 1 0 45.15V18Z" fill="#fff"/></mask><g mask="url(#faceSquare03-a)"><path d="M-2-2h134v124H-2V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`},square04:(t,l)=>{var r,i;return`<mask id="faceSquare04-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="130" height="120"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 102V68.85a40 40 0 0 1 2.28-13.31L19.76 12A18 18 0 0 1 36.74 0h56.52a18 18 0 0 1 16.98 12l17.48 43.54A40 40 0 0 1 130 68.85V102a18 18 0 0 1-18 18H18a18 18 0 0 1-18-18Z" fill="#fff"/></mask><g mask="url(#faceSquare04-a)"><path d="M-2-2h134v124H-2V-2Z" fill="${Ke(`${l.base}`)}"/><g transform="translate(-1 -1)">${(i=(r=t.texture)===null||r===void 0?void 0:r.value(t,l))!==null&&i!==void 0?i:""}</g></g>`}},_7={bite:(t,l)=>'<rect x="4" y="5" width="68" height="22" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="9" width="60" height="14" rx="2" fill="#000" fill-opacity=".6"/><path fill-rule="evenodd" clip-rule="evenodd" d="m20 17 6-8H14l6 8ZM32 17l6-8H26l6 8ZM44 17l6-8H38l6 8ZM56 17l6-8H50l6 8Z" fill="#E1E6E8"/>',diagram:(t,l)=>'<rect x="4" y="4" width="68" height="24" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="8" width="60" height="16" rx="2" fill="#000" fill-opacity=".8"/><path d="M9 17h11l2-4 3 7 4-8 2 9 3-11 3 10 3-3h15l3-4 2 7 3-3h4" stroke="#4EFAC9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',grill01:(t,l)=>'<g fill="#000" fill-opacity=".6"><rect x="12" y="12" width="4" height="8" rx="2"/><rect x="36" y="12" width="4" height="8" rx="2"/><rect x="24" y="12" width="4" height="8" rx="2"/><rect x="48" y="12" width="4" height="8" rx="2"/><rect x="60" y="12" width="4" height="8" rx="2"/></g>',grill02:(t,l)=>'<g fill="#000" fill-opacity=".6"><rect x="28" y="10" width="6" height="14" rx="2"/><rect x="14" y="10" width="6" height="14" rx="2"/><rect x="42" y="10" width="6" height="14" rx="2"/><rect x="56" y="10" width="6" height="14" rx="2"/></g>',grill03:(t,l)=>'<rect x="4" y="5" width="68" height="22" rx="5" fill="#000" fill-opacity=".2"/><rect x="8" y="9" width="60" height="14" rx="2" fill="#fff"/><path fill="#000" fill-opacity=".1" d="M18 9h4v14h-4zM42 9h4v14h-4zM30 9h4v14h-4zM54 9h4v14h-4z"/>',smile01:(t,l)=>'<path d="M27.05 8.44a2 2 0 1 1 3.9-.88C31.72 10.96 34.4 13 38 13c3.6 0 6.28-2.04 7.05-5.44a2 2 0 1 1 3.9.88C47.75 13.7 43.43 17 38 17s-9.76-3.3-10.95-8.56Z" fill="#000" fill-opacity=".6"/>',smile02:(t,l)=>'<path fill-rule="evenodd" clip-rule="evenodd" d="M18 10.22C18 21.78 24.47 28 38 28c13.52 0 20-6.34 20-17.78C58 9.5 57.17 8 55 8H21c-2.05 0-3 1.38-3 2.22Z" fill="#000" fill-opacity=".8"/><mask id="mouthSmile02-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="18" y="8" width="40" height="20"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 10.22C18 21.78 24.47 28 38 28c13.52 0 20-6.34 20-17.78C58 9.5 57.17 8 55 8H21c-2.05 0-3 1.38-3 2.22Z" fill="#fff"/></mask><g mask="url(#mouthSmile02-a)"><rect x="30" y="2" width="16" height="14" rx="2" fill="#fff"/></g>',square01:(t,l)=>'<rect x="24" y="6" width="27" height="8" rx="4" fill="#000" fill-opacity=".8"/>',square02:(t,l)=>'<rect x="16" y="8" width="44" height="4" rx="2" fill="#000" fill-opacity=".8"/>'},R7={bulging:(t,l)=>'<circle cx="28" cy="24" r="18" fill="#000" fill-opacity=".2"/><circle cx="74" cy="24" r="18" fill="#000" fill-opacity=".2"/><circle cx="28" cy="24" r="15" fill="#F1EEDA"/><circle cx="74" cy="24" r="15" fill="#F1EEDA"/><rect x="26" y="15" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/><rect x="74" y="15" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/>',dizzy:(t,l)=>'<path d="m25 27.2 5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L28.2 24l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L25 20.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0l5.5-5.5ZM79 27.2l5.5 5.5c.5.4 1.2.4 1.6 0l1.6-1.6c.4-.5.4-1.2 0-1.6L82.2 24l5.5-5.5c.4-.5.4-1.2 0-1.6l-1.6-1.6c-.5-.4-1.2-.4-1.6 0L79 20.8l-5.5-5.5c-.5-.4-1.2-.4-1.6 0l-1.6 1.6c-.4.4-.4 1.1 0 1.6l5.5 5.5-5.5 5.5c-.4.5-.4 1.2 0 1.6l1.6 1.6c.5.4 1.2.4 1.6 0l5.5-5.5Z" fill="#000" fill-opacity=".8"/>',eva:(t,l)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M53 0c34.75 0 49 17.47 49 31 0 13.53-19.59 17-49 17-29.05 0-51-3.47-51-17S17.11 0 53 0Z" fill="#000" fill-opacity=".8"/><path d="M28.82 34.65c-6.53-1.35-11.24-6.34-10.52-11.14.72-4.79 6.6-7.58 13.12-6.23 6.53 1.36 11.24 6.35 10.52 11.15-.72 4.8-6.6 7.59-13.12 6.23ZM75.42 34.65c-6.52 1.36-12.4-1.43-13.12-6.23-.72-4.8 4-9.8 10.52-11.15 6.52-1.35 12.4 1.44 13.12 6.24.72 4.81-4 9.8-10.52 11.15Z" fill="#25A6F5"/></g>',frame1:(t,l)=>'<rect y="4" width="104" height="42" rx="4" fill="#000" fill-opacity=".8"/><rect x="28" y="25" width="10" height="11" rx="2" fill="#8BDDFF"/><rect x="66" y="25" width="10" height="11" rx="2" fill="#8BDDFF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21 4h8L12 46H4L21 4Z" fill="#fff" fill-opacity=".4"/>',frame2:(t,l)=>'<rect x="8" y="10" width="88" height="36" rx="4" fill="#000" fill-opacity=".8"/><rect x="28" y="21" width="10" height="17" rx="2" fill="#5EF2B8"/><rect x="66" y="21" width="10" height="17" rx="2" fill="#5EF2B8"/><path fill-rule="evenodd" clip-rule="evenodd" d="M83 10h5L76 46h-5l12-36Z" fill="#fff" fill-opacity=".4"/>',glow:(t,l)=>'<g fill="#fff"><circle cx="21" cy="30" r="15" fill-opacity=".1"/><circle cx="83" cy="30" r="15" fill-opacity=".1"/><circle cx="21" cy="30" r="12" fill-opacity=".1"/><circle cx="83" cy="30" r="12" fill-opacity=".1"/><circle cx="21" cy="30" r="6" fill-opacity=".8"/><circle cx="83" cy="30" r="6" fill-opacity=".8"/><circle cx="21" cy="30" r="3" fill-opacity=".8"/><circle cx="83" cy="30" r="3" fill-opacity=".8"/></g>',happy:(t,l)=>'<path d="m18 19 12-2M20 31c0-3.31 2.9-6 7-6 3.1 0 6 2.69 6 6M86 20l-12-3M84 31c0-3.31-2.9-6-6-6-4.1 0-7 2.69-7 6" stroke="#000" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>',hearts:(t,l)=>'<path d="M29.27 9.68c-2.55.13-4.96 2.24-6.25 4.15-1.48-1.76-4.1-3.6-6.65-3.47-5.48.28-8.85 3.8-8.63 8.1.3 5.72 4.88 8.89 9.7 12.24 1.71 1.15 5 4.15 5.42 4.82.42.67 2.14.6 2.58-.13a37.8 37.8 0 0 1 4.9-5.36c4.43-3.84 8.66-7.47 8.36-13.2-.23-4.3-3.95-7.44-9.43-7.15ZM87.63 10.36c-2.55-.14-5.17 1.7-6.65 3.47-1.3-1.9-3.7-4.02-6.25-4.15-5.48-.29-9.2 2.86-9.43 7.16-.3 5.72 3.93 9.35 8.36 13.19 1.6 1.32 4.55 4.64 4.9 5.36.35.7 2.06.82 2.58.13.51-.7 3.7-3.67 5.42-4.82 4.81-3.35 9.4-6.52 9.7-12.24.22-4.3-3.15-7.82-8.63-8.1Z" fill="#FF5353" fill-opacity=".8"/>',robocop:(t,l)=>'<rect x="7" y="16" width="91" height="16" rx="4" fill="#000" fill-opacity=".8"/><mask id="eyesRobocop-a" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="7" y="16" width="91" height="16"><rect x="7" y="16" width="91" height="16" rx="4" fill="#fff"/></mask><g mask="url(#eyesRobocop-a)" fill-rule="evenodd" clip-rule="evenodd" fill="#fff" fill-opacity=".8"><path d="M76 7h18L82 37H64L76 7ZM52 7h9L49 37h-9L52 7Z"/></g>',round:(t,l)=>'<g fill="#fff"><circle cx="24" cy="30" r="6"/><circle cx="80" cy="30" r="6"/></g>',roundFrame01:(t,l)=>'<rect y="12" width="104" height="32" rx="16" fill="#000" fill-opacity=".8"/><rect x="24" y="22" width="10" height="12" rx="2" fill="#F4F4F4"/><rect x="70" y="22" width="10" height="12" rx="2" fill="#F4F4F4"/>',roundFrame02:(t,l)=>'<rect y="11" width="104" height="34" rx="17" fill="#000" fill-opacity=".8"/><circle cx="29" cy="28" r="13" fill="#F1EEDA"/><circle cx="75" cy="28" r="13" fill="#F1EEDA"/><rect x="24" y="23" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/><rect x="70" y="23" width="10" height="10" rx="2" fill="#000" fill-opacity=".8"/>',sensor:(t,l)=>'<path d="M28 44a20 20 0 0 0 19.9-18h41.52a5 5 0 1 0 0-4H47.9A20 20 0 1 0 28 44Z" fill="#000" fill-opacity=".2"/><circle cx="94" cy="24" r="2" fill="#fff"/><circle cx="28" cy="24" r="16" fill="#000" fill-opacity=".6"/><circle cx="34" cy="16" r="3" fill="#fff"/>',shade01:(t,l)=>'<path d="M96 2H8c-4.5 0-8 3.5-8 8.03V28c0 4.5 3.5 8 8 8h13c8 0 11 8 18 8h27c7 0 9-8 17-8h13c4.5 0 8-3.5 8-8V10c0-4.5-3.5-8-8-8Z" fill="#000" fill-opacity=".8"/><path d="M87 14H17c-3.5 0-5 3-5 5v2c0 2 1.5 5 5 5h12c6 0 11.62 8 17 8h14c5.38 0 9-8 15-8h12c3.5 0 5-3 5-5v-2c0-2-1.5-5-5-5Z" fill="#FF3D3D"/><path d="M22.44 36.09 37.26 2h11L31.4 40.78l-.76-.58c-2.38-1.82-4.83-3.69-8.2-4.11ZM11.48 36 26.26 2h4L15.48 36h-4Z" fill="#fff" fill-opacity=".2"/>'},D7={camo01:(t,l)=>'<g fill="#000" fill-opacity=".2"><path d="M117.94-4a6.08 6.08 0 0 0 2.52-.99l.77-.12c2.72-.42 9.94-1.53 11.25-.4.85.75.47 3.39.2 5.28-.11.72-.2 1.34-.2 1.7-1.33.06-2.34-1.4-3.32-2.83-1.46-2.12-2.88-4.17-5.2-1.06-1.1 1.46-.85 3.3-.6 5.18.28 1.98.55 3.99-.74 5.62-1.54 1.93-4 2.2-6.42 2.47-2.56.28-5.1.56-6.48 2.8-.4.66-.5 1.8-.62 3.05-.2 2.15-.43 4.58-2.25 5.14-3.12.97-3.32-1.69-3.5-4-.09-1.25-.18-2.4-.7-2.84-5.7-4.7-6.23 4.37-6.35 6.43v.03c-.03.43.05.78.12 1.1.13.57.23 1.05-.33 1.73-.3.36-.7.3-1.12.23-.43-.06-.89-.13-1.27.23-1.5 1.4-1.54 1.54-1.88 3.11l-.09.37c-.11.53-.19.99-.25 1.4-.14.94-.26 1.67-.84 2.64-.27.45-.63.89-1 1.33-1.2 1.46-2.39 2.9-.14 4.69-.61 0-6 1.46-6.35 1.64-.52.27-1.12.98-1.66 1.61a4.5 4.5 0 0 1-1.18 1.15c-3.2 1.1-2.97-1.28-2.74-3.74.14-1.48.28-2.98-.32-3.77 8.28-.27 13.26-8.21 13.75-14.38a5 5 0 0 0-.65-2.5c-.28-.62-.54-1.2-.55-1.8-.02-.83.25-1.4.52-1.97.22-.47.44-.93.5-1.54.23-2.64-.85-3.61-2.27-4.89-.7-.64-1.5-1.35-2.26-2.4-2.5-3.45-1.2-3.99 2.6-3.36 2.17.36 4.26 1 6.36 1.63 2.56.78 5.12 1.56 7.84 1.83 3.48.34 6.71.18 8.36-2.66.95-1.63 1.37-6.13-1.8-6.48.8-.13 1.44-.38 2.1-.64a9.32 9.32 0 0 1 3.02-.77c1 .4 2.06.64 3.16.74ZM123.7 79.87v.01ZM32.38 86.47c.1.04.21.04.34 0-.18.13-.46.02-.37 0h.03ZM32.37 86.46h-.02.02ZM131.44 126.49c-.34-.03-.33-.04 0-.06.07-.28.16-.57.26-.85.21-.67.4-1.26.03-1.4 1.13-.21.92 1.8.8 2.96-.03.28-.05.5-.05.64-1.06 0-1.18-.59-1.04-1.3Z"/><path d="M131.52 125.78v-.04c-.44.03-.44.04 0 .07v-.02ZM41.65-5.5c.39.07 1.5.18 1.87 0h-1.87ZM39.01 51.48c-1.06-.25-1.44-.92-1.73-1.42-.16-.28-.3-.5-.5-.58-2.83-1.05-3.29.92-3.77 3.98-.1.56-.11 1.03-.13 1.47-.05 1.08-.08 1.9-1.09 2.94-.58.6-1.52.91-2.45 1.22a8.8 8.8 0 0 0-1.87.78c-1.47.93-2.12 1.78-2.92 2.83-.32.4-.66.85-1.08 1.34-.96 1.11-2.36 2.19-3.82 3.3-3.9 2.98-8.2 6.25-5.32 11.4 3.1 5.55 4.32.87 5.27-2.75.36-1.39.68-2.62 1.05-3.05 4.67-5.47 5.68-.12 6.29 3.08.1.52.18.99.27 1.34 1.31 5.03 3.1 1.4 4.58-1.58.44-.9.86-1.74 1.22-2.28.44-.63.99-1.1 1.52-1.55a5.7 5.7 0 0 0 1.68-1.92c.24-.52.12-1.17 0-1.84-.2-1.1-.4-2.25.97-2.95 1.45-.73 3.12.16 4.6.96 1.13.6 2.15 1.16 2.9.9 2.33-.83.23-3.6-1.45-5.82-.78-1.02-1.46-1.93-1.59-2.47-.36-1.58.28-2.95.91-4.32.64-1.38 1.28-2.77.9-4.37-.66.1-1.23.4-1.8.72-.8.44-1.61.88-2.65.64ZM80.6 88.07ZM95.89 72.7c.38-2.66-1.73-4.02-3.9-5.43-.7-.45-1.39-.9-2.02-1.4-1.43-1.13-2.4-2.07-3.12-3.66a3.83 3.83 0 0 1-.17-1.2c-.04-.69-.08-1.4-.42-1.65-1.85-1.27-2.88-.4-4.13.66-.6.5-1.24 1.05-2.04 1.42-2.72 1.24-2.75 1.22-4.38.26-.33-.2-.72-.43-1.22-.7l-.71-.4c-1.5-.9-2.56-1.53-4.4 1.07-.73 1.04-.7 2.87-.66 4.77.07 3.18.14 6.57-3.42 6.77 1.57.69.86 2.74.14 4.83-.74 2.15-1.49 4.34.23 5.1 4.18 1.83 5.4-6.86 6.09-11.83.23-1.64.4-2.88.6-3.2 1.67-2.62 7.63-4.86 9.34-.98.31.7.08 1.44-.15 2.2-.22.73-.45 1.47-.2 2.2.37 1.03.97 1.41 1.67 1.86.38.23.78.49 1.19.87 2.9 2.71 2.79 2.88 1.34 5.18l-.86 1.4c-.3.54-.56 1.38-.83 2.31-.61 2.1-1.35 4.63-3.25 4.92 1.04-.01 2.13.24 3.2.5 2.06.47 4.08.94 5.61-.45 1.07-.97.89-2.72.71-4.4-.11-1.09-.22-2.15.03-2.93.44-1.42 1.63-2.6 2.81-3.77 1.34-1.34 2.68-2.66 2.92-4.32ZM18.9 104.45c.03.48.07 1.03.18 1.7.4 2.48 1.51 3.9 2.95 5.7v.01l.95 1.2c-4.37.08-7.8 4.62-3.04 7.18-1.93-1.03-3.39.12-4.58 1.07-1.49 1.19-2.55 2.03-3.57-2.27l-.28-1.1c-.23-.86-.48-1.84-.58-2.5-.21-1.44-.18-1.61-.01-2.4l.1-.47c.08-.47.26-.79.43-1.09.35-.63.63-1.15-.13-2.67-.4-.79-.88-1.4-1.34-1.99-.85-1.06-1.6-2.02-1.58-3.73 0-.48.21-.86.43-1.27.37-.68.78-1.45.38-2.92a12.4 12.4 0 0 0-1.08-2.46c-.5-.97-1.01-1.94-1.2-2.99 1.81.08 2.96 1.45 3.98 2.68.36.44.71.85 1.07 1.19.8.75 1.75 1.28 2.69 1.8.8.45 1.6.9 2.24 1.45 1.8 1.58 1.86 2.4 1.98 3.9ZM24.68 91.3c1.49.12 5.48-3.14 5.74-4.07-1.29.24-2.6-.36-3.88-.94-1.44-.66-2.84-1.3-4.14-.73-2.3 1 .15 5.56 2.28 5.74ZM83.04 92.92c-1.63.3-3.49.64-4.58 0-1.06-.62-3.16-3.28-.1-3.13.78.3 1.67.5 2.56.68 1.87.4 3.7.8 4.21 2.16-.57.02-1.3.15-2.09.3ZM62.6 68.99c-.84-.05-1.62-.2-2.34-.34-2.16-.41-3.75-.72-4.43 2.13 1.12-.05 2.23.25 3.23.5 2.11.56 3.68.97 3.53-2.3ZM91.57 105.44c-.72-.36-1.4-.7-1.93-.74.68-.1.8-.77.92-1.4.1-.52.2-1.02.61-1.16.17.05.36.1.58.14 1.76.41 4.88 1.14 4.11 2.82-.93 2.04-2.71 1.14-4.3.34Z"/><path d="M23.02 113.15c-.74.04-.24.2.07.24l-.07-.24ZM64.47 65.13c.83-.57.8-3.2-.45-3.31-1.75.39-.86 4.2.45 3.3ZM129.6 34.45c.03.59 2.6 3.1 2.88 3.08 0-.07.02-.26.06-.51.17-1.29.59-4.32-.85-3.64a5 5 0 0 0-.71.44c-.42.3-.85.6-1.38.63ZM21.62 127.86c-5.14 0-3.31-2.39-1.94-1.65.3.16.55.44.81.71.3.32.6.64.96.78.09.04.11.07.14.1 0 .03.02.04.03.06ZM-.7-.88c.01-.43-2.42-1.19-1-.21-.14-.1-.03-.05.17.03.3.13.83.34.83.18ZM123.37 43.75c-1.53-.42 2.62-.23 2.1.93-.42-.05-.79-.27-1.16-.49-.3-.17-.6-.35-.94-.44Z"/></g><path d="M38.12 26.75c.24-.76-.15-1.6-.53-2.44-.32-.7-.64-1.4-.61-2.05.02-.62.47-1.75.9-2.82a18.15 18.15 0 0 0 .84-2.47c.8-3.23 2.3-9.38 7.7-6.52-4.33-2.3-2.55-4.12-.56-6.15a12.3 12.3 0 0 0 2.06-2.51c.4-.74.72-1.08.91-1.27.11-.12.18-.19.19-.26 0-.1-.1-.22-.34-.5l-.4-.45c-.59-.7-4.78-1.65-5.78-1.63-3.82.09-7.98 3.7-9.9 6.62-1.03 1.56-.67 2.43-.33 3.26.2.5.4.98.3 1.6-.05.25-.02.5 0 .74.09.73.16 1.35-2.01 1.47-2.7.15-7.77-4.33-7.8-6.53 0-.73.78-1.56 1.57-2.4 1.4-1.46 2.79-2.94-.21-3.87-2.24-.7-9.03 3.8-9.45 5.5-.26 1.06.5 2.2 1.15 3.2 1.06 1.6 1.88 2.84-2.02 2.81 0-.02 3.63 2.29 4 2.77.85 1.09 1.17 1.88 1.45 2.56.47 1.17.81 2 3.44 3.44 1.1.6 2.28 1.12 3.45 1.64 1.58.69 3.16 1.39 4.56 2.28.76.49 1.4 1.07 2.03 1.63 1.48 1.32 2.86 2.57 5.4 2.34ZM127.37 3.5c-1.41.74-.6 1.4.37 2.18.98.79 2.12 1.7 1.37 2.97-.47.81-1.6.99-2.76 1.16-1.17.18-2.37.37-2.95 1.22-.84 1.23-.5 2.1-.18 2.94.39.98.76 1.93-.78 3.38-1.08 1.01-2.1 1.34-2.98 1.62-1.31.42-2.33.75-2.8 3.09-.74 3.58 1.1 5.97 2.84 8.24 1.97 2.58 3.85 5.02 1.78 8.9l-.34.62c-1.09 1.9-3 5.22.62 6.34 2.63.81 2.48-.12 2.31-1.08-.12-.73-.25-1.48.8-1.52-.21-.6 2.98.1 2.58.98.84.09 1.25.54 1.65.98.57.63 1.12 1.24 2.9.7 1.76-.55 2.05-2.2 2.28-3.55l.02-.1c.35-2.04-.6-3.8-1.5-5.5-.75-1.41-1.47-2.78-1.42-4.22v-.54c-.01-.36-.02-.65.16-1.13a2.74 2.74 0 0 1 2-.48c1.16.24 1.48-.2.97-1.3 1-1.93.62-5.18.29-8.05-.15-1.3-.3-2.51-.3-3.5 0-.67.13-1.8.27-3.13.36-3.47.87-8.26-.26-9.68-.66-.83-5.81-2.13-6.94-1.54ZM129.58 52.35c-2.97-.76-2.61 1.57-2.33 3.35.08.52.15 1 .13 1.33-.14 2.96-.48 3.68-4.15 4.16-.88.12-1.72-.1-2.55-.3-1.4-.36-2.76-.7-4.23.55-.83.7-.8 1.57-.76 2.44.02.43.04.85-.04 1.26-.14.7-.68 1.78-1.25 2.93-1.05 2.11-2.22 4.48-1.26 5.11.65.44 2.53-.06 4.66-.62 3.68-.96 8.12-2.13 8.4.86.18 1.78-2.15 2.05-4.37 2.3-1.44.17-2.83.34-3.45.9-.19.17-.55 1.43-.91 2.68-.4 1.4-.81 2.8-.96 2.67.65.54 1.69-.2 2.91-1.07 1.8-1.28 4.02-2.86 6.04-1.12-2.49-4.76 4.86-4.08 7.99-3.8.34.04.63.07.86.08V60.21c-3.56.93-3.33-1.08-3.07-3.31.22-1.92.45-4-1.66-4.55ZM131.51 120.55c.9.05 1.81.1 2.8.1 0 .8-.74 1.17-1.48 1.53-.64.31-1.29.63-1.46 1.24-.48 1.73.58 2.33 1.56 2.88.71.4 1.38.77 1.38 1.52-.84 0-1.78.04-2.76.09-2.07.09-4.3.18-6.04-.09h-2.93l-.25-1.14-.43-.2c-1.22-.57-3.28-1.53-4.19-2.16-4.51-3.15-.46-6.42 3.78-7.72-2.92.9 1.1 3.79 2.51 4.18 1.1.3 1.74.15 2.5-.03.44-.1.94-.22 1.58-.26 1.2-.06 2.31 0 3.43.06ZM13.29 31.85c-.62-.31-1.29-.12-1.96.08-.78.22-1.56.45-2.29-.09-.39-.29-.26-.87-.13-1.41.1-.44.2-.85 0-1.05-2-1.94-2.12-1.47-2.46-.15-.15.59-.34 1.35-.77 2.14-.86 1.58-1.96 1.95-3.06 2.31-1.3.44-2.6.86-3.45 3.34-1.84 5.28-5.2 3.61-6.4-1-.2-.72-.77-1.78-1.4-2.98-1.6-2.98-3.62-6.77-1.23-7.9-1.66.79-3.61 1.13-5.57 1.48-2.27.4-4.54.8-6.34 1.9-1.92 1.15-1.91 1.41-1.88 2.74a131.99 131.99 0 0 0 .07 5.55l.04 1.51c.04 1.5.67 2.78 1.33 4.1.38.76.77 1.55 1.05 2.4.58 1.78.82 3.66 1.05 5.53.16 1.24.32 2.48.57 3.68l.17.75c.51 2.35 1 4.58-.37 6.85-.19.3-.65.66-1.14 1.04-.88.67-1.87 1.42-1.64 2.14.34 1.05 2.04-.49 2.92-1.28l.43-.38c.79-.6.83-1.17.86-1.64.04-.57.07-.97 1.4-1.01 1.8-.06 3.65 1.93 4.74 3.1l.32.35c.6.64 1.17 1.43 1.76 2.25 1.52 2.14 3.2 4.48 6.06 4.83 8.88 1.1 10.66-9.15 7.36-13.8a21.83 21.83 0 0 0-2.63-2.84c-1.67-1.6-3.39-3.25-3.85-5.15-.76-3.13 1.93-5.67 5.62-3.87 1.76.86 2.32 2.35 2.9 3.85.48 1.28.96 2.57 2.2 3.48 2.6 1.93 2.84 1.38 3.27.4.23-.52.52-1.16 1.25-1.6 2.1-1.29 5.75-2.35 6.25.86.18 1.13-.76 2.09-1.71 3.07-1.14 1.16-2.3 2.35-1.63 3.88 1.29 2.95 2.46 1.35 3.46-.01.2-.3.41-.57.61-.8 2.79-3.15 5.56-6.44 4.73-10.59-.53-2.65-2.38-4.54-4.27-6.47a32.36 32.36 0 0 1-2.47-2.72c-.45-.58-.88-1.64-1.33-2.77-.7-1.73-1.45-3.61-2.44-4.1ZM62.98 102.48c-.03 1.26-.05 2.5.5 3.73 1.29 2.79 2 4.45.22 7.05-.48.7-.98 1.22-1.46 1.72a7.8 7.8 0 0 0-2.1 3.14c-.15.47-.27.9-.38 1.3-.39 1.46-.68 2.53-2.7 3.5-4.64 2.25-8.11.2-11.17-2.37l-.69-.58c-1.54-1.28-2.59-2.15-3.53-3.9a2.45 2.45 0 0 1-.22-1.54c.07-.74.13-1.36-1.28-2.02-1.37-.64-2.7-.4-4.05-.15-1.68.3-3.38.61-5.15-.8-4.02-3.22-3-9.5.72-12.22 1.04-.77 2-1.22 2.8-1.6 1.85-.87 2.81-1.33 1.96-4.33a4.63 4.63 0 0 1-1.56-2.2 3.8 3.8 0 0 1 .5-2.08c-.1-.46.05-.9.19-1.3.28-.83.49-1.45-1.73-1.46.62-.45.8-1.45.97-2.48.27-1.52.55-3.13 2.25-3.3 2.92-.28 3.24 2.71 3.49 4.96.08.73.15 1.39.3 1.82 1.18 3.4 2.57 4.57 6.35 3.22.98-.35 5.57-2.81 5.93-3.35-1.65 2.5 1.72 4.87 4.24 6.64.62.43 1.2.83 1.62 1.19l.53.42a10.7 10.7 0 0 1 2.71 2.8c.8 1.4.77 2.8.74 4.2ZM104.42 120.99c-1.44-.16-6.73-2.2-6.09-3.91 1.63-4.33 10.12.56 13.06 2.25l.53.3c-1.12.06-2.2.38-3.27.7-1.4.4-2.78.82-4.23.66Z" fill="#000" fill-opacity=".4"/><g fill="#fff" fill-opacity=".2"><path d="M19.25-3.59c.2 1.51 3.16 3.8 5.07 2.44 1.22.44-.59-2.79-.89-3.09-1.59-1.58-4.59-2.32-4.18.65ZM52.27-1.64c-.74-.18-1.44-.34-2.03-.55-.54-.19-.57-2.24-.35-2.65.44-.8 1.95-.7 3.33-.63.4.03.8.05 1.15.05h13.3c-1.86.74.15 1.5 1.1 1.7.78-.22 6.37 3.92 6.21 5.65-.08.94-.75 1.63-1.43 2.33-.8.85-1.65 1.72-1.54 3.08.08.82.88 2.18 1.78 3.7 2.25 3.8 5.1 8.61-1.44 8.74-3.05.06-2.98-1.38-2.89-3.06.06-1.11.13-2.34-.72-3.3a6.06 6.06 0 0 0-2.07-1.28c-1.01-.46-2.03-.92-2.44-1.8-.2-.44-.05-1.37.12-2.38.41-2.5.9-5.45-3.81-2.21-.48.33-.77.97-1.07 1.61-.57 1.24-1.14 2.48-3.01 1.5-1.63-.84-.73-2.5.17-4.18.69-1.27 1.38-2.54.96-3.46-.8-1.8-3.2-2.37-5.31-2.86ZM132.7 85.8c-2.76.72-4.35-1.84-5.62-3.89-.87-1.4-1.59-2.56-2.43-2.3-2.23-1.92-4.4-.16-6.18 1.3-.67.55-1.3 1.06-1.84 1.3.1.08-4.98-1.12-3.95-1.32-6.82-2.32-6.9 2.9-6.97 7.43-.03 1.96-.06 3.8-.63 4.85-1.02 1.9-2.46 2.63-4.81 3.45-.83.3-1.74.46-2.65.63-1.9.35-3.79.7-4.86 2.17-.2.27-.39 1.13-.52 1.74-.08.35-.14.62-.17.62.6.16 4.88 1.51 5.32 1.88.4.33.5.92.6 1.46.08.46.16.88.4 1.08.7.59 1.38 1 2.04 1.38 1.12.66 2.15 1.26 2.96 2.6.35.57.53 1.24.7 1.9.43 1.59.85 3.14 3.64 3.2 2.27.04 3.61-1.72 4.31-3.23.32-.68.23-2.56.14-4.68-.23-5.18-.52-11.76 4.75-5.66.52.6.72 1 .88 1.34.28.57.46.95 1.87 1.74.58.32 1.16.34 1.72.35.81.02 1.58.04 2.27 1 .7 1 .36 1.94.15 2.5-.24.64-.3.8 1.55-.04 4.29-1.93 4.45-6.24 4.6-9.86.02-.72.05-1.4.1-2.05.21-2.25.7-3.59 1.64-5.58l.42-.7c1.03-1.65 3.32-5.32.58-4.6ZM48.2 122.55c-.78-1.1-1.78-1.81-2.83-2.58-.48-.35-.97-.7-1.46-1.1-.28-.24-.6-.44-.91-.64-.63-.4-1.26-.8-1.59-1.42-.27-.5-.17-1.18-.07-1.85.1-.78.22-1.55-.23-2.05-1.27-1.42-2.98-1.08-4.79-.73-2.4.48-4.96.99-6.8-2.63-1.32-2.59-1.96-6.32-.25-8.84.73-1.06 2.32-1.8 3.89-2.5 1.94-.9 3.85-1.78 3.98-3.24.07-.85-.57-1.46-1.23-2.1-.58-.55-1.18-1.12-1.34-1.9-.13-.64.21-1.41.54-2.15.64-1.43 1.22-2.72-1.91-2.65.05.02 0 .04-.04.06a.67.67 0 0 0-.04.02c-.04-.02-.4.12-.81.3-.54.23-1.2.5-1.45.52 0 0-.14.12-.35.34-.96.97-3.65 3.7-5.01 3.57-2.7-.24-3.74-5.44-2.3-5.71a3.69 3.69 0 0 1-1.55-.77c-.85-.6-1.74-1.23-3.58-.68-1.44.43-1.8 1.05-2.27 1.86-.16.26-.33.55-.55.86-.69.97-1.08 1.62-1.33 2.03-.26.43-.36.61-.5.64-.11.03-.24-.03-.45-.14-.4-.19-1.12-.53-2.61-.78l-.06.3c-.2 1.16-.28 1.62-.13 1.97.1.22.3.4.63.7.25.24.6.55 1.02 1 .55.6 1.18 1.13 1.81 1.67.45.39.9.77 1.32 1.17.52.5 5.35 5.5 4.35 5.73.97.18 1.07 2.48 1.16 4.7.07 1.54.13 3.04.5 3.73.35.7.93 1.28 1.5 1.88.47.47.93.95 1.28 1.48.94 1.42 1.09 3.08 1.23 4.77.15 1.61.29 3.25 1.14 4.72.22.38.58.7.94 1.01.35.3.69.6.9.95.14.24.39.45.63.66l.39.36c.74.8.82 1.22.88 1.48.01.08.03.14.06.2.12.21.5.28 2.28.62h.03c3.28.62 12.62.33 15.2-1.77.36-.3.74-1.11 1.03-1.73.2-.4.34-.73.42-.74a1.4 1.4 0 0 1-.64-.55c0-.02-.02-.03-.03-.05ZM79.18 120.45c-.9-.1-1.55-.38-2.19-.66a5.57 5.57 0 0 0-3.16-.62c-1.2.12-2.12.7-3.04 1.26-.53.33-1.07.66-1.67.9-1.45.6-3.96.86-6.7 1.14-5.5.57-11.92 1.23-12.49 4.92.93 0 2.35.1 4 .2 5.07.3 12.3.75 13.99-.83.86-.81.74-1.5.64-2.07-.14-.83-.25-1.44 2.63-1.9.94-.15 1.63.1 2.32.33 1.05.37 2.1.73 4.02-.31.27-.15 3.76-2.13 1.64-2.37ZM77.4 100.15c4.94-5.13 6.28 2.22 6.28 5.26 0 3.48-6 6.05-7.87 2.3-.62-1.24.37-6.3 1.59-7.56ZM133 1.74a9.56 9.56 0 0 1-1.94-2.4c-1-1.52-2.09-3.15-3.48-3.32-3.76-.47-3.33 3.97-2.97 7.59.19 1.88.35 3.55-.12 4.17.06 0 .28.14.61.34 1.59.99 5.53 3.43 3.55-1.06-.18-.4-.88-.72-1.58-1.05-1.28-.6-2.56-1.2-.54-2.26 1.29-.67 2.72 0 4.1.66.98.46 1.94.9 2.8.87l.03-.76c.07-1.02.15-2.35-.46-2.78ZM131.77 44.91c.4-.53.76-1.04 1.08-1.22.19-.12.83 16.67.15 16.46-3.3 1.97-2.89-2.4-2.63-5.1.1-.98.16-1.73.03-1.9-.47-.64-1.46-.88-2.45-1.11-1.36-.33-2.73-.66-2.77-2.05-.02-.59 2.1-2.22 2.63-2.58.2-.13.21-.35.22-.58.02-.24.03-.5.27-.65.14-.1.48 0 .87.1.5.14 1.07.3 1.35.08.42-.32.85-.9 1.25-1.45Z"/><path d="M95.36 58c-.5-.86-1-1.72-2.15-2.23-3.03-1.34-3.09-1.96-3.19-3.02-.06-.63-.13-1.4-.84-2.57-1.72-2.82-6.06-2.63-9.5-2.47-.7.03-1.36.06-1.95.06-.77 0-1.32-.03-1.75-.06-1.36-.08-1.5-.1-3.27 1.42-.71.62-1.42 1.34-2.14 2.09-.82.83-1.65 1.69-2.55 2.44-1.94 1.62-6.42 5.7-3.14 7.97-1.6.35-1.1 3.07.01 3.67-.13.05-1.51 3.29-1.44 3.47-.73-.05-1.42-.23-2.08-.4-1.48-.38-2.83-.73-4.14.54-1.11 1.08-.75 2.66-.39 4.24.31 1.33.62 2.66.04 3.7-1.61 2.93-6.9 3.21-9.69 1.46-1.9-1.2-6.26-5.08-7.47-6.87-2.06-3.06-1.24-5.8 3.08-5.68 1.06.02 1.8.47 2.36.8.82.48 1.18.69 1.38-1.18.08-.82-.8-1.87-1.51-2.72-.27-.32-.52-.62-.68-.86l-.33-.5c-1.85-2.74-2.6-3.85-1.2-7.19l.2-.48c1-2.38 1.34-3.2.4-5.92-1.1-3.13-1.4-4.45-1.14-7.76 0-.15.03-.32.05-.51.17-1.38.45-3.65-1.94-4 .36-.53 1.73-4.44 1.4-4.8 2.04.23 2.36-.14 2.97-.84.38-.43.88-1 1.99-1.62.77-.43 1.75-.54 2.75-.64 1.38-.15 2.8-.3 3.68-1.35.81-.95.85-2.49.88-4 .02-1.11.05-2.21.38-3.05.61-1.55 1.43-3.46 3.5-4.15 5-1.67 4.6 2.62 4.33 5.63-.05.51-.1 1-.1 1.4-.17 5.12-.25 10.56.75 15.5 1.02 5.02 1.87 3.1 3.02.5.22-.5.45-1.03.7-1.53a7.55 7.55 0 0 1 1.87-2.2c.66-.6 1.32-1.2 1.75-1.99.32-.6.3-1.21.27-1.8-.04-.84-.08-1.62.82-2.26.67-.48 1.47-.32 2.2-.17.6.12 1.15.23 1.55-.04.77-.51.88-1.96 1-3.46.17-2.13.35-4.36 2.45-4.1 2.06.23 2.25 2.33 2.41 4.09.11 1.24.21 2.32.95 2.46l-1.38.33c-3.21.74-7.77 1.8-1.48 3.92-1.93.18-1.37 2.48-1.1 3.54 0 .08.03.15.04.21.06.3.42.56.8.8.37.27.76.54.81.87.13.73-.07 1.1-.27 1.46-.14.26-.29.52-.3.93-.02.53-.08 1.04-.13 1.5-.2 2-.32 3.04 3 1.42.92-.46 1.14-1.1 1.3-1.58.24-.69.39-1.11 2.26-.44.07.19.23.3.5.34.28-.08.73.23 1.26.59.82.55 1.82 1.22 2.69.86 1.72-.71 1.07-1.93.48-3.03a5 5 0 0 1-.5-1.14c-.58-2.61-.2-2.79.63-3.18a4.8 4.8 0 0 0 2.33-2.14c.74-1.2.26-2.42-.18-3.55-.6-1.49-1.14-2.85 1.26-3.91 6.1-2.7 7.06 3.57 6.3 6.56l-.1.35c-.83 3.24-1.46 5.65.13 9 1.08 2.29 2.86 3.64 4.77 5.1.96.72 1.95 1.48 2.9 2.4 3.59 3.42 3.88 7.5-.21 10.8-3.28 2.62-7.68 3.4-11.1.65-.57-.46-.92-1.06-1.27-1.66ZM89.12 88.84c-4.72-.62-6.35-.74-9.92.14.23.23.24.4.04.5.6.23 1.51.39 2.5.55 1.75.3 3.7.64 4.43 1.5.18.2.03 1.03-.1 1.78-.12.66-.23 1.26-.1 1.34-.1-.06 4.21-5.26 4.88-5.76-.58.02-1.15 0-1.73-.05ZM7.23 102.28l.36.2c.5.18 1.02.26 1.58.24-.26 1.4-2.3 4-4.55 3.57-2.66-.5-1.64-1.68-.56-2.92.59-.68 1.2-1.37 1.24-2 0-.16 1.28.55 1.92.9ZM6.12 95.63c.4.56 1.08.99 1.74 1.4.3.18.59.36.84.55.37-.54.01-1.6-.34-2.66-.3-.87-.58-1.73-.44-2.27-1.71-.06-2.55 1.94-1.8 2.98ZM37.15-5.3c-1.63.91-7.34 4.14-7.66.8l-.07-.92h7.93l-.2.11Z"/></g>',camo02:(t,l)=>'<g fill="#fff" fill-opacity=".2"><path d="M-29.7 126.12c-2.62.41-9.54 1.51-10.8.4-.82-.74-.45-3.34-.18-5.2.1-.72.18-1.32.18-1.68 1.28-.06 2.24 1.38 3.19 2.8 1.4 2.08 2.75 4.1 5 1.03 1.04-1.44.8-3.25.55-5.1-.26-1.95-.52-3.93.72-5.53 1.48-1.9 3.83-2.17 6.16-2.44 2.47-.27 4.9-.55 6.23-2.77.38-.64.48-1.77.6-3 .19-2.11.4-4.5 2.15-5.06 3-.95 3.19 1.67 3.35 3.95.1 1.23.18 2.36.68 2.8 5.46 4.63 5.98-4.3 6.1-6.34v-.03c.02-.42-.05-.76-.12-1.08-.12-.57-.22-1.04.32-1.71.28-.35.67-.3 1.08-.23.4.07.84.14 1.21-.22 1.45-1.39 1.48-1.52 1.8-3.06l.04-.17.05-.2c.11-.52.18-.97.24-1.38A6.4 6.4 0 0 1 .61 88c1.15-1.44 2.3-2.87.14-4.63.6 0 5.76-1.43 6.1-1.62.5-.27 1.07-.96 1.59-1.58.45-.55.85-1.04 1.12-1.14 3.07-1.09 2.85 1.27 2.63 3.69-.14 1.45-.27 2.94.3 3.71-7.95.27-12.73 8.1-13.2 14.16-.07.93.29 1.73.62 2.48.27.6.53 1.17.54 1.76a4.1 4.1 0 0 1-.5 1.95c-.21.46-.42.91-.48 1.52-.23 2.6.81 3.55 2.17 4.8.69.64 1.45 1.34 2.17 2.37 2.4 3.4 1.15 3.93-2.49 3.32-2.09-.36-4.1-.98-6.1-1.61a38.06 38.06 0 0 0-7.53-1.8c-3.34-.34-6.44-.18-8.02 2.61-.92 1.62-1.32 6.05 1.72 6.4-.76.11-1.38.37-2.02.62-.83.34-1.69.68-2.9.76-.96-.39-1.97-.63-3.03-.73-.9.14-1.7.47-2.42.96l-.74.12ZM150.24 57.01c.47.27 1.37.22 2.35.17 1.06-.06 2.2-.12 2.96.21.4.18.8.64 1.2 1.1.37.42.74.85 1.12 1.06.86.5 1.78.67 2.7.84.71.13 1.42.26 2.1.53 2.8 1.14 4.88 3.6 3.26 6.47-.44.8-1.47 1.33-2.5 1.87-1.3.7-2.6 1.38-2.6 2.59 0 4.48 7.78-2.91 8.48-4.5.2-.44.27-.95.34-1.47.1-.72.2-1.46.64-2.03a6.98 6.98 0 0 1 1.96-1.3c.48-.25.87-.46.94-.58 1.3-2.1.75-7.26.32-11.22-.17-1.6-.32-3-.32-3.94-2.2.01-3.19 2.7-4.19 5.38-1.44 3.9-2.89 7.8-8.04 3.5-1.37-1.15-5.3-8.12-5.3-9.42 0-1.18.6-1.84 1.25-2.55.31-.34.63-.68.9-1.1l.75-1.14c.82-1.22 1.01-1.5 1.23-3.82.17-1.88.38-2.17.93-2.91.22-.3.5-.7.87-1.3.17-.3.5-.56.8-.82.7-.6 1.4-1.18.36-2.07-2.6-2.23-8.24 3.55-9.22 4.7-2.78 3.29-6.55 7.77-6.22 11.93.08.94 2.09 9.32 2.92 9.81ZM116.75 116.14c-.33.4-.66.78-.62 1.29.12 1.79.13 1.78.35 1.67.17-.08.46-.22 1.02.3.16.15.63.36 1.2.62 1.33.6 3.16 1.42 2.6 2.12-.28.36-1.04.4-1.85.42-.8.04-1.65.08-2.1.44-.35.28-.56.83-.76 1.32-.16.4-.3.78-.5.92-1.56 1.17-2.17 1.27-5.48 1.27 2.2-.62-3.45-4.51-4.02-3.27.53-1.16-.17-2.38-.85-3.54-.4-.68-.78-1.34-.89-1.96-.14-.8-.11-1.59-.09-2.36.06-1.75.1-3.41-1.76-4.88.63-.08.99-.53 1.34-.97.38-.47.75-.94 1.45-.96.87 2.37 2.9 2.54 5.03 2.71.98.08 1.99.17 2.92.46.3.1.57.17.84.24 1.05.28 1.9.5 2.52 1.58.74 1.28.18 1.95-.35 2.58ZM173.2-4.11c0-1.08-1.99-.92-3.45-.8-.4.02-.76.05-1.03.05.63.25 1 .42 1.24.54.2.1.32.15.45.2.26.06.53.06 1.34.04l1.44-.03ZM-39.75-2.61c-.2.65-.4 1.23-.03 1.36-1.09.22-.88-1.77-.77-2.9.03-.28.05-.5.05-.63 1.44 0 1.07 1.16.75 2.17ZM117.76-4.86h-3.58c.3.14.62.32.94.5 1.33.74 2.63 1.46 2.64-.5ZM172.3 4.14c.43-.08.7-.05.85-.03.09.02.14.03.16 0 .04-.03.03-.1 0-.3-.04-.3-.12-.85-.12-1.87-1.02.02-2.63 2.18-.9 2.2h.01ZM44.89 126.51h1.79c-.37-.08-1.44-.18-1.8 0ZM44.95 71.71c.63-.08 1.17-.4 1.72-.7.78-.43 1.55-.86 2.54-.62 1.02.25 1.4.9 1.67 1.4.15.27.28.5.47.57 2.72 1.03 3.16-.9 3.63-3.93.08-.54.1-1.01.12-1.44.04-1.06.08-1.87 1.04-2.9.55-.59 1.45-.9 2.34-1.2.65-.22 1.3-.45 1.8-.77a9.8 9.8 0 0 0 2.8-2.78c.3-.4.63-.85 1.04-1.33.92-1.1 2.27-2.15 3.66-3.24 3.76-2.94 7.88-6.16 5.11-11.24-2.97-5.46-4.15-.85-5.06 2.71-.34 1.37-.65 2.58-1 3-4.48 5.4-5.45.13-6.04-3.03-.1-.51-.18-.97-.26-1.32-1.26-4.95-2.98-1.38-4.4 1.56-.42.89-.82 1.72-1.17 2.24a7.8 7.8 0 0 1-1.46 1.53 5.57 5.57 0 0 0-1.6 1.9c-.24.5-.12 1.15 0 1.8.18 1.1.38 2.23-.94 2.9-1.4.75-3-.14-4.42-.92-1.08-.6-2.06-1.14-2.77-.88-2.25.8-.23 3.54 1.39 5.73.74 1 1.4 1.9 1.52 2.43.34 1.55-.27 2.9-.88 4.25-.61 1.36-1.23 2.73-.85 4.3ZM9.52 34.33H9.3h.23ZM.12 41.5c-.43 1.4-1.57 2.56-2.7 3.72-1.29 1.32-2.57 2.62-2.8 4.25-.36 2.63 1.66 3.97 3.75 5.35.66.44 1.33.89 1.93 1.38a9.29 9.29 0 0 1 3 3.61c.12.27.14.72.16 1.18.04.68.07 1.39.4 1.62 1.78 1.26 2.77.4 3.96-.64a8.62 8.62 0 0 1 1.96-1.4c2.61-1.23 2.65-1.2 4.21-.26.32.2.7.42 1.17.68l.68.41c1.44.88 2.46 1.5 4.22-1.06.7-1.02.67-2.83.63-4.7-.06-3.14-.13-6.47 3.3-6.66-1.52-.68-.85-2.7-.16-4.77.71-2.1 1.43-4.26-.22-5-4-1.81-5.17 6.75-5.84 11.65-.22 1.61-.38 2.83-.58 3.14-1.6 2.6-7.32 4.8-8.96.97-.3-.68-.08-1.41.14-2.16.22-.72.43-1.46.2-2.16-.36-1.03-.94-1.4-1.61-1.84a7.11 7.11 0 0 1-1.14-.86c-2.78-2.67-2.68-2.84-1.29-5.1l.83-1.38c.3-.53.53-1.37.8-2.28.58-2.08 1.29-4.56 3.12-4.84-1 0-2.04-.24-3.08-.5-1.97-.46-3.9-.93-5.37.44-1.03.96-.85 2.69-.68 4.33.1 1.08.2 2.13-.03 2.9ZM65.5 10.9l-.9-1.2c4.2-.06 7.5-4.53 2.91-7.06 1.87 1.02 3.27-.12 4.4-1.04 1.44-1.17 2.46-2 3.44 2.24l.27 1.07c.22.86.46 1.82.56 2.48.2 1.4.16 1.57 0 2.35l-.09.46c-.08.46-.25.78-.4 1.07-.35.63-.62 1.14.1 2.63.39.78.85 1.38 1.3 1.96.8 1.05 1.54 2 1.51 3.68 0 .47-.2.84-.4 1.25a3.46 3.46 0 0 0-.38 2.87c.23.84.63 1.63 1.04 2.43.49.95.98 1.9 1.15 2.94-1.73-.07-2.83-1.43-3.82-2.64-.35-.43-.68-.84-1.02-1.17-.76-.74-1.69-1.26-2.58-1.77-.78-.45-1.54-.88-2.16-1.43-1.72-1.56-1.78-2.36-1.9-3.84-.03-.47-.07-1-.17-1.67-.38-2.44-1.46-3.83-2.84-5.62ZM65.15 36.8c2.2-.98-.14-5.47-2.18-5.64-1.43-.13-5.26 3.09-5.5 4 1.22-.23 2.48.36 3.71.93 1.38.65 2.73 1.27 3.97.72ZM11.35 29.55c1.01.62 3.03 3.24.1 3.1-.75-.3-1.61-.5-2.46-.68-1.8-.4-3.54-.79-4.05-2.13.56-.01 1.26-.15 2.01-.29 1.57-.3 3.35-.63 4.4 0ZM33.07 51.36c-1.07.05-2.14-.24-3.1-.5-2.03-.54-3.54-.95-3.39 2.27.8.05 1.55.2 2.24.33 2.07.41 3.6.71 4.25-2.1ZM-.27 19.32c-.1.52-.18 1.02-.58 1.15a30.5 30.5 0 0 0-.56-.14c-1.69-.4-4.68-1.12-3.95-2.77.9-2 2.61-1.12 4.13-.34.69.36 1.33.7 1.85.73-.66.1-.78.76-.89 1.37ZM91.3 46.57a6.25 6.25 0 0 1 .02-3.58c-2.2.01-2.03 3.55-.02 3.58Z"/><path d="m64.5 9.39.06.24c.71-.04.23-.2-.07-.24ZM100.06 44.32c.47.67.52 1.66.58 2.66.09 1.51.17 3.07 1.68 3.62 1.52.56 2.3-.7 3.12-2.06.7-1.15 1.44-2.36 2.7-2.6.84-.18 1.7.24 2.58.66.82.4 1.66.8 2.53.74 2.5-.16 6.46-2.7 6.26-4.97a6.74 6.74 0 0 1-2.82-.24c-.74-.17-1.46-.35-2.3-.3-.86.05-1.7.3-2.52.55-.77.23-1.53.46-2.24.5-3.26.17-3.24-.2-3.16-1.36.03-.52.08-1.2-.15-2.06a12.3 12.3 0 0 1-.18-.78c-.12-.56-.16-.8-.75-1.63-.26-.37-.74-.65-1.24-.94-.6-.35-1.22-.71-1.47-1.25-.1-.21 0-.92.12-1.74.2-1.42.43-3.19-.18-3.31-.8 1.18-2.06 2.1-3.31 3.01-1.56 1.14-3.12 2.29-3.82 3.94-1.22 2.86.3 3.98 2.07 5.28.87.64 1.8 1.33 2.49 2.28ZM25.21 60.2c1.68-.4.82-4.15-.44-3.26-.8.56-.77 3.14.44 3.25ZM55.6 35.91ZM-39.74 88.2c.24-.1.46-.27.68-.43.4-.29.82-.59 1.32-.62-.02-.57-2.5-3.04-2.76-3.03l-.06.5c-.16 1.27-.56 4.26.82 3.59ZM66.99-3.94c-.29-.31-.57-.63-.92-.76-.09-.04-.1-.08-.13-.11a.26.26 0 0 0-.04-.05c4.93 0 3.18 2.35 1.87 1.62-.29-.15-.54-.43-.78-.7ZM88.29 122.17c.14.1.03.05-.16-.03-.3-.13-.8-.34-.8-.19-.01.43 2.33 1.18.96.22ZM-32.66 77.55c.3.18.58.35.9.44 1.47.41-2.51.23-2.02-.92.41.06.77.27 1.12.48Z"/></g><path d="M146.72 95.46c-.16.3-.3.57-.35.7 2.15.2 2.73 13.63-4.7 10.83-.65-.25-1-1.85-1.4-3.64-.8-3.58-1.76-7.9-5.6-3.63-1.26 1.4-.54 3.23.18 5.05.83 2.1 1.65 4.18-.53 5.6-3.24 2.1-4.6-.3-5.97-2.75-1.03-1.81-2.06-3.65-3.9-3.67 3.2 2.08 3.08 8.06 2.99 12.56-.03 1.64-.06 3.09.08 4.08a3.87 3.87 0 0 0 1.87-.63 3.42 3.42 0 0 1 1.93-.6c1.2.08 2 .62 2.82 1.17.37.25.73.5 1.13.7.31.16.68.43 1.08.71 1.2.86 2.73 1.95 4.1 1.34.42-.2.5-.97.57-1.83.1-1.05.2-2.22.97-2.6 1.55-.73 1.53.95 1.51 2.6-.01 1.05-.03 2.09.35 2.51 1.36 1.54 7.6 1.89 9.7 1.9.05-.89-.06-1.55-.14-2.06-.18-1.09-.25-1.56 1.41-2.24 2.63-1.06 7.26 1.84 8.77 3.05.32.26.4.77.48 1.23.06.4.12.76.3.88.65.41 6.09.27 6.46.2 2.22-.47 3.63-1.9 3.03-4.86-.48-2.38-2.85-3.47-5.25-4.57-2.57-1.2-5.18-2.39-5.54-5.2-.09-.66.27-1.47.61-2.27.27-.62.54-1.24.58-1.76.07-.8-.1-1.63-.27-2.45-.22-1.07-.44-2.13-.15-3.15.18-.62 3.65-4.84 4.01-4.96h.03-.03c-.6-.01-1.13-.23-1.65-.45a4.27 4.27 0 0 0-1.77-.45c-.1-.02-.42.6-.77 1.31-.46.91-1 1.99-1.28 2.07-3.05.9-2.28-1.25-1.72-2.8.16-.46.3-.86.33-1.12.1-1.1-.09-2.15-.28-3.2-.14-.73-.28-1.47-.31-2.22-.03-.56.1-1.07.23-1.58.17-.7.35-1.39.1-2.2-.05-.16-.68-.01-1.28.12-.53.13-1.03.25-1.04.12-.11-.71.15-1.83.41-2.95.65-2.73 1.3-5.48-3.47-2.33-2.43 1.61-3.42 3.92-4.43 6.27-.86 2.02-1.74 4.07-3.56 5.72.09.02-.32.8-.64 1.44ZM-35.67 117.64c1.35-.73.57-1.37-.36-2.15-.94-.77-2.03-1.67-1.31-2.92.46-.8 1.54-.97 2.65-1.15 1.14-.17 2.3-.36 2.85-1.2.8-1.2.48-2.06.17-2.9-.37-.96-.73-1.9.75-3.32 1.04-1 2.01-1.32 2.86-1.6 1.26-.41 2.23-.73 2.7-3.04.7-3.53-1.06-5.88-2.74-8.12-1.9-2.54-3.7-4.94-1.71-8.77l.32-.6c1.05-1.87 2.87-5.15-.6-6.25-2.52-.8-2.37.12-2.21 1.07.11.71.24 1.45-.78 1.49.21.58-2.85-.1-2.47-.96-.8-.1-1.2-.54-1.58-.97-.55-.63-1.08-1.22-2.78-.68-1.7.53-1.97 2.16-2.2 3.49l-.01.1c-.34 2 .56 3.74 1.43 5.41.72 1.4 1.42 2.74 1.37 4.16v.53c.01.36.02.64-.16 1.12-.56.4-1.2.56-1.92.46-1.1-.23-1.41.2-.92 1.3-.97 1.89-.6 5.1-.29 7.92.15 1.27.29 2.47.29 3.44 0 .67-.12 1.78-.25 3.09-.35 3.41-.84 8.14.25 9.54.63.81 5.57 2.1 6.66 1.5ZM-35.55 66.22c.26 1.76.6 4.05-2.25 3.3-2.03-.53-1.8-2.59-1.59-4.48.25-2.2.47-4.18-2.94-3.26V46.16l.81.08c3.02.28 10.07.94 7.68-3.74 1.94 1.71 4.07.16 5.8-1.1 1.17-.86 2.17-1.59 2.8-1.05-.15-.13-.54 1.24-.92 2.62-.35 1.23-.7 2.47-.88 2.64-.6.56-1.93.72-3.32.88-2.13.26-4.37.53-4.2 2.27.28 2.95 4.55 1.8 8.07.85 2.06-.55 3.86-1.04 4.49-.61.9.63-.22 2.95-1.22 5.04-.55 1.13-1.07 2.2-1.2 2.88-.08.4-.06.82-.04 1.24.03.86.07 1.71-.73 2.4-1.41 1.24-2.72.9-4.06.55-.8-.2-1.6-.41-2.45-.3-3.52.48-3.85 1.19-3.99 4.1-.01.33.06.8.14 1.3ZM-39.65 2.34c1.08.06 2.14.12 3.3.05.61-.03 1.08-.15 1.52-.25.72-.18 1.34-.33 2.4-.03 1.35.39 5.2 3.24 2.4 4.12 4.07-1.28 7.96-4.5 3.63-7.6a35.47 35.47 0 0 0-4.02-2.13l-.41-.2-.25-1.13h-2.81c-1.67-.26-3.81-.17-5.8-.08-.94.04-1.84.08-2.64.08 0 .75.63 1.11 1.31 1.5.94.54 1.97 1.13 1.5 2.84-.16.62-.78.93-1.4 1.23-.7.36-1.41.71-1.41 1.52.94-.01 1.81.04 2.68.09ZM75.74 89.64c-.64.2-1.28.38-1.88.08-.95-.49-1.67-2.34-2.34-4.05-.44-1.1-.84-2.15-1.28-2.72a31.61 31.61 0 0 0-2.37-2.68c-1.8-1.9-3.6-3.76-4.1-6.38-.8-4.08 1.87-7.33 4.54-10.44.2-.21.39-.49.6-.77.95-1.35 2.07-2.92 3.32-.01.64 1.5-.47 2.67-1.56 3.82-.92.96-1.82 1.91-1.65 3.02.49 3.17 3.98 2.13 6 .86.7-.44.98-1.07 1.2-1.58.42-.96.65-1.5 3.15.4 1.18.9 1.65 2.16 2.12 3.42.53 1.48 1.08 2.95 2.76 3.8 3.54 1.77 6.12-.73 5.4-3.82-.45-1.86-2.1-3.5-3.7-5.07a21.31 21.31 0 0 1-2.52-2.78c-3.18-4.59-1.47-14.68 7.06-13.6 2.76.35 4.36 2.65 5.82 4.76.57.8 1.1 1.59 1.69 2.21l.31.34c1.06 1.16 2.83 3.12 4.57 3.06 1.26-.04 1.3-.43 1.33-1 .03-.45.08-1.03.83-1.61l.41-.37c.85-.78 2.48-2.3 2.8-1.27.23.71-.72 1.46-1.56 2.12-.48.37-.92.72-1.1 1.02-1.32 2.24-.85 4.43-.35 6.75l.15.73c.25 1.2.4 2.4.55 3.63.23 1.84.45 3.7 1.01 5.45.27.84.64 1.61 1.01 2.37.63 1.29 1.24 2.55 1.27 4.03l.04 1.49c.03 1.55.08 3.21.06 4.59v.88c.04 1.3.05 1.57-1.79 2.7-1.73 1.07-3.91 1.47-6.1 1.87-1.87.34-3.75.68-5.34 1.45 2.3-1.11.35-4.84-1.18-7.78a17.3 17.3 0 0 1-1.34-2.93c-1.16-4.55-4.38-6.19-6.15-.98-.82 2.43-2.06 2.85-3.31 3.28-1.06.36-2.11.72-2.94 2.28-.4.78-.6 1.53-.74 2.11-.32 1.3-.44 1.76-2.36-.15-.2-.2-.1-.6 0-1.03.1-.54.24-1.11-.14-1.4-.7-.53-1.45-.3-2.2-.08ZM25.66 16.46c.54 1.21.52 2.44.5 3.67-.03 1.38-.06 2.76.7 4.13.61 1.1 1.61 1.93 2.6 2.76l.51.42c.41.35.96.74 1.55 1.17 2.42 1.75 5.66 4.08 4.08 6.54.34-.53 4.75-2.96 5.7-3.3 3.63-1.33 4.96-.18 6.09 3.17.14.43.21 1.07.29 1.8.23 2.2.55 5.15 3.35 4.88 1.63-.16 1.9-1.75 2.16-3.24.17-1.03.34-2 .93-2.45-2.13-.01-1.93-.62-1.66-1.43.13-.4.28-.84.18-1.29.36-.65.52-1.33.48-2.05a4.56 4.56 0 0 0-1.5-2.17c-.82-2.95.11-3.4 1.89-4.26.76-.37 1.68-.82 2.69-1.58 3.57-2.68 4.55-8.87.69-12.03-1.7-1.4-3.33-1.1-4.95-.8-1.3.25-2.58.49-3.89-.14-1.35-.65-1.3-1.27-1.23-1.99.05-.45.1-.95-.2-1.51-.91-1.73-1.92-2.59-3.4-3.85l-.66-.56C39.63-.19 36.29-2.2 31.83 0c-1.94.96-2.21 2.02-2.59 3.45-.1.4-.21.82-.37 1.28-.5 1.5-1.24 2.28-2 3.1-.47.49-.95 1-1.41 1.69-1.7 2.56-1.03 4.2.2 6.94ZM50.53 97.14c-.37-.83-.74-1.65-.51-2.4 2.43-.23 3.76 1 5.17 2.3.6.56 1.22 1.13 1.95 1.6 1.34.89 2.86 1.58 4.37 2.26 1.13.52 2.26 1.03 3.32 1.62 2.52 1.41 2.85 2.23 3.3 3.39.27.67.58 1.45 1.39 2.52.36.47 3.83 2.75 3.85 2.73-3.75-.03-2.96 1.2-1.95 2.76.63.99 1.36 2.11 1.1 3.15-.4 1.69-6.91 6.12-9.06 5.43-2.88-.92-1.54-2.37-.2-3.82.75-.82 1.5-1.64 1.5-2.36-.02-2.16-4.89-6.58-7.49-6.43-2.08.11-2.01.72-1.93 1.45.02.23.05.48 0 .73-.1.6.1 1.08.29 1.57.33.82.67 1.68-.32 3.22-1.85 2.87-5.83 6.43-9.5 6.52-.96.02-5-.91-5.56-1.6-.15-.2-.27-.34-.37-.45-.24-.28-.34-.4-.33-.5 0-.07.07-.14.18-.25.18-.2.49-.52.87-1.25.47-.88 1.24-1.7 1.98-2.47 1.9-2 3.62-3.8-.54-6.07 5.2 2.82 6.64-3.24 7.4-6.42l.1-.47c.13-.5.4-1.22.7-1.96.41-1.05.84-2.16.87-2.78.03-.65-.28-1.33-.59-2.02ZM-7.8 5.76c.62-1.68-4.45-3.7-5.84-3.85-1.4-.15-2.72.25-4.06.66-1.03.31-2.07.62-3.13.68l.5.3C-17.51 5.2-9.36 10.02-7.8 5.76ZM127.24 37.29c-2.09-1.27-10.33-4.32-11.54-1.56-.16.37-1.55-1.53-1.65-1.74-.7-1.55 0-3 .7-4.43a24 24 0 0 0 .44-.93c.2-.48.44-.93.68-1.38.58-1.11 1.15-2.2 1.22-3.49.04-.87-.33-1.75-.69-2.61-.38-.92-.75-1.82-.62-2.68.29-1.82 1.1-2.1 2.2-2.5.57-.19 1.21-.42 1.9-.9 1.67-1.13 1.8-1.67 2.09-2.77.09-.36.2-.78.38-1.3.29-.83.47-1.95.66-3.11.3-1.8.62-3.71 1.36-4.86.92-1.4 1.49-1.38 2.45-1.32a7.1 7.1 0 0 0 1.86-.08 10 10 0 0 0 1.94-.7c1.15-.51 2.38-1.05 3.28-.86.37.07.84.67 1.4 1.38.73.9 1.6 2 2.55 2.38.82.34 1.82.26 2.8.2.9-.07 1.8-.14 2.45.15 1.26.56 1.52 1.27 1.83 2.1.2.53.42 1.12.96 1.77.44.53.94.91 1.42 1.29a5.74 5.74 0 0 1 1.95 2.16c.3.65.28 1.25.26 1.8-.05.98-.08 1.78 1.85 2.37l-.19.19c-1.9 1.94-8.68 8.87-11.31 8.51-2-.27-1.93-1.88-1.85-3.4l.02-.85c0-.67.04-1.34.08-2.02.15-2.15.28-4.29-1.12-6.25-1.96-2.73-4.45-3.42-6.23-.42a5.04 5.04 0 0 0-.56 2.08c-.1.9-.2 1.8-.91 2.6-.63.72-1.36 1.01-2.1 1.32-.47.19-.96.38-1.42.7-3.4 2.22-6.44 5.64-5.11 9.76.94 2.93 2.6 2.98 4.49 3.05 1.36.04 2.84.09 4.27 1.2.73.57.94 1.13 1.16 1.68.28.72.54 1.4 1.95 2 1.2.5 2.63.45 4.05.4 1.09-.04 2.17-.08 3.15.13-.91.52-3.35 4.7-2.85 4.36-3.56 2.98-5.53.76-7.4-1.35-.73-.83-1.44-1.63-2.23-2.1Z" fill="#000" fill-opacity=".2"/><g fill="#000" fill-opacity=".1"><path d="M109.88 125c-.42-1.6-4.19-2.3-5.67-1.5-4.74 2.55 6.75 5.59 5.67 1.5ZM68.14 124.62c-.2-1.48-3.03-3.74-4.87-2.4-1.17-.44.56 2.75.85 3.04 1.53 1.56 4.41 2.3 4.02-.64ZM38.4 123.25c-.57-.2-1.24-.37-1.95-.54-2.03-.49-4.33-1.05-5.1-2.82-.4-.9.26-2.16.92-3.41.86-1.65 1.73-3.29.17-4.12-1.8-.96-2.35.26-2.9 1.48-.28.63-.56 1.26-1.02 1.59-4.52 3.19-4.05.28-3.66-2.18.16-1 .3-1.92.11-2.34-.39-.88-1.36-1.33-2.34-1.78-.76-.35-1.51-.7-1.98-1.26-.82-.95-.75-2.15-.7-3.26.09-1.65.16-3.06-2.77-3-6.28.12-3.54 4.87-1.38 8.61.86 1.5 1.63 2.83 1.7 3.64.1 1.34-.7 2.2-1.48 3.03-.65.7-1.3 1.37-1.37 2.3-.15 1.7 5.21 5.78 5.96 5.56.91.2 2.84.95 1.06 1.68h12.76c.33 0 .71.02 1.1.04 1.33.09 2.78.17 3.2-.61.21-.4.18-2.43-.34-2.61ZM128.02 117.12c-.42 2.86-.83 5.6 3.2 7.24 2.48 1.01-2.12 2.56-3.9 2.07-2.48-.69-3.08-1.86-3.46-4.18-.08-.5 0-1.05.08-1.61.22-1.52.44-3.04-2.53-3.18-2.4-.12-2.53.8-2.24 2.62 0 .05-3.92-.42-3.95-.44-.98-1.12-.4-1.58.2-2.04.33-.26.66-.52.71-.9.23-1.6.34-4.56-2.51-5.45-1.19-.37-2.27-.1-3.33.18-1.36.35-2.69.69-4.15-.4-.52-.39-.81-2.33-1.01-3.68-.12-.75-.2-1.32-.28-1.34.36-.54-1-1.2-2.34-1.85-.97-.48-1.92-.94-2.16-1.34-1.48-2.46 1.52-2.95 4.24-3.4.98-.16 1.94-.31 2.61-.55 1.05-.38 1.8-.71 2.4-.98 1.82-.81 2.1-.93 4.79.65.76.45 1.58 1.07 2.4 1.68.63.47 1.26.94 1.84 1.32-.73.15 3.81 1.89 3.44 1.7.82.4 1.34.6 1.7.73.31.1.5.17.65.3.25.18.39.5.76 1.36l.3.67.25.58c.74 1.65 1.8 4.03 2.31 5.68.46 1.45.22 3.03 0 4.57ZM-40.75 36.57c2.64-.71 4.17 1.8 5.4 3.83.82 1.38 1.52 2.52 2.33 2.26 2.14 1.9 4.2.16 5.92-1.27a9.27 9.27 0 0 1 1.78-1.3c-.11-.06 4.77 1.12 3.78 1.32 6.55 2.28 6.63-2.85 6.7-7.32.02-1.93.05-3.74.6-4.78.98-1.87 2.36-2.59 4.62-3.4.8-.29 1.67-.45 2.54-.62 1.82-.34 3.63-.68 4.66-2.13.19-.27.38-1.12.5-1.72.08-.35.14-.61.17-.62-.58-.15-4.68-1.48-5.1-1.84-.4-.33-.5-.91-.59-1.44-.08-.45-.15-.86-.38-1.07a13.4 13.4 0 0 0-1.96-1.35c-1.07-.65-2.06-1.25-2.84-2.57-.34-.56-.5-1.22-.67-1.86-.41-1.58-.81-3.11-3.5-3.17-2.17-.04-3.46 1.7-4.14 3.18-.3.67-.22 2.52-.13 4.61.22 5.1.5 11.58-4.56 5.58a5.4 5.4 0 0 1-.84-1.33c-.27-.55-.45-.93-1.8-1.7a3.27 3.27 0 0 0-1.65-.35c-.78-.02-1.52-.04-2.18-.99-.68-.98-.34-1.91-.14-2.47.23-.62.28-.77-1.49.05-4.11 1.9-4.27 6.15-4.4 9.71-.03.7-.06 1.39-.12 2.02a14.87 14.87 0 0 1-1.96 6.18c-.99 1.63-3.19 5.25-.55 4.55ZM40.36.37c.74 1.07 1.7 1.79 2.7 2.54.47.34.94.7 1.4 1.1.28.22.58.42.89.62.6.39 1.2.78 1.52 1.4.26.49.16 1.15.07 1.82-.1.76-.21 1.52.22 2.02 1.21 1.4 2.86 1.06 4.6.71 2.3-.47 4.76-.97 6.52 2.6 1.27 2.55 1.89 6.22.24 8.7-.7 1.05-2.23 1.77-3.73 2.47-1.88.89-3.7 1.75-3.83 3.19-.07.83.55 1.44 1.18 2.06.56.55 1.13 1.11 1.28 1.87.13.64-.2 1.4-.52 2.12-.6 1.42-1.16 2.69 1.84 2.61-.05-.02 0-.04.04-.05l.03-.02a4 4 0 0 0 .79-.3c.52-.22 1.16-.5 1.4-.5l.33-.34c.92-.96 3.5-3.65 4.81-3.52 2.58.23 3.58 5.36 2.2 5.62.58.1 1.03.43 1.49.76.81.59 1.67 1.21 3.43.67 1.39-.43 1.73-1.03 2.18-1.83.15-.27.31-.56.53-.86.66-.95 1.03-1.6 1.27-2 .25-.42.36-.6.5-.63.1-.03.21.03.42.14a8.2 8.2 0 0 0 2.5.77l.06-.3c.2-1.15.27-1.6.12-1.94-.1-.22-.29-.4-.6-.69-.24-.23-.57-.54-.98-1-.53-.57-1.14-1.1-1.74-1.63-.43-.38-.86-.76-1.27-1.15-.5-.5-5.13-5.41-4.17-5.65-.93-.17-1.02-2.44-1.11-4.62-.07-1.52-.13-3-.47-3.68-.35-.68-.9-1.27-1.45-1.85-.45-.47-.9-.94-1.23-1.46-.9-1.4-1.04-3.03-1.18-4.7-.14-1.59-.28-3.2-1.1-4.65-.2-.37-.55-.69-.9-1-.33-.3-.66-.59-.86-.93-.13-.23-.37-.45-.6-.65a5.04 5.04 0 0 1-.38-.36c-.7-.78-.78-1.2-.83-1.45a.7.7 0 0 0-.06-.2c-.12-.2-.48-.28-2.2-.6v-.01c-3.15-.61-12.12-.32-14.6 1.74-.35.3-.71 1.1-.99 1.7-.18.4-.32.72-.4.74.37.18.49.36.61.54l.04.05ZM168.56 110.33c-.52 2.23 1.1 4.08 3.18 5.07 1.07.51.98 1.45.87 2.57-.04.37-.08.75-.08 1.15-2.47-.01-7.4-2.84-8.96-4.83-1.63-2.09-1.13-3.1-.36-4.64.24-.46.49-.97.71-1.57.44-1.16.6-2.33.76-3.41.4-2.81.7-4.97 5.53-4.54 0 .55-.33.87-.67 1.22-.45.46-.93.95-.72 2.06.13.7.62 1.09 1.11 1.47.7.55 1.38 1.09 1.02 2.51-.14.55-.64.97-1.16 1.4-.53.46-1.08.92-1.22 1.54ZM10.62 2.44c.85.1 1.48.38 2.1.65.85.38 1.67.75 3.02.6 1.15-.11 2.03-.67 2.92-1.23.51-.33 1.03-.66 1.6-.9 1.4-.58 3.8-.84 6.43-1.12C31.97-.1 38.13-.76 38.68-4.4c-.9 0-2.25-.09-3.83-.19-4.88-.3-11.82-.74-13.43.82-.83.8-.72 1.47-.62 2.04.14.8.24 1.4-2.53 1.86-.9.15-1.56-.09-2.22-.32-1-.37-2-.72-3.86.3-.27.15-3.62 2.1-1.58 2.34ZM162.37 32.42c.58-1.44 1.49-3.74 2.94-3.83.52.44 1.18 1.41 1.77 2.28.5.74.96 1.4 1.22 1.6 1.21.88 1.55.84 2.5.73.42-.04.96-.1 1.73-.1 0 2.23-.61 3.37-1.32 4.68-.46.86-.97 1.8-1.36 3.18-.04.14-.08.41-.12.76-.2 1.7-.63 5.14-3.16 3.16-.62-.49-.64-1.98-.66-3.73-.04-3.23-.1-7.36-3.93-7.81.11-.2.24-.53.4-.92ZM102.33-.92c0 3 1.28 10.24 6.03 5.19 1.17-1.24 2.12-6.23 1.52-7.46-1.78-3.67-7.55-1.14-7.55 2.28ZM-39.18 121.74c-.62-.97-1.22-1.9-1.86-2.36-.59-.43-.5-1.74-.45-2.75.02-.27.04-.53.04-.74.82-.04 1.74.4 2.68.86 1.33.64 2.7 1.31 3.94.64 1.94-1.04.71-1.63-.52-2.22-.67-.32-1.34-.64-1.51-1.04-1.9-4.42 1.88-2.01 3.4-1.04.32.2.54.34.59.34-.46.6-.3 2.25-.12 4.1.34 3.57.76 7.94-2.85 7.48-1.33-.17-2.37-1.77-3.34-3.27ZM-39.86 76.85c.39-.54.8-1.12 1.2-1.43.27-.2.82-.06 1.3.07.37.1.7.2.83.1.23-.15.24-.4.26-.63 0-.23.02-.45.2-.58.52-.35 2.56-1.95 2.54-2.53-.04-1.38-1.35-1.7-2.67-2.02-.95-.23-1.9-.46-2.35-1.1-.12-.16-.05-.9.04-1.86.24-2.67.64-6.97-2.53-5.03-.65-.21-.04 16.33.15 16.21.3-.18.65-.68 1.03-1.2ZM140.32 121.53c.32-2.06.62-4 3.36-3.26.21.05-.09.84-.45 1.8-.55 1.43-1.23 3.23-.5 3.4-.34.06-.38.48-.41.88-.02.2-.03.39-.09.52-.7 1.7-.86 1.7-2.44 1.61-.45-.02-1.01-.05-1.73-.05.1-.05-.5-.82-.65-.94 2.3-.06 2.61-2.07 2.9-3.97ZM137.39 125.49h.02c-.02-.02-.03-.03-.02 0ZM126.5-1.19a7.7 7.7 0 0 0-.07-2.35 11 11 0 0 0-.45-.86h.36c2-.02 7.66-.07 4.51 2.37-.97.76-3.05.86-4.34.84ZM139.1-3.8s3.3 1.83 3.43 1.4c.65-2.3-1.46-2.17-3.33-2.05-.4.02-.8.05-1.14.05.42.09.76.29 1.03.6Z"/><path d="M-4.91 63.96c.48.84.96 1.69 2.06 2.19C.05 67.47.1 68.09.2 69.13c.07.62.14 1.38.82 2.52 1.65 2.79 5.81 2.6 9.11 2.44.68-.03 1.31-.06 1.88-.06.74 0 1.26.03 1.68.06 1.3.08 1.44.1 3.13-1.4.7-.6 1.37-1.32 2.06-2.05.78-.83 1.59-1.67 2.45-2.41 1.86-1.6 6.16-5.62 3.02-7.85 1.53-.35 1.06-3.02-.02-3.61.13-.05 1.46-3.25 1.39-3.42.7.04 1.36.22 2 .39 1.41.37 2.71.72 3.96-.53 1.08-1.07.73-2.62.38-4.18-.3-1.3-.6-2.62-.04-3.64 1.55-2.89 6.63-3.17 9.3-1.44 1.82 1.19 6 5 7.16 6.77 1.98 3.02 1.2 5.71-2.95 5.6-1-.02-1.73-.46-2.26-.78-.79-.48-1.13-.69-1.32 1.15-.08.8.76 1.85 1.45 2.69a11.22 11.22 0 0 1 .97 1.33c1.77 2.7 2.49 3.8 1.15 7.08-.06.17-.13.33-.2.48-.95 2.34-1.28 3.15-.37 5.83 1.05 3.08 1.34 4.39 1.09 7.64l-.06.51c-.16 1.36-.42 3.6 1.87 3.93-.35.53-1.66 4.38-1.34 4.75-1.96-.24-2.27.13-2.85.8-.37.44-.85 1-1.91 1.61-.75.42-1.69.53-2.64.63-1.33.15-2.68.3-3.54 1.33-.78.93-.8 2.45-.84 3.94a9.36 9.36 0 0 1-.37 3c-.58 1.53-1.37 3.41-3.36 4.1-4.8 1.64-4.42-2.59-4.15-5.55.04-.5.09-.98.1-1.38.16-5.04.23-10.4-.73-15.26-.98-4.94-1.8-3.05-2.9-.5-.2.5-.43 1.02-.67 1.51a7.4 7.4 0 0 1-1.79 2.16 7.71 7.71 0 0 0-1.68 1.97c-.31.59-.28 1.2-.26 1.78.04.82.08 1.6-.78 2.22-.65.48-1.41.32-2.11.17-.58-.12-1.11-.23-1.5.03-.73.51-.84 1.94-.96 3.41-.16 2.1-.33 4.3-2.35 4.05-1.98-.24-2.16-2.3-2.31-4.03-.11-1.23-.2-2.29-.9-2.42.37-.1.82-.22 1.3-.33 3.1-.74 7.47-1.78 1.43-3.86 1.85-.18 1.31-2.45 1.07-3.5l-.05-.2c-.07-.3-.42-.55-.77-.8-.36-.25-.73-.52-.79-.84-.12-.72.07-1.08.26-1.44.14-.26.28-.52.3-.91.01-.53.07-1.03.11-1.48.2-1.98.3-3-2.86-1.4-.9.45-1.1 1.07-1.27 1.56-.22.67-.36 1.09-2.16.43-.06-.2-.22-.3-.48-.34-.27.08-.7-.22-1.21-.58-.78-.54-1.74-1.2-2.58-.85-1.66.7-1.03 1.9-.47 2.98.21.4.42.8.49 1.13.55 2.58.2 2.75-.6 3.13-.58.28-1.38.66-2.24 2.1-.71 1.2-.26 2.4.17 3.5.57 1.48 1.09 2.83-1.21 3.87-5.86 2.66-6.78-3.52-6.04-6.46l.08-.34c.8-3.2 1.4-5.58-.11-8.87-1.04-2.26-2.75-3.59-4.58-5.02a31.58 31.58 0 0 1-2.8-2.36c-3.43-3.38-3.7-7.4.22-10.64 3.14-2.6 7.36-3.36 10.65-.65.54.45.88 1.04 1.22 1.63ZM86.86 16.93c.45.21 1.04 1 1.64 1.81.56.75 1.14 1.52 1.63 1.89.6.45 1.26.79 1.9 1.12 1.04.56 2.06 1.1 2.8 2.08 3.04 4.1.8 6.84-1.88 10.1l-.1.11c-2.9 3.54-4.47 14.02-1.33 17.42.5.54 1.28.95 2.1 1.38.9.47 1.85.97 2.5 1.68.39.42.63.92.88 1.42.23.46.46.93.8 1.33 1.22 1.44 4.02 4.31 6.14 4.43.44-2.45 1.27-3.31 3.72-4.66 3.3 1.12 4.88-6.03 4.72-6.91-.32-1.77-1.37-4.19-3.9-4.25-2.3-.06-2.76 1.15-3.21 2.36-.3.78-.58 1.56-1.37 2-2.46 1.36-2.85.26-3.46-1.48a29 29 0 0 0-.32-.88c-.24-.6-.33-1.11-.42-1.58a3.98 3.98 0 0 0-1.1-2.37 5.33 5.33 0 0 0-1.8-1.06c-.85-.36-1.7-.73-2.14-1.46-2.07-3.5 1.1-6 3.99-8.28 1.3-1.02 2.53-2 3.22-3-.17-.06 6.45-2 7.03-2.1.38-.07.87-.13 1.39-.19 2.34-.27 5.48-.63 3.8-2.41-.62-.68-1.64-.9-2.7-1.11-1.22-.26-2.5-.53-3.3-1.53-1.03-1.27-.77-2.71-.5-4.13.2-1.14.4-2.26-.08-3.27-1.42.03-2.77.55-4.1 1.06-2.34.9-4.62 1.79-7.15-.15-1.72-1.33-1.57-3.06-1.41-4.78.12-1.39.25-2.77-.6-3.93-.39-.54-.53-.8-.6-.92-.02-.06-.03-.08-.05-.09l-.03.02c-.08.05-.3.2-1.34-.01-3.03-.65-3.15-.21-3.45.88-.1.35-.2.78-.44 1.25-.47.93-2.52 7.7-1.48 8.2ZM10.6 33.44c-3.42.87-5 .75-9.52.13-.56-.05-1.1-.07-1.66-.05.64-.48 4.78-5.6 4.68-5.67.13.08.02.67-.1 1.32-.12.74-.26 1.56-.1 1.77.7.84 2.58 1.16 4.26 1.46.95.16 1.83.32 2.4.55-.2.1-.18.27.04.5ZM79.33 20.15c.03 0 .16.08.35.19.61.35 1.83 1.05 1.84.89.04-.62.63-1.3 1.19-1.97 1.04-1.22 2.02-2.37-.54-2.88-2.15-.42-4.12 2.14-4.37 3.53.54-.03 1.05.05 1.53.24ZM118.27 70.9a24.6 24.6 0 0 0-2.77-2.67c-2.59-1.07 2.46-6.6 4.3-8.62l.51-.57c.58-.67 1.67-2.92 2.66-4.95.92-1.92 1.76-3.64 1.98-3.66.62-.06 2.05 9.72 2.81 14.88.22 1.49.38 2.6.45 2.97l.1.51c.44 2.3.93 4.86-.84 6.78-1.56 1.69-5.46 3.05-7.56 1.36-1.1-.88-1.12-2.12-1.13-3.35a5.16 5.16 0 0 0-.5-2.67ZM159.65 16.33c.22.93 1.78 3.29 2.94 3.32.06-.43.78-1.77 1.51-3.12.8-1.5 1.61-3 1.5-3.22-1.15-2.31-6.57.33-5.95 3.02ZM79.07 25.5c.63.42 1.3.84 1.67 1.38.72 1.03-.08 3-1.72 2.95.13-.54-.15-1.39-.43-2.25-.34-1.03-.68-2.08-.33-2.61l.8.54ZM136.95 74.33c.54 1.43 1.05 2.8 1.32 3.25.4.66.87 1.3 1.34 1.96.74 1.03 1.5 2.06 1.98 3.16 1.2 2.68.71 4.72.2 6.84-.36 1.54-.73 3.11-.47 5 .68 4.82 4.12 2.8 5.67-.43-1.37-.18 1.95-6.67 3.6-8.01.3-.26.76-.7 1.3-1.23 2.12-2.07 5.63-5.5 7.4-4.22 1.62 1.17.7 2.52-.2 3.86-.63.94-1.26 1.87-1 2.72.04.18.62.01 1.06-.12.3-.09.53-.16.55-.11.01.03.11.05.26.07.32.06.86.15 1 .62.1.32-.07.7-.23 1.06-.14.3-.27.6-.22.84.36 1.7.13 3.27-.1 4.9-.13.93-.27 1.88-.3 2.89-.2 5.7 1.44 2.6 2.6.4.44-.83.8-1.53 1-1.6-2.04-1.62-1.4-7.4 1.75-8.04 1.3-.26 2.33.32 3.29.87 1.22.7 2.33 1.33 3.77.05.56-.49.1-7.65-.2-7.9-.47-.4-1.5-.53-2.45-.66a9.14 9.14 0 0 1-1.5-.27c-1.31-.44-6.6-2.23-2.77-3 .9-.18 1.86.33 2.81.84 1.09.57 2.17 1.14 3.17.73 1.94-.8 1.43-8.67 1.11-13.53-.1-1.35-.17-2.47-.17-3.14-2 .05-3.64 2.87-4.19 4.25-1.56 3.92-2.2 5.05-7.02 7.43a57.6 57.6 0 0 0-3.55 1.73l-.02.01c-.3.18-.76.17-1.2.16-.47 0-.9-.02-1.1.2-.25.28-.1.92.08 1.63.24.96.5 2.06-.09 2.7-2.03 2.16-3.39.77-4.94-.83l-.62-.62-.8-.76c-1.02-.95-2.35-2.2-2.83-3.06-1.66-2.96.06-3.47 2.02-4.05 1.55-.46 3.26-.96 3.52-2.78.18-1.32-1.54-2.18-3.3-3.05-.94-.48-1.9-.96-2.56-1.51-.45-.38-.77-.85-1.09-1.32-.56-.81-1.12-1.63-2.37-1.98-4.87-1.36-11.02 8.46-7.25 10.07.28.12 1.02 2.09 1.72 3.96ZM58.31 125.53c-.3-3.3-5.79-.12-7.35.79l-.2.1h7.62l-.07-.9ZM117.73 125.89c.52-.17 2.31-2.67 2.55-3.2a2.8 2.8 0 0 0-.15.73c-.12 1-.3 2.42-2.4 2.47Z"/></g>',circuits:(t,l)=>'<path d="M15 0h-4v18h4V0ZM23 0h-4v34h53.42a5 5 0 1 0 0-4H23V0Z" fill="#000" fill-opacity=".1"/><path d="M122 34.58a5 5 0 1 0-4 0V64h23v-4h-19V34.58Z" fill="#fff" fill-opacity=".2"/><path d="M114 46h-4v26h31v-4h-27V46ZM27 103.58a5 5 0 1 1 4 0V133H8v-4h19v-25.42Z" fill="#000" fill-opacity=".2"/>',dirty01:(t,l)=>'<g fill-rule="evenodd" clip-rule="evenodd" fill="#000"><path d="M-9.12 122.1c4.36-30.7 13.06-4.57 33.99-9.98 9.24-2.39 1.77-12.82 8.67-17.35 5.82-3.82 13.76-.74 20.43-3.21 9.63-3.57 9.5-10.82 18.48-11.9 8.48-1.03 17.37 2.34 25.93 1.08 16.15-2.4 9.53-34.03 21.64-39.61 12.1-5.6 32.05 4.06 34.66 19.87 2.54 15.42-14.46 72.78-14.46 72.78H-9.12" fill-opacity=".2"/><path d="M35.93 122c37.67 0 41.6-14.75 60.14-21.5 18.53-6.76 34.78 10.71 41-6.27 6.24-16.98 6.2 35.95 6.2 35.95H35.94V122Z" fill-opacity=".1"/><path d="M-2 4.87C9.73 3.75 5.96 16.8 10.6 16.8c1.85 0 4.03-8.46 7.38-8.46 2.46 0 2 5.5 7.32 4.91 5-.54 4.08-4 6.6-4 5.45 0 3.39 20.2 7.74 20.2 4.36 0 5.73-14.8 7.65-20.64 2.43-7.4 16.97-11.56 6.6-14.5H-2.29" fill-opacity=".4"/></g>',dirty02:(t,l)=>'<g fill-rule="evenodd" clip-rule="evenodd" fill="#000"><path d="M100 124.65c-3.19-17.34-9.55-2.58-24.85-5.63-6.76-1.35-1.3-7.25-6.34-9.8-4.26-2.17-10.06-.43-14.94-1.82-7.04-2.02-6.95-6.12-13.5-6.73-6.2-.58-12.7 1.33-18.97.61C9.6 99.93 14.44 82.06 5.58 78.9c-8.85-3.15-23.43 2.3-25.34 11.23-1.86 8.71 10.57 41.12 10.57 41.12h109.2" fill-opacity=".2"/><path d="M136 116.77c-51.24 0-56.58-25.8-81.8-37.61C29 67.34 6.9 97.9-1.56 68.2c-8.48-29.7-8.43 62.86-8.43 62.86h146v-14.3Z" fill-opacity=".1"/><path d="M141.57 3.18c-11.93-.98-5.03 10.8-9.74 10.8-6.97 0-2.1-7.97-10.58-7.78-2.22.06-4.95 1.94-5.11 4.5-.37 5.52 3.71 15.03-1.84 15.3-5.18.25-1.1-9.64-1.65-16.24-.3-3.77-4.18-6.75-6.97-6.75-7.57 0-1.68 15.7-7.13 15.7s-1.2-9.05-5.08-13.84C88.97-.7 74.17-3.44 84.72-6h57.15" fill-opacity=".4"/></g>',dots:(t,l)=>'<g fill="#000"><path d="M27.3 65.2a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM35.7 69.41a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM35.7 82.03a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM35.7 94.66a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM34.1 109.2a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM49.2 107.1a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM27.3 90.45a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM29.2 101.1a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM51.1 103.2a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM42 88.34a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM39.9 103.07a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM29.4 75.72a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM39.9 77.83a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM10.5 94.66a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM8.4 84.14a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM10.5 107.28a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM2.1 90.45a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM4.2 100.97a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM14.7 90.45a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM16.8 100.97a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM8.4 71.52a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM4.2 75.72a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM14.7 65.2a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM16.8 75.72a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM21 96.76a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM23.1 82.03a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM21 109.38a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM35.7 119.9a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM27.3 115.69a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM42 113.59a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM8.4 122a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM4.2 113.59a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM14.7 115.69a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM23.1 119.9a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM21 71.52a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2Z" fill-opacity=".2"/><path d="M117.3 4.2a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM125.7 8.41a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM125.7 21.03a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM125.7 33.66a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM123.6 48.38a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM119.4 27.34a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM117.3 42.07a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM132 27.34a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM129.9 42.07a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM119.4 14.72a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM129.9 16.83a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM100.5 33.66a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM98.4 23.14a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM100.5 46.28a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM92.1 29.45a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM106.8 27.34a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM104.7 42.07a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM100.5 8.41a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM92.1 16.83a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM106.8 2.1a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM104.7 16.83a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM113.1 33.66a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM111 23.14a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM113.1 46.28a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM123.6 61a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM132 52.59a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM104.7 54.69a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2ZM113.1 58.9a2.1 2.1 0 1 1-4.2 0 2.1 2.1 0 0 1 4.2 0ZM111 10.52a2.1 2.1 0 1 0 0-4.2 2.1 2.1 0 0 0 0 4.2Z" fill-opacity=".1"/></g>',grunge01:(t,l)=>'<path d="M69.1 77c-.08.01-.09.02-.1.11.09-.01.1-.02.1-.1ZM81.25 107.1l.13-.1c1.9 0-1.25.19-.13.1ZM86 85.11c.09-.01.1-.02.1-.1-.08 0-.09.01-.1.1ZM15 92c.01.09.02.1.1.11 0-.09-.01-.1-.1-.1Z" fill="#000" fill-opacity=".4"/>',grunge02:(t,l)=>'<path d="M29.47 34.03c-.1 0-.19-.06-.26-.12-.08-.07-.14-.12-.13.14.01.5.67-.05.4-.02ZM9.33 48.92s.2-.56.03-.74c-.17.17-.18.42-.03.74ZM7.5 52c.06 0 .57-.28.48-.43-.12-.18-.49.34-.49.42ZM22.9 59.14c-.13-.11-.53-.45-.28-.5.14-.03.5.36.32.54v-.01h-.01l-.03-.03ZM26.33 108.46c.13-.02.66-.36.34-.45-.21-.04-.6.5-.34.46ZM52.63 96.34c-.05.05-.2.09-.34.12-.15.04-.26.07-.16.1.19.06.84.16.5-.22ZM4.76 43.63ZM5.1 71.63l.06-.1c1.02 0-.68.19-.07.1ZM80.53 109.92c.09-.02.1-.02.1-.11-.07.01-.08.02-.1.1ZM29.17 117.78c.08-.02.09-.03.1-.11-.08.01-.09.02-.1.1ZM9.01 49.75c.08-.02.09-.03.1-.12-.08.02-.09.03-.1.12ZM65.84 48.74c.02.09.03.1.1.1 0-.08-.01-.09-.1-.1ZM107.28 76.91c-.08.02-.09.03-.1.12.08-.02.09-.03.1-.12Z" fill="#000" fill-opacity=".2"/>'},O7=Object.freeze(Object.defineProperty({__proto__:null,eyes:R7,face:T7,mouth:_7,sides:A7,texture:D7,top:z7},Symbol.toStringTag,{value:"Module"}));function Qr({prng:t,group:l,values:r=[]}){const i=O7,s=t.pick(r);if(s&&i[l][s])return{name:s,value:i[l][s]}}function L7({prng:t,options:l}){const r=Qr({prng:t,group:"sides",values:l.sides}),i=Qr({prng:t,group:"top",values:l.top}),s=Qr({prng:t,group:"face",values:l.face}),o=Qr({prng:t,group:"mouth",values:l.mouth}),c=Qr({prng:t,group:"eyes",values:l.eyes}),d=Qr({prng:t,group:"texture",values:l.texture});return{sides:t.bool(l.sidesProbability)?r:void 0,top:t.bool(l.topProbability)?i:void 0,face:s,mouth:t.bool(l.mouthProbability)?o:void 0,eyes:c,texture:t.bool(l.textureProbability)?d:void 0}}function U7(t){return t==="transparent"?t:`#${t}`}function H7({prng:t,options:l}){var r;return{base:U7(t.pick((r=l.baseColor)!==null&&r!==void 0?r:[],"transparent"))}}const B7={$schema:"http://json-schema.org/draft-07/schema#",properties:{baseColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["ffb300","1e88e5","546e7a","6d4c41","00acc1","f4511e","5e35b1","43a047","757575","3949ab","039be5","7cb342","c0ca33","fb8c00","d81b60","8e24aa","e53935","00897b","fdd835"]},eyes:{type:"array",items:{type:"string",enum:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},default:["bulging","dizzy","eva","frame1","frame2","glow","happy","hearts","robocop","round","roundFrame01","roundFrame02","sensor","shade01"]},face:{type:"array",items:{type:"string",enum:["round01","round02","square01","square02","square03","square04"]},default:["round01","round02","square01","square02","square03","square04"]},mouth:{type:"array",items:{type:"string",enum:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},default:["bite","diagram","grill01","grill02","grill03","smile01","smile02","square01","square02"]},mouthProbability:{type:"integer",minimum:0,maximum:100,default:100},sides:{type:"array",items:{type:"string",enum:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},default:["antenna01","antenna02","cables01","cables02","round","square","squareAssymetric"]},sidesProbability:{type:"integer",minimum:0,maximum:100,default:100},texture:{type:"array",items:{type:"string",enum:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},default:["camo01","camo02","circuits","dirty01","dirty02","dots","grunge01","grunge02"]},textureProbability:{type:"integer",minimum:0,maximum:100,default:50},top:{type:"array",items:{type:"string",enum:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},default:["antenna","antennaCrooked","bulb01","glowingBulb01","glowingBulb02","horns","lights","pyramid","radar"]},topProbability:{type:"integer",minimum:0,maximum:100,default:100}}},Z7={title:"Bottts",creator:"Pablo Stanley",source:"https://bottts.com/",homepage:"https://twitter.com/pablostanley",license:{name:"Free for personal and commercial use",url:"https://bottts.com/"}},q7=({prng:t,options:l})=>{var r,i,s,o,c,d,m,p,x,y;const v=L7({prng:t,options:l}),S=H7({prng:t,options:l});return{attributes:{viewBox:"0 0 180 180",fill:"none","shape-rendering":"auto"},body:`<g transform="translate(0 66)">${(i=(r=v.sides)===null||r===void 0?void 0:r.value(v,S))!==null&&i!==void 0?i:""}</g><g transform="translate(41)">${(o=(s=v.top)===null||s===void 0?void 0:s.value(v,S))!==null&&o!==void 0?o:""}</g><g transform="translate(25 44)">${(d=(c=v.face)===null||c===void 0?void 0:c.value(v,S))!==null&&d!==void 0?d:""}</g><g transform="translate(52 124)">${(p=(m=v.mouth)===null||m===void 0?void 0:m.value(v,S))!==null&&p!==void 0?p:""}</g><g transform="translate(38 76)">${(y=(x=v.eyes)===null||x===void 0?void 0:x.value(v,S))!==null&&y!==void 0?y:""}</g>`,extra:()=>({...Object.entries(v).reduce((C,[z,j])=>(C[z]=j==null?void 0:j.name,C),{}),...Object.entries(S).reduce((C,[z,j])=>(C[`${z}Color`]=j,C),{})})}},$7=Object.freeze(Object.defineProperty({__proto__:null,create:q7,meta:Z7,schema:B7},Symbol.toStringTag,{value:"Module"})),sm=new Map;function m3(t){let l=sm.get(t);return l||(l=j7($7,{seed:t}).toDataUri(),sm.set(t,l)),l}function V7(t){const l=[],r=[],i=[];for(const s of t)switch(s.status){case"running":l.push(s);break;case"idle":r.push(s);break;case"error":i.push(s);break}return{running:l,idle:r,error:i}}function J7(t){switch(t){case"running":return"bg-herd-status-running animate-pulse";case"idle":return"bg-herd-status-idle";case"error":return"bg-herd-status-error"}}function I7(t){switch(t){case"connected":return"bg-herd-status-running";case"reconnecting":return"bg-herd-status-pending animate-pulse";case"disconnected":return"bg-herd-status-idle"}}function F7({agent:t,sessions:l,isActive:r,activeSessionId:i,onNavigate:s,onNewChat:o}){return g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center border-b border-herd-sidebar-border bg-herd-sidebar-hover",children:[g.jsxs(mt,{to:`/agents/${t.name}`,onClick:s,className:`flex-1 flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm font-semibold tracking-wide transition-colors min-w-0 ${r?"text-herd-sidebar-fg":"text-herd-sidebar-fg/80 hover:text-herd-sidebar-fg"}`,children:[g.jsx("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${J7(t.status)}`}),g.jsx("img",{src:m3(t.name),alt:"",className:"w-5 h-5 rounded flex-shrink-0"}),g.jsx("span",{className:"truncate",children:t.name})]}),g.jsx("button",{type:"button",onClick:c=>{c.stopPropagation(),o(t.name)},className:"flex-shrink-0 p-1.5 mr-1 rounded text-herd-sidebar-muted/50 hover:text-herd-sidebar-fg hover:bg-herd-sidebar-hover transition-colors",title:"New chat",children:g.jsx(f3,{className:"w-3.5 h-3.5"})})]}),l.length===0?g.jsx("p",{className:"text-[11px] text-herd-sidebar-muted/50 text-center py-3",children:"No chats yet"}):g.jsx("div",{className:"mr-1 mt-0.5 space-y-0.5",children:l.map(c=>{const d=c.sessionId===i;return g.jsxs(mt,{to:`/agents/${encodeURIComponent(t.name)}/chat/${c.sessionId}`,onClick:s,className:`flex items-center justify-between gap-2 px-3 py-1 rounded text-xs transition-colors ${d?"text-herd-sidebar-fg bg-herd-sidebar-active":"text-herd-sidebar-muted hover:bg-herd-sidebar-hover hover:text-herd-sidebar-fg"}`,children:[g.jsx("span",{className:"truncate",children:c.preview||"New conversation"}),g.jsx("span",{className:"flex-shrink-0 text-herd-sidebar-muted/60 text-[10px]",children:d3(c.lastMessageAt)})]},c.sessionId)})})]})}function a1({to:t,icon:l,label:r,isActive:i,onNavigate:s}){return g.jsxs(mt,{to:t,onClick:s,className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm transition-colors ${i?"text-herd-sidebar-fg bg-herd-sidebar-active font-medium":"text-herd-sidebar-muted hover:bg-herd-sidebar-hover hover:text-herd-sidebar-fg"}`,children:[l,r]})}function om({onNavigate:t}={}){const{agents:l,connectionStatus:r,fleetStatus:i}=xs(),{sidebarSessions:s}=p6(),{createChatSession:o,fetchSidebarSessions:c}=bs(),d=ll(),m=gs(),p=M.useMemo(()=>V7(l),[l]),x=M.useMemo(()=>[...p.running,...p.idle,...p.error],[p]),y=M.useMemo(()=>l.map(j=>j.name),[l]);M.useEffect(()=>{y.length>0&&c(y)},[y.join(","),c]);const v=d.pathname.startsWith("/agents/")?d.pathname.split("/")[2]:null,S=M.useMemo(()=>{const j=d.pathname.match(/^\/agents\/[^/]+\/chat\/(.+)$/);return j?j[1]:null},[d.pathname]),C=M.useCallback(async j=>{const E=await o(j);E&&(m(`/agents/${encodeURIComponent(j)}/chat/${E}`),t==null||t())},[o,m,t]),z=(i==null?void 0:i.counts)??{runningAgents:0,idleAgents:0,errorAgents:0};return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsx("div",{className:"p-4 border-b border-herd-sidebar-border",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("img",{src:"/herdctl-logo.svg",alt:"herdctl logo",className:"w-7 h-7"}),g.jsx("h1",{className:"text-lg font-semibold text-herd-sidebar-fg",children:"herdctl"})]}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:`w-2 h-2 rounded-full ${I7(r)}`})})]})}),g.jsx("div",{className:"flex-1 overflow-auto p-2",children:g.jsxs("div",{className:"space-y-0.5",children:[x.map(j=>g.jsx(F7,{agent:j,sessions:s[j.name]??[],isActive:v===j.name,activeSessionId:S,onNavigate:t,onNewChat:C},j.name)),x.length===0&&g.jsx("p",{className:"text-xs text-herd-sidebar-muted px-3 py-2",children:"No agents configured"})]})}),g.jsx("nav",{className:"p-2 border-t border-herd-sidebar-border",children:g.jsxs("div",{className:"space-y-1",children:[g.jsx(a1,{to:"/",icon:g.jsx(c3,{className:"w-4 h-4"}),label:"Dashboard",isActive:d.pathname==="/",onNavigate:t}),g.jsx(a1,{to:"/jobs",icon:g.jsx(l8,{className:"w-4 h-4"}),label:"Jobs",isActive:d.pathname==="/jobs",onNavigate:t}),g.jsx(a1,{to:"/schedules",icon:g.jsx(lf,{className:"w-4 h-4"}),label:"Schedules",isActive:d.pathname==="/schedules",onNavigate:t})]})}),g.jsx("div",{className:"px-4 py-2 border-t border-herd-sidebar-border",children:g.jsxs("p",{className:"text-xs text-herd-sidebar-muted",children:[z.runningAgents," running"," ",g.jsx("span",{className:"text-herd-sidebar-muted/50",children:"·"})," ",z.idleAgents," idle"," ",g.jsx("span",{className:"text-herd-sidebar-muted/50",children:"·"})," ",z.errorAgents," errors"]})})]})}function Y7(t){switch(t){case"connected":return"bg-herd-status-running";case"reconnecting":return"bg-herd-status-pending animate-pulse";case"disconnected":return"bg-herd-status-error"}}function G7(t){switch(t){case"connected":return"Connected";case"reconnecting":return"Reconnecting";case"disconnected":return"Disconnected"}}function X7(t,l){return t==="/"?"Fleet Dashboard":t==="/jobs"?"Jobs":t==="/schedules"?"Schedules":t.startsWith("/agents/")&&l?t.endsWith("/chat")?`${l} Chat`:l:"herdctl"}const Q7=[{value:"light",icon:n7,label:"Light mode"},{value:"dark",icon:Z8,label:"Dark mode"},{value:"system",icon:H8,label:"System theme"}];function K7(){const{connectionStatus:t}=xs(),{theme:l}=Tp(),{toggleSidebarMobile:r,setTheme:i}=_p(),s=ll(),o=J1(),c=X7(s.pathname,o.name);return g.jsxs("header",{className:"flex items-center justify-between px-4 py-3 border-b border-herd-border bg-herd-card",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("button",{onClick:r,className:"md:hidden hover:bg-herd-hover text-herd-muted hover:text-herd-fg rounded-lg p-1.5 transition-colors","aria-label":"Toggle sidebar",children:g.jsx(D8,{className:"w-4 h-4"})}),g.jsx("h1",{className:"text-lg font-semibold text-herd-fg",children:c})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex items-center bg-herd-hover rounded-lg p-0.5",children:Q7.map(({value:d,icon:m,label:p})=>g.jsx("button",{type:"button",onClick:()=>i(d),className:`p-1.5 rounded-md transition-colors ${l===d?"bg-herd-card text-herd-fg shadow-sm":"text-herd-muted hover:text-herd-fg"}`,title:p,"aria-label":p,children:g.jsx(m,{className:"w-3.5 h-3.5"})},d))}),g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:`w-2 h-2 rounded-full ${Y7(t)}`}),g.jsx("span",{className:"text-xs text-herd-muted",children:G7(t)})]})]})]})}function P7(t){switch(t){case"running":return"bg-herd-status-running animate-pulse";case"idle":return"bg-herd-status-idle";case"error":return"bg-herd-status-error";case"completed":return"bg-herd-status-running";case"failed":return"bg-herd-status-error";case"cancelled":return"bg-herd-status-idle";case"pending":return"bg-herd-status-pending";case"disabled":return"bg-herd-status-idle"}}function W7(t){switch(t){case"running":return"text-herd-status-running";case"idle":return"text-herd-status-idle";case"error":return"text-herd-status-error";case"completed":return"text-herd-status-running";case"failed":return"text-herd-status-error";case"cancelled":return"text-herd-status-idle";case"pending":return"text-herd-status-pending";case"disabled":return"text-herd-status-idle"}}function eb(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sr({status:t,size:l="sm",className:r=""}){const i=l==="sm"?"w-1.5 h-1.5":"w-2 h-2",s=l==="sm"?"text-xs":"text-sm";return g.jsxs("span",{className:`inline-flex items-center gap-1.5 font-medium ${W7(t)} ${r}`,children:[g.jsx("span",{className:`${i} rounded-full ${P7(t)}`}),g.jsx("span",{className:s,children:eb(t)})]})}function xt({children:t,className:l="",onClick:r,as:i,...s}){const o=i??"div",c="bg-herd-card border border-herd-border rounded-[10px]",d=r?"cursor-pointer hover:border-herd-primary/30 transition-colors":"";return g.jsx(o,{className:`${c} ${d} ${l}`,onClick:r,...s,children:t})}function nl({size:t="md",className:l=""}){const r={sm:"w-4 h-4 border-2",md:"w-6 h-6 border-2",lg:"w-8 h-8 border-[3px]"};return g.jsx("span",{className:`inline-block rounded-full border-herd-primary border-t-transparent animate-spin ${r[t]} ${l}`,role:"status","aria-label":"Loading"})}function tb({status:t}){const[l,r]=M.useState("hidden"),i=M.useRef(t),s=M.useRef(null);if(M.useEffect(()=>{const d=i.current;return i.current=t,s.current&&(clearTimeout(s.current),s.current=null),t==="connected"?d==="disconnected"||d==="reconnecting"?(r("reconnected"),s.current=setTimeout(()=>{r("hidden")},2e3)):r("hidden"):t==="reconnecting"?r("connecting"):t==="disconnected"&&r("disconnected"),()=>{s.current&&clearTimeout(s.current)}},[t]),l==="hidden")return null;const c={connecting:{bg:"bg-herd-status-pending/15",text:"text-herd-status-pending",border:"border-b border-herd-status-pending/20",icon:g.jsx(G8,{className:"w-3.5 h-3.5 animate-spin"}),message:"Connecting to server..."},disconnected:{bg:"bg-herd-status-error/15",text:"text-herd-status-error",border:"border-b border-herd-status-error/20",icon:g.jsx(o7,{className:"w-3.5 h-3.5"}),message:"Disconnected from server. Retrying..."},reconnected:{bg:"bg-herd-status-running/15",text:"text-herd-status-running",border:"border-b border-herd-status-running/20",icon:g.jsx(f7,{className:"w-3.5 h-3.5"}),message:"Reconnected"}}[l];return g.jsxs("div",{className:`
|
|
311
|
+
flex items-center justify-center gap-2 h-8 px-3 text-xs font-medium
|
|
312
|
+
animate-fade-slide-in
|
|
313
|
+
${c.bg} ${c.text} ${c.border}
|
|
314
|
+
`,children:[c.icon,g.jsx("span",{children:c.message})]})}function nb(t){if(!t)return"never";const l=Date.now(),r=new Date(t).getTime(),i=l-r;if(i<0||i<5e3)return"just now";const s=Math.floor(i/1e3),o=Math.floor(s/60),c=Math.floor(o/60),d=Math.floor(c/24);return s<60?`${s}s ago`:o<60?`${o}m ago`:c<24?`${c}h ago`:`${d}d ago`}function lb({timestamp:t,prefix:l="Updated",refreshInterval:r=3e4,className:i=""}){const[,s]=M.useState(0);M.useEffect(()=>{const c=setInterval(()=>{s(d=>d+1)},r);return()=>clearInterval(c)},[r]);const o=nb(t);return g.jsxs("span",{className:`text-xs text-herd-muted ${i}`,children:[l," ",o]})}class _l extends M.Component{constructor(r){super(r);S0(this,"handleReset",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,i){console.error("[ErrorBoundary] Caught error:",r,i)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:g.jsx("div",{className:"flex items-center justify-center p-6",children:g.jsxs("div",{className:"bg-herd-card border border-herd-border rounded-[10px] p-6 max-w-md w-full text-center",children:[g.jsx(i7,{className:"w-12 h-12 text-herd-status-error mx-auto mb-3"}),g.jsx("h2",{className:"text-sm font-medium text-herd-fg mb-2",children:"Something went wrong"}),this.state.error&&g.jsx("div",{className:"bg-herd-code-bg text-herd-code-fg rounded-lg px-3 py-2 text-xs font-mono text-left mb-4 overflow-x-auto",children:this.state.error.message}),g.jsx("button",{onClick:this.handleReset,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",children:"Try Again"})]})}):this.props.children}}function rb({children:t}){const{rightPanelOpen:l,sidebarCollapsed:r,sidebarMobileOpen:i}=Tp(),{setSidebarMobileOpen:s}=_p(),o=ze(c=>c.connectionStatus);return g.jsxs("div",{className:"h-dvh bg-herd-bg overflow-hidden",children:[i&&g.jsxs("div",{className:"md:hidden fixed inset-0 z-40",children:[g.jsx("div",{className:"absolute inset-0 bg-black/30",onClick:()=>s(!1)}),g.jsx("div",{className:"absolute inset-y-0 left-0 w-[260px] bg-herd-sidebar border-r border-herd-sidebar-border animate-fade-slide-in",children:g.jsx(om,{onNavigate:()=>s(!1)})})]}),g.jsxs(e3,{direction:"horizontal",className:"h-full",children:[!r&&g.jsxs(g.Fragment,{children:[g.jsx(ns,{id:"sidebar",order:1,defaultSize:20,minSize:15,maxSize:30,className:"bg-herd-sidebar hidden md:block",children:g.jsx(om,{})}),g.jsx(j1,{className:"w-px bg-herd-border hover:bg-herd-primary/30 transition-colors hidden md:block"})]}),g.jsxs(ns,{id:"main",order:2,minSize:40,className:"flex flex-col min-w-0",children:[g.jsx(K7,{}),g.jsx(tb,{status:o}),g.jsx("main",{className:"flex-1 overflow-auto",children:t})]}),l&&g.jsxs(g.Fragment,{children:[g.jsx(j1,{className:"w-px bg-herd-border hover:bg-herd-primary/30 transition-colors"}),g.jsx(ns,{id:"detail",order:3,defaultSize:22,minSize:18,maxSize:35,className:"bg-herd-card border-l border-herd-border",children:g.jsx("div",{className:"p-4",children:g.jsx("p",{className:"text-xs text-herd-muted",children:"Detail panel — Coming in Phase 3"})})})]})]})]})}function ab({className:t}){return g.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.947 2.418-2.157 2.418z"})})}function ib({className:t}){return g.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.27 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.163 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.163 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.163 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.27a2.527 2.527 0 0 1-2.52-2.523 2.527 2.527 0 0 1 2.52-2.52h6.315A2.528 2.528 0 0 1 24 15.163a2.528 2.528 0 0 1-2.522 2.523h-6.315z"})})}function cm(t,l){return t.length<=l?t:t.slice(0,l-1)+"…"}function ub(t){if(t.schedules.length===0)return null;const l=t.schedules.filter(m=>m.nextRunAt).map(m=>new Date(m.nextRunAt).getTime());if(l.length===0)return null;const r=Math.min(...l),i=Date.now(),s=r-i;if(s<0)return"Due";const o=Math.floor(s/6e4);if(o<1)return"< 1m";if(o<60)return`${o}m`;const c=Math.floor(o/60);return c<24?`${c}h`:`${Math.floor(c/24)}d`}function sb(t){return t.chat?Object.keys(t.chat):[]}function ob(t){switch(t){case"discord":return{label:"Discord",icon:g.jsx(ab,{className:"w-3 h-3"}),bgClass:"bg-herd-discord/10",textClass:"text-herd-discord"};case"slack":return{label:"Slack",icon:g.jsx(ib,{className:"w-3 h-3"}),bgClass:"bg-herd-slack/10",textClass:"text-herd-slack"};default:return{label:t.charAt(0).toUpperCase()+t.slice(1),icon:null,bgClass:"bg-herd-hover",textClass:"text-herd-muted"}}}function cb({agent:t}){const l=sb(t),r=t.status==="idle"?ub(t):null;return g.jsxs(xt,{as:"article",className:"p-4 flex flex-col gap-3 transition-colors duration-150",children:[g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("h3",{className:"text-sm font-medium text-herd-fg truncate",children:t.name}),t.description&&g.jsx("p",{className:"text-xs text-herd-muted mt-0.5 line-clamp-2",children:cm(t.description,80)})]}),g.jsx(sr,{status:t.status,size:"sm"})]}),g.jsxs("div",{className:"min-h-[32px]",children:[t.status==="running"&&t.currentJobId&&g.jsx("div",{className:"bg-herd-hover rounded-lg px-2 py-1.5",children:g.jsx("p",{className:"text-xs text-herd-muted font-mono truncate",children:"Job active"})}),t.status==="idle"&&g.jsx("div",{className:"text-xs text-herd-muted",children:r?g.jsx("span",{children:r==="Due"?"Next run due":`Next run in ${r}`}):g.jsx("span",{children:"No scheduled runs"})}),t.status==="error"&&t.errorMessage&&g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-2 py-1.5",children:g.jsx("p",{className:"text-xs truncate",children:cm(t.errorMessage,60)})})]}),l.length>0&&g.jsx("div",{className:"flex gap-1.5 flex-wrap",children:l.map(i=>{const s=ob(i);return g.jsxs("span",{className:`inline-flex items-center gap-1 text-[11px] font-medium ${s.textClass} ${s.bgClass} px-2 py-0.5 rounded`,children:[s.icon,s.label]},i)})}),g.jsxs("div",{className:"flex gap-2 pt-1 border-t border-herd-border mt-auto",children:[g.jsxs(mt,{to:`/agents/${t.name}`,className:"flex items-center gap-1.5 border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",children:[g.jsx(w8,{className:"w-3.5 h-3.5"}),"View"]}),g.jsxs(mt,{to:`/agents/${t.name}/chat`,className:"flex items-center gap-1.5 bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",children:[g.jsx(ia,{className:"w-3.5 h-3.5"}),"Chat"]})]})]})}function fb(t,l){return t.length<=l?t:t.slice(0,l-1)+"…"}function db(t){const l=new Date(t).getTime(),i=Date.now()-l;if(i<0)return"Just now";const s=Math.floor(i/1e3);if(s<60)return"Just now";const o=Math.floor(s/60);if(o<60)return`${o}m ago`;const c=Math.floor(o/60);if(c<24)return`${c}h ago`;const d=Math.floor(c/24);return d<7?`${d}d ago`:`${Math.floor(d/7)}w ago`}function hb({jobs:t,pageSize:l=10}){const[r,i]=M.useState(0),s=Math.ceil(t.length/l),o=r*l,c=t.slice(o,o+l);return g.jsxs("div",{children:[g.jsx("div",{className:"flex items-center justify-between mb-3",children:g.jsxs("h2",{className:"text-sm font-semibold text-herd-fg",children:["Recent Jobs",g.jsxs("span",{className:"text-herd-muted font-normal ml-1.5",children:["(",t.length,")"]})]})}),c.length===0?g.jsx("p",{className:"text-xs text-herd-muted py-4",children:"No recent jobs"}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-herd-border text-xs text-herd-muted font-medium uppercase tracking-wide",children:[g.jsx("th",{className:"text-left py-2 px-3",children:"Agent"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Prompt"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Status"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Time"})]})}),g.jsx("tbody",{className:"divide-y divide-herd-border",children:c.map(d=>g.jsxs("tr",{className:"hover:bg-herd-hover transition-colors",children:[g.jsx("td",{className:"py-2 px-3 text-herd-fg",children:g.jsx(mt,{to:`/agents/${d.agentName}`,className:"hover:text-herd-primary transition-colors",children:d.agentName})}),g.jsx("td",{className:"py-2 px-3 text-herd-muted font-mono text-xs max-w-[200px]",children:g.jsx("span",{className:"block truncate",children:fb(d.prompt,50)})}),g.jsx("td",{className:"py-2 px-3",children:g.jsx(sr,{status:d.status,size:"sm"})}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs whitespace-nowrap",children:db(d.createdAt)})]},d.jobId))})]})}),s>1&&g.jsxs("div",{className:"flex items-center justify-between pt-3 mt-3 border-t border-herd-border",children:[g.jsxs("span",{className:"text-[11px] text-herd-muted",children:[o+1,"–",Math.min(o+l,t.length)," of ",t.length]}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("button",{onClick:()=>i(d=>Math.max(0,d-1)),disabled:r===0,className:"p-1 rounded hover:bg-herd-hover text-herd-muted hover:text-herd-fg transition-colors disabled:opacity-30 disabled:cursor-not-allowed",title:"Previous page",children:g.jsx(r3,{className:"w-4 h-4"})}),g.jsxs("span",{className:"text-[11px] text-herd-muted px-1",children:[r+1," / ",s]}),g.jsx("button",{onClick:()=>i(d=>Math.min(s-1,d+1)),disabled:r>=s-1,className:"p-1 rounded hover:bg-herd-hover text-herd-muted hover:text-herd-fg transition-colors disabled:opacity-30 disabled:cursor-not-allowed",title:"Next page",children:g.jsx(a3,{className:"w-4 h-4"})})]})]})]})]})}function mb(t){if(t===null||t<0)return"--";const l=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),s=Math.floor(t%60);return l>0?`${l}d ${r}h ${i}m`:r>0?`${r}h ${i}m ${s}s`:i>0?`${i}m ${s}s`:`${s}s`}function i1({label:t,value:l,variant:r="default"}){const i={default:"text-herd-fg",success:"text-herd-status-running",muted:"text-herd-muted"};return g.jsxs("div",{className:"bg-herd-hover rounded-lg px-3 py-1.5 flex items-center gap-1.5",children:[g.jsx("span",{className:`text-sm font-medium ${i[r]}`,children:l}),g.jsx("span",{className:"text-xs text-herd-muted",children:t})]})}function pb(){return g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(t=>g.jsx(xt,{className:"p-4",children:g.jsxs("div",{className:"space-y-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-herd-hover opacity-50 animate-pulse"}),g.jsx("div",{className:"h-4 w-24 bg-herd-hover opacity-50 animate-pulse rounded"})]}),g.jsx("div",{className:"h-3 w-32 bg-herd-hover opacity-50 animate-pulse rounded"}),g.jsx("div",{className:"h-3 w-20 bg-herd-hover opacity-50 animate-pulse rounded"})]})},t))})}function gb(){return g.jsx(xt,{className:"p-4",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx("div",{className:"h-5 w-36 bg-herd-hover opacity-50 animate-pulse rounded"}),g.jsx("div",{className:"h-3 w-24 bg-herd-hover opacity-50 animate-pulse rounded"})]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("div",{className:"h-8 w-20 bg-herd-hover opacity-50 animate-pulse rounded-lg"}),g.jsx("div",{className:"h-8 w-20 bg-herd-hover opacity-50 animate-pulse rounded-lg"})]})]})})}function yb(){return g.jsxs(xt,{className:"p-4",children:[g.jsx("div",{className:"h-4 w-24 bg-herd-hover opacity-50 animate-pulse rounded mb-4"}),g.jsx("div",{className:"space-y-3",children:[1,2,3].map(t=>g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"h-3 w-20 bg-herd-hover opacity-50 animate-pulse rounded"}),g.jsx("div",{className:"h-3 w-40 bg-herd-hover opacity-50 animate-pulse rounded flex-1"}),g.jsx("div",{className:"h-3 w-16 bg-herd-hover opacity-50 animate-pulse rounded"})]},t))})]})}function xb(){return g.jsx(xt,{className:"p-6",children:g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-6 text-center",children:[g.jsx(P8,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"No agents configured"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:"Add agents to your herdctl.yaml to get started"})]})]})})}function bb(){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-8 text-center",children:[g.jsx(Cs,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"No jobs yet"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:"Jobs will appear here when agents run"})]})]})}const vb=24;function Sb(){const{fleetStatus:t,agents:l,recentJobs:r,lastUpdated:i}=xs(),{setRecentJobs:s}=f6(),{loading:o}=Op();M.useEffect(()=>{Ap({limit:100}).then(x=>{s(x.jobs)}).catch(()=>{})},[s]);const c=Date.now()-vb*60*60*1e3,d=r.filter(x=>new Date(x.createdAt).getTime()>=c),m=(t==null?void 0:t.counts)??{totalAgents:0,runningJobs:0},p=r.filter(x=>x.status==="completed").length;return o&&!t?g.jsxs("div",{className:"p-4 space-y-6 overflow-auto h-full",children:[g.jsx(gb,{}),g.jsxs("section",{children:[g.jsx("h2",{className:"text-sm font-semibold text-herd-fg mb-3",children:"Agents"}),g.jsx(pb,{})]}),g.jsx("section",{children:g.jsx(yb,{})})]}):g.jsxs("div",{className:"p-4 space-y-6 overflow-auto h-full",children:[g.jsx(xt,{className:"p-4",children:g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-4",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("h1",{className:"text-lg font-semibold text-herd-fg",children:"Fleet Overview"}),g.jsx(lb,{timestamp:i,prefix:"Updated"})]}),t&&g.jsxs("p",{className:"text-xs text-herd-muted mt-0.5",children:["Uptime: ",mb(t.uptimeSeconds)]})]}),t&&g.jsx(sr,{status:t.state==="running"?"running":t.state==="error"?"error":"idle",size:"md"})]}),g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsx(i1,{label:"agents",value:m.totalAgents,variant:"default"}),g.jsx(i1,{label:"running",value:m.runningJobs,variant:m.runningJobs>0?"success":"muted"}),g.jsx(i1,{label:"completed",value:p,variant:"muted"})]})]})}),g.jsxs("section",{children:[g.jsx("h2",{className:"text-sm font-semibold text-herd-fg mb-3",children:"Agents"}),l.length===0?g.jsx(xb,{}):g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:l.map(x=>g.jsx(cb,{agent:x},x.name))})]}),g.jsx("section",{children:g.jsx(xt,{className:"p-4",children:d.length===0?g.jsxs(g.Fragment,{children:[g.jsx("h2",{className:"text-sm font-semibold text-herd-fg mb-3",children:"Recent Jobs"}),g.jsx(bb,{})]}):g.jsx(hb,{jobs:d,pageSize:10})})})]})}function wb(t){const[l,r]=M.useState(!0),[i,s]=M.useState(null),[o,c]=M.useState(0),d=c6(t),m=ze(x=>x.updateAgent);M.useEffect(()=>{if(!t){r(!1),s(null);return}let x=!1;async function y(){r(!0),s(null);try{const v=await Fx(t);if(x)return;m({agent:v}),r(!1)}catch(v){if(x)return;const S=v instanceof Error?v.message:"Failed to fetch agent";s(S),r(!1)}}return y(),()=>{x=!0}},[t,o]);const p=M.useCallback(()=>{c(x=>x+1)},[]);return{agent:d,loading:l,error:i,retry:p}}function kb({agent:t}){return g.jsxs("div",{className:"flex items-start gap-4",children:[g.jsx("img",{src:m3(t.name),alt:"",className:"w-14 h-14 rounded-full shrink-0 sm:w-16 sm:h-16"}),g.jsxs("div",{className:"flex flex-col gap-3 min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-start justify-between gap-4",children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("h1",{className:"text-lg font-semibold text-herd-fg",children:t.name}),g.jsx(sr,{status:t.status,size:"md"})]}),t.description&&g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:t.description})]}),g.jsxs("div",{className:"hidden sm:flex gap-2 shrink-0",children:[g.jsxs("button",{disabled:!0,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed",title:"Trigger Job (coming soon)",children:[g.jsx(wi,{className:"w-3.5 h-3.5"}),"Trigger Job"]}),g.jsxs(mt,{to:`/agents/${t.name}/chat`,className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5",children:[g.jsx(ia,{className:"w-3.5 h-3.5"}),"Chat"]})]})]}),g.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-xs text-herd-muted",children:[t.model&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(x8,{className:"w-3.5 h-3.5"}),g.jsx("span",{className:"font-mono",children:t.model})]}),t.permission_mode&&g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(e7,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:t.permission_mode})]}),t.working_directory&&g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 max-w-[300px]",title:t.working_directory,children:[g.jsx(C8,{className:"w-3.5 h-3.5 shrink-0"}),g.jsx("span",{className:"font-mono truncate",children:t.working_directory})]})]}),g.jsxs("div",{className:"flex sm:hidden gap-2",children:[g.jsxs("button",{disabled:!0,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed",title:"Trigger Job (coming soon)",children:[g.jsx(wi,{className:"w-3.5 h-3.5"}),"Trigger Job"]}),g.jsxs(mt,{to:`/agents/${t.name}/chat`,className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5",children:[g.jsx(ia,{className:"w-3.5 h-3.5"}),"Chat"]})]})]})]})}function Cb({agentName:t,jobId:l}){const r=M.useRef(null),i=d6(l),s=ze(o=>o.setActiveJobView);return M.useEffect(()=>{const o=window.__herdWsClient;return t&&o&&(r.current&&r.current!==t&&o.unsubscribe(r.current),o.subscribe(t),r.current=t),()=>{r.current&&o&&(o.unsubscribe(r.current),r.current=null)}},[t]),M.useEffect(()=>(l&&s(l,!0),()=>{l&&s(l,!1)}),[l]),{messages:i,isSubscribed:r.current===t&&t!==null}}function Eb({message:t}){const l=t.stream==="stderr";return g.jsx("div",{className:`
|
|
315
|
+
font-mono text-xs whitespace-pre-wrap break-all
|
|
316
|
+
animate-[fadeSlideIn_150ms_ease-out]
|
|
317
|
+
${l?"text-herd-status-error":"text-herd-code-fg"}
|
|
318
|
+
`,children:t.data})}function Mb({jobId:t}){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[g.jsx(fa,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"Waiting for output..."}),g.jsx("p",{className:"text-xs text-herd-muted mt-1 font-mono",children:t})]})]})}function Nb({onClick:t}){return g.jsxs("button",{onClick:t,className:`
|
|
319
|
+
absolute bottom-4 right-4
|
|
320
|
+
flex items-center gap-1.5
|
|
321
|
+
bg-herd-primary hover:bg-herd-primary-hover
|
|
322
|
+
text-white rounded-lg px-3 py-1.5
|
|
323
|
+
text-xs font-medium transition-colors
|
|
324
|
+
shadow-lg
|
|
325
|
+
animate-[fadeSlideIn_150ms_ease-out]
|
|
326
|
+
`,children:[g.jsx(P6,{className:"w-3.5 h-3.5"}),"Jump to bottom"]})}function jb({jobId:t,messages:l,startTime:r}){const i=M.useRef(null),[s,o]=M.useState(!0),[c,d]=M.useState(!1),m=M.useCallback(()=>{const y=i.current;if(!y)return;const C=y.scrollHeight-y.scrollTop-y.clientHeight<=50;o(C),d(!C&&l.length>0)},[l.length]);M.useEffect(()=>{const y=i.current;y&&s&&(y.scrollTop=y.scrollHeight)},[l,s]),M.useEffect(()=>{const y=i.current;if(y)return y.addEventListener("scroll",m),()=>y.removeEventListener("scroll",m)},[m]);const p=M.useCallback(()=>{const y=i.current;y&&(y.scrollTop=y.scrollHeight,o(!0),d(!1))},[]),x=r?new Date(r).toLocaleString():null;return g.jsxs("div",{className:"relative flex flex-col h-full",children:[g.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-herd-border bg-herd-card",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(fa,{className:"w-3.5 h-3.5 text-herd-muted"}),g.jsx("span",{className:"text-xs font-mono text-herd-muted",children:t})]}),x&&g.jsx("span",{className:"text-xs text-herd-muted",children:x})]}),g.jsx("div",{ref:i,className:`
|
|
327
|
+
flex-1 overflow-auto
|
|
328
|
+
bg-herd-code-bg
|
|
329
|
+
p-3 min-h-[200px] max-h-[500px]
|
|
330
|
+
`,children:l.length===0?g.jsx(Mb,{jobId:t}):g.jsx("div",{className:"space-y-0.5",children:l.map(y=>g.jsx(Eb,{message:y},y.id))})}),c&&g.jsx(Nb,{onClick:p})]})}function Ab({lastJobId:t,onViewLastJob:l}){return g.jsx(xt,{className:"p-6",children:g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 text-center",children:[g.jsx(fa,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"No Active Job"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:"Trigger a job or wait for a scheduled run to see live output"})]}),t&&l&&g.jsxs("button",{onClick:l,className:`
|
|
331
|
+
flex items-center gap-1.5 mt-2
|
|
332
|
+
text-herd-primary hover:text-herd-primary-hover
|
|
333
|
+
text-xs font-medium transition-colors
|
|
334
|
+
`,children:[g.jsx(Cs,{className:"w-3.5 h-3.5"}),"View last job output"]})]})})}function zb({agent:t}){const l=t.status==="running"&&t.currentJobId,r=l?t.currentJobId:null,{messages:i}=Cb({agentName:t.name,jobId:r});return l?g.jsx(xt,{className:"overflow-hidden",children:g.jsx(jb,{jobId:t.currentJobId,messages:i,startTime:void 0})}):g.jsx(Ab,{lastJobId:t.lastJobId,onViewLastJob:void 0})}function Tb(t,l){if(!t)return"-";const r=new Date(t).getTime(),s=(l?new Date(l).getTime():Date.now())-r;if(s<0)return"-";const o=Math.floor(s/1e3),c=Math.floor(o/60),d=Math.floor(c/60);if(d>0){const m=c%60;return m>0?`${d}h ${m}m`:`${d}h`}if(c>0){const m=o%60;return m>0?`${c}m ${m}s`:`${c}m`}return`${o}s`}function u1(t){return t?new Date(t).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):"-"}function wn({label:t,children:l,mono:r=!1}){return g.jsxs("div",{className:"py-2 border-b border-herd-border last:border-b-0",children:[g.jsx("dt",{className:"text-xs text-herd-muted font-medium uppercase tracking-wide mb-1",children:t}),g.jsx("dd",{className:`text-sm text-herd-fg ${r?"font-mono":""}`,children:l})]})}function _b({className:t}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:g.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}function Rb({className:t}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:g.jsx("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})})}function Db({triggerType:t}){const l=t??"manual",r={discord:{icon:g.jsx(_b,{className:"w-3.5 h-3.5"}),label:"Discord"},slack:{icon:g.jsx(Rb,{className:"w-3.5 h-3.5"}),label:"Slack"},web:{icon:g.jsx(o3,{className:"w-3.5 h-3.5"}),label:"Web Chat"},manual:{icon:g.jsx(fa,{className:"w-3.5 h-3.5"}),label:"Manual"},schedule:{icon:g.jsx(n3,{className:"w-3.5 h-3.5"}),label:"Schedule"},webhook:{icon:g.jsx(af,{className:"w-3.5 h-3.5"}),label:"Webhook"},chat:{icon:g.jsx(ia,{className:"w-3.5 h-3.5"}),label:"Chat"},fork:{icon:g.jsx(os,{className:"w-3.5 h-3.5"}),label:"Fork"}},{icon:i,label:s}=r[l]??r.manual;return g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx("span",{className:"text-herd-muted flex-shrink-0",children:i}),g.jsx("span",{children:s})]})}function Ob(){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-8",children:[g.jsx(nl,{size:"md"}),g.jsx("p",{className:"text-xs text-herd-muted",children:"Loading job details..."})]})}function Lb({jobId:t}){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-8 text-center",children:[g.jsx(i3,{className:"w-8 h-8 text-herd-status-error"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"Job not found"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1 font-mono",children:t})]})]})}function fm({text:t,label:l}){const[r,i]=M.useState(!1),s=M.useCallback(async()=>{try{await navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),1500)}catch{}},[t]);return g.jsx("button",{onClick:s,className:"flex items-center gap-1.5 hover:bg-herd-hover text-herd-muted hover:text-herd-fg rounded-lg px-2 py-1 text-xs font-medium transition-colors",title:l,children:r?g.jsxs(g.Fragment,{children:[g.jsx(l3,{className:"w-3.5 h-3.5 text-herd-status-running"}),g.jsx("span",{className:"text-herd-status-running",children:"Copied!"})]}):g.jsxs(g.Fragment,{children:[g.jsx(s3,{className:"w-3.5 h-3.5"}),g.jsx("span",{children:l})]})})}function Ub({jobId:t,onCancelled:l}){const[r,i]=M.useState(!1),[s,o]=M.useState(!1),[c,d]=M.useState(null),m=M.useCallback(async()=>{o(!0),d(null);try{await Gx(t),l()}catch(p){const x=p instanceof Error?p.message:"Failed to cancel";d(x),o(!1),i(!1)}},[t,l]);return c?g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-2 py-1.5 text-xs",children:c}):s?g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-herd-muted",children:[g.jsx(nl,{size:"sm"}),"Cancelling..."]}):r?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-xs text-herd-muted",children:"Are you sure?"}),g.jsx("button",{onClick:m,className:"bg-herd-status-error hover:bg-herd-status-error/80 text-white rounded-lg px-2 py-1 text-xs font-medium transition-colors",children:"Cancel Job"}),g.jsx("button",{onClick:()=>i(!1),className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-2 py-1 text-xs font-medium transition-colors",children:"Keep Running"})]}):g.jsxs("button",{onClick:()=>i(!0),className:"bg-herd-status-error hover:bg-herd-status-error/80 text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5",children:[g.jsx(d8,{className:"w-3.5 h-3.5"}),"Cancel Job"]})}function Hb({jobId:t,onForked:l}){const[r,i]=M.useState(!1),[s,o]=M.useState(""),[c,d]=M.useState(!1),[m,p]=M.useState(null),x=M.useCallback(async()=>{d(!0),p(null);try{const y=await Xx(t,{prompt:s.trim()||void 0});l(y.jobId)}catch(y){const v=y instanceof Error?y.message:"Failed to fork";p(v),d(!1)}},[t,s,l]);return m?g.jsxs("div",{className:"space-y-2",children:[g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-2 py-1.5 text-xs",children:m}),g.jsx("button",{onClick:()=>{p(null),i(!1)},className:"hover:bg-herd-hover text-herd-muted hover:text-herd-fg rounded-lg px-2 py-1 text-xs font-medium transition-colors",children:"Dismiss"})]}):c?g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-herd-muted",children:[g.jsx(nl,{size:"sm"}),"Forking..."]}):r?g.jsxs("div",{className:"space-y-2",children:[g.jsx("textarea",{value:s,onChange:y=>o(y.target.value),placeholder:"Override prompt (optional)...",rows:2,className:"bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2 text-xs text-herd-fg placeholder:text-herd-muted focus:outline-none focus:border-herd-primary/60 transition-colors w-full resize-none"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{onClick:x,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-2 py-1 text-xs font-medium transition-colors flex items-center gap-1",children:[g.jsx(os,{className:"w-3 h-3"}),"Fork"]}),g.jsx("button",{onClick:()=>{i(!1),o("")},className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-2 py-1 text-xs font-medium transition-colors",children:"Cancel"})]})]}):g.jsxs("button",{onClick:()=>i(!0),className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5",children:[g.jsx(os,{className:"w-3.5 h-3.5"}),"Fork Job"]})}function Bb({jobId:t,job:l,loading:r,onClose:i}){const{selectJob:s,fetchJobs:o}=Rp(),c=(l==null?void 0:l.status)==="running"||(l==null?void 0:l.status)==="pending",d=(l==null?void 0:l.status)==="completed"||(l==null?void 0:l.status)==="failed"||(l==null?void 0:l.status)==="cancelled",m=l?Tb(l.startedAt,l.completedAt):"-",p=M.useCallback(()=>{o().catch(()=>{})},[o]),x=M.useCallback(S=>{s(S),o().catch(()=>{})},[s,o]),y=l!=null&&l.sessionId?l.workspace?`cd ${l.workspace} && claude --resume ${l.sessionId}`:`claude --resume ${l.sessionId}`:"",v=l?`herdctl trigger ${l.agentName}${l.prompt?` --prompt "${l.prompt.replace(/"/g,'\\"')}"`:""}`:"";return g.jsxs(xt,{className:"w-[320px] flex-shrink-0 self-start sticky top-4",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-herd-border",children:[g.jsx("h3",{className:"text-sm font-semibold text-herd-fg",children:"Job Details"}),g.jsx("button",{onClick:i,className:"p-1 hover:bg-herd-hover rounded transition-colors","aria-label":"Close job details",children:g.jsx(Es,{className:"w-4 h-4 text-herd-muted"})})]}),g.jsx("div",{className:"p-4",children:r?g.jsx(Ob,{}):l?g.jsxs("dl",{className:"space-y-0",children:[g.jsx(wn,{label:"Job ID",mono:!0,children:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(j8,{className:"w-3.5 h-3.5 text-herd-muted flex-shrink-0"}),g.jsx("span",{className:"text-xs break-all",children:l.jobId})]})}),g.jsx(wn,{label:"Agent",children:g.jsx(mt,{to:`/agents/${encodeURIComponent(l.agentName)}`,className:"text-herd-primary hover:text-herd-primary-hover transition-colors",children:l.agentName})}),g.jsx(wn,{label:"Status",children:g.jsx(sr,{status:l.status,size:"md"})}),g.jsx(wn,{label:"Source",children:g.jsx(Db,{triggerType:l.triggerType})}),g.jsx(wn,{label:"Prompt",children:g.jsx("p",{className:"whitespace-pre-wrap break-words",children:l.prompt})}),g.jsx(wn,{label:"Created",mono:!0,children:u1(l.createdAt)}),g.jsx(wn,{label:"Started",mono:!0,children:u1(l.startedAt)}),l.completedAt&&g.jsx(wn,{label:"Completed",mono:!0,children:u1(l.completedAt)}),g.jsx(wn,{label:"Duration",mono:!0,children:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsx(A1,{className:"w-3.5 h-3.5 text-herd-muted flex-shrink-0"}),g.jsxs("span",{className:c?"text-herd-status-running":"",children:[m,c&&" (running)"]})]})}),l.exitCode!==void 0&&g.jsx(wn,{label:"Exit Code",mono:!0,children:g.jsx("span",{className:l.exitCode===0?"text-herd-status-running":"text-herd-status-error",children:l.exitCode})}),l.error&&g.jsx(wn,{label:"Error",children:g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-2 py-1.5 text-xs",children:l.error})})]}):g.jsx(Lb,{jobId:t})}),l&&g.jsxs("div",{className:"px-4 py-3 border-t border-herd-border space-y-3",children:[c&&g.jsx(Ub,{jobId:l.jobId,onCancelled:p}),d&&g.jsx(Hb,{jobId:l.jobId,onForked:x}),g.jsxs(mt,{to:`/agents/${encodeURIComponent(l.agentName)}/output`,className:"flex items-center justify-center gap-1.5 w-full bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-2 text-xs font-medium transition-colors",children:[g.jsx(v8,{className:"w-3.5 h-3.5"}),"View Agent Output"]}),g.jsxs("div",{className:"border-t border-herd-border pt-2 space-y-1",children:[g.jsx("p",{className:"text-xs text-herd-muted font-medium uppercase tracking-wide mb-1",children:"CLI Commands"}),y&&g.jsx(fm,{text:y,label:"Copy Resume Command"}),g.jsx(fm,{text:v,label:"Copy Trigger Command"})]})]})]})}function Zb({isOpen:t,onClose:l,preSelectedAgent:r,preSelectedSchedule:i}){var ee;const{agents:s}=xs(),[o,c]=M.useState(r??""),[d,m]=M.useState(i??""),[p,x]=M.useState(""),[y,v]=M.useState(!1),[S,C]=M.useState(null),[z,j]=M.useState(!1);M.useEffect(()=>{t&&(c(r??""),m(i??""),x(""),v(!1),C(null),j(!1))},[t,r,i]);const E=((ee=s.find(O=>O.name===o))==null?void 0:ee.schedules)??[],T=M.useCallback(O=>{c(O),m(""),C(null)},[]),D=async()=>{if(!o){C("Please select an agent");return}v(!0),C(null);try{await zp(o,{scheduleName:d||void 0,prompt:p.trim()||void 0}),j(!0),setTimeout(()=>{l()},800)}catch(O){const V=O instanceof Error?O.message:"Failed to trigger job";C(V),v(!1)}},F=O=>{O.target===O.currentTarget&&l()};return M.useEffect(()=>{if(!t)return;const O=V=>{V.key==="Escape"&&l()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[t,l]),t?g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:F,children:g.jsxs("div",{className:"bg-herd-card border border-herd-border rounded-[10px] p-5 max-w-md w-full mx-4 shadow-lg",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{className:"text-sm font-semibold text-herd-fg",children:"Trigger Job"}),g.jsx("button",{onClick:l,className:"p-1 hover:bg-herd-hover rounded transition-colors","aria-label":"Close modal",children:g.jsx(Es,{className:"w-4 h-4 text-herd-muted"})})]}),z?g.jsxs("div",{className:"flex flex-col items-center gap-3 py-6",children:[g.jsx(u3,{className:"w-8 h-8 text-herd-status-running"}),g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"Job triggered"})]}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"mb-3",children:[g.jsx("label",{htmlFor:"trigger-agent",className:"block text-xs text-herd-muted font-medium uppercase tracking-wide mb-1",children:"Agent"}),g.jsxs("select",{id:"trigger-agent",value:o,onChange:O=>T(O.target.value),className:"bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2 text-sm text-herd-fg focus:outline-none focus:border-herd-primary/60 transition-colors w-full",disabled:y,children:[g.jsx("option",{value:"",children:"Select an agent..."}),s.map(O=>g.jsx("option",{value:O.name,children:O.name},O.name))]})]}),o&&E.length>0&&g.jsxs("div",{className:"mb-3",children:[g.jsx("label",{htmlFor:"trigger-schedule",className:"block text-xs text-herd-muted font-medium uppercase tracking-wide mb-1",children:"Schedule (optional)"}),g.jsxs("select",{id:"trigger-schedule",value:d,onChange:O=>m(O.target.value),className:"bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2 text-sm text-herd-fg focus:outline-none focus:border-herd-primary/60 transition-colors w-full",disabled:y,children:[g.jsx("option",{value:"",children:"Default (first schedule)"}),E.map(O=>g.jsxs("option",{value:O.name,children:[O.name," (",O.type,")"]},O.name))]})]}),g.jsxs("div",{className:"mb-4",children:[g.jsx("label",{htmlFor:"trigger-prompt",className:"block text-xs text-herd-muted font-medium uppercase tracking-wide mb-1",children:"Prompt (optional)"}),g.jsx("textarea",{id:"trigger-prompt",value:p,onChange:O=>x(O.target.value),placeholder:"Override the default prompt...",rows:3,className:"bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2 text-sm text-herd-fg placeholder:text-herd-muted focus:outline-none focus:border-herd-primary/60 transition-colors w-full resize-none",disabled:y})]}),S&&g.jsxs("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs mb-4 flex items-center gap-2",children:[g.jsx(i3,{className:"w-3.5 h-3.5 flex-shrink-0"}),g.jsx("span",{children:S})]}),g.jsxs("div",{className:"flex justify-end gap-2",children:[g.jsx("button",{onClick:l,disabled:y,className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),g.jsx("button",{onClick:D,disabled:y||!o,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-1.5",children:y?g.jsxs(g.Fragment,{children:[g.jsx(nl,{size:"sm"}),"Triggering..."]}):g.jsxs(g.Fragment,{children:[g.jsx(wi,{className:"w-3.5 h-3.5"}),"Trigger"]})})]})]})]})}):null}function qb(t,l){if(!t)return"-";const r=new Date(t).getTime(),s=(l?new Date(l).getTime():Date.now())-r;if(s<0)return"-";const o=Math.floor(s/1e3),c=Math.floor(o/60),d=Math.floor(c/60);if(d>0){const m=c%60;return m>0?`${d}h ${m}m`:`${d}h`}if(c>0){const m=o%60;return m>0?`${c}m ${m}s`:`${c}m`}return`${o}s`}function $b(t){if(!t)return"-";const l=new Date(t),r=new Date;return l.toDateString()===r.toDateString()?l.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):l.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Vb(t,l=60){return t.length<=l?t:t.slice(0,l).trim()+"..."}function Jb({className:t}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:g.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}function Ib({className:t}){return g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:t,children:g.jsx("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})})}function Fb({type:t}){const l=t??"manual",r="w-3.5 h-3.5",i={discord:{icon:g.jsx(Jb,{className:r}),label:"Discord"},slack:{icon:g.jsx(Ib,{className:r}),label:"Slack"},web:{icon:g.jsx(o3,{className:r}),label:"Web Chat"},manual:{icon:g.jsx(fa,{className:r}),label:"Manual"},schedule:{icon:g.jsx(n3,{className:r}),label:"Schedule"},webhook:{icon:g.jsx(af,{className:r}),label:"Webhook"},chat:{icon:g.jsx(ia,{className:r}),label:"Chat"},fork:{icon:g.jsx(os,{className:r}),label:"Fork"}},{icon:s,label:o}=i[l]??i.manual;return g.jsx("span",{className:"text-herd-muted",title:o,children:s})}const Yb=[{value:"all",label:"All Status"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}];function Gb({agentFilter:t,statusFilter:l,onAgentFilterChange:r,onStatusFilterChange:i,showAgentFilter:s}){return g.jsxs("div",{className:"flex flex-wrap gap-3 mb-4",children:[s&&g.jsxs("div",{className:"relative flex-1 min-w-[180px] max-w-[280px]",children:[g.jsx(Q8,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-herd-muted pointer-events-none"}),g.jsx("input",{type:"text",placeholder:"Filter by agent...",value:t,onChange:o=>r(o.target.value),className:"bg-herd-input-bg border border-herd-border rounded-lg pl-9 pr-8 py-2 text-sm text-herd-fg placeholder:text-herd-muted focus:outline-none focus:border-herd-primary/60 transition-colors w-full"}),t&&g.jsx("button",{onClick:()=>r(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-herd-hover rounded transition-colors","aria-label":"Clear agent filter",children:g.jsx(Es,{className:"w-3.5 h-3.5 text-herd-muted"})})]}),g.jsx("select",{value:l??"all",onChange:o=>{const c=o.target.value;i(c==="all"?void 0:c)},className:"bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2 text-sm text-herd-fg focus:outline-none focus:border-herd-primary/60 transition-colors min-w-[140px]",children:Yb.map(o=>g.jsx("option",{value:o.value,children:o.label},o.value))})]})}function Xb({offset:t,limit:l,total:r,onPrevious:i,onNext:s}){const o=r===0?0:t+1,c=Math.min(t+l,r),d=t>0,m=t+l<r;return g.jsxs("div",{className:"flex items-center justify-between mt-4 pt-3 border-t border-herd-border",children:[g.jsxs("span",{className:"text-xs text-herd-muted",children:["Showing ",o,"-",c," of ",r]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsxs("button",{onClick:i,disabled:!d,className:"flex items-center gap-1 border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[g.jsx(r3,{className:"w-3.5 h-3.5"}),"Previous"]}),g.jsxs("button",{onClick:s,disabled:!m,className:"flex items-center gap-1 border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:["Next",g.jsx(a3,{className:"w-3.5 h-3.5"})]})]})]})}function Qb({job:t,showAgent:l,isSelected:r,onSelect:i}){const s=t.status==="running",o=qb(t.startedAt,t.completedAt);return g.jsxs("tr",{onClick:i,className:`
|
|
335
|
+
hover:bg-herd-hover transition-colors cursor-pointer
|
|
336
|
+
${r?"bg-herd-primary-muted":""}
|
|
337
|
+
`,children:[l&&g.jsx("td",{className:"py-2 px-3 text-herd-fg",children:g.jsx(mt,{to:`/agents/${encodeURIComponent(t.agentName)}`,onClick:c=>c.stopPropagation(),className:"text-herd-primary hover:text-herd-primary-hover transition-colors",children:t.agentName})}),g.jsx("td",{className:"py-2 px-1 text-center w-8",children:g.jsx(Fb,{type:t.triggerType})}),g.jsx("td",{className:"py-2 px-3 text-herd-fg",title:t.prompt,children:Vb(t.prompt)}),g.jsx("td",{className:"py-2 px-3",children:g.jsx(sr,{status:t.status})}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs",children:$b(t.startedAt)}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs font-mono",children:s?g.jsx("span",{className:"text-herd-status-running",children:o}):o})]})}function Kb({hasFilters:t}){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[g.jsx(Cs,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"No jobs found"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:t?"Try adjusting your filters to see more results":"Jobs will appear here once agents start running tasks"})]})]})}function Pb({message:t,onRetry:l}){return g.jsxs("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs mb-4 flex items-center justify-between",children:[g.jsx("span",{children:t}),g.jsx("button",{onClick:l,className:"hover:underline font-medium ml-4",children:"Retry"})]})}function p3({agentName:t}){const{jobs:l,totalJobs:r,jobsLoading:i,jobsError:s,jobsFilter:o,jobsOffset:c,jobsLimit:d}=h6(),{fetchJobs:m,setJobsFilter:p,setJobsOffset:x,selectJob:y,clearJobsState:v}=Rp(),{selectedJobId:S,selectedJob:C,selectedJobLoading:z}=m6(),[j,E]=M.useState(!1),T=!!t;M.useEffect(()=>{v(),t&&p({agentName:t})},[t,v,p]),M.useEffect(()=>{m().catch(()=>{})},[m,o,c]);const D=M.useMemo(()=>!!(o.agentName||o.status),[o]),F=L=>{p({agentName:L||void 0})},ee=L=>{p({status:L})},O=()=>{const L=Math.max(0,c-d);x(L)},V=()=>{const L=c+d;L<r&&x(L)},se=L=>{y(S===L?null:L)},de=()=>{y(null)};return i&&l.length===0&&!s?g.jsx(xt,{className:"p-6",children:g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-8",children:[g.jsx(nl,{size:"lg"}),g.jsx("p",{className:"text-sm text-herd-muted",children:"Loading job history..."})]})}):g.jsxs("div",{className:"flex gap-4",children:[g.jsxs(xt,{className:"p-4 flex-1 min-w-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-herd-fg",children:T?"Job History":"All Jobs"}),g.jsxs("div",{className:"flex items-center gap-2",children:[i&&l.length>0&&g.jsx(nl,{size:"sm"}),g.jsxs("button",{onClick:()=>E(!0),className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors flex items-center gap-1.5",children:[g.jsx(wi,{className:"w-3.5 h-3.5"}),"Trigger Job"]})]})]}),s&&g.jsx(Pb,{message:s,onRetry:m}),g.jsx(Gb,{agentFilter:T?"":o.agentName??"",statusFilter:o.status,onAgentFilterChange:F,onStatusFilterChange:ee,showAgentFilter:!T}),l.length===0&&!i?g.jsx(Kb,{hasFilters:D}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-herd-border text-xs text-herd-muted font-medium uppercase tracking-wide",children:[!T&&g.jsx("th",{className:"text-left py-2 px-3",children:"Agent"}),g.jsx("th",{className:"text-center py-2 px-1 w-8",title:"Source"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Prompt"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Status"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Started"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Duration"})]})}),g.jsx("tbody",{className:"divide-y divide-herd-border",children:l.map(L=>g.jsx(Qb,{job:L,showAgent:!T,isSelected:S===L.jobId,onSelect:()=>se(L.jobId)},L.jobId))})]})}),g.jsx(Xb,{offset:c,limit:d,total:r,onPrevious:O,onNext:V})]})]}),S&&g.jsx(Bb,{jobId:S,job:C,loading:z,onClose:de}),g.jsx(Zb,{isOpen:j,onClose:()=>{E(!1),m().catch(()=>{})},preSelectedAgent:t})]})}function Wb({agent:t}){return g.jsx(p3,{agentName:t.name})}function ev(t){switch(t){case"interval":return A1;case"cron":return lf;case"webhook":return af;case"chat":return rf;default:return A1}}function tv(t){return t.interval?t.interval:t.cron?t.cron:t.type}function nv(t){return t==="connected"||t==="ready"?"text-herd-status-running":t==="error"||t==="failed"?"text-herd-status-error":"text-herd-status-idle"}function Xu({title:t,children:l}){return g.jsxs(xt,{className:"p-4",children:[g.jsx("h3",{className:"text-sm font-semibold text-herd-fg mb-3",children:t}),l]})}function Kr({label:t,value:l,mono:r=!1}){const i=l??"--";return g.jsxs("div",{className:"flex justify-between items-baseline gap-4 py-1.5",children:[g.jsx("dt",{className:"text-xs text-herd-muted shrink-0",children:t}),g.jsx("dd",{className:`text-xs text-herd-fg text-right truncate ${r?"font-mono":""}`,title:typeof i=="string"?i:void 0,children:i})]})}function lv({schedule:t}){const l=ev(t.type),r=t.status==="running"?"text-herd-status-running":t.status==="disabled"?"text-herd-status-error":"text-herd-status-idle";return g.jsxs("tr",{className:"border-b border-herd-border last:border-b-0",children:[g.jsx("td",{className:"py-2 pr-3",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(l,{className:"w-3.5 h-3.5 text-herd-muted"}),g.jsx("span",{className:"text-xs text-herd-fg",children:t.name})]})}),g.jsx("td",{className:"py-2 px-3 text-xs text-herd-muted capitalize",children:t.type}),g.jsx("td",{className:"py-2 px-3 text-xs text-herd-fg font-mono",children:tv(t)}),g.jsx("td",{className:`py-2 pl-3 text-xs capitalize ${r}`,children:t.status})]})}function rv({name:t,connector:l}){const r=l.connectionStatus??(l.configured?"configured":"inactive");return g.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[g.jsx("span",{className:"text-xs text-herd-fg capitalize",children:t}),g.jsx("span",{className:`text-xs ${nv(r)}`,children:r})]})}function av({agent:t}){return g.jsxs("div",{className:"space-y-4",children:[g.jsx(Xu,{title:"General",children:g.jsxs("dl",{className:"divide-y divide-herd-border",children:[g.jsx(Kr,{label:"Name",value:t.name}),g.jsx(Kr,{label:"Description",value:t.description}),g.jsx(Kr,{label:"Model",value:t.model,mono:!0}),g.jsx(Kr,{label:"Permission Mode",value:t.permission_mode}),g.jsx(Kr,{label:"Max Concurrent",value:t.maxConcurrent})]})}),g.jsx(Xu,{title:"Schedules",children:t.schedules.length===0?g.jsx("p",{className:"text-xs text-herd-muted",children:"No schedules configured"}):g.jsxs("table",{className:"w-full",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"text-xs text-herd-muted font-medium uppercase tracking-wide border-b border-herd-border",children:[g.jsx("th",{className:"text-left py-2 pr-3",children:"Name"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Type"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Value"}),g.jsx("th",{className:"text-left py-2 pl-3",children:"Status"})]})}),g.jsx("tbody",{children:t.schedules.map(l=>g.jsx(lv,{schedule:l},l.name))})]})}),g.jsx(Xu,{title:"Chat Connectors",children:!t.chat||Object.keys(t.chat).length===0?g.jsx("p",{className:"text-xs text-herd-muted",children:"No chat connectors configured"}):g.jsx("div",{className:"divide-y divide-herd-border",children:Object.entries(t.chat).map(([l,r])=>g.jsx(rv,{name:l,connector:r},l))})}),t.working_directory&&g.jsx(Xu,{title:"Environment",children:g.jsx("dl",{children:g.jsx(Kr,{label:"Working Directory",value:t.working_directory,mono:!0})})})]})}const iv=[{id:"overview",label:"Overview",icon:c3},{id:"jobs",label:"Jobs",icon:Cs},{id:"output",label:"Output",icon:fa}];function uv({activeTab:t,agentName:l}){const r=encodeURIComponent(l);return g.jsx("div",{className:"flex border-b border-herd-border",children:iv.map(i=>{const s=i.icon,o=t===i.id;return g.jsxs(mt,{to:`/agents/${r}/${i.id}`,replace:!0,className:`
|
|
338
|
+
flex items-center gap-1.5 px-4 py-2 text-xs font-medium transition-colors
|
|
339
|
+
border-b-2 -mb-px
|
|
340
|
+
${o?"text-herd-primary border-herd-primary":"text-herd-muted hover:text-herd-fg border-transparent hover:border-herd-border"}
|
|
341
|
+
`,children:[g.jsx(s,{className:"w-3.5 h-3.5"}),i.label]},i.id)})})}function dm({name:t}){return g.jsx("div",{className:"p-4 h-full flex items-center justify-center",children:g.jsxs(xt,{className:"p-6 max-w-md w-full text-center",children:[g.jsx("h2",{className:"text-lg font-semibold text-herd-fg mb-2",children:"Agent Not Found"}),g.jsxs("p",{className:"text-sm text-herd-muted mb-4",children:['No agent named "',t,'" exists in the fleet.']}),g.jsxs(mt,{to:"/",className:"inline-flex items-center gap-1.5 text-herd-primary hover:text-herd-primary-hover text-xs font-medium transition-colors",children:[g.jsx(nf,{className:"w-3.5 h-3.5"}),"Back to Dashboard"]})]})})}function sv({name:t}){return g.jsx("div",{className:"p-4 h-full flex items-center justify-center",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx(nl,{size:"lg"}),g.jsxs("p",{className:"text-sm text-herd-muted",children:['Loading agent "',t,'"...']})]})})}function ov({message:t,onRetry:l}){return g.jsx("div",{className:"p-4 h-full flex items-center justify-center",children:g.jsxs(xt,{className:"p-6 max-w-md w-full",children:[g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs mb-4",children:t}),g.jsxs("div",{className:"flex gap-2 justify-center",children:[g.jsx("button",{onClick:l,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",children:"Retry"}),g.jsx(mt,{to:"/",className:"border border-herd-border hover:bg-herd-hover text-herd-fg rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",children:"Back to Dashboard"})]})]})})}const cv=new Set(["overview","jobs","output"]);function hm(){const{name:t,tab:l}=J1(),{agent:r,loading:i,error:s,retry:o}=wb(t??null),c=l&&cv.has(l)?l:"overview";if(!t)return g.jsx(dm,{name:"(unknown)"});if(i)return g.jsx(sv,{name:t});if(s)return g.jsx(ov,{message:s,onRetry:o});if(!r)return g.jsx(dm,{name:t});function d(){switch(c){case"overview":return g.jsx(av,{agent:r});case"jobs":return g.jsx(Wb,{agent:r});case"output":return g.jsx(zb,{agent:r});default:return c}}return g.jsxs("div",{className:"p-4 space-y-4 overflow-auto h-full",children:[g.jsxs(mt,{to:"/",className:"inline-flex items-center gap-1.5 text-herd-muted hover:text-herd-fg text-xs font-medium transition-colors",children:[g.jsx(nf,{className:"w-3.5 h-3.5"}),"Back to Dashboard"]}),g.jsx(xt,{className:"p-4",children:g.jsx(kb,{agent:r})}),g.jsxs(xt,{className:"overflow-hidden",children:[g.jsx(uv,{activeTab:c,agentName:t}),g.jsx("div",{className:"p-4",children:d()})]})]})}function fv(t,l){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const dv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mv={};function mm(t,l){return(mv.jsx?hv:dv).test(t)}const pv=/[ \t\n\f\r]/g;function gv(t){return typeof t=="object"?t.type==="text"?pm(t.value):!1:pm(t)}function pm(t){return t.replace(pv,"")===""}class ji{constructor(l,r,i){this.normal=r,this.property=l,i&&(this.space=i)}}ji.prototype.normal={};ji.prototype.property={};ji.prototype.space=void 0;function g3(t,l){const r={},i={};for(const s of t)Object.assign(r,s.property),Object.assign(i,s.normal);return new ji(r,i,l)}function z1(t){return t.toLowerCase()}class Jt{constructor(l,r){this.attribute=r,this.property=l}}Jt.prototype.attribute="";Jt.prototype.booleanish=!1;Jt.prototype.boolean=!1;Jt.prototype.commaOrSpaceSeparated=!1;Jt.prototype.commaSeparated=!1;Jt.prototype.defined=!1;Jt.prototype.mustUseProperty=!1;Jt.prototype.number=!1;Jt.prototype.overloadedBoolean=!1;Jt.prototype.property="";Jt.prototype.spaceSeparated=!1;Jt.prototype.space=void 0;let yv=0;const Ee=or(),ht=or(),T1=or(),le=or(),Qe=or(),aa=or(),Wt=or();function or(){return 2**++yv}const _1=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ht,commaOrSpaceSeparated:Wt,commaSeparated:aa,number:le,overloadedBoolean:T1,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),s1=Object.keys(_1);class uf extends Jt{constructor(l,r,i,s){let o=-1;if(super(l,r),gm(this,"space",s),typeof i=="number")for(;++o<s1.length;){const c=s1[o];gm(this,s1[o],(i&_1[c])===_1[c])}}}uf.prototype.defined=!0;function gm(t,l,r){r&&(t[l]=r)}function ha(t){const l={},r={};for(const[i,s]of Object.entries(t.properties)){const o=new uf(i,t.transform(t.attributes||{},i),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),l[i]=o,r[z1(i)]=i,r[z1(o.attribute)]=i}return new ji(l,r,t.space)}const y3=ha({properties:{ariaActiveDescendant:null,ariaAtomic:ht,ariaAutoComplete:null,ariaBusy:ht,ariaChecked:ht,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:ht,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:ht,ariaFlowTo:Qe,ariaGrabbed:ht,ariaHasPopup:null,ariaHidden:ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:le,ariaLive:null,ariaModal:ht,ariaMultiLine:ht,ariaMultiSelectable:ht,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:ht,ariaReadOnly:ht,ariaRelevant:null,ariaRequired:ht,ariaRoleDescription:Qe,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:ht,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function x3(t,l){return l in t?t[l]:l}function b3(t,l){return x3(t,l.toLowerCase())}const xv=ha({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:aa,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Qe,autoFocus:Ee,autoPlay:Ee,blocking:Qe,capture:null,charSet:null,checked:Ee,cite:null,className:Qe,cols:le,colSpan:null,content:null,contentEditable:ht,controls:Ee,controlsList:Qe,coords:le|aa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:T1,draggable:ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Qe,height:le,hidden:T1,high:le,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Ee,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:le,pattern:null,ping:Qe,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Qe,required:Ee,reversed:Ee,rows:le,rowSpan:le,sandbox:Qe,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ht,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:ht,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:b3}),bv=ha({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:Wt,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Qe,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:aa,g2:aa,glyphName:aa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:x3}),v3=ha({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),S3=ha({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:b3}),w3=ha({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),vv={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"},Sv=/[A-Z]/g,ym=/-[a-z]/g,wv=/^data[-\w.:]+$/i;function kv(t,l){const r=z1(l);let i=l,s=Jt;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&wv.test(l)){if(l.charAt(4)==="-"){const o=l.slice(5).replace(ym,Ev);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=l.slice(4);if(!ym.test(o)){let c=o.replace(Sv,Cv);c.charAt(0)!=="-"&&(c="-"+c),l="data"+c}}s=uf}return new s(i,l)}function Cv(t){return"-"+t.toLowerCase()}function Ev(t){return t.charAt(1).toUpperCase()}const Mv=g3([y3,xv,v3,S3,w3],"html"),sf=g3([y3,bv,v3,S3,w3],"svg");function Nv(t){return t.join(" ").trim()}var Pr={},o1,xm;function jv(){if(xm)return o1;xm=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
|
|
342
|
+
`,p="/",x="*",y="",v="comment",S="declaration";function C(j,E){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];E=E||{};var T=1,D=1;function F(ue){var K=ue.match(l);K&&(T+=K.length);var H=ue.lastIndexOf(m);D=~H?ue.length-H:D+ue.length}function ee(){var ue={line:T,column:D};return function(K){return K.position=new O(ue),de(),K}}function O(ue){this.start=ue,this.end={line:T,column:D},this.source=E.source}O.prototype.content=j;function V(ue){var K=new Error(E.source+":"+T+":"+D+": "+ue);if(K.reason=ue,K.filename=E.source,K.line=T,K.column=D,K.source=j,!E.silent)throw K}function se(ue){var K=ue.exec(j);if(K){var H=K[0];return F(H),j=j.slice(H.length),K}}function de(){se(r)}function L(ue){var K;for(ue=ue||[];K=ae();)K!==!1&&ue.push(K);return ue}function ae(){var ue=ee();if(!(p!=j.charAt(0)||x!=j.charAt(1))){for(var K=2;y!=j.charAt(K)&&(x!=j.charAt(K)||p!=j.charAt(K+1));)++K;if(K+=2,y===j.charAt(K-1))return V("End of comment missing");var H=j.slice(2,K-2);return D+=2,F(H),j=j.slice(K),D+=2,ue({type:v,comment:H})}}function te(){var ue=ee(),K=se(i);if(K){if(ae(),!se(s))return V("property missing ':'");var H=se(o),P=ue({type:S,property:z(K[0].replace(t,y)),value:H?z(H[0].replace(t,y)):y});return se(c),P}}function ve(){var ue=[];L(ue);for(var K;K=te();)K!==!1&&(ue.push(K),L(ue));return ue}return de(),ve()}function z(j){return j?j.replace(d,y):y}return o1=C,o1}var bm;function Av(){if(bm)return Pr;bm=1;var t=Pr&&Pr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.default=r;const l=t(jv());function r(i,s){let o=null;if(!i||typeof i!="string")return o;const c=(0,l.default)(i),d=typeof s=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:x}=m;d?s(p,x,m):x&&(o=o||{},o[p]=x)}),o}return Pr}var ci={},vm;function zv(){if(vm)return ci;vm=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(p){return!p||r.test(p)||t.test(p)},c=function(p,x){return x.toUpperCase()},d=function(p,x){return"".concat(x,"-")},m=function(p,x){return x===void 0&&(x={}),o(p)?p:(p=p.toLowerCase(),x.reactCompat?p=p.replace(s,d):p=p.replace(i,d),p.replace(l,c))};return ci.camelCase=m,ci}var fi,Sm;function Tv(){if(Sm)return fi;Sm=1;var t=fi&&fi.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=t(Av()),r=zv();function i(s,o){var c={};return!s||typeof s!="string"||(0,l.default)(s,function(d,m){d&&m&&(c[(0,r.camelCase)(d,o)]=m)}),c}return i.default=i,fi=i,fi}var _v=Tv();const Rv=q1(_v),k3=C3("end"),of=C3("start");function C3(t){return l;function l(r){const i=r&&r.position&&r.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Dv(t){const l=of(t),r=k3(t);if(l&&r)return{start:l,end:r}}function gi(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?wm(t.position):"start"in t||"end"in t?wm(t):"line"in t||"column"in t?R1(t):""}function R1(t){return km(t&&t.line)+":"+km(t&&t.column)}function wm(t){return R1(t&&t.start)+"-"+R1(t&&t.end)}function km(t){return t&&typeof t=="number"?t:1}class At extends Error{constructor(l,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof l=="string"?s=l:!o.cause&&l&&(c=!0,s=l.message,o.cause=l),!o.ruleId&&!o.source&&typeof i=="string"){const m=i.indexOf(":");m===-1?o.ruleId=i:(o.source=i.slice(0,m),o.ruleId=i.slice(m+1))}if(!o.place&&o.ancestors&&o.ancestors){const m=o.ancestors[o.ancestors.length-1];m&&(o.place=m.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=d?d.line:void 0,this.name=gi(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}At.prototype.file="";At.prototype.name="";At.prototype.reason="";At.prototype.message="";At.prototype.stack="";At.prototype.column=void 0;At.prototype.line=void 0;At.prototype.ancestors=void 0;At.prototype.cause=void 0;At.prototype.fatal=void 0;At.prototype.place=void 0;At.prototype.ruleId=void 0;At.prototype.source=void 0;const cf={}.hasOwnProperty,Ov=new Map,Lv=/[A-Z]/g,Uv=new Set(["table","tbody","thead","tfoot","tr"]),Hv=new Set(["td","th"]),E3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Bv(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=l.filePath||void 0;let i;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Yv(r,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Fv(r,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:i,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?sf:Mv,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},o=M3(s,t,void 0);return o&&typeof o!="string"?o:s.create(t,s.Fragment,{children:o||void 0},void 0)}function M3(t,l,r){if(l.type==="element")return Zv(t,l,r);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return qv(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return Vv(t,l,r);if(l.type==="mdxjsEsm")return $v(t,l);if(l.type==="root")return Jv(t,l,r);if(l.type==="text")return Iv(t,l)}function Zv(t,l,r){const i=t.schema;let s=i;l.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=sf,t.schema=s),t.ancestors.push(l);const o=j3(t,l.tagName,!1),c=Gv(t,l);let d=df(t,l);return Uv.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!gv(m):!0})),N3(t,c,o,l),ff(c,d),t.ancestors.pop(),t.schema=i,t.create(l,o,c,r)}function qv(t,l){if(l.data&&l.data.estree&&t.evaluater){const i=l.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}ki(t,l.position)}function $v(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);ki(t,l.position)}function Vv(t,l,r){const i=t.schema;let s=i;l.name==="svg"&&i.space==="html"&&(s=sf,t.schema=s),t.ancestors.push(l);const o=l.name===null?t.Fragment:j3(t,l.name,!0),c=Xv(t,l),d=df(t,l);return N3(t,c,o,l),ff(c,d),t.ancestors.pop(),t.schema=i,t.create(l,o,c,r)}function Jv(t,l,r){const i={};return ff(i,df(t,l)),t.create(l,t.Fragment,i,r)}function Iv(t,l){return l.value}function N3(t,l,r,i){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(l.node=i)}function ff(t,l){if(l.length>0){const r=l.length>1?l:l[0];r&&(t.children=r)}}function Fv(t,l,r){return i;function i(s,o,c,d){const p=Array.isArray(c.children)?r:l;return d?p(o,c,d):p(o,c)}}function Yv(t,l){return r;function r(i,s,o,c){const d=Array.isArray(o.children),m=of(i);return l(s,o,c,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function Gv(t,l){const r={};let i,s;for(s in l.properties)if(s!=="children"&&cf.call(l.properties,s)){const o=Qv(t,s,l.properties[s]);if(o){const[c,d]=o;t.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&Hv.has(l.tagName)?i=d:r[c]=d}}if(i){const o=r.style||(r.style={});o[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Xv(t,l){const r={};for(const i of l.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const o=i.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,t.evaluater.evaluateExpression(d.argument))}else ki(t,l.position);else{const s=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const d=i.value.data.estree.body[0];d.type,o=t.evaluater.evaluateExpression(d.expression)}else ki(t,l.position);else o=i.value===null?!0:i.value;r[s]=o}return r}function df(t,l){const r=[];let i=-1;const s=t.passKeys?new Map:Ov;for(;++i<l.children.length;){const o=l.children[i];let c;if(t.passKeys){const m=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(m){const p=s.get(m)||0;c=m+"-"+p,s.set(m,p+1)}}const d=M3(t,o,c);d!==void 0&&r.push(d)}return r}function Qv(t,l,r){const i=kv(t.schema,l);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?fv(r):Nv(r)),i.property==="style"){let s=typeof r=="object"?r:Kv(t,String(r));return t.stylePropertyNameCase==="css"&&(s=Pv(s)),["style",s]}return[t.elementAttributeNameCase==="react"&&i.space?vv[i.property]||i.property:i.attribute,r]}}function Kv(t,l){try{return Rv(l,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const i=r,s=new At("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=t.filePath||void 0,s.url=E3+"#cannot-parse-style-attribute",s}}function j3(t,l,r){let i;if(!r)i={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let o=-1,c;for(;++o<s.length;){const d=mm(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}i=c}else i=mm(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(i.type==="Literal"){const s=i.value;return cf.call(t.components,s)?t.components[s]:s}if(t.evaluater)return t.evaluater.evaluateExpression(i);ki(t)}function ki(t,l){const r=new At("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=E3+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Pv(t){const l={};let r;for(r in t)cf.call(t,r)&&(l[Wv(r)]=t[r]);return l}function Wv(t){let l=t.replace(Lv,e9);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function e9(t){return"-"+t.toLowerCase()}const c1={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"]},t9={};function hf(t,l){const r=t9,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return A3(t,i,s)}function A3(t,l,r){if(n9(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return Cm(t.children,l,r)}return Array.isArray(t)?Cm(t,l,r):""}function Cm(t,l,r){const i=[];let s=-1;for(;++s<t.length;)i[s]=A3(t[s],l,r);return i.join("")}function n9(t){return!!(t&&typeof t=="object")}const Em=document.createElement("i");function mf(t){const l="&"+t+";";Em.innerHTML=l;const r=Em.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===l?!1:r}function tn(t,l,r,i){const s=t.length;let o=0,c;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(l,r),t.splice(...c);else for(r&&t.splice(l,r);o<i.length;)c=i.slice(o,o+1e4),c.unshift(l,0),t.splice(...c),o+=1e4,l+=1e4}function mn(t,l){return t.length>0?(tn(t,t.length,0,l),t):l}const Mm={}.hasOwnProperty;function z3(t){const l={};let r=-1;for(;++r<t.length;)l9(l,t[r]);return l}function l9(t,l){let r;for(r in l){const s=(Mm.call(t,r)?t[r]:void 0)||(t[r]={}),o=l[r];let c;if(o)for(c in o){Mm.call(s,c)||(s[c]=[]);const d=o[c];r9(s[c],Array.isArray(d)?d:d?[d]:[])}}}function r9(t,l){let r=-1;const i=[];for(;++r<l.length;)(l[r].add==="after"?t:i).push(l[r]);tn(t,0,0,i)}function T3(t,l){const r=Number.parseInt(t,l);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Cn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rt=Ul(/[A-Za-z]/),jt=Ul(/[\dA-Za-z]/),a9=Ul(/[#-'*+\--9=?A-Z^-~]/);function fs(t){return t!==null&&(t<32||t===127)}const D1=Ul(/\d/),i9=Ul(/[\dA-Fa-f]/),u9=Ul(/[!-/:-@[-`{-~]/);function ge(t){return t!==null&&t<-2}function Xe(t){return t!==null&&(t<0||t===32)}function Te(t){return t===-2||t===-1||t===32}const Ms=Ul(new RegExp("\\p{P}|\\p{S}","u")),ur=Ul(/\s/);function Ul(t){return l;function l(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function ma(t){const l=[];let r=-1,i=0,s=0;for(;++r<t.length;){const o=t.charCodeAt(r);let c="";if(o===37&&jt(t.charCodeAt(r+1))&&jt(t.charCodeAt(r+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=t.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),s=1):c="�"}else c=String.fromCharCode(o);c&&(l.push(t.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return l.join("")+t.slice(i)}function Oe(t,l,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(m){return Te(m)?(t.enter(r),d(m)):l(m)}function d(m){return Te(m)&&o++<s?(t.consume(m),d):(t.exit(r),l(m))}}const s9={tokenize:o9};function o9(t){const l=t.attempt(this.parser.constructs.contentInitial,i,s);let r;return l;function i(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Oe(t,l,"linePrefix")}function s(d){return t.enter("paragraph"),o(d)}function o(d){const m=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=m),r=m,c(d)}function c(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return ge(d)?(t.consume(d),t.exit("chunkText"),o):(t.consume(d),c)}}const c9={tokenize:f9},Nm={tokenize:d9};function f9(t){const l=this,r=[];let i=0,s,o,c;return d;function d(D){if(i<r.length){const F=r[i];return l.containerState=F[1],t.attempt(F[0].continuation,m,p)(D)}return p(D)}function m(D){if(i++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&T();const F=l.events.length;let ee=F,O;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){O=l.events[ee][1].end;break}E(i);let V=F;for(;V<l.events.length;)l.events[V][1].end={...O},V++;return tn(l.events,ee+1,0,l.events.slice(F)),l.events.length=V,p(D)}return d(D)}function p(D){if(i===r.length){if(!s)return v(D);if(s.currentConstruct&&s.currentConstruct.concrete)return C(D);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(Nm,x,y)(D)}function x(D){return s&&T(),E(i),v(D)}function y(D){return l.parser.lazy[l.now().line]=i!==r.length,c=l.now().offset,C(D)}function v(D){return l.containerState={},t.attempt(Nm,S,C)(D)}function S(D){return i++,r.push([l.currentConstruct,l.containerState]),v(D)}function C(D){if(D===null){s&&T(),E(0),t.consume(D);return}return s=s||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),z(D)}function z(D){if(D===null){j(t.exit("chunkFlow"),!0),E(0),t.consume(D);return}return ge(D)?(t.consume(D),j(t.exit("chunkFlow")),i=0,l.interrupt=void 0,d):(t.consume(D),z)}function j(D,F){const ee=l.sliceStream(D);if(F&&ee.push(null),D.previous=o,o&&(o.next=D),o=D,s.defineSkip(D.start),s.write(ee),l.parser.lazy[D.start.line]){let O=s.events.length;for(;O--;)if(s.events[O][1].start.offset<c&&(!s.events[O][1].end||s.events[O][1].end.offset>c))return;const V=l.events.length;let se=V,de,L;for(;se--;)if(l.events[se][0]==="exit"&&l.events[se][1].type==="chunkFlow"){if(de){L=l.events[se][1].end;break}de=!0}for(E(i),O=V;O<l.events.length;)l.events[O][1].end={...L},O++;tn(l.events,se+1,0,l.events.slice(V)),l.events.length=O}}function E(D){let F=r.length;for(;F-- >D;){const ee=r[F];l.containerState=ee[1],ee[0].exit.call(l,t)}r.length=D}function T(){s.write([null]),o=void 0,s=void 0,l.containerState._closeFlow=void 0}}function d9(t,l,r){return Oe(t,t.attempt(this.parser.constructs.document,l,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ua(t){if(t===null||Xe(t)||ur(t))return 1;if(Ms(t))return 2}function Ns(t,l,r){const i=[];let s=-1;for(;++s<t.length;){const o=t[s].resolveAll;o&&!i.includes(o)&&(l=o(l,r),i.push(o))}return l}const O1={name:"attention",resolveAll:h9,tokenize:m9};function h9(t,l){let r=-1,i,s,o,c,d,m,p,x;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(i=r;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&l.sliceSerialize(t[i][1]).charCodeAt(0)===l.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[i][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;m=t[i][1].end.offset-t[i][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const y={...t[i][1].end},v={...t[r][1].start};jm(y,-m),jm(v,m),c={type:m>1?"strongSequence":"emphasisSequence",start:y,end:{...t[i][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:v},o={type:m>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[r][1].start}},s={type:m>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},t[i][1].end={...c.start},t[r][1].start={...d.end},p=[],t[i][1].end.offset-t[i][1].start.offset&&(p=mn(p,[["enter",t[i][1],l],["exit",t[i][1],l]])),p=mn(p,[["enter",s,l],["enter",c,l],["exit",c,l],["enter",o,l]]),p=mn(p,Ns(l.parser.constructs.insideSpan.null,t.slice(i+1,r),l)),p=mn(p,[["exit",o,l],["enter",d,l],["exit",d,l],["exit",s,l]]),t[r][1].end.offset-t[r][1].start.offset?(x=2,p=mn(p,[["enter",t[r][1],l],["exit",t[r][1],l]])):x=0,tn(t,i-1,r-i+3,p),r=i+p.length-x-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function m9(t,l){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=ua(i);let o;return c;function c(m){return o=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===o)return t.consume(m),d;const p=t.exit("attentionSequence"),x=ua(m),y=!x||x===2&&s||r.includes(m),v=!s||s===2&&x||r.includes(i);return p._open=!!(o===42?y:y&&(s||!v)),p._close=!!(o===42?v:v&&(x||!y)),l(m)}}function jm(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const p9={name:"autolink",tokenize:g9};function g9(t,l,r){let i=0;return s;function s(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(S){return Rt(S)?(t.consume(S),c):S===64?r(S):p(S)}function c(S){return S===43||S===45||S===46||jt(S)?(i=1,d(S)):p(S)}function d(S){return S===58?(t.consume(S),i=0,m):(S===43||S===45||S===46||jt(S))&&i++<32?(t.consume(S),d):(i=0,p(S))}function m(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):S===null||S===32||S===60||fs(S)?r(S):(t.consume(S),m)}function p(S){return S===64?(t.consume(S),x):a9(S)?(t.consume(S),p):r(S)}function x(S){return jt(S)?y(S):r(S)}function y(S){return S===46?(t.consume(S),i=0,x):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):v(S)}function v(S){if((S===45||jt(S))&&i++<63){const C=S===45?v:y;return t.consume(S),C}return r(S)}}const Ai={partial:!0,tokenize:y9};function y9(t,l,r){return i;function i(o){return Te(o)?Oe(t,s,"linePrefix")(o):s(o)}function s(o){return o===null||ge(o)?l(o):r(o)}}const _3={continuation:{tokenize:b9},exit:v9,name:"blockQuote",tokenize:x9};function x9(t,l,r){const i=this;return s;function s(c){if(c===62){const d=i.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(c),t.exit("blockQuoteMarker"),o}return r(c)}function o(c){return Te(c)?(t.enter("blockQuotePrefixWhitespace"),t.consume(c),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(c))}}function b9(t,l,r){const i=this;return s;function s(c){return Te(c)?Oe(t,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return t.attempt(_3,l,r)(c)}}function v9(t){t.exit("blockQuote")}const R3={name:"characterEscape",tokenize:S9};function S9(t,l,r){return i;function i(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),s}function s(o){return u9(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):r(o)}}const D3={name:"characterReference",tokenize:w9};function w9(t,l,r){const i=this;let s=0,o,c;return d;function d(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),m}function m(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),o=31,c=jt,x(y))}function p(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,c=i9,x):(t.enter("characterReferenceValue"),o=7,c=D1,x(y))}function x(y){if(y===59&&s){const v=t.exit("characterReferenceValue");return c===jt&&!mf(i.sliceSerialize(v))?r(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return c(y)&&s++<o?(t.consume(y),x):r(y)}}const Am={partial:!0,tokenize:C9},zm={concrete:!0,name:"codeFenced",tokenize:k9};function k9(t,l,r){const i=this,s={partial:!0,tokenize:ee};let o=0,c=0,d;return m;function m(O){return p(O)}function p(O){const V=i.events[i.events.length-1];return o=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,d=O,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),x(O)}function x(O){return O===d?(c++,t.consume(O),x):c<3?r(O):(t.exit("codeFencedFenceSequence"),Te(O)?Oe(t,y,"whitespace")(O):y(O))}function y(O){return O===null||ge(O)?(t.exit("codeFencedFence"),i.interrupt?l(O):t.check(Am,z,F)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||ge(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(O)):Te(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Oe(t,S,"whitespace")(O)):O===96&&O===d?r(O):(t.consume(O),v)}function S(O){return O===null||ge(O)?y(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),C(O))}function C(O){return O===null||ge(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(O)):O===96&&O===d?r(O):(t.consume(O),C)}function z(O){return t.attempt(s,F,j)(O)}function j(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),E}function E(O){return o>0&&Te(O)?Oe(t,T,"linePrefix",o+1)(O):T(O)}function T(O){return O===null||ge(O)?t.check(Am,z,F)(O):(t.enter("codeFlowValue"),D(O))}function D(O){return O===null||ge(O)?(t.exit("codeFlowValue"),T(O)):(t.consume(O),D)}function F(O){return t.exit("codeFenced"),l(O)}function ee(O,V,se){let de=0;return L;function L(K){return O.enter("lineEnding"),O.consume(K),O.exit("lineEnding"),ae}function ae(K){return O.enter("codeFencedFence"),Te(K)?Oe(O,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):te(K)}function te(K){return K===d?(O.enter("codeFencedFenceSequence"),ve(K)):se(K)}function ve(K){return K===d?(de++,O.consume(K),ve):de>=c?(O.exit("codeFencedFenceSequence"),Te(K)?Oe(O,ue,"whitespace")(K):ue(K)):se(K)}function ue(K){return K===null||ge(K)?(O.exit("codeFencedFence"),V(K)):se(K)}}}function C9(t,l,r){const i=this;return s;function s(c){return c===null?r(c):(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o)}function o(c){return i.parser.lazy[i.now().line]?r(c):l(c)}}const f1={name:"codeIndented",tokenize:M9},E9={partial:!0,tokenize:N9};function M9(t,l,r){const i=this;return s;function s(p){return t.enter("codeIndented"),Oe(t,o,"linePrefix",5)(p)}function o(p){const x=i.events[i.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?m(p):ge(p)?t.attempt(E9,c,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||ge(p)?(t.exit("codeFlowValue"),c(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function N9(t,l,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):ge(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),s):Oe(t,o,"linePrefix",5)(c)}function o(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):ge(c)?s(c):r(c)}}const j9={name:"codeText",previous:z9,resolve:A9,tokenize:T9};function A9(t){let l=t.length-4,r=3,i,s;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(i=r;++i<l;)if(t[i][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[l][1].type="codeTextPadding",r+=2,l-=2;break}}for(i=r-1,l++;++i<=l;)s===void 0?i!==l&&t[i][1].type!=="lineEnding"&&(s=i):(i===l||t[i][1].type==="lineEnding")&&(t[s][1].type="codeTextData",i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),l-=i-s-2,i=s+2),s=void 0);return t}function z9(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function T9(t,l,r){let i=0,s,o;return c;function c(y){return t.enter("codeText"),t.enter("codeTextSequence"),d(y)}function d(y){return y===96?(t.consume(y),i++,d):(t.exit("codeTextSequence"),m(y))}function m(y){return y===null?r(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),m):y===96?(o=t.enter("codeTextSequence"),s=0,x(y)):ge(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||ge(y)?(t.exit("codeTextData"),m(y)):(t.consume(y),p)}function x(y){return y===96?(t.consume(y),s++,x):s===i?(t.exit("codeTextSequence"),t.exit("codeText"),l(y)):(o.type="codeTextData",p(y))}}class _9{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(l,i):l>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(l,r,i){const s=r||0;this.setCursor(Math.trunc(l));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&di(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),di(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),di(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const r=this.left.splice(l,Number.POSITIVE_INFINITY);di(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);di(this.left,r.reverse())}}}function di(t,l){let r=0;if(l.length<1e4)t.push(...l);else for(;r<l.length;)t.push(...l.slice(r,r+1e4)),r+=1e4}function O3(t){const l={};let r=-1,i,s,o,c,d,m,p;const x=new _9(t);for(;++r<x.length;){for(;r in l;)r=l[r];if(i=x.get(r),r&&i[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(m=i[1]._tokenizer.events,o=0,o<m.length&&m[o][1].type==="lineEndingBlank"&&(o+=2),o<m.length&&m[o][1].type==="content"))for(;++o<m.length&&m[o][1].type!=="content";)m[o][1].type==="chunkText"&&(m[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(l,R9(x,r)),r=l[r],p=!0);else if(i[1]._container){for(o=r,s=void 0;o--;)if(c=x.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...x.get(s)[1].start},d=x.slice(s,r),d.unshift(i),x.splice(s,r-s+1,d))}}return tn(t,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function R9(t,l){const r=t.get(l)[1],i=t.get(l)[2];let s=l-1;const o=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,m=[],p={};let x,y,v=-1,S=r,C=0,z=0;const j=[z];for(;S;){for(;t.get(++s)[1]!==S;);o.push(s),S._tokenizer||(x=i.sliceStream(S),S.next||x.push(null),y&&c.defineSkip(S.start),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(x),S._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(z=v+1,j.push(z),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(c.events=[],S?(S._tokenizer=void 0,S.previous=void 0):j.pop(),v=j.length;v--;){const E=d.slice(j[v],j[v+1]),T=o.pop();m.push([T,T+E.length-1]),t.splice(T,2,E)}for(m.reverse(),v=-1;++v<m.length;)p[C+m[v][0]]=C+m[v][1],C+=m[v][1]-m[v][0]-1;return p}const D9={resolve:L9,tokenize:U9},O9={partial:!0,tokenize:H9};function L9(t){return O3(t),t}function U9(t,l){let r;return i;function i(d){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?o(d):ge(d)?t.check(O9,c,o)(d):(t.consume(d),s)}function o(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function c(d){return t.consume(d),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function H9(t,l,r){const i=this;return s;function s(c){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),Oe(t,o,"linePrefix")}function o(c){if(c===null||ge(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(c):t.interrupt(i.parser.constructs.flow,r,l)(c)}}function L3(t,l,r,i,s,o,c,d,m){const p=m||Number.POSITIVE_INFINITY;let x=0;return y;function y(E){return E===60?(t.enter(i),t.enter(s),t.enter(o),t.consume(E),t.exit(o),v):E===null||E===32||E===41||fs(E)?r(E):(t.enter(i),t.enter(c),t.enter(d),t.enter("chunkString",{contentType:"string"}),z(E))}function v(E){return E===62?(t.enter(o),t.consume(E),t.exit(o),t.exit(s),t.exit(i),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),S(E))}function S(E){return E===62?(t.exit("chunkString"),t.exit(d),v(E)):E===null||E===60||ge(E)?r(E):(t.consume(E),E===92?C:S)}function C(E){return E===60||E===62||E===92?(t.consume(E),S):S(E)}function z(E){return!x&&(E===null||E===41||Xe(E))?(t.exit("chunkString"),t.exit(d),t.exit(c),t.exit(i),l(E)):x<p&&E===40?(t.consume(E),x++,z):E===41?(t.consume(E),x--,z):E===null||E===32||E===40||fs(E)?r(E):(t.consume(E),E===92?j:z)}function j(E){return E===40||E===41||E===92?(t.consume(E),z):z(E)}}function U3(t,l,r,i,s,o){const c=this;let d=0,m;return p;function p(S){return t.enter(i),t.enter(s),t.consume(S),t.exit(s),t.enter(o),x}function x(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(S):S===93?(t.exit(o),t.enter(s),t.consume(S),t.exit(s),t.exit(i),l):ge(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),x):(t.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||ge(S)||d++>999?(t.exit("chunkString"),x(S)):(t.consume(S),m||(m=!Te(S)),S===92?v:y)}function v(S){return S===91||S===92||S===93?(t.consume(S),d++,y):y(S)}}function H3(t,l,r,i,s,o){let c;return d;function d(v){return v===34||v===39||v===40?(t.enter(i),t.enter(s),t.consume(v),t.exit(s),c=v===40?41:v,m):r(v)}function m(v){return v===c?(t.enter(s),t.consume(v),t.exit(s),t.exit(i),l):(t.enter(o),p(v))}function p(v){return v===c?(t.exit(o),m(c)):v===null?r(v):ge(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Oe(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===c||v===null||ge(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?y:x)}function y(v){return v===c||v===92?(t.consume(v),x):x(v)}}function yi(t,l){let r;return i;function i(s){return ge(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r=!0,i):Te(s)?Oe(t,i,r?"linePrefix":"lineSuffix")(s):l(s)}}const B9={name:"definition",tokenize:q9},Z9={partial:!0,tokenize:$9};function q9(t,l,r){const i=this;let s;return o;function o(S){return t.enter("definition"),c(S)}function c(S){return U3.call(i,t,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return s=Cn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),m):r(S)}function m(S){return Xe(S)?yi(t,p)(S):p(S)}function p(S){return L3(t,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return t.attempt(Z9,y,y)(S)}function y(S){return Te(S)?Oe(t,v,"whitespace")(S):v(S)}function v(S){return S===null||ge(S)?(t.exit("definition"),i.parser.defined.push(s),l(S)):r(S)}}function $9(t,l,r){return i;function i(d){return Xe(d)?yi(t,s)(d):r(d)}function s(d){return H3(t,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return Te(d)?Oe(t,c,"whitespace")(d):c(d)}function c(d){return d===null||ge(d)?l(d):r(d)}}const V9={name:"hardBreakEscape",tokenize:J9};function J9(t,l,r){return i;function i(o){return t.enter("hardBreakEscape"),t.consume(o),s}function s(o){return ge(o)?(t.exit("hardBreakEscape"),l(o)):r(o)}}const I9={name:"headingAtx",resolve:F9,tokenize:Y9};function F9(t,l){let r=t.length-2,i=3,s,o;return t[i][1].type==="whitespace"&&(i+=2),r-2>i&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&t[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:t[i][1].start,end:t[r][1].end},o={type:"chunkText",start:t[i][1].start,end:t[r][1].end,contentType:"text"},tn(t,i,r-i+1,[["enter",s,l],["enter",o,l],["exit",o,l],["exit",s,l]])),t}function Y9(t,l,r){let i=0;return s;function s(x){return t.enter("atxHeading"),o(x)}function o(x){return t.enter("atxHeadingSequence"),c(x)}function c(x){return x===35&&i++<6?(t.consume(x),c):x===null||Xe(x)?(t.exit("atxHeadingSequence"),d(x)):r(x)}function d(x){return x===35?(t.enter("atxHeadingSequence"),m(x)):x===null||ge(x)?(t.exit("atxHeading"),l(x)):Te(x)?Oe(t,d,"whitespace")(x):(t.enter("atxHeadingText"),p(x))}function m(x){return x===35?(t.consume(x),m):(t.exit("atxHeadingSequence"),d(x))}function p(x){return x===null||x===35||Xe(x)?(t.exit("atxHeadingText"),d(x)):(t.consume(x),p)}}const G9=["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"],Tm=["pre","script","style","textarea"],X9={concrete:!0,name:"htmlFlow",resolveTo:P9,tokenize:W9},Q9={partial:!0,tokenize:tS},K9={partial:!0,tokenize:eS};function P9(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function W9(t,l,r){const i=this;let s,o,c,d,m;return p;function p(k){return x(k)}function x(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),y}function y(k){return k===33?(t.consume(k),v):k===47?(t.consume(k),o=!0,z):k===63?(t.consume(k),s=3,i.interrupt?l:N):Rt(k)?(t.consume(k),c=String.fromCharCode(k),j):r(k)}function v(k){return k===45?(t.consume(k),s=2,S):k===91?(t.consume(k),s=5,d=0,C):Rt(k)?(t.consume(k),s=4,i.interrupt?l:N):r(k)}function S(k){return k===45?(t.consume(k),i.interrupt?l:N):r(k)}function C(k){const X="CDATA[";return k===X.charCodeAt(d++)?(t.consume(k),d===X.length?i.interrupt?l:te:C):r(k)}function z(k){return Rt(k)?(t.consume(k),c=String.fromCharCode(k),j):r(k)}function j(k){if(k===null||k===47||k===62||Xe(k)){const X=k===47,re=c.toLowerCase();return!X&&!o&&Tm.includes(re)?(s=1,i.interrupt?l(k):te(k)):G9.includes(c.toLowerCase())?(s=6,X?(t.consume(k),E):i.interrupt?l(k):te(k)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(k):o?T(k):D(k))}return k===45||jt(k)?(t.consume(k),c+=String.fromCharCode(k),j):r(k)}function E(k){return k===62?(t.consume(k),i.interrupt?l:te):r(k)}function T(k){return Te(k)?(t.consume(k),T):L(k)}function D(k){return k===47?(t.consume(k),L):k===58||k===95||Rt(k)?(t.consume(k),F):Te(k)?(t.consume(k),D):L(k)}function F(k){return k===45||k===46||k===58||k===95||jt(k)?(t.consume(k),F):ee(k)}function ee(k){return k===61?(t.consume(k),O):Te(k)?(t.consume(k),ee):D(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),m=k,V):Te(k)?(t.consume(k),O):se(k)}function V(k){return k===m?(t.consume(k),m=null,de):k===null||ge(k)?r(k):(t.consume(k),V)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Xe(k)?ee(k):(t.consume(k),se)}function de(k){return k===47||k===62||Te(k)?D(k):r(k)}function L(k){return k===62?(t.consume(k),ae):r(k)}function ae(k){return k===null||ge(k)?te(k):Te(k)?(t.consume(k),ae):r(k)}function te(k){return k===45&&s===2?(t.consume(k),H):k===60&&s===1?(t.consume(k),P):k===62&&s===4?(t.consume(k),_):k===63&&s===3?(t.consume(k),N):k===93&&s===5?(t.consume(k),Se):ge(k)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Q9,J,ve)(k)):k===null||ge(k)?(t.exit("htmlFlowData"),ve(k)):(t.consume(k),te)}function ve(k){return t.check(K9,ue,J)(k)}function ue(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),K}function K(k){return k===null||ge(k)?ve(k):(t.enter("htmlFlowData"),te(k))}function H(k){return k===45?(t.consume(k),N):te(k)}function P(k){return k===47?(t.consume(k),c="",oe):te(k)}function oe(k){if(k===62){const X=c.toLowerCase();return Tm.includes(X)?(t.consume(k),_):te(k)}return Rt(k)&&c.length<8?(t.consume(k),c+=String.fromCharCode(k),oe):te(k)}function Se(k){return k===93?(t.consume(k),N):te(k)}function N(k){return k===62?(t.consume(k),_):k===45&&s===2?(t.consume(k),N):te(k)}function _(k){return k===null||ge(k)?(t.exit("htmlFlowData"),J(k)):(t.consume(k),_)}function J(k){return t.exit("htmlFlow"),l(k)}}function eS(t,l,r){const i=this;return s;function s(c){return ge(c)?(t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),o):r(c)}function o(c){return i.parser.lazy[i.now().line]?r(c):l(c)}}function tS(t,l,r){return i;function i(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(Ai,l,r)}}const nS={name:"htmlText",tokenize:lS};function lS(t,l,r){const i=this;let s,o,c;return d;function d(N){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(N),m}function m(N){return N===33?(t.consume(N),p):N===47?(t.consume(N),ee):N===63?(t.consume(N),D):Rt(N)?(t.consume(N),se):r(N)}function p(N){return N===45?(t.consume(N),x):N===91?(t.consume(N),o=0,C):Rt(N)?(t.consume(N),T):r(N)}function x(N){return N===45?(t.consume(N),S):r(N)}function y(N){return N===null?r(N):N===45?(t.consume(N),v):ge(N)?(c=y,P(N)):(t.consume(N),y)}function v(N){return N===45?(t.consume(N),S):y(N)}function S(N){return N===62?H(N):N===45?v(N):y(N)}function C(N){const _="CDATA[";return N===_.charCodeAt(o++)?(t.consume(N),o===_.length?z:C):r(N)}function z(N){return N===null?r(N):N===93?(t.consume(N),j):ge(N)?(c=z,P(N)):(t.consume(N),z)}function j(N){return N===93?(t.consume(N),E):z(N)}function E(N){return N===62?H(N):N===93?(t.consume(N),E):z(N)}function T(N){return N===null||N===62?H(N):ge(N)?(c=T,P(N)):(t.consume(N),T)}function D(N){return N===null?r(N):N===63?(t.consume(N),F):ge(N)?(c=D,P(N)):(t.consume(N),D)}function F(N){return N===62?H(N):D(N)}function ee(N){return Rt(N)?(t.consume(N),O):r(N)}function O(N){return N===45||jt(N)?(t.consume(N),O):V(N)}function V(N){return ge(N)?(c=V,P(N)):Te(N)?(t.consume(N),V):H(N)}function se(N){return N===45||jt(N)?(t.consume(N),se):N===47||N===62||Xe(N)?de(N):r(N)}function de(N){return N===47?(t.consume(N),H):N===58||N===95||Rt(N)?(t.consume(N),L):ge(N)?(c=de,P(N)):Te(N)?(t.consume(N),de):H(N)}function L(N){return N===45||N===46||N===58||N===95||jt(N)?(t.consume(N),L):ae(N)}function ae(N){return N===61?(t.consume(N),te):ge(N)?(c=ae,P(N)):Te(N)?(t.consume(N),ae):de(N)}function te(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(t.consume(N),s=N,ve):ge(N)?(c=te,P(N)):Te(N)?(t.consume(N),te):(t.consume(N),ue)}function ve(N){return N===s?(t.consume(N),s=void 0,K):N===null?r(N):ge(N)?(c=ve,P(N)):(t.consume(N),ve)}function ue(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||Xe(N)?de(N):(t.consume(N),ue)}function K(N){return N===47||N===62||Xe(N)?de(N):r(N)}function H(N){return N===62?(t.consume(N),t.exit("htmlTextData"),t.exit("htmlText"),l):r(N)}function P(N){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(N),t.exit("lineEnding"),oe}function oe(N){return Te(N)?Oe(t,Se,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Se(N)}function Se(N){return t.enter("htmlTextData"),c(N)}}const pf={name:"labelEnd",resolveAll:uS,resolveTo:sS,tokenize:oS},rS={tokenize:cS},aS={tokenize:fS},iS={tokenize:dS};function uS(t){let l=-1;const r=[];for(;++l<t.length;){const i=t[l][1];if(r.push(t[l]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",l+=s}}return t.length!==r.length&&tn(t,0,t.length,r),t}function sS(t,l){let r=t.length,i=0,s,o,c,d;for(;r--;)if(s=t[r][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;t[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(t[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const m={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[o][1].start},end:{...t[c][1].end}},x={type:"labelText",start:{...t[o+i+2][1].end},end:{...t[c-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=mn(d,t.slice(o+1,o+i+3)),d=mn(d,[["enter",x,l]]),d=mn(d,Ns(l.parser.constructs.insideSpan.null,t.slice(o+i+4,c-3),l)),d=mn(d,[["exit",x,l],t[c-2],t[c-1],["exit",p,l]]),d=mn(d,t.slice(c+1)),d=mn(d,[["exit",m,l]]),tn(t,o,t.length,d),t}function oS(t,l,r){const i=this;let s=i.events.length,o,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){o=i.events[s][1];break}return d;function d(v){return o?o._inactive?y(v):(c=i.parser.defined.includes(Cn(i.sliceSerialize({start:o.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):r(v)}function m(v){return v===40?t.attempt(rS,x,c?x:y)(v):v===91?t.attempt(aS,x,c?p:y)(v):c?x(v):y(v)}function p(v){return t.attempt(iS,x,y)(v)}function x(v){return l(v)}function y(v){return o._balanced=!0,r(v)}}function cS(t,l,r){return i;function i(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),s}function s(y){return Xe(y)?yi(t,o)(y):o(y)}function o(y){return y===41?x(y):L3(t,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Xe(y)?yi(t,m)(y):x(y)}function d(y){return r(y)}function m(y){return y===34||y===39||y===40?H3(t,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):x(y)}function p(y){return Xe(y)?yi(t,x)(y):x(y)}function x(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),l):r(y)}}function fS(t,l,r){const i=this;return s;function s(d){return U3.call(i,t,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return i.parser.defined.includes(Cn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?l(d):r(d)}function c(d){return r(d)}}function dS(t,l,r){return i;function i(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),s}function s(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),l):r(o)}}const hS={name:"labelStartImage",resolveAll:pf.resolveAll,tokenize:mS};function mS(t,l,r){const i=this;return s;function s(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),o}function o(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):l(d)}}const pS={name:"labelStartLink",resolveAll:pf.resolveAll,tokenize:gS};function gS(t,l,r){const i=this;return s;function s(c){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(c),t.exit("labelMarker"),t.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):l(c)}}const d1={name:"lineEnding",tokenize:yS};function yS(t,l){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Oe(t,l,"linePrefix")}}const rs={name:"thematicBreak",tokenize:xS};function xS(t,l,r){let i=0,s;return o;function o(p){return t.enter("thematicBreak"),c(p)}function c(p){return s=p,d(p)}function d(p){return p===s?(t.enter("thematicBreakSequence"),m(p)):i>=3&&(p===null||ge(p))?(t.exit("thematicBreak"),l(p)):r(p)}function m(p){return p===s?(t.consume(p),i++,m):(t.exit("thematicBreakSequence"),Te(p)?Oe(t,d,"whitespace")(p):d(p))}}const $t={continuation:{tokenize:wS},exit:CS,name:"list",tokenize:SS},bS={partial:!0,tokenize:ES},vS={partial:!0,tokenize:kS};function SS(t,l,r){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return d;function d(S){const C=i.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||S===i.containerState.marker:D1(S)){if(i.containerState.type||(i.containerState.type=C,t.enter(C,{_container:!0})),C==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(rs,r,p)(S):p(S);if(!i.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(S)}return r(S)}function m(S){return D1(S)&&++c<10?(t.consume(S),m):(!i.interrupt||c<2)&&(i.containerState.marker?S===i.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),p(S)):r(S)}function p(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||S,t.check(Ai,i.interrupt?r:x,t.attempt(bS,v,y))}function x(S){return i.containerState.initialBlankLine=!0,o++,v(S)}function y(S){return Te(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):r(S)}function v(S){return i.containerState.size=o+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(S)}}function wS(t,l,r){const i=this;return i.containerState._closeFlow=void 0,t.check(Ai,s,o);function s(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Oe(t,l,"listItemIndent",i.containerState.size+1)(d)}function o(d){return i.containerState.furtherBlankLines||!Te(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(vS,l,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Oe(t,t.attempt($t,l,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function kS(t,l,r){const i=this;return Oe(t,s,"listItemIndent",i.containerState.size+1);function s(o){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?l(o):r(o)}}function CS(t){t.exit(this.containerState.type)}function ES(t,l,r){const i=this;return Oe(t,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const c=i.events[i.events.length-1];return!Te(o)&&c&&c[1].type==="listItemPrefixWhitespace"?l(o):r(o)}}const _m={name:"setextUnderline",resolveTo:MS,tokenize:NS};function MS(t,l){let r=t.length,i,s,o;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){i=r;break}t[r][1].type==="paragraph"&&(s=r)}else t[r][1].type==="content"&&t.splice(r,1),!o&&t[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",c,l]),t.splice(o+1,0,["exit",t[i][1],l]),t[i][1].end={...t[o][1].end}):t[i][1]=c,t.push(["exit",c,l]),t}function NS(t,l,r){const i=this;let s;return o;function o(p){let x=i.events.length,y;for(;x--;)if(i.events[x][1].type!=="lineEnding"&&i.events[x][1].type!=="linePrefix"&&i.events[x][1].type!=="content"){y=i.events[x][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(t.enter("setextHeadingLine"),s=p,c(p)):r(p)}function c(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===s?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),Te(p)?Oe(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||ge(p)?(t.exit("setextHeadingLine"),l(p)):r(p)}}const jS={tokenize:AS};function AS(t){const l=this,r=t.attempt(Ai,i,t.attempt(this.parser.constructs.flowInitial,s,Oe(t,t.attempt(this.parser.constructs.flow,s,t.attempt(D9,s)),"linePrefix")));return r;function i(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),l.currentConstruct=void 0,r}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),l.currentConstruct=void 0,r}}const zS={resolveAll:Z3()},TS=B3("string"),_S=B3("text");function B3(t){return{resolveAll:Z3(t==="text"?RS:void 0),tokenize:l};function l(r){const i=this,s=this.parser.constructs[t],o=r.attempt(s,c,d);return c;function c(x){return p(x)?o(x):d(x)}function d(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),m}function m(x){return p(x)?(r.exit("data"),o(x)):(r.consume(x),m)}function p(x){if(x===null)return!0;const y=s[x];let v=-1;if(y)for(;++v<y.length;){const S=y[v];if(!S.previous||S.previous.call(i,i.previous))return!0}return!1}}}function Z3(t){return l;function l(r,i){let s=-1,o;for(;++s<=r.length;)o===void 0?r[s]&&r[s][1].type==="data"&&(o=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==o+2&&(r[o][1].end=r[s-1][1].end,r.splice(o+2,s-o-2),s=o+2),o=void 0);return t?t(r,i):r}}function RS(t,l){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const i=t[r-1][1],s=l.sliceStream(i);let o=s.length,c=-1,d=0,m;for(;o--;){const p=s[o];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)m=!0,d++;else if(p!==-1){o++;break}}if(l._contentTypeTextTrailing&&r===t.length&&(d=0),d){const p={type:r===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:i.start._bufferIndex+c,_index:i.start._index+o,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(t.splice(r,0,["enter",p,l],["exit",p,l]),r+=2)}r++}return t}const DS={42:$t,43:$t,45:$t,48:$t,49:$t,50:$t,51:$t,52:$t,53:$t,54:$t,55:$t,56:$t,57:$t,62:_3},OS={91:B9},LS={[-2]:f1,[-1]:f1,32:f1},US={35:I9,42:rs,45:[_m,rs],60:X9,61:_m,95:rs,96:zm,126:zm},HS={38:D3,92:R3},BS={[-5]:d1,[-4]:d1,[-3]:d1,33:hS,38:D3,42:O1,60:[p9,nS],91:pS,92:[V9,R3],93:pf,95:O1,96:j9},ZS={null:[O1,zS]},qS={null:[42,95]},$S={null:[]},VS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qS,contentInitial:OS,disable:$S,document:DS,flow:US,flowInitial:LS,insideSpan:ZS,string:HS,text:BS},Symbol.toStringTag,{value:"Module"}));function JS(t,l,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},o=[];let c=[],d=[];const m={attempt:V(ee),check:V(O),consume:T,enter:D,exit:F,interrupt:V(O,{interrupt:!0})},p={code:null,containerState:{},defineSkip:z,events:[],now:C,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:y};let x=l.tokenize.call(p,m);return l.resolveAll&&o.push(l),p;function y(ae){return c=mn(c,ae),j(),c[c.length-1]!==null?[]:(se(l,0),p.events=Ns(o,p.events,p),p.events)}function v(ae,te){return FS(S(ae),te)}function S(ae){return IS(c,ae)}function C(){const{_bufferIndex:ae,_index:te,line:ve,column:ue,offset:K}=i;return{_bufferIndex:ae,_index:te,line:ve,column:ue,offset:K}}function z(ae){s[ae.line]=ae.column,L()}function j(){let ae;for(;i._index<c.length;){const te=c[i._index];if(typeof te=="string")for(ae=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ae&&i._bufferIndex<te.length;)E(te.charCodeAt(i._bufferIndex));else E(te)}}function E(ae){x=x(ae)}function T(ae){ge(ae)?(i.line++,i.column=1,i.offset+=ae===-3?2:1,L()):ae!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=ae}function D(ae,te){const ve=te||{};return ve.type=ae,ve.start=C(),p.events.push(["enter",ve,p]),d.push(ve),ve}function F(ae){const te=d.pop();return te.end=C(),p.events.push(["exit",te,p]),te}function ee(ae,te){se(ae,te.from)}function O(ae,te){te.restore()}function V(ae,te){return ve;function ve(ue,K,H){let P,oe,Se,N;return Array.isArray(ue)?J(ue):"tokenize"in ue?J([ue]):_(ue);function _(W){return ne;function ne(ce){const me=ce!==null&&W[ce],Le=ce!==null&&W.null,st=[...Array.isArray(me)?me:me?[me]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return J(st)(ce)}}function J(W){return P=W,oe=0,W.length===0?H:k(W[oe])}function k(W){return ne;function ne(ce){return N=de(),Se=W,W.partial||(p.currentConstruct=W),W.name&&p.parser.constructs.disable.null.includes(W.name)?re():W.tokenize.call(te?Object.assign(Object.create(p),te):p,m,X,re)(ce)}}function X(W){return ae(Se,N),K}function re(W){return N.restore(),++oe<P.length?k(P[oe]):H}}}function se(ae,te){ae.resolveAll&&!o.includes(ae)&&o.push(ae),ae.resolve&&tn(p.events,te,p.events.length-te,ae.resolve(p.events.slice(te),p)),ae.resolveTo&&(p.events=ae.resolveTo(p.events,p))}function de(){const ae=C(),te=p.previous,ve=p.currentConstruct,ue=p.events.length,K=Array.from(d);return{from:ue,restore:H};function H(){i=ae,p.previous=te,p.currentConstruct=ve,p.events.length=ue,d=K,L()}}function L(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function IS(t,l){const r=l.start._index,i=l.start._bufferIndex,s=l.end._index,o=l.end._bufferIndex;let c;if(r===s)c=[t[r].slice(i,o)];else{if(c=t.slice(r,s),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}o>0&&c.push(t[s].slice(0,o))}return c}function FS(t,l){let r=-1;const i=[];let s;for(;++r<t.length;){const o=t[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
|
|
343
|
+
`;break}case-3:{c=`\r
|
|
344
|
+
`;break}case-2:{c=l?" ":" ";break}case-1:{if(!l&&s)continue;c=" ";break}default:c=String.fromCharCode(o)}s=o===-2,i.push(c)}return i.join("")}function YS(t){const i={constructs:z3([VS,...(t||{}).extensions||[]]),content:s(s9),defined:[],document:s(c9),flow:s(jS),lazy:{},string:s(TS),text:s(_S)};return i;function s(o){return c;function c(d){return JS(i,o,d)}}}function GS(t){for(;!O3(t););return t}const Rm=/[\0\t\n\r]/g;function XS(){let t=1,l="",r=!0,i;return s;function s(o,c,d){const m=[];let p,x,y,v,S;for(o=l+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,l="",r&&(o.charCodeAt(0)===65279&&y++,r=void 0);y<o.length;){if(Rm.lastIndex=y,p=Rm.exec(o),v=p&&p.index!==void 0?p.index:o.length,S=o.charCodeAt(v),!p){l=o.slice(y);break}if(S===10&&y===v&&i)m.push(-3),i=void 0;else switch(i&&(m.push(-5),i=void 0),y<v&&(m.push(o.slice(y,v)),t+=v-y),S){case 0:{m.push(65533),t++;break}case 9:{for(x=Math.ceil(t/4)*4,m.push(-2);t++<x;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:i=!0,t=1}y=v+1}return d&&(i&&m.push(-5),l&&m.push(l),m.push(null)),m}}const QS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KS(t){return t.replace(QS,PS)}function PS(t,l,r){if(l)return l;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),o=s===120||s===88;return T3(r.slice(o?2:1),o?16:10)}return mf(r)||t}const q3={}.hasOwnProperty;function WS(t,l,r){return typeof l!="string"&&(r=l,l=void 0),ew(r)(GS(YS(r).document().write(XS()(t,l,!0))))}function ew(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Rn),autolinkProtocol:de,autolinkEmail:de,atxHeading:o(nn),blockQuote:o(Le),characterEscape:de,characterReference:de,codeFenced:o(st),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(st,c),codeText:o(Mt,c),codeTextData:de,data:de,codeFlowValue:de,definition:o(Fe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(at),hardBreakEscape:o(gn),hardBreakTrailing:o(gn),htmlFlow:o(al,c),htmlFlowData:de,htmlText:o(al,c),htmlTextData:de,image:o(pt),label:c,link:o(Rn),listItem:o(yn),listItemValue:v,listOrdered:o(il,y),listUnordered:o(il),paragraph:o(cr),reference:k,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(nn),strong:o(pa),thematicBreak:o(Ts)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:me,autolinkProtocol:ce,blockQuote:m(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:W,characterReference:ne,codeFenced:m(j),codeFencedFence:z,codeFencedFenceInfo:S,codeFencedFenceMeta:C,codeFlowValue:L,codeIndented:m(E),codeText:m(K),codeTextData:L,data:L,definition:m(),definitionDestinationString:F,definitionLabelString:T,definitionTitleString:D,emphasis:m(),hardBreakEscape:m(te),hardBreakTrailing:m(te),htmlFlow:m(ve),htmlFlowData:L,htmlText:m(ue),htmlTextData:L,image:m(P),label:Se,labelText:oe,lineEnding:ae,link:m(H),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:X,resourceDestinationString:N,resourceTitleString:_,resource:J,setextHeading:m(se),setextHeadingLineSequence:V,setextHeadingText:O,strong:m(),thematicBreak:m()}};$3(l,(t||{}).mdastExtensions||[]);const r={};return i;function i(Y){let ie={type:"root",children:[]};const xe={stack:[ie],tokenStack:[],config:l,enter:d,exit:p,buffer:c,resume:x,data:r},Ne=[];let Ze=-1;for(;++Ze<Y.length;)if(Y[Ze][1].type==="listOrdered"||Y[Ze][1].type==="listUnordered")if(Y[Ze][0]==="enter")Ne.push(Ze);else{const It=Ne.pop();Ze=s(Y,It,Ze)}for(Ze=-1;++Ze<Y.length;){const It=l[Y[Ze][0]];q3.call(It,Y[Ze][1].type)&&It[Y[Ze][1].type].call(Object.assign({sliceSerialize:Y[Ze][2].sliceSerialize},xe),Y[Ze][1])}if(xe.tokenStack.length>0){const It=xe.tokenStack[xe.tokenStack.length-1];(It[1]||Dm).call(xe,void 0,It[0])}for(ie.position={start:Rl(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:Rl(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<l.transforms.length;)ie=l.transforms[Ze](ie)||ie;return ie}function s(Y,ie,xe){let Ne=ie-1,Ze=-1,It=!1,Dn,Tt,gt,Dt;for(;++Ne<=xe;){const Ye=Y[Ne];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Ze++:Ze--,Dt=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Dn&&!Dt&&!Ze&&!gt&&(gt=Ne),Dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dt=void 0}if(!Ze&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Ze===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Dn){let ul=Ne;for(Tt=void 0;ul--;){const xn=Y[ul];if(xn[1].type==="lineEnding"||xn[1].type==="lineEndingBlank"){if(xn[0]==="exit")continue;Tt&&(Y[Tt][1].type="lineEndingBlank",It=!0),xn[1].type="lineEnding",Tt=ul}else if(!(xn[1].type==="linePrefix"||xn[1].type==="blockQuotePrefix"||xn[1].type==="blockQuotePrefixWhitespace"||xn[1].type==="blockQuoteMarker"||xn[1].type==="listItemIndent"))break}gt&&(!Tt||gt<Tt)&&(Dn._spread=!0),Dn.end=Object.assign({},Tt?Y[Tt][1].start:Ye[1].end),Y.splice(Tt||Ne,0,["exit",Dn,Ye[2]]),Ne++,xe++}if(Ye[1].type==="listItemPrefix"){const ul={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Dn=ul,Y.splice(Ne,0,["enter",ul,Ye[2]]),Ne++,xe++,gt=void 0,Dt=!0}}}return Y[ie][1]._spread=It,xe}function o(Y,ie){return xe;function xe(Ne){d.call(this,Y(Ne),Ne),ie&&ie.call(this,Ne)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(Y,ie,xe){this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([ie,xe||void 0]),Y.position={start:Rl(ie.start),end:void 0}}function m(Y){return ie;function ie(xe){Y&&Y.call(this,xe),p.call(this,xe)}}function p(Y,ie){const xe=this.stack.pop(),Ne=this.tokenStack.pop();if(Ne)Ne[0].type!==Y.type&&(ie?ie.call(this,Y,Ne[0]):(Ne[1]||Dm).call(this,Y,Ne[0]));else throw new Error("Cannot close `"+Y.type+"` ("+gi({start:Y.start,end:Y.end})+"): it’s not open");xe.position.end=Rl(Y.end)}function x(){return hf(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(Y){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(Y),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=Y}function C(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=Y}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y.replace(/(\r?\n|\r)$/g,"")}function T(Y){const ie=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ie,xe.identifier=Cn(this.sliceSerialize(Y)).toLowerCase()}function D(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Y}function F(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Y}function ee(Y){const ie=this.stack[this.stack.length-1];if(!ie.depth){const xe=this.sliceSerialize(Y).length;ie.depth=xe}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function V(Y){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(Y).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function de(Y){const xe=this.stack[this.stack.length-1].children;let Ne=xe[xe.length-1];(!Ne||Ne.type!=="text")&&(Ne=zt(),Ne.position={start:Rl(Y.start),end:void 0},xe.push(Ne)),this.stack.push(Ne)}function L(Y){const ie=this.stack.pop();ie.value+=this.sliceSerialize(Y),ie.position.end=Rl(Y.end)}function ae(Y){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=ie.children[ie.children.length-1];xe.position.end=Rl(Y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(ie.type)&&(de.call(this,Y),L.call(this,Y))}function te(){this.data.atHardBreak=!0}function ve(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function ue(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function K(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.value=Y}function H(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ie,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function P(){const Y=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";Y.type+="Reference",Y.referenceType=ie,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;this.data.referenceType=void 0}function oe(Y){const ie=this.sliceSerialize(Y),xe=this.stack[this.stack.length-2];xe.label=KS(ie),xe.identifier=Cn(ie).toLowerCase()}function Se(){const Y=this.stack[this.stack.length-1],ie=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Ne=Y.children;xe.children=Ne}else xe.alt=ie}function N(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.url=Y}function _(){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.title=Y}function J(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function X(Y){const ie=this.resume(),xe=this.stack[this.stack.length-1];xe.label=ie,xe.identifier=Cn(this.sliceSerialize(Y)).toLowerCase(),this.data.referenceType="full"}function re(Y){this.data.characterReferenceType=Y.type}function W(Y){const ie=this.sliceSerialize(Y),xe=this.data.characterReferenceType;let Ne;xe?(Ne=T3(ie,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ne=mf(ie);const Ze=this.stack[this.stack.length-1];Ze.value+=Ne}function ne(Y){const ie=this.stack.pop();ie.position.end=Rl(Y.end)}function ce(Y){L.call(this,Y);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(Y)}function me(Y){L.call(this,Y);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(Y)}function Le(){return{type:"blockquote",children:[]}}function st(){return{type:"code",lang:null,meta:null,value:""}}function Mt(){return{type:"inlineCode",value:""}}function Fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function at(){return{type:"emphasis",children:[]}}function nn(){return{type:"heading",depth:0,children:[]}}function gn(){return{type:"break"}}function al(){return{type:"html",value:""}}function pt(){return{type:"image",title:null,url:"",alt:null}}function Rn(){return{type:"link",title:null,url:"",children:[]}}function il(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function yn(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function cr(){return{type:"paragraph",children:[]}}function pa(){return{type:"strong",children:[]}}function zt(){return{type:"text",value:""}}function Ts(){return{type:"thematicBreak"}}}function Rl(t){return{line:t.line,column:t.column,offset:t.offset}}function $3(t,l){let r=-1;for(;++r<l.length;){const i=l[r];Array.isArray(i)?$3(t,i):tw(t,i)}}function tw(t,l){let r;for(r in l)if(q3.call(l,r))switch(r){case"canContainEols":{const i=l[r];i&&t[r].push(...i);break}case"transforms":{const i=l[r];i&&t[r].push(...i);break}case"enter":case"exit":{const i=l[r];i&&Object.assign(t[r],i);break}}}function Dm(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+gi({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+gi({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+gi({start:l.start,end:l.end})+") is still open")}function nw(t){const l=this;l.parser=r;function r(i){return WS(i,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function lw(t,l){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,r),t.applyData(l,r)}function rw(t,l){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,r),[t.applyData(l,r),{type:"text",value:`
|
|
345
|
+
`}]}function aw(t,l){const r=l.value?l.value+`
|
|
346
|
+
`:"",i={},s=l.lang?l.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return l.meta&&(o.data={meta:l.meta}),t.patch(l,o),o=t.applyData(l,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(l,o),o}function iw(t,l){const r={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function uw(t,l){const r={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function sw(t,l){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(l.identifier).toUpperCase(),s=ma(i.toLowerCase()),o=t.footnoteOrder.indexOf(i);let c,d=t.footnoteCounts.get(i);d===void 0?(d=0,t.footnoteOrder.push(i),c=t.footnoteOrder.length):c=o+1,d+=1,t.footnoteCounts.set(i,d);const m={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function ow(t,l){const r={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function cw(t,l){if(t.options.allowDangerousHtml){const r={type:"raw",value:l.value};return t.patch(l,r),t.applyData(l,r)}}function V3(t,l){const r=l.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+i}];const s=t.all(l),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function fw(t,l){const r=String(l.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return V3(t,l);const s={src:ma(i.url||""),alt:l.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return t.patch(l,o),t.applyData(l,o)}function dw(t,l){const r={src:ma(l.url)};l.alt!==null&&l.alt!==void 0&&(r.alt=l.alt),l.title!==null&&l.title!==void 0&&(r.title=l.title);const i={type:"element",tagName:"img",properties:r,children:[]};return t.patch(l,i),t.applyData(l,i)}function hw(t,l){const r={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(l,i),t.applyData(l,i)}function mw(t,l){const r=String(l.identifier).toUpperCase(),i=t.definitionById.get(r);if(!i)return V3(t,l);const s={href:ma(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:t.all(l)};return t.patch(l,o),t.applyData(l,o)}function pw(t,l){const r={href:ma(l.url)};l.title!==null&&l.title!==void 0&&(r.title=l.title);const i={type:"element",tagName:"a",properties:r,children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function gw(t,l,r){const i=t.all(l),s=r?yw(r):J3(l),o={},c=[];if(typeof l.checked=="boolean"){const x=i[0];let y;x&&x.type==="element"&&x.tagName==="p"?y=x:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const x=i[d];(s||d!==0||x.type!=="element"||x.tagName!=="p")&&c.push({type:"text",value:`
|
|
347
|
+
`}),x.type==="element"&&x.tagName==="p"&&!s?c.push(...x.children):c.push(x)}const m=i[i.length-1];m&&(s||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
348
|
+
`});const p={type:"element",tagName:"li",properties:o,children:c};return t.patch(l,p),t.applyData(l,p)}function yw(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const r=t.children;let i=-1;for(;!l&&++i<r.length;)l=J3(r[i])}return l}function J3(t){const l=t.spread;return l??t.children.length>1}function xw(t,l){const r={},i=t.all(l);let s=-1;for(typeof l.start=="number"&&l.start!==1&&(r.start=l.start);++s<i.length;){const c=i[s];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 o={type:"element",tagName:l.ordered?"ol":"ul",properties:r,children:t.wrap(i,!0)};return t.patch(l,o),t.applyData(l,o)}function bw(t,l){const r={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function vw(t,l){const r={type:"root",children:t.wrap(t.all(l))};return t.patch(l,r),t.applyData(l,r)}function Sw(t,l){const r={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}function ww(t,l){const r=t.all(l),i=r.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(l.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},d=of(l.children[1]),m=k3(l.children[l.children.length-1]);d&&m&&(c.position={start:d,end:m}),s.push(c)}const o={type:"element",tagName:"table",properties:{},children:t.wrap(s,!0)};return t.patch(l,o),t.applyData(l,o)}function kw(t,l,r){const i=r?r.children:void 0,o=(i?i.indexOf(l):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const y=l.children[m],v={},S=c?c[m]:void 0;S&&(v.align=S);let C={type:"element",tagName:o,properties:v,children:[]};y&&(C.children=t.all(y),t.patch(y,C),C=t.applyData(y,C)),p.push(C)}const x={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,x),t.applyData(l,x)}function Cw(t,l){const r={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,r),t.applyData(l,r)}const Om=9,Lm=32;function Ew(t){const l=String(t),r=/\r?\n|\r/g;let i=r.exec(l),s=0;const o=[];for(;i;)o.push(Um(l.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(l);return o.push(Um(l.slice(s),s>0,!1)),o.join("")}function Um(t,l,r){let i=0,s=t.length;if(l){let o=t.codePointAt(i);for(;o===Om||o===Lm;)i++,o=t.codePointAt(i)}if(r){let o=t.codePointAt(s-1);for(;o===Om||o===Lm;)s--,o=t.codePointAt(s-1)}return s>i?t.slice(i,s):""}function Mw(t,l){const r={type:"text",value:Ew(String(l.value))};return t.patch(l,r),t.applyData(l,r)}function Nw(t,l){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,r),t.applyData(l,r)}const jw={blockquote:lw,break:rw,code:aw,delete:iw,emphasis:uw,footnoteReference:sw,heading:ow,html:cw,imageReference:fw,image:dw,inlineCode:hw,linkReference:mw,link:pw,listItem:gw,list:xw,paragraph:bw,root:vw,strong:Sw,table:ww,tableCell:Cw,tableRow:kw,text:Mw,thematicBreak:Nw,toml:Qu,yaml:Qu,definition:Qu,footnoteDefinition:Qu};function Qu(){}const I3=-1,js=0,xi=1,ds=2,gf=3,yf=4,xf=5,bf=6,F3=7,Y3=8,Hm=typeof self=="object"?self:globalThis,Aw=(t,l)=>{const r=(s,o)=>(t.set(o,s),s),i=s=>{if(t.has(s))return t.get(s);const[o,c]=l[s];switch(o){case js:case I3:return r(c,s);case xi:{const d=r([],s);for(const m of c)d.push(i(m));return d}case ds:{const d=r({},s);for(const[m,p]of c)d[i(m)]=i(p);return d}case gf:return r(new Date(c),s);case yf:{const{source:d,flags:m}=c;return r(new RegExp(d,m),s)}case xf:{const d=r(new Map,s);for(const[m,p]of c)d.set(i(m),i(p));return d}case bf:{const d=r(new Set,s);for(const m of c)d.add(i(m));return d}case F3:{const{name:d,message:m}=c;return r(new Hm[d](m),s)}case Y3:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new Hm[o](c),s)};return i},Bm=t=>Aw(new Map,t)(0),Wr="",{toString:zw}={},{keys:Tw}=Object,hi=t=>{const l=typeof t;if(l!=="object"||!t)return[js,l];const r=zw.call(t).slice(8,-1);switch(r){case"Array":return[xi,Wr];case"Object":return[ds,Wr];case"Date":return[gf,Wr];case"RegExp":return[yf,Wr];case"Map":return[xf,Wr];case"Set":return[bf,Wr];case"DataView":return[xi,r]}return r.includes("Array")?[xi,r]:r.includes("Error")?[F3,r]:[ds,r]},Ku=([t,l])=>t===js&&(l==="function"||l==="symbol"),_w=(t,l,r,i)=>{const s=(c,d)=>{const m=i.push(c)-1;return r.set(d,m),m},o=c=>{if(r.has(c))return r.get(c);let[d,m]=hi(c);switch(d){case js:{let x=c;switch(m){case"bigint":d=Y3,x=c.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);x=null;break;case"undefined":return s([I3],c)}return s([d,x],c)}case xi:{if(m){let v=c;return m==="DataView"?v=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(c)),s([m,[...v]],c)}const x=[],y=s([d,x],c);for(const v of c)x.push(o(v));return y}case ds:{if(m)switch(m){case"BigInt":return s([m,c.toString()],c);case"Boolean":case"Number":case"String":return s([m,c.valueOf()],c)}if(l&&"toJSON"in c)return o(c.toJSON());const x=[],y=s([d,x],c);for(const v of Tw(c))(t||!Ku(hi(c[v])))&&x.push([o(v),o(c[v])]);return y}case gf:return s([d,c.toISOString()],c);case yf:{const{source:x,flags:y}=c;return s([d,{source:x,flags:y}],c)}case xf:{const x=[],y=s([d,x],c);for(const[v,S]of c)(t||!(Ku(hi(v))||Ku(hi(S))))&&x.push([o(v),o(S)]);return y}case bf:{const x=[],y=s([d,x],c);for(const v of c)(t||!Ku(hi(v)))&&x.push(o(v));return y}}const{message:p}=c;return s([d,{name:m,message:p}],c)};return o},Zm=(t,{json:l,lossy:r}={})=>{const i=[];return _w(!(l||r),!!l,new Map,i)(t),i},hs=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?Bm(Zm(t,l)):structuredClone(t):(t,l)=>Bm(Zm(t,l));function Rw(t,l){const r=[{type:"text",value:"↩"}];return l>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),r}function Dw(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function Ow(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||Rw,i=t.options.footnoteBackLabel||Dw,s=t.options.footnoteLabel||"Footnotes",o=t.options.footnoteLabelTagName||"h2",c=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const x=t.all(p),y=String(p.identifier).toUpperCase(),v=ma(y.toLowerCase());let S=0;const C=[],z=t.footnoteCounts.get(y);for(;z!==void 0&&++S<=z;){C.length>0&&C.push({type:"text",value:" "});let T=typeof r=="string"?r:r(m,S);typeof T=="string"&&(T={type:"text",value:T}),C.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(m,S),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const j=x[x.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const T=j.children[j.children.length-1];T&&T.type==="text"?T.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...C)}else x.push(...C);const E={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(x,!0)};t.patch(p,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...hs(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
349
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
|
|
350
|
+
`}]}}const As=(function(t){if(t==null)return Bw;if(typeof t=="function")return zs(t);if(typeof t=="object")return Array.isArray(t)?Lw(t):Uw(t);if(typeof t=="string")return Hw(t);throw new Error("Expected function, string, or object as test")});function Lw(t){const l=[];let r=-1;for(;++r<t.length;)l[r]=As(t[r]);return zs(i);function i(...s){let o=-1;for(;++o<l.length;)if(l[o].apply(this,s))return!0;return!1}}function Uw(t){const l=t;return zs(r);function r(i){const s=i;let o;for(o in t)if(s[o]!==l[o])return!1;return!0}}function Hw(t){return zs(l);function l(r){return r&&r.type===t}}function zs(t){return l;function l(r,i,s){return!!(Zw(r)&&t.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function Bw(){return!0}function Zw(t){return t!==null&&typeof t=="object"&&"type"in t}const G3=[],qw=!0,L1=!1,$w="skip";function X3(t,l,r,i){let s;typeof l=="function"&&typeof r!="function"?(i=r,r=l):s=l;const o=As(s),c=i?-1:1;d(t,void 0,[])();function d(m,p,x){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=G3,C,z,j;if((!l||o(m,p,x[x.length-1]||void 0))&&(S=Vw(r(m,x)),S[0]===L1))return S;if("children"in m&&m.children){const E=m;if(E.children&&S[0]!==$w)for(z=(i?E.children.length:-1)+c,j=x.concat(E);z>-1&&z<E.children.length;){const T=E.children[z];if(C=d(T,z,j)(),C[0]===L1)return C;z=typeof C[1]=="number"?C[1]:z+c}}return S}}}function Vw(t){return Array.isArray(t)?t:typeof t=="number"?[qw,t]:t==null?G3:[t]}function vf(t,l,r,i){let s,o,c;typeof l=="function"&&typeof r!="function"?(o=void 0,c=l,s=r):(o=l,c=r,s=i),X3(t,o,d,s);function d(m,p){const x=p[p.length-1],y=x?x.children.indexOf(m):void 0;return c(m,y,x)}}const U1={}.hasOwnProperty,Jw={};function Iw(t,l){const r=l||Jw,i=new Map,s=new Map,o=new Map,c={...jw,...r.handlers},d={all:p,applyData:Yw,definitionById:i,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:c,one:m,options:r,patch:Fw,wrap:Xw};return vf(t,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const y=x.type==="definition"?i:s,v=String(x.identifier).toUpperCase();y.has(v)||y.set(v,x)}}),d;function m(x,y){const v=x.type,S=d.handlers[v];if(U1.call(d.handlers,v)&&S)return S(d,x,y);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in x){const{children:z,...j}=x,E=hs(j);return E.children=d.all(x),E}return hs(x)}return(d.options.unknownHandler||Gw)(d,x,y)}function p(x){const y=[];if("children"in x){const v=x.children;let S=-1;for(;++S<v.length;){const C=d.one(v[S],x);if(C){if(S&&v[S-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=qm(C.value)),!Array.isArray(C)&&C.type==="element")){const z=C.children[0];z&&z.type==="text"&&(z.value=qm(z.value))}Array.isArray(C)?y.push(...C):y.push(C)}}}return y}}function Fw(t,l){t.position&&(l.position=Dv(t))}function Yw(t,l){let r=l;if(t&&t.data){const i=t.data.hName,s=t.data.hChildren,o=t.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&o&&Object.assign(r.properties,hs(o)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function Gw(t,l){const r=l.data||{},i="value"in l&&!(U1.call(r,"hProperties")||U1.call(r,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function Xw(t,l){const r=[];let i=-1;for(l&&r.push({type:"text",value:`
|
|
351
|
+
`});++i<t.length;)i&&r.push({type:"text",value:`
|
|
352
|
+
`}),r.push(t[i]);return l&&t.length>0&&r.push({type:"text",value:`
|
|
353
|
+
`}),r}function qm(t){let l=0,r=t.charCodeAt(l);for(;r===9||r===32;)l++,r=t.charCodeAt(l);return t.slice(l)}function $m(t,l){const r=Iw(t,l),i=r.one(t,void 0),s=Ow(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
|
|
354
|
+
`},s),o}function Qw(t,l){return t&&"run"in t?async function(r,i){const s=$m(r,{file:i,...l});await t.run(s,i)}:function(r,i){return $m(r,{file:i,...t||l})}}function Vm(t){if(t)throw t}var h1,Jm;function Kw(){if(Jm)return h1;Jm=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},o=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var x=t.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!x&&!y)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},c=function(p,x){r&&x.name==="__proto__"?r(p,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):p[x.name]=x.newValue},d=function(p,x){if(x==="__proto__")if(t.call(p,x)){if(i)return i(p,x).value}else return;return p[x]};return h1=function m(){var p,x,y,v,S,C,z=arguments[0],j=1,E=arguments.length,T=!1;for(typeof z=="boolean"&&(T=z,z=arguments[1]||{},j=2),(z==null||typeof z!="object"&&typeof z!="function")&&(z={});j<E;++j)if(p=arguments[j],p!=null)for(x in p)y=d(z,x),v=d(p,x),z!==v&&(T&&v&&(o(v)||(S=s(v)))?(S?(S=!1,C=y&&s(y)?y:[]):C=y&&o(y)?y:{},c(z,{name:x,newValue:m(T,C,v)})):typeof v<"u"&&c(z,{name:x,newValue:v}));return z},h1}var Pw=Kw();const m1=q1(Pw);function H1(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function Ww(){const t=[],l={run:r,use:i};return l;function r(...s){let o=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...s);function d(m,...p){const x=t[++o];let y=-1;if(m){c(m);return}for(;++y<s.length;)(p[y]===null||p[y]===void 0)&&(p[y]=s[y]);s=p,x?ek(x,d)(...p):c(null,...p)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return t.push(s),l}}function ek(t,l){let r;return i;function i(...c){const d=t.length>c.length;let m;d&&c.push(s);try{m=t.apply(this,c)}catch(p){const x=p;if(d&&r)throw x;return s(x)}d||(m&&m.then&&typeof m.then=="function"?m.then(o,s):m instanceof Error?s(m):o(m))}function s(c,...d){r||(r=!0,l(c,...d))}function o(c){s(null,c)}}const An={basename:tk,dirname:nk,extname:lk,join:rk,sep:"/"};function tk(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');zi(t);let r=0,i=-1,s=t.length,o;if(l===void 0||l.length===0||l.length>t.length){for(;s--;)if(t.codePointAt(s)===47){if(o){r=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":t.slice(r,i)}if(l===t)return"";let c=-1,d=l.length-1;for(;s--;)if(t.codePointAt(s)===47){if(o){r=s+1;break}}else c<0&&(o=!0,c=s+1),d>-1&&(t.codePointAt(s)===l.codePointAt(d--)?d<0&&(i=s):(d=-1,i=c));return r===i?i=c:i<0&&(i=t.length),t.slice(r,i)}function nk(t){if(zi(t),t.length===0)return".";let l=-1,r=t.length,i;for(;--r;)if(t.codePointAt(r)===47){if(i){l=r;break}}else i||(i=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function lk(t){zi(t);let l=t.length,r=-1,i=0,s=-1,o=0,c;for(;l--;){const d=t.codePointAt(l);if(d===47){if(c){i=l+1;break}continue}r<0&&(c=!0,r=l+1),d===46?s<0?s=l:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||r<0||o===0||o===1&&s===r-1&&s===i+1?"":t.slice(s,r)}function rk(...t){let l=-1,r;for(;++l<t.length;)zi(t[l]),t[l]&&(r=r===void 0?t[l]:r+"/"+t[l]);return r===void 0?".":ak(r)}function ak(t){zi(t);const l=t.codePointAt(0)===47;let r=ik(t,!l);return r.length===0&&!l&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),l?"/"+r:r}function ik(t,l){let r="",i=0,s=-1,o=0,c=-1,d,m;for(;++c<=t.length;){if(c<t.length)d=t.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(s===c-1||o===1))if(s!==c-1&&o===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(m=r.lastIndexOf("/"),m!==r.length-1){m<0?(r="",i=0):(r=r.slice(0,m),i=r.length-1-r.lastIndexOf("/")),s=c,o=0;continue}}else if(r.length>0){r="",i=0,s=c,o=0;continue}}l&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+t.slice(s+1,c):r=t.slice(s+1,c),i=c-s-1;s=c,o=0}else d===46&&o>-1?o++:o=-1}return r}function zi(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const uk={cwd:sk};function sk(){return"/"}function B1(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function ok(t){if(typeof t=="string")t=new URL(t);else if(!B1(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return ck(t)}function ck(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const l=t.pathname;let r=-1;for(;++r<l.length;)if(l.codePointAt(r)===37&&l.codePointAt(r+1)===50){const i=l.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(l)}const p1=["history","path","basename","stem","extname","dirname"];class Q3{constructor(l){let r;l?B1(l)?r={path:l}:typeof l=="string"||fk(l)?r={value:l}:r=l:r={},this.cwd="cwd"in r?"":uk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<p1.length;){const o=p1[i];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let s;for(s in r)p1.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?An.basename(this.path):void 0}set basename(l){y1(l,"basename"),g1(l,"basename"),this.path=An.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?An.dirname(this.path):void 0}set dirname(l){Im(this.basename,"dirname"),this.path=An.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?An.extname(this.path):void 0}set extname(l){if(g1(l,"extname"),Im(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=An.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){B1(l)&&(l=ok(l)),y1(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?An.basename(this.path,this.extname):void 0}set stem(l){y1(l,"stem"),g1(l,"stem"),this.path=An.join(this.dirname||"",l+(this.extname||""))}fail(l,r,i){const s=this.message(l,r,i);throw s.fatal=!0,s}info(l,r,i){const s=this.message(l,r,i);return s.fatal=void 0,s}message(l,r,i){const s=new At(l,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function g1(t,l){if(t&&t.includes(An.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+An.sep+"`")}function y1(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function Im(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function fk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const dk=(function(t){const i=this.constructor.prototype,s=i[t],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),hk={}.hasOwnProperty;class Sf extends dk{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=Ww()}copy(){const l=new Sf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];l.use(...i)}return l.data(m1(!0,{},this.namespace)),l}data(l,r){return typeof l=="string"?arguments.length===2?(v1("data",this.frozen),this.namespace[l]=r,this):hk.call(this.namespace,l)&&this.namespace[l]||void 0:l?(v1("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(l,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const r=Pu(l),i=this.parser||this.Parser;return x1("parse",i),i(String(r),r)}process(l,r){const i=this;return this.freeze(),x1("process",this.parser||this.Parser),b1("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(o,c){const d=Pu(l),m=i.parse(d);i.run(m,d,function(x,y,v){if(x||!y||!v)return p(x);const S=y,C=i.stringify(S,v);gk(C)?v.value=C:v.result=C,p(x,v)});function p(x,y){x||!y?c(x):o?o(y):r(void 0,y)}}}processSync(l){let r=!1,i;return this.freeze(),x1("processSync",this.parser||this.Parser),b1("processSync",this.compiler||this.Compiler),this.process(l,s),Ym("processSync","process",r),i;function s(o,c){r=!0,Vm(o),i=c}}run(l,r,i){Fm(l),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?o(void 0,i):new Promise(o);function o(c,d){const m=Pu(r);s.run(l,m,p);function p(x,y,v){const S=y||l;x?d(x):c?c(S):i(void 0,S,v)}}}runSync(l,r){let i=!1,s;return this.run(l,r,o),Ym("runSync","run",i),s;function o(c,d){Vm(c),s=d,i=!0}}stringify(l,r){this.freeze();const i=Pu(r),s=this.compiler||this.Compiler;return b1("stringify",s),Fm(l),s(l,i)}use(l,...r){const i=this.attachers,s=this.namespace;if(v1("use",this.frozen),l!=null)if(typeof l=="function")m(l,r);else if(typeof l=="object")Array.isArray(l)?d(l):c(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function o(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[x,...y]=p;m(x,y)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(s.settings=m1(!0,s.settings,p.settings))}function d(p){let x=-1;if(p!=null)if(Array.isArray(p))for(;++x<p.length;){const y=p[x];o(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,x){let y=-1,v=-1;for(;++y<i.length;)if(i[y][0]===p){v=y;break}if(v===-1)i.push([p,...x]);else if(x.length>0){let[S,...C]=x;const z=i[v][1];H1(z)&&H1(S)&&(S=m1(!0,z,S)),i[v]=[p,S,...C]}}}}const mk=new Sf().freeze();function x1(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function b1(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function v1(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fm(t){if(!H1(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ym(t,l,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function Pu(t){return pk(t)?t:new Q3(t)}function pk(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function gk(t){return typeof t=="string"||yk(t)}function yk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const xk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Gm=[],Xm={allowDangerousHtml:!0},bk=/^(https?|ircs?|mailto|xmpp)$/i,vk=[{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 Sk(t){const l=wk(t),r=kk(t);return Ck(l.runSync(l.parse(r),r),t)}function wk(t){const l=t.rehypePlugins||Gm,r=t.remarkPlugins||Gm,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Xm}:Xm;return mk().use(nw).use(r).use(Qw,i).use(l)}function kk(t){const l=t.children||"",r=new Q3;return typeof l=="string"&&(r.value=l),r}function Ck(t,l){const r=l.allowedElements,i=l.allowElement,s=l.components,o=l.disallowedElements,c=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||Ek;for(const x of vk)Object.hasOwn(l,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+xk+x.id,void 0);return vf(t,p),Bv(t,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function p(x,y,v){if(x.type==="raw"&&v&&typeof y=="number")return c?v.children.splice(y,1):v.children[y]={type:"text",value:x.value},y;if(x.type==="element"){let S;for(S in c1)if(Object.hasOwn(c1,S)&&Object.hasOwn(x.properties,S)){const C=x.properties[S],z=c1[S];(z===null||z.includes(x.tagName))&&(x.properties[S]=m(String(C||""),S,x))}}if(x.type==="element"){let S=r?!r.includes(x.tagName):o?o.includes(x.tagName):!1;if(!S&&i&&typeof y=="number"&&(S=!i(x,y,v)),S&&v&&typeof y=="number")return d&&x.children?v.children.splice(y,1,...x.children):v.children.splice(y,1),y}}}function Ek(t){const l=t.indexOf(":"),r=t.indexOf("?"),i=t.indexOf("#"),s=t.indexOf("/");return l===-1||s!==-1&&l>s||r!==-1&&l>r||i!==-1&&l>i||bk.test(t.slice(0,l))?t:""}function Qm(t,l){const r=String(t);if(typeof l!="string")throw new TypeError("Expected character");let i=0,s=r.indexOf(l);for(;s!==-1;)i++,s=r.indexOf(l,s+l.length);return i}function Mk(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Nk(t,l,r){const s=As((r||{}).ignore||[]),o=jk(l);let c=-1;for(;++c<o.length;)X3(t,"text",d);function d(p,x){let y=-1,v;for(;++y<x.length;){const S=x[y],C=v?v.children:void 0;if(s(S,C?C.indexOf(S):void 0,v))return;v=S}if(v)return m(p,x)}function m(p,x){const y=x[x.length-1],v=o[c][0],S=o[c][1];let C=0;const j=y.children.indexOf(p);let E=!1,T=[];v.lastIndex=0;let D=v.exec(p.value);for(;D;){const F=D.index,ee={index:D.index,input:D.input,stack:[...x,p]};let O=S(...D,ee);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?v.lastIndex=F+1:(C!==F&&T.push({type:"text",value:p.value.slice(C,F)}),Array.isArray(O)?T.push(...O):O&&T.push(O),C=F+D[0].length,E=!0),!v.global)break;D=v.exec(p.value)}return E?(C<p.value.length&&T.push({type:"text",value:p.value.slice(C)}),y.children.splice(j,1,...T)):T=[p],j+T.length}}function jk(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!t[0]||Array.isArray(t[0])?t:[t];let i=-1;for(;++i<r.length;){const s=r[i];l.push([Ak(s[0]),zk(s[1])])}return l}function Ak(t){return typeof t=="string"?new RegExp(Mk(t),"g"):t}function zk(t){return typeof t=="function"?t:function(){return t}}const S1="phrasing",w1=["autolink","link","image","label"];function Tk(){return{transforms:[Hk],enter:{literalAutolink:Rk,literalAutolinkEmail:k1,literalAutolinkHttp:k1,literalAutolinkWww:k1},exit:{literalAutolink:Uk,literalAutolinkEmail:Lk,literalAutolinkHttp:Dk,literalAutolinkWww:Ok}}}function _k(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:S1,notInConstruct:w1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:S1,notInConstruct:w1},{character:":",before:"[ps]",after:"\\/",inConstruct:S1,notInConstruct:w1}]}}function Rk(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function k1(t){this.config.enter.autolinkProtocol.call(this,t)}function Dk(t){this.config.exit.autolinkProtocol.call(this,t)}function Ok(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function Lk(t){this.config.exit.autolinkEmail.call(this,t)}function Uk(t){this.exit(t)}function Hk(t){Nk(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Bk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Zk]],{ignore:["link","linkReference"]})}function Bk(t,l,r,i,s){let o="";if(!K3(s)||(/^w/i.test(l)&&(r=l+r,l="",o="http://"),!qk(r)))return!1;const c=$k(r+i);if(!c[0])return!1;const d={type:"link",title:null,url:o+l+c[0],children:[{type:"text",value:l+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function Zk(t,l,r,i){return!K3(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+r,children:[{type:"text",value:l+"@"+r}]}}function qk(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function $k(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let r=l[0],i=r.indexOf(")");const s=Qm(t,"(");let o=Qm(t,")");for(;i!==-1&&s>o;)t+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),o++;return[t,r]}function K3(t,l){const r=t.input.charCodeAt(t.index-1);return(t.index===0||ur(r)||Ms(r))&&(!l||r!==47)}P3.peek=Kk;function Vk(){this.buffer()}function Jk(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function Ik(){this.buffer()}function Fk(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Yk(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function Gk(t){this.exit(t)}function Xk(t){const l=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Cn(this.sliceSerialize(t)).toLowerCase(),r.label=l}function Qk(t){this.exit(t)}function Kk(){return"["}function P3(t,l,r,i){const s=r.createTracker(i);let o=s.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return o+=s.move(r.safe(r.associationId(t),{after:"]",before:o})),d(),c(),o+=s.move("]"),o}function Pk(){return{enter:{gfmFootnoteCallString:Vk,gfmFootnoteCall:Jk,gfmFootnoteDefinitionLabelString:Ik,gfmFootnoteDefinition:Fk},exit:{gfmFootnoteCallString:Yk,gfmFootnoteCall:Gk,gfmFootnoteDefinitionLabelString:Xk,gfmFootnoteDefinition:Qk}}}function Wk(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:r,footnoteReference:P3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,s,o,c){const d=o.createTracker(c);let m=d.move("[^");const p=o.enter("footnoteDefinition"),x=o.enter("label");return m+=d.move(o.safe(o.associationId(i),{before:m,after:"]"})),x(),m+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),m+=d.move((l?`
|
|
355
|
+
`:" ")+o.indentLines(o.containerFlow(i,d.current()),l?W3:eC))),p(),m}}function eC(t,l,r){return l===0?t:W3(t,l,r)}function W3(t,l,r){return(r?"":" ")+t}const tC=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];e4.peek=iC;function nC(){return{canContainEols:["delete"],enter:{strikethrough:rC},exit:{strikethrough:aC}}}function lC(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:tC}],handlers:{delete:e4}}}function rC(t){this.enter({type:"delete",children:[]},t)}function aC(t){this.exit(t)}function e4(t,l,r,i){const s=r.createTracker(i),o=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(t,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),o(),c}function iC(){return"~"}function uC(t){return t.length}function sC(t,l){const r=l||{},i=(r.align||[]).concat(),s=r.stringLength||uC,o=[],c=[],d=[],m=[];let p=0,x=-1;for(;++x<t.length;){const z=[],j=[];let E=-1;for(t[x].length>p&&(p=t[x].length);++E<t[x].length;){const T=oC(t[x][E]);if(r.alignDelimiters!==!1){const D=s(T);j[E]=D,(m[E]===void 0||D>m[E])&&(m[E]=D)}z.push(T)}c[x]=z,d[x]=j}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<p;)o[y]=Km(i[y]);else{const z=Km(i);for(;++y<p;)o[y]=z}y=-1;const v=[],S=[];for(;++y<p;){const z=o[y];let j="",E="";z===99?(j=":",E=":"):z===108?j=":":z===114&&(E=":");let T=r.alignDelimiters===!1?1:Math.max(1,m[y]-j.length-E.length);const D=j+"-".repeat(T)+E;r.alignDelimiters!==!1&&(T=j.length+T+E.length,T>m[y]&&(m[y]=T),S[y]=T),v[y]=D}c.splice(1,0,v),d.splice(1,0,S),x=-1;const C=[];for(;++x<c.length;){const z=c[x],j=d[x];y=-1;const E=[];for(;++y<p;){const T=z[y]||"";let D="",F="";if(r.alignDelimiters!==!1){const ee=m[y]-(j[y]||0),O=o[y];O===114?D=" ".repeat(ee):O===99?ee%2?(D=" ".repeat(ee/2+.5),F=" ".repeat(ee/2-.5)):(D=" ".repeat(ee/2),F=D):F=" ".repeat(ee)}r.delimiterStart!==!1&&!y&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||y)&&E.push(" "),r.alignDelimiters!==!1&&E.push(D),E.push(T),r.alignDelimiters!==!1&&E.push(F),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||y!==p-1)&&E.push("|")}C.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return C.join(`
|
|
356
|
+
`)}function oC(t){return t==null?"":String(t)}function Km(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function cC(t,l,r,i){const s=r.enter("blockquote"),o=r.createTracker(i);o.move("> "),o.shift(2);const c=r.indentLines(r.containerFlow(t,o.current()),fC);return s(),c}function fC(t,l,r){return">"+(r?"":" ")+t}function dC(t,l){return Pm(t,l.inConstruct,!0)&&!Pm(t,l.notInConstruct,!1)}function Pm(t,l,r){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return r;let i=-1;for(;++i<l.length;)if(t.includes(l[i]))return!0;return!1}function Wm(t,l,r,i){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
|
|
357
|
+
`&&dC(r.stack,r.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
358
|
+
`}function hC(t,l){const r=String(t);let i=r.indexOf(l),s=i,o=0,c=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++o>c&&(c=o):o=1,s=i+l.length,i=r.indexOf(l,s);return c}function mC(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function pC(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function gC(t,l,r,i){const s=pC(r),o=t.value||"",c=s==="`"?"GraveAccent":"Tilde";if(mC(t,r)){const y=r.enter("codeIndented"),v=r.indentLines(o,yC);return y(),v}const d=r.createTracker(i),m=s.repeat(Math.max(hC(o,s)+1,3)),p=r.enter("codeFenced");let x=d.move(m);if(t.lang){const y=r.enter(`codeFencedLang${c}`);x+=d.move(r.safe(t.lang,{before:x,after:" ",encode:["`"],...d.current()})),y()}if(t.lang&&t.meta){const y=r.enter(`codeFencedMeta${c}`);x+=d.move(" "),x+=d.move(r.safe(t.meta,{before:x,after:`
|
|
359
|
+
`,encode:["`"],...d.current()})),y()}return x+=d.move(`
|
|
360
|
+
`),o&&(x+=d.move(o+`
|
|
361
|
+
`)),x+=d.move(m),p(),x}function yC(t,l,r){return(r?"":" ")+t}function wf(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function xC(t,l,r,i){const s=wf(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const m=r.createTracker(i);let p=m.move("[");return p+=m.move(r.safe(r.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":`
|
|
362
|
+
`,...m.current()}))),d(),t.title&&(d=r.enter(`title${o}`),p+=m.move(" "+s),p+=m.move(r.safe(t.title,{before:p,after:s,...m.current()})),p+=m.move(s),d()),c(),p}function bC(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function Ci(t){return"&#x"+t.toString(16).toUpperCase()+";"}function ms(t,l,r){const i=ua(t),s=ua(l);return i===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}t4.peek=vC;function t4(t,l,r,i){const s=bC(r),o=r.enter("emphasis"),c=r.createTracker(i),d=c.move(s);let m=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const p=m.charCodeAt(0),x=ms(i.before.charCodeAt(i.before.length-1),p,s);x.inside&&(m=Ci(p)+m.slice(1));const y=m.charCodeAt(m.length-1),v=ms(i.after.charCodeAt(0),y,s);v.inside&&(m=m.slice(0,-1)+Ci(y));const S=c.move(s);return o(),r.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+m+S}function vC(t,l,r){return r.options.emphasis||"*"}function SC(t,l){let r=!1;return vf(t,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,L1}),!!((!t.depth||t.depth<3)&&hf(t)&&(l.options.setext||r))}function wC(t,l,r,i){const s=Math.max(Math.min(6,t.depth||1),1),o=r.createTracker(i);if(SC(t,r)){const x=r.enter("headingSetext"),y=r.enter("phrasing"),v=r.containerPhrasing(t,{...o.current(),before:`
|
|
363
|
+
`,after:`
|
|
364
|
+
`});return y(),x(),v+`
|
|
365
|
+
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
366
|
+
`))+1))}const c="#".repeat(s),d=r.enter("headingAtx"),m=r.enter("phrasing");o.move(c+" ");let p=r.containerPhrasing(t,{before:"# ",after:`
|
|
367
|
+
`,...o.current()});return/^[\t ]/.test(p)&&(p=Ci(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,r.options.closeAtx&&(p+=" "+c),m(),d(),p}n4.peek=kC;function n4(t){return t.value||""}function kC(){return"<"}l4.peek=CC;function l4(t,l,r,i){const s=wf(r),o=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const m=r.createTracker(i);let p=m.move("![");return p+=m.move(r.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=r.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(r.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=r.enter("destinationRaw"),p+=m.move(r.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=r.enter(`title${o}`),p+=m.move(" "+s),p+=m.move(r.safe(t.title,{before:p,after:s,...m.current()})),p+=m.move(s),d()),p+=m.move(")"),c(),p}function CC(){return"!"}r4.peek=EC;function r4(t,l,r,i){const s=t.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(i);let m=d.move("![");const p=r.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=x,o(),s==="full"||!p||p!==y?m+=d.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function EC(){return"!"}a4.peek=MC;function a4(t,l,r){let i=t.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<r.unsafe.length;){const c=r.unsafe[o],d=r.compilePattern(c);let m;if(c.atBreak)for(;m=d.exec(i);){let p=m.index;i.charCodeAt(p)===10&&i.charCodeAt(p-1)===13&&p--,i=i.slice(0,p)+" "+i.slice(m.index+1)}}return s+i+s}function MC(){return"`"}function i4(t,l){const r=hf(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}u4.peek=NC;function u4(t,l,r,i){const s=wf(r),o=s==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let d,m;if(i4(t,r)){const x=r.stack;r.stack=[],d=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(t,{before:y,after:">",...c.current()})),y+=c.move(">"),d(),r.stack=x,y}d=r.enter("link"),m=r.enter("label");let p=c.move("[");return p+=c.move(r.containerPhrasing(t,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=r.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(r.safe(t.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=r.enter("destinationRaw"),p+=c.move(r.safe(t.url,{before:p,after:t.title?" ":")",...c.current()}))),m(),t.title&&(m=r.enter(`title${o}`),p+=c.move(" "+s),p+=c.move(r.safe(t.title,{before:p,after:s,...c.current()})),p+=c.move(s),m()),p+=c.move(")"),d(),p}function NC(t,l,r){return i4(t,r)?"<":"["}s4.peek=jC;function s4(t,l,r,i){const s=t.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(i);let m=d.move("[");const p=r.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(t),{before:m,after:"]",...d.current()});return c(),r.stack=x,o(),s==="full"||!p||p!==y?m+=d.move(y+"]"):s==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function jC(){return"["}function kf(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function AC(t){const l=kf(t),r=t.options.bulletOther;if(!r)return l==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+r+"`) to be different");return r}function zC(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function o4(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function TC(t,l,r,i){const s=r.enter("list"),o=r.bulletCurrent;let c=t.ordered?zC(r):kf(r);const d=t.ordered?c==="."?")":".":AC(r);let m=l&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!t.ordered){const x=t.children?t.children[0]:void 0;if((c==="*"||c==="-")&&x&&(!x.children||!x.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&&(m=!0),o4(r)===c&&x){let y=-1;for(;++y<t.children.length;){const v=t.children[y];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=d),r.bulletCurrent=c;const p=r.containerFlow(t,i);return r.bulletLastUsed=c,r.bulletCurrent=o,s(),p}function _C(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function RC(t,l,r,i){const s=_C(r);let o=r.bulletCurrent||kf(r);l&&l.type==="list"&&l.ordered&&(o=(typeof l.start=="number"&&l.start>-1?l.start:1)+(r.options.incrementListMarker===!1?0:l.children.indexOf(t))+o);let c=o.length+1;(s==="tab"||s==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(i);d.move(o+" ".repeat(c-o.length)),d.shift(c);const m=r.enter("listItem"),p=r.indentLines(r.containerFlow(t,d.current()),x);return m(),p;function x(y,v,S){return v?(S?"":" ".repeat(c))+y:(S?o:o+" ".repeat(c-o.length))+y}}function DC(t,l,r,i){const s=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(t,i);return o(),s(),c}const OC=As(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function LC(t,l,r,i){return(t.children.some(function(c){return OC(c)})?r.containerPhrasing:r.containerFlow).call(r,t,i)}function UC(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}c4.peek=HC;function c4(t,l,r,i){const s=UC(r),o=r.enter("strong"),c=r.createTracker(i),d=c.move(s+s);let m=c.move(r.containerPhrasing(t,{after:s,before:d,...c.current()}));const p=m.charCodeAt(0),x=ms(i.before.charCodeAt(i.before.length-1),p,s);x.inside&&(m=Ci(p)+m.slice(1));const y=m.charCodeAt(m.length-1),v=ms(i.after.charCodeAt(0),y,s);v.inside&&(m=m.slice(0,-1)+Ci(y));const S=c.move(s+s);return o(),r.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+m+S}function HC(t,l,r){return r.options.strong||"*"}function BC(t,l,r,i){return r.safe(t.value,i)}function ZC(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function qC(t,l,r){const i=(o4(r)+(r.options.ruleSpaces?" ":"")).repeat(ZC(r));return r.options.ruleSpaces?i.slice(0,-1):i}const f4={blockquote:cC,break:Wm,code:gC,definition:xC,emphasis:t4,hardBreak:Wm,heading:wC,html:n4,image:l4,imageReference:r4,inlineCode:a4,link:u4,linkReference:s4,list:TC,listItem:RC,paragraph:DC,root:LC,strong:c4,text:BC,thematicBreak:qC};function $C(){return{enter:{table:VC,tableData:ep,tableHeader:ep,tableRow:IC},exit:{codeText:FC,table:JC,tableData:C1,tableHeader:C1,tableRow:C1}}}function VC(t){const l=t._align;this.enter({type:"table",align:l.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function JC(t){this.exit(t),this.data.inTable=void 0}function IC(t){this.enter({type:"tableRow",children:[]},t)}function C1(t){this.exit(t)}function ep(t){this.enter({type:"tableCell",children:[]},t)}function FC(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,YC));const r=this.stack[this.stack.length-1];r.type,r.value=l,this.exit(t)}function YC(t,l){return l==="|"?l:t}function GC(t){const l=t||{},r=l.tableCellPadding,i=l.tablePipeAlign,s=l.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
368
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:c,tableCell:m,tableRow:d}};function c(S,C,z,j){return p(x(S,z,j),S.align)}function d(S,C,z,j){const E=y(S,z,j),T=p([E]);return T.slice(0,T.indexOf(`
|
|
369
|
+
`))}function m(S,C,z,j){const E=z.enter("tableCell"),T=z.enter("phrasing"),D=z.containerPhrasing(S,{...j,before:o,after:o});return T(),E(),D}function p(S,C){return sC(S,{align:C,alignDelimiters:i,padding:r,stringLength:s})}function x(S,C,z){const j=S.children;let E=-1;const T=[],D=C.enter("table");for(;++E<j.length;)T[E]=y(j[E],C,z);return D(),T}function y(S,C,z){const j=S.children;let E=-1;const T=[],D=C.enter("tableRow");for(;++E<j.length;)T[E]=m(j[E],S,C,z);return D(),T}function v(S,C,z){let j=f4.inlineCode(S,C,z);return z.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function XC(){return{exit:{taskListCheckValueChecked:tp,taskListCheckValueUnchecked:tp,paragraph:KC}}}function QC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:PC}}}function tp(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function KC(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const s=l.children;let o=-1,c;for(;++o<s.length;){const d=s[o];if(d.type==="paragraph"){c=d;break}}c===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(t)}function PC(t,l,r,i){const s=t.children[0],o=typeof t.checked=="boolean"&&s&&s.type==="paragraph",c="["+(t.checked?"x":" ")+"] ",d=r.createTracker(i);o&&d.move(c);let m=f4.listItem(t,l,r,{...i,...d.current()});return o&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(x){return x+c}}function WC(){return[Tk(),Pk(),nC(),$C(),XC()]}function eE(t){return{extensions:[_k(),Wk(t),lC(),GC(t),QC()]}}const tE={tokenize:uE,partial:!0},d4={tokenize:sE,partial:!0},h4={tokenize:oE,partial:!0},m4={tokenize:cE,partial:!0},nE={tokenize:fE,partial:!0},p4={name:"wwwAutolink",tokenize:aE,previous:y4},g4={name:"protocolAutolink",tokenize:iE,previous:x4},rl={name:"emailAutolink",tokenize:rE,previous:b4},_n={};function lE(){return{text:_n}}let lr=48;for(;lr<123;)_n[lr]=rl,lr++,lr===58?lr=65:lr===91&&(lr=97);_n[43]=rl;_n[45]=rl;_n[46]=rl;_n[95]=rl;_n[72]=[rl,g4];_n[104]=[rl,g4];_n[87]=[rl,p4];_n[119]=[rl,p4];function rE(t,l,r){const i=this;let s,o;return c;function c(y){return!Z1(y)||!b4.call(i,i.previous)||Cf(i.events)?r(y):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(y))}function d(y){return Z1(y)?(t.consume(y),d):y===64?(t.consume(y),m):r(y)}function m(y){return y===46?t.check(nE,x,p)(y):y===45||y===95||jt(y)?(o=!0,t.consume(y),m):x(y)}function p(y){return t.consume(y),s=!0,m}function x(y){return o&&s&&Rt(i.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(y)):r(y)}}function aE(t,l,r){const i=this;return s;function s(c){return c!==87&&c!==119||!y4.call(i,i.previous)||Cf(i.events)?r(c):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(tE,t.attempt(d4,t.attempt(h4,o),r),r)(c))}function o(c){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(c)}}function iE(t,l,r){const i=this;let s="",o=!1;return c;function c(y){return(y===72||y===104)&&x4.call(i,i.previous)&&!Cf(i.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),t.consume(y),d):r(y)}function d(y){if(Rt(y)&&s.length<5)return s+=String.fromCodePoint(y),t.consume(y),d;if(y===58){const v=s.toLowerCase();if(v==="http"||v==="https")return t.consume(y),m}return r(y)}function m(y){return y===47?(t.consume(y),o?p:(o=!0,m)):r(y)}function p(y){return y===null||fs(y)||Xe(y)||ur(y)||Ms(y)?r(y):t.attempt(d4,t.attempt(h4,x),r)(y)}function x(y){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(y)}}function uE(t,l,r){let i=0;return s;function s(c){return(c===87||c===119)&&i<3?(i++,t.consume(c),s):c===46&&i===3?(t.consume(c),o):r(c)}function o(c){return c===null?r(c):l(c)}}function sE(t,l,r){let i,s,o;return c;function c(p){return p===46||p===95?t.check(m4,m,d)(p):p===null||Xe(p)||ur(p)||p!==45&&Ms(p)?m(p):(o=!0,t.consume(p),c)}function d(p){return p===95?i=!0:(s=i,i=void 0),t.consume(p),c}function m(p){return s||i||!o?r(p):l(p)}}function oE(t,l){let r=0,i=0;return s;function s(c){return c===40?(r++,t.consume(c),s):c===41&&i<r?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?t.check(m4,l,o)(c):c===null||Xe(c)||ur(c)?l(c):(t.consume(c),s)}function o(c){return c===41&&i++,t.consume(c),s}}function cE(t,l,r){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),i):d===38?(t.consume(d),o):d===93?(t.consume(d),s):d===60||d===null||Xe(d)||ur(d)?l(d):r(d)}function s(d){return d===null||d===40||d===91||Xe(d)||ur(d)?l(d):i(d)}function o(d){return Rt(d)?c(d):r(d)}function c(d){return d===59?(t.consume(d),i):Rt(d)?(t.consume(d),c):r(d)}}function fE(t,l,r){return i;function i(o){return t.consume(o),s}function s(o){return jt(o)?r(o):l(o)}}function y4(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Xe(t)}function x4(t){return!Rt(t)}function b4(t){return!(t===47||Z1(t))}function Z1(t){return t===43||t===45||t===46||t===95||jt(t)}function Cf(t){let l=t.length,r=!1;for(;l--;){const i=t[l][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const dE={tokenize:vE,partial:!0};function hE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:yE,continuation:{tokenize:xE},exit:bE}},text:{91:{name:"gfmFootnoteCall",tokenize:gE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mE,resolveTo:pE}}}}function mE(t,l,r){const i=this;let s=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;s--;){const m=i.events[s][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!c||!c._balanced)return r(m);const p=Cn(i.sliceSerialize({start:c.end,end:i.now()}));return p.codePointAt(0)!==94||!o.includes(p.slice(1))?r(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function pE(t,l){let r=t.length;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},t[t.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[t[r+1],t[r+2],["enter",i,l],t[r+3],t[r+4],["enter",s,l],["exit",s,l],["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l],t[t.length-2],t[t.length-1],["exit",i,l]];return t.splice(r,t.length-r+1,...d),t}function gE(t,l,r){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,c;return d;function d(y){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),m}function m(y){return y!==94?r(y):(t.enter("gfmFootnoteCallMarker"),t.consume(y),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(y){if(o>999||y===93&&!c||y===null||y===91||Xe(y))return r(y);if(y===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return s.includes(Cn(i.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(y),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):r(y)}return Xe(y)||(c=!0),o++,t.consume(y),y===92?x:p}function x(y){return y===91||y===92||y===93?(t.consume(y),o++,p):p(y)}}function yE(t,l,r){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,c=0,d;return m;function m(C){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(C){return C===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",x):r(C)}function x(C){if(c>999||C===93&&!d||C===null||C===91||Xe(C))return r(C);if(C===93){t.exit("chunkString");const z=t.exit("gfmFootnoteDefinitionLabelString");return o=Cn(i.sliceSerialize(z)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(C),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Xe(C)||(d=!0),c++,t.consume(C),C===92?y:x}function y(C){return C===91||C===92||C===93?(t.consume(C),c++,x):x(C)}function v(C){return C===58?(t.enter("definitionMarker"),t.consume(C),t.exit("definitionMarker"),s.includes(o)||s.push(o),Oe(t,S,"gfmFootnoteDefinitionWhitespace")):r(C)}function S(C){return l(C)}}function xE(t,l,r){return t.check(Ai,l,t.attempt(dE,l,r))}function bE(t){t.exit("gfmFootnoteDefinition")}function vE(t,l,r){const i=this;return Oe(t,s,"gfmFootnoteDefinitionIndent",5);function s(o){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?l(o):r(o)}}function SE(t){let r=(t||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:s};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(c,d){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},y={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},v=[["enter",x,d],["enter",c[p][1],d],["exit",c[p][1],d],["enter",y,d]],S=d.parser.constructs.insideSpan.null;S&&tn(v,v.length,0,Ns(S,c.slice(p+1,m),d)),tn(v,v.length,0,[["exit",y,d],["enter",c[m][1],d],["exit",c[m][1],d],["exit",x,d]]),tn(c,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function o(c,d,m){const p=this.previous,x=this.events;let y=0;return v;function v(C){return p===126&&x[x.length-1][1].type!=="characterEscape"?m(C):(c.enter("strikethroughSequenceTemporary"),S(C))}function S(C){const z=ua(p);if(C===126)return y>1?m(C):(c.consume(C),y++,S);if(y<2&&!r)return m(C);const j=c.exit("strikethroughSequenceTemporary"),E=ua(C);return j._open=!E||E===2&&!!z,j._close=!z||z===2&&!!E,d(C)}}}class wE{constructor(){this.map=[]}add(l,r,i){kE(this,l,r,i)}consume(l){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(l.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),l.length=this.map[r][0];i.push(l.slice()),l.length=0;let s=i.pop();for(;s;){for(const o of s)l.push(o);s=i.pop()}this.map.length=0}}function kE(t,l,r,i){let s=0;if(!(r===0&&i.length===0)){for(;s<t.map.length;){if(t.map[s][0]===l){t.map[s][1]+=r,t.map[s][2].push(...i);return}s+=1}t.map.push([l,r,i])}}function CE(t,l){let r=!1;const i=[];for(;l<t.length;){const s=t[l];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);l+=1}return i}function EE(){return{flow:{null:{name:"table",tokenize:ME,resolveAll:NE}}}}function ME(t,l,r){const i=this;let s=0,o=0,c;return d;function d(L){let ae=i.events.length-1;for(;ae>-1;){const ue=i.events[ae][1].type;if(ue==="lineEnding"||ue==="linePrefix")ae--;else break}const te=ae>-1?i.events[ae][1].type:null,ve=te==="tableHead"||te==="tableRow"?O:m;return ve===O&&i.parser.lazy[i.now().line]?r(L):ve(L)}function m(L){return t.enter("tableHead"),t.enter("tableRow"),p(L)}function p(L){return L===124||(c=!0,o+=1),x(L)}function x(L){return L===null?r(L):ge(L)?o>1?(o=0,i.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),S):r(L):Te(L)?Oe(t,x,"whitespace")(L):(o+=1,c&&(c=!1,s+=1),L===124?(t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),c=!0,x):(t.enter("data"),y(L)))}function y(L){return L===null||L===124||Xe(L)?(t.exit("data"),x(L)):(t.consume(L),L===92?v:y)}function v(L){return L===92||L===124?(t.consume(L),y):y(L)}function S(L){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(L):(t.enter("tableDelimiterRow"),c=!1,Te(L)?Oe(t,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):C(L))}function C(L){return L===45||L===58?j(L):L===124?(c=!0,t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),z):ee(L)}function z(L){return Te(L)?Oe(t,j,"whitespace")(L):j(L)}function j(L){return L===58?(o+=1,c=!0,t.enter("tableDelimiterMarker"),t.consume(L),t.exit("tableDelimiterMarker"),E):L===45?(o+=1,E(L)):L===null||ge(L)?F(L):ee(L)}function E(L){return L===45?(t.enter("tableDelimiterFiller"),T(L)):ee(L)}function T(L){return L===45?(t.consume(L),T):L===58?(c=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(L),t.exit("tableDelimiterMarker"),D):(t.exit("tableDelimiterFiller"),D(L))}function D(L){return Te(L)?Oe(t,F,"whitespace")(L):F(L)}function F(L){return L===124?C(L):L===null||ge(L)?!c||s!==o?ee(L):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(L)):ee(L)}function ee(L){return r(L)}function O(L){return t.enter("tableRow"),V(L)}function V(L){return L===124?(t.enter("tableCellDivider"),t.consume(L),t.exit("tableCellDivider"),V):L===null||ge(L)?(t.exit("tableRow"),l(L)):Te(L)?Oe(t,V,"whitespace")(L):(t.enter("data"),se(L))}function se(L){return L===null||L===124||Xe(L)?(t.exit("data"),V(L)):(t.consume(L),L===92?de:se)}function de(L){return L===92||L===124?(t.consume(L),se):se(L)}}function NE(t,l){let r=-1,i=!0,s=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,m=0,p,x,y;const v=new wE;for(;++r<t.length;){const S=t[r],C=S[1];S[0]==="enter"?C.type==="tableHead"?(d=!1,m!==0&&(np(v,l,m,p,x),x=void 0,m=0),p={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},v.add(r,0,[["enter",p,l]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,y=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,x={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},v.add(r,0,[["enter",x,l]])),s=C.type==="tableDelimiterRow"?2:x?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=Wu(v,l,o,s,void 0,y),o=[0,0,0,0]),c[2]=r)):C.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(c[0]=c[1],y=Wu(v,l,o,s,void 0,y)),o=c,c=[o[1],r,0,0])):C.type==="tableHead"?(d=!0,m=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(m=r,o[1]!==0?(c[0]=c[1],y=Wu(v,l,o,s,r,y)):c[1]!==0&&(y=Wu(v,l,c,s,r,y)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(c[3]=r)}for(m!==0&&np(v,l,m,p,x),v.consume(l.events),r=-1;++r<l.events.length;){const S=l.events[r];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=CE(l.events,r))}return t}function Wu(t,l,r,i,s,o){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},ta(l.events,r[0])),t.add(r[0],0,[["exit",o,l]]));const m=ta(l.events,r[1]);if(o={type:c,start:Object.assign({},m),end:Object.assign({},m)},t.add(r[1],0,[["enter",o,l]]),r[2]!==0){const p=ta(l.events,r[2]),x=ta(l.events,r[3]),y={type:d,start:Object.assign({},p),end:Object.assign({},x)};if(t.add(r[2],0,[["enter",y,l]]),i!==2){const v=l.events[r[2]],S=l.events[r[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,z=r[3]-r[2]-1;t.add(C,z,[])}}t.add(r[3]+1,0,[["exit",y,l]])}return s!==void 0&&(o.end=Object.assign({},ta(l.events,s)),t.add(s,0,[["exit",o,l]]),o=void 0),o}function np(t,l,r,i,s){const o=[],c=ta(l.events,r);s&&(s.end=Object.assign({},c),o.push(["exit",s,l])),i.end=Object.assign({},c),o.push(["exit",i,l]),t.add(r+1,0,o)}function ta(t,l){const r=t[l],i=r[0]==="enter"?"start":"end";return r[1][i]}const jE={name:"tasklistCheck",tokenize:zE};function AE(){return{text:{91:jE}}}function zE(t,l,r){const i=this;return s;function s(m){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),o)}function o(m){return Xe(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),c):r(m)}function c(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):r(m)}function d(m){return ge(m)?l(m):Te(m)?t.check({tokenize:TE},l,r)(m):r(m)}}function TE(t,l,r){return Oe(t,i,"whitespace");function i(s){return s===null?r(s):l(s)}}function _E(t){return z3([lE(),hE(),SE(t),EE(),AE()])}const RE={};function DE(t){const l=this,r=t||RE,i=l.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(_E(r)),o.push(WC()),c.push(eE(r))}function OE({text:t}){const[l,r]=M.useState(!1),i=M.useCallback(async()=>{try{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),2e3)}catch{}},[t]);return g.jsx("button",{type:"button",onClick:i,className:"absolute top-2 right-2 p-1 rounded-md bg-herd-hover hover:bg-herd-active text-herd-code-fg/60 hover:text-herd-code-fg transition-colors",title:"Copy code",children:l?g.jsx(l3,{className:"w-3.5 h-3.5"}):g.jsx(s3,{className:"w-3.5 h-3.5"})})}function LE({children:t,className:l}){const r=String(t).replace(/\n$/,"");return g.jsxs("div",{className:"relative my-3",children:[g.jsx("pre",{className:"bg-herd-code-bg text-herd-code-fg rounded-lg p-3 text-xs font-mono overflow-x-auto",children:g.jsx("code",{className:l,children:r})}),g.jsx(OE,{text:r})]})}function UE({children:t}){return g.jsx("code",{className:"bg-herd-hover px-1.5 py-0.5 rounded text-xs font-mono text-herd-fg",children:t})}function HE({content:t,useSerif:l=!1}){const r={code(i){const{className:s,children:o}=i;return(s==null?void 0:s.startsWith("language-"))?g.jsx(LE,{className:s,children:o}):g.jsx(UE,{children:o})},pre({children:i}){return g.jsx(g.Fragment,{children:i})},a({href:i,children:s}){return g.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"text-herd-primary hover:underline",children:s})},h1({children:i}){return g.jsx("h1",{className:"text-lg font-semibold text-herd-fg mt-4 mb-2",children:i})},h2({children:i}){return g.jsx("h2",{className:"text-sm font-semibold text-herd-fg mt-3 mb-2",children:i})},h3({children:i}){return g.jsx("h3",{className:"text-sm font-medium text-herd-fg mt-3 mb-1",children:i})},h4({children:i}){return g.jsx("h4",{className:"text-sm font-medium text-herd-muted mt-2 mb-1",children:i})},p({children:i}){return g.jsx("p",{className:"text-sm text-herd-fg mb-2 last:mb-0",children:i})},ul({children:i}){return g.jsx("ul",{className:"list-disc list-inside text-sm text-herd-fg mb-2 ml-2",children:i})},ol({children:i}){return g.jsx("ol",{className:"list-decimal list-inside text-sm text-herd-fg mb-2 ml-2",children:i})},li({children:i}){return g.jsx("li",{className:"mb-0.5",children:i})},table({children:i}){return g.jsx("div",{className:"overflow-x-auto my-3",children:g.jsx("table",{className:"w-full text-sm",children:i})})},thead({children:i}){return g.jsx("thead",{children:i})},tbody({children:i}){return g.jsx("tbody",{className:"divide-y divide-herd-border",children:i})},tr({children:i}){return g.jsx("tr",{className:"border-b border-herd-border hover:bg-herd-hover transition-colors",children:i})},th({children:i}){return g.jsx("th",{className:"text-left py-2 px-3 text-xs text-herd-muted font-medium uppercase tracking-wide",children:i})},td({children:i}){return g.jsx("td",{className:"py-2 px-3 text-herd-fg",children:i})},blockquote({children:i}){return g.jsx("blockquote",{className:"border-l-2 border-herd-primary pl-3 my-2 text-sm text-herd-muted italic",children:i})},hr(){return g.jsx("hr",{className:"border-herd-border my-4"})},strong({children:i}){return g.jsx("strong",{className:"font-semibold",children:i})},em({children:i}){return g.jsx("em",{className:"italic",children:i})}};return g.jsx("div",{className:l?"font-serif":"font-sans",children:g.jsx(Sk,{remarkPlugins:[DE],components:r,children:t})})}function BE(t){switch(t){case"interval":return"Interval";case"cron":return"Cron";case"webhook":return"Webhook";case"chat":return"Chat"}}function ZE(t){return t.expression?t.expression:t.interval?t.interval:"-"}function lp(t){if(!t)return"-";const l=new Date(t),r=new Date;return l.toDateString()===r.toDateString()?l.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}):l.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function qE({schedule:t,onTrigger:l,onEnable:r,onDisable:i}){const s=t.status==="disabled";return g.jsxs("tr",{className:"hover:bg-herd-hover transition-colors",children:[g.jsx("td",{className:"py-2 px-3 text-herd-fg",children:g.jsx(mt,{to:`/agents/${encodeURIComponent(t.agentName)}`,className:"text-herd-primary hover:text-herd-primary-hover transition-colors",children:t.agentName})}),g.jsx("td",{className:"py-2 px-3 text-herd-fg",children:t.name}),g.jsx("td",{className:"py-2 px-3",children:g.jsx("span",{className:"inline-flex items-center bg-herd-hover rounded-lg px-2 py-0.5 text-[11px] font-medium text-herd-muted",children:BE(t.type)})}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs font-mono",children:ZE(t)}),g.jsx("td",{className:"py-2 px-3",children:g.jsx(sr,{status:t.status})}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs",children:lp(t.lastRunAt)}),g.jsx("td",{className:"py-2 px-3 text-herd-muted text-xs",children:lp(t.nextRunAt)}),g.jsx("td",{className:"py-2 px-3",children:g.jsxs("div",{className:"flex items-center gap-1.5",children:[g.jsxs("button",{onClick:()=>l(t.agentName,t.name),className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-2.5 py-1 text-[11px] font-medium transition-colors inline-flex items-center gap-1 disabled:opacity-50 disabled:cursor-not-allowed",title:"Trigger Now",children:[g.jsx(wi,{className:"w-3 h-3"}),"Trigger"]}),s?g.jsx("button",{onClick:()=>r(t.agentName,t.name),className:"hover:bg-herd-hover text-herd-muted hover:text-herd-status-running rounded-lg p-1.5 transition-colors",title:"Enable schedule",children:g.jsx(F8,{className:"w-3.5 h-3.5"})}):g.jsx("button",{onClick:()=>i(t.agentName,t.name),className:"hover:bg-herd-hover text-herd-muted hover:text-herd-status-error rounded-lg p-1.5 transition-colors",title:"Disable schedule",children:g.jsx(J8,{className:"w-3.5 h-3.5"})})]})})]})}function $E(){return g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[g.jsx(lf,{className:"w-12 h-12 text-herd-muted"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-herd-fg font-medium",children:"No schedules configured"}),g.jsx("p",{className:"text-xs text-herd-muted mt-1",children:"Schedules will appear here once agents have interval, cron, or webhook triggers defined"})]})]})}function VE({message:t,onRetry:l}){return g.jsxs("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs mb-4 flex items-center justify-between",children:[g.jsx("span",{children:t}),g.jsx("button",{onClick:l,className:"hover:underline font-medium ml-4",children:"Retry"})]})}function JE(){const{schedules:t,schedulesLoading:l,schedulesError:r}=g6(),{fetchSchedules:i,triggerSchedule:s,enableSchedule:o,disableSchedule:c}=y6();M.useEffect(()=>{i().catch(()=>{})},[i]);const d=(x,y)=>{s(x,y).catch(()=>{})},m=(x,y)=>{o(x,y).catch(()=>{})},p=(x,y)=>{c(x,y).catch(()=>{})};return l&&t.length===0&&!r?g.jsx(xt,{className:"p-6",children:g.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-8",children:[g.jsx(nl,{size:"lg"}),g.jsx("p",{className:"text-sm text-herd-muted",children:"Loading schedules..."})]})}):g.jsxs(xt,{className:"p-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h2",{className:"text-sm font-semibold text-herd-fg",children:"All Schedules"}),l&&t.length>0&&g.jsx(nl,{size:"sm"})]}),r&&g.jsx(VE,{message:r,onRetry:i}),t.length===0&&!l?g.jsx($E,{}):g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full text-sm",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"border-b border-herd-border text-[11px] text-herd-muted font-medium uppercase tracking-wide",children:[g.jsx("th",{className:"text-left py-2 px-3",children:"Agent"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Schedule"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Type"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Expression"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Status"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Last Run"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Next Run"}),g.jsx("th",{className:"text-left py-2 px-3",children:"Actions"})]})}),g.jsx("tbody",{className:"divide-y divide-herd-border",children:t.map(x=>g.jsx(qE,{schedule:x,onTrigger:d,onEnable:m,onDisable:p},`${x.agentName}:${x.name}`))})]})})]})}function IE({agentName:t,activeSessionId:l}){const r=gs(),{chatSessions:i,chatSessionsLoading:s,chatError:o}=Dp(),{fetchChatSessions:c,createChatSession:d,deleteChatSession:m}=bs(),[p,x]=M.useState(null),[y,v]=M.useState(null);M.useEffect(()=>{c(t)},[t,c]);const S=M.useCallback(async()=>{const E=await d(t);E&&r(`/agents/${encodeURIComponent(t)}/chat/${E}`)},[t,d,r]),C=M.useCallback((E,T)=>{E.preventDefault(),E.stopPropagation(),v(T)},[]),z=M.useCallback(async(E,T)=>{E.preventDefault(),E.stopPropagation(),x(T),v(null),await m(t,T),x(null),T===l&&r(`/agents/${encodeURIComponent(t)}/chat`)},[t,l,m,r]),j=M.useCallback(E=>{E.preventDefault(),E.stopPropagation(),v(null)},[]);return g.jsxs("div",{className:"w-[250px] border-r border-herd-border bg-herd-card flex flex-col h-full",children:[g.jsx("div",{className:"p-3 border-b border-herd-border",children:g.jsxs("button",{type:"button",onClick:S,className:"w-full bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-3 py-2 text-xs font-medium transition-colors flex items-center justify-center gap-2",children:[g.jsx(f3,{className:"w-4 h-4"}),"New Chat"]})}),g.jsx("div",{className:"flex-1 overflow-y-auto",children:s?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsx("div",{className:"w-5 h-5 border-2 border-herd-muted border-t-transparent rounded-full animate-spin"})}):o?g.jsx("div",{className:"p-3",children:g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs",children:o})}):i.length===0?g.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-herd-muted",children:[g.jsx(ia,{className:"w-8 h-8 opacity-50 mb-2"}),g.jsx("p",{className:"text-xs",children:"No conversations yet"})]}):g.jsx("div",{className:"py-2",children:i.map(E=>{const T=E.sessionId===l,D=E.sessionId===p,F=E.sessionId===y;return g.jsx(mt,{to:`/agents/${encodeURIComponent(t)}/chat/${E.sessionId}`,className:`group block mx-2 mb-1 px-3 py-2.5 rounded-lg transition-colors ${T?"bg-herd-active":"hover:bg-herd-hover"} ${D?"opacity-50":""}`,children:g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:`text-sm truncate ${T?"text-herd-fg font-medium":"text-herd-fg"}`,children:E.preview||"New conversation"}),g.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[g.jsx("span",{className:"text-[11px] text-herd-muted",children:d3(E.lastMessageAt)}),g.jsxs("span",{className:"text-[11px] text-herd-muted",children:[E.messageCount," msg",E.messageCount!==1?"s":""]})]})]}),F?g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("button",{type:"button",onClick:ee=>z(ee,E.sessionId),className:"text-herd-status-error hover:text-herd-status-error/80 p-1",title:"Confirm delete",children:g.jsx(rm,{className:"w-3.5 h-3.5"})}),g.jsx("button",{type:"button",onClick:j,className:"text-herd-muted hover:text-herd-fg text-[10px] px-1",children:"Cancel"})]}):g.jsx("button",{type:"button",onClick:ee=>C(ee,E.sessionId),className:"opacity-0 group-hover:opacity-100 text-herd-muted hover:text-herd-status-error p-1 transition-opacity",title:"Delete conversation",children:g.jsx(rm,{className:"w-3.5 h-3.5"})})]})},E.sessionId)})})})]})}function FE(t){const l=new Date(t),i=new Date().getTime()-l.getTime(),s=Math.floor(i/6e4),o=Math.floor(i/36e5),c=Math.floor(i/864e5);return s<1?"just now":s<60?`${s}m ago`:o<24?`${o}h ago`:c<7?`${c}d ago`:l.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function rp({message:t,isStreaming:l=!1}){const r=t.role==="user";return g.jsxs("div",{className:`flex flex-col ${r?"items-end":"items-start"} animate-[fadeSlideIn_150ms_ease-out]`,children:[g.jsx("div",{className:`max-w-[85%] px-4 py-2.5 ${r?"bg-herd-user-bubble text-herd-fg rounded-2xl rounded-br-md":"bg-herd-card border border-herd-border text-herd-fg rounded-2xl rounded-bl-md"}`,children:r?g.jsx("p",{className:"text-sm whitespace-pre-wrap",children:t.content}):g.jsxs("div",{className:l?"relative":"",children:[g.jsx(HE,{content:t.content,useSerif:!0}),l&&g.jsxs("span",{className:"inline-flex ml-1",children:[g.jsx("span",{className:"w-1 h-1 bg-herd-muted rounded-full animate-pulse"}),g.jsx("span",{className:"w-1 h-1 bg-herd-muted rounded-full animate-pulse ml-0.5 [animation-delay:150ms]"}),g.jsx("span",{className:"w-1 h-1 bg-herd-muted rounded-full animate-pulse ml-0.5 [animation-delay:300ms]"})]})]})}),!l&&g.jsx("span",{className:"text-[11px] text-herd-muted mt-1 px-1",children:FE(t.timestamp)})]})}function YE({agentName:t}){const{chatMessages:l,chatMessagesLoading:r,chatStreaming:i,chatStreamingContent:s}=K1(),o=M.useRef(null),c=M.useRef(l.length);if(M.useEffect(()=>{const m=o.current;if(!m)return;const p=m.scrollHeight-m.scrollTop-m.clientHeight<100;(l.length>c.current||i||p)&&(m.scrollTop=m.scrollHeight),c.current=l.length},[l,i,s]),r)return g.jsx("div",{className:"flex-1 flex items-center justify-center",children:g.jsxs("div",{className:"flex flex-col items-center gap-2 text-herd-muted",children:[g.jsx("div",{className:"w-5 h-5 border-2 border-herd-muted border-t-transparent rounded-full animate-spin"}),g.jsx("span",{className:"text-xs",children:"Loading messages..."})]})});if(l.length===0&&!i)return g.jsx("div",{className:"flex-1 flex items-center justify-center",children:g.jsxs("div",{className:"flex flex-col items-center gap-3 text-herd-muted",children:[g.jsx(rf,{className:"w-12 h-12 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Send a message to start the conversation"})]})});const d=i?{role:"assistant",content:s||"...",timestamp:new Date().toISOString()}:null;return g.jsx("div",{ref:o,className:"flex-1 overflow-y-auto px-4 py-4",children:g.jsxs("div",{className:"max-w-2xl mx-auto space-y-4",children:[l.map((m,p)=>g.jsx(rp,{message:m},`${m.timestamp}-${p}`)),d&&g.jsx(rp,{message:d,isStreaming:!0})]})})}function GE({agentName:t,sessionId:l}){const[r,i]=M.useState(""),s=M.useRef(null),{chatStreaming:o}=K1(),{addUserMessage:c}=bs();M.useEffect(()=>{const y=s.current;if(!y)return;y.style.height="auto";const v=Math.min(y.scrollHeight,200);y.style.height=`${v}px`},[r]);const d=r.trim().length>0&&!o,m=M.useCallback(()=>{if(!d)return;const y=r.trim();i(""),c(y);const v=window.__herdWsClient;v&&v.send({type:"chat:send",payload:{agentName:t,sessionId:l,message:y}})},[d,r,c,t,l]),p=M.useCallback(y=>{y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),m())},[m]),x=M.useCallback(y=>{i(y.target.value)},[]);return g.jsx("div",{className:"border-t border-herd-border bg-herd-card p-4",children:g.jsxs("div",{className:"max-w-2xl mx-auto",children:[g.jsxs("div",{className:"relative flex items-end gap-2",children:[g.jsx("textarea",{ref:s,value:r,onChange:x,onKeyDown:p,placeholder:`Send a message to ${t}...`,rows:1,className:"flex-1 bg-herd-input-bg border border-herd-border rounded-lg px-3 py-2.5 text-sm text-herd-fg placeholder:text-herd-muted focus:outline-none focus:border-herd-primary/60 transition-colors resize-none",style:{minHeight:"42px",maxHeight:"200px"}}),g.jsx("button",{type:"button",onClick:m,disabled:!d,className:`flex-shrink-0 w-9 h-9 rounded-lg flex items-center justify-center transition-colors ${d?"bg-herd-primary hover:bg-herd-primary-hover text-white":"bg-herd-hover text-herd-muted cursor-not-allowed"}`,title:"Send message",children:g.jsx(t8,{className:"w-4 h-4"})})]}),g.jsx("p",{className:"text-[11px] text-herd-muted mt-2 text-center",children:"Press Enter to send, Shift+Enter for new line"})]})})}function ap(){const{name:t,sessionId:l}=J1(),r=gs(),{activeChatSessionId:i,chatError:s}=K1(),{chatSessions:o}=Dp(),{fetchChatMessages:c,setActiveChatSession:d,clearChatState:m,createChatSession:p}=bs();if(M.useEffect(()=>()=>{m()},[t,m]),M.useEffect(()=>{l&&t?c(t,l):d(null)},[l,t,c,d]),!t)return g.jsx("div",{className:"flex items-center justify-center h-full text-herd-muted",children:g.jsx("p",{className:"text-sm",children:"Agent not found"})});const x=async()=>{const y=await p(t);y&&r(`/agents/${encodeURIComponent(t)}/chat/${y}`)};return g.jsxs("div",{className:"flex h-full",children:[g.jsx(IE,{agentName:t,activeSessionId:l??null}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[g.jsxs("div",{className:"h-12 border-b border-herd-border bg-herd-card flex items-center px-4 gap-3",children:[g.jsx(mt,{to:`/agents/${encodeURIComponent(t)}`,className:"text-herd-muted hover:text-herd-fg transition-colors",title:"Back to agent",children:g.jsx(nf,{className:"w-4 h-4"})}),g.jsxs("h1",{className:"text-sm font-medium text-herd-fg",children:["Chat with ",t]}),l&&g.jsx("span",{className:"text-[11px] text-herd-muted font-mono",children:l.slice(0,8)})]}),l?g.jsxs(g.Fragment,{children:[s&&g.jsx("div",{className:"px-4 pt-4",children:g.jsx("div",{className:"max-w-2xl mx-auto",children:g.jsx("div",{className:"bg-herd-status-error/10 border border-herd-status-error/20 text-herd-status-error rounded-lg px-3 py-2 text-xs",children:s})})}),g.jsx(YE,{agentName:t}),g.jsx(GE,{agentName:t,sessionId:l})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center",children:g.jsxs("div",{className:"flex flex-col items-center gap-4 text-center px-4",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-herd-primary-muted flex items-center justify-center",children:g.jsx(rf,{className:"w-8 h-8 text-herd-primary"})}),g.jsxs("div",{children:[g.jsxs("h2",{className:"text-lg font-semibold text-herd-fg mb-1",children:["Chat with ",t]}),g.jsx("p",{className:"text-sm text-herd-muted max-w-sm",children:o.length>0?"Select a conversation from the sidebar or start a new one.":"Start a new conversation to chat with this agent."})]}),g.jsx("button",{type:"button",onClick:x,className:"bg-herd-primary hover:bg-herd-primary-hover text-white rounded-lg px-4 py-2 text-sm font-medium transition-colors",children:"New Chat"})]})})]})]})}function XE(t){switch(t){case"success":return g.jsx(u3,{className:"w-4 h-4 text-herd-status-running flex-shrink-0"});case"error":return g.jsx(m8,{className:"w-4 h-4 text-herd-status-error flex-shrink-0"});case"info":return g.jsx(T8,{className:"w-4 h-4 text-herd-primary flex-shrink-0"})}}function QE(t){switch(t){case"success":return"bg-herd-status-running/10 border-herd-status-running/20";case"error":return"bg-herd-status-error/10 border-herd-status-error/20";case"info":return"bg-herd-primary-muted border-herd-primary/20"}}function KE({toast:t,onDismiss:l}){return g.jsxs("div",{className:`
|
|
370
|
+
flex items-center gap-2 px-3 py-2 rounded-[10px] border text-sm text-herd-fg
|
|
371
|
+
animate-fade-slide-in min-w-[240px] max-w-[360px]
|
|
372
|
+
${QE(t.type)}
|
|
373
|
+
`,children:[XE(t.type),g.jsx("span",{className:"flex-1 text-xs",children:t.message}),g.jsx("button",{onClick:()=>l(t.id),className:"hover:bg-herd-hover rounded p-0.5 transition-colors flex-shrink-0","aria-label":"Dismiss",children:g.jsx(Es,{className:"w-3.5 h-3.5 text-herd-muted"})})]})}function PE(){const t=x6(),{removeToast:l}=b6();return t.length===0?null:g.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2",children:t.map(r=>g.jsx(KE,{toast:r,onDismiss:l},r.id))})}function WE(){return g.jsxs("div",{className:"p-4 h-full overflow-auto",children:[g.jsx("h1",{className:"text-lg font-semibold text-herd-fg mb-4",children:"Job History"}),g.jsx(p3,{})]})}function eM(){return g.jsxs("div",{className:"p-4 h-full overflow-auto",children:[g.jsx("h1",{className:"text-lg font-semibold text-herd-fg mb-4",children:"Schedules"}),g.jsx(JE,{})]})}function tM(){return v6(),Op(),g.jsxs(_l,{children:[g.jsx(rb,{children:g.jsxs(Iy,{children:[g.jsx(Dl,{path:"/",element:g.jsx(_l,{children:g.jsx(Sb,{})})}),g.jsx(Dl,{path:"/agents/:name",element:g.jsx(_l,{children:g.jsx(hm,{})})}),g.jsx(Dl,{path:"/agents/:name/:tab",element:g.jsx(_l,{children:g.jsx(hm,{})})}),g.jsx(Dl,{path:"/agents/:name/chat",element:g.jsx(_l,{children:g.jsx(ap,{})})}),g.jsx(Dl,{path:"/agents/:name/chat/:sessionId",element:g.jsx(_l,{children:g.jsx(ap,{})})}),g.jsx(Dl,{path:"/jobs",element:g.jsx(_l,{children:g.jsx(WE,{})})}),g.jsx(Dl,{path:"/schedules",element:g.jsx(_l,{children:g.jsx(eM,{})})})]})}),g.jsx(PE,{})]})}Bx();const v4=document.getElementById("root");if(!v4)throw new Error("Root element not found");G5.createRoot(v4).render(g.jsx(M.StrictMode,{children:g.jsx(px,{children:g.jsx(tM,{})})}));
|