genaicode 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Hw=Object.defineProperty;var qw=(e,t,r)=>t in e?Hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Oo=(e,t,r)=>qw(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(l){if(l.ep)return;l.ep=!0;const a=r(l);fetch(l.href,a)}})();function Pd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hc={exports:{}},Ae={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var om;function Ww(){if(om)return Ae;om=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function j(z,G,N){this.props=z,this.context=G,this.refs=b,this.updater=N||w}j.prototype.isReactComponent={},j.prototype.setState=function(z,G){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,G,"setState")},j.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function C(){}C.prototype=j.prototype;function P(z,G,N){this.props=z,this.context=G,this.refs=b,this.updater=N||w}var L=P.prototype=new C;L.constructor=P,S(L,j.prototype),L.isPureReactComponent=!0;var M=Array.isArray,H=Object.prototype.hasOwnProperty,A={current:null},q={key:!0,ref:!0,__self:!0,__source:!0};function K(z,G,N){var ye,Se={},me=null,Ee=null;if(G!=null)for(ye in G.ref!==void 0&&(Ee=G.ref),G.key!==void 0&&(me=""+G.key),G)H.call(G,ye)&&!q.hasOwnProperty(ye)&&(Se[ye]=G[ye]);var ke=arguments.length-2;if(ke===1)Se.children=N;else if(1<ke){for(var je=Array(ke),Ve=0;Ve<ke;Ve++)je[Ve]=arguments[Ve+2];Se.children=je}if(z&&z.defaultProps)for(ye in ke=z.defaultProps,ke)Se[ye]===void 0&&(Se[ye]=ke[ye]);return{$$typeof:e,type:z,key:me,ref:Ee,props:Se,_owner:A.current}}function le(z,G){return{$$typeof:e,type:z.type,key:G,ref:z.ref,props:z.props,_owner:z._owner}}function D(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ne(z){var G={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(N){return G[N]})}var se=/\/+/g;function oe(z,G){return typeof z=="object"&&z!==null&&z.key!=null?ne(""+z.key):G.toString(36)}function re(z,G,N,ye,Se){var me=typeof z;(me==="undefined"||me==="boolean")&&(z=null);var Ee=!1;if(z===null)Ee=!0;else switch(me){case"string":case"number":Ee=!0;break;case"object":switch(z.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=z,Se=Se(Ee),z=ye===""?"."+oe(Ee,0):ye,M(Se)?(N="",z!=null&&(N=z.replace(se,"$&/")+"/"),re(Se,G,N,"",function(Ve){return Ve})):Se!=null&&(D(Se)&&(Se=le(Se,N+(!Se.key||Ee&&Ee.key===Se.key?"":(""+Se.key).replace(se,"$&/")+"/")+z)),G.push(Se)),1;if(Ee=0,ye=ye===""?".":ye+":",M(z))for(var ke=0;ke<z.length;ke++){me=z[ke];var je=ye+oe(me,ke);Ee+=re(me,G,N,je,Se)}else if(je=v(z),typeof je=="function")for(z=je.call(z),ke=0;!(me=z.next()).done;)me=me.value,je=ye+oe(me,ke++),Ee+=re(me,G,N,je,Se);else if(me==="object")throw G=String(z),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return Ee}function B(z,G,N){if(z==null)return z;var ye=[],Se=0;return re(z,ye,"","",function(me){return G.call(N,me,Se++)}),ye}function ae(z){if(z._status===-1){var G=z._result;G=G(),G.then(function(N){(z._status===0||z._status===-1)&&(z._status=1,z._result=N)},function(N){(z._status===0||z._status===-1)&&(z._status=2,z._result=N)}),z._status===-1&&(z._status=0,z._result=G)}if(z._status===1)return z._result.default;throw z._result}var ue={current:null},X={transition:null},ce={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:X,ReactCurrentOwner:A};function E(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:B,forEach:function(z,G,N){B(z,function(){G.apply(this,arguments)},N)},count:function(z){var G=0;return B(z,function(){G++}),G},toArray:function(z){return B(z,function(G){return G})||[]},only:function(z){if(!D(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Ae.Component=j,Ae.Fragment=r,Ae.Profiler=l,Ae.PureComponent=P,Ae.StrictMode=o,Ae.Suspense=f,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,Ae.act=E,Ae.cloneElement=function(z,G,N){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var ye=S({},z.props),Se=z.key,me=z.ref,Ee=z._owner;if(G!=null){if(G.ref!==void 0&&(me=G.ref,Ee=A.current),G.key!==void 0&&(Se=""+G.key),z.type&&z.type.defaultProps)var ke=z.type.defaultProps;for(je in G)H.call(G,je)&&!q.hasOwnProperty(je)&&(ye[je]=G[je]===void 0&&ke!==void 0?ke[je]:G[je])}var je=arguments.length-2;if(je===1)ye.children=N;else if(1<je){ke=Array(je);for(var Ve=0;Ve<je;Ve++)ke[Ve]=arguments[Ve+2];ye.children=ke}return{$$typeof:e,type:z.type,key:Se,ref:me,props:ye,_owner:Ee}},Ae.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:a,_context:z},z.Consumer=z},Ae.createElement=K,Ae.createFactory=function(z){var G=K.bind(null,z);return G.type=z,G},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(z){return{$$typeof:d,render:z}},Ae.isValidElement=D,Ae.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:ae}},Ae.memo=function(z,G){return{$$typeof:p,type:z,compare:G===void 0?null:G}},Ae.startTransition=function(z){var G=X.transition;X.transition={};try{z()}finally{X.transition=G}},Ae.unstable_act=E,Ae.useCallback=function(z,G){return ue.current.useCallback(z,G)},Ae.useContext=function(z){return ue.current.useContext(z)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(z){return ue.current.useDeferredValue(z)},Ae.useEffect=function(z,G){return ue.current.useEffect(z,G)},Ae.useId=function(){return ue.current.useId()},Ae.useImperativeHandle=function(z,G,N){return ue.current.useImperativeHandle(z,G,N)},Ae.useInsertionEffect=function(z,G){return ue.current.useInsertionEffect(z,G)},Ae.useLayoutEffect=function(z,G){return ue.current.useLayoutEffect(z,G)},Ae.useMemo=function(z,G){return ue.current.useMemo(z,G)},Ae.useReducer=function(z,G,N){return ue.current.useReducer(z,G,N)},Ae.useRef=function(z){return ue.current.useRef(z)},Ae.useState=function(z){return ue.current.useState(z)},Ae.useSyncExternalStore=function(z,G,N){return ue.current.useSyncExternalStore(z,G,N)},Ae.useTransition=function(){return ue.current.useTransition()},Ae.version="18.3.1",Ae}var lm;function Ad(){return lm||(lm=1,hc.exports=Ww()),hc.exports}var I=Ad();const Pt=Pd(I);var Rs={},mc={exports:{}},qt={},gc={exports:{}},yc={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* scheduler.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var sm;function Gw(){return sm||(sm=1,function(e){function t(X,ce){var E=X.length;X.push(ce);e:for(;0<E;){var z=E-1>>>1,G=X[z];if(0<l(G,ce))X[z]=ce,X[E]=G,E=z;else break e}}function r(X){return X.length===0?null:X[0]}function o(X){if(X.length===0)return null;var ce=X[0],E=X.pop();if(E!==ce){X[0]=E;e:for(var z=0,G=X.length,N=G>>>1;z<N;){var ye=2*(z+1)-1,Se=X[ye],me=ye+1,Ee=X[me];if(0>l(Se,E))me<G&&0>l(Ee,Se)?(X[z]=Ee,X[me]=E,z=me):(X[z]=Se,X[ye]=E,z=ye);else if(me<G&&0>l(Ee,E))X[z]=Ee,X[me]=E,z=me;else break e}}return ce}function l(X,ce){var E=X.sortIndex-ce.sortIndex;return E!==0?E:X.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],m=1,g=null,v=3,w=!1,S=!1,b=!1,j=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(X){for(var ce=r(p);ce!==null;){if(ce.callback===null)o(p);else if(ce.startTime<=X)o(p),ce.sortIndex=ce.expirationTime,t(f,ce);else break;ce=r(p)}}function M(X){if(b=!1,L(X),!S)if(r(f)!==null)S=!0,ae(H);else{var ce=r(p);ce!==null&&ue(M,ce.startTime-X)}}function H(X,ce){S=!1,b&&(b=!1,C(K),K=-1),w=!0;var E=v;try{for(L(ce),g=r(f);g!==null&&(!(g.expirationTime>ce)||X&&!ne());){var z=g.callback;if(typeof z=="function"){g.callback=null,v=g.priorityLevel;var G=z(g.expirationTime<=ce);ce=e.unstable_now(),typeof G=="function"?g.callback=G:g===r(f)&&o(f),L(ce)}else o(f);g=r(f)}if(g!==null)var N=!0;else{var ye=r(p);ye!==null&&ue(M,ye.startTime-ce),N=!1}return N}finally{g=null,v=E,w=!1}}var A=!1,q=null,K=-1,le=5,D=-1;function ne(){return!(e.unstable_now()-D<le)}function se(){if(q!==null){var X=e.unstable_now();D=X;var ce=!0;try{ce=q(!0,X)}finally{ce?oe():(A=!1,q=null)}}else A=!1}var oe;if(typeof P=="function")oe=function(){P(se)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,B=re.port2;re.port1.onmessage=se,oe=function(){B.postMessage(null)}}else oe=function(){j(se,0)};function ae(X){q=X,A||(A=!0,oe())}function ue(X,ce){K=j(function(){X(e.unstable_now())},ce)}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(X){X.callback=null},e.unstable_continueExecution=function(){S||w||(S=!0,ae(H))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(X){switch(v){case 1:case 2:case 3:var ce=3;break;default:ce=v}var E=v;v=ce;try{return X()}finally{v=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ce){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var E=v;v=X;try{return ce()}finally{v=E}},e.unstable_scheduleCallback=function(X,ce,E){var z=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?z+E:z):E=z,X){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=E+G,X={id:m++,callback:ce,priorityLevel:X,startTime:E,expirationTime:G,sortIndex:-1},E>z?(X.sortIndex=E,t(p,X),r(f)===null&&X===r(p)&&(b?(C(K),K=-1):b=!0,ue(M,E-z))):(X.sortIndex=G,t(f,X),S||w||(S=!0,ae(H))),X},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(X){var ce=v;return function(){var E=v;v=ce;try{return X.apply(this,arguments)}finally{v=E}}}}(yc)),yc}var am;function Jw(){return am||(am=1,gc.exports=Gw()),gc.exports}/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react-dom.production.min.js
|
|
20
20
|
*
|
|
@@ -22,14 +22,14 @@ var Bw=Object.defineProperty;var Uw=(e,t,r)=>t in e?Bw(e,t,{enumerable:!0,config
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var
|
|
25
|
+
*/var um;function Kw(){if(um)return qt;um=1;var e=Ad(),t=Jw();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function a(n,i){u(n,i),u(n+"Capture",i)}function u(n,i){for(l[n]=i,n=0;n<i.length;n++)o.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},g={};function v(n){return f.call(g,n)?!0:f.call(m,n)?!1:p.test(n)?g[n]=!0:(m[n]=!0,!1)}function w(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function S(n,i,s,c){if(i===null||typeof i>"u"||w(n,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function b(n,i,s,c,h,x,k){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=x,this.removeEmptyString=k}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){j[n]=new b(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];j[i]=new b(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){j[n]=new b(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){j[n]=new b(n,2,!1,n,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(n){j[n]=new b(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){j[n]=new b(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){j[n]=new b(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){j[n]=new b(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){j[n]=new b(n,5,!1,n.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function P(n){return n[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(n){var i=n.replace(C,P);j[i]=new b(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(C,P);j[i]=new b(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(C,P);j[i]=new b(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){j[n]=new b(n,1,!1,n.toLowerCase(),null,!1,!1)}),j.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){j[n]=new b(n,1,!1,n.toLowerCase(),null,!0,!0)});function L(n,i,s,c){var h=j.hasOwnProperty(i)?j[i]:null;(h!==null?h.type!==0:c||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,s,h,c)&&(s=null),c||h===null?v(i)&&(s===null?n.removeAttribute(i):n.setAttribute(i,""+s)):h.mustUseProperty?n[h.propertyName]=s===null?h.type===3?!1:"":s:(i=h.attributeName,c=h.attributeNamespace,s===null?n.removeAttribute(i):(h=h.type,s=h===3||h===4&&s===!0?"":""+s,c?n.setAttributeNS(c,i,s):n.setAttribute(i,s))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),A=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),ne=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),X=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=X&&n[X]||n["@@iterator"],typeof n=="function"?n:null)}var E=Object.assign,z;function G(n){if(z===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);z=i&&i[1]||""}return`
|
|
26
26
|
`+z+n}var N=!1;function ye(n,i){if(!n||N)return"";N=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(U){var c=U}Reflect.construct(n,[],i)}else{try{i.call()}catch(U){c=U}n.call(i.prototype)}else{try{throw Error()}catch(U){c=U}n()}}catch(U){if(U&&c&&typeof U.stack=="string"){for(var h=U.stack.split(`
|
|
27
27
|
`),x=c.stack.split(`
|
|
28
28
|
`),k=h.length-1,T=x.length-1;1<=k&&0<=T&&h[k]!==x[T];)T--;for(;1<=k&&0<=T;k--,T--)if(h[k]!==x[T]){if(k!==1||T!==1)do if(k--,T--,0>T||h[k]!==x[T]){var $=`
|
|
29
|
-
`+h[k].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=k&&0<=T);break}}}finally{N=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?G(n):""}function Se(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function me(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case q:return"Fragment";case A:return"Portal";case le:return"Profiler";case K:return"StrictMode";case oe:return"Suspense";case re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ne:return(n.displayName||"Context")+".Consumer";case D:return(n._context.displayName||"Context")+".Provider";case se:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return i=n.displayName||null,i!==null?i:me(n.type)||"Memo";case ae:i=n._payload,n=n._init;try{return me(n(i))}catch{}}return null}function Ee(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(i);case 8:return i===K?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ke(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function je(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ve(n){var i=je(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,x=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(k){c=""+k,x.call(this,k)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(k){c=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ct(n){n._valueTracker||(n._valueTracker=Ve(n))}function Ie(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=je(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function $t(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Pn(n,i){var s=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function _t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=ke(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function _e(n,i){i=i.checked,i!=null&&L(n,"checked",i,!1)}function st(n,i){_e(n,i);var s=ke(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?xt(n,i.type,s):i.hasOwnProperty("defaultValue")&&xt(n,i.type,ke(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Et(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,i,s){(i!=="number"||$t(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ye=Array.isArray;function it(n,i,s,c){if(n=n.options,i){i={};for(var h=0;h<s.length;h++)i["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=i.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&c&&(n[s].defaultSelected=!0)}else{for(s=""+ke(s),i=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Mt(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function un(n,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}n._wrapperState={initialValue:ke(s)}}function yl(n,i){var s=ke(i.value),c=ke(i.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),i.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function xl(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function J(n){switch(n){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 ie(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?J(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var be,Pe=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,h){MSApp.execUnsafeLocalFunction(function(){return n(i,s,c,h)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(be=be||document.createElement("div"),be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=be.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function De(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var vt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(n){Vn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),vt[i]=vt[n]})});function cn(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||vt.hasOwnProperty(n)&&vt[n]?(""+i).trim():i+"px"}function er(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=cn(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,h):n[s]=h}}var Ir=E({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 wt(n,i){if(i){if(Ir[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function An(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Qt=null;function Ta(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ra=null,ti=null,ni=null;function wf(n){if(n=bo(n)){if(typeof Ra!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Bl(i),Ra(n.stateNode,n.type,i))}}function kf(n){ti?ni?ni.push(n):ni=[n]:ti=n}function Sf(){if(ti){var n=ti,i=ni;if(ni=ti=null,wf(n),i)for(n=0;n<i.length;n++)wf(i[n])}}function bf(n,i){return n(i)}function Cf(){}var Na=!1;function Ef(n,i,s){if(Na)return n(i,s);Na=!0;try{return bf(n,i,s)}finally{Na=!1,(ti!==null||ni!==null)&&(Cf(),Sf())}}function to(n,i){var s=n.stateNode;if(s===null)return null;var c=Bl(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Ia=!1;if(d)try{var no={};Object.defineProperty(no,"passive",{get:function(){Ia=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Ia=!1}function G0(n,i,s,c,h,x,k,T,$){var U=Array.prototype.slice.call(arguments,3);try{i.apply(s,U)}catch(Y){this.onError(Y)}}var ro=!1,vl=null,wl=!1,Pa=null,J0={onError:function(n){ro=!0,vl=n}};function K0(n,i,s,c,h,x,k,T,$){ro=!1,vl=null,G0.apply(J0,arguments)}function Q0(n,i,s,c,h,x,k,T,$){if(K0.apply(this,arguments),ro){if(ro){var U=vl;ro=!1,vl=null}else throw Error(r(198));wl||(wl=!0,Pa=U)}}function Pr(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function jf(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Tf(n){if(Pr(n)!==n)throw Error(r(188))}function Y0(n){var i=n.alternate;if(!i){if(i=Pr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,c=i;;){var h=s.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===s)return Tf(h),n;if(x===c)return Tf(h),i;x=x.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=x;else{for(var k=!1,T=h.child;T;){if(T===s){k=!0,s=h,c=x;break}if(T===c){k=!0,c=h,s=x;break}T=T.sibling}if(!k){for(T=x.child;T;){if(T===s){k=!0,s=x,c=h;break}if(T===c){k=!0,c=x,s=h;break}T=T.sibling}if(!k)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function Rf(n){return n=Y0(n),n!==null?Nf(n):null}function Nf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Nf(n);if(i!==null)return i;n=n.sibling}return null}var If=t.unstable_scheduleCallback,Pf=t.unstable_cancelCallback,X0=t.unstable_shouldYield,Z0=t.unstable_requestPaint,ot=t.unstable_now,e1=t.unstable_getCurrentPriorityLevel,Aa=t.unstable_ImmediatePriority,Af=t.unstable_UserBlockingPriority,kl=t.unstable_NormalPriority,t1=t.unstable_LowPriority,Lf=t.unstable_IdlePriority,Sl=null,Ln=null;function n1(n){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Sl,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:o1,r1=Math.log,i1=Math.LN2;function o1(n){return n>>>=0,n===0?32:31-(r1(n)/i1|0)|0}var bl=64,Cl=4194304;function io(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function El(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,h=n.suspendedLanes,x=n.pingedLanes,k=s&268435455;if(k!==0){var T=k&~h;T!==0?c=io(T):(x&=k,x!==0&&(c=io(x)))}else k=s&~h,k!==0?c=io(k):x!==0&&(c=io(x));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,x=i&-i,h>=x||h===16&&(x&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)s=31-wn(i),h=1<<s,c|=n[s],i&=~h;return c}function l1(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 s1(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-wn(x),T=1<<k,$=h[k];$===-1?((T&s)===0||(T&c)!==0)&&(h[k]=l1(T,i)):$<=i&&(n.expiredLanes|=T),x&=~T}}function La(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function $f(){var n=bl;return bl<<=1,(bl&4194240)===0&&(bl=64),n}function $a(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function oo(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-wn(i),n[i]=s}function a1(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var h=31-wn(s),x=1<<h;i[h]=0,c[h]=-1,n[h]=-1,s&=~x}}function _a(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-wn(s),h=1<<c;h&i|n[c]&i&&(n[c]|=i),s&=~h}}var Be=0;function _f(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var zf,za,Df,Of,Mf,Da=!1,jl=[],tr=null,nr=null,rr=null,lo=new Map,so=new Map,ir=[],u1="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 Ff(n,i){switch(n){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":lo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(i.pointerId)}}function ao(n,i,s,c,h,x){return n===null||n.nativeEvent!==x?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},i!==null&&(i=bo(i),i!==null&&za(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function c1(n,i,s,c,h){switch(i){case"focusin":return tr=ao(tr,n,i,s,c,h),!0;case"dragenter":return nr=ao(nr,n,i,s,c,h),!0;case"mouseover":return rr=ao(rr,n,i,s,c,h),!0;case"pointerover":var x=h.pointerId;return lo.set(x,ao(lo.get(x)||null,n,i,s,c,h)),!0;case"gotpointercapture":return x=h.pointerId,so.set(x,ao(so.get(x)||null,n,i,s,c,h)),!0}return!1}function Bf(n){var i=Ar(n.target);if(i!==null){var s=Pr(i);if(s!==null){if(i=s.tag,i===13){if(i=jf(s),i!==null){n.blockedOn=i,Mf(n.priority,function(){Df(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Tl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Ma(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Qt=c,s.target.dispatchEvent(c),Qt=null}else return i=bo(s),i!==null&&za(i),n.blockedOn=s,!1;i.shift()}return!0}function Uf(n,i,s){Tl(n)&&s.delete(i)}function d1(){Da=!1,tr!==null&&Tl(tr)&&(tr=null),nr!==null&&Tl(nr)&&(nr=null),rr!==null&&Tl(rr)&&(rr=null),lo.forEach(Uf),so.forEach(Uf)}function uo(n,i){n.blockedOn===i&&(n.blockedOn=null,Da||(Da=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,d1)))}function co(n){function i(h){return uo(h,n)}if(0<jl.length){uo(jl[0],n);for(var s=1;s<jl.length;s++){var c=jl[s];c.blockedOn===n&&(c.blockedOn=null)}}for(tr!==null&&uo(tr,n),nr!==null&&uo(nr,n),rr!==null&&uo(rr,n),lo.forEach(i),so.forEach(i),s=0;s<ir.length;s++)c=ir[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<ir.length&&(s=ir[0],s.blockedOn===null);)Bf(s),s.blockedOn===null&&ir.shift()}var ri=M.ReactCurrentBatchConfig,Rl=!0;function f1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=1,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function p1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=4,Oa(n,i,s,c)}finally{Be=h,ri.transition=x}}function Oa(n,i,s,c){if(Rl){var h=Ma(n,i,s,c);if(h===null)nu(n,i,c,Nl,s),Ff(n,c);else if(c1(h,n,i,s,c))c.stopPropagation();else if(Ff(n,c),i&4&&-1<u1.indexOf(n)){for(;h!==null;){var x=bo(h);if(x!==null&&zf(x),x=Ma(n,i,s,c),x===null&&nu(n,i,c,Nl,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else nu(n,i,c,null,s)}}var Nl=null;function Ma(n,i,s,c){if(Nl=null,n=Ta(c),n=Ar(n),n!==null)if(i=Pr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=jf(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Nl=n,null}function Vf(n){switch(n){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(e1()){case Aa:return 1;case Af:return 4;case kl:case t1:return 16;case Lf:return 536870912;default:return 16}default:return 16}}var or=null,Fa=null,Il=null;function Hf(){if(Il)return Il;var n,i=Fa,s=i.length,c,h="value"in or?or.value:or.textContent,x=h.length;for(n=0;n<s&&i[n]===h[n];n++);var k=s-n;for(c=1;c<=k&&i[s-c]===h[x-c];c++);return Il=h.slice(n,1<c?1-c:void 0)}function Pl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Al(){return!0}function qf(){return!1}function Yt(n){function i(s,c,h,x,k){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(s=n[T],this[T]=s?s(x):x[T]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Al:qf,this.isPropagationStopped=qf,this}return E(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Al)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),i}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ba=Yt(ii),fo=E({},ii,{view:0,detail:0}),h1=Yt(fo),Ua,Va,po,Ll=E({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qa,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==po&&(po&&n.type==="mousemove"?(Ua=n.screenX-po.screenX,Va=n.screenY-po.screenY):Va=Ua=0,po=n),Ua)},movementY:function(n){return"movementY"in n?n.movementY:Va}}),Wf=Yt(Ll),m1=E({},Ll,{dataTransfer:0}),g1=Yt(m1),y1=E({},fo,{relatedTarget:0}),Ha=Yt(y1),x1=E({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),v1=Yt(x1),w1=E({},ii,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),k1=Yt(w1),S1=E({},ii,{data:0}),Gf=Yt(S1),b1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C1={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"},E1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=E1[n])?!!i[n]:!1}function qa(){return j1}var T1=E({},fo,{key:function(n){if(n.key){var i=b1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Pl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?C1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qa,charCode:function(n){return n.type==="keypress"?Pl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Pl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),R1=Yt(T1),N1=E({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jf=Yt(N1),I1=E({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qa}),P1=Yt(I1),A1=E({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),L1=Yt(A1),$1=E({},Ll,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),_1=Yt($1),z1=[9,13,27,32],Wa=d&&"CompositionEvent"in window,ho=null;d&&"documentMode"in document&&(ho=document.documentMode);var D1=d&&"TextEvent"in window&&!ho,Kf=d&&(!Wa||ho&&8<ho&&11>=ho),Qf=" ",Yf=!1;function Xf(n,i){switch(n){case"keyup":return z1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var oi=!1;function O1(n,i){switch(n){case"compositionend":return Zf(i);case"keypress":return i.which!==32?null:(Yf=!0,Qf);case"textInput":return n=i.data,n===Qf&&Yf?null:n;default:return null}}function M1(n,i){if(oi)return n==="compositionend"||!Wa&&Xf(n,i)?(n=Hf(),Il=Fa=or=null,oi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Kf&&i.locale!=="ko"?null:i.data;default:return null}}var F1={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 ep(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!F1[n.type]:i==="textarea"}function tp(n,i,s,c){kf(c),i=Ol(i,"onChange"),0<i.length&&(s=new Ba("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var mo=null,go=null;function B1(n){vp(n,0)}function $l(n){var i=ci(n);if(Ie(i))return n}function U1(n,i){if(n==="change")return i}var np=!1;if(d){var Ga;if(d){var Ja="oninput"in document;if(!Ja){var rp=document.createElement("div");rp.setAttribute("oninput","return;"),Ja=typeof rp.oninput=="function"}Ga=Ja}else Ga=!1;np=Ga&&(!document.documentMode||9<document.documentMode)}function ip(){mo&&(mo.detachEvent("onpropertychange",op),go=mo=null)}function op(n){if(n.propertyName==="value"&&$l(go)){var i=[];tp(i,go,n,Ta(n)),Ef(B1,i)}}function V1(n,i,s){n==="focusin"?(ip(),mo=i,go=s,mo.attachEvent("onpropertychange",op)):n==="focusout"&&ip()}function H1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(go)}function q1(n,i){if(n==="click")return $l(i)}function W1(n,i){if(n==="input"||n==="change")return $l(i)}function G1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var kn=typeof Object.is=="function"?Object.is:G1;function yo(n,i){if(kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!f.call(i,h)||!kn(n[h],i[h]))return!1}return!0}function lp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function sp(n,i){var s=lp(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=lp(s)}}function ap(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?ap(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function up(){for(var n=window,i=$t();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=$t(n.document)}return i}function Ka(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function J1(n){var i=up(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&ap(s.ownerDocument.documentElement,s)){if(c!==null&&Ka(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var h=s.textContent.length,x=Math.min(c.start,h);c=c.end===void 0?x:Math.min(c.end,h),!n.extend&&x>c&&(h=c,c=x,x=h),h=sp(s,x);var k=sp(s,c);h&&k&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),n.removeAllRanges(),x>c?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)n=i[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var K1=d&&"documentMode"in document&&11>=document.documentMode,li=null,Qa=null,xo=null,Ya=!1;function cp(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ya||li==null||li!==$t(c)||(c=li,"selectionStart"in c&&Ka(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),xo&&yo(xo,c)||(xo=c,c=Ol(Qa,"onSelect"),0<c.length&&(i=new Ba("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=li)))}function _l(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var si={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionend:_l("Transition","TransitionEnd")},Xa={},dp={};d&&(dp=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function zl(n){if(Xa[n])return Xa[n];if(!si[n])return n;var i=si[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in dp)return Xa[n]=i[s];return n}var fp=zl("animationend"),pp=zl("animationiteration"),hp=zl("animationstart"),mp=zl("transitionend"),gp=new Map,yp="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 lr(n,i){gp.set(n,i),a(i,[n])}for(var Za=0;Za<yp.length;Za++){var eu=yp[Za],Q1=eu.toLowerCase(),Y1=eu[0].toUpperCase()+eu.slice(1);lr(Q1,"on"+Y1)}lr(fp,"onAnimationEnd"),lr(pp,"onAnimationIteration"),lr(hp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(mp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),X1=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function xp(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,Q0(c,i,void 0,n),n.currentTarget=null}function vp(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],h=c.event;c=c.listeners;e:{var x=void 0;if(i)for(var k=c.length-1;0<=k;k--){var T=c[k],$=T.instance,U=T.currentTarget;if(T=T.listener,$!==x&&h.isPropagationStopped())break e;xp(h,T,U),x=$}else for(k=0;k<c.length;k++){if(T=c[k],$=T.instance,U=T.currentTarget,T=T.listener,$!==x&&h.isPropagationStopped())break e;xp(h,T,U),x=$}}}if(wl)throw n=Pa,wl=!1,Pa=null,n}function Je(n,i){var s=i[au];s===void 0&&(s=i[au]=new Set);var c=n+"__bubble";s.has(c)||(wp(i,n,2,!1),s.add(c))}function tu(n,i,s){var c=0;i&&(c|=4),wp(s,n,c,i)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function wo(n){if(!n[Dl]){n[Dl]=!0,o.forEach(function(s){s!=="selectionchange"&&(X1.has(s)||tu(s,!1,n),tu(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Dl]||(i[Dl]=!0,tu("selectionchange",!1,i))}}function wp(n,i,s,c){switch(Vf(i)){case 1:var h=f1;break;case 4:h=p1;break;default:h=Oa}s=h.bind(null,i,s,n),h=void 0,!Ia||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,s,{capture:!0,passive:h}):n.addEventListener(i,s,!0):h!==void 0?n.addEventListener(i,s,{passive:h}):n.addEventListener(i,s,!1)}function nu(n,i,s,c,h){var x=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var T=c.stateNode.containerInfo;if(T===h||T.nodeType===8&&T.parentNode===h)break;if(k===4)for(k=c.return;k!==null;){var $=k.tag;if(($===3||$===4)&&($=k.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;k=k.return}for(;T!==null;){if(k=Ar(T),k===null)return;if($=k.tag,$===5||$===6){c=x=k;continue e}T=T.parentNode}}c=c.return}Ef(function(){var U=x,Y=Ta(s),Z=[];e:{var Q=gp.get(n);if(Q!==void 0){var de=Ba,pe=n;switch(n){case"keypress":if(Pl(s)===0)break e;case"keydown":case"keyup":de=R1;break;case"focusin":pe="focus",de=Ha;break;case"focusout":pe="blur",de=Ha;break;case"beforeblur":case"afterblur":de=Ha;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=Wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=g1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=P1;break;case fp:case pp:case hp:de=v1;break;case mp:de=L1;break;case"scroll":de=h1;break;case"wheel":de=_1;break;case"copy":case"cut":case"paste":de=k1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Jf}var he=(i&4)!==0,lt=!he&&n==="scroll",O=he?Q!==null?Q+"Capture":null:Q;he=[];for(var _=U,F;_!==null;){F=_;var te=F.stateNode;if(F.tag===5&&te!==null&&(F=te,O!==null&&(te=to(_,O),te!=null&&he.push(ko(_,te,F)))),lt)break;_=_.return}0<he.length&&(Q=new de(Q,pe,null,s,Y),Z.push({event:Q,listeners:he}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",Q&&s!==Qt&&(pe=s.relatedTarget||s.fromElement)&&(Ar(pe)||pe[Hn]))break e;if((de||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,de?(pe=s.relatedTarget||s.toElement,de=U,pe=pe?Ar(pe):null,pe!==null&&(lt=Pr(pe),pe!==lt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(de=null,pe=U),de!==pe)){if(he=Wf,te="onMouseLeave",O="onMouseEnter",_="mouse",(n==="pointerout"||n==="pointerover")&&(he=Jf,te="onPointerLeave",O="onPointerEnter",_="pointer"),lt=de==null?Q:ci(de),F=pe==null?Q:ci(pe),Q=new he(te,_+"leave",de,s,Y),Q.target=lt,Q.relatedTarget=F,te=null,Ar(Y)===U&&(he=new he(O,_+"enter",pe,s,Y),he.target=F,he.relatedTarget=lt,te=he),lt=te,de&&pe)t:{for(he=de,O=pe,_=0,F=he;F;F=ai(F))_++;for(F=0,te=O;te;te=ai(te))F++;for(;0<_-F;)he=ai(he),_--;for(;0<F-_;)O=ai(O),F--;for(;_--;){if(he===O||O!==null&&he===O.alternate)break t;he=ai(he),O=ai(O)}he=null}else he=null;de!==null&&kp(Z,Q,de,he,!1),pe!==null&<!==null&&kp(Z,lt,pe,he,!0)}}e:{if(Q=U?ci(U):window,de=Q.nodeName&&Q.nodeName.toLowerCase(),de==="select"||de==="input"&&Q.type==="file")var ge=U1;else if(ep(Q))if(np)ge=W1;else{ge=H1;var xe=V1}else(de=Q.nodeName)&&de.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=q1);if(ge&&(ge=ge(n,U))){tp(Z,ge,s,Y);break e}xe&&xe(n,Q,U),n==="focusout"&&(xe=Q._wrapperState)&&xe.controlled&&Q.type==="number"&&xt(Q,"number",Q.value)}switch(xe=U?ci(U):window,n){case"focusin":(ep(xe)||xe.contentEditable==="true")&&(li=xe,Qa=U,xo=null);break;case"focusout":xo=Qa=li=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,cp(Z,s,Y);break;case"selectionchange":if(K1)break;case"keydown":case"keyup":cp(Z,s,Y)}var ve;if(Wa)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else oi?Xf(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Kf&&s.locale!=="ko"&&(oi||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&oi&&(ve=Hf()):(or=Y,Fa="value"in or?or.value:or.textContent,oi=!0)),xe=Ol(U,Ce),0<xe.length&&(Ce=new Gf(Ce,n,null,s,Y),Z.push({event:Ce,listeners:xe}),ve?Ce.data=ve:(ve=Zf(s),ve!==null&&(Ce.data=ve)))),(ve=D1?O1(n,s):M1(n,s))&&(U=Ol(U,"onBeforeInput"),0<U.length&&(Y=new Gf("onBeforeInput","beforeinput",null,s,Y),Z.push({event:Y,listeners:U}),Y.data=ve))}vp(Z,i)})}function ko(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Ol(n,i){for(var s=i+"Capture",c=[];n!==null;){var h=n,x=h.stateNode;h.tag===5&&x!==null&&(h=x,x=to(n,s),x!=null&&c.unshift(ko(n,x,h)),x=to(n,i),x!=null&&c.push(ko(n,x,h))),n=n.return}return c}function ai(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function kp(n,i,s,c,h){for(var x=i._reactName,k=[];s!==null&&s!==c;){var T=s,$=T.alternate,U=T.stateNode;if($!==null&&$===c)break;T.tag===5&&U!==null&&(T=U,h?($=to(s,x),$!=null&&k.unshift(ko(s,$,T))):h||($=to(s,x),$!=null&&k.push(ko(s,$,T)))),s=s.return}k.length!==0&&n.push({event:i,listeners:k})}var Z1=/\r\n?/g,ew=/\u0000|\uFFFD/g;function Sp(n){return(typeof n=="string"?n:""+n).replace(Z1,`
|
|
30
|
-
`).replace(ew,"")}function Ml(n,i,s){if(i=Sp(i),Sp(n)!==i&&s)throw Error(r(425))}function Fl(){}var ru=null,iu=null;function ou(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var lu=typeof setTimeout=="function"?setTimeout:void 0,tw=typeof clearTimeout=="function"?clearTimeout:void 0,bp=typeof Promise=="function"?Promise:void 0,nw=typeof queueMicrotask=="function"?queueMicrotask:typeof bp<"u"?function(n){return bp.resolve(null).then(n).catch(rw)}:lu;function rw(n){setTimeout(function(){throw n})}function su(n,i){var s=i,c=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){n.removeChild(h),co(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);co(i)}function sr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function Cp(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var ui=Math.random().toString(36).slice(2),$n="__reactFiber$"+ui,So="__reactProps$"+ui,Hn="__reactContainer$"+ui,au="__reactEvents$"+ui,iw="__reactListeners$"+ui,ow="__reactHandles$"+ui;function Ar(n){var i=n[$n];if(i)return i;for(var s=n.parentNode;s;){if(i=s[Hn]||s[$n]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=Cp(n);n!==null;){if(s=n[$n])return s;n=Cp(n)}return i}n=s,s=n.parentNode}return null}function bo(n){return n=n[$n]||n[Hn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ci(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Bl(n){return n[So]||null}var uu=[],di=-1;function ar(n){return{current:n}}function Ke(n){0>di||(n.current=uu[di],uu[di]=null,di--)}function qe(n,i){di++,uu[di]=n.current,n.current=i}var ur={},jt=ar(ur),Ft=ar(!1),Lr=ur;function fi(n,i){var s=n.type.contextTypes;if(!s)return ur;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},x;for(x in s)h[x]=i[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=h),h}function Bt(n){return n=n.childContextTypes,n!=null}function Ul(){Ke(Ft),Ke(jt)}function Ep(n,i,s){if(jt.current!==ur)throw Error(r(168));qe(jt,i),qe(Ft,s)}function jp(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,Ee(n)||"Unknown",h));return E({},s,c)}function Vl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,qe(jt,n),qe(Ft,Ft.current),!0}function Tp(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=jp(n,i,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Ft),Ke(jt),qe(jt,n)):Ke(Ft),qe(Ft,s)}var qn=null,Hl=!1,cu=!1;function Rp(n){qn===null?qn=[n]:qn.push(n)}function lw(n){Hl=!0,Rp(n)}function cr(){if(!cu&&qn!==null){cu=!0;var n=0,i=Be;try{var s=qn;for(Be=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}qn=null,Hl=!1}catch(h){throw qn!==null&&(qn=qn.slice(n+1)),If(Aa,cr),h}finally{Be=i,cu=!1}}return null}var pi=[],hi=0,ql=null,Wl=0,dn=[],fn=0,$r=null,Wn=1,Gn="";function _r(n,i){pi[hi++]=Wl,pi[hi++]=ql,ql=n,Wl=i}function Np(n,i,s){dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,$r=n;var c=Wn;n=Gn;var h=32-wn(c)-1;c&=~(1<<h),s+=1;var x=32-wn(i)+h;if(30<x){var k=h-h%5;x=(c&(1<<k)-1).toString(32),c>>=k,h-=k,Wn=1<<32-wn(i)+h|s<<h|c,Gn=x+n}else Wn=1<<x|s<<h|c,Gn=n}function du(n){n.return!==null&&(_r(n,1),Np(n,1,0))}function fu(n){for(;n===ql;)ql=pi[--hi],pi[hi]=null,Wl=pi[--hi],pi[hi]=null;for(;n===$r;)$r=dn[--fn],dn[fn]=null,Gn=dn[--fn],dn[fn]=null,Wn=dn[--fn],dn[fn]=null}var Xt=null,Zt=null,Xe=!1,Sn=null;function Ip(n,i){var s=gn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function Pp(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=sr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Xt=n,Zt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=$r!==null?{id:Wn,overflow:Gn}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=gn(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Xt=n,Zt=null,!0):!1;default:return!1}}function pu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function hu(n){if(Xe){var i=Zt;if(i){var s=i;if(!Pp(n,i)){if(pu(n))throw Error(r(418));i=sr(s.nextSibling);var c=Xt;i&&Pp(n,i)?Ip(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Xt=n)}}else{if(pu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Xt=n}}}function Ap(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Xt=n}function Gl(n){if(n!==Xt)return!1;if(!Xe)return Ap(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!ou(n.type,n.memoizedProps)),i&&(i=Zt)){if(pu(n))throw Lp(),Error(r(418));for(;i;)Ip(n,i),i=sr(i.nextSibling)}if(Ap(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(i===0){Zt=sr(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}n=n.nextSibling}Zt=null}}else Zt=Xt?sr(n.stateNode.nextSibling):null;return!0}function Lp(){for(var n=Zt;n;)n=sr(n.nextSibling)}function mi(){Zt=Xt=null,Xe=!1}function mu(n){Sn===null?Sn=[n]:Sn.push(n)}var sw=M.ReactCurrentBatchConfig;function Co(n,i,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var h=c,x=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(k){var T=h.refs;k===null?delete T[x]:T[x]=k},i._stringRef=x,i)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function Jl(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function $p(n){var i=n._init;return i(n._payload)}function _p(n){function i(O,_){if(n){var F=O.deletions;F===null?(O.deletions=[_],O.flags|=16):F.push(_)}}function s(O,_){if(!n)return null;for(;_!==null;)i(O,_),_=_.sibling;return null}function c(O,_){for(O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function h(O,_){return O=xr(O,_),O.index=0,O.sibling=null,O}function x(O,_,F){return O.index=F,n?(F=O.alternate,F!==null?(F=F.index,F<_?(O.flags|=2,_):F):(O.flags|=2,_)):(O.flags|=1048576,_)}function k(O){return n&&O.alternate===null&&(O.flags|=2),O}function T(O,_,F,te){return _===null||_.tag!==6?(_=lc(F,O.mode,te),_.return=O,_):(_=h(_,F),_.return=O,_)}function $(O,_,F,te){var ge=F.type;return ge===q?Y(O,_,F.props.children,te,F.key):_!==null&&(_.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&$p(ge)===_.type)?(te=h(_,F.props),te.ref=Co(O,_,F),te.return=O,te):(te=xs(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,te)}function U(O,_,F,te){return _===null||_.tag!==4||_.stateNode.containerInfo!==F.containerInfo||_.stateNode.implementation!==F.implementation?(_=sc(F,O.mode,te),_.return=O,_):(_=h(_,F.children||[]),_.return=O,_)}function Y(O,_,F,te,ge){return _===null||_.tag!==7?(_=Vr(F,O.mode,te,ge),_.return=O,_):(_=h(_,F),_.return=O,_)}function Z(O,_,F){if(typeof _=="string"&&_!==""||typeof _=="number")return _=lc(""+_,O.mode,F),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case H:return F=xs(_.type,_.key,_.props,null,O.mode,F),F.ref=Co(O,null,_),F.return=O,F;case A:return _=sc(_,O.mode,F),_.return=O,_;case ae:var te=_._init;return Z(O,te(_._payload),F)}if(Ye(_)||ce(_))return _=Vr(_,O.mode,F,null),_.return=O,_;Jl(O,_)}return null}function Q(O,_,F,te){var ge=_!==null?_.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ge!==null?null:T(O,_,""+F,te);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case H:return F.key===ge?$(O,_,F,te):null;case A:return F.key===ge?U(O,_,F,te):null;case ae:return ge=F._init,Q(O,_,ge(F._payload),te)}if(Ye(F)||ce(F))return ge!==null?null:Y(O,_,F,te,null);Jl(O,F)}return null}function de(O,_,F,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return O=O.get(F)||null,T(_,O,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case H:return O=O.get(te.key===null?F:te.key)||null,$(_,O,te,ge);case A:return O=O.get(te.key===null?F:te.key)||null,U(_,O,te,ge);case ae:var xe=te._init;return de(O,_,F,xe(te._payload),ge)}if(Ye(te)||ce(te))return O=O.get(F)||null,Y(_,O,te,ge,null);Jl(_,te)}return null}function pe(O,_,F,te){for(var ge=null,xe=null,ve=_,Ce=_=0,mt=null;ve!==null&&Ce<F.length;Ce++){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var Me=Q(O,ve,F[Ce],te);if(Me===null){ve===null&&(ve=mt);break}n&&ve&&Me.alternate===null&&i(O,ve),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me,ve=mt}if(Ce===F.length)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;Ce<F.length;Ce++)ve=Z(O,F[Ce],te),ve!==null&&(_=x(ve,_,Ce),xe===null?ge=ve:xe.sibling=ve,xe=ve);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);Ce<F.length;Ce++)mt=de(ve,O,Ce,F[Ce],te),mt!==null&&(n&&mt.alternate!==null&&ve.delete(mt.key===null?Ce:mt.key),_=x(mt,_,Ce),xe===null?ge=mt:xe.sibling=mt,xe=mt);return n&&ve.forEach(function(vr){return i(O,vr)}),Xe&&_r(O,Ce),ge}function he(O,_,F,te){var ge=ce(F);if(typeof ge!="function")throw Error(r(150));if(F=ge.call(F),F==null)throw Error(r(151));for(var xe=ge=null,ve=_,Ce=_=0,mt=null,Me=F.next();ve!==null&&!Me.done;Ce++,Me=F.next()){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var vr=Q(O,ve,Me.value,te);if(vr===null){ve===null&&(ve=mt);break}n&&ve&&vr.alternate===null&&i(O,ve),_=x(vr,_,Ce),xe===null?ge=vr:xe.sibling=vr,xe=vr,ve=mt}if(Me.done)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;!Me.done;Ce++,Me=F.next())Me=Z(O,Me.value,te),Me!==null&&(_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);!Me.done;Ce++,Me=F.next())Me=de(ve,O,Ce,Me.value,te),Me!==null&&(n&&Me.alternate!==null&&ve.delete(Me.key===null?Ce:Me.key),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return n&&ve.forEach(function(Fw){return i(O,Fw)}),Xe&&_r(O,Ce),ge}function lt(O,_,F,te){if(typeof F=="object"&&F!==null&&F.type===q&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case H:e:{for(var ge=F.key,xe=_;xe!==null;){if(xe.key===ge){if(ge=F.type,ge===q){if(xe.tag===7){s(O,xe.sibling),_=h(xe,F.props.children),_.return=O,O=_;break e}}else if(xe.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&$p(ge)===xe.type){s(O,xe.sibling),_=h(xe,F.props),_.ref=Co(O,xe,F),_.return=O,O=_;break e}s(O,xe);break}else i(O,xe);xe=xe.sibling}F.type===q?(_=Vr(F.props.children,O.mode,te,F.key),_.return=O,O=_):(te=xs(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,O=te)}return k(O);case A:e:{for(xe=F.key;_!==null;){if(_.key===xe)if(_.tag===4&&_.stateNode.containerInfo===F.containerInfo&&_.stateNode.implementation===F.implementation){s(O,_.sibling),_=h(_,F.children||[]),_.return=O,O=_;break e}else{s(O,_);break}else i(O,_);_=_.sibling}_=sc(F,O.mode,te),_.return=O,O=_}return k(O);case ae:return xe=F._init,lt(O,_,xe(F._payload),te)}if(Ye(F))return pe(O,_,F,te);if(ce(F))return he(O,_,F,te);Jl(O,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,_!==null&&_.tag===6?(s(O,_.sibling),_=h(_,F),_.return=O,O=_):(s(O,_),_=lc(F,O.mode,te),_.return=O,O=_),k(O)):s(O,_)}return lt}var gi=_p(!0),zp=_p(!1),Kl=ar(null),Ql=null,yi=null,gu=null;function yu(){gu=yi=Ql=null}function xu(n){var i=Kl.current;Ke(Kl),n._currentValue=i}function vu(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function xi(n,i){Ql=n,gu=yi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Ut=!0),n.firstContext=null)}function pn(n){var i=n._currentValue;if(gu!==n)if(n={context:n,memoizedValue:i,next:null},yi===null){if(Ql===null)throw Error(r(308));yi=n,Ql.dependencies={lanes:0,firstContext:n}}else yi=yi.next=n;return i}var zr=null;function wu(n){zr===null?zr=[n]:zr.push(n)}function Dp(n,i,s,c){var h=i.interleaved;return h===null?(s.next=s,wu(i)):(s.next=h.next,h.next=s),i.interleaved=s,Jn(n,c)}function Jn(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var dr=!1;function ku(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Op(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Kn(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function fr(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,Jn(n,s)}return h=c.interleaved,h===null?(i.next=i,wu(c)):(i.next=h.next,h.next=i),c.interleaved=i,Jn(n,s)}function Yl(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}function Mp(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var k={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};x===null?h=x=k:x=x.next=k,s=s.next}while(s!==null);x===null?h=x=i:x=x.next=i}else h=x=i;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function Xl(n,i,s,c){var h=n.updateQueue;dr=!1;var x=h.firstBaseUpdate,k=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var $=T,U=$.next;$.next=null,k===null?x=U:k.next=U,k=$;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==k&&(T===null?Y.firstBaseUpdate=U:T.next=U,Y.lastBaseUpdate=$))}if(x!==null){var Z=h.baseState;k=0,Y=U=$=null,T=x;do{var Q=T.lane,de=T.eventTime;if((c&Q)===Q){Y!==null&&(Y=Y.next={eventTime:de,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var pe=n,he=T;switch(Q=i,de=s,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){Z=pe.call(de,Z,Q);break e}Z=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,Q=typeof pe=="function"?pe.call(de,Z,Q):pe,Q==null)break e;Z=E({},Z,Q);break e;case 2:dr=!0}}T.callback!==null&&T.lane!==0&&(n.flags|=64,Q=h.effects,Q===null?h.effects=[T]:Q.push(T))}else de={eventTime:de,lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(U=Y=de,$=Z):Y=Y.next=de,k|=Q;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;Q=T,T=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);if(Y===null&&($=Z),h.baseState=$,h.firstBaseUpdate=U,h.lastBaseUpdate=Y,i=h.shared.interleaved,i!==null){h=i;do k|=h.lane,h=h.next;while(h!==i)}else x===null&&(h.shared.lanes=0);Mr|=k,n.lanes=k,n.memoizedState=Z}}function Fp(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Eo={},_n=ar(Eo),jo=ar(Eo),To=ar(Eo);function Dr(n){if(n===Eo)throw Error(r(174));return n}function Su(n,i){switch(qe(To,i),qe(jo,n),qe(_n,Eo),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ie(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ie(i,n)}Ke(_n),qe(_n,i)}function vi(){Ke(_n),Ke(jo),Ke(To)}function Bp(n){Dr(To.current);var i=Dr(_n.current),s=ie(i,n.type);i!==s&&(qe(jo,n),qe(_n,s))}function bu(n){jo.current===n&&(Ke(_n),Ke(jo))}var et=ar(0);function Zl(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Cu=[];function Eu(){for(var n=0;n<Cu.length;n++)Cu[n]._workInProgressVersionPrimary=null;Cu.length=0}var es=M.ReactCurrentDispatcher,ju=M.ReactCurrentBatchConfig,Or=0,tt=null,dt=null,pt=null,ts=!1,Ro=!1,No=0,aw=0;function Tt(){throw Error(r(321))}function Tu(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!kn(n[s],i[s]))return!1;return!0}function Ru(n,i,s,c,h,x){if(Or=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,es.current=n===null||n.memoizedState===null?fw:pw,n=s(c,h),Ro){x=0;do{if(Ro=!1,No=0,25<=x)throw Error(r(301));x+=1,pt=dt=null,i.updateQueue=null,es.current=hw,n=s(c,h)}while(Ro)}if(es.current=is,i=dt!==null&&dt.next!==null,Or=0,pt=dt=tt=null,ts=!1,i)throw Error(r(300));return n}function Nu(){var n=No!==0;return No=0,n}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=n:pt=pt.next=n,pt}function hn(){if(dt===null){var n=tt.alternate;n=n!==null?n.memoizedState:null}else n=dt.next;var i=pt===null?tt.memoizedState:pt.next;if(i!==null)pt=i,dt=n;else{if(n===null)throw Error(r(310));dt=n,n={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},pt===null?tt.memoizedState=pt=n:pt=pt.next=n}return pt}function Io(n,i){return typeof i=="function"?i(n):i}function Iu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=dt,h=c.baseQueue,x=s.pending;if(x!==null){if(h!==null){var k=h.next;h.next=x.next,x.next=k}c.baseQueue=h=x,s.pending=null}if(h!==null){x=h.next,c=c.baseState;var T=k=null,$=null,U=x;do{var Y=U.lane;if((Or&Y)===Y)$!==null&&($=$.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:n(c,U.action);else{var Z={lane:Y,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};$===null?(T=$=Z,k=c):$=$.next=Z,tt.lanes|=Y,Mr|=Y}U=U.next}while(U!==null&&U!==x);$===null?k=c:$.next=T,kn(c,i.memoizedState)||(Ut=!0),i.memoizedState=c,i.baseState=k,i.baseQueue=$,s.lastRenderedState=c}if(n=s.interleaved,n!==null){h=n;do x=h.lane,tt.lanes|=x,Mr|=x,h=h.next;while(h!==n)}else h===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Pu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,h=s.pending,x=i.memoizedState;if(h!==null){s.pending=null;var k=h=h.next;do x=n(x,k.action),k=k.next;while(k!==h);kn(x,i.memoizedState)||(Ut=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),s.lastRenderedState=x}return[x,c]}function Up(){}function Vp(n,i){var s=tt,c=hn(),h=i(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,Au(Wp.bind(null,s,c,n),[n]),c.getSnapshot!==i||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Po(9,qp.bind(null,s,c,h,i),void 0,null),ht===null)throw Error(r(349));(Or&30)!==0||Hp(s,i,h)}return h}function Hp(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function qp(n,i,s,c){i.value=s,i.getSnapshot=c,Gp(i)&&Jp(n)}function Wp(n,i,s){return s(function(){Gp(i)&&Jp(n)})}function Gp(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!kn(n,s)}catch{return!0}}function Jp(n){var i=Jn(n,1);i!==null&&jn(i,n,1,-1)}function Kp(n){var i=zn();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},i.queue=n,n=n.dispatch=dw.bind(null,tt,n),[i.memoizedState,n]}function Po(n,i,s,c){return n={tag:n,create:i,destroy:s,deps:c,next:null},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.lastEffect=n.next=n):(s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n)),n}function Qp(){return hn().memoizedState}function ns(n,i,s,c){var h=zn();tt.flags|=n,h.memoizedState=Po(1|i,s,void 0,c===void 0?null:c)}function rs(n,i,s,c){var h=hn();c=c===void 0?null:c;var x=void 0;if(dt!==null){var k=dt.memoizedState;if(x=k.destroy,c!==null&&Tu(c,k.deps)){h.memoizedState=Po(i,s,x,c);return}}tt.flags|=n,h.memoizedState=Po(1|i,s,x,c)}function Yp(n,i){return ns(8390656,8,n,i)}function Au(n,i){return rs(2048,8,n,i)}function Xp(n,i){return rs(4,2,n,i)}function Zp(n,i){return rs(4,4,n,i)}function eh(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function th(n,i,s){return s=s!=null?s.concat([n]):null,rs(4,4,eh.bind(null,i,n),s)}function Lu(){}function nh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function rh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Tu(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function ih(n,i,s){return(Or&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,i)||(s=$f(),tt.lanes|=s,Mr|=s,n.baseState=!0),i)}function uw(n,i){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=ju.transition;ju.transition={};try{n(!1),i()}finally{Be=s,ju.transition=c}}function oh(){return hn().memoizedState}function cw(n,i,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},lh(n))sh(i,s);else if(s=Dp(n,i,s,c),s!==null){var h=Dt();jn(s,n,c,h),ah(s,i,c)}}function dw(n,i,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(lh(n))sh(i,h);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var k=i.lastRenderedState,T=x(k,s);if(h.hasEagerState=!0,h.eagerState=T,kn(T,k)){var $=i.interleaved;$===null?(h.next=h,wu(i)):(h.next=$.next,$.next=h),i.interleaved=h;return}}catch{}finally{}s=Dp(n,i,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),ah(s,i,c))}}function lh(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function sh(n,i){Ro=ts=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function ah(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,_a(n,s)}}var is={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},fw={readContext:pn,useCallback:function(n,i){return zn().memoizedState=[n,i===void 0?null:i],n},useContext:pn,useEffect:Yp,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,ns(4194308,4,eh.bind(null,i,n),s)},useLayoutEffect:function(n,i){return ns(4194308,4,n,i)},useInsertionEffect:function(n,i){return ns(4,2,n,i)},useMemo:function(n,i){var s=zn();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=zn();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=cw.bind(null,tt,n),[c.memoizedState,n]},useRef:function(n){var i=zn();return n={current:n},i.memoizedState=n},useState:Kp,useDebugValue:Lu,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=Kp(!1),i=n[0];return n=uw.bind(null,n[1]),zn().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=tt,h=zn();if(Xe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ht===null)throw Error(r(349));(Or&30)!==0||Hp(c,i,s)}h.memoizedState=s;var x={value:s,getSnapshot:i};return h.queue=x,Yp(Wp.bind(null,c,x,n),[n]),c.flags|=2048,Po(9,qp.bind(null,c,x,s,i),void 0,null),s},useId:function(){var n=zn(),i=ht.identifierPrefix;if(Xe){var s=Gn,c=Wn;s=(c&~(1<<32-wn(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=No++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=aw++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},pw={readContext:pn,useCallback:nh,useContext:pn,useEffect:Au,useImperativeHandle:th,useInsertionEffect:Xp,useLayoutEffect:Zp,useMemo:rh,useReducer:Iu,useRef:Qp,useState:function(){return Iu(Io)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return ih(i,dt.memoizedState,n)},useTransition:function(){var n=Iu(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Up,useSyncExternalStore:Vp,useId:oh,unstable_isNewReconciler:!1},hw={readContext:pn,useCallback:nh,useContext:pn,useEffect:Au,useImperativeHandle:th,useInsertionEffect:Xp,useLayoutEffect:Zp,useMemo:rh,useReducer:Pu,useRef:Qp,useState:function(){return Pu(Io)},useDebugValue:Lu,useDeferredValue:function(n){var i=hn();return dt===null?i.memoizedState=n:ih(i,dt.memoizedState,n)},useTransition:function(){var n=Pu(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Up,useSyncExternalStore:Vp,useId:oh,unstable_isNewReconciler:!1};function bn(n,i){if(n&&n.defaultProps){i=E({},i),n=n.defaultProps;for(var s in n)i[s]===void 0&&(i[s]=n[s]);return i}return i}function $u(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:E({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var os={isMounted:function(n){return(n=n._reactInternals)?Pr(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.tag=1,x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Yl(i,n,h))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=Dt(),c=gr(n),h=Kn(s,c);h.tag=2,i!=null&&(h.callback=i),i=fr(n,h,c),i!==null&&(jn(i,n,c,s),Yl(i,n,c))}};function uh(n,i,s,c,h,x,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,k):i.prototype&&i.prototype.isPureReactComponent?!yo(s,c)||!yo(h,x):!0}function ch(n,i,s){var c=!1,h=ur,x=i.contextType;return typeof x=="object"&&x!==null?x=pn(x):(h=Bt(i)?Lr:jt.current,c=i.contextTypes,x=(c=c!=null)?fi(n,h):ur),i=new i(s,x),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=os,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),i}function dh(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&os.enqueueReplaceState(i,i.state,null)}function _u(n,i,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},ku(n);var x=i.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(i)?Lr:jt.current,h.context=fi(n,x)),h.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&($u(n,i,x,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&os.enqueueReplaceState(h,h.state,null),Xl(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function wi(n,i){try{var s="",c=i;do s+=Se(c),c=c.return;while(c);var h=s}catch(x){h=`
|
|
29
|
+
`+h[k].replace(" at new "," at ");return n.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",n.displayName)),$}while(1<=k&&0<=T);break}}}finally{N=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?G(n):""}function Se(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=ye(n.type,!1),n;case 11:return n=ye(n.type.render,!1),n;case 1:return n=ye(n.type,!0),n;default:return""}}function me(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case q:return"Fragment";case A:return"Portal";case le:return"Profiler";case K:return"StrictMode";case oe:return"Suspense";case re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ne:return(n.displayName||"Context")+".Consumer";case D:return(n._context.displayName||"Context")+".Provider";case se:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return i=n.displayName||null,i!==null?i:me(n.type)||"Memo";case ae:i=n._payload,n=n._init;try{return me(n(i))}catch{}}return null}function Ee(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return me(i);case 8:return i===K?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ke(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function je(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ve(n){var i=je(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,x=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(k){c=""+k,x.call(this,k)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(k){c=""+k},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Ct(n){n._valueTracker||(n._valueTracker=Ve(n))}function Ie(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=je(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function $t(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Pn(n,i){var s=i.checked;return E({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function _t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=ke(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function _e(n,i){i=i.checked,i!=null&&L(n,"checked",i,!1)}function st(n,i){_e(n,i);var s=ke(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?xt(n,i.type,s):i.hasOwnProperty("defaultValue")&&xt(n,i.type,ke(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Et(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,i,s){(i!=="number"||$t(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ye=Array.isArray;function it(n,i,s,c){if(n=n.options,i){i={};for(var h=0;h<s.length;h++)i["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=i.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&c&&(n[s].defaultSelected=!0)}else{for(s=""+ke(s),i=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Mt(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return E({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function un(n,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}n._wrapperState={initialValue:ke(s)}}function vl(n,i){var s=ke(i.value),c=ke(i.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),i.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function wl(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function J(n){switch(n){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 ie(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?J(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var be,Pe=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,c,h){MSApp.execUnsafeLocalFunction(function(){return n(i,s,c,h)})}:n}(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(be=be||document.createElement("div"),be.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=be.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function De(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var vt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(n){Vn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),vt[i]=vt[n]})});function cn(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||vt.hasOwnProperty(n)&&vt[n]?(""+i).trim():i+"px"}function er(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=cn(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,h):n[s]=h}}var Ir=E({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 wt(n,i){if(i){if(Ir[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function An(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Yt=null;function Na(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ia=null,ti=null,ni=null;function Sf(n){if(n=bo(n)){if(typeof Ia!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Vl(i),Ia(n.stateNode,n.type,i))}}function bf(n){ti?ni?ni.push(n):ni=[n]:ti=n}function Cf(){if(ti){var n=ti,i=ni;if(ni=ti=null,Sf(n),i)for(n=0;n<i.length;n++)Sf(i[n])}}function Ef(n,i){return n(i)}function jf(){}var Pa=!1;function Tf(n,i,s){if(Pa)return n(i,s);Pa=!0;try{return Ef(n,i,s)}finally{Pa=!1,(ti!==null||ni!==null)&&(jf(),Cf())}}function to(n,i){var s=n.stateNode;if(s===null)return null;var c=Vl(s);if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Aa=!1;if(d)try{var no={};Object.defineProperty(no,"passive",{get:function(){Aa=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Aa=!1}function Q0(n,i,s,c,h,x,k,T,$){var U=Array.prototype.slice.call(arguments,3);try{i.apply(s,U)}catch(Y){this.onError(Y)}}var ro=!1,kl=null,Sl=!1,La=null,Y0={onError:function(n){ro=!0,kl=n}};function X0(n,i,s,c,h,x,k,T,$){ro=!1,kl=null,Q0.apply(Y0,arguments)}function Z0(n,i,s,c,h,x,k,T,$){if(X0.apply(this,arguments),ro){if(ro){var U=kl;ro=!1,kl=null}else throw Error(r(198));Sl||(Sl=!0,La=U)}}function Pr(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function Rf(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Nf(n){if(Pr(n)!==n)throw Error(r(188))}function e1(n){var i=n.alternate;if(!i){if(i=Pr(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,c=i;;){var h=s.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===s)return Nf(h),n;if(x===c)return Nf(h),i;x=x.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=x;else{for(var k=!1,T=h.child;T;){if(T===s){k=!0,s=h,c=x;break}if(T===c){k=!0,c=h,s=x;break}T=T.sibling}if(!k){for(T=x.child;T;){if(T===s){k=!0,s=x,c=h;break}if(T===c){k=!0,c=x,s=h;break}T=T.sibling}if(!k)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function If(n){return n=e1(n),n!==null?Pf(n):null}function Pf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Pf(n);if(i!==null)return i;n=n.sibling}return null}var Af=t.unstable_scheduleCallback,Lf=t.unstable_cancelCallback,t1=t.unstable_shouldYield,n1=t.unstable_requestPaint,ot=t.unstable_now,r1=t.unstable_getCurrentPriorityLevel,$a=t.unstable_ImmediatePriority,$f=t.unstable_UserBlockingPriority,bl=t.unstable_NormalPriority,i1=t.unstable_LowPriority,_f=t.unstable_IdlePriority,Cl=null,Ln=null;function o1(n){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Cl,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:a1,l1=Math.log,s1=Math.LN2;function a1(n){return n>>>=0,n===0?32:31-(l1(n)/s1|0)|0}var El=64,jl=4194304;function io(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Tl(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,h=n.suspendedLanes,x=n.pingedLanes,k=s&268435455;if(k!==0){var T=k&~h;T!==0?c=io(T):(x&=k,x!==0&&(c=io(x)))}else k=s&~h,k!==0?c=io(k):x!==0&&(c=io(x));if(c===0)return 0;if(i!==0&&i!==c&&(i&h)===0&&(h=c&-c,x=i&-i,h>=x||h===16&&(x&4194240)!==0))return i;if((c&4)!==0&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0<i;)s=31-wn(i),h=1<<s,c|=n[s],i&=~h;return c}function u1(n,i){switch(n){case 1:case 2:case 4:return i+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 i+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 c1(n,i){for(var s=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-wn(x),T=1<<k,$=h[k];$===-1?((T&s)===0||(T&c)!==0)&&(h[k]=u1(T,i)):$<=i&&(n.expiredLanes|=T),x&=~T}}function _a(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function zf(){var n=El;return El<<=1,(El&4194240)===0&&(El=64),n}function za(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function oo(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-wn(i),n[i]=s}function d1(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var h=31-wn(s),x=1<<h;i[h]=0,c[h]=-1,n[h]=-1,s&=~x}}function Da(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var c=31-wn(s),h=1<<c;h&i|n[c]&i&&(n[c]|=i),s&=~h}}var Be=0;function Df(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Of,Oa,Mf,Ff,Bf,Ma=!1,Rl=[],tr=null,nr=null,rr=null,lo=new Map,so=new Map,ir=[],f1="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 Uf(n,i){switch(n){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":lo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(i.pointerId)}}function ao(n,i,s,c,h,x){return n===null||n.nativeEvent!==x?(n={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},i!==null&&(i=bo(i),i!==null&&Oa(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function p1(n,i,s,c,h){switch(i){case"focusin":return tr=ao(tr,n,i,s,c,h),!0;case"dragenter":return nr=ao(nr,n,i,s,c,h),!0;case"mouseover":return rr=ao(rr,n,i,s,c,h),!0;case"pointerover":var x=h.pointerId;return lo.set(x,ao(lo.get(x)||null,n,i,s,c,h)),!0;case"gotpointercapture":return x=h.pointerId,so.set(x,ao(so.get(x)||null,n,i,s,c,h)),!0}return!1}function Vf(n){var i=Ar(n.target);if(i!==null){var s=Pr(i);if(s!==null){if(i=s.tag,i===13){if(i=Rf(s),i!==null){n.blockedOn=i,Bf(n.priority,function(){Mf(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Nl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Ba(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Yt=c,s.target.dispatchEvent(c),Yt=null}else return i=bo(s),i!==null&&Oa(i),n.blockedOn=s,!1;i.shift()}return!0}function Hf(n,i,s){Nl(n)&&s.delete(i)}function h1(){Ma=!1,tr!==null&&Nl(tr)&&(tr=null),nr!==null&&Nl(nr)&&(nr=null),rr!==null&&Nl(rr)&&(rr=null),lo.forEach(Hf),so.forEach(Hf)}function uo(n,i){n.blockedOn===i&&(n.blockedOn=null,Ma||(Ma=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,h1)))}function co(n){function i(h){return uo(h,n)}if(0<Rl.length){uo(Rl[0],n);for(var s=1;s<Rl.length;s++){var c=Rl[s];c.blockedOn===n&&(c.blockedOn=null)}}for(tr!==null&&uo(tr,n),nr!==null&&uo(nr,n),rr!==null&&uo(rr,n),lo.forEach(i),so.forEach(i),s=0;s<ir.length;s++)c=ir[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<ir.length&&(s=ir[0],s.blockedOn===null);)Vf(s),s.blockedOn===null&&ir.shift()}var ri=M.ReactCurrentBatchConfig,Il=!0;function m1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=1,Fa(n,i,s,c)}finally{Be=h,ri.transition=x}}function g1(n,i,s,c){var h=Be,x=ri.transition;ri.transition=null;try{Be=4,Fa(n,i,s,c)}finally{Be=h,ri.transition=x}}function Fa(n,i,s,c){if(Il){var h=Ba(n,i,s,c);if(h===null)iu(n,i,c,Pl,s),Uf(n,c);else if(p1(h,n,i,s,c))c.stopPropagation();else if(Uf(n,c),i&4&&-1<f1.indexOf(n)){for(;h!==null;){var x=bo(h);if(x!==null&&Of(x),x=Ba(n,i,s,c),x===null&&iu(n,i,c,Pl,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else iu(n,i,c,null,s)}}var Pl=null;function Ba(n,i,s,c){if(Pl=null,n=Na(c),n=Ar(n),n!==null)if(i=Pr(n),i===null)n=null;else if(s=i.tag,s===13){if(n=Rf(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Pl=n,null}function qf(n){switch(n){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(r1()){case $a:return 1;case $f:return 4;case bl:case i1:return 16;case _f:return 536870912;default:return 16}default:return 16}}var or=null,Ua=null,Al=null;function Wf(){if(Al)return Al;var n,i=Ua,s=i.length,c,h="value"in or?or.value:or.textContent,x=h.length;for(n=0;n<s&&i[n]===h[n];n++);var k=s-n;for(c=1;c<=k&&i[s-c]===h[x-c];c++);return Al=h.slice(n,1<c?1-c:void 0)}function Ll(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function $l(){return!0}function Gf(){return!1}function Xt(n){function i(s,c,h,x,k){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(s=n[T],this[T]=s?s(x):x[T]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?$l:Gf,this.isPropagationStopped=Gf,this}return E(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=$l)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=$l)},persist:function(){},isPersistent:$l}),i}var ii={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Va=Xt(ii),fo=E({},ii,{view:0,detail:0}),y1=Xt(fo),Ha,qa,po,_l=E({},fo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ga,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==po&&(po&&n.type==="mousemove"?(Ha=n.screenX-po.screenX,qa=n.screenY-po.screenY):qa=Ha=0,po=n),Ha)},movementY:function(n){return"movementY"in n?n.movementY:qa}}),Jf=Xt(_l),x1=E({},_l,{dataTransfer:0}),v1=Xt(x1),w1=E({},fo,{relatedTarget:0}),Wa=Xt(w1),k1=E({},ii,{animationName:0,elapsedTime:0,pseudoElement:0}),S1=Xt(k1),b1=E({},ii,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),C1=Xt(b1),E1=E({},ii,{data:0}),Kf=Xt(E1),j1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T1={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"},R1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N1(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=R1[n])?!!i[n]:!1}function Ga(){return N1}var I1=E({},fo,{key:function(n){if(n.key){var i=j1[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Ll(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?T1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ga,charCode:function(n){return n.type==="keypress"?Ll(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ll(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),P1=Xt(I1),A1=E({},_l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qf=Xt(A1),L1=E({},fo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ga}),$1=Xt(L1),_1=E({},ii,{propertyName:0,elapsedTime:0,pseudoElement:0}),z1=Xt(_1),D1=E({},_l,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),O1=Xt(D1),M1=[9,13,27,32],Ja=d&&"CompositionEvent"in window,ho=null;d&&"documentMode"in document&&(ho=document.documentMode);var F1=d&&"TextEvent"in window&&!ho,Yf=d&&(!Ja||ho&&8<ho&&11>=ho),Xf=" ",Zf=!1;function ep(n,i){switch(n){case"keyup":return M1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var oi=!1;function B1(n,i){switch(n){case"compositionend":return tp(i);case"keypress":return i.which!==32?null:(Zf=!0,Xf);case"textInput":return n=i.data,n===Xf&&Zf?null:n;default:return null}}function U1(n,i){if(oi)return n==="compositionend"||!Ja&&ep(n,i)?(n=Wf(),Al=Ua=or=null,oi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Yf&&i.locale!=="ko"?null:i.data;default:return null}}var V1={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 np(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!V1[n.type]:i==="textarea"}function rp(n,i,s,c){bf(c),i=Fl(i,"onChange"),0<i.length&&(s=new Va("onChange","change",null,s,c),n.push({event:s,listeners:i}))}var mo=null,go=null;function H1(n){kp(n,0)}function zl(n){var i=ci(n);if(Ie(i))return n}function q1(n,i){if(n==="change")return i}var ip=!1;if(d){var Ka;if(d){var Qa="oninput"in document;if(!Qa){var op=document.createElement("div");op.setAttribute("oninput","return;"),Qa=typeof op.oninput=="function"}Ka=Qa}else Ka=!1;ip=Ka&&(!document.documentMode||9<document.documentMode)}function lp(){mo&&(mo.detachEvent("onpropertychange",sp),go=mo=null)}function sp(n){if(n.propertyName==="value"&&zl(go)){var i=[];rp(i,go,n,Na(n)),Tf(H1,i)}}function W1(n,i,s){n==="focusin"?(lp(),mo=i,go=s,mo.attachEvent("onpropertychange",sp)):n==="focusout"&&lp()}function G1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return zl(go)}function J1(n,i){if(n==="click")return zl(i)}function K1(n,i){if(n==="input"||n==="change")return zl(i)}function Q1(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var kn=typeof Object.is=="function"?Object.is:Q1;function yo(n,i){if(kn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!f.call(i,h)||!kn(n[h],i[h]))return!1}return!0}function ap(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function up(n,i){var s=ap(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=i&&c>=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ap(s)}}function cp(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?cp(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function dp(){for(var n=window,i=$t();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=$t(n.document)}return i}function Ya(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function Y1(n){var i=dp(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&cp(s.ownerDocument.documentElement,s)){if(c!==null&&Ya(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var h=s.textContent.length,x=Math.min(c.start,h);c=c.end===void 0?x:Math.min(c.end,h),!n.extend&&x>c&&(h=c,c=x,x=h),h=up(s,x);var k=up(s,c);h&&k&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(i=i.createRange(),i.setStart(h.node,h.offset),n.removeAllRanges(),x>c?(n.addRange(i),n.extend(k.node,k.offset)):(i.setEnd(k.node,k.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)n=i[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var X1=d&&"documentMode"in document&&11>=document.documentMode,li=null,Xa=null,xo=null,Za=!1;function fp(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Za||li==null||li!==$t(c)||(c=li,"selectionStart"in c&&Ya(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),xo&&yo(xo,c)||(xo=c,c=Fl(Xa,"onSelect"),0<c.length&&(i=new Va("onSelect","select",null,i,s),n.push({event:i,listeners:c}),i.target=li)))}function Dl(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var si={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionend:Dl("Transition","TransitionEnd")},eu={},pp={};d&&(pp=document.createElement("div").style,"AnimationEvent"in window||(delete si.animationend.animation,delete si.animationiteration.animation,delete si.animationstart.animation),"TransitionEvent"in window||delete si.transitionend.transition);function Ol(n){if(eu[n])return eu[n];if(!si[n])return n;var i=si[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in pp)return eu[n]=i[s];return n}var hp=Ol("animationend"),mp=Ol("animationiteration"),gp=Ol("animationstart"),yp=Ol("transitionend"),xp=new Map,vp="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 lr(n,i){xp.set(n,i),a(i,[n])}for(var tu=0;tu<vp.length;tu++){var nu=vp[tu],Z1=nu.toLowerCase(),ew=nu[0].toUpperCase()+nu.slice(1);lr(Z1,"on"+ew)}lr(hp,"onAnimationEnd"),lr(mp,"onAnimationIteration"),lr(gp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(yp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),tw=new Set("cancel close invalid load scroll toggle".split(" ").concat(vo));function wp(n,i,s){var c=n.type||"unknown-event";n.currentTarget=s,Z0(c,i,void 0,n),n.currentTarget=null}function kp(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],h=c.event;c=c.listeners;e:{var x=void 0;if(i)for(var k=c.length-1;0<=k;k--){var T=c[k],$=T.instance,U=T.currentTarget;if(T=T.listener,$!==x&&h.isPropagationStopped())break e;wp(h,T,U),x=$}else for(k=0;k<c.length;k++){if(T=c[k],$=T.instance,U=T.currentTarget,T=T.listener,$!==x&&h.isPropagationStopped())break e;wp(h,T,U),x=$}}}if(Sl)throw n=La,Sl=!1,La=null,n}function Je(n,i){var s=i[cu];s===void 0&&(s=i[cu]=new Set);var c=n+"__bubble";s.has(c)||(Sp(i,n,2,!1),s.add(c))}function ru(n,i,s){var c=0;i&&(c|=4),Sp(s,n,c,i)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function wo(n){if(!n[Ml]){n[Ml]=!0,o.forEach(function(s){s!=="selectionchange"&&(tw.has(s)||ru(s,!1,n),ru(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Ml]||(i[Ml]=!0,ru("selectionchange",!1,i))}}function Sp(n,i,s,c){switch(qf(i)){case 1:var h=m1;break;case 4:h=g1;break;default:h=Fa}s=h.bind(null,i,s,n),h=void 0,!Aa||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,s,{capture:!0,passive:h}):n.addEventListener(i,s,!0):h!==void 0?n.addEventListener(i,s,{passive:h}):n.addEventListener(i,s,!1)}function iu(n,i,s,c,h){var x=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var T=c.stateNode.containerInfo;if(T===h||T.nodeType===8&&T.parentNode===h)break;if(k===4)for(k=c.return;k!==null;){var $=k.tag;if(($===3||$===4)&&($=k.stateNode.containerInfo,$===h||$.nodeType===8&&$.parentNode===h))return;k=k.return}for(;T!==null;){if(k=Ar(T),k===null)return;if($=k.tag,$===5||$===6){c=x=k;continue e}T=T.parentNode}}c=c.return}Tf(function(){var U=x,Y=Na(s),Z=[];e:{var Q=xp.get(n);if(Q!==void 0){var de=Va,pe=n;switch(n){case"keypress":if(Ll(s)===0)break e;case"keydown":case"keyup":de=P1;break;case"focusin":pe="focus",de=Wa;break;case"focusout":pe="blur",de=Wa;break;case"beforeblur":case"afterblur":de=Wa;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=Jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=v1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=$1;break;case hp:case mp:case gp:de=S1;break;case yp:de=z1;break;case"scroll":de=y1;break;case"wheel":de=O1;break;case"copy":case"cut":case"paste":de=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Qf}var he=(i&4)!==0,lt=!he&&n==="scroll",O=he?Q!==null?Q+"Capture":null:Q;he=[];for(var _=U,F;_!==null;){F=_;var te=F.stateNode;if(F.tag===5&&te!==null&&(F=te,O!==null&&(te=to(_,O),te!=null&&he.push(ko(_,te,F)))),lt)break;_=_.return}0<he.length&&(Q=new de(Q,pe,null,s,Y),Z.push({event:Q,listeners:he}))}}if((i&7)===0){e:{if(Q=n==="mouseover"||n==="pointerover",de=n==="mouseout"||n==="pointerout",Q&&s!==Yt&&(pe=s.relatedTarget||s.fromElement)&&(Ar(pe)||pe[Hn]))break e;if((de||Q)&&(Q=Y.window===Y?Y:(Q=Y.ownerDocument)?Q.defaultView||Q.parentWindow:window,de?(pe=s.relatedTarget||s.toElement,de=U,pe=pe?Ar(pe):null,pe!==null&&(lt=Pr(pe),pe!==lt||pe.tag!==5&&pe.tag!==6)&&(pe=null)):(de=null,pe=U),de!==pe)){if(he=Jf,te="onMouseLeave",O="onMouseEnter",_="mouse",(n==="pointerout"||n==="pointerover")&&(he=Qf,te="onPointerLeave",O="onPointerEnter",_="pointer"),lt=de==null?Q:ci(de),F=pe==null?Q:ci(pe),Q=new he(te,_+"leave",de,s,Y),Q.target=lt,Q.relatedTarget=F,te=null,Ar(Y)===U&&(he=new he(O,_+"enter",pe,s,Y),he.target=F,he.relatedTarget=lt,te=he),lt=te,de&&pe)t:{for(he=de,O=pe,_=0,F=he;F;F=ai(F))_++;for(F=0,te=O;te;te=ai(te))F++;for(;0<_-F;)he=ai(he),_--;for(;0<F-_;)O=ai(O),F--;for(;_--;){if(he===O||O!==null&&he===O.alternate)break t;he=ai(he),O=ai(O)}he=null}else he=null;de!==null&&bp(Z,Q,de,he,!1),pe!==null&<!==null&&bp(Z,lt,pe,he,!0)}}e:{if(Q=U?ci(U):window,de=Q.nodeName&&Q.nodeName.toLowerCase(),de==="select"||de==="input"&&Q.type==="file")var ge=q1;else if(np(Q))if(ip)ge=K1;else{ge=G1;var xe=W1}else(de=Q.nodeName)&&de.toLowerCase()==="input"&&(Q.type==="checkbox"||Q.type==="radio")&&(ge=J1);if(ge&&(ge=ge(n,U))){rp(Z,ge,s,Y);break e}xe&&xe(n,Q,U),n==="focusout"&&(xe=Q._wrapperState)&&xe.controlled&&Q.type==="number"&&xt(Q,"number",Q.value)}switch(xe=U?ci(U):window,n){case"focusin":(np(xe)||xe.contentEditable==="true")&&(li=xe,Xa=U,xo=null);break;case"focusout":xo=Xa=li=null;break;case"mousedown":Za=!0;break;case"contextmenu":case"mouseup":case"dragend":Za=!1,fp(Z,s,Y);break;case"selectionchange":if(X1)break;case"keydown":case"keyup":fp(Z,s,Y)}var ve;if(Ja)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else oi?ep(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(Yf&&s.locale!=="ko"&&(oi||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&oi&&(ve=Wf()):(or=Y,Ua="value"in or?or.value:or.textContent,oi=!0)),xe=Fl(U,Ce),0<xe.length&&(Ce=new Kf(Ce,n,null,s,Y),Z.push({event:Ce,listeners:xe}),ve?Ce.data=ve:(ve=tp(s),ve!==null&&(Ce.data=ve)))),(ve=F1?B1(n,s):U1(n,s))&&(U=Fl(U,"onBeforeInput"),0<U.length&&(Y=new Kf("onBeforeInput","beforeinput",null,s,Y),Z.push({event:Y,listeners:U}),Y.data=ve))}kp(Z,i)})}function ko(n,i,s){return{instance:n,listener:i,currentTarget:s}}function Fl(n,i){for(var s=i+"Capture",c=[];n!==null;){var h=n,x=h.stateNode;h.tag===5&&x!==null&&(h=x,x=to(n,s),x!=null&&c.unshift(ko(n,x,h)),x=to(n,i),x!=null&&c.push(ko(n,x,h))),n=n.return}return c}function ai(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function bp(n,i,s,c,h){for(var x=i._reactName,k=[];s!==null&&s!==c;){var T=s,$=T.alternate,U=T.stateNode;if($!==null&&$===c)break;T.tag===5&&U!==null&&(T=U,h?($=to(s,x),$!=null&&k.unshift(ko(s,$,T))):h||($=to(s,x),$!=null&&k.push(ko(s,$,T)))),s=s.return}k.length!==0&&n.push({event:i,listeners:k})}var nw=/\r\n?/g,rw=/\u0000|\uFFFD/g;function Cp(n){return(typeof n=="string"?n:""+n).replace(nw,`
|
|
30
|
+
`).replace(rw,"")}function Bl(n,i,s){if(i=Cp(i),Cp(n)!==i&&s)throw Error(r(425))}function Ul(){}var ou=null,lu=null;function su(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var au=typeof setTimeout=="function"?setTimeout:void 0,iw=typeof clearTimeout=="function"?clearTimeout:void 0,Ep=typeof Promise=="function"?Promise:void 0,ow=typeof queueMicrotask=="function"?queueMicrotask:typeof Ep<"u"?function(n){return Ep.resolve(null).then(n).catch(lw)}:au;function lw(n){setTimeout(function(){throw n})}function uu(n,i){var s=i,c=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){n.removeChild(h),co(i);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);co(i)}function sr(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function jp(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}var ui=Math.random().toString(36).slice(2),$n="__reactFiber$"+ui,So="__reactProps$"+ui,Hn="__reactContainer$"+ui,cu="__reactEvents$"+ui,sw="__reactListeners$"+ui,aw="__reactHandles$"+ui;function Ar(n){var i=n[$n];if(i)return i;for(var s=n.parentNode;s;){if(i=s[Hn]||s[$n]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=jp(n);n!==null;){if(s=n[$n])return s;n=jp(n)}return i}n=s,s=n.parentNode}return null}function bo(n){return n=n[$n]||n[Hn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ci(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Vl(n){return n[So]||null}var du=[],di=-1;function ar(n){return{current:n}}function Ke(n){0>di||(n.current=du[di],du[di]=null,di--)}function qe(n,i){di++,du[di]=n.current,n.current=i}var ur={},jt=ar(ur),Ft=ar(!1),Lr=ur;function fi(n,i){var s=n.type.contextTypes;if(!s)return ur;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var h={},x;for(x in s)h[x]=i[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=h),h}function Bt(n){return n=n.childContextTypes,n!=null}function Hl(){Ke(Ft),Ke(jt)}function Tp(n,i,s){if(jt.current!==ur)throw Error(r(168));qe(jt,i),qe(Ft,s)}function Rp(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in i))throw Error(r(108,Ee(n)||"Unknown",h));return E({},s,c)}function ql(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,qe(jt,n),qe(Ft,Ft.current),!0}function Np(n,i,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=Rp(n,i,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Ft),Ke(jt),qe(jt,n)):Ke(Ft),qe(Ft,s)}var qn=null,Wl=!1,fu=!1;function Ip(n){qn===null?qn=[n]:qn.push(n)}function uw(n){Wl=!0,Ip(n)}function cr(){if(!fu&&qn!==null){fu=!0;var n=0,i=Be;try{var s=qn;for(Be=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}qn=null,Wl=!1}catch(h){throw qn!==null&&(qn=qn.slice(n+1)),Af($a,cr),h}finally{Be=i,fu=!1}}return null}var pi=[],hi=0,Gl=null,Jl=0,dn=[],fn=0,$r=null,Wn=1,Gn="";function _r(n,i){pi[hi++]=Jl,pi[hi++]=Gl,Gl=n,Jl=i}function Pp(n,i,s){dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,$r=n;var c=Wn;n=Gn;var h=32-wn(c)-1;c&=~(1<<h),s+=1;var x=32-wn(i)+h;if(30<x){var k=h-h%5;x=(c&(1<<k)-1).toString(32),c>>=k,h-=k,Wn=1<<32-wn(i)+h|s<<h|c,Gn=x+n}else Wn=1<<x|s<<h|c,Gn=n}function pu(n){n.return!==null&&(_r(n,1),Pp(n,1,0))}function hu(n){for(;n===Gl;)Gl=pi[--hi],pi[hi]=null,Jl=pi[--hi],pi[hi]=null;for(;n===$r;)$r=dn[--fn],dn[fn]=null,Gn=dn[--fn],dn[fn]=null,Wn=dn[--fn],dn[fn]=null}var Zt=null,en=null,Xe=!1,Sn=null;function Ap(n,i){var s=gn(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=n,i=n.deletions,i===null?(n.deletions=[s],n.flags|=16):i.push(s)}function Lp(n,i){switch(n.tag){case 5:var s=n.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,Zt=n,en=sr(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,Zt=n,en=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=$r!==null?{id:Wn,overflow:Gn}:null,n.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=gn(18,null,null,0),s.stateNode=i,s.return=n,n.child=s,Zt=n,en=null,!0):!1;default:return!1}}function mu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function gu(n){if(Xe){var i=en;if(i){var s=i;if(!Lp(n,i)){if(mu(n))throw Error(r(418));i=sr(s.nextSibling);var c=Zt;i&&Lp(n,i)?Ap(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Zt=n)}}else{if(mu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Zt=n}}}function $p(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Zt=n}function Kl(n){if(n!==Zt)return!1;if(!Xe)return $p(n),Xe=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!su(n.type,n.memoizedProps)),i&&(i=en)){if(mu(n))throw _p(),Error(r(418));for(;i;)Ap(n,i),i=sr(i.nextSibling)}if($p(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(i===0){en=sr(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}n=n.nextSibling}en=null}}else en=Zt?sr(n.stateNode.nextSibling):null;return!0}function _p(){for(var n=en;n;)n=sr(n.nextSibling)}function mi(){en=Zt=null,Xe=!1}function yu(n){Sn===null?Sn=[n]:Sn.push(n)}var cw=M.ReactCurrentBatchConfig;function Co(n,i,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var h=c,x=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===x?i.ref:(i=function(k){var T=h.refs;k===null?delete T[x]:T[x]=k},i._stringRef=x,i)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function Ql(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function zp(n){var i=n._init;return i(n._payload)}function Dp(n){function i(O,_){if(n){var F=O.deletions;F===null?(O.deletions=[_],O.flags|=16):F.push(_)}}function s(O,_){if(!n)return null;for(;_!==null;)i(O,_),_=_.sibling;return null}function c(O,_){for(O=new Map;_!==null;)_.key!==null?O.set(_.key,_):O.set(_.index,_),_=_.sibling;return O}function h(O,_){return O=xr(O,_),O.index=0,O.sibling=null,O}function x(O,_,F){return O.index=F,n?(F=O.alternate,F!==null?(F=F.index,F<_?(O.flags|=2,_):F):(O.flags|=2,_)):(O.flags|=1048576,_)}function k(O){return n&&O.alternate===null&&(O.flags|=2),O}function T(O,_,F,te){return _===null||_.tag!==6?(_=ac(F,O.mode,te),_.return=O,_):(_=h(_,F),_.return=O,_)}function $(O,_,F,te){var ge=F.type;return ge===q?Y(O,_,F.props.children,te,F.key):_!==null&&(_.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&zp(ge)===_.type)?(te=h(_,F.props),te.ref=Co(O,_,F),te.return=O,te):(te=ws(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,te)}function U(O,_,F,te){return _===null||_.tag!==4||_.stateNode.containerInfo!==F.containerInfo||_.stateNode.implementation!==F.implementation?(_=uc(F,O.mode,te),_.return=O,_):(_=h(_,F.children||[]),_.return=O,_)}function Y(O,_,F,te,ge){return _===null||_.tag!==7?(_=Vr(F,O.mode,te,ge),_.return=O,_):(_=h(_,F),_.return=O,_)}function Z(O,_,F){if(typeof _=="string"&&_!==""||typeof _=="number")return _=ac(""+_,O.mode,F),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case H:return F=ws(_.type,_.key,_.props,null,O.mode,F),F.ref=Co(O,null,_),F.return=O,F;case A:return _=uc(_,O.mode,F),_.return=O,_;case ae:var te=_._init;return Z(O,te(_._payload),F)}if(Ye(_)||ce(_))return _=Vr(_,O.mode,F,null),_.return=O,_;Ql(O,_)}return null}function Q(O,_,F,te){var ge=_!==null?_.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ge!==null?null:T(O,_,""+F,te);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case H:return F.key===ge?$(O,_,F,te):null;case A:return F.key===ge?U(O,_,F,te):null;case ae:return ge=F._init,Q(O,_,ge(F._payload),te)}if(Ye(F)||ce(F))return ge!==null?null:Y(O,_,F,te,null);Ql(O,F)}return null}function de(O,_,F,te,ge){if(typeof te=="string"&&te!==""||typeof te=="number")return O=O.get(F)||null,T(_,O,""+te,ge);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case H:return O=O.get(te.key===null?F:te.key)||null,$(_,O,te,ge);case A:return O=O.get(te.key===null?F:te.key)||null,U(_,O,te,ge);case ae:var xe=te._init;return de(O,_,F,xe(te._payload),ge)}if(Ye(te)||ce(te))return O=O.get(F)||null,Y(_,O,te,ge,null);Ql(_,te)}return null}function pe(O,_,F,te){for(var ge=null,xe=null,ve=_,Ce=_=0,mt=null;ve!==null&&Ce<F.length;Ce++){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var Me=Q(O,ve,F[Ce],te);if(Me===null){ve===null&&(ve=mt);break}n&&ve&&Me.alternate===null&&i(O,ve),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me,ve=mt}if(Ce===F.length)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;Ce<F.length;Ce++)ve=Z(O,F[Ce],te),ve!==null&&(_=x(ve,_,Ce),xe===null?ge=ve:xe.sibling=ve,xe=ve);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);Ce<F.length;Ce++)mt=de(ve,O,Ce,F[Ce],te),mt!==null&&(n&&mt.alternate!==null&&ve.delete(mt.key===null?Ce:mt.key),_=x(mt,_,Ce),xe===null?ge=mt:xe.sibling=mt,xe=mt);return n&&ve.forEach(function(vr){return i(O,vr)}),Xe&&_r(O,Ce),ge}function he(O,_,F,te){var ge=ce(F);if(typeof ge!="function")throw Error(r(150));if(F=ge.call(F),F==null)throw Error(r(151));for(var xe=ge=null,ve=_,Ce=_=0,mt=null,Me=F.next();ve!==null&&!Me.done;Ce++,Me=F.next()){ve.index>Ce?(mt=ve,ve=null):mt=ve.sibling;var vr=Q(O,ve,Me.value,te);if(vr===null){ve===null&&(ve=mt);break}n&&ve&&vr.alternate===null&&i(O,ve),_=x(vr,_,Ce),xe===null?ge=vr:xe.sibling=vr,xe=vr,ve=mt}if(Me.done)return s(O,ve),Xe&&_r(O,Ce),ge;if(ve===null){for(;!Me.done;Ce++,Me=F.next())Me=Z(O,Me.value,te),Me!==null&&(_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return Xe&&_r(O,Ce),ge}for(ve=c(O,ve);!Me.done;Ce++,Me=F.next())Me=de(ve,O,Ce,Me.value,te),Me!==null&&(n&&Me.alternate!==null&&ve.delete(Me.key===null?Ce:Me.key),_=x(Me,_,Ce),xe===null?ge=Me:xe.sibling=Me,xe=Me);return n&&ve.forEach(function(Vw){return i(O,Vw)}),Xe&&_r(O,Ce),ge}function lt(O,_,F,te){if(typeof F=="object"&&F!==null&&F.type===q&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case H:e:{for(var ge=F.key,xe=_;xe!==null;){if(xe.key===ge){if(ge=F.type,ge===q){if(xe.tag===7){s(O,xe.sibling),_=h(xe,F.props.children),_.return=O,O=_;break e}}else if(xe.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===ae&&zp(ge)===xe.type){s(O,xe.sibling),_=h(xe,F.props),_.ref=Co(O,xe,F),_.return=O,O=_;break e}s(O,xe);break}else i(O,xe);xe=xe.sibling}F.type===q?(_=Vr(F.props.children,O.mode,te,F.key),_.return=O,O=_):(te=ws(F.type,F.key,F.props,null,O.mode,te),te.ref=Co(O,_,F),te.return=O,O=te)}return k(O);case A:e:{for(xe=F.key;_!==null;){if(_.key===xe)if(_.tag===4&&_.stateNode.containerInfo===F.containerInfo&&_.stateNode.implementation===F.implementation){s(O,_.sibling),_=h(_,F.children||[]),_.return=O,O=_;break e}else{s(O,_);break}else i(O,_);_=_.sibling}_=uc(F,O.mode,te),_.return=O,O=_}return k(O);case ae:return xe=F._init,lt(O,_,xe(F._payload),te)}if(Ye(F))return pe(O,_,F,te);if(ce(F))return he(O,_,F,te);Ql(O,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,_!==null&&_.tag===6?(s(O,_.sibling),_=h(_,F),_.return=O,O=_):(s(O,_),_=ac(F,O.mode,te),_.return=O,O=_),k(O)):s(O,_)}return lt}var gi=Dp(!0),Op=Dp(!1),Yl=ar(null),Xl=null,yi=null,xu=null;function vu(){xu=yi=Xl=null}function wu(n){var i=Yl.current;Ke(Yl),n._currentValue=i}function ku(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function xi(n,i){Xl=n,xu=yi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Ut=!0),n.firstContext=null)}function pn(n){var i=n._currentValue;if(xu!==n)if(n={context:n,memoizedValue:i,next:null},yi===null){if(Xl===null)throw Error(r(308));yi=n,Xl.dependencies={lanes:0,firstContext:n}}else yi=yi.next=n;return i}var zr=null;function Su(n){zr===null?zr=[n]:zr.push(n)}function Mp(n,i,s,c){var h=i.interleaved;return h===null?(s.next=s,Su(i)):(s.next=h.next,h.next=s),i.interleaved=s,Jn(n,c)}function Jn(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var dr=!1;function bu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fp(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Kn(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function fr(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,Jn(n,s)}return h=c.interleaved,h===null?(i.next=i,Su(c)):(i.next=h.next,h.next=i),c.interleaved=i,Jn(n,s)}function Zl(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Da(n,s)}}function Bp(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var k={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};x===null?h=x=k:x=x.next=k,s=s.next}while(s!==null);x===null?h=x=i:x=x.next=i}else h=x=i;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function es(n,i,s,c){var h=n.updateQueue;dr=!1;var x=h.firstBaseUpdate,k=h.lastBaseUpdate,T=h.shared.pending;if(T!==null){h.shared.pending=null;var $=T,U=$.next;$.next=null,k===null?x=U:k.next=U,k=$;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==k&&(T===null?Y.firstBaseUpdate=U:T.next=U,Y.lastBaseUpdate=$))}if(x!==null){var Z=h.baseState;k=0,Y=U=$=null,T=x;do{var Q=T.lane,de=T.eventTime;if((c&Q)===Q){Y!==null&&(Y=Y.next={eventTime:de,lane:0,tag:T.tag,payload:T.payload,callback:T.callback,next:null});e:{var pe=n,he=T;switch(Q=i,de=s,he.tag){case 1:if(pe=he.payload,typeof pe=="function"){Z=pe.call(de,Z,Q);break e}Z=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=he.payload,Q=typeof pe=="function"?pe.call(de,Z,Q):pe,Q==null)break e;Z=E({},Z,Q);break e;case 2:dr=!0}}T.callback!==null&&T.lane!==0&&(n.flags|=64,Q=h.effects,Q===null?h.effects=[T]:Q.push(T))}else de={eventTime:de,lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(U=Y=de,$=Z):Y=Y.next=de,k|=Q;if(T=T.next,T===null){if(T=h.shared.pending,T===null)break;Q=T,T=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);if(Y===null&&($=Z),h.baseState=$,h.firstBaseUpdate=U,h.lastBaseUpdate=Y,i=h.shared.interleaved,i!==null){h=i;do k|=h.lane,h=h.next;while(h!==i)}else x===null&&(h.shared.lanes=0);Mr|=k,n.lanes=k,n.memoizedState=Z}}function Up(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var c=n[i],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Eo={},_n=ar(Eo),jo=ar(Eo),To=ar(Eo);function Dr(n){if(n===Eo)throw Error(r(174));return n}function Cu(n,i){switch(qe(To,i),qe(jo,n),qe(_n,Eo),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ie(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ie(i,n)}Ke(_n),qe(_n,i)}function vi(){Ke(_n),Ke(jo),Ke(To)}function Vp(n){Dr(To.current);var i=Dr(_n.current),s=ie(i,n.type);i!==s&&(qe(jo,n),qe(_n,s))}function Eu(n){jo.current===n&&(Ke(_n),Ke(jo))}var et=ar(0);function ts(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ju=[];function Tu(){for(var n=0;n<ju.length;n++)ju[n]._workInProgressVersionPrimary=null;ju.length=0}var ns=M.ReactCurrentDispatcher,Ru=M.ReactCurrentBatchConfig,Or=0,tt=null,dt=null,pt=null,rs=!1,Ro=!1,No=0,dw=0;function Tt(){throw Error(r(321))}function Nu(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!kn(n[s],i[s]))return!1;return!0}function Iu(n,i,s,c,h,x){if(Or=x,tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ns.current=n===null||n.memoizedState===null?mw:gw,n=s(c,h),Ro){x=0;do{if(Ro=!1,No=0,25<=x)throw Error(r(301));x+=1,pt=dt=null,i.updateQueue=null,ns.current=yw,n=s(c,h)}while(Ro)}if(ns.current=ls,i=dt!==null&&dt.next!==null,Or=0,pt=dt=tt=null,rs=!1,i)throw Error(r(300));return n}function Pu(){var n=No!==0;return No=0,n}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=n:pt=pt.next=n,pt}function hn(){if(dt===null){var n=tt.alternate;n=n!==null?n.memoizedState:null}else n=dt.next;var i=pt===null?tt.memoizedState:pt.next;if(i!==null)pt=i,dt=n;else{if(n===null)throw Error(r(310));dt=n,n={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},pt===null?tt.memoizedState=pt=n:pt=pt.next=n}return pt}function Io(n,i){return typeof i=="function"?i(n):i}function Au(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=dt,h=c.baseQueue,x=s.pending;if(x!==null){if(h!==null){var k=h.next;h.next=x.next,x.next=k}c.baseQueue=h=x,s.pending=null}if(h!==null){x=h.next,c=c.baseState;var T=k=null,$=null,U=x;do{var Y=U.lane;if((Or&Y)===Y)$!==null&&($=$.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),c=U.hasEagerState?U.eagerState:n(c,U.action);else{var Z={lane:Y,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};$===null?(T=$=Z,k=c):$=$.next=Z,tt.lanes|=Y,Mr|=Y}U=U.next}while(U!==null&&U!==x);$===null?k=c:$.next=T,kn(c,i.memoizedState)||(Ut=!0),i.memoizedState=c,i.baseState=k,i.baseQueue=$,s.lastRenderedState=c}if(n=s.interleaved,n!==null){h=n;do x=h.lane,tt.lanes|=x,Mr|=x,h=h.next;while(h!==n)}else h===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Lu(n){var i=hn(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,h=s.pending,x=i.memoizedState;if(h!==null){s.pending=null;var k=h=h.next;do x=n(x,k.action),k=k.next;while(k!==h);kn(x,i.memoizedState)||(Ut=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),s.lastRenderedState=x}return[x,c]}function Hp(){}function qp(n,i){var s=tt,c=hn(),h=i(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,$u(Jp.bind(null,s,c,n),[n]),c.getSnapshot!==i||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Po(9,Gp.bind(null,s,c,h,i),void 0,null),ht===null)throw Error(r(349));(Or&30)!==0||Wp(s,i,h)}return h}function Wp(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function Gp(n,i,s,c){i.value=s,i.getSnapshot=c,Kp(i)&&Qp(n)}function Jp(n,i,s){return s(function(){Kp(i)&&Qp(n)})}function Kp(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!kn(n,s)}catch{return!0}}function Qp(n){var i=Jn(n,1);i!==null&&jn(i,n,1,-1)}function Yp(n){var i=zn();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},i.queue=n,n=n.dispatch=hw.bind(null,tt,n),[i.memoizedState,n]}function Po(n,i,s,c){return n={tag:n,create:i,destroy:s,deps:c,next:null},i=tt.updateQueue,i===null?(i={lastEffect:null,stores:null},tt.updateQueue=i,i.lastEffect=n.next=n):(s=i.lastEffect,s===null?i.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,i.lastEffect=n)),n}function Xp(){return hn().memoizedState}function is(n,i,s,c){var h=zn();tt.flags|=n,h.memoizedState=Po(1|i,s,void 0,c===void 0?null:c)}function os(n,i,s,c){var h=hn();c=c===void 0?null:c;var x=void 0;if(dt!==null){var k=dt.memoizedState;if(x=k.destroy,c!==null&&Nu(c,k.deps)){h.memoizedState=Po(i,s,x,c);return}}tt.flags|=n,h.memoizedState=Po(1|i,s,x,c)}function Zp(n,i){return is(8390656,8,n,i)}function $u(n,i){return os(2048,8,n,i)}function eh(n,i){return os(4,2,n,i)}function th(n,i){return os(4,4,n,i)}function nh(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function rh(n,i,s){return s=s!=null?s.concat([n]):null,os(4,4,nh.bind(null,i,n),s)}function _u(){}function ih(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Nu(i,c[1])?c[0]:(s.memoizedState=[n,i],n)}function oh(n,i){var s=hn();i=i===void 0?null:i;var c=s.memoizedState;return c!==null&&i!==null&&Nu(i,c[1])?c[0]:(n=n(),s.memoizedState=[n,i],n)}function lh(n,i,s){return(Or&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,i)||(s=zf(),tt.lanes|=s,Mr|=s,n.baseState=!0),i)}function fw(n,i){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=Ru.transition;Ru.transition={};try{n(!1),i()}finally{Be=s,Ru.transition=c}}function sh(){return hn().memoizedState}function pw(n,i,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},ah(n))uh(i,s);else if(s=Mp(n,i,s,c),s!==null){var h=Dt();jn(s,n,c,h),ch(s,i,c)}}function hw(n,i,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(ah(n))uh(i,h);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var k=i.lastRenderedState,T=x(k,s);if(h.hasEagerState=!0,h.eagerState=T,kn(T,k)){var $=i.interleaved;$===null?(h.next=h,Su(i)):(h.next=$.next,$.next=h),i.interleaved=h;return}}catch{}finally{}s=Mp(n,i,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),ch(s,i,c))}}function ah(n){var i=n.alternate;return n===tt||i!==null&&i===tt}function uh(n,i){Ro=rs=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function ch(n,i,s){if((s&4194240)!==0){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,Da(n,s)}}var ls={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},mw={readContext:pn,useCallback:function(n,i){return zn().memoizedState=[n,i===void 0?null:i],n},useContext:pn,useEffect:Zp,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,is(4194308,4,nh.bind(null,i,n),s)},useLayoutEffect:function(n,i){return is(4194308,4,n,i)},useInsertionEffect:function(n,i){return is(4,2,n,i)},useMemo:function(n,i){var s=zn();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=zn();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=pw.bind(null,tt,n),[c.memoizedState,n]},useRef:function(n){var i=zn();return n={current:n},i.memoizedState=n},useState:Yp,useDebugValue:_u,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=Yp(!1),i=n[0];return n=fw.bind(null,n[1]),zn().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=tt,h=zn();if(Xe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ht===null)throw Error(r(349));(Or&30)!==0||Wp(c,i,s)}h.memoizedState=s;var x={value:s,getSnapshot:i};return h.queue=x,Zp(Jp.bind(null,c,x,n),[n]),c.flags|=2048,Po(9,Gp.bind(null,c,x,s,i),void 0,null),s},useId:function(){var n=zn(),i=ht.identifierPrefix;if(Xe){var s=Gn,c=Wn;s=(c&~(1<<32-wn(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=No++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=dw++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},gw={readContext:pn,useCallback:ih,useContext:pn,useEffect:$u,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Au,useRef:Xp,useState:function(){return Au(Io)},useDebugValue:_u,useDeferredValue:function(n){var i=hn();return lh(i,dt.memoizedState,n)},useTransition:function(){var n=Au(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Hp,useSyncExternalStore:qp,useId:sh,unstable_isNewReconciler:!1},yw={readContext:pn,useCallback:ih,useContext:pn,useEffect:$u,useImperativeHandle:rh,useInsertionEffect:eh,useLayoutEffect:th,useMemo:oh,useReducer:Lu,useRef:Xp,useState:function(){return Lu(Io)},useDebugValue:_u,useDeferredValue:function(n){var i=hn();return dt===null?i.memoizedState=n:lh(i,dt.memoizedState,n)},useTransition:function(){var n=Lu(Io)[0],i=hn().memoizedState;return[n,i]},useMutableSource:Hp,useSyncExternalStore:qp,useId:sh,unstable_isNewReconciler:!1};function bn(n,i){if(n&&n.defaultProps){i=E({},i),n=n.defaultProps;for(var s in n)i[s]===void 0&&(i[s]=n[s]);return i}return i}function zu(n,i,s,c){i=n.memoizedState,s=s(c,i),s=s==null?i:E({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var ss={isMounted:function(n){return(n=n._reactInternals)?Pr(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Zl(i,n,h))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.tag=1,x.payload=i,s!=null&&(x.callback=s),i=fr(n,x,h),i!==null&&(jn(i,n,h,c),Zl(i,n,h))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=Dt(),c=gr(n),h=Kn(s,c);h.tag=2,i!=null&&(h.callback=i),i=fr(n,h,c),i!==null&&(jn(i,n,c,s),Zl(i,n,c))}};function dh(n,i,s,c,h,x,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,k):i.prototype&&i.prototype.isPureReactComponent?!yo(s,c)||!yo(h,x):!0}function fh(n,i,s){var c=!1,h=ur,x=i.contextType;return typeof x=="object"&&x!==null?x=pn(x):(h=Bt(i)?Lr:jt.current,c=i.contextTypes,x=(c=c!=null)?fi(n,h):ur),i=new i(s,x),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ss,n.stateNode=i,i._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),i}function ph(n,i,s,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==n&&ss.enqueueReplaceState(i,i.state,null)}function Du(n,i,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},bu(n);var x=i.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(i)?Lr:jt.current,h.context=fi(n,x)),h.state=n.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(zu(n,i,x,s),h.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(i=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),i!==h.state&&ss.enqueueReplaceState(h,h.state,null),es(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function wi(n,i){try{var s="",c=i;do s+=Se(c),c=c.return;while(c);var h=s}catch(x){h=`
|
|
31
31
|
Error generating stack: `+x.message+`
|
|
32
|
-
`+x.stack}return{value:n,source:i,stack:h,digest:null}}function zu(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Du(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var mw=typeof WeakMap=="function"?WeakMap:Map;function fh(n,i,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){fs||(fs=!0,Xu=c),Du(n,i)},s}function ph(n,i,s){s=Kn(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;s.payload=function(){return c(h)},s.callback=function(){Du(n,i)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Du(n,i),typeof c!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),s}function hh(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new mw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(s)||(h.add(s),n=Nw.bind(null,n,i,s),i.then(n,n))}function mh(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function gh(n,i,s,c,h){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=Kn(-1,1),i.tag=2,fr(s,i,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var gw=M.ReactCurrentOwner,Ut=!1;function zt(n,i,s,c){i.child=n===null?zp(i,null,s,c):gi(i,n.child,s,c)}function yh(n,i,s,c,h){s=s.render;var x=i.ref;return xi(i,h),c=Ru(n,i,s,c,x,h),s=Nu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&s&&du(i),i.flags|=1,zt(n,i,c,h),i.child)}function xh(n,i,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!oc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=x,vh(n,i,x,c,h)):(n=xs(s.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(x=n.child,(n.lanes&h)===0){var k=x.memoizedProps;if(s=s.compare,s=s!==null?s:yo,s(k,c)&&n.ref===i.ref)return Qn(n,i,h)}return i.flags|=1,n=xr(x,c),n.ref=i.ref,n.return=i,i.child=n}function vh(n,i,s,c,h){if(n!==null){var x=n.memoizedProps;if(yo(x,c)&&n.ref===i.ref)if(Ut=!1,i.pendingProps=c=x,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ut=!0);else return i.lanes=n.lanes,Qn(n,i,h)}return Ou(n,i,s,c,h)}function wh(n,i,s){var c=i.pendingProps,h=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Si,en),en|=s;else{if((s&1073741824)===0)return n=x!==null?x.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,qe(Si,en),en|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,qe(Si,en),en|=c}else x!==null?(c=x.baseLanes|s,i.memoizedState=null):c=s,qe(Si,en),en|=c;return zt(n,i,h,s),i.child}function kh(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Ou(n,i,s,c,h){var x=Bt(s)?Lr:jt.current;return x=fi(i,x),xi(i,h),s=Ru(n,i,s,c,x,h),c=Nu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&c&&du(i),i.flags|=1,zt(n,i,s,h),i.child)}function Sh(n,i,s,c,h){if(Bt(s)){var x=!0;Vl(i)}else x=!1;if(xi(i,h),i.stateNode===null)ss(n,i),ch(i,s,c),_u(i,s,c,h),c=!0;else if(n===null){var k=i.stateNode,T=i.memoizedProps;k.props=T;var $=k.context,U=s.contextType;typeof U=="object"&&U!==null?U=pn(U):(U=Bt(s)?Lr:jt.current,U=fi(i,U));var Y=s.getDerivedStateFromProps,Z=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function";Z||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==c||$!==U)&&dh(i,k,c,U),dr=!1;var Q=i.memoizedState;k.state=Q,Xl(i,c,k,h),$=i.memoizedState,T!==c||Q!==$||Ft.current||dr?(typeof Y=="function"&&($u(i,s,Y,c),$=i.memoizedState),(T=dr||uh(i,s,T,c,Q,$,U))?(Z||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=$),k.props=c,k.state=$,k.context=U,c=T):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{k=i.stateNode,Op(n,i),T=i.memoizedProps,U=i.type===i.elementType?T:bn(i.type,T),k.props=U,Z=i.pendingProps,Q=k.context,$=s.contextType,typeof $=="object"&&$!==null?$=pn($):($=Bt(s)?Lr:jt.current,$=fi(i,$));var de=s.getDerivedStateFromProps;(Y=typeof de=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==Z||Q!==$)&&dh(i,k,c,$),dr=!1,Q=i.memoizedState,k.state=Q,Xl(i,c,k,h);var pe=i.memoizedState;T!==Z||Q!==pe||Ft.current||dr?(typeof de=="function"&&($u(i,s,de,c),pe=i.memoizedState),(U=dr||uh(i,s,U,c,Q,pe,$)||!1)?(Y||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(c,pe,$),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(c,pe,$)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=pe),k.props=c,k.state=pe,k.context=$,c=U):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return Mu(n,i,s,c,x,h)}function Mu(n,i,s,c,h,x){kh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&Tp(i,s,!1),Qn(n,i,x);c=i.stateNode,gw.current=i;var T=k&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=gi(i,n.child,null,x),i.child=gi(i,null,T,x)):zt(n,i,T,x),i.memoizedState=c.state,h&&Tp(i,s,!0),i.child}function bh(n){var i=n.stateNode;i.pendingContext?Ep(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Ep(n,i.context,!1),Su(n,i.containerInfo)}function Ch(n,i,s,c,h){return mi(),mu(h),i.flags|=256,zt(n,i,s,c),i.child}var Fu={dehydrated:null,treeContext:null,retryLane:0};function Bu(n){return{baseLanes:n,cachePool:null,transitions:null}}function Eh(n,i,s){var c=i.pendingProps,h=et.current,x=!1,k=(i.flags&128)!==0,T;if((T=k)||(T=n!==null&&n.memoizedState===null?!1:(h&2)!==0),T?(x=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),qe(et,h&1),n===null)return hu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=c.children,n=c.fallback,x?(c=i.mode,x=i.child,k={mode:"hidden",children:k},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=vs(k,c,0,null),n=Vr(n,c,s,null),x.return=i,n.return=i,x.sibling=n,i.child=x,i.child.memoizedState=Bu(s),i.memoizedState=Fu,n):Uu(i,k));if(h=n.memoizedState,h!==null&&(T=h.dehydrated,T!==null))return yw(n,i,k,c,T,h,s);if(x){x=c.fallback,k=i.mode,h=n.child,T=h.sibling;var $={mode:"hidden",children:c.children};return(k&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=$,i.deletions=null):(c=xr(h,$),c.subtreeFlags=h.subtreeFlags&14680064),T!==null?x=xr(T,x):(x=Vr(x,k,s,null),x.flags|=2),x.return=i,c.return=i,c.sibling=x,i.child=c,c=x,x=i.child,k=n.child.memoizedState,k=k===null?Bu(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~s,i.memoizedState=Fu,c}return x=n.child,n=x.sibling,c=xr(x,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,n!==null&&(s=i.deletions,s===null?(i.deletions=[n],i.flags|=16):s.push(n)),i.child=c,i.memoizedState=null,c}function Uu(n,i){return i=vs({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function ls(n,i,s,c){return c!==null&&mu(c),gi(i,n.child,null,s),n=Uu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function yw(n,i,s,c,h,x,k){if(s)return i.flags&256?(i.flags&=-257,c=zu(Error(r(422))),ls(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(x=c.fallback,h=i.mode,c=vs({mode:"visible",children:c.children},h,0,null),x=Vr(x,h,k,null),x.flags|=2,c.return=i,x.return=i,c.sibling=x,i.child=c,(i.mode&1)!==0&&gi(i,n.child,null,k),i.child.memoizedState=Bu(k),i.memoizedState=Fu,x);if((i.mode&1)===0)return ls(n,i,k,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var T=c.dgst;return c=T,x=Error(r(419)),c=zu(x,c,void 0),ls(n,i,k,c)}if(T=(k&n.childLanes)!==0,Ut||T){if(c=ht,c!==null){switch(k&-k){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|k))!==0?0:h,h!==0&&h!==x.retryLane&&(x.retryLane=h,Jn(n,h),jn(c,n,h,-1))}return ic(),c=zu(Error(r(421))),ls(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=Iw.bind(null,n),h._reactRetry=i,null):(n=x.treeContext,Zt=sr(h.nextSibling),Xt=i,Xe=!0,Sn=null,n!==null&&(dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,Wn=n.id,Gn=n.overflow,$r=i),i=Uu(i,c.children),i.flags|=4096,i)}function jh(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),vu(n.return,i,s)}function Vu(n,i,s,c,h){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=s,x.tailMode=h)}function Th(n,i,s){var c=i.pendingProps,h=c.revealOrder,x=c.tail;if(zt(n,i,c.children,s),c=et.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&jh(n,s,i);else if(n.tag===19)jh(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(qe(et,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(s=i.child,h=null;s!==null;)n=s.alternate,n!==null&&Zl(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),Vu(i,!1,h,s,x);break;case"backwards":for(s=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Zl(n)===null){i.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Vu(i,!0,s,null,x);break;case"together":Vu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ss(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Qn(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),Mr|=i.lanes,(s&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=xr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function xw(n,i,s){switch(i.tag){case 3:bh(i),mi();break;case 5:Bp(i);break;case 1:Bt(i.type)&&Vl(i);break;case 4:Su(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;qe(Kl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(qe(et,et.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?Eh(n,i,s):(qe(et,et.current&1),n=Qn(n,i,s),n!==null?n.sibling:null);qe(et,et.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(n.flags&128)!==0){if(c)return Th(n,i,s);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(et,et.current),c)break;return null;case 22:case 23:return i.lanes=0,wh(n,i,s)}return Qn(n,i,s)}var Rh,Hu,Nh,Ih;Rh=function(n,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Hu=function(){},Nh=function(n,i,s,c){var h=n.memoizedProps;if(h!==c){n=i.stateNode,Dr(_n.current);var x=null;switch(s){case"input":h=Pn(n,h),c=Pn(n,c),x=[];break;case"select":h=E({},h,{value:void 0}),c=E({},c,{value:void 0}),x=[];break;case"textarea":h=Mt(n,h),c=Mt(n,c),x=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Fl)}wt(s,c);var k;s=null;for(U in h)if(!c.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var T=h[U];for(k in T)T.hasOwnProperty(k)&&(s||(s={}),s[k]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(l.hasOwnProperty(U)?x||(x=[]):(x=x||[]).push(U,null));for(U in c){var $=c[U];if(T=h!=null?h[U]:void 0,c.hasOwnProperty(U)&&$!==T&&($!=null||T!=null))if(U==="style")if(T){for(k in T)!T.hasOwnProperty(k)||$&&$.hasOwnProperty(k)||(s||(s={}),s[k]="");for(k in $)$.hasOwnProperty(k)&&T[k]!==$[k]&&(s||(s={}),s[k]=$[k])}else s||(x||(x=[]),x.push(U,s)),s=$;else U==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,T=T?T.__html:void 0,$!=null&&T!==$&&(x=x||[]).push(U,$)):U==="children"?typeof $!="string"&&typeof $!="number"||(x=x||[]).push(U,""+$):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(l.hasOwnProperty(U)?($!=null&&U==="onScroll"&&Je("scroll",n),x||T===$||(x=[])):(x=x||[]).push(U,$))}s&&(x=x||[]).push("style",s);var U=x;(i.updateQueue=U)&&(i.flags|=4)}},Ih=function(n,i,s,c){s!==c&&(i.flags|=4)};function Ao(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Rt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function vw(n,i,s){var c=i.pendingProps;switch(fu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(i),null;case 1:return Bt(i.type)&&Ul(),Rt(i),null;case 3:return c=i.stateNode,vi(),Ke(Ft),Ke(jt),Eu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Gl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(tc(Sn),Sn=null))),Hu(n,i),Rt(i),null;case 5:bu(i);var h=Dr(To.current);if(s=i.type,n!==null&&i.stateNode!=null)Nh(n,i,s,c,h),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Rt(i),null}if(n=Dr(_n.current),Gl(i)){c=i.stateNode,s=i.type;var x=i.memoizedProps;switch(c[$n]=i,c[So]=x,n=(i.mode&1)!==0,s){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":_t(c,x),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Je("invalid",c);break;case"textarea":un(c,x),Je("invalid",c)}wt(s,x),h=null;for(var k in x)if(x.hasOwnProperty(k)){var T=x[k];k==="children"?typeof T=="string"?c.textContent!==T&&(x.suppressHydrationWarning!==!0&&Ml(c.textContent,T,n),h=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(x.suppressHydrationWarning!==!0&&Ml(c.textContent,T,n),h=["children",""+T]):l.hasOwnProperty(k)&&T!=null&&k==="onScroll"&&Je("scroll",c)}switch(s){case"input":Ct(c),Et(c,x,!0);break;case"textarea":Ct(c),xl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Fl)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{k=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=k.createElement(s,{is:c.is}):(n=k.createElement(s),s==="select"&&(k=n,c.multiple?k.multiple=!0:c.size&&(k.size=c.size))):n=k.createElementNS(n,s),n[$n]=i,n[So]=c,Rh(n,i,!1,!1),i.stateNode=n;e:{switch(k=An(s,c),s){case"dialog":Je("cancel",n),Je("close",n),h=c;break;case"iframe":case"object":case"embed":Je("load",n),h=c;break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],n);h=c;break;case"source":Je("error",n),h=c;break;case"img":case"image":case"link":Je("error",n),Je("load",n),h=c;break;case"details":Je("toggle",n),h=c;break;case"input":_t(n,c),h=Pn(n,c),Je("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=E({},c,{value:void 0}),Je("invalid",n);break;case"textarea":un(n,c),h=Mt(n,c),Je("invalid",n);break;default:h=c}wt(s,h),T=h;for(x in T)if(T.hasOwnProperty(x)){var $=T[x];x==="style"?er(n,$):x==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Pe(n,$)):x==="children"?typeof $=="string"?(s!=="textarea"||$!=="")&&De(n,$):typeof $=="number"&&De(n,""+$):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(l.hasOwnProperty(x)?$!=null&&x==="onScroll"&&Je("scroll",n):$!=null&&L(n,x,$,k))}switch(s){case"input":Ct(n),Et(n,c,!1);break;case"textarea":Ct(n),xl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ke(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?it(n,!!c.multiple,x,!1):c.defaultValue!=null&&it(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Fl)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Rt(i),null;case 6:if(n&&i.stateNode!=null)Ih(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=Dr(To.current),Dr(_n.current),Gl(i)){if(c=i.stateNode,s=i.memoizedProps,c[$n]=i,(x=c.nodeValue!==s)&&(n=Xt,n!==null))switch(n.tag){case 3:Ml(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ml(c.nodeValue,s,(n.mode&1)!==0)}x&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[$n]=i,i.stateNode=c}return Rt(i),null;case 13:if(Ke(et),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&Zt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Lp(),mi(),i.flags|=98560,x=!1;else if(x=Gl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[$n]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Rt(i),x=!1}else Sn!==null&&(tc(Sn),Sn=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(et.current&1)!==0?ft===0&&(ft=3):ic())),i.updateQueue!==null&&(i.flags|=4),Rt(i),null);case 4:return vi(),Hu(n,i),n===null&&wo(i.stateNode.containerInfo),Rt(i),null;case 10:return xu(i.type._context),Rt(i),null;case 17:return Bt(i.type)&&Ul(),Rt(i),null;case 19:if(Ke(et),x=i.memoizedState,x===null)return Rt(i),null;if(c=(i.flags&128)!==0,k=x.rendering,k===null)if(c)Ao(x,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=Zl(n),k!==null){for(i.flags|=128,Ao(x,!1),c=k.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)x=s,n=c,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return qe(et,et.current&1|2),i.child}n=n.sibling}x.tail!==null&&ot()>bi&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304)}else{if(!c)if(n=Zl(k),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ao(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Xe)return Rt(i),null}else 2*ot()-x.renderingStartTime>bi&&s!==1073741824&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304);x.isBackwards?(k.sibling=i.child,i.child=k):(s=x.last,s!==null?s.sibling=k:i.child=k,x.last=k)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=ot(),i.sibling=null,s=et.current,qe(et,c?s&1|2:s&1),i):(Rt(i),null);case 22:case 23:return rc(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(en&1073741824)!==0&&(Rt(i),i.subtreeFlags&6&&(i.flags|=8192)):Rt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function ww(n,i){switch(fu(i),i.tag){case 1:return Bt(i.type)&&Ul(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vi(),Ke(Ft),Ke(jt),Eu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return bu(i),null;case 13:if(Ke(et),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));mi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ke(et),null;case 4:return vi(),null;case 10:return xu(i.type._context),null;case 22:case 23:return rc(),null;case 24:return null;default:return null}}var as=!1,Nt=!1,kw=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ki(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){nt(n,i,c)}else s.current=null}function qu(n,i,s){try{s()}catch(c){nt(n,i,c)}}var Ph=!1;function Sw(n,i){if(ru=Rl,n=up(),Ka(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var k=0,T=-1,$=-1,U=0,Y=0,Z=n,Q=null;t:for(;;){for(var de;Z!==s||h!==0&&Z.nodeType!==3||(T=k+h),Z!==x||c!==0&&Z.nodeType!==3||($=k+c),Z.nodeType===3&&(k+=Z.nodeValue.length),(de=Z.firstChild)!==null;)Q=Z,Z=de;for(;;){if(Z===n)break t;if(Q===s&&++U===h&&(T=k),Q===x&&++Y===c&&($=k),(de=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=de}s=T===-1||$===-1?null:{start:T,end:$}}else s=null}s=s||{start:0,end:0}}else s=null;for(iu={focusedElem:n,selectionRange:s},Rl=!1,fe=i;fe!==null;)if(i=fe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,fe=n;else for(;fe!==null;){i=fe;try{var pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,lt=pe.memoizedState,O=i.stateNode,_=O.getSnapshotBeforeUpdate(i.elementType===i.type?he:bn(i.type,he),lt);O.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(te){nt(i,i.return,te)}if(n=i.sibling,n!==null){n.return=i.return,fe=n;break}fe=i.return}return pe=Ph,Ph=!1,pe}function Lo(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var x=h.destroy;h.destroy=void 0,x!==void 0&&qu(i,s,x)}h=h.next}while(h!==c)}}function us(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function Wu(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function Ah(n){var i=n.alternate;i!==null&&(n.alternate=null,Ah(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[$n],delete i[So],delete i[au],delete i[iw],delete i[ow])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Lh(n){return n.tag===5||n.tag===3||n.tag===4}function $h(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lh(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Gu(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Fl));else if(c!==4&&(n=n.child,n!==null))for(Gu(n,i,s),n=n.sibling;n!==null;)Gu(n,i,s),n=n.sibling}function Ju(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Ju(n,i,s),n=n.sibling;n!==null;)Ju(n,i,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,i,s){for(s=s.child;s!==null;)_h(n,i,s),s=s.sibling}function _h(n,i,s){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Sl,s)}catch{}switch(s.tag){case 5:Nt||ki(s,i);case 6:var c=kt,h=Cn;kt=null,pr(n,i,s),kt=c,Cn=h,kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):kt.removeChild(s.stateNode));break;case 18:kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?su(n.parentNode,s):n.nodeType===1&&su(n,s),co(n)):su(kt,s.stateNode));break;case 4:c=kt,h=Cn,kt=s.stateNode.containerInfo,Cn=!0,pr(n,i,s),kt=c,Cn=h;break;case 0:case 11:case 14:case 15:if(!Nt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var x=h,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&qu(s,i,k),h=h.next}while(h!==c)}pr(n,i,s);break;case 1:if(!Nt&&(ki(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(T){nt(s,i,T)}pr(n,i,s);break;case 21:pr(n,i,s);break;case 22:s.mode&1?(Nt=(c=Nt)||s.memoizedState!==null,pr(n,i,s),Nt=c):pr(n,i,s);break;default:pr(n,i,s)}}function zh(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new kw),i.forEach(function(c){var h=Pw.bind(null,n,c);s.has(c)||(s.add(c),c.then(h,h))})}}function En(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var x=n,k=i,T=k;e:for(;T!==null;){switch(T.tag){case 5:kt=T.stateNode,Cn=!1;break e;case 3:kt=T.stateNode.containerInfo,Cn=!0;break e;case 4:kt=T.stateNode.containerInfo,Cn=!0;break e}T=T.return}if(kt===null)throw Error(r(160));_h(x,k,h),kt=null,Cn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(U){nt(h,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Dh(i,n),i=i.sibling}function Dh(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(En(i,n),Dn(n),c&4){try{Lo(3,n,n.return),us(3,n)}catch(he){nt(n,n.return,he)}try{Lo(5,n,n.return)}catch(he){nt(n,n.return,he)}}break;case 1:En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return);break;case 5:if(En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return),n.flags&32){var h=n.stateNode;try{De(h,"")}catch(he){nt(n,n.return,he)}}if(c&4&&(h=n.stateNode,h!=null)){var x=n.memoizedProps,k=s!==null?s.memoizedProps:x,T=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{T==="input"&&x.type==="radio"&&x.name!=null&&_e(h,x),An(T,k);var U=An(T,x);for(k=0;k<$.length;k+=2){var Y=$[k],Z=$[k+1];Y==="style"?er(h,Z):Y==="dangerouslySetInnerHTML"?Pe(h,Z):Y==="children"?De(h,Z):L(h,Y,Z,U)}switch(T){case"input":st(h,x);break;case"textarea":yl(h,x);break;case"select":var Q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!x.multiple;var de=x.value;de!=null?it(h,!!x.multiple,de,!1):Q!==!!x.multiple&&(x.defaultValue!=null?it(h,!!x.multiple,x.defaultValue,!0):it(h,!!x.multiple,x.multiple?[]:"",!1))}h[So]=x}catch(he){nt(n,n.return,he)}}break;case 6:if(En(i,n),Dn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,x=n.memoizedProps;try{h.nodeValue=x}catch(he){nt(n,n.return,he)}}break;case 3:if(En(i,n),Dn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{co(i.containerInfo)}catch(he){nt(n,n.return,he)}break;case 4:En(i,n),Dn(n);break;case 13:En(i,n),Dn(n),h=n.child,h.flags&8192&&(x=h.memoizedState!==null,h.stateNode.isHidden=x,!x||h.alternate!==null&&h.alternate.memoizedState!==null||(Yu=ot())),c&4&&zh(n);break;case 22:if(Y=s!==null&&s.memoizedState!==null,n.mode&1?(Nt=(U=Nt)||Y,En(i,n),Nt=U):En(i,n),Dn(n),c&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!Y&&(n.mode&1)!==0)for(fe=n,Y=n.child;Y!==null;){for(Z=fe=Y;fe!==null;){switch(Q=fe,de=Q.child,Q.tag){case 0:case 11:case 14:case 15:Lo(4,Q,Q.return);break;case 1:ki(Q,Q.return);var pe=Q.stateNode;if(typeof pe.componentWillUnmount=="function"){c=Q,s=Q.return;try{i=c,pe.props=i.memoizedProps,pe.state=i.memoizedState,pe.componentWillUnmount()}catch(he){nt(c,s,he)}}break;case 5:ki(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Fh(Z);continue}}de!==null?(de.return=Q,fe=de):Fh(Z)}Y=Y.sibling}e:for(Y=null,Z=n;;){if(Z.tag===5){if(Y===null){Y=Z;try{h=Z.stateNode,U?(x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(T=Z.stateNode,$=Z.memoizedProps.style,k=$!=null&&$.hasOwnProperty("display")?$.display:null,T.style.display=cn("display",k))}catch(he){nt(n,n.return,he)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=U?"":Z.memoizedProps}catch(he){nt(n,n.return,he)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===n)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===n)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===n)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:En(i,n),Dn(n),c&4&&zh(n);break;case 21:break;default:En(i,n),Dn(n)}}function Dn(n){var i=n.flags;if(i&2){try{e:{for(var s=n.return;s!==null;){if(Lh(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(De(h,""),c.flags&=-33);var x=$h(n);Ju(n,x,h);break;case 3:case 4:var k=c.stateNode.containerInfo,T=$h(n);Gu(n,T,k);break;default:throw Error(r(161))}}catch($){nt(n,n.return,$)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function bw(n,i,s){fe=n,Oh(n)}function Oh(n,i,s){for(var c=(n.mode&1)!==0;fe!==null;){var h=fe,x=h.child;if(h.tag===22&&c){var k=h.memoizedState!==null||as;if(!k){var T=h.alternate,$=T!==null&&T.memoizedState!==null||Nt;T=as;var U=Nt;if(as=k,(Nt=$)&&!U)for(fe=h;fe!==null;)k=fe,$=k.child,k.tag===22&&k.memoizedState!==null?Bh(h):$!==null?($.return=k,fe=$):Bh(h);for(;x!==null;)fe=x,Oh(x),x=x.sibling;fe=h,as=T,Nt=U}Mh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,fe=x):Mh(n)}}function Mh(n){for(;fe!==null;){var i=fe;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Nt||us(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Nt)if(s===null)c.componentDidMount();else{var h=i.elementType===i.type?s.memoizedProps:bn(i.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&Fp(i,x,c);break;case 3:var k=i.updateQueue;if(k!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Fp(i,k,s)}break;case 5:var T=i.stateNode;if(s===null&&i.flags&4){s=T;var $=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&s.focus();break;case"img":$.src&&(s.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var Y=U.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&co(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Nt||i.flags&512&&Wu(i)}catch(Q){nt(i,i.return,Q)}}if(i===n){fe=null;break}if(s=i.sibling,s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Fh(n){for(;fe!==null;){var i=fe;if(i===n){fe=null;break}var s=i.sibling;if(s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Bh(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{us(4,i)}catch($){nt(i,s,$)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch($){nt(i,h,$)}}var x=i.return;try{Wu(i)}catch($){nt(i,x,$)}break;case 5:var k=i.return;try{Wu(i)}catch($){nt(i,k,$)}}}catch($){nt(i,i.return,$)}if(i===n){fe=null;break}var T=i.sibling;if(T!==null){T.return=i.return,fe=T;break}fe=i.return}}var Cw=Math.ceil,cs=M.ReactCurrentDispatcher,Ku=M.ReactCurrentOwner,mn=M.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,St=0,en=0,Si=ar(0),ft=0,$o=null,Mr=0,ds=0,Qu=0,_o=null,Vt=null,Yu=0,bi=1/0,Yn=null,fs=!1,Xu=null,hr=null,ps=!1,mr=null,hs=0,zo=0,Zu=null,ms=-1,gs=0;function Dt(){return(Oe&6)!==0?ot():ms!==-1?ms:ms=ot()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&St!==0?St&-St:sw.transition!==null?(gs===0&&(gs=$f()),gs):(n=Be,n!==0||(n=window.event,n=n===void 0?16:Vf(n.type)),n)}function jn(n,i,s,c){if(50<zo)throw zo=0,Zu=null,Error(r(185));oo(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(ds|=s),ft===4&&yr(n,St)),Ht(n,c),s===1&&Oe===0&&(i.mode&1)===0&&(bi=ot()+500,Hl&&cr()))}function Ht(n,i){var s=n.callbackNode;s1(n,i);var c=El(n,n===ht?St:0);if(c===0)s!==null&&Pf(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Pf(s),i===1)n.tag===0?lw(Vh.bind(null,n)):Rp(Vh.bind(null,n)),nw(function(){(Oe&6)===0&&cr()}),s=null;else{switch(_f(c)){case 1:s=Aa;break;case 4:s=Af;break;case 16:s=kl;break;case 536870912:s=Lf;break;default:s=kl}s=Yh(s,Uh.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function Uh(n,i){if(ms=-1,gs=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Ci()&&n.callbackNode!==s)return null;var c=El(n,n===ht?St:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=ys(n,c);else{i=c;var h=Oe;Oe|=2;var x=qh();(ht!==n||St!==i)&&(Yn=null,bi=ot()+500,Br(n,i));do try{Tw();break}catch(T){Hh(n,T)}while(!0);yu(),cs.current=x,Oe=h,at!==null?i=0:(ht=null,St=0,i=ft)}if(i!==0){if(i===2&&(h=La(n),h!==0&&(c=h,i=ec(n,h))),i===1)throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;if(i===6)yr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!Ew(h)&&(i=ys(n,c),i===2&&(x=La(n),x!==0&&(c=x,i=ec(n,x))),i===1))throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;switch(n.finishedWork=h,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:Ur(n,Vt,Yn);break;case 3:if(yr(n,c),(c&130023424)===c&&(i=Yu+500-ot(),10<i)){if(El(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),i);break}Ur(n,Vt,Yn);break;case 4:if(yr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,h=-1;0<c;){var k=31-wn(c);x=1<<k,k=i[k],k>h&&(h=k),c&=~x}if(c=h,c=ot()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Cw(c/1960))-c,10<c){n.timeoutHandle=lu(Ur.bind(null,n,Vt,Yn),c);break}Ur(n,Vt,Yn);break;case 5:Ur(n,Vt,Yn);break;default:throw Error(r(329))}}}return Ht(n,ot()),n.callbackNode===s?Uh.bind(null,n):null}function ec(n,i){var s=_o;return n.current.memoizedState.isDehydrated&&(Br(n,i).flags|=256),n=ys(n,i),n!==2&&(i=Vt,Vt=s,i!==null&&tc(i)),n}function tc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function Ew(n){for(var i=n;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],x=h.getSnapshot;h=h.value;try{if(!kn(x(),h))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function yr(n,i){for(i&=~Qu,i&=~ds,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var s=31-wn(i),c=1<<s;n[s]=-1,i&=~c}}function Vh(n){if((Oe&6)!==0)throw Error(r(327));Ci();var i=El(n,0);if((i&1)===0)return Ht(n,ot()),null;var s=ys(n,i);if(n.tag!==0&&s===2){var c=La(n);c!==0&&(i=c,s=ec(n,c))}if(s===1)throw s=$o,Br(n,0),yr(n,i),Ht(n,ot()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Ur(n,Vt,Yn),Ht(n,ot()),null}function nc(n,i){var s=Oe;Oe|=1;try{return n(i)}finally{Oe=s,Oe===0&&(bi=ot()+500,Hl&&cr())}}function Fr(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Ci();var i=Oe;Oe|=1;var s=mn.transition,c=Be;try{if(mn.transition=null,Be=1,n)return n()}finally{Be=c,mn.transition=s,Oe=i,(Oe&6)===0&&cr()}}function rc(){en=Si.current,Ke(Si)}function Br(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,tw(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(fu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Ul();break;case 3:vi(),Ke(Ft),Ke(jt),Eu();break;case 5:bu(c);break;case 4:vi();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:xu(c.type._context);break;case 22:case 23:rc()}s=s.return}if(ht=n,at=n=xr(n.current,null),St=en=i,ft=0,$o=null,Qu=ds=Mr=0,Vt=_o=null,zr!==null){for(i=0;i<zr.length;i++)if(s=zr[i],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,x=s.pending;if(x!==null){var k=x.next;x.next=h,c.next=k}s.pending=c}zr=null}return n}function Hh(n,i){do{var s=at;try{if(yu(),es.current=is,ts){for(var c=tt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ts=!1}if(Or=0,pt=dt=tt=null,Ro=!1,No=0,Ku.current=null,s===null||s.return===null){ft=1,$o=i,at=null;break}e:{var x=n,k=s.return,T=s,$=i;if(i=St,T.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var U=$,Y=T,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var de=mh(k);if(de!==null){de.flags&=-257,gh(de,k,T,x,i),de.mode&1&&hh(x,U,i),i=de,$=U;var pe=i.updateQueue;if(pe===null){var he=new Set;he.add($),i.updateQueue=he}else pe.add($);break e}else{if((i&1)===0){hh(x,U,i),ic();break e}$=Error(r(426))}}else if(Xe&&T.mode&1){var lt=mh(k);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),gh(lt,k,T,x,i),mu(wi($,T));break e}}x=$=wi($,T),ft!==4&&(ft=2),_o===null?_o=[x]:_o.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var O=fh(x,$,i);Mp(x,O);break e;case 1:T=$;var _=x.type,F=x.stateNode;if((x.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(hr===null||!hr.has(F)))){x.flags|=65536,i&=-i,x.lanes|=i;var te=ph(x,T,i);Mp(x,te);break e}}x=x.return}while(x!==null)}Gh(s)}catch(ge){i=ge,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function qh(){var n=cs.current;return cs.current=is,n===null?is:n}function ic(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Mr&268435455)===0&&(ds&268435455)===0||yr(ht,St)}function ys(n,i){var s=Oe;Oe|=2;var c=qh();(ht!==n||St!==i)&&(Yn=null,Br(n,i));do try{jw();break}catch(h){Hh(n,h)}while(!0);if(yu(),Oe=s,cs.current=c,at!==null)throw Error(r(261));return ht=null,St=0,ft}function jw(){for(;at!==null;)Wh(at)}function Tw(){for(;at!==null&&!X0();)Wh(at)}function Wh(n){var i=Qh(n.alternate,n,en);n.memoizedProps=n.pendingProps,i===null?Gh(n):at=i,Ku.current=null}function Gh(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=vw(s,i,en),s!==null){at=s;return}}else{if(s=ww(s,i),s!==null){s.flags&=32767,at=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ft=6,at=null;return}}if(i=i.sibling,i!==null){at=i;return}at=i=n}while(i!==null);ft===0&&(ft=5)}function Ur(n,i,s){var c=Be,h=mn.transition;try{mn.transition=null,Be=1,Rw(n,i,s,c)}finally{mn.transition=h,Be=c}return null}function Rw(n,i,s,c){do Ci();while(mr!==null);if((Oe&6)!==0)throw Error(r(327));s=n.finishedWork;var h=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=s.lanes|s.childLanes;if(a1(n,x),n===ht&&(at=ht=null,St=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ps||(ps=!0,Yh(kl,function(){return Ci(),null})),x=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||x){x=mn.transition,mn.transition=null;var k=Be;Be=1;var T=Oe;Oe|=4,Ku.current=null,Sw(n,s),Dh(s,n),J1(iu),Rl=!!ru,iu=ru=null,n.current=s,bw(s),Z0(),Oe=T,Be=k,mn.transition=x}else n.current=s;if(ps&&(ps=!1,mr=n,hs=h),x=n.pendingLanes,x===0&&(hr=null),n1(s.stateNode),Ht(n,ot()),i!==null)for(c=n.onRecoverableError,s=0;s<i.length;s++)h=i[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(fs)throw fs=!1,n=Xu,Xu=null,n;return(hs&1)!==0&&n.tag!==0&&Ci(),x=n.pendingLanes,(x&1)!==0?n===Zu?zo++:(zo=0,Zu=n):zo=0,cr(),null}function Ci(){if(mr!==null){var n=_f(hs),i=mn.transition,s=Be;try{if(mn.transition=null,Be=16>n?16:n,mr===null)var c=!1;else{if(n=mr,mr=null,hs=0,(Oe&6)!==0)throw Error(r(331));var h=Oe;for(Oe|=4,fe=n.current;fe!==null;){var x=fe,k=x.child;if((fe.flags&16)!==0){var T=x.deletions;if(T!==null){for(var $=0;$<T.length;$++){var U=T[$];for(fe=U;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Lo(8,Y,x)}var Z=Y.child;if(Z!==null)Z.return=Y,fe=Z;else for(;fe!==null;){Y=fe;var Q=Y.sibling,de=Y.return;if(Ah(Y),Y===U){fe=null;break}if(Q!==null){Q.return=de,fe=Q;break}fe=de}}}var pe=x.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var lt=he.sibling;he.sibling=null,he=lt}while(he!==null)}}fe=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,fe=k;else e:for(;fe!==null;){if(x=fe,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Lo(9,x,x.return)}var O=x.sibling;if(O!==null){O.return=x.return,fe=O;break e}fe=x.return}}var _=n.current;for(fe=_;fe!==null;){k=fe;var F=k.child;if((k.subtreeFlags&2064)!==0&&F!==null)F.return=k,fe=F;else e:for(k=_;fe!==null;){if(T=fe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:us(9,T)}}catch(ge){nt(T,T.return,ge)}if(T===k){fe=null;break e}var te=T.sibling;if(te!==null){te.return=T.return,fe=te;break e}fe=T.return}}if(Oe=h,cr(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Sl,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=i}}return!1}function Jh(n,i,s){i=wi(s,i),i=fh(n,i,1),n=fr(n,i,1),i=Dt(),n!==null&&(oo(n,1,i),Ht(n,i))}function nt(n,i,s){if(n.tag===3)Jh(n,n,s);else for(;i!==null;){if(i.tag===3){Jh(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){n=wi(s,n),n=ph(i,n,1),i=fr(i,n,1),n=Dt(),i!==null&&(oo(i,1,n),Ht(i,n));break}}i=i.return}}function Nw(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),i=Dt(),n.pingedLanes|=n.suspendedLanes&s,ht===n&&(St&s)===s&&(ft===4||ft===3&&(St&130023424)===St&&500>ot()-Yu?Br(n,0):Qu|=s),Ht(n,i)}function Kh(n,i){i===0&&((n.mode&1)===0?i=1:(i=Cl,Cl<<=1,(Cl&130023424)===0&&(Cl=4194304)));var s=Dt();n=Jn(n,i),n!==null&&(oo(n,i,s),Ht(n,s))}function Iw(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Kh(n,s)}function Pw(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Kh(n,s)}var Qh;Qh=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||Ft.current)Ut=!0;else{if((n.lanes&s)===0&&(i.flags&128)===0)return Ut=!1,xw(n,i,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(i.flags&1048576)!==0&&Np(i,Wl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;ss(n,i),n=i.pendingProps;var h=fi(i,jt.current);xi(i,s),h=Ru(null,i,c,n,h,s);var x=Nu();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Bt(c)?(x=!0,Vl(i)):x=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,ku(i),h.updater=os,i.stateNode=h,h._reactInternals=i,_u(i,c,n,s),i=Mu(null,i,c,!0,x,s)):(i.tag=0,Xe&&x&&du(i),zt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(ss(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=Lw(c),n=bn(c,n),h){case 0:i=Ou(null,i,c,n,s);break e;case 1:i=Sh(null,i,c,n,s);break e;case 11:i=yh(null,i,c,n,s);break e;case 14:i=xh(null,i,c,bn(c.type,n),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Ou(n,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Sh(n,i,c,h,s);case 3:e:{if(bh(i),n===null)throw Error(r(387));c=i.pendingProps,x=i.memoizedState,h=x.element,Op(n,i),Xl(i,c,null,s);var k=i.memoizedState;if(c=k.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){h=wi(Error(r(423)),i),i=Ch(n,i,c,s,h);break e}else if(c!==h){h=wi(Error(r(424)),i),i=Ch(n,i,c,s,h);break e}else for(Zt=sr(i.stateNode.containerInfo.firstChild),Xt=i,Xe=!0,Sn=null,s=zp(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(mi(),c===h){i=Qn(n,i,s);break e}zt(n,i,c,s)}i=i.child}return i;case 5:return Bp(i),n===null&&hu(i),c=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,k=h.children,ou(c,h)?k=null:x!==null&&ou(c,x)&&(i.flags|=32),kh(n,i),zt(n,i,k,s),i.child;case 6:return n===null&&hu(i),null;case 13:return Eh(n,i,s);case 4:return Su(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=gi(i,null,c,s):zt(n,i,c,s),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),yh(n,i,c,h,s);case 7:return zt(n,i,i.pendingProps,s),i.child;case 8:return zt(n,i,i.pendingProps.children,s),i.child;case 12:return zt(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,x=i.memoizedProps,k=h.value,qe(Kl,c._currentValue),c._currentValue=k,x!==null)if(kn(x.value,k)){if(x.children===h.children&&!Ft.current){i=Qn(n,i,s);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var T=x.dependencies;if(T!==null){k=x.child;for(var $=T.firstContext;$!==null;){if($.context===c){if(x.tag===1){$=Kn(-1,s&-s),$.tag=2;var U=x.updateQueue;if(U!==null){U=U.shared;var Y=U.pending;Y===null?$.next=$:($.next=Y.next,Y.next=$),U.pending=$}}x.lanes|=s,$=x.alternate,$!==null&&($.lanes|=s),vu(x.return,s,i),T.lanes|=s;break}$=$.next}}else if(x.tag===10)k=x.type===i.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(r(341));k.lanes|=s,T=k.alternate,T!==null&&(T.lanes|=s),vu(k,s,i),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===i){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}zt(n,i,h.children,s),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,xi(i,s),h=pn(h),c=c(h),i.flags|=1,zt(n,i,c,s),i.child;case 14:return c=i.type,h=bn(c,i.pendingProps),h=bn(c.type,h),xh(n,i,c,h,s);case 15:return vh(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),ss(n,i),i.tag=1,Bt(c)?(n=!0,Vl(i)):n=!1,xi(i,s),ch(i,c,h),_u(i,c,h,s),Mu(null,i,c,!0,n,s);case 19:return Th(n,i,s);case 22:return wh(n,i,s)}throw Error(r(156,i.tag))};function Yh(n,i){return If(n,i)}function Aw(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,i,s,c){return new Aw(n,i,s,c)}function oc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Lw(n){if(typeof n=="function")return oc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===B)return 14}return 2}function xr(n,i){var s=n.alternate;return s===null?(s=gn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function xs(n,i,s,c,h,x){var k=2;if(c=n,typeof n=="function")oc(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case q:return Vr(s.children,h,x,i);case K:k=8,h|=8;break;case le:return n=gn(12,s,i,h|2),n.elementType=le,n.lanes=x,n;case oe:return n=gn(13,s,i,h),n.elementType=oe,n.lanes=x,n;case re:return n=gn(19,s,i,h),n.elementType=re,n.lanes=x,n;case ue:return vs(s,h,x,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:k=10;break e;case ne:k=9;break e;case se:k=11;break e;case B:k=14;break e;case ae:k=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=gn(k,s,i,h),i.elementType=n,i.type=c,i.lanes=x,i}function Vr(n,i,s,c){return n=gn(7,n,c,i),n.lanes=s,n}function vs(n,i,s,c){return n=gn(22,n,c,i),n.elementType=ue,n.lanes=s,n.stateNode={isHidden:!1},n}function lc(n,i,s){return n=gn(6,n,null,i),n.lanes=s,n}function sc(n,i,s){return i=gn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function $w(n,i,s,c,h){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function ac(n,i,s,c,h,x,k,T,$){return n=new $w(n,i,s,T,$),i===1?(i=1,x===!0&&(i|=8)):i=0,x=gn(3,null,null,i),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ku(x),n}function _w(n,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:c==null?null:""+c,children:n,containerInfo:i,implementation:s}}function Xh(n){if(!n)return ur;n=n._reactInternals;e:{if(Pr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Bt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Bt(s))return jp(n,s,i)}return i}function Zh(n,i,s,c,h,x,k,T,$){return n=ac(s,c,!0,n,h,x,k,T,$),n.context=Xh(null),s=n.current,c=Dt(),h=gr(s),x=Kn(c,h),x.callback=i??null,fr(s,x,h),n.current.lanes=h,oo(n,h,c),Ht(n,c),n}function ws(n,i,s,c){var h=i.current,x=Dt(),k=gr(h);return s=Xh(s),i.context===null?i.context=s:i.pendingContext=s,i=Kn(x,k),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=fr(h,i,k),n!==null&&(jn(n,h,k,x),Yl(n,h,k)),k}function ks(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function em(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function uc(n,i){em(n,i),(n=n.alternate)&&em(n,i)}function zw(){return null}var tm=typeof reportError=="function"?reportError:function(n){console.error(n)};function cc(n){this._internalRoot=n}Ss.prototype.render=cc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));ws(n,i,null,null)},Ss.prototype.unmount=cc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Fr(function(){ws(null,n,null,null)}),i[Hn]=null}};function Ss(n){this._internalRoot=n}Ss.prototype.unstable_scheduleHydration=function(n){if(n){var i=Of();n={blockedOn:null,target:n,priority:i};for(var s=0;s<ir.length&&i!==0&&i<ir[s].priority;s++);ir.splice(s,0,n),s===0&&Bf(n)}};function dc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function bs(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function nm(){}function Dw(n,i,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var U=ks(k);x.call(U)}}var k=Zh(i,c,n,0,null,!1,!1,"",nm);return n._reactRootContainer=k,n[Hn]=k.current,wo(n.nodeType===8?n.parentNode:n),Fr(),k}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var T=c;c=function(){var U=ks($);T.call(U)}}var $=ac(n,0,!1,null,null,!1,!1,"",nm);return n._reactRootContainer=$,n[Hn]=$.current,wo(n.nodeType===8?n.parentNode:n),Fr(function(){ws(i,$,s,c)}),$}function Cs(n,i,s,c,h){var x=s._reactRootContainer;if(x){var k=x;if(typeof h=="function"){var T=h;h=function(){var $=ks(k);T.call($)}}ws(i,k,n,h)}else k=Dw(s,i,n,h,c);return ks(k)}zf=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=io(i.pendingLanes);s!==0&&(_a(i,s|1),Ht(i,ot()),(Oe&6)===0&&(bi=ot()+500,cr()))}break;case 13:Fr(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),uc(n,1)}},za=function(n){if(n.tag===13){var i=Jn(n,134217728);if(i!==null){var s=Dt();jn(i,n,134217728,s)}uc(n,134217728)}},Df=function(n){if(n.tag===13){var i=gr(n),s=Jn(n,i);if(s!==null){var c=Dt();jn(s,n,i,c)}uc(n,i)}},Of=function(){return Be},Mf=function(n,i){var s=Be;try{return Be=n,i()}finally{Be=s}},Ra=function(n,i,s){switch(i){case"input":if(st(n,s),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var h=Bl(c);if(!h)throw Error(r(90));Ie(c),st(c,h)}}}break;case"textarea":yl(n,s);break;case"select":i=s.value,i!=null&&it(n,!!s.multiple,i,!1)}},bf=nc,Cf=Fr;var Ow={usingClientEntryPoint:!1,Events:[bo,ci,Bl,kf,Sf,nc]},Do={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Mw={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Rf(n),n===null?null:n.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||zw,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 Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{Sl=Es.inject(Mw),Ln=Es}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ow,qt.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dc(i))throw Error(r(200));return _w(n,i,null,s)},qt.createRoot=function(n,i){if(!dc(n))throw Error(r(299));var s=!1,c="",h=tm;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=ac(n,1,!1,null,null,s,!1,c,h),n[Hn]=i.current,wo(n.nodeType===8?n.parentNode:n),new cc(i)},qt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Rf(i),n=n===null?null:n.stateNode,n},qt.flushSync=function(n){return Fr(n)},qt.hydrate=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!0,s)},qt.hydrateRoot=function(n,i,s){if(!dc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",k=tm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),i=Zh(i,null,n,1,s??null,h,!1,x,k),n[Hn]=i.current,wo(n),c)for(n=0;n<c.length;n++)s=c[n],h=s._getVersion,h=h(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,h]:i.mutableSourceEagerHydrationData.push(s,h);return new Ss(i)},qt.render=function(n,i,s){if(!bs(i))throw Error(r(200));return Cs(null,n,i,!1,s)},qt.unmountComponentAtNode=function(n){if(!bs(n))throw Error(r(40));return n._reactRootContainer?(Fr(function(){Cs(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},qt.unstable_batchedUpdates=nc,qt.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!bs(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Cs(n,i,s,!1,c)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var am;function Gw(){if(am)return pc.exports;am=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pc.exports=Ww(),pc.exports}var um;function Jw(){if(um)return js;um=1;var e=Gw();return js.createRoot=e.createRoot,js.hydrateRoot=e.hydrateRoot,js}var Kw=Jw(),gc={exports:{}},Mo={};/**
|
|
32
|
+
`+x.stack}return{value:n,source:i,stack:h,digest:null}}function Ou(n,i,s){return{value:n,source:null,stack:s??null,digest:i??null}}function Mu(n,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var xw=typeof WeakMap=="function"?WeakMap:Map;function hh(n,i,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=i.value;return s.callback=function(){hs||(hs=!0,ec=c),Mu(n,i)},s}function mh(n,i,s){s=Kn(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=i.value;s.payload=function(){return c(h)},s.callback=function(){Mu(n,i)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Mu(n,i),typeof c!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var k=i.stack;this.componentDidCatch(i.value,{componentStack:k!==null?k:""})}),s}function gh(n,i,s){var c=n.pingCache;if(c===null){c=n.pingCache=new xw;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(s)||(h.add(s),n=Aw.bind(null,n,i,s),i.then(n,n))}function yh(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function xh(n,i,s,c,h){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=Kn(-1,1),i.tag=2,fr(s,i,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var vw=M.ReactCurrentOwner,Ut=!1;function zt(n,i,s,c){i.child=n===null?Op(i,null,s,c):gi(i,n.child,s,c)}function vh(n,i,s,c,h){s=s.render;var x=i.ref;return xi(i,h),c=Iu(n,i,s,c,x,h),s=Pu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&s&&pu(i),i.flags|=1,zt(n,i,c,h),i.child)}function wh(n,i,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!sc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=x,kh(n,i,x,c,h)):(n=ws(s.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(x=n.child,(n.lanes&h)===0){var k=x.memoizedProps;if(s=s.compare,s=s!==null?s:yo,s(k,c)&&n.ref===i.ref)return Qn(n,i,h)}return i.flags|=1,n=xr(x,c),n.ref=i.ref,n.return=i,i.child=n}function kh(n,i,s,c,h){if(n!==null){var x=n.memoizedProps;if(yo(x,c)&&n.ref===i.ref)if(Ut=!1,i.pendingProps=c=x,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ut=!0);else return i.lanes=n.lanes,Qn(n,i,h)}return Fu(n,i,s,c,h)}function Sh(n,i,s){var c=i.pendingProps,h=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(Si,tn),tn|=s;else{if((s&1073741824)===0)return n=x!==null?x.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,qe(Si,tn),tn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,qe(Si,tn),tn|=c}else x!==null?(c=x.baseLanes|s,i.memoizedState=null):c=s,qe(Si,tn),tn|=c;return zt(n,i,h,s),i.child}function bh(n,i){var s=i.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Fu(n,i,s,c,h){var x=Bt(s)?Lr:jt.current;return x=fi(i,x),xi(i,h),s=Iu(n,i,s,c,x,h),c=Pu(),n!==null&&!Ut?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~h,Qn(n,i,h)):(Xe&&c&&pu(i),i.flags|=1,zt(n,i,s,h),i.child)}function Ch(n,i,s,c,h){if(Bt(s)){var x=!0;ql(i)}else x=!1;if(xi(i,h),i.stateNode===null)us(n,i),fh(i,s,c),Du(i,s,c,h),c=!0;else if(n===null){var k=i.stateNode,T=i.memoizedProps;k.props=T;var $=k.context,U=s.contextType;typeof U=="object"&&U!==null?U=pn(U):(U=Bt(s)?Lr:jt.current,U=fi(i,U));var Y=s.getDerivedStateFromProps,Z=typeof Y=="function"||typeof k.getSnapshotBeforeUpdate=="function";Z||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==c||$!==U)&&ph(i,k,c,U),dr=!1;var Q=i.memoizedState;k.state=Q,es(i,c,k,h),$=i.memoizedState,T!==c||Q!==$||Ft.current||dr?(typeof Y=="function"&&(zu(i,s,Y,c),$=i.memoizedState),(T=dr||dh(i,s,T,c,Q,$,U))?(Z||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(i.flags|=4194308)):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=$),k.props=c,k.state=$,k.context=U,c=T):(typeof k.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{k=i.stateNode,Fp(n,i),T=i.memoizedProps,U=i.type===i.elementType?T:bn(i.type,T),k.props=U,Z=i.pendingProps,Q=k.context,$=s.contextType,typeof $=="object"&&$!==null?$=pn($):($=Bt(s)?Lr:jt.current,$=fi(i,$));var de=s.getDerivedStateFromProps;(Y=typeof de=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(T!==Z||Q!==$)&&ph(i,k,c,$),dr=!1,Q=i.memoizedState,k.state=Q,es(i,c,k,h);var pe=i.memoizedState;T!==Z||Q!==pe||Ft.current||dr?(typeof de=="function"&&(zu(i,s,de,c),pe=i.memoizedState),(U=dr||dh(i,s,U,c,Q,pe,$)||!1)?(Y||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(c,pe,$),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(c,pe,$)),typeof k.componentDidUpdate=="function"&&(i.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=pe),k.props=c,k.state=pe,k.context=$,c=U):(typeof k.componentDidUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&Q===n.memoizedState||(i.flags|=1024),c=!1)}return Bu(n,i,s,c,x,h)}function Bu(n,i,s,c,h,x){bh(n,i);var k=(i.flags&128)!==0;if(!c&&!k)return h&&Np(i,s,!1),Qn(n,i,x);c=i.stateNode,vw.current=i;var T=k&&typeof s.getDerivedStateFromError!="function"?null:c.render();return i.flags|=1,n!==null&&k?(i.child=gi(i,n.child,null,x),i.child=gi(i,null,T,x)):zt(n,i,T,x),i.memoizedState=c.state,h&&Np(i,s,!0),i.child}function Eh(n){var i=n.stateNode;i.pendingContext?Tp(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Tp(n,i.context,!1),Cu(n,i.containerInfo)}function jh(n,i,s,c,h){return mi(),yu(h),i.flags|=256,zt(n,i,s,c),i.child}var Uu={dehydrated:null,treeContext:null,retryLane:0};function Vu(n){return{baseLanes:n,cachePool:null,transitions:null}}function Th(n,i,s){var c=i.pendingProps,h=et.current,x=!1,k=(i.flags&128)!==0,T;if((T=k)||(T=n!==null&&n.memoizedState===null?!1:(h&2)!==0),T?(x=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),qe(et,h&1),n===null)return gu(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(k=c.children,n=c.fallback,x?(c=i.mode,x=i.child,k={mode:"hidden",children:k},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=k):x=ks(k,c,0,null),n=Vr(n,c,s,null),x.return=i,n.return=i,x.sibling=n,i.child=x,i.child.memoizedState=Vu(s),i.memoizedState=Uu,n):Hu(i,k));if(h=n.memoizedState,h!==null&&(T=h.dehydrated,T!==null))return ww(n,i,k,c,T,h,s);if(x){x=c.fallback,k=i.mode,h=n.child,T=h.sibling;var $={mode:"hidden",children:c.children};return(k&1)===0&&i.child!==h?(c=i.child,c.childLanes=0,c.pendingProps=$,i.deletions=null):(c=xr(h,$),c.subtreeFlags=h.subtreeFlags&14680064),T!==null?x=xr(T,x):(x=Vr(x,k,s,null),x.flags|=2),x.return=i,c.return=i,c.sibling=x,i.child=c,c=x,x=i.child,k=n.child.memoizedState,k=k===null?Vu(s):{baseLanes:k.baseLanes|s,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~s,i.memoizedState=Uu,c}return x=n.child,n=x.sibling,c=xr(x,{mode:"visible",children:c.children}),(i.mode&1)===0&&(c.lanes=s),c.return=i,c.sibling=null,n!==null&&(s=i.deletions,s===null?(i.deletions=[n],i.flags|=16):s.push(n)),i.child=c,i.memoizedState=null,c}function Hu(n,i){return i=ks({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function as(n,i,s,c){return c!==null&&yu(c),gi(i,n.child,null,s),n=Hu(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function ww(n,i,s,c,h,x,k){if(s)return i.flags&256?(i.flags&=-257,c=Ou(Error(r(422))),as(n,i,k,c)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(x=c.fallback,h=i.mode,c=ks({mode:"visible",children:c.children},h,0,null),x=Vr(x,h,k,null),x.flags|=2,c.return=i,x.return=i,c.sibling=x,i.child=c,(i.mode&1)!==0&&gi(i,n.child,null,k),i.child.memoizedState=Vu(k),i.memoizedState=Uu,x);if((i.mode&1)===0)return as(n,i,k,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var T=c.dgst;return c=T,x=Error(r(419)),c=Ou(x,c,void 0),as(n,i,k,c)}if(T=(k&n.childLanes)!==0,Ut||T){if(c=ht,c!==null){switch(k&-k){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|k))!==0?0:h,h!==0&&h!==x.retryLane&&(x.retryLane=h,Jn(n,h),jn(c,n,h,-1))}return lc(),c=Ou(Error(r(421))),as(n,i,k,c)}return h.data==="$?"?(i.flags|=128,i.child=n.child,i=Lw.bind(null,n),h._reactRetry=i,null):(n=x.treeContext,en=sr(h.nextSibling),Zt=i,Xe=!0,Sn=null,n!==null&&(dn[fn++]=Wn,dn[fn++]=Gn,dn[fn++]=$r,Wn=n.id,Gn=n.overflow,$r=i),i=Hu(i,c.children),i.flags|=4096,i)}function Rh(n,i,s){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),ku(n.return,i,s)}function qu(n,i,s,c,h){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(x.isBackwards=i,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=s,x.tailMode=h)}function Nh(n,i,s){var c=i.pendingProps,h=c.revealOrder,x=c.tail;if(zt(n,i,c.children,s),c=et.current,(c&2)!==0)c=c&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Rh(n,s,i);else if(n.tag===19)Rh(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(qe(et,c),(i.mode&1)===0)i.memoizedState=null;else switch(h){case"forwards":for(s=i.child,h=null;s!==null;)n=s.alternate,n!==null&&ts(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=i.child,i.child=null):(h=s.sibling,s.sibling=null),qu(i,!1,h,s,x);break;case"backwards":for(s=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&ts(n)===null){i.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}qu(i,!0,s,null,x);break;case"together":qu(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function us(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Qn(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),Mr|=i.lanes,(s&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=xr(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function kw(n,i,s){switch(i.tag){case 3:Eh(i),mi();break;case 5:Vp(i);break;case 1:Bt(i.type)&&ql(i);break;case 4:Cu(i,i.stateNode.containerInfo);break;case 10:var c=i.type._context,h=i.memoizedProps.value;qe(Yl,c._currentValue),c._currentValue=h;break;case 13:if(c=i.memoizedState,c!==null)return c.dehydrated!==null?(qe(et,et.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?Th(n,i,s):(qe(et,et.current&1),n=Qn(n,i,s),n!==null?n.sibling:null);qe(et,et.current&1);break;case 19:if(c=(s&i.childLanes)!==0,(n.flags&128)!==0){if(c)return Nh(n,i,s);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),qe(et,et.current),c)break;return null;case 22:case 23:return i.lanes=0,Sh(n,i,s)}return Qn(n,i,s)}var Ih,Wu,Ph,Ah;Ih=function(n,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Wu=function(){},Ph=function(n,i,s,c){var h=n.memoizedProps;if(h!==c){n=i.stateNode,Dr(_n.current);var x=null;switch(s){case"input":h=Pn(n,h),c=Pn(n,c),x=[];break;case"select":h=E({},h,{value:void 0}),c=E({},c,{value:void 0}),x=[];break;case"textarea":h=Mt(n,h),c=Mt(n,c),x=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Ul)}wt(s,c);var k;s=null;for(U in h)if(!c.hasOwnProperty(U)&&h.hasOwnProperty(U)&&h[U]!=null)if(U==="style"){var T=h[U];for(k in T)T.hasOwnProperty(k)&&(s||(s={}),s[k]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(l.hasOwnProperty(U)?x||(x=[]):(x=x||[]).push(U,null));for(U in c){var $=c[U];if(T=h!=null?h[U]:void 0,c.hasOwnProperty(U)&&$!==T&&($!=null||T!=null))if(U==="style")if(T){for(k in T)!T.hasOwnProperty(k)||$&&$.hasOwnProperty(k)||(s||(s={}),s[k]="");for(k in $)$.hasOwnProperty(k)&&T[k]!==$[k]&&(s||(s={}),s[k]=$[k])}else s||(x||(x=[]),x.push(U,s)),s=$;else U==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,T=T?T.__html:void 0,$!=null&&T!==$&&(x=x||[]).push(U,$)):U==="children"?typeof $!="string"&&typeof $!="number"||(x=x||[]).push(U,""+$):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(l.hasOwnProperty(U)?($!=null&&U==="onScroll"&&Je("scroll",n),x||T===$||(x=[])):(x=x||[]).push(U,$))}s&&(x=x||[]).push("style",s);var U=x;(i.updateQueue=U)&&(i.flags|=4)}},Ah=function(n,i,s,c){s!==c&&(i.flags|=4)};function Ao(n,i){if(!Xe)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Rt(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(i)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=s,i}function Sw(n,i,s){var c=i.pendingProps;switch(hu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(i),null;case 1:return Bt(i.type)&&Hl(),Rt(i),null;case 3:return c=i.stateNode,vi(),Ke(Ft),Ke(jt),Tu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Kl(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Sn!==null&&(rc(Sn),Sn=null))),Wu(n,i),Rt(i),null;case 5:Eu(i);var h=Dr(To.current);if(s=i.type,n!==null&&i.stateNode!=null)Ph(n,i,s,c,h),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!c){if(i.stateNode===null)throw Error(r(166));return Rt(i),null}if(n=Dr(_n.current),Kl(i)){c=i.stateNode,s=i.type;var x=i.memoizedProps;switch(c[$n]=i,c[So]=x,n=(i.mode&1)!==0,s){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":_t(c,x),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Je("invalid",c);break;case"textarea":un(c,x),Je("invalid",c)}wt(s,x),h=null;for(var k in x)if(x.hasOwnProperty(k)){var T=x[k];k==="children"?typeof T=="string"?c.textContent!==T&&(x.suppressHydrationWarning!==!0&&Bl(c.textContent,T,n),h=["children",T]):typeof T=="number"&&c.textContent!==""+T&&(x.suppressHydrationWarning!==!0&&Bl(c.textContent,T,n),h=["children",""+T]):l.hasOwnProperty(k)&&T!=null&&k==="onScroll"&&Je("scroll",c)}switch(s){case"input":Ct(c),Et(c,x,!0);break;case"textarea":Ct(c),wl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Ul)}c=h,i.updateQueue=c,c!==null&&(i.flags|=4)}else{k=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=k.createElement(s,{is:c.is}):(n=k.createElement(s),s==="select"&&(k=n,c.multiple?k.multiple=!0:c.size&&(k.size=c.size))):n=k.createElementNS(n,s),n[$n]=i,n[So]=c,Ih(n,i,!1,!1),i.stateNode=n;e:{switch(k=An(s,c),s){case"dialog":Je("cancel",n),Je("close",n),h=c;break;case"iframe":case"object":case"embed":Je("load",n),h=c;break;case"video":case"audio":for(h=0;h<vo.length;h++)Je(vo[h],n);h=c;break;case"source":Je("error",n),h=c;break;case"img":case"image":case"link":Je("error",n),Je("load",n),h=c;break;case"details":Je("toggle",n),h=c;break;case"input":_t(n,c),h=Pn(n,c),Je("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=E({},c,{value:void 0}),Je("invalid",n);break;case"textarea":un(n,c),h=Mt(n,c),Je("invalid",n);break;default:h=c}wt(s,h),T=h;for(x in T)if(T.hasOwnProperty(x)){var $=T[x];x==="style"?er(n,$):x==="dangerouslySetInnerHTML"?($=$?$.__html:void 0,$!=null&&Pe(n,$)):x==="children"?typeof $=="string"?(s!=="textarea"||$!=="")&&De(n,$):typeof $=="number"&&De(n,""+$):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(l.hasOwnProperty(x)?$!=null&&x==="onScroll"&&Je("scroll",n):$!=null&&L(n,x,$,k))}switch(s){case"input":Ct(n),Et(n,c,!1);break;case"textarea":Ct(n),wl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+ke(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?it(n,!!c.multiple,x,!1):c.defaultValue!=null&&it(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Ul)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Rt(i),null;case 6:if(n&&i.stateNode!=null)Ah(n,i,n.memoizedProps,c);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(s=Dr(To.current),Dr(_n.current),Kl(i)){if(c=i.stateNode,s=i.memoizedProps,c[$n]=i,(x=c.nodeValue!==s)&&(n=Zt,n!==null))switch(n.tag){case 3:Bl(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Bl(c.nodeValue,s,(n.mode&1)!==0)}x&&(i.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[$n]=i,i.stateNode=c}return Rt(i),null;case 13:if(Ke(et),c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&en!==null&&(i.mode&1)!==0&&(i.flags&128)===0)_p(),mi(),i.flags|=98560,x=!1;else if(x=Kl(i),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=i.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[$n]=i}else mi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Rt(i),x=!1}else Sn!==null&&(rc(Sn),Sn=null),x=!0;if(!x)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(et.current&1)!==0?ft===0&&(ft=3):lc())),i.updateQueue!==null&&(i.flags|=4),Rt(i),null);case 4:return vi(),Wu(n,i),n===null&&wo(i.stateNode.containerInfo),Rt(i),null;case 10:return wu(i.type._context),Rt(i),null;case 17:return Bt(i.type)&&Hl(),Rt(i),null;case 19:if(Ke(et),x=i.memoizedState,x===null)return Rt(i),null;if(c=(i.flags&128)!==0,k=x.rendering,k===null)if(c)Ao(x,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(k=ts(n),k!==null){for(i.flags|=128,Ao(x,!1),c=k.updateQueue,c!==null&&(i.updateQueue=c,i.flags|=4),i.subtreeFlags=0,c=s,s=i.child;s!==null;)x=s,n=c,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return qe(et,et.current&1|2),i.child}n=n.sibling}x.tail!==null&&ot()>bi&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304)}else{if(!c)if(n=ts(k),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ao(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Xe)return Rt(i),null}else 2*ot()-x.renderingStartTime>bi&&s!==1073741824&&(i.flags|=128,c=!0,Ao(x,!1),i.lanes=4194304);x.isBackwards?(k.sibling=i.child,i.child=k):(s=x.last,s!==null?s.sibling=k:i.child=k,x.last=k)}return x.tail!==null?(i=x.tail,x.rendering=i,x.tail=i.sibling,x.renderingStartTime=ot(),i.sibling=null,s=et.current,qe(et,c?s&1|2:s&1),i):(Rt(i),null);case 22:case 23:return oc(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&(i.mode&1)!==0?(tn&1073741824)!==0&&(Rt(i),i.subtreeFlags&6&&(i.flags|=8192)):Rt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function bw(n,i){switch(hu(i),i.tag){case 1:return Bt(i.type)&&Hl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return vi(),Ke(Ft),Ke(jt),Tu(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Eu(i),null;case 13:if(Ke(et),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));mi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Ke(et),null;case 4:return vi(),null;case 10:return wu(i.type._context),null;case 22:case 23:return oc(),null;case 24:return null;default:return null}}var cs=!1,Nt=!1,Cw=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ki(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){nt(n,i,c)}else s.current=null}function Gu(n,i,s){try{s()}catch(c){nt(n,i,c)}}var Lh=!1;function Ew(n,i){if(ou=Il,n=dp(),Ya(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var k=0,T=-1,$=-1,U=0,Y=0,Z=n,Q=null;t:for(;;){for(var de;Z!==s||h!==0&&Z.nodeType!==3||(T=k+h),Z!==x||c!==0&&Z.nodeType!==3||($=k+c),Z.nodeType===3&&(k+=Z.nodeValue.length),(de=Z.firstChild)!==null;)Q=Z,Z=de;for(;;){if(Z===n)break t;if(Q===s&&++U===h&&(T=k),Q===x&&++Y===c&&($=k),(de=Z.nextSibling)!==null)break;Z=Q,Q=Z.parentNode}Z=de}s=T===-1||$===-1?null:{start:T,end:$}}else s=null}s=s||{start:0,end:0}}else s=null;for(lu={focusedElem:n,selectionRange:s},Il=!1,fe=i;fe!==null;)if(i=fe,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,fe=n;else for(;fe!==null;){i=fe;try{var pe=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var he=pe.memoizedProps,lt=pe.memoizedState,O=i.stateNode,_=O.getSnapshotBeforeUpdate(i.elementType===i.type?he:bn(i.type,he),lt);O.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var F=i.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(te){nt(i,i.return,te)}if(n=i.sibling,n!==null){n.return=i.return,fe=n;break}fe=i.return}return pe=Lh,Lh=!1,pe}function Lo(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var x=h.destroy;h.destroy=void 0,x!==void 0&&Gu(i,s,x)}h=h.next}while(h!==c)}}function ds(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function Ju(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function $h(n){var i=n.alternate;i!==null&&(n.alternate=null,$h(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[$n],delete i[So],delete i[cu],delete i[sw],delete i[aw])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function _h(n){return n.tag===5||n.tag===3||n.tag===4}function zh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||_h(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ku(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ul));else if(c!==4&&(n=n.child,n!==null))for(Ku(n,i,s),n=n.sibling;n!==null;)Ku(n,i,s),n=n.sibling}function Qu(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(Qu(n,i,s),n=n.sibling;n!==null;)Qu(n,i,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,i,s){for(s=s.child;s!==null;)Dh(n,i,s),s=s.sibling}function Dh(n,i,s){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Cl,s)}catch{}switch(s.tag){case 5:Nt||ki(s,i);case 6:var c=kt,h=Cn;kt=null,pr(n,i,s),kt=c,Cn=h,kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):kt.removeChild(s.stateNode));break;case 18:kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?uu(n.parentNode,s):n.nodeType===1&&uu(n,s),co(n)):uu(kt,s.stateNode));break;case 4:c=kt,h=Cn,kt=s.stateNode.containerInfo,Cn=!0,pr(n,i,s),kt=c,Cn=h;break;case 0:case 11:case 14:case 15:if(!Nt&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var x=h,k=x.destroy;x=x.tag,k!==void 0&&((x&2)!==0||(x&4)!==0)&&Gu(s,i,k),h=h.next}while(h!==c)}pr(n,i,s);break;case 1:if(!Nt&&(ki(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(T){nt(s,i,T)}pr(n,i,s);break;case 21:pr(n,i,s);break;case 22:s.mode&1?(Nt=(c=Nt)||s.memoizedState!==null,pr(n,i,s),Nt=c):pr(n,i,s);break;default:pr(n,i,s)}}function Oh(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new Cw),i.forEach(function(c){var h=$w.bind(null,n,c);s.has(c)||(s.add(c),c.then(h,h))})}}function En(n,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var x=n,k=i,T=k;e:for(;T!==null;){switch(T.tag){case 5:kt=T.stateNode,Cn=!1;break e;case 3:kt=T.stateNode.containerInfo,Cn=!0;break e;case 4:kt=T.stateNode.containerInfo,Cn=!0;break e}T=T.return}if(kt===null)throw Error(r(160));Dh(x,k,h),kt=null,Cn=!1;var $=h.alternate;$!==null&&($.return=null),h.return=null}catch(U){nt(h,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Mh(i,n),i=i.sibling}function Mh(n,i){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(En(i,n),Dn(n),c&4){try{Lo(3,n,n.return),ds(3,n)}catch(he){nt(n,n.return,he)}try{Lo(5,n,n.return)}catch(he){nt(n,n.return,he)}}break;case 1:En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return);break;case 5:if(En(i,n),Dn(n),c&512&&s!==null&&ki(s,s.return),n.flags&32){var h=n.stateNode;try{De(h,"")}catch(he){nt(n,n.return,he)}}if(c&4&&(h=n.stateNode,h!=null)){var x=n.memoizedProps,k=s!==null?s.memoizedProps:x,T=n.type,$=n.updateQueue;if(n.updateQueue=null,$!==null)try{T==="input"&&x.type==="radio"&&x.name!=null&&_e(h,x),An(T,k);var U=An(T,x);for(k=0;k<$.length;k+=2){var Y=$[k],Z=$[k+1];Y==="style"?er(h,Z):Y==="dangerouslySetInnerHTML"?Pe(h,Z):Y==="children"?De(h,Z):L(h,Y,Z,U)}switch(T){case"input":st(h,x);break;case"textarea":vl(h,x);break;case"select":var Q=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!x.multiple;var de=x.value;de!=null?it(h,!!x.multiple,de,!1):Q!==!!x.multiple&&(x.defaultValue!=null?it(h,!!x.multiple,x.defaultValue,!0):it(h,!!x.multiple,x.multiple?[]:"",!1))}h[So]=x}catch(he){nt(n,n.return,he)}}break;case 6:if(En(i,n),Dn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,x=n.memoizedProps;try{h.nodeValue=x}catch(he){nt(n,n.return,he)}}break;case 3:if(En(i,n),Dn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{co(i.containerInfo)}catch(he){nt(n,n.return,he)}break;case 4:En(i,n),Dn(n);break;case 13:En(i,n),Dn(n),h=n.child,h.flags&8192&&(x=h.memoizedState!==null,h.stateNode.isHidden=x,!x||h.alternate!==null&&h.alternate.memoizedState!==null||(Zu=ot())),c&4&&Oh(n);break;case 22:if(Y=s!==null&&s.memoizedState!==null,n.mode&1?(Nt=(U=Nt)||Y,En(i,n),Nt=U):En(i,n),Dn(n),c&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!Y&&(n.mode&1)!==0)for(fe=n,Y=n.child;Y!==null;){for(Z=fe=Y;fe!==null;){switch(Q=fe,de=Q.child,Q.tag){case 0:case 11:case 14:case 15:Lo(4,Q,Q.return);break;case 1:ki(Q,Q.return);var pe=Q.stateNode;if(typeof pe.componentWillUnmount=="function"){c=Q,s=Q.return;try{i=c,pe.props=i.memoizedProps,pe.state=i.memoizedState,pe.componentWillUnmount()}catch(he){nt(c,s,he)}}break;case 5:ki(Q,Q.return);break;case 22:if(Q.memoizedState!==null){Uh(Z);continue}}de!==null?(de.return=Q,fe=de):Uh(Z)}Y=Y.sibling}e:for(Y=null,Z=n;;){if(Z.tag===5){if(Y===null){Y=Z;try{h=Z.stateNode,U?(x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(T=Z.stateNode,$=Z.memoizedProps.style,k=$!=null&&$.hasOwnProperty("display")?$.display:null,T.style.display=cn("display",k))}catch(he){nt(n,n.return,he)}}}else if(Z.tag===6){if(Y===null)try{Z.stateNode.nodeValue=U?"":Z.memoizedProps}catch(he){nt(n,n.return,he)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===n)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===n)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===n)break e;Y===Z&&(Y=null),Z=Z.return}Y===Z&&(Y=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:En(i,n),Dn(n),c&4&&Oh(n);break;case 21:break;default:En(i,n),Dn(n)}}function Dn(n){var i=n.flags;if(i&2){try{e:{for(var s=n.return;s!==null;){if(_h(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(De(h,""),c.flags&=-33);var x=zh(n);Qu(n,x,h);break;case 3:case 4:var k=c.stateNode.containerInfo,T=zh(n);Ku(n,T,k);break;default:throw Error(r(161))}}catch($){nt(n,n.return,$)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function jw(n,i,s){fe=n,Fh(n)}function Fh(n,i,s){for(var c=(n.mode&1)!==0;fe!==null;){var h=fe,x=h.child;if(h.tag===22&&c){var k=h.memoizedState!==null||cs;if(!k){var T=h.alternate,$=T!==null&&T.memoizedState!==null||Nt;T=cs;var U=Nt;if(cs=k,(Nt=$)&&!U)for(fe=h;fe!==null;)k=fe,$=k.child,k.tag===22&&k.memoizedState!==null?Vh(h):$!==null?($.return=k,fe=$):Vh(h);for(;x!==null;)fe=x,Fh(x),x=x.sibling;fe=h,cs=T,Nt=U}Bh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,fe=x):Bh(n)}}function Bh(n){for(;fe!==null;){var i=fe;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Nt||ds(5,i);break;case 1:var c=i.stateNode;if(i.flags&4&&!Nt)if(s===null)c.componentDidMount();else{var h=i.elementType===i.type?s.memoizedProps:bn(i.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=i.updateQueue;x!==null&&Up(i,x,c);break;case 3:var k=i.updateQueue;if(k!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Up(i,k,s)}break;case 5:var T=i.stateNode;if(s===null&&i.flags&4){s=T;var $=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":$.autoFocus&&s.focus();break;case"img":$.src&&(s.src=$.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var Y=U.memoizedState;if(Y!==null){var Z=Y.dehydrated;Z!==null&&co(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Nt||i.flags&512&&Ju(i)}catch(Q){nt(i,i.return,Q)}}if(i===n){fe=null;break}if(s=i.sibling,s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Uh(n){for(;fe!==null;){var i=fe;if(i===n){fe=null;break}var s=i.sibling;if(s!==null){s.return=i.return,fe=s;break}fe=i.return}}function Vh(n){for(;fe!==null;){var i=fe;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{ds(4,i)}catch($){nt(i,s,$)}break;case 1:var c=i.stateNode;if(typeof c.componentDidMount=="function"){var h=i.return;try{c.componentDidMount()}catch($){nt(i,h,$)}}var x=i.return;try{Ju(i)}catch($){nt(i,x,$)}break;case 5:var k=i.return;try{Ju(i)}catch($){nt(i,k,$)}}}catch($){nt(i,i.return,$)}if(i===n){fe=null;break}var T=i.sibling;if(T!==null){T.return=i.return,fe=T;break}fe=i.return}}var Tw=Math.ceil,fs=M.ReactCurrentDispatcher,Yu=M.ReactCurrentOwner,mn=M.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,St=0,tn=0,Si=ar(0),ft=0,$o=null,Mr=0,ps=0,Xu=0,_o=null,Vt=null,Zu=0,bi=1/0,Yn=null,hs=!1,ec=null,hr=null,ms=!1,mr=null,gs=0,zo=0,tc=null,ys=-1,xs=0;function Dt(){return(Oe&6)!==0?ot():ys!==-1?ys:ys=ot()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&St!==0?St&-St:cw.transition!==null?(xs===0&&(xs=zf()),xs):(n=Be,n!==0||(n=window.event,n=n===void 0?16:qf(n.type)),n)}function jn(n,i,s,c){if(50<zo)throw zo=0,tc=null,Error(r(185));oo(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(ps|=s),ft===4&&yr(n,St)),Ht(n,c),s===1&&Oe===0&&(i.mode&1)===0&&(bi=ot()+500,Wl&&cr()))}function Ht(n,i){var s=n.callbackNode;c1(n,i);var c=Tl(n,n===ht?St:0);if(c===0)s!==null&&Lf(s),n.callbackNode=null,n.callbackPriority=0;else if(i=c&-c,n.callbackPriority!==i){if(s!=null&&Lf(s),i===1)n.tag===0?uw(qh.bind(null,n)):Ip(qh.bind(null,n)),ow(function(){(Oe&6)===0&&cr()}),s=null;else{switch(Df(c)){case 1:s=$a;break;case 4:s=$f;break;case 16:s=bl;break;case 536870912:s=_f;break;default:s=bl}s=Zh(s,Hh.bind(null,n))}n.callbackPriority=i,n.callbackNode=s}}function Hh(n,i){if(ys=-1,xs=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Ci()&&n.callbackNode!==s)return null;var c=Tl(n,n===ht?St:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||i)i=vs(n,c);else{i=c;var h=Oe;Oe|=2;var x=Gh();(ht!==n||St!==i)&&(Yn=null,bi=ot()+500,Br(n,i));do try{Iw();break}catch(T){Wh(n,T)}while(!0);vu(),fs.current=x,Oe=h,at!==null?i=0:(ht=null,St=0,i=ft)}if(i!==0){if(i===2&&(h=_a(n),h!==0&&(c=h,i=nc(n,h))),i===1)throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;if(i===6)yr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!Rw(h)&&(i=vs(n,c),i===2&&(x=_a(n),x!==0&&(c=x,i=nc(n,x))),i===1))throw s=$o,Br(n,0),yr(n,c),Ht(n,ot()),s;switch(n.finishedWork=h,n.finishedLanes=c,i){case 0:case 1:throw Error(r(345));case 2:Ur(n,Vt,Yn);break;case 3:if(yr(n,c),(c&130023424)===c&&(i=Zu+500-ot(),10<i)){if(Tl(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=au(Ur.bind(null,n,Vt,Yn),i);break}Ur(n,Vt,Yn);break;case 4:if(yr(n,c),(c&4194240)===c)break;for(i=n.eventTimes,h=-1;0<c;){var k=31-wn(c);x=1<<k,k=i[k],k>h&&(h=k),c&=~x}if(c=h,c=ot()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Tw(c/1960))-c,10<c){n.timeoutHandle=au(Ur.bind(null,n,Vt,Yn),c);break}Ur(n,Vt,Yn);break;case 5:Ur(n,Vt,Yn);break;default:throw Error(r(329))}}}return Ht(n,ot()),n.callbackNode===s?Hh.bind(null,n):null}function nc(n,i){var s=_o;return n.current.memoizedState.isDehydrated&&(Br(n,i).flags|=256),n=vs(n,i),n!==2&&(i=Vt,Vt=s,i!==null&&rc(i)),n}function rc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function Rw(n){for(var i=n;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],x=h.getSnapshot;h=h.value;try{if(!kn(x(),h))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function yr(n,i){for(i&=~Xu,i&=~ps,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var s=31-wn(i),c=1<<s;n[s]=-1,i&=~c}}function qh(n){if((Oe&6)!==0)throw Error(r(327));Ci();var i=Tl(n,0);if((i&1)===0)return Ht(n,ot()),null;var s=vs(n,i);if(n.tag!==0&&s===2){var c=_a(n);c!==0&&(i=c,s=nc(n,c))}if(s===1)throw s=$o,Br(n,0),yr(n,i),Ht(n,ot()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Ur(n,Vt,Yn),Ht(n,ot()),null}function ic(n,i){var s=Oe;Oe|=1;try{return n(i)}finally{Oe=s,Oe===0&&(bi=ot()+500,Wl&&cr())}}function Fr(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Ci();var i=Oe;Oe|=1;var s=mn.transition,c=Be;try{if(mn.transition=null,Be=1,n)return n()}finally{Be=c,mn.transition=s,Oe=i,(Oe&6)===0&&cr()}}function oc(){tn=Si.current,Ke(Si)}function Br(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,iw(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(hu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Hl();break;case 3:vi(),Ke(Ft),Ke(jt),Tu();break;case 5:Eu(c);break;case 4:vi();break;case 13:Ke(et);break;case 19:Ke(et);break;case 10:wu(c.type._context);break;case 22:case 23:oc()}s=s.return}if(ht=n,at=n=xr(n.current,null),St=tn=i,ft=0,$o=null,Xu=ps=Mr=0,Vt=_o=null,zr!==null){for(i=0;i<zr.length;i++)if(s=zr[i],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,x=s.pending;if(x!==null){var k=x.next;x.next=h,c.next=k}s.pending=c}zr=null}return n}function Wh(n,i){do{var s=at;try{if(vu(),ns.current=ls,rs){for(var c=tt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}rs=!1}if(Or=0,pt=dt=tt=null,Ro=!1,No=0,Yu.current=null,s===null||s.return===null){ft=1,$o=i,at=null;break}e:{var x=n,k=s.return,T=s,$=i;if(i=St,T.flags|=32768,$!==null&&typeof $=="object"&&typeof $.then=="function"){var U=$,Y=T,Z=Y.tag;if((Y.mode&1)===0&&(Z===0||Z===11||Z===15)){var Q=Y.alternate;Q?(Y.updateQueue=Q.updateQueue,Y.memoizedState=Q.memoizedState,Y.lanes=Q.lanes):(Y.updateQueue=null,Y.memoizedState=null)}var de=yh(k);if(de!==null){de.flags&=-257,xh(de,k,T,x,i),de.mode&1&&gh(x,U,i),i=de,$=U;var pe=i.updateQueue;if(pe===null){var he=new Set;he.add($),i.updateQueue=he}else pe.add($);break e}else{if((i&1)===0){gh(x,U,i),lc();break e}$=Error(r(426))}}else if(Xe&&T.mode&1){var lt=yh(k);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),xh(lt,k,T,x,i),yu(wi($,T));break e}}x=$=wi($,T),ft!==4&&(ft=2),_o===null?_o=[x]:_o.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,i&=-i,x.lanes|=i;var O=hh(x,$,i);Bp(x,O);break e;case 1:T=$;var _=x.type,F=x.stateNode;if((x.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(hr===null||!hr.has(F)))){x.flags|=65536,i&=-i,x.lanes|=i;var te=mh(x,T,i);Bp(x,te);break e}}x=x.return}while(x!==null)}Kh(s)}catch(ge){i=ge,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function Gh(){var n=fs.current;return fs.current=ls,n===null?ls:n}function lc(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Mr&268435455)===0&&(ps&268435455)===0||yr(ht,St)}function vs(n,i){var s=Oe;Oe|=2;var c=Gh();(ht!==n||St!==i)&&(Yn=null,Br(n,i));do try{Nw();break}catch(h){Wh(n,h)}while(!0);if(vu(),Oe=s,fs.current=c,at!==null)throw Error(r(261));return ht=null,St=0,ft}function Nw(){for(;at!==null;)Jh(at)}function Iw(){for(;at!==null&&!t1();)Jh(at)}function Jh(n){var i=Xh(n.alternate,n,tn);n.memoizedProps=n.pendingProps,i===null?Kh(n):at=i,Yu.current=null}function Kh(n){var i=n;do{var s=i.alternate;if(n=i.return,(i.flags&32768)===0){if(s=Sw(s,i,tn),s!==null){at=s;return}}else{if(s=bw(s,i),s!==null){s.flags&=32767,at=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ft=6,at=null;return}}if(i=i.sibling,i!==null){at=i;return}at=i=n}while(i!==null);ft===0&&(ft=5)}function Ur(n,i,s){var c=Be,h=mn.transition;try{mn.transition=null,Be=1,Pw(n,i,s,c)}finally{mn.transition=h,Be=c}return null}function Pw(n,i,s,c){do Ci();while(mr!==null);if((Oe&6)!==0)throw Error(r(327));s=n.finishedWork;var h=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=s.lanes|s.childLanes;if(d1(n,x),n===ht&&(at=ht=null,St=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||ms||(ms=!0,Zh(bl,function(){return Ci(),null})),x=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||x){x=mn.transition,mn.transition=null;var k=Be;Be=1;var T=Oe;Oe|=4,Yu.current=null,Ew(n,s),Mh(s,n),Y1(lu),Il=!!ou,lu=ou=null,n.current=s,jw(s),n1(),Oe=T,Be=k,mn.transition=x}else n.current=s;if(ms&&(ms=!1,mr=n,gs=h),x=n.pendingLanes,x===0&&(hr=null),o1(s.stateNode),Ht(n,ot()),i!==null)for(c=n.onRecoverableError,s=0;s<i.length;s++)h=i[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(hs)throw hs=!1,n=ec,ec=null,n;return(gs&1)!==0&&n.tag!==0&&Ci(),x=n.pendingLanes,(x&1)!==0?n===tc?zo++:(zo=0,tc=n):zo=0,cr(),null}function Ci(){if(mr!==null){var n=Df(gs),i=mn.transition,s=Be;try{if(mn.transition=null,Be=16>n?16:n,mr===null)var c=!1;else{if(n=mr,mr=null,gs=0,(Oe&6)!==0)throw Error(r(331));var h=Oe;for(Oe|=4,fe=n.current;fe!==null;){var x=fe,k=x.child;if((fe.flags&16)!==0){var T=x.deletions;if(T!==null){for(var $=0;$<T.length;$++){var U=T[$];for(fe=U;fe!==null;){var Y=fe;switch(Y.tag){case 0:case 11:case 15:Lo(8,Y,x)}var Z=Y.child;if(Z!==null)Z.return=Y,fe=Z;else for(;fe!==null;){Y=fe;var Q=Y.sibling,de=Y.return;if($h(Y),Y===U){fe=null;break}if(Q!==null){Q.return=de,fe=Q;break}fe=de}}}var pe=x.alternate;if(pe!==null){var he=pe.child;if(he!==null){pe.child=null;do{var lt=he.sibling;he.sibling=null,he=lt}while(he!==null)}}fe=x}}if((x.subtreeFlags&2064)!==0&&k!==null)k.return=x,fe=k;else e:for(;fe!==null;){if(x=fe,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:Lo(9,x,x.return)}var O=x.sibling;if(O!==null){O.return=x.return,fe=O;break e}fe=x.return}}var _=n.current;for(fe=_;fe!==null;){k=fe;var F=k.child;if((k.subtreeFlags&2064)!==0&&F!==null)F.return=k,fe=F;else e:for(k=_;fe!==null;){if(T=fe,(T.flags&2048)!==0)try{switch(T.tag){case 0:case 11:case 15:ds(9,T)}}catch(ge){nt(T,T.return,ge)}if(T===k){fe=null;break e}var te=T.sibling;if(te!==null){te.return=T.return,fe=te;break e}fe=T.return}}if(Oe=h,cr(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Cl,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=i}}return!1}function Qh(n,i,s){i=wi(s,i),i=hh(n,i,1),n=fr(n,i,1),i=Dt(),n!==null&&(oo(n,1,i),Ht(n,i))}function nt(n,i,s){if(n.tag===3)Qh(n,n,s);else for(;i!==null;){if(i.tag===3){Qh(i,n,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){n=wi(s,n),n=mh(i,n,1),i=fr(i,n,1),n=Dt(),i!==null&&(oo(i,1,n),Ht(i,n));break}}i=i.return}}function Aw(n,i,s){var c=n.pingCache;c!==null&&c.delete(i),i=Dt(),n.pingedLanes|=n.suspendedLanes&s,ht===n&&(St&s)===s&&(ft===4||ft===3&&(St&130023424)===St&&500>ot()-Zu?Br(n,0):Xu|=s),Ht(n,i)}function Yh(n,i){i===0&&((n.mode&1)===0?i=1:(i=jl,jl<<=1,(jl&130023424)===0&&(jl=4194304)));var s=Dt();n=Jn(n,i),n!==null&&(oo(n,i,s),Ht(n,s))}function Lw(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Yh(n,s)}function $w(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(i),Yh(n,s)}var Xh;Xh=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||Ft.current)Ut=!0;else{if((n.lanes&s)===0&&(i.flags&128)===0)return Ut=!1,kw(n,i,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(i.flags&1048576)!==0&&Pp(i,Jl,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;us(n,i),n=i.pendingProps;var h=fi(i,jt.current);xi(i,s),h=Iu(null,i,c,n,h,s);var x=Pu();return i.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Bt(c)?(x=!0,ql(i)):x=!1,i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,bu(i),h.updater=ss,i.stateNode=h,h._reactInternals=i,Du(i,c,n,s),i=Bu(null,i,c,!0,x,s)):(i.tag=0,Xe&&x&&pu(i),zt(null,i,h,s),i=i.child),i;case 16:c=i.elementType;e:{switch(us(n,i),n=i.pendingProps,h=c._init,c=h(c._payload),i.type=c,h=i.tag=zw(c),n=bn(c,n),h){case 0:i=Fu(null,i,c,n,s);break e;case 1:i=Ch(null,i,c,n,s);break e;case 11:i=vh(null,i,c,n,s);break e;case 14:i=wh(null,i,c,bn(c.type,n),s);break e}throw Error(r(306,c,""))}return i;case 0:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Fu(n,i,c,h,s);case 1:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),Ch(n,i,c,h,s);case 3:e:{if(Eh(i),n===null)throw Error(r(387));c=i.pendingProps,x=i.memoizedState,h=x.element,Fp(n,i),es(i,c,null,s);var k=i.memoizedState;if(c=k.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){h=wi(Error(r(423)),i),i=jh(n,i,c,s,h);break e}else if(c!==h){h=wi(Error(r(424)),i),i=jh(n,i,c,s,h);break e}else for(en=sr(i.stateNode.containerInfo.firstChild),Zt=i,Xe=!0,Sn=null,s=Op(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(mi(),c===h){i=Qn(n,i,s);break e}zt(n,i,c,s)}i=i.child}return i;case 5:return Vp(i),n===null&&gu(i),c=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,k=h.children,su(c,h)?k=null:x!==null&&su(c,x)&&(i.flags|=32),bh(n,i),zt(n,i,k,s),i.child;case 6:return n===null&&gu(i),null;case 13:return Th(n,i,s);case 4:return Cu(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=gi(i,null,c,s):zt(n,i,c,s),i.child;case 11:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),vh(n,i,c,h,s);case 7:return zt(n,i,i.pendingProps,s),i.child;case 8:return zt(n,i,i.pendingProps.children,s),i.child;case 12:return zt(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,h=i.pendingProps,x=i.memoizedProps,k=h.value,qe(Yl,c._currentValue),c._currentValue=k,x!==null)if(kn(x.value,k)){if(x.children===h.children&&!Ft.current){i=Qn(n,i,s);break e}}else for(x=i.child,x!==null&&(x.return=i);x!==null;){var T=x.dependencies;if(T!==null){k=x.child;for(var $=T.firstContext;$!==null;){if($.context===c){if(x.tag===1){$=Kn(-1,s&-s),$.tag=2;var U=x.updateQueue;if(U!==null){U=U.shared;var Y=U.pending;Y===null?$.next=$:($.next=Y.next,Y.next=$),U.pending=$}}x.lanes|=s,$=x.alternate,$!==null&&($.lanes|=s),ku(x.return,s,i),T.lanes|=s;break}$=$.next}}else if(x.tag===10)k=x.type===i.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(r(341));k.lanes|=s,T=k.alternate,T!==null&&(T.lanes|=s),ku(k,s,i),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===i){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}zt(n,i,h.children,s),i=i.child}return i;case 9:return h=i.type,c=i.pendingProps.children,xi(i,s),h=pn(h),c=c(h),i.flags|=1,zt(n,i,c,s),i.child;case 14:return c=i.type,h=bn(c,i.pendingProps),h=bn(c.type,h),wh(n,i,c,h,s);case 15:return kh(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,h=i.pendingProps,h=i.elementType===c?h:bn(c,h),us(n,i),i.tag=1,Bt(c)?(n=!0,ql(i)):n=!1,xi(i,s),fh(i,c,h),Du(i,c,h,s),Bu(null,i,c,!0,n,s);case 19:return Nh(n,i,s);case 22:return Sh(n,i,s)}throw Error(r(156,i.tag))};function Zh(n,i){return Af(n,i)}function _w(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,i,s,c){return new _w(n,i,s,c)}function sc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function zw(n){if(typeof n=="function")return sc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===B)return 14}return 2}function xr(n,i){var s=n.alternate;return s===null?(s=gn(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function ws(n,i,s,c,h,x){var k=2;if(c=n,typeof n=="function")sc(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case q:return Vr(s.children,h,x,i);case K:k=8,h|=8;break;case le:return n=gn(12,s,i,h|2),n.elementType=le,n.lanes=x,n;case oe:return n=gn(13,s,i,h),n.elementType=oe,n.lanes=x,n;case re:return n=gn(19,s,i,h),n.elementType=re,n.lanes=x,n;case ue:return ks(s,h,x,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case D:k=10;break e;case ne:k=9;break e;case se:k=11;break e;case B:k=14;break e;case ae:k=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=gn(k,s,i,h),i.elementType=n,i.type=c,i.lanes=x,i}function Vr(n,i,s,c){return n=gn(7,n,c,i),n.lanes=s,n}function ks(n,i,s,c){return n=gn(22,n,c,i),n.elementType=ue,n.lanes=s,n.stateNode={isHidden:!1},n}function ac(n,i,s){return n=gn(6,n,null,i),n.lanes=s,n}function uc(n,i,s){return i=gn(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function Dw(n,i,s,c,h){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=za(0),this.expirationTimes=za(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function cc(n,i,s,c,h,x,k,T,$){return n=new Dw(n,i,s,T,$),i===1?(i=1,x===!0&&(i|=8)):i=0,x=gn(3,null,null,i),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},bu(x),n}function Ow(n,i,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:c==null?null:""+c,children:n,containerInfo:i,implementation:s}}function em(n){if(!n)return ur;n=n._reactInternals;e:{if(Pr(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Bt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Bt(s))return Rp(n,s,i)}return i}function tm(n,i,s,c,h,x,k,T,$){return n=cc(s,c,!0,n,h,x,k,T,$),n.context=em(null),s=n.current,c=Dt(),h=gr(s),x=Kn(c,h),x.callback=i??null,fr(s,x,h),n.current.lanes=h,oo(n,h,c),Ht(n,c),n}function Ss(n,i,s,c){var h=i.current,x=Dt(),k=gr(h);return s=em(s),i.context===null?i.context=s:i.pendingContext=s,i=Kn(x,k),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=fr(h,i,k),n!==null&&(jn(n,h,k,x),Zl(n,h,k)),k}function bs(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function nm(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function dc(n,i){nm(n,i),(n=n.alternate)&&nm(n,i)}function Mw(){return null}var rm=typeof reportError=="function"?reportError:function(n){console.error(n)};function fc(n){this._internalRoot=n}Cs.prototype.render=fc.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));Ss(n,i,null,null)},Cs.prototype.unmount=fc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Fr(function(){Ss(null,n,null,null)}),i[Hn]=null}};function Cs(n){this._internalRoot=n}Cs.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ff();n={blockedOn:null,target:n,priority:i};for(var s=0;s<ir.length&&i!==0&&i<ir[s].priority;s++);ir.splice(s,0,n),s===0&&Vf(n)}};function pc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Es(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function im(){}function Fw(n,i,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var U=bs(k);x.call(U)}}var k=tm(i,c,n,0,null,!1,!1,"",im);return n._reactRootContainer=k,n[Hn]=k.current,wo(n.nodeType===8?n.parentNode:n),Fr(),k}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var T=c;c=function(){var U=bs($);T.call(U)}}var $=cc(n,0,!1,null,null,!1,!1,"",im);return n._reactRootContainer=$,n[Hn]=$.current,wo(n.nodeType===8?n.parentNode:n),Fr(function(){Ss(i,$,s,c)}),$}function js(n,i,s,c,h){var x=s._reactRootContainer;if(x){var k=x;if(typeof h=="function"){var T=h;h=function(){var $=bs(k);T.call($)}}Ss(i,k,n,h)}else k=Fw(s,i,n,h,c);return bs(k)}Of=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var s=io(i.pendingLanes);s!==0&&(Da(i,s|1),Ht(i,ot()),(Oe&6)===0&&(bi=ot()+500,cr()))}break;case 13:Fr(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),dc(n,1)}},Oa=function(n){if(n.tag===13){var i=Jn(n,134217728);if(i!==null){var s=Dt();jn(i,n,134217728,s)}dc(n,134217728)}},Mf=function(n){if(n.tag===13){var i=gr(n),s=Jn(n,i);if(s!==null){var c=Dt();jn(s,n,i,c)}dc(n,i)}},Ff=function(){return Be},Bf=function(n,i){var s=Be;try{return Be=n,i()}finally{Be=s}},Ia=function(n,i,s){switch(i){case"input":if(st(n,s),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==n&&c.form===n.form){var h=Vl(c);if(!h)throw Error(r(90));Ie(c),st(c,h)}}}break;case"textarea":vl(n,s);break;case"select":i=s.value,i!=null&&it(n,!!s.multiple,i,!1)}},Ef=ic,jf=Fr;var Bw={usingClientEntryPoint:!1,Events:[bo,ci,Vl,bf,Cf,ic]},Do={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uw={bundleType:Do.bundleType,version:Do.version,rendererPackageName:Do.rendererPackageName,rendererConfig:Do.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=If(n),n===null?null:n.stateNode},findFiberByHostInstance:Do.findFiberByHostInstance||Mw,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 Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ts.isDisabled&&Ts.supportsFiber)try{Cl=Ts.inject(Uw),Ln=Ts}catch{}}return qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bw,qt.createPortal=function(n,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pc(i))throw Error(r(200));return Ow(n,i,null,s)},qt.createRoot=function(n,i){if(!pc(n))throw Error(r(299));var s=!1,c="",h=rm;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(h=i.onRecoverableError)),i=cc(n,1,!1,null,null,s,!1,c,h),n[Hn]=i.current,wo(n.nodeType===8?n.parentNode:n),new fc(i)},qt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=If(i),n=n===null?null:n.stateNode,n},qt.flushSync=function(n){return Fr(n)},qt.hydrate=function(n,i,s){if(!Es(i))throw Error(r(200));return js(null,n,i,!0,s)},qt.hydrateRoot=function(n,i,s){if(!pc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",k=rm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),i=tm(i,null,n,1,s??null,h,!1,x,k),n[Hn]=i.current,wo(n),c)for(n=0;n<c.length;n++)s=c[n],h=s._getVersion,h=h(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,h]:i.mutableSourceEagerHydrationData.push(s,h);return new Cs(i)},qt.render=function(n,i,s){if(!Es(i))throw Error(r(200));return js(null,n,i,!1,s)},qt.unmountComponentAtNode=function(n){if(!Es(n))throw Error(r(40));return n._reactRootContainer?(Fr(function(){js(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},qt.unstable_batchedUpdates=ic,qt.unstable_renderSubtreeIntoContainer=function(n,i,s,c){if(!Es(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return js(n,i,s,!1,c)},qt.version="18.3.1-next-f1338f8080-20240426",qt}var cm;function Qw(){if(cm)return mc.exports;cm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),mc.exports=Kw(),mc.exports}var dm;function Yw(){if(dm)return Rs;dm=1;var e=Qw();return Rs.createRoot=e.createRoot,Rs.hydrateRoot=e.hydrateRoot,Rs}var Xw=Yw(),xc={exports:{}},Mo={};/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.production.min.js
|
|
35
35
|
*
|
|
@@ -37,8 +37,8 @@ Error generating stack: `+x.message+`
|
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var cm;function Qw(){if(cm)return Mo;cm=1;var e=Id(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,g={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)o.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:w,props:g,_owner:l.current}}return Mo.Fragment=r,Mo.jsx=u,Mo.jsxs=u,Mo}var dm;function Yw(){return dm||(dm=1,gc.exports=Qw()),gc.exports}var y=Yw(),yt=function(){return yt=Object.assign||function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yt.apply(this,arguments)};function Di(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,a;o<l;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Qe="-ms-",Zo="-moz-",Fe="-webkit-",Zg="comm",ua="rule",Pd="decl",Xw="@import",ey="@keyframes",Zw="@layer",ty=Math.abs,Ad=String.fromCharCode,Gc=Object.assign;function ek(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function ny(e){return e.trim()}function Xn(e,t){return(e=t.exec(e))?e[0]:e}function Ne(e,t,r){return e.replace(t,r)}function Os(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function ry(e){return e.length}function Yo(e,t){return t.push(e),e}function tk(e,t){return e.map(t).join("")}function fm(e,t){return e.filter(function(r){return!Xn(r,t)})}var ca=1,Mi=1,iy=0,xn=0,ct=0,Wi="";function da(e,t,r,o,l,a,u,d){return{value:e,root:t,parent:r,type:o,props:l,children:a,line:ca,column:Mi,length:u,return:"",siblings:d}}function Sr(e,t){return Gc(da("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=Sr(e.root,{children:[e]});Yo(e,e.siblings)}function nk(){return ct}function rk(){return ct=xn>0?gt(Wi,--xn):0,Mi--,ct===10&&(Mi=1,ca--),ct}function Tn(){return ct=xn<iy?gt(Wi,xn++):0,Mi++,ct===10&&(Mi=1,ca++),ct}function Jr(){return gt(Wi,xn)}function Ms(){return xn}function fa(e,t){return Oi(Wi,e,t)}function Jc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ik(e){return ca=Mi=1,iy=Bn(Wi=e),xn=0,[]}function ok(e){return Wi="",e}function yc(e){return ny(fa(xn-1,Kc(e===91?e+2:e===40?e+1:e)))}function lk(e){for(;(ct=Jr())&&ct<33;)Tn();return Jc(e)>2||Jc(ct)>3?"":" "}function sk(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return fa(e,Ms()+(t<6&&Jr()==32&&Tn()==32))}function Kc(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&Kc(ct);break;case 40:e===41&&Kc(e);break;case 92:Tn();break}return xn}function ak(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Jr()===47)break;return"/*"+fa(t,xn-1)+"*"+Ad(e===47?e:Tn())}function uk(e){for(;!Jc(Jr());)Tn();return fa(e,xn)}function ck(e){return ok(Fs("",null,null,null,[""],e=ik(e),0,[0],e))}function Fs(e,t,r,o,l,a,u,d,f){for(var p=0,m=0,g=u,v=0,w=0,S=0,b=1,j=1,C=1,P=0,L="",M=l,H=a,A=o,q=L;j;)switch(S=P,P=Tn()){case 40:if(S!=108&>(q,g-1)==58){Os(q+=Ne(yc(P),"&","&\f"),"&\f",ty(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:q+=yc(P);break;case 9:case 10:case 13:case 32:q+=lk(S);break;case 92:q+=sk(Ms()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Yo(dk(ak(Tn(),Ms()),t,r,f),f);break;default:q+="/"}break;case 123*b:d[p++]=Bn(q)*C;case 125*b:case 59:case 0:switch(P){case 0:case 125:j=0;case 59+m:C==-1&&(q=Ne(q,/\f/g,"")),w>0&&Bn(q)-g&&Yo(w>32?hm(q+";",o,r,g-1,f):hm(Ne(q," ","")+";",o,r,g-2,f),f);break;case 59:q+=";";default:if(Yo(A=pm(q,t,r,p,m,l,d,L,M=[],H=[],g,a),a),P===123)if(m===0)Fs(q,t,A,A,M,a,g,d,H);else switch(v===99&>(q,3)===110?100:v){case 100:case 108:case 109:case 115:Fs(e,A,A,o&&Yo(pm(e,A,A,0,0,l,d,L,l,M=[],g,H),H),l,H,g,d,o?M:H);break;default:Fs(q,A,A,A,[""],H,0,d,H)}}p=m=w=0,b=C=1,L=q="",g=u;break;case 58:g=1+Bn(q),w=S;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&rk()==125)continue}switch(q+=Ad(P),P*b){case 38:C=m>0?1:(q+="\f",-1);break;case 44:d[p++]=(Bn(q)-1)*C,C=1;break;case 64:Jr()===45&&(q+=yc(Tn())),v=Jr(),m=g=Bn(L=q+=uk(Ms())),P++;break;case 45:S===45&&Bn(q)==2&&(b=0)}}return a}function pm(e,t,r,o,l,a,u,d,f,p,m,g){for(var v=l-1,w=l===0?a:[""],S=ry(w),b=0,j=0,C=0;b<o;++b)for(var P=0,L=Oi(e,v+1,v=ty(j=u[b])),M=e;P<S;++P)(M=ny(j>0?w[P]+" "+L:Ne(L,/&\f/g,w[P])))&&(f[C++]=M);return da(e,t,r,l===0?ua:d,f,p,m,g)}function dk(e,t,r,o){return da(e,t,r,Zg,Ad(nk()),Oi(e,2,-2),0,o)}function hm(e,t,r,o,l){return da(e,t,r,Pd,Oi(e,0,o),Oi(e,o+1,-1),o,l)}function oy(e,t,r){switch(ek(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Zo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Zo+e+Qe+e+e;case 5936:switch(gt(e,t+11)){case 114:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Qe+e+e;case 6165:return Fe+e+Qe+"flex-"+e+e;case 5187:return Fe+e+Ne(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return Fe+e+Qe+"flex-item-"+Ne(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ne(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Qe+"flex-line-pack"+Ne(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Qe+Ne(e,"shrink","negative")+e;case 5292:return Fe+e+Qe+Ne(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ne(e,"-grow","")+Fe+e+Qe+Ne(e,"grow","positive")+e;case 4554:return Fe+Ne(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ne(Ne(Ne(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ne(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ne(Ne(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return Qe+"grid-column-align"+Oi(e,t)+e;break;case 2592:case 3360:return Qe+Ne(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,l){return t=l,Xn(o.props,/grid-\w+-end/)})?~Os(e+(r=r[t].value),"span",0)?e:Qe+Ne(e,"-start","")+e+Qe+"grid-row-span:"+(~Os(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":Qe+Ne(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Xn(o.props,/grid-\w+-start/)})?e:Qe+Ne(Ne(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ne(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bn(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Zo+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Os(e,"stretch",0)?oy(Ne(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ne(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,l,a,u,d,f,p){return Qe+l+":"+a+p+(u?Qe+l+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(gt(e,t+6)===121)return Ne(e,":",":"+Fe)+e;break;case 6444:switch(gt(e,gt(e,14)===45?18:11)){case 120:return Ne(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(gt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ne(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ne(e,"scroll-","scroll-snap-")+e}return e}function Ks(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function fk(e,t,r,o){switch(e.type){case Zw:if(e.children.length)break;case Xw:case Pd:return e.return=e.return||e.value;case Zg:return"";case ey:return e.return=e.value+"{"+Ks(e.children,o)+"}";case ua:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Ks(e.children,o))?e.return=e.value+"{"+r+"}":""}function pk(e){var t=ry(e);return function(r,o,l,a){for(var u="",d=0;d<t;d++)u+=e[d](r,o,l,a)||"";return u}}function hk(e){return function(t){t.root||(t=t.return)&&e(t)}}function mk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Pd:e.return=oy(e.value,e.length,r);return;case ey:return Ks([Sr(e,{value:Ne(e.value,"@","@"+Fe)})],o);case ua:if(e.length)return tk(r=e.props,function(l){switch(Xn(l,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(Sr(e,{props:[Ne(l,/:(read-\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:fm(r,o)});break;case"::placeholder":Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Fe+"input-$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,Qe+"input-$1")]})),Ei(Sr(e,{props:[l]})),Gc(e,{props:fm(r,o)});break}return""})}}var gk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nn={},Fi=typeof process<"u"&&nn!==void 0&&(nn.REACT_APP_SC_ATTR||nn.SC_ATTR)||"data-styled",ly="active",sy="data-styled-version",pa="6.1.13",Ld=`/*!sc*/
|
|
41
|
-
`,Qs=typeof window<"u"&&"HTMLElement"in window,yk=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&nn.REACT_APP_SC_DISABLE_SPEEDY!==""?nn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&nn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&nn!==void 0&&nn.SC_DISABLE_SPEEDY!==void 0&&nn.SC_DISABLE_SPEEDY!==""&&nn.SC_DISABLE_SPEEDY!=="false"&&nn.SC_DISABLE_SPEEDY),xk={},ha=Object.freeze([]),Bi=Object.freeze({});function ay(e,t,r){return r===void 0&&(r=Bi),e.theme!==r.theme&&e.theme||t||r.theme}var uy=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),vk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,wk=/(^-|-$)/g;function mm(e){return e.replace(vk,"-").replace(wk,"")}var kk=/(a)(d)/gi,Ts=52,gm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qc(e){var t,r="";for(t=Math.abs(e);t>Ts;t=t/Ts|0)r=gm(t%Ts)+r;return(gm(t%Ts)+r).replace(kk,"$1-$2")}var xc,cy=5381,Ii=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},dy=function(e){return Ii(cy,e)};function $d(e){return Qc(dy(e)>>>0)}function Sk(e){return e.displayName||e.name||"Component"}function vc(e){return typeof e=="string"&&!0}var fy=typeof Symbol=="function"&&Symbol.for,py=fy?Symbol.for("react.memo"):60115,bk=fy?Symbol.for("react.forward_ref"):60112,Ck={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ek={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jk=((xc={})[bk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xc[py]=hy,xc);function ym(e){return("type"in(t=e)&&t.type.$$typeof)===py?hy:"$$typeof"in e?jk[e.$$typeof]:Ck;var t}var Tk=Object.defineProperty,Rk=Object.getOwnPropertyNames,xm=Object.getOwnPropertySymbols,Nk=Object.getOwnPropertyDescriptor,Ik=Object.getPrototypeOf,vm=Object.prototype;function my(e,t,r){if(typeof t!="string"){if(vm){var o=Ik(t);o&&o!==vm&&my(e,o,r)}var l=Rk(t);xm&&(l=l.concat(xm(t)));for(var a=ym(e),u=ym(t),d=0;d<l.length;++d){var f=l[d];if(!(f in Ek||r&&r[f]||u&&f in u||a&&f in a)){var p=Nk(t,f);try{Tk(e,f,p)}catch{}}}}return e}function Qr(e){return typeof e=="function"}function _d(e){return typeof e=="object"&&"styledComponentId"in e}function Wr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ys(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function nl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Yc(e,t,r){if(r===void 0&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Yc(e[o],t[o]);else if(nl(t))for(var o in t)e[o]=Yc(e[o],t[o]);return e}function zd(e,t){Object.defineProperty(e,"toString",{value:t})}function Er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Pk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,l=o.length,a=l;t>=a;)if((a<<=1)<0)throw Er(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var u=l;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),l=o+r;this.groupSizes[t]=0;for(var a=o;a<l;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],l=this.indexOfGroup(t),a=l+o,u=l;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(Ld);return r},e}(),Bs=new Map,Xs=new Map,Us=1,Rs=function(e){if(Bs.has(e))return Bs.get(e);for(;Xs.has(Us);)Us++;var t=Us++;return Bs.set(e,t),Xs.set(t,e),t},Ak=function(e,t){Us=t+1,Bs.set(e,t),Xs.set(t,e)},Lk="style[".concat(Fi,"][").concat(sy,'="').concat(pa,'"]'),$k=new RegExp("^".concat(Fi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),_k=function(e,t,r){for(var o,l=r.split(","),a=0,u=l.length;a<u;a++)(o=l[a])&&e.registerName(t,o)},zk=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(Ld),l=[],a=0,u=o.length;a<u;a++){var d=o[a].trim();if(d){var f=d.match($k);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(Ak(m,p),_k(e,m,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},wm=function(e){for(var t=document.querySelectorAll(Lk),r=0,o=t.length;r<o;r++){var l=t[r];l&&l.getAttribute(Fi)!==ly&&(zk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Dk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Fi,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;o.setAttribute(Fi,ly),o.setAttribute(sy,pa);var u=Dk();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Ok=function(){function e(t){this.element=gy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,a=o.length;l<a;l++){var u=o[l];if(u.ownerNode===r)return u}throw Er(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Mk=function(){function e(t){this.element=gy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Fk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),km=Qs,Bk={isServer:!Qs,useCSSOMInjection:!yk},Zs=function(){function e(t,r,o){t===void 0&&(t=Bi),r===void 0&&(r={});var l=this;this.options=yt(yt({},Bk),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Qs&&km&&(km=!1,wm(this)),zd(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(g){var v=function(C){return Xs.get(C)}(g);if(v===void 0)return"continue";var w=a.names.get(v),S=u.getGroup(g);if(w===void 0||!w.size||S.length===0)return"continue";var b="".concat(Fi,".g").concat(g,'[id="').concat(v,'"]'),j="";w!==void 0&&w.forEach(function(C){C.length>0&&(j+="".concat(C,","))}),f+="".concat(S).concat(b,'{content:"').concat(j,'"}').concat(Ld)},m=0;m<d;m++)p(m);return f}(l)})}return e.registerId=function(t){return Rs(t)},e.prototype.rehydrate=function(){!this.server&&Qs&&wm(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(yt(yt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var o=r.useCSSOMInjection,l=r.target;return r.isServer?new Fk(l):o?new Ok(l):new Mk(l)}(this.options),new Pk(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Rs(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Rs(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rs(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Uk=/&/g,Vk=/^\s*\/\/.*$/gm;function yy(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=yy(r.children,t)),r})}function Hk(e){var t,r,o,l=Bi,a=l.options,u=a===void 0?Bi:a,d=l.plugins,f=d===void 0?ha:d,p=function(v,w,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):v},m=f.slice();m.push(function(v){v.type===ua&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(Uk,r).replace(o,p))}),u.prefix&&m.push(mk),m.push(fk);var g=function(v,w,S,b){w===void 0&&(w=""),S===void 0&&(S=""),b===void 0&&(b="&"),t=b,r=w,o=new RegExp("\\".concat(r,"\\b"),"g");var j=v.replace(Vk,""),C=ck(S||w?"".concat(S," ").concat(w," { ").concat(j," }"):j);u.namespace&&(C=yy(C,u.namespace));var P=[];return Ks(C,pk(m.concat(hk(function(L){return P.push(L)})))),P};return g.hash=f.length?f.reduce(function(v,w){return w.name||Er(15),Ii(v,w.name)},cy).toString():"",g}var qk=new Zs,Xc=Hk(),xy=Pt.createContext({shouldForwardProp:void 0,styleSheet:qk,stylis:Xc});xy.Consumer;Pt.createContext(void 0);function Zc(){return I.useContext(xy)}var vy=function(){function e(t,r){var o=this;this.inject=function(l,a){a===void 0&&(a=Xc);var u=o.name+a.hash;l.hasNameForId(o.id,u)||l.insertRules(o.id,u,a(o.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,zd(this,function(){throw Er(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Xc),this.name+t.hash},e}(),Wk=function(e){return e>="A"&&e<="Z"};function Sm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Wk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var wy=function(e){return e==null||e===!1||e===""},ky=function(e){var t,r,o=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!wy(a)&&(Array.isArray(a)&&a.isCss||Qr(a)?o.push("".concat(Sm(l),":"),a,";"):nl(a)?o.push.apply(o,Di(Di(["".concat(l," {")],ky(a),!1),["}"],!1)):o.push("".concat(Sm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in gk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function br(e,t,r,o){if(wy(e))return[];if(_d(e))return[".".concat(e.styledComponentId)];if(Qr(e)){if(!Qr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var l=e(t);return br(l,t,r,o)}var a;return e instanceof vy?r?(e.inject(r,o),[e.getName(o)]):[e]:nl(e)?ky(e):Array.isArray(e)?Array.prototype.concat.apply(ha,e.map(function(u){return br(u,t,r,o)})):[e.toString()]}function Sy(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qr(r)&&!_d(r))return!1}return!0}var Gk=dy(pa),Jk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&Sy(t),this.componentId=r,this.baseHash=Ii(Gk,r),this.baseStyle=o,Zs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Wr(l,this.staticRulesId);else{var a=Ys(br(this.rules,t,r,o)),u=Qc(Ii(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=o(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}l=Wr(l,u),this.staticRulesId=u}else{for(var f=Ii(this.baseHash,o.hash),p="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")p+=g;else if(g){var v=Ys(br(g,t,r,o));f=Ii(f,v+m),p+=v}}if(p){var w=Qc(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,o(p,".".concat(w),void 0,this.componentId)),l=Wr(l,w)}}return l},e}(),Ui=Pt.createContext(void 0);Ui.Consumer;function Kk(){var e=I.useContext(Ui);if(!e)throw Er(18);return e}function bm(e){var t=Pt.useContext(Ui),r=I.useMemo(function(){return function(o,l){if(!o)throw Er(14);if(Qr(o)){var a=o(l);return a}if(Array.isArray(o)||typeof o!="object")throw Er(8);return l?yt(yt({},l),o):o}(e.theme,t)},[e.theme,t]);return e.children?Pt.createElement(Ui.Provider,{value:r},e.children):null}var wc={};function Qk(e,t,r){var o=_d(e),l=e,a=!vc(e),u=t.attrs,d=u===void 0?ha:u,f=t.componentId,p=f===void 0?function(M,H){var A=typeof M!="string"?"sc":mm(M);wc[A]=(wc[A]||0)+1;var q="".concat(A,"-").concat($d(pa+A+wc[A]));return H?"".concat(H,"-").concat(q):q}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(M){return vc(M)?"styled.".concat(M):"Styled(".concat(Sk(M),")")}(e):m,v=t.displayName&&t.componentId?"".concat(mm(t.displayName),"-").concat(t.componentId):t.componentId||p,w=o&&l.attrs?l.attrs.concat(d).filter(Boolean):d,S=t.shouldForwardProp;if(o&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;S=function(M,H){return b(M,H)&&j(M,H)}}else S=b}var C=new Jk(r,v,o?l.componentStyle:void 0);function P(M,H){return function(A,q,K){var le=A.attrs,D=A.componentStyle,ne=A.defaultProps,se=A.foldedComponentIds,oe=A.styledComponentId,re=A.target,B=Pt.useContext(Ui),ae=Zc(),ue=A.shouldForwardProp||ae.shouldForwardProp,X=ay(q,B,ne)||Bi,ce=function(Se,me,Ee){for(var ke,je=yt(yt({},me),{className:void 0,theme:Ee}),Ve=0;Ve<Se.length;Ve+=1){var Ct=Qr(ke=Se[Ve])?ke(je):ke;for(var Ie in Ct)je[Ie]=Ie==="className"?Wr(je[Ie],Ct[Ie]):Ie==="style"?yt(yt({},je[Ie]),Ct[Ie]):Ct[Ie]}return me.className&&(je.className=Wr(je.className,me.className)),je}(le,q,X),E=ce.as||re,z={};for(var G in ce)ce[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ce.theme===X||(G==="forwardedAs"?z.as=ce.forwardedAs:ue&&!ue(G,E)||(z[G]=ce[G]));var N=function(Se,me){var Ee=Zc(),ke=Se.generateAndInjectStyles(me,Ee.styleSheet,Ee.stylis);return ke}(D,ce),ye=Wr(se,oe);return N&&(ye+=" "+N),ce.className&&(ye+=" "+ce.className),z[vc(E)&&!uy.has(E)?"class":"className"]=ye,z.ref=K,I.createElement(E,z)}(L,M,H)}P.displayName=g;var L=Pt.forwardRef(P);return L.attrs=w,L.componentStyle=C,L.displayName=g,L.shouldForwardProp=S,L.foldedComponentIds=o?Wr(l.foldedComponentIds,l.styledComponentId):"",L.styledComponentId=v,L.target=o?l.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=o?function(H){for(var A=[],q=1;q<arguments.length;q++)A[q-1]=arguments[q];for(var K=0,le=A;K<le.length;K++)Yc(H,le[K],!0);return H}({},l.defaultProps,M):M}}),zd(L,function(){return".".concat(L.styledComponentId)}),a&&my(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function Cm(e,t){for(var r=[e[0]],o=0,l=t.length;o<l;o+=1)r.push(t[o],e[o+1]);return r}var Em=function(e){return Object.assign(e,{isCss:!0})};function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qr(e)||nl(e))return Em(br(Cm(ha,Di([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?br(o):Em(br(Cm(o,t)))}function ed(e,t,r){if(r===void 0&&(r=Bi),!t)throw Er(1,t);var o=function(l){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,bt.apply(void 0,Di([l],a,!1)))};return o.attrs=function(l){return ed(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o.withConfig=function(l){return ed(e,t,yt(yt({},r),l))},o}var by=function(e){return ed(Qk,e)},R=by;uy.forEach(function(e){R[e]=by(e)});var Yk=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Sy(t),Zs.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,o,l){var a=l(Ys(br(this.rules,r,o,l)),""),u=this.componentId+t;o.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,o,l){t>2&&Zs.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,r,o,l)},e}();function Xk(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bt.apply(void 0,Di([e],t,!1)),l="sc-global-".concat($d(JSON.stringify(o))),a=new Yk(o,l),u=function(f){var p=Zc(),m=Pt.useContext(Ui),g=Pt.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&d(g,f,p.styleSheet,m,p.stylis),Pt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(g,f,p.styleSheet,m,p.stylis),function(){return a.removeStyles(g,p.styleSheet)}},[g,f,p.styleSheet,m,p.stylis]),null};function d(f,p,m,g,v){if(a.isStatic)a.renderStyles(f,xk,m,v);else{var w=yt(yt({},p),{theme:ay(p,g,u.defaultProps)});a.renderStyles(f,w,m,v)}}return Pt.memo(u)}function Gi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Ys(bt.apply(void 0,Di([e],t,!1))),l=$d(o);return new vy(l,o)}const Zk="/assets/logo-BGHkG1-J.png",eS="/assets/logo-dark-KAsU1C78.png",jm={name:"light",colors:{background:"#ffffffaa",overlayBackground:"#ffffffdd",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",diffAddedText:"rgba(0, 128, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:Zk,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Tm={name:"dark",colors:{background:"#00000055",overlayBackground:"#000000cc",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",diffAddedText:"rgba(0, 255, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:eS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},tS=({usage:e})=>{const[t,r]=I.useState("total"),o=g=>{r(g.target.value)},l=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=Fo(a.toFixed(2)),d=Fo(l.rpm),f=Fo(l.rpd),p=Fo(Rm(l.tpm)),m=Fo(Rm(l.tpd));return y.jsx(rS,{children:y.jsxs(iS,{children:[y.jsx(oS,{onChange:o,value:t,children:Object.keys(e.usageMetrics).map(g=>y.jsx("option",{value:g,children:g},g))}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"Cost:"}),y.jsxs(Vo,{children:["$",u]},u)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPM:"}),y.jsx(Vo,{children:d},d)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPD:"}),y.jsx(Vo,{children:f},f)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPM:"}),y.jsx(Vo,{children:p},p)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPD:"}),y.jsx(Vo,{children:m},m)]})]})})},Rm=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Fo=e=>{const[t,r]=I.useState(e),o=I.useRef(e);return I.useEffect(()=>{e!==o.current&&(r(e),o.current=e)},[e]),t},nS=Gi`
|
|
40
|
+
*/var fm;function Zw(){if(fm)return Mo;fm=1;var e=Ad(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var m,g={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(m in f)o.call(f,m)&&!a.hasOwnProperty(m)&&(g[m]=f[m]);if(d&&d.defaultProps)for(m in f=d.defaultProps,f)g[m]===void 0&&(g[m]=f[m]);return{$$typeof:t,type:d,key:v,ref:w,props:g,_owner:l.current}}return Mo.Fragment=r,Mo.jsx=u,Mo.jsxs=u,Mo}var pm;function ek(){return pm||(pm=1,xc.exports=Zw()),xc.exports}var y=ek(),yt=function(){return yt=Object.assign||function(t){for(var r,o=1,l=arguments.length;o<l;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yt.apply(this,arguments)};function Di(e,t,r){if(r||arguments.length===2)for(var o=0,l=t.length,a;o<l;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Qe="-ms-",Zo="-moz-",Fe="-webkit-",ty="comm",da="rule",Ld="decl",tk="@import",ny="@keyframes",nk="@layer",ry=Math.abs,$d=String.fromCharCode,Kc=Object.assign;function rk(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function iy(e){return e.trim()}function Xn(e,t){return(e=t.exec(e))?e[0]:e}function Ne(e,t,r){return e.replace(t,r)}function Fs(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function oy(e){return e.length}function Yo(e,t){return t.push(e),e}function ik(e,t){return e.map(t).join("")}function hm(e,t){return e.filter(function(r){return!Xn(r,t)})}var fa=1,Mi=1,ly=0,xn=0,ct=0,Wi="";function pa(e,t,r,o,l,a,u,d){return{value:e,root:t,parent:r,type:o,props:l,children:a,line:fa,column:Mi,length:u,return:"",siblings:d}}function Sr(e,t){return Kc(pa("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ei(e){for(;e.root;)e=Sr(e.root,{children:[e]});Yo(e,e.siblings)}function ok(){return ct}function lk(){return ct=xn>0?gt(Wi,--xn):0,Mi--,ct===10&&(Mi=1,fa--),ct}function Tn(){return ct=xn<ly?gt(Wi,xn++):0,Mi++,ct===10&&(Mi=1,fa++),ct}function Jr(){return gt(Wi,xn)}function Bs(){return xn}function ha(e,t){return Oi(Wi,e,t)}function Qc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sk(e){return fa=Mi=1,ly=Bn(Wi=e),xn=0,[]}function ak(e){return Wi="",e}function vc(e){return iy(ha(xn-1,Yc(e===91?e+2:e===40?e+1:e)))}function uk(e){for(;(ct=Jr())&&ct<33;)Tn();return Qc(e)>2||Qc(ct)>3?"":" "}function ck(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return ha(e,Bs()+(t<6&&Jr()==32&&Tn()==32))}function Yc(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&Yc(ct);break;case 40:e===41&&Yc(e);break;case 92:Tn();break}return xn}function dk(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Jr()===47)break;return"/*"+ha(t,xn-1)+"*"+$d(e===47?e:Tn())}function fk(e){for(;!Qc(Jr());)Tn();return ha(e,xn)}function pk(e){return ak(Us("",null,null,null,[""],e=sk(e),0,[0],e))}function Us(e,t,r,o,l,a,u,d,f){for(var p=0,m=0,g=u,v=0,w=0,S=0,b=1,j=1,C=1,P=0,L="",M=l,H=a,A=o,q=L;j;)switch(S=P,P=Tn()){case 40:if(S!=108&>(q,g-1)==58){Fs(q+=Ne(vc(P),"&","&\f"),"&\f",ry(p?d[p-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:q+=vc(P);break;case 9:case 10:case 13:case 32:q+=uk(S);break;case 92:q+=ck(Bs()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Yo(hk(dk(Tn(),Bs()),t,r,f),f);break;default:q+="/"}break;case 123*b:d[p++]=Bn(q)*C;case 125*b:case 59:case 0:switch(P){case 0:case 125:j=0;case 59+m:C==-1&&(q=Ne(q,/\f/g,"")),w>0&&Bn(q)-g&&Yo(w>32?gm(q+";",o,r,g-1,f):gm(Ne(q," ","")+";",o,r,g-2,f),f);break;case 59:q+=";";default:if(Yo(A=mm(q,t,r,p,m,l,d,L,M=[],H=[],g,a),a),P===123)if(m===0)Us(q,t,A,A,M,a,g,d,H);else switch(v===99&>(q,3)===110?100:v){case 100:case 108:case 109:case 115:Us(e,A,A,o&&Yo(mm(e,A,A,0,0,l,d,L,l,M=[],g,H),H),l,H,g,d,o?M:H);break;default:Us(q,A,A,A,[""],H,0,d,H)}}p=m=w=0,b=C=1,L=q="",g=u;break;case 58:g=1+Bn(q),w=S;default:if(b<1){if(P==123)--b;else if(P==125&&b++==0&&lk()==125)continue}switch(q+=$d(P),P*b){case 38:C=m>0?1:(q+="\f",-1);break;case 44:d[p++]=(Bn(q)-1)*C,C=1;break;case 64:Jr()===45&&(q+=vc(Tn())),v=Jr(),m=g=Bn(L=q+=fk(Bs())),P++;break;case 45:S===45&&Bn(q)==2&&(b=0)}}return a}function mm(e,t,r,o,l,a,u,d,f,p,m,g){for(var v=l-1,w=l===0?a:[""],S=oy(w),b=0,j=0,C=0;b<o;++b)for(var P=0,L=Oi(e,v+1,v=ry(j=u[b])),M=e;P<S;++P)(M=iy(j>0?w[P]+" "+L:Ne(L,/&\f/g,w[P])))&&(f[C++]=M);return pa(e,t,r,l===0?da:d,f,p,m,g)}function hk(e,t,r,o){return pa(e,t,r,ty,$d(ok()),Oi(e,2,-2),0,o)}function gm(e,t,r,o,l){return pa(e,t,r,Ld,Oi(e,0,o),Oi(e,o+1,-1),o,l)}function sy(e,t,r){switch(rk(e,t)){case 5103:return Fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+e+e;case 4789:return Zo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Zo+e+Qe+e+e;case 5936:switch(gt(e,t+11)){case 114:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+Qe+Ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+Qe+e+e;case 6165:return Fe+e+Qe+"flex-"+e+e;case 5187:return Fe+e+Ne(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return Fe+e+Qe+"flex-item-"+Ne(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ne(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+Qe+"flex-line-pack"+Ne(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+Qe+Ne(e,"shrink","negative")+e;case 5292:return Fe+e+Qe+Ne(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ne(e,"-grow","")+Fe+e+Qe+Ne(e,"grow","positive")+e;case 4554:return Fe+Ne(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ne(Ne(Ne(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ne(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ne(Ne(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return Qe+"grid-column-align"+Oi(e,t)+e;break;case 2592:case 3360:return Qe+Ne(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,l){return t=l,Xn(o.props,/grid-\w+-end/)})?~Fs(e+(r=r[t].value),"span",0)?e:Qe+Ne(e,"-start","")+e+Qe+"grid-row-span:"+(~Fs(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":Qe+Ne(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Xn(o.props,/grid-\w+-start/)})?e:Qe+Ne(Ne(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ne(e,/(.+)-inline(.+)/,Fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bn(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ne(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Zo+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fs(e,"stretch",0)?sy(Ne(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ne(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,l,a,u,d,f,p){return Qe+l+":"+a+p+(u?Qe+l+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(gt(e,t+6)===121)return Ne(e,":",":"+Fe)+e;break;case 6444:switch(gt(e,gt(e,14)===45?18:11)){case 120:return Ne(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(gt(e,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ne(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ne(e,"scroll-","scroll-snap-")+e}return e}function Ys(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function mk(e,t,r,o){switch(e.type){case nk:if(e.children.length)break;case tk:case Ld:return e.return=e.return||e.value;case ty:return"";case ny:return e.return=e.value+"{"+Ys(e.children,o)+"}";case da:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Ys(e.children,o))?e.return=e.value+"{"+r+"}":""}function gk(e){var t=oy(e);return function(r,o,l,a){for(var u="",d=0;d<t;d++)u+=e[d](r,o,l,a)||"";return u}}function yk(e){return function(t){t.root||(t=t.return)&&e(t)}}function xk(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Ld:e.return=sy(e.value,e.length,r);return;case ny:return Ys([Sr(e,{value:Ne(e.value,"@","@"+Fe)})],o);case da:if(e.length)return ik(r=e.props,function(l){switch(Xn(l,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ei(Sr(e,{props:[Ne(l,/:(read-\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[l]})),Kc(e,{props:hm(r,o)});break;case"::placeholder":Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Fe+"input-$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,":"+Zo+"$1")]})),Ei(Sr(e,{props:[Ne(l,/:(plac\w+)/,Qe+"input-$1")]})),Ei(Sr(e,{props:[l]})),Kc(e,{props:hm(r,o)});break}return""})}}var vk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rn={},Fi=typeof process<"u"&&rn!==void 0&&(rn.REACT_APP_SC_ATTR||rn.SC_ATTR)||"data-styled",ay="active",uy="data-styled-version",ma="6.1.13",_d=`/*!sc*/
|
|
41
|
+
`,Xs=typeof window<"u"&&"HTMLElement"in window,wk=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&rn!==void 0&&rn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&rn.REACT_APP_SC_DISABLE_SPEEDY!==""?rn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&rn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&rn!==void 0&&rn.SC_DISABLE_SPEEDY!==void 0&&rn.SC_DISABLE_SPEEDY!==""&&rn.SC_DISABLE_SPEEDY!=="false"&&rn.SC_DISABLE_SPEEDY),kk={},ga=Object.freeze([]),Bi=Object.freeze({});function cy(e,t,r){return r===void 0&&(r=Bi),e.theme!==r.theme&&e.theme||t||r.theme}var dy=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Sk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,bk=/(^-|-$)/g;function ym(e){return e.replace(Sk,"-").replace(bk,"")}var Ck=/(a)(d)/gi,Ns=52,xm=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xc(e){var t,r="";for(t=Math.abs(e);t>Ns;t=t/Ns|0)r=xm(t%Ns)+r;return(xm(t%Ns)+r).replace(Ck,"$1-$2")}var wc,fy=5381,Ii=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},py=function(e){return Ii(fy,e)};function zd(e){return Xc(py(e)>>>0)}function Ek(e){return e.displayName||e.name||"Component"}function kc(e){return typeof e=="string"&&!0}var hy=typeof Symbol=="function"&&Symbol.for,my=hy?Symbol.for("react.memo"):60115,jk=hy?Symbol.for("react.forward_ref"):60112,Tk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rk={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Nk=((wc={})[jk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wc[my]=gy,wc);function vm(e){return("type"in(t=e)&&t.type.$$typeof)===my?gy:"$$typeof"in e?Nk[e.$$typeof]:Tk;var t}var Ik=Object.defineProperty,Pk=Object.getOwnPropertyNames,wm=Object.getOwnPropertySymbols,Ak=Object.getOwnPropertyDescriptor,Lk=Object.getPrototypeOf,km=Object.prototype;function yy(e,t,r){if(typeof t!="string"){if(km){var o=Lk(t);o&&o!==km&&yy(e,o,r)}var l=Pk(t);wm&&(l=l.concat(wm(t)));for(var a=vm(e),u=vm(t),d=0;d<l.length;++d){var f=l[d];if(!(f in Rk||r&&r[f]||u&&f in u||a&&f in a)){var p=Ak(t,f);try{Ik(e,f,p)}catch{}}}}return e}function Qr(e){return typeof e=="function"}function Dd(e){return typeof e=="object"&&"styledComponentId"in e}function Wr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Zs(e,t){if(e.length===0)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function nl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Zc(e,t,r){if(r===void 0&&(r=!1),!r&&!nl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=Zc(e[o],t[o]);else if(nl(t))for(var o in t)e[o]=Zc(e[o],t[o]);return e}function Od(e,t){Object.defineProperty(e,"toString",{value:t})}function Er(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var $k=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,o=0;o<t;o++)r+=this.groupSizes[o];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var o=this.groupSizes,l=o.length,a=l;t>=a;)if((a<<=1)<0)throw Er(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var u=l;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],o=this.indexOfGroup(t),l=o+r;this.groupSizes[t]=0;for(var a=o;a<l;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var o=this.groupSizes[t],l=this.indexOfGroup(t),a=l+o,u=l;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(_d);return r},e}(),Vs=new Map,ea=new Map,Hs=1,Is=function(e){if(Vs.has(e))return Vs.get(e);for(;ea.has(Hs);)Hs++;var t=Hs++;return Vs.set(e,t),ea.set(t,e),t},_k=function(e,t){Hs=t+1,Vs.set(e,t),ea.set(t,e)},zk="style[".concat(Fi,"][").concat(uy,'="').concat(ma,'"]'),Dk=new RegExp("^".concat(Fi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ok=function(e,t,r){for(var o,l=r.split(","),a=0,u=l.length;a<u;a++)(o=l[a])&&e.registerName(t,o)},Mk=function(e,t){for(var r,o=((r=t.textContent)!==null&&r!==void 0?r:"").split(_d),l=[],a=0,u=o.length;a<u;a++){var d=o[a].trim();if(d){var f=d.match(Dk);if(f){var p=0|parseInt(f[1],10),m=f[2];p!==0&&(_k(m,p),Ok(e,m,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},Sm=function(e){for(var t=document.querySelectorAll(zk),r=0,o=t.length;r<o;r++){var l=t[r];l&&l.getAttribute(Fi)!==ay&&(Mk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Fk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var xy=function(e){var t=document.head,r=e||t,o=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Fi,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;o.setAttribute(Fi,ay),o.setAttribute(uy,ma);var u=Fk();return u&&o.setAttribute("nonce",u),r.insertBefore(o,a),o},Bk=function(){function e(t){this.element=xy(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var o=document.styleSheets,l=0,a=o.length;l<a;l++){var u=o[l];if(u.ownerNode===r)return u}throw Er(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Uk=function(){function e(t){this.element=xy(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var o=document.createTextNode(r);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Vk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),bm=Xs,Hk={isServer:!Xs,useCSSOMInjection:!wk},ta=function(){function e(t,r,o){t===void 0&&(t=Bi),r===void 0&&(r={});var l=this;this.options=yt(yt({},Hk),t),this.gs=r,this.names=new Map(o),this.server=!!t.isServer,!this.server&&Xs&&bm&&(bm=!1,Sm(this)),Od(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(g){var v=function(C){return ea.get(C)}(g);if(v===void 0)return"continue";var w=a.names.get(v),S=u.getGroup(g);if(w===void 0||!w.size||S.length===0)return"continue";var b="".concat(Fi,".g").concat(g,'[id="').concat(v,'"]'),j="";w!==void 0&&w.forEach(function(C){C.length>0&&(j+="".concat(C,","))}),f+="".concat(S).concat(b,'{content:"').concat(j,'"}').concat(_d)},m=0;m<d;m++)p(m);return f}(l)})}return e.registerId=function(t){return Is(t)},e.prototype.rehydrate=function(){!this.server&&Xs&&Sm(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(yt(yt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var o=r.useCSSOMInjection,l=r.target;return r.isServer?new Vk(l):o?new Bk(l):new Uk(l)}(this.options),new $k(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Is(t),this.names.has(t))this.names.get(t).add(r);else{var o=new Set;o.add(r),this.names.set(t,o)}},e.prototype.insertRules=function(t,r,o){this.registerName(t,r),this.getTag().insertRules(Is(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Is(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),qk=/&/g,Wk=/^\s*\/\/.*$/gm;function vy(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=vy(r.children,t)),r})}function Gk(e){var t,r,o,l=Bi,a=l.options,u=a===void 0?Bi:a,d=l.plugins,f=d===void 0?ga:d,p=function(v,w,S){return S.startsWith(r)&&S.endsWith(r)&&S.replaceAll(r,"").length>0?".".concat(t):v},m=f.slice();m.push(function(v){v.type===da&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(qk,r).replace(o,p))}),u.prefix&&m.push(xk),m.push(mk);var g=function(v,w,S,b){w===void 0&&(w=""),S===void 0&&(S=""),b===void 0&&(b="&"),t=b,r=w,o=new RegExp("\\".concat(r,"\\b"),"g");var j=v.replace(Wk,""),C=pk(S||w?"".concat(S," ").concat(w," { ").concat(j," }"):j);u.namespace&&(C=vy(C,u.namespace));var P=[];return Ys(C,gk(m.concat(yk(function(L){return P.push(L)})))),P};return g.hash=f.length?f.reduce(function(v,w){return w.name||Er(15),Ii(v,w.name)},fy).toString():"",g}var Jk=new ta,ed=Gk(),wy=Pt.createContext({shouldForwardProp:void 0,styleSheet:Jk,stylis:ed});wy.Consumer;Pt.createContext(void 0);function td(){return I.useContext(wy)}var ky=function(){function e(t,r){var o=this;this.inject=function(l,a){a===void 0&&(a=ed);var u=o.name+a.hash;l.hasNameForId(o.id,u)||l.insertRules(o.id,u,a(o.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Od(this,function(){throw Er(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ed),this.name+t.hash},e}(),Kk=function(e){return e>="A"&&e<="Z"};function Cm(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(r===1&&o==="-"&&e[0]==="-")return e;Kk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Sy=function(e){return e==null||e===!1||e===""},by=function(e){var t,r,o=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!Sy(a)&&(Array.isArray(a)&&a.isCss||Qr(a)?o.push("".concat(Cm(l),":"),a,";"):nl(a)?o.push.apply(o,Di(Di(["".concat(l," {")],by(a),!1),["}"],!1)):o.push("".concat(Cm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in vk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function br(e,t,r,o){if(Sy(e))return[];if(Dd(e))return[".".concat(e.styledComponentId)];if(Qr(e)){if(!Qr(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var l=e(t);return br(l,t,r,o)}var a;return e instanceof ky?r?(e.inject(r,o),[e.getName(o)]):[e]:nl(e)?by(e):Array.isArray(e)?Array.prototype.concat.apply(ga,e.map(function(u){return br(u,t,r,o)})):[e.toString()]}function Cy(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qr(r)&&!Dd(r))return!1}return!0}var Qk=py(ma),Yk=function(){function e(t,r,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&Cy(t),this.componentId=r,this.baseHash=Ii(Qk,r),this.baseStyle=o,ta.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,o){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Wr(l,this.staticRulesId);else{var a=Zs(br(this.rules,t,r,o)),u=Xc(Ii(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=o(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}l=Wr(l,u),this.staticRulesId=u}else{for(var f=Ii(this.baseHash,o.hash),p="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")p+=g;else if(g){var v=Zs(br(g,t,r,o));f=Ii(f,v+m),p+=v}}if(p){var w=Xc(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,o(p,".".concat(w),void 0,this.componentId)),l=Wr(l,w)}}return l},e}(),Ui=Pt.createContext(void 0);Ui.Consumer;function Xk(){var e=I.useContext(Ui);if(!e)throw Er(18);return e}function Em(e){var t=Pt.useContext(Ui),r=I.useMemo(function(){return function(o,l){if(!o)throw Er(14);if(Qr(o)){var a=o(l);return a}if(Array.isArray(o)||typeof o!="object")throw Er(8);return l?yt(yt({},l),o):o}(e.theme,t)},[e.theme,t]);return e.children?Pt.createElement(Ui.Provider,{value:r},e.children):null}var Sc={};function Zk(e,t,r){var o=Dd(e),l=e,a=!kc(e),u=t.attrs,d=u===void 0?ga:u,f=t.componentId,p=f===void 0?function(M,H){var A=typeof M!="string"?"sc":ym(M);Sc[A]=(Sc[A]||0)+1;var q="".concat(A,"-").concat(zd(ma+A+Sc[A]));return H?"".concat(H,"-").concat(q):q}(t.displayName,t.parentComponentId):f,m=t.displayName,g=m===void 0?function(M){return kc(M)?"styled.".concat(M):"Styled(".concat(Ek(M),")")}(e):m,v=t.displayName&&t.componentId?"".concat(ym(t.displayName),"-").concat(t.componentId):t.componentId||p,w=o&&l.attrs?l.attrs.concat(d).filter(Boolean):d,S=t.shouldForwardProp;if(o&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;S=function(M,H){return b(M,H)&&j(M,H)}}else S=b}var C=new Yk(r,v,o?l.componentStyle:void 0);function P(M,H){return function(A,q,K){var le=A.attrs,D=A.componentStyle,ne=A.defaultProps,se=A.foldedComponentIds,oe=A.styledComponentId,re=A.target,B=Pt.useContext(Ui),ae=td(),ue=A.shouldForwardProp||ae.shouldForwardProp,X=cy(q,B,ne)||Bi,ce=function(Se,me,Ee){for(var ke,je=yt(yt({},me),{className:void 0,theme:Ee}),Ve=0;Ve<Se.length;Ve+=1){var Ct=Qr(ke=Se[Ve])?ke(je):ke;for(var Ie in Ct)je[Ie]=Ie==="className"?Wr(je[Ie],Ct[Ie]):Ie==="style"?yt(yt({},je[Ie]),Ct[Ie]):Ct[Ie]}return me.className&&(je.className=Wr(je.className,me.className)),je}(le,q,X),E=ce.as||re,z={};for(var G in ce)ce[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ce.theme===X||(G==="forwardedAs"?z.as=ce.forwardedAs:ue&&!ue(G,E)||(z[G]=ce[G]));var N=function(Se,me){var Ee=td(),ke=Se.generateAndInjectStyles(me,Ee.styleSheet,Ee.stylis);return ke}(D,ce),ye=Wr(se,oe);return N&&(ye+=" "+N),ce.className&&(ye+=" "+ce.className),z[kc(E)&&!dy.has(E)?"class":"className"]=ye,z.ref=K,I.createElement(E,z)}(L,M,H)}P.displayName=g;var L=Pt.forwardRef(P);return L.attrs=w,L.componentStyle=C,L.displayName=g,L.shouldForwardProp=S,L.foldedComponentIds=o?Wr(l.foldedComponentIds,l.styledComponentId):"",L.styledComponentId=v,L.target=o?l.target:e,Object.defineProperty(L,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(M){this._foldedDefaultProps=o?function(H){for(var A=[],q=1;q<arguments.length;q++)A[q-1]=arguments[q];for(var K=0,le=A;K<le.length;K++)Zc(H,le[K],!0);return H}({},l.defaultProps,M):M}}),Od(L,function(){return".".concat(L.styledComponentId)}),a&&yy(L,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),L}function jm(e,t){for(var r=[e[0]],o=0,l=t.length;o<l;o+=1)r.push(t[o],e[o+1]);return r}var Tm=function(e){return Object.assign(e,{isCss:!0})};function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qr(e)||nl(e))return Tm(br(jm(ga,Di([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?br(o):Tm(br(jm(o,t)))}function nd(e,t,r){if(r===void 0&&(r=Bi),!t)throw Er(1,t);var o=function(l){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,bt.apply(void 0,Di([l],a,!1)))};return o.attrs=function(l){return nd(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},o.withConfig=function(l){return nd(e,t,yt(yt({},r),l))},o}var Ey=function(e){return nd(Zk,e)},R=Ey;dy.forEach(function(e){R[e]=Ey(e)});var eS=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Cy(t),ta.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,o,l){var a=l(Zs(br(this.rules,r,o,l)),""),u=this.componentId+t;o.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,o,l){t>2&&ta.registerId(this.componentId+t),this.removeStyles(t,o),this.createStyles(t,r,o,l)},e}();function tS(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=bt.apply(void 0,Di([e],t,!1)),l="sc-global-".concat(zd(JSON.stringify(o))),a=new eS(o,l),u=function(f){var p=td(),m=Pt.useContext(Ui),g=Pt.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&d(g,f,p.styleSheet,m,p.stylis),Pt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(g,f,p.styleSheet,m,p.stylis),function(){return a.removeStyles(g,p.styleSheet)}},[g,f,p.styleSheet,m,p.stylis]),null};function d(f,p,m,g,v){if(a.isStatic)a.renderStyles(f,kk,m,v);else{var w=yt(yt({},p),{theme:cy(p,g,u.defaultProps)});a.renderStyles(f,w,m,v)}}return Pt.memo(u)}function Gi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Zs(bt.apply(void 0,Di([e],t,!1))),l=zd(o);return new ky(l,o)}const nS="/assets/logo-BGHkG1-J.png",rS="/assets/logo-dark-KAsU1C78.png",Rm={name:"light",colors:{background:"#ffffffaa",overlayBackground:"#ffffffdd",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",diffAddedText:"rgba(0, 128, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:nS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Nm={name:"dark",colors:{background:"#00000055",overlayBackground:"#000000cc",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",diffAddedText:"rgba(0, 255, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:rS,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},iS=({usage:e})=>{const[t,r]=I.useState("total"),o=g=>{r(g.target.value)},l=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=Fo(a.toFixed(2)),d=Fo(l.rpm),f=Fo(l.rpd),p=Fo(Im(l.tpm)),m=Fo(Im(l.tpd));return y.jsx(lS,{children:y.jsxs(sS,{children:[y.jsx(aS,{onChange:o,value:t,children:Object.keys(e.usageMetrics).map(g=>y.jsx("option",{value:g,children:g},g))}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"Cost:"}),y.jsxs(Vo,{children:["$",u]},u)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPM:"}),y.jsx(Vo,{children:d},d)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"RPD:"}),y.jsx(Vo,{children:f},f)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPM:"}),y.jsx(Vo,{children:p},p)]}),y.jsxs(Bo,{children:[y.jsx(Uo,{children:"TPD:"}),y.jsx(Vo,{children:m},m)]})]})})},Im=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Fo=e=>{const[t,r]=I.useState(e),o=I.useRef(e);return I.useEffect(()=>{e!==o.current&&(r(e),o.current=e)},[e]),t},oS=Gi`
|
|
42
42
|
0% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
opacity: 1;
|
|
@@ -51,19 +51,19 @@ Error generating stack: `+x.message+`
|
|
|
51
51
|
transform: scale(1);
|
|
52
52
|
opacity: 1;
|
|
53
53
|
}
|
|
54
|
-
`,
|
|
54
|
+
`,lS=R.div`
|
|
55
55
|
background-color: ${({theme:e})=>e.colors.background};
|
|
56
56
|
border-radius: 4px;
|
|
57
57
|
padding: 4px 4px;
|
|
58
58
|
box-shadow:
|
|
59
59
|
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
60
|
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
-
`,
|
|
61
|
+
`,sS=R.div`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-wrap: wrap;
|
|
64
64
|
gap: 8px;
|
|
65
65
|
align-items: center;
|
|
66
|
-
`,
|
|
66
|
+
`,aS=R.select`
|
|
67
67
|
padding: 2px 4px;
|
|
68
68
|
border-radius: 4px;
|
|
69
69
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -82,13 +82,13 @@ Error generating stack: `+x.message+`
|
|
|
82
82
|
font-size: 0.9em;
|
|
83
83
|
font-weight: bold;
|
|
84
84
|
color: ${({theme:e})=>e.colors.text};
|
|
85
|
-
animation: ${
|
|
86
|
-
`;function Cy(e,t){return function(){return e.apply(t,arguments)}}const{toString:lS}=Object.prototype,{getPrototypeOf:Dd}=Object,ma=(e=>t=>{const r=lS.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=e=>(e=e.toLowerCase(),t=>ma(t)===e),ga=e=>t=>typeof t===e,{isArray:Ji}=Array,rl=ga("undefined");function sS(e){return e!==null&&!rl(e)&&e.constructor!==null&&!rl(e.constructor)&&ln(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ey=Nn("ArrayBuffer");function aS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ey(e.buffer),t}const uS=ga("string"),ln=ga("function"),jy=ga("number"),ya=e=>e!==null&&typeof e=="object",cS=e=>e===!0||e===!1,Vs=e=>{if(ma(e)!=="object")return!1;const t=Dd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dS=Nn("Date"),fS=Nn("File"),pS=Nn("Blob"),hS=Nn("FileList"),mS=e=>ya(e)&&ln(e.pipe),gS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ln(e.append)&&((t=ma(e))==="formdata"||t==="object"&&ln(e.toString)&&e.toString()==="[object FormData]"))},yS=Nn("URLSearchParams"),[xS,vS,wS,kS]=["ReadableStream","Request","Response","Headers"].map(Nn),SS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function al(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Ji(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(o=0;o<u;o++)d=a[o],t.call(null,e[d],d,e)}}function Ty(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,l;for(;o-- >0;)if(l=r[o],t===l.toLowerCase())return l;return null}const Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ry=e=>!rl(e)&&e!==Gr;function td(){const{caseless:e}=Ry(this)&&this||{},t={},r=(o,l)=>{const a=e&&Ty(t,l)||l;Vs(t[a])&&Vs(o)?t[a]=td(t[a],o):Vs(o)?t[a]=td({},o):Ji(o)?t[a]=o.slice():t[a]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&al(arguments[o],r);return t}const bS=(e,t,r,{allOwnKeys:o}={})=>(al(t,(l,a)=>{r&&ln(l)?e[a]=Cy(l,r):e[a]=l},{allOwnKeys:o}),e),CS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ES=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},jS=(e,t,r,o)=>{let l,a,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)u=l[a],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Dd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},TS=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},RS=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!jy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},NS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Dd(Uint8Array)),IS=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let l;for(;(l=o.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},PS=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},AS=Nn("HTMLFormElement"),LS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Nm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$S=Nn("RegExp"),Ny=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};al(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(o[a]=u||l)}),Object.defineProperties(e,o)},_S=e=>{Ny(e,(t,r)=>{if(ln(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(ln(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zS=(e,t)=>{const r={},o=l=>{l.forEach(a=>{r[a]=!0})};return Ji(e)?o(e):o(String(e).split(t)),r},DS=()=>{},OS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function MS(e){return!!(e&&ln(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const FS=e=>{const t=new Array(10),r=(o,l)=>{if(ya(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[l]=o;const a=Ji(o)?[]:{};return al(o,(u,d)=>{const f=r(u,l+1);!rl(f)&&(a[d]=f)}),t[l]=void 0,a}}return o};return r(e,0)},BS=Nn("AsyncFunction"),US=e=>e&&(ya(e)||ln(e))&&ln(e.then)&&ln(e.catch),Iy=((e,t)=>e?setImmediate:t?((r,o)=>(Gr.addEventListener("message",({source:l,data:a})=>{l===Gr&&a===r&&o.length&&o.shift()()},!1),l=>{o.push(l),Gr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ln(Gr.postMessage)),VS=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||Iy,V={isArray:Ji,isArrayBuffer:Ey,isBuffer:sS,isFormData:gS,isArrayBufferView:aS,isString:uS,isNumber:jy,isBoolean:cS,isObject:ya,isPlainObject:Vs,isReadableStream:xS,isRequest:vS,isResponse:wS,isHeaders:kS,isUndefined:rl,isDate:dS,isFile:fS,isBlob:pS,isRegExp:$S,isFunction:ln,isStream:mS,isURLSearchParams:yS,isTypedArray:NS,isFileList:hS,forEach:al,merge:td,extend:bS,trim:SS,stripBOM:CS,inherits:ES,toFlatObject:jS,kindOf:ma,kindOfTest:Nn,endsWith:TS,toArray:RS,forEachEntry:IS,matchAll:PS,isHTMLForm:AS,hasOwnProperty:Nm,hasOwnProp:Nm,reduceDescriptors:Ny,freezeMethods:_S,toObjectSet:zS,toCamelCase:LS,noop:DS,toFiniteNumber:OS,findKey:Ty,global:Gr,isContextDefined:Ry,isSpecCompliantForm:MS,toJSONObject:FS,isAsyncFn:BS,isThenable:US,setImmediate:Iy,asap:VS};function Te(e,t,r,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}V.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Py=Te.prototype,Ay={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ay[e]={value:e}});Object.defineProperties(Te,Ay);Object.defineProperty(Py,"isAxiosError",{value:!0});Te.from=(e,t,r,o,l,a)=>{const u=Object.create(Py);return V.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Te.call(u,e.message,t,r,o,l),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const HS=null;function nd(e){return V.isPlainObject(e)||V.isArray(e)}function Ly(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Im(e,t,r){return e?e.concat(t).map(function(l,a){return l=Ly(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function qS(e){return V.isArray(e)&&!e.some(nd)}const WS=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function xa(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,j){return!V.isUndefined(j[b])});const o=r.metaTokens,l=r.visitor||m,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(l))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!f&&V.isBlob(S))throw new Te("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,b,j){let C=S;if(S&&!j&&typeof S=="object"){if(V.endsWith(b,"{}"))b=o?b:b.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&qS(S)||(V.isFileList(S)||V.endsWith(b,"[]"))&&(C=V.toArray(S)))return b=Ly(b),C.forEach(function(L,M){!(V.isUndefined(L)||L===null)&&t.append(u===!0?Im([b],M,a):u===null?b:b+"[]",p(L))}),!1}return nd(S)?!0:(t.append(Im(j,b,a),p(S)),!1)}const g=[],v=Object.assign(WS,{defaultVisitor:m,convertValue:p,isVisitable:nd});function w(S,b){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(S),V.forEach(S,function(C,P){(!(V.isUndefined(C)||C===null)&&l.call(t,C,V.isString(P)?P.trim():P,b,v))===!0&&w(C,b?b.concat(P):[P])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Pm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Od(e,t){this._pairs=[],e&&xa(e,this,t)}const $y=Od.prototype;$y.append=function(t,r){this._pairs.push([t,r])};$y.toString=function(t){const r=t?function(o){return t.call(this,o,Pm)}:Pm;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function GS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _y(e,t,r){if(!t)return e;const o=r&&r.encode||GS;V.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let a;if(l?a=l(t,r):a=V.isURLSearchParams(t)?t.toString():new Od(t,r).toString(o),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Am{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(o){o!==null&&t(o)})}}const zy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JS=typeof URLSearchParams<"u"?URLSearchParams:Od,KS=typeof FormData<"u"?FormData:null,QS=typeof Blob<"u"?Blob:null,YS={isBrowser:!0,classes:{URLSearchParams:JS,FormData:KS,Blob:QS},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",rd=typeof navigator=="object"&&navigator||void 0,XS=Md&&(!rd||["ReactNative","NativeScript","NS"].indexOf(rd.product)<0),ZS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eb=Md&&window.location.href||"http://localhost",tb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:XS,hasStandardBrowserWebWorkerEnv:ZS,navigator:rd,origin:eb},Symbol.toStringTag,{value:"Module"})),It={...tb,...YS};function nb(e,t){return xa(e,new It.classes.URLSearchParams,Object.assign({visitor:function(r,o,l,a){return It.isNode&&V.isBuffer(r)?(this.append(o,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function rb(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ib(e){const t={},r=Object.keys(e);let o;const l=r.length;let a;for(o=0;o<l;o++)a=r[o],t[a]=e[a];return t}function Dy(e){function t(r,o,l,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&V.isArray(l)?l.length:u,f?(V.hasOwnProp(l,u)?l[u]=[l[u],o]:l[u]=o,!d):((!l[u]||!V.isObject(l[u]))&&(l[u]=[]),t(r,o,l[u],a)&&V.isArray(l[u])&&(l[u]=ib(l[u])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(o,l)=>{t(rb(o),l,r,0)}),r}return null}function ob(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const ul={transitional:zy,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,a=V.isObject(t);if(a&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return l?JSON.stringify(Dy(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return nb(t,this.formSerializer).toString();if((d=V.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return xa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),ob(t)):t}],transformResponse:[function(t){const r=this.transitional||ul.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(o&&!this.responseType||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{ul.headers[e]={}});const lb=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sb=e=>{const t={};let r,o,l;return e&&e.split(`
|
|
87
|
-
`).forEach(function(u){l=u.indexOf(":"),r=u.substring(0,l).trim().toLowerCase(),o=u.substring(l+1).trim(),!(!r||t[r]&&
|
|
88
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[Lm]=this[Lm]={accessors:{}}).accessors,l=this.prototype;function a(u){const d=Ho(u);o[d]||(db(l,u),o[d]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}};Gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Gt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});V.freezeMethods(Gt);function Sc(e,t){const r=this||ul,o=t||r,l=Gt.from(o.headers);let a=o.data;return V.forEach(e,function(d){a=d.call(r,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function Oy(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(Ki,Te,{__CANCEL__:!0});function My(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Te("Request failed with status code "+r.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function fb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pb(e,t){e=e||10;const r=new Array(e),o=new Array(e);let l=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=o[a];u||(u=p),r[l]=f,o[l]=p;let g=a,v=0;for(;g!==l;)v+=r[g++],g=g%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),p-u<t)return;const w=m&&p-m;return w?Math.round(v*1e3/w):void 0}}function hb(e,t){let r=0,o=1e3/t,l,a;const u=(p,m=Date.now())=>{r=m,l=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const m=Date.now(),g=m-r;g>=o?u(p,m):(l=p,a||(a=setTimeout(()=>{a=null,u(l)},o-g)))},()=>l&&u(l)]}const ea=(e,t,r=3)=>{let o=0;const l=pb(50,250);return hb(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-o,p=l(f),m=u<=d;o=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&m?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},$m=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},_m=e=>(...t)=>V.asap(()=>e(...t)),mb=It.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,It.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,gb=It.hasStandardBrowserEnv?{write(e,t,r,o,l,a){const u=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),V.isString(o)&&u.push("path="+o),V.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fy(e,t,r){let o=!yb(t);return e&&o||r==!1?xb(e,t):t}const zm=e=>e instanceof Gt?{...e}:e;function Yr(e,t){t=t||{};const r={};function o(p,m,g,v){return V.isPlainObject(p)&&V.isPlainObject(m)?V.merge.call({caseless:v},p,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function l(p,m,g,v){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p,g,v)}else return o(p,m,g,v)}function a(p,m){if(!V.isUndefined(m))return o(void 0,m)}function u(p,m){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p)}else return o(void 0,m)}function d(p,m,g){if(g in t)return o(p,m);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,m,g)=>l(zm(p),zm(m),g,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(m){const g=f[m]||l,v=g(e[m],t[m],m);V.isUndefined(v)&&g!==d||(r[m]=v)}),r}const By=e=>{const t=Yr({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=Gt.from(u),t.url=_y(Fy(t.baseURL,t.url),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(V.isFormData(r)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(It.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||o!==!1&&mb(t.url))){const p=l&&a&&gb.read(a);p&&u.set(l,p)}return t},vb=typeof XMLHttpRequest<"u",wb=vb&&function(e){return new Promise(function(r,o){const l=By(e);let a=l.data;const u=Gt.from(l.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l,m,g,v,w,S;function b(){w&&w(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let j=new XMLHttpRequest;j.open(l.method.toUpperCase(),l.url,!0),j.timeout=l.timeout;function C(){if(!j)return;const L=Gt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:L,config:e,request:j};My(function(q){r(q),b()},function(q){o(q),b()},H),j=null}"onloadend"in j?j.onloadend=C:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(C)},j.onabort=function(){j&&(o(new Te("Request aborted",Te.ECONNABORTED,e,j)),j=null)},j.onerror=function(){o(new Te("Network Error",Te.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let M=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const H=l.transitional||zy;l.timeoutErrorMessage&&(M=l.timeoutErrorMessage),o(new Te(M,H.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,j)),j=null},a===void 0&&u.setContentType(null),"setRequestHeader"in j&&V.forEach(u.toJSON(),function(M,H){j.setRequestHeader(H,M)}),V.isUndefined(l.withCredentials)||(j.withCredentials=!!l.withCredentials),d&&d!=="json"&&(j.responseType=l.responseType),p&&([v,S]=ea(p,!0),j.addEventListener("progress",v)),f&&j.upload&&([g,w]=ea(f),j.upload.addEventListener("progress",g),j.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(m=L=>{j&&(o(!L||L.type?new Ki(null,e,j):L),j.abort(),j=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const P=fb(l.url);if(P&&It.protocols.indexOf(P)===-1){o(new Te("Unsupported protocol "+P+":",Te.ERR_BAD_REQUEST,e));return}j.send(a||null)})},kb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,l;const a=function(p){if(!l){l=!0,d();const m=p instanceof Error?p:this.reason;o.abort(m instanceof Te?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>V.asap(d),f}},Sb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,l;for(;o<r;)l=o+t,yield e.slice(o,l),o=l},bb=async function*(e,t){for await(const r of Cb(e))yield*Sb(r,t)},Cb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},Dm=(e,t,r,o)=>{const l=bb(e,t);let a=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await l.next();if(p){d(),f.close();return}let g=m.byteLength;if(r){let v=a+=g;r(v)}f.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(f){return d(f),l.return()}},{highWaterMark:2})},va=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Uy=va&&typeof ReadableStream=="function",Eb=va&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jb=Uy&&Vy(()=>{let e=!1;const t=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Om=64*1024,id=Uy&&Vy(()=>V.isReadableStream(new Response("").body)),ta={stream:id&&(e=>e.body)};va&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ta[t]&&(ta[t]=V.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new Te(`Response type '${t}' is not supported`,Te.ERR_NOT_SUPPORT,o)})})})(new Response);const Tb=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await Eb(e)).byteLength},Rb=async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return r??Tb(t)},Nb=va&&(async e=>{let{url:t,method:r,data:o,signal:l,cancelToken:a,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:m,withCredentials:g="same-origin",fetchOptions:v}=By(e);p=p?(p+"").toLowerCase():"text";let w=kb([l,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let j;try{if(f&&jb&&r!=="get"&&r!=="head"&&(j=await Rb(m,o))!==0){let H=new Request(t,{method:"POST",body:o,duplex:"half"}),A;if(V.isFormData(o)&&(A=H.headers.get("content-type"))&&m.setContentType(A),H.body){const[q,K]=$m(j,ea(_m(f)));o=Dm(H.body,Om,q,K)}}V.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:C?g:void 0});let P=await fetch(S);const L=id&&(p==="stream"||p==="response");if(id&&(d||L&&b)){const H={};["status","statusText","headers"].forEach(le=>{H[le]=P[le]});const A=V.toFiniteNumber(P.headers.get("content-length")),[q,K]=d&&$m(A,ea(_m(d),!0))||[];P=new Response(Dm(P.body,Om,q,()=>{K&&K(),b&&b()}),H)}p=p||"text";let M=await ta[V.findKey(ta,p)||"text"](P,e);return!L&&b&&b(),await new Promise((H,A)=>{My(H,A,{data:M,headers:Gt.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:S})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,S),{cause:C.cause||C}):Te.from(C,C&&C.code,e,S)}}),od={http:HS,xhr:wb,fetch:Nb};V.forEach(od,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Mm=e=>`- ${e}`,Ib=e=>V.isFunction(e)||e===null||e===!1,Hy={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,o;const l={};for(let a=0;a<t;a++){r=e[a];let u;if(o=r,!Ib(r)&&(o=od[(u=String(r)).toLowerCase()],o===void 0))throw new Te(`Unknown adapter '${u}'`);if(o)break;l[u||"#"+a]=o}if(!o){const a=Object.entries(l).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
|
89
|
-
`+a.map(
|
|
90
|
-
`):" "+
|
|
91
|
-
`+a):o.stack=a}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yr(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:a}=r;o!==void 0&&qs.assertOptions(o,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),l!=null&&(V.isFunction(l)?r.paramsSerializer={serialize:l}:qs.assertOptions(l,{encode:On.function,serialize:On.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qs.assertOptions(r,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&V.merge(a.common,a[r.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=Gt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!f){const S=[Fm.bind(this),void 0];for(S.unshift.apply(S,d),S.push.apply(S,p),v=S.length,m=Promise.resolve(r);g<v;)m=m.then(S[g++],S[g++]);return m}v=d.length;let w=r;for(g=0;g<v;){const S=d[g++],b=d[g++];try{w=S(w)}catch(j){b.call(this,j);break}}try{m=Fm.call(this,w)}catch(S){return Promise.reject(S)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Yr(this.defaults,t);const r=Fy(t.baseURL,t.url,t.allowAbsoluteUrls);return _y(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(r,o){return this.request(Yr(o||{},{method:t,url:r,data:(o||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(o){return function(a,u,d){return this.request(Yr(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Kr.prototype[t]=r(),Kr.prototype[t+"Form"]=r(!0)});let Ab=class Wy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const o=this;this.promise.then(l=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const u=new Promise(d=>{o.subscribe(d),a=d}).then(l);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,d){o.reason||(o.reason=new Ki(a,u,d),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wy(function(l){t=l}),cancel:t}}};function Lb(e){return function(r){return e.apply(null,r)}}function $b(e){return V.isObject(e)&&e.isAxiosError===!0}const ld={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ld).forEach(([e,t])=>{ld[t]=e});function Gy(e){const t=new Kr(e),r=Cy(Kr.prototype.request,t);return V.extend(r,Kr.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return Gy(Yr(e,l))},r}const Ze=Gy(ul);Ze.Axios=Kr;Ze.CanceledError=Ki;Ze.CancelToken=Ab;Ze.isCancel=Oy;Ze.VERSION=qy;Ze.toFormData=xa;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=Lb;Ze.isAxiosError=$b;Ze.mergeConfig=Yr;Ze.AxiosHeaders=Gt;Ze.formToJSON=e=>Dy(V.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=Hy.getAdapter;Ze.HttpStatusCode=ld;Ze.default=Ze;const{Axios:YL,AxiosError:XL,CanceledError:ZL,isCancel:e$,CancelToken:t$,VERSION:n$,all:r$,Cancel:i$,isAxiosError:o$,spread:l$,toFormData:s$,AxiosHeaders:a$,HttpStatusCode:u$,formToJSON:c$,getAdapter:d$,mergeConfig:f$}=Ze,_b="/api",rt=Ze.create({baseURL:_b,headers:{"Content-Type":"application/json"}}),zb=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};rt.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));rt.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const o=await zb();if(o)return t.headers.Authorization=`Bearer ${o}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",o),rt(t)}return Promise.reject(e)});const Db=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await rt.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Ze.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Um=async()=>(await rt.get("/content")).data.content,Ob=async(e,t,r)=>{const o=new FormData;o.append("prompt",e),o.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(l=>{o.append("images",l)});try{await rt.post("/execute-codegen",o,{headers:{"Content-Type":"multipart/form-data"}})}catch(l){throw Ze.isAxiosError(l)?l.response?new Error(`Server error: ${l.response.data.message||"Unknown error"}`):l.request?new Error("No response received from server"):new Error(`Error setting up request: ${l.message}`):new Error("An unexpected error occurred")}},Jy=async(e,t,r,o)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(!["default","cheap","reasoning","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await rt.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:o})).data.result}catch(l){if(Ze.isAxiosError(l))if(l.response){const a=l.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw l.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${l.message}`);throw l instanceof Error?l:new Error("An unexpected error occurred during content generation")}},sd=async()=>(await rt.get("/execution-status")).data.status,Mb=async()=>{await rt.post("/interrupt-execution")},Ky=async()=>await rt.post("/interrupt-execution",{scope:"container-command"}),Fb=async()=>{await rt.post("/pause-execution")},Bb=async()=>{await rt.post("/resume-execution")},ad=async()=>(await rt.get("/current-question")).data.question,Ub=async(e,t,r,o,l)=>{const a=new FormData;a.append("questionId",e),a.append("answer",t),r!==void 0&&a.append("confirmed",String(r)),o&&a.append("options",JSON.stringify(o)),l&&l.length>0&&l.forEach(u=>{a.append("images",u)}),await rt.post("/answer-question",a,{headers:{"Content-Type":"multipart/form-data"}})},Vm=async()=>(await rt.get("/usage")).data,Vb=async()=>(await rt.get("/default-codegen-options")).data.options,Hb=async()=>(await rt.get("/rcconfig")).data.rcConfig,qb=async e=>{await rt.delete(`/delete-iteration/${e}`)},Fd=async()=>(await rt.get("/available-ai-services")).data.services,Qy=async()=>{try{return(await rt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Wb=async e=>{await rt.post("/service-configuration",e)};rt.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function cl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function dl(e,t){I.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Gb(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function Yy(){const[e,t]=I.useState([]),[r,o]=I.useState(null);return I.useEffect(()=>{(async()=>{try{const a=await Fd();t(a)}catch(a){console.error("Error fetching AI services:",a),o("Failed to fetch available AI services.")}})()},[]),[e,r]}function Xy(){const[e,t]=I.useState({services:[],isLoading:!0,error:null});return I.useEffect(()=>{(async()=>{try{const[o,l]=await Promise.all([Fd(),Qy()]),a=o.map(u=>({service:u,config:l[u],displayName:Gb(u,l[u])}));t({services:a,isLoading:!1,error:null})}catch(o){console.error("Error fetching services with configurations:",o),t(l=>({...l,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const jr=R.button`
|
|
85
|
+
animation: ${oS} 0.5s ease-in-out;
|
|
86
|
+
`;function jy(e,t){return function(){return e.apply(t,arguments)}}const{toString:uS}=Object.prototype,{getPrototypeOf:Md}=Object,{iterator:ya,toStringTag:Ty}=Symbol,xa=(e=>t=>{const r=uS.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nn=e=>(e=e.toLowerCase(),t=>xa(t)===e),va=e=>t=>typeof t===e,{isArray:Ji}=Array,rl=va("undefined");function al(e){return e!==null&&!rl(e)&&e.constructor!==null&&!rl(e.constructor)&&Gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ry=Nn("ArrayBuffer");function cS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ry(e.buffer),t}const dS=va("string"),Gt=va("function"),Ny=va("number"),ul=e=>e!==null&&typeof e=="object",fS=e=>e===!0||e===!1,qs=e=>{if(xa(e)!=="object")return!1;const t=Md(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ty in e)&&!(ya in e)},pS=e=>{if(!ul(e)||al(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hS=Nn("Date"),mS=Nn("File"),gS=Nn("Blob"),yS=Nn("FileList"),xS=e=>ul(e)&&Gt(e.pipe),vS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gt(e.append)&&((t=xa(e))==="formdata"||t==="object"&&Gt(e.toString)&&e.toString()==="[object FormData]"))},wS=Nn("URLSearchParams"),[kS,SS,bS,CS]=["ReadableStream","Request","Response","Headers"].map(Nn),ES=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,l;if(typeof e!="object"&&(e=[e]),Ji(e))for(o=0,l=e.length;o<l;o++)t.call(null,e[o],o,e);else{if(al(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(o=0;o<u;o++)d=a[o],t.call(null,e[d],d,e)}}function Iy(e,t){if(al(e))return null;t=t.toLowerCase();const r=Object.keys(e);let o=r.length,l;for(;o-- >0;)if(l=r[o],t===l.toLowerCase())return l;return null}const Gr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Py=e=>!rl(e)&&e!==Gr;function rd(){const{caseless:e}=Py(this)&&this||{},t={},r=(o,l)=>{const a=e&&Iy(t,l)||l;qs(t[a])&&qs(o)?t[a]=rd(t[a],o):qs(o)?t[a]=rd({},o):Ji(o)?t[a]=o.slice():t[a]=o};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&cl(arguments[o],r);return t}const jS=(e,t,r,{allOwnKeys:o}={})=>(cl(t,(l,a)=>{r&&Gt(l)?e[a]=jy(l,r):e[a]=l},{allOwnKeys:o}),e),TS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),RS=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},NS=(e,t,r,o)=>{let l,a,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)u=l[a],(!o||o(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Md(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},IS=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},PS=e=>{if(!e)return null;if(Ji(e))return e;let t=e.length;if(!Ny(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},AS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Md(Uint8Array)),LS=(e,t)=>{const o=(e&&e[ya]).call(e);let l;for(;(l=o.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},$S=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},_S=Nn("HTMLFormElement"),zS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,l){return o.toUpperCase()+l}),Pm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),DS=Nn("RegExp"),Ay=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};cl(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(o[a]=u||l)}),Object.defineProperties(e,o)},OS=e=>{Ay(e,(t,r)=>{if(Gt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(Gt(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},MS=(e,t)=>{const r={},o=l=>{l.forEach(a=>{r[a]=!0})};return Ji(e)?o(e):o(String(e).split(t)),r},FS=()=>{},BS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function US(e){return!!(e&&Gt(e.append)&&e[Ty]==="FormData"&&e[ya])}const VS=e=>{const t=new Array(10),r=(o,l)=>{if(ul(o)){if(t.indexOf(o)>=0)return;if(al(o))return o;if(!("toJSON"in o)){t[l]=o;const a=Ji(o)?[]:{};return cl(o,(u,d)=>{const f=r(u,l+1);!rl(f)&&(a[d]=f)}),t[l]=void 0,a}}return o};return r(e,0)},HS=Nn("AsyncFunction"),qS=e=>e&&(ul(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),Ly=((e,t)=>e?setImmediate:t?((r,o)=>(Gr.addEventListener("message",({source:l,data:a})=>{l===Gr&&a===r&&o.length&&o.shift()()},!1),l=>{o.push(l),Gr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Gt(Gr.postMessage)),WS=typeof queueMicrotask<"u"?queueMicrotask.bind(Gr):typeof process<"u"&&process.nextTick||Ly,GS=e=>e!=null&&Gt(e[ya]),V={isArray:Ji,isArrayBuffer:Ry,isBuffer:al,isFormData:vS,isArrayBufferView:cS,isString:dS,isNumber:Ny,isBoolean:fS,isObject:ul,isPlainObject:qs,isEmptyObject:pS,isReadableStream:kS,isRequest:SS,isResponse:bS,isHeaders:CS,isUndefined:rl,isDate:hS,isFile:mS,isBlob:gS,isRegExp:DS,isFunction:Gt,isStream:xS,isURLSearchParams:wS,isTypedArray:AS,isFileList:yS,forEach:cl,merge:rd,extend:jS,trim:ES,stripBOM:TS,inherits:RS,toFlatObject:NS,kindOf:xa,kindOfTest:Nn,endsWith:IS,toArray:PS,forEachEntry:LS,matchAll:$S,isHTMLForm:_S,hasOwnProperty:Pm,hasOwnProp:Pm,reduceDescriptors:Ay,freezeMethods:OS,toObjectSet:MS,toCamelCase:zS,noop:FS,toFiniteNumber:BS,findKey:Iy,global:Gr,isContextDefined:Py,isSpecCompliantForm:US,toJSONObject:VS,isAsyncFn:HS,isThenable:qS,setImmediate:Ly,asap:WS,isIterable:GS};function Te(e,t,r,o,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),l&&(this.response=l,this.status=l.status?l.status:null)}V.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const $y=Te.prototype,_y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_y[e]={value:e}});Object.defineProperties(Te,_y);Object.defineProperty($y,"isAxiosError",{value:!0});Te.from=(e,t,r,o,l,a)=>{const u=Object.create($y);return V.toFlatObject(e,u,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),Te.call(u,e.message,t,r,o,l),u.cause=e,u.name=e.name,a&&Object.assign(u,a),u};const JS=null;function id(e){return V.isPlainObject(e)||V.isArray(e)}function zy(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Am(e,t,r){return e?e.concat(t).map(function(l,a){return l=zy(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function KS(e){return V.isArray(e)&&!e.some(id)}const QS=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function wa(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,j){return!V.isUndefined(j[b])});const o=r.metaTokens,l=r.visitor||m,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(l))throw new TypeError("visitor must be a function");function p(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(V.isBoolean(S))return S.toString();if(!f&&V.isBlob(S))throw new Te("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?f&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function m(S,b,j){let C=S;if(S&&!j&&typeof S=="object"){if(V.endsWith(b,"{}"))b=o?b:b.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&KS(S)||(V.isFileList(S)||V.endsWith(b,"[]"))&&(C=V.toArray(S)))return b=zy(b),C.forEach(function(L,M){!(V.isUndefined(L)||L===null)&&t.append(u===!0?Am([b],M,a):u===null?b:b+"[]",p(L))}),!1}return id(S)?!0:(t.append(Am(j,b,a),p(S)),!1)}const g=[],v=Object.assign(QS,{defaultVisitor:m,convertValue:p,isVisitable:id});function w(S,b){if(!V.isUndefined(S)){if(g.indexOf(S)!==-1)throw Error("Circular reference detected in "+b.join("."));g.push(S),V.forEach(S,function(C,P){(!(V.isUndefined(C)||C===null)&&l.call(t,C,V.isString(P)?P.trim():P,b,v))===!0&&w(C,b?b.concat(P):[P])}),g.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Lm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Fd(e,t){this._pairs=[],e&&wa(e,this,t)}const Dy=Fd.prototype;Dy.append=function(t,r){this._pairs.push([t,r])};Dy.toString=function(t){const r=t?function(o){return t.call(this,o,Lm)}:Lm;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function YS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oy(e,t,r){if(!t)return e;const o=r&&r.encode||YS;V.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let a;if(l?a=l(t,r):a=V.isURLSearchParams(t)?t.toString():new Fd(t,r).toString(o),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $m{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(o){o!==null&&t(o)})}}const My={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XS=typeof URLSearchParams<"u"?URLSearchParams:Fd,ZS=typeof FormData<"u"?FormData:null,eb=typeof Blob<"u"?Blob:null,tb={isBrowser:!0,classes:{URLSearchParams:XS,FormData:ZS,Blob:eb},protocols:["http","https","file","blob","url","data"]},Bd=typeof window<"u"&&typeof document<"u",od=typeof navigator=="object"&&navigator||void 0,nb=Bd&&(!od||["ReactNative","NativeScript","NS"].indexOf(od.product)<0),rb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ib=Bd&&window.location.href||"http://localhost",ob=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bd,hasStandardBrowserEnv:nb,hasStandardBrowserWebWorkerEnv:rb,navigator:od,origin:ib},Symbol.toStringTag,{value:"Module"})),It={...ob,...tb};function lb(e,t){return wa(e,new It.classes.URLSearchParams,{visitor:function(r,o,l,a){return It.isNode&&V.isBuffer(r)?(this.append(o,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function sb(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ab(e){const t={},r=Object.keys(e);let o;const l=r.length;let a;for(o=0;o<l;o++)a=r[o],t[a]=e[a];return t}function Fy(e){function t(r,o,l,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&V.isArray(l)?l.length:u,f?(V.hasOwnProp(l,u)?l[u]=[l[u],o]:l[u]=o,!d):((!l[u]||!V.isObject(l[u]))&&(l[u]=[]),t(r,o,l[u],a)&&V.isArray(l[u])&&(l[u]=ab(l[u])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(o,l)=>{t(sb(o),l,r,0)}),r}return null}function ub(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const dl={transitional:My,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",l=o.indexOf("application/json")>-1,a=V.isObject(t);if(a&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return l?JSON.stringify(Fy(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(o.indexOf("application/x-www-form-urlencoded")>-1)return lb(t,this.formSerializer).toString();if((d=V.isFileList(t))||o.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return wa(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),ub(t)):t}],transformResponse:[function(t){const r=this.transitional||dl.transitional,o=r&&r.forcedJSONParsing,l=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(o&&!this.responseType||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t)}catch(d){if(u)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{dl.headers[e]={}});const cb=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),db=e=>{const t={};let r,o,l;return e&&e.split(`
|
|
87
|
+
`).forEach(function(u){l=u.indexOf(":"),r=u.substring(0,l).trim().toLowerCase(),o=u.substring(l+1).trim(),!(!r||t[r]&&cb[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},_m=Symbol("internals");function Ho(e){return e&&String(e).trim().toLowerCase()}function Ws(e){return e===!1||e==null?e:V.isArray(e)?e.map(Ws):String(e)}function fb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const pb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bc(e,t,r,o,l){if(V.isFunction(o))return o.call(this,t,r);if(l&&(t=r),!!V.isString(t)){if(V.isString(o))return t.indexOf(o)!==-1;if(V.isRegExp(o))return o.test(t)}}function hb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function mb(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(l,a,u){return this[o].call(this,t,l,a,u)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,o){const l=this;function a(d,f,p){const m=Ho(f);if(!m)throw new Error("header name must be a non-empty string");const g=V.findKey(l,m);(!g||l[g]===void 0||p===!0||p===void 0&&l[g]!==!1)&&(l[g||f]=Ws(d))}const u=(d,f)=>V.forEach(d,(p,m)=>a(p,m,f));if(V.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(V.isString(t)&&(t=t.trim())&&!pb(t))u(db(t),r);else if(V.isObject(t)&&V.isIterable(t)){let d={},f,p;for(const m of t){if(!V.isArray(m))throw TypeError("Object iterator must return a key-value pair");d[p=m[0]]=(f=d[p])?V.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}u(d,r)}else t!=null&&a(r,t,o);return this}get(t,r){if(t=Ho(t),t){const o=V.findKey(this,t);if(o){const l=this[o];if(!r)return l;if(r===!0)return fb(l);if(V.isFunction(r))return r.call(this,l,o);if(V.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ho(t),t){const o=V.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||bc(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let l=!1;function a(u){if(u=Ho(u),u){const d=V.findKey(o,u);d&&(!r||bc(o,o[d],d,r))&&(delete o[d],l=!0)}}return V.isArray(t)?t.forEach(a):a(t),l}clear(t){const r=Object.keys(this);let o=r.length,l=!1;for(;o--;){const a=r[o];(!t||bc(this,this[a],a,t,!0))&&(delete this[a],l=!0)}return l}normalize(t){const r=this,o={};return V.forEach(this,(l,a)=>{const u=V.findKey(o,a);if(u){r[u]=Ws(l),delete r[a];return}const d=t?hb(a):String(a).trim();d!==a&&delete r[a],r[d]=Ws(l),o[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return V.forEach(this,(o,l)=>{o!=null&&o!==!1&&(r[l]=t&&V.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
88
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[_m]=this[_m]={accessors:{}}).accessors,l=this.prototype;function a(u){const d=Ho(u);o[d]||(mb(l,u),o[d]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}});V.freezeMethods(Jt);function Cc(e,t){const r=this||dl,o=t||r,l=Jt.from(o.headers);let a=o.data;return V.forEach(e,function(d){a=d.call(r,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function By(e){return!!(e&&e.__CANCEL__)}function Ki(e,t,r){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(Ki,Te,{__CANCEL__:!0});function Uy(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new Te("Request failed with status code "+r.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function gb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yb(e,t){e=e||10;const r=new Array(e),o=new Array(e);let l=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),m=o[a];u||(u=p),r[l]=f,o[l]=p;let g=a,v=0;for(;g!==l;)v+=r[g++],g=g%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),p-u<t)return;const w=m&&p-m;return w?Math.round(v*1e3/w):void 0}}function xb(e,t){let r=0,o=1e3/t,l,a;const u=(p,m=Date.now())=>{r=m,l=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const m=Date.now(),g=m-r;g>=o?u(p,m):(l=p,a||(a=setTimeout(()=>{a=null,u(l)},o-g)))},()=>l&&u(l)]}const na=(e,t,r=3)=>{let o=0;const l=yb(50,250);return xb(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-o,p=l(f),m=u<=d;o=u;const g={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&m?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(g)},r)},zm=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},Dm=e=>(...t)=>V.asap(()=>e(...t)),vb=It.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,It.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,wb=It.hasStandardBrowserEnv?{write(e,t,r,o,l,a){const u=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),V.isString(o)&&u.push("path="+o),V.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vy(e,t,r){let o=!kb(t);return e&&(o||r==!1)?Sb(e,t):t}const Om=e=>e instanceof Jt?{...e}:e;function Yr(e,t){t=t||{};const r={};function o(p,m,g,v){return V.isPlainObject(p)&&V.isPlainObject(m)?V.merge.call({caseless:v},p,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function l(p,m,g,v){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p,g,v)}else return o(p,m,g,v)}function a(p,m){if(!V.isUndefined(m))return o(void 0,m)}function u(p,m){if(V.isUndefined(m)){if(!V.isUndefined(p))return o(void 0,p)}else return o(void 0,m)}function d(p,m,g){if(g in t)return o(p,m);if(g in e)return o(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,m,g)=>l(Om(p),Om(m),g,!0)};return V.forEach(Object.keys({...e,...t}),function(m){const g=f[m]||l,v=g(e[m],t[m],m);V.isUndefined(v)&&g!==d||(r[m]=v)}),r}const Hy=e=>{const t=Yr({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;t.headers=u=Jt.from(u),t.url=Oy(Vy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(V.isFormData(r)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[p,...m]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];u.setContentType([p||"multipart/form-data",...m].join("; "))}}if(It.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||o!==!1&&vb(t.url))){const p=l&&a&&wb.read(a);p&&u.set(l,p)}return t},bb=typeof XMLHttpRequest<"u",Cb=bb&&function(e){return new Promise(function(r,o){const l=Hy(e);let a=l.data;const u=Jt.from(l.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l,m,g,v,w,S;function b(){w&&w(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let j=new XMLHttpRequest;j.open(l.method.toUpperCase(),l.url,!0),j.timeout=l.timeout;function C(){if(!j)return;const L=Jt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:L,config:e,request:j};Uy(function(q){r(q),b()},function(q){o(q),b()},H),j=null}"onloadend"in j?j.onloadend=C:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(C)},j.onabort=function(){j&&(o(new Te("Request aborted",Te.ECONNABORTED,e,j)),j=null)},j.onerror=function(){o(new Te("Network Error",Te.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let M=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const H=l.transitional||My;l.timeoutErrorMessage&&(M=l.timeoutErrorMessage),o(new Te(M,H.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,j)),j=null},a===void 0&&u.setContentType(null),"setRequestHeader"in j&&V.forEach(u.toJSON(),function(M,H){j.setRequestHeader(H,M)}),V.isUndefined(l.withCredentials)||(j.withCredentials=!!l.withCredentials),d&&d!=="json"&&(j.responseType=l.responseType),p&&([v,S]=na(p,!0),j.addEventListener("progress",v)),f&&j.upload&&([g,w]=na(f),j.upload.addEventListener("progress",g),j.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(m=L=>{j&&(o(!L||L.type?new Ki(null,e,j):L),j.abort(),j=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const P=gb(l.url);if(P&&It.protocols.indexOf(P)===-1){o(new Te("Unsupported protocol "+P+":",Te.ERR_BAD_REQUEST,e));return}j.send(a||null)})},Eb=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,l;const a=function(p){if(!l){l=!0,d();const m=p instanceof Error?p:this.reason;o.abort(m instanceof Te?m:new Ki(m instanceof Error?m.message:m))}};let u=t&&setTimeout(()=>{u=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=o;return f.unsubscribe=()=>V.asap(d),f}},jb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let o=0,l;for(;o<r;)l=o+t,yield e.slice(o,l),o=l},Tb=async function*(e,t){for await(const r of Rb(e))yield*jb(r,t)},Rb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},Mm=(e,t,r,o)=>{const l=Tb(e,t);let a=0,u,d=f=>{u||(u=!0,o&&o(f))};return new ReadableStream({async pull(f){try{const{done:p,value:m}=await l.next();if(p){d(),f.close();return}let g=m.byteLength;if(r){let v=a+=g;r(v)}f.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(f){return d(f),l.return()}},{highWaterMark:2})},ka=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qy=ka&&typeof ReadableStream=="function",Nb=ka&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ib=qy&&Wy(()=>{let e=!1;const t=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Fm=64*1024,ld=qy&&Wy(()=>V.isReadableStream(new Response("").body)),ra={stream:ld&&(e=>e.body)};ka&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ra[t]&&(ra[t]=V.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new Te(`Response type '${t}' is not supported`,Te.ERR_NOT_SUPPORT,o)})})})(new Response);const Pb=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(await Nb(e)).byteLength},Ab=async(e,t)=>{const r=V.toFiniteNumber(e.getContentLength());return r??Pb(t)},Lb=ka&&(async e=>{let{url:t,method:r,data:o,signal:l,cancelToken:a,timeout:u,onDownloadProgress:d,onUploadProgress:f,responseType:p,headers:m,withCredentials:g="same-origin",fetchOptions:v}=Hy(e);p=p?(p+"").toLowerCase():"text";let w=Eb([l,a&&a.toAbortSignal()],u),S;const b=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let j;try{if(f&&Ib&&r!=="get"&&r!=="head"&&(j=await Ab(m,o))!==0){let H=new Request(t,{method:"POST",body:o,duplex:"half"}),A;if(V.isFormData(o)&&(A=H.headers.get("content-type"))&&m.setContentType(A),H.body){const[q,K]=zm(j,na(Dm(f)));o=Mm(H.body,Fm,q,K)}}V.isString(g)||(g=g?"include":"omit");const C="credentials"in Request.prototype;S=new Request(t,{...v,signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:C?g:void 0});let P=await fetch(S,v);const L=ld&&(p==="stream"||p==="response");if(ld&&(d||L&&b)){const H={};["status","statusText","headers"].forEach(le=>{H[le]=P[le]});const A=V.toFiniteNumber(P.headers.get("content-length")),[q,K]=d&&zm(A,na(Dm(d),!0))||[];P=new Response(Mm(P.body,Fm,q,()=>{K&&K(),b&&b()}),H)}p=p||"text";let M=await ra[V.findKey(ra,p)||"text"](P,e);return!L&&b&&b(),await new Promise((H,A)=>{Uy(H,A,{data:M,headers:Jt.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:S})})}catch(C){throw b&&b(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,e,S),{cause:C.cause||C}):Te.from(C,C&&C.code,e,S)}}),sd={http:JS,xhr:Cb,fetch:Lb};V.forEach(sd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bm=e=>`- ${e}`,$b=e=>V.isFunction(e)||e===null||e===!1,Gy={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let r,o;const l={};for(let a=0;a<t;a++){r=e[a];let u;if(o=r,!$b(r)&&(o=sd[(u=String(r)).toLowerCase()],o===void 0))throw new Te(`Unknown adapter '${u}'`);if(o)break;l[u||"#"+a]=o}if(!o){const a=Object.entries(l).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?a.length>1?`since :
|
|
89
|
+
`+a.map(Bm).join(`
|
|
90
|
+
`):" "+Bm(a[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:sd};function Ec(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ki(null,e)}function Um(e){return Ec(e),e.headers=Jt.from(e.headers),e.data=Cc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gy.getAdapter(e.adapter||dl.adapter)(e).then(function(o){return Ec(e),o.data=Cc.call(e,e.transformResponse,o),o.headers=Jt.from(o.headers),o},function(o){return By(o)||(Ec(e),o&&o.response&&(o.response.data=Cc.call(e,e.transformResponse,o.response),o.response.headers=Jt.from(o.response.headers))),Promise.reject(o)})}const Jy="1.11.0",Sa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sa[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Vm={};Sa.transitional=function(t,r,o){function l(a,u){return"[Axios v"+Jy+"] Transitional option '"+a+"'"+u+(o?". "+o:"")}return(a,u,d)=>{if(t===!1)throw new Te(l(u," has been removed"+(r?" in "+r:"")),Te.ERR_DEPRECATED);return r&&!Vm[u]&&(Vm[u]=!0,console.warn(l(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,d):!0}};Sa.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function _b(e,t,r){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let l=o.length;for(;l-- >0;){const a=o[l],u=t[a];if(u){const d=e[a],f=d===void 0||u(d,a,e);if(f!==!0)throw new Te("option "+a+" must be "+f,Te.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const Gs={assertOptions:_b,validators:Sa},On=Gs.validators;let Kr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $m,response:new $m}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const a=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
91
|
+
`+a):o.stack=a}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yr(this.defaults,r);const{transitional:o,paramsSerializer:l,headers:a}=r;o!==void 0&&Gs.assertOptions(o,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),l!=null&&(V.isFunction(l)?r.paramsSerializer={serialize:l}:Gs.assertOptions(l,{encode:On.function,serialize:On.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Gs.assertOptions(r,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&V.merge(a.common,a[r.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete a[S]}),r.headers=Jt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const p=[];this.interceptors.response.forEach(function(b){p.push(b.fulfilled,b.rejected)});let m,g=0,v;if(!f){const S=[Um.bind(this),void 0];for(S.unshift(...d),S.push(...p),v=S.length,m=Promise.resolve(r);g<v;)m=m.then(S[g++],S[g++]);return m}v=d.length;let w=r;for(g=0;g<v;){const S=d[g++],b=d[g++];try{w=S(w)}catch(j){b.call(this,j);break}}try{m=Um.call(this,w)}catch(S){return Promise.reject(S)}for(g=0,v=p.length;g<v;)m=m.then(p[g++],p[g++]);return m}getUri(t){t=Yr(this.defaults,t);const r=Vy(t.baseURL,t.url,t.allowAbsoluteUrls);return Oy(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Kr.prototype[t]=function(r,o){return this.request(Yr(o||{},{method:t,url:r,data:(o||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(o){return function(a,u,d){return this.request(Yr(d||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Kr.prototype[t]=r(),Kr.prototype[t+"Form"]=r(!0)});let zb=class Ky{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const o=this;this.promise.then(l=>{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const u=new Promise(d=>{o.subscribe(d),a=d}).then(l);return u.cancel=function(){o.unsubscribe(a)},u},t(function(a,u,d){o.reason||(o.reason=new Ki(a,u,d),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ky(function(l){t=l}),cancel:t}}};function Db(e){return function(r){return e.apply(null,r)}}function Ob(e){return V.isObject(e)&&e.isAxiosError===!0}const ad={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ad).forEach(([e,t])=>{ad[t]=e});function Qy(e){const t=new Kr(e),r=jy(Kr.prototype.request,t);return V.extend(r,Kr.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return Qy(Yr(e,l))},r}const Ze=Qy(dl);Ze.Axios=Kr;Ze.CanceledError=Ki;Ze.CancelToken=zb;Ze.isCancel=By;Ze.VERSION=Jy;Ze.toFormData=wa;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=Db;Ze.isAxiosError=Ob;Ze.mergeConfig=Yr;Ze.AxiosHeaders=Jt;Ze.formToJSON=e=>Fy(V.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=Gy.getAdapter;Ze.HttpStatusCode=ad;Ze.default=Ze;const{Axios:t$,AxiosError:n$,CanceledError:r$,isCancel:i$,CancelToken:o$,VERSION:l$,all:s$,Cancel:a$,isAxiosError:u$,spread:c$,toFormData:d$,AxiosHeaders:f$,HttpStatusCode:p$,formToJSON:h$,getAdapter:m$,mergeConfig:g$}=Ze,Mb="/api",rt=Ze.create({baseURL:Mb,headers:{"Content-Type":"application/json"}}),Fb=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};rt.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));rt.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const o=await Fb();if(o)return t.headers.Authorization=`Bearer ${o}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",o),rt(t)}return Promise.reject(e)});const Bb=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await rt.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Ze.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Hm=async()=>(await rt.get("/content")).data.content,Ub=async(e,t,r)=>{const o=new FormData;o.append("prompt",e),o.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(l=>{o.append("images",l)});try{await rt.post("/execute-codegen",o,{headers:{"Content-Type":"multipart/form-data"}})}catch(l){throw Ze.isAxiosError(l)?l.response?new Error(`Server error: ${l.response.data.message||"Unknown error"}`):l.request?new Error("No response received from server"):new Error(`Error setting up request: ${l.message}`):new Error("An unexpected error occurred")}},Yy=async(e,t,r,o)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(!["default","cheap","reasoning","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await rt.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:o})).data.result}catch(l){if(Ze.isAxiosError(l))if(l.response){const a=l.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw l.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${l.message}`);throw l instanceof Error?l:new Error("An unexpected error occurred during content generation")}},ud=async()=>(await rt.get("/execution-status")).data.status,Vb=async()=>{await rt.post("/interrupt-execution")},Xy=async()=>await rt.post("/interrupt-execution",{scope:"container-command"}),Hb=async()=>{await rt.post("/pause-execution")},qb=async()=>{await rt.post("/resume-execution")},cd=async()=>(await rt.get("/current-question")).data.question,Wb=async(e,t,r,o,l)=>{const a=new FormData;a.append("questionId",e),a.append("answer",t),r!==void 0&&a.append("confirmed",String(r)),o&&a.append("options",JSON.stringify(o)),l&&l.length>0&&l.forEach(u=>{a.append("images",u)}),await rt.post("/answer-question",a,{headers:{"Content-Type":"multipart/form-data"}})},qm=async()=>(await rt.get("/usage")).data,Gb=async()=>(await rt.get("/default-codegen-options")).data.options,Jb=async()=>(await rt.get("/rcconfig")).data.rcConfig,Kb=async e=>{await rt.delete(`/delete-iteration/${e}`)},Ud=async()=>(await rt.get("/available-ai-services")).data.services,Zy=async()=>{try{return(await rt.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},Qb=async e=>{await rt.post("/service-configuration",e)};rt.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function fl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function pl(e,t){I.useEffect(()=>{const r=o=>{t(o.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function Yb(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function ex(){const[e,t]=I.useState([]),[r,o]=I.useState(null);return I.useEffect(()=>{(async()=>{try{const a=await Ud();t(a)}catch(a){console.error("Error fetching AI services:",a),o("Failed to fetch available AI services.")}})()},[]),[e,r]}function tx(){const[e,t]=I.useState({services:[],isLoading:!0,error:null});return I.useEffect(()=>{(async()=>{try{const[o,l]=await Promise.all([Ud(),Zy()]),a=o.map(u=>({service:u,config:l[u],displayName:Yb(u,l[u])}));t({services:a,isLoading:!1,error:null})}catch(o){console.error("Error fetching services with configurations:",o),t(l=>({...l,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const jr=R.button`
|
|
92
92
|
background-color: transparent;
|
|
93
93
|
color: ${({theme:e})=>e.colors.text};
|
|
94
94
|
border: none;
|
|
@@ -110,7 +110,7 @@ Error generating stack: `+x.message+`
|
|
|
110
110
|
outline: none;
|
|
111
111
|
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
112
112
|
}
|
|
113
|
-
`;function
|
|
113
|
+
`;function nx(){fl("openContentGenerationModel")}function Xb(){return y.jsx(jr,{onClick:nx,"aria-label":"Content generation modal",children:"✨"})}const Zb=({currentService:e})=>{const[t,r]=I.useState(""),[o,l]=I.useState(e),[a,u]=I.useState(.7),[d,f]=I.useState("default"),[p,m]=I.useState(),[g,v]=I.useState(!1),[w,S]=I.useState(null),[b,j]=I.useState(null),[C,P]=I.useState(!1),L=()=>P(!1),[M]=ex(),{services:H,isLoading:A}=tx();if(pl("openContentGenerationModel",()=>P(!0)),I.useEffect(()=>{var le;const K=(le=H.find(D=>D.service===o))==null?void 0:le.config;K!=null&&K.modelOverrides?m(K.modelOverrides[d]):m(void 0)},[o,d,H]),!C)return null;const q=async K=>{K.preventDefault(),v(!0),S(null),j(null);try{const le=await Yy(t,a,d,{aiService:o,askQuestion:!1});j(le)}catch(le){S(le instanceof Error?le.message:"An unexpected error occurred")}finally{v(!1)}};return y.jsx(eC,{onClick:K=>K.target===K.currentTarget&&L(),children:y.jsxs(tC,{children:[y.jsx(nC,{onClick:L,children:"×"}),y.jsx("h2",{children:"Generate Content"}),y.jsxs(rC,{onSubmit:q,children:[y.jsxs(Ps,{children:["Prompt",y.jsx(iC,{value:t,onChange:K=>r(K.target.value),placeholder:"Enter your prompt here...",required:!0})]}),y.jsxs(Ps,{children:["AI Service",y.jsx(Wm,{value:o,onChange:K=>l(K.target.value),disabled:A,children:M.map(K=>y.jsx("option",{value:K,children:K},K))})]}),y.jsxs(Ps,{children:["Temperature (",a,")",y.jsxs(oC,{children:[y.jsx(lC,{type:"range",min:"0",max:"2",step:"0.1",value:a,onChange:K=>u(Number(K.target.value))}),y.jsx(sC,{children:a})]})]}),y.jsxs(Ps,{children:["Model Type ",p?`(${p})`:"",y.jsxs(Wm,{value:d,onChange:K=>f(K.target.value),children:[y.jsx("option",{value:"default",children:"Default"}),y.jsx("option",{value:"cheap",children:"Cheap"}),y.jsx("option",{value:"lite",children:"Lite"}),y.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),y.jsx(aC,{type:"submit",disabled:g||!t,children:g?"Generating...":"Generate"})]}),w&&y.jsx(cC,{children:w}),b&&y.jsx(uC,{children:b.map((K,le)=>y.jsxs("div",{children:[y.jsx("strong",{children:K.name}),y.jsx("pre",{children:JSON.stringify(K,null,2)})]},le))})]})})},eC=R.div`
|
|
114
114
|
position: fixed;
|
|
115
115
|
top: 0;
|
|
116
116
|
left: 0;
|
|
@@ -121,7 +121,7 @@ Error generating stack: `+x.message+`
|
|
|
121
121
|
justify-content: center;
|
|
122
122
|
align-items: center;
|
|
123
123
|
z-index: 1000;
|
|
124
|
-
`,
|
|
124
|
+
`,tC=R.div`
|
|
125
125
|
background: ${({theme:e})=>e.colors.background};
|
|
126
126
|
padding: 2rem;
|
|
127
127
|
border-radius: 8px;
|
|
@@ -131,7 +131,7 @@ Error generating stack: `+x.message+`
|
|
|
131
131
|
overflow-y: auto;
|
|
132
132
|
position: relative;
|
|
133
133
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
134
|
-
`,
|
|
134
|
+
`,nC=R.button`
|
|
135
135
|
position: absolute;
|
|
136
136
|
top: 1rem;
|
|
137
137
|
right: 1rem;
|
|
@@ -143,16 +143,16 @@ Error generating stack: `+x.message+`
|
|
|
143
143
|
&:hover {
|
|
144
144
|
opacity: 0.8;
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`,rC=R.form`
|
|
147
147
|
display: flex;
|
|
148
148
|
flex-direction: column;
|
|
149
149
|
gap: 1rem;
|
|
150
|
-
`,
|
|
150
|
+
`,Ps=R.label`
|
|
151
151
|
display: flex;
|
|
152
152
|
flex-direction: column;
|
|
153
153
|
gap: 0.5rem;
|
|
154
154
|
color: ${({theme:e})=>e.colors.text};
|
|
155
|
-
`,
|
|
155
|
+
`,iC=R.textarea`
|
|
156
156
|
padding: 0.5rem;
|
|
157
157
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
158
158
|
border-radius: 4px;
|
|
@@ -160,22 +160,22 @@ Error generating stack: `+x.message+`
|
|
|
160
160
|
color: ${({theme:e})=>e.colors.text};
|
|
161
161
|
min-height: 100px;
|
|
162
162
|
resize: vertical;
|
|
163
|
-
`,
|
|
163
|
+
`,Wm=R.select`
|
|
164
164
|
padding: 0.5rem;
|
|
165
165
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
166
166
|
border-radius: 4px;
|
|
167
167
|
background: ${({theme:e})=>e.colors.background};
|
|
168
168
|
color: ${({theme:e})=>e.colors.text};
|
|
169
|
-
`,
|
|
169
|
+
`,oC=R.div`
|
|
170
170
|
display: flex;
|
|
171
171
|
align-items: center;
|
|
172
172
|
gap: 1rem;
|
|
173
|
-
`,
|
|
173
|
+
`,lC=R.input`
|
|
174
174
|
flex: 1;
|
|
175
|
-
`,
|
|
175
|
+
`,sC=R.span`
|
|
176
176
|
min-width: 3rem;
|
|
177
177
|
text-align: right;
|
|
178
|
-
`,
|
|
178
|
+
`,aC=R.button`
|
|
179
179
|
padding: 0.5rem 1rem;
|
|
180
180
|
background: ${({theme:e})=>e.colors.primary};
|
|
181
181
|
color: white;
|
|
@@ -189,7 +189,7 @@ Error generating stack: `+x.message+`
|
|
|
189
189
|
opacity: 0.5;
|
|
190
190
|
cursor: not-allowed;
|
|
191
191
|
}
|
|
192
|
-
`,
|
|
192
|
+
`,uC=R.div`
|
|
193
193
|
margin-top: 1rem;
|
|
194
194
|
padding: 1rem;
|
|
195
195
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -200,13 +200,13 @@ Error generating stack: `+x.message+`
|
|
|
200
200
|
pre {
|
|
201
201
|
white-space: pre-wrap;
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,cC=R.div`
|
|
204
204
|
color: ${({theme:e})=>e.colors.error};
|
|
205
205
|
margin-top: 1rem;
|
|
206
206
|
padding: 0.5rem;
|
|
207
207
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
208
208
|
border-radius: 4px;
|
|
209
|
-
`;function
|
|
209
|
+
`;function rx(){fl("openHealthCheckModal")}function dC(){return y.jsx(jr,{onClick:rx,"aria-label":"Health check modal",children:"🏥"})}async function fC(){const e=(await Ud()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function pC(e){var t,r;try{const[o]=await Yy("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(r=(t=o==null?void 0:o.args)==null?void 0:t.message)!=null&&r.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const hC=()=>{const[e,t]=I.useState(!1),[r,o]=I.useState(!1),[l,a]=I.useState(null),[u,d]=I.useState(null),[f,p]=I.useState(null);pl("openHealthCheckModal",()=>t(!0));const m=()=>t(!1),g=async()=>{o(!0),a(null);try{const S=await fC();d(S),p(new Date);for(const[b,j]of Object.entries(S.services)){const C=Date.now(),P=await pC(b);j.status=P,j.responseTime=Date.now()-C,j.lastChecked=new Date().toISOString(),d(S),p(new Date)}}catch(S){a(S instanceof Error?S.message:"An unexpected error occurred")}finally{o(!1)}};if(I.useEffect(()=>{e&&g()},[e]),!e)return null;const v=S=>{switch(S){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},w=S=>{switch(S){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return y.jsx(mC,{onClick:S=>S.target===S.currentTarget&&m(),children:y.jsxs(gC,{children:[y.jsx(xC,{onClick:m,children:"×"}),y.jsxs(yC,{children:[y.jsx("h2",{children:"AI Services Health Check"}),y.jsx(vC,{onClick:g,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),l&&y.jsx(NC,{children:l}),y.jsx(wC,{children:u&&Object.entries(u.services).map(([S,b])=>y.jsxs(kC,{children:[y.jsxs(SC,{children:[y.jsx(bC,{children:S}),y.jsx(CC,{children:v(b.status)})]}),y.jsxs(EC,{color:w(b.status),children:[y.jsxs("div",{children:["Status: ",b.status]}),b.responseTime&&y.jsxs("div",{children:["Response time: ",b.responseTime,"ms"]}),b.error&&y.jsx(jC,{children:b.error}),y.jsxs(TC,{children:["Last checked: ",new Date(b.lastChecked).toLocaleTimeString()]})]})]},S))}),f&&y.jsxs(RC,{children:["Last updated: ",f.toLocaleTimeString()]}),r&&y.jsx(IC,{children:"Checking AI Services..."})]})})},mC=R.div`
|
|
210
210
|
position: fixed;
|
|
211
211
|
top: 0;
|
|
212
212
|
left: 0;
|
|
@@ -217,7 +217,7 @@ Error generating stack: `+x.message+`
|
|
|
217
217
|
justify-content: center;
|
|
218
218
|
align-items: center;
|
|
219
219
|
z-index: 1000;
|
|
220
|
-
`,
|
|
220
|
+
`,gC=R.div`
|
|
221
221
|
background: ${({theme:e})=>e.colors.background};
|
|
222
222
|
padding: 2rem;
|
|
223
223
|
border-radius: 8px;
|
|
@@ -227,7 +227,7 @@ Error generating stack: `+x.message+`
|
|
|
227
227
|
overflow-y: auto;
|
|
228
228
|
position: relative;
|
|
229
229
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
230
|
-
`,
|
|
230
|
+
`,yC=R.div`
|
|
231
231
|
display: flex;
|
|
232
232
|
justify-content: space-between;
|
|
233
233
|
align-items: center;
|
|
@@ -236,7 +236,7 @@ Error generating stack: `+x.message+`
|
|
|
236
236
|
h2 {
|
|
237
237
|
margin: 0;
|
|
238
238
|
}
|
|
239
|
-
`,
|
|
239
|
+
`,xC=R.button`
|
|
240
240
|
position: absolute;
|
|
241
241
|
top: 1rem;
|
|
242
242
|
right: 1rem;
|
|
@@ -248,7 +248,7 @@ Error generating stack: `+x.message+`
|
|
|
248
248
|
&:hover {
|
|
249
249
|
opacity: 0.8;
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,vC=R.button`
|
|
252
252
|
padding: 0.5rem 1rem;
|
|
253
253
|
background: ${({theme:e})=>e.colors.primary};
|
|
254
254
|
color: white;
|
|
@@ -262,48 +262,48 @@ Error generating stack: `+x.message+`
|
|
|
262
262
|
opacity: 0.5;
|
|
263
263
|
cursor: not-allowed;
|
|
264
264
|
}
|
|
265
|
-
`,
|
|
265
|
+
`,wC=R.div`
|
|
266
266
|
display: grid;
|
|
267
267
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
268
268
|
gap: 1rem;
|
|
269
269
|
margin-bottom: 1rem;
|
|
270
|
-
`,
|
|
270
|
+
`,kC=R.div`
|
|
271
271
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
272
272
|
border-radius: 4px;
|
|
273
273
|
padding: 1rem;
|
|
274
274
|
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
275
|
-
`,
|
|
275
|
+
`,SC=R.div`
|
|
276
276
|
display: flex;
|
|
277
277
|
justify-content: space-between;
|
|
278
278
|
align-items: center;
|
|
279
279
|
margin-bottom: 0.5rem;
|
|
280
|
-
`,
|
|
280
|
+
`,bC=R.h3`
|
|
281
281
|
margin: 0;
|
|
282
282
|
font-size: 1.1rem;
|
|
283
|
-
`,
|
|
283
|
+
`,CC=R.span`
|
|
284
284
|
font-size: 1.2rem;
|
|
285
|
-
`,
|
|
285
|
+
`,EC=R.div`
|
|
286
286
|
color: ${({theme:e,color:t})=>{switch(t){case"success":return e.colors.success;case"error":return e.colors.error;case"warning":return e.colors.warning;default:return e.colors.text}}};
|
|
287
287
|
font-size: 0.9rem;
|
|
288
|
-
`,
|
|
288
|
+
`,jC=R.div`
|
|
289
289
|
color: ${({theme:e})=>e.colors.error};
|
|
290
290
|
margin-top: 0.5rem;
|
|
291
|
-
`,
|
|
291
|
+
`,TC=R.div`
|
|
292
292
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
293
293
|
font-size: 0.8rem;
|
|
294
294
|
margin-top: 0.5rem;
|
|
295
|
-
`,
|
|
295
|
+
`,RC=R.div`
|
|
296
296
|
text-align: right;
|
|
297
297
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
298
298
|
font-size: 0.8rem;
|
|
299
299
|
margin-top: 1rem;
|
|
300
|
-
`,
|
|
300
|
+
`,NC=R.div`
|
|
301
301
|
color: ${({theme:e})=>e.colors.error};
|
|
302
302
|
margin-bottom: 1rem;
|
|
303
303
|
padding: 0.5rem;
|
|
304
304
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
305
305
|
border-radius: 4px;
|
|
306
|
-
`,
|
|
306
|
+
`,IC=R.div`
|
|
307
307
|
position: absolute;
|
|
308
308
|
top: 0;
|
|
309
309
|
left: 0;
|
|
@@ -316,7 +316,7 @@ Error generating stack: `+x.message+`
|
|
|
316
316
|
border-radius: 8px;
|
|
317
317
|
color: white;
|
|
318
318
|
font-size: 1.2rem;
|
|
319
|
-
`,
|
|
319
|
+
`,ix=R.div`
|
|
320
320
|
position: fixed;
|
|
321
321
|
top: 0;
|
|
322
322
|
left: 0;
|
|
@@ -327,7 +327,7 @@ Error generating stack: `+x.message+`
|
|
|
327
327
|
justify-content: center;
|
|
328
328
|
align-items: center;
|
|
329
329
|
z-index: 1000;
|
|
330
|
-
`,
|
|
330
|
+
`,ox=R.div`
|
|
331
331
|
background: ${({theme:e})=>e.colors.background};
|
|
332
332
|
padding: 2rem;
|
|
333
333
|
border-radius: 8px;
|
|
@@ -337,7 +337,7 @@ Error generating stack: `+x.message+`
|
|
|
337
337
|
overflow-y: auto;
|
|
338
338
|
position: relative;
|
|
339
339
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
340
|
-
`,
|
|
340
|
+
`,lx=R.div`
|
|
341
341
|
display: flex;
|
|
342
342
|
justify-content: space-between;
|
|
343
343
|
align-items: center;
|
|
@@ -346,7 +346,7 @@ Error generating stack: `+x.message+`
|
|
|
346
346
|
h2 {
|
|
347
347
|
margin: 0;
|
|
348
348
|
}
|
|
349
|
-
`,
|
|
349
|
+
`,sx=R.button`
|
|
350
350
|
position: absolute;
|
|
351
351
|
top: 1rem;
|
|
352
352
|
right: 1rem;
|
|
@@ -358,12 +358,12 @@ Error generating stack: `+x.message+`
|
|
|
358
358
|
&:hover {
|
|
359
359
|
opacity: 0.8;
|
|
360
360
|
}
|
|
361
|
-
`,
|
|
361
|
+
`,PC=R.div`
|
|
362
362
|
display: grid;
|
|
363
363
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
364
364
|
gap: 1rem;
|
|
365
365
|
margin-bottom: 1rem;
|
|
366
|
-
`,
|
|
366
|
+
`,AC=R.div`
|
|
367
367
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
368
368
|
border-radius: 4px;
|
|
369
369
|
background: ${({theme:e})=>e.colors.backgroundSecondary};
|
|
@@ -372,7 +372,7 @@ Error generating stack: `+x.message+`
|
|
|
372
372
|
&:hover {
|
|
373
373
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
374
374
|
}
|
|
375
|
-
`,
|
|
375
|
+
`,LC=R.div`
|
|
376
376
|
cursor: pointer;
|
|
377
377
|
padding: 1rem;
|
|
378
378
|
user-select: none;
|
|
@@ -388,34 +388,34 @@ Error generating stack: `+x.message+`
|
|
|
388
388
|
&:hover {
|
|
389
389
|
background-color: ${({theme:e})=>`${e.colors.border}20`};
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
`,$C=R.div`
|
|
392
392
|
display: flex;
|
|
393
393
|
align-items: center;
|
|
394
394
|
gap: 0.5rem;
|
|
395
|
-
`,
|
|
395
|
+
`,_C=R.h3`
|
|
396
396
|
margin: 0;
|
|
397
397
|
font-size: 1.1rem;
|
|
398
|
-
`,
|
|
398
|
+
`,zC=R.span`
|
|
399
399
|
display: inline-block;
|
|
400
400
|
transition: transform 0.2s ease;
|
|
401
401
|
transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
|
|
402
402
|
font-size: 0.8rem;
|
|
403
|
-
`,
|
|
403
|
+
`,DC=R.div`
|
|
404
404
|
overflow: hidden;
|
|
405
405
|
transition: height 0.3s ease;
|
|
406
406
|
height: ${({$isCollapsed:e})=>e?"0":"auto"};
|
|
407
407
|
padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
|
|
408
408
|
opacity: ${({$isCollapsed:e})=>e?"0":"1"};
|
|
409
409
|
transition: all 0.3s ease;
|
|
410
|
-
|
|
410
|
+
`,OC=R.form`
|
|
411
411
|
display: flex;
|
|
412
412
|
flex-direction: column;
|
|
413
413
|
gap: 1rem;
|
|
414
|
-
`,
|
|
414
|
+
`,on=R.div`
|
|
415
415
|
display: flex;
|
|
416
416
|
flex-direction: column;
|
|
417
417
|
gap: 0.5rem;
|
|
418
|
-
`,
|
|
418
|
+
`,ln=R.label`
|
|
419
419
|
font-size: 0.9rem;
|
|
420
420
|
color: ${({theme:e})=>e.colors.text};
|
|
421
421
|
`,Hr=R.input`
|
|
@@ -430,7 +430,7 @@ Error generating stack: `+x.message+`
|
|
|
430
430
|
outline: none;
|
|
431
431
|
border-color: ${({theme:e})=>e.colors.primary};
|
|
432
432
|
}
|
|
433
|
-
`,
|
|
433
|
+
`,MC=R.button`
|
|
434
434
|
padding: 0.5rem 1rem;
|
|
435
435
|
background: ${({theme:e})=>e.colors.primary};
|
|
436
436
|
color: white;
|
|
@@ -447,21 +447,21 @@ Error generating stack: `+x.message+`
|
|
|
447
447
|
opacity: 0.5;
|
|
448
448
|
cursor: not-allowed;
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`,FC=R.div`
|
|
451
451
|
color: ${({theme:e})=>e.colors.error};
|
|
452
452
|
margin-bottom: 1rem;
|
|
453
453
|
padding: 0.5rem;
|
|
454
454
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
455
455
|
border-radius: 4px;
|
|
456
|
-
`,
|
|
456
|
+
`,BC=R.div`
|
|
457
457
|
color: ${({theme:e})=>e.colors.success};
|
|
458
458
|
margin-bottom: 1rem;
|
|
459
459
|
padding: 0.5rem;
|
|
460
460
|
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
461
461
|
border-radius: 4px;
|
|
462
|
-
`,
|
|
462
|
+
`,UC=R.div`
|
|
463
463
|
color: ${({theme:e})=>e.colors.error};
|
|
464
|
-
`,
|
|
464
|
+
`,VC=R.div`
|
|
465
465
|
position: absolute;
|
|
466
466
|
top: 0;
|
|
467
467
|
left: 0;
|
|
@@ -474,23 +474,23 @@ Error generating stack: `+x.message+`
|
|
|
474
474
|
border-radius: 8px;
|
|
475
475
|
color: white;
|
|
476
476
|
font-size: 1.2rem;
|
|
477
|
-
`,wr=e=>e==="vertex-ai",
|
|
478
|
-
`)},
|
|
479
|
-
`).map((C,P)=>y.jsx("div",{children:C},P))}),y.jsx(
|
|
477
|
+
`,wr=e=>e==="vertex-ai",HC=e=>e==="openai"||e==="local-llm",qC=({serviceType:e,config:t,onUpdate:r,isLoading:o,isExpanded:l,onCardClick:a})=>{var se,oe,re;const[u,d]=I.useState(""),[f,p]=I.useState(!!(t!=null&&t.hasApiKey)),[m,g]=I.useState(((se=t==null?void 0:t.modelOverrides)==null?void 0:se.default)||""),[v,w]=I.useState(((oe=t==null?void 0:t.modelOverrides)==null?void 0:oe.cheap)||""),[S,b]=I.useState(((re=t==null?void 0:t.modelOverrides)==null?void 0:re.lite)||""),[j,C]=I.useState((t==null?void 0:t.googleCloudProjectId)||""),[P,L]=I.useState((t==null?void 0:t.googleCloudRegion)||""),[M,H]=I.useState((t==null?void 0:t.openaiBaseUrl)||""),[A,q]=I.useState(null);I.useEffect(()=>{var B,ae,ue;p(!!(t!=null&&t.hasApiKey)),g(((B=t==null?void 0:t.modelOverrides)==null?void 0:B.default)||""),w(((ae=t==null?void 0:t.modelOverrides)==null?void 0:ae.cheap)||""),b(((ue=t==null?void 0:t.modelOverrides)==null?void 0:ue.lite)||""),C((t==null?void 0:t.googleCloudProjectId)||""),L((t==null?void 0:t.googleCloudRegion)||""),H((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const K=()=>{if(wr(e)){if(!j)return q("GCP Project ID is required for Vertex AI services"),!1;if(wr(e)&&!P)return q("GCP Region is required for Vertex AI services"),!1}else if(!f&&!u)return q("API Key is required"),!1;return q(null),!0},le=B=>{if(B.preventDefault(),!K())return;const ae={modelOverrides:{default:m||void 0,cheap:v||void 0,lite:S||void 0}};wr(e)?(ae.googleCloudProjectId=j,ae.googleCloudRegion=P):(ae.apiKey=u||void 0,ae.openaiBaseUrl=M||void 0),r(ae)},D=I.useCallback(()=>{a&&a(e)},[a,e]),ne=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),D())};return y.jsxs(AC,{children:[y.jsxs(LC,{onClick:D,onKeyDown:ne,role:"button",tabIndex:0,"aria-expanded":!!l,"aria-controls":`config-content-${e}`,children:[y.jsxs($C,{children:[y.jsx(_C,{children:e}),!wr(e)&&f&&y.jsx("span",{title:"API Key is set",children:"🔑"}),wr(e)&&j&&y.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),y.jsx(zC,{$isCollapsed:!l,children:"▼"})]}),y.jsx(DC,{$isCollapsed:!l,id:`config-content-${e}`,"aria-hidden":!l,children:y.jsxs(OC,{onSubmit:le,children:[!wr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`apiKey-${e}`,children:"API Key"}),y.jsx(Hr,{id:`apiKey-${e}`,type:"password",value:u,onChange:B=>d(B.target.value),placeholder:f?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),HC(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),y.jsx(Hr,{id:`baseUrl-${e}`,type:"text",value:M,onChange:B=>H(B.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),wr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),y.jsx(Hr,{id:`projectId-${e}`,type:"text",value:j,onChange:B=>C(B.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),wr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`region-${e}`,children:"GCP Region"}),y.jsx(Hr,{id:`region-${e}`,type:"text",value:P,onChange:B=>L(B.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),y.jsx(Hr,{id:`defaultModel-${e}`,type:"text",value:m,onChange:B=>g(B.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),y.jsx(Hr,{id:`cheapModel-${e}`,type:"text",value:v,onChange:B=>w(B.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`liteModel-${e}`,children:"Lite Model"}),y.jsx(Hr,{id:`liteModel-${e}`,type:"text",value:S,onChange:B=>b(B.target.value),placeholder:"Enter model name","aria-label":`Lite Model for ${e}`})]}),A&&y.jsx(UC,{role:"alert","aria-live":"polite",children:A}),y.jsx(MC,{type:"submit",disabled:o,"aria-busy":o,children:o?"Updating...":"Update Configuration"})]})})]})};function ax(){fl("openServiceConfigurationModal")}function WC(){return y.jsx(jr,{onClick:ax,"aria-label":"Open service configuration",children:"⚙️"})}const ux=e=>e==="vertex-ai",GC=e=>e==="openai"||e==="local-llm",JC=(e,t)=>{var o,l,a;const r=["Configuration updated successfully for "+e];return ux(e)?(t.googleCloudProjectId&&r.push(`GCP Project ID: ${t.googleCloudProjectId}`),t.googleCloudRegion&&r.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&r.push("API key has been updated"),(o=t.modelOverrides)!=null&&o.default&&r.push(`Default model: ${t.modelOverrides.default}`),(l=t.modelOverrides)!=null&&l.cheap&&r.push(`Cheap model: ${t.modelOverrides.cheap}`),(a=t.modelOverrides)!=null&&a.lite&&r.push(`Lite model: ${t.modelOverrides.lite}`),GC(e)&&"openaiBaseUrl"in t&&r.push(`OpenAI base URL: ${t.openaiBaseUrl}`),r.join(`
|
|
478
|
+
`)},KC=(e,t)=>{if(ux(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI"}return null},QC=()=>{const[e,t]=I.useState(!1),[r,o]=I.useState(!1),[l,a]=I.useState(null),[u,d]=I.useState(null),[f,p]=I.useState(),[m]=ex();pl("openServiceConfigurationModal",()=>t(!0));const g=()=>{t(!1),a(null),d(null)};I.useEffect(()=>{e&&v()},[e]);const v=async()=>{o(!0),a(null);try{const C=await Zy();p(C)}catch(C){a(C instanceof Error?C.message:"Failed to fetch configurations")}finally{o(!1)}},w=async(C,P)=>{o(!0),a(null),d(null);const L=KC(C,P);if(L){a(L),o(!1);return}try{await Qb({serviceType:C,config:P}),await v(),d(JC(C,P))}catch(M){let H="Failed to update configuration";M instanceof Error&&(H=M.message,M.message.includes("auth")?H=`Authentication error for ${C}: ${M.message}`:M.message.includes("permission")&&(H=`Permission error for ${C}: ${M.message}`)),a(H)}finally{o(!1)}},[S,b]=I.useState(null),j=I.useCallback(C=>{b(P=>P===C?null:C)},[b]);return e?y.jsx(ix,{onClick:C=>C.target===C.currentTarget&&g(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:y.jsxs(ox,{children:[y.jsx(sx,{onClick:g,"aria-label":"Close configuration modal",children:"×"}),y.jsx(lx,{children:y.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),l&&y.jsx(FC,{role:"alert","aria-live":"polite",children:l}),u&&y.jsx(BC,{role:"status","aria-live":"polite",children:u.split(`
|
|
479
|
+
`).map((C,P)=>y.jsx("div",{children:C},P))}),y.jsx(PC,{children:f?m.map(C=>y.jsx(qC,{serviceType:C,config:f[C],onUpdate:P=>w(C,P),isLoading:r,isExpanded:S===C,onCardClick:j},C)):y.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),r&&y.jsx(VC,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},cx=Gi`
|
|
480
480
|
from {
|
|
481
481
|
opacity: 0;
|
|
482
482
|
}
|
|
483
483
|
to {
|
|
484
484
|
opacity: 1;
|
|
485
485
|
}
|
|
486
|
-
`,
|
|
486
|
+
`,YC=Gi`
|
|
487
487
|
from {
|
|
488
488
|
transform: translateX(100%);
|
|
489
489
|
}
|
|
490
490
|
to {
|
|
491
491
|
transform: translateX(0);
|
|
492
492
|
}
|
|
493
|
-
`,
|
|
493
|
+
`,XC=R.button`
|
|
494
494
|
background: none;
|
|
495
495
|
border: none;
|
|
496
496
|
font-size: 1.5rem;
|
|
@@ -511,7 +511,7 @@ Error generating stack: `+x.message+`
|
|
|
511
511
|
outline-offset: 2px;
|
|
512
512
|
border-radius: 4px;
|
|
513
513
|
}
|
|
514
|
-
`,
|
|
514
|
+
`,ZC=R.div`
|
|
515
515
|
position: fixed;
|
|
516
516
|
top: 0;
|
|
517
517
|
left: 0;
|
|
@@ -520,8 +520,8 @@ Error generating stack: `+x.message+`
|
|
|
520
520
|
background-color: rgba(0, 0, 0, 0.5);
|
|
521
521
|
z-index: 998;
|
|
522
522
|
display: ${({isOpen:e})=>e?"block":"none"};
|
|
523
|
-
animation: ${
|
|
524
|
-
`,
|
|
523
|
+
animation: ${cx} 0.2s ease;
|
|
524
|
+
`,eE=R.div`
|
|
525
525
|
position: absolute;
|
|
526
526
|
${({position:e})=>e?bt`
|
|
527
527
|
top: ${e.top??"auto"};
|
|
@@ -542,8 +542,8 @@ Error generating stack: `+x.message+`
|
|
|
542
542
|
visibility: ${({isOpen:e})=>e?"visible":"hidden"};
|
|
543
543
|
transform-origin: top right;
|
|
544
544
|
animation: ${({isOpen:e})=>e?bt`
|
|
545
|
-
${
|
|
546
|
-
${
|
|
545
|
+
${YC} 0.2s ease,
|
|
546
|
+
${cx} 0.2s ease
|
|
547
547
|
`:"none"};
|
|
548
548
|
|
|
549
549
|
@media (max-width: 576px) {
|
|
@@ -557,7 +557,7 @@ Error generating stack: `+x.message+`
|
|
|
557
557
|
border-bottom-left-radius: 8px;
|
|
558
558
|
transform-origin: center right;
|
|
559
559
|
}
|
|
560
|
-
`,
|
|
560
|
+
`,tE=R.div`
|
|
561
561
|
padding: 12px 16px;
|
|
562
562
|
cursor: pointer;
|
|
563
563
|
transition: background-color 0.2s ease;
|
|
@@ -575,10 +575,10 @@ Error generating stack: `+x.message+`
|
|
|
575
575
|
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
576
576
|
outline-offset: -2px;
|
|
577
577
|
}
|
|
578
|
-
`,
|
|
578
|
+
`,nE=R.div`
|
|
579
579
|
position: relative;
|
|
580
580
|
display: inline-block;
|
|
581
|
-
`,
|
|
581
|
+
`,rE=({menuItems:e,isOpen:t,onToggle:r,className:o,buttonAriaLabel:l="Toggle menu",menuAriaLabel:a="Navigation menu",position:u})=>{const d=I.useRef(null),f=I.useRef(null),p=I.useRef(null);I.useEffect(()=>{const v=S=>{var b;t&&d.current&&!d.current.contains(S.target)&&!((b=p.current)!=null&&b.contains(S.target))&&r()},w=S=>{var b;t&&S.key==="Escape"&&(r(),(b=p.current)==null||b.focus())};return document.addEventListener("mousedown",v),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",w)}},[t,r]),I.useEffect(()=>{var v;t&&((v=f.current)==null||v.focus())},[t]);const m=v=>{var b,j;if(!t)return;const w=Array.from(((b=d.current)==null?void 0:b.querySelectorAll('[role="menuitem"]'))||[]),S=w.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),S<w.length-1?w[S+1].focus():w[0].focus();break;case"ArrowUp":v.preventDefault(),S>0?w[S-1].focus():w[w.length-1].focus();break;case"Home":v.preventDefault(),w[0].focus();break;case"End":v.preventDefault(),w[w.length-1].focus();break;case"Enter":case" ":v.preventDefault(),S>=0&&(e[S].onClick(),r(),(j=p.current)==null||j.focus());break}},g=v=>{var w;v(),r(),(w=p.current)==null||w.focus()};return y.jsxs(nE,{className:o,children:[y.jsx(XC,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":l,ref:p,children:"☰"}),y.jsx(ZC,{isOpen:t,onClick:r}),y.jsx(eE,{isOpen:t,position:u,ref:d,role:"menu","aria-label":a,id:"menu-items",onKeyDown:m,children:e.map((v,w)=>y.jsxs(tE,{onClick:()=>g(v.onClick),role:"menuitem",tabIndex:t?0:-1,ref:w===0?f:null,"aria-label":v.ariaLabel,children:[v.content," ",v.ariaLabel]},v.key||w))})]})};function dx(){fl("openRcConfigModal")}const iE=({rcConfig:e})=>{const[t,r]=I.useState(!1);pl("openRcConfigModal",()=>r(!0));const o=()=>{r(!1)};return!t||!e?null:y.jsx(ix,{onClick:l=>l.target===l.currentTarget&&o(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:y.jsxs(ox,{children:[y.jsx(sx,{onClick:o,"aria-label":"Close RC configuration modal",children:"×"}),y.jsx(lx,{children:y.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),y.jsxs(oE,{children:[y.jsxs(on,{children:[y.jsx(ln,{children:"Root Directory"}),y.jsx(ji,{children:e.rootDir})]}),e.lintCommand&&y.jsxs(on,{children:[y.jsx(ln,{children:"Lint Command"}),y.jsx(ji,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&y.jsxs(on,{children:[y.jsx(ln,{children:"Extensions"}),y.jsx(ji,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&y.jsxs(on,{children:[y.jsx(ln,{children:"Ignore Paths"}),y.jsx(ji,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&y.jsxs(on,{children:[y.jsx(ln,{children:"Important Context"}),y.jsx(ji,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&y.jsxs(on,{children:[y.jsx(ln,{children:"Model Overrides"}),y.jsx(ji,{children:y.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},oE=R.div`
|
|
582
582
|
display: flex;
|
|
583
583
|
flex-direction: column;
|
|
584
584
|
gap: 1rem;
|
|
@@ -595,7 +595,7 @@ Error generating stack: `+x.message+`
|
|
|
595
595
|
margin: 0;
|
|
596
596
|
white-space: pre-wrap;
|
|
597
597
|
}
|
|
598
|
-
`,
|
|
598
|
+
`,lE=()=>y.jsx(jr,{onClick:dx,children:"ℹ️"}),sE=R.div`
|
|
599
599
|
position: fixed;
|
|
600
600
|
top: 0;
|
|
601
601
|
left: 0;
|
|
@@ -606,7 +606,7 @@ Error generating stack: `+x.message+`
|
|
|
606
606
|
justify-content: center;
|
|
607
607
|
align-items: center;
|
|
608
608
|
z-index: 1000;
|
|
609
|
-
`,
|
|
609
|
+
`,aE=R.div`
|
|
610
610
|
background: ${({theme:e})=>e.colors.background};
|
|
611
611
|
padding: 2rem;
|
|
612
612
|
border-radius: 8px;
|
|
@@ -616,7 +616,7 @@ Error generating stack: `+x.message+`
|
|
|
616
616
|
overflow-y: auto;
|
|
617
617
|
position: relative;
|
|
618
618
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
619
|
-
`,
|
|
619
|
+
`,uE=R.div`
|
|
620
620
|
display: flex;
|
|
621
621
|
justify-content: space-between;
|
|
622
622
|
align-items: center;
|
|
@@ -625,7 +625,7 @@ Error generating stack: `+x.message+`
|
|
|
625
625
|
h2 {
|
|
626
626
|
margin: 0;
|
|
627
627
|
}
|
|
628
|
-
`,
|
|
628
|
+
`,cE=R.button`
|
|
629
629
|
position: absolute;
|
|
630
630
|
top: 1rem;
|
|
631
631
|
right: 1rem;
|
|
@@ -637,24 +637,24 @@ Error generating stack: `+x.message+`
|
|
|
637
637
|
&:hover {
|
|
638
638
|
opacity: 0.8;
|
|
639
639
|
}
|
|
640
|
-
`,
|
|
640
|
+
`,dE=R.div`
|
|
641
641
|
display: flex;
|
|
642
642
|
flex-direction: column;
|
|
643
643
|
gap: 1rem;
|
|
644
644
|
margin-bottom: 1rem;
|
|
645
|
-
`,
|
|
645
|
+
`,fE=R.div`
|
|
646
646
|
color: ${({theme:e})=>e.colors.error};
|
|
647
647
|
margin-bottom: 1rem;
|
|
648
648
|
padding: 0.5rem;
|
|
649
649
|
border: 1px solid ${({theme:e})=>e.colors.error};
|
|
650
650
|
border-radius: 4px;
|
|
651
|
-
`,
|
|
651
|
+
`,pE=R.div`
|
|
652
652
|
color: ${({theme:e})=>e.colors.success};
|
|
653
653
|
margin-bottom: 1rem;
|
|
654
654
|
padding: 0.5rem;
|
|
655
655
|
border: 1px solid ${({theme:e})=>e.colors.success};
|
|
656
656
|
border-radius: 4px;
|
|
657
|
-
`,
|
|
657
|
+
`,hE=R.div`
|
|
658
658
|
position: absolute;
|
|
659
659
|
top: 0;
|
|
660
660
|
left: 0;
|
|
@@ -667,11 +667,11 @@ Error generating stack: `+x.message+`
|
|
|
667
667
|
border-radius: 8px;
|
|
668
668
|
color: white;
|
|
669
669
|
font-size: 1.2rem;
|
|
670
|
-
`,
|
|
670
|
+
`,ia=({value:e,onChange:t,disabled:r})=>{const{services:o,isLoading:l,error:a}=tx(),u=d=>{t(d.target.value)};return y.jsxs(mE,{children:[y.jsxs(gE,{id:"aiService",value:e,onChange:u,disabled:r||l||a!==null,children:[y.jsx("option",{value:"",children:"Select AI Service"}),o.map(({service:d,displayName:f})=>y.jsx("option",{value:d,children:f},d))]}),l&&y.jsx(yE,{children:"Loading services..."}),a&&y.jsx(xE,{children:a})]})},mE=R.div`
|
|
671
671
|
display: flex;
|
|
672
672
|
flex-direction: column;
|
|
673
673
|
gap: 4px;
|
|
674
|
-
`,
|
|
674
|
+
`,gE=R.select`
|
|
675
675
|
padding: 8px;
|
|
676
676
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
677
677
|
border-radius: 4px;
|
|
@@ -690,20 +690,20 @@ Error generating stack: `+x.message+`
|
|
|
690
690
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
691
691
|
color: ${({theme:e})=>e.colors.inputText};
|
|
692
692
|
}
|
|
693
|
-
`,
|
|
693
|
+
`,yE=R.div`
|
|
694
694
|
color: ${({theme:e})=>e.colors.text};
|
|
695
695
|
font-size: 14px;
|
|
696
696
|
font-style: italic;
|
|
697
|
-
`,
|
|
697
|
+
`,xE=R.div`
|
|
698
698
|
color: ${({theme:e})=>e.colors.error};
|
|
699
699
|
font-size: 14px;
|
|
700
|
-
`;function
|
|
700
|
+
`;function fx(){fl("openGenaicodeConfigModal")}function vE(){return y.jsx(jr,{onClick:fx,"aria-label":"Open Genaicode configuration",children:"🐺"})}const wE=({options:e,onOptionsChange:t})=>{const[r,o]=I.useState(!1),[l,a]=I.useState(!1),[u,d]=I.useState(null),[f,p]=I.useState(null);pl("openGenaicodeConfigModal",()=>o(!0));const m=()=>{o(!1),d(null),p(null)},g=async b=>{a(!0),d(null),p(null);try{t(b),p("Configuration updated successfully")}catch{d("Failed to update configuration")}finally{a(!1)}},v=b=>{const{name:j,value:C,type:P}=b.target,L=P==="checkbox"?b.target.checked:C;g({...e,[j]:L})},w=b=>{g({...e,aiService:b})},S=b=>{const j=b.target.value.split(",").map(C=>C.trim());g({...e,ignorePatterns:j})};return r?y.jsx(sE,{onClick:b=>b.target===b.currentTarget&&m(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:y.jsxs(aE,{children:[y.jsx(cE,{onClick:m,"aria-label":"Close configuration modal",children:"×"}),y.jsx(uE,{children:y.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),u&&y.jsx(fE,{role:"alert","aria-live":"polite",children:u}),f&&y.jsx(pE,{role:"status","aria-live":"polite",children:f}),y.jsxs(dE,{children:[y.jsxs(qo,{children:[y.jsx(Mn,{htmlFor:"aiService",children:"Default AI Service:"}),y.jsx(ia,{value:e.aiService,onChange:w,disabled:l})]}),y.jsxs(qo,{children:[y.jsx(Mn,{htmlFor:"contentMask",children:"Content Mask:"}),y.jsx(Gm,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:v,disabled:l})]}),y.jsxs(qo,{children:[y.jsx(Mn,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),y.jsx(Gm,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:S,disabled:l}),y.jsx("small",{children:"Comma-separated list of patterns"})]}),y.jsxs(qo,{children:[y.jsx(Mn,{children:"File Operations:"}),y.jsxs(Mn,{htmlFor:"allowFileCreate",children:[y.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:v,disabled:l}),"Allow File Create"]}),y.jsxs(Mn,{htmlFor:"allowFileDelete",children:[y.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:v,disabled:l}),"Allow File Delete"]}),y.jsxs(Mn,{htmlFor:"allowDirectoryCreate",children:[y.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:v,disabled:l}),"Allow Directory Create"]}),y.jsxs(Mn,{htmlFor:"allowFileMove",children:[y.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:v,disabled:l}),"Allow File Move"]})]}),y.jsxs(qo,{children:[y.jsx(Mn,{children:"Notification Settings:"}),y.jsxs(Mn,{htmlFor:"muteNotifications",children:[y.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:e.muteNotifications===!0,onChange:v,disabled:l}),"Mute Sound Notifications"]})]})]}),l&&y.jsx(hE,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},qo=R.div`
|
|
701
701
|
margin-bottom: 16px;
|
|
702
702
|
`,Mn=R.label`
|
|
703
703
|
display: block;
|
|
704
704
|
margin-bottom: 4px;
|
|
705
705
|
color: ${e=>e.theme.colors.text};
|
|
706
|
-
`,
|
|
706
|
+
`,Gm=R.input`
|
|
707
707
|
width: 100%;
|
|
708
708
|
padding: 8px;
|
|
709
709
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -715,7 +715,7 @@ Error generating stack: `+x.message+`
|
|
|
715
715
|
background-color: ${e=>e.theme.colors.disabled};
|
|
716
716
|
cursor: not-allowed;
|
|
717
717
|
}
|
|
718
|
-
`,
|
|
718
|
+
`,kE="0.12.1",px=()=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM13.96 12.29L11.21 15.83L9.25 13.47L6.5 17H17.5L13.96 12.29Z",fill:"currentColor"})}),SE=()=>y.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("path",{d:"M10 3H8C6.89543 3 6 3.89543 6 5V7M10 21H8C6.89543 21 6 20.1046 6 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("path",{d:"M14 3H16C17.1046 3 18 3.89543 18 5V7M14 21H16C17.1046 21 18 20.1046 18 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),y.jsx("rect",{x:"6",y:"10",width:"12",height:"4",rx:"1",stroke:"currentColor",strokeWidth:"2"}),y.jsx("path",{d:"M12 7V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M12 14V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),bE=500,As=5e3,Qi=I.createContext({messages:[],executionStatus:"idle",currentQuestion:null,suggestions:[],currentPrompt:"",theme:"dark",usage:void 0,codegenOptions:void 0,rcConfig:null,lastFinishedExecutionId:null,initialDataLoaded:!1,conversationGraphState:null,isGraphVisualiserOpen:!1,terminalEvents:{},isTerminalOpen:!1,setMessages:()=>{},setExecutionStatus:()=>{},setCurrentQuestion:()=>{},setSuggestions:()=>{},setCurrentPrompt:()=>{},toggleTheme:()=>{},setCodegenOptions:()=>{},setLastFinishedExecutionId:()=>{},startPolling:()=>{},stopPolling:()=>{},handlePauseExecution:async()=>{},handleResumeExecution:async()=>{},setConversationGraphState:()=>{},toggleGraphVisualiser:()=>{},toggleTerminal:()=>{},clearTerminalEvents:()=>{}}),CE=({children:e})=>{const[t,r]=I.useState([]),[o,l]=I.useState("idle"),[a,u]=I.useState(null),[d,f]=I.useState([]),[p,m]=I.useState(""),[g,v]=I.useState("dark"),[w,S]=I.useState(),[b,j]=I.useState(void 0),[C,P]=I.useState(null),[L,M]=I.useState(null),H=I.useRef(!1),[A,q]=I.useState(!1),K=I.useRef(null),[le,D]=I.useState(null),[ne,se]=I.useState(!1),[oe,re]=I.useState({}),[B,ae]=I.useState(!1),[ue,X]=I.useState(!0),ce=I.useCallback(()=>{v(Ie=>Ie==="light"?"dark":"light")},[]),E=I.useCallback(Ie=>{j(Ie)},[]),z=I.useCallback(()=>{se(Ie=>!Ie)},[]),G=I.useCallback(()=>{ae(Ie=>!Ie)},[]),N=I.useCallback(()=>{X(Ie=>!Ie)},[]),ye=I.useCallback(Ie=>{re($t=>({...$t,[Ie]:[]}))},[]),Se=I.useCallback(async()=>{try{const[Ie,$t,Pn,_t,_e,st]=await Promise.all([ud(),cd(),Hm(),qm(),Gb(),Jb()]);l(Ie),u($t);const Et=[],xt={};for(const Ye of Pn)if(Ye.message&&Et.push({...Ye.message,timestamp:new Date(Ye.message.timestamp),data:Ye.data}),Ye.terminalEvent){const{iterationId:it}=Ye.terminalEvent;xt[it]||(xt[it]=[]),xt[it].push({...Ye.terminalEvent,timestamp:new Date(Ye.terminalEvent.timestamp).toString()})}for(const Ye in xt)xt[Ye].length>As&&(xt[Ye]=xt[Ye].slice(-As));r(Et),re(xt),S(_t),j(_e),P(st),q(!0)}catch(Ie){console.error("Failed to fetch initial data:",Ie),q(!1)}},[]);I.useEffect(()=>{Se()},[Se]);const me=I.useCallback(async()=>{try{const[Ie,$t,Pn,_t]=await Promise.all([ud(),cd(),Hm(),qm()]);l(_e=>_e!==Ie?Ie:_e),u(_e=>(_e==null?void 0:_e.id)!==($t==null?void 0:$t.id)?$t:_e),r(_e=>{const st=Pn.filter(Et=>!!Et.message).map(Et=>({...Et.message,timestamp:new Date(Et.message.timestamp),data:Et.data}));return _e.length!==st.length||_e.length>0&&st.length>0&&_e[_e.length-1].id!==st[st.length-1].id?st:_e}),re(_e=>{const st={};let Et=!1;for(const it of Pn)if(it.terminalEvent){const{iterationId:Mt}=it.terminalEvent;st[Mt]||(st[Mt]=[]),st[Mt].push({...it.terminalEvent,timestamp:new Date(it.terminalEvent.timestamp).toString()})}const xt=new Set([...Object.keys(_e),...Object.keys(st)]),Ye={..._e};for(const it of xt){const Mt=_e[it]||[],un=st[it]||[];(Mt.length!==un.length||un.length>0&&Mt.length>0&&Mt[Mt.length-1].id!==un[un.length-1].id)&&(Et=!0,Ye[it]=un.length>As?un.slice(-As):un)}return Et?Ye:_e}),S(_e=>(_e==null?void 0:_e.usageMetrics.total.cost)!==(_t==null?void 0:_t.usageMetrics.total.cost)||(_e==null?void 0:_e.usageMetrics.total.tpd)!==(_t==null?void 0:_t.usageMetrics.total.tpd)?_t:_e)}catch(Ie){console.error("Failed to poll data:",Ie)}K.current&&clearTimeout(K.current),H.current&&(K.current=setTimeout(me,bE))},[]),Ee=I.useCallback(()=>{H.current||(console.log("Starting polling..."),H.current=!0,K.current&&clearTimeout(K.current),requestAnimationFrame(()=>{me()}))},[me]),ke=I.useCallback(()=>{H.current&&(console.log("Stopping polling..."),H.current=!1,K.current&&(clearTimeout(K.current),K.current=null))},[]);I.useEffect(()=>(A&&Ee(),()=>{ke()}),[A,Ee,ke]);const je=I.useCallback(async()=>{try{await Hb(),l("paused")}catch(Ie){console.error("Failed to pause execution:",Ie)}},[]),Ve=I.useCallback(async()=>{try{await qb(),l("executing")}catch(Ie){console.error("Failed to resume execution:",Ie)}},[]),Ct=I.useMemo(()=>({messages:t,executionStatus:o,currentQuestion:a,suggestions:d,currentPrompt:p,theme:g,usage:w,codegenOptions:b,rcConfig:C,lastFinishedExecutionId:L,initialDataLoaded:A,conversationGraphState:le,isGraphVisualiserOpen:ne,terminalEvents:oe,isTerminalOpen:B,autoScrollTerminal:ue,setMessages:r,setExecutionStatus:l,setCurrentQuestion:u,setSuggestions:f,setCurrentPrompt:m,toggleTheme:ce,setCodegenOptions:E,setLastFinishedExecutionId:M,startPolling:Ee,stopPolling:ke,handlePauseExecution:je,handleResumeExecution:Ve,setConversationGraphState:D,toggleGraphVisualiser:z,toggleTerminal:G,toggleAutoScrollTerminal:N,setAutoScrollTerminal:X,clearTerminalEvents:ye}),[t,o,a,d,p,g,w,b,C,L,A,le,ne,oe,B,ue,ce,E,Ee,ke,je,Ve,z,G,N,ye]);return y.jsx(Qi.Provider,{value:Ct,children:e})},hl=()=>{const e=Pt.useContext(Qi);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e},EE=Gi`
|
|
719
719
|
0% {
|
|
720
720
|
transform: scale(1);
|
|
721
721
|
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); // Use theme primary color ideally
|
|
@@ -728,18 +728,18 @@ Error generating stack: `+x.message+`
|
|
|
728
728
|
transform: scale(1);
|
|
729
729
|
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
|
|
730
730
|
}
|
|
731
|
-
`,
|
|
731
|
+
`,jE=R.div`
|
|
732
732
|
position: absolute; // Positioned relative to MainContent
|
|
733
733
|
bottom: 40px;
|
|
734
734
|
right: 30px;
|
|
735
735
|
z-index: 1000; // Ensure it's above other content like scrollbars
|
|
736
|
-
`,
|
|
736
|
+
`,TE=R(jr)`
|
|
737
737
|
width: 50px; // Increased size
|
|
738
738
|
height: 50px; // Increased size
|
|
739
739
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
740
740
|
color: ${({theme:e})=>e.colors.buttonText||"#ffffff"}; // Ensure icon is visible
|
|
741
741
|
border: none;
|
|
742
|
-
animation: ${
|
|
742
|
+
animation: ${EE} 2s infinite;
|
|
743
743
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
744
744
|
|
|
745
745
|
&:hover {
|
|
@@ -753,14 +753,14 @@ Error generating stack: `+x.message+`
|
|
|
753
753
|
border: 1px solid ${t.colors.primary};
|
|
754
754
|
animation: none; // Turn off animation when visualiser is open
|
|
755
755
|
`}
|
|
756
|
-
`,
|
|
756
|
+
`,RE=()=>{const{toggleGraphVisualiser:e,isGraphVisualiserOpen:t,conversationGraphState:r}=hl();return r!=null&&r.isActive?y.jsx(jE,{children:y.jsx(TE,{onClick:e,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:t,children:y.jsx(SE,{})})}):null},NE="https://github.com/gtanczyk/genaicode/issues",IE=({themeToggle:e,chatInterface:t,inputArea:r,usage:o,toggleTheme:l})=>{const[a,u]=I.useState(!1),d=[{content:y.jsx(WC,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:ax},{content:y.jsx(dC,{}),ariaLabel:"Health Check",key:"health-check",onClick:rx},{content:y.jsx(Xb,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:nx},{content:y.jsx(vE,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:fx},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:l},{content:y.jsx(lE,{}),ariaLabel:"Information",key:"info",onClick:dx},{content:y.jsx(jr,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(NE,"_blank","noopener,noreferrer")}];return y.jsxs(PE,{children:[y.jsxs(AE,{children:[y.jsx(LE,{children:y.jsxs($E,{children:[y.jsx(_E,{children:"GenAIcode"}),y.jsxs(zE,{children:["v",kE]})]})}),y.jsxs(DE,{children:[y.jsx(OE,{children:y.jsx(iS,{usage:o})}),y.jsx(ME,{children:y.jsx(rE,{menuItems:d,isOpen:a,onToggle:()=>u(!a),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),y.jsxs(FE,{children:[y.jsx(BE,{children:t}),y.jsx(UE,{children:r}),y.jsx(RE,{})]})]})},PE=R.div`
|
|
757
757
|
display: flex;
|
|
758
758
|
flex-direction: column;
|
|
759
759
|
height: 100vh;
|
|
760
760
|
max-width: 1200px;
|
|
761
761
|
margin: 0 auto;
|
|
762
762
|
padding: 0 10px;
|
|
763
|
-
`,
|
|
763
|
+
`,AE=R.header`
|
|
764
764
|
position: relative;
|
|
765
765
|
display: flex;
|
|
766
766
|
justify-content: space-between;
|
|
@@ -768,13 +768,13 @@ Error generating stack: `+x.message+`
|
|
|
768
768
|
padding: 10px 0;
|
|
769
769
|
flex-wrap: nowrap;
|
|
770
770
|
gap: 10px;
|
|
771
|
-
`,
|
|
771
|
+
`,LE=R.div`
|
|
772
772
|
display: flex;
|
|
773
773
|
align-items: center;
|
|
774
774
|
gap: 10px;
|
|
775
|
-
|
|
775
|
+
`,$E=R.div`
|
|
776
776
|
position: relative;
|
|
777
|
-
`,
|
|
777
|
+
`,_E=R.h1`
|
|
778
778
|
text-transform: uppercase;
|
|
779
779
|
font-family: 'Press Start 2P', system-ui;
|
|
780
780
|
color: ${({theme:e})=>e.colors.primary};
|
|
@@ -783,7 +783,7 @@ Error generating stack: `+x.message+`
|
|
|
783
783
|
white-space: nowrap;
|
|
784
784
|
overflow: hidden;
|
|
785
785
|
text-overflow: ellipsis;
|
|
786
|
-
`,
|
|
786
|
+
`,zE=R.span`
|
|
787
787
|
position: absolute;
|
|
788
788
|
bottom: 0;
|
|
789
789
|
right: 0;
|
|
@@ -794,7 +794,7 @@ Error generating stack: `+x.message+`
|
|
|
794
794
|
border-radius: 3px;
|
|
795
795
|
transform: translateY(100%);
|
|
796
796
|
white-space: nowrap;
|
|
797
|
-
`,
|
|
797
|
+
`,DE=R.div`
|
|
798
798
|
display: flex;
|
|
799
799
|
align-items: center;
|
|
800
800
|
gap: 16px;
|
|
@@ -804,30 +804,30 @@ Error generating stack: `+x.message+`
|
|
|
804
804
|
@media (max-width: 576px) {
|
|
805
805
|
gap: 8px;
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
`,OE=R.div`
|
|
808
808
|
flex-shrink: 1;
|
|
809
809
|
min-width: 0;
|
|
810
|
-
`,
|
|
810
|
+
`,ME=R.div`
|
|
811
811
|
display: flex;
|
|
812
812
|
align-items: center;
|
|
813
813
|
|
|
814
814
|
@media (max-width: 576px) {
|
|
815
815
|
position: relative;
|
|
816
816
|
}
|
|
817
|
-
`,
|
|
817
|
+
`,FE=R.main`
|
|
818
818
|
display: flex;
|
|
819
819
|
flex-direction: column;
|
|
820
820
|
flex-grow: 1;
|
|
821
821
|
min-height: 0;
|
|
822
822
|
position: relative;
|
|
823
823
|
z-index: 1;
|
|
824
|
-
`,
|
|
824
|
+
`,BE=R.div`
|
|
825
825
|
flex-grow: 1;
|
|
826
826
|
overflow: hidden;
|
|
827
827
|
margin-bottom: 20px;
|
|
828
|
-
`,
|
|
828
|
+
`,UE=R.div`
|
|
829
829
|
flex-shrink: 0;
|
|
830
|
-
`,ME=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:o,setCodegenOptions:l,handlePauseExecution:a,handleResumeExecution:u}=I.useContext(Qi),d=async(w,S)=>{t(w),r("executing");try{if(await sd()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Ob(w,e,S.length>0?S:void 0),r("executing")}catch(b){console.error("Failed to execute codegen:",b),r("idle")}},f=async(w,S,b,j)=>{const C=await ad();if(C)try{if(o(null),e){const P={...e,aiService:j??e.aiService};l(P),await Ub(C.id,w,b,P,S)}else console.error("Codegen options not available for submitting answer")}catch(P){console.error("Failed to submit answer:",P),o(C)}},p=async()=>{try{o(null),await Mb()}catch(w){console.error("Failed to interrupt execution:",w)}},m=I.useCallback(w=>{l(w)},[l]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:m,handlePauseExecution:a,handleResumeExecution:u}};var Cr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Cr||{}),Bd=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Bd||{});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},W.apply(null,arguments)}function $e(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var dx={},fx=I.createContext(dx),FE=(e,t)=>W({},e,t),BE=()=>I.useContext(fx),Ud=I.createContext(()=>{});Ud.displayName="JVR.DispatchShowTools";function UE(){return I.useReducer(FE,dx)}function px(){return I.useContext(Ud)}var hx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(fx.Provider,{value:t,children:y.jsx(Ud.Provider,{value:r,children:o})})};hx.displayName="JVR.ShowTools";var mx={},gx=I.createContext(mx),VE=(e,t)=>W({},e,t),ka=()=>I.useContext(gx),Vd=I.createContext(()=>{});Vd.displayName="JVR.DispatchExpands";function HE(){return I.useReducer(VE,mx)}function qE(){return I.useContext(Vd)}var yx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(gx.Provider,{value:t,children:y.jsx(Vd.Provider,{value:r,children:o})})};yx.displayName="JVR.Expands";var xx={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},vx=I.createContext(xx),WE=(e,t)=>W({},e,t),Ge=()=>I.useContext(vx),Hd=I.createContext(()=>{});Hd.displayName="JVR.DispatchTypes";function GE(){return I.useReducer(WE,xx)}function JE(){return I.useContext(Hd)}function wx(e){var{initial:t,dispatch:r,children:o}=e;return y.jsx(vx.Provider,{value:t,children:y.jsx(Hd.Provider,{value:r,children:o})})}wx.displayName="JVR.Types";var KE=["style"];function kx(e){var{style:t}=e,r=$e(e,KE),o=W({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return y.jsx("svg",W({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:o},r,{children:y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}kx.displayName="JVR.TriangleArrow";var Sx={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(kx,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},bx=I.createContext(Sx),QE=(e,t)=>W({},e,t),Jt=()=>I.useContext(bx),qd=I.createContext(()=>{});qd.displayName="JVR.DispatchSymbols";function YE(){return I.useReducer(QE,Sx)}function XE(){return I.useContext(qd)}var Cx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(bx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:o})})};Cx.displayName="JVR.Symbols";var Ex={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},jx=I.createContext(Ex),ZE=(e,t)=>W({},e,t),vn=()=>I.useContext(jx),Wd=I.createContext(()=>{});Wd.displayName="JVR.DispatchSection";function ej(){return I.useReducer(ZE,Ex)}function tj(){return I.useContext(Wd)}var Tx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(jx.Provider,{value:t,children:y.jsx(Wd.Provider,{value:r,children:o})})};Tx.displayName="JVR.Section";var Rx={objectSortKeys:!1,indentWidth:15},Gd=I.createContext(Rx);Gd.displayName="JVR.Context";var Nx=I.createContext(()=>{});Nx.displayName="JVR.DispatchContext";function nj(e,t){return W({},e,t)}var Zr=()=>I.useContext(Gd),Ix=e=>{var{children:t,initialState:r,initialTypes:o}=e,[l,a]=I.useReducer(nj,Object.assign({},Rx,r)),[u,d]=UE(),[f,p]=HE(),[m,g]=GE(),[v,w]=YE(),[S,b]=ej();return I.useEffect(()=>a(W({},r)),[r]),y.jsx(Gd.Provider,{value:l,children:y.jsx(Nx.Provider,{value:a,children:y.jsx(hx,{initial:u,dispatch:d,children:y.jsx(yx,{initial:f,dispatch:p,children:y.jsx(wx,{initial:W({},m,o),dispatch:g,children:y.jsx(Cx,{initial:v,dispatch:w,children:y.jsx(Tx,{initial:S,dispatch:b,children:t})})})})})})})};Ix.displayName="JVR.Provider";function rj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ij=["isNumber","value","parentValue","keyName","keys"],oj=["as","render"],lj=["as","render"],sj=["as","render"],aj=["as","style","render"],uj=["as","render"],cj=["as","render"],dj=["as","render"],fj=["as","render"],ud=e=>{var{Quote:t={}}=Jt(),{isNumber:r,value:o,parentValue:l,keyName:a,keys:u}=e,d=$e(e,ij);if(r)return null;var{as:f,render:p}=t,m=$e(t,oj),g=f||"span",v=W({},d,m),w={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])},S=p&&typeof p=="function"&&p(v,w);return S||y.jsx(g,W({},v))};ud.displayName="JVR.Quote";var il=e=>{var{ValueQuote:t={}}=Jt(),r=W({},(rj(e),e)),{as:o,render:l}=t,a=$e(t,lj),u=o||"span",d=W({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,W({},d))};il.displayName="JVR.ValueQuote";var Px=e=>{var{value:t,parentValue:r,keyName:o,keys:l}=e,{Colon:a={}}=Jt(),{as:u,render:d}=a,f=$e(a,sj),p=u||"span",m=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:o,keys:l||(o?[o]:[])});return m||y.jsx(p,W({},f))};Px.displayName="JVR.Colon";var Ax=e=>{var{Arrow:t={}}=Jt(),r=ka(),{expandKey:o,style:l,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[o],{as:m,style:g,render:v}=t,w=$e(t,aj),S=m||"span",b=v&&typeof v=="function",j=W({},w,{"data-expanded":p,style:W({},g,l)}),C={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},P=b&&v(j,C);return P||y.jsx(S,W({},w,{style:W({},g,l)}))};Ax.displayName="JVR.Arrow";var Lx=e=>{var{isBrackets:t,value:r,parentValue:o,keyName:l,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Jt(),f={value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])};if(t){var{as:p,render:m}=u,g=$e(u,uj),v=p||"span",w=m&&typeof m=="function"&&m(g,f);return w||y.jsx(v,W({},g))}var{as:S,render:b}=d,j=$e(d,cj),C=S||"span",P=b&&typeof b=="function"&&b(j,f);return P||y.jsx(C,W({},j))};Lx.displayName="JVR.BracketsOpen";var Jd=e=>{var{isBrackets:t,isVisiable:r,value:o,parentValue:l,keyName:a,keys:u}=e,d={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Jt();if(t){var{as:m,render:g}=f,v=$e(f,dj),w=m||"span",S=g&&typeof g=="function"&&g(v,d);return S||y.jsx(w,W({},v))}var{as:b,render:j}=p,C=$e(p,fj),P=b||"span",L=j&&typeof j=="function"&&j(C,d);return L||y.jsx(P,W({},C))};Jd.displayName="JVR.BracketsClose";var $x=e=>{var t,{value:r,expandKey:o,level:l,keys:a=[]}=e,u=ka(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=Zr(),m=r instanceof Set,g=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[o])!=null?t:g,w=Object.keys(r).length;if(u[o]===void 0&&p&&p(v,{value:r,keys:a,level:l})||v||w===0)return null;var S={paddingLeft:4};return y.jsx("div",{style:S,children:y.jsx(Jd,{isBrackets:d||m,isVisiable:!0})})};$x.displayName="JVR.NestedClose";var pj=["as","render"],hj=["as","render"],mj=["as","render"],gj=["as","render"],yj=["as","render"],xj=["as","render"],vj=["as","render"],wj=["as","render"],kj=["as","render"],Sj=["as","render"],bj=["as","render"],Cj=["as","render"],Ej=["as","render"],cd=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},_x=e=>{var{value:t,keyName:r}=e,{Set:o={},displayDataTypes:l}=Ge(),a=t instanceof Set;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,pj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};_x.displayName="JVR.SetComp";var zx=e=>{var{value:t,keyName:r}=e,{Map:o={},displayDataTypes:l}=Ge(),a=t instanceof Map;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,hj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};zx.displayName="JVR.MapComp";var In={opacity:.75,paddingRight:4},Dx=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=Zr(),{as:u,render:d}=o,f=$e(o,mj),p=t,[m,g]=I.useState(a&&p.length>a);I.useEffect(()=>g(a&&p.length>a),[a]);var v=u||"span",w=W({},In,o.style||{});a>0&&(f.style=W({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{g(!m)}));var S=m?p.slice(0,a)+"...":p,b=d&&typeof d=="function",j=b&&d(W({},f,{style:w}),{type:"type",value:t,keyName:r}),C=b&&d(W({},f,{children:S,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(j||y.jsx(v,W({},f,{style:w}))),C||y.jsxs(I.Fragment,{children:[y.jsx(il,{}),y.jsx(v,W({},f,{className:"w-rjv-value",children:S})),y.jsx(il,{})]})]})};Dx.displayName="JVR.TypeString";var Ox=e=>{var{children:t,keyName:r}=e,{True:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,gj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ox.displayName="JVR.TypeTrue";var Mx=e=>{var{children:t,keyName:r}=e,{False:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,yj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Mx.displayName="JVR.TypeFalse";var Fx=e=>{var{children:t,keyName:r}=e,{Float:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,xj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Fx.displayName="JVR.TypeFloat";var Bx=e=>{var{children:t,keyName:r}=e,{Int:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,vj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Bx.displayName="JVR.TypeInt";var Ux=e=>{var{children:t,keyName:r}=e,{Bigint:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,wj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:cd(t==null?void 0:t.toString())}))]})};Ux.displayName="JVR.TypeFloat";var Vx=e=>{var{children:t,keyName:r}=e,{Url:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,kj),f=a||"span",p=W({},In,o.style),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsxs("a",W({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[y.jsx(il,{}),t==null?void 0:t.href,y.jsx(il,{})]}))]})};Vx.displayName="JVR.TypeUrl";var Hx=e=>{var{children:t,keyName:r}=e,{Date:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Sj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=m&&u(W({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),w||y.jsx(f,W({},d,{className:"w-rjv-value",children:v}))]})};Hx.displayName="JVR.TypeDate";var qx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,bj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};qx.displayName="JVR.TypeUndefined";var Wx=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Cj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Wx.displayName="JVR.TypeNull";var Gx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Ej),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Gx.displayName="JVR.TypeNan";var jj=e=>Number(e)===e&&e%1!==0||isNaN(e),Jx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?y.jsx(Vx,W({},o,{children:t})):typeof t=="string"?y.jsx(Dx,W({},o,{children:t})):t===!0?y.jsx(Ox,W({},o,{children:t})):t===!1?y.jsx(Mx,W({},o,{children:t})):t===null?y.jsx(Wx,W({},o,{children:t})):t===void 0?y.jsx(qx,W({},o,{children:t})):t instanceof Date?y.jsx(Hx,W({},o,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(Gx,W({},o,{children:t})):typeof t=="number"&&jj(t)?y.jsx(Fx,W({},o,{children:t})):typeof t=="bigint"?y.jsx(Ux,W({},o,{children:t})):typeof t=="number"?y.jsx(Bx,W({},o,{children:t})):null};Jx.displayName="JVR.Value";function Tr(e,t,r){var o=XE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function an(e,t,r){var o=JE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function Yi(e,t,r){var o=tj(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}var Tj=["as","render"],Kx=e=>{var{KeyName:t={}}=vn();return Yi(t,e,"KeyName"),null};Kx.displayName="JVR.KeyName";var Qx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=vn(),{as:p,render:m}=f,g=$e(f,Tj);g.style=W({},g.style,d);var v=p||"span",w=m&&typeof m=="function"&&m(W({},g,{children:t}),{value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])});return w||y.jsx(v,W({},g,{children:t}))};Qx.displayName="JVR.KeyNameComp";var Rj=["children","value","parentValue","keyName","keys"],Nj=["as","render","children"],Yx=e=>{var{Row:t={}}=vn();return Yi(t,e,"Row"),null};Yx.displayName="JVR.Row";var Xx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=$e(e,Rj),{Row:d={}}=vn(),{as:f,render:p}=d,m=$e(d,Nj),g=f||"div",v=p&&typeof p=="function"&&p(W({},u,m,{children:t}),{value:r,keyName:l,parentValue:o,keys:a});return v||y.jsx(g,W({},u,m,{children:t}))};Xx.displayName="JVR.RowComp";function Ij(e){var t=I.useRef();return I.useEffect(()=>{t.current=e}),t.current}function Pj(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,l=Ij(t),a=I.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof t!=typeof l)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(l)?!1:t!==l;if(Array.isArray(t)!==Array.isArray(l))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==l)return!0},[r,t]);I.useEffect(()=>{o&&o.current&&a&&"animate"in o.current&&o.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,o])}var Aj=["keyName","value","parentValue","expandKey","keys"],Lj=["as","render"],Kd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:l,keys:a}=e,u=$e(e,Aj),{onCopied:d,enableClipboard:f}=Zr(),p=BE(),m=p[l],[g,v]=I.useState(!1),{Copied:w={}}=vn();if(f===!1||!m)return null;var S=H=>{H.stopPropagation();var A="";typeof r=="number"&&r===1/0?A="Infinity":typeof r=="number"&&isNaN(r)?A="NaN":typeof r=="bigint"?A=cd(r):r instanceof Date?A=r.toLocaleString():A=JSON.stringify(r,(K,le)=>typeof le=="bigint"?cd(le):le,2),d&&d(A,r),v(!0);var q=navigator.clipboard||{writeText(K){return new Promise((le,D)=>{var ne=document.createElement("textarea");ne.style.position="absolute",ne.style.opacity="0",ne.style.left="-99999999px",ne.value=K,document.body.appendChild(ne),ne.select(),document.execCommand("copy")?le():D(),ne.remove()})}};q.writeText(A).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},b={style:{display:"inline-flex"},fill:g?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:S},{render:j}=w,C=$e(w,Lj),P=W({},C,u,b,{style:W({},C.style,u.style,b.style)}),L=j&&typeof j=="function",M=L&&j(W({},P,{"data-copied":g}),{value:r,keyName:t,keys:a,parentValue:o});return M||(g?y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Kd.displayName="JVR.Copied";function Zx(){var e=I.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var ev=e=>{var t,{value:r,expandKey:o="",level:l,keys:a=[]}=e,u=ka(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=Zr(),g=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,w=(t=u[o])!=null?t:v;if(u[o]===void 0&&m&&m(w,{value:r,keys:a,level:l})||w)return null;var S=g?Object.entries(r).map(j=>[Number(j[0]),j[1]]):Object.entries(r);d&&(S=d===!0?S.sort((j,C)=>{var[P]=j,[L]=C;return typeof P=="string"&&typeof L=="string"?P.localeCompare(L):0}):S.sort((j,C)=>{var[P,L]=j,[M,H]=C;return typeof P=="string"&&typeof M=="string"?d(P,M,L,H):0}));var b={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return y.jsx("div",{className:"w-rjv-wrap",style:b,children:S.map((j,C)=>{var[P,L]=j;return y.jsx(tv,{parentValue:r,keyName:P,keys:[...a,P],value:L,level:l},C)})})};ev.displayName="JVR.KeyValues";var Qd=e=>{var{keyName:t,parentValue:r,keys:o,value:l}=e,{highlightUpdates:a}=Zr(),u=typeof t=="number",d=I.useRef(null);Pj({value:l,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:l,keys:o,parentValue:r};return y.jsxs(I.Fragment,{children:[y.jsxs("span",{ref:d,children:[y.jsx(ud,W({isNumber:u,"data-placement":"left"},f)),y.jsx(Qx,W({},f,{children:t})),y.jsx(ud,W({isNumber:u,"data-placement":"right"},f))]}),y.jsx(Px,W({},f))]})};Qd.displayName="JVR.KayName";var tv=e=>{var{keyName:t,value:r,parentValue:o,level:l=0,keys:a=[]}=e,u=px(),d=Zx(),f=Array.isArray(r),p=r instanceof Set,m=r instanceof Map,g=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!m&&!g&&!v,S=w||f||p||m;if(S){var b=p?Array.from(r):m?Object.fromEntries(r):r;return y.jsx(Yd,{keyName:t,value:b,parentValue:o,initialValue:r,keys:a,level:l+1})}var j={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return y.jsxs(Xx,W({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:o},j,{children:[y.jsx(Qd,{keyName:t,value:r,keys:a,parentValue:o}),y.jsx(Jx,{keyName:t,value:r}),y.jsx(Kd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};tv.displayName="JVR.KeyValuesItem";var $j=["value","keyName"],_j=["as","render"],nv=e=>{var{CountInfoExtra:t={}}=vn();return Yi(t,e,"CountInfoExtra"),null};nv.displayName="JVR.CountInfoExtra";var rv=e=>{var{value:t={},keyName:r}=e,o=$e(e,$j),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=$e(l,_j);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",m=W({},d,o),g=p&&u(m,{value:t,keyName:r});return g||y.jsx(f,W({},m))};rv.displayName="JVR.CountInfoExtraComps";var zj=["value","keyName"],Dj=["as","render"],iv=e=>{var{CountInfo:t={}}=vn();return Yi(t,e,"CountInfo"),null};iv.displayName="JVR.CountInfo";var ov=e=>{var{value:t={},keyName:r}=e,o=$e(e,zj),{displayObjectSize:l}=Zr(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=$e(a,Dj),p=u||"span";f.style=W({},f.style,e.style);var m=Object.keys(t).length;f.children||(f.children=m+" item"+(m===1?"":"s"));var g=W({},f,o),v=d&&typeof d=="function",w=v&&d(W({},g,{"data-length":m}),{value:t,keyName:r});return w||y.jsx(p,W({},g))};ov.displayName="JVR.CountInfoComp";var Oj=["as","render"],lv=e=>{var{Ellipsis:t={}}=vn();return Yi(t,e,"Ellipsis"),null};lv.displayName="JVR.Ellipsis";var sv=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Oj),f=a||"span",p=u&&typeof u=="function"&&u(W({},d,{"data-expanded":t}),{value:r,keyName:o});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:y.jsx(f,W({},d)))};sv.displayName="JVR.EllipsisComp";var av=e=>{var t,{keyName:r,expandKey:o,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ka(),m=qE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=Zr(),S=Array.isArray(u),b=u instanceof Set,j=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,C=typeof u=="object",P=(t=p[o])!=null?t:j,L=w&&w(P,{value:u,keys:l,level:f});p[o]===void 0&&L!==void 0&&(P=L);var M=()=>{var ne={expand:!P,value:u,keyid:o,keyName:r};g&&g(ne),m({[o]:ne.expand})},H={display:"inline-flex",alignItems:"center"},A={transform:"rotate("+(P?"-90":"0")+"deg)",transition:"all 0.3s"},q=Object.keys(u).length,K=q!==0&&(S||b||C),le={style:H};K&&(le.onClick=M);var D={keyName:r,value:u,keys:l,parentValue:d};return y.jsxs("span",W({},le,{children:[K&&y.jsx(Ax,W({style:A,expandKey:o},D)),(r||typeof r=="number")&&y.jsx(Qd,W({},D)),y.jsx(_x,{value:a,keyName:r}),y.jsx(zx,{value:a,keyName:r}),y.jsx(Lx,W({isBrackets:S||b},D)),y.jsx(sv,{keyName:r,value:u,isExpanded:P}),y.jsx(Jd,W({isVisiable:P||!K,isBrackets:S||b},D)),y.jsx(ov,{value:u,keyName:r}),y.jsx(rv,{value:u,keyName:r}),y.jsx(Kd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:l})]}))};av.displayName="JVR.NestedOpen";var Mj=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Yd=I.forwardRef((e,t)=>{var{className:r="",parentValue:o,level:l=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=$e(e,Mj),m=px(),g=Zx(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>m({[g]:!0}),onMouseLeave:()=>m({[g]:!1})};return y.jsxs("div",W({className:v,ref:t},p,w,{children:[y.jsx(av,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f,initialValue:u}),y.jsx(ev,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f}),y.jsx($x,{expandKey:g,value:a,level:l,keys:d})]}))});Yd.displayName="JVR.Container";var uv=e=>{var{BraceLeft:t={}}=Jt();return Tr(t,e,"BraceLeft"),null};uv.displayName="JVR.BraceLeft";var cv=e=>{var{BraceRight:t={}}=Jt();return Tr(t,e,"BraceRight"),null};cv.displayName="JVR.BraceRight";var dv=e=>{var{BracketsLeft:t={}}=Jt();return Tr(t,e,"BracketsLeft"),null};dv.displayName="JVR.BracketsLeft";var fv=e=>{var{BracketsRight:t={}}=Jt();return Tr(t,e,"BracketsRight"),null};fv.displayName="JVR.BracketsRight";var pv=e=>{var{Arrow:t={}}=Jt();return Tr(t,e,"Arrow"),null};pv.displayName="JVR.Arrow";var hv=e=>{var{Colon:t={}}=Jt();return Tr(t,e,"Colon"),null};hv.displayName="JVR.Colon";var mv=e=>{var{Quote:t={}}=Jt();return Tr(t,e,"Quote"),null};mv.displayName="JVR.Quote";var gv=e=>{var{ValueQuote:t={}}=Jt();return Tr(t,e,"ValueQuote"),null};gv.displayName="JVR.ValueQuote";var yv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};yv.displayName="JVR.Bigint";var xv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};xv.displayName="JVR.Date";var vv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};vv.displayName="JVR.False";var wv=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};wv.displayName="JVR.Float";var kv=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};kv.displayName="JVR.Int";var Sv=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};Sv.displayName="JVR.Map";var bv=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};bv.displayName="JVR.Nan";var Cv=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};Cv.displayName="JVR.Null";var Ev=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};Ev.displayName="JVR.Set";var jv=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};jv.displayName="JVR.StringText";var Tv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Tv.displayName="JVR.True";var Rv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Rv.displayName="JVR.Undefined";var Nv=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Nv.displayName="JVR.Url";var Iv=e=>{var{Copied:t={}}=vn();return Yi(t,e,"Copied"),null};Iv.displayName="JVR.Copied";var Fj=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Ue=I.forwardRef((e,t)=>{var{className:r="",style:o,value:l,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:m=30,highlightUpdates:g=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:S=!1,onExpand:b,onCopied:j}=e,C=$e(e,Fj),P=W({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},o),L=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return y.jsxs(Ix,{initialState:{value:l,objectSortKeys:S,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:m,highlightUpdates:g,onCopied:j,onExpand:b},initialTypes:{displayDataTypes:w},children:[y.jsx(Yd,W({value:l},C,{ref:t,className:L,style:P})),a]})});Ue.Bigint=yv;Ue.Date=xv;Ue.False=vv;Ue.Float=wv;Ue.Int=kv;Ue.Map=Sv;Ue.Nan=bv;Ue.Null=Cv;Ue.Set=Ev;Ue.String=jv;Ue.True=Tv;Ue.Undefined=Rv;Ue.Url=Nv;Ue.ValueQuote=gv;Ue.Arrow=pv;Ue.Colon=hv;Ue.Quote=mv;Ue.Ellipsis=lv;Ue.BraceLeft=uv;Ue.BraceRight=cv;Ue.BracketsLeft=dv;Ue.BracketsRight=fv;Ue.Copied=Iv;Ue.CountInfo=iv;Ue.CountInfoExtra=nv;Ue.KeyName=Kx;Ue.Row=Yx;Ue.displayName="JVR.JsonView";var Bj={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},Uj={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Vj=R.pre`
|
|
830
|
+
`,VE=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:o,setCodegenOptions:l,handlePauseExecution:a,handleResumeExecution:u}=I.useContext(Qi),d=async(w,S)=>{t(w),r("executing");try{if(await ud()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await Ub(w,e,S.length>0?S:void 0),r("executing")}catch(b){console.error("Failed to execute codegen:",b),r("idle")}},f=async(w,S,b,j)=>{const C=await cd();if(C)try{if(o(null),e){const P={...e,aiService:j??e.aiService};l(P),await Wb(C.id,w,b,P,S)}else console.error("Codegen options not available for submitting answer")}catch(P){console.error("Failed to submit answer:",P),o(C)}},p=async()=>{try{o(null),await Vb()}catch(w){console.error("Failed to interrupt execution:",w)}},m=I.useCallback(w=>{l(w)},[l]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:m,handlePauseExecution:a,handleResumeExecution:u}};var Cr=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Cr||{}),Vd=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Vd||{});function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},W.apply(null,arguments)}function $e(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var hx={},mx=I.createContext(hx),HE=(e,t)=>W({},e,t),qE=()=>I.useContext(mx),Hd=I.createContext(()=>{});Hd.displayName="JVR.DispatchShowTools";function WE(){return I.useReducer(HE,hx)}function gx(){return I.useContext(Hd)}var yx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(mx.Provider,{value:t,children:y.jsx(Hd.Provider,{value:r,children:o})})};yx.displayName="JVR.ShowTools";var xx={},vx=I.createContext(xx),GE=(e,t)=>W({},e,t),ba=()=>I.useContext(vx),qd=I.createContext(()=>{});qd.displayName="JVR.DispatchExpands";function JE(){return I.useReducer(GE,xx)}function KE(){return I.useContext(qd)}var wx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(vx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:o})})};wx.displayName="JVR.Expands";var kx={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Sx=I.createContext(kx),QE=(e,t)=>W({},e,t),Ge=()=>I.useContext(Sx),Wd=I.createContext(()=>{});Wd.displayName="JVR.DispatchTypes";function YE(){return I.useReducer(QE,kx)}function XE(){return I.useContext(Wd)}function bx(e){var{initial:t,dispatch:r,children:o}=e;return y.jsx(Sx.Provider,{value:t,children:y.jsx(Wd.Provider,{value:r,children:o})})}bx.displayName="JVR.Types";var ZE=["style"];function Cx(e){var{style:t}=e,r=$e(e,ZE),o=W({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return y.jsx("svg",W({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:o},r,{children:y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Cx.displayName="JVR.TriangleArrow";var Ex={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(Cx,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},jx=I.createContext(Ex),ej=(e,t)=>W({},e,t),Kt=()=>I.useContext(jx),Gd=I.createContext(()=>{});Gd.displayName="JVR.DispatchSymbols";function tj(){return I.useReducer(ej,Ex)}function nj(){return I.useContext(Gd)}var Tx=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(jx.Provider,{value:t,children:y.jsx(Gd.Provider,{value:r,children:o})})};Tx.displayName="JVR.Symbols";var Rx={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Nx=I.createContext(Rx),rj=(e,t)=>W({},e,t),vn=()=>I.useContext(Nx),Jd=I.createContext(()=>{});Jd.displayName="JVR.DispatchSection";function ij(){return I.useReducer(rj,Rx)}function oj(){return I.useContext(Jd)}var Ix=e=>{var{initial:t,dispatch:r,children:o}=e;return y.jsx(Nx.Provider,{value:t,children:y.jsx(Jd.Provider,{value:r,children:o})})};Ix.displayName="JVR.Section";var Px={objectSortKeys:!1,indentWidth:15},Kd=I.createContext(Px);Kd.displayName="JVR.Context";var Ax=I.createContext(()=>{});Ax.displayName="JVR.DispatchContext";function lj(e,t){return W({},e,t)}var Zr=()=>I.useContext(Kd),Lx=e=>{var{children:t,initialState:r,initialTypes:o}=e,[l,a]=I.useReducer(lj,Object.assign({},Px,r)),[u,d]=WE(),[f,p]=JE(),[m,g]=YE(),[v,w]=tj(),[S,b]=ij();return I.useEffect(()=>a(W({},r)),[r]),y.jsx(Kd.Provider,{value:l,children:y.jsx(Ax.Provider,{value:a,children:y.jsx(yx,{initial:u,dispatch:d,children:y.jsx(wx,{initial:f,dispatch:p,children:y.jsx(bx,{initial:W({},m,o),dispatch:g,children:y.jsx(Tx,{initial:v,dispatch:w,children:y.jsx(Ix,{initial:S,dispatch:b,children:t})})})})})})})};Lx.displayName="JVR.Provider";function sj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var aj=["isNumber","value","parentValue","keyName","keys"],uj=["as","render"],cj=["as","render"],dj=["as","render"],fj=["as","style","render"],pj=["as","render"],hj=["as","render"],mj=["as","render"],gj=["as","render"],dd=e=>{var{Quote:t={}}=Kt(),{isNumber:r,value:o,parentValue:l,keyName:a,keys:u}=e,d=$e(e,aj);if(r)return null;var{as:f,render:p}=t,m=$e(t,uj),g=f||"span",v=W({},d,m),w={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])},S=p&&typeof p=="function"&&p(v,w);return S||y.jsx(g,W({},v))};dd.displayName="JVR.Quote";var il=e=>{var{ValueQuote:t={}}=Kt(),r=W({},(sj(e),e)),{as:o,render:l}=t,a=$e(t,cj),u=o||"span",d=W({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,W({},d))};il.displayName="JVR.ValueQuote";var $x=e=>{var{value:t,parentValue:r,keyName:o,keys:l}=e,{Colon:a={}}=Kt(),{as:u,render:d}=a,f=$e(a,dj),p=u||"span",m=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:o,keys:l||(o?[o]:[])});return m||y.jsx(p,W({},f))};$x.displayName="JVR.Colon";var _x=e=>{var{Arrow:t={}}=Kt(),r=ba(),{expandKey:o,style:l,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[o],{as:m,style:g,render:v}=t,w=$e(t,fj),S=m||"span",b=v&&typeof v=="function",j=W({},w,{"data-expanded":p,style:W({},g,l)}),C={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},P=b&&v(j,C);return P||y.jsx(S,W({},w,{style:W({},g,l)}))};_x.displayName="JVR.Arrow";var zx=e=>{var{isBrackets:t,value:r,parentValue:o,keyName:l,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Kt(),f={value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])};if(t){var{as:p,render:m}=u,g=$e(u,pj),v=p||"span",w=m&&typeof m=="function"&&m(g,f);return w||y.jsx(v,W({},g))}var{as:S,render:b}=d,j=$e(d,hj),C=S||"span",P=b&&typeof b=="function"&&b(j,f);return P||y.jsx(C,W({},j))};zx.displayName="JVR.BracketsOpen";var Qd=e=>{var{isBrackets:t,isVisiable:r,value:o,parentValue:l,keyName:a,keys:u}=e,d={value:o,parentValue:l,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Kt();if(t){var{as:m,render:g}=f,v=$e(f,mj),w=m||"span",S=g&&typeof g=="function"&&g(v,d);return S||y.jsx(w,W({},v))}var{as:b,render:j}=p,C=$e(p,gj),P=b||"span",L=j&&typeof j=="function"&&j(C,d);return L||y.jsx(P,W({},C))};Qd.displayName="JVR.BracketsClose";var Dx=e=>{var t,{value:r,expandKey:o,level:l,keys:a=[]}=e,u=ba(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=Zr(),m=r instanceof Set,g=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[o])!=null?t:g,w=Object.keys(r).length;if(u[o]===void 0&&p&&p(v,{value:r,keys:a,level:l})||v||w===0)return null;var S={paddingLeft:4};return y.jsx("div",{style:S,children:y.jsx(Qd,{isBrackets:d||m,isVisiable:!0})})};Dx.displayName="JVR.NestedClose";var yj=["as","render"],xj=["as","render"],vj=["as","render"],wj=["as","render"],kj=["as","render"],Sj=["as","render"],bj=["as","render"],Cj=["as","render"],Ej=["as","render"],jj=["as","render"],Tj=["as","render"],Rj=["as","render"],Nj=["as","render"],fd=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Ox=e=>{var{value:t,keyName:r}=e,{Set:o={},displayDataTypes:l}=Ge(),a=t instanceof Set;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,yj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};Ox.displayName="JVR.SetComp";var Mx=e=>{var{value:t,keyName:r}=e,{Map:o={},displayDataTypes:l}=Ge(),a=t instanceof Map;if(!a||!l)return null;var{as:u,render:d}=o,f=$e(o,xj),p=d&&typeof d=="function",m=p&&d(f,{type:"type",value:t,keyName:r});if(m)return m;var g=u||"span";return y.jsx(g,W({},f))};Mx.displayName="JVR.MapComp";var In={opacity:.75,paddingRight:4},Fx=e=>{var{children:t="",keyName:r}=e,{Str:o={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=Zr(),{as:u,render:d}=o,f=$e(o,vj),p=t,[m,g]=I.useState(a&&p.length>a);I.useEffect(()=>g(a&&p.length>a),[a]);var v=u||"span",w=W({},In,o.style||{});a>0&&(f.style=W({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{g(!m)}));var S=m?p.slice(0,a)+"...":p,b=d&&typeof d=="function",j=b&&d(W({},f,{style:w}),{type:"type",value:t,keyName:r}),C=b&&d(W({},f,{children:S,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(j||y.jsx(v,W({},f,{style:w}))),C||y.jsxs(I.Fragment,{children:[y.jsx(il,{}),y.jsx(v,W({},f,{className:"w-rjv-value",children:S})),y.jsx(il,{})]})]})};Fx.displayName="JVR.TypeString";var Bx=e=>{var{children:t,keyName:r}=e,{True:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,wj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Bx.displayName="JVR.TypeTrue";var Ux=e=>{var{children:t,keyName:r}=e,{False:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,kj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Ux.displayName="JVR.TypeFalse";var Vx=e=>{var{children:t,keyName:r}=e,{Float:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Sj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Vx.displayName="JVR.TypeFloat";var Hx=e=>{var{children:t,keyName:r}=e,{Int:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,bj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Hx.displayName="JVR.TypeInt";var qx=e=>{var{children:t,keyName:r}=e,{Bigint:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Cj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsx(f,W({},d,{className:"w-rjv-value",children:fd(t==null?void 0:t.toString())}))]})};qx.displayName="JVR.TypeFloat";var Wx=e=>{var{children:t,keyName:r}=e,{Url:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Ej),f=a||"span",p=W({},In,o.style),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v||y.jsxs("a",W({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[y.jsx(il,{}),t==null?void 0:t.href,y.jsx(il,{})]}))]})};Wx.displayName="JVR.TypeUrl";var Gx=e=>{var{children:t,keyName:r}=e,{Date:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,jj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=m&&u(W({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),w||y.jsx(f,W({},d,{className:"w-rjv-value",children:v}))]})};Gx.displayName="JVR.TypeDate";var Jx=e=>{var{children:t,keyName:r}=e,{Undefined:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Tj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Jx.displayName="JVR.TypeUndefined";var Kx=e=>{var{children:t,keyName:r}=e,{Null:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Rj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Kx.displayName="JVR.TypeNull";var Qx=e=>{var{children:t,keyName:r}=e,{Nan:o={},displayDataTypes:l}=Ge(),{as:a,render:u}=o,d=$e(o,Nj),f=a||"span",p=W({},In,o.style||{}),m=u&&typeof u=="function",g=m&&u(W({},d,{style:p}),{type:"type",value:t,keyName:r}),v=m&&u(W({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(I.Fragment,{children:[l&&(g||y.jsx(f,W({},d,{style:p}))),v]})};Qx.displayName="JVR.TypeNan";var Ij=e=>Number(e)===e&&e%1!==0||isNaN(e),Yx=e=>{var{value:t,keyName:r}=e,o={keyName:r};return t instanceof URL?y.jsx(Wx,W({},o,{children:t})):typeof t=="string"?y.jsx(Fx,W({},o,{children:t})):t===!0?y.jsx(Bx,W({},o,{children:t})):t===!1?y.jsx(Ux,W({},o,{children:t})):t===null?y.jsx(Kx,W({},o,{children:t})):t===void 0?y.jsx(Jx,W({},o,{children:t})):t instanceof Date?y.jsx(Gx,W({},o,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(Qx,W({},o,{children:t})):typeof t=="number"&&Ij(t)?y.jsx(Vx,W({},o,{children:t})):typeof t=="bigint"?y.jsx(qx,W({},o,{children:t})):typeof t=="number"?y.jsx(Hx,W({},o,{children:t})):null};Yx.displayName="JVR.Value";function Tr(e,t,r){var o=nj(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function an(e,t,r){var o=XE(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}function Yi(e,t,r){var o=oj(),l=[e.className,t.className].filter(Boolean).join(" "),a=W({},e,t,{className:l,style:W({},e.style,t.style),children:t.children||e.children});I.useEffect(()=>o({[r]:a}),[t])}var Pj=["as","render"],Xx=e=>{var{KeyName:t={}}=vn();return Yi(t,e,"KeyName"),null};Xx.displayName="JVR.KeyName";var Zx=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=vn(),{as:p,render:m}=f,g=$e(f,Pj);g.style=W({},g.style,d);var v=p||"span",w=m&&typeof m=="function"&&m(W({},g,{children:t}),{value:r,parentValue:o,keyName:l,keys:a||(l?[l]:[])});return w||y.jsx(v,W({},g,{children:t}))};Zx.displayName="JVR.KeyNameComp";var Aj=["children","value","parentValue","keyName","keys"],Lj=["as","render","children"],ev=e=>{var{Row:t={}}=vn();return Yi(t,e,"Row"),null};ev.displayName="JVR.Row";var tv=e=>{var{children:t,value:r,parentValue:o,keyName:l,keys:a}=e,u=$e(e,Aj),{Row:d={}}=vn(),{as:f,render:p}=d,m=$e(d,Lj),g=f||"div",v=p&&typeof p=="function"&&p(W({},u,m,{children:t}),{value:r,keyName:l,parentValue:o,keys:a});return v||y.jsx(g,W({},u,m,{children:t}))};tv.displayName="JVR.RowComp";function $j(e){var t=I.useRef();return I.useEffect(()=>{t.current=e}),t.current}function _j(e){var{value:t,highlightUpdates:r,highlightContainer:o}=e,l=$j(t),a=I.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof t!=typeof l)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(l)?!1:t!==l;if(Array.isArray(t)!==Array.isArray(l))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==l)return!0},[r,t]);I.useEffect(()=>{o&&o.current&&a&&"animate"in o.current&&o.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,o])}var zj=["keyName","value","parentValue","expandKey","keys"],Dj=["as","render"],Yd=e=>{var{keyName:t,value:r,parentValue:o,expandKey:l,keys:a}=e,u=$e(e,zj),{onCopied:d,enableClipboard:f}=Zr(),p=qE(),m=p[l],[g,v]=I.useState(!1),{Copied:w={}}=vn();if(f===!1||!m)return null;var S=H=>{H.stopPropagation();var A="";typeof r=="number"&&r===1/0?A="Infinity":typeof r=="number"&&isNaN(r)?A="NaN":typeof r=="bigint"?A=fd(r):r instanceof Date?A=r.toLocaleString():A=JSON.stringify(r,(K,le)=>typeof le=="bigint"?fd(le):le,2),d&&d(A,r),v(!0);var q=navigator.clipboard||{writeText(K){return new Promise((le,D)=>{var ne=document.createElement("textarea");ne.style.position="absolute",ne.style.opacity="0",ne.style.left="-99999999px",ne.value=K,document.body.appendChild(ne),ne.select(),document.execCommand("copy")?le():D(),ne.remove()})}};q.writeText(A).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},b={style:{display:"inline-flex"},fill:g?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:S},{render:j}=w,C=$e(w,Dj),P=W({},C,u,b,{style:W({},C.style,u.style,b.style)}),L=j&&typeof j=="function",M=L&&j(W({},P,{"data-copied":g}),{value:r,keyName:t,keys:a,parentValue:o});return M||(g?y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):y.jsx("svg",W({viewBox:"0 0 32 36"},P,{children:y.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Yd.displayName="JVR.Copied";function nv(){var e=I.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var rv=e=>{var t,{value:r,expandKey:o="",level:l,keys:a=[]}=e,u=ba(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:m}=Zr(),g=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,w=(t=u[o])!=null?t:v;if(u[o]===void 0&&m&&m(w,{value:r,keys:a,level:l})||w)return null;var S=g?Object.entries(r).map(j=>[Number(j[0]),j[1]]):Object.entries(r);d&&(S=d===!0?S.sort((j,C)=>{var[P]=j,[L]=C;return typeof P=="string"&&typeof L=="string"?P.localeCompare(L):0}):S.sort((j,C)=>{var[P,L]=j,[M,H]=C;return typeof P=="string"&&typeof M=="string"?d(P,M,L,H):0}));var b={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return y.jsx("div",{className:"w-rjv-wrap",style:b,children:S.map((j,C)=>{var[P,L]=j;return y.jsx(iv,{parentValue:r,keyName:P,keys:[...a,P],value:L,level:l},C)})})};rv.displayName="JVR.KeyValues";var Xd=e=>{var{keyName:t,parentValue:r,keys:o,value:l}=e,{highlightUpdates:a}=Zr(),u=typeof t=="number",d=I.useRef(null);_j({value:l,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:l,keys:o,parentValue:r};return y.jsxs(I.Fragment,{children:[y.jsxs("span",{ref:d,children:[y.jsx(dd,W({isNumber:u,"data-placement":"left"},f)),y.jsx(Zx,W({},f,{children:t})),y.jsx(dd,W({isNumber:u,"data-placement":"right"},f))]}),y.jsx($x,W({},f))]})};Xd.displayName="JVR.KayName";var iv=e=>{var{keyName:t,value:r,parentValue:o,level:l=0,keys:a=[]}=e,u=gx(),d=nv(),f=Array.isArray(r),p=r instanceof Set,m=r instanceof Map,g=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!m&&!g&&!v,S=w||f||p||m;if(S){var b=p?Array.from(r):m?Object.fromEntries(r):r;return y.jsx(Zd,{keyName:t,value:b,parentValue:o,initialValue:r,keys:a,level:l+1})}var j={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return y.jsxs(tv,W({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:o},j,{children:[y.jsx(Xd,{keyName:t,value:r,keys:a,parentValue:o}),y.jsx(Yx,{keyName:t,value:r}),y.jsx(Yd,{keyName:t,value:r,keys:a,parentValue:o,expandKey:d})]}))};iv.displayName="JVR.KeyValuesItem";var Oj=["value","keyName"],Mj=["as","render"],ov=e=>{var{CountInfoExtra:t={}}=vn();return Yi(t,e,"CountInfoExtra"),null};ov.displayName="JVR.CountInfoExtra";var lv=e=>{var{value:t={},keyName:r}=e,o=$e(e,Oj),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Mj);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",m=W({},d,o),g=p&&u(m,{value:t,keyName:r});return g||y.jsx(f,W({},m))};lv.displayName="JVR.CountInfoExtraComps";var Fj=["value","keyName"],Bj=["as","render"],sv=e=>{var{CountInfo:t={}}=vn();return Yi(t,e,"CountInfo"),null};sv.displayName="JVR.CountInfo";var av=e=>{var{value:t={},keyName:r}=e,o=$e(e,Fj),{displayObjectSize:l}=Zr(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=$e(a,Bj),p=u||"span";f.style=W({},f.style,e.style);var m=Object.keys(t).length;f.children||(f.children=m+" item"+(m===1?"":"s"));var g=W({},f,o),v=d&&typeof d=="function",w=v&&d(W({},g,{"data-length":m}),{value:t,keyName:r});return w||y.jsx(p,W({},g))};av.displayName="JVR.CountInfoComp";var Uj=["as","render"],uv=e=>{var{Ellipsis:t={}}=vn();return Yi(t,e,"Ellipsis"),null};uv.displayName="JVR.Ellipsis";var cv=e=>{var{isExpanded:t,value:r,keyName:o}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=$e(l,Uj),f=a||"span",p=u&&typeof u=="function"&&u(W({},d,{"data-expanded":t}),{value:r,keyName:o});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:y.jsx(f,W({},d)))};cv.displayName="JVR.EllipsisComp";var dv=e=>{var t,{keyName:r,expandKey:o,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=ba(),m=KE(),{onExpand:g,collapsed:v,shouldExpandNodeInitially:w}=Zr(),S=Array.isArray(u),b=u instanceof Set,j=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,C=typeof u=="object",P=(t=p[o])!=null?t:j,L=w&&w(P,{value:u,keys:l,level:f});p[o]===void 0&&L!==void 0&&(P=L);var M=()=>{var ne={expand:!P,value:u,keyid:o,keyName:r};g&&g(ne),m({[o]:ne.expand})},H={display:"inline-flex",alignItems:"center"},A={transform:"rotate("+(P?"-90":"0")+"deg)",transition:"all 0.3s"},q=Object.keys(u).length,K=q!==0&&(S||b||C),le={style:H};K&&(le.onClick=M);var D={keyName:r,value:u,keys:l,parentValue:d};return y.jsxs("span",W({},le,{children:[K&&y.jsx(_x,W({style:A,expandKey:o},D)),(r||typeof r=="number")&&y.jsx(Xd,W({},D)),y.jsx(Ox,{value:a,keyName:r}),y.jsx(Mx,{value:a,keyName:r}),y.jsx(zx,W({isBrackets:S||b},D)),y.jsx(cv,{keyName:r,value:u,isExpanded:P}),y.jsx(Qd,W({isVisiable:P||!K,isBrackets:S||b},D)),y.jsx(av,{value:u,keyName:r}),y.jsx(lv,{value:u,keyName:r}),y.jsx(Yd,{keyName:r,value:u,expandKey:o,parentValue:d,keys:l})]}))};dv.displayName="JVR.NestedOpen";var Vj=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],Zd=I.forwardRef((e,t)=>{var{className:r="",parentValue:o,level:l=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=$e(e,Vj),m=gx(),g=nv(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>m({[g]:!0}),onMouseLeave:()=>m({[g]:!1})};return y.jsxs("div",W({className:v,ref:t},p,w,{children:[y.jsx(dv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f,initialValue:u}),y.jsx(rv,{expandKey:g,value:a,level:l,keys:d,parentValue:o,keyName:f}),y.jsx(Dx,{expandKey:g,value:a,level:l,keys:d})]}))});Zd.displayName="JVR.Container";var fv=e=>{var{BraceLeft:t={}}=Kt();return Tr(t,e,"BraceLeft"),null};fv.displayName="JVR.BraceLeft";var pv=e=>{var{BraceRight:t={}}=Kt();return Tr(t,e,"BraceRight"),null};pv.displayName="JVR.BraceRight";var hv=e=>{var{BracketsLeft:t={}}=Kt();return Tr(t,e,"BracketsLeft"),null};hv.displayName="JVR.BracketsLeft";var mv=e=>{var{BracketsRight:t={}}=Kt();return Tr(t,e,"BracketsRight"),null};mv.displayName="JVR.BracketsRight";var gv=e=>{var{Arrow:t={}}=Kt();return Tr(t,e,"Arrow"),null};gv.displayName="JVR.Arrow";var yv=e=>{var{Colon:t={}}=Kt();return Tr(t,e,"Colon"),null};yv.displayName="JVR.Colon";var xv=e=>{var{Quote:t={}}=Kt();return Tr(t,e,"Quote"),null};xv.displayName="JVR.Quote";var vv=e=>{var{ValueQuote:t={}}=Kt();return Tr(t,e,"ValueQuote"),null};vv.displayName="JVR.ValueQuote";var wv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};wv.displayName="JVR.Bigint";var kv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};kv.displayName="JVR.Date";var Sv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};Sv.displayName="JVR.False";var bv=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};bv.displayName="JVR.Float";var Cv=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};Cv.displayName="JVR.Int";var Ev=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};Ev.displayName="JVR.Map";var jv=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};jv.displayName="JVR.Nan";var Tv=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};Tv.displayName="JVR.Null";var Rv=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};Rv.displayName="JVR.Set";var Nv=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};Nv.displayName="JVR.StringText";var Iv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Iv.displayName="JVR.True";var Pv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Pv.displayName="JVR.Undefined";var Av=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Av.displayName="JVR.Url";var Lv=e=>{var{Copied:t={}}=vn();return Yi(t,e,"Copied"),null};Lv.displayName="JVR.Copied";var Hj=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Ue=I.forwardRef((e,t)=>{var{className:r="",style:o,value:l,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:m=30,highlightUpdates:g=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:S=!1,onExpand:b,onCopied:j}=e,C=$e(e,Hj),P=W({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},o),L=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return y.jsxs(Lx,{initialState:{value:l,objectSortKeys:S,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:m,highlightUpdates:g,onCopied:j,onExpand:b},initialTypes:{displayDataTypes:w},children:[y.jsx(Zd,W({value:l},C,{ref:t,className:L,style:P})),a]})});Ue.Bigint=wv;Ue.Date=kv;Ue.False=Sv;Ue.Float=bv;Ue.Int=Cv;Ue.Map=Ev;Ue.Nan=jv;Ue.Null=Tv;Ue.Set=Rv;Ue.String=Nv;Ue.True=Iv;Ue.Undefined=Pv;Ue.Url=Av;Ue.ValueQuote=vv;Ue.Arrow=gv;Ue.Colon=yv;Ue.Quote=xv;Ue.Ellipsis=uv;Ue.BraceLeft=fv;Ue.BraceRight=pv;Ue.BracketsLeft=hv;Ue.BracketsRight=mv;Ue.Copied=Lv;Ue.CountInfo=sv;Ue.CountInfoExtra=ov;Ue.KeyName=Xx;Ue.Row=ev;Ue.displayName="JVR.JsonView";var qj={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},Wj={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Gj=R.pre`
|
|
831
831
|
margin-top: 8px;
|
|
832
832
|
padding: 8px;
|
|
833
833
|
background-color: ${e=>e.theme.colors.codeBackground};
|
|
@@ -840,35 +840,35 @@ Error generating stack: `+x.message+`
|
|
|
840
840
|
.w-json-view-container {
|
|
841
841
|
background: none !important;
|
|
842
842
|
}
|
|
843
|
-
`,Pv=({data:e})=>{const t=Kk();return y.jsx(Vj,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?Bj:Uj}):JSON.stringify(e,null,2)})};function Hj(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const qj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Wj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gj={};function Wm(e,t){return(Gj.jsx?Wj:qj).test(e)}const Jj=/[ \t\n\f\r]/g;function Kj(e){return typeof e=="object"?e.type==="text"?Gm(e.value):!1:Gm(e)}function Gm(e){return e.replace(Jj,"")===""}class pl{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}pl.prototype.normal={};pl.prototype.property={};pl.prototype.space=void 0;function Av(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new pl(r,o,t)}function dd(e){return e.toLowerCase()}class Kt{constructor(t,r){this.attribute=r,this.property=t}}Kt.prototype.attribute="";Kt.prototype.booleanish=!1;Kt.prototype.boolean=!1;Kt.prototype.commaOrSpaceSeparated=!1;Kt.prototype.commaSeparated=!1;Kt.prototype.defined=!1;Kt.prototype.mustUseProperty=!1;Kt.prototype.number=!1;Kt.prototype.overloadedBoolean=!1;Kt.prototype.property="";Kt.prototype.spaceSeparated=!1;Kt.prototype.space=void 0;let Qj=0;const Re=ei(),ut=ei(),fd=ei(),ee=ei(),We=ei(),Pi=ei(),tn=ei();function ei(){return 2**++Qj}const pd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:tn,commaSeparated:Pi,number:ee,overloadedBoolean:fd,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),Cc=Object.keys(pd);class Xd extends Kt{constructor(t,r,o,l){let a=-1;if(super(t,r),Jm(this,"space",l),typeof o=="number")for(;++a<Cc.length;){const u=Cc[a];Jm(this,Cc[a],(o&pd[u])===pd[u])}}}Xd.prototype.defined=!0;function Jm(e,t,r){r&&(e[t]=r)}function Xi(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const a=new Xd(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[dd(o)]=o,r[dd(a.attribute)]=o}return new pl(t,r,e.space)}const Lv=Xi({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:We,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:ee,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:We,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ut,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function $v(e,t){return t in e?e[t]:t}function _v(e,t){return $v(e,t.toLowerCase())}const Yj=Xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pi,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:We,autoFocus:Re,autoPlay:Re,blocking:We,capture:null,charSet:null,checked:Re,cite:null,className:We,cols:ee,colSpan:null,content:null,contentEditable:ut,controls:Re,controlsList:We,coords:ee|Pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:fd,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:We,height:ee,hidden:fd,high:ee,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:We,itemRef:We,itemScope:Re,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:ee,pattern:null,ping:We,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:We,required:Re,reversed:Re,rows:ee,rowSpan:ee,sandbox:We,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:ut,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:_v}),Xj=Xi({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:tn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className: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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pi,g2:Pi,glyphName:Pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:$v}),zv=Xi({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()}}),Dv=Xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_v}),Ov=Xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Zj={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"},e2=/[A-Z]/g,Km=/-[a-z]/g,t2=/^data[-\w.:]+$/i;function n2(e,t){const r=dd(t);let o=t,l=Kt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&t2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Km,i2);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Km.test(a)){let u=a.replace(e2,r2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Xd}return new l(o,t)}function r2(e){return"-"+e.toLowerCase()}function i2(e){return e.charAt(1).toUpperCase()}const o2=Av([Lv,Yj,zv,Dv,Ov],"html"),Zd=Av([Lv,Xj,zv,Dv,Ov],"svg");function l2(e){return e.join(" ").trim()}var Ti={},Ec,Qm;function s2(){if(Qm)return Ec;Qm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
844
|
-
`,p="/",m="*",g="",v="comment",w="declaration";Ec=function(b,j){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];j=j||{};var C=1,P=1;function L(oe){var re=oe.match(t);re&&(C+=re.length);var B=oe.lastIndexOf(f);P=~B?oe.length-B:P+oe.length}function M(){var oe={line:C,column:P};return function(re){return re.position=new H(oe),K(),re}}function H(oe){this.start=oe,this.end={line:C,column:P},this.source=j.source}H.prototype.content=b;function A(oe){var re=new Error(j.source+":"+C+":"+P+": "+oe);if(re.reason=oe,re.filename=j.source,re.line=C,re.column=P,re.source=b,!j.silent)throw re}function q(oe){var re=oe.exec(b);if(re){var B=re[0];return L(B),b=b.slice(B.length),re}}function K(){q(r)}function le(oe){var re;for(oe=oe||[];re=D();)re!==!1&&oe.push(re);return oe}function D(){var oe=M();if(!(p!=b.charAt(0)||m!=b.charAt(1))){for(var re=2;g!=b.charAt(re)&&(m!=b.charAt(re)||p!=b.charAt(re+1));)++re;if(re+=2,g===b.charAt(re-1))return A("End of comment missing");var B=b.slice(2,re-2);return P+=2,L(B),b=b.slice(re),P+=2,oe({type:v,comment:B})}}function ne(){var oe=M(),re=q(o);if(re){if(D(),!q(l))return A("property missing ':'");var B=q(a),ae=oe({type:w,property:S(re[0].replace(e,g)),value:B?S(B[0].replace(e,g)):g});return q(u),ae}}function se(){var oe=[];le(oe);for(var re;re=ne();)re!==!1&&(oe.push(re),le(oe));return oe}return K(),se()};function S(b){return b?b.replace(d,g):g}return Ec}var Ym;function a2(){if(Ym)return Ti;Ym=1;var e=Ti&&Ti.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;var t=e(s2());function r(o,l){var a=null;if(!o||typeof o!="string")return a;var u=(0,t.default)(o),d=typeof l=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,m=f.value;d?l(p,m,f):m&&(a=a||{},a[p]=m)}}),a}return Ti}var Wo={},Xm;function u2(){if(Xm)return Wo;Xm=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},d=function(p,m){return"".concat(m,"-")},f=function(p,m){return m===void 0&&(m={}),a(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,u))};return Wo.camelCase=f,Wo}var Go,Zm;function c2(){if(Zm)return Go;Zm=1;var e=Go&&Go.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(a2()),r=u2();function o(l,a){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return o.default=o,Go=o,Go}var d2=c2();const f2=Nd(d2),Mv=Fv("end"),ef=Fv("start");function Fv(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function p2(e){const t=ef(e),r=Mv(e);if(t&&r)return{start:t,end:r}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?eg(e.position):"start"in e||"end"in e?eg(e):"line"in e||"column"in e?hd(e):""}function hd(e){return tg(e&&e.line)+":"+tg(e&&e.column)}function eg(e){return hd(e&&e.start)+"-"+hd(e&&e.end)}function tg(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?l=t:!a.cause&&t&&(u=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){const f=o.indexOf(":");f===-1?a.ruleId=o:(a.source=o.slice(0,f),a.ruleId=o.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=el(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Lt.prototype.file="";Lt.prototype.name="";Lt.prototype.reason="";Lt.prototype.message="";Lt.prototype.stack="";Lt.prototype.column=void 0;Lt.prototype.line=void 0;Lt.prototype.ancestors=void 0;Lt.prototype.cause=void 0;Lt.prototype.fatal=void 0;Lt.prototype.place=void 0;Lt.prototype.ruleId=void 0;Lt.prototype.source=void 0;const tf={}.hasOwnProperty,h2=new Map,m2=/[A-Z]/g,g2=new Set(["table","tbody","thead","tfoot","tr"]),y2=new Set(["td","th"]),Bv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=j2(r,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");o=E2(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zd:o2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Uv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function Uv(e,t,r){if(t.type==="element")return v2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return S2(e,t,r);if(t.type==="mdxjsEsm")return k2(e,t);if(t.type==="root")return b2(e,t,r);if(t.type==="text")return C2(e,t)}function v2(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=Zd,e.schema=l),e.ancestors.push(t);const a=Hv(e,t.tagName,!1),u=T2(e,t);let d=rf(e,t);return g2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!Kj(f):!0})),Vv(e,u,a,t),nf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function w2(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}ol(e,t.position)}function k2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ol(e,t.position)}function S2(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=Zd,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:Hv(e,t.name,!0),u=R2(e,t),d=rf(e,t);return Vv(e,u,a,t),nf(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function b2(e,t,r){const o={};return nf(o,rf(e,t)),e.create(t,e.Fragment,o,r)}function C2(e,t){return t.value}function Vv(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function nf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function E2(e,t,r){return o;function o(l,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function j2(e,t){return r;function r(o,l,a,u){const d=Array.isArray(a.children),f=ef(o);return t(l,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function T2(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&tf.call(t.properties,l)){const a=N2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&y2.has(t.tagName)?o=d:r[u]=d}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function R2(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ol(e,t.position);else{const l=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else ol(e,t.position);else a=o.value===null?!0:o.value;r[l]=a}return r}function rf(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:h2;for(;++o<t.children.length;){const a=t.children[o];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=l.get(f)||0;u=f+"-"+p,l.set(f,p+1)}}const d=Uv(e,a,u);d!==void 0&&r.push(d)}return r}function N2(e,t,r){const o=n2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Hj(r):l2(r)),o.property==="style"){let l=typeof r=="object"?r:I2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=P2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?Zj[o.property]||o.property:o.attribute,r]}}function I2(e,t){try{return f2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Bv+"#cannot-parse-style-attribute",l}}function Hv(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,u;for(;++a<l.length;){const d=Wm(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}o=u}else o=Wm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return tf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);ol(e)}function ol(e,t){const r=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Bv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function P2(e){const t={};let r;for(r in e)tf.call(e,r)&&(t[A2(r)]=e[r]);return t}function A2(e){let t=e.replace(m2,L2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function L2(e){return"-"+e.toLowerCase()}const jc={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"]},$2={};function of(e,t){const r=$2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return qv(e,o,l)}function qv(e,t,r){if(_2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ng(e.children,t,r)}return Array.isArray(e)?ng(e,t,r):""}function ng(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=qv(e[l],t,r);return o.join("")}function _2(e){return!!(e&&typeof e=="object")}const rg=document.createElement("i");function lf(e){const t="&"+e+";";rg.innerHTML=t;const r=rg.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function sn(e,t,r,o){const l=e.length;let a=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(sn(e,e.length,0,t),e):t}const ig={}.hasOwnProperty;function Wv(e){const t={};let r=-1;for(;++r<e.length;)z2(t,e[r]);return t}function z2(e,t){let r;for(r in t){const l=(ig.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){ig.call(l,u)||(l[u]=[]);const d=a[u];D2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function D2(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);sn(e,0,0,o)}function Gv(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Rr(/[A-Za-z]/),At=Rr(/[\dA-Za-z]/),O2=Rr(/[#-'*+\--9=?A-Z^-~]/);function ra(e){return e!==null&&(e<32||e===127)}const md=Rr(/\d/),M2=Rr(/[\dA-Fa-f]/),F2=Rr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Sa=Rr(new RegExp("\\p{P}|\\p{S}","u")),Xr=Rr(/\s/);function Rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Zi(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&At(e.charCodeAt(r+1))&&At(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),l=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}function ze(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Le(f)?(e.enter(r),d(f)):t(f)}function d(f){return Le(f)&&a++<l?(e.consume(f),d):(e.exit(r),t(f))}}const B2={tokenize:U2};function U2(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const V2={tokenize:H2},og={tokenize:q2};function H2(e){const t=this,r=[];let o=0,l,a,u;return d;function d(L){if(o<r.length){const M=r[o];return t.containerState=M[1],e.attempt(M[0].continuation,f,p)(L)}return p(L)}function f(L){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&P();const M=t.events.length;let H=M,A;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){A=t.events[H][1].end;break}C(o);let q=M;for(;q<t.events.length;)t.events[q][1].end={...A},q++;return sn(t.events,H+1,0,t.events.slice(M)),t.events.length=q,p(L)}return d(L)}function p(L){if(o===r.length){if(!l)return v(L);if(l.currentConstruct&&l.currentConstruct.concrete)return S(L);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(og,m,g)(L)}function m(L){return l&&P(),C(o),v(L)}function g(L){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,S(L)}function v(L){return t.containerState={},e.attempt(og,w,S)(L)}function w(L){return o++,r.push([t.currentConstruct,t.containerState]),v(L)}function S(L){if(L===null){l&&P(),C(0),e.consume(L);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),b(L)}function b(L){if(L===null){j(e.exit("chunkFlow"),!0),C(0),e.consume(L);return}return we(L)?(e.consume(L),j(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(L),b)}function j(L,M){const H=t.sliceStream(L);if(M&&H.push(null),L.previous=a,a&&(a.next=L),a=L,l.defineSkip(L.start),l.write(H),t.parser.lazy[L.start.line]){let A=l.events.length;for(;A--;)if(l.events[A][1].start.offset<u&&(!l.events[A][1].end||l.events[A][1].end.offset>u))return;const q=t.events.length;let K=q,le,D;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(le){D=t.events[K][1].end;break}le=!0}for(C(o),A=q;A<t.events.length;)t.events[A][1].end={...D},A++;sn(t.events,K+1,0,t.events.slice(q)),t.events.length=A}}function C(L){let M=r.length;for(;M-- >L;){const H=r[M];t.containerState=H[1],H[0].exit.call(t,e)}r.length=L}function P(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function q2(e,t,r){return ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vi(e){if(e===null||He(e)||Xr(e))return 1;if(Sa(e))return 2}function ba(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}const gd={name:"attention",resolveAll:W2,tokenize:G2};function W2(e,t){let r=-1,o,l,a,u,d,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};lg(g,-f),lg(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[o][1].end={...u.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=yn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=yn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=yn(p,ba(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=yn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=yn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,sn(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function G2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=Vi(o);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),m=Vi(f),g=!m||m===2&&l||r.includes(f),v=!l||l===2&&m||r.includes(o);return p._open=!!(a===42?g:g&&(l||!v)),p._close=!!(a===42?v:v&&(m||!g)),t(f)}}function lg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const J2={name:"autolink",tokenize:K2};function K2(e,t,r){let o=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Ot(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||At(w)?(o=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),o=0,f):(w===43||w===45||w===46||At(w))&&o++<32?(e.consume(w),d):(o=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||ra(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):O2(w)?(e.consume(w),p):r(w)}function m(w){return At(w)?g(w):r(w)}function g(w){return w===46?(e.consume(w),o=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||At(w))&&o++<63){const S=w===45?v:g;return e.consume(w),S}return r(w)}}const hl={partial:!0,tokenize:Q2};function Q2(e,t,r){return o;function o(a){return Le(a)?ze(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||we(a)?t(a):r(a)}}const Jv={continuation:{tokenize:X2},exit:Z2,name:"blockQuote",tokenize:Y2};function Y2(e,t,r){const o=this;return l;function l(u){if(u===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Le(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function X2(e,t,r){const o=this;return l;function l(u){return Le(u)?ze(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Jv,t,r)(u)}}function Z2(e){e.exit("blockQuote")}const Kv={name:"characterEscape",tokenize:eT};function eT(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return F2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Qv={name:"characterReference",tokenize:tT};function tT(e,t,r){const o=this;let l=0,a,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=At,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=M2,m):(e.enter("characterReferenceValue"),a=7,u=md,m(g))}function m(g){if(g===59&&l){const v=e.exit("characterReferenceValue");return u===At&&!lf(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<a?(e.consume(g),m):r(g)}}const sg={partial:!0,tokenize:rT},ag={concrete:!0,name:"codeFenced",tokenize:nT};function nT(e,t,r){const o=this,l={partial:!0,tokenize:H};let a=0,u=0,d;return f;function f(A){return p(A)}function p(A){const q=o.events[o.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(A)}function m(A){return A===d?(u++,e.consume(A),m):u<3?r(A):(e.exit("codeFencedFenceSequence"),Le(A)?ze(e,g,"whitespace")(A):g(A))}function g(A){return A===null||we(A)?(e.exit("codeFencedFence"),o.interrupt?t(A):e.check(sg,b,M)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(A)):Le(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,w,"whitespace")(A)):A===96&&A===d?r(A):(e.consume(A),v)}function w(A){return A===null||we(A)?g(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(A))}function S(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(A)):A===96&&A===d?r(A):(e.consume(A),S)}function b(A){return e.attempt(l,M,j)(A)}function j(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),C}function C(A){return a>0&&Le(A)?ze(e,P,"linePrefix",a+1)(A):P(A)}function P(A){return A===null||we(A)?e.check(sg,b,M)(A):(e.enter("codeFlowValue"),L(A))}function L(A){return A===null||we(A)?(e.exit("codeFlowValue"),P(A)):(e.consume(A),L)}function M(A){return e.exit("codeFenced"),t(A)}function H(A,q,K){let le=0;return D;function D(B){return A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),ne}function ne(B){return A.enter("codeFencedFence"),Le(B)?ze(A,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):se(B)}function se(B){return B===d?(A.enter("codeFencedFenceSequence"),oe(B)):K(B)}function oe(B){return B===d?(le++,A.consume(B),oe):le>=u?(A.exit("codeFencedFenceSequence"),Le(B)?ze(A,re,"whitespace")(B):re(B)):K(B)}function re(B){return B===null||we(B)?(A.exit("codeFencedFence"),q(B)):K(B)}}}function rT(e,t,r){const o=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const Tc={name:"codeIndented",tokenize:oT},iT={partial:!0,tokenize:lT};function oT(e,t,r){const o=this;return l;function l(p){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(p)}function a(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):we(p)?e.attempt(iT,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||we(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function lT(e,t,r){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):ze(e,a,"linePrefix",5)(u)}function a(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):we(u)?l(u):r(u)}}const sT={name:"codeText",previous:uT,resolve:aT,tokenize:cT};function aT(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function uT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cT(e,t,r){let o=0,l,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),o++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),l=0,m(g)):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||we(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}class dT{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,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Jo(this.left,o),a.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),Jo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jo(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);Jo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jo(this.left,r.reverse())}}}function Jo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Yv(e){const t={};let r=-1,o,l,a,u,d,f,p;const m=new dT(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=o[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,fT(m,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,l=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return sn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function fT(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let m,g,v=-1,w=r,S=0,b=0;const j=[b];for(;w;){for(;e.get(++l)[1]!==w;);a.push(l),w._tokenizer||(m=o.sliceStream(w),w.next||m.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(b=v+1,j.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),v=j.length;v--;){const C=d.slice(j[v],j[v+1]),P=a.pop();f.push([P,P+C.length-1]),e.splice(P,2,C)}for(f.reverse(),v=-1;++v<f.length;)p[S+f[v][0]]=S+f[v][1],S+=f[v][1]-f[v][0]-1;return p}const pT={resolve:mT,tokenize:gT},hT={partial:!0,tokenize:yT};function mT(e){return Yv(e),e}function gT(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?a(d):we(d)?e.check(hT,u,a)(d):(e.consume(d),l)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function yT(e,t,r){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(u){if(u===null||we(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function Xv(e,t,r,o,l,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(o),e.enter(l),e.enter(a),e.consume(C),e.exit(a),v):C===null||C===32||C===41||ra(C)?r(C):(e.enter(o),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),b(C))}function v(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||we(C)?r(C):(e.consume(C),C===92?S:w)}function S(C){return C===60||C===62||C===92?(e.consume(C),w):w(C)}function b(C){return!m&&(C===null||C===41||He(C))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,b):C===41?(e.consume(C),m--,b):C===null||C===32||C===40||ra(C)?r(C):(e.consume(C),C===92?j:b)}function j(C){return C===40||C===41||C===92?(e.consume(C),b):b(C)}}function Zv(e,t,r,o,l,a){const u=this;let d=0,f;return p;function p(w){return e.enter(o),e.enter(l),e.consume(w),e.exit(l),e.enter(a),m}function m(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(l),e.consume(w),e.exit(l),e.exit(o),t):we(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||we(w)||d++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!Le(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,g):g(w)}}function e0(e,t,r,o,l,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||we(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function tl(e,t){let r;return o;function o(l){return we(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):Le(l)?ze(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}const xT={name:"definition",tokenize:wT},vT={partial:!0,tokenize:kT};function wT(e,t,r){const o=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return Zv.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return l=Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return He(w)?tl(e,p)(w):p(w)}function p(w){return Xv(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(vT,g,g)(w)}function g(w){return Le(w)?ze(e,v,"whitespace")(w):v(w)}function v(w){return w===null||we(w)?(e.exit("definition"),o.parser.defined.push(l),t(w)):r(w)}}function kT(e,t,r){return o;function o(d){return He(d)?tl(e,l)(d):r(d)}function l(d){return e0(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Le(d)?ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||we(d)?t(d):r(d)}}const ST={name:"hardBreakEscape",tokenize:bT};function bT(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const CT={name:"headingAtx",resolve:ET,tokenize:jT};function ET(e,t){let r=e.length-2,o=3,l,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},sn(e,o,r-o+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function jT(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||He(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||we(m)?(e.exit("atxHeading"),t(m)):Le(m)?ze(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||He(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}const TT=["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"],ug=["pre","script","style","textarea"],RT={concrete:!0,name:"htmlFlow",resolveTo:PT,tokenize:AT},NT={partial:!0,tokenize:$T},IT={partial:!0,tokenize:LT};function PT(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 AT(e,t,r){const o=this;let l,a,u,d,f;return p;function p(N){return m(N)}function m(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),a=!0,b):N===63?(e.consume(N),l=3,o.interrupt?t:E):Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function v(N){return N===45?(e.consume(N),l=2,w):N===91?(e.consume(N),l=5,d=0,S):Ot(N)?(e.consume(N),l=4,o.interrupt?t:E):r(N)}function w(N){return N===45?(e.consume(N),o.interrupt?t:E):r(N)}function S(N){const ye="CDATA[";return N===ye.charCodeAt(d++)?(e.consume(N),d===ye.length?o.interrupt?t:se:S):r(N)}function b(N){return Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function j(N){if(N===null||N===47||N===62||He(N)){const ye=N===47,Se=u.toLowerCase();return!ye&&!a&&ug.includes(Se)?(l=1,o.interrupt?t(N):se(N)):TT.includes(u.toLowerCase())?(l=6,ye?(e.consume(N),C):o.interrupt?t(N):se(N)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(N):a?P(N):L(N))}return N===45||At(N)?(e.consume(N),u+=String.fromCharCode(N),j):r(N)}function C(N){return N===62?(e.consume(N),o.interrupt?t:se):r(N)}function P(N){return Le(N)?(e.consume(N),P):D(N)}function L(N){return N===47?(e.consume(N),D):N===58||N===95||Ot(N)?(e.consume(N),M):Le(N)?(e.consume(N),L):D(N)}function M(N){return N===45||N===46||N===58||N===95||At(N)?(e.consume(N),M):H(N)}function H(N){return N===61?(e.consume(N),A):Le(N)?(e.consume(N),H):L(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),f=N,q):Le(N)?(e.consume(N),A):K(N)}function q(N){return N===f?(e.consume(N),f=null,le):N===null||we(N)?r(N):(e.consume(N),q)}function K(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||He(N)?H(N):(e.consume(N),K)}function le(N){return N===47||N===62||Le(N)?L(N):r(N)}function D(N){return N===62?(e.consume(N),ne):r(N)}function ne(N){return N===null||we(N)?se(N):Le(N)?(e.consume(N),ne):r(N)}function se(N){return N===45&&l===2?(e.consume(N),ae):N===60&&l===1?(e.consume(N),ue):N===62&&l===4?(e.consume(N),z):N===63&&l===3?(e.consume(N),E):N===93&&l===5?(e.consume(N),ce):we(N)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(NT,G,oe)(N)):N===null||we(N)?(e.exit("htmlFlowData"),oe(N)):(e.consume(N),se)}function oe(N){return e.check(IT,re,G)(N)}function re(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),B}function B(N){return N===null||we(N)?oe(N):(e.enter("htmlFlowData"),se(N))}function ae(N){return N===45?(e.consume(N),E):se(N)}function ue(N){return N===47?(e.consume(N),u="",X):se(N)}function X(N){if(N===62){const ye=u.toLowerCase();return ug.includes(ye)?(e.consume(N),z):se(N)}return Ot(N)&&u.length<8?(e.consume(N),u+=String.fromCharCode(N),X):se(N)}function ce(N){return N===93?(e.consume(N),E):se(N)}function E(N){return N===62?(e.consume(N),z):N===45&&l===2?(e.consume(N),E):se(N)}function z(N){return N===null||we(N)?(e.exit("htmlFlowData"),G(N)):(e.consume(N),z)}function G(N){return e.exit("htmlFlow"),t(N)}}function LT(e,t,r){const o=this;return l;function l(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function $T(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(hl,t,r)}}const _T={name:"htmlText",tokenize:zT};function zT(e,t,r){const o=this;let l,a,u;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),H):E===63?(e.consume(E),L):Ot(E)?(e.consume(E),K):r(E)}function p(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),a=0,S):Ot(E)?(e.consume(E),P):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),v):we(E)?(u=g,ue(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?ae(E):E===45?v(E):g(E)}function S(E){const z="CDATA[";return E===z.charCodeAt(a++)?(e.consume(E),a===z.length?b:S):r(E)}function b(E){return E===null?r(E):E===93?(e.consume(E),j):we(E)?(u=b,ue(E)):(e.consume(E),b)}function j(E){return E===93?(e.consume(E),C):b(E)}function C(E){return E===62?ae(E):E===93?(e.consume(E),C):b(E)}function P(E){return E===null||E===62?ae(E):we(E)?(u=P,ue(E)):(e.consume(E),P)}function L(E){return E===null?r(E):E===63?(e.consume(E),M):we(E)?(u=L,ue(E)):(e.consume(E),L)}function M(E){return E===62?ae(E):L(E)}function H(E){return Ot(E)?(e.consume(E),A):r(E)}function A(E){return E===45||At(E)?(e.consume(E),A):q(E)}function q(E){return we(E)?(u=q,ue(E)):Le(E)?(e.consume(E),q):ae(E)}function K(E){return E===45||At(E)?(e.consume(E),K):E===47||E===62||He(E)?le(E):r(E)}function le(E){return E===47?(e.consume(E),ae):E===58||E===95||Ot(E)?(e.consume(E),D):we(E)?(u=le,ue(E)):Le(E)?(e.consume(E),le):ae(E)}function D(E){return E===45||E===46||E===58||E===95||At(E)?(e.consume(E),D):ne(E)}function ne(E){return E===61?(e.consume(E),se):we(E)?(u=ne,ue(E)):Le(E)?(e.consume(E),ne):le(E)}function se(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,oe):we(E)?(u=se,ue(E)):Le(E)?(e.consume(E),se):(e.consume(E),re)}function oe(E){return E===l?(e.consume(E),l=void 0,B):E===null?r(E):we(E)?(u=oe,ue(E)):(e.consume(E),oe)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||He(E)?le(E):(e.consume(E),re)}function B(E){return E===47||E===62||He(E)?le(E):r(E)}function ae(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function ue(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X}function X(E){return Le(E)?ze(e,ce,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ce(E)}function ce(E){return e.enter("htmlTextData"),u(E)}}const sf={name:"labelEnd",resolveAll:FT,resolveTo:BT,tokenize:UT},DT={tokenize:VT},OT={tokenize:HT},MT={tokenize:qT};function FT(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&sn(e,0,e.length,r),e}function BT(e,t){let r=e.length,o=0,l,a,u,d;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=yn(d,e.slice(a+1,a+o+3)),d=yn(d,[["enter",m,t]]),d=yn(d,ba(t.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),t)),d=yn(d,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),d=yn(d,e.slice(u+1)),d=yn(d,[["exit",f,t]]),sn(e,a,e.length,d),e}function UT(e,t,r){const o=this;let l=o.events.length,a,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){a=o.events[l][1];break}return d;function d(v){return a?a._inactive?g(v):(u=o.parser.defined.includes(Rn(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(DT,m,u?m:g)(v):v===91?e.attempt(OT,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(MT,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function VT(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return He(g)?tl(e,a)(g):a(g)}function a(g){return g===41?m(g):Xv(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return He(g)?tl(e,f)(g):m(g)}function d(g){return r(g)}function f(g){return g===34||g===39||g===40?e0(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return He(g)?tl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function HT(e,t,r){const o=this;return l;function l(d){return Zv.call(o,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return o.parser.defined.includes(Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function qT(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const WT={name:"labelStartImage",resolveAll:sf.resolveAll,tokenize:GT};function GT(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}const JT={name:"labelStartLink",resolveAll:sf.resolveAll,tokenize:KT};function KT(e,t,r){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const Rc={name:"lineEnding",tokenize:QT};function QT(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Ws={name:"thematicBreak",tokenize:YT};function YT(e,t,r){let o=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),f(p)):o>=3&&(p===null||we(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===l?(e.consume(p),o++,f):(e.exit("thematicBreakSequence"),Le(p)?ze(e,d,"whitespace")(p):d(p))}}const Wt={continuation:{tokenize:tR},exit:rR,name:"list",tokenize:eR},XT={partial:!0,tokenize:iR},ZT={partial:!0,tokenize:nR};function eR(e,t,r){const o=this,l=o.events[o.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(w){const S=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:md(w)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Ws,r,p)(w):p(w);if(!o.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return md(w)&&++u<10?(e.consume(w),f):(!o.interrupt||u<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,e.check(hl,o.interrupt?r:m,e.attempt(XT,v,g))}function m(w){return o.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return Le(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function tR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(hl,l,a);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ze(e,t,"listItemIndent",o.containerState.size+1)(d)}function a(d){return o.containerState.furtherBlankLines||!Le(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(ZT,t,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,ze(e,e.attempt(Wt,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function nR(e,t,r){const o=this;return ze(e,l,"listItemIndent",o.containerState.size+1);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(a):r(a)}}function rR(e){e.exit(this.containerState.type)}function iR(e,t,r){const o=this;return ze(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=o.events[o.events.length-1];return!Le(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const cg={name:"setextUnderline",resolveTo:oR,tokenize:lR};function oR(e,t){let r=e.length,o,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function lR(e,t,r){const o=this;let l;return a;function a(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Le(p)?ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||we(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const sR={tokenize:aR};function aR(e){const t=this,r=e.attempt(hl,o,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(pT,l)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const uR={resolveAll:n0()},cR=t0("string"),dR=t0("text");function t0(e){return{resolveAll:n0(e==="text"?fR:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],a=r.attempt(l,u,d);return u;function u(m){return p(m)?a(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),a(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const g=l[m];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function n0(e){return t;function t(r,o){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,o):r}}function fR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let a=l.length,u=-1,d=0,f;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const pR={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Jv},hR={91:xT},mR={[-2]:Tc,[-1]:Tc,32:Tc},gR={35:CT,42:Ws,45:[cg,Ws],60:RT,61:cg,95:Ws,96:ag,126:ag},yR={38:Qv,92:Kv},xR={[-5]:Rc,[-4]:Rc,[-3]:Rc,33:WT,38:Qv,42:gd,60:[J2,_T],91:JT,92:[ST,Kv],93:sf,95:gd,96:sT},vR={null:[gd,uR]},wR={null:[42,95]},kR={null:[]},SR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wR,contentInitial:hR,disable:kR,document:pR,flow:gR,flowInitial:mR,insideSpan:vR,string:yR,text:xR},Symbol.toStringTag,{value:"Module"}));function bR(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],d=[];const f={attempt:q(H),check:q(A),consume:P,enter:L,exit:M,interrupt:q(A,{interrupt:!0})},p={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let m=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function g(ne){return u=yn(u,ne),j(),u[u.length-1]!==null?[]:(K(t,0),p.events=ba(a,p.events,p),p.events)}function v(ne,se){return ER(w(ne),se)}function w(ne){return CR(u,ne)}function S(){const{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}=o;return{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}}function b(ne){l[ne.line]=ne.column,D()}function j(){let ne;for(;o._index<u.length;){const se=u[o._index];if(typeof se=="string")for(ne=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ne&&o._bufferIndex<se.length;)C(se.charCodeAt(o._bufferIndex));else C(se)}}function C(ne){m=m(ne)}function P(ne){we(ne)?(o.line++,o.column=1,o.offset+=ne===-3?2:1,D()):ne!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=ne}function L(ne,se){const oe=se||{};return oe.type=ne,oe.start=S(),p.events.push(["enter",oe,p]),d.push(oe),oe}function M(ne){const se=d.pop();return se.end=S(),p.events.push(["exit",se,p]),se}function H(ne,se){K(ne,se.from)}function A(ne,se){se.restore()}function q(ne,se){return oe;function oe(re,B,ae){let ue,X,ce,E;return Array.isArray(re)?G(re):"tokenize"in re?G([re]):z(re);function z(me){return Ee;function Ee(ke){const je=ke!==null&&me[ke],Ve=ke!==null&&me.null,Ct=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return G(Ct)(ke)}}function G(me){return ue=me,X=0,me.length===0?ae:N(me[X])}function N(me){return Ee;function Ee(ke){return E=le(),ce=me,me.partial||(p.currentConstruct=me),me.name&&p.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ye,Se)(ke)}}function ye(me){return ne(ce,E),B}function Se(me){return E.restore(),++X<ue.length?N(ue[X]):ae}}}function K(ne,se){ne.resolveAll&&!a.includes(ne)&&a.push(ne),ne.resolve&&sn(p.events,se,p.events.length-se,ne.resolve(p.events.slice(se),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function le(){const ne=S(),se=p.previous,oe=p.currentConstruct,re=p.events.length,B=Array.from(d);return{from:re,restore:ae};function ae(){o=ne,p.previous=se,p.currentConstruct=oe,p.events.length=re,d=B,D()}}function D(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function CR(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(o,a)];else{if(u=e.slice(r,l),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function ER(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
843
|
+
`,$v=({data:e})=>{const t=Xk();return y.jsx(Gj,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?qj:Wj}):JSON.stringify(e,null,2)})};function Jj(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Kj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yj={};function Jm(e,t){return(Yj.jsx?Qj:Kj).test(e)}const Xj=/[ \t\n\f\r]/g;function Zj(e){return typeof e=="object"?e.type==="text"?Km(e.value):!1:Km(e)}function Km(e){return e.replace(Xj,"")===""}class ml{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}ml.prototype.normal={};ml.prototype.property={};ml.prototype.space=void 0;function _v(e,t){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new ml(r,o,t)}function pd(e){return e.toLowerCase()}class Qt{constructor(t,r){this.attribute=r,this.property=t}}Qt.prototype.attribute="";Qt.prototype.booleanish=!1;Qt.prototype.boolean=!1;Qt.prototype.commaOrSpaceSeparated=!1;Qt.prototype.commaSeparated=!1;Qt.prototype.defined=!1;Qt.prototype.mustUseProperty=!1;Qt.prototype.number=!1;Qt.prototype.overloadedBoolean=!1;Qt.prototype.property="";Qt.prototype.spaceSeparated=!1;Qt.prototype.space=void 0;let e2=0;const Re=ei(),ut=ei(),hd=ei(),ee=ei(),We=ei(),Pi=ei(),nn=ei();function ei(){return 2**++e2}const md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:nn,commaSeparated:Pi,number:ee,overloadedBoolean:hd,spaceSeparated:We},Symbol.toStringTag,{value:"Module"})),jc=Object.keys(md);class ef extends Qt{constructor(t,r,o,l){let a=-1;if(super(t,r),Qm(this,"space",l),typeof o=="number")for(;++a<jc.length;){const u=jc[a];Qm(this,jc[a],(o&md[u])===md[u])}}}ef.prototype.defined=!0;function Qm(e,t,r){r&&(e[t]=r)}function Xi(e){const t={},r={};for(const[o,l]of Object.entries(e.properties)){const a=new ef(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(a.mustUseProperty=!0),t[o]=a,r[pd(o)]=o,r[pd(a.attribute)]=o}return new ml(t,r,e.space)}const zv=Xi({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:We,ariaCurrent:null,ariaDescribedBy:We,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:We,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:We,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:We,ariaLevel:ee,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:We,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:We,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:ut,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dv(e,t){return t in e?e[t]:t}function Ov(e,t){return Dv(e,t.toLowerCase())}const t2=Xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pi,acceptCharset:We,accessKey:We,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:We,autoFocus:Re,autoPlay:Re,blocking:We,capture:null,charSet:null,checked:Re,cite:null,className:We,cols:ee,colSpan:null,content:null,contentEditable:ut,controls:Re,controlsList:We,coords:ee|Pi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:hd,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:We,height:ee,hidden:hd,high:ee,href:null,hrefLang:null,htmlFor:We,httpEquiv:We,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:We,itemRef:We,itemScope:Re,itemType:We,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:ee,pattern:null,ping:We,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:We,required:Re,reversed:Re,rows:ee,rowSpan:ee,sandbox:We,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:ut,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:We,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:Ov}),n2=Xi({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:nn,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className: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:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Pi,g2:Pi,glyphName:Pi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:We,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dv}),Mv=Xi({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()}}),Fv=Xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ov}),Bv=Xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),r2={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"},i2=/[A-Z]/g,Ym=/-[a-z]/g,o2=/^data[-\w.:]+$/i;function l2(e,t){const r=pd(t);let o=t,l=Qt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&o2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ym,a2);o="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ym.test(a)){let u=a.replace(i2,s2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=ef}return new l(o,t)}function s2(e){return"-"+e.toLowerCase()}function a2(e){return e.charAt(1).toUpperCase()}const u2=_v([zv,t2,Mv,Fv,Bv],"html"),tf=_v([zv,n2,Mv,Fv,Bv],"svg");function c2(e){return e.join(" ").trim()}var Ti={},Tc,Xm;function d2(){if(Xm)return Tc;Xm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
844
|
+
`,p="/",m="*",g="",v="comment",w="declaration";Tc=function(b,j){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];j=j||{};var C=1,P=1;function L(oe){var re=oe.match(t);re&&(C+=re.length);var B=oe.lastIndexOf(f);P=~B?oe.length-B:P+oe.length}function M(){var oe={line:C,column:P};return function(re){return re.position=new H(oe),K(),re}}function H(oe){this.start=oe,this.end={line:C,column:P},this.source=j.source}H.prototype.content=b;function A(oe){var re=new Error(j.source+":"+C+":"+P+": "+oe);if(re.reason=oe,re.filename=j.source,re.line=C,re.column=P,re.source=b,!j.silent)throw re}function q(oe){var re=oe.exec(b);if(re){var B=re[0];return L(B),b=b.slice(B.length),re}}function K(){q(r)}function le(oe){var re;for(oe=oe||[];re=D();)re!==!1&&oe.push(re);return oe}function D(){var oe=M();if(!(p!=b.charAt(0)||m!=b.charAt(1))){for(var re=2;g!=b.charAt(re)&&(m!=b.charAt(re)||p!=b.charAt(re+1));)++re;if(re+=2,g===b.charAt(re-1))return A("End of comment missing");var B=b.slice(2,re-2);return P+=2,L(B),b=b.slice(re),P+=2,oe({type:v,comment:B})}}function ne(){var oe=M(),re=q(o);if(re){if(D(),!q(l))return A("property missing ':'");var B=q(a),ae=oe({type:w,property:S(re[0].replace(e,g)),value:B?S(B[0].replace(e,g)):g});return q(u),ae}}function se(){var oe=[];le(oe);for(var re;re=ne();)re!==!1&&(oe.push(re),le(oe));return oe}return K(),se()};function S(b){return b?b.replace(d,g):g}return Tc}var Zm;function f2(){if(Zm)return Ti;Zm=1;var e=Ti&&Ti.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=r;var t=e(d2());function r(o,l){var a=null;if(!o||typeof o!="string")return a;var u=(0,t.default)(o),d=typeof l=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,m=f.value;d?l(p,m,f):m&&(a=a||{},a[p]=m)}}),a}return Ti}var Wo={},eg;function p2(){if(eg)return Wo;eg=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},d=function(p,m){return"".concat(m,"-")},f=function(p,m){return m===void 0&&(m={}),a(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(l,d):p=p.replace(o,d),p.replace(t,u))};return Wo.camelCase=f,Wo}var Go,tg;function h2(){if(tg)return Go;tg=1;var e=Go&&Go.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(f2()),r=p2();function o(l,a){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return o.default=o,Go=o,Go}var m2=h2();const g2=Pd(m2),Uv=Vv("end"),nf=Vv("start");function Vv(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function y2(e){const t=nf(e),r=Uv(e);if(t&&r)return{start:t,end:r}}function el(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ng(e.position):"start"in e||"end"in e?ng(e):"line"in e||"column"in e?gd(e):""}function gd(e){return rg(e&&e.line)+":"+rg(e&&e.column)}function ng(e){return gd(e&&e.start)+"-"+gd(e&&e.end)}function rg(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?l=t:!a.cause&&t&&(u=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof o=="string"){const f=o.indexOf(":");f===-1?a.ruleId=o:(a.source=o.slice(0,f),a.ruleId=o.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=el(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Lt.prototype.file="";Lt.prototype.name="";Lt.prototype.reason="";Lt.prototype.message="";Lt.prototype.stack="";Lt.prototype.column=void 0;Lt.prototype.line=void 0;Lt.prototype.ancestors=void 0;Lt.prototype.cause=void 0;Lt.prototype.fatal=void 0;Lt.prototype.place=void 0;Lt.prototype.ruleId=void 0;Lt.prototype.source=void 0;const rf={}.hasOwnProperty,x2=new Map,v2=/[A-Z]/g,w2=new Set(["table","tbody","thead","tfoot","tr"]),k2=new Set(["td","th"]),Hv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function S2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=I2(r,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");o=N2(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?tf:u2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=qv(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function qv(e,t,r){if(t.type==="element")return b2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return C2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return j2(e,t,r);if(t.type==="mdxjsEsm")return E2(e,t);if(t.type==="root")return T2(e,t,r);if(t.type==="text")return R2(e,t)}function b2(e,t,r){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=tf,e.schema=l),e.ancestors.push(t);const a=Gv(e,t.tagName,!1),u=P2(e,t);let d=lf(e,t);return w2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!Zj(f):!0})),Wv(e,u,a,t),of(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function C2(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}ol(e,t.position)}function E2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ol(e,t.position)}function j2(e,t,r){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=tf,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:Gv(e,t.name,!0),u=A2(e,t),d=lf(e,t);return Wv(e,u,a,t),of(u,d),e.ancestors.pop(),e.schema=o,e.create(t,a,u,r)}function T2(e,t,r){const o={};return of(o,lf(e,t)),e.create(t,e.Fragment,o,r)}function R2(e,t){return t.value}function Wv(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function of(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function N2(e,t,r){return o;function o(l,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function I2(e,t){return r;function r(o,l,a,u){const d=Array.isArray(a.children),f=nf(o);return t(l,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function P2(e,t){const r={};let o,l;for(l in t.properties)if(l!=="children"&&rf.call(t.properties,l)){const a=L2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&k2.has(t.tagName)?o=d:r[u]=d}}if(o){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function A2(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const a=o.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ol(e,t.position);else{const l=o.name;let a;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const d=o.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else ol(e,t.position);else a=o.value===null?!0:o.value;r[l]=a}return r}function lf(e,t){const r=[];let o=-1;const l=e.passKeys?new Map:x2;for(;++o<t.children.length;){const a=t.children[o];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=l.get(f)||0;u=f+"-"+p,l.set(f,p+1)}}const d=qv(e,a,u);d!==void 0&&r.push(d)}return r}function L2(e,t,r){const o=l2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?Jj(r):c2(r)),o.property==="style"){let l=typeof r=="object"?r:$2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=_2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?r2[o.property]||o.property:o.attribute,r]}}function $2(e,t){try{return g2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,l=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Hv+"#cannot-parse-style-attribute",l}}function Gv(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,u;for(;++a<l.length;){const d=Jm(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}o=u}else o=Jm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return rf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);ol(e)}function ol(e,t){const r=new Lt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Hv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function _2(e){const t={};let r;for(r in e)rf.call(e,r)&&(t[z2(r)]=e[r]);return t}function z2(e){let t=e.replace(v2,D2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function D2(e){return"-"+e.toLowerCase()}const Rc={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"]},O2={};function sf(e,t){const r=O2,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Jv(e,o,l)}function Jv(e,t,r){if(M2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ig(e.children,t,r)}return Array.isArray(e)?ig(e,t,r):""}function ig(e,t,r){const o=[];let l=-1;for(;++l<e.length;)o[l]=Jv(e[l],t,r);return o.join("")}function M2(e){return!!(e&&typeof e=="object")}const og=document.createElement("i");function af(e){const t="&"+e+";";og.innerHTML=t;const r=og.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function sn(e,t,r,o){const l=e.length;let a=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<o.length;)u=o.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(sn(e,e.length,0,t),e):t}const lg={}.hasOwnProperty;function Kv(e){const t={};let r=-1;for(;++r<e.length;)F2(t,e[r]);return t}function F2(e,t){let r;for(r in t){const l=(lg.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){lg.call(l,u)||(l[u]=[]);const d=a[u];B2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function B2(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);sn(e,0,0,o)}function Qv(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Rr(/[A-Za-z]/),At=Rr(/[\dA-Za-z]/),U2=Rr(/[#-'*+\--9=?A-Z^-~]/);function oa(e){return e!==null&&(e<32||e===127)}const yd=Rr(/\d/),V2=Rr(/[\dA-Fa-f]/),H2=Rr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Ca=Rr(new RegExp("\\p{P}|\\p{S}","u")),Xr=Rr(/\s/);function Rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Zi(e){const t=[];let r=-1,o=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&At(e.charCodeAt(r+1))&&At(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),l=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(o)}function ze(e,t,r,o){const l=o?o-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Le(f)?(e.enter(r),d(f)):t(f)}function d(f){return Le(f)&&a++<l?(e.consume(f),d):(e.exit(r),t(f))}}const q2={tokenize:W2};function W2(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let r;return t;function o(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const G2={tokenize:J2},sg={tokenize:K2};function J2(e){const t=this,r=[];let o=0,l,a,u;return d;function d(L){if(o<r.length){const M=r[o];return t.containerState=M[1],e.attempt(M[0].continuation,f,p)(L)}return p(L)}function f(L){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&P();const M=t.events.length;let H=M,A;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){A=t.events[H][1].end;break}C(o);let q=M;for(;q<t.events.length;)t.events[q][1].end={...A},q++;return sn(t.events,H+1,0,t.events.slice(M)),t.events.length=q,p(L)}return d(L)}function p(L){if(o===r.length){if(!l)return v(L);if(l.currentConstruct&&l.currentConstruct.concrete)return S(L);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sg,m,g)(L)}function m(L){return l&&P(),C(o),v(L)}function g(L){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,S(L)}function v(L){return t.containerState={},e.attempt(sg,w,S)(L)}function w(L){return o++,r.push([t.currentConstruct,t.containerState]),v(L)}function S(L){if(L===null){l&&P(),C(0),e.consume(L);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),b(L)}function b(L){if(L===null){j(e.exit("chunkFlow"),!0),C(0),e.consume(L);return}return we(L)?(e.consume(L),j(e.exit("chunkFlow")),o=0,t.interrupt=void 0,d):(e.consume(L),b)}function j(L,M){const H=t.sliceStream(L);if(M&&H.push(null),L.previous=a,a&&(a.next=L),a=L,l.defineSkip(L.start),l.write(H),t.parser.lazy[L.start.line]){let A=l.events.length;for(;A--;)if(l.events[A][1].start.offset<u&&(!l.events[A][1].end||l.events[A][1].end.offset>u))return;const q=t.events.length;let K=q,le,D;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(le){D=t.events[K][1].end;break}le=!0}for(C(o),A=q;A<t.events.length;)t.events[A][1].end={...D},A++;sn(t.events,K+1,0,t.events.slice(q)),t.events.length=A}}function C(L){let M=r.length;for(;M-- >L;){const H=r[M];t.containerState=H[1],H[0].exit.call(t,e)}r.length=L}function P(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function K2(e,t,r){return ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vi(e){if(e===null||He(e)||Xr(e))return 1;if(Ca(e))return 2}function Ea(e,t,r){const o=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!o.includes(a)&&(t=a(t,r),o.push(a))}return t}const xd={name:"attention",resolveAll:Q2,tokenize:Y2};function Q2(e,t){let r=-1,o,l,a,u,d,f,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};ag(g,-f),ag(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[o][1].end={...u.start},e[r][1].start={...d.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=yn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=yn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=yn(p,Ea(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=yn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=yn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,sn(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Y2(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,l=Vi(o);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),m=Vi(f),g=!m||m===2&&l||r.includes(f),v=!l||l===2&&m||r.includes(o);return p._open=!!(a===42?g:g&&(l||!v)),p._close=!!(a===42?v:v&&(m||!g)),t(f)}}function ag(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const X2={name:"autolink",tokenize:Z2};function Z2(e,t,r){let o=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Ot(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||At(w)?(o=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),o=0,f):(w===43||w===45||w===46||At(w))&&o++<32?(e.consume(w),d):(o=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||oa(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),m):U2(w)?(e.consume(w),p):r(w)}function m(w){return At(w)?g(w):r(w)}function g(w){return w===46?(e.consume(w),o=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||At(w))&&o++<63){const S=w===45?v:g;return e.consume(w),S}return r(w)}}const gl={partial:!0,tokenize:eT};function eT(e,t,r){return o;function o(a){return Le(a)?ze(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||we(a)?t(a):r(a)}}const Yv={continuation:{tokenize:nT},exit:rT,name:"blockQuote",tokenize:tT};function tT(e,t,r){const o=this;return l;function l(u){if(u===62){const d=o.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Le(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function nT(e,t,r){const o=this;return l;function l(u){return Le(u)?ze(e,a,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(Yv,t,r)(u)}}function rT(e){e.exit("blockQuote")}const Xv={name:"characterEscape",tokenize:iT};function iT(e,t,r){return o;function o(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return H2(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const Zv={name:"characterReference",tokenize:oT};function oT(e,t,r){const o=this;let l=0,a,u;return d;function d(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),f}function f(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=At,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=V2,m):(e.enter("characterReferenceValue"),a=7,u=yd,m(g))}function m(g){if(g===59&&l){const v=e.exit("characterReferenceValue");return u===At&&!af(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<a?(e.consume(g),m):r(g)}}const ug={partial:!0,tokenize:sT},cg={concrete:!0,name:"codeFenced",tokenize:lT};function lT(e,t,r){const o=this,l={partial:!0,tokenize:H};let a=0,u=0,d;return f;function f(A){return p(A)}function p(A){const q=o.events[o.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(A)}function m(A){return A===d?(u++,e.consume(A),m):u<3?r(A):(e.exit("codeFencedFenceSequence"),Le(A)?ze(e,g,"whitespace")(A):g(A))}function g(A){return A===null||we(A)?(e.exit("codeFencedFence"),o.interrupt?t(A):e.check(ug,b,M)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(A)):Le(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,w,"whitespace")(A)):A===96&&A===d?r(A):(e.consume(A),v)}function w(A){return A===null||we(A)?g(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(A))}function S(A){return A===null||we(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(A)):A===96&&A===d?r(A):(e.consume(A),S)}function b(A){return e.attempt(l,M,j)(A)}function j(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),C}function C(A){return a>0&&Le(A)?ze(e,P,"linePrefix",a+1)(A):P(A)}function P(A){return A===null||we(A)?e.check(ug,b,M)(A):(e.enter("codeFlowValue"),L(A))}function L(A){return A===null||we(A)?(e.exit("codeFlowValue"),P(A)):(e.consume(A),L)}function M(A){return e.exit("codeFenced"),t(A)}function H(A,q,K){let le=0;return D;function D(B){return A.enter("lineEnding"),A.consume(B),A.exit("lineEnding"),ne}function ne(B){return A.enter("codeFencedFence"),Le(B)?ze(A,se,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):se(B)}function se(B){return B===d?(A.enter("codeFencedFenceSequence"),oe(B)):K(B)}function oe(B){return B===d?(le++,A.consume(B),oe):le>=u?(A.exit("codeFencedFenceSequence"),Le(B)?ze(A,re,"whitespace")(B):re(B)):K(B)}function re(B){return B===null||we(B)?(A.exit("codeFencedFence"),q(B)):K(B)}}}function sT(e,t,r){const o=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const Nc={name:"codeIndented",tokenize:uT},aT={partial:!0,tokenize:cT};function uT(e,t,r){const o=this;return l;function l(p){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(p)}function a(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):we(p)?e.attempt(aT,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||we(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function cT(e,t,r){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?r(u):we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):ze(e,a,"linePrefix",5)(u)}function a(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):we(u)?l(u):r(u)}}const dT={name:"codeText",previous:pT,resolve:fT,tokenize:hT};function fT(e){let t=e.length-4,r=3,o,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function pT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hT(e,t,r){let o=0,l,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),d(g)}function d(g){return g===96?(e.consume(g),o++,d):(e.exit("codeTextSequence"),f(g))}function f(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),f):g===96?(a=e.enter("codeTextSequence"),l=0,m(g)):we(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||we(g)?(e.exit("codeTextData"),f(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),l++,m):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",p(g))}}class mT{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,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const l=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&Jo(this.left,o),a.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),Jo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jo(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);Jo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jo(this.left,r.reverse())}}}function Jo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function e0(e){const t={};let r=-1,o,l,a,u,d,f,p;const m=new mT(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=o[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,gT(m,r)),r=t[r],p=!0);else if(o[1]._container){for(a=r,l=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(o),m.splice(l,r-l+1,d))}}return sn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function gT(e,t){const r=e.get(t)[1],o=e.get(t)[2];let l=t-1;const a=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let m,g,v=-1,w=r,S=0,b=0;const j=[b];for(;w;){for(;e.get(++l)[1]!==w;);a.push(l),w._tokenizer||(m=o.sliceStream(w),w.next||m.push(null),g&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(b=v+1,j.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),v=j.length;v--;){const C=d.slice(j[v],j[v+1]),P=a.pop();f.push([P,P+C.length-1]),e.splice(P,2,C)}for(f.reverse(),v=-1;++v<f.length;)p[S+f[v][0]]=S+f[v][1],S+=f[v][1]-f[v][0]-1;return p}const yT={resolve:vT,tokenize:wT},xT={partial:!0,tokenize:kT};function vT(e){return e0(e),e}function wT(e,t){let r;return o;function o(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?a(d):we(d)?e.check(xT,u,a)(d):(e.consume(d),l)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function kT(e,t,r){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(u){if(u===null||we(u))return r(u);const d=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function t0(e,t,r,o,l,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let m=0;return g;function g(C){return C===60?(e.enter(o),e.enter(l),e.enter(a),e.consume(C),e.exit(a),v):C===null||C===32||C===41||oa(C)?r(C):(e.enter(o),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),b(C))}function v(C){return C===62?(e.enter(a),e.consume(C),e.exit(a),e.exit(l),e.exit(o),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(e.exit("chunkString"),e.exit(d),v(C)):C===null||C===60||we(C)?r(C):(e.consume(C),C===92?S:w)}function S(C){return C===60||C===62||C===92?(e.consume(C),w):w(C)}function b(C){return!m&&(C===null||C===41||He(C))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(o),t(C)):m<p&&C===40?(e.consume(C),m++,b):C===41?(e.consume(C),m--,b):C===null||C===32||C===40||oa(C)?r(C):(e.consume(C),C===92?j:b)}function j(C){return C===40||C===41||C===92?(e.consume(C),b):b(C)}}function n0(e,t,r,o,l,a){const u=this;let d=0,f;return p;function p(w){return e.enter(o),e.enter(l),e.consume(w),e.exit(l),e.enter(a),m}function m(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(l),e.consume(w),e.exit(l),e.exit(o),t):we(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||w===91||w===93||we(w)||d++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!Le(w)),w===92?v:g)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,g):g(w)}}function r0(e,t,r,o,l,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(o),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||we(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function tl(e,t){let r;return o;function o(l){return we(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,o):Le(l)?ze(e,o,r?"linePrefix":"lineSuffix")(l):t(l)}}const ST={name:"definition",tokenize:CT},bT={partial:!0,tokenize:ET};function CT(e,t,r){const o=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return n0.call(o,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return l=Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return He(w)?tl(e,p)(w):p(w)}function p(w){return t0(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(bT,g,g)(w)}function g(w){return Le(w)?ze(e,v,"whitespace")(w):v(w)}function v(w){return w===null||we(w)?(e.exit("definition"),o.parser.defined.push(l),t(w)):r(w)}}function ET(e,t,r){return o;function o(d){return He(d)?tl(e,l)(d):r(d)}function l(d){return r0(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Le(d)?ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||we(d)?t(d):r(d)}}const jT={name:"hardBreakEscape",tokenize:TT};function TT(e,t,r){return o;function o(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return we(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const RT={name:"headingAtx",resolve:NT,tokenize:IT};function NT(e,t){let r=e.length-2,o=3,l,a;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},a={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},sn(e,o,r-o+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function IT(e,t,r){let o=0;return l;function l(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||He(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||we(m)?(e.exit("atxHeading"),t(m)):Le(m)?ze(e,d,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function p(m){return m===null||m===35||He(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),p)}}const PT=["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"],dg=["pre","script","style","textarea"],AT={concrete:!0,name:"htmlFlow",resolveTo:_T,tokenize:zT},LT={partial:!0,tokenize:OT},$T={partial:!0,tokenize:DT};function _T(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 zT(e,t,r){const o=this;let l,a,u,d,f;return p;function p(N){return m(N)}function m(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),v):N===47?(e.consume(N),a=!0,b):N===63?(e.consume(N),l=3,o.interrupt?t:E):Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function v(N){return N===45?(e.consume(N),l=2,w):N===91?(e.consume(N),l=5,d=0,S):Ot(N)?(e.consume(N),l=4,o.interrupt?t:E):r(N)}function w(N){return N===45?(e.consume(N),o.interrupt?t:E):r(N)}function S(N){const ye="CDATA[";return N===ye.charCodeAt(d++)?(e.consume(N),d===ye.length?o.interrupt?t:se:S):r(N)}function b(N){return Ot(N)?(e.consume(N),u=String.fromCharCode(N),j):r(N)}function j(N){if(N===null||N===47||N===62||He(N)){const ye=N===47,Se=u.toLowerCase();return!ye&&!a&&dg.includes(Se)?(l=1,o.interrupt?t(N):se(N)):PT.includes(u.toLowerCase())?(l=6,ye?(e.consume(N),C):o.interrupt?t(N):se(N)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(N):a?P(N):L(N))}return N===45||At(N)?(e.consume(N),u+=String.fromCharCode(N),j):r(N)}function C(N){return N===62?(e.consume(N),o.interrupt?t:se):r(N)}function P(N){return Le(N)?(e.consume(N),P):D(N)}function L(N){return N===47?(e.consume(N),D):N===58||N===95||Ot(N)?(e.consume(N),M):Le(N)?(e.consume(N),L):D(N)}function M(N){return N===45||N===46||N===58||N===95||At(N)?(e.consume(N),M):H(N)}function H(N){return N===61?(e.consume(N),A):Le(N)?(e.consume(N),H):L(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),f=N,q):Le(N)?(e.consume(N),A):K(N)}function q(N){return N===f?(e.consume(N),f=null,le):N===null||we(N)?r(N):(e.consume(N),q)}function K(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||He(N)?H(N):(e.consume(N),K)}function le(N){return N===47||N===62||Le(N)?L(N):r(N)}function D(N){return N===62?(e.consume(N),ne):r(N)}function ne(N){return N===null||we(N)?se(N):Le(N)?(e.consume(N),ne):r(N)}function se(N){return N===45&&l===2?(e.consume(N),ae):N===60&&l===1?(e.consume(N),ue):N===62&&l===4?(e.consume(N),z):N===63&&l===3?(e.consume(N),E):N===93&&l===5?(e.consume(N),ce):we(N)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(LT,G,oe)(N)):N===null||we(N)?(e.exit("htmlFlowData"),oe(N)):(e.consume(N),se)}function oe(N){return e.check($T,re,G)(N)}function re(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),B}function B(N){return N===null||we(N)?oe(N):(e.enter("htmlFlowData"),se(N))}function ae(N){return N===45?(e.consume(N),E):se(N)}function ue(N){return N===47?(e.consume(N),u="",X):se(N)}function X(N){if(N===62){const ye=u.toLowerCase();return dg.includes(ye)?(e.consume(N),z):se(N)}return Ot(N)&&u.length<8?(e.consume(N),u+=String.fromCharCode(N),X):se(N)}function ce(N){return N===93?(e.consume(N),E):se(N)}function E(N){return N===62?(e.consume(N),z):N===45&&l===2?(e.consume(N),E):se(N)}function z(N){return N===null||we(N)?(e.exit("htmlFlowData"),G(N)):(e.consume(N),z)}function G(N){return e.exit("htmlFlow"),t(N)}}function DT(e,t,r){const o=this;return l;function l(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function OT(e,t,r){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(gl,t,r)}}const MT={name:"htmlText",tokenize:FT};function FT(e,t,r){const o=this;let l,a,u;return d;function d(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),p):E===47?(e.consume(E),H):E===63?(e.consume(E),L):Ot(E)?(e.consume(E),K):r(E)}function p(E){return E===45?(e.consume(E),m):E===91?(e.consume(E),a=0,S):Ot(E)?(e.consume(E),P):r(E)}function m(E){return E===45?(e.consume(E),w):r(E)}function g(E){return E===null?r(E):E===45?(e.consume(E),v):we(E)?(u=g,ue(E)):(e.consume(E),g)}function v(E){return E===45?(e.consume(E),w):g(E)}function w(E){return E===62?ae(E):E===45?v(E):g(E)}function S(E){const z="CDATA[";return E===z.charCodeAt(a++)?(e.consume(E),a===z.length?b:S):r(E)}function b(E){return E===null?r(E):E===93?(e.consume(E),j):we(E)?(u=b,ue(E)):(e.consume(E),b)}function j(E){return E===93?(e.consume(E),C):b(E)}function C(E){return E===62?ae(E):E===93?(e.consume(E),C):b(E)}function P(E){return E===null||E===62?ae(E):we(E)?(u=P,ue(E)):(e.consume(E),P)}function L(E){return E===null?r(E):E===63?(e.consume(E),M):we(E)?(u=L,ue(E)):(e.consume(E),L)}function M(E){return E===62?ae(E):L(E)}function H(E){return Ot(E)?(e.consume(E),A):r(E)}function A(E){return E===45||At(E)?(e.consume(E),A):q(E)}function q(E){return we(E)?(u=q,ue(E)):Le(E)?(e.consume(E),q):ae(E)}function K(E){return E===45||At(E)?(e.consume(E),K):E===47||E===62||He(E)?le(E):r(E)}function le(E){return E===47?(e.consume(E),ae):E===58||E===95||Ot(E)?(e.consume(E),D):we(E)?(u=le,ue(E)):Le(E)?(e.consume(E),le):ae(E)}function D(E){return E===45||E===46||E===58||E===95||At(E)?(e.consume(E),D):ne(E)}function ne(E){return E===61?(e.consume(E),se):we(E)?(u=ne,ue(E)):Le(E)?(e.consume(E),ne):le(E)}function se(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,oe):we(E)?(u=se,ue(E)):Le(E)?(e.consume(E),se):(e.consume(E),re)}function oe(E){return E===l?(e.consume(E),l=void 0,B):E===null?r(E):we(E)?(u=oe,ue(E)):(e.consume(E),oe)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||He(E)?le(E):(e.consume(E),re)}function B(E){return E===47||E===62||He(E)?le(E):r(E)}function ae(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function ue(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),X}function X(E){return Le(E)?ze(e,ce,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ce(E)}function ce(E){return e.enter("htmlTextData"),u(E)}}const uf={name:"labelEnd",resolveAll:HT,resolveTo:qT,tokenize:WT},BT={tokenize:GT},UT={tokenize:JT},VT={tokenize:KT};function HT(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==r.length&&sn(e,0,e.length,r),e}function qT(e,t){let r=e.length,o=0,l,a,u,d;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[a+o+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=yn(d,e.slice(a+1,a+o+3)),d=yn(d,[["enter",m,t]]),d=yn(d,Ea(t.parser.constructs.insideSpan.null,e.slice(a+o+4,u-3),t)),d=yn(d,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),d=yn(d,e.slice(u+1)),d=yn(d,[["exit",f,t]]),sn(e,a,e.length,d),e}function WT(e,t,r){const o=this;let l=o.events.length,a,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){a=o.events[l][1];break}return d;function d(v){return a?a._inactive?g(v):(u=o.parser.defined.includes(Rn(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(BT,m,u?m:g)(v):v===91?e.attempt(UT,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(VT,m,g)(v)}function m(v){return t(v)}function g(v){return a._balanced=!0,r(v)}}function GT(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return He(g)?tl(e,a)(g):a(g)}function a(g){return g===41?m(g):t0(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return He(g)?tl(e,f)(g):m(g)}function d(g){return r(g)}function f(g){return g===34||g===39||g===40?r0(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return He(g)?tl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function JT(e,t,r){const o=this;return l;function l(d){return n0.call(o,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return o.parser.defined.includes(Rn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function KT(e,t,r){return o;function o(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const QT={name:"labelStartImage",resolveAll:uf.resolveAll,tokenize:YT};function YT(e,t,r){const o=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):t(d)}}const XT={name:"labelStartLink",resolveAll:uf.resolveAll,tokenize:ZT};function ZT(e,t,r){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const Ic={name:"lineEnding",tokenize:eR};function eR(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Js={name:"thematicBreak",tokenize:tR};function tR(e,t,r){let o=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),f(p)):o>=3&&(p===null||we(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===l?(e.consume(p),o++,f):(e.exit("thematicBreakSequence"),Le(p)?ze(e,d,"whitespace")(p):d(p))}}const Wt={continuation:{tokenize:oR},exit:sR,name:"list",tokenize:iR},nR={partial:!0,tokenize:aR},rR={partial:!0,tokenize:lR};function iR(e,t,r){const o=this,l=o.events[o.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(w){const S=o.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||w===o.containerState.marker:yd(w)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Js,r,p)(w):p(w);if(!o.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return yd(w)&&++u<10?(e.consume(w),f):(!o.interrupt||u<2)&&(o.containerState.marker?w===o.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||w,e.check(gl,o.interrupt?r:m,e.attempt(nR,v,g))}function m(w){return o.containerState.initialBlankLine=!0,a++,v(w)}function g(w){return Le(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return o.containerState.size=a+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function oR(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(gl,l,a);function l(d){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,ze(e,t,"listItemIndent",o.containerState.size+1)(d)}function a(d){return o.containerState.furtherBlankLines||!Le(d)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(d)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(rR,t,u)(d))}function u(d){return o.containerState._closeFlow=!0,o.interrupt=void 0,ze(e,e.attempt(Wt,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function lR(e,t,r){const o=this;return ze(e,l,"listItemIndent",o.containerState.size+1);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(a):r(a)}}function sR(e){e.exit(this.containerState.type)}function aR(e,t,r){const o=this;return ze(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=o.events[o.events.length-1];return!Le(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const fg={name:"setextUnderline",resolveTo:uR,tokenize:cR};function uR(e,t){let r=e.length,o,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,t]),e.splice(a+1,0,["exit",e[o][1],t]),e[o][1].end={...e[a][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function cR(e,t,r){const o=this;let l;return a;function a(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Le(p)?ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||we(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const dR={tokenize:fR};function fR(e){const t=this,r=e.attempt(gl,o,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(yT,l)),"linePrefix")));return r;function o(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const pR={resolveAll:o0()},hR=i0("string"),mR=i0("text");function i0(e){return{resolveAll:o0(e==="text"?gR:void 0),tokenize:t};function t(r){const o=this,l=this.parser.constructs[e],a=r.attempt(l,u,d);return u;function u(m){return p(m)?a(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return p(m)?(r.exit("data"),a(m)):(r.consume(m),f)}function p(m){if(m===null)return!0;const g=l[m];let v=-1;if(g)for(;++v<g.length;){const w=g[v];if(!w.previous||w.previous.call(o,o.previous))return!0}return!1}}}function o0(e){return t;function t(r,o){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,o):r}}function gR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],l=t.sliceStream(o);let a=l.length,u=-1,d=0,f;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:o.start._bufferIndex+u,_index:o.start._index+a,line:o.end.line,column:o.end.column-d,offset:o.end.offset-d},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const yR={42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Yv},xR={91:ST},vR={[-2]:Nc,[-1]:Nc,32:Nc},wR={35:RT,42:Js,45:[fg,Js],60:AT,61:fg,95:Js,96:cg,126:cg},kR={38:Zv,92:Xv},SR={[-5]:Ic,[-4]:Ic,[-3]:Ic,33:QT,38:Zv,42:xd,60:[X2,MT],91:XT,92:[jT,Xv],93:uf,95:xd,96:dT},bR={null:[xd,pR]},CR={null:[42,95]},ER={null:[]},jR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CR,contentInitial:xR,disable:ER,document:yR,flow:wR,flowInitial:vR,insideSpan:bR,string:kR,text:SR},Symbol.toStringTag,{value:"Module"}));function TR(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],d=[];const f={attempt:q(H),check:q(A),consume:P,enter:L,exit:M,interrupt:q(A,{interrupt:!0})},p={code:null,containerState:{},defineSkip:b,events:[],now:S,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:g};let m=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function g(ne){return u=yn(u,ne),j(),u[u.length-1]!==null?[]:(K(t,0),p.events=Ea(a,p.events,p),p.events)}function v(ne,se){return NR(w(ne),se)}function w(ne){return RR(u,ne)}function S(){const{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}=o;return{_bufferIndex:ne,_index:se,line:oe,column:re,offset:B}}function b(ne){l[ne.line]=ne.column,D()}function j(){let ne;for(;o._index<u.length;){const se=u[o._index];if(typeof se=="string")for(ne=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ne&&o._bufferIndex<se.length;)C(se.charCodeAt(o._bufferIndex));else C(se)}}function C(ne){m=m(ne)}function P(ne){we(ne)?(o.line++,o.column=1,o.offset+=ne===-3?2:1,D()):ne!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=ne}function L(ne,se){const oe=se||{};return oe.type=ne,oe.start=S(),p.events.push(["enter",oe,p]),d.push(oe),oe}function M(ne){const se=d.pop();return se.end=S(),p.events.push(["exit",se,p]),se}function H(ne,se){K(ne,se.from)}function A(ne,se){se.restore()}function q(ne,se){return oe;function oe(re,B,ae){let ue,X,ce,E;return Array.isArray(re)?G(re):"tokenize"in re?G([re]):z(re);function z(me){return Ee;function Ee(ke){const je=ke!==null&&me[ke],Ve=ke!==null&&me.null,Ct=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return G(Ct)(ke)}}function G(me){return ue=me,X=0,me.length===0?ae:N(me[X])}function N(me){return Ee;function Ee(ke){return E=le(),ce=me,me.partial||(p.currentConstruct=me),me.name&&p.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ye,Se)(ke)}}function ye(me){return ne(ce,E),B}function Se(me){return E.restore(),++X<ue.length?N(ue[X]):ae}}}function K(ne,se){ne.resolveAll&&!a.includes(ne)&&a.push(ne),ne.resolve&&sn(p.events,se,p.events.length-se,ne.resolve(p.events.slice(se),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function le(){const ne=S(),se=p.previous,oe=p.currentConstruct,re=p.events.length,B=Array.from(d);return{from:re,restore:ae};function ae(){o=ne,p.previous=se,p.currentConstruct=oe,p.events.length=re,d=B,D()}}function D(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function RR(e,t){const r=t.start._index,o=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(o,a)];else{if(u=e.slice(r,l),o>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(o):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function NR(e,t){let r=-1;const o=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
845
845
|
`;break}case-3:{u=`\r
|
|
846
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,o.push(u)}return o.join("")}function jR(e){const o={constructs:Wv([SR,...(e||{}).extensions||[]]),content:l(B2),defined:[],document:l(V2),flow:l(sR),lazy:{},string:l(cR),text:l(dR)};return o;function l(a){return u;function u(d){return bR(o,a,d)}}}function TR(e){for(;!Yv(e););return e}const dg=/[\0\t\n\r]/g;function RR(){let e=1,t="",r=!0,o;return l;function l(a,u,d){const f=[];let p,m,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(dg.lastIndex=g,p=dg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(g);break}if(w===10&&g===v&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return d&&(o&&f.push(-5),t&&f.push(t),f.push(null)),f}}const NR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IR(e){return e.replace(NR,PR)}function PR(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return Gv(r.slice(a?2:1),a?16:10)}return lf(r)||e}const r0={}.hasOwnProperty;function AR(e,t,r){return typeof t!="string"&&(r=t,t=void 0),LR(r)(TR(jR(r).document().write(RR()(e,t,!0))))}function LR(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(_t),blockQuote:a(Ve),characterEscape:le,characterReference:le,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(Ie,u),codeTextData:le,data:le,codeFlowValue:le,definition:a($t),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Pn),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(st,u),htmlFlowData:le,htmlText:a(st,u),htmlTextData:le,image:a(Et),label:u,link:a(xt),listItem:a(it),listItemValue:v,listOrdered:a(Ye,g),listUnordered:a(Ye),paragraph:a(Mt),reference:N,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(_t),strong:a(un),thematicBreak:a(xl)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:je,autolinkProtocol:ke,blockQuote:f(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:Ee,codeFenced:f(j),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:f(C),codeText:f(B),codeTextData:D,data:D,definition:f(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:L,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(oe),htmlFlowData:D,htmlText:f(re),htmlTextData:D,image:f(ue),label:ce,labelText:X,lineEnding:ne,link:f(ae),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ye,resourceDestinationString:E,resourceTitleString:z,resource:G,setextHeading:f(K),setextHeadingLineSequence:q,setextHeadingText:A,strong:f(),thematicBreak:f()}};i0(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(J){let ie={type:"root",children:[]};const be={stack:[ie],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:m,data:r},Pe=[];let De=-1;for(;++De<J.length;)if(J[De][1].type==="listOrdered"||J[De][1].type==="listUnordered")if(J[De][0]==="enter")Pe.push(De);else{const vt=Pe.pop();De=l(J,vt,De)}for(De=-1;++De<J.length;){const vt=t[J[De][0]];r0.call(vt,J[De][1].type)&&vt[J[De][1].type].call(Object.assign({sliceSerialize:J[De][2].sliceSerialize},be),J[De][1])}if(be.tokenStack.length>0){const vt=be.tokenStack[be.tokenStack.length-1];(vt[1]||fg).call(be,void 0,vt[0])}for(ie.position={start:kr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:kr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ie=t.transforms[De](ie)||ie;return ie}function l(J,ie,be){let Pe=ie-1,De=-1,vt=!1,Vn,cn,er,Ir;for(;++Pe<=be;){const wt=J[Pe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?De++:De--,Ir=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Vn&&!Ir&&!De&&!er&&(er=Pe),Ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ir=void 0}if(!De&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||De===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Vn){let An=Pe;for(cn=void 0;An--;){const Qt=J[An];if(Qt[1].type==="lineEnding"||Qt[1].type==="lineEndingBlank"){if(Qt[0]==="exit")continue;cn&&(J[cn][1].type="lineEndingBlank",vt=!0),Qt[1].type="lineEnding",cn=An}else if(!(Qt[1].type==="linePrefix"||Qt[1].type==="blockQuotePrefix"||Qt[1].type==="blockQuotePrefixWhitespace"||Qt[1].type==="blockQuoteMarker"||Qt[1].type==="listItemIndent"))break}er&&(!cn||er<cn)&&(Vn._spread=!0),Vn.end=Object.assign({},cn?J[cn][1].start:wt[1].end),J.splice(cn||Pe,0,["exit",Vn,wt[2]]),Pe++,be++}if(wt[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Vn=An,J.splice(Pe,0,["enter",An,wt[2]]),Pe++,be++,er=void 0,Ir=!0}}}return J[ie][1]._spread=vt,be}function a(J,ie){return be;function be(Pe){d.call(this,J(Pe),Pe),ie&&ie.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,ie,be){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ie,be||void 0]),J.position={start:kr(ie.start),end:void 0}}function f(J){return ie;function ie(be){J&&J.call(this,be),p.call(this,be)}}function p(J,ie){const be=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==J.type&&(ie?ie.call(this,J,Pe[0]):(Pe[1]||fg).call(this,J,Pe[0]));else throw new Error("Cannot close `"+J.type+"` ("+el({start:J.start,end:J.end})+"): it’s not open");be.position.end=kr(J.end)}function m(){return of(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=J}function S(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=J}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/(\r?\n|\r)$/g,"")}function P(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase()}function L(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function M(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function H(J){const ie=this.stack[this.stack.length-1];if(!ie.depth){const be=this.sliceSerialize(J).length;ie.depth=be}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function q(J){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function le(J){const be=this.stack[this.stack.length-1].children;let Pe=be[be.length-1];(!Pe||Pe.type!=="text")&&(Pe=yl(),Pe.position={start:kr(J.start),end:void 0},be.push(Pe)),this.stack.push(Pe)}function D(J){const ie=this.stack.pop();ie.value+=this.sliceSerialize(J),ie.position.end=kr(J.end)}function ne(J){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ie.children[ie.children.length-1];be.position.end=kr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(le.call(this,J),D.call(this,J))}function se(){this.data.atHardBreak=!0}function oe(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function re(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function B(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function ae(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ue(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function X(J){const ie=this.sliceSerialize(J),be=this.stack[this.stack.length-2];be.label=IR(ie),be.identifier=Rn(ie).toLowerCase()}function ce(){const J=this.stack[this.stack.length-1],ie=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Pe=J.children;be.children=Pe}else be.alt=ie}function E(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function z(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function G(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ye(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Se(J){this.data.characterReferenceType=J.type}function me(J){const ie=this.sliceSerialize(J),be=this.data.characterReferenceType;let Pe;be?(Pe=Gv(ie,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=lf(ie);const De=this.stack[this.stack.length-1];De.value+=Pe}function Ee(J){const ie=this.stack.pop();ie.position.end=kr(J.end)}function ke(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(J)}function je(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(J)}function Ve(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Ie(){return{type:"inlineCode",value:""}}function $t(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function Ye(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function it(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Mt(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function yl(){return{type:"text",value:""}}function xl(){return{type:"thematicBreak"}}}function kr(e){return{line:e.line,column:e.column,offset:e.offset}}function i0(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?i0(e,o):$R(e,o)}}function $R(e,t){let r;for(r in t)if(r0.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function fg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+el({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is still open")}function _R(e){const t=this;t.parser=r;function r(o){return AR(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zR(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function DR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
847
|
-
`}]}function
|
|
848
|
-
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function
|
|
846
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,o.push(u)}return o.join("")}function IR(e){const o={constructs:Kv([jR,...(e||{}).extensions||[]]),content:l(q2),defined:[],document:l(G2),flow:l(dR),lazy:{},string:l(hR),text:l(mR)};return o;function l(a){return u;function u(d){return TR(o,a,d)}}}function PR(e){for(;!e0(e););return e}const pg=/[\0\t\n\r]/g;function AR(){let e=1,t="",r=!0,o;return l;function l(a,u,d){const f=[];let p,m,g,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",r&&(a.charCodeAt(0)===65279&&g++,r=void 0);g<a.length;){if(pg.lastIndex=g,p=pg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(g);break}if(w===10&&g===v&&o)f.push(-3),o=void 0;else switch(o&&(f.push(-5),o=void 0),g<v&&(f.push(a.slice(g,v)),e+=v-g),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return d&&(o&&f.push(-5),t&&f.push(t),f.push(null)),f}}const LR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $R(e){return e.replace(LR,_R)}function _R(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return Qv(r.slice(a?2:1),a?16:10)}return af(r)||e}const l0={}.hasOwnProperty;function zR(e,t,r){return typeof t!="string"&&(r=t,t=void 0),DR(r)(PR(IR(r).document().write(AR()(e,t,!0))))}function DR(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(_t),blockQuote:a(Ve),characterEscape:le,characterReference:le,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(Ie,u),codeTextData:le,data:le,codeFlowValue:le,definition:a($t),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Pn),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(st,u),htmlFlowData:le,htmlText:a(st,u),htmlTextData:le,image:a(Et),label:u,link:a(xt),listItem:a(it),listItemValue:v,listOrdered:a(Ye,g),listUnordered:a(Ye),paragraph:a(Mt),reference:N,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(_t),strong:a(un),thematicBreak:a(wl)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:je,autolinkProtocol:ke,blockQuote:f(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:Ee,codeFenced:f(j),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:f(C),codeText:f(B),codeTextData:D,data:D,definition:f(),definitionDestinationString:M,definitionLabelString:P,definitionTitleString:L,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(oe),htmlFlowData:D,htmlText:f(re),htmlTextData:D,image:f(ue),label:ce,labelText:X,lineEnding:ne,link:f(ae),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ye,resourceDestinationString:E,resourceTitleString:z,resource:G,setextHeading:f(K),setextHeadingLineSequence:q,setextHeadingText:A,strong:f(),thematicBreak:f()}};s0(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(J){let ie={type:"root",children:[]};const be={stack:[ie],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:m,data:r},Pe=[];let De=-1;for(;++De<J.length;)if(J[De][1].type==="listOrdered"||J[De][1].type==="listUnordered")if(J[De][0]==="enter")Pe.push(De);else{const vt=Pe.pop();De=l(J,vt,De)}for(De=-1;++De<J.length;){const vt=t[J[De][0]];l0.call(vt,J[De][1].type)&&vt[J[De][1].type].call(Object.assign({sliceSerialize:J[De][2].sliceSerialize},be),J[De][1])}if(be.tokenStack.length>0){const vt=be.tokenStack[be.tokenStack.length-1];(vt[1]||hg).call(be,void 0,vt[0])}for(ie.position={start:kr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:kr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ie=t.transforms[De](ie)||ie;return ie}function l(J,ie,be){let Pe=ie-1,De=-1,vt=!1,Vn,cn,er,Ir;for(;++Pe<=be;){const wt=J[Pe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?De++:De--,Ir=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Vn&&!Ir&&!De&&!er&&(er=Pe),Ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ir=void 0}if(!De&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||De===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Vn){let An=Pe;for(cn=void 0;An--;){const Yt=J[An];if(Yt[1].type==="lineEnding"||Yt[1].type==="lineEndingBlank"){if(Yt[0]==="exit")continue;cn&&(J[cn][1].type="lineEndingBlank",vt=!0),Yt[1].type="lineEnding",cn=An}else if(!(Yt[1].type==="linePrefix"||Yt[1].type==="blockQuotePrefix"||Yt[1].type==="blockQuotePrefixWhitespace"||Yt[1].type==="blockQuoteMarker"||Yt[1].type==="listItemIndent"))break}er&&(!cn||er<cn)&&(Vn._spread=!0),Vn.end=Object.assign({},cn?J[cn][1].start:wt[1].end),J.splice(cn||Pe,0,["exit",Vn,wt[2]]),Pe++,be++}if(wt[1].type==="listItemPrefix"){const An={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Vn=An,J.splice(Pe,0,["enter",An,wt[2]]),Pe++,be++,er=void 0,Ir=!0}}}return J[ie][1]._spread=vt,be}function a(J,ie){return be;function be(Pe){d.call(this,J(Pe),Pe),ie&&ie.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,ie,be){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ie,be||void 0]),J.position={start:kr(ie.start),end:void 0}}function f(J){return ie;function ie(be){J&&J.call(this,be),p.call(this,be)}}function p(J,ie){const be=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==J.type&&(ie?ie.call(this,J,Pe[0]):(Pe[1]||hg).call(this,J,Pe[0]));else throw new Error("Cannot close `"+J.type+"` ("+el({start:J.start,end:J.end})+"): it’s not open");be.position.end=kr(J.end)}function m(){return sf(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=J}function S(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=J}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J.replace(/(\r?\n|\r)$/g,"")}function P(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase()}function L(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function M(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function H(J){const ie=this.stack[this.stack.length-1];if(!ie.depth){const be=this.sliceSerialize(J).length;ie.depth=be}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function q(J){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function le(J){const be=this.stack[this.stack.length-1].children;let Pe=be[be.length-1];(!Pe||Pe.type!=="text")&&(Pe=vl(),Pe.position={start:kr(J.start),end:void 0},be.push(Pe)),this.stack.push(Pe)}function D(J){const ie=this.stack.pop();ie.value+=this.sliceSerialize(J),ie.position.end=kr(J.end)}function ne(J){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const be=ie.children[ie.children.length-1];be.position.end=kr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(le.call(this,J),D.call(this,J))}function se(){this.data.atHardBreak=!0}function oe(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function re(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function B(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.value=J}function ae(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ue(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ie,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function X(J){const ie=this.sliceSerialize(J),be=this.stack[this.stack.length-2];be.label=$R(ie),be.identifier=Rn(ie).toLowerCase()}function ce(){const J=this.stack[this.stack.length-1],ie=this.resume(),be=this.stack[this.stack.length-1];if(this.data.inReference=!0,be.type==="link"){const Pe=J.children;be.children=Pe}else be.alt=ie}function E(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.url=J}function z(){const J=this.resume(),ie=this.stack[this.stack.length-1];ie.title=J}function G(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function ye(J){const ie=this.resume(),be=this.stack[this.stack.length-1];be.label=ie,be.identifier=Rn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Se(J){this.data.characterReferenceType=J.type}function me(J){const ie=this.sliceSerialize(J),be=this.data.characterReferenceType;let Pe;be?(Pe=Qv(ie,be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=af(ie);const De=this.stack[this.stack.length-1];De.value+=Pe}function Ee(J){const ie=this.stack.pop();ie.position.end=kr(J.end)}function ke(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(J)}function je(J){D.call(this,J);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(J)}function Ve(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Ie(){return{type:"inlineCode",value:""}}function $t(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function Ye(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function it(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Mt(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function vl(){return{type:"text",value:""}}function wl(){return{type:"thematicBreak"}}}function kr(e){return{line:e.line,column:e.column,offset:e.offset}}function s0(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?s0(e,o):OR(e,o)}}function OR(e,t){let r;for(r in t)if(l0.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function hg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+el({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+el({start:t.start,end:t.end})+") is still open")}function MR(e){const t=this;t.parser=r;function r(o){return zR(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function FR(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function BR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
847
|
+
`}]}function UR(e,t){const r=t.value?t.value+`
|
|
848
|
+
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function VR(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function HR(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qR(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=Zi(o.toLowerCase()),a=e.footnoteOrder.indexOf(o);let u,d=e.footnoteCounts.get(o);d===void 0?(d=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(o,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,p),e.applyData(t,p)}function WR(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GR(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function a0(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=o:l.push({type:"text",value:o}),l}function JR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return a0(e,t);const l={src:Zi(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,a),e.applyData(t,a)}function KR(e,t){const r={src:Zi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function QR(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}function YR(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return a0(e,t);const l={href:Zi(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const a={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function XR(e,t){const r={href:Zi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function ZR(e,t,r){const o=e.all(t),l=r?eN(r):u0(t),a={},u=[];if(typeof t.checked=="boolean"){const m=o[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<o.length;){const m=o[d];(l||d!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
849
849
|
`}),m.type==="element"&&m.tagName==="p"&&!l?u.push(...m.children):u.push(m)}const f=o[o.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
850
|
-
`});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function
|
|
850
|
+
`});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function eN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=u0(r[o])}return t}function u0(e){const t=e.spread;return t??e.children.length>1}function tN(e,t){const r={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<o.length;){const u=o[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function nN(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rN(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function iN(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oN(e,t){const r=e.all(t),o=r.shift(),l=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=nf(t.children[1]),f=Uv(t.children[t.children.length-1]);d&&f&&(u.position={start:d,end:f}),l.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,a),e.applyData(t,a)}function lN(e,t,r){const o=r?r.children:void 0,a=(o?o.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const p=[];for(;++f<d;){const g=t.children[f],v={},w=u?u[f]:void 0;w&&(v.align=w);let S={type:"element",tagName:a,properties:v,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),p.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function sN(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const mg=9,gg=32;function aN(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),l=0;const a=[];for(;o;)a.push(yg(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=r.exec(t);return a.push(yg(t.slice(l),l>0,!1)),a.join("")}function yg(e,t,r){let o=0,l=e.length;if(t){let a=e.codePointAt(o);for(;a===mg||a===gg;)o++,a=e.codePointAt(o)}if(r){let a=e.codePointAt(l-1);for(;a===mg||a===gg;)l--,a=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function uN(e,t){const r={type:"text",value:aN(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function cN(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const dN={blockquote:FR,break:BR,code:UR,delete:VR,emphasis:HR,footnoteReference:qR,heading:WR,html:GR,imageReference:JR,image:KR,inlineCode:QR,linkReference:YR,link:XR,listItem:ZR,list:tN,paragraph:nN,root:rN,strong:iN,table:oN,tableCell:sN,tableRow:lN,text:uN,thematicBreak:cN,toml:Ls,yaml:Ls,definition:Ls,footnoteDefinition:Ls};function Ls(){}const c0=-1,ja=0,la=1,sa=2,cf=3,df=4,ff=5,pf=6,d0=7,f0=8,xg=typeof self=="object"?self:globalThis,fN=(e,t)=>{const r=(l,a)=>(e.set(a,l),l),o=l=>{if(e.has(l))return e.get(l);const[a,u]=t[l];switch(a){case ja:case c0:return r(u,l);case la:{const d=r([],l);for(const f of u)d.push(o(f));return d}case sa:{const d=r({},l);for(const[f,p]of u)d[o(f)]=o(p);return d}case cf:return r(new Date(u),l);case df:{const{source:d,flags:f}=u;return r(new RegExp(d,f),l)}case ff:{const d=r(new Map,l);for(const[f,p]of u)d.set(o(f),o(p));return d}case pf:{const d=r(new Set,l);for(const f of u)d.add(o(f));return d}case d0:{const{name:d,message:f}=u;return r(new xg[d](f),l)}case f0:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l)}return r(new xg[a](u),l)};return o},vg=e=>fN(new Map,e)(0),Ri="",{toString:pN}={},{keys:hN}=Object,Ko=e=>{const t=typeof e;if(t!=="object"||!e)return[ja,t];const r=pN.call(e).slice(8,-1);switch(r){case"Array":return[la,Ri];case"Object":return[sa,Ri];case"Date":return[cf,Ri];case"RegExp":return[df,Ri];case"Map":return[ff,Ri];case"Set":return[pf,Ri]}return r.includes("Array")?[la,r]:r.includes("Error")?[d0,r]:[sa,r]},$s=([e,t])=>e===ja&&(t==="function"||t==="symbol"),mN=(e,t,r,o)=>{const l=(u,d)=>{const f=o.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Ko(u);switch(d){case ja:{let m=u;switch(f){case"bigint":d=f0,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return l([c0],u)}return l([d,m],u)}case la:{if(f)return l([f,[...u]],u);const m=[],g=l([d,m],u);for(const v of u)m.push(a(v));return g}case sa:{if(f)switch(f){case"BigInt":return l([f,u.toString()],u);case"Boolean":case"Number":case"String":return l([f,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const m=[],g=l([d,m],u);for(const v of hN(u))(e||!$s(Ko(u[v])))&&m.push([a(v),a(u[v])]);return g}case cf:return l([d,u.toISOString()],u);case df:{const{source:m,flags:g}=u;return l([d,{source:m,flags:g}],u)}case ff:{const m=[],g=l([d,m],u);for(const[v,w]of u)(e||!($s(Ko(v))||$s(Ko(w))))&&m.push([a(v),a(w)]);return g}case pf:{const m=[],g=l([d,m],u);for(const v of u)(e||!$s(Ko(v)))&&m.push(a(v));return g}}const{message:p}=u;return l([d,{name:f,message:p}],u)};return a},wg=(e,{json:t,lossy:r}={})=>{const o=[];return mN(!(t||r),!!t,new Map,o)(e),o},aa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vg(wg(e,t)):structuredClone(e):(e,t)=>vg(wg(e,t));function gN(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function yN(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xN(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||gN,o=e.options.footnoteBackLabel||yN,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[f]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=Zi(g.toLowerCase());let w=0;const S=[],b=e.footnoteCounts.get(g);for(;b!==void 0&&++w<=b;){S.length>0&&S.push({type:"text",value:" "});let P=typeof r=="string"?r:r(f,w);typeof P=="string"&&(P={type:"text",value:P}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(f,w),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const j=m[m.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const P=j.children[j.children.length-1];P&&P.type==="text"?P.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...S)}else m.push(...S);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,C),d.push(C)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...aa(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
851
851
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
852
|
-
`}]}}const
|
|
852
|
+
`}]}}const Ta=function(e){if(e==null)return SN;if(typeof e=="function")return Ra(e);if(typeof e=="object")return Array.isArray(e)?vN(e):wN(e);if(typeof e=="string")return kN(e);throw new Error("Expected function, string, or object as test")};function vN(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ta(e[r]);return Ra(o);function o(...l){let a=-1;for(;++a<t.length;)if(t[a].apply(this,l))return!0;return!1}}function wN(e){const t=e;return Ra(r);function r(o){const l=o;let a;for(a in e)if(l[a]!==t[a])return!1;return!0}}function kN(e){return Ra(t);function t(r){return r&&r.type===e}}function Ra(e){return t;function t(r,o,l){return!!(bN(r)&&e.call(this,r,typeof o=="number"?o:void 0,l||void 0))}}function SN(){return!0}function bN(e){return e!==null&&typeof e=="object"&&"type"in e}const p0=[],CN=!0,vd=!1,EN="skip";function h0(e,t,r,o){let l;typeof t=="function"&&typeof r!="function"?(o=r,r=t):l=t;const a=Ta(l),u=o?-1:1;d(e,void 0,[])();function d(f,p,m){const g=f&&typeof f=="object"?f:{};if(typeof g.type=="string"){const w=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return v;function v(){let w=p0,S,b,j;if((!t||a(f,p,m[m.length-1]||void 0))&&(w=jN(r(f,m)),w[0]===vd))return w;if("children"in f&&f.children){const C=f;if(C.children&&w[0]!==EN)for(b=(o?C.children.length:-1)+u,j=m.concat(C);b>-1&&b<C.children.length;){const P=C.children[b];if(S=d(P,b,j)(),S[0]===vd)return S;b=typeof S[1]=="number"?S[1]:b+u}}return w}}}function jN(e){return Array.isArray(e)?e:typeof e=="number"?[CN,e]:e==null?p0:[e]}function hf(e,t,r,o){let l,a,u;typeof t=="function"?(a=void 0,u=t,l=r):(a=t,u=r,l=o),h0(e,a,d,l);function d(f,p){const m=p[p.length-1],g=m?m.children.indexOf(f):void 0;return u(f,g,m)}}const wd={}.hasOwnProperty,TN={};function RN(e,t){const r=t||TN,o=new Map,l=new Map,a=new Map,u={...dN,...r.handlers},d={all:p,applyData:IN,definitionById:o,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:NN,wrap:AN};return hf(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?o:l,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),d;function f(m,g){const v=m.type,w=d.handlers[v];if(wd.call(d.handlers,v)&&w)return w(d,m,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in m){const{children:b,...j}=m,C=aa(j);return C.children=d.all(m),C}return aa(m)}return(d.options.unknownHandler||PN)(d,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let w=-1;for(;++w<v.length;){const S=d.one(v[w],m);if(S){if(w&&v[w-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=kg(S.value)),!Array.isArray(S)&&S.type==="element")){const b=S.children[0];b&&b.type==="text"&&(b.value=kg(b.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function NN(e,t){e.position&&(t.position=y2(e))}function IN(e,t){let r=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,aa(a)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function PN(e,t){const r=t.data||{},o="value"in t&&!(wd.call(r,"hProperties")||wd.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function AN(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
|
|
853
853
|
`});++o<e.length;)o&&r.push({type:"text",value:`
|
|
854
854
|
`}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
855
|
-
`}),r}function
|
|
856
|
-
`},l),a}function NN(e,t){return e&&"run"in e?async function(r,o){const l=wg(r,{file:o,...t});await e.run(l,o)}:function(r,o){return wg(r,{file:o,...e||t})}}function kg(e){if(e)throw e}var Nc,Sg;function IN(){if(Sg)return Nc;Sg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},d=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return Nc=function f(){var p,m,g,v,w,S,b=arguments[0],j=1,C=arguments.length,P=!1;for(typeof b=="boolean"&&(P=b,b=arguments[1]||{},j=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});j<C;++j)if(p=arguments[j],p!=null)for(m in p)g=d(b,m),v=d(p,m),b!==v&&(P&&v&&(a(v)||(w=l(v)))?(w?(w=!1,S=g&&l(g)?g:[]):S=g&&a(g)?g:{},u(b,{name:m,newValue:f(P,S,v)})):typeof v<"u"&&u(b,{name:m,newValue:v}));return b},Nc}var PN=IN();const Ic=Nd(PN);function vd(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 AN(){const e=[],t={run:r,use:o};return t;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...p){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,m?LN(m,d)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function LN(e,t){let r;return o;function o(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(p){const m=p;if(d&&r)throw m;return l(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,l):f instanceof Error?l(f):a(f))}function l(u,...d){r||(r=!0,t(u,...d))}function a(u){l(null,u)}}const Fn={basename:$N,dirname:_N,extname:zN,join:DN,sep:"/"};function $N(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ml(e);let r=0,o=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else o<0&&(a=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function _N(e){if(ml(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zN(e){ml(e);let t=e.length,r=-1,o=0,l=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===o+1?"":e.slice(l,r)}function DN(...e){let t=-1,r;for(;++t<e.length;)ml(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ON(r)}function ON(e){ml(e);const t=e.codePointAt(0)===47;let r=MN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function MN(e,t){let r="",o=0,l=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",o=0):(r=r.slice(0,f),o=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",o=0,l=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),o=u-l-1;l=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function ml(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const FN={cwd:BN};function BN(){return"/"}function wd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function UN(e){if(typeof e=="string")e=new URL(e);else if(!wd(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 VN(e)}function VN(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===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 Pc=["history","path","basename","stem","extname","dirname"];class f0{constructor(t){let r;t?wd(t)?r={path:t}:typeof t=="string"||HN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":FN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Pc.length;){const a=Pc[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Pc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fn.basename(this.path):void 0}set basename(t){Lc(t,"basename"),Ac(t,"basename"),this.path=Fn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fn.dirname(this.path):void 0}set dirname(t){bg(this.basename,"dirname"),this.path=Fn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fn.extname(this.path):void 0}set extname(t){if(Ac(t,"extname"),bg(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=Fn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wd(t)&&(t=UN(t)),Lc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fn.basename(this.path,this.extname):void 0}set stem(t){Lc(t,"stem"),Ac(t,"stem"),this.path=Fn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new Lt(t,r,o);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 Ac(e,t){if(e&&e.includes(Fn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fn.sep+"`")}function Lc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function HN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const qN=function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},WN={}.hasOwnProperty;class pf extends qN{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=AN()}copy(){const t=new pf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(Ic(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(zc("data",this.frozen),this.namespace[t]=r,this):WN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(zc("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[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ls(t),o=this.parser||this.Parser;return $c("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),$c("process",this.parser||this.Parser),_c("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=Ls(t),f=o.parse(d);o.run(f,d,function(m,g,v){if(m||!g||!v)return p(m);const w=g,S=o.stringify(w,v);KN(S)?v.value=S:v.result=S,p(m,v)});function p(m,g){m||!g?u(m):a?a(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),$c("processSync",this.parser||this.Parser),_c("processSync",this.compiler||this.Compiler),this.process(t,l),Eg("processSync","process",r),o;function l(a,u){r=!0,kg(a),o=u}}run(t,r,o){Cg(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,d){const f=Ls(r);l.run(t,f,p);function p(m,g,v){const w=g||t;m?d(m):u?u(w):o(void 0,w,v)}}}runSync(t,r){let o=!1,l;return this.run(t,r,a),Eg("runSync","run",o),l;function a(u,d){kg(u),l=d,o=!0}}stringify(t,r){this.freeze();const o=Ls(r),l=this.compiler||this.Compiler;return _c("stringify",l),Cg(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(zc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;f(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=Ic(!0,l.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[w,...S]=m;const b=o[v][1];vd(b)&&vd(w)&&(w=Ic(!0,b,w)),o[v]=[p,w,...S]}}}}const GN=new pf().freeze();function $c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zc(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 Cg(e){if(!vd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ls(e){return JN(e)?e:new f0(e)}function JN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function KN(e){return typeof e=="string"||QN(e)}function QN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const YN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jg=[],Tg={allowDangerousHtml:!0},XN=/^(https?|ircs?|mailto|xmpp)$/i,ZN=[{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 Hi(e){const t=eI(e),r=tI(e);return nI(t.runSync(t.parse(r),r),e)}function eI(e){const t=e.rehypePlugins||jg,r=e.remarkPlugins||jg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tg}:Tg;return GN().use(_R).use(r).use(NN,o).use(t)}function tI(e){const t=e.children||"",r=new f0;return typeof t=="string"&&(r.value=t),r}function nI(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||rI;for(const m of ZN)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+YN+m.id,void 0);return ff(e,p),x2(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let w;for(w in jc)if(Object.hasOwn(jc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=jc[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!w&&o&&typeof g=="number"&&(w=!o(m,g,v)),w&&v&&typeof g=="number")return d&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function rI(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||XN.test(e.slice(0,t))?e:""}function Rg(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(t);for(;l!==-1;)o++,l=r.indexOf(t,l+t.length);return o}function iI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oI(e,t,r){const l=Ea((r||{}).ignore||[]),a=lI(t);let u=-1;for(;++u<a.length;)d0(e,"text",d);function d(p,m){let g=-1,v;for(;++g<m.length;){const w=m[g],S=v?v.children:void 0;if(l(w,S?S.indexOf(w):void 0,v))return;v=w}if(v)return f(p,m)}function f(p,m){const g=m[m.length-1],v=a[u][0],w=a[u][1];let S=0;const j=g.children.indexOf(p);let C=!1,P=[];v.lastIndex=0;let L=v.exec(p.value);for(;L;){const M=L.index,H={index:L.index,input:L.input,stack:[...m,p]};let A=w(...L,H);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=M+1:(S!==M&&P.push({type:"text",value:p.value.slice(S,M)}),Array.isArray(A)?P.push(...A):A&&P.push(A),S=M+L[0].length,C=!0),!v.global)break;L=v.exec(p.value)}return C?(S<p.value.length&&P.push({type:"text",value:p.value.slice(S)}),g.children.splice(j,1,...P)):P=[p],j+P.length}}function lI(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const l=r[o];t.push([sI(l[0]),aI(l[1])])}return t}function sI(e){return typeof e=="string"?new RegExp(iI(e),"g"):e}function aI(e){return typeof e=="function"?e:function(){return e}}const Dc="phrasing",Oc=["autolink","link","image","label"];function uI(){return{transforms:[gI],enter:{literalAutolink:dI,literalAutolinkEmail:Mc,literalAutolinkHttp:Mc,literalAutolinkWww:Mc},exit:{literalAutolink:mI,literalAutolinkEmail:hI,literalAutolinkHttp:fI,literalAutolinkWww:pI}}}function cI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dc,notInConstruct:Oc},{character:":",before:"[ps]",after:"\\/",inConstruct:Dc,notInConstruct:Oc}]}}function dI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Mc(e){this.config.enter.autolinkProtocol.call(this,e)}function fI(e){this.config.exit.autolinkProtocol.call(this,e)}function pI(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 hI(e){this.config.exit.autolinkEmail.call(this,e)}function mI(e){this.exit(e)}function gI(e){oI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xI]],{ignore:["link","linkReference"]})}function yI(e,t,r,o,l){let a="";if(!p0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!vI(r)))return!1;const u=wI(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function xI(e,t,r,o){return!p0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function vI(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 wI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const l=Rg(e,"(");let a=Rg(e,")");for(;o!==-1&&l>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function p0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Xr(r)||Sa(r))&&(!t||r!==47)}h0.peek=NI;function kI(){this.buffer()}function SI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bI(){this.buffer()}function CI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function jI(e){this.exit(e)}function TI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function RI(e){this.exit(e)}function NI(){return"["}function h0(e,t,r,o){const l=r.createTracker(o);let a=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=l.move("]"),a}function II(){return{enter:{gfmFootnoteCallString:kI,gfmFootnoteCall:SI,gfmFootnoteDefinitionLabelString:bI,gfmFootnoteDefinition:CI},exit:{gfmFootnoteCallString:EI,gfmFootnoteCall:jI,gfmFootnoteDefinitionLabelString:TI,gfmFootnoteDefinition:RI}}}function PI(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:h0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,l,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),m=a.enter("label");return f+=d.move(a.safe(a.associationId(o),{before:f,after:"]"})),m(),f+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
857
|
-
`:" ")+a.indentLines(a.containerFlow(o,d.current()),t?
|
|
858
|
-
`)}function
|
|
859
|
-
`&&
|
|
860
|
-
`}function
|
|
855
|
+
`}),r}function kg(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Sg(e,t){const r=RN(e,t),o=r.one(e,void 0),l=xN(r),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
|
|
856
|
+
`},l),a}function LN(e,t){return e&&"run"in e?async function(r,o){const l=Sg(r,{file:o,...t});await e.run(l,o)}:function(r,o){return Sg(r,{file:o,...e||t})}}function bg(e){if(e)throw e}var Pc,Cg;function $N(){if(Cg)return Pc;Cg=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},d=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return Pc=function f(){var p,m,g,v,w,S,b=arguments[0],j=1,C=arguments.length,P=!1;for(typeof b=="boolean"&&(P=b,b=arguments[1]||{},j=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});j<C;++j)if(p=arguments[j],p!=null)for(m in p)g=d(b,m),v=d(p,m),b!==v&&(P&&v&&(a(v)||(w=l(v)))?(w?(w=!1,S=g&&l(g)?g:[]):S=g&&a(g)?g:{},u(b,{name:m,newValue:f(P,S,v)})):typeof v<"u"&&u(b,{name:m,newValue:v}));return b},Pc}var _N=$N();const Ac=Pd(_N);function kd(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 zN(){const e=[],t={run:r,use:o};return t;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...p){const m=e[++a];let g=-1;if(f){u(f);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,m?DN(m,d)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function DN(e,t){let r;return o;function o(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(p){const m=p;if(d&&r)throw m;return l(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,l):f instanceof Error?l(f):a(f))}function l(u,...d){r||(r=!0,t(u,...d))}function a(u){l(null,u)}}const Fn={basename:ON,dirname:MN,extname:FN,join:BN,sep:"/"};function ON(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');yl(e);let r=0,o=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else o<0&&(a=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function MN(e){if(yl(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function FN(e){yl(e);let t=e.length,r=-1,o=0,l=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===o+1?"":e.slice(l,r)}function BN(...e){let t=-1,r;for(;++t<e.length;)yl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":UN(r)}function UN(e){yl(e);const t=e.codePointAt(0)===47;let r=VN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function VN(e,t){let r="",o=0,l=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",o=0):(r=r.slice(0,f),o=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",o=0,l=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),o=u-l-1;l=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function yl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HN={cwd:qN};function qN(){return"/"}function Sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function WN(e){if(typeof e=="string")e=new URL(e);else if(!Sd(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 GN(e)}function GN(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===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 Lc=["history","path","basename","stem","extname","dirname"];class m0{constructor(t){let r;t?Sd(t)?r={path:t}:typeof t=="string"||JN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":HN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Lc.length;){const a=Lc[o];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Lc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Fn.basename(this.path):void 0}set basename(t){_c(t,"basename"),$c(t,"basename"),this.path=Fn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Fn.dirname(this.path):void 0}set dirname(t){Eg(this.basename,"dirname"),this.path=Fn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Fn.extname(this.path):void 0}set extname(t){if($c(t,"extname"),Eg(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=Fn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Sd(t)&&(t=WN(t)),_c(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Fn.basename(this.path,this.extname):void 0}set stem(t){_c(t,"stem"),$c(t,"stem"),this.path=Fn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new Lt(t,r,o);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 $c(e,t){if(e&&e.includes(Fn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Fn.sep+"`")}function _c(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Eg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function JN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const KN=function(e){const o=this.constructor.prototype,l=o[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,o),a},QN={}.hasOwnProperty;class mf extends KN{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=zN()}copy(){const t=new mf;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(Ac(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Oc("data",this.frozen),this.namespace[t]=r,this):QN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Oc("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[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=_s(t),o=this.parser||this.Parser;return zc("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),zc("process",this.parser||this.Parser),Dc("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=_s(t),f=o.parse(d);o.run(f,d,function(m,g,v){if(m||!g||!v)return p(m);const w=g,S=o.stringify(w,v);ZN(S)?v.value=S:v.result=S,p(m,v)});function p(m,g){m||!g?u(m):a?a(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),zc("processSync",this.parser||this.Parser),Dc("processSync",this.compiler||this.Compiler),this.process(t,l),Tg("processSync","process",r),o;function l(a,u){r=!0,bg(a),o=u}}run(t,r,o){jg(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?a(void 0,o):new Promise(a);function a(u,d){const f=_s(r);l.run(t,f,p);function p(m,g,v){const w=g||t;m?d(m):u?u(w):o(void 0,w,v)}}}runSync(t,r){let o=!1,l;return this.run(t,r,a),Tg("runSync","run",o),l;function a(u,d){bg(u),l=d,o=!0}}stringify(t,r){this.freeze();const o=_s(r),l=this.compiler||this.Compiler;return Dc("stringify",l),jg(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(Oc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;f(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=Ac(!0,l.settings,p.settings))}function d(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[w,...S]=m;const b=o[v][1];kd(b)&&kd(w)&&(w=Ac(!0,b,w)),o[v]=[p,w,...S]}}}}const YN=new mf().freeze();function zc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Oc(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 jg(e){if(!kd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Tg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _s(e){return XN(e)?e:new m0(e)}function XN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ZN(e){return typeof e=="string"||eI(e)}function eI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tI="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rg=[],Ng={allowDangerousHtml:!0},nI=/^(https?|ircs?|mailto|xmpp)$/i,rI=[{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 Hi(e){const t=iI(e),r=oI(e);return lI(t.runSync(t.parse(r),r),e)}function iI(e){const t=e.rehypePlugins||Rg,r=e.remarkPlugins||Rg,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ng}:Ng;return YN().use(MR).use(r).use(LN,o).use(t)}function oI(e){const t=e.children||"",r=new m0;return typeof t=="string"&&(r.value=t),r}function lI(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||sI;for(const m of rI)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+tI+m.id,void 0);return hf(e,p),S2(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let w;for(w in Rc)if(Object.hasOwn(Rc,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],b=Rc[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):a?a.includes(m.tagName):!1;if(!w&&o&&typeof g=="number"&&(w=!o(m,g,v)),w&&v&&typeof g=="number")return d&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function sI(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||nI.test(e.slice(0,t))?e:""}function Ig(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(t);for(;l!==-1;)o++,l=r.indexOf(t,l+t.length);return o}function aI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function uI(e,t,r){const l=Ta((r||{}).ignore||[]),a=cI(t);let u=-1;for(;++u<a.length;)h0(e,"text",d);function d(p,m){let g=-1,v;for(;++g<m.length;){const w=m[g],S=v?v.children:void 0;if(l(w,S?S.indexOf(w):void 0,v))return;v=w}if(v)return f(p,m)}function f(p,m){const g=m[m.length-1],v=a[u][0],w=a[u][1];let S=0;const j=g.children.indexOf(p);let C=!1,P=[];v.lastIndex=0;let L=v.exec(p.value);for(;L;){const M=L.index,H={index:L.index,input:L.input,stack:[...m,p]};let A=w(...L,H);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=M+1:(S!==M&&P.push({type:"text",value:p.value.slice(S,M)}),Array.isArray(A)?P.push(...A):A&&P.push(A),S=M+L[0].length,C=!0),!v.global)break;L=v.exec(p.value)}return C?(S<p.value.length&&P.push({type:"text",value:p.value.slice(S)}),g.children.splice(j,1,...P)):P=[p],j+P.length}}function cI(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<r.length;){const l=r[o];t.push([dI(l[0]),fI(l[1])])}return t}function dI(e){return typeof e=="string"?new RegExp(aI(e),"g"):e}function fI(e){return typeof e=="function"?e:function(){return e}}const Mc="phrasing",Fc=["autolink","link","image","label"];function pI(){return{transforms:[wI],enter:{literalAutolink:mI,literalAutolinkEmail:Bc,literalAutolinkHttp:Bc,literalAutolinkWww:Bc},exit:{literalAutolink:vI,literalAutolinkEmail:xI,literalAutolinkHttp:gI,literalAutolinkWww:yI}}}function hI(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Fc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Fc},{character:":",before:"[ps]",after:"\\/",inConstruct:Mc,notInConstruct:Fc}]}}function mI(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bc(e){this.config.enter.autolinkProtocol.call(this,e)}function gI(e){this.config.exit.autolinkProtocol.call(this,e)}function yI(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 xI(e){this.config.exit.autolinkEmail.call(this,e)}function vI(e){this.exit(e)}function wI(e){uI(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kI],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SI]],{ignore:["link","linkReference"]})}function kI(e,t,r,o,l){let a="";if(!g0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!bI(r)))return!1;const u=CI(r+o);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function SI(e,t,r,o){return!g0(o,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function bI(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 CI(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],o=r.indexOf(")");const l=Ig(e,"(");let a=Ig(e,")");for(;o!==-1&&l>a;)e+=r.slice(0,o+1),r=r.slice(o+1),o=r.indexOf(")"),a++;return[e,r]}function g0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Xr(r)||Ca(r))&&(!t||r!==47)}y0.peek=LI;function EI(){this.buffer()}function jI(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TI(){this.buffer()}function RI(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function NI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function II(e){this.exit(e)}function PI(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function AI(e){this.exit(e)}function LI(){return"["}function y0(e,t,r,o){const l=r.createTracker(o);let a=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=l.move("]"),a}function $I(){return{enter:{gfmFootnoteCallString:EI,gfmFootnoteCall:jI,gfmFootnoteDefinitionLabelString:TI,gfmFootnoteDefinition:RI},exit:{gfmFootnoteCallString:NI,gfmFootnoteCall:II,gfmFootnoteDefinitionLabelString:PI,gfmFootnoteDefinition:AI}}}function _I(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:y0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(o,l,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),m=a.enter("label");return f+=d.move(a.safe(a.associationId(o),{before:f,after:"]"})),m(),f+=d.move("]:"),o.children&&o.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
857
|
+
`:" ")+a.indentLines(a.containerFlow(o,d.current()),t?x0:zI))),p(),f}}function zI(e,t,r){return t===0?e:x0(e,t,r)}function x0(e,t,r){return(r?"":" ")+e}const DI=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];v0.peek=UI;function OI(){return{canContainEols:["delete"],enter:{strikethrough:FI},exit:{strikethrough:BI}}}function MI(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:DI}],handlers:{delete:v0}}}function FI(e){this.enter({type:"delete",children:[]},e)}function BI(e){this.exit(e)}function v0(e,t,r,o){const l=r.createTracker(o),a=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),a(),u}function UI(){return"~"}function VI(e){return e.length}function HI(e,t){const r=t||{},o=(r.align||[]).concat(),l=r.stringLength||VI,a=[],u=[],d=[],f=[];let p=0,m=-1;for(;++m<e.length;){const b=[],j=[];let C=-1;for(e[m].length>p&&(p=e[m].length);++C<e[m].length;){const P=qI(e[m][C]);if(r.alignDelimiters!==!1){const L=l(P);j[C]=L,(f[C]===void 0||L>f[C])&&(f[C]=L)}b.push(P)}u[m]=b,d[m]=j}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<p;)a[g]=Pg(o[g]);else{const b=Pg(o);for(;++g<p;)a[g]=b}g=-1;const v=[],w=[];for(;++g<p;){const b=a[g];let j="",C="";b===99?(j=":",C=":"):b===108?j=":":b===114&&(C=":");let P=r.alignDelimiters===!1?1:Math.max(1,f[g]-j.length-C.length);const L=j+"-".repeat(P)+C;r.alignDelimiters!==!1&&(P=j.length+P+C.length,P>f[g]&&(f[g]=P),w[g]=P),v[g]=L}u.splice(1,0,v),d.splice(1,0,w),m=-1;const S=[];for(;++m<u.length;){const b=u[m],j=d[m];g=-1;const C=[];for(;++g<p;){const P=b[g]||"";let L="",M="";if(r.alignDelimiters!==!1){const H=f[g]-(j[g]||0),A=a[g];A===114?L=" ".repeat(H):A===99?H%2?(L=" ".repeat(H/2+.5),M=" ".repeat(H/2-.5)):(L=" ".repeat(H/2),M=L):M=" ".repeat(H)}r.delimiterStart!==!1&&!g&&C.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&P==="")&&(r.delimiterStart!==!1||g)&&C.push(" "),r.alignDelimiters!==!1&&C.push(L),C.push(P),r.alignDelimiters!==!1&&C.push(M),r.padding!==!1&&C.push(" "),(r.delimiterEnd!==!1||g!==p-1)&&C.push("|")}S.push(r.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return S.join(`
|
|
858
|
+
`)}function qI(e){return e==null?"":String(e)}function Pg(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 WI(e,t,r,o){const l=r.enter("blockquote"),a=r.createTracker(o);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),GI);return l(),u}function GI(e,t,r){return">"+(r?"":" ")+e}function JI(e,t){return Ag(e,t.inConstruct,!0)&&!Ag(e,t.notInConstruct,!1)}function Ag(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let o=-1;for(;++o<t.length;)if(e.includes(t[o]))return!0;return!1}function Lg(e,t,r,o){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
859
|
+
`&&JI(r.stack,r.unsafe[l]))return/[ \t]/.test(o.before)?"":" ";return`\\
|
|
860
|
+
`}function KI(e,t){const r=String(e);let o=r.indexOf(t),l=o,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===l?++a>u&&(u=a):a=1,l=o+t.length,o=r.indexOf(t,l);return u}function QI(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 YI(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 XI(e,t,r,o){const l=YI(r),a=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(QI(e,r)){const g=r.enter("codeIndented"),v=r.indentLines(a,ZI);return g(),v}const d=r.createTracker(o),f=l.repeat(Math.max(KI(a,l)+1,3)),p=r.enter("codeFenced");let m=d.move(f);if(e.lang){const g=r.enter(`codeFencedLang${u}`);m+=d.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${u}`);m+=d.move(" "),m+=d.move(r.safe(e.meta,{before:m,after:`
|
|
861
861
|
`,encode:["`"],...d.current()})),g()}return m+=d.move(`
|
|
862
862
|
`),a&&(m+=d.move(a+`
|
|
863
|
-
`)),m+=d.move(f),p(),m}function
|
|
864
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),u(),p}function
|
|
863
|
+
`)),m+=d.move(f),p(),m}function ZI(e,t,r){return(r?"":" ")+e}function gf(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 eP(e,t,r,o){const l=gf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("[");return p+=f.move(r.safe(r.associationId(e),{before:p,after:"]",...f.current()})),p+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":`
|
|
864
|
+
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),u(),p}function tP(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 ll(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ua(e,t,r){const o=Vi(e),l=Vi(t);return o===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===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}}w0.peek=nP;function w0(e,t,r,o){const l=tP(r),a=r.enter("emphasis"),u=r.createTracker(o),d=u.move(l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),m=ua(o.before.charCodeAt(o.before.length-1),p,l);m.inside&&(f=ll(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=ua(o.after.charCodeAt(0),g,l);v.inside&&(f=f.slice(0,-1)+ll(g));const w=u.move(l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function nP(e,t,r){return r.options.emphasis||"*"}function rP(e,t){let r=!1;return hf(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return r=!0,vd}),!!((!e.depth||e.depth<3)&&sf(e)&&(t.options.setext||r))}function iP(e,t,r,o){const l=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(o);if(rP(e,r)){const m=r.enter("headingSetext"),g=r.enter("phrasing"),v=r.containerPhrasing(e,{...a.current(),before:`
|
|
865
865
|
`,after:`
|
|
866
866
|
`});return g(),m(),v+`
|
|
867
867
|
`+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
868
868
|
`))+1))}const u="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
|
|
869
|
-
`,...a.current()});return/^[\t ]/.test(p)&&(p=ll(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}
|
|
869
|
+
`,...a.current()});return/^[\t ]/.test(p)&&(p=ll(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}k0.peek=oP;function k0(e){return e.value||""}function oP(){return"<"}S0.peek=lP;function S0(e,t,r,o){const l=gf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(o);let p=f.move("![");return p+=f.move(r.safe(e.alt,{before:p,after:"]",...f.current()})),p+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),p+=f.move(")"),u(),p}function lP(){return"!"}b0.peek=sP;function b0(e,t,r,o){const l=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("![");const p=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),l==="full"||!p||p!==g?f+=d.move(g+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function sP(){return"!"}C0.peek=aP;function C0(e,t,r){let o=e.value||"",l="`",a=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(o);)l+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(o);){let p=f.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(f.index+1)}}return l+o+l}function aP(){return"`"}function E0(e,t){const r=sf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}j0.peek=uP;function j0(e,t,r,o){const l=gf(r),a=l==='"'?"Quote":"Apostrophe",u=r.createTracker(o);let d,f;if(E0(e,r)){const m=r.stack;r.stack=[],d=r.enter("autolink");let g=u.move("<");return g+=u.move(r.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),d(),r.stack=m,g}d=r.enter("link"),f=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(f=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=u.move(" "+l),p+=u.move(r.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),f()),p+=u.move(")"),d(),p}function uP(e,t,r){return E0(e,r)?"<":"["}T0.peek=cP;function T0(e,t,r,o){const l=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(o);let f=d.move("[");const p=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const g=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,a(),l==="full"||!p||p!==g?f+=d.move(g+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function cP(){return"["}function yf(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 dP(e){const t=yf(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function fP(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 R0(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 pP(e,t,r,o){const l=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?fP(r):yf(r);const d=e.ordered?u==="."?")":".":dP(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),R0(r)===u&&m){let g=-1;for(;++g<e.children.length;){const v=e.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const p=r.containerFlow(e,o);return r.bulletLastUsed=u,r.bulletCurrent=a,l(),p}function hP(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 mP(e,t,r,o){const l=hP(r);let a=r.bulletCurrent||yf(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(o);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,d.current()),m);return f(),p;function m(g,v,w){return v?(w?"":" ".repeat(u))+g:(w?a:a+" ".repeat(u-a.length))+g}}function gP(e,t,r,o){const l=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,o);return a(),l(),u}const yP=Ta(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xP(e,t,r,o){return(e.children.some(function(u){return yP(u)})?r.containerPhrasing:r.containerFlow).call(r,e,o)}function vP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}N0.peek=wP;function N0(e,t,r,o){const l=vP(r),a=r.enter("strong"),u=r.createTracker(o),d=u.move(l+l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),m=ua(o.before.charCodeAt(o.before.length-1),p,l);m.inside&&(f=ll(p)+f.slice(1));const g=f.charCodeAt(f.length-1),v=ua(o.after.charCodeAt(0),g,l);v.inside&&(f=f.slice(0,-1)+ll(g));const w=u.move(l+l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m.outside},d+f+w}function wP(e,t,r){return r.options.strong||"*"}function kP(e,t,r,o){return r.safe(e.value,o)}function SP(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 bP(e,t,r){const o=(R0(r)+(r.options.ruleSpaces?" ":"")).repeat(SP(r));return r.options.ruleSpaces?o.slice(0,-1):o}const I0={blockquote:WI,break:Lg,code:XI,definition:eP,emphasis:w0,hardBreak:Lg,heading:iP,html:k0,image:S0,imageReference:b0,inlineCode:C0,link:j0,linkReference:T0,list:pP,listItem:mP,paragraph:gP,root:xP,strong:N0,text:kP,thematicBreak:bP};function CP(){return{enter:{table:EP,tableData:$g,tableHeader:$g,tableRow:TP},exit:{codeText:RP,table:jP,tableData:Uc,tableHeader:Uc,tableRow:Uc}}}function EP(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function jP(e){this.exit(e),this.data.inTable=void 0}function TP(e){this.enter({type:"tableRow",children:[]},e)}function Uc(e){this.exit(e)}function $g(e){this.enter({type:"tableCell",children:[]},e)}function RP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,NP));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function NP(e,t){return t==="|"?t:e}function IP(e){const t=e||{},r=t.tableCellPadding,o=t.tablePipeAlign,l=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
870
870
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:f,tableRow:d}};function u(w,S,b,j){return p(m(w,b,j),w.align)}function d(w,S,b,j){const C=g(w,b,j),P=p([C]);return P.slice(0,P.indexOf(`
|
|
871
|
-
`))}function f(w,S,b,j){const C=b.enter("tableCell"),P=b.enter("phrasing"),L=b.containerPhrasing(w,{...j,before:a,after:a});return P(),C(),L}function p(w,S){return FI(w,{align:S,alignDelimiters:o,padding:r,stringLength:l})}function m(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("table");for(;++C<j.length;)P[C]=g(j[C],S,b);return L(),P}function g(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("tableRow");for(;++C<j.length;)P[C]=f(j[C],w,S,b);return L(),P}function v(w,S,b){let j=T0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function TP(){return{exit:{taskListCheckValueChecked:Lg,taskListCheckValueUnchecked:Lg,paragraph:NP}}}function RP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:IP}}}function Lg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function NP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const l=t.children;let a=-1,u;for(;++a<l.length;){const d=l[a];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function IP(e,t,r,o){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(o);a&&d.move(u);let f=T0.listItem(e,t,r,{...o,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(m){return m+u}}function PP(){return[uI(),II(),$I(),wP(),TP()]}function AP(e){return{extensions:[cI(),PI(e),_I(),jP(e),RP()]}}const LP={tokenize:MP,partial:!0},R0={tokenize:FP,partial:!0},N0={tokenize:BP,partial:!0},I0={tokenize:UP,partial:!0},$P={tokenize:VP,partial:!0},P0={name:"wwwAutolink",tokenize:DP,previous:L0},A0={name:"protocolAutolink",tokenize:OP,previous:$0},Zn={name:"emailAutolink",tokenize:zP,previous:_0},Un={};function _P(){return{text:Un}}let qr=48;for(;qr<123;)Un[qr]=Zn,qr++,qr===58?qr=65:qr===91&&(qr=97);Un[43]=Zn;Un[45]=Zn;Un[46]=Zn;Un[95]=Zn;Un[72]=[Zn,A0];Un[104]=[Zn,A0];Un[87]=[Zn,P0];Un[119]=[Zn,P0];function zP(e,t,r){const o=this;let l,a;return u;function u(g){return!kd(g)||!_0.call(o,o.previous)||gf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return kd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check($P,m,p)(g):g===45||g===95||At(g)?(a=!0,e.consume(g),f):m(g)}function p(g){return e.consume(g),l=!0,f}function m(g){return a&&l&&Ot(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function DP(e,t,r){const o=this;return l;function l(u){return u!==87&&u!==119||!L0.call(o,o.previous)||gf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LP,e.attempt(R0,e.attempt(N0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function OP(e,t,r){const o=this;let l="",a=!1;return u;function u(g){return(g===72||g===104)&&$0.call(o,o.previous)&&!gf(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ot(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(g),f}return r(g)}function f(g){return g===47?(e.consume(g),a?p:(a=!0,f)):r(g)}function p(g){return g===null||ra(g)||He(g)||Xr(g)||Sa(g)?r(g):e.attempt(R0,e.attempt(N0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function MP(e,t,r){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function FP(e,t,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(I0,f,d)(p):p===null||He(p)||Xr(p)||p!==45&&Sa(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function f(p){return l||o||!a?r(p):t(p)}}function BP(e,t){let r=0,o=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(I0,t,a)(u):u===null||He(u)||Xr(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function UP(e,t,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),o):d===38?(e.consume(d),a):d===93?(e.consume(d),l):d===60||d===null||He(d)||Xr(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||Xr(d)?t(d):o(d)}function a(d){return Ot(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),o):Ot(d)?(e.consume(d),u):r(d)}}function VP(e,t,r){return o;function o(a){return e.consume(a),l}function l(a){return At(a)?r(a):t(a)}}function L0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function $0(e){return!Ot(e)}function _0(e){return!(e===47||kd(e))}function kd(e){return e===43||e===45||e===46||e===95||At(e)}function gf(e){let t=e.length,r=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const HP={tokenize:XP,partial:!0};function qP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:KP,continuation:{tokenize:QP},exit:YP}},text:{91:{name:"gfmFootnoteCall",tokenize:JP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WP,resolveTo:GP}}}}function WP(e,t,r){const o=this;let l=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const f=o.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=Rn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function GP(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...d),e}function JP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(a>999||g===93&&!u||g===null||g===91||He(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Rn(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return He(g)||(u=!0),a++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,p):p(g)}}function KP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(u>999||S===93&&!d||S===null||S===91||He(S))return r(S);if(S===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Rn(o.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return He(S)||(d=!0),u++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,m):m(S)}function v(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(a)||l.push(a),ze(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return t(S)}}function QP(e,t,r){return e.check(hl,t,e.attempt(HP,t,r))}function YP(e){e.exit("gfmFootnoteDefinition")}function XP(e,t,r){const o=this;return ze(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function ZP(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",m,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",g,d]],w=d.parser.constructs.insideSpan.null;w&&sn(v,v.length,0,ba(w,u.slice(p+1,f),d)),sn(v,v.length,0,[["exit",g,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),sn(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,m=this.events;let g=0;return v;function v(S){return p===126&&m[m.length-1][1].type!=="characterEscape"?f(S):(u.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const b=Vi(p);if(S===126)return g>1?f(S):(u.consume(S),g++,w);if(g<2&&!r)return f(S);const j=u.exit("strikethroughSequenceTemporary"),C=Vi(S);return j._open=!C||C===2&&!!b,j._close=!b||b===2&&!!C,d(S)}}}class e4{constructor(){this.map=[]}add(t,r,o){t4(this,t,r,o)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];o.push(t.slice()),t.length=0;let l=o.pop();for(;l;){for(const a of l)t.push(a);l=o.pop()}this.map.length=0}}function t4(e,t,r,o){let l=0;if(!(r===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...o);return}l+=1}e.map.push([t,r,o])}}function n4(e,t){let r=!1;const o=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return o}function r4(){return{flow:{null:{name:"table",tokenize:i4,resolveAll:o4}}}}function i4(e,t,r){const o=this;let l=0,a=0,u;return d;function d(D){let ne=o.events.length-1;for(;ne>-1;){const re=o.events[ne][1].type;if(re==="lineEnding"||re==="linePrefix")ne--;else break}const se=ne>-1?o.events[ne][1].type:null,oe=se==="tableHead"||se==="tableRow"?A:f;return oe===A&&o.parser.lazy[o.now().line]?r(D):oe(D)}function f(D){return e.enter("tableHead"),e.enter("tableRow"),p(D)}function p(D){return D===124||(u=!0,a+=1),m(D)}function m(D){return D===null?r(D):we(D)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),w):r(D):Le(D)?ze(e,m,"whitespace")(D):(a+=1,u&&(u=!1,l+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||He(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?v:g)}function v(D){return D===92||D===124?(e.consume(D),g):g(D)}function w(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(D):(e.enter("tableDelimiterRow"),u=!1,Le(D)?ze(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?j(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),b):H(D)}function b(D){return Le(D)?ze(e,j,"whitespace")(D):j(D)}function j(D){return D===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(a+=1,C(D)):D===null||we(D)?M(D):H(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),P(D)):H(D)}function P(D){return D===45?(e.consume(D),P):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(D))}function L(D){return Le(D)?ze(e,M,"whitespace")(D):M(D)}function M(D){return D===124?S(D):D===null||we(D)?!u||l!==a?H(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):H(D)}function H(D){return r(D)}function A(D){return e.enter("tableRow"),q(D)}function q(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),q):D===null||we(D)?(e.exit("tableRow"),t(D)):Le(D)?ze(e,q,"whitespace")(D):(e.enter("data"),K(D))}function K(D){return D===null||D===124||He(D)?(e.exit("data"),q(D)):(e.consume(D),D===92?le:K)}function le(D){return D===92||D===124?(e.consume(D),K):K(D)}}function o4(e,t){let r=-1,o=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,m,g;const v=new e4;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&($g(v,t,f,p,m),m=void 0,f=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",m,t]])),l=S.type==="tableDelimiterRow"?2:m?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g),a=[0,0,0,0]),u[2]=r)):S.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],g=$s(v,t,a,l,void 0,g)),a=u,u=[a[1],r,0,0])):S.type==="tableHead"?(d=!0,f=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],g=$s(v,t,a,l,r,g)):u[1]!==0&&(g=$s(v,t,u,l,r,g)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&$g(v,t,f,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=n4(t.events,r))}return e}function $s(e,t,r,o,l,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=Ni(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=Ni(t.events,r[2]),m=Ni(t.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),o!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,b=r[3]-r[2]-1;e.add(S,b,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return l!==void 0&&(a.end=Object.assign({},Ni(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function $g(e,t,r,o,l){const a=[],u=Ni(t.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,t])),o.end=Object.assign({},u),a.push(["exit",o,t]),e.add(r+1,0,a)}function Ni(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const l4={name:"tasklistCheck",tokenize:a4};function s4(){return{text:{91:l4}}}function a4(e,t,r){const o=this;return l;function l(f){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return He(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return we(f)?t(f):Le(f)?e.check({tokenize:u4},t,r)(f):r(f)}}function u4(e,t,r){return ze(e,o,"whitespace");function o(l){return l===null?r(l):t(l)}}function c4(e){return Wv([_P(),qP(),ZP(e),r4(),s4()])}const d4={};function qi(e){const t=this,r=e||d4,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(c4(r)),a.push(PP()),u.push(AP(r))}const eo=R.div`
|
|
871
|
+
`))}function f(w,S,b,j){const C=b.enter("tableCell"),P=b.enter("phrasing"),L=b.containerPhrasing(w,{...j,before:a,after:a});return P(),C(),L}function p(w,S){return HI(w,{align:S,alignDelimiters:o,padding:r,stringLength:l})}function m(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("table");for(;++C<j.length;)P[C]=g(j[C],S,b);return L(),P}function g(w,S,b){const j=w.children;let C=-1;const P=[],L=S.enter("tableRow");for(;++C<j.length;)P[C]=f(j[C],w,S,b);return L(),P}function v(w,S,b){let j=I0.inlineCode(w,S,b);return b.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function PP(){return{exit:{taskListCheckValueChecked:_g,taskListCheckValueUnchecked:_g,paragraph:LP}}}function AP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$P}}}function _g(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function LP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const o=r.children[0];if(o&&o.type==="text"){const l=t.children;let a=-1,u;for(;++a<l.length;){const d=l[a];if(d.type==="paragraph"){u=d;break}}u===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():r.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function $P(e,t,r,o){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(o);a&&d.move(u);let f=I0.listItem(e,t,r,{...o,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(m){return m+u}}function _P(){return[pI(),$I(),OI(),CP(),PP()]}function zP(e){return{extensions:[hI(),_I(e),MI(),IP(e),AP()]}}const DP={tokenize:VP,partial:!0},P0={tokenize:HP,partial:!0},A0={tokenize:qP,partial:!0},L0={tokenize:WP,partial:!0},OP={tokenize:GP,partial:!0},$0={name:"wwwAutolink",tokenize:BP,previous:z0},_0={name:"protocolAutolink",tokenize:UP,previous:D0},Zn={name:"emailAutolink",tokenize:FP,previous:O0},Un={};function MP(){return{text:Un}}let qr=48;for(;qr<123;)Un[qr]=Zn,qr++,qr===58?qr=65:qr===91&&(qr=97);Un[43]=Zn;Un[45]=Zn;Un[46]=Zn;Un[95]=Zn;Un[72]=[Zn,_0];Un[104]=[Zn,_0];Un[87]=[Zn,$0];Un[119]=[Zn,$0];function FP(e,t,r){const o=this;let l,a;return u;function u(g){return!bd(g)||!O0.call(o,o.previous)||xf(o.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(g))}function d(g){return bd(g)?(e.consume(g),d):g===64?(e.consume(g),f):r(g)}function f(g){return g===46?e.check(OP,m,p)(g):g===45||g===95||At(g)?(a=!0,e.consume(g),f):m(g)}function p(g){return e.consume(g),l=!0,f}function m(g){return a&&l&&Ot(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):r(g)}}function BP(e,t,r){const o=this;return l;function l(u){return u!==87&&u!==119||!z0.call(o,o.previous)||xf(o.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(DP,e.attempt(P0,e.attempt(A0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function UP(e,t,r){const o=this;let l="",a=!1;return u;function u(g){return(g===72||g===104)&&D0.call(o,o.previous)&&!xf(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),d):r(g)}function d(g){if(Ot(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),d;if(g===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(g),f}return r(g)}function f(g){return g===47?(e.consume(g),a?p:(a=!0,f)):r(g)}function p(g){return g===null||oa(g)||He(g)||Xr(g)||Ca(g)?r(g):e.attempt(P0,e.attempt(A0,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function VP(e,t,r){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function HP(e,t,r){let o,l,a;return u;function u(p){return p===46||p===95?e.check(L0,f,d)(p):p===null||He(p)||Xr(p)||p!==45&&Ca(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function f(p){return l||o||!a?r(p):t(p)}}function qP(e,t){let r=0,o=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&o<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(L0,t,a)(u):u===null||He(u)||Xr(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&o++,e.consume(u),l}}function WP(e,t,r){return o;function o(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),o):d===38?(e.consume(d),a):d===93?(e.consume(d),l):d===60||d===null||He(d)||Xr(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||Xr(d)?t(d):o(d)}function a(d){return Ot(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),o):Ot(d)?(e.consume(d),u):r(d)}}function GP(e,t,r){return o;function o(a){return e.consume(a),l}function l(a){return At(a)?r(a):t(a)}}function z0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function D0(e){return!Ot(e)}function O0(e){return!(e===47||bd(e))}function bd(e){return e===43||e===45||e===46||e===95||At(e)}function xf(e){let t=e.length,r=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){r=!0;break}if(o._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const JP={tokenize:n4,partial:!0};function KP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ZP,continuation:{tokenize:e4},exit:t4}},text:{91:{name:"gfmFootnoteCall",tokenize:XP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:QP,resolveTo:YP}}}}function QP(e,t,r){const o=this;let l=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const f=o.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=Rn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function YP(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...d),e}function XP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,u;return d;function d(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),f}function f(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(a>999||g===93&&!u||g===null||g===91||He(g))return r(g);if(g===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Rn(o.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(g)}return He(g)||(u=!0),a++,e.consume(g),g===92?m:p}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,p):p(g)}}function ZP(e,t,r){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(u>999||S===93&&!d||S===null||S===91||He(S))return r(S);if(S===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return a=Rn(o.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return He(S)||(d=!0),u++,e.consume(S),S===92?g:m}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,m):m(S)}function v(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(a)||l.push(a),ze(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return t(S)}}function e4(e,t,r){return e.check(gl,t,e.attempt(JP,t,r))}function t4(e){e.exit("gfmFootnoteDefinition")}function n4(e,t,r){const o=this;return ze(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function r4(e){let r=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",m,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",g,d]],w=d.parser.constructs.insideSpan.null;w&&sn(v,v.length,0,Ea(w,u.slice(p+1,f),d)),sn(v,v.length,0,[["exit",g,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),sn(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,m=this.events;let g=0;return v;function v(S){return p===126&&m[m.length-1][1].type!=="characterEscape"?f(S):(u.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const b=Vi(p);if(S===126)return g>1?f(S):(u.consume(S),g++,w);if(g<2&&!r)return f(S);const j=u.exit("strikethroughSequenceTemporary"),C=Vi(S);return j._open=!C||C===2&&!!b,j._close=!b||b===2&&!!C,d(S)}}}class i4{constructor(){this.map=[]}add(t,r,o){o4(this,t,r,o)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const o=[];for(;r>0;)r-=1,o.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];o.push(t.slice()),t.length=0;let l=o.pop();for(;l;){for(const a of l)t.push(a);l=o.pop()}this.map.length=0}}function o4(e,t,r,o){let l=0;if(!(r===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...o);return}l+=1}e.map.push([t,r,o])}}function l4(e,t){let r=!1;const o=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return o}function s4(){return{flow:{null:{name:"table",tokenize:a4,resolveAll:u4}}}}function a4(e,t,r){const o=this;let l=0,a=0,u;return d;function d(D){let ne=o.events.length-1;for(;ne>-1;){const re=o.events[ne][1].type;if(re==="lineEnding"||re==="linePrefix")ne--;else break}const se=ne>-1?o.events[ne][1].type:null,oe=se==="tableHead"||se==="tableRow"?A:f;return oe===A&&o.parser.lazy[o.now().line]?r(D):oe(D)}function f(D){return e.enter("tableHead"),e.enter("tableRow"),p(D)}function p(D){return D===124||(u=!0,a+=1),m(D)}function m(D){return D===null?r(D):we(D)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),w):r(D):Le(D)?ze(e,m,"whitespace")(D):(a+=1,u&&(u=!1,l+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||He(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?v:g)}function v(D){return D===92||D===124?(e.consume(D),g):g(D)}function w(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?r(D):(e.enter("tableDelimiterRow"),u=!1,Le(D)?ze(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?j(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),b):H(D)}function b(D){return Le(D)?ze(e,j,"whitespace")(D):j(D)}function j(D){return D===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):D===45?(a+=1,C(D)):D===null||we(D)?M(D):H(D)}function C(D){return D===45?(e.enter("tableDelimiterFiller"),P(D)):H(D)}function P(D){return D===45?(e.consume(D),P):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(D))}function L(D){return Le(D)?ze(e,M,"whitespace")(D):M(D)}function M(D){return D===124?S(D):D===null||we(D)?!u||l!==a?H(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):H(D)}function H(D){return r(D)}function A(D){return e.enter("tableRow"),q(D)}function q(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),q):D===null||we(D)?(e.exit("tableRow"),t(D)):Le(D)?ze(e,q,"whitespace")(D):(e.enter("data"),K(D))}function K(D){return D===null||D===124||He(D)?(e.exit("data"),q(D)):(e.consume(D),D===92?le:K)}function le(D){return D===92||D===124?(e.consume(D),K):K(D)}}function u4(e,t){let r=-1,o=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,m,g;const v=new i4;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(d=!1,f!==0&&(zg(v,t,f,p,m),m=void 0,f=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},v.add(r,0,[["enter",m,t]])),l=S.type==="tableDelimiterRow"?2:m?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=zs(v,t,a,l,void 0,g),a=[0,0,0,0]),u[2]=r)):S.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(u[0]=u[1],g=zs(v,t,a,l,void 0,g)),a=u,u=[a[1],r,0,0])):S.type==="tableHead"?(d=!0,f=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],g=zs(v,t,a,l,r,g)):u[1]!==0&&(g=zs(v,t,u,l,r,g)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&zg(v,t,f,p,m),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=l4(t.events,r))}return e}function zs(e,t,r,o,l,a){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=Ni(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=Ni(t.events,r[2]),m=Ni(t.events,r[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,t]]),o!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,b=r[3]-r[2]-1;e.add(S,b,[])}}e.add(r[3]+1,0,[["exit",g,t]])}return l!==void 0&&(a.end=Object.assign({},Ni(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function zg(e,t,r,o,l){const a=[],u=Ni(t.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,t])),o.end=Object.assign({},u),a.push(["exit",o,t]),e.add(r+1,0,a)}function Ni(e,t){const r=e[t],o=r[0]==="enter"?"start":"end";return r[1][o]}const c4={name:"tasklistCheck",tokenize:f4};function d4(){return{text:{91:c4}}}function f4(e,t,r){const o=this;return l;function l(f){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return He(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return we(f)?t(f):Le(f)?e.check({tokenize:p4},t,r)(f):r(f)}}function p4(e,t,r){return ze(e,o,"whitespace");function o(l){return l===null?r(l):t(l)}}function h4(e){return Kv([MP(),KP(),r4(e),s4(),d4()])}const m4={};function qi(e){const t=this,r=e||m4,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(h4(r)),a.push(_P()),u.push(zP(r))}const eo=R.div`
|
|
872
872
|
display: flex;
|
|
873
873
|
&[data-type='user'] {
|
|
874
874
|
justify-content: flex-end;
|
|
@@ -877,7 +877,7 @@ Error generating stack: `+x.message+`
|
|
|
877
877
|
&[data-type='assistant'] {
|
|
878
878
|
justify-content: flex-start;
|
|
879
879
|
}
|
|
880
|
-
`,
|
|
880
|
+
`,M0=R.div`
|
|
881
881
|
color: ${e=>e.theme.colors.text};
|
|
882
882
|
border-radius: 12px;
|
|
883
883
|
padding: 8px 12px;
|
|
@@ -895,13 +895,13 @@ Error generating stack: `+x.message+`
|
|
|
895
895
|
&[data-edit-mode='true'] {
|
|
896
896
|
box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
|
|
897
897
|
}
|
|
898
|
-
`,
|
|
898
|
+
`,g4=R.div`
|
|
899
899
|
font-weight: bold;
|
|
900
900
|
margin-bottom: 4px;
|
|
901
901
|
display: flex;
|
|
902
902
|
justify-content: space-between;
|
|
903
903
|
align-items: center;
|
|
904
|
-
`,
|
|
904
|
+
`,y4=R.div`
|
|
905
905
|
word-wrap: break-word;
|
|
906
906
|
font-family: inherit;
|
|
907
907
|
margin: 0;
|
|
@@ -959,7 +959,7 @@ Error generating stack: `+x.message+`
|
|
|
959
959
|
margin: 8px 0;
|
|
960
960
|
color: ${e=>e.theme.colors.textSecondary};
|
|
961
961
|
}
|
|
962
|
-
`,
|
|
962
|
+
`,x4=R.textarea`
|
|
963
963
|
width: 100%;
|
|
964
964
|
min-height: 100px;
|
|
965
965
|
padding: 8px;
|
|
@@ -983,7 +983,7 @@ Error generating stack: `+x.message+`
|
|
|
983
983
|
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
984
984
|
color: ${e=>e.theme.colors.userMessageText};
|
|
985
985
|
}
|
|
986
|
-
`,
|
|
986
|
+
`,v4=R.div`
|
|
987
987
|
display: flex;
|
|
988
988
|
justify-content: space-between;
|
|
989
989
|
align-items: center;
|
|
@@ -995,14 +995,14 @@ Error generating stack: `+x.message+`
|
|
|
995
995
|
align-items: center;
|
|
996
996
|
gap: 8px;
|
|
997
997
|
}
|
|
998
|
-
`,
|
|
998
|
+
`,w4=R.div`
|
|
999
999
|
font-size: 0.8em;
|
|
1000
1000
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1001
1001
|
|
|
1002
1002
|
${eo}[data-type='user'] & {
|
|
1003
1003
|
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
1004
1004
|
}
|
|
1005
|
-
`,
|
|
1005
|
+
`,k4=R.span`
|
|
1006
1006
|
font-size: 0.8em;
|
|
1007
1007
|
color: ${e=>e.theme.colors.primary};
|
|
1008
1008
|
cursor: pointer;
|
|
@@ -1011,11 +1011,11 @@ Error generating stack: `+x.message+`
|
|
|
1011
1011
|
&:hover {
|
|
1012
1012
|
color: ${e=>e.theme.colors.primaryHover};
|
|
1013
1013
|
}
|
|
1014
|
-
`,
|
|
1014
|
+
`,S4=R.div`
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
gap: 8px;
|
|
1017
1017
|
margin-top: 8px;
|
|
1018
|
-
`,
|
|
1018
|
+
`,vf=R.button`
|
|
1019
1019
|
padding: 4px 8px;
|
|
1020
1020
|
border: none;
|
|
1021
1021
|
border-radius: 4px;
|
|
@@ -1027,7 +1027,7 @@ Error generating stack: `+x.message+`
|
|
|
1027
1027
|
opacity: 0.5;
|
|
1028
1028
|
cursor: not-allowed;
|
|
1029
1029
|
}
|
|
1030
|
-
`,
|
|
1030
|
+
`,b4=R(vf)`
|
|
1031
1031
|
background-color: transparent;
|
|
1032
1032
|
color: ${e=>e.theme.colors.primary};
|
|
1033
1033
|
|
|
@@ -1041,21 +1041,21 @@ Error generating stack: `+x.message+`
|
|
|
1041
1041
|
background-color: ${e=>e.theme.colors.userMessageText}20;
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
`,
|
|
1044
|
+
`,C4=R(vf)`
|
|
1045
1045
|
background-color: ${e=>e.theme.colors.primary};
|
|
1046
1046
|
color: ${e=>e.theme.colors.buttonText};
|
|
1047
1047
|
|
|
1048
1048
|
&:hover:not(:disabled) {
|
|
1049
1049
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1050
1050
|
}
|
|
1051
|
-
`,
|
|
1051
|
+
`,E4=R(vf)`
|
|
1052
1052
|
background-color: transparent;
|
|
1053
1053
|
color: ${e=>e.theme.colors.error};
|
|
1054
1054
|
|
|
1055
1055
|
&:hover:not(:disabled) {
|
|
1056
1056
|
background-color: ${e=>e.theme.colors.error}20;
|
|
1057
1057
|
}
|
|
1058
|
-
`,
|
|
1058
|
+
`,j4=R.div`
|
|
1059
1059
|
width: 16px;
|
|
1060
1060
|
height: 16px;
|
|
1061
1061
|
border: 2px solid ${e=>e.theme.colors.primary};
|
|
@@ -1074,11 +1074,11 @@ Error generating stack: `+x.message+`
|
|
|
1074
1074
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1075
1075
|
margin-left: 8px;
|
|
1076
1076
|
font-style: italic;
|
|
1077
|
-
`;const
|
|
1077
|
+
`;const T4=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,R4=e=>{var r;const t=e.filter(o=>{var l;return o.type===Cr.ASSISTANT&&typeof((l=o.data)==null?void 0:l.contextSize)=="number"});if(t.length!==0)return(r=t[t.length-1].data)==null?void 0:r.contextSize},N4=e=>{const t=R4(e),r=t!==void 0?T4(t):"Context size N/A";return{contextSize:t,formattedSize:r}},I4=R.span`
|
|
1078
1078
|
font-size: 12px;
|
|
1079
1079
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1080
1080
|
white-space: nowrap;
|
|
1081
|
-
`,
|
|
1081
|
+
`,F0=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:r}=N4(e);return y.jsx(I4,{className:t,children:r})},P4=R.div`
|
|
1082
1082
|
font-weight: bold;
|
|
1083
1083
|
font-size: 0.9em;
|
|
1084
1084
|
color: ${e=>e.theme.colors.text};
|
|
@@ -1178,8 +1178,8 @@ Error generating stack: `+x.message+`
|
|
|
1178
1178
|
}
|
|
1179
1179
|
`;R.div`
|
|
1180
1180
|
margin: 16px 0;
|
|
1181
|
-
`;function Nr(){}Nr.prototype={diff:function(t,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=l.callback;typeof l=="function"&&(a=l,l={}),this.options=l;var u=this;function d(M){return a?(setTimeout(function(){a(void 0,M)},0),!0):M}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,p=t.length,m=1,g=f+p;l.maxEditLength&&(g=Math.min(g,l.maxEditLength));var v=(o=l.timeout)!==null&&o!==void 0?o:1/0,w=Date.now()+v,S=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(S[0],r,t,0);if(S[0].oldPos+1>=p&&b+1>=f)return d([{value:this.join(r),count:r.length}]);var j=-1/0,C=1/0;function P(){for(var M=Math.max(j,-m);M<=Math.min(C,m);M+=2){var H=void 0,A=S[M-1],q=S[M+1];A&&(S[M-1]=void 0);var K=!1;if(q){var le=q.oldPos-M;K=q&&0<=le&&le<f}var D=A&&A.oldPos+1<p;if(!K&&!D){S[M]=void 0;continue}if(!D||K&&A.oldPos+1<q.oldPos?H=u.addToPath(q,!0,void 0,0):H=u.addToPath(A,void 0,!0,1),b=u.extractCommon(H,r,t,M),H.oldPos+1>=p&&b+1>=f)return d(
|
|
1182
|
-
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var l=r[o];o%2&&!this.options.newlineIsToken?t[t.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),t.push(l))}return t};function
|
|
1181
|
+
`;function Nr(){}Nr.prototype={diff:function(t,r){var o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=l.callback;typeof l=="function"&&(a=l,l={}),this.options=l;var u=this;function d(M){return a?(setTimeout(function(){a(void 0,M)},0),!0):M}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,p=t.length,m=1,g=f+p;l.maxEditLength&&(g=Math.min(g,l.maxEditLength));var v=(o=l.timeout)!==null&&o!==void 0?o:1/0,w=Date.now()+v,S=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(S[0],r,t,0);if(S[0].oldPos+1>=p&&b+1>=f)return d([{value:this.join(r),count:r.length}]);var j=-1/0,C=1/0;function P(){for(var M=Math.max(j,-m);M<=Math.min(C,m);M+=2){var H=void 0,A=S[M-1],q=S[M+1];A&&(S[M-1]=void 0);var K=!1;if(q){var le=q.oldPos-M;K=q&&0<=le&&le<f}var D=A&&A.oldPos+1<p;if(!K&&!D){S[M]=void 0;continue}if(!D||K&&A.oldPos+1<q.oldPos?H=u.addToPath(q,!0,void 0,0):H=u.addToPath(A,void 0,!0,1),b=u.extractCommon(H,r,t,M),H.oldPos+1>=p&&b+1>=f)return d(A4(u,H.lastComponent,r,t,u.useLongestToken));S[M]=H,H.oldPos+1>=p&&(C=Math.min(C,M-1)),b+1>=f&&(j=Math.max(j,M+1))}m++}if(a)(function M(){setTimeout(function(){if(m>g||Date.now()>w)return a();P()||M()},0)})();else for(;m<=g&&Date.now()<=w;){var L=P();if(L)return L}},addToPath:function(t,r,o,l){var a=t.lastComponent;return a&&a.added===r&&a.removed===o?{oldPos:t.oldPos+l,lastComponent:{count:a.count+1,added:r,removed:o,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+l,lastComponent:{count:1,added:r,removed:o,previousComponent:a}}},extractCommon:function(t,r,o,l){for(var a=r.length,u=o.length,d=t.oldPos,f=d-l,p=0;f+1<a&&d+1<u&&this.equals(r[f+1],o[d+1]);)f++,d++,p++;return p&&(t.lastComponent={count:p,previousComponent:t.lastComponent}),t.oldPos=d,f},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],o=0;o<t.length;o++)t[o]&&r.push(t[o]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function A4(e,t,r,o,l){for(var a=[],u;t;)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();for(var d=0,f=a.length,p=0,m=0;d<f;d++){var g=a[d];if(g.removed){if(g.value=e.join(o.slice(m,m+g.count)),m+=g.count,d&&a[d-1].added){var w=a[d-1];a[d-1]=a[d],a[d]=w}}else{if(!g.added&&l){var v=r.slice(p,p+g.count);v=v.map(function(b,j){var C=o[m+j];return C.length>b.length?C:b}),g.value=e.join(v)}else g.value=e.join(r.slice(p,p+g.count));p+=g.count,g.added||(m+=g.count)}}var S=a[f-1];return f>1&&typeof S.value=="string"&&(S.added||S.removed)&&e.equals("",S.value)&&(a[f-2].value+=S.value,a.pop()),a}var Dg=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Og=/\S/,B0=new Nr;B0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Og.test(e)&&!Og.test(t)};B0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Dg.test(t[r])&&Dg.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var wf=new Nr;wf.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1182
|
+
`));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var o=0;o<r.length;o++){var l=r[o];o%2&&!this.options.newlineIsToken?t[t.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),t.push(l))}return t};function L4(e,t,r){return wf.diff(e,t,r)}var $4=new Nr;$4.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var _4=new Nr;_4.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ks(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ks=function(t){return typeof t}:Ks=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}var z4=Object.prototype.toString,sl=new Nr;sl.useLongestToken=!0;sl.tokenize=wf.tokenize;sl.castInput=function(e){var t=this.options,r=t.undefinedReplacement,o=t.stringifyReplacer,l=o===void 0?function(a,u){return typeof u>"u"?r:u}:o;return typeof e=="string"?e:JSON.stringify(Cd(e,null,null,l),l," ")};sl.equals=function(e,t){return Nr.prototype.equals.call(sl,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Cd(e,t,r,o,l){t=t||[],r=r||[],o&&(e=o(l,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var u;if(z4.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),r.push(u),a=0;a<e.length;a+=1)u[a]=Cd(e[a],t,r,o,l);return t.pop(),r.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ks(e)==="object"&&e!==null){t.push(e),u={},r.push(u);var d=[],f;for(f in e)e.hasOwnProperty(f)&&d.push(f);for(d.sort(),a=0;a<d.length;a+=1)f=d[a],u[f]=Cd(e[f],t,r,o,f);t.pop(),r.pop()}else u=e;return u}var Ed=new Nr;Ed.tokenize=function(e){return e.slice()};Ed.join=Ed.removeEmpty=function(e){return e};const Qo=({content:e})=>{const[t,r]=I.useState(null),o=async()=>{try{await navigator.clipboard.writeText(e),r("success"),setTimeout(()=>r(null),2e3)}catch{r("error"),setTimeout(()=>r(null),2e3)}};return y.jsxs(U0,{onClick:o,status:t,children:[t===null&&y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[y.jsx("path",{d:"M4 4v8h8V4H4zm1 1h6v6H5V5z"}),y.jsx("path",{d:"M3 3v9h9V3H3zm1 1h7v7H4V4z"})]}),t==="success"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z"})}),t==="error"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM6.5 11a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm.75-6.5h1.5v4.5h-1.5V4.5z"})})]})},U0=R.button`
|
|
1183
1183
|
padding: 4px;
|
|
1184
1184
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1185
1185
|
border-radius: 4px;
|
|
@@ -1201,19 +1201,19 @@ Error generating stack: `+x.message+`
|
|
|
1201
1201
|
width: 16px;
|
|
1202
1202
|
height: 16px;
|
|
1203
1203
|
}
|
|
1204
|
-
`,
|
|
1204
|
+
`,D4=({oldContent:e,newContent:t})=>{const[r,o]=I.useState("unified"),l=L4(e??"",t),a=()=>y.jsxs(F4,{children:[y.jsx(Qo,{content:t}),l.map((p,m)=>y.jsx(Vc,{added:p.added,removed:p.removed,children:p.value},m))]}),u=()=>y.jsxs(B4,{children:[y.jsxs(Mg,{children:[e&&y.jsx(Qo,{content:e}),l.filter(p=>!p.added).map((p,m)=>y.jsx(Vc,{removed:p.removed,children:p.value},m))]}),y.jsxs(Mg,{children:[y.jsx(Qo,{content:t}),l.filter(p=>!p.removed).map((p,m)=>y.jsx(Vc,{added:p.added,children:p.value},m))]})]}),d=()=>y.jsxs(Fg,{children:[e&&y.jsx(Qo,{content:e}),y.jsx(Bg,{children:e})]}),f=()=>y.jsxs(Fg,{children:[y.jsx(Qo,{content:t}),y.jsx(Bg,{children:t})]});return y.jsxs(O4,{children:[y.jsxs(M4,{children:[y.jsx(Ds,{active:r==="unified",onClick:()=>o("unified"),children:"Unified"}),y.jsx(Ds,{active:r==="sideBySide",onClick:()=>o("sideBySide"),children:"Side by Side"}),y.jsx(Ds,{active:r==="old",onClick:()=>o("old"),children:"Old Content"}),y.jsx(Ds,{active:r==="new",onClick:()=>o("new"),children:"New Content"})]}),r==="unified"&&a(),r==="sideBySide"&&u(),r==="old"&&d(),r==="new"&&f()]})},O4=R.div`
|
|
1205
1205
|
margin: 16px 0;
|
|
1206
1206
|
position: relative;
|
|
1207
1207
|
|
|
1208
|
-
${
|
|
1208
|
+
${U0} {
|
|
1209
1209
|
position: absolute;
|
|
1210
1210
|
right: 20px;
|
|
1211
1211
|
}
|
|
1212
|
-
`,
|
|
1212
|
+
`,M4=R.div`
|
|
1213
1213
|
display: flex;
|
|
1214
1214
|
gap: 8px;
|
|
1215
1215
|
margin-bottom: 16px;
|
|
1216
|
-
`,
|
|
1216
|
+
`,Ds=R.button`
|
|
1217
1217
|
padding: 4px 8px;
|
|
1218
1218
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1219
1219
|
border-radius: 4px;
|
|
@@ -1225,7 +1225,7 @@ Error generating stack: `+x.message+`
|
|
|
1225
1225
|
&:hover {
|
|
1226
1226
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1227
1227
|
}
|
|
1228
|
-
`,
|
|
1228
|
+
`,F4=R.div`
|
|
1229
1229
|
margin: 16px 0;
|
|
1230
1230
|
padding: 8px;
|
|
1231
1231
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1233,12 +1233,12 @@ Error generating stack: `+x.message+`
|
|
|
1233
1233
|
background-color: ${e=>e.theme.colors.background};
|
|
1234
1234
|
max-height: 400px;
|
|
1235
1235
|
overflow-y: auto;
|
|
1236
|
-
`,
|
|
1236
|
+
`,B4=R.div`
|
|
1237
1237
|
display: grid;
|
|
1238
1238
|
grid-template-columns: 1fr 1fr;
|
|
1239
1239
|
gap: 16px;
|
|
1240
1240
|
margin: 16px 0;
|
|
1241
|
-
`,
|
|
1241
|
+
`,Mg=R.div`
|
|
1242
1242
|
position: relative;
|
|
1243
1243
|
padding: 8px;
|
|
1244
1244
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1246,7 +1246,7 @@ Error generating stack: `+x.message+`
|
|
|
1246
1246
|
background-color: ${e=>e.theme.colors.background};
|
|
1247
1247
|
max-height: 400px;
|
|
1248
1248
|
overflow-y: auto;
|
|
1249
|
-
`,
|
|
1249
|
+
`,Fg=R.div`
|
|
1250
1250
|
margin: 16px 0;
|
|
1251
1251
|
padding: 8px;
|
|
1252
1252
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1254,12 +1254,12 @@ Error generating stack: `+x.message+`
|
|
|
1254
1254
|
background-color: ${e=>e.theme.colors.background};
|
|
1255
1255
|
max-height: 400px;
|
|
1256
1256
|
overflow-y: auto;
|
|
1257
|
-
`,
|
|
1257
|
+
`,Bg=R.div`
|
|
1258
1258
|
white-space: pre-wrap;
|
|
1259
1259
|
font-family: monospace;
|
|
1260
1260
|
font-size: 0.9em;
|
|
1261
1261
|
line-height: 1.5;
|
|
1262
|
-
`,
|
|
1262
|
+
`,Vc=R.div`
|
|
1263
1263
|
white-space: pre-wrap;
|
|
1264
1264
|
font-family: monospace;
|
|
1265
1265
|
font-size: 0.9em;
|
|
@@ -1268,7 +1268,7 @@ Error generating stack: `+x.message+`
|
|
|
1268
1268
|
margin: 2px 0;
|
|
1269
1269
|
background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
|
|
1270
1270
|
color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
|
|
1271
|
-
`,
|
|
1271
|
+
`,V0=R.div`
|
|
1272
1272
|
display: flex;
|
|
1273
1273
|
flex-direction: column;
|
|
1274
1274
|
gap: 12px;
|
|
@@ -1384,11 +1384,11 @@ Error generating stack: `+x.message+`
|
|
|
1384
1384
|
text-align: center;
|
|
1385
1385
|
font-size: 0.8em;
|
|
1386
1386
|
transition: transform 0.2s ease;
|
|
1387
|
-
`,
|
|
1387
|
+
`,jd=R.div`
|
|
1388
1388
|
display: flex;
|
|
1389
1389
|
flex-direction: column;
|
|
1390
1390
|
gap: 12px;
|
|
1391
|
-
`,
|
|
1391
|
+
`,Td=R.div`
|
|
1392
1392
|
padding: 10px;
|
|
1393
1393
|
border-radius: 4px;
|
|
1394
1394
|
background: ${e=>e.theme.colors.backgroundSecondary}22;
|
|
@@ -1397,13 +1397,13 @@ Error generating stack: `+x.message+`
|
|
|
1397
1397
|
&:hover {
|
|
1398
1398
|
border-color: ${e=>e.theme.colors.primary}66;
|
|
1399
1399
|
}
|
|
1400
|
-
`,
|
|
1400
|
+
`,U4=R.div`
|
|
1401
1401
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1402
1402
|
font-size: 0.95em;
|
|
1403
1403
|
font-weight: 500;
|
|
1404
1404
|
margin-bottom: 6px;
|
|
1405
1405
|
margin-top: 8px;
|
|
1406
|
-
`,
|
|
1406
|
+
`,Rd=R.div`
|
|
1407
1407
|
font-family: monospace;
|
|
1408
1408
|
padding: 4px 8px;
|
|
1409
1409
|
padding-left: 0px;
|
|
@@ -1411,7 +1411,7 @@ Error generating stack: `+x.message+`
|
|
|
1411
1411
|
border-radius: 3px;
|
|
1412
1412
|
color: ${e=>e.theme.colors.codeText};
|
|
1413
1413
|
word-break: break-all;
|
|
1414
|
-
`,
|
|
1414
|
+
`,V4=R.div`
|
|
1415
1415
|
margin-top: 8px;
|
|
1416
1416
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1417
1417
|
font-size: 0.95em;
|
|
@@ -1470,14 +1470,14 @@ Error generating stack: `+x.message+`
|
|
|
1470
1470
|
margin: 8px 0;
|
|
1471
1471
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1472
1472
|
}
|
|
1473
|
-
`,
|
|
1473
|
+
`,H4=R.div`
|
|
1474
1474
|
font-size: 0.9em;
|
|
1475
1475
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1476
|
-
`,
|
|
1476
|
+
`,q4=R.div`
|
|
1477
1477
|
margin-top: 4px;
|
|
1478
1478
|
font-family: monospace;
|
|
1479
1479
|
color: ${e=>e.theme.colors.info};
|
|
1480
|
-
`,
|
|
1480
|
+
`,Nd=R.div`
|
|
1481
1481
|
display: inline-block;
|
|
1482
1482
|
margin-left: 8px;
|
|
1483
1483
|
padding: 2px 6px;
|
|
@@ -1493,7 +1493,7 @@ Error generating stack: `+x.message+`
|
|
|
1493
1493
|
background: ${e=>e.theme.colors.backgroundSecondary}44;
|
|
1494
1494
|
border-color: ${e=>e.theme.colors.primary}66;
|
|
1495
1495
|
}
|
|
1496
|
-
`,
|
|
1496
|
+
`,H0=R.div`
|
|
1497
1497
|
margin-top: 8px;
|
|
1498
1498
|
padding: 8px;
|
|
1499
1499
|
border-radius: 4px;
|
|
@@ -1512,7 +1512,7 @@ Error generating stack: `+x.message+`
|
|
|
1512
1512
|
overflow-x: auto;
|
|
1513
1513
|
white-space: pre-wrap;
|
|
1514
1514
|
word-wrap: break-word;
|
|
1515
|
-
`;const
|
|
1515
|
+
`;const W4=(e,t)=>{switch(e){case"createFile":return bt`
|
|
1516
1516
|
background: ${t.colors.info}22;
|
|
1517
1517
|
color: ${t.colors.info};
|
|
1518
1518
|
border-color: ${t.colors.info}44;
|
|
@@ -1541,7 +1541,7 @@ Error generating stack: `+x.message+`
|
|
|
1541
1541
|
background: ${t.colors.secondary}22;
|
|
1542
1542
|
color: ${t.colors.secondary};
|
|
1543
1543
|
border-color: ${t.colors.secondary}44;
|
|
1544
|
-
`}},
|
|
1544
|
+
`}},Qs=R.div`
|
|
1545
1545
|
display: inline-block;
|
|
1546
1546
|
padding: 2px 8px;
|
|
1547
1547
|
border-radius: 3px;
|
|
@@ -1549,31 +1549,31 @@ Error generating stack: `+x.message+`
|
|
|
1549
1549
|
font-weight: 500;
|
|
1550
1550
|
margin-bottom: 6px;
|
|
1551
1551
|
border: 1px solid;
|
|
1552
|
-
${e=>
|
|
1552
|
+
${e=>W4(e.variant,e.theme)}
|
|
1553
1553
|
`;R.div`
|
|
1554
1554
|
margin-top: 8px;
|
|
1555
1555
|
font-size: 0.9em;
|
|
1556
1556
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1557
|
-
`;const
|
|
1557
|
+
`;const G4=R.div`
|
|
1558
1558
|
display: flex;
|
|
1559
1559
|
gap: 8px;
|
|
1560
1560
|
align-items: center;
|
|
1561
1561
|
flex-wrap: wrap;
|
|
1562
|
-
`,
|
|
1562
|
+
`,J4=({data:{fileUpdates:e}})=>y.jsx("div",{children:e.map((t,r)=>y.jsx(kf,{data:{name:t.name,args:t.args}},r))}),kf=({data:{name:e,args:{filePath:t,explanation:r,oldContent:o,newContent:l}}})=>{const[a,u]=I.useState(!0),[d,f]=I.useState(!1);return y.jsxs(Q4,{children:[y.jsxs(Y4,{children:[y.jsx(Qs,{variant:e,children:e}),y.jsx(P4,{children:t}),y.jsxs(X4,{children:[y.jsx(Vg,{onClick:()=>u(!a),children:a?"Hide Explanation":"Explanation"}),(o||l)&&y.jsx(Vg,{onClick:()=>f(!d),children:d?"Hide Diff":"Show Diff"})]})]}),a&&r&&y.jsx(Z4,{children:y.jsx(Hi,{remarkPlugins:[qi],children:r})}),d&&y.jsx(eA,{children:y.jsx(D4,{oldContent:o,newContent:l})})]})},K4=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function ca(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name!="string"||!K4.includes(t.name)?!1:typeof t.args.filePath=="string"}function Ug(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.fileUpdates)&&t.fileUpdates.every(ca)}const Q4=R.div`
|
|
1563
1563
|
margin: 16px 0;
|
|
1564
1564
|
padding: 16px;
|
|
1565
1565
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1566
1566
|
border-radius: 8px;
|
|
1567
1567
|
background-color: ${e=>e.theme.colors.background};
|
|
1568
|
-
`,
|
|
1568
|
+
`,Y4=R.div`
|
|
1569
1569
|
display: flex;
|
|
1570
1570
|
gap: 8px;
|
|
1571
1571
|
align-items: center;
|
|
1572
|
-
`,
|
|
1572
|
+
`,X4=R.div`
|
|
1573
1573
|
display: flex;
|
|
1574
1574
|
gap: 8px;
|
|
1575
1575
|
margin-left: auto;
|
|
1576
|
-
`,
|
|
1576
|
+
`,Vg=R.button`
|
|
1577
1577
|
padding: 4px 8px;
|
|
1578
1578
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1579
1579
|
border-radius: 4px;
|
|
@@ -1585,7 +1585,7 @@ Error generating stack: `+x.message+`
|
|
|
1585
1585
|
&:hover {
|
|
1586
1586
|
background-color: ${e=>e.theme.colors.backgroundHover};
|
|
1587
1587
|
}
|
|
1588
|
-
`,
|
|
1588
|
+
`,Z4=R.div`
|
|
1589
1589
|
margin-top: 8px;
|
|
1590
1590
|
padding: 8px;
|
|
1591
1591
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1593,19 +1593,19 @@ Error generating stack: `+x.message+`
|
|
|
1593
1593
|
background-color: ${e=>e.theme.colors.background};
|
|
1594
1594
|
font-size: 0.9em;
|
|
1595
1595
|
line-height: 1.5;
|
|
1596
|
-
`,
|
|
1596
|
+
`,eA=R.div`
|
|
1597
1597
|
margin: 16px 0;
|
|
1598
|
-
`,
|
|
1598
|
+
`,tA=R.div`
|
|
1599
1599
|
display: grid;
|
|
1600
1600
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
1601
1601
|
gap: 8px;
|
|
1602
1602
|
max-width: 800px;
|
|
1603
1603
|
margin: 8px 0;
|
|
1604
|
-
`,
|
|
1604
|
+
`,nA=R.div`
|
|
1605
1605
|
position: relative;
|
|
1606
1606
|
width: 100%;
|
|
1607
1607
|
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
1608
|
-
`,
|
|
1608
|
+
`,rA=R.img`
|
|
1609
1609
|
position: absolute;
|
|
1610
1610
|
top: 0;
|
|
1611
1611
|
left: 0;
|
|
@@ -1614,7 +1614,7 @@ Error generating stack: `+x.message+`
|
|
|
1614
1614
|
object-fit: contain;
|
|
1615
1615
|
border-radius: 4px;
|
|
1616
1616
|
background-color: rgba(0, 0, 0, 0.05);
|
|
1617
|
-
`,
|
|
1617
|
+
`,iA=({message:e,visibleDataIds:t,toggleDataVisibility:r})=>{var P;const[o,l]=I.useState(!1),[a,u]=I.useState(e.content),[d,f]=I.useState(!1),[p,m]=I.useState(null),g=I.useRef(null);I.useEffect(()=>{o&&g.current&&(g.current.focus(),g.current.selectionStart=g.current.value.length,g.current.selectionEnd=g.current.value.length)},[o]);const v=()=>{u(e.content),l(!0),m(null)},w=()=>{l(!1),u(e.content),m(null)},S=L=>L.trim()?L===e.content?(m("No changes made to the message"),!1):!0:(m("Message content cannot be empty"),!1),b=async()=>{if(S(a)){f(!0),m(null);try{await Bb(e.id,a),l(!1)}catch(L){m(L instanceof Error?L.message:"Failed to save changes")}finally{f(!1)}}},j=L=>{L.key==="Enter"&&L.ctrlKey?b():L.key==="Escape"&&w()},C=e.type!=="system"&&((P=e.flags)==null?void 0:P.includes(Vd.MESSAGE_EDITABLE));return y.jsx(eo,{"data-type":e.type,children:y.jsxs(M0,{"data-edit-mode":o,children:[y.jsxs(g4,{children:[y.jsx("div",{children:e.type==="user"?"You":"Assistant"}),C&&!o&&y.jsx(b4,{onClick:v,title:"Edit message",children:"✎"})]}),o?y.jsxs(y.Fragment,{children:[y.jsx(x4,{ref:g,value:a,onChange:L=>u(L.target.value),onKeyDown:j,placeholder:"Enter your message..."}),p&&y.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:p}),y.jsxs(S4,{children:[y.jsx(C4,{onClick:b,disabled:d,children:d?y.jsx(j4,{}):"Save"}),y.jsx(E4,{onClick:w,disabled:d,children:"Cancel"})]})]}):y.jsx(y4,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.content})}),e.images&&e.images.length>0&&y.jsx(tA,{children:e.images.map((L,M)=>y.jsx(nA,{children:y.jsx(rA,{src:`data:${L.mediaType};base64,${L.base64url}`,alt:L.originalName||`Image ${M+1}`,title:L.originalName||`Image ${M+1}`})},M))}),y.jsxs(v4,{children:[y.jsx("div",{children:e.data?y.jsx(k4,{onClick:()=>r(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null}),y.jsxs("div",{children:[e.timestamp&&e.type==="assistant"&&e.data&&"contextSize"in e.data&&y.jsx(F0,{messages:[e]}),y.jsx(w4,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?y.jsx(y.Fragment,{children:ca(e.data)?y.jsx(kf,{data:e.data}):y.jsx($v,{data:e.data})}):null]})})},Hg=R.div`
|
|
1618
1618
|
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
1619
1619
|
color: ${e=>e.theme.colors.systemMessageText};
|
|
1620
1620
|
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
@@ -1631,7 +1631,7 @@ Error generating stack: `+x.message+`
|
|
|
1631
1631
|
}\n
|
|
1632
1632
|
${e=>e.isExecutionEnd&&`
|
|
1633
1633
|
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
1634
|
-
`}\n`,
|
|
1634
|
+
`}\n`,qg=R.div`
|
|
1635
1635
|
cursor: pointer;
|
|
1636
1636
|
font-weight: bold;
|
|
1637
1637
|
margin-bottom: 8px;
|
|
@@ -1640,7 +1640,7 @@ Error generating stack: `+x.message+`
|
|
|
1640
1640
|
gap: 4px;
|
|
1641
1641
|
|
|
1642
1642
|
&:hover {\n opacity: 0.8;
|
|
1643
|
-
}\n`,
|
|
1643
|
+
}\n`,oA=R.div`
|
|
1644
1644
|
white-space: pre-wrap;
|
|
1645
1645
|
word-wrap: break-word;
|
|
1646
1646
|
font-family: inherit;
|
|
@@ -1648,19 +1648,19 @@ Error generating stack: `+x.message+`
|
|
|
1648
1648
|
|
|
1649
1649
|
/* Add spacing between content sections */
|
|
1650
1650
|
& > *:not(:last-child) {\n margin-bottom: 12px;
|
|
1651
|
-
}\n`,
|
|
1651
|
+
}\n`,lA=R.div`
|
|
1652
1652
|
margin-bottom: 8px;
|
|
1653
1653
|
position: relative;
|
|
1654
1654
|
padding-right: 150px; /* Space for timestamp and data link */
|
|
1655
1655
|
|
|
1656
1656
|
&:last-child {\n margin-bottom: 0;
|
|
1657
|
-
}\n`,
|
|
1657
|
+
}\n`,sA=R.div`
|
|
1658
1658
|
font-size: 0.8em;
|
|
1659
1659
|
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
1660
1660
|
position: absolute;
|
|
1661
1661
|
right: 60px;
|
|
1662
1662
|
top: 0;
|
|
1663
|
-
`,
|
|
1663
|
+
`,aA=R.span`
|
|
1664
1664
|
font-size: 0.8em;
|
|
1665
1665
|
color: ${e=>e.theme.colors.primary};
|
|
1666
1666
|
cursor: pointer;
|
|
@@ -1669,14 +1669,14 @@ Error generating stack: `+x.message+`
|
|
|
1669
1669
|
right: 0;
|
|
1670
1670
|
top: 0;
|
|
1671
1671
|
|
|
1672
|
-
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,
|
|
1672
|
+
&:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,uA=({data:e})=>{const[t,r]=I.useState({analysis:!0,changes:!0,files:!0}),[o,l]=I.useState({}),a=d=>{r(f=>({...f,[d]:!f[d]}))},u=d=>{l(f=>({...f,[d]:!f[d]}))};return y.jsxs(V0,{children:[y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("analysis"),children:y.jsxs(_i,{expanded:t.analysis,children:[y.jsx(zi,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.problemAnalysis})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("changes"),children:y.jsxs(_i,{expanded:t.changes,children:[y.jsx(zi,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.codeChanges})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>a("files"),children:y.jsxs(_i,{expanded:t.files,children:[y.jsx(zi,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&y.jsx($i,{children:y.jsx(jd,{children:e.args.affectedFiles.map((d,f)=>y.jsxs(Td,{children:[y.jsxs(Rd,{children:[d.filePath,d.dependencies&&d.dependencies.length>0&&y.jsxs(Nd,{onClick:()=>u(d.filePath),title:"Dependencies",children:["(",d.dependencies.length,")"]})]}),d.dependencies&&d.dependencies.length>0&&o[d.filePath]&&y.jsx(H0,{children:y.jsxs(H4,{children:["Dependencies:",d.dependencies.map((p,m)=>y.jsx(q4,{children:p},m))]})}),y.jsx(U4,{children:d.reason})]},f))})})]})]})};function Wg(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const r=t.args;return typeof r.problemAnalysis=="string"&&typeof r.codeChanges=="string"&&Array.isArray(r.affectedFiles)&&r.affectedFiles.every(o=>typeof o=="object"&&o!==null&&typeof o.reason=="string"&&typeof o.filePath=="string")}const cA=({data:e})=>{const[t,r]=I.useState({explanation:!0,updates:!0,context:!1}),o=l=>{r(a=>({...a,[l]:!a[l]}))};return y.jsxs(V0,{children:[y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("explanation"),children:y.jsxs(_i,{expanded:t.explanation,children:[y.jsx(zi,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&y.jsx($i,{children:y.jsx(Hi,{remarkPlugins:[qi],children:e.args.explanation})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("updates"),children:y.jsxs(_i,{expanded:t.updates,children:[y.jsx(zi,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&y.jsx($i,{children:y.jsx(jd,{children:e.args.fileUpdates.map((l,a)=>{var u;return y.jsxs(Td,{id:"file-update-"+l.id,children:[y.jsxs(G4,{children:[y.jsx(Qs,{variant:l.updateToolName,children:l.updateToolName}),y.jsx(Rd,{children:l.filePath}),y.jsx(Nd,{onClick:()=>o(l.id),children:l.id}),l.temperature&&y.jsx(Qs,{variant:"temperature",title:"Temperature",children:l.temperature}),l.cheap&&y.jsx(Qs,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),l.dependsOn&&t[l.id]&&y.jsxs(H0,{children:["Depends on:"," ",(u=l.dependsOn)==null?void 0:u.map(d=>y.jsx(Nd,{onClick:()=>{var f;return(f=document.getElementById("file-update-"+d))==null?void 0:f.scrollIntoView()},children:d},d))]}),y.jsx(V4,{title:"Prompt",children:y.jsx(Hi,{remarkPlugins:[qi],children:l.prompt})})]},a)})})})]}),y.jsxs(Ai,{children:[y.jsx(Li,{onClick:()=>o("context"),children:y.jsxs(_i,{expanded:t.context,children:[y.jsx(zi,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&y.jsx($i,{children:y.jsx(jd,{children:e.args.contextPaths.map((l,a)=>y.jsx(Td,{children:y.jsx(Rd,{children:l})},a))})})]})]})};function Gg(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const r=t.args;return typeof r.explanation=="string"&&Array.isArray(r.fileUpdates)&&Array.isArray(r.contextPaths)&&r.fileUpdates.every(o=>typeof o=="object"&&o!==null&&typeof o.prompt=="string"&&typeof o.filePath=="string"&&typeof o.updateToolName=="string")}const dA=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:o,toggleDataVisibility:l})=>t.has(e.id)?y.jsx(Hg,{isExecutionEnd:e.isExecutionEnd,children:y.jsxs(qg,{onClick:()=>r(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):fA(e.parts).map((u,d)=>u.parts.length>0?y.jsxs(Hg,{isExecutionEnd:e.isExecutionEnd,children:[y.jsxs(qg,{onClick:()=>r(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),y.jsx(oA,{children:u.parts.map(f=>y.jsxs(lA,{children:[f.content,y.jsx(sA,{children:f.timestamp.toLocaleString()}),f.data?y.jsx(aA,{onClick:()=>l(f.id),children:o.has(f.id)?"Hide data":"Show data"}):null,o.has(f.id)&&f.data?y.jsx($v,{data:f.data}):null]},f.id))})]},`section-${d}`):u.codegenView?y.jsx(Pt.Fragment,{children:u.codegenView},`view-${d}`):null);function fA(e){const t=[];let r=[];return t.push({parts:r}),e.forEach(o=>{if(r.push(o),Wg(o.data)||Gg(o.data)||ca(o.data)||Ug(o.data)){const l=Wg(o.data)?y.jsx(uA,{data:o.data},`planning-${o.id}`):Gg(o.data)?y.jsx(cA,{data:o.data},`summary-${o.id}`):ca(o.data)?y.jsx(kf,{data:o.data},`file-update-${o.id}`):Ug(o.data)?y.jsx(J4,{data:o.data}):null;t.push({parts:[],codegenView:l}),r=[],t.push({parts:r})}}),t}const pA=R.div`
|
|
1673
1673
|
display: flex;
|
|
1674
1674
|
flex-direction: column;
|
|
1675
1675
|
height: 100%;
|
|
1676
1676
|
background-color: ${e=>e.theme.colors.background};
|
|
1677
1677
|
position: relative;
|
|
1678
1678
|
overflow: hidden;
|
|
1679
|
-
`,
|
|
1679
|
+
`,hA=R.div`
|
|
1680
1680
|
display: flex;
|
|
1681
1681
|
flex-direction: column;
|
|
1682
1682
|
gap: 16px;
|
|
@@ -1685,14 +1685,14 @@ Error generating stack: `+x.message+`
|
|
|
1685
1685
|
flex-grow: 1;
|
|
1686
1686
|
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
1687
1687
|
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
1688
|
-
`,
|
|
1688
|
+
`,mA=R.div`
|
|
1689
1689
|
display: flex;
|
|
1690
1690
|
flex-direction: column;
|
|
1691
1691
|
gap: 8px;
|
|
1692
1692
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
1693
1693
|
border-radius: 8px;
|
|
1694
1694
|
margin-bottom: 24px;
|
|
1695
|
-
`,
|
|
1695
|
+
`,gA=R.div`
|
|
1696
1696
|
font-size: 16px;
|
|
1697
1697
|
font-weight: bold;
|
|
1698
1698
|
color: ${e=>e.theme.colors.text};
|
|
@@ -1745,7 +1745,7 @@ Error generating stack: `+x.message+`
|
|
|
1745
1745
|
overflow: visible;
|
|
1746
1746
|
text-overflow: ellipsis;
|
|
1747
1747
|
}
|
|
1748
|
-
`,
|
|
1748
|
+
`,yA=R.button`
|
|
1749
1749
|
display: flex;
|
|
1750
1750
|
justify-content: center;
|
|
1751
1751
|
align-items: center;
|
|
@@ -1766,12 +1766,12 @@ Error generating stack: `+x.message+`
|
|
|
1766
1766
|
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1767
1767
|
color: ${e=>e.theme.colors.error};
|
|
1768
1768
|
}
|
|
1769
|
-
`,
|
|
1769
|
+
`,xA=R.div`
|
|
1770
1770
|
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
1771
1771
|
flex-direction: column;
|
|
1772
1772
|
gap: 8px;
|
|
1773
1773
|
padding: 16px;
|
|
1774
|
-
`,
|
|
1774
|
+
`,vA=R.p`
|
|
1775
1775
|
font-size: 14px;
|
|
1776
1776
|
color: ${e=>e.theme.colors.textSecondary};
|
|
1777
1777
|
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
@@ -1784,12 +1784,12 @@ Error generating stack: `+x.message+`
|
|
|
1784
1784
|
&:last-child {
|
|
1785
1785
|
margin-bottom: 0;
|
|
1786
1786
|
}
|
|
1787
|
-
`;const
|
|
1787
|
+
`;const wA=R.span`
|
|
1788
1788
|
&:before {
|
|
1789
1789
|
content: '▼';
|
|
1790
1790
|
margin-right: 8px;
|
|
1791
1791
|
}
|
|
1792
|
-
`,
|
|
1792
|
+
`,kA=R.span`
|
|
1793
1793
|
&:before {
|
|
1794
1794
|
content: '▶';
|
|
1795
1795
|
margin-right: 8px;
|
|
@@ -1802,16 +1802,16 @@ Error generating stack: `+x.message+`
|
|
|
1802
1802
|
&:hover {
|
|
1803
1803
|
text-decoration: underline;
|
|
1804
1804
|
}
|
|
1805
|
-
`;const
|
|
1805
|
+
`;const SA=R.div`
|
|
1806
1806
|
// TODO
|
|
1807
|
-
`;function
|
|
1807
|
+
`;function bA(e){return I.useMemo(()=>{const t=[];let r=null,o=null,l=0;return e.sort((a,u)=>a.iterationId<u.iterationId?-1:1).forEach((a,u)=>{var d;(!r||a.iterationId!==r.iterationId)&&(r&&(r.timestampEnd=new Date(a.timestamp),t.push(r)),r={iterationId:a.iterationId,timestampStart:new Date(a.timestamp),timestampEnd:new Date(a.timestamp),conversationSummaries:[],messages:[]}),(d=a.flags)!=null&&d.includes(Vd.CONVERSATION_SUMMARY)&&a.data&&(r.conversationSummaries.push(a.data),r.iterationTitle=a.data),a.type===Cr.SYSTEM?o?o.parts.push(a):(l++,o={...a,type:Cr.SYSTEM,parts:[a],id:`execution_${l}`,isExecutionEnd:u===e.length-1||e[u+1].type!==Cr.SYSTEM},r.messages.push(o)):(o&&(o.isExecutionEnd=!0),o=null,r.messages.push(a)),r.timestampEnd=new Date(a.timestamp)}),r&&t.push(r),t.sort((a,u)=>a.timestampStart.getTime()-u.timestampStart.getTime())},[e])}const CA=({onClick:e})=>y.jsxs(jA,{onClick:e,children:[y.jsx(TA,{children:"New messages"}),y.jsx(Hc,{}),y.jsx(Hc,{}),y.jsx(Hc,{})]}),EA=Gi`
|
|
1808
1808
|
0%, 80%, 100% {
|
|
1809
1809
|
transform: scale(0.8);
|
|
1810
1810
|
}
|
|
1811
1811
|
40% {
|
|
1812
1812
|
transform: scale(1.2);
|
|
1813
1813
|
}
|
|
1814
|
-
`,
|
|
1814
|
+
`,jA=R.div`
|
|
1815
1815
|
display: flex;
|
|
1816
1816
|
justify-content: center;
|
|
1817
1817
|
align-items: center;
|
|
@@ -1831,16 +1831,16 @@ Error generating stack: `+x.message+`
|
|
|
1831
1831
|
&:hover {
|
|
1832
1832
|
background-color: ${e=>e.theme.colors.primaryHover};
|
|
1833
1833
|
}
|
|
1834
|
-
`,
|
|
1834
|
+
`,TA=R.span`
|
|
1835
1835
|
margin-right: 10px;
|
|
1836
1836
|
font-weight: bold;
|
|
1837
|
-
`,
|
|
1837
|
+
`,Hc=R.div`
|
|
1838
1838
|
width: 8px;
|
|
1839
1839
|
height: 8px;
|
|
1840
1840
|
background-color: ${e=>e.theme.colors.text};
|
|
1841
1841
|
border-radius: 50%;
|
|
1842
1842
|
margin: 0 2px;
|
|
1843
|
-
animation: ${
|
|
1843
|
+
animation: ${EA} 1.4s infinite ease-in-out both;
|
|
1844
1844
|
|
|
1845
1845
|
&:nth-child(2) {
|
|
1846
1846
|
animation-delay: -0.32s;
|
|
@@ -1849,10 +1849,10 @@ Error generating stack: `+x.message+`
|
|
|
1849
1849
|
&:nth-child(3) {
|
|
1850
1850
|
animation-delay: -0.16s;
|
|
1851
1851
|
}
|
|
1852
|
-
`,
|
|
1852
|
+
`,RA=R.div`
|
|
1853
1853
|
position: relative;
|
|
1854
1854
|
width: 100%;
|
|
1855
|
-
`,
|
|
1855
|
+
`,NA=R.textarea`
|
|
1856
1856
|
width: 100%;
|
|
1857
1857
|
min-height: 60px;
|
|
1858
1858
|
resize: none;
|
|
@@ -1873,17 +1873,17 @@ Error generating stack: `+x.message+`
|
|
|
1873
1873
|
outline: none;
|
|
1874
1874
|
border-color: ${e=>e.theme.colors.primary};
|
|
1875
1875
|
}
|
|
1876
|
-
`,
|
|
1876
|
+
`,q0=({value:e,onChange:t,onKeyDown:r,onPaste:o,onImagePaste:l,maxViewportHeight:a=.5,...u})=>{const d=I.useRef(null);I.useEffect(()=>{const m=d.current;if(!m)return;const g=()=>{m.style.height="auto";const w=m.scrollHeight,S=a*window.innerHeight,b=Math.min(w,S);m.style.height=`${b}px`,m.style.overflowY=w<=S?"hidden":"auto"};g();const v=()=>g();return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[e,a]);const f=m=>{t(m.target.value)},p=m=>{var v;const g=(v=m.clipboardData)==null?void 0:v.items;if(g){for(let w=0;w<g.length;w++)if(g[w].type.indexOf("image")!==-1){m.preventDefault();const S=g[w].getAsFile();if(S){const b=new File([S],`pasted-image-${Date.now()}.png`,{type:"image/png"});l==null||l(b)}break}}o==null||o(m)};return y.jsx(RA,{children:y.jsx(NA,{ref:d,value:e,onChange:f,onKeyDown:r,onPaste:p,...u})})},IA=5*1024*1024,Jg=["image/jpeg","image/png","image/gif","image/webp"],Kg=5,W0=({images:e,onImagesChange:t,error:r,setError:o,fileInputRef:l})=>{const a=d=>{const p=Array.from(d.target.files||[]).filter(m=>Jg.includes(m.type)?m.size>IA?(o(`File too large: ${m.name}. Maximum size is 5MB.`),!1):!0:(o(`Invalid file type: ${m.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(p.length+e.length>Kg){o(`Too many images. Maximum ${Kg} images allowed.`);return}t([...e,...p]),o(null)},u=d=>{const f=e.filter((p,m)=>m!==d);t(f)};return y.jsxs(PA,{children:[r&&y.jsx(AA,{children:r}),y.jsx(LA,{children:e.map((d,f)=>y.jsxs($A,{children:[y.jsx("img",{src:URL.createObjectURL(d),alt:`Uploaded ${f+1}`}),y.jsx(_A,{onClick:()=>u(f),children:"×"})]},f))}),y.jsx("input",{type:"file",ref:l,style:{display:"none"},onChange:a,accept:Jg.join(","),multiple:!0})]})},PA=R.div`
|
|
1877
1877
|
margin-bottom: 8px;
|
|
1878
|
-
`,
|
|
1878
|
+
`,AA=R.div`
|
|
1879
1879
|
color: ${e=>e.theme.colors.error};
|
|
1880
1880
|
font-size: 14px;
|
|
1881
1881
|
margin-bottom: 8px;
|
|
1882
|
-
`,
|
|
1882
|
+
`,LA=R.div`
|
|
1883
1883
|
display: flex;
|
|
1884
1884
|
flex-wrap: wrap;
|
|
1885
1885
|
gap: 8px;
|
|
1886
|
-
|
|
1886
|
+
`,$A=R.div`
|
|
1887
1887
|
position: relative;
|
|
1888
1888
|
width: 60px;
|
|
1889
1889
|
height: 60px;
|
|
@@ -1894,7 +1894,7 @@ Error generating stack: `+x.message+`
|
|
|
1894
1894
|
object-fit: cover;
|
|
1895
1895
|
border-radius: 4px;
|
|
1896
1896
|
}
|
|
1897
|
-
`,
|
|
1897
|
+
`,_A=R.button`
|
|
1898
1898
|
position: absolute;
|
|
1899
1899
|
top: -8px;
|
|
1900
1900
|
right: -8px;
|
|
@@ -1914,7 +1914,7 @@ Error generating stack: `+x.message+`
|
|
|
1914
1914
|
&:hover {
|
|
1915
1915
|
background-color: ${e=>e.theme.colors.errorHover};
|
|
1916
1916
|
}
|
|
1917
|
-
`,
|
|
1917
|
+
`,Qg=({onSubmit:e,onInterrupt:t,onPauseResume:r,question:o,codegenOptions:l,executionStatus:a})=>{var se,oe,re;const[u,d]=I.useState(""),[f,p]=I.useState([]),[m,g]=I.useState(null),{suggestions:v}=I.useContext(Qi)??{suggestions:[]},[w,S]=I.useState(null),[b,j]=I.useState(l.aiService),[C,P]=I.useState(!1),L=I.useRef(null),M=I.useRef(null);I.useEffect(()=>{j(l.aiService)},[l.aiService]),I.useEffect(()=>{const B=ae=>{L.current&&!L.current.contains(ae.target)&&P(!1)};return document.addEventListener("mousedown",B),()=>{document.removeEventListener("mousedown",B)}},[L]);const H=B=>{p(ae=>[...ae,B]),g(null)},A=async B=>{if(B.preventDefault(),(u.trim()||f.length>0)&&o)try{await e(u,f,void 0,b),d(""),p([]),S(null),g(null)}catch(ae){console.error("Error submitting answer:",ae),S("Failed to submit the answer. Please try again.")}},q=async B=>{try{await e(u,f,B,b),d(""),p([]),S(null),g(null)}catch(ae){console.error("Error submitting confirmation:",ae),S("Failed to submit the confirmation. Please try again.")}},K=B=>{d(B),P(!1)},le=()=>{P(!C)},D=()=>{var B;(B=M.current)==null||B.click()},ne=a==="paused";return y.jsxs(zA,{children:[o?y.jsxs(DA,{onSubmit:A,children:[y.jsx("p",{children:o.text}),(se=o.confirmation)!=null&&se.secret?y.jsx(OA,{type:"password",value:u,onChange:B=>d(B.target.value),placeholder:"Enter secret",autoFocus:!0}):((oe=o.confirmation)==null?void 0:oe.includeAnswer)!==!1&&y.jsxs(y.Fragment,{children:[y.jsx(q0,{value:u,onChange:d,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:H}),y.jsx(W0,{images:f,onImagesChange:p,error:m,setError:g,fileInputRef:M})]}),(re=o.confirmation)!=null&&re.secret?y.jsxs(Os,{children:[y.jsx(Yg,{type:"submit",disabled:!u.trim(),children:"Submit"}),y.jsx(qc,{onClick:()=>q(!1),"data-secondary":"true",children:"Decline"}),y.jsx(Ms,{onClick:t,children:"Interrupt"})]}):o.confirmation?y.jsxs(Os,{children:[y.jsx(qc,{onClick:()=>q(!0),children:o.confirmation.confirmLabel}),y.jsx(qc,{onClick:()=>q(!1),"data-secondary":"true",children:o.confirmation.declineLabel}),y.jsx(ia,{value:b,onChange:j,disabled:!1}),y.jsx(Ms,{onClick:t,children:"Interrupt"})]}):y.jsxs(Os,{children:[y.jsx(Yg,{type:"submit",disabled:!u.trim()&&f.length===0,children:"Submit Answer"}),y.jsx(HA,{type:"button",onClick:D,title:"Upload Images",children:y.jsx(px,{})}),y.jsx(ia,{value:b,onChange:j,disabled:!1}),v&&v.length>0&&y.jsxs(MA,{ref:L,children:[y.jsxs(FA,{type:"button",onClick:le,children:[v[0],v.length>1&&y.jsx(BA,{children:" ▼"})]}),C&&y.jsx(UA,{children:v.map((B,ae)=>y.jsx(VA,{onClick:()=>K(B),children:B},ae))})]}),y.jsx(Ms,{onClick:t,children:"Interrupt"})]})]}):y.jsxs(Os,{children:[y.jsx(qA,{onClick:r,isPaused:ne,children:ne?"Resume":"Pause"}),y.jsx(Ms,{onClick:t,children:"Interrupt"})]}),w&&y.jsx(WA,{children:w})]})},zA=R.div`
|
|
1918
1918
|
background-color: ${({theme:e})=>e.colors.background};
|
|
1919
1919
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
1920
1920
|
border-radius: 8px;
|
|
@@ -1924,14 +1924,14 @@ Error generating stack: `+x.message+`
|
|
|
1924
1924
|
max-width: 70%;
|
|
1925
1925
|
width: 100%;
|
|
1926
1926
|
box-sizing: border-box;
|
|
1927
|
-
`,
|
|
1927
|
+
`,DA=R.form`
|
|
1928
1928
|
display: flex;
|
|
1929
1929
|
flex-direction: column;
|
|
1930
1930
|
|
|
1931
1931
|
> p {
|
|
1932
1932
|
margin-top: 0;
|
|
1933
1933
|
}
|
|
1934
|
-
|
|
1934
|
+
`,OA=R.input`
|
|
1935
1935
|
width: 100%;
|
|
1936
1936
|
padding: 10px;
|
|
1937
1937
|
border: 1px solid ${({theme:e})=>e.colors.inputBorder};
|
|
@@ -1942,10 +1942,10 @@ Error generating stack: `+x.message+`
|
|
|
1942
1942
|
font-size: 14px;
|
|
1943
1943
|
box-sizing: border-box;
|
|
1944
1944
|
margin-bottom: 10px;
|
|
1945
|
-
`,
|
|
1945
|
+
`,MA=R.div`
|
|
1946
1946
|
position: relative;
|
|
1947
1947
|
display: inline-block;
|
|
1948
|
-
`,
|
|
1948
|
+
`,FA=R.button`
|
|
1949
1949
|
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
1950
1950
|
color: ${e=>e.theme.colors.text};
|
|
1951
1951
|
border: 1px solid ${e=>e.theme.colors.border};
|
|
@@ -1964,10 +1964,10 @@ Error generating stack: `+x.message+`
|
|
|
1964
1964
|
&:hover {
|
|
1965
1965
|
background-color: ${e=>e.theme.colors.primary+"22"};
|
|
1966
1966
|
}
|
|
1967
|
-
`,
|
|
1967
|
+
`,BA=R.span`
|
|
1968
1968
|
margin-left: 5px;
|
|
1969
1969
|
font-size: 0.8em;
|
|
1970
|
-
`,
|
|
1970
|
+
`,UA=R.div`
|
|
1971
1971
|
position: absolute;
|
|
1972
1972
|
bottom: 100%;
|
|
1973
1973
|
left: 0;
|
|
@@ -1980,7 +1980,7 @@ Error generating stack: `+x.message+`
|
|
|
1980
1980
|
max-height: 200px;
|
|
1981
1981
|
overflow-y: auto;
|
|
1982
1982
|
margin-bottom: 5px;
|
|
1983
|
-
`,
|
|
1983
|
+
`,VA=R.div`
|
|
1984
1984
|
padding: 8px 12px;
|
|
1985
1985
|
color: ${({theme:e})=>e.colors.inputText};
|
|
1986
1986
|
cursor: pointer;
|
|
@@ -1991,14 +1991,14 @@ Error generating stack: `+x.message+`
|
|
|
1991
1991
|
&:hover {
|
|
1992
1992
|
background-color: ${({theme:e})=>e.colors.primary+"22"};
|
|
1993
1993
|
}
|
|
1994
|
-
`,
|
|
1994
|
+
`,Os=R.div`
|
|
1995
1995
|
display: flex;
|
|
1996
1996
|
align-items: center;
|
|
1997
1997
|
justify-content: flex-start;
|
|
1998
1998
|
gap: 10px;
|
|
1999
1999
|
margin-top: 10px;
|
|
2000
2000
|
flex-wrap: wrap;
|
|
2001
|
-
`,
|
|
2001
|
+
`,xl=R.button`
|
|
2002
2002
|
color: #ffffff;
|
|
2003
2003
|
border: none;
|
|
2004
2004
|
border-radius: 4px;
|
|
@@ -2011,19 +2011,19 @@ Error generating stack: `+x.message+`
|
|
|
2011
2011
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2012
2012
|
cursor: not-allowed;
|
|
2013
2013
|
}
|
|
2014
|
-
`,
|
|
2014
|
+
`,Yg=R(xl)`
|
|
2015
2015
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
2016
2016
|
|
|
2017
2017
|
&:hover:not(:disabled) {
|
|
2018
2018
|
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
2019
2019
|
}
|
|
2020
|
-
`,
|
|
2020
|
+
`,HA=R(xl)`
|
|
2021
2021
|
background-color: ${({theme:e})=>e.colors.buttonBg}; /* Or choose another appropriate color */
|
|
2022
2022
|
|
|
2023
2023
|
&:hover {
|
|
2024
2024
|
background-color: ${({theme:e})=>e.colors.buttonHoverBg}dd;
|
|
2025
2025
|
}
|
|
2026
|
-
`,
|
|
2026
|
+
`,qc=R(xl)`
|
|
2027
2027
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
2028
2028
|
&:hover {
|
|
2029
2029
|
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
@@ -2035,32 +2035,32 @@ Error generating stack: `+x.message+`
|
|
|
2035
2035
|
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
2036
2036
|
}
|
|
2037
2037
|
}
|
|
2038
|
-
`,
|
|
2038
|
+
`,Ms=R(xl)`
|
|
2039
2039
|
background-color: ${({theme:e})=>e.colors.error};
|
|
2040
2040
|
margin-left: auto;
|
|
2041
2041
|
|
|
2042
2042
|
&:hover {
|
|
2043
2043
|
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
2044
2044
|
}
|
|
2045
|
-
`,
|
|
2045
|
+
`,qA=R(xl)`
|
|
2046
2046
|
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
2047
2047
|
|
|
2048
2048
|
&:hover {
|
|
2049
2049
|
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
2050
2050
|
}
|
|
2051
|
-
`,
|
|
2051
|
+
`,WA=R.p`
|
|
2052
2052
|
color: ${({theme:e})=>e.colors.error};
|
|
2053
2053
|
font-weight: bold;
|
|
2054
2054
|
margin-top: 10px;
|
|
2055
2055
|
margin-bottom: 0;
|
|
2056
|
-
`,
|
|
2056
|
+
`,GA=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:o})=>e?y.jsxs(KA,{children:[y.jsx(YA,{onClick:t,children:"Interrupt"}),y.jsxs(QA,{"data-execution-status":o,children:[y.jsx(Wc,{}),y.jsx(Wc,{}),y.jsx(Wc,{})]}),y.jsx(G0,{onClick:r,children:o==="paused"?"Resume":"Pause"})]}):null,JA=Gi`
|
|
2057
2057
|
0%, 80%, 100% {
|
|
2058
2058
|
transform: scale(0);
|
|
2059
2059
|
}
|
|
2060
2060
|
40% {
|
|
2061
2061
|
transform: scale(1.0);
|
|
2062
2062
|
}
|
|
2063
|
-
`,
|
|
2063
|
+
`,KA=R.div`
|
|
2064
2064
|
display: flex;
|
|
2065
2065
|
flex-direction: row;
|
|
2066
2066
|
align-items: center;
|
|
@@ -2069,13 +2069,13 @@ Error generating stack: `+x.message+`
|
|
|
2069
2069
|
padding: 10px;
|
|
2070
2070
|
background-color: ${e=>e.theme.colors.background};
|
|
2071
2071
|
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
2072
|
-
`,
|
|
2072
|
+
`,QA=R.div`
|
|
2073
2073
|
display: flex;
|
|
2074
2074
|
align-items: center;
|
|
2075
2075
|
justify-content: center;
|
|
2076
2076
|
align-items: center;
|
|
2077
2077
|
margin-bottom: 10px;
|
|
2078
|
-
`,
|
|
2078
|
+
`,Wc=R.div`
|
|
2079
2079
|
width: 10px;
|
|
2080
2080
|
height: 10px;
|
|
2081
2081
|
background-color: ${e=>e.theme.colors.primary};
|
|
@@ -2083,7 +2083,7 @@ Error generating stack: `+x.message+`
|
|
|
2083
2083
|
margin: 0 5px;
|
|
2084
2084
|
|
|
2085
2085
|
[data-execution-status='executing'] & {
|
|
2086
|
-
animation: ${
|
|
2086
|
+
animation: ${JA} 1.4s infinite ease-in-out both;
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
2089
|
&:nth-child(1) {
|
|
@@ -2093,7 +2093,7 @@ Error generating stack: `+x.message+`
|
|
|
2093
2093
|
&:nth-child(2) {
|
|
2094
2094
|
animation-delay: -0.16s;
|
|
2095
2095
|
}
|
|
2096
|
-
`,
|
|
2096
|
+
`,G0=R.button`
|
|
2097
2097
|
padding: 8px 16px;
|
|
2098
2098
|
background-color: ${e=>e.theme.colors.primary};
|
|
2099
2099
|
color: #ffffff;
|
|
@@ -2112,13 +2112,13 @@ Error generating stack: `+x.message+`
|
|
|
2112
2112
|
&:active {
|
|
2113
2113
|
transform: translateY(0);
|
|
2114
2114
|
}
|
|
2115
|
-
`,
|
|
2115
|
+
`,YA=R(G0)`
|
|
2116
2116
|
background-color: ${({theme:e})=>e.colors.error};
|
|
2117
2117
|
|
|
2118
2118
|
&:hover {
|
|
2119
2119
|
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
2120
2120
|
}
|
|
2121
|
-
`,
|
|
2121
|
+
`,J0={info:"#3498db",warn:"#f39c12",error:"#e74c3c",success:"#2ecc71",debug:"#9b59b6"},XA=R.div`
|
|
2122
2122
|
position: fixed;
|
|
2123
2123
|
bottom: 70px;
|
|
2124
2124
|
right: 20px;
|
|
@@ -2133,7 +2133,7 @@ Error generating stack: `+x.message+`
|
|
|
2133
2133
|
display: flex;
|
|
2134
2134
|
flex-direction: column;
|
|
2135
2135
|
font-family: 'Courier New', Courier, monospace;
|
|
2136
|
-
`,
|
|
2136
|
+
`,ZA=R.div`
|
|
2137
2137
|
display: flex;
|
|
2138
2138
|
align-items: center;
|
|
2139
2139
|
margin-bottom: 10px;
|
|
@@ -2147,7 +2147,7 @@ Error generating stack: `+x.message+`
|
|
|
2147
2147
|
margin: 0;
|
|
2148
2148
|
font-size: 1.1em;
|
|
2149
2149
|
}
|
|
2150
|
-
`,
|
|
2150
|
+
`,eL=R.button`
|
|
2151
2151
|
background: none;
|
|
2152
2152
|
border: none;
|
|
2153
2153
|
color: ${({theme:e})=>e.colors.text};
|
|
@@ -2159,17 +2159,17 @@ Error generating stack: `+x.message+`
|
|
|
2159
2159
|
&:hover {
|
|
2160
2160
|
color: ${({theme:e})=>e.colors.primary};
|
|
2161
2161
|
}
|
|
2162
|
-
`,
|
|
2162
|
+
`,tL=R.div`
|
|
2163
2163
|
display: flex;
|
|
2164
2164
|
align-items: center;
|
|
2165
2165
|
flex-wrap: wrap;
|
|
2166
2166
|
gap: 8px;
|
|
2167
2167
|
flex-grow: 1;
|
|
2168
2168
|
justify-content: flex-end;
|
|
2169
|
-
`,
|
|
2169
|
+
`,nL=R.div`
|
|
2170
2170
|
display: flex;
|
|
2171
2171
|
gap: 5px;
|
|
2172
|
-
`,
|
|
2172
|
+
`,Xg=R.button`
|
|
2173
2173
|
background-color: ${({active:e,theme:t})=>e?t.colors.primary:"transparent"};
|
|
2174
2174
|
color: ${({active:e,theme:t})=>e?"white":t.colors.text};
|
|
2175
2175
|
border: 1px solid ${({active:e,theme:t})=>e?t.colors.primary:t.colors.border};
|
|
@@ -2186,7 +2186,7 @@ Error generating stack: `+x.message+`
|
|
|
2186
2186
|
color: white;
|
|
2187
2187
|
}
|
|
2188
2188
|
margin-left: auto; /* Pushes it to the right */
|
|
2189
|
-
`,
|
|
2189
|
+
`,Gc=R.button`
|
|
2190
2190
|
background-color: ${({active:e,theme:t})=>e?t.colors.primary:t.colors.secondary};
|
|
2191
2191
|
color: ${({active:e,theme:t})=>e?"white":t.colors.buttonText};
|
|
2192
2192
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
@@ -2209,7 +2209,7 @@ Error generating stack: `+x.message+`
|
|
|
2209
2209
|
outline: 2px solid ${({theme:e})=>e.colors.primary};
|
|
2210
2210
|
outline-offset: 2px;
|
|
2211
2211
|
}
|
|
2212
|
-
`,
|
|
2212
|
+
`,rL=R.div`
|
|
2213
2213
|
flex-grow: 1;
|
|
2214
2214
|
overflow-y: auto;
|
|
2215
2215
|
background-color: ${({theme:e})=>e.colors.inputBackground};
|
|
@@ -2230,7 +2230,7 @@ Error generating stack: `+x.message+`
|
|
|
2230
2230
|
background-color: ${({theme:e})=>e.colors.border};
|
|
2231
2231
|
border-radius: 4px;
|
|
2232
2232
|
}
|
|
2233
|
-
`,
|
|
2233
|
+
`,iL=R.div`
|
|
2234
2234
|
display: grid;
|
|
2235
2235
|
grid-template-columns: 80px 70px 90px 1fr;
|
|
2236
2236
|
align-items: start;
|
|
@@ -2258,8 +2258,8 @@ Error generating stack: `+x.message+`
|
|
|
2258
2258
|
grid-column: 2;
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
|
-
`,
|
|
2262
|
-
background-color: ${({level:e})=>
|
|
2261
|
+
`,oL=R.span`
|
|
2262
|
+
background-color: ${({level:e})=>J0[e]||"#7f8c8d"};
|
|
2263
2263
|
color: white;
|
|
2264
2264
|
padding: 2px 6px;
|
|
2265
2265
|
border-radius: 4px;
|
|
@@ -2268,10 +2268,10 @@ Error generating stack: `+x.message+`
|
|
|
2268
2268
|
text-transform: uppercase;
|
|
2269
2269
|
flex-shrink: 0;
|
|
2270
2270
|
justify-self: start;
|
|
2271
|
-
`,
|
|
2271
|
+
`,lL=R.div`
|
|
2272
2272
|
word-wrap: break-word;
|
|
2273
2273
|
white-space: pre-wrap;
|
|
2274
|
-
`,
|
|
2274
|
+
`,sL=R.button`
|
|
2275
2275
|
background: none;
|
|
2276
2276
|
border: none;
|
|
2277
2277
|
color: ${({theme:e})=>e.colors.primary};
|
|
@@ -2284,14 +2284,14 @@ Error generating stack: `+x.message+`
|
|
|
2284
2284
|
&:hover {
|
|
2285
2285
|
opacity: 0.8;
|
|
2286
2286
|
}
|
|
2287
|
-
`,
|
|
2287
|
+
`,aL=R.div`
|
|
2288
2288
|
grid-column: 1 / -1;
|
|
2289
2289
|
background-color: ${({theme:e})=>e.colors.background};
|
|
2290
2290
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2291
2291
|
border-radius: 6px;
|
|
2292
2292
|
margin-top: 8px;
|
|
2293
2293
|
padding: 5px;
|
|
2294
|
-
`,
|
|
2294
|
+
`,uL=R.pre`
|
|
2295
2295
|
margin: 0;
|
|
2296
2296
|
padding: 8px;
|
|
2297
2297
|
font-family: 'Courier New', Courier, monospace;
|
|
@@ -2313,9 +2313,9 @@ Error generating stack: `+x.message+`
|
|
|
2313
2313
|
background-color: ${({theme:e})=>e.colors.border};
|
|
2314
2314
|
border-radius: 4px;
|
|
2315
2315
|
}
|
|
2316
|
-
`,
|
|
2316
|
+
`,cL=R(eo)`
|
|
2317
2317
|
align-items: center;
|
|
2318
|
-
`,
|
|
2318
|
+
`,dL=R(M0).attrs({as:"button"})`
|
|
2319
2319
|
display: flex;
|
|
2320
2320
|
align-items: center;
|
|
2321
2321
|
gap: 8px;
|
|
@@ -2340,32 +2340,32 @@ Error generating stack: `+x.message+`
|
|
|
2340
2340
|
}
|
|
2341
2341
|
animation: flash 1.2s ease-in-out infinite;
|
|
2342
2342
|
`}
|
|
2343
|
-
`,
|
|
2344
|
-
background-color: ${({level:e})=>
|
|
2343
|
+
`,fL=R.span`
|
|
2344
|
+
background-color: ${({level:e})=>J0[e]||"#7f8c8d"};
|
|
2345
2345
|
color: #fff;
|
|
2346
2346
|
padding: 2px 6px;
|
|
2347
2347
|
border-radius: 6px;
|
|
2348
2348
|
font-size: 0.75em;
|
|
2349
2349
|
text-transform: uppercase;
|
|
2350
2350
|
flex-shrink: 0;
|
|
2351
|
-
`,
|
|
2351
|
+
`,pL=R.span`
|
|
2352
2352
|
flex: 1;
|
|
2353
2353
|
min-width: 0;
|
|
2354
2354
|
white-space: nowrap;
|
|
2355
2355
|
overflow: hidden;
|
|
2356
2356
|
text-overflow: ellipsis;
|
|
2357
2357
|
color: ${({theme:e})=>e.colors.text};
|
|
2358
|
-
`,
|
|
2358
|
+
`,hL=R.span`
|
|
2359
2359
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2360
2360
|
font-size: 0.75em;
|
|
2361
2361
|
flex-shrink: 0;
|
|
2362
|
-
`,
|
|
2362
|
+
`,mL=R.span`
|
|
2363
2363
|
width: 8px;
|
|
2364
2364
|
height: 8px;
|
|
2365
2365
|
border-radius: 50%;
|
|
2366
2366
|
background-color: ${({theme:e})=>e.colors.error};
|
|
2367
2367
|
flex-shrink: 0;
|
|
2368
|
-
`,
|
|
2368
|
+
`,gL=R.button`
|
|
2369
2369
|
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
2370
2370
|
color: ${({theme:e})=>e.colors.buttonText};
|
|
2371
2371
|
border: none;
|
|
@@ -2385,14 +2385,14 @@ Error generating stack: `+x.message+`
|
|
|
2385
2385
|
&:hover {
|
|
2386
2386
|
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
2387
2387
|
}
|
|
2388
|
-
`,
|
|
2388
|
+
`,yL=R(gL)`
|
|
2389
2389
|
background-color: ${({theme:e})=>e.colors.error||"#dc3545"};
|
|
2390
2390
|
color: white;
|
|
2391
2391
|
|
|
2392
2392
|
&:hover {
|
|
2393
2393
|
background-color: ${({theme:e})=>e.colors.errorHover||"#c82333"};
|
|
2394
2394
|
}
|
|
2395
|
-
`,
|
|
2395
|
+
`,xL=({iterationId:e})=>{const{terminalEvents:t,isTerminalOpen:r,toggleTerminal:o}=hl(),l=I.useRef({}),a=I.useMemo(()=>!e||!t[e]?[]:t[e],[e,t]),u=a[a.length-1];if(I.useEffect(()=>{r&&e&&u&&(l.current[e]=u.id)},[r,e,u]),!e||a.length===0)return null;const d=!r&&u&&l.current[e]!==u.id,f=()=>{o(),e&&u&&(l.current[e]=u.id)},p=async m=>{m.stopPropagation();try{await Xy()}catch(g){console.error("Failed to interrupt command:",g),alert(`Failed to interrupt command: ${g instanceof Error?g.message:"Unknown error"}`)}};return y.jsxs(cL,{"data-type":"assistant",children:[y.jsx(yL,{onClick:p,title:"Interrupt current command",children:"⏹"}),u&&y.jsxs(dL,{flashing:d,onClick:f,"aria-label":`Toggle terminal. Last log: ${u.text}`,title:`Toggle terminal. Last log: ${u.text}`,children:[y.jsx(fL,{level:u.level,children:u.level}),y.jsxs(pL,{children:["Container log: ",u.text]}),y.jsx(hL,{children:new Date(u.timestamp).toLocaleTimeString()}),d&&y.jsx(mL,{"aria-hidden":"true"})]})]})},vL=({messages:e,currentQuestion:t,codegenOptions:r,onQuestionSubmit:o,onInterrupt:l,onPauseResume:a,executionStatus:u})=>{var re;const[d,f]=I.useState(()=>new Set),[p,m]=I.useState(()=>new Set),[g,v]=I.useState(()=>new Set),[w]=I.useState(null),S=I.useRef(null),b=I.useRef(null),[j,C]=I.useState(!1),[P,L]=I.useState(!0),[M,H]=I.useState(null),A=bA(e),q=u!=="idle"?(re=A[A.length-1])==null?void 0:re.iterationId:null,K=I.useCallback(()=>{if(!b.current)return!0;const{scrollTop:B,scrollHeight:ae,clientHeight:ue}=b.current;return Math.abs(ae-ue-B)<5||ae<=ue},[]);I.useEffect(()=>{const B=b.current;if(!B)return;const ae=()=>{const ue=K();L(ue),ue&&C(!1)};return B.addEventListener("scroll",ae),()=>B.removeEventListener("scroll",ae)},[K]),I.useEffect(()=>{P?se():e.length>0&&C(!0)},[A,P,e.length]),I.useEffect(()=>{const B=new Set(A.slice(0,-1).map(ae=>ae.iterationId));v(B)},[A.length]);const le=B=>{f(ae=>{const ue=new Set(ae);return ue.has(B)?ue.delete(B):ue.add(B),ue})},D=B=>{m(ae=>{const ue=new Set(ae);return ue.has(B)?ue.delete(B):ue.add(B),ue})},ne=B=>{var ae;w&&((ae=e.find(ue=>ue.id===w))==null?void 0:ae.iterationId)===B||v(ue=>{const X=new Set(ue);return X.has(B)?X.delete(B):X.add(B),X})},se=()=>{requestAnimationFrame(()=>{var B;(B=b.current)==null||B.scrollTo({top:b.current.scrollHeight,behavior:"smooth"})}),C(!1)},oe=async B=>{if(M===B)try{await Kb(B),H(null)}catch(ae){console.error("Failed to delete iteration:",ae)}else H(B)};return y.jsxs(pA,{children:[y.jsxs(hA,{ref:b,children:[A.map((B,ae)=>y.jsxs(mA,{children:[y.jsxs(gA,{children:[y.jsxs("div",{className:"title",onClick:()=>ne(B.iterationId),children:[g.has(B.iterationId)?y.jsx(kA,{}):y.jsx(wA,{}),y.jsx("span",{children:B.iterationTitle??`Iteration ${B.iterationId}`})]}),y.jsxs("span",{className:"meta",children:[B.timestampStart.toLocaleString()," - ",B.timestampEnd.toLocaleString(),y.jsx(F0,{messages:B.messages}),B.iterationId!==q&&y.jsx(yA,{onClick:()=>oe(B.iterationId),title:M===B.iterationId?"Confirm deletion":"Delete iteration",children:M===B.iterationId?"🗑️ Confirm":"🗑️"})]})]}),y.jsxs(xA,{isCollapsed:g.has(B.iterationId),children:[B.conversationSummaries.length>0&&y.jsx(vA,{children:B.conversationSummaries.join(" ")}),B.messages.map((ue,X)=>y.jsxs(Pt.Fragment,{children:[ue.type===Cr.SYSTEM?y.jsx(dA,{message:ue,collapsedExecutions:p,toggleExecutionCollapse:D,visibleDataIds:d,toggleDataVisibility:le}):y.jsx(iA,{message:ue,visibleDataIds:d,toggleDataVisibility:le}),u!=="idle"&&t&&ae===A.length-1&&X===B.messages.length-1&&y.jsx(Qg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u})]},ue.id)),ae===A.length-1&&y.jsx(SA,{children:y.jsx(xL,{iterationId:q})})]})]},B.iterationId)),u!=="idle"&&t&&A.length>0&&A[A.length-1].messages.length===0&&y.jsx(Qg,{onSubmit:o,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u}),y.jsx("div",{ref:S})]}),j&&!P&&y.jsx(CA,{onClick:se}),y.jsx(GA,{isVisible:u!=="idle"&&!t,onInterrupt:l,onPauseResume:a,executionStatus:u})]})},wL=({onSubmit:e,onUploadClick:t,onAiServiceChange:r,options:o,disabled:l})=>y.jsxs(SL,{children:[y.jsx(kL,{onClick:e,disabled:l,children:"Submit"}),y.jsx(K0,{onClick:t,title:"Upload Images",children:y.jsx(px,{})}),y.jsx(ia,{value:o.aiService,onChange:r})]}),K0=R.button`
|
|
2396
2396
|
color: ${({theme:e})=>e.colors.buttonText};
|
|
2397
2397
|
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
2398
2398
|
border: none;
|
|
@@ -2411,7 +2411,7 @@ Error generating stack: `+x.message+`
|
|
|
2411
2411
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2412
2412
|
cursor: not-allowed;
|
|
2413
2413
|
}
|
|
2414
|
-
`,
|
|
2414
|
+
`,kL=R(K0)`
|
|
2415
2415
|
background-color: ${({theme:e})=>e.colors.primary};
|
|
2416
2416
|
color: #ffffff;
|
|
2417
2417
|
|
|
@@ -2422,11 +2422,11 @@ Error generating stack: `+x.message+`
|
|
|
2422
2422
|
&:disabled {
|
|
2423
2423
|
background-color: ${({theme:e})=>e.colors.disabled};
|
|
2424
2424
|
}
|
|
2425
|
-
`,
|
|
2425
|
+
`,SL=R.div`
|
|
2426
2426
|
display: flex;
|
|
2427
2427
|
justify-content: flex-start;
|
|
2428
2428
|
margin-top: 10px;
|
|
2429
|
-
`,
|
|
2429
|
+
`,bL=e=>{const{onSubmit:t,isExecuting:r,codegenOptions:o,onOptionsChange:l}=e,[a,u]=I.useState(""),[d,f]=I.useState([]),[p,m]=I.useState(null),g=I.useRef(null);if(r)return null;const v=()=>{(a.trim()||d.length>0)&&(t(a.trim(),d),u(""),f([]))},w=C=>{f(C)},S=()=>{var C;(C=g.current)==null||C.click()},b=C=>{const P=[...d,C];w(P)},j=C=>{l({...o,aiService:C})};return y.jsxs(CL,{children:[y.jsx(EL,{children:y.jsx(q0,{value:a,onChange:u,placeholder:"Enter your input here",onImagePaste:b})}),y.jsx(W0,{images:d,onImagesChange:w,error:p,setError:m,fileInputRef:g}),y.jsx(wL,{onSubmit:v,onUploadClick:S,onAiServiceChange:j,options:o,disabled:!a.trim()&&d.length===0})]})},CL=R.div`
|
|
2430
2430
|
display: flex;
|
|
2431
2431
|
flex-direction: column;
|
|
2432
2432
|
background-color: ${e=>e.theme.colors.background};
|
|
@@ -2434,10 +2434,10 @@ Error generating stack: `+x.message+`
|
|
|
2434
2434
|
padding: 16px;
|
|
2435
2435
|
width: 100%;
|
|
2436
2436
|
box-sizing: border-box;
|
|
2437
|
-
`,
|
|
2437
|
+
`,EL=R.div`
|
|
2438
2438
|
margin-bottom: 16px;
|
|
2439
2439
|
width: 100%;
|
|
2440
|
-
`,
|
|
2440
|
+
`,jL=({theme:e,toggleTheme:t})=>y.jsx(jr,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),Zg=tS`
|
|
2441
2441
|
body {
|
|
2442
2442
|
color: ${({theme:e})=>e.colors.text};
|
|
2443
2443
|
font-family: Arial, sans-serif;
|
|
@@ -2462,7 +2462,7 @@ Error generating stack: `+x.message+`
|
|
|
2462
2462
|
background-attachment: fixed;
|
|
2463
2463
|
z-index: -1;
|
|
2464
2464
|
}
|
|
2465
|
-
`;var Xo=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Xo||{});const
|
|
2465
|
+
`;var Xo=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Xo||{});const TL=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class RL{constructor(){Oo(this,"context");Oo(this,"bufferCache",new Map);Oo(this,"initialized",!1);Oo(this,"currentSources",[]);const t=window.AudioContext||window.webkitAudioContext;this.context=new t,this.initSounds()}async initSounds(){if(!this.initialized)try{const t=await this.loadAudioBuffer(TL.href);this.bufferCache.set("bark",t),this.initialized=!0}catch(t){console.error("Failed to initialize sounds:",t)}}async loadAudioBuffer(t){const o=await(await fetch(t)).arrayBuffer();return await this.context.decodeAudioData(o)}async play(t,r=.5){this.initialized||await this.initSounds();const o=this.bufferCache.get(t);if(!o){console.warn(`Sound "${t}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const l=this.context.createBufferSource();l.buffer=o;const a=this.context.createGain();a.gain.value=Math.max(0,Math.min(1,r)),l.connect(a),a.connect(this.context.destination),l.start(0),this.currentSources.push(l)}catch(l){console.error(`Failed to play sound "${t}":`,l)}}async playBark(t=.5){return this.play("bark",t)}stop(){this.currentSources.forEach(t=>t.stop())}dispose(){this.context.close(),this.bufferCache.clear(),this.initialized=!1}}const Jc=new RL,NL=({messages:e,muteNotifications:t=!1})=>{const r=I.useRef(e.length),o=I.useRef(document.hasFocus()),l=I.useRef(document.title),[a,u]=I.useState(0),d=window!==window.parent;I.useEffect(()=>(l.current=document.title,()=>{document.title=l.current}),[]);const f=p=>{if(d&&window.parent){const m={...p,source:"genaicode",origin:window.location.origin};window.parent.postMessage(m,"*")}};return I.useEffect(()=>{const p=()=>{const m=document.hasFocus()&&document.visibilityState==="visible";o.current=m,d?f({type:m?Xo.FOCUS:Xo.BLUR,payload:{isFocused:m,timestamp:Date.now()}}):m&&(document.title=l.current),m&&(u(0),document.title=l.current,Jc.stop())};return window.addEventListener("focus",p),window.addEventListener("blur",p),document.addEventListener("visibilitychange",p,!1),d&&p(),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",p),document.removeEventListener("visibilitychange",p,!1)}},[]),I.useEffect(()=>{if(!d)return;const p=m=>{if(m.source===window.parent)try{const{type:g,source:v}=m.data;if(v!=="genaicode")return;switch(g){case Xo.RESET_NOTIFICATIONS:u(0),Jc.stop();break}}catch(g){console.warn("Error handling notification message:",g)}};return window.addEventListener("message",p),()=>window.removeEventListener("message",p)},[]),I.useEffect(()=>{if(e.length>r.current){const p=e.length-r.current;if(d)f({type:Xo.NEW_MESSAGES,payload:{count:p,timestamp:Date.now()}});else if(!o.current){const m=a+p;u(m),document.title=`(${m}) ${l.current}`}!o.current&&!t&&Jc.playBark(.5)}r.current=e.length},[e,a,t]),null};async function IL(e){return[]}const PL=()=>{const e=hl();if(!e)return console.warn("SuggestionGenerator used outside of ChatStateProvider"),null;const{messages:t,executionStatus:r,currentQuestion:o,setSuggestions:l}=e;return I.useEffect(()=>{var f;if(!l)return;if(r!=="executing"||!o||o.confirmation){l([]);return}const a=t.length>0?(f=t[t.length-1])==null?void 0:f.iterationId:null;if(!a){l([]);return}t.filter(p=>p.iterationId===a).flatMap(p=>p.type===Cr.SYSTEM&&"parts"in p&&Array.isArray(p.parts)?p.parts:[p]).length>0?(console.log("Attempting to generate suggestions using conversation context in SuggestionGenerator..."),IL().then(p=>{p.length>0?(console.log("Suggestions generated by SuggestionGenerator:",p),l(p)):(console.log("No suggestions generated or generation failed in SuggestionGenerator."),l([]))}).catch(p=>{console.error("Error generating suggestions in SuggestionGenerator:",p),l([])})):l([])},[r,o,t,l]),null},AL=R.div`
|
|
2466
2466
|
position: fixed;
|
|
2467
2467
|
bottom: 70px; /* Adjust as needed to not overlap input area */
|
|
2468
2468
|
right: 20px;
|
|
@@ -2477,7 +2477,7 @@ Error generating stack: `+x.message+`
|
|
|
2477
2477
|
padding: 15px;
|
|
2478
2478
|
display: flex;
|
|
2479
2479
|
flex-direction: column;
|
|
2480
|
-
`,
|
|
2480
|
+
`,LL=R.div`
|
|
2481
2481
|
display: flex;
|
|
2482
2482
|
justify-content: space-between;
|
|
2483
2483
|
align-items: center;
|
|
@@ -2490,7 +2490,7 @@ Error generating stack: `+x.message+`
|
|
|
2490
2490
|
font-size: 1rem;
|
|
2491
2491
|
color: ${({theme:e})=>e.colors.text};
|
|
2492
2492
|
}
|
|
2493
|
-
|
|
2493
|
+
`,$L=R.button`
|
|
2494
2494
|
background: none;
|
|
2495
2495
|
border: none;
|
|
2496
2496
|
color: ${({theme:e})=>e.colors.text};
|
|
@@ -2502,13 +2502,13 @@ Error generating stack: `+x.message+`
|
|
|
2502
2502
|
&:hover {
|
|
2503
2503
|
color: ${({theme:e})=>e.colors.primary};
|
|
2504
2504
|
}
|
|
2505
|
-
`,
|
|
2505
|
+
`,_L=R.div`
|
|
2506
2506
|
flex-grow: 1;
|
|
2507
2507
|
/* Basic layout for nodes and edges - consider using a graph library for actual rendering */
|
|
2508
2508
|
display: flex;
|
|
2509
2509
|
flex-direction: column;
|
|
2510
2510
|
gap: 10px;
|
|
2511
|
-
`,
|
|
2511
|
+
`,zL=R.div`
|
|
2512
2512
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
2513
2513
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2514
2514
|
border-radius: 4px;
|
|
@@ -2531,7 +2531,7 @@ Error generating stack: `+x.message+`
|
|
|
2531
2531
|
font-size: 0.8rem;
|
|
2532
2532
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2533
2533
|
}
|
|
2534
|
-
`,
|
|
2534
|
+
`,DL=R.div`
|
|
2535
2535
|
font-size: 0.8rem;
|
|
2536
2536
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2537
2537
|
padding-left: 15px;
|
|
@@ -2543,7 +2543,7 @@ Error generating stack: `+x.message+`
|
|
|
2543
2543
|
left: 0;
|
|
2544
2544
|
color: ${({theme:e})=>e.colors.primary};
|
|
2545
2545
|
}
|
|
2546
|
-
|
|
2546
|
+
`,OL=()=>{const{conversationGraphState:e,isGraphVisualiserOpen:t,toggleGraphVisualiser:r}=hl();if(!t||!(e!=null&&e.isActive))return null;const{nodes:o=[],edges:l=[],currentNodeId:a}=e;return y.jsxs(AL,{children:[y.jsxs(LL,{children:[y.jsx("h3",{children:"Conversation Flow"}),y.jsx($L,{onClick:r,"aria-label":"Close visualiser",children:"×"})]}),y.jsxs(_L,{children:[y.jsx("h4",{children:"Nodes:"}),o.map(u=>y.jsxs(zL,{isActive:u.id===a,children:[y.jsxs("strong",{children:["ID: ",u.id]})," (",u.actionType,")",y.jsx("p",{children:u.instruction})]},u.id)),y.jsx("h4",{children:"Edges:"}),l.map((u,d)=>y.jsxs(DL,{children:[u.sourceNode," to ",u.targetNode,": ",u.instruction]},`${u.sourceNode}-${u.targetNode}-${d}`)),a&&y.jsxs("p",{children:[y.jsx("strong",{children:"Current Node:"})," ",a]})]})]})},ML=e=>{var t;for(let r=e.length-1;r>=0;r--){const o=e[r];if(o.type===Cr.SYSTEM&&((t=o.data)!=null&&t.conversationGraphState))return o.data.conversationGraphState}return null},FL=()=>{const{messages:e,setConversationGraphState:t}=I.useContext(Qi);return I.useEffect(()=>{const r=ML(e);t(o=>JSON.stringify(o)!==JSON.stringify(r)?r:o)},[e,t]),null};R.div`
|
|
2547
2547
|
position: fixed;
|
|
2548
2548
|
bottom: 70px; /* Adjust as needed to not overlap input area */
|
|
2549
2549
|
right: 20px;
|
|
@@ -2583,15 +2583,15 @@ Error generating stack: `+x.message+`
|
|
|
2583
2583
|
&:hover {
|
|
2584
2584
|
color: ${({theme:e})=>e.colors.primary};
|
|
2585
2585
|
}
|
|
2586
|
-
`;const
|
|
2586
|
+
`;const ey=R.div`
|
|
2587
2587
|
flex-grow: 1;
|
|
2588
2588
|
display: flex;
|
|
2589
2589
|
flex-direction: column;
|
|
2590
2590
|
gap: 10px;
|
|
2591
|
-
`,
|
|
2591
|
+
`,Id={pending:e=>e.colors.textSecondary,"in-progress":e=>e.colors.info,completed:e=>e.colors.success,failed:e=>e.colors.error,skipped:e=>e.colors.warning},BL=R.div`
|
|
2592
2592
|
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
2593
2593
|
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
2594
|
-
border-left: 4px solid ${({state:e,theme:t})=>
|
|
2594
|
+
border-left: 4px solid ${({state:e,theme:t})=>Id[e](t)};
|
|
2595
2595
|
border-radius: 4px;
|
|
2596
2596
|
padding: 8px 12px;
|
|
2597
2597
|
font-size: 0.9rem;
|
|
@@ -2601,7 +2601,7 @@ Error generating stack: `+x.message+`
|
|
|
2601
2601
|
align-items: center;
|
|
2602
2602
|
|
|
2603
2603
|
strong {
|
|
2604
|
-
color: ${({state:e,theme:t})=>
|
|
2604
|
+
color: ${({state:e,theme:t})=>Id[e](t)};
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
2607
|
p {
|
|
@@ -2609,14 +2609,14 @@ Error generating stack: `+x.message+`
|
|
|
2609
2609
|
font-size: 0.8rem;
|
|
2610
2610
|
color: ${({theme:e})=>e.colors.textSecondary};
|
|
2611
2611
|
}
|
|
2612
|
-
`,
|
|
2612
|
+
`,UL=R.div`
|
|
2613
2613
|
font-weight: bold;
|
|
2614
2614
|
text-transform: capitalize;
|
|
2615
|
-
color: ${({state:e,theme:t})=>
|
|
2615
|
+
color: ${({state:e,theme:t})=>Id[e](t)};
|
|
2616
2616
|
margin-right: 10px;
|
|
2617
2617
|
flex-shrink: 0;
|
|
2618
2618
|
width: 80px; /* Align states */
|
|
2619
|
-
`,
|
|
2619
|
+
`,VL=R.div`
|
|
2620
2620
|
display: flex;
|
|
2621
2621
|
flex-direction: column;
|
|
2622
2622
|
flex-grow: 1;
|
|
@@ -2632,4 +2632,4 @@ Error generating stack: `+x.message+`
|
|
|
2632
2632
|
margin-top: 5px;
|
|
2633
2633
|
padding-left: 10px;
|
|
2634
2634
|
border-left: 2px solid ${({theme:e})=>e.colors.border};
|
|
2635
|
-
`;const
|
|
2635
|
+
`;const HL=({executionPlan:e,planUpdates:t})=>{if(!e||!e.length)return y.jsx(ey,{children:"No execution plan available."});const r=JSON.parse(JSON.stringify(e));for(const o of t){const l=r.find(a=>a.id===o.id);l&&(l.statusUpdate=o.statusUpdate,l.state=o.state)}return y.jsx(ey,{children:r.map(o=>y.jsxs(BL,{state:o.state??"pending",children:[y.jsx(UL,{state:o.state??"pending",children:o.state??"pending"}),y.jsxs(VL,{children:[y.jsxs("strong",{children:["ID: ",o.id]}),y.jsx("p",{children:o.description}),o.statusUpdate&&y.jsxs("small",{children:["Update: ",o.statusUpdate]})]})]},o.id))})},qL=5e3,WL=16,GL=({events:e,onClear:t})=>{const r=I.useRef(null),[o,l]=I.useState(!1),[a,u]=I.useState(new Set),[d,f]=I.useState("logs"),{toggleTerminal:p}=hl(),m=I.useRef(!0),{executionPlan:g,planUpdates:v}=I.useMemo(()=>{var L;const j=[...e].reverse().find(M=>{var H;return(H=M.data)==null?void 0:H.plan}),C=(L=j==null?void 0:j.data)==null?void 0:L.plan,P=e.filter(M=>{var H,A,q;return((H=M.data)==null?void 0:H.statusUpdate)&&((A=M.data)==null?void 0:A.id)&&((q=M.data)==null?void 0:q.state)}).map(M=>M.data);return{executionPlan:C,planUpdates:P}},[e]);I.useLayoutEffect(()=>{r.current&&d==="logs"&&m.current&&setTimeout(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},100)},[e,d]);const w=async()=>{try{await Xy()}catch(j){console.error("Failed to interrupt command:",j)}},S=e.length>qL?e.slice(-5e3):e,b=()=>{r.current&&(m.current=r.current.scrollHeight-r.current.scrollTop<=r.current.clientHeight+WL)};return y.jsxs(XA,{children:[y.jsxs(ZA,{children:[y.jsx("h4",{children:"Container Task"}),y.jsxs(nL,{children:[y.jsx(Xg,{active:d==="logs",onClick:()=>f("logs"),children:"Logs"}),y.jsx(Xg,{active:d==="plan",onClick:()=>f("plan"),disabled:!g,children:"Execution Plan"})]}),y.jsxs(tL,{children:[d==="logs"&&y.jsxs(y.Fragment,{children:[y.jsx(Gc,{active:!1,onClick:t,"aria-label":"Clear terminal log",children:"Clear"}),y.jsx(Gc,{active:o,onClick:()=>l(!o),"aria-label":o?"Hide all payloads":"Show all payloads",children:"Payloads"})]}),y.jsx(Gc,{active:!1,onClick:w,"aria-label":"Interrupt current container command",children:"Interrupt"}),y.jsx(eL,{onClick:p,"aria-label":"Close terminal",children:"×"})]})]}),y.jsx(rL,{ref:r,onScroll:b,children:d==="logs"?S.map(j=>{const C=!!(j.data&&Object.keys(j.data).length>0),P=o||a.has(j.id);let L="";if(C)try{L=JSON.stringify(j.data,null,2)}catch{L=String(j.data)}return y.jsxs(Pt.Fragment,{children:[y.jsxs(iL,{children:[y.jsx("span",{className:"timestamp",children:new Date(j.timestamp).toLocaleTimeString()}),y.jsx(oL,{level:j.level,children:j.level}),y.jsxs("span",{className:"source",children:["[",j.source,"]"]}),y.jsxs(lL,{children:[j.text,C&&y.jsx(sL,{onClick:()=>{const M=new Set(a);P?M.delete(j.id):M.add(j.id),u(M)},children:P?"Hide payload":"Show payload"})]})]}),C&&P&&y.jsx(aL,{children:y.jsx(uL,{children:L})})]},j.id)}):y.jsx(HL,{executionPlan:g,planUpdates:v})})]})},JL=()=>{const{messages:e,executionStatus:t,currentQuestion:r,theme:o,usage:l,codegenOptions:a,rcConfig:u,toggleTheme:d,setCodegenOptions:f,handlePauseExecution:p,handleResumeExecution:m,isTerminalOpen:g,terminalEvents:v,clearTerminalEvents:w}=I.useContext(Qi),{handleExecute:S,handleQuestionSubmit:b,handleInterrupt:j}=VE({codegenOptions:a}),C=t!=="idle"&&e.length>0?e[e.length-1].iterationId:null,P=C&&v[C]||[],L=()=>{t==="paused"?m():p()};if(!l||!a)return y.jsxs(Em,{theme:o==="light"?Rm:Nm,children:[y.jsx(Zg,{}),y.jsx("div",{children:"Loading..."})," "]});const M=t!=="idle";return y.jsxs(Em,{theme:o==="light"?Rm:Nm,children:[y.jsx(Zg,{}),y.jsx(IE,{themeToggle:y.jsx(jL,{theme:o,toggleTheme:d}),toggleTheme:d,chatInterface:y.jsx(vL,{messages:e,currentQuestion:r,codegenOptions:a,onQuestionSubmit:b,onInterrupt:j,onPauseResume:L,executionStatus:t}),inputArea:!M&&y.jsx(bL,{onSubmit:S,isExecuting:M,onInterrupt:j,codegenOptions:a,onOptionsChange:f}),usage:l}),g&&C&&y.jsx(GL,{events:P,onClear:()=>w(C)}),y.jsx(Zb,{currentService:a.aiService}),y.jsx(hC,{}),y.jsx(QC,{}),y.jsx(iE,{rcConfig:u}),y.jsx(wE,{options:a,onOptionsChange:f}),y.jsx(NL,{messages:e,muteNotifications:a.muteNotifications}),y.jsx(OL,{}),y.jsx(FL,{})]})};function KL(){return y.jsxs(CE,{children:[y.jsx(PL,{})," ",y.jsx(JL,{})," "]})}const QL=document.getElementById("root"),YL=Xw.createRoot(QL);YL.render(Pt.createElement(KL,null));
|