diff --git "a/dist/assets/index-ZTlMohOX.js" "b/dist/assets/index-ZTlMohOX.js" deleted file mode 100644--- "a/dist/assets/index-ZTlMohOX.js" +++ /dev/null @@ -1,90 +0,0 @@ -var Tc=e=>{throw TypeError(e)};var nu=(e,t,n)=>t.has(e)||Tc("Cannot "+n);var _=(e,t,n)=>(nu(e,t,"read from private field"),n?n.call(e):t.get(e)),J=(e,t,n)=>t.has(e)?Tc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$=(e,t,n,r)=>(nu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(nu(e,t,"access private method"),n);var sl=(e,t,n,r)=>({set _(i){$(e,t,i,n)},get _(){return _(e,t,r)}});function qy(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Ql=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ap={exports:{}},To={},cp={exports:{}},W={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Zi=Symbol.for("react.element"),Gy=Symbol.for("react.portal"),Xy=Symbol.for("react.fragment"),Yy=Symbol.for("react.strict_mode"),Jy=Symbol.for("react.profiler"),Zy=Symbol.for("react.provider"),eg=Symbol.for("react.context"),tg=Symbol.for("react.forward_ref"),ng=Symbol.for("react.suspense"),rg=Symbol.for("react.memo"),ig=Symbol.for("react.lazy"),Ic=Symbol.iterator;function lg(e){return e===null||typeof e!="object"?null:(e=Ic&&e[Ic]||e["@@iterator"],typeof e=="function"?e:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dp=Object.assign,pp={};function Gr(e,t,n){this.props=e,this.context=t,this.refs=pp,this.updater=n||fp}Gr.prototype.isReactComponent={};Gr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Gr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hp(){}hp.prototype=Gr.prototype;function oa(e,t,n){this.props=e,this.context=t,this.refs=pp,this.updater=n||fp}var ua=oa.prototype=new hp;ua.constructor=oa;dp(ua,Gr.prototype);ua.isPureReactComponent=!0;var Oc=Array.isArray,mp=Object.prototype.hasOwnProperty,sa={current:null},yp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)mp.call(t,r)&&!yp.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,Y=R[Q];if(0>>1;Qi(yt,g))uei(Ot,yt)?(R[Q]=Ot,R[ue]=g,Q=ue):(R[Q]=yt,R[xe]=g,Q=xe);else if(uei(Ot,g))R[Q]=Ot,R[ue]=g,Q=ue;else break e}}return b}function i(R,b){var g=R.sortIndex-b.sortIndex;return g!==0?g:R.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],c=1,f=null,p=3,d=!1,v=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(R){for(var b=n(a);b!==null;){if(b.callback===null)r(a);else if(b.startTime<=R)r(a),b.sortIndex=b.expirationTime,t(s,b);else break;b=n(a)}}function S(R){if(w=!1,m(R),!v)if(n(s)!==null)v=!0,re(C);else{var b=n(a);b!==null&&ce(S,b.startTime-R)}}function C(R,b){v=!1,w&&(w=!1,h(T),T=-1),d=!0;var g=p;try{for(m(b),f=n(s);f!==null&&(!(f.expirationTime>b)||R&&!M());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var Y=Q(f.expirationTime<=b);b=e.unstable_now(),typeof Y=="function"?f.callback=Y:f===n(s)&&r(s),m(b)}else r(s);f=n(s)}if(f!==null)var x=!0;else{var xe=n(a);xe!==null&&ce(S,xe.startTime-b),x=!1}return x}finally{f=null,p=g,d=!1}}var k=!1,I=null,T=-1,F=5,L=-1;function M(){return!(e.unstable_now()-LR||125Q?(R.sortIndex=g,t(a,R),n(s)===null&&R===n(a)&&(w?(h(T),T=-1):w=!0,ce(S,g-Q))):(R.sortIndex=Y,t(s,R),v||d||(v=!0,re(C))),R},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(R){var b=p;return function(){var g=p;p=b;try{return R.apply(this,arguments)}finally{p=g}}}})(Ep);Sp.exports=Ep;var gg=Sp.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vg=D,rt=gg;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,wg=/^[: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]*$/,Rc={},zc={};function xg(e){return qu.call(zc,e)?!0:qu.call(Rc,e)?!1:wg.test(e)?zc[e]=!0:(Rc[e]=!0,!1)}function kg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sg(e,t,n,r){if(t===null||typeof t>"u"||kg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ue(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ue(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var ca=/[\-:]([a-z])/g;function fa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ca,fa);Ie[t]=new Ue(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ca,fa);Ie[t]=new Ue(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ca,fa);Ie[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function da(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==l[u]){var s=` -`+i[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{lu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?di(e):""}function Eg(e){switch(e.tag){case 5:return di(e.type);case 16:return di("Lazy");case 13:return di("Suspense");case 19:return di("SuspenseList");case 0:case 2:case 15:return e=ou(e.type,!1),e;case 11:return e=ou(e.type.render,!1),e;case 1:return e=ou(e.type,!0),e;default:return""}}function Ju(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case dr:return"Fragment";case fr:return"Portal";case Gu:return"Profiler";case pa:return"StrictMode";case Xu:return"Suspense";case Yu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _p:return(e.displayName||"Context")+".Consumer";case Pp:return(e._context.displayName||"Context")+".Provider";case ha:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ma:return t=e.displayName||null,t!==null?t:Ju(e.type)||"Memo";case sn:t=e._payload,e=e._init;try{return Ju(e(t))}catch{}}return null}function Cg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ju(t);case 8:return t===pa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function In(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ip(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pg(e){var t=Ip(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fl(e){e._valueTracker||(e._valueTracker=Pg(e))}function Op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ip(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Wl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zu(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Dc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=In(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Np(e,t){t=t.checked,t!=null&&da(e,"checked",t,!1)}function es(e,t){Np(e,t);var n=In(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ts(e,t.type,n):t.hasOwnProperty("defaultValue")&&ts(e,t.type,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ac(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ts(e,t,n){(t!=="number"||Wl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pi=Array.isArray;function Er(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=dl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gi={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},_g=["Webkit","ms","Moz","O"];Object.keys(gi).forEach(function(e){_g.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gi[t]=gi[e]})});function Dp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gi.hasOwnProperty(e)&&gi[e]?(""+t).trim():t+"px"}function Ap(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Dp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tg=he({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 is(e,t){if(t){if(Tg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ls(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var os=null;function ya(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var us=null,Cr=null,Pr=null;function jc(e){if(e=nl(e)){if(typeof us!="function")throw Error(O(280));var t=e.stateNode;t&&(t=zo(t),us(e.stateNode,e.type,t))}}function Mp(e){Cr?Pr?Pr.push(e):Pr=[e]:Cr=e}function Fp(){if(Cr){var e=Cr,t=Pr;if(Pr=Cr=null,jc(e),t)for(e=0;e>>=0,e===0?32:31-(jg(e)/bg|0)|0}var pl=64,hl=4194304;function hi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=hi(u):(l&=o,l!==0&&(r=hi(l)))}else o=n&~i,o!==0?r=hi(o):l!==0&&(r=hi(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function el(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function $g(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wi),Kc=" ",qc=!1;function rh(e,t){switch(e){case"keyup":return gv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ih(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function wv(e,t){switch(e){case"compositionend":return ih(t);case"keypress":return t.which!==32?null:(qc=!0,Kc);case"textInput":return e=t.data,e===Kc&&qc?null:e;default:return null}}function xv(e,t){if(pr)return e==="compositionend"||!Ca&&rh(e,t)?(e=th(),Dl=ka=gn=null,pr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Jc(n)}}function sh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?sh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ah(){for(var e=window,t=Wl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wl(e.document)}return t}function Pa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ov(e){var t=ah(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sh(n.ownerDocument.documentElement,n)){if(r!==null&&Pa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Zc(n,l);var o=Zc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hr=null,ps=null,ki=null,hs=!1;function ef(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hs||hr==null||hr!==Wl(r)||(r=hr,"selectionStart"in r&&Pa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ki&&Mi(ki,r)||(ki=r,r=Zl(ps,"onSelect"),0gr||(e.current=xs[gr],xs[gr]=null,gr--)}function le(e,t){gr++,xs[gr]=e.current,e.current=t}var On={},De=zn(On),Qe=zn(!1),Xn=On;function Hr(e,t){var n=e.type.contextTypes;if(!n)return On;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function to(){ae(Qe),ae(De)}function sf(e,t,n){if(De.current!==On)throw Error(O(168));le(De,t),le(Qe,n)}function vh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,Cg(e)||"Unknown",i));return he({},n,r)}function no(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Xn=De.current,le(De,e),le(Qe,Qe.current),!0}function af(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=vh(e,t,Xn),r.__reactInternalMemoizedMergedChildContext=e,ae(Qe),ae(De),le(De,e)):ae(Qe),le(Qe,n)}var Qt=null,Lo=!1,xu=!1;function wh(e){Qt===null?Qt=[e]:Qt.push(e)}function Uv(e){Lo=!0,wh(e)}function Ln(){if(!xu&&Qt!==null){xu=!0;var e=0,t=ee;try{var n=Qt;for(ee=1;e>=o,i-=o,Kt=1<<32-_t(t)+i|n<T?(F=I,I=null):F=I.sibling;var L=p(h,I,m[T],S);if(L===null){I===null&&(I=F);break}e&&I&&L.alternate===null&&t(h,I),y=l(L,y,T),k===null?C=L:k.sibling=L,k=L,I=F}if(T===m.length)return n(h,I),fe&&Mn(h,T),C;if(I===null){for(;TT?(F=I,I=null):F=I.sibling;var M=p(h,I,L.value,S);if(M===null){I===null&&(I=F);break}e&&I&&M.alternate===null&&t(h,I),y=l(M,y,T),k===null?C=M:k.sibling=M,k=M,I=F}if(L.done)return n(h,I),fe&&Mn(h,T),C;if(I===null){for(;!L.done;T++,L=m.next())L=f(h,L.value,S),L!==null&&(y=l(L,y,T),k===null?C=L:k.sibling=L,k=L);return fe&&Mn(h,T),C}for(I=r(h,I);!L.done;T++,L=m.next())L=d(I,h,T,L.value,S),L!==null&&(e&&L.alternate!==null&&I.delete(L.key===null?T:L.key),y=l(L,y,T),k===null?C=L:k.sibling=L,k=L);return e&&I.forEach(function(j){return t(h,j)}),fe&&Mn(h,T),C}function E(h,y,m,S){if(typeof m=="object"&&m!==null&&m.type===dr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case cl:e:{for(var C=m.key,k=y;k!==null;){if(k.key===C){if(C=m.type,C===dr){if(k.tag===7){n(h,k.sibling),y=i(k,m.props.children),y.return=h,h=y;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===sn&&df(C)===k.type){n(h,k.sibling),y=i(k,m.props),y.ref=ui(h,k,m),y.return=h,h=y;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===dr?(y=Gn(m.props.children,h.mode,S,m.key),y.return=h,h=y):(S=Hl(m.type,m.key,m.props,null,h.mode,S),S.ref=ui(h,y,m),S.return=h,h=S)}return o(h);case fr:e:{for(k=m.key;y!==null;){if(y.key===k)if(y.tag===4&&y.stateNode.containerInfo===m.containerInfo&&y.stateNode.implementation===m.implementation){n(h,y.sibling),y=i(y,m.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else t(h,y);y=y.sibling}y=Iu(m,h.mode,S),y.return=h,h=y}return o(h);case sn:return k=m._init,E(h,y,k(m._payload),S)}if(pi(m))return v(h,y,m,S);if(ni(m))return w(h,y,m,S);kl(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,y!==null&&y.tag===6?(n(h,y.sibling),y=i(y,m),y.return=h,h=y):(n(h,y),y=Tu(m,h.mode,S),y.return=h,h=y),o(h)):n(h,y)}return E}var Vr=Eh(!0),Ch=Eh(!1),lo=zn(null),oo=null,xr=null,Oa=null;function Na(){Oa=xr=oo=null}function Ra(e){var t=lo.current;ae(lo),e._currentValue=t}function Es(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tr(e,t){oo=e,Oa=xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(Oa!==e)if(e={context:e,memoizedValue:t,next:null},xr===null){if(oo===null)throw Error(O(308));xr=e,oo.dependencies={lanes:0,firstContext:e}}else xr=xr.next=e;return t}var Un=null;function za(e){Un===null?Un=[e]:Un.push(e)}function Ph(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,za(t)):(n.next=i.next,i.next=n),t.interleaved=n,Zt(e,r)}function Zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var an=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _h(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Zt(e,n)}return i=r.interleaved,i===null?(t.next=t,za(r)):(t.next=i.next,i.next=t),r.interleaved=t,Zt(e,n)}function Ml(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,va(e,n)}}function pf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;an=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?l=a:o.next=a,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,u=c.lastBaseUpdate,u!==o&&(u===null?c.firstBaseUpdate=a:u.next=a,c.lastBaseUpdate=s))}if(l!==null){var f=i.baseState;o=0,c=a=s=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var v=e,w=u;switch(p=t,d=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(d,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,p=typeof v=="function"?v.call(d,f,p):v,p==null)break e;f=he({},f,p);break e;case 2:an=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},c===null?(a=c=d,s=f):c=c.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=a,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Zn|=o,e.lanes=o,e.memoizedState=f}}function hf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Su.transition;Su.transition={};try{e(!1),t()}finally{ee=n,Su.transition=r}}function $h(){return mt().memoizedState}function Qv(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Vh(e))Qh(t,n);else if(n=Ph(e,t,n,r),n!==null){var i=be();Tt(n,e,r,i),Wh(n,t,r)}}function Wv(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vh(e))Qh(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,u=l(o,n);if(i.hasEagerState=!0,i.eagerState=u,It(u,o)){var s=t.interleaved;s===null?(i.next=i,za(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Ph(e,t,i,r),n!==null&&(i=be(),Tt(n,e,r,i),Wh(n,t,r))}}function Vh(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Qh(e,t){Si=ao=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,va(e,n)}}var co={readContext:ht,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},Kv={readContext:ht,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:yf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jl(4194308,4,jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jl(4194308,4,e,t)},useInsertionEffect:function(e,t){return jl(4,2,e,t)},useMemo:function(e,t){var n=Rt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qv.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:mf,useDebugValue:Ua,useDeferredValue:function(e){return Rt().memoizedState=e},useTransition:function(){var e=mf(!1),t=e[0];return e=Vv.bind(null,e[1]),Rt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=Rt();if(fe){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ce===null)throw Error(O(349));Jn&30||Nh(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,yf(zh.bind(null,r,l,e),[e]),r.flags|=2048,Vi(9,Rh.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Rt(),t=Ce.identifierPrefix;if(fe){var n=qt,r=Kt;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Mt]=t,e[bi]=r,nm(e,t,!1,!1),t.stateNode=e;e:{switch(o=ls(n,r),n){case"dialog":se("cancel",e),se("close",e),i=r;break;case"iframe":case"object":case"embed":se("load",e),i=r;break;case"video":case"audio":for(i=0;iKr&&(t.flags|=128,r=!0,si(l,!1),t.lanes=4194304)}else{if(!r)if(e=so(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),si(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!fe)return Re(t),null}else 2*ge()-l.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,si(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ge(),t.sibling=null,n=de.current,le(de,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return Ka(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function t1(e,t){switch(Ta(t),t.tag){case 1:return We(t.type)&&to(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qr(),ae(Qe),ae(De),Ma(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aa(t),null;case 13:if(ae(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));$r()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(de),null;case 4:return Qr(),null;case 10:return Ra(t.type._context),null;case 22:case 23:return Ka(),null;case 24:return null;default:return null}}var El=!1,Le=!1,n1=typeof WeakSet=="function"?WeakSet:Set,A=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function zs(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Tf=!1;function r1(e,t){if(ms=Yl,e=ah(),Pa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(u=o+i),f!==l||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++a===i&&(u=o),p===l&&++c===r&&(s=o),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ys={focusedElem:e,selectionRange:n},Yl=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,E=v.memoizedState,h=t.stateNode,y=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),E);h.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(S){ye(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return v=Tf,Tf=!1,v}function Ei(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&zs(t,n,l)}i=i.next}while(i!==r)}}function Mo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ls(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lm(e){var t=e.alternate;t!==null&&(e.alternate=null,lm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[bi],delete t[ws],delete t[bv],delete t[Bv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function om(e){return e.tag===5||e.tag===3||e.tag===4}function If(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=eo));else if(r!==4&&(e=e.child,e!==null))for(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}function As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}var _e=null,Et=!1;function ln(e,t,n){for(n=n.child;n!==null;)um(e,t,n),n=n.sibling}function um(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Io,n)}catch{}switch(n.tag){case 5:Le||kr(n,t);case 6:var r=_e,i=Et;_e=null,ln(e,t,n),_e=r,Et=i,_e!==null&&(Et?(e=_e,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):_e.removeChild(n.stateNode));break;case 18:_e!==null&&(Et?(e=_e,n=n.stateNode,e.nodeType===8?wu(e.parentNode,n):e.nodeType===1&&wu(e,n),Di(e)):wu(_e,n.stateNode));break;case 4:r=_e,i=Et,_e=n.stateNode.containerInfo,Et=!0,ln(e,t,n),_e=r,Et=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&zs(n,t,o),i=i.next}while(i!==r)}ln(e,t,n);break;case 1:if(!Le&&(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ye(n,t,u)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,ln(e,t,n),Le=r):ln(e,t,n);break;default:ln(e,t,n)}}function Of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n1),t.forEach(function(r){var i=d1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*l1(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,ho=0,X&6)throw Error(O(331));var i=X;for(X|=4,A=e.current;A!==null;){var l=A,o=l.child;if(A.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sge()-Qa?qn(e,0):Va|=n),Ke(e,t)}function mm(e,t){t===0&&(e.mode&1?(t=hl,hl<<=1,!(hl&130023424)&&(hl=4194304)):t=1);var n=be();e=Zt(e,t),e!==null&&(el(e,t,n),Ke(e,n))}function f1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mm(e,n)}function d1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),mm(e,n)}var ym;ym=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,Zv(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,fe&&t.flags&1048576&&xh(t,io,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var i=Hr(t,De.current);Tr(t,n),i=ja(null,t,r,e,i,n);var l=ba();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(l=!0,no(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,La(t),i.updater=Ao,t.stateNode=i,i._reactInternals=t,Ps(t,r,e,n),t=Is(null,t,r,!0,l,n)):(t.tag=0,fe&&l&&_a(t),Fe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=h1(r),e=wt(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=Cf(null,t,r,e,n);break e;case 11:t=Sf(null,t,r,e,n);break e;case 14:t=Ef(null,t,r,wt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Cf(e,t,r,i,n);case 3:e:{if(Zh(t),e===null)throw Error(O(387));r=t.pendingProps,l=t.memoizedState,i=l.element,_h(e,t),uo(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Wr(Error(O(423)),t),t=Pf(e,t,r,n,i);break e}else if(r!==i){i=Wr(Error(O(424)),t),t=Pf(e,t,r,n,i);break e}else for(et=En(t.stateNode.containerInfo.firstChild),nt=t,fe=!0,Ct=null,n=Ch(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($r(),r===i){t=en(e,t,n);break e}Fe(e,t,r,n)}t=t.child}return t;case 5:return Th(t),e===null&&Ss(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,gs(r,i)?o=null:l!==null&&gs(r,l)&&(t.flags|=32),Jh(e,t),Fe(e,t,o,n),t.child;case 6:return e===null&&Ss(t),null;case 13:return em(e,t,n);case 4:return Da(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):Fe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Sf(e,t,r,i,n);case 7:return Fe(e,t,t.pendingProps,n),t.child;case 8:return Fe(e,t,t.pendingProps.children,n),t.child;case 12:return Fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,le(lo,r._currentValue),r._currentValue=o,l!==null)if(It(l.value,o)){if(l.children===i.children&&!Qe.current){t=en(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Gt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Es(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(O(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Es(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Fe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Tr(t,n),i=ht(i),r=r(i),t.flags|=1,Fe(e,t,r,n),t.child;case 14:return r=t.type,i=wt(r,t.pendingProps),i=wt(r.type,i),Ef(e,t,r,i,n);case 15:return Xh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),bl(e,t),t.tag=1,We(r)?(e=!0,no(t)):e=!1,Tr(t,n),Kh(t,r,i),Ps(t,r,i,n),Is(null,t,r,!0,e,n);case 19:return tm(e,t,n);case 22:return Yh(e,t,n)}throw Error(O(156,t.tag))};function gm(e,t){return Vp(e,t)}function p1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,n,r){return new p1(e,t,n,r)}function Ga(e){return e=e.prototype,!(!e||!e.isReactComponent)}function h1(e){if(typeof e=="function")return Ga(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ha)return 11;if(e===ma)return 14}return 2}function Tn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ga(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case dr:return Gn(n.children,i,l,t);case pa:o=8,i|=8;break;case Gu:return e=dt(12,n,t,i|2),e.elementType=Gu,e.lanes=l,e;case Xu:return e=dt(13,n,t,i),e.elementType=Xu,e.lanes=l,e;case Yu:return e=dt(19,n,t,i),e.elementType=Yu,e.lanes=l,e;case Tp:return jo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pp:o=10;break e;case _p:o=9;break e;case ha:o=11;break e;case ma:o=14;break e;case sn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=dt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Gn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function jo(e,t,n,r){return e=dt(22,e,r,t),e.elementType=Tp,e.lanes=n,e.stateNode={isHidden:!1},e}function Tu(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function Iu(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m1(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=su(0),this.expirationTimes=su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,i,l,o,u,s){return e=new m1(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=dt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(l),e}function y1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(km)}catch(e){console.error(e)}}km(),kp.exports=ot;var k1=kp.exports,Ff=k1;Ku.createRoot=Ff.createRoot,Ku.hydrateRoot=Ff.hydrateRoot;/** - * @remix-run/router v1.23.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Sm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function E1(){return Math.random().toString(36).substr(2,8)}function bf(e,t){return{usr:e.state,key:e.key,idx:t}}function Bs(e,t,n,r){return n===void 0&&(n=null),go({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$o(t):t,{state:n,key:t&&t.key||r||E1()})}function Em(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $o(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function C1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,u=wn.Pop,s=null,a=c();a==null&&(a=0,o.replaceState(go({},o.state,{idx:a}),""));function c(){return(o.state||{idx:null}).idx}function f(){u=wn.Pop;let E=c(),h=E==null?null:E-a;a=E,s&&s({action:u,location:w.location,delta:h})}function p(E,h){u=wn.Push;let y=Bs(w.location,E,h);a=c()+1;let m=bf(y,a),S=w.createHref(y);try{o.pushState(m,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}l&&s&&s({action:u,location:w.location,delta:1})}function d(E,h){u=wn.Replace;let y=Bs(w.location,E,h);a=c();let m=bf(y,a),S=w.createHref(y);o.replaceState(m,"",S),l&&s&&s({action:u,location:w.location,delta:0})}function v(E){let h=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof E=="string"?E:Em(E);return y=y.replace(/ $/,"%20"),Ge(h,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,h)}let w={get action(){return u},get location(){return e(i,o)},listen(E){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(jf,f),s=E,()=>{i.removeEventListener(jf,f),s=null}},createHref(E){return t(i,E)},createURL:v,encodeLocation(E){let h=v(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:d,go(E){return o.go(E)}};return w}var Bf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Bf||(Bf={}));function P1(e,t,n){return n===void 0&&(n="/"),_1(e,t,n)}function _1(e,t,n,r){let i=typeof t=="string"?$o(t):t,l=_m(i.pathname||"/",n);if(l==null)return null;let o=Cm(e);T1(o);let u=null;for(let s=0;u==null&&s{let s={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};s.relativePath.startsWith("/")&&(Ge(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let a=Or([r,s.relativePath]),c=n.concat(s);l.children&&l.children.length>0&&(Ge(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Cm(l.children,t,c,a)),!(l.path==null&&!l.index)&&t.push({path:a,score:D1(a,l.index),routesMeta:c})};return e.forEach((l,o)=>{var u;if(l.path===""||!((u=l.path)!=null&&u.includes("?")))i(l,o);else for(let s of Pm(l.path))i(l,o,s)}),t}function Pm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=Pm(r.join("/")),u=[];return u.push(...o.map(s=>s===""?l:[l,s].join("/"))),i&&u.push(...o),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function T1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const I1=/^:[\w-]+$/,O1=3,N1=2,R1=1,z1=10,L1=-2,Uf=e=>e==="*";function D1(e,t){let n=e.split("/"),r=n.length;return n.some(Uf)&&(r+=L1),t&&(r+=N1),n.filter(i=>!Uf(i)).reduce((i,l)=>i+(I1.test(l)?O1:l===""?R1:z1),r)}function A1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function M1(e,t,n){let{routesMeta:r}=e,i={},l="/",o=[];for(let u=0;u{let{paramName:p,isOptional:d}=c;if(p==="*"){let w=u[f]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const v=u[f];return d&&!v?a[p]=void 0:a[p]=(v||"").replace(/%2F/g,"/"),a},{}),pathname:l,pathnameBase:o,pattern:e}}function j1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,s)=>(r.push({paramName:u,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function b1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _m(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Or=e=>e.join("/").replace(/\/\/+/g,"/"),B1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function U1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Tm=["post","put","patch","delete"];new Set(Tm);const H1=["get",...Tm];new Set(H1);/** - * React Router v6.30.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},h,{params:Object.assign({},s,h.params),pathname:Or([a,i.encodeLocation?i.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?a:Or([a,i.encodeLocation?i.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,n,r);return t&&E?D.createElement(Vo.Provider,{value:{location:vo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:wn.Pop}},E):E}function q1(){let e=n0(),t=U1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:i},n):null,null)}const G1=D.createElement(q1,null);class X1 extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?D.createElement(Qo.Provider,{value:this.props.routeContext},D.createElement(Om.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Y1(e){let{routeContext:t,match:n,children:r}=e,i=D.useContext($1);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(Qo.Provider,{value:t},r)}function J1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let c=o.findIndex(f=>f.route.id&&(u==null?void 0:u[f.route.id])!==void 0);c>=0||Ge(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,a+1):o=[o[0]];break}}}return o.reduceRight((c,f,p)=>{let d,v=!1,w=null,E=null;n&&(d=u&&f.route.id?u[f.route.id]:void 0,w=f.route.errorElement||G1,s&&(a<0&&p===0?(r0("route-fallback"),v=!0,E=null):a===p&&(v=!0,E=f.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,p+1)),y=()=>{let m;return d?m=w:v?m=E:f.route.Component?m=D.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,D.createElement(Y1,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?D.createElement(X1,{location:n.location,revalidation:n.revalidation,component:w,error:d,children:y(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):y()},null)}var Nm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Nm||{});function Z1(e){let t=D.useContext(V1);return t||Ge(!1),t}function e0(e){let t=D.useContext(Qo);return t||Ge(!1),t}function t0(e){let t=e0(),n=t.matches[t.matches.length-1];return n.route.id||Ge(!1),n.route.id}function n0(){var e;let t=D.useContext(Om),n=Z1(Nm.UseRouteError),r=t0();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Hf={};function r0(e,t,n){Hf[e]||(Hf[e]=!0)}function i0(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Rm(e){Ge(!1)}function l0(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wn.Pop,navigator:l,static:o=!1,future:u}=e;ec()&&Ge(!1);let s=t.replace(/^\/*/,"/"),a=D.useMemo(()=>({basename:s,navigator:l,static:o,future:vo({v7_relativeSplatPath:!1},u)}),[s,u,l,o]);typeof r=="string"&&(r=$o(r));let{pathname:c="/",search:f="",hash:p="",state:d=null,key:v="default"}=r,w=D.useMemo(()=>{let E=_m(c,s);return E==null?null:{location:{pathname:E,search:f,hash:p,state:d,key:v},navigationType:i}},[s,c,f,p,d,v,i]);return w==null?null:D.createElement(Im.Provider,{value:a},D.createElement(Vo.Provider,{children:n,value:w}))}function o0(e){let{children:t,location:n}=e;return W1(Us(t),n)}new Promise(()=>{});function Us(e,t){t===void 0&&(t=[]);let n=[];return D.Children.forEach(e,(r,i)=>{if(!D.isValidElement(r))return;let l=[...t,i];if(r.type===D.Fragment){n.push.apply(n,Us(r.props.children,l));return}r.type!==Rm&&Ge(!1),!r.props.index||!r.props.children||Ge(!1);let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Us(r.props.children,l)),n.push(o)}),n}/** - * React Router DOM v6.30.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const u0="6";try{window.__reactRouterVersion=u0}catch{}const s0="startTransition",$f=cg[s0];function a0(e){let{basename:t,children:n,future:r,window:i}=e,l=D.useRef();l.current==null&&(l.current=S1({window:i,v5Compat:!0}));let o=l.current,[u,s]=D.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},c=D.useCallback(f=>{a&&$f?$f(()=>s(f)):s(f)},[s,a]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.useEffect(()=>i0(r),[r]),D.createElement(l0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}var Vf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Vf||(Vf={}));var Qf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qf||(Qf={}));var zm={exports:{}},Lm={};/** - * @license React - * use-sync-external-store-with-selector.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var il=D;function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var f0=typeof Object.is=="function"?Object.is:c0,d0=il.useSyncExternalStore,p0=il.useRef,h0=il.useEffect,m0=il.useMemo,y0=il.useDebugValue;Lm.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=p0(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=m0(function(){function s(d){if(!a){if(a=!0,c=d,d=r(d),i!==void 0&&o.hasValue){var v=o.value;if(i(v,d))return f=v}return f=d}if(v=f,f0(c,d))return v;var w=r(d);return i!==void 0&&i(v,w)?(c=d,v):(c=d,f=w)}var a=!1,c,f,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var u=d0(e,l[0],l[1]);return h0(function(){o.hasValue=!0,o.value=u},[u]),y0(u),u};zm.exports=Lm;var g0=zm.exports;function v0(e){e()}function w0(){let e=null,t=null;return{clear(){e=null,t=null},notify(){v0(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Wf={notify(){},get:()=>[]};function x0(e,t){let n,r=Wf,i=0,l=!1;function o(w){c();const E=r.subscribe(w);let h=!1;return()=>{h||(h=!0,E(),f())}}function u(){r.notify()}function s(){v.onStateChange&&v.onStateChange()}function a(){return l}function c(){i++,n||(n=e.subscribe(s),r=w0())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Wf)}function p(){l||(l=!0,c())}function d(){l&&(l=!1,f())}const v={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:s,isSubscribed:a,trySubscribe:p,tryUnsubscribe:d,getListeners:()=>r};return v}var k0=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",S0=k0(),E0=()=>typeof navigator<"u"&&navigator.product==="ReactNative",C0=E0(),P0=()=>S0||C0?D.useLayoutEffect:D.useEffect,_0=P0(),Ou=Symbol.for("react-redux-context"),Nu=typeof globalThis<"u"?globalThis:{};function T0(){if(!D.createContext)return{};const e=Nu[Ou]??(Nu[Ou]=new Map);let t=e.get(D.createContext);return t||(t=D.createContext(null),e.set(D.createContext,t)),t}var Nn=T0();function I0(e){const{children:t,context:n,serverState:r,store:i}=e,l=D.useMemo(()=>{const s=x0(i);return{store:i,subscription:s,getServerState:r?()=>r:void 0}},[i,r]),o=D.useMemo(()=>i.getState(),[i]);_0(()=>{const{subscription:s}=l;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==i.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[l,o]);const u=n||Nn;return D.createElement(u.Provider,{value:l},t)}var O0=I0;function tc(e=Nn){return function(){return D.useContext(e)}}var Dm=tc();function Am(e=Nn){const t=e===Nn?Dm:tc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var N0=Am();function R0(e=Nn){const t=e===Nn?N0:Am(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var z0=R0(),L0=(e,t)=>e===t;function D0(e=Nn){const t=e===Nn?Dm:tc(e),n=(r,i={})=>{const{equalityFn:l=L0}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:u,subscription:s,getServerState:a}=o;D.useRef(!0);const c=D.useCallback({[r.name](p){return r(p)}}[r.name],[r]),f=g0.useSyncExternalStoreWithSelector(s.addNestedSub,u.getState,a||u.getState,c,l);return D.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var A0=D0();function M0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const F0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,j0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b0={};function Kf(e,t){return(b0.jsx?j0:F0).test(e)}const B0=/[ \t\n\f\r]/g;function U0(e){return typeof e=="object"?e.type==="text"?qf(e.value):!1:qf(e)}function qf(e){return e.replace(B0,"")===""}class ll{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ll.prototype.normal={};ll.prototype.property={};ll.prototype.space=void 0;function Mm(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ll(n,r,t)}function Hs(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let H0=0;const V=lr(),ve=lr(),Fm=lr(),N=lr(),ie=lr(),Nr=lr(),Je=lr();function lr(){return 2**++H0}const $s=Object.freeze(Object.defineProperty({__proto__:null,boolean:V,booleanish:ve,commaOrSpaceSeparated:Je,commaSeparated:Nr,number:N,overloadedBoolean:Fm,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),Ru=Object.keys($s);class nc extends Xe{constructor(t,n,r,i){let l=-1;if(super(t,n),Gf(this,"space",i),typeof r=="number")for(;++l4&&n.slice(0,4)==="data"&&K0.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Xf,X0);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Xf.test(l)){let o=l.replace(W0,G0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nc}return new i(r,t)}function G0(e){return"-"+e.toLowerCase()}function X0(e){return e.charAt(1).toUpperCase()}const Y0=Mm([jm,$0,Um,Hm,$m],"html"),rc=Mm([jm,V0,Um,Hm,$m],"svg");function J0(e){return e.join(" ").trim()}var ic={},Yf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Z0=/\n/g,ew=/^\s*/,tw=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,nw=/^:\s*/,rw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,iw=/^[;\s]*/,lw=/^\s+|\s+$/g,ow=` -`,Jf="/",Zf="*",bn="",uw="comment",sw="declaration",aw=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var w=v.match(Z0);w&&(n+=w.length);var E=v.lastIndexOf(ow);r=~E?v.length-E:r+v.length}function l(){var v={line:n,column:r};return function(w){return w.position=new o(v),a(),w}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(v){var w=new Error(t.source+":"+n+":"+r+": "+v);if(w.reason=v,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function s(v){var w=v.exec(e);if(w){var E=w[0];return i(E),e=e.slice(E.length),w}}function a(){s(ew)}function c(v){var w;for(v=v||[];w=f();)w!==!1&&v.push(w);return v}function f(){var v=l();if(!(Jf!=e.charAt(0)||Zf!=e.charAt(1))){for(var w=2;bn!=e.charAt(w)&&(Zf!=e.charAt(w)||Jf!=e.charAt(w+1));)++w;if(w+=2,bn===e.charAt(w-1))return u("End of comment missing");var E=e.slice(2,w-2);return r+=2,i(E),e=e.slice(w),r+=2,v({type:uw,comment:E})}}function p(){var v=l(),w=s(tw);if(w){if(f(),!s(nw))return u("property missing ':'");var E=s(rw),h=v({type:sw,property:ed(w[0].replace(Yf,bn)),value:E?ed(E[0].replace(Yf,bn)):bn});return s(iw),h}}function d(){var v=[];c(v);for(var w;w=p();)w!==!1&&(v.push(w),c(v));return v}return a(),d()};function ed(e){return e?e.replace(lw,bn):bn}var cw=Ql&&Ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ic,"__esModule",{value:!0});ic.default=dw;var fw=cw(aw);function dw(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,fw.default)(e),i=typeof t=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,u=l.value;i?t(o,u,l):u&&(n=n||{},n[o]=u)}}),n}var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});Wo.camelCase=void 0;var pw=/^--[a-zA-Z0-9_-]+$/,hw=/-([a-z])/g,mw=/^[^-]+$/,yw=/^-(webkit|moz|ms|o|khtml)-/,gw=/^-(ms)-/,vw=function(e){return!e||mw.test(e)||pw.test(e)},ww=function(e,t){return t.toUpperCase()},td=function(e,t){return"".concat(t,"-")},xw=function(e,t){return t===void 0&&(t={}),vw(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(gw,td):e=e.replace(yw,td),e.replace(hw,ww))};Wo.camelCase=xw;var kw=Ql&&Ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Sw=kw(ic),Ew=Wo;function Vs(e,t){var n={};return!e||typeof e!="string"||(0,Sw.default)(e,function(r,i){r&&i&&(n[(0,Ew.camelCase)(r,t)]=i)}),n}Vs.default=Vs;var Cw=Vs;const Pw=la(Cw),Vm=Qm("end"),lc=Qm("start");function Qm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function _w(e){const t=lc(e),n=Vm(e);if(t&&n)return{start:t,end:n}}function _i(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?nd(e.position):"start"in e||"end"in e?nd(e):"line"in e||"column"in e?Qs(e):""}function Qs(e){return rd(e&&e.line)+":"+rd(e&&e.column)}function nd(e){return Qs(e&&e.start)+"-"+Qs(e&&e.end)}function rd(e){return e&&typeof e=="number"?e:1}class Ae extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=u?u.line:void 0,this.name=_i(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ae.prototype.file="";Ae.prototype.name="";Ae.prototype.reason="";Ae.prototype.message="";Ae.prototype.stack="";Ae.prototype.column=void 0;Ae.prototype.line=void 0;Ae.prototype.ancestors=void 0;Ae.prototype.cause=void 0;Ae.prototype.fatal=void 0;Ae.prototype.place=void 0;Ae.prototype.ruleId=void 0;Ae.prototype.source=void 0;const oc={}.hasOwnProperty,Tw=new Map,Iw=/[A-Z]/g,Ow=new Set(["table","tbody","thead","tfoot","tr"]),Nw=new Set(["td","th"]),Wm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rw(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=bw(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=jw(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rc:Y0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Km(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Km(e,t,n){if(t.type==="element")return zw(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Lw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Aw(e,t,n);if(t.type==="mdxjsEsm")return Dw(e,t);if(t.type==="root")return Mw(e,t,n);if(t.type==="text")return Fw(e,t)}function zw(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=rc,e.schema=i),e.ancestors.push(t);const l=Gm(e,t.tagName,!1),o=Bw(e,t);let u=sc(e,t);return Ow.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!U0(s):!0})),qm(e,o,l,t),uc(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Lw(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Wi(e,t.position)}function Dw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wi(e,t.position)}function Aw(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=rc,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Gm(e,t.name,!0),o=Uw(e,t),u=sc(e,t);return qm(e,o,l,t),uc(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Mw(e,t,n){const r={};return uc(r,sc(e,t)),e.create(t,e.Fragment,r,n)}function Fw(e,t){return t.value}function qm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function uc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function jw(e,t,n){return r;function r(i,l,o,u){const a=Array.isArray(o.children)?n:t;return u?a(l,o,u):a(l,o)}}function bw(e,t){return n;function n(r,i,l,o){const u=Array.isArray(l.children),s=lc(r);return t(i,l,o,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Bw(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&oc.call(t.properties,i)){const l=Hw(e,i,t.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&Nw.has(t.tagName)?r=u:n[o]=u}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Uw(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Wi(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Wi(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function sc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Tw;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l0?(Bt(e,e.length,0,t),e):t}const od={}.hasOwnProperty;function Xw(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Rr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ft=Dn(/[A-Za-z]/),tt=Dn(/[\dA-Za-z]/),Zw=Dn(/[#-'*+\--9=?A-Z^-~]/);function Ws(e){return e!==null&&(e<32||e===127)}const Ks=Dn(/\d/),ex=Dn(/[\dA-Fa-f]/),tx=Dn(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function qe(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}const nx=Dn(new RegExp("\\p{P}|\\p{S}","u")),rx=Dn(/\s/);function Dn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Zr(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return Z(s)?(e.enter(n),u(s)):t(s)}function u(s){return Z(s)&&l++o))return;const I=t.events.length;let T=I,F,L;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(F){L=t.events[T][1].end;break}F=!0}for(h(r),k=I;km;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=m}function y(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function sx(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sd(e){if(e===null||qe(e)||rx(e))return 1;if(nx(e))return 2}function cc(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};ad(f,-s),ad(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=ft(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=ft(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=ft(a,cc(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=ft(a,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,a=ft(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Bt(e,r-1,n-r+3,a),n=r+a.length-c-2;break}}for(n=-1;++n0&&Z(k)?oe(e,y,"linePrefix",l+1)(k):y(k)}function y(k){return k===null||B(k)?e.check(cd,w,S)(k):(e.enter("codeFlowValue"),m(k))}function m(k){return k===null||B(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),m)}function S(k){return e.exit("codeFenced"),t(k)}function C(k,I,T){let F=0;return L;function L(H){return k.enter("lineEnding"),k.consume(H),k.exit("lineEnding"),M}function M(H){return k.enter("codeFencedFence"),Z(H)?oe(k,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):j(H)}function j(H){return H===u?(k.enter("codeFencedFenceSequence"),K(H)):T(H)}function K(H){return H===u?(F++,k.consume(H),K):F>=o?(k.exit("codeFencedFenceSequence"),Z(H)?oe(k,ne,"whitespace")(H):ne(H)):T(H)}function ne(H){return H===null||B(H)?(k.exit("codeFencedFence"),I(H)):T(H)}}}function xx(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Lu={name:"codeIndented",tokenize:Sx},kx={partial:!0,tokenize:Ex};function Sx(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),oe(e,l,"linePrefix",5)(a)}function l(a){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?s(a):B(a)?e.attempt(kx,o,s)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||B(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),u)}function s(a){return e.exit("codeIndented"),t(a)}}function Ex(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):oe(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):B(o)?i(o):n(o)}}const Cx={name:"codeText",previous:_x,resolve:Px,tokenize:Tx};function Px(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=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 tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ci(this.left,r),l.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),ci(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ci(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=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function ny(e,t,n,r,i,l,o,u,s){const a=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||Ws(h)?n(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||B(h)?n(h):(e.consume(h),h===92?v:d)}function v(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function w(h){return!c&&(h===null||h===41||qe(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(h)):c999||d===null||d===91||d===93&&!s||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||B(d)||u++>999?(e.exit("chunkString"),c(d)):(e.consume(d),s||(s=!Z(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,f):f(d)}}function iy(e,t,n,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),a(p))}function a(p){return p===o?(e.exit(l),s(o)):p===null?n(p):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),oe(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||B(p)?(e.exit("chunkString"),a(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Ti(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Z(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Ax={name:"definition",tokenize:Fx},Mx={partial:!0,tokenize:jx};function Fx(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return ry.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=Rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):n(d)}function s(d){return qe(d)?Ti(e,a)(d):a(d)}function a(d){return ny(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Mx,f,f)(d)}function f(d){return Z(d)?oe(e,p,"whitespace")(d):p(d)}function p(d){return d===null||B(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function jx(e,t,n){return r;function r(u){return qe(u)?Ti(e,i)(u):n(u)}function i(u){return iy(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return Z(u)?oe(e,o,"whitespace")(u):o(u)}function o(u){return u===null||B(u)?t(u):n(u)}}const bx={name:"hardBreakEscape",tokenize:Bx};function Bx(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return B(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Ux={name:"headingAtx",resolve:Hx,tokenize:$x};function Hx(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Bt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function $x(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||qe(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||B(c)?(e.exit("atxHeading"),t(c)):Z(c)?oe(e,u,"whitespace")(c):(e.enter("atxHeadingText"),a(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),u(c))}function a(c){return c===null||c===35||qe(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),a)}}const Vx=["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"],dd=["pre","script","style","textarea"],Qx={concrete:!0,name:"htmlFlow",resolveTo:qx,tokenize:Gx},Wx={partial:!0,tokenize:Yx},Kx={partial:!0,tokenize:Xx};function qx(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 Gx(e,t,n){const r=this;let i,l,o,u,s;return a;function a(x){return c(x)}function c(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),p):x===47?(e.consume(x),l=!0,w):x===63?(e.consume(x),i=3,r.interrupt?t:g):Ft(x)?(e.consume(x),o=String.fromCharCode(x),E):n(x)}function p(x){return x===45?(e.consume(x),i=2,d):x===91?(e.consume(x),i=5,u=0,v):Ft(x)?(e.consume(x),i=4,r.interrupt?t:g):n(x)}function d(x){return x===45?(e.consume(x),r.interrupt?t:g):n(x)}function v(x){const xe="CDATA[";return x===xe.charCodeAt(u++)?(e.consume(x),u===xe.length?r.interrupt?t:j:v):n(x)}function w(x){return Ft(x)?(e.consume(x),o=String.fromCharCode(x),E):n(x)}function E(x){if(x===null||x===47||x===62||qe(x)){const xe=x===47,yt=o.toLowerCase();return!xe&&!l&&dd.includes(yt)?(i=1,r.interrupt?t(x):j(x)):Vx.includes(o.toLowerCase())?(i=6,xe?(e.consume(x),h):r.interrupt?t(x):j(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):l?y(x):m(x))}return x===45||tt(x)?(e.consume(x),o+=String.fromCharCode(x),E):n(x)}function h(x){return x===62?(e.consume(x),r.interrupt?t:j):n(x)}function y(x){return Z(x)?(e.consume(x),y):L(x)}function m(x){return x===47?(e.consume(x),L):x===58||x===95||Ft(x)?(e.consume(x),S):Z(x)?(e.consume(x),m):L(x)}function S(x){return x===45||x===46||x===58||x===95||tt(x)?(e.consume(x),S):C(x)}function C(x){return x===61?(e.consume(x),k):Z(x)?(e.consume(x),C):m(x)}function k(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),s=x,I):Z(x)?(e.consume(x),k):T(x)}function I(x){return x===s?(e.consume(x),s=null,F):x===null||B(x)?n(x):(e.consume(x),I)}function T(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||qe(x)?C(x):(e.consume(x),T)}function F(x){return x===47||x===62||Z(x)?m(x):n(x)}function L(x){return x===62?(e.consume(x),M):n(x)}function M(x){return x===null||B(x)?j(x):Z(x)?(e.consume(x),M):n(x)}function j(x){return x===45&&i===2?(e.consume(x),re):x===60&&i===1?(e.consume(x),ce):x===62&&i===4?(e.consume(x),Q):x===63&&i===3?(e.consume(x),g):x===93&&i===5?(e.consume(x),b):B(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Wx,Y,K)(x)):x===null||B(x)?(e.exit("htmlFlowData"),K(x)):(e.consume(x),j)}function K(x){return e.check(Kx,ne,Y)(x)}function ne(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),H}function H(x){return x===null||B(x)?K(x):(e.enter("htmlFlowData"),j(x))}function re(x){return x===45?(e.consume(x),g):j(x)}function ce(x){return x===47?(e.consume(x),o="",R):j(x)}function R(x){if(x===62){const xe=o.toLowerCase();return dd.includes(xe)?(e.consume(x),Q):j(x)}return Ft(x)&&o.length<8?(e.consume(x),o+=String.fromCharCode(x),R):j(x)}function b(x){return x===93?(e.consume(x),g):j(x)}function g(x){return x===62?(e.consume(x),Q):x===45&&i===2?(e.consume(x),g):j(x)}function Q(x){return x===null||B(x)?(e.exit("htmlFlowData"),Y(x)):(e.consume(x),Q)}function Y(x){return e.exit("htmlFlow"),t(x)}}function Xx(e,t,n){const r=this;return i;function i(o){return B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Yx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ko,t,n)}}const Jx={name:"htmlText",tokenize:Zx};function Zx(e,t,n){const r=this;let i,l,o;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),a):g===47?(e.consume(g),C):g===63?(e.consume(g),m):Ft(g)?(e.consume(g),T):n(g)}function a(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),l=0,v):Ft(g)?(e.consume(g),y):n(g)}function c(g){return g===45?(e.consume(g),d):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),p):B(g)?(o=f,ce(g)):(e.consume(g),f)}function p(g){return g===45?(e.consume(g),d):f(g)}function d(g){return g===62?re(g):g===45?p(g):f(g)}function v(g){const Q="CDATA[";return g===Q.charCodeAt(l++)?(e.consume(g),l===Q.length?w:v):n(g)}function w(g){return g===null?n(g):g===93?(e.consume(g),E):B(g)?(o=w,ce(g)):(e.consume(g),w)}function E(g){return g===93?(e.consume(g),h):w(g)}function h(g){return g===62?re(g):g===93?(e.consume(g),h):w(g)}function y(g){return g===null||g===62?re(g):B(g)?(o=y,ce(g)):(e.consume(g),y)}function m(g){return g===null?n(g):g===63?(e.consume(g),S):B(g)?(o=m,ce(g)):(e.consume(g),m)}function S(g){return g===62?re(g):m(g)}function C(g){return Ft(g)?(e.consume(g),k):n(g)}function k(g){return g===45||tt(g)?(e.consume(g),k):I(g)}function I(g){return B(g)?(o=I,ce(g)):Z(g)?(e.consume(g),I):re(g)}function T(g){return g===45||tt(g)?(e.consume(g),T):g===47||g===62||qe(g)?F(g):n(g)}function F(g){return g===47?(e.consume(g),re):g===58||g===95||Ft(g)?(e.consume(g),L):B(g)?(o=F,ce(g)):Z(g)?(e.consume(g),F):re(g)}function L(g){return g===45||g===46||g===58||g===95||tt(g)?(e.consume(g),L):M(g)}function M(g){return g===61?(e.consume(g),j):B(g)?(o=M,ce(g)):Z(g)?(e.consume(g),M):F(g)}function j(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,K):B(g)?(o=j,ce(g)):Z(g)?(e.consume(g),j):(e.consume(g),ne)}function K(g){return g===i?(e.consume(g),i=void 0,H):g===null?n(g):B(g)?(o=K,ce(g)):(e.consume(g),K)}function ne(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||qe(g)?F(g):(e.consume(g),ne)}function H(g){return g===47||g===62||qe(g)?F(g):n(g)}function re(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function ce(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),R}function R(g){return Z(g)?oe(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):b(g)}function b(g){return e.enter("htmlTextData"),o(g)}}const fc={name:"labelEnd",resolveAll:rk,resolveTo:ik,tokenize:lk},ek={tokenize:ok},tk={tokenize:uk},nk={tokenize:sk};function rk(e){let t=-1;const n=[];for(;++t=3&&(a===null||B(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),Z(a)?oe(e,u,"whitespace")(a):u(a))}}const He={continuation:{tokenize:vk},exit:xk,name:"list",tokenize:gk},mk={partial:!0,tokenize:kk},yk={partial:!0,tokenize:wk};function gk(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const v=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ks(d)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check($l,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)}function s(d){return Ks(d)&&++o<10?(e.consume(d),s):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Ko,r.interrupt?n:c,e.attempt(mk,p,f))}function c(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function f(d){return Z(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function vk(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ko,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!Z(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yk,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(He,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function wk(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function xk(e){e.exit(this.containerState.type)}function kk(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!Z(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const pd={name:"setextUnderline",resolveTo:Sk,tokenize:Ek};function Sk(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function Ek(e,t,n){const r=this;let i;return l;function l(a){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),Z(a)?oe(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||B(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const Ck={tokenize:Pk};function Pk(e){const t=this,n=e.attempt(Ko,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nx,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const _k={resolveAll:oy()},Tk=ly("string"),Ik=ly("text");function ly(e){return{resolveAll:oy(e==="text"?Ok:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,u);return o;function o(c){return a(c)?l(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return a(c)?(n.exit("data"),l(c)):(n.consume(c),s)}function a(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Hk(e,t){let n=-1;const r=[];let i;for(;++n0){const gt=U.tokenStack[U.tokenStack.length-1];(gt[1]||md).call(U,void 0,gt[0])}for(z.position={start:on(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:on(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,a),e.applyData(t,a)}function lS(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oS(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ay(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function uS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ay(e,t);const i={src:Zr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function sS(e,t){const n={src:Zr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function aS(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function cS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ay(e,t);const i={href:Zr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function fS(e,t){const n={href:Zr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dS(e,t,n){const r=e.all(t),i=n?pS(n):cy(t),l={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u1}function hS(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=lc(t.children[1]),s=Vm(t.children[t.children.length-1]);u&&s&&(o.position={start:u,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function wS(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let s=-1;const a=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(vd(t.slice(i),i>0,!1)),l.join("")}function vd(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===yd||l===gd;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===yd||l===gd;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function SS(e,t){const n={type:"text",value:kS(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ES(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const CS={blockquote:Zk,break:eS,code:tS,delete:nS,emphasis:rS,footnoteReference:iS,heading:lS,html:oS,imageReference:uS,image:sS,inlineCode:aS,linkReference:cS,link:fS,listItem:dS,list:hS,paragraph:mS,root:yS,strong:gS,table:vS,tableCell:xS,tableRow:wS,text:SS,thematicBreak:ES,toml:_l,yaml:_l,definition:_l,footnoteDefinition:_l};function _l(){}const fy=-1,qo=0,Ii=1,wo=2,dc=3,pc=4,hc=5,mc=6,dy=7,py=8,wd=typeof self=="object"?self:globalThis,PS=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case qo:case fy:return n(o,i);case Ii:{const u=n([],i);for(const s of o)u.push(r(s));return u}case wo:{const u=n({},i);for(const[s,a]of o)u[r(s)]=r(a);return u}case dc:return n(new Date(o),i);case pc:{const{source:u,flags:s}=o;return n(new RegExp(u,s),i)}case hc:{const u=n(new Map,i);for(const[s,a]of o)u.set(r(s),r(a));return u}case mc:{const u=n(new Set,i);for(const s of o)u.add(r(s));return u}case dy:{const{name:u,message:s}=o;return n(new wd[u](s),i)}case py:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return n(new DataView(u),o)}}return n(new wd[l](o),i)};return r},xd=e=>PS(new Map,e)(0),cr="",{toString:_S}={},{keys:TS}=Object,fi=e=>{const t=typeof e;if(t!=="object"||!e)return[qo,t];const n=_S.call(e).slice(8,-1);switch(n){case"Array":return[Ii,cr];case"Object":return[wo,cr];case"Date":return[dc,cr];case"RegExp":return[pc,cr];case"Map":return[hc,cr];case"Set":return[mc,cr];case"DataView":return[Ii,n]}return n.includes("Array")?[Ii,n]:n.includes("Error")?[dy,n]:[wo,n]},Tl=([e,t])=>e===qo&&(t==="function"||t==="symbol"),IS=(e,t,n,r)=>{const i=(o,u)=>{const s=r.push(o)-1;return n.set(u,s),s},l=o=>{if(n.has(o))return n.get(o);let[u,s]=fi(o);switch(u){case qo:{let c=o;switch(s){case"bigint":u=py,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([fy],o)}return i([u,c],o)}case Ii:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const c=[],f=i([u,c],o);for(const p of o)c.push(l(p));return f}case wo:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([u,c],o);for(const p of TS(o))(e||!Tl(fi(o[p])))&&c.push([l(p),l(o[p])]);return f}case dc:return i([u,o.toISOString()],o);case pc:{const{source:c,flags:f}=o;return i([u,{source:c,flags:f}],o)}case hc:{const c=[],f=i([u,c],o);for(const[p,d]of o)(e||!(Tl(fi(p))||Tl(fi(d))))&&c.push([l(p),l(d)]);return f}case mc:{const c=[],f=i([u,c],o);for(const p of o)(e||!Tl(fi(p)))&&c.push(l(p));return f}}const{message:a}=o;return i([u,{name:s,message:a}],o)};return l},kd=(e,{json:t,lossy:n}={})=>{const r=[];return IS(!(t||n),!!t,new Map,r)(e),r},xo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xd(kd(e,t)):structuredClone(e):(e,t)=>xd(kd(e,t));function OS(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function NS(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function RS(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||OS,r=e.options.footnoteBackLabel||NS,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s0&&v.push({type:"text",value:" "});let y=typeof n=="string"?n:n(s,d);typeof y=="string"&&(y={type:"text",value:y}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,d),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const y=E.children[E.children.length-1];y&&y.type==="text"?y.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...v)}else c.push(...v);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(a,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...xo(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:` -`}]}}const hy=function(e){if(e==null)return AS;if(typeof e=="function")return Go(e);if(typeof e=="object")return Array.isArray(e)?zS(e):LS(e);if(typeof e=="string")return DS(e);throw new Error("Expected function, string, or object as test")};function zS(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let d=my,v,w,E;if((!t||l(s,a,c[c.length-1]||void 0))&&(d=BS(n(s,c)),d[0]===Sd))return d;if("children"in s&&s.children){const h=s;if(h.children&&d[0]!==jS)for(w=(r?h.children.length:-1)+o,E=c.concat(h);w>-1&&w0&&n.push({type:"text",value:` -`}),n}function Ed(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Cd(e,t){const n=HS(e,t),r=n.one(e,void 0),i=RS(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` -`},i),l}function KS(e,t){return e&&"run"in e?async function(n,r){const i=Cd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Cd(n,{file:r,...e||t})}}function Pd(e){if(e)throw e}var Vl=Object.prototype.hasOwnProperty,gy=Object.prototype.toString,_d=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Id=function(t){return typeof Array.isArray=="function"?Array.isArray(t):gy.call(t)==="[object Array]"},Od=function(t){if(!t||gy.call(t)!=="[object Object]")return!1;var n=Vl.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Vl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Vl.call(t,i)},Nd=function(t,n){_d&&n.name==="__proto__"?_d(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Rd=function(t,n){if(n==="__proto__")if(Vl.call(t,n)){if(Td)return Td(t,n).value}else return;return t[n]},qS=function e(){var t,n,r,i,l,o,u=arguments[0],s=1,a=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});so.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(a){const c=a;if(u&&n)throw c;return i(c)}u||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...u){n||(n=!0,t(o,...u))}function l(o){i(null,o)}}const zt={basename:YS,dirname:JS,extname:ZS,join:eE,sep:"/"};function YS(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ol(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function JS(e){if(ol(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ZS(e){ol(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function eE(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function nE(e,t){let n="",r=0,i=-1,l=0,o=-1,u,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return n}function ol(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const rE={cwd:iE};function iE(){return"/"}function Ys(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lE(e){if(typeof e=="string")e=new URL(e);else if(!Ys(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 oE(e)}function oE(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[d,...v]=c;const w=r[p][1];Xs(w)&&Xs(d)&&(d=Au(!0,w,d)),r[p]=[a,d,...v]}}}}const cE=new yc().freeze();function bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Uu(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 Ld(e){if(!Xs(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Il(e){return fE(e)?e:new vy(e)}function fE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dE(e){return typeof e=="string"||pE(e)}function pE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ad=[],Md={allowDangerousHtml:!0},mE=/^(https?|ircs?|mailto|xmpp)$/i,yE=[{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 wy(e){const t=gE(e),n=vE(e);return wE(t.runSync(t.parse(n),n),e)}function gE(e){const t=e.rehypePlugins||Ad,n=e.remarkPlugins||Ad,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Md}:Md;return cE().use(Jk).use(n).use(KS,r).use(t)}function vE(e){const t=e.children||"",n=new vy;return typeof t=="string"&&(n.value=t),n}function wE(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||xE;for(const c of yE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+hE+c.id,void 0);return yy(e,a),Rw(e,{Fragment:G.Fragment,components:i,ignoreInvalidStyle:!0,jsx:G.jsx,jsxs:G.jsxs,passKeys:!0,passNode:!0});function a(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in zu)if(Object.hasOwn(zu,d)&&Object.hasOwn(c.properties,d)){const v=c.properties[d],w=zu[d];(w===null||w.includes(c.tagName))&&(c.properties[d]=s(String(v||""),d,c))}}if(c.type==="element"){let d=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!d&&r&&typeof f=="number"&&(d=!r(c,f,p)),d&&p&&typeof f=="number")return u&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function xE(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||mE.test(e.slice(0,t))?e:""}const kE=({content:e})=>{const[t,n]=D.useState(!1);return G.jsxs("div",{className:"spoiler",children:[G.jsx("button",{className:"spoiler-toggle",onClick:()=>n(!t),children:t?"Скрыть результаты поиска":"Показать результаты поиска"}),t&&G.jsx("div",{className:"spoiler-content",children:G.jsx(wy,{children:e})})]})},Fd=({role:e,content:t,searchResults:n="",isLoading:r})=>G.jsx("div",{className:`message ${e}`,children:r?G.jsx("span",{children:"..."}):G.jsxs("div",{className:"message-content",children:[G.jsx(wy,{children:t}),n&&G.jsx(kE,{content:n})]})}),SE=({onSend:e,text:t,setText:n})=>{const r=i=>{i.key==="Enter"&&i.ctrlKey&&(i.preventDefault(),t.trim()&&e(t))};return G.jsx("div",{className:"input-wrapper",children:G.jsx("textarea",{value:t,onChange:i=>n(i.target.value),onKeyDown:r,placeholder:"Введите сообщение... (Ctrl+Enter для отправки)"})})};function Pe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var EE=typeof Symbol=="function"&&Symbol.observable||"@@observable",jd=EE,Hu=()=>Math.random().toString(36).substring(7).split("").join("."),CE={INIT:`@@redux/INIT${Hu()}`,REPLACE:`@@redux/REPLACE${Hu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Hu()}`},ko=CE;function gc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xy(e,t,n){if(typeof e!="function")throw new Error(Pe(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Pe(1));return n(xy)(e,t)}let r=e,i=t,l=new Map,o=l,u=0,s=!1;function a(){o===l&&(o=new Map,l.forEach((E,h)=>{o.set(h,E)}))}function c(){if(s)throw new Error(Pe(3));return i}function f(E){if(typeof E!="function")throw new Error(Pe(4));if(s)throw new Error(Pe(5));let h=!0;a();const y=u++;return o.set(y,E),function(){if(h){if(s)throw new Error(Pe(6));h=!1,a(),o.delete(y),l=null}}}function p(E){if(!gc(E))throw new Error(Pe(7));if(typeof E.type>"u")throw new Error(Pe(8));if(typeof E.type!="string")throw new Error(Pe(17));if(s)throw new Error(Pe(9));try{s=!0,i=r(i,E)}finally{s=!1}return(l=o).forEach(y=>{y()}),E}function d(E){if(typeof E!="function")throw new Error(Pe(10));r=E,p({type:ko.REPLACE})}function v(){const E=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Pe(11));function y(){const S=h;S.next&&S.next(c())}return y(),{unsubscribe:E(y)}},[jd](){return this}}}return p({type:ko.INIT}),{dispatch:p,subscribe:f,getState:c,replaceReducer:d,[jd]:v}}function PE(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ko.INIT})>"u")throw new Error(Pe(12));if(typeof n(void 0,{type:ko.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function _E(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw u&&u.type,new Error(Pe(14));a[f]=v,s=s||v!==d}return s=s||r.length!==Object.keys(o).length,s?a:o}}function So(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function TE(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Pe(15))};const o={getState:i.getState,dispatch:(s,...a)=>l(s,...a)},u=e.map(s=>s(o));return l=So(...u)(i.dispatch),{...i,dispatch:l}}}function IE(e){return gc(e)&&"type"in e&&typeof e.type=="string"}var ky=Symbol.for("immer-nothing"),bd=Symbol.for("immer-draftable"),it=Symbol.for("immer-state");function Pt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qr=Object.getPrototypeOf;function tr(e){return!!e&&!!e[it]}function tn(e){var t;return e?Sy(e)||Array.isArray(e)||!!e[bd]||!!((t=e.constructor)!=null&&t[bd])||Yo(e)||Jo(e):!1}var OE=Object.prototype.constructor.toString();function Sy(e){if(!e||typeof e!="object")return!1;const t=qr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===OE}function Eo(e,t){Xo(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Xo(e){const t=e[it];return t?t.type_:Array.isArray(e)?1:Yo(e)?2:Jo(e)?3:0}function Js(e,t){return Xo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ey(e,t,n){const r=Xo(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function NE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Yo(e){return e instanceof Map}function Jo(e){return e instanceof Set}function jn(e){return e.copy_||e.base_}function Zs(e,t){if(Yo(e))return new Map(e);if(Jo(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Sy(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[it];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=RE),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>vc(r,!0))),e}function RE(){Pt(2)}function Zo(e){return Object.isFrozen(e)}var zE={};function nr(e){const t=zE[e];return t||Pt(0,e),t}var Ki;function Cy(){return Ki}function LE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Bd(e,t){t&&(nr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ea(e){ta(e),e.drafts_.forEach(DE),e.drafts_=null}function ta(e){e===Ki&&(Ki=e.parent_)}function Ud(e){return Ki=LE(Ki,e)}function DE(e){const t=e[it];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Hd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[it].modified_&&(ea(t),Pt(4)),tn(e)&&(e=Co(t,e),t.parent_||Po(t,e)),t.patches_&&nr("Patches").generateReplacementPatches_(n[it].base_,e,t.patches_,t.inversePatches_)):e=Co(t,n,[]),ea(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ky?e:void 0}function Co(e,t,n){if(Zo(t))return t;const r=t[it];if(!r)return Eo(t,(i,l)=>$d(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Po(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,o=!1;r.type_===3&&(l=new Set(i),i.clear(),o=!0),Eo(l,(u,s)=>$d(e,r,i,u,s,n,o)),Po(e,i,!1),n&&e.patches_&&nr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function $d(e,t,n,r,i,l,o){if(tr(i)){const u=l&&t&&t.type_!==3&&!Js(t.assigned_,r)?l.concat(r):void 0,s=Co(e,i,u);if(Ey(n,r,s),tr(s))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(tn(i)&&!Zo(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Co(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Po(e,i)}}function Po(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vc(t,n)}function AE(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Cy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=wc;n&&(i=[r],l=qi);const{revoke:o,proxy:u}=Proxy.revocable(i,l);return r.draft_=u,r.revoke_=o,u}var wc={get(e,t){if(t===it)return e;const n=jn(e);if(!Js(n,t))return ME(e,n,t);const r=n[t];return e.finalized_||!tn(r)?r:r===$u(e.base_,t)?(Vu(e),e.copy_[t]=ra(r,e)):r},has(e,t){return t in jn(e)},ownKeys(e){return Reflect.ownKeys(jn(e))},set(e,t,n){const r=Py(jn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=$u(jn(e),t),l=i==null?void 0:i[it];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(NE(n,i)&&(n!==void 0||Js(e.base_,t)))return!0;Vu(e),na(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $u(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Vu(e),na(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=jn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Pt(11)},getPrototypeOf(e){return qr(e.base_)},setPrototypeOf(){Pt(12)}},qi={};Eo(wc,(e,t)=>{qi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});qi.deleteProperty=function(e,t){return qi.set.call(this,e,t,void 0)};qi.set=function(e,t,n){return wc.set.call(this,e[0],t,n,e[0])};function $u(e,t){const n=e[it];return(n?jn(n):e)[t]}function ME(e,t,n){var i;const r=Py(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Py(e,t){if(!(t in e))return;let n=qr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=qr(n)}}function na(e){e.modified_||(e.modified_=!0,e.parent_&&na(e.parent_))}function Vu(e){e.copy_||(e.copy_=Zs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var FE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const o=this;return function(s=l,...a){return o.produce(s,c=>n.call(this,c,...a))}}typeof n!="function"&&Pt(6),r!==void 0&&typeof r!="function"&&Pt(7);let i;if(tn(t)){const l=Ud(this),o=ra(t,void 0);let u=!0;try{i=n(o),u=!1}finally{u?ea(l):ta(l)}return Bd(l,r),Hd(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===ky&&(i=void 0),this.autoFreeze_&&vc(i,!0),r){const l=[],o=[];nr("Patches").generateReplacementPatches_(t,i,l,o),r(l,o)}return i}else Pt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,s=>t(s,...u));let r,i;return[this.produce(t,n,(o,u)=>{r=o,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){tn(e)||Pt(8),tr(e)&&(e=jE(e));const t=Ud(this),n=ra(e,void 0);return n[it].isManual_=!0,ta(t),n}finishDraft(e,t){const n=e&&e[it];(!n||!n.isManual_)&&Pt(9);const{scope_:r}=n;return Bd(r,t),Hd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=nr("Patches").applyPatches_;return tr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ra(e,t){const n=Yo(e)?nr("MapSet").proxyMap_(e,t):Jo(e)?nr("MapSet").proxySet_(e,t):AE(e,t);return(t?t.scope_:Cy()).drafts_.push(n),n}function jE(e){return tr(e)||Pt(10,e),_y(e)}function _y(e){if(!tn(e)||Zo(e))return e;const t=e[it];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Zs(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Zs(e,!0);return Eo(n,(r,i)=>{Ey(n,r,_y(i))}),t&&(t.finalized_=!1),n}var lt=new FE,Ty=lt.produce;lt.produceWithPatches.bind(lt);lt.setAutoFreeze.bind(lt);lt.setUseStrictShallowCopy.bind(lt);lt.applyPatches.bind(lt);lt.createDraft.bind(lt);lt.finishDraft.bind(lt);function Iy(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var bE=Iy(),BE=Iy,UE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?So:So.apply(null,arguments)};function Vd(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Xt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>IE(r)&&r.type===e,n}var Oy=class yi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,yi.prototype)}static get[Symbol.species](){return yi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new yi(...t[0].concat(this)):new yi(...t.concat(this))}};function Qd(e){return tn(e)?Ty(e,()=>{}):e}function Wd(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function HE(e){return typeof e=="boolean"}var $E=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let o=new Oy;return n&&(HE(n)?o.push(bE):o.push(BE(n.extraArgument))),o},VE="RTK_autoBatch",Kd=e=>t=>{setTimeout(t,e)},QE=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,o=!1;const u=new Set,s=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kd(10):e.type==="callback"?e.queueNotification:Kd(e.timeout),a=()=>{o=!1,l&&(l=!1,u.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),p=r.subscribe(f);return u.add(c),()=>{p(),u.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[VE]),l=!i,l&&(o||(o=!0,s(a))),r.dispatch(c)}finally{i=!0}}})},WE=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Oy(e);return r&&i.push(QE(typeof r=="object"?r:void 0)),i};function KE(e){const t=$E(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:o=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(gc(n))u=_E(n);else throw new Error(Xt(1));let s;typeof r=="function"?s=r(t):s=t();let a=So;i&&(a=UE({trace:!1,...typeof i=="object"&&i}));const c=TE(...s),f=WE(c);let p=typeof o=="function"?o(f):f();const d=a(...p);return xy(u,l,d)}function Ny(e){const t={},n=[];let r;const i={addCase(l,o){const u=typeof l=="string"?l:l.type;if(!u)throw new Error(Xt(28));if(u in t)throw new Error(Xt(29));return t[u]=o,i},addMatcher(l,o){return n.push({matcher:l,reducer:o}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function qE(e){return typeof e=="function"}function GE(e,t){let[n,r,i]=Ny(t),l;if(qE(e))l=()=>Qd(e());else{const u=Qd(e);l=()=>u}function o(u=l(),s){let a=[n[s.type],...r.filter(({matcher:c})=>c(s)).map(({reducer:c})=>c)];return a.filter(c=>!!c).length===0&&(a=[i]),a.reduce((c,f)=>{if(f)if(tr(c)){const d=f(c,s);return d===void 0?c:d}else{if(tn(c))return Ty(c,p=>f(p,s));{const p=f(c,s);if(p===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return c},u)}return o.getInitialState=l,o}var XE=Symbol.for("rtk-slice-createasyncthunk");function YE(e,t){return`${e}/${t}`}function JE({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[XE];return function(i){const{name:l,reducerPath:o=l}=i;if(!l)throw new Error(Xt(11));const u=(typeof i.reducers=="function"?i.reducers(tC()):i.reducers)||{},s=Object.keys(u),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,S){const C=typeof m=="string"?m:m.type;if(!C)throw new Error(Xt(12));if(C in a.sliceCaseReducersByType)throw new Error(Xt(13));return a.sliceCaseReducersByType[C]=S,c},addMatcher(m,S){return a.sliceMatchers.push({matcher:m,reducer:S}),c},exposeAction(m,S){return a.actionCreators[m]=S,c},exposeCaseReducer(m,S){return a.sliceCaseReducersByName[m]=S,c}};s.forEach(m=>{const S=u[m],C={reducerName:m,type:YE(l,m),createNotation:typeof i.reducers=="function"};rC(S)?lC(C,S,c,t):nC(C,S,c)});function f(){const[m={},S=[],C=void 0]=typeof i.extraReducers=="function"?Ny(i.extraReducers):[i.extraReducers],k={...m,...a.sliceCaseReducersByType};return GE(i.initialState,I=>{for(let T in k)I.addCase(T,k[T]);for(let T of a.sliceMatchers)I.addMatcher(T.matcher,T.reducer);for(let T of S)I.addMatcher(T.matcher,T.reducer);C&&I.addDefaultCase(C)})}const p=m=>m,d=new Map;let v;function w(m,S){return v||(v=f()),v(m,S)}function E(){return v||(v=f()),v.getInitialState()}function h(m,S=!1){function C(I){let T=I[m];return typeof T>"u"&&S&&(T=E()),T}function k(I=p){const T=Wd(d,S,()=>new WeakMap);return Wd(T,I,()=>{const F={};for(const[L,M]of Object.entries(i.selectors??{}))F[L]=ZE(M,I,E,S);return F})}return{reducerPath:m,getSelectors:k,get selectors(){return k(C)},selectSlice:C}}const y={name:l,reducer:w,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:E,...h(o),injectInto(m,{reducerPath:S,...C}={}){const k=S??o;return m.inject({reducerPath:k,reducer:w},C),{...y,...h(k,!0)}}};return y}}function ZE(e,t,n,r){function i(l,...o){let u=t(l);return typeof u>"u"&&r&&(u=n()),e(u,...o)}return i.unwrapped=e,i}var eC=JE();function tC(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function nC({type:e,reducerName:t,createNotation:n},r,i){let l,o;if("reducer"in r){if(n&&!iC(r))throw new Error(Xt(17));l=r.reducer,o=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,o?Vd(e,o):Vd(e))}function rC(e){return e._reducerDefinitionType==="asyncThunk"}function iC(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lC({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Xt(18));const{payloadCreator:l,fulfilled:o,pending:u,rejected:s,settled:a,options:c}=n,f=i(e,l,c);r.exposeAction(t,f),o&&r.addCase(f.fulfilled,o),u&&r.addCase(f.pending,u),s&&r.addCase(f.rejected,s),a&&r.addMatcher(f.settled,a),r.exposeCaseReducer(t,{fulfilled:o||Ol,pending:u||Ol,rejected:s||Ol,settled:a||Ol})}function Ol(){}function Xt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const oC=()=>{const e=localStorage.getItem("chatHistory");if(e)try{return JSON.parse(e)}catch(t){return console.error("Failed to parse chat history from localStorage:",t),[]}return[]},uC={history:oC()},Ry=eC({name:"chat",initialState:uC,reducers:{addMessage:(e,t)=>{e.history.push(t.payload),localStorage.setItem("chatHistory",JSON.stringify(e.history))},clearHistory:e=>{e.history=[],localStorage.setItem("chatHistory",JSON.stringify([]))},setHistory:(e,t)=>{e.history=t.payload,localStorage.setItem("chatHistory",JSON.stringify(e.history))}}}),{addMessage:sC,clearHistory:aC,setHistory:Qu}=Ry.actions,cC=Ry.reducer,fC=()=>{const[e,t]=D.useState(""),[n,r]=D.useState(null),[i,l]=D.useState(!1),[o,u]=D.useState(!1),s=A0(v=>v.chat.history),a=z0(),c=D.useRef(null),f=()=>{const v=document.querySelector(".messages");if(v){const w=v.getBoundingClientRect(),E=window.innerHeight;return w.bottom<=E+10}return!0},p=()=>{c.current&&(c.current.abort(),l(!1),console.log("Generation stopped by user"))},d=async v=>{var y;if(!v.trim()||i)return;const w={role:"user",content:v,searchResults:""};a(sC(w));const E=document.querySelector(".messages");if(E){const m=E.querySelectorAll("div"),S=m[m.length-1];S&&f()&&setTimeout(()=>{S.scrollIntoView({behavior:"smooth",block:"start"})},0)}t(""),l(!0),u(!1),console.log("Start request - isLoading:",i,"hasAssistantStarted:",o);const h="https://muryshev-generic-chatbot-backend.hf.space/llm/chat/stream";try{const m=new AbortController;c.current=m;const S=setTimeout(()=>{m.abort(),r("Сервер временно недоступен")},6e4),C=await fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({history:[...s,w]}),signal:m.signal});if(clearTimeout(S),!C.ok)throw new Error(`HTTP error! status: ${C.status}`);const k=(y=C.body)==null?void 0:y.getReader();if(!k)throw new Error("Response body is not readable");const I=new TextDecoder;let T="",F="",L=[...s,w];for(;;){const{done:M,value:j}=await k.read();if(M)break;T+=I.decode(j,{stream:!0});const K=T.split(` - -`);for(let H=0;Hg===L.length-1&&b.role==="user"?{...b,searchResults:R.data}:b),a(Qu(L)),console.log("After search_results - isLoading:",i,"hasAssistantStarted:",o);else if(R.event==="token"){o||(u(!0),console.log("Before first token - isLoading:",i,"hasAssistantStarted:",o)),F+=R.data;const b=L.findLastIndex(Q=>Q.role==="user"),g=L.findIndex((Q,Y)=>Q.role==="assistant"&&Y>b);g>=0?L=L.map((Q,Y)=>Y===g?{...Q,content:F}:Q):L=[...L,{role:"assistant",content:F,searchResults:""}],a(Qu(L))}}catch(R){console.error("Failed to parse SSE data:",R),r("Ошибка обработки данных от сервера")}}}T=K[K.length-1];const ne=document.querySelector(".messages");if(ne){const H=ne.querySelectorAll("div"),re=H[H.length-1];re&&f()&&setTimeout(()=>{re.scrollIntoView({behavior:"smooth",block:"start"})},0)}}}catch(m){console.error("Stream error:",m),l(!1),console.log("Catch - isLoading:",i,"hasAssistantStarted:",o),m instanceof DOMException&&m.name==="AbortError"&&!c.current?r("Сервер временно недоступен"):m instanceof DOMException&&m.name==="AbortError"||r("Произошла ошибка при запросе")}finally{c.current=null}};return D.useEffect(()=>{if(console.log("State update - isLoading:",i,"hasAssistantStarted:",o),n){const v=setTimeout(()=>r(null),5e3);return()=>clearTimeout(v)}},[i,o,n]),G.jsxs("div",{className:"chat",children:[n&&G.jsx("div",{className:"error-toast",children:n}),G.jsxs("div",{className:"messages",children:[s.map((v,w)=>G.jsx(Fd,{role:v.role,content:v.content,searchResults:v.searchResults})),i&&!o&&G.jsx(Fd,{role:"assistant",content:"",isLoading:!0,searchResults:""})]}),G.jsxs("div",{className:"input-area",children:[G.jsx(SE,{onSend:d,text:e,setText:t}),G.jsxs("div",{className:"buttons",children:[i?G.jsx("button",{className:"stop-button",onClick:p,children:"Остановить"}):G.jsx("button",{className:"send-button",onClick:()=>d(e),children:"Отправить"}),G.jsx("a",{href:"#",className:"clear-link",onClick:v=>{v.preventDefault(),a(aC())},children:"Очистить"})]})]})]})},dC=KE({reducer:{chat:cC}}),pC=()=>G.jsx(O0,{store:dC,children:G.jsx(fC,{})});var eu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tu=typeof window>"u"||"Deno"in globalThis;function xt(){}function hC(e,t){return typeof e=="function"?e(t):e}function mC(e){return typeof e=="number"&&e>=0&&e!==1/0}function yC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function qd(e,t){return typeof e=="function"?e(t):e}function gC(e,t){return typeof e=="function"?e(t):e}function Gd(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:u}=e;if(o){if(r){if(t.queryHash!==xc(o,t.options))return!1}else if(!Xi(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||l&&!l(t))}function Xd(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Gi(t.options.mutationKey)!==Gi(l))return!1}else if(!Xi(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Gi)(e)}function Gi(e){return JSON.stringify(e,(t,n)=>ia(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Xi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Xi(e[n],t[n])):!1}function zy(e,t){if(e===t)return e;const n=Yd(e)&&Yd(t);if(n||ia(e)&&ia(t)){const r=n?e:Object.keys(e),i=r.length,l=n?t:Object.keys(t),o=l.length,u=n?[]:{};let s=0;for(let a=0;a{setTimeout(t,e)})}function wC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?zy(e,t):t}function xC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var kc=Symbol();function Ly(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===kc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $n,dn,zr,tp,SC=(tp=class extends eu{constructor(){super();J(this,$n);J(this,dn);J(this,zr);$(this,zr,t=>{if(!tu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_(this,dn)||this.setEventListener(_(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,dn))==null||t.call(this),$(this,dn,void 0))}setEventListener(t){var n;$(this,zr,t),(n=_(this,dn))==null||n.call(this),$(this,dn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_(this,$n)!==t&&($(this,$n,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _(this,$n)=="boolean"?_(this,$n):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$n=new WeakMap,dn=new WeakMap,zr=new WeakMap,tp),Dy=new SC,Lr,pn,Dr,np,EC=(np=class extends eu{constructor(){super();J(this,Lr,!0);J(this,pn);J(this,Dr);$(this,Dr,t=>{if(!tu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){_(this,pn)||this.setEventListener(_(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=_(this,pn))==null||t.call(this),$(this,pn,void 0))}setEventListener(t){var n;$(this,Dr,t),(n=_(this,pn))==null||n.call(this),$(this,pn,t(this.setOnline.bind(this)))}setOnline(t){_(this,Lr)!==t&&($(this,Lr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _(this,Lr)}},Lr=new WeakMap,pn=new WeakMap,Dr=new WeakMap,np),_o=new EC;function CC(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function PC(e){return Math.min(1e3*2**e,3e4)}function Ay(e){return(e??"online")==="online"?_o.isOnline():!0}var My=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wu(e){return e instanceof My}function Fy(e){let t=!1,n=0,r=!1,i;const l=CC(),o=w=>{var E;r||(p(new My(w)),(E=e.abort)==null||E.call(e))},u=()=>{t=!0},s=()=>{t=!1},a=()=>Dy.isFocused()&&(e.networkMode==="always"||_o.isOnline())&&e.canRun(),c=()=>Ay(e.networkMode)&&e.canRun(),f=w=>{var E;r||(r=!0,(E=e.onSuccess)==null||E.call(e,w),i==null||i(),l.resolve(w))},p=w=>{var E;r||(r=!0,(E=e.onError)==null||E.call(e,w),i==null||i(),l.reject(w))},d=()=>new Promise(w=>{var E;i=h=>{(r||a())&&w(h)},(E=e.onPause)==null||E.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(r)return;let w;const E=n===0?e.initialPromise:void 0;try{w=E??e.fn()}catch(h){w=Promise.reject(h)}Promise.resolve(w).then(f).catch(h=>{var k;if(r)return;const y=e.retry??(tu?0:3),m=e.retryDelay??PC,S=typeof m=="function"?m(n,h):m,C=y===!0||typeof y=="number"&&na()?void 0:d()).then(()=>{t?p(h):v()})})};return{promise:l,cancel:o,continue:()=>(i==null||i(),l),cancelRetry:u,continueRetry:s,canStart:c,start:()=>(c()?v():d().then(v),l)}}function _C(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const l=u=>{t?e.push(u):i(()=>{n(u)})},o=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(s=>{n(s)})})})};return{batch:u=>{let s;t++;try{s=u()}finally{t--,t||o()}return s},batchCalls:u=>(...s)=>{l(()=>{u(...s)})},schedule:l,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var je=_C(),Vn,rp,jy=(rp=class{constructor(){J(this,Vn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mC(this.gcTime)&&$(this,Vn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tu?1/0:5*60*1e3))}clearGcTimeout(){_(this,Vn)&&(clearTimeout(_(this,Vn)),$(this,Vn,void 0))}},Vn=new WeakMap,rp),Ar,Mr,st,Qn,ze,Yi,Wn,kt,$t,ip,TC=(ip=class extends jy{constructor(t){super();J(this,kt);J(this,Ar);J(this,Mr);J(this,st);J(this,Qn);J(this,ze);J(this,Yi);J(this,Wn);$(this,Wn,!1),$(this,Yi,t.defaultOptions),this.setOptions(t.options),this.observers=[],$(this,Qn,t.client),$(this,st,_(this,Qn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$(this,Ar,OC(this.options)),this.state=t.state??_(this,Ar),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_(this,ze))==null?void 0:t.promise}setOptions(t){this.options={..._(this,Yi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,st).remove(this)}setData(t,n){const r=wC(this.state.data,t,this.options);return Oe(this,kt,$t).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Oe(this,kt,$t).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_(this,ze))==null?void 0:r.promise;return(i=_(this,ze))==null||i.cancel(t),n?n.then(xt).catch(xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_(this,Ar))}isActive(){return this.observers.some(t=>gC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===kc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!yC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_(this,st).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_(this,ze)&&(_(this,Wn)?_(this,ze).cancel({revert:!0}):_(this,ze).cancelRetry()),this.scheduleGc()),_(this,st).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,kt,$t).call(this,{type:"invalidate"})}fetch(t,n){var s,a,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_(this,ze))return _(this,ze).continueRetry(),_(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>($(this,Wn,!0),r.signal)})},l=()=>{const f=Ly(this.options,n),p={client:_(this,Qn),queryKey:this.queryKey,meta:this.meta};return i(p),$(this,Wn,!1),this.options.persister?this.options.persister(f,p,this):f(p)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:_(this,Qn),state:this.state,fetchFn:l};i(o),(s=this.options.behavior)==null||s.onFetch(o,this),$(this,Mr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=o.fetchOptions)==null?void 0:a.meta))&&Oe(this,kt,$t).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const u=f=>{var p,d,v,w;Wu(f)&&f.silent||Oe(this,kt,$t).call(this,{type:"error",error:f}),Wu(f)||((d=(p=_(this,st).config).onError)==null||d.call(p,f,this),(w=(v=_(this,st).config).onSettled)==null||w.call(v,this.state.data,f,this)),this.scheduleGc()};return $(this,ze,Fy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,d,v,w;if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(E){u(E);return}(d=(p=_(this,st).config).onSuccess)==null||d.call(p,f,this),(w=(v=_(this,st).config).onSettled)==null||w.call(v,f,this.state.error,this),this.scheduleGc()},onError:u,onFail:(f,p)=>{Oe(this,kt,$t).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Oe(this,kt,$t).call(this,{type:"pause"})},onContinue:()=>{Oe(this,kt,$t).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),_(this,ze).start()}},Ar=new WeakMap,Mr=new WeakMap,st=new WeakMap,Qn=new WeakMap,ze=new WeakMap,Yi=new WeakMap,Wn=new WeakMap,kt=new WeakSet,$t=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...IC(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Wu(i)&&i.revert&&_(this,Mr)?{..._(this,Mr),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),je.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_(this,st).notify({query:this,type:"updated",action:t})})},ip);function IC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ay(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function OC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Lt,lp,NC=(lp=class extends eu{constructor(t={}){super();J(this,Lt);this.config=t,$(this,Lt,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??xc(i,n);let o=this.get(l);return o||(o=new TC({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){_(this,Lt).has(t.queryHash)||(_(this,Lt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_(this,Lt).get(t.queryHash);n&&(t.destroy(),n===t&&_(this,Lt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){je.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _(this,Lt).get(t)}getAll(){return[..._(this,Lt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Gd(t,r)):n}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){je.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){je.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lt=new WeakMap,lp),Dt,Me,Kn,At,un,op,RC=(op=class extends jy{constructor(t){super();J(this,At);J(this,Dt);J(this,Me);J(this,Kn);this.mutationId=t.mutationId,$(this,Me,t.mutationCache),$(this,Dt,[]),this.state=t.state||zC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_(this,Dt).includes(t)||(_(this,Dt).push(t),this.clearGcTimeout(),_(this,Me).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$(this,Dt,_(this,Dt).filter(n=>n!==t)),this.scheduleGc(),_(this,Me).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_(this,Dt).length||(this.state.status==="pending"?this.scheduleGc():_(this,Me).remove(this))}continue(){var t;return((t=_(this,Kn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,o,u,s,a,c,f,p,d,v,w,E,h,y,m,S,C,k,I;$(this,Kn,Fy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,F)=>{Oe(this,At,un).call(this,{type:"failed",failureCount:T,error:F})},onPause:()=>{Oe(this,At,un).call(this,{type:"pause"})},onContinue:()=>{Oe(this,At,un).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,Me).canRun(this)}));const n=this.state.status==="pending",r=!_(this,Kn).canStart();try{if(!n){Oe(this,At,un).call(this,{type:"pending",variables:t,isPaused:r}),await((l=(i=_(this,Me).config).onMutate)==null?void 0:l.call(i,t,this));const F=await((u=(o=this.options).onMutate)==null?void 0:u.call(o,t));F!==this.state.context&&Oe(this,At,un).call(this,{type:"pending",context:F,variables:t,isPaused:r})}const T=await _(this,Kn).start();return await((a=(s=_(this,Me).config).onSuccess)==null?void 0:a.call(s,T,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,T,t,this.state.context)),await((d=(p=_(this,Me).config).onSettled)==null?void 0:d.call(p,T,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,T,null,t,this.state.context)),Oe(this,At,un).call(this,{type:"success",data:T}),T}catch(T){try{throw await((h=(E=_(this,Me).config).onError)==null?void 0:h.call(E,T,t,this.state.context,this)),await((m=(y=this.options).onError)==null?void 0:m.call(y,T,t,this.state.context)),await((C=(S=_(this,Me).config).onSettled)==null?void 0:C.call(S,void 0,T,this.state.variables,this.state.context,this)),await((I=(k=this.options).onSettled)==null?void 0:I.call(k,void 0,T,t,this.state.context)),T}finally{Oe(this,At,un).call(this,{type:"error",error:T})}}finally{_(this,Me).runNext(this)}}},Dt=new WeakMap,Me=new WeakMap,Kn=new WeakMap,At=new WeakSet,un=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),je.batch(()=>{_(this,Dt).forEach(r=>{r.onMutationUpdate(t)}),_(this,Me).notify({mutation:this,type:"updated",action:t})})},op);function zC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wt,St,Ji,up,LC=(up=class extends eu{constructor(t={}){super();J(this,Wt);J(this,St);J(this,Ji);this.config=t,$(this,Wt,new Set),$(this,St,new Map),$(this,Ji,0)}build(t,n,r){const i=new RC({mutationCache:this,mutationId:++sl(this,Ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){_(this,Wt).add(t);const n=Nl(t);if(typeof n=="string"){const r=_(this,St).get(n);r?r.push(t):_(this,St).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(_(this,Wt).delete(t)){const n=Nl(t);if(typeof n=="string"){const r=_(this,St).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&_(this,St).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Nl(t);if(typeof n=="string"){const r=_(this,St).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Nl(t);if(typeof n=="string"){const i=(r=_(this,St).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){je.batch(()=>{_(this,Wt).forEach(t=>{this.notify({type:"removed",mutation:t})}),_(this,Wt).clear(),_(this,St).clear()})}getAll(){return Array.from(_(this,Wt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Xd(n,r))}findAll(t={}){return this.getAll().filter(n=>Xd(t,n))}notify(t){je.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return je.batch(()=>Promise.all(t.map(n=>n.continue().catch(xt))))}},Wt=new WeakMap,St=new WeakMap,Ji=new WeakMap,up);function Nl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Zd(e){return{onFetch:(t,n)=>{var c,f,p,d,v;const r=t.options,i=(p=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,l=((d=t.state.data)==null?void 0:d.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let u={pages:[],pageParams:[]},s=0;const a=async()=>{let w=!1;const E=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},h=Ly(t.options,t.fetchOptions),y=async(m,S,C)=>{if(w)return Promise.reject();if(S==null&&m.pages.length)return Promise.resolve(m);const k={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};E(k);const I=await h(k),{maxPages:T}=t.options,F=C?kC:xC;return{pages:F(m.pages,I,T),pageParams:F(m.pageParams,S,T)}};if(i&&l.length){const m=i==="backward",S=m?DC:ep,C={pages:l,pageParams:o},k=S(r,C);u=await y(C,k,m)}else{const m=e??l.length;do{const S=s===0?o[0]??r.initialPageParam:ep(r,u);if(s>0&&S==null)break;u=await y(u,S),s++}while(s{var w,E;return(E=(w=t.options).persister)==null?void 0:E.call(w,a,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function ep(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var me,hn,mn,Fr,jr,yn,br,Br,sp,AC=(sp=class{constructor(e={}){J(this,me);J(this,hn);J(this,mn);J(this,Fr);J(this,jr);J(this,yn);J(this,br);J(this,Br);$(this,me,e.queryCache||new NC),$(this,hn,e.mutationCache||new LC),$(this,mn,e.defaultOptions||{}),$(this,Fr,new Map),$(this,jr,new Map),$(this,yn,0)}mount(){sl(this,yn)._++,_(this,yn)===1&&($(this,br,Dy.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,me).onFocus())})),$(this,Br,_o.subscribe(async e=>{e&&(await this.resumePausedMutations(),_(this,me).onOnline())})))}unmount(){var e,t;sl(this,yn)._--,_(this,yn)===0&&((e=_(this,br))==null||e.call(this),$(this,br,void 0),(t=_(this,Br))==null||t.call(this),$(this,Br,void 0))}isFetching(e){return _(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _(this,hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=_(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(qd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return _(this,me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_(this,me).get(r.queryHash),l=i==null?void 0:i.state.data,o=hC(t,l);if(o!==void 0)return _(this,me).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return je.batch(()=>_(this,me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_(this,me);je.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_(this,me);return je.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=je.batch(()=>_(this,me).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(xt).catch(xt)}invalidateQueries(e,t={}){return je.batch(()=>(_(this,me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=je.batch(()=>_(this,me).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(xt)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(xt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_(this,me).build(this,t);return n.isStaleByTime(qd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xt).catch(xt)}fetchInfiniteQuery(e){return e.behavior=Zd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xt).catch(xt)}ensureInfiniteQueryData(e){return e.behavior=Zd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _o.isOnline()?_(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,me)}getMutationCache(){return _(this,hn)}getDefaultOptions(){return _(this,mn)}setDefaultOptions(e){$(this,mn,e)}setQueryDefaults(e,t){_(this,Fr).set(Gi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._(this,Fr).values()],n={};return t.forEach(r=>{Xi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){_(this,jr).set(Gi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._(this,jr).values()],n={};return t.forEach(r=>{Xi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._(this,mn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=xc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===kc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._(this,mn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_(this,me).clear(),_(this,hn).clear()}},me=new WeakMap,hn=new WeakMap,mn=new WeakMap,Fr=new WeakMap,jr=new WeakMap,yn=new WeakMap,br=new WeakMap,Br=new WeakMap,sp),MC=D.createContext(void 0),FC=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),G.jsx(MC.Provider,{value:e,children:t}));const jC=new AC;Ku.createRoot(document.getElementById("root")).render(G.jsx(wp.StrictMode,{children:G.jsx(FC,{client:jC,children:G.jsx(a0,{children:G.jsx(o0,{children:G.jsx(Rm,{path:"/",element:G.jsx(pC,{})})})})})}));