@creative-dswork/dscode 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var Mp=Object.defineProperty;var bp=(e,t,n)=>t in e?Mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Au=(e,t,n)=>bp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var gi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F0={exports:{}},Wi={},R0={exports:{}},ce={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Al=Symbol.for("react.element"),Np=Symbol.for("react.portal"),Hp=Symbol.for("react.fragment"),Tp=Symbol.for("react.strict_mode"),Lp=Symbol.for("react.profiler"),Ip=Symbol.for("react.provider"),Pp=Symbol.for("react.context"),jp=Symbol.for("react.forward_ref"),_p=Symbol.for("react.suspense"),Fp=Symbol.for("react.memo"),Rp=Symbol.for("react.lazy"),Mu=Symbol.iterator;function zp(e){return e===null||typeof e!="object"?null:(e=Mu&&e[Mu]||e["@@iterator"],typeof e=="function"?e:null)}var z0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D0=Object.assign,V0={};function Nr(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||z0}Nr.prototype.isReactComponent={};Nr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z0(){}Z0.prototype=Nr.prototype;function ds(e,t,n){this.props=e,this.context=t,this.refs=V0,this.updater=n||z0}var ps=ds.prototype=new Z0;ps.constructor=ds;D0(ps,Nr.prototype);ps.isPureReactComponent=!0;var bu=Array.isArray,O0=Object.prototype.hasOwnProperty,hs={current:null},$0={key:!0,ref:!0,__self:!0,__source:!0};function B0(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)O0.call(t,r)&&!$0.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];l.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:Al,type:e,key:i,ref:o,props:l,_owner:hs.current}}function Dp(e,t){return{$$typeof:Al,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===Al}function Vp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Nu=/\/+/g;function go(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Vp(""+e.key):t.toString(36)}function ni(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Al:case Np:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+go(o,0):r,bu(l)?(n="",e!=null&&(n=e.replace(Nu,"$&/")+"/"),ni(l,t,n,"",function(u){return u})):l!=null&&(ms(l)&&(l=Dp(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(Nu,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",bu(e))for(var a=0;a<e.length;a++){i=e[a];var s=r+go(i,a);o+=ni(i,t,n,s,l)}else if(s=zp(e),typeof s=="function")for(e=s.call(e),a=0;!(i=e.next()).done;)i=i.value,s=r+go(i,a++),o+=ni(i,t,n,s,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Pl(e,t,n){if(e==null)return e;var r=[],l=0;return ni(e,r,"","",function(i){return t.call(n,i,l++)}),r}function Zp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var lt={current:null},ri={transition:null},Op={ReactCurrentDispatcher:lt,ReactCurrentBatchConfig:ri,ReactCurrentOwner:hs};function U0(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:Pl,forEach:function(e,t,n){Pl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Pl(e,function(){t++}),t},toArray:function(e){return Pl(e,function(t){return t})||[]},only:function(e){if(!ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Nr;ce.Fragment=Hp;ce.Profiler=Lp;ce.PureComponent=ds;ce.StrictMode=Tp;ce.Suspense=_p;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Op;ce.act=U0;ce.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=D0({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=hs.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)O0.call(t,s)&&!$0.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Al,type:e.type,key:l,ref:i,props:r,_owner:o}};ce.createContext=function(e){return e={$$typeof:Pp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ip,_context:e},e.Consumer=e};ce.createElement=B0;ce.createFactory=function(e){var t=B0.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:jp,render:e}};ce.isValidElement=ms;ce.lazy=function(e){return{$$typeof:Rp,_payload:{_status:-1,_result:e},_init:Zp}};ce.memo=function(e,t){return{$$typeof:Fp,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=ri.transition;ri.transition={};try{e()}finally{ri.transition=t}};ce.unstable_act=U0;ce.useCallback=function(e,t){return lt.current.useCallback(e,t)};ce.useContext=function(e){return lt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return lt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return lt.current.useEffect(e,t)};ce.useId=function(){return lt.current.useId()};ce.useImperativeHandle=function(e,t,n){return lt.current.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return lt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return lt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return lt.current.useMemo(e,t)};ce.useReducer=function(e,t,n){return lt.current.useReducer(e,t,n)};ce.useRef=function(e){return lt.current.useRef(e)};ce.useState=function(e){return lt.current.useState(e)};ce.useSyncExternalStore=function(e,t,n){return lt.current.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return lt.current.useTransition()};ce.version="18.3.1";R0.exports=ce;var c=R0.exports;const W0=fs(c);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 $p=c,Bp=Symbol.for("react.element"),Up=Symbol.for("react.fragment"),Wp=Object.prototype.hasOwnProperty,Qp=$p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Xp={key:!0,ref:!0,__self:!0,__source:!0};function Q0(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Wp.call(t,r)&&!Xp.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Bp,type:e,key:i,ref:o,props:l,_owner:Qp.current}}Wi.Fragment=Up;Wi.jsx=Q0;Wi.jsxs=Q0;F0.exports=Wi;var m=F0.exports,oa={},X0={exports:{}},St={},Y0={exports:{}},q0={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(e){function t(Z,q){var k=Z.length;Z.push(q);e:for(;0<k;){var le=k-1>>>1,de=Z[le];if(0<l(de,q))Z[le]=q,Z[k]=de,k=le;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var q=Z[0],k=Z.pop();if(k!==q){Z[0]=k;e:for(var le=0,de=Z.length,E=de>>>1;le<E;){var ye=2*(le+1)-1,Re=Z[ye],ge=ye+1,_e=Z[ge];if(0>l(Re,k))ge<de&&0>l(_e,Re)?(Z[le]=_e,Z[ge]=k,le=ge):(Z[le]=Re,Z[ye]=k,le=ye);else if(ge<de&&0>l(_e,k))Z[le]=_e,Z[ge]=k,le=ge;else break e}}return q}function l(Z,q){var k=Z.sortIndex-q.sortIndex;return k!==0?k:Z.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],d=1,f=null,h=3,p=!1,x=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(Z){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=Z)r(u),q.sortIndex=q.expirationTime,t(s,q);else break;q=n(u)}}function N(Z){if(S=!1,v(Z),!x)if(n(s)!==null)x=!0,fe(j);else{var q=n(u);q!==null&&b(N,q.startTime-Z)}}function j(Z,q){x=!1,S&&(S=!1,g(F),F=-1),p=!0;var k=h;try{for(v(q),f=n(s);f!==null&&(!(f.expirationTime>q)||Z&&!O());){var le=f.callback;if(typeof le=="function"){f.callback=null,h=f.priorityLevel;var de=le(f.expirationTime<=q);q=e.unstable_now(),typeof de=="function"?f.callback=de:f===n(s)&&r(s),v(q)}else r(s);f=n(s)}if(f!==null)var E=!0;else{var ye=n(u);ye!==null&&b(N,ye.startTime-q),E=!1}return E}finally{f=null,h=k,p=!1}}var w=!1,_=null,F=-1,X=5,M=-1;function O(){return!(e.unstable_now()-M<X)}function U(){if(_!==null){var Z=e.unstable_now();M=Z;var q=!0;try{q=_(!0,Z)}finally{q?oe():(w=!1,_=null)}}else w=!1}var oe;if(typeof y=="function")oe=function(){y(U)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,J=ie.port2;ie.port1.onmessage=U,oe=function(){J.postMessage(null)}}else oe=function(){T(U,0)};function fe(Z){_=Z,w||(w=!0,oe())}function b(Z,q){F=T(function(){Z(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Z){Z.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,fe(j))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(Z){switch(h){case 1:case 2:case 3:var q=3;break;default:q=h}var k=h;h=q;try{return Z()}finally{h=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,q){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var k=h;h=Z;try{return q()}finally{h=k}},e.unstable_scheduleCallback=function(Z,q,k){var le=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?le+k:le):k=le,Z){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=k+de,Z={id:d++,callback:q,priorityLevel:Z,startTime:k,expirationTime:de,sortIndex:-1},k>le?(Z.sortIndex=k,t(u,Z),n(s)===null&&Z===n(u)&&(S?(g(F),F=-1):S=!0,b(N,k-le))):(Z.sortIndex=de,t(s,Z),x||p||(x=!0,fe(j))),Z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(Z){var q=h;return function(){var k=h;h=q;try{return Z.apply(this,arguments)}finally{h=k}}}})(q0);Y0.exports=q0;var Yp=Y0.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 qp=c,wt=Yp;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K0=new Set,ol={};function Wn(e,t){kr(e,t),kr(e+"Capture",t)}function kr(e,t){for(ol[e]=t,e=0;e<t.length;e++)K0.add(t[e])}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aa=Object.prototype.hasOwnProperty,Kp=/^[: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]*$/,Hu={},Tu={};function Gp(e){return aa.call(Tu,e)?!0:aa.call(Hu,e)?!1:Kp.test(e)?Tu[e]=!0:(Hu[e]=!0,!1)}function Jp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eh(e,t,n,r){if(t===null||typeof t>"u"||Jp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var gs=/[\-:]([a-z])/g;function ys(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gs,ys);Qe[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gs,ys);Qe[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gs,ys);Qe[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function xs(e,t,n,r){var l=Qe.hasOwnProperty(t)?Qe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eh(t,n,l,r)&&(n=null),r||l===null?Gp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=qp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,jl=Symbol.for("react.element"),tr=Symbol.for("react.portal"),nr=Symbol.for("react.fragment"),vs=Symbol.for("react.strict_mode"),sa=Symbol.for("react.profiler"),G0=Symbol.for("react.provider"),J0=Symbol.for("react.context"),ks=Symbol.for("react.forward_ref"),ua=Symbol.for("react.suspense"),ca=Symbol.for("react.suspense_list"),ws=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),e1=Symbol.for("react.offscreen"),Lu=Symbol.iterator;function Pr(e){return e===null||typeof e!="object"?null:(e=Lu&&e[Lu]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,yo;function Br(e){if(yo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||""}return`
|
|
34
|
+
`+yo+e}var xo=!1;function vo(e,t){if(!e||xo)return"";xo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var l=u.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=l.length-1,a=i.length-1;1<=o&&0<=a&&l[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==i[a]){var s=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{xo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Br(e):""}function th(e){switch(e.tag){case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function fa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nr:return"Fragment";case tr:return"Portal";case sa:return"Profiler";case vs:return"StrictMode";case ua:return"Suspense";case ca:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J0:return(e.displayName||"Context")+".Consumer";case G0:return(e._context.displayName||"Context")+".Provider";case ks:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ws:return t=e.displayName||null,t!==null?t:fa(e.type)||"Memo";case fn:t=e._payload,e=e._init;try{return fa(e(t))}catch{}}return null}function nh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fa(t);case 8:return t===vs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function An(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rh(e){var t=t1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=rh(e))}function n1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function da(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=An(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function r1(e,t){t=t.checked,t!=null&&xs(e,"checked",t,!1)}function pa(e,t){r1(e,t);var n=An(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ha(e,t.type,n):t.hasOwnProperty("defaultValue")&&ha(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ha(e,t,n){(t!=="number"||yi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ur=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+An(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ma(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ju(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(Ur(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:An(n)}}function l1(e,t){var n=An(t.value),r=An(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function _u(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function i1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ga(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?i1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fl,o1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fl=Fl||document.createElement("div"),Fl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},lh=["Webkit","ms","Moz","O"];Object.keys(Xr).forEach(function(e){lh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xr[t]=Xr[e]})});function a1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xr.hasOwnProperty(e)&&Xr[e]?(""+t).trim():t+"px"}function s1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=a1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var ih=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ya(e,t){if(t){if(ih[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function xa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 va=null;function Ss(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ka=null,hr=null,mr=null;function Fu(e){if(e=Nl(e)){if(typeof ka!="function")throw Error(D(280));var t=e.stateNode;t&&(t=Ki(t),ka(e.stateNode,e.type,t))}}function u1(e){hr?mr?mr.push(e):mr=[e]:hr=e}function c1(){if(hr){var e=hr,t=mr;if(mr=hr=null,Fu(e),t)for(e=0;e<t.length;e++)Fu(t[e])}}function f1(e,t){return e(t)}function d1(){}var ko=!1;function p1(e,t,n){if(ko)return e(t,n);ko=!0;try{return f1(e,t,n)}finally{ko=!1,(hr!==null||mr!==null)&&(d1(),c1())}}function sl(e,t){var n=e.stateNode;if(n===null)return null;var r=Ki(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var wa=!1;if(Gt)try{var jr={};Object.defineProperty(jr,"passive",{get:function(){wa=!0}}),window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,jr)}catch{wa=!1}function oh(e,t,n,r,l,i,o,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Yr=!1,xi=null,vi=!1,Sa=null,ah={onError:function(e){Yr=!0,xi=e}};function sh(e,t,n,r,l,i,o,a,s){Yr=!1,xi=null,oh.apply(ah,arguments)}function uh(e,t,n,r,l,i,o,a,s){if(sh.apply(this,arguments),Yr){if(Yr){var u=xi;Yr=!1,xi=null}else throw Error(D(198));vi||(vi=!0,Sa=u)}}function Qn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ru(e){if(Qn(e)!==e)throw Error(D(188))}function ch(e){var t=e.alternate;if(!t){if(t=Qn(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Ru(l),e;if(i===r)return Ru(l),t;i=i.sibling}throw Error(D(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function m1(e){return e=ch(e),e!==null?g1(e):null}function g1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=g1(e);if(t!==null)return t;e=e.sibling}return null}var y1=wt.unstable_scheduleCallback,zu=wt.unstable_cancelCallback,fh=wt.unstable_shouldYield,dh=wt.unstable_requestPaint,Fe=wt.unstable_now,ph=wt.unstable_getCurrentPriorityLevel,Es=wt.unstable_ImmediatePriority,x1=wt.unstable_UserBlockingPriority,ki=wt.unstable_NormalPriority,hh=wt.unstable_LowPriority,v1=wt.unstable_IdlePriority,Qi=null,Bt=null;function mh(e){if(Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Qi,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:xh,gh=Math.log,yh=Math.LN2;function xh(e){return e>>>=0,e===0?32:31-(gh(e)/yh|0)|0}var Rl=64,zl=4194304;function Wr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Wr(a):(i&=o,i!==0&&(r=Wr(i)))}else o=n&~l,o!==0?r=Wr(o):i!==0&&(r=Wr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_t(t),l=1<<n,r|=e[n],t&=~l;return r}function vh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-_t(i),a=1<<o,s=l[o];s===-1?(!(a&n)||a&r)&&(l[o]=vh(a,t)):s<=t&&(e.expiredLanes|=a),i&=~a}}function Ea(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function k1(){var e=Rl;return Rl<<=1,!(Rl&4194240)&&(Rl=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ml(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function wh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-_t(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Cs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var xe=0;function w1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var S1,As,E1,C1,A1,Ca=!1,Dl=[],yn=null,xn=null,vn=null,ul=new Map,cl=new Map,pn=[],Sh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Du(e,t){switch(e){case"focusin":case"focusout":yn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":vn=null;break;case"pointerover":case"pointerout":ul.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cl.delete(t.pointerId)}}function _r(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Nl(t),t!==null&&As(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Eh(e,t,n,r,l){switch(t){case"focusin":return yn=_r(yn,e,t,n,r,l),!0;case"dragenter":return xn=_r(xn,e,t,n,r,l),!0;case"mouseover":return vn=_r(vn,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return ul.set(i,_r(ul.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,cl.set(i,_r(cl.get(i)||null,e,t,n,r,l)),!0}return!1}function M1(e){var t=_n(e.target);if(t!==null){var n=Qn(t);if(n!==null){if(t=n.tag,t===13){if(t=h1(n),t!==null){e.blockedOn=t,A1(e.priority,function(){E1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function li(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Aa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);va=r,n.target.dispatchEvent(r),va=null}else return t=Nl(n),t!==null&&As(t),e.blockedOn=n,!1;t.shift()}return!0}function Vu(e,t,n){li(e)&&n.delete(t)}function Ch(){Ca=!1,yn!==null&&li(yn)&&(yn=null),xn!==null&&li(xn)&&(xn=null),vn!==null&&li(vn)&&(vn=null),ul.forEach(Vu),cl.forEach(Vu)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ca||(Ca=!0,wt.unstable_scheduleCallback(wt.unstable_NormalPriority,Ch)))}function fl(e){function t(l){return Fr(l,e)}if(0<Dl.length){Fr(Dl[0],e);for(var n=1;n<Dl.length;n++){var r=Dl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(yn!==null&&Fr(yn,e),xn!==null&&Fr(xn,e),vn!==null&&Fr(vn,e),ul.forEach(t),cl.forEach(t),n=0;n<pn.length;n++)r=pn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<pn.length&&(n=pn[0],n.blockedOn===null);)M1(n),n.blockedOn===null&&pn.shift()}var gr=nn.ReactCurrentBatchConfig,Si=!0;function Ah(e,t,n,r){var l=xe,i=gr.transition;gr.transition=null;try{xe=1,Ms(e,t,n,r)}finally{xe=l,gr.transition=i}}function Mh(e,t,n,r){var l=xe,i=gr.transition;gr.transition=null;try{xe=4,Ms(e,t,n,r)}finally{xe=l,gr.transition=i}}function Ms(e,t,n,r){if(Si){var l=Aa(e,t,n,r);if(l===null)Lo(e,t,r,Ei,n),Du(e,r);else if(Eh(l,e,t,n,r))r.stopPropagation();else if(Du(e,r),t&4&&-1<Sh.indexOf(e)){for(;l!==null;){var i=Nl(l);if(i!==null&&S1(i),i=Aa(e,t,n,r),i===null&&Lo(e,t,r,Ei,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Lo(e,t,r,null,n)}}var Ei=null;function Aa(e,t,n,r){if(Ei=null,e=Ss(r),e=_n(e),e!==null)if(t=Qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=h1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ei=e,null}function b1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ph()){case Es:return 1;case x1:return 4;case ki:case hh:return 16;case v1:return 536870912;default:return 16}default:return 16}}var mn=null,bs=null,ii=null;function N1(){if(ii)return ii;var e,t=bs,n=t.length,r,l="value"in mn?mn.value:mn.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return ii=l.slice(e,1<r?1-r:void 0)}function oi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vl(){return!0}function Zu(){return!1}function Et(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vl:Zu,this.isPropagationStopped=Zu,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vl)},persist:function(){},isPersistent:Vl}),t}var Hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=Et(Hr),bl=Le({},Hr,{view:0,detail:0}),bh=Et(bl),So,Eo,Rr,Xi=Le({},bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hs,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!==Rr&&(Rr&&e.type==="mousemove"?(So=e.screenX-Rr.screenX,Eo=e.screenY-Rr.screenY):Eo=So=0,Rr=e),So)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Ou=Et(Xi),Nh=Le({},Xi,{dataTransfer:0}),Hh=Et(Nh),Th=Le({},bl,{relatedTarget:0}),Co=Et(Th),Lh=Le({},Hr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ih=Et(Lh),Ph=Le({},Hr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jh=Et(Ph),_h=Le({},Hr,{data:0}),$u=Et(_h),Fh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rh={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"},zh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zh[e])?!!t[e]:!1}function Hs(){return Dh}var Vh=Le({},bl,{key:function(e){if(e.key){var t=Fh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hs,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zh=Et(Vh),Oh=Le({},Xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bu=Et(Oh),$h=Le({},bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hs}),Bh=Et($h),Uh=Le({},Hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wh=Et(Uh),Qh=Le({},Xi,{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}),Xh=Et(Qh),Yh=[9,13,27,32],Ts=Gt&&"CompositionEvent"in window,qr=null;Gt&&"documentMode"in document&&(qr=document.documentMode);var qh=Gt&&"TextEvent"in window&&!qr,H1=Gt&&(!Ts||qr&&8<qr&&11>=qr),Uu=" ",Wu=!1;function T1(e,t){switch(e){case"keyup":return Yh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function Kh(e,t){switch(e){case"compositionend":return L1(t);case"keypress":return t.which!==32?null:(Wu=!0,Uu);case"textInput":return e=t.data,e===Uu&&Wu?null:e;default:return null}}function Gh(e,t){if(rr)return e==="compositionend"||!Ts&&T1(e,t)?(e=N1(),ii=bs=mn=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return H1&&t.locale!=="ko"?null:t.data;default:return null}}var Jh={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 Qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jh[e.type]:t==="textarea"}function I1(e,t,n,r){u1(r),t=Ci(t,"onChange"),0<t.length&&(n=new Ns("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kr=null,dl=null;function em(e){$1(e,0)}function Yi(e){var t=or(e);if(n1(t))return e}function tm(e,t){if(e==="change")return t}var P1=!1;if(Gt){var Ao;if(Gt){var Mo="oninput"in document;if(!Mo){var Xu=document.createElement("div");Xu.setAttribute("oninput","return;"),Mo=typeof Xu.oninput=="function"}Ao=Mo}else Ao=!1;P1=Ao&&(!document.documentMode||9<document.documentMode)}function Yu(){Kr&&(Kr.detachEvent("onpropertychange",j1),dl=Kr=null)}function j1(e){if(e.propertyName==="value"&&Yi(dl)){var t=[];I1(t,dl,e,Ss(e)),p1(em,t)}}function nm(e,t,n){e==="focusin"?(Yu(),Kr=t,dl=n,Kr.attachEvent("onpropertychange",j1)):e==="focusout"&&Yu()}function rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(dl)}function lm(e,t){if(e==="click")return Yi(t)}function im(e,t){if(e==="input"||e==="change")return Yi(t)}function om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:om;function pl(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!aa.call(t,l)||!zt(e[l],t[l]))return!1}return!0}function qu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ku(e,t){var n=qu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qu(n)}}function _1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function F1(){for(var e=window,t=yi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yi(e.document)}return t}function Ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function am(e){var t=F1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_1(n.ownerDocument.documentElement,n)){if(r!==null&&Ls(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ku(n,i);var o=Ku(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sm=Gt&&"documentMode"in document&&11>=document.documentMode,lr=null,Ma=null,Gr=null,ba=!1;function Gu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ba||lr==null||lr!==yi(r)||(r=lr,"selectionStart"in r&&Ls(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&pl(Gr,r)||(Gr=r,r=Ci(Ma,"onSelect"),0<r.length&&(t=new Ns("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=lr)))}function Zl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ir={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},bo={},R1={};Gt&&(R1=document.createElement("div").style,"AnimationEvent"in window||(delete ir.animationend.animation,delete ir.animationiteration.animation,delete ir.animationstart.animation),"TransitionEvent"in window||delete ir.transitionend.transition);function qi(e){if(bo[e])return bo[e];if(!ir[e])return e;var t=ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in R1)return bo[e]=t[n];return e}var z1=qi("animationend"),D1=qi("animationiteration"),V1=qi("animationstart"),Z1=qi("transitionend"),O1=new Map,Ju="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bn(e,t){O1.set(e,t),Wn(t,[e])}for(var No=0;No<Ju.length;No++){var Ho=Ju[No],um=Ho.toLowerCase(),cm=Ho[0].toUpperCase()+Ho.slice(1);bn(um,"on"+cm)}bn(z1,"onAnimationEnd");bn(D1,"onAnimationIteration");bn(V1,"onAnimationStart");bn("dblclick","onDoubleClick");bn("focusin","onFocus");bn("focusout","onBlur");bn(Z1,"onTransitionEnd");kr("onMouseEnter",["mouseout","mouseover"]);kr("onMouseLeave",["mouseout","mouseover"]);kr("onPointerEnter",["pointerout","pointerover"]);kr("onPointerLeave",["pointerout","pointerover"]);Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="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(" "),fm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function ec(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uh(r,t,void 0,e),e.currentTarget=null}function $1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==i&&l.isPropagationStopped())break e;ec(l,a,u),i=s}else for(o=0;o<r.length;o++){if(a=r[o],s=a.instance,u=a.currentTarget,a=a.listener,s!==i&&l.isPropagationStopped())break e;ec(l,a,u),i=s}}}if(vi)throw e=Sa,vi=!1,Sa=null,e}function Ae(e,t){var n=t[Ia];n===void 0&&(n=t[Ia]=new Set);var r=e+"__bubble";n.has(r)||(B1(t,e,2,!1),n.add(r))}function To(e,t,n){var r=0;t&&(r|=4),B1(n,e,r,t)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function hl(e){if(!e[Ol]){e[Ol]=!0,K0.forEach(function(n){n!=="selectionchange"&&(fm.has(n)||To(n,!1,e),To(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ol]||(t[Ol]=!0,To("selectionchange",!1,t))}}function B1(e,t,n,r){switch(b1(t)){case 1:var l=Ah;break;case 4:l=Mh;break;default:l=Ms}n=l.bind(null,t,n,e),l=void 0,!wa||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Lo(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;o=o.return}for(;a!==null;){if(o=_n(a),o===null)return;if(s=o.tag,s===5||s===6){r=i=o;continue e}a=a.parentNode}}r=r.return}p1(function(){var u=i,d=Ss(n),f=[];e:{var h=O1.get(e);if(h!==void 0){var p=Ns,x=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":p=Zh;break;case"focusin":x="focus",p=Co;break;case"focusout":x="blur",p=Co;break;case"beforeblur":case"afterblur":p=Co;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Ou;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Bh;break;case z1:case D1:case V1:p=Ih;break;case Z1:p=Wh;break;case"scroll":p=bh;break;case"wheel":p=Xh;break;case"copy":case"cut":case"paste":p=jh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Bu}var S=(t&4)!==0,T=!S&&e==="scroll",g=S?h!==null?h+"Capture":null:h;S=[];for(var y=u,v;y!==null;){v=y;var N=v.stateNode;if(v.tag===5&&N!==null&&(v=N,g!==null&&(N=sl(y,g),N!=null&&S.push(ml(y,N,v)))),T)break;y=y.return}0<S.length&&(h=new p(h,x,null,n,d),f.push({event:h,listeners:S}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==va&&(x=n.relatedTarget||n.fromElement)&&(_n(x)||x[Jt]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=u,x=x?_n(x):null,x!==null&&(T=Qn(x),x!==T||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=u),p!==x)){if(S=Ou,N="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(S=Bu,N="onPointerLeave",g="onPointerEnter",y="pointer"),T=p==null?h:or(p),v=x==null?h:or(x),h=new S(N,y+"leave",p,n,d),h.target=T,h.relatedTarget=v,N=null,_n(d)===u&&(S=new S(g,y+"enter",x,n,d),S.target=v,S.relatedTarget=T,N=S),T=N,p&&x)t:{for(S=p,g=x,y=0,v=S;v;v=qn(v))y++;for(v=0,N=g;N;N=qn(N))v++;for(;0<y-v;)S=qn(S),y--;for(;0<v-y;)g=qn(g),v--;for(;y--;){if(S===g||g!==null&&S===g.alternate)break t;S=qn(S),g=qn(g)}S=null}else S=null;p!==null&&tc(f,h,p,S,!1),x!==null&&T!==null&&tc(f,T,x,S,!0)}}e:{if(h=u?or(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=tm;else if(Qu(h))if(P1)j=im;else{j=rm;var w=nm}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=lm);if(j&&(j=j(e,u))){I1(f,j,n,d);break e}w&&w(e,h,u),e==="focusout"&&(w=h._wrapperState)&&w.controlled&&h.type==="number"&&ha(h,"number",h.value)}switch(w=u?or(u):window,e){case"focusin":(Qu(w)||w.contentEditable==="true")&&(lr=w,Ma=u,Gr=null);break;case"focusout":Gr=Ma=lr=null;break;case"mousedown":ba=!0;break;case"contextmenu":case"mouseup":case"dragend":ba=!1,Gu(f,n,d);break;case"selectionchange":if(sm)break;case"keydown":case"keyup":Gu(f,n,d)}var _;if(Ts)e:{switch(e){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else rr?T1(e,n)&&(F="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(F="onCompositionStart");F&&(H1&&n.locale!=="ko"&&(rr||F!=="onCompositionStart"?F==="onCompositionEnd"&&rr&&(_=N1()):(mn=d,bs="value"in mn?mn.value:mn.textContent,rr=!0)),w=Ci(u,F),0<w.length&&(F=new $u(F,e,null,n,d),f.push({event:F,listeners:w}),_?F.data=_:(_=L1(n),_!==null&&(F.data=_)))),(_=qh?Kh(e,n):Gh(e,n))&&(u=Ci(u,"onBeforeInput"),0<u.length&&(d=new $u("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=_))}$1(f,t)})}function ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ci(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=sl(e,n),i!=null&&r.unshift(ml(e,i,l)),i=sl(e,t),i!=null&&r.push(ml(e,i,l))),e=e.return}return r}function qn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tc(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,l?(s=sl(n,i),s!=null&&o.unshift(ml(n,s,a))):l||(s=sl(n,i),s!=null&&o.push(ml(n,s,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var dm=/\r\n?/g,pm=/\u0000|\uFFFD/g;function nc(e){return(typeof e=="string"?e:""+e).replace(dm,`
|
|
38
|
+
`).replace(pm,"")}function $l(e,t,n){if(t=nc(t),nc(e)!==t&&n)throw Error(D(425))}function Ai(){}var Na=null,Ha=null;function Ta(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var La=typeof setTimeout=="function"?setTimeout:void 0,hm=typeof clearTimeout=="function"?clearTimeout:void 0,rc=typeof Promise=="function"?Promise:void 0,mm=typeof queueMicrotask=="function"?queueMicrotask:typeof rc<"u"?function(e){return rc.resolve(null).then(e).catch(gm)}:La;function gm(e){setTimeout(function(){throw e})}function Io(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),fl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);fl(t)}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function lc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Tr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Tr,gl="__reactProps$"+Tr,Jt="__reactContainer$"+Tr,Ia="__reactEvents$"+Tr,ym="__reactListeners$"+Tr,xm="__reactHandles$"+Tr;function _n(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jt]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lc(e);e!==null;){if(n=e[$t])return n;e=lc(e)}return t}e=n,n=e.parentNode}return null}function Nl(e){return e=e[$t]||e[Jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function or(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function Ki(e){return e[gl]||null}var Pa=[],ar=-1;function Nn(e){return{current:e}}function Me(e){0>ar||(e.current=Pa[ar],Pa[ar]=null,ar--)}function Se(e,t){ar++,Pa[ar]=e.current,e.current=t}var Mn={},Je=Nn(Mn),ct=Nn(!1),Vn=Mn;function wr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ft(e){return e=e.childContextTypes,e!=null}function Mi(){Me(ct),Me(Je)}function ic(e,t,n){if(Je.current!==Mn)throw Error(D(168));Se(Je,t),Se(ct,n)}function U1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(D(108,nh(e)||"Unknown",l));return Le({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,Vn=Je.current,Se(Je,e),Se(ct,ct.current),!0}function oc(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=U1(e,t,Vn),r.__reactInternalMemoizedMergedChildContext=e,Me(ct),Me(Je),Se(Je,e)):Me(ct),Se(ct,n)}var Xt=null,Gi=!1,Po=!1;function W1(e){Xt===null?Xt=[e]:Xt.push(e)}function vm(e){Gi=!0,W1(e)}function Hn(){if(!Po&&Xt!==null){Po=!0;var e=0,t=xe;try{var n=Xt;for(xe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xt=null,Gi=!1}catch(l){throw Xt!==null&&(Xt=Xt.slice(e+1)),y1(Es,Hn),l}finally{xe=t,Po=!1}}return null}var sr=[],ur=0,Ni=null,Hi=0,Ct=[],At=0,Zn=null,Yt=1,qt="";function In(e,t){sr[ur++]=Hi,sr[ur++]=Ni,Ni=e,Hi=t}function Q1(e,t,n){Ct[At++]=Yt,Ct[At++]=qt,Ct[At++]=Zn,Zn=e;var r=Yt;e=qt;var l=32-_t(r)-1;r&=~(1<<l),n+=1;var i=32-_t(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Yt=1<<32-_t(t)+l|n<<l|r,qt=i+e}else Yt=1<<i|n<<l|r,qt=e}function Is(e){e.return!==null&&(In(e,1),Q1(e,1,0))}function Ps(e){for(;e===Ni;)Ni=sr[--ur],sr[ur]=null,Hi=sr[--ur],sr[ur]=null;for(;e===Zn;)Zn=Ct[--At],Ct[At]=null,qt=Ct[--At],Ct[At]=null,Yt=Ct[--At],Ct[At]=null}var vt=null,xt=null,be=!1,jt=null;function X1(e,t){var n=bt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ac(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,xt=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Zn!==null?{id:Yt,overflow:qt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,xt=null,!0):!1;default:return!1}}function ja(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _a(e){if(be){var t=xt;if(t){var n=t;if(!ac(e,t)){if(ja(e))throw Error(D(418));t=kn(n.nextSibling);var r=vt;t&&ac(e,t)?X1(r,n):(e.flags=e.flags&-4097|2,be=!1,vt=e)}}else{if(ja(e))throw Error(D(418));e.flags=e.flags&-4097|2,be=!1,vt=e}}}function sc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function Bl(e){if(e!==vt)return!1;if(!be)return sc(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ta(e.type,e.memoizedProps)),t&&(t=xt)){if(ja(e))throw Y1(),Error(D(418));for(;t;)X1(e,t),t=kn(t.nextSibling)}if(sc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xt=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=vt?kn(e.stateNode.nextSibling):null;return!0}function Y1(){for(var e=xt;e;)e=kn(e.nextSibling)}function Sr(){xt=vt=null,be=!1}function js(e){jt===null?jt=[e]:jt.push(e)}var km=nn.ReactCurrentBatchConfig;function zr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=l.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Ul(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uc(e){var t=e._init;return t(e._payload)}function q1(e){function t(g,y){if(e){var v=g.deletions;v===null?(g.deletions=[y],g.flags|=16):v.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function l(g,y){return g=Cn(g,y),g.index=0,g.sibling=null,g}function i(g,y,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<y?(g.flags|=2,y):v):(g.flags|=2,y)):(g.flags|=1048576,y)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,y,v,N){return y===null||y.tag!==6?(y=Vo(v,g.mode,N),y.return=g,y):(y=l(y,v),y.return=g,y)}function s(g,y,v,N){var j=v.type;return j===nr?d(g,y,v.props.children,N,v.key):y!==null&&(y.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===fn&&uc(j)===y.type)?(N=l(y,v.props),N.ref=zr(g,y,v),N.return=g,N):(N=pi(v.type,v.key,v.props,null,g.mode,N),N.ref=zr(g,y,v),N.return=g,N)}function u(g,y,v,N){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=Zo(v,g.mode,N),y.return=g,y):(y=l(y,v.children||[]),y.return=g,y)}function d(g,y,v,N,j){return y===null||y.tag!==7?(y=Dn(v,g.mode,N,j),y.return=g,y):(y=l(y,v),y.return=g,y)}function f(g,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Vo(""+y,g.mode,v),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case jl:return v=pi(y.type,y.key,y.props,null,g.mode,v),v.ref=zr(g,null,y),v.return=g,v;case tr:return y=Zo(y,g.mode,v),y.return=g,y;case fn:var N=y._init;return f(g,N(y._payload),v)}if(Ur(y)||Pr(y))return y=Dn(y,g.mode,v,null),y.return=g,y;Ul(g,y)}return null}function h(g,y,v,N){var j=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return j!==null?null:a(g,y,""+v,N);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case jl:return v.key===j?s(g,y,v,N):null;case tr:return v.key===j?u(g,y,v,N):null;case fn:return j=v._init,h(g,y,j(v._payload),N)}if(Ur(v)||Pr(v))return j!==null?null:d(g,y,v,N,null);Ul(g,v)}return null}function p(g,y,v,N,j){if(typeof N=="string"&&N!==""||typeof N=="number")return g=g.get(v)||null,a(y,g,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case jl:return g=g.get(N.key===null?v:N.key)||null,s(y,g,N,j);case tr:return g=g.get(N.key===null?v:N.key)||null,u(y,g,N,j);case fn:var w=N._init;return p(g,y,v,w(N._payload),j)}if(Ur(N)||Pr(N))return g=g.get(v)||null,d(y,g,N,j,null);Ul(y,N)}return null}function x(g,y,v,N){for(var j=null,w=null,_=y,F=y=0,X=null;_!==null&&F<v.length;F++){_.index>F?(X=_,_=null):X=_.sibling;var M=h(g,_,v[F],N);if(M===null){_===null&&(_=X);break}e&&_&&M.alternate===null&&t(g,_),y=i(M,y,F),w===null?j=M:w.sibling=M,w=M,_=X}if(F===v.length)return n(g,_),be&&In(g,F),j;if(_===null){for(;F<v.length;F++)_=f(g,v[F],N),_!==null&&(y=i(_,y,F),w===null?j=_:w.sibling=_,w=_);return be&&In(g,F),j}for(_=r(g,_);F<v.length;F++)X=p(_,g,F,v[F],N),X!==null&&(e&&X.alternate!==null&&_.delete(X.key===null?F:X.key),y=i(X,y,F),w===null?j=X:w.sibling=X,w=X);return e&&_.forEach(function(O){return t(g,O)}),be&&In(g,F),j}function S(g,y,v,N){var j=Pr(v);if(typeof j!="function")throw Error(D(150));if(v=j.call(v),v==null)throw Error(D(151));for(var w=j=null,_=y,F=y=0,X=null,M=v.next();_!==null&&!M.done;F++,M=v.next()){_.index>F?(X=_,_=null):X=_.sibling;var O=h(g,_,M.value,N);if(O===null){_===null&&(_=X);break}e&&_&&O.alternate===null&&t(g,_),y=i(O,y,F),w===null?j=O:w.sibling=O,w=O,_=X}if(M.done)return n(g,_),be&&In(g,F),j;if(_===null){for(;!M.done;F++,M=v.next())M=f(g,M.value,N),M!==null&&(y=i(M,y,F),w===null?j=M:w.sibling=M,w=M);return be&&In(g,F),j}for(_=r(g,_);!M.done;F++,M=v.next())M=p(_,g,F,M.value,N),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?F:M.key),y=i(M,y,F),w===null?j=M:w.sibling=M,w=M);return e&&_.forEach(function(U){return t(g,U)}),be&&In(g,F),j}function T(g,y,v,N){if(typeof v=="object"&&v!==null&&v.type===nr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case jl:e:{for(var j=v.key,w=y;w!==null;){if(w.key===j){if(j=v.type,j===nr){if(w.tag===7){n(g,w.sibling),y=l(w,v.props.children),y.return=g,g=y;break e}}else if(w.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===fn&&uc(j)===w.type){n(g,w.sibling),y=l(w,v.props),y.ref=zr(g,w,v),y.return=g,g=y;break e}n(g,w);break}else t(g,w);w=w.sibling}v.type===nr?(y=Dn(v.props.children,g.mode,N,v.key),y.return=g,g=y):(N=pi(v.type,v.key,v.props,null,g.mode,N),N.ref=zr(g,y,v),N.return=g,g=N)}return o(g);case tr:e:{for(w=v.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=l(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Zo(v,g.mode,N),y.return=g,g=y}return o(g);case fn:return w=v._init,T(g,y,w(v._payload),N)}if(Ur(v))return x(g,y,v,N);if(Pr(v))return S(g,y,v,N);Ul(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=l(y,v),y.return=g,g=y):(n(g,y),y=Vo(v,g.mode,N),y.return=g,g=y),o(g)):n(g,y)}return T}var Er=q1(!0),K1=q1(!1),Ti=Nn(null),Li=null,cr=null,_s=null;function Fs(){_s=cr=Li=null}function Rs(e){var t=Ti.current;Me(Ti),e._currentValue=t}function Fa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Li=e,_s=cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ut=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(_s!==e)if(e={context:e,memoizedValue:t,next:null},cr===null){if(Li===null)throw Error(D(308));cr=e,Li.dependencies={lanes:0,firstContext:e}}else cr=cr.next=e;return t}var Fn=null;function zs(e){Fn===null?Fn=[e]:Fn.push(e)}function G1(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,zs(t)):(n.next=l.next,l.next=n),t.interleaved=n,en(e,r)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var dn=!1;function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,he&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,en(e,n)}return l=r.interleaved,l===null?(t.next=t,zs(r)):(t.next=l.next,l.next=t),r.interleaved=t,en(e,n)}function ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cs(e,n)}}function cc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,r){var l=e.updateQueue;dn=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var s=a,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=l.baseState;o=0,d=u=s=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,S=a;switch(h=t,p=n,S.tag){case 1:if(x=S.payload,typeof x=="function"){f=x.call(p,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,h=typeof x=="function"?x.call(p,f,h):x,h==null)break e;f=Le({},f,h);break e;case 2:dn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,s=f):d=d.next=p,o|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(d===null&&(s=f),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);$n|=o,e.lanes=o,e.memoizedState=f}}function fc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(D(191,l));l.call(r)}}}var Hl={},Ut=Nn(Hl),yl=Nn(Hl),xl=Nn(Hl);function Rn(e){if(e===Hl)throw Error(D(174));return e}function Vs(e,t){switch(Se(xl,t),Se(yl,e),Se(Ut,Hl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ga(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ga(t,e)}Me(Ut),Se(Ut,t)}function Cr(){Me(Ut),Me(yl),Me(xl)}function ef(e){Rn(xl.current);var t=Rn(Ut.current),n=ga(t,e.type);t!==n&&(Se(yl,e),Se(Ut,n))}function Zs(e){yl.current===e&&(Me(Ut),Me(yl))}var He=Nn(0);function Pi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=[];function Os(){for(var e=0;e<jo.length;e++)jo[e]._workInProgressVersionPrimary=null;jo.length=0}var si=nn.ReactCurrentDispatcher,_o=nn.ReactCurrentBatchConfig,On=0,Te=null,Ve=null,Oe=null,ji=!1,Jr=!1,vl=0,wm=0;function Ye(){throw Error(D(321))}function $s(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Bs(e,t,n,r,l,i){if(On=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,si.current=e===null||e.memoizedState===null?Am:Mm,e=n(r,l),Jr){i=0;do{if(Jr=!1,vl=0,25<=i)throw Error(D(301));i+=1,Oe=Ve=null,t.updateQueue=null,si.current=bm,e=n(r,l)}while(Jr)}if(si.current=_i,t=Ve!==null&&Ve.next!==null,On=0,Oe=Ve=Te=null,ji=!1,t)throw Error(D(300));return e}function Us(){var e=vl!==0;return vl=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?Te.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function Tt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Oe===null?Te.memoizedState:Oe.next;if(t!==null)Oe=t,Ve=e;else{if(e===null)throw Error(D(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Oe===null?Te.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function kl(e,t){return typeof t=="function"?t(e):t}function Fo(e){var t=Tt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=Ve,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var a=o=null,s=null,u=i;do{var d=u.lane;if((On&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=f,o=r):s=s.next=f,Te.lanes|=d,$n|=d}u=u.next}while(u!==null&&u!==i);s===null?o=r:s.next=a,zt(r,t.memoizedState)||(ut=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,Te.lanes|=i,$n|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ro(e){var t=Tt(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);zt(i,t.memoizedState)||(ut=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function tf(){}function nf(e,t){var n=Te,r=Tt(),l=t(),i=!zt(r.memoizedState,l);if(i&&(r.memoizedState=l,ut=!0),r=r.queue,Ws(of.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,wl(9,lf.bind(null,n,r,l,t),void 0,null),$e===null)throw Error(D(349));On&30||rf(n,t,l)}return l}function rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function lf(e,t,n,r){t.value=n,t.getSnapshot=r,af(t)&&sf(e)}function of(e,t,n){return n(function(){af(t)&&sf(e)})}function af(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function sf(e){var t=en(e,1);t!==null&&Ft(t,e,1,-1)}function dc(e){var t=Zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kl,lastRenderedState:e},t.queue=e,e=e.dispatch=Cm.bind(null,Te,e),[t.memoizedState,e]}function wl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function uf(){return Tt().memoizedState}function ui(e,t,n,r){var l=Zt();Te.flags|=e,l.memoizedState=wl(1|t,n,void 0,r===void 0?null:r)}function Ji(e,t,n,r){var l=Tt();r=r===void 0?null:r;var i=void 0;if(Ve!==null){var o=Ve.memoizedState;if(i=o.destroy,r!==null&&$s(r,o.deps)){l.memoizedState=wl(t,n,i,r);return}}Te.flags|=e,l.memoizedState=wl(1|t,n,i,r)}function pc(e,t){return ui(8390656,8,e,t)}function Ws(e,t){return Ji(2048,8,e,t)}function cf(e,t){return Ji(4,2,e,t)}function ff(e,t){return Ji(4,4,e,t)}function df(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pf(e,t,n){return n=n!=null?n.concat([e]):null,Ji(4,4,df.bind(null,t,e),n)}function Qs(){}function hf(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$s(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mf(e,t){var n=Tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$s(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gf(e,t,n){return On&21?(zt(n,t)||(n=k1(),Te.lanes|=n,$n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ut=!0),e.memoizedState=n)}function Sm(e,t){var n=xe;xe=n!==0&&4>n?n:4,e(!0);var r=_o.transition;_o.transition={};try{e(!1),t()}finally{xe=n,_o.transition=r}}function yf(){return Tt().memoizedState}function Em(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xf(e))vf(t,n);else if(n=G1(e,t,n,r),n!==null){var l=rt();Ft(n,e,r,l),kf(n,t,r)}}function Cm(e,t,n){var r=En(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xf(e))vf(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,zt(a,o)){var s=t.interleaved;s===null?(l.next=l,zs(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=G1(e,t,l,r),n!==null&&(l=rt(),Ft(n,e,r,l),kf(n,t,r))}}function xf(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function vf(e,t){Jr=ji=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cs(e,n)}}var _i={readContext:Ht,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},Am={readContext:Ht,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:pc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ui(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return ui(4,2,e,t)},useMemo:function(e,t){var n=Zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Em.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:dc,useDebugValue:Qs,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=dc(!1),t=e[0];return e=Sm.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,l=Zt();if(be){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),$e===null)throw Error(D(349));On&30||rf(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,pc(of.bind(null,r,i,e),[e]),r.flags|=2048,wl(9,lf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Zt(),t=$e.identifierPrefix;if(be){var n=qt,r=Yt;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mm={readContext:Ht,useCallback:hf,useContext:Ht,useEffect:Ws,useImperativeHandle:pf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:Fo,useRef:uf,useState:function(){return Fo(kl)},useDebugValue:Qs,useDeferredValue:function(e){var t=Tt();return gf(t,Ve.memoizedState,e)},useTransition:function(){var e=Fo(kl)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:yf,unstable_isNewReconciler:!1},bm={readContext:Ht,useCallback:hf,useContext:Ht,useEffect:Ws,useImperativeHandle:pf,useInsertionEffect:cf,useLayoutEffect:ff,useMemo:mf,useReducer:Ro,useRef:uf,useState:function(){return Ro(kl)},useDebugValue:Qs,useDeferredValue:function(e){var t=Tt();return Ve===null?t.memoizedState=e:gf(t,Ve.memoizedState,e)},useTransition:function(){var e=Ro(kl)[0],t=Tt().memoizedState;return[e,t]},useMutableSource:tf,useSyncExternalStore:nf,useId:yf,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ra(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var eo={isMounted:function(e){return(e=e._reactInternals)?Qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),l=En(e),i=Kt(r,l);i.payload=t,n!=null&&(i.callback=n),t=wn(e,i,l),t!==null&&(Ft(t,e,l,r),ai(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),l=En(e),i=Kt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=wn(e,i,l),t!==null&&(Ft(t,e,l,r),ai(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=En(e),l=Kt(n,r);l.tag=2,t!=null&&(l.callback=t),t=wn(e,l,r),t!==null&&(Ft(t,e,r,n),ai(t,e,r))}};function hc(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!pl(n,r)||!pl(l,i):!0}function wf(e,t,n){var r=!1,l=Mn,i=t.contextType;return typeof i=="object"&&i!==null?i=Ht(i):(l=ft(t)?Vn:Je.current,r=t.contextTypes,i=(r=r!=null)?wr(e,l):Mn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function mc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&eo.enqueueReplaceState(t,t.state,null)}function za(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Ds(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Ht(i):(i=ft(t)?Vn:Je.current,l.context=wr(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ra(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&eo.enqueueReplaceState(l,l.state,null),Ii(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Ar(e,t){try{var n="",r=t;do n+=th(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Da(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Nm=typeof WeakMap=="function"?WeakMap:Map;function Sf(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ri||(Ri=!0,Ya=r),Da(e,t)},n}function Ef(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Da(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Da(e,t),typeof r!="function"&&(Sn===null?Sn=new Set([this]):Sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function gc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Om.bind(null,e,t,n),t.then(e,e))}function yc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function xc(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,wn(n,t,1))),n.lanes|=1),e)}var Hm=nn.ReactCurrentOwner,ut=!1;function tt(e,t,n,r){t.child=e===null?K1(t,null,n,r):Er(t,e.child,n,r)}function vc(e,t,n,r,l){n=n.render;var i=t.ref;return yr(t,l),r=Bs(e,t,n,r,i,l),n=Us(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tn(e,t,l)):(be&&n&&Is(t),t.flags|=1,tt(e,t,r,l),t.child)}function kc(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!tu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Cf(e,t,i,r,l)):(e=pi(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:pl,n(o,r)&&e.ref===t.ref)return tn(e,t,l)}return t.flags|=1,e=Cn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Cf(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(pl(i,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ut=!0);else return t.lanes=e.lanes,tn(e,t,l)}return Va(e,t,n,r,l)}function Af(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Se(dr,yt),yt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Se(dr,yt),yt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Se(dr,yt),yt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Se(dr,yt),yt|=r;return tt(e,t,l,n),t.child}function Mf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Va(e,t,n,r,l){var i=ft(n)?Vn:Je.current;return i=wr(t,i),yr(t,l),n=Bs(e,t,n,r,i,l),r=Us(),e!==null&&!ut?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tn(e,t,l)):(be&&r&&Is(t),t.flags|=1,tt(e,t,n,l),t.child)}function wc(e,t,n,r,l){if(ft(n)){var i=!0;bi(t)}else i=!1;if(yr(t,l),t.stateNode===null)ci(e,t),wf(t,n,r),za(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=ft(n)?Vn:Je.current,u=wr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||s!==u)&&mc(t,o,r,u),dn=!1;var h=t.memoizedState;o.state=h,Ii(t,r,o,l),s=t.memoizedState,a!==r||h!==s||ct.current||dn?(typeof d=="function"&&(Ra(t,n,d,r),s=t.memoizedState),(a=dn||hc(t,n,a,r,h,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,J1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:It(t.type,a),o.props=u,f=t.pendingProps,h=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ht(s):(s=ft(n)?Vn:Je.current,s=wr(t,s));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==s)&&mc(t,o,r,s),dn=!1,h=t.memoizedState,o.state=h,Ii(t,r,o,l);var x=t.memoizedState;a!==f||h!==x||ct.current||dn?(typeof p=="function"&&(Ra(t,n,p,r),x=t.memoizedState),(u=dn||hc(t,n,u,r,h,x,s)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Za(e,t,n,r,i,l)}function Za(e,t,n,r,l,i){Mf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&oc(t,n,!1),tn(e,t,i);r=t.stateNode,Hm.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Er(t,e.child,null,i),t.child=Er(t,null,a,i)):tt(e,t,a,i),t.memoizedState=r.state,l&&oc(t,n,!0),t.child}function bf(e){var t=e.stateNode;t.pendingContext?ic(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ic(e,t.context,!1),Vs(e,t.containerInfo)}function Sc(e,t,n,r,l){return Sr(),js(l),t.flags|=256,tt(e,t,n,r),t.child}var Oa={dehydrated:null,treeContext:null,retryLane:0};function $a(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nf(e,t,n){var r=t.pendingProps,l=He.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Se(He,l&1),e===null)return _a(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ro(o,r,0,null),e=Dn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$a(n),t.memoizedState=Oa,e):Xs(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Tm(e,t,o,r,a,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,a=l.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=Cn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=Cn(a,i):(i=Dn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?$a(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Oa,r}return i=e.child,e=i.sibling,r=Cn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xs(e,t){return t=ro({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Wl(e,t,n,r){return r!==null&&js(r),Er(t,e.child,null,n),e=Xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tm(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=zo(Error(D(422))),Wl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=ro({mode:"visible",children:r.children},l,0,null),i=Dn(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Er(t,e.child,null,o),t.child.memoizedState=$a(o),t.memoizedState=Oa,i);if(!(t.mode&1))return Wl(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(D(419)),r=zo(i,r,void 0),Wl(e,t,o,r)}if(a=(o&e.childLanes)!==0,ut||a){if(r=$e,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,en(e,l),Ft(r,e,l,-1))}return eu(),r=zo(Error(D(421))),Wl(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=$m.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,xt=kn(l.nextSibling),vt=t,be=!0,jt=null,e!==null&&(Ct[At++]=Yt,Ct[At++]=qt,Ct[At++]=Zn,Yt=e.id,qt=e.overflow,Zn=t),t=Xs(t,r.children),t.flags|=4096,t)}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Fa(e.return,t,n)}function Do(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Hf(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(tt(e,t,r.children,n),r=He.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Se(He,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Pi(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Do(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Pi(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Do(t,!0,n,null,i);break;case"together":Do(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ci(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lm(e,t,n){switch(t.tag){case 3:bf(t),Sr();break;case 5:ef(t);break;case 1:ft(t.type)&&bi(t);break;case 4:Vs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Se(Ti,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Se(He,He.current&1),t.flags|=128,null):n&t.child.childLanes?Nf(e,t,n):(Se(He,He.current&1),e=tn(e,t,n),e!==null?e.sibling:null);Se(He,He.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Se(He,He.current),r)break;return null;case 22:case 23:return t.lanes=0,Af(e,t,n)}return tn(e,t,n)}var Tf,Ba,Lf,If;Tf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ba=function(){};Lf=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Rn(Ut.current);var i=null;switch(n){case"input":l=da(e,l),r=da(e,r),i=[];break;case"select":l=Le({},l,{value:void 0}),r=Le({},r,{value:void 0}),i=[];break;case"textarea":l=ma(e,l),r=ma(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ai)}ya(n,r);var o;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style"){var a=l[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ol.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(a=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&a[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ol.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Ae("scroll",e),i||a===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};If=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Im(e,t,n){var r=t.pendingProps;switch(Ps(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return ft(t.type)&&Mi(),qe(t),null;case 3:return r=t.stateNode,Cr(),Me(ct),Me(Je),Os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Ga(jt),jt=null))),Ba(e,t),qe(t),null;case 5:Zs(t);var l=Rn(xl.current);if(n=t.type,e!==null&&t.stateNode!=null)Lf(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return qe(t),null}if(e=Rn(Ut.current),Bl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$t]=t,r[gl]=i,e=(t.mode&1)!==0,n){case"dialog":Ae("cancel",r),Ae("close",r);break;case"iframe":case"object":case"embed":Ae("load",r);break;case"video":case"audio":for(l=0;l<Qr.length;l++)Ae(Qr[l],r);break;case"source":Ae("error",r);break;case"img":case"image":case"link":Ae("error",r),Ae("load",r);break;case"details":Ae("toggle",r);break;case"input":Iu(r,i),Ae("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Ae("invalid",r);break;case"textarea":ju(r,i),Ae("invalid",r)}ya(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&$l(r.textContent,a,e),l=["children",""+a]):ol.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ae("scroll",r)}switch(n){case"input":_l(r),Pu(r,i,!0);break;case"textarea":_l(r),_u(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ai)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=i1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[$t]=t,e[gl]=r,Tf(e,t,!1,!1),t.stateNode=e;e:{switch(o=xa(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),l=r;break;case"iframe":case"object":case"embed":Ae("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qr.length;l++)Ae(Qr[l],e);l=r;break;case"source":Ae("error",e),l=r;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),l=r;break;case"details":Ae("toggle",e),l=r;break;case"input":Iu(e,r),l=da(e,r),Ae("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Le({},r,{value:void 0}),Ae("invalid",e);break;case"textarea":ju(e,r),l=ma(e,r),Ae("invalid",e);break;default:l=r}ya(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var s=a[i];i==="style"?s1(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&o1(e,s)):i==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&al(e,s):typeof s=="number"&&al(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ol.hasOwnProperty(i)?s!=null&&i==="onScroll"&&Ae("scroll",e):s!=null&&xs(e,i,s,o))}switch(n){case"input":_l(e),Pu(e,r,!1);break;case"textarea":_l(e),_u(e);break;case"option":r.value!=null&&e.setAttribute("value",""+An(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?pr(e,!!r.multiple,i,!1):r.defaultValue!=null&&pr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ai)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)If(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Rn(xl.current),Rn(Ut.current),Bl(t)){if(r=t.stateNode,n=t.memoizedProps,r[$t]=t,(i=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:$l(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$l(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[$t]=t,t.stateNode=r}return qe(t),null;case 13:if(Me(He),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&xt!==null&&t.mode&1&&!(t.flags&128))Y1(),Sr(),t.flags|=98560,i=!1;else if(i=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(D(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(D(317));i[$t]=t}else Sr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else jt!==null&&(Ga(jt),jt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||He.current&1?Ze===0&&(Ze=3):eu())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return Cr(),Ba(e,t),e===null&&hl(t.stateNode.containerInfo),qe(t),null;case 10:return Rs(t.type._context),qe(t),null;case 17:return ft(t.type)&&Mi(),qe(t),null;case 19:if(Me(He),i=t.memoizedState,i===null)return qe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Dr(i,!1);else{if(Ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Pi(e),o!==null){for(t.flags|=128,Dr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Se(He,He.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fe()>Mr&&(t.flags|=128,r=!0,Dr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Pi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!be)return qe(t),null}else 2*Fe()-i.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fe(),t.sibling=null,n=He.current,Se(He,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return Js(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function Pm(e,t){switch(Ps(t),t.tag){case 1:return ft(t.type)&&Mi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),Me(ct),Me(Je),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zs(t),null;case 13:if(Me(He),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(He),null;case 4:return Cr(),null;case 10:return Rs(t.type._context),null;case 22:case 23:return Js(),null;case 24:return null;default:return null}}var Ql=!1,Ke=!1,jm=typeof WeakSet=="function"?WeakSet:Set,Q=null;function fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Ua(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Cc=!1;function _m(e,t){if(Na=Si,e=F1(),Ls(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||l!==0&&f.nodeType!==3||(a=o+l),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===l&&(a=o),h===i&&++d===r&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ha={focusedElem:e,selectionRange:n},Si=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var S=x.memoizedProps,T=x.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?S:It(t.type,S),T);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(N){Pe(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return x=Cc,Cc=!1,x}function el(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ua(t,n,i)}l=l.next}while(l!==r)}}function to(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Wa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pf(e){var t=e.alternate;t!==null&&(e.alternate=null,Pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[gl],delete t[Ia],delete t[ym],delete t[xm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jf(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jf(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.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 Qa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(e=e.child,e!==null))for(Qa(e,t,n),e=e.sibling;e!==null;)Qa(e,t,n),e=e.sibling}function Xa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xa(e,t,n),e=e.sibling;e!==null;)Xa(e,t,n),e=e.sibling}var Ue=null,Pt=!1;function sn(e,t,n){for(n=n.child;n!==null;)_f(e,t,n),n=n.sibling}function _f(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Qi,n)}catch{}switch(n.tag){case 5:Ke||fr(n,t);case 6:var r=Ue,l=Pt;Ue=null,sn(e,t,n),Ue=r,Pt=l,Ue!==null&&(Pt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Pt?(e=Ue,n=n.stateNode,e.nodeType===8?Io(e.parentNode,n):e.nodeType===1&&Io(e,n),fl(e)):Io(Ue,n.stateNode));break;case 4:r=Ue,l=Pt,Ue=n.stateNode.containerInfo,Pt=!0,sn(e,t,n),Ue=r,Pt=l;break;case 0:case 11:case 14:case 15:if(!Ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ua(n,t,o),l=l.next}while(l!==r)}sn(e,t,n);break;case 1:if(!Ke&&(fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Pe(n,t,a)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(Ke=(r=Ke)||n.memoizedState!==null,sn(e,t,n),Ke=r):sn(e,t,n);break;default:sn(e,t,n)}}function Mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jm),t.forEach(function(r){var l=Bm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Lt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Ue=a.stateNode,Pt=!1;break e;case 3:Ue=a.stateNode.containerInfo,Pt=!0;break e;case 4:Ue=a.stateNode.containerInfo,Pt=!0;break e}a=a.return}if(Ue===null)throw Error(D(160));_f(i,o,l),Ue=null,Pt=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(u){Pe(l,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ff(t,e),t=t.sibling}function Ff(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Lt(t,e),Vt(e),r&4){try{el(3,e,e.return),to(3,e)}catch(S){Pe(e,e.return,S)}try{el(5,e,e.return)}catch(S){Pe(e,e.return,S)}}break;case 1:Lt(t,e),Vt(e),r&512&&n!==null&&fr(n,n.return);break;case 5:if(Lt(t,e),Vt(e),r&512&&n!==null&&fr(n,n.return),e.flags&32){var l=e.stateNode;try{al(l,"")}catch(S){Pe(e,e.return,S)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&r1(l,i),xa(a,o);var u=xa(a,i);for(o=0;o<s.length;o+=2){var d=s[o],f=s[o+1];d==="style"?s1(l,f):d==="dangerouslySetInnerHTML"?o1(l,f):d==="children"?al(l,f):xs(l,d,f,u)}switch(a){case"input":pa(l,i);break;case"textarea":l1(l,i);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?pr(l,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?pr(l,!!i.multiple,i.defaultValue,!0):pr(l,!!i.multiple,i.multiple?[]:"",!1))}l[gl]=i}catch(S){Pe(e,e.return,S)}}break;case 6:if(Lt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(D(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(S){Pe(e,e.return,S)}}break;case 3:if(Lt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(S){Pe(e,e.return,S)}break;case 4:Lt(t,e),Vt(e);break;case 13:Lt(t,e),Vt(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ks=Fe())),r&4&&Mc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Ke=(u=Ke)||d,Lt(t,e),Ke=u):Lt(t,e),Vt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Q=e,d=e.child;d!==null;){for(f=Q=d;Q!==null;){switch(h=Q,p=h.child,h.tag){case 0:case 11:case 14:case 15:el(4,h,h.return);break;case 1:fr(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(S){Pe(r,n,S)}}break;case 5:fr(h,h.return);break;case 22:if(h.memoizedState!==null){Nc(f);continue}}p!==null?(p.return=h,Q=p):Nc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,u?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=a1("display",o))}catch(S){Pe(e,e.return,S)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(S){Pe(e,e.return,S)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Lt(t,e),Vt(e),r&4&&Mc(e);break;case 21:break;default:Lt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(jf(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(al(l,""),r.flags&=-33);var i=Ac(e);Xa(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Ac(e);Qa(e,a,o);break;default:throw Error(D(161))}}catch(s){Pe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fm(e,t,n){Q=e,Rf(e)}function Rf(e,t,n){for(var r=(e.mode&1)!==0;Q!==null;){var l=Q,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Ql;if(!o){var a=l.alternate,s=a!==null&&a.memoizedState!==null||Ke;a=Ql;var u=Ke;if(Ql=o,(Ke=s)&&!u)for(Q=l;Q!==null;)o=Q,s=o.child,o.tag===22&&o.memoizedState!==null?Hc(l):s!==null?(s.return=o,Q=s):Hc(l);for(;i!==null;)Q=i,Rf(i),i=i.sibling;Q=l,Ql=a,Ke=u}bc(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,Q=i):bc(e)}}function bc(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ke||to(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ke)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&fc(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&fl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Ke||t.flags&512&&Wa(t)}catch(h){Pe(t,t.return,h)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Nc(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function Hc(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{to(4,t)}catch(s){Pe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){Pe(t,l,s)}}var i=t.return;try{Wa(t)}catch(s){Pe(t,i,s)}break;case 5:var o=t.return;try{Wa(t)}catch(s){Pe(t,o,s)}}}catch(s){Pe(t,t.return,s)}if(t===e){Q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Q=a;break}Q=t.return}}var Rm=Math.ceil,Fi=nn.ReactCurrentDispatcher,Ys=nn.ReactCurrentOwner,Nt=nn.ReactCurrentBatchConfig,he=0,$e=null,De=null,We=0,yt=0,dr=Nn(0),Ze=0,Sl=null,$n=0,no=0,qs=0,tl=null,st=null,Ks=0,Mr=1/0,Qt=null,Ri=!1,Ya=null,Sn=null,Xl=!1,gn=null,zi=0,nl=0,qa=null,fi=-1,di=0;function rt(){return he&6?Fe():fi!==-1?fi:fi=Fe()}function En(e){return e.mode&1?he&2&&We!==0?We&-We:km.transition!==null?(di===0&&(di=k1()),di):(e=xe,e!==0||(e=window.event,e=e===void 0?16:b1(e.type)),e):1}function Ft(e,t,n,r){if(50<nl)throw nl=0,qa=null,Error(D(185));Ml(e,n,r),(!(he&2)||e!==$e)&&(e===$e&&(!(he&2)&&(no|=n),Ze===4&&hn(e,We)),dt(e,r),n===1&&he===0&&!(t.mode&1)&&(Mr=Fe()+500,Gi&&Hn()))}function dt(e,t){var n=e.callbackNode;kh(e,t);var r=wi(e,e===$e?We:0);if(r===0)n!==null&&zu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zu(n),t===1)e.tag===0?vm(Tc.bind(null,e)):W1(Tc.bind(null,e)),mm(function(){!(he&6)&&Hn()}),n=null;else{switch(w1(r)){case 1:n=Es;break;case 4:n=x1;break;case 16:n=ki;break;case 536870912:n=v1;break;default:n=ki}n=Uf(n,zf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zf(e,t){if(fi=-1,di=0,he&6)throw Error(D(327));var n=e.callbackNode;if(xr()&&e.callbackNode!==n)return null;var r=wi(e,e===$e?We:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Di(e,r);else{t=r;var l=he;he|=2;var i=Vf();($e!==e||We!==t)&&(Qt=null,Mr=Fe()+500,zn(e,t));do try{Vm();break}catch(a){Df(e,a)}while(!0);Fs(),Fi.current=i,he=l,De!==null?t=0:($e=null,We=0,t=Ze)}if(t!==0){if(t===2&&(l=Ea(e),l!==0&&(r=l,t=Ka(e,l))),t===1)throw n=Sl,zn(e,0),hn(e,r),dt(e,Fe()),n;if(t===6)hn(e,r);else{if(l=e.current.alternate,!(r&30)&&!zm(l)&&(t=Di(e,r),t===2&&(i=Ea(e),i!==0&&(r=i,t=Ka(e,i))),t===1))throw n=Sl,zn(e,0),hn(e,r),dt(e,Fe()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Pn(e,st,Qt);break;case 3:if(hn(e,r),(r&130023424)===r&&(t=Ks+500-Fe(),10<t)){if(wi(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=La(Pn.bind(null,e,st,Qt),t);break}Pn(e,st,Qt);break;case 4:if(hn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-_t(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rm(r/1960))-r,10<r){e.timeoutHandle=La(Pn.bind(null,e,st,Qt),r);break}Pn(e,st,Qt);break;case 5:Pn(e,st,Qt);break;default:throw Error(D(329))}}}return dt(e,Fe()),e.callbackNode===n?zf.bind(null,e):null}function Ka(e,t){var n=tl;return e.current.memoizedState.isDehydrated&&(zn(e,t).flags|=256),e=Di(e,t),e!==2&&(t=st,st=n,t!==null&&Ga(t)),e}function Ga(e){st===null?st=e:st.push.apply(st,e)}function zm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!zt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function hn(e,t){for(t&=~qs,t&=~no,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Tc(e){if(he&6)throw Error(D(327));xr();var t=wi(e,0);if(!(t&1))return dt(e,Fe()),null;var n=Di(e,t);if(e.tag!==0&&n===2){var r=Ea(e);r!==0&&(t=r,n=Ka(e,r))}if(n===1)throw n=Sl,zn(e,0),hn(e,t),dt(e,Fe()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,st,Qt),dt(e,Fe()),null}function Gs(e,t){var n=he;he|=1;try{return e(t)}finally{he=n,he===0&&(Mr=Fe()+500,Gi&&Hn())}}function Bn(e){gn!==null&&gn.tag===0&&!(he&6)&&xr();var t=he;he|=1;var n=Nt.transition,r=xe;try{if(Nt.transition=null,xe=1,e)return e()}finally{xe=r,Nt.transition=n,he=t,!(he&6)&&Hn()}}function Js(){yt=dr.current,Me(dr)}function zn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hm(n)),De!==null)for(n=De.return;n!==null;){var r=n;switch(Ps(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Mi();break;case 3:Cr(),Me(ct),Me(Je),Os();break;case 5:Zs(r);break;case 4:Cr();break;case 13:Me(He);break;case 19:Me(He);break;case 10:Rs(r.type._context);break;case 22:case 23:Js()}n=n.return}if($e=e,De=e=Cn(e.current,null),We=yt=t,Ze=0,Sl=null,qs=no=$n=0,st=tl=null,Fn!==null){for(t=0;t<Fn.length;t++)if(n=Fn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}Fn=null}return e}function Df(e,t){do{var n=De;try{if(Fs(),si.current=_i,ji){for(var r=Te.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ji=!1}if(On=0,Oe=Ve=Te=null,Jr=!1,vl=0,Ys.current=null,n===null||n.return===null){Ze=1,Sl=t,De=null;break}e:{var i=e,o=n.return,a=n,s=t;if(t=We,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=yc(o);if(p!==null){p.flags&=-257,xc(p,o,a,i,t),p.mode&1&&gc(i,u,t),t=p,s=u;var x=t.updateQueue;if(x===null){var S=new Set;S.add(s),t.updateQueue=S}else x.add(s);break e}else{if(!(t&1)){gc(i,u,t),eu();break e}s=Error(D(426))}}else if(be&&a.mode&1){var T=yc(o);if(T!==null){!(T.flags&65536)&&(T.flags|=256),xc(T,o,a,i,t),js(Ar(s,a));break e}}i=s=Ar(s,a),Ze!==4&&(Ze=2),tl===null?tl=[i]:tl.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=Sf(i,s,t);cc(i,g);break e;case 1:a=s;var y=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Sn===null||!Sn.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=Ef(i,a,t);cc(i,N);break e}}i=i.return}while(i!==null)}Of(n)}catch(j){t=j,De===n&&n!==null&&(De=n=n.return);continue}break}while(!0)}function Vf(){var e=Fi.current;return Fi.current=_i,e===null?_i:e}function eu(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),$e===null||!($n&268435455)&&!(no&268435455)||hn($e,We)}function Di(e,t){var n=he;he|=2;var r=Vf();($e!==e||We!==t)&&(Qt=null,zn(e,t));do try{Dm();break}catch(l){Df(e,l)}while(!0);if(Fs(),he=n,Fi.current=r,De!==null)throw Error(D(261));return $e=null,We=0,Ze}function Dm(){for(;De!==null;)Zf(De)}function Vm(){for(;De!==null&&!fh();)Zf(De)}function Zf(e){var t=Bf(e.alternate,e,yt);e.memoizedProps=e.pendingProps,t===null?Of(e):De=t,Ys.current=null}function Of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Pm(n,t),n!==null){n.flags&=32767,De=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,De=null;return}}else if(n=Im(n,t,yt),n!==null){De=n;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ze===0&&(Ze=5)}function Pn(e,t,n){var r=xe,l=Nt.transition;try{Nt.transition=null,xe=1,Zm(e,t,n,r)}finally{Nt.transition=l,xe=r}return null}function Zm(e,t,n,r){do xr();while(gn!==null);if(he&6)throw Error(D(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(wh(e,i),e===$e&&(De=$e=null,We=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Xl||(Xl=!0,Uf(ki,function(){return xr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Nt.transition,Nt.transition=null;var o=xe;xe=1;var a=he;he|=4,Ys.current=null,_m(e,n),Ff(n,e),am(Ha),Si=!!Na,Ha=Na=null,e.current=n,Fm(n),dh(),he=a,xe=o,Nt.transition=i}else e.current=n;if(Xl&&(Xl=!1,gn=e,zi=l),i=e.pendingLanes,i===0&&(Sn=null),mh(n.stateNode),dt(e,Fe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Ri)throw Ri=!1,e=Ya,Ya=null,e;return zi&1&&e.tag!==0&&xr(),i=e.pendingLanes,i&1?e===qa?nl++:(nl=0,qa=e):nl=0,Hn(),null}function xr(){if(gn!==null){var e=w1(zi),t=Nt.transition,n=xe;try{if(Nt.transition=null,xe=16>e?16:e,gn===null)var r=!1;else{if(e=gn,gn=null,zi=0,he&6)throw Error(D(331));var l=he;for(he|=4,Q=e.current;Q!==null;){var i=Q,o=i.child;if(Q.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(Q=u;Q!==null;){var d=Q;switch(d.tag){case 0:case 11:case 15:el(8,d,i)}var f=d.child;if(f!==null)f.return=d,Q=f;else for(;Q!==null;){d=Q;var h=d.sibling,p=d.return;if(Pf(d),d===u){Q=null;break}if(h!==null){h.return=p,Q=h;break}Q=p}}}var x=i.alternate;if(x!==null){var S=x.child;if(S!==null){x.child=null;do{var T=S.sibling;S.sibling=null,S=T}while(S!==null)}}Q=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,Q=o;else e:for(;Q!==null;){if(i=Q,i.flags&2048)switch(i.tag){case 0:case 11:case 15:el(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,Q=g;break e}Q=i.return}}var y=e.current;for(Q=y;Q!==null;){o=Q;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,Q=v;else e:for(o=y;Q!==null;){if(a=Q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:to(9,a)}}catch(j){Pe(a,a.return,j)}if(a===o){Q=null;break e}var N=a.sibling;if(N!==null){N.return=a.return,Q=N;break e}Q=a.return}}if(he=l,Hn(),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Qi,e)}catch{}r=!0}return r}finally{xe=n,Nt.transition=t}}return!1}function Lc(e,t,n){t=Ar(n,t),t=Sf(e,t,1),e=wn(e,t,1),t=rt(),e!==null&&(Ml(e,1,t),dt(e,t))}function Pe(e,t,n){if(e.tag===3)Lc(e,e,n);else for(;t!==null;){if(t.tag===3){Lc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Sn===null||!Sn.has(r))){e=Ar(n,e),e=Ef(t,e,1),t=wn(t,e,1),e=rt(),t!==null&&(Ml(t,1,e),dt(t,e));break}}t=t.return}}function Om(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(We&n)===n&&(Ze===4||Ze===3&&(We&130023424)===We&&500>Fe()-Ks?zn(e,0):qs|=n),dt(e,t)}function $f(e,t){t===0&&(e.mode&1?(t=zl,zl<<=1,!(zl&130023424)&&(zl=4194304)):t=1);var n=rt();e=en(e,t),e!==null&&(Ml(e,t,n),dt(e,n))}function $m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$f(e,n)}function Bm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),$f(e,n)}var Bf;Bf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)ut=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ut=!1,Lm(e,t,n);ut=!!(e.flags&131072)}else ut=!1,be&&t.flags&1048576&&Q1(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ci(e,t),e=t.pendingProps;var l=wr(t,Je.current);yr(t,n),l=Bs(null,t,r,e,l,n);var i=Us();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(i=!0,bi(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ds(t),l.updater=eo,t.stateNode=l,l._reactInternals=t,za(t,r,e,n),t=Za(null,t,r,!0,i,n)):(t.tag=0,be&&i&&Is(t),tt(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ci(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Wm(r),e=It(r,e),l){case 0:t=Va(null,t,r,e,n);break e;case 1:t=wc(null,t,r,e,n);break e;case 11:t=vc(null,t,r,e,n);break e;case 14:t=kc(null,t,r,It(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),Va(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),wc(e,t,r,l,n);case 3:e:{if(bf(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,l=i.element,J1(e,t),Ii(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Ar(Error(D(423)),t),t=Sc(e,t,r,n,l);break e}else if(r!==l){l=Ar(Error(D(424)),t),t=Sc(e,t,r,n,l);break e}else for(xt=kn(t.stateNode.containerInfo.firstChild),vt=t,be=!0,jt=null,n=K1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sr(),r===l){t=tn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return ef(t),e===null&&_a(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Ta(r,l)?o=null:i!==null&&Ta(r,i)&&(t.flags|=32),Mf(e,t),tt(e,t,o,n),t.child;case 6:return e===null&&_a(t),null;case 13:return Nf(e,t,n);case 4:return Vs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Er(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),vc(e,t,r,l,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Se(Ti,r._currentValue),r._currentValue=o,i!==null)if(zt(i.value,o)){if(i.children===l.children&&!ct.current){t=tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Kt(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Fa(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(D(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Fa(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}tt(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,yr(t,n),l=Ht(l),r=r(l),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,l=It(r,t.pendingProps),l=It(r.type,l),kc(e,t,r,l,n);case 15:return Cf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:It(r,l),ci(e,t),t.tag=1,ft(r)?(e=!0,bi(t)):e=!1,yr(t,n),wf(t,r,l),za(t,r,l,n),Za(null,t,r,!0,e,n);case 19:return Hf(e,t,n);case 22:return Af(e,t,n)}throw Error(D(156,t.tag))};function Uf(e,t){return y1(e,t)}function Um(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,r){return new Um(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wm(e){if(typeof e=="function")return tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ks)return 11;if(e===ws)return 14}return 2}function Cn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pi(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")tu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case nr:return Dn(n.children,l,i,t);case vs:o=8,l|=8;break;case sa:return e=bt(12,n,t,l|2),e.elementType=sa,e.lanes=i,e;case ua:return e=bt(13,n,t,l),e.elementType=ua,e.lanes=i,e;case ca:return e=bt(19,n,t,l),e.elementType=ca,e.lanes=i,e;case e1:return ro(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G0:o=10;break e;case J0:o=9;break e;case ks:o=11;break e;case ws:o=14;break e;case fn:o=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=bt(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Dn(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function ro(e,t,n,r){return e=bt(22,e,r,t),e.elementType=e1,e.lanes=n,e.stateNode={isHidden:!1},e}function Vo(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function Zo(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,l,i,o,a,s){return e=new Qm(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=bt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(i),e}function Xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wf(e){if(!e)return Mn;e=e._reactInternals;e:{if(Qn(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(ft(n))return U1(e,n,t)}return t}function Qf(e,t,n,r,l,i,o,a,s){return e=nu(n,r,!0,e,l,i,o,a,s),e.context=Wf(null),n=e.current,r=rt(),l=En(n),i=Kt(r,l),i.callback=t??null,wn(n,i,l),e.current.lanes=l,Ml(e,l,r),dt(e,r),e}function lo(e,t,n,r){var l=t.current,i=rt(),o=En(l);return n=Wf(n),t.context===null?t.context=n:t.pendingContext=n,t=Kt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=wn(l,t,o),e!==null&&(Ft(e,l,o,i),ai(e,l,o)),o}function Vi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ic(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ru(e,t){Ic(e,t),(e=e.alternate)&&Ic(e,t)}function Ym(){return null}var Xf=typeof reportError=="function"?reportError:function(e){console.error(e)};function lu(e){this._internalRoot=e}io.prototype.render=lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));lo(e,t,null,null)};io.prototype.unmount=lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Bn(function(){lo(null,e,null,null)}),t[Jt]=null}};function io(e){this._internalRoot=e}io.prototype.unstable_scheduleHydration=function(e){if(e){var t=C1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pn.length&&t!==0&&t<pn[n].priority;n++);pn.splice(n,0,e),n===0&&M1(e)}};function iu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pc(){}function qm(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var u=Vi(o);i.call(u)}}var o=Qf(t,r,e,0,null,!1,!1,"",Pc);return e._reactRootContainer=o,e[Jt]=o.current,hl(e.nodeType===8?e.parentNode:e),Bn(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var u=Vi(s);a.call(u)}}var s=nu(e,0,!1,null,null,!1,!1,"",Pc);return e._reactRootContainer=s,e[Jt]=s.current,hl(e.nodeType===8?e.parentNode:e),Bn(function(){lo(t,s,n,r)}),s}function ao(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var a=l;l=function(){var s=Vi(o);a.call(s)}}lo(t,o,e,l)}else o=qm(n,t,e,l,r);return Vi(o)}S1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(Cs(t,n|1),dt(t,Fe()),!(he&6)&&(Mr=Fe()+500,Hn()))}break;case 13:Bn(function(){var r=en(e,1);if(r!==null){var l=rt();Ft(r,e,1,l)}}),ru(e,1)}};As=function(e){if(e.tag===13){var t=en(e,134217728);if(t!==null){var n=rt();Ft(t,e,134217728,n)}ru(e,134217728)}};E1=function(e){if(e.tag===13){var t=En(e),n=en(e,t);if(n!==null){var r=rt();Ft(n,e,t,r)}ru(e,t)}};C1=function(){return xe};A1=function(e,t){var n=xe;try{return xe=e,t()}finally{xe=n}};ka=function(e,t,n){switch(t){case"input":if(pa(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Ki(r);if(!l)throw Error(D(90));n1(r),pa(r,l)}}}break;case"textarea":l1(e,n);break;case"select":t=n.value,t!=null&&pr(e,!!n.multiple,t,!1)}};f1=Gs;d1=Bn;var Km={usingClientEntryPoint:!1,Events:[Nl,or,Ki,u1,c1,Gs]},Vr={findFiberByHostInstance:_n,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gm={bundleType:Vr.bundleType,version:Vr.version,rendererPackageName:Vr.rendererPackageName,rendererConfig:Vr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=m1(e),e===null?null:e.stateNode},findFiberByHostInstance:Vr.findFiberByHostInstance||Ym,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{Qi=Yl.inject(Gm),Bt=Yl}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Km;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!iu(t))throw Error(D(200));return Xm(e,t,null,n)};St.createRoot=function(e,t){if(!iu(e))throw Error(D(299));var n=!1,r="",l=Xf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,r,l),e[Jt]=t.current,hl(e.nodeType===8?e.parentNode:e),new lu(t)};St.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=m1(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Bn(e)};St.hydrate=function(e,t,n){if(!oo(t))throw Error(D(200));return ao(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!iu(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Xf;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Qf(t,null,e,1,n??null,l,!1,i,o),e[Jt]=t.current,hl(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new io(t)};St.render=function(e,t,n){if(!oo(t))throw Error(D(200));return ao(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!oo(e))throw Error(D(40));return e._reactRootContainer?(Bn(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[Jt]=null})}),!0):!1};St.unstable_batchedUpdates=Gs;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!oo(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return ao(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function Yf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yf)}catch(e){console.error(e)}}Yf(),X0.exports=St;var Jm=X0.exports,jc=Jm;oa.createRoot=jc.createRoot,oa.hydrateRoot=jc.hydrateRoot;function _c(e){return typeof e=="string"?e:Array.isArray(e)?e.filter(t=>t.type==="text").map(t=>t.text).join(`
|
|
41
|
+
`):""}function Oo(e,t){const n=[...e],r=n[n.length-1];return r!=null&&r.isStreaming?n[n.length-1]={...r,...t(r)}:n.push({id:`assistant-${Date.now()}`,role:"assistant",content:"",thinking:"",tools:[],isStreaming:!0,images:void 0,createdAt:Date.now(),...t({id:"",role:"assistant",content:"",thinking:"",tools:[]})}),n}function ql(e,t){switch(t.type){case"ready":return t.messages.map((n,r)=>({id:`hist-${r}`,role:n.role,content:_c(n.content),thinking:typeof n.thinking=="string"?n.thinking:"",tools:Array.isArray(n.tools)?n.tools:[],createdAt:typeof n.createdAt=="number"?n.createdAt:void 0,images:Array.isArray(n.images)?n.images:[]}));case"user_message":return[...e,{id:`user-${Date.now()}`,role:"user",content:_c(t.text),images:t.images??[],createdAt:Date.now()}];case"assistant_start":return e;case"thinking_delta":return Oo(e,n=>({thinking:(n.thinking??"")+t.delta}));case"text_delta":return Oo(e,n=>({content:n.content+t.delta}));case"tool_start":return Oo(e,n=>({tools:[...n.tools??[],{name:t.name,args:typeof t.args=="string"?t.args:JSON.stringify(t.args).slice(0,80),result:"",isError:!1,images:[]}]}));case"tool_progress":{const n=[...e],r=n[n.length-1];if(r!=null&&r.isStreaming&&r.tools){const l=r.tools.map(i=>i.name===t.name&&!i.result?{...i,progress:t.progress,progressTotal:t.total,progressMessage:t.message}:i);n[n.length-1]={...r,tools:l}}return n}case"tool_end":{const n=[...e],r=n[n.length-1];if(r!=null&&r.isStreaming){const l=(r.tools??[]).map(i=>i.name===t.name&&!i.result?{...i,result:t.result,isError:t.isError,images:t.images??i.images}:i);n[n.length-1]={...r,tools:l}}return n}case"mcp_app":{const n=[...e];for(let r=n.length-1;r>=0;r--){const l=n[r];if(l.tools){const i=l.tools.findIndex(o=>o.name===t.app.toolName);if(i>=0){const o=[...l.tools];o[i]={...o[i],mcpApp:t.app},n[r]={...l,tools:o};break}}}return n}case"assistant_end":{const n=[...e],r=n[n.length-1];return r!=null&&r.isStreaming&&(n[n.length-1]={...r,isStreaming:!1}),n}case"clear_conversation":return[];default:return e}}function e2(e){const t=c.useRef(null),[n,r]=c.useState(!1),l=c.useRef(),i=c.useRef(e);i.current=e;const o=c.useCallback(()=>{var h;if(((h=t.current)==null?void 0:h.readyState)===WebSocket.OPEN)return;const s=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.host,d=`${s}//${u}/ws`,f=new WebSocket(d);t.current=f,f.onopen=()=>{r(!0)},f.onmessage=p=>{try{const x=JSON.parse(p.data);i.current(x)}catch{}},f.onclose=()=>{r(!1),t.current=null,l.current=setTimeout(o,2e3)},f.onerror=()=>{f.close()}},[]),a=c.useCallback(s=>{var u;((u=t.current)==null?void 0:u.readyState)===WebSocket.OPEN&&t.current.send(JSON.stringify(s))},[]);return c.useEffect(()=>(o(),()=>{var s;clearTimeout(l.current),(s=t.current)==null||s.close()}),[o]),{connected:n,send:a}}function t2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const n2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,r2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l2={};function Fc(e,t){return(l2.jsx?r2:n2).test(e)}const i2=/[ \t\n\f\r]/g;function o2(e){return typeof e=="object"?e.type==="text"?Rc(e.value):!1:Rc(e)}function Rc(e){return e.replace(i2,"")===""}class Tl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Tl.prototype.normal={};Tl.prototype.property={};Tl.prototype.space=void 0;function qf(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new Tl(n,r,t)}function Ja(e){return e.toLowerCase()}class pt{constructor(t,n){this.attribute=n,this.property=t}}pt.prototype.attribute="";pt.prototype.booleanish=!1;pt.prototype.boolean=!1;pt.prototype.commaOrSpaceSeparated=!1;pt.prototype.commaSeparated=!1;pt.prototype.defined=!1;pt.prototype.mustUseProperty=!1;pt.prototype.number=!1;pt.prototype.overloadedBoolean=!1;pt.prototype.property="";pt.prototype.spaceSeparated=!1;pt.prototype.space=void 0;let a2=0;const ae=Xn(),ze=Xn(),es=Xn(),V=Xn(),we=Xn(),vr=Xn(),gt=Xn();function Xn(){return 2**++a2}const ts=Object.freeze(Object.defineProperty({__proto__:null,boolean:ae,booleanish:ze,commaOrSpaceSeparated:gt,commaSeparated:vr,number:V,overloadedBoolean:es,spaceSeparated:we},Symbol.toStringTag,{value:"Module"})),$o=Object.keys(ts);class ou extends pt{constructor(t,n,r,l){let i=-1;if(super(t,n),zc(this,"space",l),typeof r=="number")for(;++i<$o.length;){const o=$o[i];zc(this,$o[i],(r&ts[o])===ts[o])}}}ou.prototype.defined=!0;function zc(e,t,n){n&&(e[t]=n)}function Lr(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const i=new ou(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ja(r)]=r,n[Ja(i.attribute)]=r}return new Tl(t,n,e.space)}const Kf=Lr({properties:{ariaActiveDescendant:null,ariaAtomic:ze,ariaAutoComplete:null,ariaBusy:ze,ariaChecked:ze,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:we,ariaCurrent:null,ariaDescribedBy:we,ariaDetails:null,ariaDisabled:ze,ariaDropEffect:we,ariaErrorMessage:null,ariaExpanded:ze,ariaFlowTo:we,ariaGrabbed:ze,ariaHasPopup:null,ariaHidden:ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:we,ariaLevel:V,ariaLive:null,ariaModal:ze,ariaMultiLine:ze,ariaMultiSelectable:ze,ariaOrientation:null,ariaOwns:we,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:ze,ariaReadOnly:ze,ariaRelevant:null,ariaRequired:ze,ariaRoleDescription:we,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:ze,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Gf(e,t){return t in e?e[t]:t}function Jf(e,t){return Gf(e,t.toLowerCase())}const s2=Lr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vr,acceptCharset:we,accessKey:we,action:null,allow:null,allowFullScreen:ae,allowPaymentRequest:ae,allowUserMedia:ae,alt:null,as:null,async:ae,autoCapitalize:null,autoComplete:we,autoFocus:ae,autoPlay:ae,blocking:we,capture:null,charSet:null,checked:ae,cite:null,className:we,cols:V,colSpan:null,content:null,contentEditable:ze,controls:ae,controlsList:we,coords:V|vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ae,defer:ae,dir:null,dirName:null,disabled:ae,download:es,draggable:ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ae,formTarget:null,headers:we,height:V,hidden:es,high:V,href:null,hrefLang:null,htmlFor:we,httpEquiv:we,id:null,imageSizes:null,imageSrcSet:null,inert:ae,inputMode:null,integrity:null,is:null,isMap:ae,itemId:null,itemProp:we,itemRef:we,itemScope:ae,itemType:we,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ae,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ae,muted:ae,name:null,nonce:null,noModule:ae,noValidate:ae,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ae,optimum:V,pattern:null,ping:we,placeholder:null,playsInline:ae,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ae,referrerPolicy:null,rel:we,required:ae,reversed:ae,rows:V,rowSpan:V,sandbox:we,scope:null,scoped:ae,seamless:ae,selected:ae,shadowRootClonable:ae,shadowRootDelegatesFocus:ae,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ae,useMap:null,value:ze,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:we,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ae,declare:ae,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ae,noHref:ae,noShade:ae,noWrap:ae,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:ze,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ae,disableRemotePlayback:ae,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Jf}),u2=Lr({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:gt,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:we,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ae,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:vr,g2:vr,glyphName:vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:we,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gt,rev:gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gt,requiredFeatures:gt,requiredFonts:gt,requiredFormats:gt,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gt,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Gf}),ed=Lr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),td=Lr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Jf}),nd=Lr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),c2={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"},f2=/[A-Z]/g,Dc=/-[a-z]/g,d2=/^data[-\w.:]+$/i;function p2(e,t){const n=Ja(t);let r=t,l=pt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&d2.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Dc,m2);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Dc.test(i)){let o=i.replace(f2,h2);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=ou}return new l(r,t)}function h2(e){return"-"+e.toLowerCase()}function m2(e){return e.charAt(1).toUpperCase()}const g2=qf([Kf,s2,ed,td,nd],"html"),au=qf([Kf,u2,ed,td,nd],"svg");function y2(e){return e.join(" ").trim()}var su={},Vc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,x2=/\n/g,v2=/^\s*/,k2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,w2=/^:\s*/,S2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,E2=/^[;\s]*/,C2=/^\s+|\s+$/g,A2=`
|
|
42
|
+
`,Zc="/",Oc="*",jn="",M2="comment",b2="declaration";function N2(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(x){var S=x.match(x2);S&&(n+=S.length);var T=x.lastIndexOf(A2);r=~T?x.length-T:r+x.length}function i(){var x={line:n,column:r};return function(S){return S.position=new o(x),u(),S}}function o(x){this.start=x,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(x){var S=new Error(t.source+":"+n+":"+r+": "+x);if(S.reason=x,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function s(x){var S=x.exec(e);if(S){var T=S[0];return l(T),e=e.slice(T.length),S}}function u(){s(v2)}function d(x){var S;for(x=x||[];S=f();)S!==!1&&x.push(S);return x}function f(){var x=i();if(!(Zc!=e.charAt(0)||Oc!=e.charAt(1))){for(var S=2;jn!=e.charAt(S)&&(Oc!=e.charAt(S)||Zc!=e.charAt(S+1));)++S;if(S+=2,jn===e.charAt(S-1))return a("End of comment missing");var T=e.slice(2,S-2);return r+=2,l(T),e=e.slice(S),r+=2,x({type:M2,comment:T})}}function h(){var x=i(),S=s(k2);if(S){if(f(),!s(w2))return a("property missing ':'");var T=s(S2),g=x({type:b2,property:$c(S[0].replace(Vc,jn)),value:T?$c(T[0].replace(Vc,jn)):jn});return s(E2),g}}function p(){var x=[];d(x);for(var S;S=h();)S!==!1&&(x.push(S),d(x));return x}return u(),p()}function $c(e){return e?e.replace(C2,jn):jn}var H2=N2,T2=gi&&gi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(su,"__esModule",{value:!0});su.default=I2;const L2=T2(H2);function I2(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,L2.default)(e),l=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:o,value:a}=i;l?t(o,a,i):a&&(n=n||{},n[o]=a)}),n}var so={};Object.defineProperty(so,"__esModule",{value:!0});so.camelCase=void 0;var P2=/^--[a-zA-Z0-9_-]+$/,j2=/-([a-z])/g,_2=/^[^-]+$/,F2=/^-(webkit|moz|ms|o|khtml)-/,R2=/^-(ms)-/,z2=function(e){return!e||_2.test(e)||P2.test(e)},D2=function(e,t){return t.toUpperCase()},Bc=function(e,t){return"".concat(t,"-")},V2=function(e,t){return t===void 0&&(t={}),z2(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(R2,Bc):e=e.replace(F2,Bc),e.replace(j2,D2))};so.camelCase=V2;var Z2=gi&&gi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},O2=Z2(su),$2=so;function ns(e,t){var n={};return!e||typeof e!="string"||(0,O2.default)(e,function(r,l){r&&l&&(n[(0,$2.camelCase)(r,t)]=l)}),n}ns.default=ns;var B2=ns;const U2=fs(B2),rd=ld("end"),uu=ld("start");function ld(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function W2(e){const t=uu(e),n=rd(e);if(t&&n)return{start:t,end:n}}function rl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Uc(e.position):"start"in e||"end"in e?Uc(e):"line"in e||"column"in e?rs(e):""}function rs(e){return Wc(e&&e.line)+":"+Wc(e&&e.column)}function Uc(e){return rs(e&&e.start)+"-"+rs(e&&e.end)}function Wc(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=a?a.line:void 0,this.name=rl(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const cu={}.hasOwnProperty,Q2=new Map,X2=/[A-Z]/g,Y2=new Set(["table","tbody","thead","tfoot","tr"]),q2=new Set(["td","th"]),id="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function K2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ig(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=lg(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?au:g2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=od(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function od(e,t,n){if(t.type==="element")return G2(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return J2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return tg(e,t,n);if(t.type==="mdxjsEsm")return eg(e,t);if(t.type==="root")return ng(e,t,n);if(t.type==="text")return rg(e,t)}function G2(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=au,e.schema=l),e.ancestors.push(t);const i=sd(e,t.tagName,!1),o=og(e,t);let a=du(e,t);return Y2.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!o2(s):!0})),ad(e,o,i,t),fu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function J2(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}El(e,t.position)}function eg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);El(e,t.position)}function tg(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=au,e.schema=l),e.ancestors.push(t);const i=t.name===null?e.Fragment:sd(e,t.name,!0),o=ag(e,t),a=du(e,t);return ad(e,o,i,t),fu(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function ng(e,t,n){const r={};return fu(r,du(e,t)),e.create(t,e.Fragment,r,n)}function rg(e,t){return t.value}function ad(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fu(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function lg(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function ig(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=uu(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function og(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&cu.call(t.properties,l)){const i=sg(e,l,t.properties[l]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&q2.has(t.tagName)?r=a:n[o]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ag(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else El(e,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else El(e,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function du(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:Q2;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const s=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(s){const u=l.get(s)||0;o=s+"-"+u,l.set(s,u+1)}}const a=od(e,i,o);a!==void 0&&n.push(a)}return n}function sg(e,t,n){const r=p2(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?t2(n):y2(n)),r.property==="style"){let l=typeof n=="object"?n:ug(e,String(n));return e.stylePropertyNameCase==="css"&&(l=cg(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?c2[r.property]||r.property:r.attribute,n]}}function ug(e,t){try{return U2(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new et("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=id+"#cannot-parse-style-attribute",l}}function sd(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,o;for(;++i<l.length;){const a=Fc(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=o}else r=Fc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return cu.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);El(e)}function El(e,t){const n=new et("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=id+"#cannot-handle-mdx-estrees-without-createevaluater",n}function cg(e){const t={};let n;for(n in e)cu.call(e,n)&&(t[fg(n)]=e[n]);return t}function fg(e){let t=e.replace(X2,dg);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dg(e){return"-"+e.toLowerCase()}const Bo={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"]},pg={};function pu(e,t){const n=pg,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ud(e,r,l)}function ud(e,t,n){if(hg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Qc(e.children,t,n)}return Array.isArray(e)?Qc(e,t,n):""}function Qc(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=ud(e[l],t,n);return r.join("")}function hg(e){return!!(e&&typeof e=="object")}const Xc=document.createElement("i");function hu(e){const t="&"+e+";";Xc.innerHTML=t;const n=Xc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function kt(e,t,n,r){const l=e.length;let i=0,o;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function Mt(e,t){return e.length>0?(kt(e,e.length,0,t),e):t}const Yc={}.hasOwnProperty;function cd(e){const t={};let n=-1;for(;++n<e.length;)mg(t,e[n]);return t}function mg(e,t){let n;for(n in t){const l=(Yc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Yc.call(l,o)||(l[o]=[]);const a=i[o];gg(l[o],Array.isArray(a)?a:a?[a]:[])}}}function gg(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);kt(e,0,0,r)}function fd(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nt=Tn(/[A-Za-z]/),Ge=Tn(/[\dA-Za-z]/),yg=Tn(/[#-'*+\--9=?A-Z^-~]/);function Zi(e){return e!==null&&(e<32||e===127)}const ls=Tn(/\d/),xg=Tn(/[\dA-Fa-f]/),vg=Tn(/[!-/:-@[-`{-~]/);function te(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const uo=Tn(new RegExp("\\p{P}|\\p{S}","u")),Un=Tn(/\s/);function Tn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ir(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Ge(e.charCodeAt(n+1))&&Ge(e.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return ue(s)?(e.enter(n),a(s)):t(s)}function a(s){return ue(s)&&i++<l?(e.consume(s),a):(e.exit(n),t(s))}}const kg={tokenize:wg};function wg(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),pe(e,t,"linePrefix")}function l(a){return e.enter("paragraph"),i(a)}function i(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return te(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),o)}}const Sg={tokenize:Eg},qc={tokenize:Cg};function Eg(e){const t=this,n=[];let r=0,l,i,o;return a;function a(v){if(r<n.length){const N=n[r];return t.containerState=N[1],e.attempt(N[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&y();const N=t.events.length;let j=N,w;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){w=t.events[j][1].end;break}g(r);let _=N;for(;_<t.events.length;)t.events[_][1].end={...w},_++;return kt(t.events,j+1,0,t.events.slice(N)),t.events.length=_,u(v)}return a(v)}function u(v){if(r===n.length){if(!l)return h(v);if(l.currentConstruct&&l.currentConstruct.concrete)return x(v);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qc,d,f)(v)}function d(v){return l&&y(),g(r),h(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,x(v)}function h(v){return t.containerState={},e.attempt(qc,p,x)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function x(v){if(v===null){l&&y(),g(0),e.consume(v);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),S(v)}function S(v){if(v===null){T(e.exit("chunkFlow"),!0),g(0),e.consume(v);return}return te(v)?(e.consume(v),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),S)}function T(v,N){const j=t.sliceStream(v);if(N&&j.push(null),v.previous=i,i&&(i.next=v),i=v,l.defineSkip(v.start),l.write(j),t.parser.lazy[v.start.line]){let w=l.events.length;for(;w--;)if(l.events[w][1].start.offset<o&&(!l.events[w][1].end||l.events[w][1].end.offset>o))return;const _=t.events.length;let F=_,X,M;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(X){M=t.events[F][1].end;break}X=!0}for(g(r),w=_;w<t.events.length;)t.events[w][1].end={...M},w++;kt(t.events,F+1,0,t.events.slice(_)),t.events.length=w}}function g(v){let N=n.length;for(;N-- >v;){const j=n[N];t.containerState=j[1],j[0].exit.call(t,e)}n.length=v}function y(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Cg(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function br(e){if(e===null||ke(e)||Un(e))return 1;if(uo(e))return 2}function co(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const i=e[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const is={name:"attention",resolveAll:Ag,tokenize:Mg};function Ag(e,t){let n=-1,r,l,i,o,a,s,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},h={...e[n][1].start};Kc(f,-s),Kc(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},i={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Mt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Mt(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Mt(u,co(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Mt(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Mt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,kt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Mg(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=br(r);let i;return o;function o(s){return i=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===i)return e.consume(s),a;const u=e.exit("attentionSequence"),d=br(s),f=!d||d===2&&l||n.includes(s),h=!l||l===2&&d||n.includes(r);return u._open=!!(i===42?f:f&&(l||!h)),u._close=!!(i===42?h:h&&(d||!f)),t(s)}}function Kc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bg={name:"autolink",tokenize:Ng};function Ng(e,t,n){let r=0;return l;function l(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return nt(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||Ge(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Ge(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Zi(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),d):yg(p)?(e.consume(p),u):n(p)}function d(p){return Ge(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||Ge(p))&&r++<63){const x=p===45?h:f;return e.consume(p),x}return n(p)}}const Ll={partial:!0,tokenize:Hg};function Hg(e,t,n){return r;function r(i){return ue(i)?pe(e,l,"linePrefix")(i):l(i)}function l(i){return i===null||te(i)?t(i):n(i)}}const dd={continuation:{tokenize:Lg},exit:Ig,name:"blockQuote",tokenize:Tg};function Tg(e,t,n){const r=this;return l;function l(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return ue(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Lg(e,t,n){const r=this;return l;function l(o){return ue(o)?pe(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(dd,t,n)(o)}}function Ig(e){e.exit("blockQuote")}const pd={name:"characterEscape",tokenize:Pg};function Pg(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),l}function l(i){return vg(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const hd={name:"characterReference",tokenize:jg};function jg(e,t,n){const r=this;let l=0,i,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Ge,d(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=xg,d):(e.enter("characterReferenceValue"),i=7,o=ls,d(f))}function d(f){if(f===59&&l){const h=e.exit("characterReferenceValue");return o===Ge&&!hu(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&l++<i?(e.consume(f),d):n(f)}}const Gc={partial:!0,tokenize:Fg},Jc={concrete:!0,name:"codeFenced",tokenize:_g};function _g(e,t,n){const r=this,l={partial:!0,tokenize:j};let i=0,o=0,a;return s;function s(w){return u(w)}function u(w){const _=r.events[r.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(w)}function d(w){return w===a?(o++,e.consume(w),d):o<3?n(w):(e.exit("codeFencedFenceSequence"),ue(w)?pe(e,f,"whitespace")(w):f(w))}function f(w){return w===null||te(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Gc,S,N)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||te(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):ue(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,p,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),h)}function p(w){return w===null||te(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===null||te(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===a?n(w):(e.consume(w),x)}function S(w){return e.attempt(l,N,T)(w)}function T(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),g}function g(w){return i>0&&ue(w)?pe(e,y,"linePrefix",i+1)(w):y(w)}function y(w){return w===null||te(w)?e.check(Gc,S,N)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||te(w)?(e.exit("codeFlowValue"),y(w)):(e.consume(w),v)}function N(w){return e.exit("codeFenced"),t(w)}function j(w,_,F){let X=0;return M;function M(J){return w.enter("lineEnding"),w.consume(J),w.exit("lineEnding"),O}function O(J){return w.enter("codeFencedFence"),ue(J)?pe(w,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):U(J)}function U(J){return J===a?(w.enter("codeFencedFenceSequence"),oe(J)):F(J)}function oe(J){return J===a?(X++,w.consume(J),oe):X>=o?(w.exit("codeFencedFenceSequence"),ue(J)?pe(w,ie,"whitespace")(J):ie(J)):F(J)}function ie(J){return J===null||te(J)?(w.exit("codeFencedFence"),_(J)):F(J)}}}function Fg(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Uo={name:"codeIndented",tokenize:zg},Rg={partial:!0,tokenize:Dg};function zg(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),pe(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):te(u)?e.attempt(Rg,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||te(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Dg(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):pe(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):te(o)?l(o):n(o)}}const Vg={name:"codeText",previous:Og,resolve:Zg,tokenize:$g};function Zg(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function Og(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $g(e,t,n){let r=0,l,i;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(i=e.enter("codeTextSequence"),l=0,d(f)):te(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||te(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),u)}function d(f){return f===96?(e.consume(f),l++,d):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class Bg{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&Zr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Zr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zr(this.left,n.reverse())}}}function Zr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function md(e){const t={};let n=-1,r,l,i,o,a,s,u;const d=new Bg(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,i=0,i<s.length&&s[i][1].type==="lineEndingBlank"&&(i+=2),i<s.length&&s[i][1].type==="content"))for(;++i<s.length&&s[i][1].type!=="content";)s[i][1].type==="chunkText"&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ug(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(d.get(l)[1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;l&&(r[1].end={...d.get(l)[1].start},a=d.slice(l,n),a.unshift(r),d.splice(l,n-l+1,a))}}return kt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function Ug(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,s=[],u={};let d,f,h=-1,p=n,x=0,S=0;const T=[S];for(;p;){for(;e.get(++l)[1]!==p;);i.push(l),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,T.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),h=T.length;h--;){const g=a.slice(T[h],T[h+1]),y=i.pop();s.push([y,y+g.length-1]),e.splice(y,2,g)}for(s.reverse(),h=-1;++h<s.length;)u[x+s[h][0]]=x+s[h][1],x+=s[h][1]-s[h][0]-1;return u}const Wg={resolve:Xg,tokenize:Yg},Qg={partial:!0,tokenize:qg};function Xg(e){return md(e),e}function Yg(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(a)}function l(a){return a===null?i(a):te(a)?e.check(Qg,o,i)(a):(e.consume(a),l)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function qg(e,t,n){const r=this;return l;function l(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,i,"linePrefix")}function i(o){if(o===null||te(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function gd(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let d=0;return f;function f(g){return g===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(g),e.exit(i),h):g===null||g===32||g===41||Zi(g)?n(g):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(g))}function h(g){return g===62?(e.enter(i),e.consume(g),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||te(g)?n(g):(e.consume(g),g===92?x:p)}function x(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function S(g){return!d&&(g===null||g===41||ke(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(g)):d<u&&g===40?(e.consume(g),d++,S):g===41?(e.consume(g),d--,S):g===null||g===32||g===40||Zi(g)?n(g):(e.consume(g),g===92?T:S)}function T(g){return g===40||g===41||g===92?(e.consume(g),S):S(g)}}function yd(e,t,n,r,l,i){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(l),e.consume(p),e.exit(l),e.enter(i),d}function d(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):te(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||te(p)||a++>999?(e.exit("chunkString"),d(p)):(e.consume(p),s||(s=!ue(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function xd(e,t,n,r,l,i){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(l),e.consume(h),e.exit(l),o=h===40?41:h,s):n(h)}function s(h){return h===o?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),t):(e.enter(i),u(h))}function u(h){return h===o?(e.exit(i),s(o)):h===null?n(h):te(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===o||h===null||te(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:d)}function f(h){return h===o||h===92?(e.consume(h),d):d(h)}}function ll(e,t){let n;return r;function r(l){return te(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):ue(l)?pe(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const Kg={name:"definition",tokenize:Jg},Gg={partial:!0,tokenize:e8};function Jg(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return yd.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return ke(p)?ll(e,u)(p):u(p)}function u(p){return gd(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(Gg,f,f)(p)}function f(p){return ue(p)?pe(e,h,"whitespace")(p):h(p)}function h(p){return p===null||te(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function e8(e,t,n){return r;function r(a){return ke(a)?ll(e,l)(a):n(a)}function l(a){return xd(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return ue(a)?pe(e,o,"whitespace")(a):o(a)}function o(a){return a===null||te(a)?t(a):n(a)}}const t8={name:"hardBreakEscape",tokenize:n8};function n8(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return te(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const r8={name:"headingAtx",resolve:l8,tokenize:i8};function l8(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},kt(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function i8(e,t,n){let r=0;return l;function l(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||ke(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),s(d)):d===null||te(d)?(e.exit("atxHeading"),t(d)):ue(d)?pe(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function s(d){return d===35?(e.consume(d),s):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||ke(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const o8=["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"],e0=["pre","script","style","textarea"],a8={concrete:!0,name:"htmlFlow",resolveTo:c8,tokenize:f8},s8={partial:!0,tokenize:p8},u8={partial:!0,tokenize:d8};function c8(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function f8(e,t,n){const r=this;let l,i,o,a,s;return u;function u(E){return d(E)}function d(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),h):E===47?(e.consume(E),i=!0,S):E===63?(e.consume(E),l=3,r.interrupt?t:k):nt(E)?(e.consume(E),o=String.fromCharCode(E),T):n(E)}function h(E){return E===45?(e.consume(E),l=2,p):E===91?(e.consume(E),l=5,a=0,x):nt(E)?(e.consume(E),l=4,r.interrupt?t:k):n(E)}function p(E){return E===45?(e.consume(E),r.interrupt?t:k):n(E)}function x(E){const ye="CDATA[";return E===ye.charCodeAt(a++)?(e.consume(E),a===ye.length?r.interrupt?t:U:x):n(E)}function S(E){return nt(E)?(e.consume(E),o=String.fromCharCode(E),T):n(E)}function T(E){if(E===null||E===47||E===62||ke(E)){const ye=E===47,Re=o.toLowerCase();return!ye&&!i&&e0.includes(Re)?(l=1,r.interrupt?t(E):U(E)):o8.includes(o.toLowerCase())?(l=6,ye?(e.consume(E),g):r.interrupt?t(E):U(E)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):i?y(E):v(E))}return E===45||Ge(E)?(e.consume(E),o+=String.fromCharCode(E),T):n(E)}function g(E){return E===62?(e.consume(E),r.interrupt?t:U):n(E)}function y(E){return ue(E)?(e.consume(E),y):M(E)}function v(E){return E===47?(e.consume(E),M):E===58||E===95||nt(E)?(e.consume(E),N):ue(E)?(e.consume(E),v):M(E)}function N(E){return E===45||E===46||E===58||E===95||Ge(E)?(e.consume(E),N):j(E)}function j(E){return E===61?(e.consume(E),w):ue(E)?(e.consume(E),j):v(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),s=E,_):ue(E)?(e.consume(E),w):F(E)}function _(E){return E===s?(e.consume(E),s=null,X):E===null||te(E)?n(E):(e.consume(E),_)}function F(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ke(E)?j(E):(e.consume(E),F)}function X(E){return E===47||E===62||ue(E)?v(E):n(E)}function M(E){return E===62?(e.consume(E),O):n(E)}function O(E){return E===null||te(E)?U(E):ue(E)?(e.consume(E),O):n(E)}function U(E){return E===45&&l===2?(e.consume(E),fe):E===60&&l===1?(e.consume(E),b):E===62&&l===4?(e.consume(E),le):E===63&&l===3?(e.consume(E),k):E===93&&l===5?(e.consume(E),q):te(E)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(s8,de,oe)(E)):E===null||te(E)?(e.exit("htmlFlowData"),oe(E)):(e.consume(E),U)}function oe(E){return e.check(u8,ie,de)(E)}function ie(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),J}function J(E){return E===null||te(E)?oe(E):(e.enter("htmlFlowData"),U(E))}function fe(E){return E===45?(e.consume(E),k):U(E)}function b(E){return E===47?(e.consume(E),o="",Z):U(E)}function Z(E){if(E===62){const ye=o.toLowerCase();return e0.includes(ye)?(e.consume(E),le):U(E)}return nt(E)&&o.length<8?(e.consume(E),o+=String.fromCharCode(E),Z):U(E)}function q(E){return E===93?(e.consume(E),k):U(E)}function k(E){return E===62?(e.consume(E),le):E===45&&l===2?(e.consume(E),k):U(E)}function le(E){return E===null||te(E)?(e.exit("htmlFlowData"),de(E)):(e.consume(E),le)}function de(E){return e.exit("htmlFlow"),t(E)}}function d8(e,t,n){const r=this;return l;function l(o){return te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function p8(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Ll,t,n)}}const h8={name:"htmlText",tokenize:m8};function m8(e,t,n){const r=this;let l,i,o;return a;function a(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),j):k===63?(e.consume(k),v):nt(k)?(e.consume(k),F):n(k)}function u(k){return k===45?(e.consume(k),d):k===91?(e.consume(k),i=0,x):nt(k)?(e.consume(k),y):n(k)}function d(k){return k===45?(e.consume(k),p):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),h):te(k)?(o=f,b(k)):(e.consume(k),f)}function h(k){return k===45?(e.consume(k),p):f(k)}function p(k){return k===62?fe(k):k===45?h(k):f(k)}function x(k){const le="CDATA[";return k===le.charCodeAt(i++)?(e.consume(k),i===le.length?S:x):n(k)}function S(k){return k===null?n(k):k===93?(e.consume(k),T):te(k)?(o=S,b(k)):(e.consume(k),S)}function T(k){return k===93?(e.consume(k),g):S(k)}function g(k){return k===62?fe(k):k===93?(e.consume(k),g):S(k)}function y(k){return k===null||k===62?fe(k):te(k)?(o=y,b(k)):(e.consume(k),y)}function v(k){return k===null?n(k):k===63?(e.consume(k),N):te(k)?(o=v,b(k)):(e.consume(k),v)}function N(k){return k===62?fe(k):v(k)}function j(k){return nt(k)?(e.consume(k),w):n(k)}function w(k){return k===45||Ge(k)?(e.consume(k),w):_(k)}function _(k){return te(k)?(o=_,b(k)):ue(k)?(e.consume(k),_):fe(k)}function F(k){return k===45||Ge(k)?(e.consume(k),F):k===47||k===62||ke(k)?X(k):n(k)}function X(k){return k===47?(e.consume(k),fe):k===58||k===95||nt(k)?(e.consume(k),M):te(k)?(o=X,b(k)):ue(k)?(e.consume(k),X):fe(k)}function M(k){return k===45||k===46||k===58||k===95||Ge(k)?(e.consume(k),M):O(k)}function O(k){return k===61?(e.consume(k),U):te(k)?(o=O,b(k)):ue(k)?(e.consume(k),O):X(k)}function U(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,oe):te(k)?(o=U,b(k)):ue(k)?(e.consume(k),U):(e.consume(k),ie)}function oe(k){return k===l?(e.consume(k),l=void 0,J):k===null?n(k):te(k)?(o=oe,b(k)):(e.consume(k),oe)}function ie(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ke(k)?X(k):(e.consume(k),ie)}function J(k){return k===47||k===62||ke(k)?X(k):n(k)}function fe(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function b(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Z}function Z(k){return ue(k)?pe(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):q(k)}function q(k){return e.enter("htmlTextData"),o(k)}}const mu={name:"labelEnd",resolveAll:v8,resolveTo:k8,tokenize:w8},g8={tokenize:S8},y8={tokenize:E8},x8={tokenize:C8};function v8(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&kt(e,0,e.length,n),e}function k8(e,t){let n=e.length,r=0,l,i,o,a;for(;n--;)if(l=e[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=n);const s={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Mt(a,e.slice(i+1,i+r+3)),a=Mt(a,[["enter",d,t]]),a=Mt(a,co(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),a=Mt(a,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),a=Mt(a,e.slice(o+1)),a=Mt(a,[["exit",s,t]]),kt(e,i,e.length,a),e}function w8(e,t,n){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return a;function a(h){return i?i._inactive?f(h):(o=r.parser.defined.includes(Rt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):n(h)}function s(h){return h===40?e.attempt(g8,d,o?d:f)(h):h===91?e.attempt(y8,d,o?u:f)(h):o?d(h):f(h)}function u(h){return e.attempt(x8,d,f)(h)}function d(h){return t(h)}function f(h){return i._balanced=!0,n(h)}}function S8(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),l}function l(f){return ke(f)?ll(e,i)(f):i(f)}function i(f){return f===41?d(f):gd(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return ke(f)?ll(e,s)(f):d(f)}function a(f){return n(f)}function s(f){return f===34||f===39||f===40?xd(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function u(f){return ke(f)?ll(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function E8(e,t,n){const r=this;return l;function l(a){return yd.call(r,e,i,o,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function C8(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),l}function l(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const A8={name:"labelStartImage",resolveAll:mu.resolveAll,tokenize:M8};function M8(e,t,n){const r=this;return l;function l(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const b8={name:"labelStartLink",resolveAll:mu.resolveAll,tokenize:N8};function N8(e,t,n){const r=this;return l;function l(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Wo={name:"lineEnding",tokenize:H8};function H8(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const hi={name:"thematicBreak",tokenize:T8};function T8(e,t,n){let r=0,l;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return l=u,a(u)}function a(u){return u===l?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||te(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),ue(u)?pe(e,a,"whitespace")(u):a(u))}}const at={continuation:{tokenize:j8},exit:F8,name:"list",tokenize:P8},L8={partial:!0,tokenize:R8},I8={partial:!0,tokenize:_8};function P8(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ls(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(hi,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return ls(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ll,r.interrupt?n:d,e.attempt(L8,h,f))}function d(p){return r.containerState.initialBlankLine=!0,i++,h(p)}function f(p){return ue(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function j8(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ll,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!ue(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(I8,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(at,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function _8(e,t,n){const r=this;return pe(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function F8(e){e.exit(this.containerState.type)}function R8(e,t,n){const r=this;return pe(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!ue(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const t0={name:"setextUnderline",resolveTo:z8,tokenize:D8};function z8(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function D8(e,t,n){const r=this;let l;return i;function i(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ue(u)?pe(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||te(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const V8={tokenize:Z8};function Z8(e){const t=this,n=e.attempt(Ll,r,e.attempt(this.parser.constructs.flowInitial,l,pe(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Wg,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const O8={resolveAll:kd()},$8=vd("string"),B8=vd("text");function vd(e){return{resolveAll:kd(e==="text"?U8:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(d){return u(d)?i(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),s}function s(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),s)}function u(d){if(d===null)return!0;const f=l[d];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function kd(e){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return e?e(n,r):n}}function U8(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let i=l.length,o=-1,a=0,s;for(;i--;){const u=l[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const W8={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:dd},Q8={91:Kg},X8={[-2]:Uo,[-1]:Uo,32:Uo},Y8={35:r8,42:hi,45:[t0,hi],60:a8,61:t0,95:hi,96:Jc,126:Jc},q8={38:hd,92:pd},K8={[-5]:Wo,[-4]:Wo,[-3]:Wo,33:A8,38:hd,42:is,60:[bg,h8],91:b8,92:[t8,pd],93:mu,95:is,96:Vg},G8={null:[is,O8]},J8={null:[42,95]},e4={null:[]},t4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:J8,contentInitial:Q8,disable:e4,document:W8,flow:Y8,flowInitial:X8,insideSpan:G8,string:q8,text:K8},Symbol.toStringTag,{value:"Module"}));function n4(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},i=[];let o=[],a=[];const s={attempt:_(j),check:_(w),consume:y,enter:v,exit:N,interrupt:_(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:x,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let d=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function f(O){return o=Mt(o,O),T(),o[o.length-1]!==null?[]:(F(t,0),u.events=co(i,u.events,u),u.events)}function h(O,U){return l4(p(O),U)}function p(O){return r4(o,O)}function x(){const{_bufferIndex:O,_index:U,line:oe,column:ie,offset:J}=r;return{_bufferIndex:O,_index:U,line:oe,column:ie,offset:J}}function S(O){l[O.line]=O.column,M()}function T(){let O;for(;r._index<o.length;){const U=o[r._index];if(typeof U=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<U.length;)g(U.charCodeAt(r._bufferIndex));else g(U)}}function g(O){d=d(O)}function y(O){te(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,M()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function v(O,U){const oe=U||{};return oe.type=O,oe.start=x(),u.events.push(["enter",oe,u]),a.push(oe),oe}function N(O){const U=a.pop();return U.end=x(),u.events.push(["exit",U,u]),U}function j(O,U){F(O,U.from)}function w(O,U){U.restore()}function _(O,U){return oe;function oe(ie,J,fe){let b,Z,q,k;return Array.isArray(ie)?de(ie):"tokenize"in ie?de([ie]):le(ie);function le(ge){return _e;function _e(ot){const Xe=ot!==null&&ge[ot],ht=ot!==null&&ge.null,mt=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(ht)?ht:ht?[ht]:[]];return de(mt)(ot)}}function de(ge){return b=ge,Z=0,ge.length===0?fe:E(ge[Z])}function E(ge){return _e;function _e(ot){return k=X(),q=ge,ge.partial||(u.currentConstruct=ge),ge.name&&u.parser.constructs.disable.null.includes(ge.name)?Re():ge.tokenize.call(U?Object.assign(Object.create(u),U):u,s,ye,Re)(ot)}}function ye(ge){return O(q,k),J}function Re(ge){return k.restore(),++Z<b.length?E(b[Z]):fe}}}function F(O,U){O.resolveAll&&!i.includes(O)&&i.push(O),O.resolve&&kt(u.events,U,u.events.length-U,O.resolve(u.events.slice(U),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function X(){const O=x(),U=u.previous,oe=u.currentConstruct,ie=u.events.length,J=Array.from(a);return{from:ie,restore:fe};function fe(){r=O,u.previous=U,u.currentConstruct=oe,u.events.length=ie,a=J,M()}}function M(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function r4(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let o;if(n===l)o=[e[n].slice(r,i)];else{if(o=e.slice(n,l),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function l4(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
43
|
+
`;break}case-3:{o=`\r
|
|
44
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function i4(e){const r={constructs:cd([t4,...(e||{}).extensions||[]]),content:l(kg),defined:[],document:l(Sg),flow:l(V8),lazy:{},string:l($8),text:l(B8)};return r;function l(i){return o;function o(a){return n4(r,i,a)}}}function o4(e){for(;!md(e););return e}const n0=/[\0\t\n\r]/g;function a4(){let e=1,t="",n=!0,r;return l;function l(i,o,a){const s=[];let u,d,f,h,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(n0.lastIndex=f,u=n0.exec(i),h=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(h),!u){t=i.slice(f);break}if(p===10&&f===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),f<h&&(s.push(i.slice(f,h)),e+=h-f),p){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const s4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function u4(e){return e.replace(s4,c4)}function c4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return fd(n.slice(i?2:1),i?16:10)}return hu(n)||e}const wd={}.hasOwnProperty;function f4(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),d4(n)(o4(i4(n).document().write(a4()(e,t,!0))))}function d4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(se),autolinkProtocol:X,autolinkEmail:X,atxHeading:i(Dt),blockQuote:i(ht),characterEscape:X,characterReference:X,codeFenced:i(mt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(mt,o),codeText:i(ln,o),codeTextData:X,data:X,codeFlowValue:X,definition:i(on),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(an),hardBreakEscape:i(R),hardBreakTrailing:i(R),htmlFlow:i(ee,o),htmlFlowData:X,htmlText:i(ee,o),htmlTextData:X,image:i(B),label:o,link:i(se),listItem:i(H),listItemValue:h,listOrdered:i(ne,f),listUnordered:i(ne),paragraph:i(P),reference:E,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Dt),strong:i(C),thematicBreak:i(L)},exit:{atxHeading:s(),atxHeadingSequence:j,autolink:s(),autolinkEmail:Xe,autolinkProtocol:ot,blockQuote:s(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:ge,characterReference:_e,codeFenced:s(T),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:M,codeIndented:s(g),codeText:s(J),codeTextData:M,data:M,definition:s(),definitionDestinationString:N,definitionLabelString:y,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(U),hardBreakTrailing:s(U),htmlFlow:s(oe),htmlFlowData:M,htmlText:s(ie),htmlTextData:M,image:s(b),label:q,labelText:Z,lineEnding:O,link:s(fe),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ye,resourceDestinationString:k,resourceTitleString:le,resource:de,setextHeading:s(F),setextHeadingLineSequence:_,setextHeadingText:w,strong:s(),thematicBreak:s()}};Sd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(A){let I={type:"root",children:[]};const $={stack:[I],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:d,data:n},K=[];let G=-1;for(;++G<A.length;)if(A[G][1].type==="listOrdered"||A[G][1].type==="listUnordered")if(A[G][0]==="enter")K.push(G);else{const re=K.pop();G=l(A,re,G)}for(G=-1;++G<A.length;){const re=t[A[G][0]];wd.call(re,A[G][1].type)&&re[A[G][1].type].call(Object.assign({sliceSerialize:A[G][2].sliceSerialize},$),A[G][1])}if($.tokenStack.length>0){const re=$.tokenStack[$.tokenStack.length-1];(re[1]||r0).call($,void 0,re[0])}for(I.position={start:un(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:un(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},G=-1;++G<t.transforms.length;)I=t.transforms[G](I)||I;return I}function l(A,I,$){let K=I-1,G=-1,re=!1,Ie,Ne,Be,Ee;for(;++K<=$;){const z=A[K];switch(z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{z[0]==="enter"?G++:G--,Ee=void 0;break}case"lineEndingBlank":{z[0]==="enter"&&(Ie&&!Ee&&!G&&!Be&&(Be=K),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!G&&z[0]==="enter"&&z[1].type==="listItemPrefix"||G===-1&&z[0]==="exit"&&(z[1].type==="listUnordered"||z[1].type==="listOrdered")){if(Ie){let W=K;for(Ne=void 0;W--;){const ve=A[W];if(ve[1].type==="lineEnding"||ve[1].type==="lineEndingBlank"){if(ve[0]==="exit")continue;Ne&&(A[Ne][1].type="lineEndingBlank",re=!0),ve[1].type="lineEnding",Ne=W}else if(!(ve[1].type==="linePrefix"||ve[1].type==="blockQuotePrefix"||ve[1].type==="blockQuotePrefixWhitespace"||ve[1].type==="blockQuoteMarker"||ve[1].type==="listItemIndent"))break}Be&&(!Ne||Be<Ne)&&(Ie._spread=!0),Ie.end=Object.assign({},Ne?A[Ne][1].start:z[1].end),A.splice(Ne||K,0,["exit",Ie,z[2]]),K++,$++}if(z[1].type==="listItemPrefix"){const W={type:"listItem",_spread:!1,start:Object.assign({},z[1].start),end:void 0};Ie=W,A.splice(K,0,["enter",W,z[2]]),K++,$++,Be=void 0,Ee=!0}}}return A[I][1]._spread=re,$}function i(A,I){return $;function $(K){a.call(this,A(K),K),I&&I.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(A,I,$){this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([I,$||void 0]),A.position={start:un(I.start),end:void 0}}function s(A){return I;function I($){A&&A.call(this,$),u.call(this,$)}}function u(A,I){const $=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==A.type&&(I?I.call(this,A,K[0]):(K[1]||r0).call(this,A,K[0]));else throw new Error("Cannot close `"+A.type+"` ("+rl({start:A.start,end:A.end})+"): it’s not open");$.position.end=un(A.end)}function d(){return pu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(A){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(A),10),this.data.expectingFirstListItemValue=void 0}}function p(){const A=this.resume(),I=this.stack[this.stack.length-1];I.lang=A}function x(){const A=this.resume(),I=this.stack[this.stack.length-1];I.meta=A}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A.replace(/(\r?\n|\r)$/g,"")}function y(A){const I=this.resume(),$=this.stack[this.stack.length-1];$.label=I,$.identifier=Rt(this.sliceSerialize(A)).toLowerCase()}function v(){const A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function N(){const A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function j(A){const I=this.stack[this.stack.length-1];if(!I.depth){const $=this.sliceSerialize(A).length;I.depth=$}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function _(A){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(A).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function X(A){const $=this.stack[this.stack.length-1].children;let K=$[$.length-1];(!K||K.type!=="text")&&(K=Y(),K.position={start:un(A.start),end:void 0},$.push(K)),this.stack.push(K)}function M(A){const I=this.stack.pop();I.value+=this.sliceSerialize(A),I.position.end=un(A.end)}function O(A){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $=I.children[I.children.length-1];$.position.end=un(A.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(X.call(this,A),M.call(this,A))}function U(){this.data.atHardBreak=!0}function oe(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function ie(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function J(){const A=this.resume(),I=this.stack[this.stack.length-1];I.value=A}function fe(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function b(){const A=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";A.type+="Reference",A.referenceType=I,delete A.url,delete A.title}else delete A.identifier,delete A.label;this.data.referenceType=void 0}function Z(A){const I=this.sliceSerialize(A),$=this.stack[this.stack.length-2];$.label=u4(I),$.identifier=Rt(I).toLowerCase()}function q(){const A=this.stack[this.stack.length-1],I=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const K=A.children;$.children=K}else $.alt=I}function k(){const A=this.resume(),I=this.stack[this.stack.length-1];I.url=A}function le(){const A=this.resume(),I=this.stack[this.stack.length-1];I.title=A}function de(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ye(A){const I=this.resume(),$=this.stack[this.stack.length-1];$.label=I,$.identifier=Rt(this.sliceSerialize(A)).toLowerCase(),this.data.referenceType="full"}function Re(A){this.data.characterReferenceType=A.type}function ge(A){const I=this.sliceSerialize(A),$=this.data.characterReferenceType;let K;$?(K=fd(I,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=hu(I);const G=this.stack[this.stack.length-1];G.value+=K}function _e(A){const I=this.stack.pop();I.position.end=un(A.end)}function ot(A){M.call(this,A);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(A)}function Xe(A){M.call(this,A);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(A)}function ht(){return{type:"blockquote",children:[]}}function mt(){return{type:"code",lang:null,meta:null,value:""}}function ln(){return{type:"inlineCode",value:""}}function on(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function an(){return{type:"emphasis",children:[]}}function Dt(){return{type:"heading",depth:0,children:[]}}function R(){return{type:"break"}}function ee(){return{type:"html",value:""}}function B(){return{type:"image",title:null,url:"",alt:null}}function se(){return{type:"link",title:null,url:"",children:[]}}function ne(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function H(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function P(){return{type:"paragraph",children:[]}}function C(){return{type:"strong",children:[]}}function Y(){return{type:"text",value:""}}function L(){return{type:"thematicBreak"}}}function un(e){return{line:e.line,column:e.column,offset:e.offset}}function Sd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Sd(e,r):p4(e,r)}}function p4(e,t){let n;for(n in t)if(wd.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function r0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+rl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+rl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+rl({start:t.start,end:t.end})+") is still open")}function h4(e){const t=this;t.parser=n;function n(r){return f4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function m4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function g4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
45
|
+
`}]}function y4(e,t){const n=t.value?t.value+`
|
|
46
|
+
`:"",r={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(r.className=["language-"+l[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function x4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function v4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function k4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Ir(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function w4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function S4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Ed(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function E4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ed(e,t);const l={src:Ir(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function C4(e,t){const n={src:Ir(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function A4(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function M4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ed(e,t);const l={href:Ir(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function b4(e,t){const n={href:Ir(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function N4(e,t,n){const r=e.all(t),l=n?H4(n):Cd(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(l||a!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
47
|
+
`}),d.type==="element"&&d.tagName==="p"&&!l?o.push(...d.children):o.push(d)}const s=r[r.length-1];s&&(l||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
48
|
+
`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function H4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Cd(n[r])}return t}function Cd(e){const t=e.spread;return t??e.children.length>1}function T4(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const o=r[l];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function L4(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function I4(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function P4(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j4(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),l.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=uu(t.children[1]),s=rd(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function _4(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const f=t.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let x={type:"element",tagName:i,properties:h,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),u.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function F4(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const l0=9,i0=32;function R4(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const i=[];for(;r;)i.push(o0(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(o0(t.slice(l),l>0,!1)),i.join("")}function o0(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===l0||i===i0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===l0||i===i0;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function z4(e,t){const n={type:"text",value:R4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function D4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const V4={blockquote:m4,break:g4,code:y4,delete:x4,emphasis:v4,footnoteReference:k4,heading:w4,html:S4,imageReference:E4,image:C4,inlineCode:A4,linkReference:M4,link:b4,listItem:N4,list:T4,paragraph:L4,root:I4,strong:P4,table:j4,tableCell:F4,tableRow:_4,text:z4,thematicBreak:D4,toml:Kl,yaml:Kl,definition:Kl,footnoteDefinition:Kl};function Kl(){}const Ad=-1,fo=0,il=1,Oi=2,gu=3,yu=4,xu=5,vu=6,Md=7,bd=8,Z4=typeof self=="object"?self:globalThis,a0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Z4[e](t)},O4=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case fo:case Ad:return n(o,l);case il:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Oi:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case gu:return n(new Date(o),l);case yu:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case xu:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case vu:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case Md:{const{name:a,message:s}=o;return n(a0(a,s),l)}case bd:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(a0(i,o),l)};return r},s0=e=>O4(new Map,e)(0),Kn="",{toString:$4}={},{keys:B4}=Object,Or=e=>{const t=typeof e;if(t!=="object"||!e)return[fo,t];const n=$4.call(e).slice(8,-1);switch(n){case"Array":return[il,Kn];case"Object":return[Oi,Kn];case"Date":return[gu,Kn];case"RegExp":return[yu,Kn];case"Map":return[xu,Kn];case"Set":return[vu,Kn];case"DataView":return[il,n]}return n.includes("Array")?[il,n]:n.includes("Error")?[Md,n]:[Oi,n]},Gl=([e,t])=>e===fo&&(t==="function"||t==="symbol"),U4=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=Or(o);switch(a){case fo:{let d=o;switch(s){case"bigint":a=bd,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);d=null;break;case"undefined":return l([Ad],o)}return l([a,d],o)}case il:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),l([s,[...h]],o)}const d=[],f=l([a,d],o);for(const h of o)d.push(i(h));return f}case Oi:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],f=l([a,d],o);for(const h of B4(o))(e||!Gl(Or(o[h])))&&d.push([i(h),i(o[h])]);return f}case gu:return l([a,o.toISOString()],o);case yu:{const{source:d,flags:f}=o;return l([a,{source:d,flags:f}],o)}case xu:{const d=[],f=l([a,d],o);for(const[h,p]of o)(e||!(Gl(Or(h))||Gl(Or(p))))&&d.push([i(h),i(p)]);return f}case vu:{const d=[],f=l([a,d],o);for(const h of o)(e||!Gl(Or(h)))&&d.push(i(h));return f}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},u0=(e,{json:t,lossy:n}={})=>{const r=[];return U4(!(t||n),!!t,new Map,r)(e),r},$i=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?s0(u0(e,t)):structuredClone(e):(e,t)=>s0(u0(e,t));function W4(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Q4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function X4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||W4,r=e.options.footnoteBackLabel||Q4,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const d=e.all(u),f=String(u.identifier).toUpperCase(),h=Ir(f.toLowerCase());let p=0;const x=[],S=e.footnoteCounts.get(f);for(;S!==void 0&&++p<=S;){x.length>0&&x.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,p);typeof y=="string"&&(y={type:"text",value:y}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const y=T.children[T.children.length-1];y&&y.type==="text"?y.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...x)}else d.push(...x);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...$i(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
49
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
50
|
+
`}]}}const po=function(e){if(e==null)return G4;if(typeof e=="function")return ho(e);if(typeof e=="object")return Array.isArray(e)?Y4(e):q4(e);if(typeof e=="string")return K4(e);throw new Error("Expected function, string, or object as test")};function Y4(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=po(e[n]);return ho(r);function r(...l){let i=-1;for(;++i<t.length;)if(t[i].apply(this,l))return!0;return!1}}function q4(e){const t=e;return ho(n);function n(r){const l=r;let i;for(i in e)if(l[i]!==t[i])return!1;return!0}}function K4(e){return ho(t);function t(n){return n&&n.type===e}}function ho(e){return t;function t(n,r,l){return!!(J4(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function G4(){return!0}function J4(e){return e!==null&&typeof e=="object"&&"type"in e}const Nd=[],e6=!0,os=!1,t6="skip";function Hd(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const i=po(l),o=r?-1:1;a(e,void 0,[])();function a(s,u,d){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Nd,x,S,T;if((!t||i(s,u,d[d.length-1]||void 0))&&(p=n6(n(s,d)),p[0]===os))return p;if("children"in s&&s.children){const g=s;if(g.children&&p[0]!==t6)for(S=(r?g.children.length:-1)+o,T=d.concat(g);S>-1&&S<g.children.length;){const y=g.children[S];if(x=a(y,S,T)(),x[0]===os)return x;S=typeof x[1]=="number"?x[1]:S+o}}return p}}}function n6(e){return Array.isArray(e)?e:typeof e=="number"?[e6,e]:e==null?Nd:[e]}function ku(e,t,n,r){let l,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,l=n):(i=t,o=n,l=r),Hd(e,i,a,l);function a(s,u){const d=u[u.length-1],f=d?d.children.indexOf(s):void 0;return o(s,f,d)}}const as={}.hasOwnProperty,r6={};function l6(e,t){const n=t||r6,r=new Map,l=new Map,i=new Map,o={...V4,...n.handlers},a={all:u,applyData:o6,definitionById:r,footnoteById:l,footnoteCounts:i,footnoteOrder:[],handlers:o,one:s,options:n,patch:i6,wrap:s6};return ku(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:l,h=String(d.identifier).toUpperCase();f.has(h)||f.set(h,d)}}),a;function s(d,f){const h=d.type,p=a.handlers[h];if(as.call(a.handlers,h)&&p)return p(a,d,f);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in d){const{children:S,...T}=d,g=$i(T);return g.children=a.all(d),g}return $i(d)}return(a.options.unknownHandler||a6)(a,d,f)}function u(d){const f=[];if("children"in d){const h=d.children;let p=-1;for(;++p<h.length;){const x=a.one(h[p],d);if(x){if(p&&h[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=c0(x.value)),!Array.isArray(x)&&x.type==="element")){const S=x.children[0];S&&S.type==="text"&&(S.value=c0(S.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function i6(e,t){e.position&&(t.position=W2(e))}function o6(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,$i(i)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function a6(e,t){const n=t.data||{},r="value"in t&&!(as.call(n,"hProperties")||as.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function s6(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
51
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
52
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
53
|
+
`}),n}function c0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function f0(e,t){const n=l6(e,t),r=n.one(e,void 0),l=X4(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:`
|
|
54
|
+
`},l),i}function u6(e,t){return e&&"run"in e?async function(n,r){const l=f0(n,{file:r,...t});await e.run(l,r)}:function(n,r){return f0(n,{file:r,...e||t})}}function d0(e){if(e)throw e}var mi=Object.prototype.hasOwnProperty,Td=Object.prototype.toString,p0=Object.defineProperty,h0=Object.getOwnPropertyDescriptor,m0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Td.call(t)==="[object Array]"},g0=function(t){if(!t||Td.call(t)!=="[object Object]")return!1;var n=mi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&mi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||mi.call(t,l)},y0=function(t,n){p0&&n.name==="__proto__"?p0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},x0=function(t,n){if(n==="__proto__")if(mi.call(t,n)){if(h0)return h0(t,n).value}else return;return t[n]},c6=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=x0(a,n),l=x0(t,n),a!==l&&(d&&l&&(g0(l)||(i=m0(l)))?(i?(i=!1,o=r&&m0(r)?r:[]):o=r&&g0(r)?r:{},y0(a,{name:n,newValue:e(d,o,l)})):typeof l<"u"&&y0(a,{name:n,newValue:l}));return a};const Qo=fs(c6);function ss(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function f6(){const e=[],t={run:n,use:r};return t;function n(...l){let i=-1;const o=l.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...l);function a(s,...u){const d=e[++i];let f=-1;if(s){o(s);return}for(;++f<l.length;)(u[f]===null||u[f]===void 0)&&(u[f]=l[f]);l=u,d?d6(d,a)(...u):o(null,...u)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function d6(e,t){let n;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const d=u;if(a&&n)throw d;return l(d)}a||(s&&s.then&&typeof s.then=="function"?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const Ot={basename:p6,dirname:h6,extname:m6,join:g6,sep:"/"};function p6(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Il(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function h6(e){if(Il(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function m6(e){Il(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function g6(...e){let t=-1,n;for(;++t<e.length;)Il(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y6(n)}function y6(e){Il(e);const t=e.codePointAt(0)===47;let n=x6(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function x6(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(l===o-1||i===1))if(l!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function Il(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const v6={cwd:k6};function k6(){return"/"}function us(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w6(e){if(typeof e=="string")e=new URL(e);else if(!us(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return S6(e)}function S6(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Xo=["history","path","basename","stem","extname","dirname"];class Ld{constructor(t){let n;t?us(t)?n={path:t}:typeof t=="string"||E6(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":v6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Xo.length;){const i=Xo[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let l;for(l in n)Xo.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Ot.basename(this.path):void 0}set basename(t){qo(t,"basename"),Yo(t,"basename"),this.path=Ot.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ot.dirname(this.path):void 0}set dirname(t){v0(this.basename,"dirname"),this.path=Ot.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ot.extname(this.path):void 0}set extname(t){if(Yo(t,"extname"),v0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ot.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){us(t)&&(t=w6(t)),qo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ot.basename(this.path,this.extname):void 0}set stem(t){qo(t,"stem"),Yo(t,"stem"),this.path=Ot.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new et(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yo(e,t){if(e&&e.includes(Ot.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ot.sep+"`")}function qo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function v0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const C6=function(e){const r=this.constructor.prototype,l=r[e],i=function(){return l.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},A6={}.hasOwnProperty;class wu extends C6{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=f6()}copy(){const t=new wu;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Qo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Jo("data",this.frozen),this.namespace[t]=n,this):A6.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Jo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Jl(t),r=this.parser||this.Parser;return Ko("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ko("process",this.parser||this.Parser),Go("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(i,o){const a=Jl(t),s=r.parse(a);r.run(s,a,function(d,f,h){if(d||!f||!h)return u(d);const p=f,x=r.stringify(p,h);N6(x)?h.value=x:h.result=x,u(d,h)});function u(d,f){d||!f?o(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ko("processSync",this.parser||this.Parser),Go("processSync",this.compiler||this.Compiler),this.process(t,l),w0("processSync","process",n),r;function l(i,o){n=!0,d0(i),r=o}}run(t,n,r){k0(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,a){const s=Jl(n);l.run(t,s,u);function u(d,f,h){const p=f||t;d?a(d):o?o(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,l;return this.run(t,n,i),w0("runSync","run",r),l;function i(o,a){d0(o),l=a,r=!0}}stringify(t,n){this.freeze();const r=Jl(n),l=this.compiler||this.Compiler;return Go("stringify",l),k0(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Jo("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...f]=u;s(d,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(l.settings=Qo(!0,l.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const f=u[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,d){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...d]);else if(d.length>0){let[p,...x]=d;const S=r[h][1];ss(S)&&ss(p)&&(p=Qo(!0,S,p)),r[h]=[u,p,...x]}}}}const M6=new wu().freeze();function Ko(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Go(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Jo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function k0(e){if(!ss(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function w0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jl(e){return b6(e)?e:new Ld(e)}function b6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function N6(e){return typeof e=="string"||H6(e)}function H6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const T6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",S0=[],E0={allowDangerousHtml:!0},L6=/^(https?|ircs?|mailto|xmpp)$/i,I6=[{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 P6(e){const t=j6(e),n=_6(e);return F6(t.runSync(t.parse(n),n),e)}function j6(e){const t=e.rehypePlugins||S0,n=e.remarkPlugins||S0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...E0}:E0;return M6().use(h4).use(n).use(u6,r).use(t)}function _6(e){const t=e.children||"",n=new Ld;return typeof t=="string"&&(n.value=t),n}function F6(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||R6;for(const d of I6)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+T6+d.id,void 0);return ku(e,u),K2(e,{Fragment:m.Fragment,components:l,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function u(d,f,h){if(d.type==="raw"&&h&&typeof f=="number")return o?h.children.splice(f,1):h.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let p;for(p in Bo)if(Object.hasOwn(Bo,p)&&Object.hasOwn(d.properties,p)){const x=d.properties[p],S=Bo[p];(S===null||S.includes(d.tagName))&&(d.properties[p]=s(String(x||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(d,f,h)),p&&h&&typeof f=="number")return a&&d.children?h.children.splice(f,1,...d.children):h.children.splice(f,1),f}}}function R6(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||L6.test(e.slice(0,t))?e:""}function C0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,l=n.indexOf(t);for(;l!==-1;)r++,l=n.indexOf(t,l+t.length);return r}function z6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function D6(e,t,n){const l=po((n||{}).ignore||[]),i=V6(t);let o=-1;for(;++o<i.length;)Hd(e,"text",a);function a(u,d){let f=-1,h;for(;++f<d.length;){const p=d[f],x=h?h.children:void 0;if(l(p,x?x.indexOf(p):void 0,h))return;h=p}if(h)return s(u,d)}function s(u,d){const f=d[d.length-1],h=i[o][0],p=i[o][1];let x=0;const T=f.children.indexOf(u);let g=!1,y=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const N=v.index,j={index:v.index,input:v.input,stack:[...d,u]};let w=p(...v,j);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=N+1:(x!==N&&y.push({type:"text",value:u.value.slice(x,N)}),Array.isArray(w)?y.push(...w):w&&y.push(w),x=N+v[0].length,g=!0),!h.global)break;v=h.exec(u.value)}return g?(x<u.value.length&&y.push({type:"text",value:u.value.slice(x)}),f.children.splice(T,1,...y)):y=[u],T+y.length}}function V6(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([Z6(l[0]),O6(l[1])])}return t}function Z6(e){return typeof e=="string"?new RegExp(z6(e),"g"):e}function O6(e){return typeof e=="function"?e:function(){return e}}const ea="phrasing",ta=["autolink","link","image","label"];function $6(){return{transforms:[q6],enter:{literalAutolink:U6,literalAutolinkEmail:na,literalAutolinkHttp:na,literalAutolinkWww:na},exit:{literalAutolink:Y6,literalAutolinkEmail:X6,literalAutolinkHttp:W6,literalAutolinkWww:Q6}}}function B6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ea,notInConstruct:ta},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ea,notInConstruct:ta},{character:":",before:"[ps]",after:"\\/",inConstruct:ea,notInConstruct:ta}]}}function U6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function na(e){this.config.enter.autolinkProtocol.call(this,e)}function W6(e){this.config.exit.autolinkProtocol.call(this,e)}function Q6(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function X6(e){this.config.exit.autolinkEmail.call(this,e)}function Y6(e){this.exit(e)}function q6(e){D6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,K6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),G6]],{ignore:["link","linkReference"]})}function K6(e,t,n,r,l){let i="";if(!Id(l)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!J6(n)))return!1;const o=ey(n+r);if(!o[0])return!1;const a={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function G6(e,t,n,r){return!Id(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function J6(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ey(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=C0(e,"(");let i=C0(e,")");for(;r!==-1&&l>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function Id(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Un(n)||uo(n))&&(!t||n!==47)}Pd.peek=uy;function ty(){this.buffer()}function ny(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ry(){this.buffer()}function ly(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oy(e){this.exit(e)}function ay(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Rt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function sy(e){this.exit(e)}function uy(){return"["}function Pd(e,t,n,r){const l=n.createTracker(r);let i=l.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return i+=l.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),o(),i+=l.move("]"),i}function cy(){return{enter:{gfmFootnoteCallString:ty,gfmFootnoteCall:ny,gfmFootnoteDefinitionLabelString:ry,gfmFootnoteDefinition:ly},exit:{gfmFootnoteCallString:iy,gfmFootnoteCall:oy,gfmFootnoteDefinitionLabelString:ay,gfmFootnoteDefinition:sy}}}function fy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Pd},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,i,o){const a=i.createTracker(o);let s=a.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return s+=a.move(i.safe(i.associationId(r),{before:s,after:"]"})),d(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
55
|
+
`:" ")+i.indentLines(i.containerFlow(r,a.current()),t?jd:dy))),u(),s}}function dy(e,t,n){return t===0?e:jd(e,t,n)}function jd(e,t,n){return(n?"":" ")+e}const py=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_d.peek=xy;function hy(){return{canContainEols:["delete"],enter:{strikethrough:gy},exit:{strikethrough:yy}}}function my(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:py}],handlers:{delete:_d}}}function gy(e){this.enter({type:"delete",children:[]},e)}function yy(e){this.exit(e)}function _d(e,t,n,r){const l=n.createTracker(r),i=n.enter("strikethrough");let o=l.move("~~");return o+=n.containerPhrasing(e,{...l.current(),before:o,after:"~"}),o+=l.move("~~"),i(),o}function xy(){return"~"}function vy(e){return e.length}function ky(e,t){const n=t||{},r=(n.align||[]).concat(),l=n.stringLength||vy,i=[],o=[],a=[],s=[];let u=0,d=-1;for(;++d<e.length;){const S=[],T=[];let g=-1;for(e[d].length>u&&(u=e[d].length);++g<e[d].length;){const y=wy(e[d][g]);if(n.alignDelimiters!==!1){const v=l(y);T[g]=v,(s[g]===void 0||v>s[g])&&(s[g]=v)}S.push(y)}o[d]=S,a[d]=T}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)i[f]=A0(r[f]);else{const S=A0(r);for(;++f<u;)i[f]=S}f=-1;const h=[],p=[];for(;++f<u;){const S=i[f];let T="",g="";S===99?(T=":",g=":"):S===108?T=":":S===114&&(g=":");let y=n.alignDelimiters===!1?1:Math.max(1,s[f]-T.length-g.length);const v=T+"-".repeat(y)+g;n.alignDelimiters!==!1&&(y=T.length+y+g.length,y>s[f]&&(s[f]=y),p[f]=y),h[f]=v}o.splice(1,0,h),a.splice(1,0,p),d=-1;const x=[];for(;++d<o.length;){const S=o[d],T=a[d];f=-1;const g=[];for(;++f<u;){const y=S[f]||"";let v="",N="";if(n.alignDelimiters!==!1){const j=s[f]-(T[f]||0),w=i[f];w===114?v=" ".repeat(j):w===99?j%2?(v=" ".repeat(j/2+.5),N=" ".repeat(j/2-.5)):(v=" ".repeat(j/2),N=v):N=" ".repeat(j)}n.delimiterStart!==!1&&!f&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||f)&&g.push(" "),n.alignDelimiters!==!1&&g.push(v),g.push(y),n.alignDelimiters!==!1&&g.push(N),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&g.push("|")}x.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return x.join(`
|
|
56
|
+
`)}function wy(e){return e==null?"":String(e)}function A0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Sy(e,t,n,r){const l=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),Ey);return l(),o}function Ey(e,t,n){return">"+(n?"":" ")+e}function Cy(e,t){return M0(e,t.inConstruct,!0)&&!M0(e,t.notInConstruct,!1)}function M0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function b0(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
57
|
+
`&&Cy(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
58
|
+
`}function Ay(e,t){const n=String(e);let r=n.indexOf(t),l=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===l?++i>o&&(o=i):i=1,l=r+t.length,r=n.indexOf(t,l);return o}function My(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function by(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ny(e,t,n,r){const l=by(n),i=e.value||"",o=l==="`"?"GraveAccent":"Tilde";if(My(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(i,Hy);return f(),h}const a=n.createTracker(r),s=l.repeat(Math.max(Ay(i,l)+1,3)),u=n.enter("codeFenced");let d=a.move(s);if(e.lang){const f=n.enter(`codeFencedLang${o}`);d+=a.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);d+=a.move(" "),d+=a.move(n.safe(e.meta,{before:d,after:`
|
|
59
|
+
`,encode:["`"],...a.current()})),f()}return d+=a.move(`
|
|
60
|
+
`),i&&(d+=a.move(i+`
|
|
61
|
+
`)),d+=a.move(s),u(),d}function Hy(e,t,n){return(n?"":" ")+e}function Su(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ty(e,t,n,r){const l=Su(n),i=l==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
62
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()})),u+=s.move(l),a()),o(),u}function Ly(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Cl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bi(e,t,n){const r=br(e),l=br(t);return r===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Fd.peek=Iy;function Fd(e,t,n,r){const l=Ly(n),i=n.enter("emphasis"),o=n.createTracker(r),a=o.move(l);let s=o.move(n.containerPhrasing(e,{after:l,before:a,...o.current()}));const u=s.charCodeAt(0),d=Bi(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(s=Cl(u)+s.slice(1));const f=s.charCodeAt(s.length-1),h=Bi(r.after.charCodeAt(0),f,l);h.inside&&(s=s.slice(0,-1)+Cl(f));const p=o.move(l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+s+p}function Iy(e,t,n){return n.options.emphasis||"*"}function Py(e,t){let n=!1;return ku(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,os}),!!((!e.depth||e.depth<3)&&pu(e)&&(t.options.setext||n))}function jy(e,t,n,r){const l=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(Py(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...i.current(),before:`
|
|
63
|
+
`,after:`
|
|
64
|
+
`});return f(),d(),h+`
|
|
65
|
+
`+(l===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
66
|
+
`))+1))}const o="#".repeat(l),a=n.enter("headingAtx"),s=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
67
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=Cl(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),s(),a(),u}Rd.peek=_y;function Rd(e){return e.value||""}function _y(){return"<"}zd.peek=Fy;function zd(e,t,n,r){const l=Su(n),i=l==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${i}`),u+=s.move(" "+l),u+=s.move(n.safe(e.title,{before:u,after:l,...s.current()})),u+=s.move(l),a()),u+=s.move(")"),o(),u}function Fy(){return"!"}Dd.peek=Ry;function Dd(e,t,n,r){const l=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=d,i(),l==="full"||!u||u!==f?s+=a.move(f+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Ry(){return"!"}Vd.peek=zy;function Vd(e,t,n){let r=e.value||"",l="`",i=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],a=n.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return l+r+l}function zy(){return"`"}function Zd(e,t){const n=pu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Od.peek=Dy;function Od(e,t,n,r){const l=Su(n),i=l==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let a,s;if(Zd(e,n)){const d=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=d,f}a=n.enter("link"),s=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=o.move(" "+l),u+=o.move(n.safe(e.title,{before:u,after:l,...o.current()})),u+=o.move(l),s()),u+=o.move(")"),a(),u}function Dy(e,t,n){return Zd(e,n)?"<":"["}$d.peek=Vy;function $d(e,t,n,r){const l=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=d,i(),l==="full"||!u||u!==f?s+=a.move(f+"]"):l==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function Vy(){return"["}function Eu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Zy(e){const t=Eu(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Oy(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Bd(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $y(e,t,n,r){const l=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?Oy(n):Eu(n);const a=e.ordered?o==="."?")":".":Zy(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),Bd(n)===o&&d){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,l(),u}function By(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Uy(e,t,n,r){const l=By(n);let i=n.bulletCurrent||Eu(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(r);a.move(i+" ".repeat(o-i.length)),a.shift(o);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),d);return s(),u;function d(f,h,p){return h?(p?"":" ".repeat(o))+f:(p?i:i+" ".repeat(o-i.length))+f}}function Wy(e,t,n,r){const l=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),l(),o}const Qy=po(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xy(e,t,n,r){return(e.children.some(function(o){return Qy(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Yy(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ud.peek=qy;function Ud(e,t,n,r){const l=Yy(n),i=n.enter("strong"),o=n.createTracker(r),a=o.move(l+l);let s=o.move(n.containerPhrasing(e,{after:l,before:a,...o.current()}));const u=s.charCodeAt(0),d=Bi(r.before.charCodeAt(r.before.length-1),u,l);d.inside&&(s=Cl(u)+s.slice(1));const f=s.charCodeAt(s.length-1),h=Bi(r.after.charCodeAt(0),f,l);h.inside&&(s=s.slice(0,-1)+Cl(f));const p=o.move(l+l);return i(),n.attentionEncodeSurroundingInfo={after:h.outside,before:d.outside},a+s+p}function qy(e,t,n){return n.options.strong||"*"}function Ky(e,t,n,r){return n.safe(e.value,r)}function Gy(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Jy(e,t,n){const r=(Bd(n)+(n.options.ruleSpaces?" ":"")).repeat(Gy(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Wd={blockquote:Sy,break:b0,code:Ny,definition:Ty,emphasis:Fd,hardBreak:b0,heading:jy,html:Rd,image:zd,imageReference:Dd,inlineCode:Vd,link:Od,linkReference:$d,list:$y,listItem:Uy,paragraph:Wy,root:Xy,strong:Ud,text:Ky,thematicBreak:Jy};function ex(){return{enter:{table:tx,tableData:N0,tableHeader:N0,tableRow:rx},exit:{codeText:lx,table:nx,tableData:ra,tableHeader:ra,tableRow:ra}}}function tx(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function nx(e){this.exit(e),this.data.inTable=void 0}function rx(e){this.enter({type:"tableRow",children:[]},e)}function ra(e){this.exit(e)}function N0(e){this.enter({type:"tableCell",children:[]},e)}function lx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ix));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ix(e,t){return t==="|"?t:e}function ox(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,l=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
68
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,x,S,T){return u(d(p,S,T),p.align)}function a(p,x,S,T){const g=f(p,S,T),y=u([g]);return y.slice(0,y.indexOf(`
|
|
69
|
+
`))}function s(p,x,S,T){const g=S.enter("tableCell"),y=S.enter("phrasing"),v=S.containerPhrasing(p,{...T,before:i,after:i});return y(),g(),v}function u(p,x){return ky(p,{align:x,alignDelimiters:r,padding:n,stringLength:l})}function d(p,x,S){const T=p.children;let g=-1;const y=[],v=x.enter("table");for(;++g<T.length;)y[g]=f(T[g],x,S);return v(),y}function f(p,x,S){const T=p.children;let g=-1;const y=[],v=x.enter("tableRow");for(;++g<T.length;)y[g]=s(T[g],p,x,S);return v(),y}function h(p,x,S){let T=Wd.inlineCode(p,x,S);return S.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function ax(){return{exit:{taskListCheckValueChecked:H0,taskListCheckValueUnchecked:H0,paragraph:ux}}}function sx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cx}}}function H0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ux(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const l=t.children;let i=-1,o;for(;++i<l.length;){const a=l[i];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function cx(e,t,n,r){const l=e.children[0],i=typeof e.checked=="boolean"&&l&&l.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(o);let s=Wd.listItem(e,t,n,{...r,...a.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(d){return d+o}}function fx(){return[$6(),cy(),hy(),ex(),ax()]}function dx(e){return{extensions:[B6(),fy(e),my(),ox(e),sx()]}}const px={tokenize:vx,partial:!0},Qd={tokenize:kx,partial:!0},Xd={tokenize:wx,partial:!0},Yd={tokenize:Sx,partial:!0},hx={tokenize:Ex,partial:!0},qd={name:"wwwAutolink",tokenize:yx,previous:Gd},Kd={name:"protocolAutolink",tokenize:xx,previous:Jd},rn={name:"emailAutolink",tokenize:gx,previous:ep},Wt={};function mx(){return{text:Wt}}let Ln=48;for(;Ln<123;)Wt[Ln]=rn,Ln++,Ln===58?Ln=65:Ln===91&&(Ln=97);Wt[43]=rn;Wt[45]=rn;Wt[46]=rn;Wt[95]=rn;Wt[72]=[rn,Kd];Wt[104]=[rn,Kd];Wt[87]=[rn,qd];Wt[119]=[rn,qd];function gx(e,t,n){const r=this;let l,i;return o;function o(f){return!cs(f)||!ep.call(r,r.previous)||Cu(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return cs(f)?(e.consume(f),a):f===64?(e.consume(f),s):n(f)}function s(f){return f===46?e.check(hx,d,u)(f):f===45||f===95||Ge(f)?(i=!0,e.consume(f),s):d(f)}function u(f){return e.consume(f),l=!0,s}function d(f){return i&&l&&nt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function yx(e,t,n){const r=this;return l;function l(o){return o!==87&&o!==119||!Gd.call(r,r.previous)||Cu(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(px,e.attempt(Qd,e.attempt(Xd,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function xx(e,t,n){const r=this;let l="",i=!1;return o;function o(f){return(f===72||f===104)&&Jd.call(r,r.previous)&&!Cu(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(nt(f)&&l.length<5)return l+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const h=l.toLowerCase();if(h==="http"||h==="https")return e.consume(f),s}return n(f)}function s(f){return f===47?(e.consume(f),i?u:(i=!0,s)):n(f)}function u(f){return f===null||Zi(f)||ke(f)||Un(f)||uo(f)?n(f):e.attempt(Qd,e.attempt(Xd,d),n)(f)}function d(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function vx(e,t,n){let r=0;return l;function l(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),l):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function kx(e,t,n){let r,l,i;return o;function o(u){return u===46||u===95?e.check(Yd,s,a)(u):u===null||ke(u)||Un(u)||u!==45&&uo(u)?s(u):(i=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(l=r,r=void 0),e.consume(u),o}function s(u){return l||r||!i?n(u):t(u)}}function wx(e,t){let n=0,r=0;return l;function l(o){return o===40?(n++,e.consume(o),l):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Yd,t,i)(o):o===null||ke(o)||Un(o)?t(o):(e.consume(o),l)}function i(o){return o===41&&r++,e.consume(o),l}}function Sx(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),l):a===60||a===null||ke(a)||Un(a)?t(a):n(a)}function l(a){return a===null||a===40||a===91||ke(a)||Un(a)?t(a):r(a)}function i(a){return nt(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):nt(a)?(e.consume(a),o):n(a)}}function Ex(e,t,n){return r;function r(i){return e.consume(i),l}function l(i){return Ge(i)?n(i):t(i)}}function Gd(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ke(e)}function Jd(e){return!nt(e)}function ep(e){return!(e===47||cs(e))}function cs(e){return e===43||e===45||e===46||e===95||Ge(e)}function Cu(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Cx={tokenize:Ix,partial:!0};function Ax(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Hx,continuation:{tokenize:Tx},exit:Lx}},text:{91:{name:"gfmFootnoteCall",tokenize:Nx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Mx,resolveTo:bx}}}}function Mx(e,t,n){const r=this;let l=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;l--;){const s=r.events[l][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return n(s);const u=Rt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function bx(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Nx(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),s}function s(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!o||f===null||f===91||ke(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return l.includes(Rt(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return ke(f)||(o=!0),i++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function Hx(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,a;return s;function s(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(x)}function d(x){if(o>999||x===93&&!a||x===null||x===91||ke(x))return n(x);if(x===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return i=Rt(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ke(x)||(a=!0),o++,e.consume(x),x===92?f:d}function f(x){return x===91||x===92||x===93?(e.consume(x),o++,d):d(x)}function h(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),l.includes(i)||l.push(i),pe(e,p,"gfmFootnoteDefinitionWhitespace")):n(x)}function p(x){return t(x)}}function Tx(e,t,n){return e.check(Ll,t,e.attempt(Cx,t,n))}function Lx(e){e.exit("gfmFootnoteDefinition")}function Ix(e,t,n){const r=this;return pe(e,l,"gfmFootnoteDefinitionIndent",5);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function Px(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:l};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",d,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&kt(h,h.length,0,co(p,o.slice(u+1,s),a)),kt(h,h.length,0,[["exit",f,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",d,a]]),kt(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function i(o,a,s){const u=this.previous,d=this.events;let f=0;return h;function h(x){return u===126&&d[d.length-1][1].type!=="characterEscape"?s(x):(o.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const S=br(u);if(x===126)return f>1?s(x):(o.consume(x),f++,p);if(f<2&&!n)return s(x);const T=o.exit("strikethroughSequenceTemporary"),g=br(x);return T._open=!g||g===2&&!!S,T._close=!S||S===2&&!!g,a(x)}}}class jx{constructor(){this.map=[]}add(t,n,r){_x(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let l=r.pop();for(;l;){for(const i of l)t.push(i);l=r.pop()}this.map.length=0}}function _x(e,t,n,r){let l=0;if(!(n===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...r);return}l+=1}e.map.push([t,n,r])}}function Fx(e,t){let n=!1;const r=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Rx(){return{flow:{null:{name:"table",tokenize:zx,resolveAll:Dx}}}}function zx(e,t,n){const r=this;let l=0,i=0,o;return a;function a(M){let O=r.events.length-1;for(;O>-1;){const ie=r.events[O][1].type;if(ie==="lineEnding"||ie==="linePrefix")O--;else break}const U=O>-1?r.events[O][1].type:null,oe=U==="tableHead"||U==="tableRow"?w:s;return oe===w&&r.parser.lazy[r.now().line]?n(M):oe(M)}function s(M){return e.enter("tableHead"),e.enter("tableRow"),u(M)}function u(M){return M===124||(o=!0,i+=1),d(M)}function d(M){return M===null?n(M):te(M)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),p):n(M):ue(M)?pe(e,d,"whitespace")(M):(i+=1,o&&(o=!1,l+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),f(M)))}function f(M){return M===null||M===124||ke(M)?(e.exit("data"),d(M)):(e.consume(M),M===92?h:f)}function h(M){return M===92||M===124?(e.consume(M),f):f(M)}function p(M){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(M):(e.enter("tableDelimiterRow"),o=!1,ue(M)?pe(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):x(M))}function x(M){return M===45||M===58?T(M):M===124?(o=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),S):j(M)}function S(M){return ue(M)?pe(e,T,"whitespace")(M):T(M)}function T(M){return M===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),g):M===45?(i+=1,g(M)):M===null||te(M)?N(M):j(M)}function g(M){return M===45?(e.enter("tableDelimiterFiller"),y(M)):j(M)}function y(M){return M===45?(e.consume(M),y):M===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(M))}function v(M){return ue(M)?pe(e,N,"whitespace")(M):N(M)}function N(M){return M===124?x(M):M===null||te(M)?!o||l!==i?j(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(M)):j(M)}function j(M){return n(M)}function w(M){return e.enter("tableRow"),_(M)}function _(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),_):M===null||te(M)?(e.exit("tableRow"),t(M)):ue(M)?pe(e,_,"whitespace")(M):(e.enter("data"),F(M))}function F(M){return M===null||M===124||ke(M)?(e.exit("data"),_(M)):(e.consume(M),M===92?X:F)}function X(M){return M===92||M===124?(e.consume(M),F):F(M)}}function Dx(e,t){let n=-1,r=!0,l=0,i=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,d,f;const h=new jx;for(;++n<e.length;){const p=e[n],x=p[1];p[0]==="enter"?x.type==="tableHead"?(a=!1,s!==0&&(T0(h,t,s,u,d),d=void 0,s=0),u={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},h.add(n,0,[["enter",u,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},h.add(n,0,[["enter",d,t]])),l=x.type==="tableDelimiterRow"?2:d?3:1):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],f=ei(h,t,i,l,void 0,f),i=[0,0,0,0]),o[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],f=ei(h,t,i,l,void 0,f)),i=o,o=[i[1],n,0,0])):x.type==="tableHead"?(a=!0,s=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(s=n,i[1]!==0?(o[0]=o[1],f=ei(h,t,i,l,n,f)):o[1]!==0&&(f=ei(h,t,o,l,n,f)),l=0):l&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&T0(h,t,s,u,d),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Fx(t.events,n))}return e}function ei(e,t,n,r,l,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},er(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=er(t.events,n[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=er(t.events,n[2]),d=er(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,S=n[3]-n[2]-1;e.add(x,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return l!==void 0&&(i.end=Object.assign({},er(t.events,l)),e.add(l,0,[["exit",i,t]]),i=void 0),i}function T0(e,t,n,r,l){const i=[],o=er(t.events,n);l&&(l.end=Object.assign({},o),i.push(["exit",l,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function er(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Vx={name:"tasklistCheck",tokenize:Ox};function Zx(){return{text:{91:Vx}}}function Ox(e,t,n){const r=this;return l;function l(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),i)}function i(s){return ke(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return te(s)?t(s):ue(s)?e.check({tokenize:$x},t,n)(s):n(s)}}function $x(e,t,n){return pe(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function Bx(e){return cd([mx(),Ax(),Px(e),Rx(),Zx()])}const Ux={};function Wx(e){const t=this,n=e||Ux,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(Bx(n)),i.push(fx()),o.push(dx(n))}function Ui({children:e,className:t=""}){return m.jsx("div",{className:`prose prose-sm max-w-none break-words ${t}`,children:m.jsx(P6,{remarkPlugins:[Wx],components:{pre:({children:n})=>{var o;const r=n,l=(o=r==null?void 0:r.props)==null?void 0:o.children,i=typeof l=="string"?l.split(`
|
|
70
|
+
`).flatMap((a,s)=>{const u=m.jsx("span",{"data-collider":"code-line",children:a},s);return s>0?[`
|
|
71
|
+
`,u]:[u]}):n;return m.jsx("pre",{className:"md-pre-base p-3 overflow-x-auto text-xs my-1",children:i})},code:({className:n,children:r,...l})=>n?m.jsx("code",{className:n,...l,children:r}):m.jsx("code",{className:"px-1.5 py-0.5 text-xs",style:{borderRadius:"4px",backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace"},...l,children:r}),table:({children:n})=>m.jsx("div",{className:"overflow-x-auto my-2",children:m.jsx("table",{className:"min-w-full border-collapse text-xs",style:{border:"1px solid var(--color-border)"},children:n})}),th:({children:n})=>m.jsx("th",{"data-collider":"table-cell",className:"px-3 py-1.5 text-left font-medium",style:{border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:n}),td:({children:n})=>m.jsx("td",{"data-collider":"table-cell",className:"px-3 py-1.5",style:{border:"1px solid var(--color-border)"},children:n}),a:({href:n,children:r})=>m.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:"var(--color-accent)"},children:r}),img:({src:n,alt:r})=>m.jsx("img",{src:n,alt:r??"Image",className:"max-w-full max-h-[400px] object-contain my-2 cursor-pointer hover:opacity-90 transition-opacity",style:{borderRadius:"8px",border:"1px solid var(--color-border)"},loading:"lazy",onClick:()=>n&&window.open(n,"_blank")})},children:e})})}function Qx(e){const t=[],n=/data:(image\/[a-zA-Z+.-]+);base64,([A-Za-z0-9+/=]+)/g;let r=e,l;for(;(l=n.exec(e))!==null;)t.push({mimeType:l[1],data:l[2]});if(r=r.replace(n,"[Image]"),t.length===0&&e.length>100&&/^[A-Za-z0-9+/=]+\n?$/.test(e.trim())){const i=e.trim();i.startsWith("iVBOR")?(t.push({data:i,mimeType:"image/png"}),r="[Image]"):i.startsWith("/9j/")?(t.push({data:i,mimeType:"image/jpeg"}),r="[Image]"):i.startsWith("R0lGOD")?(t.push({data:i,mimeType:"image/gif"}),r="[Image]"):i.startsWith("UklGR")&&(t.push({data:i,mimeType:"image/webp"}),r="[Image]")}return{images:t,cleanedText:r}}function Xx(e){if(e<1e3)return"0s";const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const n=Math.floor(t/60),r=t%60;return`${n}m ${r}s`}function Yx(e){const t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return null;try{return JSON.parse(t)}catch{return null}}function qx(e){const t=[],n=r=>{const l={},i=[];for(const[o,a]of Object.entries(r)){if(a==null)continue;const s=o.toLowerCase();if(s==="title"||s==="name"||s==="label")l.title=String(a);else if(s==="score"||s==="relevance"||s==="rank"){const u=Number(a);l.score=Number.isFinite(u)?u.toFixed(2):String(a)}else s==="url"||s==="link"||s==="href"?l.url=String(a):s==="content"||s==="snippet"||s==="summary"||s==="description"||s==="text"||s==="body"?l.content=String(a):(typeof a=="string"||typeof a=="number"||typeof a=="boolean")&&i.push({label:o,value:String(a)})}return i.length>0&&(l.metaFields=i),l};if(Array.isArray(e))for(const r of e)r&&typeof r=="object"&&!Array.isArray(r)&&t.push(n(r));else if(e&&typeof e=="object"){const r=e;for(const[,l]of Object.entries(r))if(Array.isArray(l)&&l.length>0&&l[0]&&typeof l[0]=="object"){for(const i of l)i&&typeof i=="object"&&!Array.isArray(i)&&t.push(n(i));break}t.length===0&&t.push(n(r))}return t}function Kx({item:e}){const t=e.content&&e.content.includes(`
|
|
72
|
+
`);return m.jsxs("div",{className:"mcp-rich-item","data-collider":"tool-result-line",children:[m.jsxs("div",{className:"r-head",children:[e.title&&m.jsx("span",{className:"r-title",children:e.title}),e.score!==void 0&&m.jsx("span",{className:"r-score",children:e.score})]}),e.url&&m.jsx("div",{className:"r-url",children:e.url}),e.content&&m.jsx("div",{className:"r-content",children:t?e.content.split(`
|
|
73
|
+
`).map((n,r)=>m.jsx("p",{children:n},r)):m.jsx("p",{children:e.content})}),e.metaFields&&e.metaFields.length>0&&m.jsx("div",{className:"r-meta-row",children:e.metaFields.map((n,r)=>m.jsxs("span",{children:[n.label,": ",n.value]},r))})]})}function Gx({tool:e,thinking:t}){const n=e.isError,r=e.result&&e.result.length>0,l=e.name.startsWith("mcp__"),i=!!e.mcpApp,[o,a]=c.useState(l&&!r),s=c.useRef(!1),u=typeof e.progress=="number",d=typeof e.progressTotal=="number"&&e.progressTotal>0,f=d?Math.max(0,Math.min(100,Math.round(e.progress/e.progressTotal*100))):0,h=u&&!d,p=c.useRef(Date.now()),[x,S]=c.useState(0);c.useEffect(()=>{if(!l||r)return;p.current=Date.now();const M=setInterval(()=>{S(Date.now()-p.current)},1e3);return()=>clearInterval(M)},[l,r]);const T=r?"":Xx(x),g=c.useRef(u);c.useEffect(()=>{u&&!g.current&&!s.current&&a(!0),g.current=u},[u]);const y=()=>{o?s.current=!0:s.current=!1,a(!o)},v=n?"✗":r&&!n?"✓":"◌",N=n?"err":"ok",j=u&&!r?" spinner":"",w=c.useMemo(()=>{if(e.images&&e.images.length>0)return e.images.map(O=>({data:O.data,mimeType:O.mimeType}));if(!r||i)return null;const M=Qx(e.result);return M.images.length>0?M.images:null},[e.images,e.result,r,i]),_=c.useMemo(()=>!l||!r||i?null:Yx(e.result),[l,r,i,e.result]),F=c.useMemo(()=>_?qx(_):null,[_]),X=F&&F.length>0;return m.jsxs("div",{"data-collider":"tool-card",className:`tool-card${l?" mcp":""}${o?" open":""}`,children:[m.jsxs("div",{"data-collider":"tool-header",className:"tool-card-header",onClick:y,children:[m.jsx("span",{className:`status ${N}${j}`,children:v}),m.jsx("span",{className:"name",children:e.name}),l&&m.jsx("span",{className:"mcp-badge",children:"MCP"}),e.args&&m.jsx("span",{className:"args",children:e.args}),!o&&u&&m.jsxs("span",{className:"mini-progress-bar",children:[m.jsx("span",{className:"mini-progress-bar-track",children:m.jsx("span",{className:`mini-progress-fill${h?" indeterminate":""}`,style:h?void 0:{width:`${f}%`}})}),!h&&m.jsxs("span",{className:"mini-progress-text",children:[f,"%"]})]}),m.jsx("span",{className:"arrow",children:"▾"})]}),m.jsxs("div",{className:"tool-card-body",children:[l&&!r&&m.jsxs("div",{className:"exec-card","data-collider":"exec-card",children:[m.jsxs("div",{className:"exec-card-top",children:[m.jsxs("span",{className:"exec-card-label",children:[m.jsx("span",{className:"exec-pulse-dot"}),"Live · ",u?"executing":"waiting"]}),T&&m.jsx("span",{className:"exec-elapsed",children:T})]}),u?m.jsxs("div",{className:"exec-progress-section",children:[m.jsx("div",{className:"progress-bar",children:m.jsx("div",{className:`progress-fill${h?" indeterminate":""}`,style:h?void 0:{width:`${f}%`}})}),m.jsxs("div",{className:"exec-progress-footer",children:[!h&&m.jsxs("span",{className:"progress-text",children:[f,"%"]}),e.progressMessage&&m.jsx("span",{className:"progress-message",children:e.progressMessage})]})]}):m.jsx("span",{className:"exec-waiting-text",children:"Waiting for execution to begin…"})]}),w&&w.length>0&&m.jsx("div",{style:{padding:"8px 14px",display:"flex",flexWrap:"wrap",gap:"8px"},children:w.map((M,O)=>m.jsx("img",{src:`data:${M.mimeType};base64,${M.data}`,alt:`Tool result image ${O+1}`,className:"max-w-[300px] max-h-[300px] object-contain rounded cursor-pointer hover:opacity-90 transition-opacity",style:{border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},onClick:()=>window.open(`data:${M.mimeType};base64,${M.data}`,"_blank")},O))}),r&&!i&&!l&&m.jsx("div",{className:"tool-card-body-inner","data-collider":"tool-result-line",children:m.jsx(Ui,{className:"text-xs",children:e.result})}),l&&X&&m.jsx("div",{className:"mcp-rich-list",children:F.map((M,O)=>m.jsx(Kx,{item:M},O))}),l&&!X&&r&&m.jsx("div",{className:"mcp-raw-block","data-collider":"tool-result-line",children:m.jsx(Ui,{className:"text-xs",children:e.result})})]}),i&&o&&m.jsx("div",{style:{padding:"0 14px 12px"},children:m.jsx("iframe",{src:e.mcpApp.appUrl,className:"w-full rounded border",style:{minHeight:"480px",height:"60vh",maxHeight:"700px",borderColor:"var(--color-border)",backgroundColor:"#fff"},sandbox:"allow-scripts allow-same-origin",title:`MCP App: ${e.name}`})})]})}const Jx=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,44H32A20,20,0,0,0,12,64V88a20,20,0,0,0,16,19.6V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V107.6A20,20,0,0,0,244,88V64A20,20,0,0,0,224,44ZM36,68H220V84H36ZM52,188V108H204v80Zm112-52a12,12,0,0,1-12,12H104a12,12,0,0,1,0-24h48A12,12,0,0,1,164,136Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,96v96a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96Z",opacity:"0.2"}),c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm-72,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm72-56H32V64H224V88Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,50H32A14,14,0,0,0,18,64V88a14,14,0,0,0,14,14h2v90a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V102h2a14,14,0,0,0,14-14V64A14,14,0,0,0,224,50ZM210,192a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V102H210ZM226,88a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2ZM98,136a6,6,0,0,1,6-6h48a6,6,0,0,1,0,12H104A6,6,0,0,1,98,136Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,52H32A12,12,0,0,0,20,64V88a12,12,0,0,0,12,12h4v92a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V100h4a12,12,0,0,0,12-12V64A12,12,0,0,0,224,52ZM212,192a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V100H212ZM228,88a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4ZM100,136a4,4,0,0,1,4-4h48a4,4,0,0,1,0,8H104A4,4,0,0,1,100,136Z"}))]]),ev=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,196h-4V40a12,12,0,0,0-12-12H152a12,12,0,0,0-12,12V76H96A12,12,0,0,0,84,88v36H48a12,12,0,0,0-12,12v60H32a12,12,0,0,0,0,24H224a12,12,0,0,0,0-24ZM164,52h32V196H164Zm-56,48h32v96H108ZM60,148H84v48H60Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40V208H152V40Z",opacity:"0.2"}),c.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16h8V136a8,8,0,0,1,8-8H72a8,8,0,0,1,8,8v64H96V88a8,8,0,0,1,8-8h32a8,8,0,0,1,8,8V200h16V40a8,8,0,0,1,8-8h40a8,8,0,0,1,8,8V200h8A8,8,0,0,1,232,208Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,202H214V40a6,6,0,0,0-6-6H152a6,6,0,0,0-6,6V82H96a6,6,0,0,0-6,6v42H48a6,6,0,0,0-6,6v66H32a6,6,0,0,0,0,12H224a6,6,0,0,0,0-12ZM158,46h44V202H158ZM102,94h44V202H102ZM54,142H90v60H54Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,204H212V40a4,4,0,0,0-4-4H152a4,4,0,0,0-4,4V84H96a4,4,0,0,0-4,4v44H48a4,4,0,0,0-4,4v68H32a4,4,0,0,0,0,8H224a4,4,0,0,0,0-8ZM156,44h48V204H156ZM100,92h48V204H100ZM52,140H92v64H52Z"}))]]),tv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,64V192a16,16,0,0,1-16,16H83l-32.6,28.16-.09.07A15.89,15.89,0,0,1,40,240a16.05,16.05,0,0,1-6.79-1.52A15.84,15.84,0,0,1,24,224V64A16,16,0,0,1,40,48H216A16,16,0,0,1,232,64Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Z"}))]]),nv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),rv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,164v8h12a12,12,0,0,1,0,24H200v12a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12h32a12,12,0,0,1,0,24ZM92,172a32,32,0,0,1-32,32H56v4a12,12,0,0,1-24,0V152a12,12,0,0,1,12-12H60A32,32,0,0,1,92,172Zm-24,0a8,8,0,0,0-8-8H56v16h4A8,8,0,0,0,68,172Zm100,8a40,40,0,0,1-40,40H112a12,12,0,0,1-12-12V152a12,12,0,0,1,12-12h16A40,40,0,0,1,168,180Zm-24,0a16,16,0,0,0-16-16h-4v32h4A16,16,0,0,0,144,180ZM36,108V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88v20a12,12,0,0,1-24,0v-4H148a12,12,0,0,1-12-12V44H60v64a12,12,0,0,1-24,0ZM160,57V80h23Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M44,120H212a4,4,0,0,0,4-4V88a8,8,0,0,0-2.34-5.66l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40v76A4,4,0,0,0,44,120ZM152,44l44,44H152Zm72,108.53a8.18,8.18,0,0,1-8.25,7.47H192v16h15.73a8.17,8.17,0,0,1,8.25,7.47,8,8,0,0,1-8,8.53H192v15.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152.53ZM64,144H48a8,8,0,0,0-8,8v55.73A8.17,8.17,0,0,0,47.47,216,8,8,0,0,0,56,208v-8h7.4c15.24,0,28.14-11.92,28.59-27.15A28,28,0,0,0,64,144Zm-.35,40H56V160h8a12,12,0,0,1,12,13.16A12.25,12.25,0,0,1,63.65,184ZM128,144H112a8,8,0,0,0-8,8v56a8,8,0,0,0,8,8h15.32c19.66,0,36.21-15.48,36.67-35.13A36,36,0,0,0,128,144Zm-.49,56H120V160h8a20,20,0,0,1,20,20.77C147.58,191.59,138.34,200,127.51,200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,152a8,8,0,0,1-8,8H192v16h16a8,8,0,0,1,0,16H192v16a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8h32A8,8,0,0,1,224,152ZM92,172a28,28,0,0,1-28,28H56v8a8,8,0,0,1-16,0V152a8,8,0,0,1,8-8H64A28,28,0,0,1,92,172Zm-16,0a12,12,0,0,0-12-12H56v24h8A12,12,0,0,0,76,172Zm88,8a36,36,0,0,1-36,36H112a8,8,0,0,1-8-8V152a8,8,0,0,1,8-8h16A36,36,0,0,1,164,180Zm-16,0a20,20,0,0,0-20-20h-8v40h8A20,20,0,0,0,148,180ZM40,112V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0ZM160,80h28.69L160,51.31Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,152a4,4,0,0,1-4,4H188v24h20a4,4,0,0,1,0,8H188v20a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4h32A4,4,0,0,1,220,152ZM88,172a24,24,0,0,1-24,24H52v12a4,4,0,0,1-8,0V152a4,4,0,0,1,4-4H64A24,24,0,0,1,88,172Zm-8,0a16,16,0,0,0-16-16H52v32H64A16,16,0,0,0,80,172Zm80,8a32,32,0,0,1-32,32H112a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h16A32,32,0,0,1,160,180Zm-8,0a24,24,0,0,0-24-24H116v48h12A24,24,0,0,0,152,180ZM44,112V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88v24a4,4,0,0,1-8,0V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4v72a4,4,0,0,1-8,0ZM156,84h42.34L156,41.65Z"}))]]),lv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),c.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"}))]]),iv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M144,96a16,16,0,1,1,16,16A16,16,0,0,1,144,96Zm92-40V200a20,20,0,0,1-20,20H40a20,20,0,0,1-20-20V56A20,20,0,0,1,40,36H216A20,20,0,0,1,236,56ZM44,60v79.72l33.86-33.86a20,20,0,0,1,28.28,0L147.31,147l17.18-17.17a20,20,0,0,1,28.28,0L212,149.09V60Zm0,136H162.34L92,125.66l-48,48Zm168,0V183l-33.37-33.37L164.28,164l32,32Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,56V178.06l-39.72-39.72a8,8,0,0,0-11.31,0L147.31,164,97.66,114.34a8,8,0,0,0-11.32,0L32,168.69V56a8,8,0,0,1,8-8H216A8,8,0,0,1,224,56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM156,88a12,12,0,1,1-12,12A12,12,0,0,1,156,88Zm60,112H40V160.69l46.34-46.35a8,8,0,0,1,11.32,0h0L165,181.66a8,8,0,0,0,11.32-11.32l-17.66-17.65L173,138.34a8,8,0,0,1,11.31,0L216,170.07V200Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V163.57L188.53,134.1a14,14,0,0,0-19.8,0l-21.42,21.42L101.9,110.1a14,14,0,0,0-19.8,0L38,154.2V56A2,2,0,0,1,40,54ZM38,200V171.17l52.58-52.58a2,2,0,0,1,2.84,0L176.83,202H40A2,2,0,0,1,38,200Zm178,2H193.8l-38-38,21.41-21.42a2,2,0,0,1,2.83,0l38,38V200A2,2,0,0,1,216,202ZM146,100a10,10,0,1,1,10,10A10,10,0,0,1,146,100Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4V168.4l-32.89-32.89a12,12,0,0,0-17,0l-22.83,22.83-46.82-46.83a12,12,0,0,0-17,0L36,159V56A4,4,0,0,1,40,52ZM36,200V170.34l53.17-53.17a4,4,0,0,1,5.66,0L181.66,204H40A4,4,0,0,1,36,200Zm180,4H193l-40-40,22.83-22.83a4,4,0,0,1,5.66,0L220,179.71V200A4,4,0,0,1,216,204ZM148,100a8,8,0,1,1,8,8A8,8,0,0,1,148,100Z"}))]]),ov=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),av=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128ZM40,76H216a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24ZM216,180H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V192H40V64Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM192,184H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Zm0-48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128ZM40,70H216a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12ZM216,186H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128ZM40,68H216a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8ZM216,188H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Z"}))]]),sv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),c.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),uv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),c.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),cv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),fv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M157.27,21.22a12,12,0,0,0-12.64,1.31L75.88,76H32A20,20,0,0,0,12,96v64a20,20,0,0,0,20,20H75.88l68.75,53.47A12,12,0,0,0,164,224V32A12,12,0,0,0,157.27,21.22ZM36,100H68v56H36Zm104,99.46L92,162.13V93.87l48-37.33ZM212,128a44,44,0,0,1-11,29.11,12,12,0,1,1-18-15.88,20,20,0,0,0,0-26.43,12,12,0,0,1,18-15.86A43.94,43.94,0,0,1,212,128Zm40,0a83.87,83.87,0,0,1-21.39,56,12,12,0,0,1-17.89-16,60,60,0,0,0,0-80,12,12,0,1,1,17.88-16A83.87,83.87,0,0,1,252,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M80,88v80H32a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8Z",opacity:"0.2"}),c.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M160,32.25V223.69a8.29,8.29,0,0,1-3.91,7.18,8,8,0,0,1-9-.56l-65.57-51A4,4,0,0,1,80,176.16V79.84a4,4,0,0,1,1.55-3.15l65.57-51a8,8,0,0,1,10,.16A8.27,8.27,0,0,1,160,32.25ZM60,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H60a4,4,0,0,0,4-4V84A4,4,0,0,0,60,80Zm126.77,20.84a8,8,0,0,0-.72,11.3,24,24,0,0,1,0,31.72,8,8,0,1,0,12,10.58,40,40,0,0,0,0-52.88A8,8,0,0,0,186.74,100.84Zm40.89-26.17a8,8,0,1,0-11.92,10.66,64,64,0,0,1,0,85.34,8,8,0,1,0,11.92,10.66,80,80,0,0,0,0-106.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M154.64,26.61a6,6,0,0,0-6.32.65L77.94,82H32A14,14,0,0,0,18,96v64a14,14,0,0,0,14,14H77.94l70.38,54.74A6,6,0,0,0,158,224V32A6,6,0,0,0,154.64,26.61ZM30,160V96a2,2,0,0,1,2-2H74v68H32A2,2,0,0,1,30,160Zm116,51.73L86,165.07V90.93l60-46.66Zm50.53-108.85a38,38,0,0,1,0,50.24,6,6,0,1,1-9-7.94,26,26,0,0,0,0-34.37,6,6,0,0,1,9-7.93ZM246,128a77.86,77.86,0,0,1-19.86,52,6,6,0,1,1-8.94-8,66,66,0,0,0,0-88,6,6,0,1,1,8.94-8A77.86,77.86,0,0,1,246,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M155.51,24.81a8,8,0,0,0-8.42.88L77.25,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H77.25l69.84,54.31A8,8,0,0,0,160,224V32A8,8,0,0,0,155.51,24.81ZM32,96H72v64H32ZM144,207.64,88,164.09V91.91l56-43.55Zm54-106.08a40,40,0,0,1,0,52.88,8,8,0,0,1-12-10.58,24,24,0,0,0,0-31.72,8,8,0,0,1,12-10.58ZM248,128a79.9,79.9,0,0,1-20.37,53.34,8,8,0,0,1-11.92-10.67,64,64,0,0,0,0-85.33,8,8,0,1,1,11.92-10.67A79.83,79.83,0,0,1,248,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M153.76,28.41a4,4,0,0,0-4.22.43L78.63,84H32A12,12,0,0,0,20,96v64a12,12,0,0,0,12,12H78.63l70.91,55.16A4.07,4.07,0,0,0,152,228a3.92,3.92,0,0,0,1.76-.41A4,4,0,0,0,156,224V32A4,4,0,0,0,153.76,28.41ZM28,160V96a4,4,0,0,1,4-4H76v72H32A4,4,0,0,1,28,160Zm120,55.82L84,166V90l64-49.78Zm47-111.61a36,36,0,0,1,0,47.59,4,4,0,1,1-6-5.3,28,28,0,0,0,0-37,4,4,0,0,1,6-5.28ZM244,128a75.88,75.88,0,0,1-19.35,50.67,4,4,0,0,1-6-5.34,68,68,0,0,0,0-90.66,4,4,0,0,1,6-5.34A75.88,75.88,0,0,1,244,128Z"}))]]),dv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),pv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),hv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,52H168a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm176,16H40a12,12,0,0,0,0,24H216a12,12,0,0,0,0-24Zm-48,40H40a12,12,0,0,0,0,24H168a12,12,0,0,0,0-24Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,64V168a16,16,0,0,1-16,16H40V64Z",opacity:"0.2"}),c.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM160,184H64a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-32H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16ZM56,112a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H64A8,8,0,0,1,56,112ZM192,88H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,46H168a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm176,28H40a6,6,0,0,0,0,12H216a6,6,0,0,0,0-12Zm-48,40H40a6,6,0,0,0,0,12H168a6,6,0,0,0,0-12Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,48H168a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm176,24H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm-48,40H40a8,8,0,0,0,0,16H168a8,8,0,0,0,0-16Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,44H168a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm176,32H40a4,4,0,0,0,0,8H216a4,4,0,0,0,0-8Zm-48,40H40a4,4,0,0,0,0,8H168a4,4,0,0,0,0-8Z"}))]]),mv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),gv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V160a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,120H44V60H212Zm24,52a12,12,0,0,1-12,12H32a12,12,0,0,1,0-24H224A12,12,0,0,1,236,208ZM104,128V88a12,12,0,0,1,18.36-10.18l32,20a12,12,0,0,1,0,20.36l-32,20A12,12,0,0,1,104,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V168a8,8,0,0,0,8,8H216a8,8,0,0,0,8-8V56A8,8,0,0,0,216,48ZM112,144V80l48,32Z",opacity:"0.2"}),c.createElement("path",{d:"M164.44,105.34l-48-32A8,8,0,0,0,104,80v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,129.05V95l25.58,17ZM216,40H40A16,16,0,0,0,24,56V168a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,128H40V56H216V168Zm16,40a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Zm0-152V168a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-68,56a8,8,0,0,0-3.41-6.55l-40-28A8,8,0,0,0,108,84v56a8,8,0,0,0,12.59,6.55l40-28A8,8,0,0,0,164,112Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M163.33,107l-48-32A6,6,0,0,0,106,80v64a6,6,0,0,0,9.33,5l48-32a6,6,0,0,0,0-10ZM118,132.79V91.21L149.18,112ZM216,42H40A14,14,0,0,0,26,56V168a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42Zm2,126a2,2,0,0,1-2,2H40a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Zm12,40a6,6,0,0,1-6,6H32a6,6,0,0,1,0-12H224A6,6,0,0,1,230,208Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.44,105.34l-48-32A8,8,0,0,0,104,80v64a8,8,0,0,0,12.44,6.66l48-32a8,8,0,0,0,0-13.32ZM120,129.05V95l25.58,17ZM216,40H40A16,16,0,0,0,24,56V168a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,128H40V56H216V168Zm16,40a8,8,0,0,1-8,8H32a8,8,0,0,1,0-16H224A8,8,0,0,1,232,208Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.22,108.67l-48-32A4,4,0,0,0,108,80v64a4,4,0,0,0,2.11,3.53,4,4,0,0,0,4.11-.2l48-32a4,4,0,0,0,0-6.66ZM116,136.53V87.47L152.79,112ZM216,44H40A12,12,0,0,0,28,56V168a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44Zm4,124a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Zm8,40a4,4,0,0,1-4,4H32a4,4,0,0,1,0-8H224A4,4,0,0,1,228,208Z"}))]]),yv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"}),c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),xv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),vv=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),kv=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),je=c.forwardRef((e,t)=>{const{alt:n,color:r,size:l,weight:i,mirrored:o,children:a,weights:s,...u}=e,{color:d="currentColor",size:f,weight:h="regular",mirrored:p=!1,...x}=c.useContext(kv);return c.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:l??f,height:l??f,fill:r??d,viewBox:"0 0 256 256",transform:o||p?"scale(-1, 1)":void 0,...x,...u},!!n&&c.createElement("title",null,n),a,s.get(i??h))});je.displayName="IconBase";const tp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:Jx}));tp.displayName="ArchiveIcon";const wv=tp,np=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:ev}));np.displayName="ChartBarIcon";const Sv=np,rp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:tv}));rp.displayName="ChatIcon";const Ev=rp,lp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:nv}));lp.displayName="FileIcon";const ip=lp,op=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:rv}));op.displayName="FilePdfIcon";const Cv=op,ap=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:lv}));ap.displayName="FolderIcon";const Av=ap,sp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:iv}));sp.displayName="ImageIcon";const Mv=sp,up=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:ov}));up.displayName="InfoIcon";const bv=up,cp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:av}));cp.displayName="ListIcon";const Nv=cp,fp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:sv}));fp.displayName="MoonIcon";const Hv=fp,dp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:uv}));dp.displayName="PaperPlaneTiltIcon";const Tv=dp,pp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:cv}));pp.displayName="PlusIcon";const hp=pp,mp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:fv}));mp.displayName="SpeakerHighIcon";const Lv=mp,gp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:dv}));gp.displayName="SpinnerIcon";const Iv=gp,yp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:pv}));yp.displayName="SunIcon";const Pv=yp,xp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:hv}));xp.displayName="TextAlignLeftIcon";const jv=xp,vp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:mv}));vp.displayName="TrashIcon";const kp=vp,wp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:gv}));wp.displayName="VideoIcon";const _v=wp,Sp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:yv}));Sp.displayName="WarningIcon";const Fv=Sp,Ep=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:xv}));Ep.displayName="XIcon";const mo=Ep,Cp=c.forwardRef((e,t)=>c.createElement(je,{ref:t,...e,weights:vv}));Cp.displayName="XCircleIcon";const Rv=Cp;function zv({messages:e,processing:t,hasStreaming:n,sessionActiveMs:r,permissionPrompt:l,onPermission:i,containerRef:o,scrollLocked:a=!1}){const s=c.useRef(null),u=c.useRef(null),d=c.useRef(!0),f=r;c.useLayoutEffect(()=>{d.current&&s.current&&s.current.scrollIntoView({behavior:n?"instant":"smooth"})},[e,t,l]);const h=c.useCallback(()=>{const p=u.current;if(!p)return;const x=d.current,S=p.scrollTop+p.clientHeight>=p.scrollHeight-64;d.current=S,!x&&S&&n&&requestAnimationFrame(()=>{var T;(T=s.current)==null||T.scrollIntoView({behavior:"instant"})})},[n]);return e.length===0&&!l?m.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:m.jsxs("div",{"data-collider":"message-card",className:"text-center max-w-md p-8",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:[m.jsx("h2",{className:"text-2xl font-bold mb-3",style:{color:"var(--color-accent)"},children:"DSCode Web"}),m.jsx("p",{className:"text-sm leading-relaxed mb-6",style:{color:"var(--color-text-muted)"},children:"DeepSeek-native AI coding agent. Ask me to write code, run commands, search files, or manage your project — all from the browser."}),m.jsxs("div",{className:"space-y-2 text-xs",style:{color:"var(--color-text-muted)"},children:[m.jsxs("p",{children:["Type"," ",m.jsx("code",{className:"px-1.5 py-0.5 rounded",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.75rem"},children:"/help"})," ","for available commands"]}),m.jsxs("p",{children:["Press"," ",m.jsx("code",{className:"px-1.5 py-0.5 rounded",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-accent)",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.75rem"},children:"/"})," ","to see slash commands"]})]})]})}):m.jsxs("div",{ref:p=>{u.current=p,o&&(o.current=p)},onScroll:h,className:"flex-1 overflow-y-auto min-h-0 px-4 py-4 space-y-4"+(a?" overflow-hidden pointer-events-none":""),children:[e.map(p=>m.jsx(Dv,{fallback:m.jsx(Vv,{message:p}),children:p.role==="user"?m.jsx(Bv,{message:p}):m.jsx(Uv,{message:p,sessionTime:f})},p.id)),t&&!n&&!l&&m.jsx(Ov,{sessionTime:f}),l&&m.jsx($v,{toolName:l.toolName,preview:l.preview,fuzzyPattern:l.fuzzyPattern,fuzzyArgDesc:l.fuzzyArgDesc,llmSuggestions:l.llmSuggestions,onDecision:i}),m.jsx("div",{ref:s})]})}class Dv extends W0.Component{constructor(){super(...arguments);Au(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}render(){var n;return this.state.hasError?(console.error("[ChatView] render error:",(n=this.state.error)==null?void 0:n.message),this.props.fallback):this.props.children}}function Vv({message:e}){return m.jsx("div",{className:"flex justify-start",children:m.jsxs("div",{"data-collider":"message-card",className:"max-w-[85%] px-4 py-3",style:{borderRadius:"12px",border:"1px solid var(--color-error-text)",backgroundColor:"var(--color-error)",color:"var(--color-error-text)"},children:[m.jsx("div",{className:"text-xs font-bold mb-1",children:"Render Error"}),m.jsxs("div",{className:"text-xs font-mono break-all",children:["role=",e.role," | content=",String(e.content).slice(0,60)]})]})})}function Zv(e){return e<60?`${e}s`:`${Math.floor(e/60)}m ${e%60}s`}function Ov({sessionTime:e}){return m.jsx("div",{className:"flex justify-start animate-fade-up",children:m.jsx("div",{className:"px-4 py-3",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)"},children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs("div",{className:"flex gap-1",children:[m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),m.jsx("span",{className:"w-2 h-2 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),m.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Waiting..."}),m.jsxs("span",{className:"text-xs tabular-nums",style:{color:"var(--color-text-muted)"},children:["(",Zv(Math.floor(e/1e3)),")"]})]})})})}function $v({toolName:e,preview:t,fuzzyPattern:n,fuzzyArgDesc:r,llmSuggestions:l,onDecision:i}){const[o,a]=c.useState(!1),[s,u]=c.useState(""),[d,f]=c.useState(!1),[h,p]=c.useState("save"),x=T=>{f(!1),h==="session"||h==="allow"?T===0?i("always_allow"):i("always_allow",void 0,n??void 0,T):i("always_allow_save",void 0,T===1?n??void 0:void 0,T)},S=()=>{s.trim()&&(i("deny",s.trim()),u(""),a(!1))};return m.jsx("div",{className:"flex justify-start animate-fade-up",children:m.jsxs("div",{className:"max-w-[85%] md:max-w-[75%] px-4 py-3","data-collider":"message-card",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-warning)"},children:[m.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[m.jsx(Fv,{size:16,weight:"bold",style:{color:"var(--color-warning-text)"}}),m.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-warning-text)"},children:"Permission Required"})]}),m.jsx("div",{className:"mb-2 text-xs font-mono",style:{color:"var(--color-accent)"},children:e}),m.jsx("div",{className:"mb-3 text-xs font-mono break-all max-h-24 overflow-y-auto rounded p-2",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text-muted)"},children:t}),o?m.jsxs("div",{className:"space-y-2",children:[m.jsx("textarea",{value:s,onChange:T=>u(T.target.value),placeholder:"Explain what you want the agent to do instead...",className:"w-full text-xs p-2 resize-none focus:outline-none",style:{borderRadius:"8px",backgroundColor:"var(--color-bg)",border:"1px solid var(--color-border)",color:"var(--color-text)"},rows:3,autoFocus:!0,onKeyDown:T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),S()),T.key==="Escape"&&(u(""),a(!1))}}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:S,disabled:!s.trim(),className:"btn-primary text-xs",children:"Submit"}),m.jsx("button",{onClick:()=>{u(""),a(!1)},className:"btn-secondary text-xs",children:"Cancel"})]})]}):d?m.jsxs("div",{className:"flex gap-2 flex-wrap",children:[h==="session"?m.jsxs(m.Fragment,{children:[m.jsxs("button",{onClick:()=>x(0),className:"btn-secondary text-xs",children:["Exact: ",e]}),m.jsxs("button",{onClick:()=>x(1),className:"btn-secondary text-xs",children:["Fuzzy: ",n]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("button",{onClick:()=>x(0),className:"btn-secondary text-xs",children:["Exact: ",e,e.startsWith("mcp__")?"":" (this call)"]}),m.jsx("button",{onClick:()=>x(1),className:"btn-secondary text-xs",children:e.startsWith("mcp__")?n:"All calls"}),r&&m.jsx("button",{onClick:()=>x(2),className:"btn-secondary text-xs",children:r}),l&&l.map((T,g)=>m.jsxs("button",{onClick:()=>x(3+g),className:"btn-secondary text-xs",children:["[AI] ",T.label]},g))]}),m.jsx("button",{onClick:()=>f(!1),className:"btn text-xs",style:{backgroundColor:"var(--color-surface-hover)"},children:"Cancel"})]}):m.jsxs("div",{className:"flex gap-2 flex-wrap",children:[n&&n!==e?m.jsx("button",{onClick:()=>{p("allow"),f(!0)},className:"btn-primary text-xs",children:"Allow ▸"}):m.jsx("button",{onClick:()=>i("allow"),className:"btn-primary text-xs",children:"Allow"}),n&&n!==e?m.jsx("button",{onClick:()=>{p("session"),f(!0)},className:"btn-secondary text-xs",children:"Always Allow ▸"}):m.jsx("button",{onClick:()=>i("always_allow"),className:"btn-secondary text-xs",children:"Always Allow"}),m.jsx("button",{onClick:()=>{p("save"),f(!0)},className:"btn-secondary text-xs",children:"Save to Settings ▸"}),m.jsx("button",{onClick:()=>a(!0),className:"btn text-xs",style:{backgroundColor:"var(--color-warning)",color:"var(--color-warning-text)",borderColor:"var(--color-warning-text)"},children:"Explain"}),m.jsx("button",{onClick:()=>i("deny"),className:"btn-danger text-xs",children:"Deny"})]})]})})}function Bv({message:e}){const t=typeof e.content=="string"?e.content:"";return m.jsxs("div",{className:"user-msg",children:[m.jsxs("div",{className:"meta",children:["You",e.createdAt?` · ${new Date(e.createdAt).toLocaleTimeString()}`:""]}),m.jsxs("div",{"data-collider":"message-card",className:"content",children:[e.images&&e.images.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 justify-end",children:e.images.map((n,r)=>{const l="data"in n?`data:${n.mimeType};base64,${n.data}`:void 0;return m.jsx("img",{src:l??"/placeholder-image.svg",alt:`Attached image ${r+1}`,className:"max-w-[200px] max-h-[200px] object-cover rounded cursor-pointer hover:opacity-90 transition-opacity",style:{border:"1px solid var(--color-border)"},onClick:()=>l&&window.open(l,"_blank")},r)})}),t?t.split(`
|
|
74
|
+
`).map((n,r)=>m.jsx("span",{"data-collider":"text-line",children:n?m.jsx(Ui,{className:"text-sm leading-relaxed",children:n}):m.jsx("br",{})},r)):e.isStreaming&&!e.thinking&&(!e.images||e.images.length===0)?m.jsx("span",{className:"inline-block w-2 h-4 animate-pulse rounded-sm",style:{backgroundColor:"var(--color-accent)"}}):null]})]})}function Uv({message:e,sessionTime:t}){const n=typeof e.content=="string"?e.content:"";return m.jsxs("div",{className:"assistant-msg",children:[m.jsxs("div",{className:"meta",children:["dscode",e.createdAt?` · ${new Date(e.createdAt).toLocaleTimeString()}`:""]}),e.thinking&&m.jsx(Wv,{thinking:e.thinking,isStreaming:e.isStreaming,sessionTime:t}),e.images&&e.images.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2",children:e.images.map((r,l)=>{const i="data"in r?`data:${r.mimeType};base64,${r.data}`:void 0;return m.jsx("img",{src:i??"/placeholder-image.svg",alt:`Attached image ${l+1}`,className:"max-w-[200px] max-h-[200px] object-cover rounded cursor-pointer hover:opacity-90 transition-opacity",style:{border:"1px solid var(--color-border)"},onClick:()=>i&&window.open(i,"_blank")},l)})}),e.tools&&e.tools.length>0&&m.jsx("div",{className:"space-y-2",children:e.tools.map((r,l)=>m.jsx(Gx,{tool:r,thinking:e.thinking},`${r.name}-${l}`))}),m.jsx("div",{className:"text-response",children:n?n.split(`
|
|
75
|
+
`).map((r,l)=>m.jsx("span",{"data-collider":"text-line",children:r?m.jsx(Ui,{className:"text-sm leading-relaxed",children:r}):m.jsx("br",{})},l)):e.isStreaming&&!e.thinking&&(!e.images||e.images.length===0)?m.jsx("span",{className:"inline-block w-2 h-4 animate-pulse rounded-sm",style:{backgroundColor:"var(--color-accent)"}}):null})]})}function Wv({thinking:e,isStreaming:t,sessionTime:n}){const[r,l]=c.useState(!t);return c.useEffect(()=>{t&&l(!1)},[t]),m.jsxs("div",{className:`thinking${r?" collapsed":""}`,"data-collider":"thinking-block",children:[m.jsxs("div",{className:"label",onClick:()=>l(!r),children:[m.jsx("span",{className:"dot"}),"Thinking"]}),m.jsx("div",{className:"thinking-body",children:e})]})}function L0(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=async()=>{const l=r.result,i=await Qv(l),o=i.indexOf(","),a=i.slice(5,i.indexOf(";")),s=i.slice(o+1);t({data:s,mimeType:a})},r.onerror=n,r.readAsDataURL(e)})}function Qv(e){return new Promise((t,n)=>{const r=new window.Image;r.onload=()=>{if(r.height<=480){t(e);return}const i=480/r.height,o=Math.round(r.width*i),a=document.createElement("canvas");a.width=o,a.height=480;const s=a.getContext("2d");if(!s){t(e);return}s.drawImage(r,0,0,o,480),t(a.toDataURL("image/jpeg",.85))},r.onerror=()=>n(new Error("Failed to load image for compression")),r.src=e})}function Xv(e){return e.type.startsWith("image/")}function I0(e){return!!(e.includes("/")||e.includes("\\")||/\.[a-zA-Z0-9]{1,6}$/.test(e)||/[a-zA-Z0-9\-_]/.test(e))}function Yv(e){const t=e.slice(e.lastIndexOf(".")).toLowerCase();return[".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg"].includes(t)?Mv:[".txt",".md",".mdx",".log",".csv"].includes(t)?jv:[".mp4",".avi",".mov",".webm"].includes(t)?_v:[".mp3",".wav",".ogg"].includes(t)?Lv:t===".pdf"?Cv:[".zip",".tar",".gz",".7z",".rar"].includes(t)?wv:ip}const qv=10*1024*1024,Kv=50*1024*1024;function Gv({onSend:e,onAbort:t,onSlashCommand:n,onCommand:r,processing:l,slashCommands:i,fileListItems:o,fileListPrefix:a,viewMode:s,projectPath:u,onToast:d}){const[f,h]=c.useState(""),[p,x]=c.useState([]),[S,T]=c.useState([]),[g,y]=c.useState(!1),[v,N]=c.useState(!1),[j,w]=c.useState(""),[_,F]=c.useState(0),[X,M]=c.useState(!1),[O,U]=c.useState(""),[oe,ie]=c.useState(0),J=c.useRef(null),fe=c.useRef([]),b=c.useRef(-1),Z=c.useRef(""),q=c.useRef(!1),k=100,le=i.filter(R=>!j||R.name.startsWith(j.slice(1))),de=c.useRef();c.useEffect(()=>(X&&O!==void 0&&(clearTimeout(de.current),de.current=setTimeout(()=>{r({type:"file_list",prefix:O})},150)),()=>clearTimeout(de.current)),[O,X,r]),c.useEffect(()=>{ie(0)},[o]);const E=c.useCallback(()=>{const R=f.trim();if(!R&&p.length===0&&S.length===0)return;R&&fe.current[0]!==R&&(fe.current.unshift(R),fe.current.length>k&&fe.current.pop()),b.current=-1;const ee=S.length>0?S.map(B=>({name:B.name,content:B.content})):void 0;e(R,p.length>0?p:void 0,void 0,ee),h(""),x([]),T([]),N(!1),M(!1)},[f,p,S,e]),ye=R=>{const ee=J.current;if(!ee)return;const B=ee.selectionStart??f.length,se=f.slice(0,B),ne=se.match(new RegExp('(?:^|(?<![a-zA-Z0-9]))@("([^"]*)"?|([^\\s]*))$'));if(!ne||!I0(ne[2]??ne[3]??""))return;const H=se.lastIndexOf("@");if(H===-1)return;const P=f.slice(0,H),C=f.slice(B),Y=`@${R}/`,L=`${P}${Y}${C}`;h(L),U(R+"/"),M(!0),r({type:"file_list",prefix:R+"/"}),requestAnimationFrame(()=>{const A=H+Y.length;ee.focus(),ee.setSelectionRange(A,A)})},Re=(R,ee)=>{const B=J.current;if(!B)return;const se=B.selectionStart??f.length,H=f.slice(0,se).lastIndexOf("@");if(H===-1)return;const P=f.slice(0,H),C=f.slice(se);if(ee){const Y=`${P}@${R} @${C}`;h(Y),U(""),r({type:"file_list",prefix:""}),requestAnimationFrame(()=>{const L=H+R.length+3;B.focus(),B.setSelectionRange(L,L)})}else{const Y=`${P}@${R} ${C}`;h(Y),M(!1),requestAnimationFrame(()=>{const L=H+R.length+2;B.focus(),B.setSelectionRange(L,L)})}},ge=R=>{var ee;if(X){if(R.key==="ArrowDown"){R.preventDefault(),ie(B=>Math.min(B+1,o.length-1));return}if(R.key==="ArrowUp"){R.preventDefault(),ie(B=>Math.max(B-1,0));return}if(R.key==="Enter"){R.preventDefault();const B=o[oe];B&&(B.isDir?ye(B.path):Re(B.path,!1));return}if(R.key==="Tab"){R.preventDefault();const B=o[oe];B&&(B.isDir?ye(B.path):Re(B.path,!0));return}if(R.key==="Escape"){M(!1);return}return}if(v){if(R.key==="ArrowDown")R.preventDefault(),F(B=>Math.min(B+1,le.length-1));else if(R.key==="ArrowUp")R.preventDefault(),F(B=>Math.max(B-1,0));else if(R.key==="Enter"||R.key==="Tab"){R.preventDefault();const B=le[_];B&&(h(`/${B.name} `),N(!1),(ee=J.current)==null||ee.focus())}else R.key==="Escape"&&N(!1);return}if(!l&&fe.current.length>0){if(R.key==="ArrowUp"){R.preventDefault(),b.current===-1?(Z.current=f,b.current=0):b.current=Math.min(b.current+1,fe.current.length-1),h(fe.current[b.current]),requestAnimationFrame(()=>{const B=J.current;B&&(B.focus(),B.setSelectionRange(B.value.length,B.value.length))});return}if(R.key==="ArrowDown"&&b.current>=0){R.preventDefault(),b.current--,b.current===-1?h(Z.current):h(fe.current[b.current]),requestAnimationFrame(()=>{const B=J.current;B&&(B.focus(),B.setSelectionRange(B.value.length,B.value.length))});return}}if(R.key==="Escape"&&l){R.preventDefault(),t();return}R.key==="Enter"&&!R.shiftKey&&!q.current&&(R.preventDefault(),l||E()),R.key==="Backspace"&&!f&&p.length>0&&(R.preventDefault(),x(B=>B.slice(0,-1)))},_e=R=>{const ee=R.target.value;h(ee),b.current=-1,Z.current="",ee==="/"?(N(!0),w(""),F(0),M(!1)):ee.startsWith("/")&&!ee.includes(" ")?(N(!0),w(ee),F(0),M(!1)):N(!1);const B=R.target.selectionStart??ee.length,ne=ee.slice(0,B).match(new RegExp('(?:^|(?<![a-zA-Z0-9]))@("([^"]*)"?|([^\\s]*))$'));ne&&I0(ne[2]??ne[3]??"")?(M(!0),U(ne[2]??ne[3]??"")):M(!1)},ot=c.useCallback(async R=>{const ee=R.clipboardData.items,B=[];for(let se=0;se<ee.length;se++)Xv(ee[se])&&B.push(ee[se]);if(B.length>0){R.preventDefault();const se=[];for(const ne of B){const H=ne.getAsFile();if(H)try{const P=await L0(H);se.push(P)}catch{}}x(ne=>[...ne,...se])}},[]),Xe=c.useCallback(R=>{x(ee=>ee.filter((B,se)=>se!==R))},[]),ht=c.useCallback(R=>{T(ee=>ee.filter((B,se)=>se!==R))},[]),mt=c.useCallback(R=>{l||(R.preventDefault(),R.dataTransfer.dropEffect="copy",y(!0))},[l]),ln=c.useCallback(R=>{y(!1)},[]),on=c.useCallback(async R=>{if(l)return;R.preventDefault(),y(!1);const ee=R.dataTransfer.files;if(ee.length===0)return;const B=[],se=[];let ne=0;for(let H=0;H<ee.length;H++){const P=ee[H];if(P.type.startsWith("image/"))try{const C=await L0(P);B.push(C)}catch{}else{if(P.size>qv){d==null||d("warning",`File '${P.name}' exceeds 10 MB limit`);continue}if(ne+P.size>Kv){d==null||d("warning","Total file size exceeds 50 MB limit");continue}try{const C=await new Promise((Y,L)=>{const A=new FileReader;A.onload=()=>{const I=A.result;Y(I.substring(I.indexOf(",")+1))},A.onerror=L,A.readAsDataURL(P)});se.push({name:P.name,size:P.size,content:C}),ne+=P.size}catch{}}}B.length>0&&x(H=>[...H,...B]),se.length>0&&T(H=>[...H,...se]),requestAnimationFrame(()=>{var H;(H=J.current)==null||H.focus()})},[l]),an=()=>{const R=J.current;R&&(R.style.height="auto",R.style.height=Math.min(R.scrollHeight,200)+"px")},Dt={borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"};return m.jsxs("div",{className:"px-4 py-3 relative",onDragOver:mt,onDragLeave:ln,onDrop:on,style:{borderTop:"1px solid var(--color-border)",backgroundColor:g?"var(--color-surface-hover)":"var(--color-surface)",transition:"background-color 0.2s ease"},children:[v&&le.length>0&&s!=="dashboard"&&m.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-72 overflow-hidden z-50",style:Dt,children:[m.jsx("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:"Commands"}),m.jsx("div",{className:"max-h-48 overflow-y-auto",children:le.map((R,ee)=>m.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{backgroundColor:ee===_?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>F(ee),onClick:()=>{var B;h(`/${R.name} `),N(!1),(B=J.current)==null||B.focus()},children:[m.jsxs("span",{className:"font-mono text-xs",style:{color:"var(--color-accent)"},children:["/",R.name]}),m.jsx("span",{className:"text-xs truncate",style:{color:"var(--color-text-muted)"},children:R.description})]},R.name))})]}),X&&m.jsxs("div",{className:"absolute bottom-full left-4 mb-1 w-80 overflow-hidden z-50",style:Dt,children:[m.jsxs("div",{className:"px-3 py-2 text-xs border-b",style:{color:"var(--color-text-muted)",borderColor:"var(--color-border)"},children:["Files ",O?`@${O}`:""]}),m.jsx("div",{className:"max-h-48 overflow-y-auto",children:o.length>0?o.map((R,ee)=>m.jsxs("button",{className:"w-full text-left px-3 py-2 text-sm transition-colors flex items-center gap-2",style:{paddingLeft:`${12+(R.depth??0)*14}px`,backgroundColor:ee===oe?"var(--color-surface-hover)":"transparent",color:"var(--color-text)"},onMouseEnter:()=>ie(ee),onClick:()=>{R.isDir?ye(R.path):Re(R.path,!1)},children:[R.isDir?m.jsx(Av,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}):m.jsx(ip,{size:14,weight:"bold",style:{color:"var(--color-text-muted)"}}),m.jsx("span",{className:"font-mono text-xs truncate",style:{color:"var(--color-accent)"},children:R.name})]},R.path)):m.jsx("div",{className:"px-3 py-2 text-sm",style:{color:"var(--color-text-muted)"},children:O?"No matching files":"Type to search files..."})})]}),S.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 max-w-4xl mx-auto",children:S.map((R,ee)=>{const B=Yv(R.name);return m.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 text-sm max-w-[200px]",style:{border:"1px solid var(--color-border)",borderRadius:"8px",backgroundColor:"var(--color-bg)"},children:[m.jsx(B,{size:14,weight:"bold",style:{color:"var(--color-text-muted)",flexShrink:0}}),m.jsx("span",{className:"truncate text-xs",style:{color:"var(--color-text)"},title:R.name,children:R.name}),m.jsx("button",{onClick:()=>ht(ee),className:"flex-shrink-0 w-4 h-4 rounded text-xs flex items-center justify-center ml-0.5",style:{color:"var(--color-text-muted)"},title:"Remove file",children:m.jsx(mo,{size:12,weight:"bold"})})]},`${R.name}-${ee}`)})}),p.length>0&&m.jsx("div",{className:"flex flex-wrap gap-2 mb-2 max-w-4xl mx-auto",children:p.map((R,ee)=>m.jsxs("div",{className:"relative group",children:[m.jsx("img",{src:`data:${R.mimeType};base64,${R.data}`,alt:`Pasted image ${ee+1}`,className:"h-16 w-16 object-cover rounded",style:{border:"1px solid var(--color-border)"}}),m.jsx("button",{onClick:()=>Xe(ee),className:"absolute -top-1.5 -right-1.5 w-5 h-5 rounded text-xs flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",style:{backgroundColor:"var(--color-error-text)",color:"#fff"},title:"Remove image",children:"×"})]},ee))}),m.jsxs("div",{className:"flex items-end gap-2 max-w-4xl mx-auto",children:[m.jsx("textarea",{ref:J,value:f,onChange:R=>{_e(R),an()},onKeyDown:ge,onPaste:ot,onCompositionStart:()=>{q.current=!0},onCompositionEnd:()=>{q.current=!1},placeholder:l?"Processing... (Esc to stop)":s==="dashboard"?"Describe how to modify the dashboard...":"Type a message... (@file, Tab for multi-file, Enter to send)",disabled:l,rows:1,className:"flex-1 resize-none text-sm min-h-[40px] max-h-[200px] px-4 py-2.5 focus:outline-none",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",color:"var(--color-text)",fontFamily:"Geist Sans, system-ui, sans-serif"}}),l?m.jsx("button",{onClick:t,className:"btn-danger shrink-0",title:"Stop agent (Esc)",children:"Stop"}):m.jsx("button",{onClick:E,disabled:!f.trim()&&p.length===0&&S.length===0,className:"btn-primary shrink-0",children:m.jsx(Tv,{size:16,weight:"bold"})})]}),m.jsxs("div",{className:"text-xs text-center mt-1.5",style:{color:"var(--color-text-muted)"},children:["DSCode Web ·"," ",l?"Press Stop or Esc to abort":"Type @ for files, Tab to add more, Enter to send, Ctrl+V for images"]})]})}function Jv(e,t){try{const n=localStorage.getItem(e);if(n!==null){const r=parseInt(n,10);if(!isNaN(r)&&r>0)return r}}catch{}return t}function ek({minWidth:e=200,maxWidth:t=500,defaultWidth:n=320,storageKey:r,enabled:l=!0}){const[i,o]=c.useState(()=>Jv(r,n)),a=c.useRef(null),s=c.useRef(null),u=c.useRef(""),d=c.useRef(""),f=c.useCallback(h=>{if(!l)return;h.preventDefault(),h.target.setPointerCapture(h.pointerId),s.current={startX:h.clientX,startWidth:i},u.current=document.body.style.cursor,d.current=document.body.style.userSelect,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const p=S=>{if(!s.current)return;const T=S.clientX-s.current.startX,g=Math.min(t,Math.max(e,s.current.startWidth+T));o(g)},x=()=>{s.current=null,document.removeEventListener("pointermove",p),document.removeEventListener("pointerup",x),document.body.style.cursor=u.current,document.body.style.userSelect=d.current;try{localStorage.setItem(r,String(i))}catch{}};document.addEventListener("pointermove",p),document.addEventListener("pointerup",x)},[l,i,e,t,r]);return{width:i,panelRef:a,handleProps:{onPointerDown:f,role:"separator","aria-orientation":"vertical"}}}function tk({open:e,onClose:t,activeTab:n,onTabChange:r,sessions:l,currentSessionId:i,mcpServers:o,config:a,onSessionAction:s,onMcpAction:u,onConfigChange:d,onNewSession:f,onMcpServerAction:h,isProcessing:p,onCacheAction:x,cacheSize:S,cacheClearing:T}){const{width:g,panelRef:y,handleProps:v}=ek({storageKey:"dscode-sidebar-width"}),N=c.useRef(null),j=c.useRef(0),w=c.useRef(n),_=c.useCallback(()=>{N.current&&(j.current=N.current.scrollTop)},[]);return c.useLayoutEffect(()=>{w.current!==n&&(j.current=0,w.current=n)},[n]),c.useLayoutEffect(()=>{n==="sessions"&&N.current&&j.current>0&&(N.current.scrollTop=j.current)},[l,n]),m.jsxs(m.Fragment,{children:[e&&m.jsx("div",{className:"fixed inset-0 bg-black/30 z-40 md:hidden",onClick:t}),m.jsxs("aside",{ref:y,className:`fixed md:static inset-y-0 left-0 z-50 flex flex-col transform transition-transform duration-200 ${e?"translate-x-0":"-translate-x-full md:translate-x-0"} ${!e&&"hidden md:flex"}`,style:{width:`${g}px`,minWidth:`${g}px`,backgroundColor:"var(--color-surface)",borderRight:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center justify-between p-3 md:hidden",style:{borderBottom:"1px solid var(--color-border)"},children:[m.jsx("span",{className:"font-semibold text-sm",style:{color:"var(--color-accent)"},children:"DSCode"}),m.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:m.jsx(mo,{size:18,weight:"bold",style:{color:"var(--color-text)"}})})]}),m.jsx("div",{className:"flex",style:{borderBottom:"1px solid var(--color-border)"},children:["sessions","mcp","settings"].map(F=>m.jsx("button",{onClick:()=>r(F),className:"flex-1 py-2.5 text-xs font-medium transition-colors capitalize",style:{color:n===F?"var(--color-accent)":"var(--color-text-muted)",borderBottom:n===F?"2px solid var(--color-accent)":"2px solid transparent"},children:F==="sessions"?"Sessions":F==="mcp"?"MCP":"Settings"},F))}),m.jsxs("div",{ref:N,onScroll:_,className:"flex-1 overflow-y-auto p-3",children:[n==="sessions"&&m.jsx(rk,{sessions:l,currentSessionId:i,onAction:s,isProcessing:p,onNewSession:f}),n==="mcp"&&m.jsx(lk,{servers:o,onAction:u,onServerAction:h}),n==="settings"&&m.jsx(ik,{config:a,onChange:d,onCacheAction:x,cacheSize:S,cacheClearing:T})]}),m.jsx("div",{className:"resize-handle hidden md:block",...v})]})]})}function nk(e){if(e<1e3)return"<1s";const t=Math.floor(e/1e3);if(t<60)return`${t}s`;if(t<3600)return`${Math.floor(t/60)}m ${t%60}s`;const n=Math.floor(t/3600),r=Math.floor(t%3600/60);return`${n}h ${r}m`}function rk({sessions:e,currentSessionId:t,onAction:n,onNewSession:r,isProcessing:l}){return m.jsxs("div",{className:"space-y-3",children:[m.jsxs("button",{onClick:()=>{l||r()},className:"w-full text-left px-3 py-1.5 text-sm transition-colors duration-200 flex items-center gap-2",style:{borderRadius:"8px",opacity:l?.4:1,pointerEvents:l?"none":"auto"},onMouseEnter:i=>{l||(i.currentTarget.style.backgroundColor="var(--color-surface-hover)")},onMouseLeave:i=>{i.currentTarget.style.backgroundColor="transparent"},children:[m.jsx(hp,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),m.jsx("span",{style:{color:"var(--color-accent)"},children:"New Session"})]}),e.length===0?m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No saved sessions"}):m.jsx("div",{className:"space-y-1",children:e.map(i=>{const o=i.id===t,a=l&&!o;return m.jsxs("div",{className:"flex items-center justify-between p-2 transition-colors group",style:{borderRadius:"8px",backgroundColor:o?"var(--color-accent-bg)":"transparent",opacity:a?.4:1,pointerEvents:a?"none":"auto"},onMouseEnter:s=>{!o&&!a&&(s.currentTarget.style.backgroundColor="var(--color-surface-hover)")},onMouseLeave:s=>{s.currentTarget.style.backgroundColor=o?"var(--color-accent-bg)":"transparent"},children:[m.jsxs("button",{onClick:()=>{o&&l||a||n("load",i.id)},className:"flex-1 text-left min-w-0",children:[m.jsx("div",{className:"text-sm truncate flex items-center gap-1.5",style:{color:"var(--color-text)"},children:i.title}),m.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[nk(i.totalActiveMs)," · ",i.messageCount," msgs"]})]}),o&&l&&m.jsx(Iv,{size:14,weight:"bold",style:{color:"var(--color-accent)",opacity:.6,animation:"spin 1s linear infinite"}}),m.jsx("button",{onClick:()=>{!a&&!l&&n("delete",i.id)},className:`opacity-0 group-hover:opacity-100 p-1 rounded transition-all ${l?"!opacity-0":""}`,style:{color:"var(--color-error-text)"},title:"Delete",children:m.jsx(kp,{size:14,weight:"bold"})})]},i.id)})})]})}function lk({servers:e,onServerAction:t,onAction:n}){const[r,l]=c.useState(null);return m.jsxs("div",{className:"space-y-3",children:[m.jsx("button",{onClick:()=>n("refresh"),className:"btn-secondary w-full text-xs",children:"Refresh"}),e.length===0?m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"No MCP servers configured"}):m.jsx("div",{className:"space-y-1",children:e.map(i=>m.jsxs("div",{children:[m.jsxs("button",{onClick:()=>l(r===i.name?null:i.name),className:"w-full flex items-center justify-between p-2 transition-colors text-left",style:{borderRadius:"8px"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-surface-hover)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="transparent"},children:[m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"text-sm truncate",style:{color:"var(--color-text)"},children:i.name}),m.jsxs("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[i.toolCount," tools"]})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:m.jsx("div",{role:"button",tabIndex:0,onClick:o=>{o.stopPropagation(),i.status==="connected"||i.status==="connecting"?t("disconnect",i.name):t("connect",i.name)},onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),o.stopPropagation(),i.status==="connected"||i.status==="connecting"?t("disconnect",i.name):t("connect",i.name))},className:"flex-shrink-0",style:{position:"relative",width:"36px",height:"22px",borderRadius:"11px",border:i.status==="connected"||i.status==="connecting"?"none":"1px solid var(--color-border)",cursor:"pointer",backgroundColor:i.status==="connected"||i.status==="connecting"?"var(--color-accent)":i.status==="error"?"var(--color-error-text)":"var(--color-surface)",opacity:i.status==="connecting"?.7:1,transition:"background-color 250ms ease, border-color 250ms ease, opacity 250ms ease"},title:i.status==="connected"||i.status==="connecting"?`Disconnect ${i.name}`:`Connect ${i.name}`,children:m.jsx("span",{style:{position:"absolute",top:"3px",left:i.status==="connected"||i.status==="connecting"?"18px":"2px",width:"16px",height:"16px",borderRadius:"50%",backgroundColor:"#ffffff",boxShadow:"0 1px 2px rgba(0,0,0,0.12)",transition:"left 200ms cubic-bezier(0.34, 1.56, 0.64, 1)"}})})})]}),r===i.name&&m.jsx("div",{className:"ml-3 mt-1 space-y-0.5 pl-3",style:{borderLeft:"2px solid var(--color-border)"},children:i.tools.map(o=>m.jsxs("div",{className:"text-xs py-1",children:[m.jsx("span",{className:"font-mono",style:{color:"var(--color-accent)"},children:o.name}),o.description&&m.jsx("span",{className:"ml-1",style:{color:"var(--color-text-muted)"},children:o.description})]},o.name))})]},i.name))})]})}function ik({config:e,onChange:t,onCacheAction:n,cacheSize:r,cacheClearing:l}){var v,N,j;const[i,o]=c.useState(""),[a,s]=c.useState((e==null?void 0:e.modelId)??""),[u,d]=c.useState((e==null?void 0:e.thinkingLevel)??"off"),[f,h]=c.useState((e==null?void 0:e.provider)??""),[p,x]=c.useState((e==null?void 0:e.projectPath)??""),[S,T]=c.useState(!1),g=c.useRef(e);if(c.useEffect(()=>{n==null||n("size")},[]),c.useEffect(()=>{e&&e!==g.current&&(h(e.provider),s(e.modelId),d(e.thinkingLevel),g.current=e)},[e]),!e)return m.jsx("p",{className:"text-xs text-center py-8",style:{color:"var(--color-text-muted)"},children:"Loading..."});const y={borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",color:"var(--color-text)",fontSize:"0.75rem",width:"100%",padding:"0.5rem 0.75rem",outline:"none"};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),m.jsx("select",{value:f,onChange:w=>{h(w.target.value),t("set_provider",w.target.value)},style:y,children:e.providers.map(w=>m.jsx("option",{value:w,children:w},w))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),m.jsx("select",{value:a,onChange:w=>{s(w.target.value),t("set_model",w.target.value)},style:y,children:e.models.map(w=>m.jsx("option",{value:w.id,children:w.name},w.id))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Thinking Level"}),m.jsx("select",{value:u,onChange:w=>{d(w.target.value),t("set_thinking",w.target.value)},style:y,children:["off","minimal","low","medium","high","xhigh"].map(w=>m.jsx("option",{value:w,children:w},w))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"password",value:i,onChange:w=>o(w.target.value),className:"input text-xs flex-1",placeholder:e.apiKey||"sk-..."}),m.jsx("button",{onClick:()=>{i&&t("set_key",i),o("")},className:"btn-primary text-xs px-3",children:"Set"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Project Path"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"text",value:p,onChange:w=>x(w.target.value),className:"input text-xs flex-1",placeholder:e.projectPath}),m.jsx("button",{onClick:()=>{p&&t("set_project_path",p.trim())},className:"btn-primary text-xs px-3",children:"Set"})]})]}),e.vision!=null||S?m.jsxs("div",{className:"pt-2 space-y-3",style:{borderTop:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Vision Model"}),!S&&m.jsxs("button",{onClick:()=>t("set_vision_delete",""),className:"inline-flex items-center gap-1 text-xs px-2 py-1 rounded-btn transition-colors",style:{color:"var(--color-error-text)"},children:[m.jsx(kp,{size:12,weight:"bold"}),"Delete"]})]}),S||e.vision?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Provider"}),m.jsxs("select",{value:((v=e.vision)==null?void 0:v.provider)??"",onChange:w=>t("set_vision_provider",w.target.value),style:y,children:[m.jsx("option",{value:"",children:"Select..."}),e.visionProviders.map(w=>m.jsx("option",{value:w,children:w},w))]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Model"}),m.jsxs("select",{value:((N=e.vision)==null?void 0:N.model)??"",onChange:w=>t("set_vision_model",w.target.value),style:y,children:[m.jsx("option",{value:"",children:"Select..."}),e.visionModels.map(w=>m.jsx("option",{value:w.id,children:w.name},w.id))]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"API Key"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("input",{type:"password",value:i,onChange:w=>o(w.target.value),className:"input text-xs flex-1",placeholder:(j=e.vision)!=null&&j.key?"••••••••":"Enter vision API key"}),m.jsx("button",{onClick:()=>{i&&t("set_vision_key",i),o("")},className:"btn-primary text-xs px-3",children:"Set"})]})]})]}):null,!e.vision&&S&&m.jsx("button",{onClick:()=>T(!1),className:"text-xs",style:{color:"var(--color-text-muted)"},children:"Cancel"})]}):m.jsxs("button",{onClick:()=>T(!0),className:"w-full text-left px-3 py-1.5 text-sm transition-colors duration-200 flex items-center gap-2",style:{borderRadius:"8px"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor="var(--color-surface-hover)"},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent"},children:[m.jsx(hp,{size:14,weight:"bold",style:{color:"var(--color-accent)"}}),m.jsx("span",{style:{color:"var(--color-accent)"},children:"Add Vision Model"})]}),m.jsx("div",{className:"pt-2",style:{borderTop:"1px solid var(--color-border)"},children:m.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:["Max Tokens: ",e.maxTokens.toLocaleString()]})}),m.jsxs("div",{className:"pt-2",style:{borderTop:"1px solid var(--color-border)"},children:[m.jsx("label",{className:"text-xs mb-1 block",style:{color:"var(--color-text-muted)"},children:"Upload Cache"}),m.jsxs("div",{className:"flex items-center justify-between px-3 py-2",style:{borderRadius:"8px",border:r!=null&&r.totalBytes>40*1024*1024?"1px solid var(--color-error-text)":"1px solid var(--color-border)",backgroundColor:"var(--color-bg)"},children:[m.jsxs("div",{children:[m.jsx("div",{style:{fontFamily:"'Geist Mono', monospace",fontSize:"16px",fontWeight:700,color:"var(--color-text)"},children:r==null||l?"...":r.totalBytes===0?"0 B":r.totalBytes<1024?`${r.totalBytes} B`:r.totalBytes<1024*1024?`${(r.totalBytes/1024).toFixed(1)} KB`:`${(r.totalBytes/(1024*1024)).toFixed(1)} MB`}),m.jsx("div",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:r==null||l?"calculating...":r.totalBytes===0?"no cached files":`${r.fileCount} files · ${r.sessionCount} sessions`})]}),m.jsx("button",{onClick:()=>n==null?void 0:n("clear"),disabled:r==null||r.totalBytes===0||l,className:"text-xs px-3 py-1 rounded-btn transition-colors",style:{color:"var(--color-error-text)",opacity:r==null||r.totalBytes===0||l?.4:1,cursor:r==null||r.totalBytes===0||l?"not-allowed":"pointer"},children:"Clear"})]}),r!=null&&r.totalBytes>40*1024*1024&&m.jsx("p",{className:"text-xs mt-1",style:{color:"var(--color-error-text)"},children:"Consider clearing to free disk space"}),m.jsx("p",{className:"text-xs mt-1",style:{color:"var(--color-text-muted)"},children:"Files in .dscode/uploads/"})]})]})}function ok({toasts:e,onRemove:t}){return m.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 max-w-sm",children:e.map(n=>m.jsx(ak,{toast:n,onRemove:t},n.id))})}function ak({toast:e,onRemove:t}){const n=e.type==="warning",r=e.type==="error";return c.useEffect(()=>{let l=null;if(e.type==="info"||e.type==="warning"?l=3e3:e.type==="error"&&(l=8e3),l===null)return;const i=setTimeout(()=>t(e.id),l);return()=>clearTimeout(i)},[e.id,e.type,t]),m.jsxs("div",{className:"px-4 py-3 text-sm flex items-start gap-2 animate-slide-in",style:{borderRadius:"8px",border:"1px solid var(--color-border)",backgroundColor:r?"var(--color-error)":n?"var(--color-warning, #fef3c7)":"var(--color-surface)",color:r?"var(--color-error-text)":n?"var(--color-warning-text, #92400e)":"var(--color-text)"},children:[m.jsx("span",{className:"shrink-0 mt-0.5",children:r?m.jsx(Rv,{size:16,weight:"bold",style:{color:"var(--color-error-text)"}}):m.jsx(bv,{size:16,weight:"bold",style:{color:"var(--color-accent)"}})}),m.jsx("span",{className:"flex-1 break-words",children:e.text}),m.jsx("button",{onClick:()=>t(e.id),className:"shrink-0 hover:opacity-70 ml-2",style:{color:"var(--color-text-muted)"},children:m.jsx(mo,{size:14,weight:"bold"})})]})}function sk(){const[e,t]=c.useState([]),n=c.useCallback(l=>{const i=`toast-${Date.now()}-${Math.random().toString(36).slice(2,7)}`;t(o=>[...o,{...l,id:i}])},[]),r=c.useCallback(l=>{t(i=>i.filter(o=>o.id!==l))},[]);return{toasts:e,addToast:n,removeToast:r}}function uk({text:e,onClose:t}){c.useEffect(()=>{const l=i=>{i.key==="Escape"&&t()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]);const n=e.split(`
|
|
76
|
+
`),r=n[0].replace(/:$/,"");return m.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-end p-4 pt-16",onClick:t,children:m.jsxs("div",{className:"max-w-md w-full max-h-[70vh] overflow-y-auto",style:{borderRadius:"12px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-surface)",color:"var(--color-text)"},onClick:l=>l.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between px-4 py-3",style:{borderBottom:"1px solid var(--color-border)"},children:[m.jsx("span",{className:"text-sm font-semibold",style:{color:"var(--color-accent)"},children:r}),m.jsx("button",{onClick:t,className:"p-1 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},children:m.jsx(mo,{size:16,weight:"bold",style:{color:"var(--color-text-muted)"}})})]}),m.jsx("div",{className:"p-4",children:m.jsx("pre",{className:"text-xs leading-relaxed whitespace-pre-wrap break-words",style:{fontFamily:"Geist Mono, JetBrains Mono, monospace",color:"var(--color-text)",margin:0},children:n.slice(1).join(`
|
|
77
|
+
`)})}),m.jsxs("div",{className:"px-4 py-2 text-xs",style:{borderTop:"1px solid var(--color-border)",color:"var(--color-text-muted)"},children:["Press ",m.jsx("kbd",{style:{borderRadius:"4px",border:"1px solid var(--color-border)",backgroundColor:"var(--color-bg)",padding:"1px 5px",fontFamily:"Geist Mono, JetBrains Mono, monospace",fontSize:"0.7rem"},children:"Esc"})," to close"]})]})})}const ck=["system","rules","user","thinking","readwrite","edit","shell","skill","mcp","other"],fk={system:"System",rules:"Rules",user:"User",thinking:"Thinking",readwrite:"Read/Write",edit:"Edit",shell:"Shell",skill:"Skill",mcp:"MCP",other:"Other"},dk={system:"var(--cw-system)",rules:"var(--cw-rules)",user:"var(--cw-user)",thinking:"var(--cw-thinking)",readwrite:"var(--cw-readwrite)",edit:"var(--cw-edit)",shell:"var(--cw-shell)",skill:"var(--cw-skill)",mcp:"var(--cw-mcp)",other:"var(--cw-other)"};function Gn(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":e.toString()}function pk({data:e}){const[t,n]=c.useState(!1),r=c.useRef(null),l=c.useCallback(()=>n(!0),[]),i=c.useCallback(()=>n(!1),[]);if(!e)return null;const{total:o,used:a,free:s,categories:u}=e,d=2,f=ck.map(y=>({key:y,label:fk[y],tokens:u[y],color:dk[y]})).filter(y=>y.tokens>0),h=o>0?a/o*100:0,x=d/260*100;let S=f.map((y,v)=>{const N=o>0?f[v].tokens/o*100:0;return N>0&&N<x?x:N});const T=S.reduce((y,v)=>y+v,0);if(T>h&&T>0){const y=h/T;S=S.map(v=>v*y)}const g=o>0?Math.max(0,100-h):100;return m.jsxs("div",{className:"relative flex items-center gap-2",onMouseEnter:l,onMouseLeave:i,children:[m.jsxs("span",{className:"text-xs shrink-0 select-none tabular-nums",style:{color:"var(--color-text-muted)"},children:[Gn(a)," / ",Gn(o)]}),m.jsxs("div",{className:"flex flex-col items-center gap-0.5 shrink-0",children:[m.jsx("span",{className:"text-[10px] leading-none select-none",style:{color:"var(--color-text-muted)"},children:"Context Window"}),m.jsxs("div",{ref:r,className:"flex shrink-0 overflow-hidden",style:{width:"260px",height:"22px",backgroundColor:"var(--color-border)",gap:"1px"},children:[f.map((y,v)=>m.jsx("div",{className:"",style:{width:`${S[v]}%`,backgroundColor:y.color,minWidth:y.tokens>0?`${d}px`:0,transition:"width 0.3s ease, background-color 0.3s ease"},title:`${y.label}: ${Gn(y.tokens)}`},y.key)),g>0&&m.jsx("div",{className:"",style:{flex:1,backgroundColor:"transparent",transition:"width 0.3s ease"}})]})]}),t&&m.jsxs("div",{className:"absolute top-full mt-2 left-1/2 -translate-x-1/2 z-50 p-3 rounded-lg shadow-lg",style:{backgroundColor:"var(--color-surface)",border:"1px solid var(--color-border)",minWidth:"220px"},children:[m.jsx("div",{className:"text-xs mb-2",style:{color:"var(--color-text-muted)"},children:"Context window (estimated)"}),m.jsxs("div",{className:"flex flex-col gap-1.5",children:[f.map(y=>m.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{backgroundColor:y.color}}),m.jsx("span",{className:"flex-1",children:y.label}),m.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:Gn(y.tokens)})]},y.key)),s>0&&m.jsxs("div",{className:"flex items-center gap-2 text-xs",style:{color:"var(--color-text)"},children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-sm shrink-0",style:{border:"1px dashed var(--color-border)",backgroundColor:"transparent"}}),m.jsx("span",{className:"flex-1",children:"Free"}),m.jsx("span",{className:"tabular-nums",style:{color:"var(--color-text-muted)"},children:Gn(s)})]})]}),m.jsxs("div",{className:"text-xs mt-2 pt-2 flex justify-between tabular-nums",style:{color:"var(--color-text-muted)",borderTop:"1px solid var(--color-border)"},children:[m.jsx("span",{children:a>0?`${(a/o*100).toFixed(0)}% used`:""}),m.jsxs("span",{children:["Total: ",Gn(o)]})]})]})]})}function hk({viewMode:e,onChange:t,disabled:n}){const r=e==="chat"?Ev:Sv;return m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx(r,{size:18,weight:"bold",style:{color:"var(--color-text)"}}),m.jsxs("select",{value:e,onChange:l=>t(l.target.value),className:"text-sm font-medium cursor-pointer focus:outline-none",style:{backgroundColor:"var(--color-surface-hover)",color:"var(--color-text)",border:"1px solid var(--color-border)",borderRadius:"8px",padding:"4px 8px"},children:[m.jsx("option",{value:"chat",children:"Chat"}),m.jsx("option",{value:"dashboard",disabled:n,children:"Dashboard"})]})]})}function mk(e){let t=e.trim();return t=t.replace(/^```(?:html|HTML)?\s*\n?/,""),t=t.replace(/\n?```\s*$/,""),t}function gk({html:e,loading:t}){const n=c.useRef(null),r=c.useMemo(()=>t||!e?"":mk(e),[e,t]);return c.useEffect(()=>{n.current&&r&&(n.current.srcdoc=r)},[r]),t||!r?m.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:m.jsxs("div",{className:"flex flex-col items-center gap-4",children:[m.jsxs("div",{className:"flex gap-1.5",children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"0ms"}}),m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"150ms"}}),m.jsx("span",{className:"w-2.5 h-2.5 rounded-full animate-bounce",style:{backgroundColor:"var(--color-accent)",animationDelay:"300ms"}})]}),m.jsx("span",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Generating dashboard..."})]})}):m.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[m.jsx("iframe",{ref:n,srcDoc:r,sandbox:"allow-same-origin",className:"flex-1 w-full border-0",style:{backgroundColor:"var(--color-bg)",minHeight:"100%"},title:"Dashboard Artifact"}),m.jsxs("div",{className:"text-xs px-2 py-0.5",style:{color:"var(--color-text-muted)",borderTop:"1px solid var(--color-border)"},children:[r.length," bytes"]})]})}const P0=2500,yk=2,la=80,j0=60,xk=300,_0=22,ti=70,vk=4,$r=[{char:"d",ox:-40,oy:0},{char:"s",ox:-24,oy:0},{char:"c",ox:-8,oy:0},{char:"o",ox:8,oy:0},{char:"d",ox:24,oy:0},{char:"e",ox:40,oy:0}];function me(e,t){return e+Math.random()*(t-e)}function cn(e,t){return Math.floor(me(e,t+1))}function kk(e){const t=e.replace("#","");return[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]}function ia(e,t,n){return Math.max(t,Math.min(n,e))}function Jn(e,t,n){return e+(t-e)*n}function wk(e){return 1-(1-e)*(1-e)}function Sk({artifactReady:e,onComplete:t,scrollContainerRef:n}){const r=c.useRef(null),l=c.useRef(null),i=c.useRef(t);i.current=t;const o=c.useRef(e);o.current=e;const a=c.useRef(!1);return c.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){i.current();return}const s=r.current;if(!s)return;const u=s.getContext("2d"),d=document.body.style.cursor;document.body.style.cursor="none";const f=getComputedStyle(document.documentElement),p={accent:f.getPropertyValue("--color-accent").trim()||"#ca8a04",text:f.getPropertyValue("--color-text").trim()||"#2d2a26",textMuted:f.getPropertyValue("--color-text-muted").trim()||"#8a8580"},S=`hsl(${((()=>{const[H,P,C]=kk(p.accent),Y=Math.max(H,P,C),L=Math.min(H,P,C),A=Y-L;return A===0?38:Y===H?((P-C)/A+(P<C?6:0))*60:Y===P?((C-H)/A+2)*60:((H-P)/A+4)*60})()+20)%360}, 45%, 52%)`,T={d:p.accent,s:S,c:S,o:p.textMuted,e:p.text};let g=0,y=0;const v=s.parentElement,N=Math.min(window.devicePixelRatio||1,yk),w=(n==null?void 0:n.current)??(()=>{let H=v.parentElement;for(;H;){const P=getComputedStyle(H).overflowY;if(P==="auto"||P==="scroll")return H;H=H.parentElement}return null})();let _=0,F="";w&&(_=w.scrollTop,F=w.style.overflow,w.style.overflow="hidden");const X=document.createElement("canvas"),M=X.getContext("2d"),U=document.createElement("canvas").getContext("2d");function oe(H){let P=H.parentElement;for(;P&&P!==document.body;){const C=getComputedStyle(P).overflowY;if(C==="auto"||C==="scroll")return P;P=P.parentElement}return null}function ie(){const H=Math.min(320,g*.18,y*.5);X.width=g*N,X.height=y*N,M.setTransform(N,0,0,N,0,0),M.clearRect(0,0,g,y),M.font=`700 ${H}px "Geist", sans-serif`,M.textAlign="center",M.textBaseline="middle",M.fillStyle="#ffffff",M.fillText("DSCode",g/2,y/2);const P="DSCode",C=M.measureText(P).width,Y=g/2-C/2,L=[];let A=Y;for(let G=0;G<P.length;G++){const re=M.measureText(P[G]).width;L.push({letter:P[G],left:A,right:A+re}),A+=re}const I=M.getImageData(0,0,Math.floor(g*N),Math.floor(y*N)),$=[],K=6;for(let G=0;G<y;G+=K)for(let re=0;re<g;re+=K){const Ie=(Math.floor(G*N)*Math.floor(g*N)+Math.floor(re*N))*4;if(Ie+3<I.data.length&&I.data[Ie+3]>128){const Ne=L.find(Ee=>re>=Ee.left&&re<Ee.right),Be=Ne?Ne.letter:P[Math.min(Math.floor((re-Y)/(C/P.length)),P.length-1)];$.push({x:re,y:G,letter:Be})}}for(let G=$.length-1;G>0;G--){const re=Math.floor(Math.random()*(G+1));[$[G],$[re]]=[$[re],$[G]]}return $.slice(0,P0)}function J(){const H=v.querySelectorAll("[data-collider]"),P=s.getBoundingClientRect(),C=[],Y=Math.abs($r[0].ox);H.forEach(L=>{var Be;if(L.querySelector("[data-collider]")||!((Be=L.textContent)!=null&&Be.trim()))return;const A=L.getBoundingClientRect(),I=A.top-P.top,$=I+A.height;if(I>=y||$<=0)return;const K=oe(L);if(K){const Ee=K.getBoundingClientRect();if(A.bottom<=Ee.top||A.top>=Ee.bottom)return}const G=L.getAttribute("data-collider");let re=A.width;if(G==="text-line"||G==="code-line"||G==="tool-result-line"){const Ee=L.textContent||"",z=getComputedStyle(L);U.font=`${z.fontWeight||"400"} ${z.fontSize} "${z.fontFamily.split(",")[0].replace(/"/g,"")}", sans-serif`;const W=U.measureText(Ee).width+4;re=Math.min(A.width,W)}const Ie=A.left-P.left;let Ne;if(re>=ti){const Ee=Ie+Y,z=Ie+re-Y;Ne=Ee+me(0,z-Ee)}else Ne=Ie+re/2;C.push({el:L,top:I,left:Ie,width:re,height:A.height,landingX:Ne,struck:!1})}),C.sort((L,A)=>L.top-A.top);for(let L=1;L<C.length;L++){let A=0;for(;Math.abs(C[L].landingX-C[L-1].landingX)<ti*.3&&A<5;)C[L].landingX=C[L].width>=ti?C[L].left+Y+me(0,C[L].width-ti):C[L].left+C[L].width/2,A++}return C}function fe(){const H=v.querySelectorAll(".meta"),P=s.getBoundingClientRect(),C=[];return H.forEach(Y=>{var $;if(Y.closest("[data-collider]")||!(($=Y.textContent)!=null&&$.trim()))return;const L=Y.getBoundingClientRect(),A=L.top-P.top,I=A+L.height;A>=y||I<=0||C.push({el:Y,top:A,left:L.left-P.left,width:L.width,height:L.height,dissolved:!1})}),C}const b={phase:"cascade",phaseTime:0,colors:p,particles:[],impactRings:[],shards:[],shake:0,formedTime:0,targetPoints:[],particlesAssigned:0,gatherStarted:!1,W:g,H:y,cluster:{x:0,y:0,hopState:"drop",hopTimer:0,rowIndex:-1,hopStartX:0,hopStartY:0,hopEndX:0,hopEndY:0,hopDuration:0,hopProgress:0,nextRowIndex:-1},rows:[],scaleX:1,scaleY:1,breathPhase:0,letterColorMap:T,timestamps:[],dissolvedTimestampEls:new Set};l.current=b;function Z(H){H.key==="Escape"&&b.phase==="cascade"&&!b.gatherStarted&&le()}document.addEventListener("keydown",Z);function q(H){const P=H.getBoundingClientRect(),C=s.getBoundingClientRect(),Y=P.left-C.left,L=P.top-C.top,A=P.width,I=P.height,K=H.getAttribute("data-collider")==="tool-card"||H.getAttribute("data-collider")==="message-card"?cn(30,50):cn(20,40);for(let G=0;G<K;G++){const re=Y+me(0,A),Ie=L+me(0,I),Ne=Math.atan2(Ie-(L+I/2),re-(Y+A/2)),Be=me(2,8),Ee=[p.accent,S,p.text],z=Ee[cn(0,Ee.length-1)];b.particles.push({x:re,y:Ie,vx:Math.cos(Ne)*Be+me(-3,3),vy:Math.sin(Ne)*Be-me(1,5),size:me(1.5,4),color:z,phase:"fall",life:cn(1500,3e3)})}}function k(H,P,C){const Y=cn(6,12);for(let L=0;L<Y;L++){const A=me(0,Math.PI*2),I=me(2,6);b.particles.push({x:H,y:P,vx:Math.cos(A)*I,vy:Math.sin(A)*I-me(1,3),size:me(1,3),color:C,phase:"fall",life:cn(800,1800)})}}function le(){if(b.gatherStarted)return;b.gatherStarted=!0,b.phase="gather",b.phaseTime=0,b.targetPoints=ie(),b.particlesAssigned=0;const H=Math.min(b.particles.length,b.targetPoints.length);for(let P=0;P<H;P++)b.particles[P].tx=b.targetPoints[P].x,b.particles[P].ty=b.targetPoints[P].y,b.particles[P].gatherDelay=me(20,80),b.particlesAssigned++}function de(){const H=b.cluster,P=s.getBoundingClientRect(),C=b.rows[H.rowIndex],Y=C.top;let L=H.rowIndex+1,A=null,I=0;for(;L<b.rows.length;){const K=b.rows[L];if(K.struck){L++;continue}const G=K.el.getBoundingClientRect(),re=G.top-P.top;if(re<Y||G.bottom-P.top<=0){L++;continue}A=K,H.nextRowIndex=L,I=re;break}if(!A){le();return}A.top=I,H.hopStartX=C.landingX,H.hopStartY=Y,H.hopEndX=A.landingX,H.hopEndY=I;const $=Math.abs(H.hopEndY-H.hopStartY);H.hopDuration=Math.max(350,Math.min(800,Math.sqrt($)*25)),H.hopState="hopping"}function E(H){let P=H.parentElement;for(;P;){const C=P.getAttribute("data-collider");if(C!=="tool-card"&&C!=="message-card"){P=P.parentElement;continue}if(![...P.querySelectorAll("[data-collider]")].every(A=>{const I=b.rows.find($=>$.el===A);return!(I&&!I.struck)}))break;q(P),P.style.transition="opacity 200ms ease-out",P.style.opacity="0",P=P.parentElement}}const ye=60;function Re(H){if(H.dissolved)return;H.dissolved=!0,b.dissolvedTimestampEls.add(H.el);const P=s.getBoundingClientRect(),C=H.el.getBoundingClientRect(),Y=C.left-P.left,L=C.top-P.top,I=[...H.el.textContent||""],$=I.indexOf("·"),K=H.width/Math.max(I.length,1);I.forEach((G,re)=>{if(G===" ")return;const Ie=Y+re*K+K/2,Ne=L+H.height/2,Be=cn(2,3);for(let Ee=0;Ee<Be;Ee++)b.particles.push({x:Ie+me(-K*.3,K*.3),y:Ne+me(-H.height*.3,H.height*.3),vx:me(-2,2),vy:me(-4,-1),size:me(1,3),color:$>=0&&re>=$?p.textMuted:p.accent,phase:"fall",life:cn(400,600)})}),H.el.style.transition="opacity 300ms ease-out",H.el.style.opacity="0"}function ge(){const P=b.cluster.y;for(const C of b.timestamps){if(C.dissolved)continue;const Y=C.top+C.height/2;Math.abs(P-Y)<ye&&Re(C)}}function _e(){const H=b.cluster;if(H.rowIndex<0||H.rowIndex>=b.rows.length)return;const P=b.rows[H.rowIndex];if(P.struck)return;P.struck=!0,P.landingX,P.top+P.height*.35,P.el.style.transition="none",E(P.el),requestAnimationFrame(()=>{P.el.style.transition="background-color 60ms ease-out, box-shadow 60ms ease-out, opacity 180ms ease-out 60ms",P.el.style.backgroundColor="",P.el.style.boxShadow="",P.el.getAttribute("data-collider")!=="message-card"&&(P.el.style.opacity="0")});const C=me(-8,8),Y=me(-4,2);P.el.style.transform=`translate(${C}px, ${Y}px)`,P.el.style.transition+=", transform 120ms ease-out";for(const L of $r){const A=H.x+L.ox,I=H.y+L.oy+_0/2,$=b.letterColorMap[L.char]??p.accent;k(A,I,$)}{const L=s.getBoundingClientRect();for(let A=0;A<b.rows.length;A++){const I=b.rows[A],$=I.el.getBoundingClientRect();I.top=$.top-L.top,I.left=$.left-L.left,I.width=$.width,I.height=$.height}if(b.rows.sort((A,I)=>A.top-I.top),H.rowIndex=b.rows.findIndex(A=>A===P),H.hopState==="hopping"){const A=H.rowIndex+1;A<b.rows.length&&(H.hopEndY=b.rows[A].top,H.hopEndX=b.rows[A].landingX)}}}function ot(H,P){b.phaseTime+=H;const C=b.cluster;if(b.rows.length===0&&b.phaseTime>2e3&&!b.gatherStarted){le();return}switch(C.hopState){case"drop":{b.rows.length>0&&C.rowIndex===-1&&(C.rowIndex=0,C.x=b.rows[0].landingX);const L=b.rows.length>0?b.rows[0].top:y/2;C.y+=vk*P,C.y>=L&&(C.y=L,C.hopState="squash",C.hopTimer=la,_e());break}case"squash":{C.hopTimer-=H;const L=ia(1-C.hopTimer/la,0,1);b.scaleY=Jn(1,.6,L),b.scaleX=Jn(1,1.3,L),C.hopTimer<=0&&(C.hopState="stretch",C.hopTimer=j0);break}case"stretch":{C.hopTimer-=H;const L=ia(1-C.hopTimer/j0,0,1);b.scaleY=Jn(.6,1.2,L),b.scaleX=Jn(1.3,.85,L),C.hopTimer<=0&&(b.scaleY=1,b.scaleX=1,C.hopState="dwell",C.hopTimer=xk);break}case"dwell":{C.hopTimer-=H,b.breathPhase+=H*(Math.PI*2/600);const L=1+Math.sin(b.breathPhase)*.02;b.scaleX=L,b.scaleY=L,C.hopTimer<=0&&(b.scaleX=1,b.scaleY=1,de());break}case"hopping":{C.hopProgress+=H/C.hopDuration;const L=ia(C.hopProgress,0,1),A=wk(L),I=Math.abs(C.hopEndY-C.hopStartY),$=Math.max(40,I*.55),K=(C.hopStartY+C.hopEndY)/2,G=Math.min($,Math.max(0,K));if(C.y=Jn(C.hopStartY,C.hopEndY,L)-G*Math.sin(L*Math.PI),C.x=Jn(C.hopStartX,C.hopEndX,A),L>=1){C.y=C.hopEndY,C.x=C.hopEndX,C.hopProgress=0;const re=C.nextRowIndex;if(C.nextRowIndex=-1,re<0||re>=b.rows.length){le();return}C.rowIndex=re,C.hopState="squash",C.hopTimer=la,_e()}break}}(C.hopState==="hopping"||C.hopState==="dwell")&&ge();const Y=[];for(const L of b.particles)L.phase==="fall"&&(L.vy+=.28*P,L.x+=L.vx,L.y+=L.vy,L.vx*=.995,L.life!==void 0&&(L.life-=H),(L.y>y+10||L.life!==void 0&&L.life<=0)&&Y.push(L));Y.length>0&&(b.particles=b.particles.filter(L=>!Y.includes(L)));for(const L of b.shards)L.x+=L.vx,L.y+=L.vy,L.vy+=.15*P,L.rotation+=L.rotationSpeed,L.life-=H;b.shards=b.shards.filter(L=>L.life>0)}function Xe(H,P){if(b.phaseTime+=H,b.particles.length<b.targetPoints.length&&b.particles.length<P0){const C=Math.min(b.targetPoints.length-b.particles.length,50);for(let Y=0;Y<C&&b.particlesAssigned<b.targetPoints.length;Y++){const L=b.targetPoints[b.particlesAssigned++];b.particles.push({x:me(0,g),y:y+me(20,80),vx:me(-2,2),vy:me(-8,-3),size:me(2,4),color:b.letterColorMap[L.letter]??p.text,phase:"fall",tx:L.x,ty:L.y,gatherDelay:me(20,80)})}}for(const C of b.particles)if(C.phase==="fall")C.vy+=.28*P,C.x+=C.vx,C.y+=C.vy,C.vx*=.995,C.y>y-4&&(C.y=y-4,C.vy*=-.3,C.vx*=.75),C.tx!==void 0&&C.gatherDelay!==void 0&&(C.gatherDelay-=H,C.gatherDelay<=0&&(C.phase="gather"));else if(C.phase==="gather"){if(C.tx===void 0||C.ty===void 0)continue;const Y=C.tx-C.x,L=C.ty-C.y,A=Math.sqrt(Y*Y+L*L);A<4?(C.x=C.tx,C.y=C.ty,C.phase="formed",C.flash=1,b.impactRings.push({x:C.x,y:C.y,r:2,life:1}),b.shake=Math.min(b.shake+2.5,8)):(C.vx+=Y/A*.55,C.vy+=L/A*.55,C.vx*=.88,C.vy*=.88,C.x+=C.vx,C.y+=C.vy)}else C.phase==="formed"&&C.flash!==void 0&&(C.flash*=.92);for(const C of b.shards)C.x+=C.vx,C.y+=C.vy,C.vy+=.12*P,C.rotation+=C.rotationSpeed,C.life-=H;b.shards=b.shards.filter(C=>C.life>0);for(const C of b.impactRings)C.r+=2.2,C.life-=.045;b.impactRings=b.impactRings.filter(C=>C.life>0),b.particles.length>0&&b.particles.every(C=>C.phase==="formed")&&b.phaseTime>800&&(b.phase="formed",b.phaseTime=0,b.formedTime=0),b.phaseTime>5e3&&(b.phase="formed",b.phaseTime=0,b.formedTime=0)}function ht(H,P){b.phaseTime+=H,b.formedTime+=H;for(const C of b.impactRings)C.r+=1.5,C.life-=.03;b.impactRings=b.impactRings.filter(C=>C.life>0);for(const C of b.particles)C.flash!==void 0&&(C.flash*=.92);for(const C of b.shards)C.x+=C.vx,C.y+=C.vy,C.vy+=.1*P,C.rotation+=C.rotationSpeed,C.life-=H;b.shards=b.shards.filter(C=>C.life>0),b.formedTime>600&&o.current&&!a.current&&(a.current=!0,i.current()),b.formedTime>5e3&&!a.current&&(a.current=!0,i.current())}function mt(){if(b.phase!=="cascade"||b.cluster.hopState==="drop"&&b.rows.length===0)return;const H=b.cluster,P=b.scaleX,C=b.scaleY;let Y=H.x;if(H.rowIndex>=0&&H.rowIndex<b.rows.length){const L=b.rows[H.rowIndex],A=H.x+$r[0].ox,I=H.x+$r[5].ox,$=A>=L.left&&A<=L.left+L.width,K=I>=L.left&&I<=L.left+L.width;$&&K?Y=(A+I)/2:Y=A}u.save(),u.translate(Y,H.y),u.scale(P,C),u.translate(-Y,-H.y);for(const L of $r){const A=L.char,I=me(-2,2),$=me(-2,2),K=H.x+L.ox+I,G=H.y+L.oy+$;u.font=`700 ${_0}px "Geist", sans-serif`,u.textAlign="center",u.textBaseline="middle",u.fillStyle=T[A]??p.text,u.fillText(A,K,G)}u.restore()}function ln(){for(const H of b.particles){const P=H.phase==="formed"?H.size*(1+(H.flash??0)*3):H.size;H.phase==="formed"&&(H.flash??0)>.3&&(u.globalCompositeOperation="lighter");let C=H.x,Y=H.y;if(H.phase==="formed"&&!o.current){const L=b.formedTime;C+=Math.sin(H.y*.04+L*.002)*Math.cos(H.x*.03+L*.0015)*2.5,Y+=Math.cos(H.x*.04+L*.002)*Math.sin(H.y*.03+L*.0015)*2.5}u.beginPath(),u.arc(C,Y,P,0,Math.PI*2),u.fillStyle=H.color,u.fill(),u.globalCompositeOperation="source-over"}}function on(){for(const H of b.impactRings)u.beginPath(),u.arc(H.x,H.y,H.r,0,Math.PI*2),u.strokeStyle=`rgba(255, 255, 255, ${H.life.toFixed(3)})`,u.lineWidth=2,u.stroke()}function an(){for(const H of b.shards){if(u.save(),u.translate(H.x,H.y),u.rotate(H.rotation),u.globalAlpha=Math.max(0,H.life/500),u.beginPath(),H.points.length>0){u.moveTo(H.points[0].x,H.points[0].y);for(let P=1;P<H.points.length;P++)u.lineTo(H.points[P].x,H.points[P].y);u.closePath()}else u.arc(0,0,H.size*3,0,Math.PI*2);u.fillStyle=H.color,u.fill(),u.strokeStyle=H.color,u.lineWidth=.5,u.stroke(),u.restore()}}function Dt(H){if(b.phase!=="formed")return;const P=g/2,C=y/2,Y=Math.sin(H*.002)*.5+.5,L=Math.floor((.05+Y*.08)*255).toString(16).padStart(2,"0");u.globalCompositeOperation="lighter";const A=u.createRadialGradient(P,C,0,P,C,Math.min(g,y)*.4);A.addColorStop(0,p.accent+L),A.addColorStop(1,"transparent"),u.fillStyle=A,u.fillRect(0,0,g,y),u.globalCompositeOperation="source-over"}function R(){const H={cascade:"CASCADE ACTIVE",gather:"PARTICLE CONVERGENCE",formed:"FORMATION COMPLETE"};u.save(),u.font="600 11px 'Geist Mono', 'JetBrains Mono', monospace",u.textAlign="right",u.textBaseline="bottom",u.fillStyle=p.textMuted,u.fillText(H[b.phase],g-20,y-16),u.restore()}let ee=performance.now();function B(H){if(g=v.clientWidth,y=v.clientHeight,g===0||y===0){se=requestAnimationFrame(B);return}s.width=g*N,s.height=y*N,s.style.width=g+"px",s.style.height=y+"px",u.setTransform(N,0,0,N,0,0),b.W=g,b.H=y,b.rows=J(),b.timestamps=fe(),console.log("[dscode] timestamps:",b.timestamps.length),b.cluster.x=g/2,b.cluster.y=-me(60,140),b.cluster.hopState="drop",b.cluster.rowIndex=-1,console.log("[dscode] rows:",b.rows.length,"H:",y,"W:",g),ee=performance.now(),se=requestAnimationFrame(ne)}let se=0;function ne(H){const P=Math.min(H-ee,33);ee=H;const C=P/16.667;switch(u.clearRect(0,0,g,y),u.save(),b.shake>.1&&(u.translate(me(-b.shake,b.shake),me(-b.shake,b.shake)),b.shake*=.88),Dt(H),mt(),ln(),on(),an(),u.restore(),b.phase){case"cascade":ot(P,C);break;case"gather":Xe(P,C);break;case"formed":ht(P,C);break}R(),se=requestAnimationFrame(ne)}return se=requestAnimationFrame(B),()=>{cancelAnimationFrame(se),document.removeEventListener("keydown",Z),document.body.style.cursor=d,w&&(w.style.overflow=F,w.scrollTop=_)}},[]),m.jsx("canvas",{ref:r,style:{position:"absolute",zIndex:50,inset:0,background:"transparent",pointerEvents:"none"}})}const Ek=[{name:"help",description:"Show available commands"},{name:"reset",description:"Clear conversation history"},{name:"session",description:"Session management (list|save|load|delete)"},{name:"memory",description:"Memory management (list|add|remove|clear)"},{name:"skills",description:"Skill management (list|activate|deactivate)"},{name:"drivers",description:"List loaded drivers"},{name:"mcp",description:"Browse MCP servers and tools"},{name:"permissions",description:"Show session permission grants"},{name:"cost",description:"Show token usage for this session"},{name:"compact",description:"Force context compaction"},{name:"config",description:"Show or change user command config"},{name:"image",description:"Attach an image (file path or 'clipboard')"}];function Ck(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.id===t[r].id&&n.updatedAt===t[r].updatedAt&&n.messageCount===t[r].messageCount&&n.contentHash===t[r].contentHash)}function Ak(){const e=localStorage.getItem("dscode-theme");return e==="dark"||e==="light"?e:"light"}function Mk(){try{const e=localStorage.getItem("dscode-dash-cache");if(e)return JSON.parse(e)}catch{}return{}}function bk(e){try{localStorage.setItem("dscode-dash-cache",JSON.stringify(e))}catch{}}const Nk=20;function Hk(){var Ee;const[e,t]=c.useState([]),[n,r]=c.useState(!1),[l,i]=c.useState(null),[o,a]=c.useState(""),[s,u]=c.useState(null),[d,f]=c.useState(!1),[h,p]=c.useState("sessions"),[x,S]=c.useState([]),[T,g]=c.useState(null),[y,v]=c.useState([]),[N,j]=c.useState([]),[w,_]=c.useState(""),[F,X]=c.useState(Ak),[M,O]=c.useState(null),[U,oe]=c.useState(null),[ie,J]=c.useState("chat"),[fe,b]=c.useState(""),[Z,q]=c.useState(!1),[k,le]=c.useState(null),[de,E]=c.useState(!1),[ye,Re]=c.useState("idle"),{toasts:ge,addToast:_e,removeToast:ot}=sk(),Xe=c.useRef(0),ht=c.useRef(s);ht.current=s;const mt=c.useRef(T);mt.current=T;const ln=c.useRef(null),on=c.useRef(Mk()),an=c.useRef(fe);an.current=fe;const Dt=c.useRef(Z);Dt.current=Z;const R=c.useRef(null);c.useEffect(()=>{const z=document.documentElement;F==="dark"?z.classList.add("dark"):z.classList.remove("dark"),localStorage.setItem("dscode-theme",F)},[F]),c.useEffect(()=>{const z=ln.current;ln.current=T,z!==null&&z!==T&&ie==="dashboard"&&J("chat")},[T,ie]),c.useEffect(()=>{e.length===0&&ie==="dashboard"&&J("chat")},[e,ie]);const ee=c.useCallback(()=>X(z=>z==="light"?"dark":"light"),[]),B=c.useCallback(z=>{switch(z.type){case"ready":{a(z.model),i(z.config),t(W=>ql(W,z));break}case"user_message":case"thinking_delta":case"text_delta":case"tool_progress":case"tool_start":case"tool_end":case"mcp_app":t(W=>ql(W,z));break;case"assistant_end":t(W=>ql(W,z));break;case"clear_conversation":t(W=>ql(W,z)),u(null);break;case"assistant_start":break;case"info":{const W=z.text;W.includes(`
|
|
78
|
+
`)||W.startsWith("Available")||W.startsWith("Drivers")||W.startsWith("Skills")||W.startsWith("Configuration")||W.startsWith("Memories")||W.startsWith("Session grants")?oe(W):_e({type:"info",text:W});break}case"warning":_e({type:"warning",text:z.text});break;case"error":_e({type:"error",text:z.text}),r(!1),Xe.current=0;break;case"permission_prompt":u({toolName:z.toolName,preview:z.preview,fuzzyPattern:z.fuzzyPattern??null,fuzzyArgDesc:z.fuzzyArgDesc??null,llmSuggestions:z.llmSuggestions??void 0});break;case"loader":r(z.state==="show"),z.state==="show"?Xe.current||(Xe.current=Date.now()):Xe.current=0;break;case"sessions":{if(S(W=>Ck(W,z.data)?W:z.data),g(z.currentSessionId??null),z.currentSessionId){const W=z.data.find(ve=>ve.id===z.currentSessionId);W!=null&&W.pendingPermission&&!ht.current&&u({toolName:W.pendingPermission.toolName,preview:W.pendingPermission.preview,fuzzyPattern:W.pendingPermission.fuzzyPattern??null})}break}case"session_time":{const W=mt.current;W&&S(ve=>ve.map(Ce=>Ce.id===W?{...Ce,totalActiveMs:z.totalActiveMs}:Ce));break}case"mcp_state":v(z.servers);break;case"mcp_open_browser":f(!0),p("mcp");break;case"model":a(z.name);break;case"context_window":O(z);break;case"config":i(z.data);break;case"file_list_result":j(z.items),_(z.prefix);break;case"artifact_start":b(""),q(!0);break;case"artifact_delta":b(W=>W+z.delta);break;case"artifact_end":{q(!1);const W=mt.current;if(W){const ve=x.find(Ce=>Ce.id===W);if(ve){const Ce=on.current,Yn=Object.keys(Ce);Yn.length>=Nk&&!Ce[W]&&delete Ce[Yn[0]],Ce[W]={contentHash:ve.contentHash,html:an.current},bk(Ce)}}break}case"cache_size":le({totalBytes:z.totalBytes,fileCount:z.fileCount,sessionCount:z.sessionCount}),E(!1);break}},[_e,x]),{connected:se,send:ne}=e2(B),H=c.useCallback((z,W,ve,Ce)=>{!z.trim()&&(!W||W.length===0)&&(!Ce||Ce.length===0)||(Xe.current=Date.now(),r(!0),ne(ie==="dashboard"?{type:"artifact",action:"update",instruction:z}:{type:"chat",text:z,images:W!=null&&W.length?W:void 0,fileRefs:ve!=null&&ve.length?ve:void 0,uploadedFiles:Ce!=null&&Ce.length?Ce:void 0}))},[ne,ie]),P=c.useCallback((z,W,ve,Ce)=>{ne({type:W?"permission_response":"permission",decision:z,persistRule:z==="always_allow_save",denyReason:W,toolNamePattern:ve,fuzzyMode:Ce,sessionGrantPattern:z==="always_allow"||z==="allow"&&Ce===1?ve:void 0}),u(null)},[ne]),C=c.useCallback(()=>ne({type:"abort"}),[ne]),Y=c.useCallback(z=>ne({type:"slash",command:z}),[ne]),L=c.useCallback(z=>ne(z),[ne]),A=c.useCallback((z,W)=>ne({type:"config",action:z,value:W}),[ne]),I=c.useCallback(z=>{z==="clear"&&E(!0),ne({type:"cache",action:z})},[ne]),$=c.useCallback((z,W)=>ne({type:"session",action:z,id:W}),[ne]),K=c.useCallback((z,W)=>ne({type:"mcp",action:z,serverName:W}),[ne]),G=c.useCallback(()=>ne({type:"slash",command:"/reset"}),[ne]),re=c.useCallback(z=>{var ve;if(z==="chat"){J("chat");return}if(e.length===0)return;const W=mt.current;if(W){const Ce=on.current[W],Yn=(ve=x.find(Ap=>Ap.id===W))==null?void 0:ve.contentHash;if(Ce&&Yn!==void 0&&Yn!==""&&Ce.contentHash===Yn){b(Ce.html),q(!1),J("dashboard");return}}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){J("dashboard"),b(""),q(!0),ne({type:"artifact",action:"generate",context:"session_dashboard"});return}b(""),q(!0),ne({type:"artifact",action:"generate",context:"session_dashboard"}),Re("animating")},[ne,x,e]),Ie=c.useCallback(()=>{const z=()=>{Dt.current?requestAnimationFrame(z):(Re("idle"),J("dashboard"))};requestAnimationFrame(z)},[]);c.useEffect(()=>{se&&($("list"),K("list"))},[se,$,K]);const Ne=e.some(z=>z.isStreaming),Be=((Ee=x.find(z=>z.id===T))==null?void 0:Ee.totalActiveMs)??0;return m.jsxs("div",{className:"h-screen flex flex-col",style:{backgroundColor:"var(--color-bg)"},children:[m.jsxs("header",{className:"flex items-center px-4 py-2 shrink-0",style:{backgroundColor:"var(--color-surface)",borderBottom:"1px solid var(--color-border)"},children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>f(!d),className:"p-2 rounded-btn hover:brightness-95 transition-[filter] duration-200 md:hidden",style:{backgroundColor:"var(--color-surface-hover)"},"aria-label":"Toggle sidebar",children:m.jsx(Nv,{size:20,weight:"bold",style:{color:"var(--color-text)"}})}),m.jsx("h1",{className:"font-bold text-lg",style:{color:"var(--color-accent)"},children:"DSCode"}),o&&m.jsx("span",{className:"text-sm hidden sm:inline",style:{color:"var(--color-text-muted)"},children:o})]}),m.jsx("div",{className:"flex-1 flex justify-center hidden md:flex",children:m.jsx(pk,{data:M})}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(hk,{viewMode:ie,onChange:re,disabled:e.length===0}),m.jsx("button",{onClick:ee,className:"p-2 rounded-btn hover:brightness-95 transition-[filter] duration-200",style:{backgroundColor:"var(--color-surface-hover)"},"aria-label":"Toggle theme",children:F==="light"?m.jsx(Hv,{size:18,weight:"bold",style:{color:"var(--color-text)"}}):m.jsx(Pv,{size:18,weight:"bold",style:{color:"var(--color-text)"}})}),m.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs px-2.5 py-1",style:{borderRadius:"8px",backgroundColor:se?"var(--color-success)":"var(--color-error)",color:se?"var(--color-success-text)":"var(--color-error-text)"},children:[m.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:se?"var(--color-success-text)":"var(--color-error-text)"}}),se?"Connected":"Reconnecting..."]})]})]}),m.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[m.jsx(tk,{open:d,onClose:()=>f(!1),activeTab:h,onTabChange:p,sessions:x,currentSessionId:T,mcpServers:y,config:l,onSessionAction:$,onMcpAction:K,onMcpServerAction:K,onConfigChange:A,isProcessing:n,onNewSession:G,onCacheAction:I,cacheSize:k,cacheClearing:de}),m.jsx("main",{className:"flex-1 flex flex-col min-w-0",children:m.jsxs("div",{className:"flex-1 flex flex-col min-h-0",style:{position:"relative"},children:[ye==="animating"&&m.jsx(Sk,{artifactReady:!Z&&fe!=="",onComplete:Ie,scrollContainerRef:R}),ie==="dashboard"&&ye==="idle"?m.jsx(gk,{html:fe,loading:Z}):m.jsx(zv,{messages:e,processing:n,hasStreaming:Ne,sessionActiveMs:Be,permissionPrompt:s,onPermission:P,containerRef:R,scrollLocked:ye==="animating"}),m.jsx(Gv,{onSend:H,onAbort:C,onSlashCommand:Y,onCommand:L,processing:n,slashCommands:Ek,fileListItems:N,fileListPrefix:w,viewMode:ie,projectPath:(l==null?void 0:l.projectPath)??"",onToast:(z,W)=>_e({type:z,text:W})})]})})]}),m.jsx(ok,{toasts:ge,onRemove:ot}),U&&m.jsx(uk,{text:U,onClose:()=>oe(null)})]})}oa.createRoot(document.getElementById("root")).render(m.jsx(W0.StrictMode,{children:m.jsx(Hk,{})}));
|