diff --git "a/dist/assets/index-CZ2-MUTC.js" "b/dist/assets/index-CZ2-MUTC.js" new file mode 100644--- /dev/null +++ "b/dist/assets/index-CZ2-MUTC.js" @@ -0,0 +1,95 @@ +var Sf=e=>{throw TypeError(e)};var Ds=(e,t,n)=>t.has(e)||Sf("Cannot "+n);var C=(e,t,n)=>(Ds(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?Sf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),U=(e,t,n,r)=>(Ds(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ve=(e,t,n)=>(Ds(e,t,"access private method"),n);var Il=(e,t,n,r)=>({set _(i){U(e,t,i,n)},get _(){return C(e,t,r)}});function Cv(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 wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ka(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hh={exports:{}},ns={},mh={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 wl=Symbol.for("react.element"),Pv=Symbol.for("react.portal"),_v=Symbol.for("react.fragment"),Tv=Symbol.for("react.strict_mode"),Rv=Symbol.for("react.profiler"),Ov=Symbol.for("react.provider"),Nv=Symbol.for("react.context"),Iv=Symbol.for("react.forward_ref"),Av=Symbol.for("react.suspense"),Lv=Symbol.for("react.memo"),bv=Symbol.for("react.lazy"),xf=Symbol.iterator;function zv(e){return e===null||typeof e!="object"?null:(e=xf&&e[xf]||e["@@iterator"],typeof e=="function"?e:null)}var yh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gh=Object.assign,vh={};function di(e,t,n){this.props=e,this.context=t,this.refs=vh,this.updater=n||yh}di.prototype.isReactComponent={};di.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")};di.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wh(){}wh.prototype=di.prototype;function Xa(e,t,n){this.props=e,this.context=t,this.refs=vh,this.updater=n||yh}var Ga=Xa.prototype=new wh;Ga.constructor=Xa;gh(Ga,di.prototype);Ga.isPureReactComponent=!0;var kf=Array.isArray,Sh=Object.prototype.hasOwnProperty,Ya={current:null},xh={key:!0,ref:!0,__self:!0,__source:!0};function kh(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)Sh.call(t,r)&&!xh.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,te=L[G];if(0>>1;Gi(Et,w))oei(Ft,Et)?(L[G]=Ft,L[oe]=w,G=oe):(L[G]=Et,L[Ce]=w,G=Ce);else if(oei(Ft,w))L[G]=Ft,L[oe]=w,G=oe;else break e}}return B}function i(L,B){var w=L.sortIndex-B.sortIndex;return w!==0?w:L.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,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,f=null,d=3,p=!1,g=!1,v=!1,x=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(L){for(var B=n(a);B!==null;){if(B.callback===null)r(a);else if(B.startTime<=L)r(a),B.sortIndex=B.expirationTime,t(u,B);else break;B=n(a)}}function E(L){if(v=!1,m(L),!g)if(n(u)!==null)g=!0,xe(P);else{var B=n(a);B!==null&&ge(E,B.startTime-L)}}function P(L,B){g=!1,v&&(v=!1,h(R),R=-1),p=!0;var w=d;try{for(m(B),f=n(u);f!==null&&(!(f.expirationTime>B)||L&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var te=G(f.expirationTime<=B);B=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(u)&&r(u),m(B)}else r(u);f=n(u)}if(f!==null)var S=!0;else{var Ce=n(a);Ce!==null&&ge(E,Ce.startTime-B),S=!1}return S}finally{f=null,d=w,p=!1}}var k=!1,O=null,R=-1,D=5,F=-1;function M(){return!(e.unstable_now()-FL||125G?(L.sortIndex=w,t(a,L),n(u)===null&&L===n(a)&&(v?(h(R),R=-1):v=!0,ge(E,w-G))):(L.sortIndex=te,t(u,L),g||p||(g=!0,xe(P))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var B=d;return function(){var w=d;d=B;try{return L.apply(this,arguments)}finally{d=w}}}})(Rh);Th.exports=Rh;var Wv=Th.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 Kv=b,ct=Wv;function N(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"),Nu=Object.prototype.hasOwnProperty,Xv=/^[: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]*$/,Cf={},Pf={};function Gv(e){return Nu.call(Pf,e)?!0:Nu.call(Cf,e)?!1:Xv.test(e)?Pf[e]=!0:(Cf[e]=!0,!1)}function Yv(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 Jv(e,t,n,r){if(t===null||typeof t>"u"||Yv(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 Qe(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 Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Qe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Qe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Qe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Qe(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){Le[e]=new Qe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Qe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Qe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Qe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Qe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Za=/[\-:]([a-z])/g;function ec(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(Za,ec);Le[t]=new Qe(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(Za,ec);Le[t]=new Qe(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(Za,ec);Le[t]=new Qe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Qe(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Qe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Qe(e,1,!1,e.toLowerCase(),null,!0,!0)});function tc(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==l[s]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{js=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ai(e):""}function Zv(e){switch(e.tag){case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 2:case 15:return e=Bs(e.type,!1),e;case 11:return e=Bs(e.type.render,!1),e;case 1:return e=Bs(e.type,!0),e;default:return""}}function bu(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 Or:return"Fragment";case Rr:return"Portal";case Iu:return"Profiler";case nc:return"StrictMode";case Au:return"Suspense";case Lu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ih:return(e.displayName||"Context")+".Consumer";case Nh:return(e._context.displayName||"Context")+".Provider";case rc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ic:return t=e.displayName||null,t!==null?t:bu(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return bu(e(t))}catch{}}return null}function ew(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 bu(t);case 8:return t===nc?"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 Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tw(e){var t=Lh(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 bl(e){e._valueTracker||(e._valueTracker=tw(e))}function bh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function So(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 Tf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(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 zh(e,t){t=t.checked,t!=null&&tc(e,"checked",t,!1)}function Du(e,t){zh(e,t);var n=Un(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")?Fu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fu(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rf(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 Fu(e,t,n){(t!=="number"||So(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Li=Array.isArray;function Br(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fi={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},nw=["Webkit","ms","Moz","O"];Object.keys(Fi).forEach(function(e){nw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fi[t]=Fi[e]})});function jh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fi.hasOwnProperty(e)&&Fi[e]?(""+t).trim():t+"px"}function Bh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=jh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rw=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 Bu(e,t){if(t){if(rw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Uu(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 Hu=null;function lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $u=null,Ur=null,Hr=null;function If(e){if(e=kl(e)){if(typeof $u!="function")throw Error(N(280));var t=e.stateNode;t&&(t=ss(t),$u(e.stateNode,e.type,t))}}function Uh(e){Ur?Hr?Hr.push(e):Hr=[e]:Ur=e}function Hh(){if(Ur){var e=Ur,t=Hr;if(Hr=Ur=null,If(e),t)for(e=0;e>>=0,e===0?32:31-(hw(e)/mw|0)|0}var Dl=64,Fl=4194304;function bi(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 Co(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 s=o&~i;s!==0?r=bi(s):(l&=o,l!==0&&(r=bi(l)))}else o=n&~i,o!==0?r=bi(o):l!==0&&(r=bi(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 Sl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function ww(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=ji),Bf=" ",Uf=!1;function um(e,t){switch(e){case"keyup":return Ww.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function am(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nr=!1;function Xw(e,t){switch(e){case"compositionend":return am(t);case"keypress":return t.which!==32?null:(Uf=!0,Bf);case"textInput":return e=t.data,e===Bf&&Uf?null:e;default:return null}}function Gw(e,t){if(Nr)return e==="compositionend"||!pc&&um(e,t)?(e=om(),ro=cc=Nn=null,Nr=!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=Qf(n)}}function pm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hm(){for(var e=window,t=So();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=So(e.document)}return t}function hc(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 l0(e){var t=hm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pm(n.ownerDocument.documentElement,n)){if(r!==null&&hc(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=qf(n,l);var o=qf(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,Ir=null,Xu=null,Ui=null,Gu=!1;function Wf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gu||Ir==null||Ir!==So(r)||(r=Ir,"selectionStart"in r&&hc(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}),Ui&&nl(Ui,r)||(Ui=r,r=To(Xu,"onSelect"),0br||(e.current=na[br],na[br]=null,br--)}function ie(e,t){br++,na[br]=e.current,e.current=t}var Hn={},je=Qn(Hn),Ge=Qn(!1),fr=Hn;function li(e,t){var n=e.type.contextTypes;if(!n)return Hn;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 Ye(e){return e=e.childContextTypes,e!=null}function Oo(){ue(Ge),ue(je)}function ed(e,t,n){if(je.current!==Hn)throw Error(N(168));ie(je,t),ie(Ge,n)}function Em(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(N(108,ew(e)||"Unknown",i));return he({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,fr=je.current,ie(je,e),ie(Ge,Ge.current),!0}function td(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Em(e,t,fr),r.__reactInternalMemoizedMergedChildContext=e,ue(Ge),ue(je),ie(je,e)):ue(Ge),ie(Ge,n)}var en=null,us=!1,eu=!1;function Cm(e){en===null?en=[e]:en.push(e)}function g0(e){us=!0,Cm(e)}function qn(){if(!eu&&en!==null){eu=!0;var e=0,t=ee;try{var n=en;for(ee=1;e>=o,i-=o,rn=1<<32-Lt(t)+i|n<R?(D=O,O=null):D=O.sibling;var F=d(h,O,m[R],E);if(F===null){O===null&&(O=D);break}e&&O&&F.alternate===null&&t(h,O),y=l(F,y,R),k===null?P=F:k.sibling=F,k=F,O=D}if(R===m.length)return n(h,O),ce&&Xn(h,R),P;if(O===null){for(;RR?(D=O,O=null):D=O.sibling;var M=d(h,O,F.value,E);if(M===null){O===null&&(O=D);break}e&&O&&M.alternate===null&&t(h,O),y=l(M,y,R),k===null?P=M:k.sibling=M,k=M,O=D}if(F.done)return n(h,O),ce&&Xn(h,R),P;if(O===null){for(;!F.done;R++,F=m.next())F=f(h,F.value,E),F!==null&&(y=l(F,y,R),k===null?P=F:k.sibling=F,k=F);return ce&&Xn(h,R),P}for(O=r(h,O);!F.done;R++,F=m.next())F=p(O,h,R,F.value,E),F!==null&&(e&&F.alternate!==null&&O.delete(F.key===null?R:F.key),y=l(F,y,R),k===null?P=F:k.sibling=F,k=F);return e&&O.forEach(function(j){return t(h,j)}),ce&&Xn(h,R),P}function x(h,y,m,E){if(typeof m=="object"&&m!==null&&m.type===Or&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ll:e:{for(var P=m.key,k=y;k!==null;){if(k.key===P){if(P=m.type,P===Or){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===P||typeof P=="object"&&P!==null&&P.$$typeof===wn&&id(P)===k.type){n(h,k.sibling),y=i(k,m.props),y.ref=_i(h,k,m),y.return=h,h=y;break e}n(h,k);break}else t(h,k);k=k.sibling}m.type===Or?(y=ar(m.props.children,h.mode,E,m.key),y.return=h,h=y):(E=fo(m.type,m.key,m.props,null,h.mode,E),E.ref=_i(h,y,m),E.return=h,h=E)}return o(h);case Rr: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=uu(m,h.mode,E),y.return=h,h=y}return o(h);case wn:return k=m._init,x(h,y,k(m._payload),E)}if(Li(m))return g(h,y,m,E);if(xi(m))return v(h,y,m,E);Vl(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=su(m,h.mode,E),y.return=h,h=y),o(h)):n(h,y)}return x}var si=Rm(!0),Om=Rm(!1),Lo=Qn(null),bo=null,Fr=null,vc=null;function wc(){vc=Fr=bo=null}function Sc(e){var t=Lo.current;ue(Lo),e._currentValue=t}function la(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 Vr(e,t){bo=e,vc=Fr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xe=!0),e.firstContext=null)}function xt(e){var t=e._currentValue;if(vc!==e)if(e={context:e,memoizedValue:t,next:null},Fr===null){if(bo===null)throw Error(N(308));Fr=e,bo.dependencies={lanes:0,firstContext:e}}else Fr=Fr.next=e;return t}var er=null;function xc(e){er===null?er=[e]:er.push(e)}function Nm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,xc(t)):(n.next=i.next,i.next=n),t.interleaved=n,fn(e,r)}function fn(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 Sn=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Im(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,fn(e,n)}return i=r.interleaved,i===null?(t.next=t,xc(r)):(t.next=i.next,i.next=t),r.interleaved=t,fn(e,n)}function lo(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,sc(e,n)}}function ld(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 zo(e,t,n,r){var i=e.updateQueue;Sn=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?l=a:o.next=a,o=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(l!==null){var f=i.baseState;o=0,c=a=u=null,s=l;do{var d=s.lane,p=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;switch(d=t,p=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(p,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(p,f,d):g,d==null)break e;f=he({},f,d);break e;case 2:Sn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=p,u=f):c=c.next=p,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,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);hr|=o,e.lanes=o,e.memoizedState=f}}function od(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nu.transition;nu.transition={};try{e(!1),t()}finally{ee=n,nu.transition=r}}function Km(){return kt().memoizedState}function x0(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xm(e))Gm(t,n);else if(n=Nm(e,t,n,r),n!==null){var i=$e();bt(n,e,r,i),Ym(n,t,r)}}function k0(e,t,n){var r=jn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xm(e))Gm(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,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,zt(s,o)){var u=t.interleaved;u===null?(i.next=i,xc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=Nm(e,t,i,r),n!==null&&(i=$e(),bt(n,e,r,i),Ym(n,t,r))}}function Xm(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Gm(e,t){Hi=Fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ym(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,sc(e,n)}}var Mo={readContext:xt,useCallback:be,useContext:be,useEffect:be,useImperativeHandle:be,useInsertionEffect:be,useLayoutEffect:be,useMemo:be,useReducer:be,useRef:be,useState:be,useDebugValue:be,useDeferredValue:be,useTransition:be,useMutableSource:be,useSyncExternalStore:be,useId:be,unstable_isNewReconciler:!1},E0={readContext:xt,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,so(4194308,4,$m.bind(null,t,e),n)},useLayoutEffect:function(e,t){return so(4194308,4,e,t)},useInsertionEffect:function(e,t){return so(4,2,e,t)},useMemo:function(e,t){var n=Bt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bt();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=x0.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:sd,useDebugValue:Nc,useDeferredValue:function(e){return Bt().memoizedState=e},useTransition:function(){var e=sd(!1),t=e[0];return e=S0.bind(null,e[1]),Bt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=Bt();if(ce){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Re===null)throw Error(N(349));pr&30||zm(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,ud(Fm.bind(null,r,l,e),[e]),r.flags|=2048,cl(9,Dm.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Bt(),t=Re.identifierPrefix;if(ce){var n=ln,r=rn;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ul++,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[Qt]=t,e[ll]=r,sy(e,t,!1,!1),t.stateNode=e;e:{switch(o=Uu(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;ici&&(t.flags|=128,r=!0,Ti(l,!1),t.lanes=4194304)}else{if(!r)if(e=Do(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ti(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ce)return ze(t),null}else 2*we()-l.renderingStartTime>ci&&n!==1073741824&&(t.flags|=128,r=!0,Ti(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=we(),t.sibling=null,n=de.current,ie(de,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Dc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function I0(e,t){switch(yc(t),t.tag){case 1:return Ye(t.type)&&Oo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ui(),ue(Ge),ue(je),Pc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cc(t),null;case 13:if(ue(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(de),null;case 4:return ui(),null;case 10:return Sc(t.type._context),null;case 22:case 23:return Dc(),null;case 24:return null;default:return null}}var ql=!1,Fe=!1,A0=typeof WeakSet=="function"?WeakSet:Set,z=null;function Mr(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 ha(e,t,n){try{n()}catch(r){ye(e,t,r)}}var wd=!1;function L0(e,t){if(Yu=Po,e=hm(),hc(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,s=-1,u=-1,a=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(u=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++a===i&&(s=o),d===l&&++c===r&&(u=o),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ju={focusedElem:e,selectionRange:n},Po=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,x=g.memoizedState,h=t.stateNode,y=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:_t(t.type,v),x);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(N(163))}}catch(E){ye(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return g=wd,wd=!1,g}function $i(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&&ha(t,n,l)}i=i.next}while(i!==r)}}function fs(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 ma(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 cy(e){var t=e.alternate;t!==null&&(e.alternate=null,cy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[ll],delete t[ta],delete t[m0],delete t[y0])),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 fy(e){return e.tag===5||e.tag===3||e.tag===4}function Sd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fy(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 ya(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=Ro));else if(r!==4&&(e=e.child,e!==null))for(ya(e,t,n),e=e.sibling;e!==null;)ya(e,t,n),e=e.sibling}function ga(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(ga(e,t,n),e=e.sibling;e!==null;)ga(e,t,n),e=e.sibling}var Ne=null,Nt=!1;function yn(e,t,n){for(n=n.child;n!==null;)dy(e,t,n),n=n.sibling}function dy(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(rs,n)}catch{}switch(n.tag){case 5:Fe||Mr(n,t);case 6:var r=Ne,i=Nt;Ne=null,yn(e,t,n),Ne=r,Nt=i,Ne!==null&&(Nt?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(Nt?(e=Ne,n=n.stateNode,e.nodeType===8?Zs(e.parentNode,n):e.nodeType===1&&Zs(e,n),el(e)):Zs(Ne,n.stateNode));break;case 4:r=Ne,i=Nt,Ne=n.stateNode.containerInfo,Nt=!0,yn(e,t,n),Ne=r,Nt=i;break;case 0:case 11:case 14:case 15:if(!Fe&&(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)&&ha(n,t,o),i=i.next}while(i!==r)}yn(e,t,n);break;case 1:if(!Fe&&(Mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ye(n,t,s)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Fe=(r=Fe)||n.memoizedState!==null,yn(e,t,n),Fe=r):yn(e,t,n);break;default:yn(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new A0),t.forEach(function(r){var i=H0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~l}if(r=i,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*z0(r/1960))-r,10e?16:e,In===null)var r=!1;else{if(e=In,In=null,Uo=0,Y&6)throw Error(N(331));var i=Y;for(Y|=4,z=e.current;z!==null;){var l=z,o=l.child;if(z.flags&16){var s=l.deletions;if(s!==null){for(var u=0;uwe()-bc?ur(e,0):Lc|=n),Je(e,t)}function Sy(e,t){t===0&&(e.mode&1?(t=Fl,Fl<<=1,!(Fl&130023424)&&(Fl=4194304)):t=1);var n=$e();e=fn(e,t),e!==null&&(Sl(e,t,n),Je(e,n))}function U0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sy(e,n)}function H0(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(N(314))}r!==null&&r.delete(t),Sy(e,n)}var xy;xy=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ge.current)Xe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xe=!1,O0(e,t,n);Xe=!!(e.flags&131072)}else Xe=!1,ce&&t.flags&1048576&&Pm(t,Ao,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;uo(e,t),e=t.pendingProps;var i=li(t,je.current);Vr(t,n),i=Tc(null,t,r,e,i,n);var l=Rc();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,Ye(r)?(l=!0,No(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,kc(t),i.updater=cs,t.stateNode=i,i._reactInternals=t,sa(t,r,e,n),t=ca(null,t,r,!0,l,n)):(t.tag=0,ce&&l&&mc(t),He(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=V0(r),e=_t(r,e),i){case 0:t=aa(null,t,r,e,n);break e;case 1:t=yd(null,t,r,e,n);break e;case 11:t=hd(null,t,r,e,n);break e;case 14:t=md(null,t,r,_t(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),aa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),yd(e,t,r,i,n);case 3:e:{if(iy(t),e===null)throw Error(N(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Im(e,t),zo(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=ai(Error(N(423)),t),t=gd(e,t,r,n,i);break e}else if(r!==i){i=ai(Error(N(424)),t),t=gd(e,t,r,n,i);break e}else for(ot=Dn(t.stateNode.containerInfo.firstChild),ut=t,ce=!0,It=null,n=Om(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(oi(),r===i){t=dn(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return Am(t),e===null&&ia(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Zu(r,i)?o=null:l!==null&&Zu(r,l)&&(t.flags|=32),ry(e,t),He(e,t,o,n),t.child;case 6:return e===null&&ia(t),null;case 13:return ly(e,t,n);case 4:return Ec(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=si(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),hd(e,t,r,i,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(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,ie(Lo,r._currentValue),r._currentValue=o,l!==null)if(zt(l.value,o)){if(l.children===i.children&&!Ge.current){t=dn(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=on(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),la(l.return,n,t),s.lanes|=n;break}u=u.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(N(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),la(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}He(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=xt(i),r=r(i),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,i=_t(r,t.pendingProps),i=_t(r.type,i),md(e,t,r,i,n);case 15:return ty(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:_t(r,i),uo(e,t),t.tag=1,Ye(r)?(e=!0,No(t)):e=!1,Vr(t,n),Jm(t,r,i),sa(t,r,i,n),ca(null,t,r,!0,e,n);case 19:return oy(e,t,n);case 22:return ny(e,t,n)}throw Error(N(156,t.tag))};function ky(e,t){return Xh(e,t)}function $0(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 wt(e,t,n,r){return new $0(e,t,n,r)}function Mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V0(e){if(typeof e=="function")return Mc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rc)return 11;if(e===ic)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=wt(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 fo(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Mc(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Or:return ar(n.children,i,l,t);case nc:o=8,i|=8;break;case Iu:return e=wt(12,n,t,i|2),e.elementType=Iu,e.lanes=l,e;case Au:return e=wt(13,n,t,i),e.elementType=Au,e.lanes=l,e;case Lu:return e=wt(19,n,t,i),e.elementType=Lu,e.lanes=l,e;case Ah:return ps(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nh:o=10;break e;case Ih:o=9;break e;case rc:o=11;break e;case ic:o=14;break e;case wn:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=wt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function ar(e,t,n,r){return e=wt(7,e,r,t),e.lanes=n,e}function ps(e,t,n,r){return e=wt(22,e,r,t),e.elementType=Ah,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q0(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=Hs(0),this.expirationTimes=Hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jc(e,t,n,r,i,l,o,s,u){return e=new Q0(e,t,n,s,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=wt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},kc(l),e}function q0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_y)}catch(e){console.error(e)}}_y(),_h.exports=pt;var Y0=_h.exports,Od=Y0;Ou.createRoot=Od.createRoot,Ou.hydrateRoot=Od.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 Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ty(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Z0(){return Math.random().toString(36).substr(2,8)}function Id(e,t){return{usr:e.state,key:e.key,idx:t}}function ka(e,t,n,r){return n===void 0&&(n=null),Vo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:n,key:t&&t.key||r||Z0()})}function Ry(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 vs(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 e1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s=An.Pop,u=null,a=c();a==null&&(a=0,o.replaceState(Vo({},o.state,{idx:a}),""));function c(){return(o.state||{idx:null}).idx}function f(){s=An.Pop;let x=c(),h=x==null?null:x-a;a=x,u&&u({action:s,location:v.location,delta:h})}function d(x,h){s=An.Push;let y=ka(v.location,x,h);a=c()+1;let m=Id(y,a),E=v.createHref(y);try{o.pushState(m,"",E)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(E)}l&&u&&u({action:s,location:v.location,delta:1})}function p(x,h){s=An.Replace;let y=ka(v.location,x,h);a=c();let m=Id(y,a),E=v.createHref(y);o.replaceState(m,"",E),l&&u&&u({action:s,location:v.location,delta:0})}function g(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof x=="string"?x:Ry(x);return y=y.replace(/ $/,"%20"),tt(h,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,h)}let v={get action(){return s},get location(){return e(i,o)},listen(x){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Nd,f),u=x,()=>{i.removeEventListener(Nd,f),u=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let h=g(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:p,go(x){return o.go(x)}};return v}var Ad;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ad||(Ad={}));function t1(e,t,n){return n===void 0&&(n="/"),n1(e,t,n)}function n1(e,t,n,r){let i=typeof t=="string"?vs(t):t,l=Iy(i.pathname||"/",n);if(l==null)return null;let o=Oy(e);r1(o);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?l.path||"":s,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};u.relativePath.startsWith("/")&&(tt(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=qr([r,u.relativePath]),c=n.concat(u);l.children&&l.children.length>0&&(tt(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Oy(l.children,t,c,a)),!(l.path==null&&!l.index)&&t.push({path:a,score:c1(a,l.index),routesMeta:c})};return e.forEach((l,o)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))i(l,o);else for(let u of Ny(l.path))i(l,o,u)}),t}function Ny(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=Ny(r.join("/")),s=[];return s.push(...o.map(u=>u===""?l:[l,u].join("/"))),i&&s.push(...o),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function r1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:f1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const i1=/^:[\w-]+$/,l1=3,o1=2,s1=1,u1=10,a1=-2,Ld=e=>e==="*";function c1(e,t){let n=e.split("/"),r=n.length;return n.some(Ld)&&(r+=a1),t&&(r+=o1),n.filter(i=>!Ld(i)).reduce((i,l)=>i+(i1.test(l)?l1:l===""?s1:u1),r)}function f1(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 d1(e,t,n){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s{let{paramName:d,isOptional:p}=c;if(d==="*"){let v=s[f]||"";o=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const g=s[f];return p&&!g?a[d]=void 0:a[d]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:l,pathnameBase:o,pattern:e}}function h1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ty(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,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function m1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ty(!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 Iy(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 qr=e=>e.join("/").replace(/\/\/+/g,"/"),y1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function g1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ay=["post","put","patch","delete"];new Set(Ay);const v1=["get",...Ay];new Set(v1);/** + * 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 Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},h,{params:Object.assign({},u,h.params),pathname:qr([a,i.encodeLocation?i.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?a:qr([a,i.encodeLocation?i.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,n,r);return t&&x?b.createElement(ws.Provider,{value:{location:Qo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:An.Pop}},x):x}function C1(){let e=A1(),t=g1(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 b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,null)}const P1=b.createElement(C1,null);class _1 extends b.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?b.createElement(Ss.Provider,{value:this.props.routeContext},b.createElement(by.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T1(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(w1);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement(Ss.Provider,{value:t},r)}function R1(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,s=(i=n)==null?void 0:i.errors;if(s!=null){let c=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||tt(!1),o=o.slice(0,Math.min(o.length,c+1))}let u=!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,d)=>{let p,g=!1,v=null,x=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,v=f.route.errorElement||P1,u&&(a<0&&d===0?(L1("route-fallback"),g=!0,x=null):a===d&&(g=!0,x=f.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,d+1)),y=()=>{let m;return p?m=v:g?m=x:f.route.Component?m=b.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=c,b.createElement(T1,{match:f,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(_1,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:y(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):y()},null)}var zy=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}(zy||{});function O1(e){let t=b.useContext(S1);return t||tt(!1),t}function N1(e){let t=b.useContext(Ss);return t||tt(!1),t}function I1(e){let t=N1(),n=t.matches[t.matches.length-1];return n.route.id||tt(!1),n.route.id}function A1(){var e;let t=b.useContext(by),n=O1(zy.UseRouteError),r=I1();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const bd={};function L1(e,t,n){bd[e]||(bd[e]=!0)}function b1(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Dy(e){tt(!1)}function z1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=An.Pop,navigator:l,static:o=!1,future:s}=e;$c()&&tt(!1);let u=t.replace(/^\/*/,"/"),a=b.useMemo(()=>({basename:u,navigator:l,static:o,future:Qo({v7_relativeSplatPath:!1},s)}),[u,s,l,o]);typeof r=="string"&&(r=vs(r));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:g="default"}=r,v=b.useMemo(()=>{let x=Iy(c,u);return x==null?null:{location:{pathname:x,search:f,hash:d,state:p,key:g},navigationType:i}},[u,c,f,d,p,g,i]);return v==null?null:b.createElement(Ly.Provider,{value:a},b.createElement(ws.Provider,{children:n,value:v}))}function D1(e){let{children:t,location:n}=e;return k1(Ea(t),n)}new Promise(()=>{});function Ea(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let l=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Ea(r.props.children,l));return}r.type!==Dy&&tt(!1),!r.props.index||!r.props.children||tt(!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=Ea(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 F1="6";try{window.__reactRouterVersion=F1}catch{}const M1="startTransition",zd=Bv[M1];function j1(e){let{basename:t,children:n,future:r,window:i}=e,l=b.useRef();l.current==null&&(l.current=J0({window:i,v5Compat:!0}));let o=l.current,[s,u]=b.useState({action:o.action,location:o.location}),{v7_startTransition:a}=r||{},c=b.useCallback(f=>{a&&zd?zd(()=>u(f)):u(f)},[u,a]);return b.useLayoutEffect(()=>o.listen(c),[o,c]),b.useEffect(()=>b1(r),[r]),b.createElement(z1,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}var Dd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Dd||(Dd={}));var Fd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fd||(Fd={}));var Fy={exports:{}},My={};/** + * @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 Cl=b;function B1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var U1=typeof Object.is=="function"?Object.is:B1,H1=Cl.useSyncExternalStore,$1=Cl.useRef,V1=Cl.useEffect,Q1=Cl.useMemo,q1=Cl.useDebugValue;My.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=$1(null);if(l.current===null){var o={hasValue:!1,value:null};l.current=o}else o=l.current;l=Q1(function(){function u(p){if(!a){if(a=!0,c=p,p=r(p),i!==void 0&&o.hasValue){var g=o.value;if(i(g,p))return f=g}return f=p}if(g=f,U1(c,p))return g;var v=r(p);return i!==void 0&&i(g,v)?(c=p,g):(c=p,f=v)}var a=!1,c,f,d=n===void 0?null:n;return[function(){return u(t())},d===null?void 0:function(){return u(d())}]},[t,n,r,i]);var s=H1(e,l[0],l[1]);return V1(function(){o.hasValue=!0,o.value=s},[s]),q1(s),s};Fy.exports=My;var W1=Fy.exports;function K1(e){e()}function X1(){let e=null,t=null;return{clear(){e=null,t=null},notify(){K1(()=>{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 Md={notify(){},get:()=>[]};function G1(e,t){let n,r=Md,i=0,l=!1;function o(v){c();const x=r.subscribe(v);let h=!1;return()=>{h||(h=!0,x(),f())}}function s(){r.notify()}function u(){g.onStateChange&&g.onStateChange()}function a(){return l}function c(){i++,n||(n=e.subscribe(u),r=X1())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Md)}function d(){l||(l=!0,c())}function p(){l&&(l=!1,f())}const g={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>r};return g}var Y1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",J1=Y1(),Z1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",eS=Z1(),tS=()=>J1||eS?b.useLayoutEffect:b.useEffect,nS=tS(),au=Symbol.for("react-redux-context"),cu=typeof globalThis<"u"?globalThis:{};function rS(){if(!b.createContext)return{};const e=cu[au]??(cu[au]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var $n=rS();function iS(e){const{children:t,context:n,serverState:r,store:i}=e,l=b.useMemo(()=>{const u=G1(i);return{store:i,subscription:u,getServerState:r?()=>r:void 0}},[i,r]),o=b.useMemo(()=>i.getState(),[i]);nS(()=>{const{subscription:u}=l;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[l,o]);const s=n||$n;return b.createElement(s.Provider,{value:l},t)}var lS=iS;function Vc(e=$n){return function(){return b.useContext(e)}}var jy=Vc();function By(e=$n){const t=e===$n?jy:Vc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var oS=By();function sS(e=$n){const t=e===$n?oS:By(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var uS=sS(),aS=(e,t)=>e===t;function cS(e=$n){const t=e===$n?jy:Vc(e),n=(r,i={})=>{const{equalityFn:l=aS}=typeof i=="function"?{equalityFn:i}:i,o=t(),{store:s,subscription:u,getServerState:a}=o;b.useRef(!0);const c=b.useCallback({[r.name](d){return r(d)}}[r.name],[r]),f=W1.useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,a||s.getState,c,l);return b.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var fS=cS(),Pl=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(){}},xs=typeof window>"u"||"Deno"in globalThis;function Tt(){}function dS(e,t){return typeof e=="function"?e(t):e}function pS(e){return typeof e=="number"&&e>=0&&e!==1/0}function hS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jd(e,t){return typeof e=="function"?e(t):e}function mS(e,t){return typeof e=="function"?e(t):e}function Bd(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Qc(o,t.options))return!1}else if(!dl(t.queryKey,o))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function Ud(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(yr(t.options.mutationKey)!==yr(l))return!1}else if(!dl(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Qc(e,t){return((t==null?void 0:t.queryKeyHashFn)||yr)(e)}function yr(e){return JSON.stringify(e,(t,n)=>Ca(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function dl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!dl(e[n],t[n])):!1}function Uy(e,t){if(e===t)return e;const n=Hd(e)&&Hd(t);if(n||Ca(e)&&Ca(t)){const r=n?e:Object.keys(e),i=r.length,l=n?t:Object.keys(t),o=l.length,s=n?[]:{};let u=0;for(let a=0;a{setTimeout(t,e)})}function vS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uy(e,t):t}function wS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function SS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qc=Symbol();function Hy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var rr,En,Xr,lh,xS=(lh=class extends Pl{constructor(){super();q(this,rr);q(this,En);q(this,Xr);U(this,Xr,t=>{if(!xs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,En)||this.setEventListener(C(this,Xr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,En))==null||t.call(this),U(this,En,void 0))}setEventListener(t){var n;U(this,Xr,t),(n=C(this,En))==null||n.call(this),U(this,En,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,rr)!==t&&(U(this,rr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,rr)=="boolean"?C(this,rr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},rr=new WeakMap,En=new WeakMap,Xr=new WeakMap,lh),$y=new xS,Gr,Cn,Yr,oh,kS=(oh=class extends Pl{constructor(){super();q(this,Gr,!0);q(this,Cn);q(this,Yr);U(this,Yr,t=>{if(!xs&&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(){C(this,Cn)||this.setEventListener(C(this,Yr))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Cn))==null||t.call(this),U(this,Cn,void 0))}setEventListener(t){var n;U(this,Yr,t),(n=C(this,Cn))==null||n.call(this),U(this,Cn,t(this.setOnline.bind(this)))}setOnline(t){C(this,Gr)!==t&&(U(this,Gr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,Gr)}},Gr=new WeakMap,Cn=new WeakMap,Yr=new WeakMap,oh),qo=new kS;function ES(){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 CS(e){return Math.min(1e3*2**e,3e4)}function Vy(e){return(e??"online")==="online"?qo.isOnline():!0}var Qy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function fu(e){return e instanceof Qy}function qy(e){let t=!1,n=0,r=!1,i;const l=ES(),o=v=>{var x;r||(d(new Qy(v)),(x=e.abort)==null||x.call(e))},s=()=>{t=!0},u=()=>{t=!1},a=()=>$y.isFocused()&&(e.networkMode==="always"||qo.isOnline())&&e.canRun(),c=()=>Vy(e.networkMode)&&e.canRun(),f=v=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,v),i==null||i(),l.resolve(v))},d=v=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,v),i==null||i(),l.reject(v))},p=()=>new Promise(v=>{var x;i=h=>{(r||a())&&v(h)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),g=()=>{if(r)return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(f).catch(h=>{var k;if(r)return;const y=e.retry??(xs?0:3),m=e.retryDelay??CS,E=typeof m=="function"?m(n,h):m,P=y===!0||typeof y=="number"&&na()?void 0:p()).then(()=>{t?d(h):g()})})};return{promise:l,cancel:o,continue:()=>(i==null||i(),l),cancelRetry:s,continueRetry:u,canStart:c,start:()=>(c()?g():p().then(g),l)}}function PS(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(u=>{n(u)})})})};return{batch:s=>{let u;t++;try{u=s()}finally{t--,t||o()}return u},batchCalls:s=>(...u)=>{l(()=>{s(...u)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var Ie=PS(),ir,sh,Wy=(sh=class{constructor(){q(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pS(this.gcTime)&&U(this,ir,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xs?1/0:5*60*1e3))}clearGcTimeout(){C(this,ir)&&(clearTimeout(C(this,ir)),U(this,ir,void 0))}},ir=new WeakMap,sh),Jr,Zr,mt,lr,De,gl,or,Rt,Jt,uh,_S=(uh=class extends Wy{constructor(t){super();q(this,Rt);q(this,Jr);q(this,Zr);q(this,mt);q(this,lr);q(this,De);q(this,gl);q(this,or);U(this,or,!1),U(this,gl,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,lr,t.client),U(this,mt,C(this,lr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Jr,RS(this.options)),this.state=t.state??C(this,Jr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,De))==null?void 0:t.promise}setOptions(t){this.options={...C(this,gl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,mt).remove(this)}setData(t,n){const r=vS(this.state.data,t,this.options);return ve(this,Rt,Jt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ve(this,Rt,Jt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,De))==null?void 0:r.promise;return(i=C(this,De))==null||i.cancel(t),n?n.then(Tt).catch(Tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Jr))}isActive(){return this.observers.some(t=>mS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qc||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||!hS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,De))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,mt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,De)&&(C(this,or)?C(this,De).cancel({revert:!0}):C(this,De).cancelRetry()),this.scheduleGc()),C(this,mt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Rt,Jt).call(this,{type:"invalidate"})}fetch(t,n){var u,a,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,De))return C(this,De).continueRetry(),C(this,De).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(U(this,or,!0),r.signal)})},l=()=>{const f=Hy(this.options,n),d={client:C(this,lr),queryKey:this.queryKey,meta:this.meta};return i(d),U(this,or,!1),this.options.persister?this.options.persister(f,d,this):f(d)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,lr),state:this.state,fetchFn:l};i(o),(u=this.options.behavior)==null||u.onFetch(o,this),U(this,Zr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=o.fetchOptions)==null?void 0:a.meta))&&ve(this,Rt,Jt).call(this,{type:"fetch",meta:(c=o.fetchOptions)==null?void 0:c.meta});const s=f=>{var d,p,g,v;fu(f)&&f.silent||ve(this,Rt,Jt).call(this,{type:"error",error:f}),fu(f)||((p=(d=C(this,mt).config).onError)==null||p.call(d,f,this),(v=(g=C(this,mt).config).onSettled)==null||v.call(g,this.state.data,f,this)),this.scheduleGc()};return U(this,De,qy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var d,p,g,v;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(x){s(x);return}(p=(d=C(this,mt).config).onSuccess)==null||p.call(d,f,this),(v=(g=C(this,mt).config).onSettled)==null||v.call(g,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,d)=>{ve(this,Rt,Jt).call(this,{type:"failed",failureCount:f,error:d})},onPause:()=>{ve(this,Rt,Jt).call(this,{type:"pause"})},onContinue:()=>{ve(this,Rt,Jt).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),C(this,De).start()}},Jr=new WeakMap,Zr=new WeakMap,mt=new WeakMap,lr=new WeakMap,De=new WeakMap,gl=new WeakMap,or=new WeakMap,Rt=new WeakSet,Jt=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,...TS(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 fu(i)&&i.revert&&C(this,Zr)?{...C(this,Zr),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),Ie.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,mt).notify({query:this,type:"updated",action:t})})},uh);function TS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Vy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RS(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 Ht,ah,OS=(ah=class extends Pl{constructor(t={}){super();q(this,Ht);this.config=t,U(this,Ht,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Qc(i,n);let o=this.get(l);return o||(o=new _S({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){C(this,Ht).has(t.queryHash)||(C(this,Ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,Ht).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,Ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ie.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,Ht).get(t)}getAll(){return[...C(this,Ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bd(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Bd(t,r)):n}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ht=new WeakMap,ah),$t,Ue,sr,Vt,vn,ch,NS=(ch=class extends Wy{constructor(t){super();q(this,Vt);q(this,$t);q(this,Ue);q(this,sr);this.mutationId=t.mutationId,U(this,Ue,t.mutationCache),U(this,$t,[]),this.state=t.state||Ky(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,$t).includes(t)||(C(this,$t).push(t),this.clearGcTimeout(),C(this,Ue).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,$t,C(this,$t).filter(n=>n!==t)),this.scheduleGc(),C(this,Ue).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,$t).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ue).remove(this))}continue(){var t;return((t=C(this,sr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,o,s,u,a,c,f,d,p,g,v,x,h,y,m,E,P,k,O;U(this,sr,qy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,D)=>{ve(this,Vt,vn).call(this,{type:"failed",failureCount:R,error:D})},onPause:()=>{ve(this,Vt,vn).call(this,{type:"pause"})},onContinue:()=>{ve(this,Vt,vn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ue).canRun(this)}));const n=this.state.status==="pending",r=!C(this,sr).canStart();try{if(!n){ve(this,Vt,vn).call(this,{type:"pending",variables:t,isPaused:r}),await((l=(i=C(this,Ue).config).onMutate)==null?void 0:l.call(i,t,this));const D=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t));D!==this.state.context&&ve(this,Vt,vn).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const R=await C(this,sr).start();return await((a=(u=C(this,Ue).config).onSuccess)==null?void 0:a.call(u,R,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,R,t,this.state.context)),await((p=(d=C(this,Ue).config).onSettled)==null?void 0:p.call(d,R,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,R,null,t,this.state.context)),ve(this,Vt,vn).call(this,{type:"success",data:R}),R}catch(R){try{throw await((h=(x=C(this,Ue).config).onError)==null?void 0:h.call(x,R,t,this.state.context,this)),await((m=(y=this.options).onError)==null?void 0:m.call(y,R,t,this.state.context)),await((P=(E=C(this,Ue).config).onSettled)==null?void 0:P.call(E,void 0,R,this.state.variables,this.state.context,this)),await((O=(k=this.options).onSettled)==null?void 0:O.call(k,void 0,R,t,this.state.context)),R}finally{ve(this,Vt,vn).call(this,{type:"error",error:R})}}finally{C(this,Ue).runNext(this)}}},$t=new WeakMap,Ue=new WeakMap,sr=new WeakMap,Vt=new WeakSet,vn=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),Ie.batch(()=>{C(this,$t).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ue).notify({mutation:this,type:"updated",action:t})})},ch);function Ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var tn,Ot,vl,fh,IS=(fh=class extends Pl{constructor(t={}){super();q(this,tn);q(this,Ot);q(this,vl);this.config=t,U(this,tn,new Set),U(this,Ot,new Map),U(this,vl,0)}build(t,n,r){const i=new NS({mutationCache:this,mutationId:++Il(this,vl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){C(this,tn).add(t);const n=Xl(t);if(typeof n=="string"){const r=C(this,Ot).get(n);r?r.push(t):C(this,Ot).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,tn).delete(t)){const n=Xl(t);if(typeof n=="string"){const r=C(this,Ot).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&C(this,Ot).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Xl(t);if(typeof n=="string"){const r=C(this,Ot).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=Xl(t);if(typeof n=="string"){const i=(r=C(this,Ot).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(){Ie.batch(()=>{C(this,tn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,tn).clear(),C(this,Ot).clear()})}getAll(){return Array.from(C(this,tn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ud(n,r))}findAll(t={}){return this.getAll().filter(n=>Ud(t,n))}notify(t){Ie.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ie.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tt))))}},tn=new WeakMap,Ot=new WeakMap,vl=new WeakMap,fh);function Xl(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Vd(e){return{onFetch:(t,n)=>{var c,f,d,p,g;const r=t.options,i=(d=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:d.direction,l=((p=t.state.data)==null?void 0:p.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},u=0;const a=async()=>{let v=!1;const x=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},h=Hy(t.options,t.fetchOptions),y=async(m,E,P)=>{if(v)return Promise.reject();if(E==null&&m.pages.length)return Promise.resolve(m);const k={client:t.client,queryKey:t.queryKey,pageParam:E,direction:P?"backward":"forward",meta:t.options.meta};x(k);const O=await h(k),{maxPages:R}=t.options,D=P?SS:wS;return{pages:D(m.pages,O,R),pageParams:D(m.pageParams,E,R)}};if(i&&l.length){const m=i==="backward",E=m?AS:Qd,P={pages:l,pageParams:o},k=E(r,P);s=await y(P,k,m)}else{const m=e??l.length;do{const E=u===0?o[0]??r.initialPageParam:Qd(r,s);if(u>0&&E==null)break;s=await y(s,E),u++}while(u{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,a,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function Qd(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 AS(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,Pn,_n,ei,ti,Tn,ni,ri,dh,LS=(dh=class{constructor(e={}){q(this,me);q(this,Pn);q(this,_n);q(this,ei);q(this,ti);q(this,Tn);q(this,ni);q(this,ri);U(this,me,e.queryCache||new OS),U(this,Pn,e.mutationCache||new IS),U(this,_n,e.defaultOptions||{}),U(this,ei,new Map),U(this,ti,new Map),U(this,Tn,0)}mount(){Il(this,Tn)._++,C(this,Tn)===1&&(U(this,ni,$y.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,me).onFocus())})),U(this,ri,qo.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,me).onOnline())})))}unmount(){var e,t;Il(this,Tn)._--,C(this,Tn)===0&&((e=C(this,ni))==null||e.call(this),U(this,ni,void 0),(t=C(this,ri))==null||t.call(this),U(this,ri,void 0))}isFetching(e){return C(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(jd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(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=C(this,me).get(r.queryHash),l=i==null?void 0:i.state.data,o=dS(t,l);if(o!==void 0)return C(this,me).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ie.batch(()=>C(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=C(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,me);Ie.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,me);return Ie.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ie.batch(()=>C(this,me).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Tt).catch(Tt)}invalidateQueries(e,t={}){return Ie.batch(()=>(C(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=Ie.batch(()=>C(this,me).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(Tt)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,me).build(this,t);return n.isStaleByTime(jd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tt).catch(Tt)}fetchInfiniteQuery(e){return e.behavior=Vd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tt).catch(Tt)}ensureInfiniteQueryData(e){return e.behavior=Vd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qo.isOnline()?C(this,Pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,me)}getMutationCache(){return C(this,Pn)}getDefaultOptions(){return C(this,_n)}setDefaultOptions(e){U(this,_n,e)}setQueryDefaults(e,t){C(this,ei).set(yr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,ei).values()],n={};return t.forEach(r=>{dl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,ti).set(yr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,ti).values()],n={};return t.forEach(r=>{dl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,_n).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Qc(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===qc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,_n).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,me).clear(),C(this,Pn).clear()}},me=new WeakMap,Pn=new WeakMap,_n=new WeakMap,ei=new WeakMap,ti=new WeakMap,Tn=new WeakMap,ni=new WeakMap,ri=new WeakMap,dh),Rn,On,We,nn,un,po,Pa,ph,bS=(ph=class extends Pl{constructor(n,r){super();q(this,un);q(this,Rn);q(this,On);q(this,We);q(this,nn);U(this,Rn,n),this.setOptions(r),this.bindMethods(),ve(this,un,po).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=C(this,Rn).defaultMutationOptions(n),yS(this.options,r)||C(this,Rn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,We),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&yr(r.mutationKey)!==yr(this.options.mutationKey)?this.reset():((i=C(this,We))==null?void 0:i.state.status)==="pending"&&C(this,We).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,We))==null||n.removeObserver(this)}onMutationUpdate(n){ve(this,un,po).call(this),ve(this,un,Pa).call(this,n)}getCurrentResult(){return C(this,On)}reset(){var n;(n=C(this,We))==null||n.removeObserver(this),U(this,We,void 0),ve(this,un,po).call(this),ve(this,un,Pa).call(this)}mutate(n,r){var i;return U(this,nn,r),(i=C(this,We))==null||i.removeObserver(this),U(this,We,C(this,Rn).getMutationCache().build(C(this,Rn),this.options)),C(this,We).addObserver(this),C(this,We).execute(n)}},Rn=new WeakMap,On=new WeakMap,We=new WeakMap,nn=new WeakMap,un=new WeakSet,po=function(){var r;const n=((r=C(this,We))==null?void 0:r.state)??Ky();U(this,On,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Pa=function(n){Ie.batch(()=>{var r,i,l,o,s,u,a,c;if(C(this,nn)&&this.hasListeners()){const f=C(this,On).variables,d=C(this,On).context;(n==null?void 0:n.type)==="success"?((i=(r=C(this,nn)).onSuccess)==null||i.call(r,n.data,f,d),(o=(l=C(this,nn)).onSettled)==null||o.call(l,n.data,null,f,d)):(n==null?void 0:n.type)==="error"&&((u=(s=C(this,nn)).onError)==null||u.call(s,n.error,f,d),(c=(a=C(this,nn)).onSettled)==null||c.call(a,void 0,n.error,f,d))}this.listeners.forEach(f=>{f(C(this,On))})})},ph),Xy=b.createContext(void 0),zS=e=>{const t=b.useContext(Xy);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},DS=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ae.jsx(Xy.Provider,{value:e,children:t}));function FS(e,t){return typeof e=="function"?e(...t):!!e}function MS(){}function jS(e,t){const n=zS(),[r]=b.useState(()=>new bS(n,e));b.useEffect(()=>{r.setOptions(e)},[r,e]);const i=b.useSyncExternalStore(b.useCallback(o=>r.subscribe(Ie.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=b.useCallback((o,s)=>{r.mutate(o,s).catch(MS)},[r]);if(i.error&&FS(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:l,mutateAsync:i.mutate}}function Gy(e,t){return function(){return e.apply(t,arguments)}}const{toString:BS}=Object.prototype,{getPrototypeOf:Wc}=Object,ks=(e=>t=>{const n=BS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dt=e=>(e=e.toLowerCase(),t=>ks(t)===e),Es=e=>t=>typeof t===e,{isArray:mi}=Array,pl=Es("undefined");function US(e){return e!==null&&!pl(e)&&e.constructor!==null&&!pl(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yy=Dt("ArrayBuffer");function HS(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yy(e.buffer),t}const $S=Es("string"),at=Es("function"),Jy=Es("number"),Cs=e=>e!==null&&typeof e=="object",VS=e=>e===!0||e===!1,ho=e=>{if(ks(e)!=="object")return!1;const t=Wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},QS=Dt("Date"),qS=Dt("File"),WS=Dt("Blob"),KS=Dt("FileList"),XS=e=>Cs(e)&&at(e.pipe),GS=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=ks(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},YS=Dt("URLSearchParams"),[JS,ZS,ex,tx]=["ReadableStream","Request","Response","Headers"].map(Dt),nx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _l(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),mi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eg=e=>!pl(e)&&e!==nr;function _a(){const{caseless:e}=eg(this)&&this||{},t={},n=(r,i)=>{const l=e&&Zy(t,i)||i;ho(t[l])&&ho(r)?t[l]=_a(t[l],r):ho(r)?t[l]=_a({},r):mi(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(_l(t,(i,l)=>{n&&at(i)?e[l]=Gy(i,n):e[l]=i},{allOwnKeys:r}),e),ix=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ox=(e,t,n,r)=>{let i,l,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)o=i[l],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Wc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},sx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ux=e=>{if(!e)return null;if(mi(e))return e;let t=e.length;if(!Jy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ax=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wc(Uint8Array)),cx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},fx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dx=Dt("HTMLFormElement"),px=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),qd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hx=Dt("RegExp"),tg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_l(n,(i,l)=>{let o;(o=t(i,l,e))!==!1&&(r[l]=o||i)}),Object.defineProperties(e,r)},mx=e=>{tg(e,(t,n)=>{if(at(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(at(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return mi(e)?r(e):r(String(e).split(t)),n},gx=()=>{},vx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wx(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sx=e=>{const t=new Array(10),n=(r,i)=>{if(Cs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=mi(r)?[]:{};return _l(r,(o,s)=>{const u=n(o,i+1);!pl(u)&&(l[s]=u)}),t[i]=void 0,l}}return r};return n(e,0)},xx=Dt("AsyncFunction"),kx=e=>e&&(Cs(e)||at(e))&&at(e.then)&&at(e.catch),ng=((e,t)=>e?setImmediate:t?((n,r)=>(nr.addEventListener("message",({source:i,data:l})=>{i===nr&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),nr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",at(nr.postMessage)),Ex=typeof queueMicrotask<"u"?queueMicrotask.bind(nr):typeof process<"u"&&process.nextTick||ng,_={isArray:mi,isArrayBuffer:Yy,isBuffer:US,isFormData:GS,isArrayBufferView:HS,isString:$S,isNumber:Jy,isBoolean:VS,isObject:Cs,isPlainObject:ho,isReadableStream:JS,isRequest:ZS,isResponse:ex,isHeaders:tx,isUndefined:pl,isDate:QS,isFile:qS,isBlob:WS,isRegExp:hx,isFunction:at,isStream:XS,isURLSearchParams:YS,isTypedArray:ax,isFileList:KS,forEach:_l,merge:_a,extend:rx,trim:nx,stripBOM:ix,inherits:lx,toFlatObject:ox,kindOf:ks,kindOfTest:Dt,endsWith:sx,toArray:ux,forEachEntry:cx,matchAll:fx,isHTMLForm:dx,hasOwnProperty:qd,hasOwnProp:qd,reduceDescriptors:tg,freezeMethods:mx,toObjectSet:yx,toCamelCase:px,noop:gx,toFiniteNumber:vx,findKey:Zy,global:nr,isContextDefined:eg,isSpecCompliantForm:wx,toJSONObject:Sx,isAsyncFn:xx,isThenable:kx,setImmediate:ng,asap:Ex};function Q(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}_.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const rg=Q.prototype,ig={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ig[e]={value:e}});Object.defineProperties(Q,ig);Object.defineProperty(rg,"isAxiosError",{value:!0});Q.from=(e,t,n,r,i,l)=>{const o=Object.create(rg);return _.toFlatObject(e,o,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),Q.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,l&&Object.assign(o,l),o};const Cx=null;function Ta(e){return _.isPlainObject(e)||_.isArray(e)}function lg(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wd(e,t,n){return e?e.concat(t).map(function(i,l){return i=lg(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function Px(e){return _.isArray(e)&&!e.some(Ta)}const _x=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function Ps(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,x){return!_.isUndefined(x[v])});const r=n.metaTokens,i=n.visitor||c,l=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(t);if(!_.isFunction(i))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!u&&_.isBlob(g))throw new Q("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,x){let h=g;if(g&&!x&&typeof g=="object"){if(_.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&Px(g)||(_.isFileList(g)||_.endsWith(v,"[]"))&&(h=_.toArray(g)))return v=lg(v),h.forEach(function(m,E){!(_.isUndefined(m)||m===null)&&t.append(o===!0?Wd([v],E,l):o===null?v:v+"[]",a(m))}),!1}return Ta(g)?!0:(t.append(Wd(x,v,l),a(g)),!1)}const f=[],d=Object.assign(_x,{defaultVisitor:c,convertValue:a,isVisitable:Ta});function p(g,v){if(!_.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),_.forEach(g,function(h,y){(!(_.isUndefined(h)||h===null)&&i.call(t,h,_.isString(y)?y.trim():y,v,d))===!0&&p(h,v?v.concat(y):[y])}),f.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Kd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Kc(e,t){this._pairs=[],e&&Ps(e,this,t)}const og=Kc.prototype;og.append=function(t,n){this._pairs.push([t,n])};og.toString=function(t){const n=t?function(r){return t.call(this,r,Kd)}:Kd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Tx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sg(e,t,n){if(!t)return e;const r=n&&n.encode||Tx;_.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let l;if(i?l=i(t,n):l=_.isURLSearchParams(t)?t.toString():new Kc(t,n).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Xd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ug={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rx=typeof URLSearchParams<"u"?URLSearchParams:Kc,Ox=typeof FormData<"u"?FormData:null,Nx=typeof Blob<"u"?Blob:null,Ix={isBrowser:!0,classes:{URLSearchParams:Rx,FormData:Ox,Blob:Nx},protocols:["http","https","file","blob","url","data"]},Xc=typeof window<"u"&&typeof document<"u",Ra=typeof navigator=="object"&&navigator||void 0,Ax=Xc&&(!Ra||["ReactNative","NativeScript","NS"].indexOf(Ra.product)<0),Lx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bx=Xc&&window.location.href||"http://localhost",zx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Xc,hasStandardBrowserEnv:Ax,hasStandardBrowserWebWorkerEnv:Lx,navigator:Ra,origin:bx},Symbol.toStringTag,{value:"Module"})),Me={...zx,...Ix};function Dx(e,t){return Ps(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Me.isNode&&_.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Fx(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mx(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return o=!o&&_.isArray(i)?i.length:o,u?(_.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!_.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],l)&&_.isArray(i[o])&&(i[o]=Mx(i[o])),!s)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(r,i)=>{t(Fx(r),i,n,0)}),n}return null}function jx(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tl={transitional:ug,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=_.isObject(t);if(l&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return i?JSON.stringify(ag(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Dx(t,this.formSerializer).toString();if((s=_.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ps(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),jx(t)):t}],transformResponse:[function(t){const n=this.transitional||Tl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Q.from(s,Q.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],e=>{Tl.headers[e]={}});const Bx=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ux=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Bx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Gd=Symbol("internals");function Oi(e){return e&&String(e).trim().toLowerCase()}function mo(e){return e===!1||e==null?e:_.isArray(e)?e.map(mo):String(e)}function Hx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $x=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function du(e,t,n,r,i){if(_.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!_.isString(t)){if(_.isString(r))return t.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(t)}}function Vx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qx(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,o){return this[r].call(this,t,i,l,o)},configurable:!0})})}let Ze=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(s,u,a){const c=Oi(u);if(!c)throw new Error("header name must be a non-empty string");const f=_.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||u]=mo(s))}const o=(s,u)=>_.forEach(s,(a,c)=>l(a,c,u));if(_.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(_.isString(t)&&(t=t.trim())&&!$x(t))o(Ux(t),n);else if(_.isHeaders(t))for(const[s,u]of t.entries())l(u,s,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Oi(t),t){const r=_.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Hx(i);if(_.isFunction(n))return n.call(this,i,r);if(_.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Oi(t),t){const r=_.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||du(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(o){if(o=Oi(o),o){const s=_.findKey(r,o);s&&(!n||du(r,r[s],s,n))&&(delete r[s],i=!0)}}return _.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||du(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return _.forEach(this,(i,l)=>{const o=_.findKey(r,l);if(o){n[o]=mo(i),delete n[l];return}const s=t?Vx(l):String(l).trim();s!==l&&delete n[l],n[s]=mo(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&_.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Gd]=this[Gd]={accessors:{}}).accessors,i=this.prototype;function l(o){const s=Oi(o);r[s]||(Qx(i,o),r[s]=!0)}return _.isArray(t)?t.forEach(l):l(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});_.freezeMethods(Ze);function pu(e,t){const n=this||Tl,r=t||n,i=Ze.from(r.headers);let l=r.data;return _.forEach(e,function(s){l=s.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function cg(e){return!!(e&&e.__CANCEL__)}function yi(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(yi,Q,{__CANCEL__:!0});function fg(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qx(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wx(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,o;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[l];o||(o=a),n[i]=u,r[i]=a;let f=l,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),a-o{n=c,i=null,l&&(clearTimeout(l),l=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?o(a,c):(i=a,l||(l=setTimeout(()=>{l=null,o(i)},r-f)))},()=>i&&o(i)]}const Wo=(e,t,n=3)=>{let r=0;const i=Wx(50,250);return Kx(l=>{const o=l.loaded,s=l.lengthComputable?l.total:void 0,u=o-r,a=i(u),c=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-o)/a:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Yd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Jd=e=>(...t)=>_.asap(()=>e(...t)),Xx=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,Gx=Me.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const o=[e+"="+encodeURIComponent(t)];_.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),_.isString(r)&&o.push("path="+r),_.isString(i)&&o.push("domain="+i),l===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Yx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dg(e,t,n){let r=!Yx(t);return e&&(r||n==!1)?Jx(e,t):t}const Zd=e=>e instanceof Ze?{...e}:e;function gr(e,t){t=t||{};const n={};function r(a,c,f,d){return _.isPlainObject(a)&&_.isPlainObject(c)?_.merge.call({caseless:d},a,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function i(a,c,f,d){if(_.isUndefined(c)){if(!_.isUndefined(a))return r(void 0,a,f,d)}else return r(a,c,f,d)}function l(a,c){if(!_.isUndefined(c))return r(void 0,c)}function o(a,c){if(_.isUndefined(c)){if(!_.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(a,c,f)=>i(Zd(a),Zd(c),f,!0)};return _.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||i,d=f(e[c],t[c],c);_.isUndefined(d)&&f!==s||(n[c]=d)}),n}const pg=e=>{const t=gr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:o,auth:s}=t;t.headers=o=Ze.from(o),t.url=sg(dg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(_.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[a,...c]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([a||"multipart/form-data",...c].join("; "))}}if(Me.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(t)),r||r!==!1&&Xx(t.url))){const a=i&&l&&Gx.read(l);a&&o.set(i,a)}return t},Zx=typeof XMLHttpRequest<"u",ek=Zx&&function(e){return new Promise(function(n,r){const i=pg(e);let l=i.data;const o=Ze.from(i.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=i,c,f,d,p,g;function v(){p&&p(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function h(){if(!x)return;const m=Ze.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:m,config:e,request:x};fg(function(O){n(O),v()},function(O){r(O),v()},P),x=null}"onloadend"in x?x.onloadend=h:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(h)},x.onabort=function(){x&&(r(new Q("Request aborted",Q.ECONNABORTED,e,x)),x=null)},x.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||ug;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new Q(E,P.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,x)),x=null},l===void 0&&o.setContentType(null),"setRequestHeader"in x&&_.forEach(o.toJSON(),function(E,P){x.setRequestHeader(P,E)}),_.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),s&&s!=="json"&&(x.responseType=i.responseType),a&&([d,g]=Wo(a,!0),x.addEventListener("progress",d)),u&&x.upload&&([f,p]=Wo(u),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(c=m=>{x&&(r(!m||m.type?new yi(null,e,x):m),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=qx(i.url);if(y&&Me.protocols.indexOf(y)===-1){r(new Q("Unsupported protocol "+y+":",Q.ERR_BAD_REQUEST,e));return}x.send(l||null)})},tk=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(a){if(!i){i=!0,s();const c=a instanceof Error?a:this.reason;r.abort(c instanceof Q?c:new yi(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,l(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(l):a.removeEventListener("abort",l)}),e=null)};e.forEach(a=>a.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>_.asap(s),u}},nk=function*(e,t){let n=e.byteLength;if(n{const i=rk(e,t);let l=0,o,s=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await i.next();if(a){s(),u.close();return}let f=c.byteLength;if(n){let d=l+=f;n(d)}u.enqueue(new Uint8Array(c))}catch(a){throw s(a),a}},cancel(u){return s(u),i.return()}},{highWaterMark:2})},_s=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hg=_s&&typeof ReadableStream=="function",lk=_s&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ok=hg&&mg(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tp=64*1024,Oa=hg&&mg(()=>_.isReadableStream(new Response("").body)),Ko={stream:Oa&&(e=>e.body)};_s&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ko[t]&&(Ko[t]=_.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const sk=async e=>{if(e==null)return 0;if(_.isBlob(e))return e.size;if(_.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_.isArrayBufferView(e)||_.isArrayBuffer(e))return e.byteLength;if(_.isURLSearchParams(e)&&(e=e+""),_.isString(e))return(await lk(e)).byteLength},uk=async(e,t)=>{const n=_.toFiniteNumber(e.getContentLength());return n??sk(t)},ak=_s&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:o,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:d}=pg(e);a=a?(a+"").toLowerCase():"text";let p=tk([i,l&&l.toAbortSignal()],o),g;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let x;try{if(u&&ok&&n!=="get"&&n!=="head"&&(x=await uk(c,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(_.isFormData(r)&&(k=P.headers.get("content-type"))&&c.setContentType(k),P.body){const[O,R]=Yd(x,Wo(Jd(u)));r=ep(P.body,tp,O,R)}}_.isString(f)||(f=f?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:h?f:void 0});let y=await fetch(g);const m=Oa&&(a==="stream"||a==="response");if(Oa&&(s||m&&v)){const P={};["status","statusText","headers"].forEach(D=>{P[D]=y[D]});const k=_.toFiniteNumber(y.headers.get("content-length")),[O,R]=s&&Yd(k,Wo(Jd(s),!0))||[];y=new Response(ep(y.body,tp,O,()=>{R&&R(),v&&v()}),P)}a=a||"text";let E=await Ko[_.findKey(Ko,a)||"text"](y,e);return!m&&v&&v(),await new Promise((P,k)=>{fg(P,k,{data:E,headers:Ze.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:g})})}catch(h){throw v&&v(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,g),{cause:h.cause||h}):Q.from(h,h&&h.code,e,g)}}),Na={http:Cx,xhr:ek,fetch:ak};_.forEach(Na,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const np=e=>`- ${e}`,ck=e=>_.isFunction(e)||e===null||e===!1,yg={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?l.length>1?`since : +`+l.map(np).join(` +`):" "+np(l[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Na};function hu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yi(null,e)}function rp(e){return hu(e),e.headers=Ze.from(e.headers),e.data=pu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yg.getAdapter(e.adapter||Tl.adapter)(e).then(function(r){return hu(e),r.data=pu.call(e,e.transformResponse,r),r.headers=Ze.from(r.headers),r},function(r){return cg(r)||(hu(e),r&&r.response&&(r.response.data=pu.call(e,e.transformResponse,r.response),r.response.headers=Ze.from(r.response.headers))),Promise.reject(r)})}const gg="1.8.4",Ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ts[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ip={};Ts.transitional=function(t,n,r){function i(l,o){return"[Axios v"+gg+"] Transitional option '"+l+"'"+o+(r?". "+r:"")}return(l,o,s)=>{if(t===!1)throw new Q(i(o," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!ip[o]&&(ip[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,o,s):!0}};Ts.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function fk(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],o=t[l];if(o){const s=e[l],u=s===void 0||o(s,l,e);if(u!==!0)throw new Q("option "+l+" must be "+u,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+l,Q.ERR_BAD_OPTION)}}const yo={assertOptions:fk,validators:Ts},jt=yo.validators;let cr=class{constructor(t){this.defaults=t,this.interceptors={request:new Xd,response:new Xd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&yo.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),i!=null&&(_.isFunction(i)?n.paramsSerializer={serialize:i}:yo.assertOptions(i,{encode:jt.function,serialize:jt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yo.assertOptions(n,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=l&&_.merge(l.common,l[n.method]);l&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete l[g]}),n.headers=Ze.concat(o,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(u=u&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const a=[];this.interceptors.response.forEach(function(v){a.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!u){const g=[rp.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,a),d=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const o=new Promise(s=>{r.subscribe(s),l=s}).then(i);return o.cancel=function(){r.unsubscribe(l)},o},t(function(l,o,s){r.reason||(r.reason=new yi(l,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new vg(function(i){t=i}),cancel:t}}};function pk(e){return function(n){return e.apply(null,n)}}function hk(e){return _.isObject(e)&&e.isAxiosError===!0}const Ia={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ia).forEach(([e,t])=>{Ia[t]=e});function wg(e){const t=new cr(e),n=Gy(cr.prototype.request,t);return _.extend(n,cr.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return wg(gr(e,i))},n}const Se=wg(Tl);Se.Axios=cr;Se.CanceledError=yi;Se.CancelToken=dk;Se.isCancel=cg;Se.VERSION=gg;Se.toFormData=Ps;Se.AxiosError=Q;Se.Cancel=Se.CanceledError;Se.all=function(t){return Promise.all(t)};Se.spread=pk;Se.isAxiosError=hk;Se.mergeConfig=gr;Se.AxiosHeaders=Ze;Se.formToJSON=e=>ag(_.isHTMLForm(e)?new FormData(e):e);Se.getAdapter=yg.getAdapter;Se.HttpStatusCode=Ia;Se.default=Se;const{Axios:nR,AxiosError:rR,CanceledError:iR,isCancel:lR,CancelToken:oR,VERSION:sR,all:uR,Cancel:aR,isAxiosError:cR,spread:fR,toFormData:dR,AxiosHeaders:pR,HttpStatusCode:hR,formToJSON:mR,getAdapter:yR,mergeConfig:gR}=Se,mk=Se.create({baseURL:"https://muryshev-generic-chatbot-backend.hf.space"}),yk=()=>jS({mutationFn:e=>mk.post("/llm/chat",{history:e}),onError:e=>{console.error("API Error:",e)}});function gk(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sk={};function lp(e,t){return(Sk.jsx?wk:vk).test(e)}const xk=/[ \t\n\f\r]/g;function kk(e){return typeof e=="object"?e.type==="text"?op(e.value):!1:op(e)}function op(e){return e.replace(xk,"")===""}class Rl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Rl.prototype.normal={};Rl.prototype.property={};Rl.prototype.space=void 0;function Sg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Rl(n,r,t)}function Aa(e){return e.toLowerCase()}class nt{constructor(t,n){this.attribute=n,this.property=t}}nt.prototype.attribute="";nt.prototype.booleanish=!1;nt.prototype.boolean=!1;nt.prototype.commaOrSpaceSeparated=!1;nt.prototype.commaSeparated=!1;nt.prototype.defined=!1;nt.prototype.mustUseProperty=!1;nt.prototype.number=!1;nt.prototype.overloadedBoolean=!1;nt.prototype.property="";nt.prototype.spaceSeparated=!1;nt.prototype.space=void 0;let Ek=0;const V=kr(),ke=kr(),xg=kr(),I=kr(),re=kr(),Wr=kr(),it=kr();function kr(){return 2**++Ek}const La=Object.freeze(Object.defineProperty({__proto__:null,boolean:V,booleanish:ke,commaOrSpaceSeparated:it,commaSeparated:Wr,number:I,overloadedBoolean:xg,spaceSeparated:re},Symbol.toStringTag,{value:"Module"})),mu=Object.keys(La);class Gc extends nt{constructor(t,n,r,i){let l=-1;if(super(t,n),sp(this,"space",i),typeof r=="number")for(;++l4&&n.slice(0,4)==="data"&&Rk.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(up,Ik);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!up.test(l)){let o=l.replace(Tk,Nk);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Gc}return new i(r,t)}function Nk(e){return"-"+e.toLowerCase()}function Ik(e){return e.charAt(1).toUpperCase()}const Ak=Sg([kg,Ck,Pg,_g,Tg],"html"),Yc=Sg([kg,Pk,Pg,_g,Tg],"svg");function Lk(e){return e.join(" ").trim()}var Jc={},ap=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,bk=/\n/g,zk=/^\s*/,Dk=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fk=/^:\s*/,Mk=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jk=/^[;\s]*/,Bk=/^\s+|\s+$/g,Uk=` +`,cp="/",fp="*",Jn="",Hk="comment",$k="declaration",Vk=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(g){var v=g.match(bk);v&&(n+=v.length);var x=g.lastIndexOf(Uk);r=~x?g.length-x:r+g.length}function l(){var g={line:n,column:r};return function(v){return v.position=new o(g),a(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function u(g){var v=g.exec(e);if(v){var x=v[0];return i(x),e=e.slice(x.length),v}}function a(){u(zk)}function c(g){var v;for(g=g||[];v=f();)v!==!1&&g.push(v);return g}function f(){var g=l();if(!(cp!=e.charAt(0)||fp!=e.charAt(1))){for(var v=2;Jn!=e.charAt(v)&&(fp!=e.charAt(v)||cp!=e.charAt(v+1));)++v;if(v+=2,Jn===e.charAt(v-1))return s("End of comment missing");var x=e.slice(2,v-2);return r+=2,i(x),e=e.slice(v),r+=2,g({type:Hk,comment:x})}}function d(){var g=l(),v=u(Dk);if(v){if(f(),!u(Fk))return s("property missing ':'");var x=u(Mk),h=g({type:$k,property:dp(v[0].replace(ap,Jn)),value:x?dp(x[0].replace(ap,Jn)):Jn});return u(jk),h}}function p(){var g=[];c(g);for(var v;v=d();)v!==!1&&(g.push(v),c(g));return g}return a(),p()};function dp(e){return e?e.replace(Bk,Jn):Jn}var Qk=wo&&wo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=Wk;var qk=Qk(Vk);function Wk(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,qk.default)(e),i=typeof t=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,s=l.value;i?t(o,s,l):s&&(n=n||{},n[o]=s)}}),n}var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.camelCase=void 0;var Kk=/^--[a-zA-Z0-9_-]+$/,Xk=/-([a-z])/g,Gk=/^[^-]+$/,Yk=/^-(webkit|moz|ms|o|khtml)-/,Jk=/^-(ms)-/,Zk=function(e){return!e||Gk.test(e)||Kk.test(e)},eE=function(e,t){return t.toUpperCase()},pp=function(e,t){return"".concat(t,"-")},tE=function(e,t){return t===void 0&&(t={}),Zk(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Jk,pp):e=e.replace(Yk,pp),e.replace(Xk,eE))};Rs.camelCase=tE;var nE=wo&&wo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},rE=nE(Jc),iE=Rs;function ba(e,t){var n={};return!e||typeof e!="string"||(0,rE.default)(e,function(r,i){r&&i&&(n[(0,iE.camelCase)(r,t)]=i)}),n}ba.default=ba;var lE=ba;const oE=Ka(lE),Rg=Og("end"),Zc=Og("start");function Og(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 sE(e){const t=Zc(e),n=Rg(e);if(t&&n)return{start:t,end:n}}function qi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hp(e.position):"start"in e||"end"in e?hp(e):"line"in e||"column"in e?za(e):""}function za(e){return mp(e&&e.line)+":"+mp(e&&e.column)}function hp(e){return za(e&&e.start)+"-"+za(e&&e.end)}function mp(e){return e&&typeof e=="number"?e:1}class Be 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 u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=qi(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}}Be.prototype.file="";Be.prototype.name="";Be.prototype.reason="";Be.prototype.message="";Be.prototype.stack="";Be.prototype.column=void 0;Be.prototype.line=void 0;Be.prototype.ancestors=void 0;Be.prototype.cause=void 0;Be.prototype.fatal=void 0;Be.prototype.place=void 0;Be.prototype.ruleId=void 0;Be.prototype.source=void 0;const ef={}.hasOwnProperty,uE=new Map,aE=/[A-Z]/g,cE=new Set(["table","tbody","thead","tfoot","tr"]),fE=new Set(["td","th"]),Ng="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dE(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=SE(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=wE(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"?Yc:Ak,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Ig(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Ig(e,t,n){if(t.type==="element")return pE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yE(e,t,n);if(t.type==="mdxjsEsm")return mE(e,t);if(t.type==="root")return gE(e,t,n);if(t.type==="text")return vE(e,t)}function pE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Yc,e.schema=i),e.ancestors.push(t);const l=Lg(e,t.tagName,!1),o=xE(e,t);let s=nf(e,t);return cE.has(t.tagName)&&(s=s.filter(function(u){return typeof u=="string"?!kk(u):!0})),Ag(e,o,l,t),tf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function hE(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)}hl(e,t.position)}function mE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);hl(e,t.position)}function yE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Yc,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Lg(e,t.name,!0),o=kE(e,t),s=nf(e,t);return Ag(e,o,l,t),tf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function gE(e,t,n){const r={};return tf(r,nf(e,t)),e.create(t,e.Fragment,r,n)}function vE(e,t){return t.value}function Ag(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tf(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function wE(e,t,n){return r;function r(i,l,o,s){const a=Array.isArray(o.children)?n:t;return s?a(l,o,s):a(l,o)}}function SE(e,t){return n;function n(r,i,l,o){const s=Array.isArray(l.children),u=Zc(r);return t(i,l,o,s,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function xE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ef.call(t.properties,i)){const l=EE(e,i,t.properties[i]);if(l){const[o,s]=l;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&fE.has(t.tagName)?r=s:n[o]=s}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function kE(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 s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else hl(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 s=r.value.data.estree.body[0];s.type,l=e.evaluater.evaluateExpression(s.expression)}else hl(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function nf(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:uE;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?(Xt(e,e.length,0,t),e):t}const vp={}.hasOwnProperty;function IE(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 Kr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qt=Wn(/[A-Za-z]/),st=Wn(/[\dA-Za-z]/),bE=Wn(/[#-'*+\--9=?A-Z^-~]/);function Da(e){return e!==null&&(e<32||e===127)}const Fa=Wn(/\d/),zE=Wn(/[\dA-Fa-f]/),DE=Wn(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function et(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const FE=Wn(new RegExp("\\p{P}|\\p{S}","u")),ME=Wn(/\s/);function Wn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function vi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&l<57344){const s=e.charCodeAt(n+1);l<56320&&s>56319&&s<57344?(o=String.fromCharCode(l,s),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 le(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return J(u)?(e.enter(n),s(u)):t(u)}function s(u){return J(u)&&l++o))return;const O=t.events.length;let R=O,D,F;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(D){F=t.events[R][1].end;break}D=!0}for(h(r),k=O;km;){const P=n[E];t.containerState=P[1],P[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 $E(e,t,n){return le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Sp(e){if(e===null||et(e)||ME(e))return 1;if(FE(e))return 2}function lf(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},d={...e[n][1].start};xp(f,-u),xp(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=vt(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=vt(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=vt(a,lf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=vt(a,[["exit",l,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,a=vt(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Xt(e,r-1,n-r+3,a),n=r+a.length-c-2;break}}for(n=-1;++n0&&J(k)?le(e,y,"linePrefix",l+1)(k):y(k)}function y(k){return k===null||H(k)?e.check(kp,v,E)(k):(e.enter("codeFlowValue"),m(k))}function m(k){return k===null||H(k)?(e.exit("codeFlowValue"),y(k)):(e.consume(k),m)}function E(k){return e.exit("codeFenced"),t(k)}function P(k,O,R){let D=0;return F;function F(K){return k.enter("lineEnding"),k.consume(K),k.exit("lineEnding"),M}function M(K){return k.enter("codeFencedFence"),J(K)?le(k,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):j(K)}function j(K){return K===s?(k.enter("codeFencedFenceSequence"),Z(K)):R(K)}function Z(K){return K===s?(D++,k.consume(K),Z):D>=o?(k.exit("codeFencedFenceSequence"),J(K)?le(k,fe,"whitespace")(K):fe(K)):R(K)}function fe(K){return K===null||H(K)?(k.exit("codeFencedFence"),O(K)):R(K)}}}function tC(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 gu={name:"codeIndented",tokenize:rC},nC={partial:!0,tokenize:iC};function rC(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),le(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?u(a):H(a)?e.attempt(nC,o,u)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||H(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),s)}function u(a){return e.exit("codeIndented"),t(a)}}function iC(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):H(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):le(e,l,"linePrefix",5)(o)}function l(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):H(o)?i(o):n(o)}}const lC={name:"codeText",previous:sC,resolve:oC,tokenize:uC};function oC(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&&Ni(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),Ni(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ni(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 Bg(e,t,n,r,i,l,o,s,u){const a=u||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),d):h===null||h===32||h===41||Da(h)?n(h):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(s),d(h)):h===null||h===60||H(h)?n(h):(e.consume(h),h===92?g:p)}function g(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function v(h){return!c&&(h===null||h===41||et(h))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(h)):c999||p===null||p===91||p===93&&!u||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||H(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!J(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function Hg(e,t,n,r,i,l){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):n(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(l),a(d))}function a(d){return d===o?(e.exit(l),u(o)):d===null?n(d):H(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),le(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||H(d)?(e.exit("chunkString"),a(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Wi(e,t){let n;return r;function r(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):J(i)?le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const yC={name:"definition",tokenize:vC},gC={partial:!0,tokenize:wC};function vC(e,t,n){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ug.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Kr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return et(p)?Wi(e,a)(p):a(p)}function a(p){return Bg(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(gC,f,f)(p)}function f(p){return J(p)?le(e,d,"whitespace")(p):d(p)}function d(p){return p===null||H(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function wC(e,t,n){return r;function r(s){return et(s)?Wi(e,i)(s):n(s)}function i(s){return Hg(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function l(s){return J(s)?le(e,o,"whitespace")(s):o(s)}function o(s){return s===null||H(s)?t(s):n(s)}}const SC={name:"hardBreakEscape",tokenize:xC};function xC(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return H(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const kC={name:"headingAtx",resolve:EC,tokenize:CC};function EC(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"},Xt(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function CC(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||et(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||H(c)?(e.exit("atxHeading"),t(c)):J(c)?le(e,s,"whitespace")(c):(e.enter("atxHeadingText"),a(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),s(c))}function a(c){return c===null||c===35||et(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),a)}}const PC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Cp=["pre","script","style","textarea"],_C={concrete:!0,name:"htmlFlow",resolveTo:OC,tokenize:NC},TC={partial:!0,tokenize:AC},RC={partial:!0,tokenize:IC};function OC(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 NC(e,t,n){const r=this;let i,l,o,s,u;return a;function a(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),d):S===47?(e.consume(S),l=!0,v):S===63?(e.consume(S),i=3,r.interrupt?t:w):qt(S)?(e.consume(S),o=String.fromCharCode(S),x):n(S)}function d(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,s=0,g):qt(S)?(e.consume(S),i=4,r.interrupt?t:w):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:w):n(S)}function g(S){const Ce="CDATA[";return S===Ce.charCodeAt(s++)?(e.consume(S),s===Ce.length?r.interrupt?t:j:g):n(S)}function v(S){return qt(S)?(e.consume(S),o=String.fromCharCode(S),x):n(S)}function x(S){if(S===null||S===47||S===62||et(S)){const Ce=S===47,Et=o.toLowerCase();return!Ce&&!l&&Cp.includes(Et)?(i=1,r.interrupt?t(S):j(S)):PC.includes(o.toLowerCase())?(i=6,Ce?(e.consume(S),h):r.interrupt?t(S):j(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):l?y(S):m(S))}return S===45||st(S)?(e.consume(S),o+=String.fromCharCode(S),x):n(S)}function h(S){return S===62?(e.consume(S),r.interrupt?t:j):n(S)}function y(S){return J(S)?(e.consume(S),y):F(S)}function m(S){return S===47?(e.consume(S),F):S===58||S===95||qt(S)?(e.consume(S),E):J(S)?(e.consume(S),m):F(S)}function E(S){return S===45||S===46||S===58||S===95||st(S)?(e.consume(S),E):P(S)}function P(S){return S===61?(e.consume(S),k):J(S)?(e.consume(S),P):m(S)}function k(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),u=S,O):J(S)?(e.consume(S),k):R(S)}function O(S){return S===u?(e.consume(S),u=null,D):S===null||H(S)?n(S):(e.consume(S),O)}function R(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||et(S)?P(S):(e.consume(S),R)}function D(S){return S===47||S===62||J(S)?m(S):n(S)}function F(S){return S===62?(e.consume(S),M):n(S)}function M(S){return S===null||H(S)?j(S):J(S)?(e.consume(S),M):n(S)}function j(S){return S===45&&i===2?(e.consume(S),xe):S===60&&i===1?(e.consume(S),ge):S===62&&i===4?(e.consume(S),G):S===63&&i===3?(e.consume(S),w):S===93&&i===5?(e.consume(S),B):H(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(TC,te,Z)(S)):S===null||H(S)?(e.exit("htmlFlowData"),Z(S)):(e.consume(S),j)}function Z(S){return e.check(RC,fe,te)(S)}function fe(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),K}function K(S){return S===null||H(S)?Z(S):(e.enter("htmlFlowData"),j(S))}function xe(S){return S===45?(e.consume(S),w):j(S)}function ge(S){return S===47?(e.consume(S),o="",L):j(S)}function L(S){if(S===62){const Ce=o.toLowerCase();return Cp.includes(Ce)?(e.consume(S),G):j(S)}return qt(S)&&o.length<8?(e.consume(S),o+=String.fromCharCode(S),L):j(S)}function B(S){return S===93?(e.consume(S),w):j(S)}function w(S){return S===62?(e.consume(S),G):S===45&&i===2?(e.consume(S),w):j(S)}function G(S){return S===null||H(S)?(e.exit("htmlFlowData"),te(S)):(e.consume(S),G)}function te(S){return e.exit("htmlFlow"),t(S)}}function IC(e,t,n){const r=this;return i;function i(o){return H(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 AC(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Os,t,n)}}const LC={name:"htmlText",tokenize:bC};function bC(e,t,n){const r=this;let i,l,o;return s;function s(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),a):w===47?(e.consume(w),P):w===63?(e.consume(w),m):qt(w)?(e.consume(w),R):n(w)}function a(w){return w===45?(e.consume(w),c):w===91?(e.consume(w),l=0,g):qt(w)?(e.consume(w),y):n(w)}function c(w){return w===45?(e.consume(w),p):n(w)}function f(w){return w===null?n(w):w===45?(e.consume(w),d):H(w)?(o=f,ge(w)):(e.consume(w),f)}function d(w){return w===45?(e.consume(w),p):f(w)}function p(w){return w===62?xe(w):w===45?d(w):f(w)}function g(w){const G="CDATA[";return w===G.charCodeAt(l++)?(e.consume(w),l===G.length?v:g):n(w)}function v(w){return w===null?n(w):w===93?(e.consume(w),x):H(w)?(o=v,ge(w)):(e.consume(w),v)}function x(w){return w===93?(e.consume(w),h):v(w)}function h(w){return w===62?xe(w):w===93?(e.consume(w),h):v(w)}function y(w){return w===null||w===62?xe(w):H(w)?(o=y,ge(w)):(e.consume(w),y)}function m(w){return w===null?n(w):w===63?(e.consume(w),E):H(w)?(o=m,ge(w)):(e.consume(w),m)}function E(w){return w===62?xe(w):m(w)}function P(w){return qt(w)?(e.consume(w),k):n(w)}function k(w){return w===45||st(w)?(e.consume(w),k):O(w)}function O(w){return H(w)?(o=O,ge(w)):J(w)?(e.consume(w),O):xe(w)}function R(w){return w===45||st(w)?(e.consume(w),R):w===47||w===62||et(w)?D(w):n(w)}function D(w){return w===47?(e.consume(w),xe):w===58||w===95||qt(w)?(e.consume(w),F):H(w)?(o=D,ge(w)):J(w)?(e.consume(w),D):xe(w)}function F(w){return w===45||w===46||w===58||w===95||st(w)?(e.consume(w),F):M(w)}function M(w){return w===61?(e.consume(w),j):H(w)?(o=M,ge(w)):J(w)?(e.consume(w),M):D(w)}function j(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),i=w,Z):H(w)?(o=j,ge(w)):J(w)?(e.consume(w),j):(e.consume(w),fe)}function Z(w){return w===i?(e.consume(w),i=void 0,K):w===null?n(w):H(w)?(o=Z,ge(w)):(e.consume(w),Z)}function fe(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||et(w)?D(w):(e.consume(w),fe)}function K(w){return w===47||w===62||et(w)?D(w):n(w)}function xe(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ge(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),L}function L(w){return J(w)?le(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):B(w)}function B(w){return e.enter("htmlTextData"),o(w)}}const of={name:"labelEnd",resolveAll:MC,resolveTo:jC,tokenize:BC},zC={tokenize:UC},DC={tokenize:HC},FC={tokenize:$C};function MC(e){let t=-1;const n=[];for(;++t=3&&(a===null||H(a))?(e.exit("thematicBreak"),t(a)):n(a)}function u(a){return a===i?(e.consume(a),r++,u):(e.exit("thematicBreakSequence"),J(a)?le(e,s,"whitespace")(a):s(a))}}const qe={continuation:{tokenize:ZC},exit:tP,name:"list",tokenize:JC},GC={partial:!0,tokenize:nP},YC={partial:!0,tokenize:eP};function JC(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 s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Fa(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(go,n,a)(p):a(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return Fa(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),a(p)):n(p)}function a(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Os,r.interrupt?n:c,e.attempt(GC,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return J(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function ZC(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Os,i,l);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,le(e,t,"listItemIndent",r.containerState.size+1)(s)}function l(s){return r.containerState.furtherBlankLines||!J(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(YC,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,le(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function eP(e,t,n){const r=this;return le(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 tP(e){e.exit(this.containerState.type)}function nP(e,t,n){const r=this;return le(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!J(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Pp={name:"setextUnderline",resolveTo:rP,tokenize:iP};function rP(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 iP(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"),s(a)}function s(a){return a===i?(e.consume(a),s):(e.exit("setextHeadingLineSequence"),J(a)?le(e,u,"lineSuffix")(a):u(a))}function u(a){return a===null||H(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const lP={tokenize:oP};function oP(e){const t=this,n=e.attempt(Os,r,e.attempt(this.parser.constructs.flowInitial,i,le(e,e.attempt(this.parser.constructs.flow,i,e.attempt(fC,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 sP={resolveAll:Vg()},uP=$g("string"),aP=$g("text");function $g(e){return{resolveAll:Vg(e==="text"?cP:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,s);return o;function o(c){return a(c)?l(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return a(c)?(n.exit("data"),l(c)):(n.consume(c),u)}function a(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function EP(e,t){let n=-1;const r=[];let i;for(;++n0){const Ct=$.tokenStack[$.tokenStack.length-1];(Ct[1]||Tp).call($,void 0,Ct[0])}for(A.position={start:gn(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:gn(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,u);const a={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,a),e.applyData(t,a)}function BP(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 UP(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Wg(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 HP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wg(e,t);const i={src:vi(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 $P(e,t){const n={src:vi(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 VP(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 QP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wg(e,t);const i={href:vi(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 qP(e,t){const n={href:vi(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 WP(e,t,n){const r=e.all(t),i=n?KP(n):Kg(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 s=-1;for(;++s1}function XP(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)},s=Zc(t.children[1]),u=Rg(t.children[t.children.length-1]);s&&u&&(o.position={start:s,end:u}),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 e_(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,s=o?o.length:t.children.length;let u=-1;const a=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Np(t.slice(i),i>0,!1)),l.join("")}function Np(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Rp||l===Op;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Rp||l===Op;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function r_(e,t){const n={type:"text",value:n_(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function i_(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const l_={blockquote:bP,break:zP,code:DP,delete:FP,emphasis:MP,footnoteReference:jP,heading:BP,html:UP,imageReference:HP,image:$P,inlineCode:VP,linkReference:QP,link:qP,listItem:WP,list:XP,paragraph:GP,root:YP,strong:JP,table:ZP,tableCell:t_,tableRow:e_,text:r_,thematicBreak:i_,toml:Gl,yaml:Gl,definition:Gl,footnoteDefinition:Gl};function Gl(){}const Xg=-1,Ns=0,Ki=1,Xo=2,sf=3,uf=4,af=5,cf=6,Gg=7,Yg=8,Ip=typeof self=="object"?self:globalThis,o_=(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 Ns:case Xg:return n(o,i);case Ki:{const s=n([],i);for(const u of o)s.push(r(u));return s}case Xo:{const s=n({},i);for(const[u,a]of o)s[r(u)]=r(a);return s}case sf:return n(new Date(o),i);case uf:{const{source:s,flags:u}=o;return n(new RegExp(s,u),i)}case af:{const s=n(new Map,i);for(const[u,a]of o)s.set(r(u),r(a));return s}case cf:{const s=n(new Set,i);for(const u of o)s.add(r(u));return s}case Gg:{const{name:s,message:u}=o;return n(new Ip[s](u),i)}case Yg: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:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(new Ip[l](o),i)};return r},Ap=e=>o_(new Map,e)(0),Tr="",{toString:s_}={},{keys:u_}=Object,Ii=e=>{const t=typeof e;if(t!=="object"||!e)return[Ns,t];const n=s_.call(e).slice(8,-1);switch(n){case"Array":return[Ki,Tr];case"Object":return[Xo,Tr];case"Date":return[sf,Tr];case"RegExp":return[uf,Tr];case"Map":return[af,Tr];case"Set":return[cf,Tr];case"DataView":return[Ki,n]}return n.includes("Array")?[Ki,n]:n.includes("Error")?[Gg,n]:[Xo,n]},Yl=([e,t])=>e===Ns&&(t==="function"||t==="symbol"),a_=(e,t,n,r)=>{const i=(o,s)=>{const u=r.push(o)-1;return n.set(s,u),u},l=o=>{if(n.has(o))return n.get(o);let[s,u]=Ii(o);switch(s){case Ns:{let c=o;switch(u){case"bigint":s=Yg,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([Xg],o)}return i([s,c],o)}case Ki:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const c=[],f=i([s,c],o);for(const d of o)c.push(l(d));return f}case Xo:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([s,c],o);for(const d of u_(o))(e||!Yl(Ii(o[d])))&&c.push([l(d),l(o[d])]);return f}case sf:return i([s,o.toISOString()],o);case uf:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case af:{const c=[],f=i([s,c],o);for(const[d,p]of o)(e||!(Yl(Ii(d))||Yl(Ii(p))))&&c.push([l(d),l(p)]);return f}case cf:{const c=[],f=i([s,c],o);for(const d of o)(e||!Yl(Ii(d)))&&c.push(l(d));return f}}const{message:a}=o;return i([s,{name:u,message:a}],o)};return l},Lp=(e,{json:t,lossy:n}={})=>{const r=[];return a_(!(t||n),!!t,new Map,r)(e),r},Go=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ap(Lp(e,t)):structuredClone(e):(e,t)=>Ap(Lp(e,t));function c_(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 f_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function d_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||c_,r=e.options.footnoteBackLabel||f_,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let u=-1;for(;++u0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(u,p);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const x=c[c.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const y=x.children[x.children.length-1];y&&y.type==="text"?y.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else c.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(a,h),s.push(h)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Go(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const Jg=function(e){if(e==null)return y_;if(typeof e=="function")return Is(e);if(typeof e=="object")return Array.isArray(e)?p_(e):h_(e);if(typeof e=="string")return m_(e);throw new Error("Expected function, string, or object as test")};function p_(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let p=Zg,g,v,x;if((!t||l(u,a,c[c.length-1]||void 0))&&(p=x_(n(u,c)),p[0]===bp))return p;if("children"in u&&u.children){const h=u;if(h.children&&p[0]!==w_)for(v=(r?h.children.length:-1)+o,x=c.concat(h);v>-1&&v0&&n.push({type:"text",value:` +`}),n}function zp(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dp(e,t){const n=E_(e,t),r=n.one(e,void 0),i=d_(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` +`},i),l}function R_(e,t){return e&&"run"in e?async function(n,r){const i=Dp(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dp(n,{file:r,...e||t})}}function Fp(e){if(e)throw e}var vo=Object.prototype.hasOwnProperty,tv=Object.prototype.toString,Mp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Bp=function(t){return typeof Array.isArray=="function"?Array.isArray(t):tv.call(t)==="[object Array]"},Up=function(t){if(!t||tv.call(t)!=="[object Object]")return!1;var n=vo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&vo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||vo.call(t,i)},Hp=function(t,n){Mp&&n.name==="__proto__"?Mp(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},$p=function(t,n){if(n==="__proto__")if(vo.call(t,n)){if(jp)return jp(t,n).value}else return;return t[n]},O_=function e(){var t,n,r,i,l,o,s=arguments[0],u=1,a=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},u=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});uo.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(a){const c=a;if(s&&n)throw c;return i(c)}s||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...s){n||(n=!0,t(o,...s))}function l(o){i(null,o)}}const Ut={basename:A_,dirname:L_,extname:b_,join:z_,sep:"/"};function A_(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,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function L_(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 b_(e){Ol(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===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 z_(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function F_(e,t){let n="",r=0,i=-1,l=0,o=-1,s,u;for(;++o<=e.length;){if(o2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),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 s===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 M_={cwd:j_};function j_(){return"/"}function Ua(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function B_(e){if(typeof e=="string")e=new URL(e);else if(!Ua(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 U_(e)}function U_(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[p,...g]=c;const v=r[d][1];Ba(v)&&Ba(p)&&(p=wu(!0,v,p)),r[d]=[a,p,...g]}}}}const Q_=new ff().freeze();function Eu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pu(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 Qp(e){if(!Ba(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function qp(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jl(e){return q_(e)?e:new nv(e)}function q_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function W_(e){return typeof e=="string"||K_(e)}function K_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wp=[],Kp={allowDangerousHtml:!0},G_=/^(https?|ircs?|mailto|xmpp)$/i,Y_=[{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 J_(e){const t=Z_(e),n=eT(e);return tT(t.runSync(t.parse(n),n),e)}function Z_(e){const t=e.rehypePlugins||Wp,n=e.remarkPlugins||Wp,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kp}:Kp;return Q_().use(LP).use(n).use(R_,r).use(t)}function eT(e){const t=e.children||"",n=new nv;return typeof t=="string"&&(n.value=t),n}function tT(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||nT;for(const c of Y_)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+X_+c.id,void 0);return ev(e,a),dE(e,{Fragment:ae.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ae.jsx,jsxs:ae.jsxs,passKeys:!0,passNode:!0});function a(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return o?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in yu)if(Object.hasOwn(yu,p)&&Object.hasOwn(c.properties,p)){const g=c.properties[p],v=yu[p];(v===null||v.includes(c.tagName))&&(c.properties[p]=u(String(g||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):l?l.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,d)),p&&d&&typeof f=="number")return s&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function nT(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||G_.test(e.slice(0,t))?e:""}const rT=({role:e,content:t})=>{const n=t.split(` +`).map(r=>r.trim()).filter(r=>r.length>0).map(r=>`${r} +`);return ae.jsx("div",{className:`message ${e}`,children:ae.jsx(J_,{children:n.join("")})})},iT=({onSend:e,text:t,setText:n})=>{const r=i=>{i.key==="Enter"&&i.ctrlKey&&(i.preventDefault(),t.trim()&&e(t))};return ae.jsx("div",{className:"input-wrapper",children:ae.jsx("textarea",{value:t,onChange:i=>n(i.target.value),onKeyDown:r,placeholder:"Введите сообщение... (Ctrl+Enter для отправки)"})})};function Oe(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 lT=typeof Symbol=="function"&&Symbol.observable||"@@observable",Xp=lT,_u=()=>Math.random().toString(36).substring(7).split("").join("."),oT={INIT:`@@redux/INIT${_u()}`,REPLACE:`@@redux/REPLACE${_u()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${_u()}`},Yo=oT;function df(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 rv(e,t,n){if(typeof e!="function")throw new Error(Oe(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Oe(1));return n(rv)(e,t)}let r=e,i=t,l=new Map,o=l,s=0,u=!1;function a(){o===l&&(o=new Map,l.forEach((x,h)=>{o.set(h,x)}))}function c(){if(u)throw new Error(Oe(3));return i}function f(x){if(typeof x!="function")throw new Error(Oe(4));if(u)throw new Error(Oe(5));let h=!0;a();const y=s++;return o.set(y,x),function(){if(h){if(u)throw new Error(Oe(6));h=!1,a(),o.delete(y),l=null}}}function d(x){if(!df(x))throw new Error(Oe(7));if(typeof x.type>"u")throw new Error(Oe(8));if(typeof x.type!="string")throw new Error(Oe(17));if(u)throw new Error(Oe(9));try{u=!0,i=r(i,x)}finally{u=!1}return(l=o).forEach(y=>{y()}),x}function p(x){if(typeof x!="function")throw new Error(Oe(10));r=x,d({type:Yo.REPLACE})}function g(){const x=f;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Oe(11));function y(){const E=h;E.next&&E.next(c())}return y(),{unsubscribe:x(y)}},[Xp](){return this}}}return d({type:Yo.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[Xp]:g}}function sT(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Yo.INIT})>"u")throw new Error(Oe(12));if(typeof n(void 0,{type:Yo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function uT(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw s&&s.type,new Error(Oe(14));a[f]=g,u=u||g!==p}return u=u||r.length!==Object.keys(o).length,u?a:o}}function Jo(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function aT(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Oe(15))};const o={getState:i.getState,dispatch:(u,...a)=>l(u,...a)},s=e.map(u=>u(o));return l=Jo(...s)(i.dispatch),{...i,dispatch:l}}}function cT(e){return df(e)&&"type"in e&&typeof e.type=="string"}var iv=Symbol.for("immer-nothing"),Gp=Symbol.for("immer-draftable"),ft=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var fi=Object.getPrototypeOf;function vr(e){return!!e&&!!e[ft]}function pn(e){var t;return e?lv(e)||Array.isArray(e)||!!e[Gp]||!!((t=e.constructor)!=null&&t[Gp])||Ls(e)||bs(e):!1}var fT=Object.prototype.constructor.toString();function lv(e){if(!e||typeof e!="object")return!1;const t=fi(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)===fT}function Zo(e,t){As(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function As(e){const t=e[ft];return t?t.type_:Array.isArray(e)?1:Ls(e)?2:bs(e)?3:0}function Ha(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ov(e,t,n){const r=As(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function dT(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ls(e){return e instanceof Map}function bs(e){return e instanceof Set}function Yn(e){return e.copy_||e.base_}function $a(e,t){if(Ls(e))return new Map(e);if(bs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lv(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ft];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=pT),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>pf(r,!0))),e}function pT(){At(2)}function zs(e){return Object.isFrozen(e)}var hT={};function wr(e){const t=hT[e];return t||At(0,e),t}var ml;function sv(){return ml}function mT(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yp(e,t){t&&(wr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Va(e){Qa(e),e.drafts_.forEach(yT),e.drafts_=null}function Qa(e){e===ml&&(ml=e.parent_)}function Jp(e){return ml=mT(ml,e)}function yT(e){const t=e[ft];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Zp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ft].modified_&&(Va(t),At(4)),pn(e)&&(e=es(t,e),t.parent_||ts(t,e)),t.patches_&&wr("Patches").generateReplacementPatches_(n[ft].base_,e,t.patches_,t.inversePatches_)):e=es(t,n,[]),Va(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iv?e:void 0}function es(e,t,n){if(zs(t))return t;const r=t[ft];if(!r)return Zo(t,(i,l)=>eh(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ts(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),Zo(l,(s,u)=>eh(e,r,i,s,u,n,o)),ts(e,i,!1),n&&e.patches_&&wr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function eh(e,t,n,r,i,l,o){if(vr(i)){const s=l&&t&&t.type_!==3&&!Ha(t.assigned_,r)?l.concat(r):void 0,u=es(e,i,s);if(ov(n,r,u),vr(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(pn(i)&&!zs(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;es(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ts(e,i)}}function ts(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&pf(t,n)}function gT(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=hf;n&&(i=[r],l=yl);const{revoke:o,proxy:s}=Proxy.revocable(i,l);return r.draft_=s,r.revoke_=o,s}var hf={get(e,t){if(t===ft)return e;const n=Yn(e);if(!Ha(n,t))return vT(e,n,t);const r=n[t];return e.finalized_||!pn(r)?r:r===Tu(e.base_,t)?(Ru(e),e.copy_[t]=Wa(r,e)):r},has(e,t){return t in Yn(e)},ownKeys(e){return Reflect.ownKeys(Yn(e))},set(e,t,n){const r=uv(Yn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Tu(Yn(e),t),l=i==null?void 0:i[ft];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(dT(n,i)&&(n!==void 0||Ha(e.base_,t)))return!0;Ru(e),qa(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 Tu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ru(e),qa(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Yn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){At(11)},getPrototypeOf(e){return fi(e.base_)},setPrototypeOf(){At(12)}},yl={};Zo(hf,(e,t)=>{yl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});yl.deleteProperty=function(e,t){return yl.set.call(this,e,t,void 0)};yl.set=function(e,t,n){return hf.set.call(this,e[0],t,n,e[0])};function Tu(e,t){const n=e[ft];return(n?Yn(n):e)[t]}function vT(e,t,n){var i;const r=uv(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function uv(e,t){if(!(t in e))return;let n=fi(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=fi(n)}}function qa(e){e.modified_||(e.modified_=!0,e.parent_&&qa(e.parent_))}function Ru(e){e.copy_||(e.copy_=$a(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wT=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(u=l,...a){return o.produce(u,c=>n.call(this,c,...a))}}typeof n!="function"&&At(6),r!==void 0&&typeof r!="function"&&At(7);let i;if(pn(t)){const l=Jp(this),o=Wa(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?Va(l):Qa(l)}return Yp(l,r),Zp(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===iv&&(i=void 0),this.autoFreeze_&&pf(i,!0),r){const l=[],o=[];wr("Patches").generateReplacementPatches_(t,i,l,o),r(l,o)}return i}else At(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),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){pn(e)||At(8),vr(e)&&(e=ST(e));const t=Jp(this),n=Wa(e,void 0);return n[ft].isManual_=!0,Qa(t),n}finishDraft(e,t){const n=e&&e[ft];(!n||!n.isManual_)&&At(9);const{scope_:r}=n;return Yp(r,t),Zp(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=wr("Patches").applyPatches_;return vr(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Wa(e,t){const n=Ls(e)?wr("MapSet").proxyMap_(e,t):bs(e)?wr("MapSet").proxySet_(e,t):gT(e,t);return(t?t.scope_:sv()).drafts_.push(n),n}function ST(e){return vr(e)||At(10,e),av(e)}function av(e){if(!pn(e)||zs(e))return e;const t=e[ft];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$a(e,t.scope_.immer_.useStrictShallowCopy_)}else n=$a(e,!0);return Zo(n,(r,i)=>{ov(n,r,av(i))}),t&&(t.finalized_=!1),n}var dt=new wT,cv=dt.produce;dt.produceWithPatches.bind(dt);dt.setAutoFreeze.bind(dt);dt.setUseStrictShallowCopy.bind(dt);dt.applyPatches.bind(dt);dt.createDraft.bind(dt);dt.finishDraft.bind(dt);function fv(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var xT=fv(),kT=fv,ET=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jo:Jo.apply(null,arguments)};function th(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(sn(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=>cT(r)&&r.type===e,n}var dv=class Di extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Di.prototype)}static get[Symbol.species](){return Di}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Di(...t[0].concat(this)):new Di(...t.concat(this))}};function nh(e){return pn(e)?cv(e,()=>{}):e}function rh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function CT(e){return typeof e=="boolean"}var PT=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let o=new dv;return n&&(CT(n)?o.push(xT):o.push(kT(n.extraArgument))),o},_T="RTK_autoBatch",ih=e=>t=>{setTimeout(t,e)},TT=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ih(10):e.type==="callback"?e.queueNotification:ih(e.timeout),a=()=>{o=!1,l&&(l=!1,s.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),d=r.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[_T]),l=!i,l&&(o||(o=!0,u(a))),r.dispatch(c)}finally{i=!0}}})},RT=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new dv(e);return r&&i.push(TT(typeof r=="object"?r:void 0)),i};function OT(e){const t=PT(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:o=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(df(n))s=uT(n);else throw new Error(sn(1));let u;typeof r=="function"?u=r(t):u=t();let a=Jo;i&&(a=ET({trace:!1,...typeof i=="object"&&i}));const c=aT(...u),f=RT(c);let d=typeof o=="function"?o(f):f();const p=a(...d);return rv(s,l,p)}function pv(e){const t={},n=[];let r;const i={addCase(l,o){const s=typeof l=="string"?l:l.type;if(!s)throw new Error(sn(28));if(s in t)throw new Error(sn(29));return t[s]=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 NT(e){return typeof e=="function"}function IT(e,t){let[n,r,i]=pv(t),l;if(NT(e))l=()=>nh(e());else{const s=nh(e);l=()=>s}function o(s=l(),u){let a=[n[u.type],...r.filter(({matcher:c})=>c(u)).map(({reducer:c})=>c)];return a.filter(c=>!!c).length===0&&(a=[i]),a.reduce((c,f)=>{if(f)if(vr(c)){const p=f(c,u);return p===void 0?c:p}else{if(pn(c))return cv(c,d=>f(d,u));{const d=f(c,u);if(d===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return c},s)}return o.getInitialState=l,o}var AT=Symbol.for("rtk-slice-createasyncthunk");function LT(e,t){return`${e}/${t}`}function bT({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[AT];return function(i){const{name:l,reducerPath:o=l}=i;if(!l)throw new Error(sn(11));const s=(typeof i.reducers=="function"?i.reducers(FT()):i.reducers)||{},u=Object.keys(s),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(m,E){const P=typeof m=="string"?m:m.type;if(!P)throw new Error(sn(12));if(P in a.sliceCaseReducersByType)throw new Error(sn(13));return a.sliceCaseReducersByType[P]=E,c},addMatcher(m,E){return a.sliceMatchers.push({matcher:m,reducer:E}),c},exposeAction(m,E){return a.actionCreators[m]=E,c},exposeCaseReducer(m,E){return a.sliceCaseReducersByName[m]=E,c}};u.forEach(m=>{const E=s[m],P={reducerName:m,type:LT(l,m),createNotation:typeof i.reducers=="function"};jT(E)?UT(P,E,c,t):MT(P,E,c)});function f(){const[m={},E=[],P=void 0]=typeof i.extraReducers=="function"?pv(i.extraReducers):[i.extraReducers],k={...m,...a.sliceCaseReducersByType};return IT(i.initialState,O=>{for(let R in k)O.addCase(R,k[R]);for(let R of a.sliceMatchers)O.addMatcher(R.matcher,R.reducer);for(let R of E)O.addMatcher(R.matcher,R.reducer);P&&O.addDefaultCase(P)})}const d=m=>m,p=new Map;let g;function v(m,E){return g||(g=f()),g(m,E)}function x(){return g||(g=f()),g.getInitialState()}function h(m,E=!1){function P(O){let R=O[m];return typeof R>"u"&&E&&(R=x()),R}function k(O=d){const R=rh(p,E,()=>new WeakMap);return rh(R,O,()=>{const D={};for(const[F,M]of Object.entries(i.selectors??{}))D[F]=zT(M,O,x,E);return D})}return{reducerPath:m,getSelectors:k,get selectors(){return k(P)},selectSlice:P}}const y={name:l,reducer:v,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:x,...h(o),injectInto(m,{reducerPath:E,...P}={}){const k=E??o;return m.inject({reducerPath:k,reducer:v},P),{...y,...h(k,!0)}}};return y}}function zT(e,t,n,r){function i(l,...o){let s=t(l);return typeof s>"u"&&r&&(s=n()),e(s,...o)}return i.unwrapped=e,i}var DT=bT();function FT(){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 MT({type:e,reducerName:t,createNotation:n},r,i){let l,o;if("reducer"in r){if(n&&!BT(r))throw new Error(sn(17));l=r.reducer,o=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,o?th(e,o):th(e))}function jT(e){return e._reducerDefinitionType==="asyncThunk"}function BT(e){return e._reducerDefinitionType==="reducerWithPrepare"}function UT({type:e,reducerName:t},n,r,i){if(!i)throw new Error(sn(18));const{payloadCreator:l,fulfilled:o,pending:s,rejected:u,settled:a,options:c}=n,f=i(e,l,c);r.exposeAction(t,f),o&&r.addCase(f.fulfilled,o),s&&r.addCase(f.pending,s),u&&r.addCase(f.rejected,u),a&&r.addMatcher(f.settled,a),r.exposeCaseReducer(t,{fulfilled:o||Zl,pending:s||Zl,rejected:u||Zl,settled:a||Zl})}function Zl(){}function sn(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 HT=()=>{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[]},$T={history:HT()},hv=DT({name:"chat",initialState:$T,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:VT,clearHistory:QT,setHistory:qT}=hv.actions,WT=hv.reducer,KT=()=>{const[e,t]=b.useState(""),n=fS(o=>o.chat.history),r=uS(),{mutate:i}=yk(),l=o=>{if(!o.trim())return;const s={role:"user",content:o,searchResults:[]};r(VT(s)),t(""),i([...n,s],{onSuccess:u=>{r(qT(u.data.history))}})};return ae.jsxs("div",{className:"chat",children:[ae.jsx("div",{className:"messages",children:n.map((o,s)=>ae.jsx(rT,{role:o.role,content:o.content},s))}),ae.jsxs("div",{className:"input-area",children:[ae.jsx(iT,{onSend:l,text:e,setText:t}),ae.jsxs("div",{className:"buttons",children:[ae.jsx("button",{onClick:()=>l(e),children:"Отправить"}),ae.jsx("button",{onClick:()=>r(QT()),children:"Очистить"})]})]})]})},XT=OT({reducer:{chat:WT}}),GT=()=>ae.jsx(lS,{store:XT,children:ae.jsx(KT,{})}),YT=new LS;Ou.createRoot(document.getElementById("root")).render(ae.jsx(Ch.StrictMode,{children:ae.jsx(DS,{client:YT,children:ae.jsx(j1,{children:ae.jsx(D1,{children:ae.jsx(Dy,{path:"/",element:ae.jsx(GT,{})})})})})}));