import{a as Pe,b as lS,c as G,d as m,e as h,f as k,g}from"./chunk-ACJPWHEH.js";var Hm=Pe(ne=>{"use strict";m();g();h();var No=Symbol.for("react.element"),uS=Symbol.for("react.portal"),fS=Symbol.for("react.fragment"),cS=Symbol.for("react.strict_mode"),dS=Symbol.for("react.profiler"),pS=Symbol.for("react.provider"),mS=Symbol.for("react.context"),hS=Symbol.for("react.forward_ref"),gS=Symbol.for("react.suspense"),yS=Symbol.for("react.memo"),vS=Symbol.for("react.lazy"),Am=Symbol.iterator;function wS(e){return e===null||typeof e!="object"?null:(e=Am&&e[Am]||e["@@iterator"],typeof e=="function"?e:null)}var Lm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Um=Object.assign,Fm={};function xi(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Lm}xi.prototype.isReactComponent={};xi.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")};xi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jm(){}jm.prototype=xi.prototype;function Ku(e,t,n){this.props=e,this.context=t,this.refs=Fm,this.updater=n||Lm}var Xu=Ku.prototype=new jm;Xu.constructor=Ku;Um(Xu,xi.prototype);Xu.isPureReactComponent=!0;var Dm=Array.isArray,zm=Object.prototype.hasOwnProperty,Ju={current:null},Bm={key:!0,ref:!0,__self:!0,__source:!0};function $m(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)zm.call(t,r)&&!Bm.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1{"use strict";m();g();h();Wm.exports=Hm()});var eh=Pe(we=>{"use strict";m();g();h();function of(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(0>>1;rSs(s,n))uSs(f,s)?(e[r]=f,e[u]=n,r=u):(e[r]=s,e[a]=n,r=a);else if(uSs(f,n))e[r]=f,e[u]=n,r=u;else break e}}return t}function Ss(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Vm=performance,we.unstable_now=function(){return Vm.now()}):(tf=Date,Ym=tf.now(),we.unstable_now=function(){return tf.now()-Ym});var Vm,tf,Ym,cn=[],Xn=[],bS=1,Ft=null,rt=3,Es=!1,Fr=!1,Do=!1,qm=typeof setTimeout=="function"?setTimeout:null,Qm=typeof clearTimeout=="function"?clearTimeout:null,Gm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function af(e){for(var t=Xt(Xn);t!==null;){if(t.callback===null)bs(Xn);else if(t.startTime<=e)bs(Xn),t.sortIndex=t.expirationTime,of(cn,t);else break;t=Xt(Xn)}}function sf(e){if(Do=!1,af(e),!Fr)if(Xt(cn)!==null)Fr=!0,uf(lf);else{var t=Xt(Xn);t!==null&&ff(sf,t.startTime-e)}}function lf(e,t){Fr=!1,Do&&(Do=!1,Qm(Mo),Mo=-1),Es=!0;var n=rt;try{for(af(t),Ft=Xt(cn);Ft!==null&&(!(Ft.expirationTime>t)||e&&!Jm());){var r=Ft.callback;if(typeof r=="function"){Ft.callback=null,rt=Ft.priorityLevel;var i=r(Ft.expirationTime<=t);t=we.unstable_now(),typeof i=="function"?Ft.callback=i:Ft===Xt(cn)&&bs(cn),af(t)}else bs(cn);Ft=Xt(cn)}if(Ft!==null)var o=!0;else{var a=Xt(Xn);a!==null&&ff(sf,a.startTime-t),o=!1}return o}finally{Ft=null,rt=n,Es=!1}}var Os=!1,ks=null,Mo=-1,Km=5,Xm=-1;function Jm(){return!(we.unstable_now()-Xme||125r?(e.sortIndex=n,of(Xn,e),Xt(cn)===null&&e===Xt(Xn)&&(Do?(Qm(Mo),Mo=-1):Do=!0,ff(sf,n-r))):(e.sortIndex=i,of(cn,e),Fr||Es||(Fr=!0,uf(lf))),e};we.unstable_shouldYield=Jm;we.unstable_wrapCallback=function(e){var t=rt;return function(){var n=rt;rt=t;try{return e.apply(this,arguments)}finally{rt=n}}}});var nh=Pe((X3,th)=>{"use strict";m();g();h();th.exports=eh()});var ly=Pe(Nt=>{"use strict";m();g();h();var u0=Qe(),It=nh();function F(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"),Af=Object.prototype.hasOwnProperty,ES=/^[: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]*$/,rh={},ih={};function OS(e){return Af.call(ih,e)?!0:Af.call(rh,e)?!1:ES.test(e)?ih[e]=!0:(rh[e]=!0,!1)}function CS(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 TS(e,t,n,r){if(t===null||typeof t>"u"||CS(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 pt(e,t,n,r,i,o,a){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=o,this.removeEmptyString=a}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new pt(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){Je[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ec=/[\-:]([a-z])/g;function Oc(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(Ec,Oc);Je[t]=new pt(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(Ec,Oc);Je[t]=new pt(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(Ec,Oc);Je[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cc(e,t,n,r){var i=Je.hasOwnProperty(t)?Je[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var u=` `+i[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{df=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wo(e):""}function RS(e){switch(e.tag){case 5:return Wo(e.type);case 16:return Wo("Lazy");case 13:return Wo("Suspense");case 19:return Wo("SuspenseList");case 0:case 2:case 15:return e=pf(e.type,!1),e;case 11:return e=pf(e.type.render,!1),e;case 1:return e=pf(e.type,!0),e;default:return""}}function Uf(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 Ei:return"Fragment";case bi:return"Portal";case Df:return"Profiler";case Tc:return"StrictMode";case Mf:return"Suspense";case Lf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d0:return(e.displayName||"Context")+".Consumer";case c0: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:Uf(e.type)||"Memo";case er:t=e._payload,e=e._init;try{return Uf(e(t))}catch{}}return null}function IS(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 Uf(t);case 8:return t===Tc?"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 mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function m0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e){var t=m0(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ts(e){e._valueTracker||(e._valueTracker=PS(e))}function h0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=m0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function nl(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 Ff(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ah(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mr(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 g0(e,t){t=t.checked,t!=null&&Cc(e,"checked",t,!1)}function jf(e,t){g0(e,t);var n=mr(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")?zf(e,t.type,n):t.hasOwnProperty("defaultValue")&&zf(e,t.type,mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sh(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 zf(e,t,n){(t!=="number"||nl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vo=Array.isArray;function Li(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zo={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},NS=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){NS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function _0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function x0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var AS=Re({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 Hf(e,t){if(t){if(AS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function Wf(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 Vf=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yf=null,Ui=null,Fi=null;function fh(e){if(e=Sa(e)){if(typeof Yf!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Il(t),Yf(e.stateNode,e.type,t))}}function S0(e){Ui?Fi?Fi.push(e):Fi=[e]:Ui=e}function k0(){if(Ui){var e=Ui,t=Fi;if(Fi=Ui=null,fh(e),t)for(e=0;e>>=0,e===0?32:31-(WS(e)/VS|0)|0}var Is=64,Ps=4194304;function Yo(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 al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Yo(s):(o&=a,o!==0&&(r=Yo(o)))}else a=n&~i,a!==0?r=Yo(a):o!==0&&(r=Yo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 _a(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=n}function qS(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=Qo),wh=" ",_h=!1;function H0(e,t){switch(e){case"keyup":return kk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oi=!1;function Ek(e,t){switch(e){case"compositionend":return W0(t);case"keypress":return t.which!==32?null:(_h=!0,wh);case"textInput":return e=t.data,e===wh&&_h?null:e;default:return null}}function Ok(e,t){if(Oi)return e==="compositionend"||!jc&&H0(e,t)?(e=B0(),Gs=Lc=ir=null,Oi=!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=kh(n)}}function Z0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q0(){for(var e=window,t=nl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nl(e.document)}return t}function zc(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 Mk(e){var t=q0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z0(n.ownerDocument.documentElement,n)){if(r!==null&&zc(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=bh(n,o);var a=bh(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Ci=null,Xf=null,Xo=null,Jf=!1;function Eh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jf||Ci==null||Ci!==nl(r)||(r=Ci,"selectionStart"in r&&zc(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}),Xo&&fa(Xo,r)||(Xo=r,r=ul(Xf,"onSelect"),0Ii||(e.current=oc[Ii],oc[Ii]=null,Ii--)}function _e(e,t){Ii++,oc[Ii]=e.current,e.current=t}var hr={},st=yr(hr),wt=yr(!1),Yr=hr;function Hi(e,t){var n=e.type.contextTypes;if(!n)return hr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _t(e){return e=e.childContextTypes,e!=null}function cl(){be(wt),be(st)}function Dh(e,t,n){if(st.current!==hr)throw Error(F(168));_e(st,t),_e(wt,n)}function ig(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(F(108,IS(e)||"Unknown",i));return Re({},n,r)}function dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,Yr=st.current,_e(st,e),_e(wt,wt.current),!0}function Mh(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=ig(e,t,Yr),r.__reactInternalMemoizedMergedChildContext=e,be(wt),be(st),_e(st,e)):be(wt),_e(wt,n)}var Tn=null,Pl=!1,bf=!1;function og(e){Tn===null?Tn=[e]:Tn.push(e)}function Vk(e){Pl=!0,og(e)}function vr(){if(!bf&&Tn!==null){bf=!0;var e=0,t=he;try{var n=Tn;for(he=1;e>=a,i-=a,Rn=1<<32-rn(t)+i|n<M?(W=A,A=null):W=A.sibling;var U=c(y,A,_[M],x);if(U===null){A===null&&(A=W);break}e&&A&&U.alternate===null&&t(y,A),w=o(U,w,M),D===null?N=U:D.sibling=U,D=U,A=W}if(M===_.length)return n(y,A),Ee&&jr(y,M),N;if(A===null){for(;M<_.length;M++)A=d(y,_[M],x),A!==null&&(w=o(A,w,M),D===null?N=A:D.sibling=A,D=A);return Ee&&jr(y,M),N}for(A=r(y,A);M<_.length;M++)W=p(A,y,M,_[M],x),W!==null&&(e&&W.alternate!==null&&A.delete(W.key===null?M:W.key),w=o(W,w,M),D===null?N=W:D.sibling=W,D=W);return e&&A.forEach(function(Y){return t(y,Y)}),Ee&&jr(y,M),N}function S(y,w,_,x){var N=Lo(_);if(typeof N!="function")throw Error(F(150));if(_=N.call(_),_==null)throw Error(F(151));for(var D=N=null,A=w,M=w=0,W=null,U=_.next();A!==null&&!U.done;M++,U=_.next()){A.index>M?(W=A,A=null):W=A.sibling;var Y=c(y,A,U.value,x);if(Y===null){A===null&&(A=W);break}e&&A&&Y.alternate===null&&t(y,A),w=o(Y,w,M),D===null?N=Y:D.sibling=Y,D=Y,A=W}if(U.done)return n(y,A),Ee&&jr(y,M),N;if(A===null){for(;!U.done;M++,U=_.next())U=d(y,U.value,x),U!==null&&(w=o(U,w,M),D===null?N=U:D.sibling=U,D=U);return Ee&&jr(y,M),N}for(A=r(y,A);!U.done;M++,U=_.next())U=p(A,y,M,U.value,x),U!==null&&(e&&U.alternate!==null&&A.delete(U.key===null?M:U.key),w=o(U,w,M),D===null?N=U:D.sibling=U,D=U);return e&&A.forEach(function(je){return t(y,je)}),Ee&&jr(y,M),N}function b(y,w,_,x){if(typeof _=="object"&&_!==null&&_.type===Ei&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Cs:e:{for(var N=_.key,D=w;D!==null;){if(D.key===N){if(N=_.type,N===Ei){if(D.tag===7){n(y,D.sibling),w=i(D,_.props.children),w.return=y,y=w;break e}}else if(D.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===er&&$h(N)===D.type){n(y,D.sibling),w=i(D,_.props),w.ref=zo(y,D,_),w.return=y,y=w;break e}n(y,D);break}else t(y,D);D=D.sibling}_.type===Ei?(w=Vr(_.props.children,y.mode,x,_.key),w.return=y,y=w):(x=tl(_.type,_.key,_.props,null,y.mode,x),x.ref=zo(y,w,_),x.return=y,y=x)}return a(y);case bi:e:{for(D=_.key;w!==null;){if(w.key===D)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){n(y,w.sibling),w=i(w,_.children||[]),w.return=y,y=w;break e}else{n(y,w);break}else t(y,w);w=w.sibling}w=Nf(_,y.mode,x),w.return=y,y=w}return a(y);case er:return D=_._init,b(y,w,D(_._payload),x)}if(Vo(_))return v(y,w,_,x);if(Lo(_))return S(y,w,_,x);$s(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,w!==null&&w.tag===6?(n(y,w.sibling),w=i(w,_),w.return=y,y=w):(n(y,w),w=Pf(_,y.mode,x),w.return=y,y=w),a(y)):n(y,w)}return b}var Vi=pg(!0),mg=pg(!1),ka={},gn=yr(ka),ma=yr(ka),ha=yr(ka);function Hr(e){if(e===ka)throw Error(F(174));return e}function qc(e,t){switch(_e(ha,t),_e(ma,e),_e(gn,ka),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$f(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$f(t,e)}be(gn),_e(gn,t)}function Yi(){be(gn),be(ma),be(ha)}function hg(e){Hr(ha.current);var t=Hr(gn.current),n=$f(t,e.type);t!==n&&(_e(ma,e),_e(gn,n))}function Qc(e){ma.current===e&&(be(gn),be(ma))}var Ce=yr(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ef=[];function Kc(){for(var e=0;en?n:4,e(!0);var r=Of.transition;Of.transition={};try{e(!1),t()}finally{he=n,Of.transition=r}}function Pg(){return Wt().memoizedState}function qk(e,t,n){var r=dr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ng(e))Ag(t,n);else if(n=ug(e,t,n,r),n!==null){var i=dt();on(n,e,r,i),Dg(n,t,r)}}function Qk(e,t,n){var r=dr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ng(e))Ag(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,an(s,a)){var u=t.interleaved;u===null?(i.next=i,Gc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ug(e,t,i,r),n!==null&&(i=dt(),on(n,e,r,i),Dg(n,t,r))}}function Ng(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Ag(e,t){Jo=wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ac(e,n)}}var _l={readContext:Ht,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Kk={readContext:Ht,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Wh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ks(4194308,4,Og.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ks(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();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=qk.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Hh,useDebugValue:nd,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Hh(!1),t=e[0];return e=Zk.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,i=pn();if(Ee){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ve===null)throw Error(F(349));Zr&30||vg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Wh(_g.bind(null,r,o,e),[e]),r.flags|=2048,va(9,wg.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ve.identifierPrefix;if(Ee){var n=In,r=Rn;n=(r&~(1<<32-rn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ga++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[pa]=r,Hg(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wf(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;iZi&&(t.flags|=128,r=!0,Bo(o,!1),t.lanes=4194304)}else{if(!r)if(e=vl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ee)return ot(t),null}else 2*Ae()-o.renderingStartTime>Zi&&n!==1073741824&&(t.flags|=128,r=!0,Bo(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ae(),t.sibling=null,n=Ce.current,_e(Ce,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return ld(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ct&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function ob(e,t){switch($c(t),t.tag){case 1:return _t(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(),be(wt),be(st),Kc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qc(t),null;case 13:if(be(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Ce),null;case 4:return Yi(),null;case 10:return Yc(t.type._context),null;case 22:case 23:return ld(),null;case 24:return null;default:return null}}var Ws=!1,at=!1,ab=typeof WeakSet=="function"?WeakSet:Set,V=null;function Di(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function yc(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var Jh=!1;function sb(e,t){if(ec=sl,e=q0(),zc(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,f=0,l=0,d=e,c=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(u=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)c=d,d=p;for(;;){if(d===e)break t;if(c===n&&++f===i&&(s=a),c===o&&++l===r&&(u=a),(p=d.nextSibling)!==null)break;d=c,c=d.parentNode}d=p}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(tc={focusedElem:e,selectionRange:n},sl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,b=v.memoizedState,y=t.stateNode,w=y.getSnapshotBeforeUpdate(t.elementType===t.type?S:en(t.type,S),b);y.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(x){Ne(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return v=Jh,Jh=!1,v}function ea(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 o=i.destroy;i.destroy=void 0,o!==void 0&&yc(t,n,o)}i=i.next}while(i!==r)}}function Dl(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 vc(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 Yg(e){var t=e.alternate;t!==null&&(e.alternate=null,Yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[pa],delete t[ic],delete t[Hk],delete t[Wk])),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 Gg(e){return e.tag===5||e.tag===3||e.tag===4}function e0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gg(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 wc(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=fl));else if(r!==4&&(e=e.child,e!==null))for(wc(e,t,n),e=e.sibling;e!==null;)wc(e,t,n),e=e.sibling}function _c(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(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}var Ke=null,tn=!1;function Jn(e,t,n){for(n=n.child;n!==null;)Zg(e,t,n),n=n.sibling}function Zg(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Ol,n)}catch{}switch(n.tag){case 5:at||Di(n,t);case 6:var r=Ke,i=tn;Ke=null,Jn(e,t,n),Ke=r,tn=i,Ke!==null&&(tn?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(tn?(e=Ke,n=n.stateNode,e.nodeType===8?kf(e.parentNode,n):e.nodeType===1&&kf(e,n),la(e)):kf(Ke,n.stateNode));break;case 4:r=Ke,i=tn,Ke=n.stateNode.containerInfo,tn=!0,Jn(e,t,n),Ke=r,tn=i;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&yc(n,t,a),i=i.next}while(i!==r)}Jn(e,t,n);break;case 1:if(!at&&(Di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ne(n,t,s)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,Jn(e,t,n),at=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function t0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ab),t.forEach(function(r){var i=gb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Jt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ub(r/1960))-r,10e?16:e,or===null)var r=!1;else{if(e=or,or=null,kl=0,le&6)throw Error(F(331));var i=le;for(le|=4,V=e.current;V!==null;){var o=V,a=o.child;if(V.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uAe()-ad?Wr(e,0):od|=n),xt(e,t)}function ny(e,t){t===0&&(e.mode&1?(t=Ps,Ps<<=1,!(Ps&130023424)&&(Ps=4194304)):t=1);var n=dt();e=Dn(e,t),e!==null&&(_a(e,t,n),xt(e,n))}function hb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ny(e,n)}function gb(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(F(314))}r!==null&&r.delete(t),ny(e,n)}var ry;ry=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,rb(e,t,n);vt=!!(e.flags&131072)}else vt=!1,Ee&&t.flags&1048576&&ag(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xs(e,t),e=t.pendingProps;var i=Hi(t,st.current);zi(t,n),i=Jc(null,t,r,e,i,n);var o=ed();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,_t(r)?(o=!0,dl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zc(t),i.updater=Nl,t.stateNode=i,i._reactInternals=t,fc(t,r,e,n),t=pc(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&Bc(t),ct(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vb(r),e=en(r,e),i){case 0:t=dc(null,t,r,e,n);break e;case 1:t=Qh(null,t,r,e,n);break e;case 11:t=Zh(null,t,r,e,n);break e;case 14:t=qh(null,t,r,en(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:en(r,i),dc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:en(r,i),Qh(e,t,r,i,n);case 3:e:{if(zg(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,fg(e,t),yl(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Gi(Error(F(423)),t),t=Kh(e,t,r,n,i);break e}else if(r!==i){i=Gi(Error(F(424)),t),t=Kh(e,t,r,n,i);break e}else for(Tt=ur(t.stateNode.containerInfo.firstChild),Rt=t,Ee=!0,nn=null,n=mg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wi(),r===i){t=Mn(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 5:return hg(t),e===null&&sc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,nc(r,i)?a=null:o!==null&&nc(r,o)&&(t.flags|=32),jg(e,t),ct(e,t,a,n),t.child;case 6:return e===null&&sc(t),null;case 13:return Bg(e,t,n);case 4:return qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vi(t,null,r,n):ct(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:en(r,i),Zh(e,t,r,i,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,_e(hl,r._currentValue),r._currentValue=a,o!==null)if(an(o.value,a)){if(o.children===i.children&&!wt.current){t=Mn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Pn(-1,n&-n),u.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var l=f.pending;l===null?u.next=u:(u.next=l.next,l.next=u),f.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),lc(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(F(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),lc(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ct(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zi(t,n),i=Ht(i),r=r(i),t.flags|=1,ct(e,t,r,n),t.child;case 14:return r=t.type,i=en(r,t.pendingProps),i=en(r.type,i),qh(e,t,r,i,n);case 15:return Ug(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:en(r,i),Xs(e,t),t.tag=1,_t(r)?(e=!0,dl(t)):e=!1,zi(t,n),dg(t,r,i),fc(t,r,i,n),pc(null,t,r,!0,e,n);case 19:return $g(e,t,n);case 22:return Fg(e,t,n)}throw Error(F(156,t.tag))};function iy(e,t){return I0(e,t)}function yb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,r){return new yb(e,t,n,r)}function fd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vb(e){if(typeof e=="function")return fd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rc)return 11;if(e===Ic)return 14}return 2}function pr(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function tl(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")fd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ei:return Vr(n.children,i,o,t);case Tc:a=8,i|=8;break;case Df:return e=Bt(12,n,t,i|2),e.elementType=Df,e.lanes=o,e;case Mf:return e=Bt(13,n,t,i),e.elementType=Mf,e.lanes=o,e;case Lf:return e=Bt(19,n,t,i),e.elementType=Lf,e.lanes=o,e;case p0:return Ll(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c0:a=10;break e;case d0:a=9;break e;case Rc:a=11;break e;case Ic:a=14;break e;case er:a=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Bt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Vr(e,t,n,r){return e=Bt(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=Bt(22,e,r,t),e.elementType=p0,e.lanes=n,e.stateNode={isHidden:!1},e}function Pf(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Nf(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wb(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=hf(0),this.expirationTimes=hf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cd(e,t,n,r,i,o,a,s,u){return e=new wb(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(o),e}function _b(e,t,n){var r=3{"use strict";m();g();h();function uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uy)}catch(e){console.error(e)}}uy(),fy.exports=ly()});var dy=Pe(gd=>{"use strict";m();g();h();var cy=hd();gd.createRoot=cy.createRoot,gd.hydrateRoot=cy.hydrateRoot;var fP});var my=Pe(wd=>{"use strict";m();g();h();var Ob=Symbol.for("react.fragment");wd.Fragment=Ob;wd.jsxDEV=void 0});var gy=Pe((ZP,hy)=>{"use strict";m();g();h();hy.exports=my()});var vy=Pe(Bl=>{"use strict";m();g();h();var Cb=Qe(),Tb=Symbol.for("react.element"),Rb=Symbol.for("react.fragment"),Ib=Object.prototype.hasOwnProperty,Pb=Cb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nb={key:!0,ref:!0,__self:!0,__source:!0};function yy(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Ib.call(t,r)&&!Nb.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Tb,type:e,key:o,ref:a,props:i,_owner:Pb.current}}Bl.Fragment=Rb;Bl.jsx=yy;Bl.jsxs=yy});var ge=Pe((nN,wy)=>{"use strict";m();g();h();wy.exports=vy()});var kw=Pe((o5,Sw)=>{m();g();h();var vO=1/0,wO="[object Symbol]",_O=/^\s+|\s+$/g,_p="\\ud800-\\udfff",cw="\\u0300-\\u036f\\ufe20-\\ufe23",dw="\\u20d0-\\u20f0",pw="\\ufe0e\\ufe0f",xO="["+_p+"]",vp="["+cw+dw+"]",wp="\\ud83c[\\udffb-\\udfff]",SO="(?:"+vp+"|"+wp+")",mw="[^"+_p+"]",hw="(?:\\ud83c[\\udde6-\\uddff]){2}",gw="[\\ud800-\\udbff][\\udc00-\\udfff]",yw="\\u200d",vw=SO+"?",ww="["+pw+"]?",kO="(?:"+yw+"(?:"+[mw,hw,gw].join("|")+")"+ww+vw+")*",bO=ww+vw+kO,EO="(?:"+[mw+vp+"?",vp,hw,gw,xO].join("|")+")",OO=RegExp(wp+"(?="+wp+")|"+EO+bO,"g"),CO=RegExp("["+yw+_p+cw+dw+pw+"]"),TO=typeof global=="object"&&global&&global.Object===Object&&global,RO=typeof self=="object"&&self&&self.Object===Object&&self,IO=TO||RO||Function("return this")();function PO(e){return e.split("")}function NO(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1;);return n}function MO(e,t){for(var n=e.length;n--&&_w(t,e[n],0)>-1;);return n}function LO(e){return CO.test(e)}function sw(e){return LO(e)?UO(e):PO(e)}function UO(e){return e.match(OO)||[]}var FO=Object.prototype,jO=FO.toString,lw=IO.Symbol,uw=lw?lw.prototype:void 0,fw=uw?uw.toString:void 0;function zO(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:zO(e,t,n)}function $O(e){return!!e&&typeof e=="object"}function HO(e){return typeof e=="symbol"||$O(e)&&jO.call(e)==wO}function WO(e){return e==null?"":xw(e)}function VO(e,t,n){if(e=WO(e),e&&(n||t===void 0))return e.replace(_O,"");if(!e||!(t=xw(t)))return e;var r=sw(e),i=sw(t),o=DO(r,i),a=MO(r,i)+1;return BO(r,o,a).join("")}Sw.exports=VO});var Iw=Pe((_5,Rw)=>{"use strict";m();g();h();function GO(e,t){for(;e.length{"use strict";m();g();h();Object.defineProperty(tt,"__esModule",{value:!0});tt.output=tt.exists=tt.hash=tt.bytes=tt.bool=tt.number=tt.isBytes=void 0;function Iu(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}tt.number=Iu;function J_(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}tt.bool=J_;function e1(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}tt.isBytes=e1;function Kp(e,...t){if(!e1(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}tt.bytes=Kp;function t1(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Iu(e.outputLen),Iu(e.blockLen)}tt.hash=t1;function n1(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}tt.exists=n1;function r1(e,t){Kp(e);let n=t.outputLen;if(e.length{"use strict";m();g();h();Object.defineProperty(K,"__esModule",{value:!0});K.add5L=K.add5H=K.add4H=K.add4L=K.add3H=K.add3L=K.add=K.rotlBL=K.rotlBH=K.rotlSL=K.rotlSH=K.rotr32L=K.rotr32H=K.rotrBL=K.rotrBH=K.rotrSL=K.rotrSH=K.shrSL=K.shrSH=K.toBig=K.split=K.fromBig=void 0;var Pu=BigInt(2**32-1),Jp=BigInt(32);function em(e,t=!1){return t?{h:Number(e&Pu),l:Number(e>>Jp&Pu)}:{h:Number(e>>Jp&Pu)|0,l:Number(e&Pu)|0}}K.fromBig=em;function i1(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);K.toBig=o1;var a1=(e,t,n)=>e>>>n;K.shrSH=a1;var s1=(e,t,n)=>e<<32-n|t>>>n;K.shrSL=s1;var l1=(e,t,n)=>e>>>n|t<<32-n;K.rotrSH=l1;var u1=(e,t,n)=>e<<32-n|t>>>n;K.rotrSL=u1;var f1=(e,t,n)=>e<<64-n|t>>>n-32;K.rotrBH=f1;var c1=(e,t,n)=>e>>>n-32|t<<64-n;K.rotrBL=c1;var d1=(e,t)=>t;K.rotr32H=d1;var p1=(e,t)=>e;K.rotr32L=p1;var m1=(e,t,n)=>e<>>32-n;K.rotlSH=m1;var h1=(e,t,n)=>t<>>32-n;K.rotlSL=h1;var g1=(e,t,n)=>t<>>64-n;K.rotlBH=g1;var y1=(e,t,n)=>e<>>64-n;K.rotlBL=y1;function v1(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}K.add=v1;var w1=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);K.add3L=w1;var _1=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;K.add3H=_1;var x1=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);K.add4L=x1;var S1=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;K.add4H=S1;var k1=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);K.add5L=k1;var b1=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;K.add5H=b1;var GR={fromBig:em,split:i1,toBig:o1,shrSH:a1,shrSL:s1,rotrSH:l1,rotrSL:u1,rotrBH:f1,rotrBL:c1,rotr32H:d1,rotr32L:p1,rotlSH:m1,rotlSL:h1,rotlBH:g1,rotlBL:y1,add:v1,add3L:w1,add3H:_1,add4L:x1,add4H:S1,add5H:b1,add5L:k1};K.default=GR});var O1=Pe(Nu=>{"use strict";m();g();h();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.crypto=void 0;Nu.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var R1=Pe(Z=>{"use strict";m();g();h();Object.defineProperty(Z,"__esModule",{value:!0});Z.randomBytes=Z.wrapXOFConstructorWithOpts=Z.wrapConstructorWithOpts=Z.wrapConstructor=Z.checkOpts=Z.Hash=Z.concatBytes=Z.toBytes=Z.utf8ToBytes=Z.asyncLoop=Z.nextTick=Z.hexToBytes=Z.bytesToHex=Z.byteSwap32=Z.byteSwapIfBE=Z.byteSwap=Z.isLE=Z.rotl=Z.rotr=Z.createView=Z.u32=Z.u8=Z.isBytes=void 0;var tm=O1(),rm=Xp();function ZR(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Z.isBytes=ZR;var qR=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);Z.u8=qR;var QR=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));Z.u32=QR;var KR=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);Z.createView=KR;var XR=(e,t)=>e<<32-t|e>>>t;Z.rotr=XR;var JR=(e,t)=>e<>>32-t>>>0;Z.rotl=JR;Z.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var eI=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;Z.byteSwap=eI;Z.byteSwapIfBE=Z.isLE?e=>e:e=>(0,Z.byteSwap)(e);function tI(e){for(let t=0;tt.toString(16).padStart(2,"0"));function rI(e){(0,rm.bytes)(e);let t="";for(let n=0;n=Yn._0&&e<=Yn._9)return e-Yn._0;if(e>=Yn._A&&e<=Yn._F)return e-(Yn._A-10);if(e>=Yn._a&&e<=Yn._f)return e-(Yn._a-10)}function iI(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let i=0,o=0;i{};Z.nextTick=oI;async function aI(e,t,n){let r=Date.now();for(let i=0;i=0&&oe().update(Au(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}Z.wrapConstructor=fI;function cI(e){let t=(r,i)=>e(i).update(Au(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Z.wrapConstructorWithOpts=cI;function dI(e){let t=(r,i)=>e(i).update(Au(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}Z.wrapXOFConstructorWithOpts=dI;function pI(e=32){if(tm.crypto&&typeof tm.crypto.getRandomValues=="function")return tm.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}Z.randomBytes=pI});var U1=Pe(Se=>{"use strict";m();g();h();Object.defineProperty(Se,"__esModule",{value:!0});Se.shake256=Se.shake128=Se.keccak_512=Se.keccak_384=Se.keccak_256=Se.keccak_224=Se.sha3_512=Se.sha3_384=Se.sha3_256=Se.sha3_224=Se.Keccak=Se.keccakP=void 0;var wo=Xp(),ss=E1(),Gn=R1(),N1=[],A1=[],D1=[],mI=BigInt(0),as=BigInt(1),hI=BigInt(2),gI=BigInt(7),yI=BigInt(256),vI=BigInt(113);for(let e=0,t=as,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],N1.push(2*(5*r+n)),A1.push((e+1)*(e+2)/2%64);let i=mI;for(let o=0;o<7;o++)t=(t<>gI)*vI)%yI,t&hI&&(i^=as<<(as<n>32?(0,ss.rotlBH)(e,t,n):(0,ss.rotlSH)(e,t,n),P1=(e,t,n)=>n>32?(0,ss.rotlBL)(e,t,n):(0,ss.rotlSL)(e,t,n);function M1(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(let a=0;a<10;a+=2){let s=(a+8)%10,u=(a+2)%10,f=n[u],l=n[u+1],d=I1(f,l,1)^n[s],c=P1(f,l,1)^n[s+1];for(let p=0;p<50;p+=10)e[a+p]^=d,e[a+p+1]^=c}let i=e[2],o=e[3];for(let a=0;a<24;a++){let s=A1[a],u=I1(i,o,s),f=P1(i,o,s),l=N1[a];i=e[l],o=e[l+1],e[l]=u,e[l+1]=f}for(let a=0;a<50;a+=10){for(let s=0;s<10;s++)n[s]=e[a+s];for(let s=0;s<10;s++)e[a+s]^=~n[(s+2)%10]&n[(s+4)%10]}e[0]^=wI[r],e[1]^=_I[r]}n.fill(0)}Se.keccakP=M1;var ls=class e extends Gn.Hash{constructor(t,n,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,wo.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Gn.u32)(this.state)}keccak(){Gn.isLE||(0,Gn.byteSwap32)(this.state32),M1(this.state32,this.rounds),Gn.isLE||(0,Gn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,wo.exists)(this);let{blockLen:n,state:r}=this;t=(0,Gn.toBytes)(t);let i=t.length;for(let o=0;o=r&&this.keccak();let a=Math.min(r-this.posOut,o-i);t.set(n.subarray(this.posOut,this.posOut+a),i),this.posOut+=a,i+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,wo.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,wo.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:i,rounds:o,enableXOF:a}=this;return t||(t=new e(n,r,i,a,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=a,t.destroyed=this.destroyed,t}};Se.Keccak=ls;var Dr=(e,t,n)=>(0,Gn.wrapConstructor)(()=>new ls(t,e,n));Se.sha3_224=Dr(6,144,224/8);Se.sha3_256=Dr(6,136,256/8);Se.sha3_384=Dr(6,104,384/8);Se.sha3_512=Dr(6,72,512/8);Se.keccak_224=Dr(1,144,224/8);Se.keccak_256=Dr(1,136,256/8);Se.keccak_384=Dr(1,104,384/8);Se.keccak_512=Dr(1,72,512/8);var L1=(e,t,n)=>(0,Gn.wrapXOFConstructorWithOpts)((r={})=>new ls(t,e,r.dkLen===void 0?n:r.dkLen,!0));Se.shake128=L1(31,168,128/8);Se.shake256=L1(31,136,256/8)});var V1=Pe((eB,Mr)=>{m();g();h();var{sha3_512:xI}=U1(),j1=24,us=32,im=(e=4,t=Math.random)=>{let n="";for(;n.lengthz1(xI(e)).toString(36).slice(1),F1=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),SI=e=>F1[Math.floor(e()*F1.length)],$1=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+im(us,t):im(us,t);return B1(r).substring(0,us)},H1=e=>()=>e++,kI=476782367,W1=({random:e=Math.random,counter:t=H1(Math.floor(e()*kI)),length:n=j1,fingerprint:r=$1({random:e})}={})=>function(){let o=SI(e),a=Date.now().toString(36),s=t().toString(36),u=im(n,e),f=`${a+u+s+r}`;return`${o+B1(f).substring(1,n)}`},bI=W1(),EI=(e,{minLength:t=2,maxLength:n=us}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};Mr.exports.getConstants=()=>({defaultLength:j1,bigLength:us});Mr.exports.init=W1;Mr.exports.createId=bI;Mr.exports.bufToBigInt=z1;Mr.exports.createCounter=H1;Mr.exports.createFingerprint=$1;Mr.exports.isCuid=EI});var Du=Pe((iB,fs)=>{m();g();h();var{createId:OI,init:CI,getConstants:TI,isCuid:RI}=V1();fs.exports.createId=OI;fs.exports.init=CI;fs.exports.getConstants=TI;fs.exports.isCuid=RI});var pm=Pe((l7,Ox)=>{m();g();h();var DI="Expected a function",vx="__lodash_hash_undefined__",wx=1/0,MI="[object Function]",LI="[object GeneratorFunction]",UI="[object Symbol]",FI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jI=/^\w*$/,zI=/^\./,BI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$I=/[\\^$.*+?()[\]{}|]/g,HI=/\\(\\)?/g,WI=/^\[object .+?Constructor\]$/,VI=typeof global=="object"&&global&&global.Object===Object&&global,YI=typeof self=="object"&&self&&self.Object===Object&&self,um=VI||YI||Function("return this")();function GI(e,t){return e?.[t]}function ZI(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var qI=Array.prototype,QI=Function.prototype,_x=Object.prototype,lm=um["__core-js_shared__"],mx=function(){var e=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),xx=QI.toString,fm=_x.hasOwnProperty,Sx=_x.toString,KI=RegExp("^"+xx.call(fm).replace($I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hx=um.Symbol,XI=qI.splice,JI=kx(um,"Map"),ps=kx(Object,"create"),gx=hx?hx.prototype:void 0,yx=gx?gx.toString:void 0;function hi(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function u3(e,t){var n=this.__data__,r=Lu(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}So.prototype.clear=o3;So.prototype.delete=a3;So.prototype.get=s3;So.prototype.has=l3;So.prototype.set=u3;function gi(e){var t=-1,n=e?e.length:0;for(this.clear();++t{m();g();h();(function(e,t){"use strict";var n="1.0.38",r="",i="?",o="function",a="undefined",s="object",u="string",f="major",l="model",d="name",c="type",p="vendor",v="version",S="architecture",b="console",y="mobile",w="tablet",_="smarttv",x="wearable",N="embedded",D=500,A="Amazon",M="Apple",W="ASUS",U="BlackBerry",Y="Browser",je="Chrome",Qn="Edge",P="Firefox",j="Google",z="Huawei",L="LG",H="Microsoft",q="Motorola",te="Opera",X="Samsung",fe="Sharp",se="Sony",gt="Xiaomi",Ut="Zebra",Kn="Facebook",Cm="Chromium OS",Tm="Mac OS",oS=function(ie,me){var ee={};for(var ve in ie)me[ve]&&me[ve].length%2===0?ee[ve]=me[ve].concat(ie[ve]):ee[ve]=ie[ve];return ee},ys=function(ie){for(var me={},ee=0;ee0?pe.length===2?typeof pe[1]==o?this[pe[0]]=pe[1].call(this,fn):this[pe[0]]=pe[1]:pe.length===3?typeof pe[1]===o&&!(pe[1].exec&&pe[1].test)?this[pe[0]]=fn?pe[1].call(this,fn,pe[2]):t:this[pe[0]]=fn?fn.replace(pe[1],pe[2]):t:pe.length===4&&(this[pe[0]]=fn?pe[3].call(this,fn.replace(pe[1],pe[2])):t):this[pe]=fn||t;ee+=2}},Zu=function(ie,me){for(var ee in me)if(typeof me[ee]===s&&me[ee].length>0){for(var ve=0;ve2&&(J[l]="iPad",J[c]=w),J},this.getEngine=function(){var J={};return J[d]=t,J[v]=t,Po.call(J,ve,un.engine),J},this.getOS=function(){var J={};return J[d]=t,J[v]=t,Po.call(J,ve,un.os),pe&&!J[d]&&On&&On.platform&&On.platform!="Unknown"&&(J[d]=On.platform.replace(/chrome os/i,Cm).replace(/macos/i,Tm)),J},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ve},this.setUA=function(J){return ve=typeof J===u&&J.length>D?Gu(J,D):J,this},this.setUA(ve),this};Ot.VERSION=n,Ot.BROWSER=ys([d,v,f]),Ot.CPU=ys([S]),Ot.DEVICE=ys([l,p,c,b,y,_,w,x,N]),Ot.ENGINE=Ot.OS=ys([d,v]),typeof gs!==a?(typeof Yu!==a&&Yu.exports&&(gs=Yu.exports=Ot),gs.UAParser=Ot):typeof define===o&&define.amd?define(function(){return Ot}):typeof e!==a&&(e.UAParser=Ot);var _i=typeof e!==a&&(e.jQuery||e.Zepto);if(_i&&!_i.ua){var vs=new Ot;_i.ua=vs.getResult(),_i.ua.get=function(){return vs.getUA()},_i.ua.set=function(ie){vs.setUA(ie);var me=vs.getResult();for(var ee in me)_i.ua[ee]=me[ee]}}})(typeof window=="object"?window:gs)});m();g();h();var rS=G(dy());m();g();h();m();g();h();var Ki=G(Qe()),wr=(e,t,n)=>{let[,r]=(0,Ki.useState)({}),o=(0,Ki.useRef)({data:e,deps:n||[],ready:!1,_loading:{},lastRender:0,lastRenderCount:0}).current;if((0,Ki.useEffect)(()=>{o.ready=!0,t&&t({init:!0})},[]),o.ready===!1)o._loading={},o.data.render=()=>{if(o.ready){if(Date.now()-o.lastRender<300?o.lastRenderCount++:o.lastRenderCount=0,o.lastRenderCount>300)throw new Error("local.render more than 300 times in less than 300ms");o.lastRender=Date.now(),r({})}};else if(o.deps.length>0&&n){for(let[a,s]of Object.entries(n))if(o.deps[a]!==s){o.deps[a]=s,t&&setTimeout(()=>{t({init:!1})});break}}return o.data};m();g();h();var py=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let i=0,o=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(o),n()),i>100&&clearInterval(o)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});m();g();h();var Eb=G(Qe());m();g();h();var Un=G(Qe());m();g();h();function yd(e){let t=new WeakMap;function n(r,i=[]){if(!(r!==null&&typeof r=="object"))return r;let o=t.get(r);if(o)return`[Circular *${o.join(".")}]`;t.set(r,i);let a=Array.isArray(r)?[]:{};for(let[s,u]of Object.entries(r))a[s]=n(u,[...i,s]);return t.delete(r),a}return n(e)}var vd=(0,Un.createContext)({global:{},render:()=>{}});var _r=(e,t)=>{let n=(0,Un.useContext)(vd),{global:r,render:i}=n;r[t]||(r[t]=e),(0,Un.useEffect)(()=>{let a=null;return()=>{typeof a=="function"?a():a instanceof Promise&&a.then(s=>{typeof s=="function"&&s()})}},[]);let o=r[t];return o&&(o.render=a=>{a&&(r[t]=void 0),(0,Un.startTransition)(i)}),o},Xi=yd;var SN=G(Qe());m();g();h();m();g();h();m();g();h();var _d=G(Qe()),_y=G(hd()),xy=G(gy()),Sy=G(ge()),ky=()=>{let e=typeof window=="object"?window:globalThis;e.React=_d.default,e.ReactDOM=_y.default,e.JSXRuntime=Sy.default,e.JSXDevRuntime=xy.default,e.Fragment=_d.default.Fragment};m();g();h();m();g();h();var Ab={data:""},Ey=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Ab,Oy=e=>{let t=Ey(e),n=t.data;return t.data="",n},Db=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Mb=/\/\*[^]*?\*\/| +/g,by=/\n+/g,Jr=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Jr(a,o):o+"{"+Jr(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Jr(a,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Jr.p?Jr.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Fn={},Cy=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Cy(e[n]);return t}return e},Lb=(e,t,n,r,i)=>{let o=Cy(e),a=Fn[o]||(Fn[o]=(u=>{let f=0,l=11;for(;f>>0;return"go"+l})(o));if(!Fn[a]){let u=o!==e?e:(f=>{let l,d,c=[{}];for(;l=Db.exec(f.replace(Mb,""));)l[4]?c.shift():l[3]?(d=l[3].replace(by," ").trim(),c.unshift(c[0][d]=c[0][d]||{})):c[0][l[1]]=l[2].replace(by," ").trim();return c[0]})(e);Fn[a]=Jr(i?{["@keyframes "+a]:u}:u,n?"":"."+a)}let s=n&&Fn.g?Fn.g:null;return n&&(Fn.g=Fn[a]),((u,f,l,d)=>{d?f.data=f.data.replace(d,u):f.data.indexOf(u)===-1&&(f.data=l?u+f.data:f.data+u)})(Fn[a],t,r,s),a},Ub=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=u?"."+u:s&&typeof s=="object"?s.props?"":Jr(s,""):s===!1?"":s}return r+i+(a??"")},"");function $l(e){let t=this||{},n=e.call?e(t.p):e;return Lb(n.unshift?n.raw?Ub(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Ey(t.target),t.g,t.o,t.k)}var fN=$l.bind({g:1}),cN=$l.bind({k:1});var Ty=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await py(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",i=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let a=new URL(t.serverurl);(a.hostname==="localhost"||a.hostname==="127.0.0.1")&&(a.hostname=n.hostname,a.pathname=a.pathname==="/"?"":a.pathname,t.serverurl=a.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let o=n.port;t.baseurl=i+"://"+r+(o?":"+o:"")+"/",t.basepath||(t.basepath="/"),t.css=$l,t.extractCss=Oy,t.pathname=n.pathname,t.cx=(...a)=>{let s=[];return a.filter(u=>u?(typeof u=="string"&&u.trim(),!0):!1).forEach(u=>{if(Array.isArray(u))for(let f of u)typeof f=="string"&&f.trim()&&s.push(f.trim());else s.push(u.trim())}),s.join(" ")},t.navigate=a=>{let s=a;if(typeof t.navigateOverride=="function"&&(s=t.navigateOverride(a),!s))return null;history.pushState({prevUrl:window.location.href},"",s),t.pathname=a,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let a=navigator.serviceWorker.controller;if(a&&a.postMessage({type:"add-cache",url:n.href}),t.prasiContext.popState){t.prasiContext.popState();return}if(t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};m();g();h();var xd=window,B={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(B.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:xd._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:{}},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},Ry=()=>{if(!B.root){let e=new URL(location.href);xd._prasi.basepath&&(e.pathname=xd._prasi.basepath),B.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),B.root.pathname.endsWith("/")&&(B.root.pathname=B.root.pathname.substring(0,B.root.length-1))}};m();g();h();m();g();h();m();g();h();function Ji(e){"@babel/helpers - typeof";return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(e)}m();g();h();function St(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}m();g();h();m();g();h();function ce(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function De(e){ce(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ji(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}m();g();h();function Sd(e,t){ce(2,arguments);var n=De(e).getTime(),r=St(t);return new Date(n+r)}m();g();h();var Fb={};function xr(){return Fb}m();g();h();function kd(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}m();g();h();m();g();h();function bd(e){return ce(1,arguments),e instanceof Date||Ji(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ed(e){if(ce(1,arguments),!bd(e)&&typeof e!="number")return!1;var t=De(e);return!isNaN(Number(t))}m();g();h();m();g();h();function Od(e,t){ce(2,arguments);var n=St(t);return Sd(e,-n)}m();g();h();m();g();h();var jb=864e5;function Cd(e){ce(1,arguments);var t=De(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/jb)+1}m();g();h();m();g();h();function Sr(e){ce(1,arguments);var t=1,n=De(e),r=n.getUTCDay(),i=(r=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Td(e){ce(1,arguments);var t=ba(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Sr(n);return r}var zb=6048e5;function Rd(e){ce(1,arguments);var t=De(e),n=Sr(t).getTime()-Td(t).getTime();return Math.round(n/zb)+1}m();g();h();m();g();h();function kr(e,t){var n,r,i,o,a,s,u,f;ce(1,arguments);var l=xr(),d=St((n=(r=(i=(o=t?.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&r!==void 0?r:(u=l.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=De(e),p=c.getUTCDay(),v=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,p),v.setUTCHours(0,0,0,0);var S=kr(v,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var y=kr(b,t);return l.getTime()>=S.getTime()?d+1:l.getTime()>=y.getTime()?d:d-1}function Id(e,t){var n,r,i,o,a,s,u,f;ce(1,arguments);var l=xr(),d=St((n=(r=(i=(o=t?.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:l.firstWeekContainsDate)!==null&&r!==void 0?r:(u=l.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&n!==void 0?n:1),c=Ea(e,t),p=new Date(0);p.setUTCFullYear(c,0,d),p.setUTCHours(0,0,0,0);var v=kr(p,t);return v}var Bb=6048e5;function Pd(e,t){ce(1,arguments);var n=De(e),r=kr(n,t).getTime()-Id(n,t).getTime();return Math.round(r/Bb)+1}m();g();h();function ue(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return ue(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ue(r+1,2)},d:function(t,n){return ue(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ue(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ue(t.getUTCHours(),n.length)},m:function(t,n){return ue(t.getUTCMinutes(),n.length)},s:function(t,n){return ue(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return ue(o,n.length)}},jn=$b;var eo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hb={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return jn.y(t,n)},Y:function(t,n,r,i){var o=Ea(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return ue(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):ue(a,n.length)},R:function(t,n){var r=ba(t);return ue(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ue(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return ue(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return ue(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return jn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return ue(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=Pd(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):ue(o,n.length)},I:function(t,n,r){var i=Rd(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):ue(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):jn.d(t,n)},D:function(t,n,r){var i=Cd(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):ue(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return ue(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return ue(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return ue(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=eo.noon:i===0?o=eo.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=eo.evening:i>=12?o=eo.afternoon:i>=4?o=eo.morning:o=eo.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return jn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):jn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):ue(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):ue(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):jn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):jn.s(t,n)},S:function(t,n){return jn.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Py(a);case"XXXX":case"XX":return ei(a);case"XXXXX":case"XXX":default:return ei(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return Py(a);case"xxxx":case"xx":return ei(a);case"xxxxx":case"xxx":default:return ei(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Iy(a,":");case"OOOO":default:return"GMT"+ei(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Iy(a,":");case"zzzz":default:return"GMT"+ei(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return ue(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return ue(a,n.length)}};function Iy(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t||"";return n+String(i)+a+ue(o,2)}function Py(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ue(Math.abs(e)/60,2)}return ei(e,t)}function ei(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=ue(Math.floor(i/60),2),a=ue(i%60,2);return r+o+n+a}var Ny=Hb;m();g();h();var Ay=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Dy=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Wb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ay(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Ay(i,n)).replace("{{time}}",Dy(o,n))},Vb={p:Dy,P:Wb},My=Vb;m();g();h();var Yb=["D","DD"],Gb=["YY","YYYY"];function Ly(e){return Yb.indexOf(e)!==-1}function Uy(e){return Gb.indexOf(e)!==-1}function Nd(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}m();g();h();m();g();h();m();g();h();var Zb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qb=function(t,n,r){var i,o=Zb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i},Fy=qb;m();g();h();m();g();h();function Oa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Qb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jb={date:Oa({formats:Qb,defaultWidth:"full"}),time:Oa({formats:Kb,defaultWidth:"full"}),dateTime:Oa({formats:Xb,defaultWidth:"full"})},jy=Jb;m();g();h();var e2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},t2=function(t,n,r,i){return e2[t]},zy=t2;m();g();h();m();g();h();function ti(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}var f=e.argumentCallback?e.argumentCallback(t):t;return i[f]}}var n2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},i2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},a2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},l2=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},u2={ordinalNumber:l2,era:ti({values:n2,defaultWidth:"wide"}),quarter:ti({values:r2,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ti({values:i2,defaultWidth:"wide"}),day:ti({values:o2,defaultWidth:"wide"}),dayPeriod:ti({values:a2,defaultWidth:"wide",formattingValues:s2,defaultFormattingWidth:"wide"})},By=u2;m();g();h();m();g();h();function ni(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?c2(s,function(d){return d.test(a)}):f2(s,function(d){return d.test(a)}),f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;var l=t.slice(a.length);return{value:f,rest:l}}}function f2(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function c2(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var d2=/^(\d+)(th|st|nd|rd)?/i,p2=/\d+/i,m2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h2={any:[/^b/i,/^(a|c)/i]},g2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},y2={any:[/1/i,/2/i,/3/i,/4/i]},v2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},x2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},S2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},k2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},b2={ordinalNumber:Ad({matchPattern:d2,parsePattern:p2,valueCallback:function(t){return parseInt(t,10)}}),era:ni({matchPatterns:m2,defaultMatchWidth:"wide",parsePatterns:h2,defaultParseWidth:"any"}),quarter:ni({matchPatterns:g2,defaultMatchWidth:"wide",parsePatterns:y2,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ni({matchPatterns:v2,defaultMatchWidth:"wide",parsePatterns:w2,defaultParseWidth:"any"}),day:ni({matchPatterns:_2,defaultMatchWidth:"wide",parsePatterns:x2,defaultParseWidth:"any"}),dayPeriod:ni({matchPatterns:S2,defaultMatchWidth:"any",parsePatterns:k2,defaultParseWidth:"any"})},$y=b2;var E2={code:"en-US",formatDistance:Fy,formatLong:jy,formatRelative:zy,localize:By,match:$y,options:{weekStartsOn:0,firstWeekContainsDate:1}},Hy=E2;var Wy=Hy;var O2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T2=/^'([^]*?)'?$/,R2=/''/g,I2=/[a-zA-Z]/;function Ca(e,t,n){var r,i,o,a,s,u,f,l,d,c,p,v,S,b,y,w,_,x;ce(2,arguments);var N=String(t),D=xr(),A=(r=(i=n?.locale)!==null&&i!==void 0?i:D.locale)!==null&&r!==void 0?r:Wy,M=St((o=(a=(s=(u=n?.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(f=n.locale)===null||f===void 0||(l=f.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&s!==void 0?s:D.firstWeekContainsDate)!==null&&a!==void 0?a:(d=D.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=St((p=(v=(S=(b=n?.weekStartsOn)!==null&&b!==void 0?b:n==null||(y=n.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&S!==void 0?S:D.weekStartsOn)!==null&&v!==void 0?v:(_=D.locale)===null||_===void 0||(x=_.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var U=De(e);if(!Ed(U))throw new RangeError("Invalid time value");var Y=kd(U),je=Od(U,Y),Qn={firstWeekContainsDate:M,weekStartsOn:W,locale:A,_originalDate:U},P=N.match(C2).map(function(j){var z=j[0];if(z==="p"||z==="P"){var L=My[z];return L(j,A.formatLong)}return j}).join("").match(O2).map(function(j){if(j==="''")return"'";var z=j[0];if(z==="'")return P2(j);var L=Ny[z];if(L)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Uy(j)&&Nd(j,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ly(j)&&Nd(j,t,String(e)),L(je,j,A.localize,Qn);if(z.match(I2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");return j}).join("");return P}function P2(e){var t=e.match(T2);return t?t[1].replace(R2,"'"):e}m();g();h();m();g();h();m();g();h();var Md;try{Md=new TextDecoder}catch{}var $,Yt,E=0;var nv=[],Ld=nv,Ud=0,xe={},oe,br,Vt=0,yn=0,Ge,zn,kt=[],re,Vy={useRecords:!1,mapsAsObjects:!0},Ta=class{},jd=new Ta;jd.name="MessagePack 0xC1";var Er=!1,rv=2,Yy,Gy,Zy;try{new Function("")}catch{rv=1/0}var ii=class e{constructor(t){t&&(t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.sequential&&t.trusted!==!1&&(t.trusted=!0,!t.structures&&t.useRecords!=!1&&(t.structures=[],t.maxSharedStructures||(t.maxSharedStructures=0))),t.structures?t.structures.sharedLength=t.structures.length:t.getStructures&&((t.structures=[]).uninitialized=!0,t.structures.sharedLength=0),t.int64AsNumber&&(t.int64AsType="number")),Object.assign(this,t)}unpack(t,n){if($)return lv(()=>(Wl(),this?this.unpack(t,n):e.prototype.unpack.call(Vy,t,n)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof k<"u"?k.from(t):new Uint8Array(t)),typeof n=="object"?(Yt=n.end||t.length,E=n.start||0):(E=0,Yt=n>-1?n:t.length),Ud=0,yn=0,br=null,Ld=nv,Ge=null,$=t;try{re=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(r){throw $=null,t instanceof Uint8Array?r:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof e){if(xe=this,this.structures)return oe=this.structures,Hl(n);(!oe||oe.length>0)&&(oe=[])}else xe=Vy,(!oe||oe.length>0)&&(oe=[]);return Hl(n)}unpackMultiple(t,n){let r,i=0;try{Er=!0;let o=t.length,a=this?this.unpack(t,o):Yl.unpack(t,o);if(n){if(n(a,i,E)===!1)return;for(;Er.slice(0)));for(let r=0,i=t.length;r=32&&(o.highByte=r-32>>5))}t.sharedLength=t.length;for(let r in n||[])if(r>=0){let i=t[r],o=n[r];o&&(i&&((t.restoreStructures||(t.restoreStructures=[]))[r]=i),t[r]=o)}return this.structures=t}decode(t,n){return this.unpack(t,n)}};function Hl(e){try{if(!xe.trusted&&!Er){let n=oe.sharedLength||0;n=32&&Yy?(t=Yy($,E,Yt,xe),$=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),E=Yt):t=Me(),Ge&&(E=Ge.postBundlePosition,Ge=null),Er&&(oe.restoreStructures=null),E==Yt)oe&&oe.restoreStructures&&qy(),oe=null,$=null,zn&&(zn=null);else{if(E>Yt)throw new Error("Unexpected end of MessagePack data");if(!Er){let n;try{n=JSON.stringify(t,(r,i)=>typeof i=="bigint"?`${i}n`:i).slice(0,100)}catch(r){n="(JSON view not available "+r+")"}throw new Error("Data read, but end of buffer not reached "+n)}}return t}catch(t){throw oe&&oe.restoreStructures&&qy(),Wl(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer")||E>Yt)&&(t.incomplete=!0),t}}function qy(){for(let e in oe.restoreStructures)oe[e]=oe.restoreStructures[e];oe.restoreStructures=null}function Me(){let e=$[E++];if(e<160)if(e<128){if(e<64)return e;{let t=oe[e&63]||xe.getStructures&&iv()[e&63];return t?(t.read||(t.read=zd(t,e&63)),t.read()):e}}else if(e<144)if(e-=128,xe.mapsAsObjects){let t={};for(let n=0;n=E)return br.slice(E-Vt,(E+=t)-Vt);if(yn==0&&Yt<140){let n=t<16?Bd(t):ov(t);if(n!=null)return n}return Fd(t)}else{let t;switch(e){case 192:return null;case 193:return Ge?(t=Me(),t>0?Ge[1].slice(Ge.position1,Ge.position1+=t):Ge[0].slice(Ge.position0,Ge.position0-=t)):jd;case 194:return!1;case 195:return!0;case 196:if(t=$[E++],t===void 0)throw new Error("Unexpected end of buffer");return Dd(t);case 197:return t=re.getUint16(E),E+=2,Dd(t);case 198:return t=re.getUint32(E),E+=4,Dd(t);case 199:return ri($[E++]);case 200:return t=re.getUint16(E),E+=2,ri(t);case 201:return t=re.getUint32(E),E+=4,ri(t);case 202:if(t=re.getFloat32(E),xe.useFloat32>2){let n=Vl[($[E]&127)<<1|$[E+1]>>7];return E+=4,(n*t+(t>0?.5:-.5)>>0)/n}return E+=4,t;case 203:return t=re.getFloat64(E),E+=8,t;case 204:return $[E++];case 205:return t=re.getUint16(E),E+=2,t;case 206:return t=re.getUint32(E),E+=4,t;case 207:return xe.int64AsType==="number"?(t=re.getUint32(E)*4294967296,t+=re.getUint32(E+4)):xe.int64AsType==="string"?t=re.getBigUint64(E).toString():xe.int64AsType==="auto"?(t=re.getBigUint64(E),t<=BigInt(2)<=BigInt(-2)<=E?br.slice(E-Vt,(E+=t)-Vt):A2(t);case 218:return t=re.getUint16(E),E+=2,yn>=E?br.slice(E-Vt,(E+=t)-Vt):D2(t);case 219:return t=re.getUint32(E),E+=4,yn>=E?br.slice(E-Vt,(E+=t)-Vt):M2(t);case 220:return t=re.getUint16(E),E+=2,Ky(t);case 221:return t=re.getUint32(E),E+=4,Ky(t);case 222:return t=re.getUint16(E),E+=2,Xy(t);case 223:return t=re.getUint32(E),E+=4,Xy(t);default:if(e>=224)return e-256;if(e===void 0){let n=new Error("Unexpected end of MessagePack data");throw n.incomplete=!0,n}throw new Error("Unknown MessagePack token "+e)}}}var N2=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function zd(e,t){function n(){if(n.count++>rv){let i=e.read=new Function("r","return function(){return "+(xe.freezeData?"Object.freeze":"")+"({"+e.map(o=>o==="__proto__"?"__proto_:r()":N2.test(o)?o+":r()":"["+JSON.stringify(o)+"]:r()").join(",")+"})}")(Me);return e.highByte===0&&(e.read=Qy(t,e.read)),i()}let r={};for(let i=0,o=e.length;ifunction(){let n=$[E++];if(n===0)return t();let r=e<32?-(e+(n<<5)):e+(n<<5),i=oe[r]||iv()[r];if(!i)throw new Error("Record id is not defined for "+r);return i.read||(i.read=zd(i,e)),i.read()};function iv(){let e=lv(()=>($=null,xe.getStructures()));return oe=xe._mergeStructures(e,oe)}var Fd=Ra,A2=Ra,D2=Ra,M2=Ra;function Ra(e){let t;if(e<16&&(t=Bd(e)))return t;if(e>64&&Md)return Md.decode($.subarray(E,E+=e));let n=E+e,r=[];for(t="";E65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|u&1023),r.push(u)}else r.push(i);r.length>=4096&&(t+=Ye.apply(String,r),r.length=0)}return r.length>0&&(t+=Ye.apply(String,r)),t}function Ky(e){let t=new Array(e);for(let n=0;n0){E=t;return}n[r]=i}return Ye.apply(String,n)}function Bd(e){if(e<4)if(e<2){if(e===0)return"";{let t=$[E++];if((t&128)>1){E-=1;return}return Ye(t)}}else{let t=$[E++],n=$[E++];if((t&128)>0||(n&128)>0){E-=2;return}if(e<3)return Ye(t,n);let r=$[E++];if((r&128)>0){E-=3;return}return Ye(t,n,r)}else{let t=$[E++],n=$[E++],r=$[E++],i=$[E++];if((t&128)>0||(n&128)>0||(r&128)>0||(i&128)>0){E-=4;return}if(e<6){if(e===4)return Ye(t,n,r,i);{let o=$[E++];if((o&128)>0){E-=5;return}return Ye(t,n,r,i,o)}}else if(e<8){let o=$[E++],a=$[E++];if((o&128)>0||(a&128)>0){E-=6;return}if(e<7)return Ye(t,n,r,i,o,a);let s=$[E++];if((s&128)>0){E-=7;return}return Ye(t,n,r,i,o,a,s)}else{let o=$[E++],a=$[E++],s=$[E++],u=$[E++];if((o&128)>0||(a&128)>0||(s&128)>0||(u&128)>0){E-=8;return}if(e<10){if(e===8)return Ye(t,n,r,i,o,a,s,u);{let f=$[E++];if((f&128)>0){E-=9;return}return Ye(t,n,r,i,o,a,s,u,f)}}else if(e<12){let f=$[E++],l=$[E++];if((f&128)>0||(l&128)>0){E-=10;return}if(e<11)return Ye(t,n,r,i,o,a,s,u,f,l);let d=$[E++];if((d&128)>0){E-=11;return}return Ye(t,n,r,i,o,a,s,u,f,l,d)}else{let f=$[E++],l=$[E++],d=$[E++],c=$[E++];if((f&128)>0||(l&128)>0||(d&128)>0||(c&128)>0){E-=12;return}if(e<14){if(e===12)return Ye(t,n,r,i,o,a,s,u,f,l,d,c);{let p=$[E++];if((p&128)>0){E-=13;return}return Ye(t,n,r,i,o,a,s,u,f,l,d,c,p)}}else{let p=$[E++],v=$[E++];if((p&128)>0||(v&128)>0){E-=14;return}if(e<15)return Ye(t,n,r,i,o,a,s,u,f,l,d,c,p,v);let S=$[E++];if((S&128)>0){E-=15;return}return Ye(t,n,r,i,o,a,s,u,f,l,d,c,p,v,S)}}}}}function Jy(){let e=$[E++],t;if(e<192)t=e-160;else switch(e){case 217:t=$[E++];break;case 218:t=re.getUint16(E),E+=2;break;case 219:t=re.getUint32(E),E+=4;break;default:throw new Error("Expected string")}return Ra(t)}function Dd(e){return xe.copyBuffers?Uint8Array.prototype.slice.call($,E,E+=e):$.subarray(E,E+=e)}function ri(e){let t=$[E++];if(kt[t]){let n;return kt[t]($.subarray(E,n=E+=e),r=>{E=r;try{return Me()}finally{E=n}})}else throw new Error("Unknown extension type "+t)}var ev=new Array(4096);function av(){let e=$[E++];if(e>=160&&e<192){if(e=e-160,yn>=E)return br.slice(E-Vt,(E+=e)-Vt);if(!(yn==0&&Yt<180))return Fd(e)}else return E--,sv(Me());let t=(e<<5^(e>1?re.getUint16(E):e>0?$[E]:0))&4095,n=ev[t],r=E,i=E+e-3,o,a=0;if(n&&n.bytes==e){for(;r{let n=Me().map(sv),r=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,n.highByte=t);let i=oe[e];return i&&(i.isShared||Er)&&((oe.restoreStructures||(oe.restoreStructures=[]))[e]=i),oe[e]=n,n.read=zd(n,r),n.read()};kt[0]=()=>{};kt[0].noBuffer=!0;kt[66]=e=>{let t=e.length,n=BigInt(e[0]&128?e[0]-256:e[0]);for(let r=1;r{let e=Me();return(L2[e[0]]||Error)(e[1],{cause:e[2]})};kt[105]=e=>{if(xe.structuredClone===!1)throw new Error("Structured clone extension is disabled");let t=re.getUint32(E-4);zn||(zn=new Map);let n=$[E],r;n>=144&&n<160||n==220||n==221?r=[]:r={};let i={target:r};zn.set(t,i);let o=Me();return i.used?Object.assign(r,o):(i.target=o,o)};kt[112]=e=>{if(xe.structuredClone===!1)throw new Error("Structured clone extension is disabled");let t=re.getUint32(E-4),n=zn.get(t);return n.used=!0,n.target};kt[115]=()=>new Set(Me());var $d=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),U2=typeof globalThis=="object"?globalThis:window;kt[116]=e=>{let t=e[0],n=$d[t];if(!n){if(t===16){let r=new ArrayBuffer(e.length-1);return new Uint8Array(r).set(e.subarray(1)),r}throw new Error("Could not find typed array for code "+t)}return new U2[n](Uint8Array.prototype.slice.call(e,1).buffer)};kt[120]=()=>{let e=Me();return new RegExp(e[0],e[1])};var F2=[];kt[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],n=E;return E+=t-e.length,Ge=F2,Ge=[Jy(),Jy()],Ge.position0=0,Ge.position1=0,Ge.postBundlePosition=E,E=n,Me()};kt[255]=e=>e.length==4?new Date((e[0]*16777216+(e[1]<<16)+(e[2]<<8)+e[3])*1e3):e.length==8?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+((e[3]&3)*4294967296+e[4]*16777216+(e[5]<<16)+(e[6]<<8)+e[7])*1e3):e.length==12?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+((e[4]&128?-281474976710656:0)+e[6]*1099511627776+e[7]*4294967296+e[8]*16777216+(e[9]<<16)+(e[10]<<8)+e[11])*1e3):new Date("invalid");function lv(e){Zy&&Zy();let t=Yt,n=E,r=Ud,i=Vt,o=yn,a=br,s=Ld,u=zn,f=Ge,l=new Uint8Array($.slice(0,Yt)),d=oe,c=oe.slice(0,oe.length),p=xe,v=Er,S=e();return Yt=t,E=n,Ud=r,Vt=i,yn=o,br=a,Ld=s,zn=u,Ge=f,$=l,Er=v,oe=d,oe.splice(0,oe.length,...c),xe=p,re=new DataView($.buffer,$.byteOffset,$.byteLength),S}function Wl(){$=null,zn=null,oe=null}var Vl=new Array(147);for(let e=0;e<256;e++)Vl[e]=+("1e"+Math.floor(45.15-e*.30103));var Yl=new ii({useRecords:!1}),j2=Yl.unpack,z2=Yl.unpackMultiple,B2=Yl.unpack,Gl={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},$2=new Float32Array(1),GM=new Uint8Array($2.buffer,0,4);var ql;try{ql=new TextEncoder}catch{}var Hd,pv,Ql=typeof k<"u",Zl=Ql?function(e){return k.allocUnsafeSlow(e)}:Uint8Array,mv=Ql?k:Uint8Array,uv=Ql?4294967296:2144337920,R,Ia,ye,T=0,mt,Ie=null,H2,W2=21760,V2=/[\u0080-\uFFFF]/,to=Symbol("record-id"),oi=class extends ii{constructor(t){super(t),this.offset=0;let n,r,i,o,a,s=mv.prototype.utf8Write?function(P,j){return R.utf8Write(P,j,4294967295)}:ql&&ql.encodeInto?function(P,j){return ql.encodeInto(P,R.subarray(j)).written}:!1,u=this;t||(t={});let f=t&&t.sequential,l=t.structures||t.saveStructures,d=t.maxSharedStructures;if(d==null&&(d=l?32:0),d>8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&&t.moreTypes==null&&(this.moreTypes=!0);let c=t.maxOwnStructures;c==null&&(c=l?32:64),!this.structures&&t.useRecords!=!1&&(this.structures=[]);let p=d>32||c+d>64,v=d+64,S=d+c+64;if(S>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let b=[],y=0,w=0;this.pack=this.encode=function(P,j){if(R||(R=new Zl(8192),ye=R.dataView||(R.dataView=new DataView(R.buffer,0,8192)),T=0),mt=R.length-10,mt-T<2048?(R=new Zl(R.length),ye=R.dataView||(R.dataView=new DataView(R.buffer,0,R.length)),mt=R.length-10,T=0):T=T+7&2147483640,r=T,j&nE&&(T+=j&255),a=u.structuredClone?new Map:null,u.bundleStrings&&typeof P!="string"?(Ie=[],Ie.size=1/0):Ie=null,o=u.structures,o){o.uninitialized&&(o=u._mergeStructures(u.getStructures()));let L=o.sharedLength||0;if(L>d)throw new Error("Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to "+o.sharedLength);if(!o.transitions){o.transitions=Object.create(null);for(let H=0;Hfe.offset>se.offset?1:-1),q=H.length,te=-1;for(;L&&q>0;){let fe=H[--q].offset+r;feL.position+r?te>=0&&(te+=6):(te>=0&&(ye.setUint32(L.position+r,ye.getUint32(L.position+r)+te),te=-1),L=L.previous,q++)}te>=0&&L&&ye.setUint32(L.position+r,ye.getUint32(L.position+r)+te),T+=H.length*6,T>mt&&U(T),u.offset=T;let X=G2(R.subarray(r,T),H);return a=null,X}return u.offset=T,j&gv?(R.start=r,R.end=T,R):R.subarray(r,T)}catch(L){throw z=L,L}finally{if(o&&(_(),i&&u.saveStructures)){let L=o.sharedLength||0,H=R.subarray(r,T),q=Z2(o,u);if(!z)return u.saveStructures(q,q.isCompatible)===!1?u.pack(P,j):(u.lastNamedStructuresLength=L,R.length>1073741824&&(R=null),H)}R.length>1073741824&&(R=null),j&tE&&(T=r)}};let _=()=>{w<10&&w++;let P=o.sharedLength||0;if(o.length>P&&!f&&(o.length=P),y>1e4)o.transitions=null,w=0,y=0,b.length>0&&(b=[]);else if(b.length>0&&!f){for(let j=0,z=b.length;j{var j=P.length;j<16?R[T++]=144|j:j<65536?(R[T++]=220,R[T++]=j>>8,R[T++]=j&255):(R[T++]=221,ye.setUint32(T,j),T+=4);for(let z=0;z{T>mt&&(R=U(T));var j=typeof P,z;if(j==="string"){let L=P.length;if(Ie&&L>=4&&L<4096){if((Ie.size+=L)>W2){let X,fe=(Ie[0]?Ie[0].length*3+Ie[1].length:0)+10;T+fe>mt&&(R=U(T+fe));let se;Ie.position?(se=Ie,R[T]=200,T+=3,R[T++]=98,X=T-r,T+=4,dv(r,N,0),ye.setUint16(X+r-3,T-r-X)):(R[T++]=214,R[T++]=98,X=T-r,T+=4),Ie=["",""],Ie.previous=se,Ie.size=0,Ie.position=X}let te=V2.test(P);Ie[te?0:1]+=P,R[T++]=193,N(te?-L:L);return}let H;L<32?H=1:L<256?H=2:L<65536?H=3:H=5;let q=L*3;if(T+q>mt&&(R=U(T+q)),L<64||!s){let te,X,fe,se=T+H;for(te=0;te>6|192,R[se++]=X&63|128):(X&64512)===55296&&((fe=P.charCodeAt(te+1))&64512)===56320?(X=65536+((X&1023)<<10)+(fe&1023),te++,R[se++]=X>>18|240,R[se++]=X>>12&63|128,R[se++]=X>>6&63|128,R[se++]=X&63|128):(R[se++]=X>>12|224,R[se++]=X>>6&63|128,R[se++]=X&63|128);z=se-T-H}else z=s(P,T+H);z<32?R[T++]=160|z:z<256?(H<2&&R.copyWithin(T+2,T+1,T+1+z),R[T++]=217,R[T++]=z):z<65536?(H<3&&R.copyWithin(T+3,T+2,T+2+z),R[T++]=218,R[T++]=z>>8,R[T++]=z&255):(H<5&&R.copyWithin(T+5,T+3,T+3+z),R[T++]=219,ye.setUint32(T,z),T+=4),T+=z}else if(j==="number")if(P>>>0===P)P<32||P<128&&this.useRecords===!1||P<64&&!this.randomAccessStructure?R[T++]=P:P<256?(R[T++]=204,R[T++]=P):P<65536?(R[T++]=205,R[T++]=P>>8,R[T++]=P&255):(R[T++]=206,ye.setUint32(T,P),T+=4);else if(P>>0===P)P>=-32?R[T++]=256+P:P>=-128?(R[T++]=208,R[T++]=P+256):P>=-32768?(R[T++]=209,ye.setInt16(T,P),T+=2):(R[T++]=210,ye.setInt32(T,P),T+=4);else{let L;if((L=this.useFloat32)>0&&P<4294967296&&P>=-2147483648){R[T++]=202,ye.setFloat32(T,P);let H;if(L<4||(H=P*Vl[(R[T]&127)<<1|R[T+1]>>7])>>0===H){T+=4;return}else T--}R[T++]=203,ye.setFloat64(T,P),T+=8}else if(j==="object"||j==="function")if(!P)R[T++]=192;else{if(a){let H=a.get(P);if(H){if(!H.id){let q=a.idsToInsert||(a.idsToInsert=[]);H.id=q.push(H)}R[T++]=214,R[T++]=112,ye.setUint32(T,H.id),T+=4;return}else a.set(P,{offset:T-r})}let L=P.constructor;if(L===Object)W(P);else if(L===Array)x(P);else if(L===Map)if(this.mapAsEmptyObject)R[T++]=128;else{z=P.size,z<16?R[T++]=128|z:z<65536?(R[T++]=222,R[T++]=z>>8,R[T++]=z&255):(R[T++]=223,ye.setUint32(T,z),T+=4);for(let[H,q]of P)N(H),N(q)}else{for(let H=0,q=Hd.length;H(R=fe,fe=null,T+=Kn,T>mt&&U(T),{target:R,targetView:ye,position:T-Kn}),N)}finally{fe&&(R=fe,ye=se,T=gt,mt=R.length-10)}Ut&&(Ut.length+T>mt&&U(Ut.length+T),T=Y2(Ut,R,T,X.type));return}}if(Array.isArray(P))x(P);else{if(P.toJSON){let H=P.toJSON();if(H!==P)return N(H)}if(j==="function")return N(this.writeFunction&&this.writeFunction(P));W(P)}}}else if(j==="boolean")R[T++]=P?195:194;else if(j==="bigint"){if(P=-(BigInt(1)<0)R[T++]=207,ye.setBigUint64(T,P);else if(this.largeBigIntToFloat)R[T++]=203,ye.setFloat64(T,Number(P));else if(this.useBigIntExtension&&P<2n**1023n&&P>-(2n**1023n)){R[T++]=199,T++,R[T++]=66;let L=[],H;do{let q=P&0xffn;H=(q&0x80n)===(P<0n?0x80n:0n),L.push(q),P>>=8n}while(!((P===0n||P===-1n)&&H));R[T-2]=L.length;for(let q=L.length;q>0;)R[T++]=Number(L[--q]);return}else throw new RangeError(P+" was too large to fit in MessagePack 64-bit integer format, use useBigIntExtension or set largeBigIntToFloat to convert to float-64");T+=8}else if(j==="undefined")this.encodeUndefinedAsNil?R[T++]=192:(R[T++]=212,R[T++]=0,R[T++]=0);else throw new Error("Unknown type: "+j)},D=this.variableMapSize||this.coercibleKeyAsNumber?P=>{let j=Object.keys(P),z=j.length;z<16?R[T++]=128|z:z<65536?(R[T++]=222,R[T++]=z>>8,R[T++]=z&255):(R[T++]=223,ye.setUint32(T,z),T+=4);let L;if(this.coercibleKeyAsNumber)for(let H=0;H{R[T++]=222;let j=T-r;T+=2;let z=0;for(let L in P)(typeof P.hasOwnProperty!="function"||P.hasOwnProperty(L))&&(N(L),N(P[L]),z++);R[j+++r]=z>>8,R[j+r]=z&255},A=this.useRecords===!1?D:t.progressiveRecords&&!p?P=>{let j,z=o.transitions||(o.transitions=Object.create(null)),L=T++-r,H;for(let q in P)if(typeof P.hasOwnProperty!="function"||P.hasOwnProperty(q)){if(j=z[q],j)z=j;else{let te=Object.keys(P),X=z;z=o.transitions;let fe=0;for(let se=0,gt=te.length;se{let j,z=o.transitions||(o.transitions=Object.create(null)),L=0;for(let q in P)(typeof P.hasOwnProperty!="function"||P.hasOwnProperty(q))&&(j=z[q],j||(j=z[q]=Object.create(null),L++),z=j);let H=z[to];H?H>=96&&p?(R[T++]=((H-=96)&31)+96,R[T++]=H>>5):R[T++]=H:Y(z,z.__keys__||Object.keys(P),L);for(let q in P)(typeof P.hasOwnProperty!="function"||P.hasOwnProperty(q))&&N(P[q])},M=typeof this.useRecords=="function"&&this.useRecords,W=M?P=>{M(P)?A(P):D(P)}:A,U=P=>{let j;if(P>16777216){if(P-r>uv)throw new Error("Packed buffer would be larger than maximum buffer size");j=Math.min(uv,Math.round(Math.max((P-r)*(P>67108864?1.25:2),4194304)/4096)*4096)}else j=(Math.max(P-r<<2,R.length-1)>>12)+1<<12;let z=new Zl(j);return ye=z.dataView||(z.dataView=new DataView(z.buffer,0,j)),P=Math.min(P,R.length),R.copy?R.copy(z,0,r,P):z.set(R.slice(r,P)),T-=r,r=0,mt=z.length-10,R=z},Y=(P,j,z)=>{let L=o.nextId;L||(L=64),L=S&&(L=v),o.nextId=L+1);let H=j.highByte=L>=96&&p?L-96>>5:-1;P[to]=L,P.__keys__=j,o[L-64]=j,L=0?(R[T++]=(L&31)+96,R[T++]=H):R[T++]=L):(H>=0?(R[T++]=213,R[T++]=114,R[T++]=(L&31)+96,R[T++]=H):(R[T++]=212,R[T++]=114,R[T++]=L),z&&(y+=w*z),b.length>=c&&(b.shift()[to]=0),b.push(P),N(j))},je=(P,j,z,L)=>{let H=R,q=T,te=mt,X=r;R=Ia,T=0,r=0,R||(Ia=R=new Zl(8192)),mt=R.length-10,Y(P,j,L),Ia=R;let fe=T;if(R=H,T=q,mt=te,r=X,fe>1){let se=T+fe-1;se>mt&&U(se);let gt=z+r;R.copyWithin(gt+fe,gt+1,T),R.set(Ia.slice(0,fe),gt),T=se}else R[z+r]=Ia[0]},Qn=P=>{let j=H2(P,R,r,T,o,U,(z,L,H)=>{if(H)return i=!0;T=L;let q=R;return N(z),_(),q!==R?{position:T,targetView:ye,target:R}:T},this);if(j===0)return W(P);T=j}}useBuffer(t){R=t,ye=new DataView(R.buffer,R.byteOffset,R.byteLength),T=0}clearSharedData(){this.structures&&(this.structures=[]),this.typedStructs&&(this.typedStructs=[])}};pv=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,Ta];Hd=[{pack(e,t,n){let r=e.getTime()/1e3;if((this.useTimestamp32||e.getMilliseconds()===0)&&r>=0&&r<4294967296){let{target:i,targetView:o,position:a}=t(6);i[a++]=214,i[a++]=255,o.setUint32(a,r)}else if(r>0&&r<4294967296){let{target:i,targetView:o,position:a}=t(10);i[a++]=215,i[a++]=255,o.setUint32(a,e.getMilliseconds()*4e6+(r/1e3/4294967296>>0)),o.setUint32(a+4,r)}else if(isNaN(r)){if(this.onInvalidDate)return t(0),n(this.onInvalidDate());let{target:i,targetView:o,position:a}=t(3);i[a++]=212,i[a++]=255,i[a++]=255}else{let{target:i,targetView:o,position:a}=t(15);i[a++]=199,i[a++]=12,i[a++]=255,o.setUint32(a,e.getMilliseconds()*1e6),o.setBigInt64(a+4,BigInt(Math.floor(r)))}}},{pack(e,t,n){if(this.setAsEmptyObject)return t(0),n({});let r=Array.from(e),{target:i,position:o}=t(this.moreTypes?3:0);this.moreTypes&&(i[o++]=212,i[o++]=115,i[o++]=0),n(r)}},{pack(e,t,n){let{target:r,position:i}=t(this.moreTypes?3:0);this.moreTypes&&(r[i++]=212,r[i++]=101,r[i++]=0),n([e.name,e.message,e.cause])}},{pack(e,t,n){let{target:r,position:i}=t(this.moreTypes?3:0);this.moreTypes&&(r[i++]=212,r[i++]=120,r[i++]=0),n([e.source,e.flags])}},{pack(e,t){this.moreTypes?fv(e,16,t):cv(Ql?k.from(e):new Uint8Array(e),t)}},{pack(e,t){let n=e.constructor;n!==mv&&this.moreTypes?fv(e,$d.indexOf(n.name),t):cv(e,t)}},{pack(e,t){let{target:n,position:r}=t(1);n[r]=193}}];function fv(e,t,n,r){let i=e.byteLength;if(i+1<256){var{target:o,position:a}=n(4+i);o[a++]=199,o[a++]=i+1}else if(i+1<65536){var{target:o,position:a}=n(5+i);o[a++]=200,o[a++]=i+1>>8,o[a++]=i+1&255}else{var{target:o,position:a,targetView:s}=n(7+i);o[a++]=201,s.setUint32(a,i+1),a+=4}o[a++]=116,o[a++]=t,e.buffer||(e=new Uint8Array(e)),o.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a)}function cv(e,t){let n=e.byteLength;var r,i;if(n<256){var{target:r,position:i}=t(n+2);r[i++]=196,r[i++]=n}else if(n<65536){var{target:r,position:i}=t(n+3);r[i++]=197,r[i++]=n>>8,r[i++]=n&255}else{var{target:r,position:i,targetView:o}=t(n+5);r[i++]=198,o.setUint32(i,n),i+=4}r.set(e,i)}function Y2(e,t,n,r){let i=e.length;switch(i){case 1:t[n++]=212;break;case 2:t[n++]=213;break;case 4:t[n++]=214;break;case 8:t[n++]=215;break;case 16:t[n++]=216;break;default:i<256?(t[n++]=199,t[n++]=i):i<65536?(t[n++]=200,t[n++]=i>>8,t[n++]=i&255):(t[n++]=201,t[n++]=i>>24,t[n++]=i>>16&255,t[n++]=i>>8&255,t[n++]=i&255)}return t[n++]=r,t.set(e,n),n+=i,n}function G2(e,t){let n,r=t.length*6,i=e.length-r;for(;n=t.pop();){let o=n.offset,a=n.id;e.copyWithin(o+r,o,i),r-=6;let s=o+r;e[s++]=214,e[s++]=105,e[s++]=a>>24,e[s++]=a>>16&255,e[s++]=a>>8&255,e[s++]=a&255,i=o}return e}function dv(e,t,n){if(Ie.length>0){ye.setUint32(Ie.position+e,T+n-Ie.position-e),Ie.stringsPosition=T-e;let r=Ie;Ie=null,t(r[0]),t(r[1])}}function Z2(e,t){return e.isCompatible=n=>{let r=!n||(t.lastNamedStructuresLength||0)===n.length;return r||t._mergeStructures(n),r},e}var hv=new oi({useRecords:!1}),q2=hv.pack,Q2=hv.pack;var{NEVER:K2,ALWAYS:X2,DECIMAL_ROUND:J2,DECIMAL_FIT:eE}=Gl,gv=512,tE=1024,nE=2048;m();g();h();m();g();h();m();g();h();var At=window;m();g();h();m();g();h();function Vd(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Yd(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=Vd(n);return(i,o)=>r.then(a=>o(a.transaction(t,i).objectStore(t)))}var Wd;function yv(){return Wd||(Wd=Yd("keyval-store","keyval")),Wd}function Gd(e,t=yv()){return t("readonly",n=>Vd(n.get(e)))}function Kl(e,t,n=yv()){return n("readwrite",r=>(r.put(t,e),Vd(r.transaction)))}var Or=async(e,t)=>{let n=B.comp;for(let i of e)i&&i.type!=="text"&&Xl(i,t);let r=Object.keys(n.pending);if(r.length>0)try{let i=await(await fetch(B.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...r]})})).json();for(let[o,a]of Object.entries(i))delete n.pending[o],n.list[o]=a,await Kl(`comp-${o}`,a);if(Object.keys(n.pending).length>0){console.error(`Warning: component not found: ${Object.keys(n.pending)}`);return}await Or(Object.values(i))}catch(i){console.error(i)}},Xl=(e,t)=>{let n=B.comp;if(e.type==="item"){let r=e.component?.id;if(r){if(!n.list[r]&&!n.pending[r]&&(n.pending[r]=[]),n.pending[r]&&(n.pending[r].find(i=>i.id===e.id)||n.pending[r].push(e)),n.pending[r]&&n.list[r]){for(let i of n.pending[r])for(let o of Object.values(i.component?.props||{}))o.content&&Xl(o.content,t);delete n.pending[r]}if(e.component?.props)for(let i of Object.values(e.component?.props||{}))i.content&&Xl(i.content,t)}}if(e.childs)for(let r of e.childs){let i=r;i&&i.type!=="text"&&Xl(i,t)}};m();g();h();m();g();h();var no={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Jl(e={}){let t={options:e,rootNode:wv(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)vv(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>rE(t,n(r)),insert:(r,i)=>vv(t,n(r),i),remove:r=>iE(t,n(r))}}function rE(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),i={},o=!1,a=null,s=e.rootNode,u=null;for(let f=0;f1){let c=r.length-f;s=s.placeholderChildren.find(p=>p.maxDepth===c)||null}else s=s.placeholderChildren[0]||null;if(!s)break;s.paramName&&(i[s.paramName]=l),o=!0}else s=d}return(s===null||s.data===null)&&a!==null&&(s=a,i[s.paramName||"_"]=u,o=!0),s?o?{...s.data,params:o?i:void 0}:s.data:null}function vv(e,t,n){let r=!0,i=t.split("/"),o=e.rootNode,a=0,s=[o];for(let u of i){let f;if(f=o.children.get(u))o=f;else{let l=oE(u);f=wv({type:l,parent:o}),o.children.set(u,f),l===no.PLACEHOLDER?(f.paramName=u==="*"?`_${a++}`:u.slice(1),o.placeholderChildren.push(f),r=!1):l===no.WILDCARD&&(o.wildcardChildNode=f,f.paramName=u.slice(3)||"_",r=!1),s.push(f),o=f}}for(let[u,f]of s.entries())f.maxDepth=Math.max(s.length-u,f.maxDepth||0);return o.data=n,r===!0&&(e.staticRoutesMap[t]=o),o}function iE(e,t){let n=!1,r=t.split("/"),i=e.rootNode;for(let o of r)if(i=i.children.get(o),!i)return n;if(i.data){let o=r.at(-1)||"";i.data=null,Object.keys(i.children).length===0&&i.parent&&(i.parent.children.delete(o),i.parent.wildcardChildNode=null,i.parent.placeholderChildren=[]),n=!0}return n}function wv(e={}){return{type:e.type||no.NORMAL,maxDepth:0,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildren:[]}}function oE(e){return e.startsWith("**")?no.WILDCARD:e[0]===":"||e==="*"?no.PLACEHOLDER:no.NORMAL}m();g();h();m();g();h();m();g();h();m();g();h();m();g();h();m();g();h();function Pa(e,t){return function(){return e.apply(t,arguments)}}var{toString:aE}=Object.prototype,{getPrototypeOf:Qd}=Object,tu=(e=>t=>{let n=aE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>tu(t)===e),nu=e=>t=>typeof t===e,{isArray:ro}=Array,Na=nu("undefined");function sE(e){return e!==null&&!Na(e)&&e.constructor!==null&&!Na(e.constructor)&&Gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Sv=sn("ArrayBuffer");function lE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sv(e.buffer),t}var uE=nu("string"),Gt=nu("function"),kv=nu("number"),ru=e=>e!==null&&typeof e=="object",fE=e=>e===!0||e===!1,eu=e=>{if(tu(e)!=="object")return!1;let t=Qd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cE=sn("Date"),dE=sn("File"),pE=sn("Blob"),mE=sn("FileList"),hE=e=>ru(e)&&Gt(e.pipe),gE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gt(e.append)&&((t=tu(e))==="formdata"||t==="object"&&Gt(e.toString)&&e.toString()==="[object FormData]"))},yE=sn("URLSearchParams"),[vE,wE,_E,xE]=["ReadableStream","Request","Response","Headers"].map(sn),SE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Aa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ro(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Ev=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ov=e=>!Na(e)&&e!==Ev;function qd(){let{caseless:e}=Ov(this)&&this||{},t={},n=(r,i)=>{let o=e&&bv(t,i)||i;eu(t[o])&&eu(r)?t[o]=qd(t[o],r):eu(r)?t[o]=qd({},r):ro(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Aa(t,(i,o)=>{n&&Gt(i)?e[o]=Pa(i,n):e[o]=i},{allOwnKeys:r}),e),bE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),EE=(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)},OE=(e,t,n,r)=>{let i,o,a,s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Qd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},CE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},TE=e=>{if(!e)return null;if(ro(e))return e;let t=e.length;if(!kv(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qd(Uint8Array)),IE=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),i;for(;(i=r.next())&&!i.done;){let o=i.value;t.call(e,o[0],o[1])}},PE=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},NE=sn("HTMLFormElement"),AE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_v=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),DE=sn("RegExp"),Cv=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Aa(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},ME=e=>{Cv(e,(t,n)=>{if(Gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(Gt(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+"'")})}})},LE=(e,t)=>{let n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ro(e)?r(e):r(String(e).split(t)),n},UE=()=>{},FE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Zd="abcdefghijklmnopqrstuvwxyz",xv="0123456789",Tv={DIGIT:xv,ALPHA:Zd,ALPHA_DIGIT:Zd+Zd.toUpperCase()+xv},jE=(e=16,t=Tv.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zE(e){return!!(e&&Gt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var BE=e=>{let t=new Array(10),n=(r,i)=>{if(ru(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;let o=ro(r)?[]:{};return Aa(r,(a,s)=>{let u=n(a,i+1);!Na(u)&&(o[s]=u)}),t[i]=void 0,o}}return r};return n(e,0)},$E=sn("AsyncFunction"),HE=e=>e&&(ru(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),I={isArray:ro,isArrayBuffer:Sv,isBuffer:sE,isFormData:gE,isArrayBufferView:lE,isString:uE,isNumber:kv,isBoolean:fE,isObject:ru,isPlainObject:eu,isReadableStream:vE,isRequest:wE,isResponse:_E,isHeaders:xE,isUndefined:Na,isDate:cE,isFile:dE,isBlob:pE,isRegExp:DE,isFunction:Gt,isStream:hE,isURLSearchParams:yE,isTypedArray:RE,isFileList:mE,forEach:Aa,merge:qd,extend:kE,trim:SE,stripBOM:bE,inherits:EE,toFlatObject:OE,kindOf:tu,kindOfTest:sn,endsWith:CE,toArray:TE,forEachEntry:IE,matchAll:PE,isHTMLForm:NE,hasOwnProperty:_v,hasOwnProp:_v,reduceDescriptors:Cv,freezeMethods:ME,toObjectSet:LE,toCamelCase:AE,noop:UE,toFiniteNumber:FE,findKey:bv,global:Ev,isContextDefined:Ov,ALPHABET:Tv,generateString:jE,isSpecCompliantForm:zE,toJSONObject:BE,isAsyncFn:$E,isThenable:HE};m();g();h();m();g();h();m();g();h();m();g();h();m();g();h();function io(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)}I.inherits(io,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:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Rv=io.prototype,Iv={};["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=>{Iv[e]={value:e}});Object.defineProperties(io,Iv);Object.defineProperty(Rv,"isAxiosError",{value:!0});io.from=(e,t,n,r,i,o)=>{let a=Object.create(Rv);return I.toFlatObject(e,a,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),io.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var Q=io;m();g();h();var iu=null;function Kd(e){return I.isPlainObject(e)||I.isArray(e)}function Nv(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Pv(e,t,n){return e?e.concat(t).map(function(i,o){return i=Nv(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function WE(e){return I.isArray(e)&&!e.some(Kd)}var VE=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function YE(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new(iu||FormData),n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,b){return!I.isUndefined(b[S])});let r=n.metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(!u&&I.isBlob(v))throw new Q("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):k.from(v):v}function l(v,S,b){let y=v;if(v&&!b&&typeof v=="object"){if(I.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&WE(v)||(I.isFileList(v)||I.endsWith(S,"[]"))&&(y=I.toArray(v)))return S=Nv(S),y.forEach(function(_,x){!(I.isUndefined(_)||_===null)&&t.append(a===!0?Pv([S],x,o):a===null?S:S+"[]",f(_))}),!1}return Kd(v)?!0:(t.append(Pv(b,S,o),f(v)),!1)}let d=[],c=Object.assign(VE,{defaultVisitor:l,convertValue:f,isVisitable:Kd});function p(v,S){if(!I.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));d.push(v),I.forEach(v,function(y,w){(!(I.isUndefined(y)||y===null)&&i.call(t,y,I.isString(w)?w.trim():w,S,c))===!0&&p(y,S?S.concat(w):[w])}),d.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return p(e),t}var Cr=YE;function Av(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dv(e,t){this._pairs=[],e&&Cr(e,this,t)}var Mv=Dv.prototype;Mv.append=function(t,n){this._pairs.push([t,n])};Mv.toString=function(t){let n=t?function(r){return t.call(this,r,Av)}:Av;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};var ou=Dv;function GE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Da(e,t,n){if(!t)return e;let r=n&&n.encode||GE,i=n&&n.serialize,o;if(i?o=i(t,n):o=I.isURLSearchParams(t)?t.toString():new ou(t,n).toString(r),o){let a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}m();g();h();var Xd=class{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){I.forEach(this.handlers,function(r){r!==null&&t(r)})}},Jd=Xd;m();g();h();m();g();h();m();g();h();m();g();h();var au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};m();g();h();m();g();h();m();g();h();m();g();h();var Lv=typeof URLSearchParams<"u"?URLSearchParams:ou;m();g();h();var Uv=typeof FormData<"u"?FormData:null;m();g();h();var Fv=typeof Blob<"u"?Blob:null;var jv={isBrowser:!0,classes:{URLSearchParams:Lv,FormData:Uv,Blob:Fv},protocols:["http","https","file","blob","url","data"]};var tp={};lS(tp,{hasBrowserEnv:()=>ep,hasStandardBrowserEnv:()=>ZE,hasStandardBrowserWebWorkerEnv:()=>qE,origin:()=>QE});m();g();h();var ep=typeof window<"u"&&typeof document<"u",ZE=(e=>ep&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),qE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QE=ep&&window.location.href||"http://localhost";var Ze={...tp,...jv};function np(e,t){return Cr(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Ze.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}m();g();h();function KE(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XE(e){let t={},n=Object.keys(e),r,i=n.length,o;for(r=0;r=n.length;return a=!a&&I.isArray(i)?i.length:a,u?(I.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!I.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&I.isArray(i[a])&&(i[a]=XE(i[a])),!s)}if(I.isFormData(e)&&I.isFunction(e.entries)){let n={};return I.forEachEntry(e,(r,i)=>{t(KE(r),i,n,0)}),n}return null}var su=JE;function eO(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var rp={transitional:au,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=I.isObject(t);if(o&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(su(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return np(t,this.formSerializer).toString();if((s=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){let u=this.env&&this.env.FormData;return Cr(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),eO(t)):t}],transformResponse:[function(t){let n=this.transitional||rp.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||i)){let a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)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:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{rp.headers[e]={}});var oo=rp;m();g();h();m();g();h();var tO=I.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"]),zv=e=>{let t={},n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&tO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var Bv=Symbol("internals");function Ma(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:I.isArray(e)?e.map(lu):String(e)}function nO(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var rO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ip(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function iO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oO(e,t){let n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}var ao=class{constructor(t){t&&this.set(t)}set(t,n,r){let i=this;function o(s,u,f){let l=Ma(u);if(!l)throw new Error("header name must be a non-empty string");let d=I.findKey(i,l);(!d||i[d]===void 0||f===!0||f===void 0&&i[d]!==!1)&&(i[d||u]=lu(s))}let a=(s,u)=>I.forEach(s,(f,l)=>o(f,l,u));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(I.isString(t)&&(t=t.trim())&&!rO(t))a(zv(t),n);else if(I.isHeaders(t))for(let[s,u]of t.entries())o(u,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ma(t),t){let r=I.findKey(this,t);if(r){let i=this[r];if(!n)return i;if(n===!0)return nO(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ma(t),t){let r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ip(this,this[r],r,n)))}return!1}delete(t,n){let r=this,i=!1;function o(a){if(a=Ma(a),a){let s=I.findKey(r,a);s&&(!n||ip(r,r[s],s,n))&&(delete r[s],i=!0)}}return I.isArray(t)?t.forEach(o):o(t),i}clear(t){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let o=n[r];(!t||ip(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){let n=this,r={};return I.forEach(this,(i,o)=>{let a=I.findKey(r,o);if(a){n[a]=lu(i),delete n[o];return}let s=t?iO(o):String(o).trim();s!==o&&delete n[o],n[s]=lu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.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){let r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){let r=(this[Bv]=this[Bv]={accessors:{}}).accessors,i=this.prototype;function o(a){let s=Ma(a);r[s]||(oO(i,a),r[s]=!0)}return I.isArray(t)?t.forEach(o):o(t),this}};ao.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(ao.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(ao);var $e=ao;function La(e,t){let n=this||oo,r=t||n,i=$e.from(r.headers),o=r.data;return I.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}m();g();h();function Ua(e){return!!(e&&e.__CANCEL__)}m();g();h();function $v(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits($v,Q,{__CANCEL__:!0});var vn=$v;m();g();h();m();g();h();m();g();h();function Fa(e,t,n){let 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))}m();g();h();function op(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}m();g();h();m();g();h();function aO(e,t){e=e||10;let n=new Array(e),r=new Array(e),i=0,o=0,a;return t=t!==void 0?t:1e3,function(u){let f=Date.now(),l=r[o];a||(a=f),n[i]=u,r[i]=f;let d=o,c=0;for(;d!==i;)c+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-ar)return i&&(clearTimeout(i),i=null),n=s,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}var Wv=sO;var so=(e,t,n=3)=>{let r=0,i=Hv(50,250);return Wv(o=>{let a=o.loaded,s=o.lengthComputable?o.total:void 0,u=a-r,f=i(u),l=a<=s;r=a;let d={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s&&l?(s-a)/f:void 0,event:o,lengthComputable:s!=null};d[t?"download":"upload"]=!0,e(d)},n)};m();g();h();m();g();h();var Vv=Ze.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){let s=I.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();m();g();h();var Yv=Ze.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){let 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(){}};m();g();h();m();g();h();function ap(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}m();g();h();function sp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ja(e,t){return e&&!ap(t)?sp(e,t):t}m();g();h();var Gv=e=>e instanceof $e?{...e}:e;function ln(e,t){t=t||{};let n={};function r(f,l,d){return I.isPlainObject(f)&&I.isPlainObject(l)?I.merge.call({caseless:d},f,l):I.isPlainObject(l)?I.merge({},l):I.isArray(l)?l.slice():l}function i(f,l,d){if(I.isUndefined(l)){if(!I.isUndefined(f))return r(void 0,f,d)}else return r(f,l,d)}function o(f,l){if(!I.isUndefined(l))return r(void 0,l)}function a(f,l){if(I.isUndefined(l)){if(!I.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function s(f,l,d){if(d in t)return r(f,l);if(d in e)return r(void 0,f)}let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(f,l)=>i(Gv(f),Gv(l),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(l){let d=u[l]||i,c=d(e[l],t[l],l);I.isUndefined(c)&&d!==s||(n[l]=c)}),n}var uu=e=>{let t=ln({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=$e.from(a),t.url=Da(ja(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(I.isFormData(n)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){let[f,...l]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...l].join("; "))}}if(Ze.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&Vv(t.url))){let f=i&&o&&Yv.read(o);f&&a.set(i,f)}return t};var lO=typeof XMLHttpRequest<"u",Zv=lO&&function(e){return new Promise(function(n,r){let i=uu(e),o=i.data,a=$e.from(i.headers).normalize(),{responseType:s}=i,u;function f(){i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let l=new XMLHttpRequest;l.open(i.method.toUpperCase(),i.url,!0),l.timeout=i.timeout;function d(){if(!l)return;let p=$e.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};Fa(function(y){n(y),f()},function(y){r(y),f()},S),l=null}"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new Q("Request aborted",Q.ECONNABORTED,i,l)),l=null)},l.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,i,l)),l=null},l.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",S=i.transitional||au;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Q(v,S.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,i,l)),l=null},o===void 0&&a.setContentType(null),"setRequestHeader"in l&&I.forEach(a.toJSON(),function(v,S){l.setRequestHeader(S,v)}),I.isUndefined(i.withCredentials)||(l.withCredentials=!!i.withCredentials),s&&s!=="json"&&(l.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&l.addEventListener("progress",so(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",so(i.onUploadProgress)),(i.cancelToken||i.signal)&&(u=p=>{l&&(r(!p||p.type?new vn(null,e,l):p),l.abort(),l=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));let c=op(i.url);if(c&&Ze.protocols.indexOf(c)===-1){r(new Q("Unsupported protocol "+c+":",Q.ERR_BAD_REQUEST,e));return}l.send(o||null)})};m();g();h();m();g();h();var uO=(e,t)=>{let n=new AbortController,r,i=function(u){if(!r){r=!0,a();let f=u instanceof Error?u:this.reason;n.abort(f instanceof Q?f:new vn(f instanceof Error?f.message:f))}},o=t&&setTimeout(()=>{i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",i):u.unsubscribe(i))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},qv=uO;m();g();h();var fO=function*(e,t){let n=e.byteLength;if(!t||n{let o=cO(e,t,i),a=0;return new ReadableStream({type:"bytes",async pull(s){let{done:u,value:f}=await o.next();if(u){s.close(),r();return}let l=f.byteLength;n&&n(a+=l),s.enqueue(new Uint8Array(f))},cancel(s){return r(s),o.return()}},{highWaterMark:2})};var Qv=(e,t)=>{let n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},cu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xv=cu&&typeof ReadableStream=="function",up=cu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),dO=Xv&&(()=>{let e=!1,t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Kv=64*1024,fp=Xv&&!!(()=>{try{return I.isReadableStream(new Response("").body)}catch{}})(),fu={stream:fp&&(e=>e.body)};cu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fu[t]&&(fu[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);var pO=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(I.isArrayBufferView(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await up(e)).byteLength},mO=async(e,t)=>{let n=I.toFiniteNumber(e.getContentLength());return n??pO(t)},Jv=cu&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:f,headers:l,withCredentials:d="same-origin",fetchOptions:c}=uu(e);f=f?(f+"").toLowerCase():"text";let[p,v]=i||o||a?qv([i,o],a):[],S,b,y=()=>{!S&&setTimeout(()=>{p&&p.unsubscribe()}),S=!0},w;try{if(u&&dO&&n!=="get"&&n!=="head"&&(w=await mO(l,r))!==0){let D=new Request(t,{method:"POST",body:r,duplex:"half"}),A;I.isFormData(r)&&(A=D.headers.get("content-type"))&&l.setContentType(A),D.body&&(r=lp(D.body,Kv,Qv(w,so(u)),null,up))}I.isString(d)||(d=d?"cors":"omit"),b=new Request(t,{...c,signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let _=await fetch(b),x=fp&&(f==="stream"||f==="response");if(fp&&(s||x)){let D={};["status","statusText","headers"].forEach(M=>{D[M]=_[M]});let A=I.toFiniteNumber(_.headers.get("content-length"));_=new Response(lp(_.body,Kv,s&&Qv(A,so(s,!0)),x&&y,up),D)}f=f||"text";let N=await fu[I.findKey(fu,f)||"text"](_,e);return!x&&y(),v&&v(),await new Promise((D,A)=>{Fa(D,A,{data:N,headers:$e.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:b})})}catch(_){throw y(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,b),{cause:_.cause||_}):Q.from(_,_&&_.code,e,b)}});var cp={http:iu,xhr:Zv,fetch:Jv};I.forEach(cp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var ew=e=>`- ${e}`,hO=e=>I.isFunction(e)||e===null||e===!1,du={getAdapter:e=>{e=I.isArray(e)?e:[e];let{length:t}=e,n,r,i={};for(let o=0;o`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build")),a=t?o.length>1?`since : `+o.map(ew).join(` `):" "+ew(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:cp};function dp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vn(null,e)}function pu(e){return dp(e),e.headers=$e.from(e.headers),e.data=La.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),du.getAdapter(e.adapter||oo.adapter)(e).then(function(r){return dp(e),r.data=La.call(e,e.transformResponse,r),r.headers=$e.from(r.headers),r},function(r){return Ua(r)||(dp(e),r&&r.response&&(r.response.data=La.call(e,e.transformResponse,r.response),r.response.headers=$e.from(r.response.headers))),Promise.reject(r)})}m();g();h();m();g();h();var mu="1.7.2";var pp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var tw={};pp.transitional=function(t,n,r){function i(o,a){return"[Axios v"+mu+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Q(i(a," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!tw[a]&&(tw[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function gO(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new Q("option "+o+" must be "+u,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}var hu={assertOptions:gO,validators:pp};var Tr=hu.validators,lo=class{constructor(t){this.defaults=t,this.interceptors={request:new Jd,response:new Jd}}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;let o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ln(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&hu.assertOptions(r,{silentJSONParsing:Tr.transitional(Tr.boolean),forcedJSONParsing:Tr.transitional(Tr.boolean),clarifyTimeoutError:Tr.transitional(Tr.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:hu.assertOptions(i,{encode:Tr.function,serialize:Tr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&I.merge(o.common,o[n.method]);o&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=$e.concat(a,o);let s=[],u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,s.unshift(S.fulfilled,S.rejected))});let f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let l,d=0,c;if(!u){let v=[pu.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),c=v.length,l=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o,a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new vn(o,a,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;let n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(i){t=i}),cancel:t}}},nw=mp;m();g();h();function hp(e){return function(n){return e.apply(null,n)}}m();g();h();function gp(e){return I.isObject(e)&&e.isAxiosError===!0}m();g();h();var yp={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(yp).forEach(([e,t])=>{yp[t]=e});var rw=yp;function iw(e){let t=new za(e),n=Pa(za.prototype.request,t);return I.extend(n,za.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return iw(ln(e,i))},n}var Fe=iw(oo);Fe.Axios=za;Fe.CanceledError=vn;Fe.CancelToken=nw;Fe.isCancel=Ua;Fe.VERSION=mu;Fe.toFormData=Cr;Fe.AxiosError=Q;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=hp;Fe.isAxiosError=gp;Fe.mergeConfig=ln;Fe.AxiosHeaders=$e;Fe.formToJSON=e=>su(I.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=du.getAdapter;Fe.HttpStatusCode=rw;Fe.default=Fe;var gu=Fe;var{Axios:Dz,AxiosError:Mz,CanceledError:Lz,isCancel:Uz,CancelToken:Fz,VERSION:jz,all:zz,Cancel:Bz,isAxiosError:$z,spread:Hz,toFormData:Wz,AxiosHeaders:Vz,HttpStatusCode:Yz,formToJSON:Gz,getAdapter:Zz,mergeConfig:qz}=gu;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var yO=typeof window<"u"?window:null,ow=typeof global<"u"?global:void 0,yu=async(e,t,n,r)=>{let i={...n},o=null,a=!1,s=null,u=[];if(Array.isArray(t))for(let c of t)c instanceof File&&(u.push(c),a=!0),typeof c=="function"&&(s=c);else t instanceof File&&(a=!0,u.push(t));if(!a)o=JSON.stringify(t),i["content-type"]="aplication/json";else{let c=new FormData;for(let p of u)c.append(p.name,p);o=c,delete i["content-type"],i.enctype="multipart/form-data;"}let f=new URL(e);if(yO!==null){let c=new URL(location.href),p="";if(f.host===c.host||ow&&typeof ow.server_hook=="function"?p=f.toString():p=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(f.toString())}`,p){if(s)return(await gu({method:t?"post":void 0,url:p,data:o,onUploadProgress:s})).data;{let S=await(await fetch(p,t?{method:"POST",body:o,headers:i}:void 0)).text();if(r===!1)return S;try{return JSON.parse(S,aw)}catch{return S}}}}let d=await(await fetch(f,t?{method:"POST",body:o,headers:i}:void 0)).text();try{return JSON.parse(d,aw)}catch{return d}},aw=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;m();g();h();var bw=G(kw()),Ew=async(e,t)=>{let n=(0,bw.default)(e,"/"),r=YO(n);await new Promise(i=>{let o=document,a=o.createElement("script");a.onload=async()=>{i()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let s=localStorage.getItem("api-ts-"+n),u=new URL(n),f=new URL(location.href),l="";u.host!==f.host&&(l="&remote=1"),t?a.src=`/_prasi/load.js?url=${n}&v3&dev=1&ts=${s}${l}`:a.src=`/_prasi/load.js?url=${n}&v3&ts=${s}${l}`,a.onerror=()=>{i()},document.querySelector(`script[src="${a.src}"]`)?i():o.body.appendChild(a)})},YO=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`};var Ba={},Cw=e=>{At.prasiApi||(At.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return At.prasiApi[n]||Ba[n]||(Ba[n]=Ew(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,i)=>{if(i==="_url")return(a,s)=>{let u=new URL(n);u.pathname=a.split("/").filter(d=>d).join("/");let f=new URL(location.href),l="";return u.host===f.host||s===!1?l=u.toString():l=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(u.toString())}`,l};let o=a=>function(...s){return new Promise(async(u,f)=>{try{let l=At.prasiApi[n];if(!l&&Ba&&typeof Ba[n]=="object"&&(await Ba[n],l=At.prasiApi[n]),l){if(a==="_raw"){let p=s[0],v=`${n}${p}`,S=await Ow(v,s.slice(1));u(S);return}if(l.apiEntry||(l.apiEntry={}),l.apiEntry&&!l.apiEntry[a]){f(`API ${a.toString()} not found, existing API: - ${Object.keys(l.apiEntry||{}).join(` - `)}`);return}let d=l.apiEntry[a].url,c=l.apiEntry[a].args;if(d&&c){if(s.length>0&&c.length>0)for(let[S,b]of Object.entries(s)){let y=c[parseInt(S)];c&&c.includes(y)&&b&&typeof b!="string"&&typeof b!="number"||(d=d.replace(`:${y}?`,b+""),d=d.replace(`:${y}`,b+""))}let p=`${n}${d}`,v=await Ow(p,s);u(v)}else console.error(`API Not Found: ${a.toString()}`)}else f("Failed to load API [Proxy]: "+n)}catch(l){f(l)}})};return i==="then"?new Proxy({},{get:(a,s)=>o(s)}):o(i)}})}catch{return null}},Ow=async(e,t)=>await yu(e,t,{"content-type":"application/json"});m();g();h();var K_=G(Iw());m();g();h();function ho(e){let t=e.length;for(;--t>=0;)e[t]=0}var KO=0,h_=1,XO=2,JO=3,eC=258,Wp=29,ns=256,Za=ns+1+Wp,co=30,Vp=19,g_=2*Za+1,ai=15,xp=16,tC=7,Yp=256,y_=16,v_=17,w_=18,Mp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ku=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),nC=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),__=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),rC=512,Hn=new Array((Za+2)*2);ho(Hn);var Va=new Array(co*2);ho(Va);var qa=new Array(rC);ho(qa);var Qa=new Array(eC-JO+1);ho(Qa);var Gp=new Array(Wp);ho(Gp);var bu=new Array(co);ho(bu);function Sp(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var x_,S_,k_;function kp(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var b_=e=>e<256?qa[e]:qa[256+(e>>>7)],Ka=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},bt=(e,t,n)=>{e.bi_valid>xp-n?(e.bi_buf|=t<>xp-e.bi_valid,e.bi_valid+=n-xp):(e.bi_buf|=t<{bt(e,n[t*2],n[t*2+1])},E_=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},iC=e=>{e.bi_valid===16?(Ka(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},oC=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,d,c,p,v,S=0;for(c=0;c<=ai;c++)e.bl_count[c]=0;for(n[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;fu&&(c=u,S++),n[l*2+1]=c,!(l>r)&&(e.bl_count[c]++,p=0,l>=s&&(p=a[l-s]),v=n[l*2],e.opt_len+=v*(c+p),o&&(e.static_len+=v*(i[l*2+1]+p)));if(S!==0){do{for(c=u-1;e.bl_count[c]===0;)c--;e.bl_count[c]--,e.bl_count[c+1]+=2,e.bl_count[u]--,S-=2}while(S>0);for(c=u;c!==0;c--)for(l=e.bl_count[c];l!==0;)d=e.heap[--f],!(d>r)&&(n[d*2+1]!==c&&(e.opt_len+=(c-n[d*2+1])*n[d*2],n[d*2+1]=c),l--)}},O_=(e,t,n)=>{let r=new Array(ai+1),i=0,o,a;for(o=1;o<=ai;o++)i=i+n[o-1]<<1,r[o]=i;for(a=0;a<=t;a++){let s=e[a*2+1];s!==0&&(e[a*2]=E_(r[s]++,s))}},aC=()=>{let e,t,n,r,i,o=new Array(ai+1);for(n=0,r=0;r>=7;r{let t;for(t=0;t{e.bi_valid>8?Ka(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Pw=(e,t,n,r)=>{let i=t*2,o=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o=0,a,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?_n(e,i,t):(a=Qa[i],_n(e,a+ns+1,t),s=Mp[a],s!==0&&(i-=Gp[a],bt(e,i,s)),r--,a=b_(r),_n(e,a,n),s=ku[a],s!==0&&(r-=bu[a],bt(e,r,s)));while(o{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,a,s,u=-1,f;for(e.heap_len=0,e.heap_max=g_,a=0;a>1;a>=1;a--)bp(e,n,a);f=o;do a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],bp(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[f*2]=n[a*2]+n[s*2],e.depth[f]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[a*2+1]=n[s*2+1]=f,e.heap[1]=f++,bp(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],oC(e,t),O_(n,u,e.bl_count)},Aw=(e,t,n)=>{let r,i=-1,o,a=t[0*2+1],s=0,u=7,f=4;for(a===0&&(u=138,f=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=a,a=t[(r+1)*2+1],!(++s{let r,i=-1,o,a=t[0*2+1],s=0,u=7,f=4;for(a===0&&(u=138,f=3),r=0;r<=n;r++)if(o=a,a=t[(r+1)*2+1],!(++s{let t;for(Aw(e,e.dyn_ltree,e.l_desc.max_code),Aw(e,e.dyn_dtree,e.d_desc.max_code),Lp(e,e.bl_desc),t=Vp-1;t>=3&&e.bl_tree[__[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},lC=(e,t,n,r)=>{let i;for(bt(e,t-257,5),bt(e,n-1,5),bt(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(n=32;n{Mw||(aC(),Mw=!0),e.l_desc=new kp(e.dyn_ltree,x_),e.d_desc=new kp(e.dyn_dtree,S_),e.bl_desc=new kp(e.bl_tree,k_),e.bi_buf=0,e.bi_valid=0,C_(e)},R_=(e,t,n,r)=>{bt(e,(KO<<1)+(r?1:0),3),T_(e),Ka(e,n),Ka(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},cC=e=>{bt(e,h_<<1,3),_n(e,Yp,Hn),iC(e)},dC=(e,t,n,r)=>{let i,o,a=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=uC(e)),Lp(e,e.l_desc),Lp(e,e.d_desc),a=sC(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?R_(e,t,n,r):e.strategy===4||o===i?(bt(e,(h_<<1)+(r?1:0),3),Nw(e,Hn,Va)):(bt(e,(XO<<1)+(r?1:0),3),lC(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Nw(e,e.dyn_ltree,e.dyn_dtree)),C_(e),r&&T_(e)},pC=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Qa[n]+ns+1)*2]++,e.dyn_dtree[b_(t)*2]++),e.sym_next===e.sym_end),mC=fC,hC=R_,gC=dC,yC=pC,vC=cC,wC={_tr_init:mC,_tr_stored_block:hC,_tr_flush_block:gC,_tr_tally:yC,_tr_align:vC},_C=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,a=0;for(;n!==0;){a=n>2e3?2e3:n,n-=a;do i=i+t[r++]|0,o=o+i|0;while(--a);i%=65521,o%=65521}return i|o<<16|0},Xa=_C,xC=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},SC=new Uint32Array(xC()),kC=(e,t,n,r)=>{let i=SC,o=r+n;e^=-1;for(let a=r;a>>8^i[(e^t[a])&255];return e^-1},qe=kC,ui={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},di={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:bC,_tr_stored_block:Up,_tr_flush_block:EC,_tr_tally:Pr,_tr_align:OC}=wC,{Z_NO_FLUSH:Nr,Z_PARTIAL_FLUSH:CC,Z_FULL_FLUSH:TC,Z_FINISH:Zt,Z_BLOCK:Lw,Z_OK:et,Z_STREAM_END:Uw,Z_STREAM_ERROR:xn,Z_DATA_ERROR:RC,Z_BUF_ERROR:Ep,Z_DEFAULT_COMPRESSION:IC,Z_FILTERED:PC,Z_HUFFMAN_ONLY:vu,Z_RLE:NC,Z_FIXED:AC,Z_DEFAULT_STRATEGY:DC,Z_UNKNOWN:MC,Z_DEFLATED:Cu}=di,LC=9,UC=15,FC=8,jC=29,zC=256,Fp=zC+1+jC,BC=30,$C=19,HC=2*Fp+1,WC=15,ae=3,Ir=258,Sn=Ir+ae+1,VC=32,po=42,Zp=57,jp=69,zp=73,Bp=91,$p=103,si=113,Ha=666,ht=1,go=2,fi=3,yo=4,YC=3,li=(e,t)=>(e.msg=ui[t],t),Fw=e=>e*2-(e>4?9:0),Rr=e=>{let t=e.length;for(;--t>=0;)e[t]=0},GC=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},ZC=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},Mt=(e,t)=>{EC(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Dt(e.strm)},de=(e,t)=>{e.pending_buf[e.pending++]=t},$a=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Hp=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Xa(e.adler,t,i,n):e.state.wrap===2&&(e.adler=qe(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},I_=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,a=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-Sn?e.strstart-(e.w_size-Sn):0,f=e.window,l=e.w_mask,d=e.prev,c=e.strstart+Ir,p=f[r+a-1],v=f[r+a];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(f[i+a]!==v||f[i+a-1]!==p||f[i]!==f[r]||f[++i]!==f[r+1])){r+=2,i++;do;while(f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&ra){if(e.match_start=t,a=o,o>=s)break;p=f[r+a-1],v=f[r+a]}}while((t=d[t&l])>u&&--n!==0);return a<=e.lookahead?a:e.lookahead},mo=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Sn)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),GC(e),r+=t),e.strm.avail_in===0)break;if(n=Hp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=ae)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ar(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ar(e,e.ins_h,e.window[i+ae-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,a=0,s=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Dt(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Hp(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(a===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Hp(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===Zt)&&t!==Nr&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,a=t===Zt&&e.strm.avail_in===0&&r===i?1:0,Up(e,e.block_start,r,a),e.block_start+=r,Dt(e.strm)),a?fi:ht)},Op=(e,t)=>{let n,r;for(;;){if(e.lookahead=ae&&(e.ins_h=Ar(e,e.ins_h,e.window[e.strstart+ae-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Sn&&(e.match_length=I_(e,n)),e.match_length>=ae)if(r=Pr(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do e.strstart++,e.ins_h=Ar(e,e.ins_h,e.window[e.strstart+ae-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ar(e,e.ins_h,e.window[e.strstart+1]);else r=Pr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Mt(e,!1),e.strm.avail_out===0))return ht}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=ae&&(e.ins_h=Ar(e,e.ins_h,e.window[e.strstart+ae-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ae-1,n!==0&&e.prev_length4096)&&(e.match_length=ae-1)),e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,r=Pr(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ar(e,e.ins_h,e.window[e.strstart+ae-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ae-1,e.strstart++,r&&(Mt(e,!1),e.strm.avail_out===0))return ht}else if(e.match_available){if(r=Pr(e,0,e.window[e.strstart-1]),r&&Mt(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ht}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Pr(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,o,a=e.window;for(;;){if(e.lookahead<=Ir){if(mo(e),e.lookahead<=Ir&&t===Nr)return ht;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+Ir;do;while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ae?(n=Pr(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Pr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Mt(e,!1),e.strm.avail_out===0))return ht}return e.insert=0,t===Zt?(Mt(e,!0),e.strm.avail_out===0?fi:yo):e.sym_next&&(Mt(e,!1),e.strm.avail_out===0)?ht:go},QC=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(mo(e),e.lookahead===0)){if(t===Nr)return ht;break}if(e.match_length=0,n=Pr(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Mt(e,!1),e.strm.avail_out===0))return ht}return e.insert=0,t===Zt?(Mt(e,!0),e.strm.avail_out===0?fi:yo):e.sym_next&&(Mt(e,!1),e.strm.avail_out===0)?ht:go};function wn(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Wa=[new wn(0,0,0,0,P_),new wn(4,4,8,4,Op),new wn(4,5,16,8,Op),new wn(4,6,32,32,Op),new wn(4,4,16,16,uo),new wn(8,16,32,32,uo),new wn(8,16,128,128,uo),new wn(8,32,128,256,uo),new wn(32,128,258,1024,uo),new wn(32,258,258,4096,uo)],KC=e=>{e.window_size=2*e.w_size,Rr(e.head),e.max_lazy_match=Wa[e.level].max_lazy,e.good_match=Wa[e.level].good_length,e.nice_match=Wa[e.level].nice_length,e.max_chain_length=Wa[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0};function XC(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Cu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(HC*2),this.dyn_dtree=new Uint16Array((2*BC+1)*2),this.bl_tree=new Uint16Array((2*$C+1)*2),Rr(this.dyn_ltree),Rr(this.dyn_dtree),Rr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(WC+1),this.heap=new Uint16Array(2*Fp+1),Rr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Fp+1),Rr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var rs=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==po&&t.status!==Zp&&t.status!==jp&&t.status!==zp&&t.status!==Bp&&t.status!==$p&&t.status!==si&&t.status!==Ha?1:0},N_=e=>{if(rs(e))return li(e,xn);e.total_in=e.total_out=0,e.data_type=MC;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Zp:t.wrap?po:si,e.adler=t.wrap===2?0:1,t.last_flush=-2,bC(t),et},A_=e=>{let t=N_(e);return t===et&&KC(e.state),t},JC=(e,t)=>rs(e)||e.state.wrap!==2?xn:(e.state.gzhead=t,et),D_=(e,t,n,r,i,o)=>{if(!e)return xn;let a=1;if(t===IC&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>LC||n!==Cu||r<8||r>15||t<0||t>9||o<0||o>AC||r===8&&a!==1)return li(e,xn);r===8&&(r=9);let s=new XC;return e.state=s,s.strm=e,s.status=po,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<D_(e,t,Cu,UC,FC,DC),tT=(e,t)=>{if(rs(e)||t>Lw||t<0)return e?li(e,xn):xn;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Ha&&t!==Zt)return li(e,e.avail_out===0?Ep:xn);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Dt(e),e.avail_out===0)return n.last_flush=-1,et}else if(e.avail_in===0&&Fw(t)<=Fw(r)&&t!==Zt)return li(e,Ep);if(n.status===Ha&&e.avail_in!==0)return li(e,Ep);if(n.status===po&&n.wrap===0&&(n.status=si),n.status===po){let i=Cu+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=vu||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=VC),i+=31-i%31,$a(n,i),n.strstart!==0&&($a(n,e.adler>>>16),$a(n,e.adler&65535)),e.adler=1,n.status=si,Dt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===Zp){if(e.adler=0,de(n,31),de(n,139),de(n,8),n.gzhead)de(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),de(n,n.gzhead.time&255),de(n,n.gzhead.time>>8&255),de(n,n.gzhead.time>>16&255),de(n,n.gzhead.time>>24&255),de(n,n.level===9?2:n.strategy>=vu||n.level<2?4:0),de(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(de(n,n.gzhead.extra.length&255),de(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=qe(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=jp;else if(de(n,0),de(n,0),de(n,0),de(n,0),de(n,0),de(n,n.level===9?2:n.strategy>=vu||n.level<2?4:0),de(n,YC),n.status=si,Dt(e),n.pending!==0)return n.last_flush=-1,et}if(n.status===jp){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=s,Dt(e),n.pending!==0)return n.last_flush=-1,et;i=0,o-=s}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=zp}if(n.status===zp){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i)),Dt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Bp}if(n.status===Bp){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i)),Dt(e),n.pending!==0)return n.last_flush=-1,et;i=0}n.gzindexi&&(e.adler=qe(e.adler,n.pending_buf,n.pending-i,i))}n.status=$p}if(n.status===$p){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Dt(e),n.pending!==0))return n.last_flush=-1,et;de(n,e.adler&255),de(n,e.adler>>8&255),e.adler=0}if(n.status=si,Dt(e),n.pending!==0)return n.last_flush=-1,et}if(e.avail_in!==0||n.lookahead!==0||t!==Nr&&n.status!==Ha){let i=n.level===0?P_(n,t):n.strategy===vu?QC(n,t):n.strategy===NC?qC(n,t):Wa[n.level].func(n,t);if((i===fi||i===yo)&&(n.status=Ha),i===ht||i===fi)return e.avail_out===0&&(n.last_flush=-1),et;if(i===go&&(t===CC?OC(n):t!==Lw&&(Up(n,0,0,!1),t===TC&&(Rr(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Dt(e),e.avail_out===0))return n.last_flush=-1,et}return t!==Zt?et:n.wrap<=0?Uw:(n.wrap===2?(de(n,e.adler&255),de(n,e.adler>>8&255),de(n,e.adler>>16&255),de(n,e.adler>>24&255),de(n,e.total_in&255),de(n,e.total_in>>8&255),de(n,e.total_in>>16&255),de(n,e.total_in>>24&255)):($a(n,e.adler>>>16),$a(n,e.adler&65535)),Dt(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?et:Uw)},nT=e=>{if(rs(e))return xn;let t=e.state.status;return e.state=null,t===si?li(e,RC):et},rT=(e,t)=>{let n=t.length;if(rs(e))return xn;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==po||r.lookahead)return xn;if(i===1&&(e.adler=Xa(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Rr(r.head),r.strstart=0,r.block_start=0,r.insert=0);let u=new Uint8Array(r.w_size);u.set(t.subarray(n-r.w_size,n),0),t=u,n=r.w_size}let o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,mo(r);r.lookahead>=ae;){let u=r.strstart,f=r.lookahead-(ae-1);do r.ins_h=Ar(r,r.ins_h,r.window[u+ae-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++;while(--f);r.strstart=u,r.lookahead=ae-1,mo(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ae-1,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,et},iT=eT,oT=D_,aT=A_,sT=N_,lT=JC,uT=tT,fT=nT,cT=rT,dT="pako deflate (from Nodeca project)",Ya={deflateInit:iT,deflateInit2:oT,deflateReset:aT,deflateResetKeep:sT,deflateSetHeader:lT,deflate:uT,deflateEnd:fT,deflateSetDictionary:cT,deflateInfo:dT},pT=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),mT=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)pT(n,r)&&(e[r]=n[r])}}return e},hT=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ja[254]=Ja[254]=1;var gT=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,a=e.length,s=0;for(i=0;i>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t},yT=(e,t)=>{if(t<65534&&e.subarray&&M_)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,o=new Array(n*2);for(i=0,r=0;r4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return yT(o,i)},wT=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Ja[e[n]]>t?n:t},es={string2buf:gT,buf2string:vT,utf8border:wT};function _T(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var L_=_T,U_=Object.prototype.toString,{Z_NO_FLUSH:xT,Z_SYNC_FLUSH:ST,Z_FULL_FLUSH:kT,Z_FINISH:bT,Z_OK:Eu,Z_STREAM_END:ET,Z_DEFAULT_COMPRESSION:OT,Z_DEFAULT_STRATEGY:CT,Z_DEFLATED:TT}=di;function is(e){this.options=Tu.assign({level:OT,method:TT,chunkSize:16384,windowBits:15,memLevel:8,strategy:CT},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new L_,this.strm.avail_out=0;let n=Ya.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Eu)throw new Error(ui[n]);if(t.header&&Ya.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=es.string2buf(t.dictionary):U_.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ya.deflateSetDictionary(this.strm,r),n!==Eu)throw new Error(ui[n]);this._dict_set=!0}}is.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?bT:xT,typeof e=="string"?n.input=es.string2buf(e):U_.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===ST||o===kT)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ya.deflate(n,o),i===ET)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ya.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Eu;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};is.prototype.onData=function(e){this.chunks.push(e)};is.prototype.onEnd=function(e){e===Eu&&(this.result=Tu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function qp(e,t){let n=new is(t);if(n.push(e,!0),n.err)throw n.msg||ui[n.err];return n.result}function RT(e,t){return t=t||{},t.raw=!0,qp(e,t)}function IT(e,t){return t=t||{},t.gzip=!0,qp(e,t)}var PT=is,NT=qp,AT=RT,DT=IT,MT=di,LT={Deflate:PT,deflate:NT,deflateRaw:AT,gzip:DT,constants:MT},wu=16209,UT=16191,FT=function(t,n){let r,i,o,a,s,u,f,l,d,c,p,v,S,b,y,w,_,x,N,D,A,M,W,U,Y=t.state;r=t.next_in,W=t.input,i=r+(t.avail_in-5),o=t.next_out,U=t.output,a=o-(n-t.avail_out),s=o+(t.avail_out-257),u=Y.dmax,f=Y.wsize,l=Y.whave,d=Y.wnext,c=Y.window,p=Y.hold,v=Y.bits,S=Y.lencode,b=Y.distcode,y=(1<>>24,p>>>=x,v-=x,x=_>>>16&255,x===0)U[o++]=_&65535;else if(x&16){N=_&65535,x&=15,x&&(v>>=x,v-=x),v<15&&(p+=W[r++]<>>24,p>>>=x,v-=x,x=_>>>16&255,x&16){if(D=_&65535,x&=15,vu){t.msg="invalid distance too far back",Y.mode=wu;break e}if(p>>>=x,v-=x,x=o-a,D>x){if(x=D-x,x>l&&Y.sane){t.msg="invalid distance too far back",Y.mode=wu;break e}if(A=0,M=c,d===0){if(A+=f-x,x2;)U[o++]=M[A++],U[o++]=M[A++],U[o++]=M[A++],N-=3;N&&(U[o++]=M[A++],N>1&&(U[o++]=M[A++]))}else{A=o-D;do U[o++]=U[A++],U[o++]=U[A++],U[o++]=U[A++],N-=3;while(N>2);N&&(U[o++]=U[A++],N>1&&(U[o++]=U[A++]))}}else if(x&64){t.msg="invalid distance code",Y.mode=wu;break e}else{_=b[(_&65535)+(p&(1<>3,r-=N,v-=N<<3,p&=(1<{let u=s.bits,f=0,l=0,d=0,c=0,p=0,v=0,S=0,b=0,y=0,w=0,_,x,N,D,A,M=null,W,U=new Uint16Array(fo+1),Y=new Uint16Array(fo+1),je=null,Qn,P,j;for(f=0;f<=fo;f++)U[f]=0;for(l=0;l=1&&U[c]===0;c--);if(p>c&&(p=c),c===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,s.bits=1,0;for(d=1;d0&&(e===Bw||c!==1))return-1;for(Y[1]=0,f=1;fjw||e===$w&&y>zw)return 1;for(;;){Qn=f-S,a[l]+1=W?(P=je[a[l]-W],j=M[a[l]-W]):(P=96,j=0),_=1<>S)+x]=Qn<<24|P<<16|j|0;while(x!==0);for(_=1<>=1;if(_!==0?(w&=_-1,w+=_):w=0,l++,--U[f]===0){if(f===c)break;f=t[n+a[l]]}if(f>p&&(w&D)!==N){for(S===0&&(S=p),A+=d,v=f-S,b=1<jw||e===$w&&y>zw)return 1;N=w&D,i[N]=p<<24|v<<16|A-o|0}}return w!==0&&(i[A+w]=f-S<<24|64<<16|0),s.bits=p,0},Ga=HT,WT=0,F_=1,j_=2,{Z_FINISH:Hw,Z_BLOCK:VT,Z_TREES:_u,Z_OK:ci,Z_STREAM_END:YT,Z_NEED_DICT:GT,Z_STREAM_ERROR:qt,Z_DATA_ERROR:z_,Z_MEM_ERROR:B_,Z_BUF_ERROR:ZT,Z_DEFLATED:Ww}=di,Ru=16180,Vw=16181,Yw=16182,Gw=16183,Zw=16184,qw=16185,Qw=16186,Kw=16187,Xw=16188,Jw=16189,Ou=16190,$n=16191,Tp=16192,e_=16193,Rp=16194,t_=16195,n_=16196,r_=16197,i_=16198,xu=16199,Su=16200,o_=16201,a_=16202,s_=16203,l_=16204,u_=16205,Ip=16206,f_=16207,c_=16208,Oe=16209,$_=16210,H_=16211,qT=852,QT=592,KT=15,XT=KT,d_=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function JT(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var pi=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modeH_?1:0},W_=e=>{if(pi(e))return qt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Ru,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(qT),t.distcode=t.distdyn=new Int32Array(QT),t.sane=1,t.back=-1,ci},V_=e=>{if(pi(e))return qt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,W_(e)},Y_=(e,t)=>{let n;if(pi(e))return qt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?qt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,V_(e))},G_=(e,t)=>{if(!e)return qt;let n=new JT;e.state=n,n.strm=e,n.window=null,n.mode=Ru;let r=Y_(e,t);return r!==ci&&(e.state=null),r},eR=e=>G_(e,XT),p_=!0,Pp,Np,tR=e=>{if(p_){Pp=new Int32Array(512),Np=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ga(F_,e.lens,0,288,Pp,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ga(j_,e.lens,0,32,Np,0,e.work,{bits:5}),p_=!1}e.lencode=Pp,e.lenbits=9,e.distcode=Np,e.distbits=5},Z_=(e,t,n,r)=>{let i,o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,i,o,a,s,u,f,l,d,c,p,v,S,b=0,y,w,_,x,N,D,A,M,W=new Uint8Array(4),U,Y,je=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pi(e)||!e.output||!e.input&&e.avail_in!==0)return qt;n=e.state,n.mode===$n&&(n.mode=Tp),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,f=n.hold,l=n.bits,d=s,c=u,M=ci;e:for(;;)switch(n.mode){case Ru:if(n.wrap===0){n.mode=Tp;break}for(;l<16;){if(s===0)break e;s--,f+=r[o++]<>>8&255,n.check=qe(n.check,W,2,0),f=0,l=0,n.mode=Vw;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",n.mode=Oe;break}if((f&15)!==Ww){e.msg="unknown compression method",n.mode=Oe;break}if(f>>>=4,l-=4,A=(f&15)+8,n.wbits===0&&(n.wbits=A),A>15||A>n.wbits){e.msg="invalid window size",n.mode=Oe;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(W[0]=f&255,W[1]=f>>>8&255,n.check=qe(n.check,W,2,0)),f=0,l=0,n.mode=Yw;case Yw:for(;l<32;){if(s===0)break e;s--,f+=r[o++]<>>8&255,W[2]=f>>>16&255,W[3]=f>>>24&255,n.check=qe(n.check,W,4,0)),f=0,l=0,n.mode=Gw;case Gw:for(;l<16;){if(s===0)break e;s--,f+=r[o++]<>8),n.flags&512&&n.wrap&4&&(W[0]=f&255,W[1]=f>>>8&255,n.check=qe(n.check,W,2,0)),f=0,l=0,n.mode=Zw;case Zw:if(n.flags&1024){for(;l<16;){if(s===0)break e;s--,f+=r[o++]<>>8&255,n.check=qe(n.check,W,2,0)),f=0,l=0}else n.head&&(n.head.extra=null);n.mode=qw;case qw:if(n.flags&1024&&(p=n.length,p>s&&(p=s),p&&(n.head&&(A=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+p),A)),n.flags&512&&n.wrap&4&&(n.check=qe(n.check,r,p,o)),s-=p,o+=p,n.length-=p),n.length))break e;n.length=0,n.mode=Qw;case Qw:if(n.flags&2048){if(s===0)break e;p=0;do A=r[o+p++],n.head&&A&&n.length<65536&&(n.head.name+=String.fromCharCode(A));while(A&&p>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=$n;break;case Jw:for(;l<32;){if(s===0)break e;s--,f+=r[o++]<>>=l&7,l-=l&7,n.mode=Ip;break}for(;l<3;){if(s===0)break e;s--,f+=r[o++]<>>=1,l-=1,f&3){case 0:n.mode=e_;break;case 1:if(tR(n),n.mode=xu,t===_u){f>>>=2,l-=2;break e}break;case 2:n.mode=n_;break;case 3:e.msg="invalid block type",n.mode=Oe}f>>>=2,l-=2;break;case e_:for(f>>>=l&7,l-=l&7;l<32;){if(s===0)break e;s--,f+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Oe;break}if(n.length=f&65535,f=0,l=0,n.mode=Rp,t===_u)break e;case Rp:n.mode=t_;case t_:if(p=n.length,p){if(p>s&&(p=s),p>u&&(p=u),p===0)break e;i.set(r.subarray(o,o+p),a),s-=p,o+=p,u-=p,a+=p,n.length-=p;break}n.mode=$n;break;case n_:for(;l<14;){if(s===0)break e;s--,f+=r[o++]<>>=5,l-=5,n.ndist=(f&31)+1,f>>>=5,l-=5,n.ncode=(f&15)+4,f>>>=4,l-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Oe;break}n.have=0,n.mode=r_;case r_:for(;n.have>>=3,l-=3}for(;n.have<19;)n.lens[je[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,U={bits:n.lenbits},M=Ga(WT,n.lens,0,19,n.lencode,0,n.work,U),n.lenbits=U.bits,M){e.msg="invalid code lengths set",n.mode=Oe;break}n.have=0,n.mode=i_;case i_:for(;n.have>>24,w=b>>>16&255,_=b&65535,!(y<=l);){if(s===0)break e;s--,f+=r[o++]<>>=y,l-=y,n.lens[n.have++]=_;else{if(_===16){for(Y=y+2;l>>=y,l-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=Oe;break}A=n.lens[n.have-1],p=3+(f&3),f>>>=2,l-=2}else if(_===17){for(Y=y+3;l>>=y,l-=y,A=0,p=3+(f&7),f>>>=3,l-=3}else{for(Y=y+7;l>>=y,l-=y,A=0,p=11+(f&127),f>>>=7,l-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Oe;break}for(;p--;)n.lens[n.have++]=A}}if(n.mode===Oe)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Oe;break}if(n.lenbits=9,U={bits:n.lenbits},M=Ga(F_,n.lens,0,n.nlen,n.lencode,0,n.work,U),n.lenbits=U.bits,M){e.msg="invalid literal/lengths set",n.mode=Oe;break}if(n.distbits=6,n.distcode=n.distdyn,U={bits:n.distbits},M=Ga(j_,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,U),n.distbits=U.bits,M){e.msg="invalid distances set",n.mode=Oe;break}if(n.mode=xu,t===_u)break e;case xu:n.mode=Su;case Su:if(s>=6&&u>=258){e.next_out=a,e.avail_out=u,e.next_in=o,e.avail_in=s,n.hold=f,n.bits=l,FT(e,c),a=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,f=n.hold,l=n.bits,n.mode===$n&&(n.back=-1);break}for(n.back=0;b=n.lencode[f&(1<>>24,w=b>>>16&255,_=b&65535,!(y<=l);){if(s===0)break e;s--,f+=r[o++]<>x)],y=b>>>24,w=b>>>16&255,_=b&65535,!(x+y<=l);){if(s===0)break e;s--,f+=r[o++]<>>=x,l-=x,n.back+=x}if(f>>>=y,l-=y,n.back+=y,n.length=_,w===0){n.mode=u_;break}if(w&32){n.back=-1,n.mode=$n;break}if(w&64){e.msg="invalid literal/length code",n.mode=Oe;break}n.extra=w&15,n.mode=o_;case o_:if(n.extra){for(Y=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=a_;case a_:for(;b=n.distcode[f&(1<>>24,w=b>>>16&255,_=b&65535,!(y<=l);){if(s===0)break e;s--,f+=r[o++]<>x)],y=b>>>24,w=b>>>16&255,_=b&65535,!(x+y<=l);){if(s===0)break e;s--,f+=r[o++]<>>=x,l-=x,n.back+=x}if(f>>>=y,l-=y,n.back+=y,w&64){e.msg="invalid distance code",n.mode=Oe;break}n.offset=_,n.extra=w&15,n.mode=s_;case s_:if(n.extra){for(Y=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Oe;break}n.mode=l_;case l_:if(u===0)break e;if(p=c-u,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Oe;break}p>n.wnext?(p-=n.wnext,v=n.wsize-p):v=n.wnext-p,p>n.length&&(p=n.length),S=n.window}else S=i,v=a-n.offset,p=n.length;p>u&&(p=u),u-=p,n.length-=p;do i[a++]=S[v++];while(--p);n.length===0&&(n.mode=Su);break;case u_:if(u===0)break e;i[a++]=n.length,u--,n.mode=Su;break;case Ip:if(n.wrap){for(;l<32;){if(s===0)break e;s--,f|=r[o++]<{if(pi(e))return qt;let t=e.state;return t.window&&(t.window=null),e.state=null,ci},iR=(e,t)=>{if(pi(e))return qt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,ci):qt},oR=(e,t)=>{let n=t.length,r,i,o;return pi(e)||(r=e.state,r.wrap!==0&&r.mode!==Ou)?qt:r.mode===Ou&&(i=1,i=Xa(i,t,n,0),i!==r.check)?z_:(o=Z_(e,t,n,n),o?(r.mode=$_,B_):(r.havedict=1,ci))},aR=V_,sR=Y_,lR=W_,uR=eR,fR=G_,cR=nR,dR=rR,pR=iR,mR=oR,hR="pako inflate (from Nodeca project)",Wn={inflateReset:aR,inflateReset2:sR,inflateResetKeep:lR,inflateInit:uR,inflateInit2:fR,inflate:cR,inflateEnd:dR,inflateGetHeader:pR,inflateSetDictionary:mR,inflateInfo:hR};function gR(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var yR=gR,q_=Object.prototype.toString,{Z_NO_FLUSH:vR,Z_FINISH:wR,Z_OK:ts,Z_STREAM_END:Ap,Z_NEED_DICT:Dp,Z_STREAM_ERROR:_R,Z_DATA_ERROR:m_,Z_MEM_ERROR:xR}=di;function os(e){this.options=Tu.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new L_,this.strm.avail_out=0;let n=Wn.inflateInit2(this.strm,t.windowBits);if(n!==ts)throw new Error(ui[n]);if(this.header=new yR,Wn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=es.string2buf(t.dictionary):q_.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Wn.inflateSetDictionary(this.strm,t.dictionary),n!==ts)))throw new Error(ui[n])}os.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?wR:vR,q_.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=Wn.inflate(n,a),o===Dp&&i&&(o=Wn.inflateSetDictionary(n,i),o===ts?o=Wn.inflate(n,a):o===m_&&(o=Dp));n.avail_in>0&&o===Ap&&n.state.wrap>0&&e[n.next_in]!==0;)Wn.inflateReset(n),o=Wn.inflate(n,a);switch(o){case _R:case m_:case Dp:case xR:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(n.avail_out===0||o===Ap))if(this.options.to==="string"){let u=es.utf8border(n.output,n.next_out),f=n.next_out-u,l=es.buf2string(n.output,u);n.next_out=f,n.avail_out=r-f,f&&n.output.set(n.output.subarray(u,u+f),0),this.onData(l)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===ts&&s===0)){if(o===Ap)return o=Wn.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};os.prototype.onData=function(e){this.chunks.push(e)};os.prototype.onEnd=function(e){e===ts&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Tu.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Qp(e,t){let n=new os(t);if(n.push(e),n.err)throw n.msg||ui[n.err];return n.result}function SR(e,t){return t=t||{},t.raw=!0,Qp(e,t)}var kR=os,bR=Qp,ER=SR,OR=Qp,CR=di,TR={Inflate:kR,inflate:bR,inflateRaw:ER,ungzip:OR,constants:CR},{Deflate:RR,deflate:IR,deflateRaw:PR,gzip:NR}=LT,{Inflate:AR,inflate:DR,inflateRaw:MR,ungzip:LR}=TR,UR=RR,FR=IR,jR=PR,zR=NR,BR=AR,$R=DR,HR=MR,WR=LR,VR=di,Q_={Deflate:UR,deflate:FR,deflateRaw:jR,gzip:zR,Inflate:BR,inflate:$R,inflateRaw:HR,ungzip:WR,constants:VR};var Vn={tables:{},columns:{},rels:{}},X_=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async i=>mi({name:t,action:"batch_update",table:"",params:{batch:i}},e),upsert:async i=>mi({name:t,action:"batch_upsert",table:"",params:{arg:i}},e)}:r==="_schema"?{tables:async()=>(Vn.tables[e]||(Vn.tables[e]=mi({name:t,action:"schema_tables",table:"",params:[]},e)),await Vn.tables[e]),columns:async i=>(Vn.columns[e+"_"+i]||(Vn.columns[e+"_"+i]=mi({name:t,action:"schema_columns",table:i,params:[]},e)),await Vn.columns[e+"_"+i]),rels:async i=>(Vn.rels[e+"_"+i]||(Vn.rels[e+"_"+i]=mi({name:t,action:"schema_rels",table:i,params:[]},e)),await Vn.rels[e+"_"+i])}:r.startsWith("$")?(...i)=>{let o=Q_.gzip(JSON.stringify(i));return mi({name:t,action:"query",table:r,params:btoa(o.reduce((a,s)=>a+String.fromCharCode(s),""))},e)}:new Proxy({},{get(i,o){return async(...a)=>(r==="query"&&(r=o,o="query"),await mi({name:t,action:o,table:r,params:a},e))}})}})},vo={},mi=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString();typeof localStorage<"u"&&localStorage.mlsid&&(e.mlsid=localStorage.mlsid);let i=(0,K_.default)(e),o=vo[i];if(!o||o&&Date.now()-o.timestamp>1e3){vo[i]={timestamp:Date.now(),promise:yu(r,e,{"content-type":"application/json"},!1),result:null};let s=await vo[i].promise;o=vo[i];try{return typeof s=="string"?(s=JSON.parse(s),vo[i].result=s,s):(vo[i].result=s,s)}catch{if(s)throw new Error(`DBQuery failed: `+s);return null}}if(o.result)return o.result;let a=await o.promise;if(a)try{return typeof a=="string"&&(a=JSON.parse(a)),a}catch{console.error("DBQuery failed:",a)}return null};m();g();h();m();g();h();m();g();h();var Y1=G(Du());var G1=e=>{let{item:t,item_comp:n,ids:r}=e,i=Xi(n);if(Z1(i,r),t.id&&(i.id=t.id),i.hidden=t.hidden,i.component){if(i.component.props&&t.component&&t.component.props)for(let o of Object.keys(i.component.props)){let a=t.component.props[o],s=i.component.props[o];a&&(s.value=a.value,s.valueBuilt=a.valueBuilt,s.jsxCalledBy=a.jsxCalledBy,s.content=a.content)}i.component.instances=t.component?.instances,i.component.style=t.component?.style}for(let o of Object.keys(t))delete t[o];for(let[o,a]of Object.entries(i))t[o]=a},Z1=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,Y1.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)Z1(n,t)};m();g();h();var q1=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let i=Xi(r),o=e.item.component?.props;o&&o[n]&&(i.value=o[n].value,i.valueBuilt=o[n].valueBuilt,o[n].content&&(i.content=o[n].content)),i&&e.each(n,i)}};m();g();h();var Mu=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let i of r)i.type==="item"&&i.component?t.childs.push(i):t.childs.push({name:i.name,id:i.id,originalId:i.originalId})}else t[n]=r;return t};var Q1=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let i;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),i=n.component.instances):i=t.parent?.root_instances,i){let a=i[n.id];i[n.id]||(i[n.id]={},a=i[n.id]),G1({item:n,item_comp:r,ids:a})}let o={item:Mu(n),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:i};if(e.on?.visit&&e.on.visit(o,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=o),q1({item:n,item_comp:r,instance:i?i[n.id]:{},each(a,s){let u=n.component?.id;s.meta?.type==="content-element"&&u&&s.content&&(s.content.name=a,_o({...e},{item:s.content,root:t.root||s.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:u,name:a},parent:{item:o.item,instance_id:n.id,comp:r,root_instances:i}}))}}),n.childs)for(let a of Object.values(n.childs))a?.name?.startsWith("jsx:")||a&&Object.keys(a).length>3&&_o({...e,mode:"comp"},{item:a,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:i,comp:r}})}}};var _o=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){Q1(e,t);return}let r={item:Mu(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[i,o]of Object.entries(n.childs))if(o.id){let a={item:o,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(a.jsx_prop={...t.jsx_prop,is_root:!1}),_o(e,a)}}};var II=()=>new Promise(async e=>{let t=!1,n=await fetch(B.url`_prasi/route`);t||(n.headers.get("content-encoding")||fetch(B.url`_prasi/compress/only-gz`),e(await n.json()))}),K1=async()=>{let e=Jl(),t=[];try{let n=await II();if(n&&n.site&&n.urls){n.layout&&(B.layout.id=n.layout.id,B.layout.root=n.layout.root,B.layout.meta={},B.layout.root&&(await Or(B.layout.root.childs),xo(B.layout.meta,B.layout.root))),B.site=n.site,B.site.code={mode:"vsc"},await PI(),B.site.api=Cw(B.site.api_url),B.site.db=X_(B.site.api_url);let r=window;r.serverurl=B.site.api_url,r.db=B.site.db,r.api=B.site.api;for(let i of n.urls)e.insert(i.url,i),t.push(i)}}catch{}return{router:e,pages:t}},PI=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=B.site.api_url;r==="*"&&(r=`${location.protocol}//${location.host}`,B.site.api_url=r),localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let i=localStorage.getItem("api-ts-"+r),o=new URL(location.href);if(o.pathname="",!["prasi.avolut.com"].includes(o.hostname)&&o.host!=="localhost:4550"){let a=o.toString();n.src=`${a.endsWith("/")?a:`${a}/`}_prasi/load.js?url=${a}&v3&ts=${i}`,B.site.api_url=`${o.protocol}//${o.host}`}else n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${i}`;n.onerror=()=>{e()},document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),xo=(e,t)=>{for(let n of t.childs)_o({set_meta:!0,comps:B.comp.list,meta:e,mode:"page"},{item:n})};var X1=new oi({structuredClone:!0}),Lr={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3,id_client:"",id_site:"",ws:null},J1=()=>{if(location.host==="localhost:4550"||location.host==="prasi.avolut.com"){let t=location.pathname.split("/")[2],n=()=>{let r=new URL(At.basehost||location.href);r.pathname="/sync",r.protocol=r.protocol==="http:"?"ws:":"wss:";let i=new WebSocket(`${r.protocol}//${r.host}${r.pathname}`),o=setTimeout(()=>{clearTimeout(o),i.close(),n()},2e3);Lr.ws=i,Lr.id_site=t,i.onopen=()=>{clearTimeout(o),At.offline=!1,At.editorRender?.()},i.onmessage=async a=>{let s=a.data,u=X1.unpack(k.from(await s.arrayBuffer()));if(Lr.debug&&console.log("%c\u2B07","color:red",nx(s.size,0),u),u.type===0)Lr.id_client=u.client_id,tx(i,{type:"preview",mode:"init",data:{site_id:t,client_id:u.client_id}});else if(u.type===2){if(u.event==="page_changed"){let f=u.data.map.id,l=B.page.cache[f],d=u.data.map.root;l.root=d;let c={id:l.id,url:l.url,root:d,meta:{}};await Or(d.childs,!0),xo(c.meta,d),B.page.cache[c.id]=c,At.prasiContext.render()}else if(u.event==="code_changes"){let{mode:f,ts:l,status:d}=u.data;if(f==="frontend")if(d==="ok"){console.clear(),console.log(`${Ca(Date.now(),"HH:mm:ss")} \u{1F6A7} Code updated from vscode `);let c=`/prod/${t}/_prasi/code/index.js?ts=${l}`,p=new Function("callback",` import("${c}") .catch((e) => console.error("Failed to load site code\\n\\n", e)) .then(callback)`);try{await new Promise(v=>{try{p(S=>{let b=window;for(let[y,w]of Object.entries(S))b[y]=w;v(S),b.prasiContext.render()})}catch(S){console.log("Failed to load site code",S)}})}catch{}}else d==="building"&&console.log(`${Ca(Date.now(),"HH:mm:ss")} \u23F3 Code changed from vscode, rebuilding...`)}}}};n()}},ex=e=>{Lr.ws&&tx(Lr.ws,{type:"preview",mode:"listen",data:{...e,client_id:Lr.id_client}})},tx=(e,t)=>{let n=X1.pack(t);Lr.debug&&console.log("%c\u2B06","color:blue",nx(n.length,0),t),e.send(n)};function nx(e,t){if(e==0)return"0 Bytes";var n=1024,r=t||2,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,o)).toFixed(r))+" "+i[o]}m();g();h();var tS=G(Qe());m();g();h();m();g();h();m();g();h();var rx=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function NI(e){return typeof e=="string"&&rx.test(e)}var om=NI;m();g();h();var cs=G(ge()),am=({children:e,back:t})=>(0,cs.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,cs.jsx)("div",{children:e}),(0,cs.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});m();g();h();var ox=G(Qe());var lt=G(ge()),ix=window,ds=({children:e,className:t,show:n,backdrop:r,note:i,alt:o,pointer:a})=>{let s=wr({icon:(0,lt.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,ox.useEffect)(()=>(s.ival=setInterval(()=>{s.value+=.1333,s.value>=1.3&&(s.value=0),s.render()},200),ix.loadingIcon&&(s.icon=(0,lt.jsx)("img",{alt:"loading",src:ix.loadingIcon,className:css` width: 42px; height: 42px; `}),s.render()),()=>{clearInterval(s.ival)}),[]),(0,lt.jsxs)(lt.Fragment,{children:[r!==!1&&(0,lt.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof n<"u"?n?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:u=>{u.preventDefault()}}),e?(0,lt.jsx)("div",{onContextMenuCapture:u=>{u.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,lt.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,lt.jsx)("div",{className:"text-sm",children:e})})}):(0,lt.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 transition-all",a!==!0&&"pointer-events-none",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,lt.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` min-width: 30px; .pr-outer { background: rgba(0, 0, 0, 0.1) !important; } `),children:[(0,lt.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:i}),(0,lt.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,lt.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css` transform: translate(${-100+s.value*200}%); `)})}),o]})})]})};m();g();h();var Vu=G(Qe());m();g();h();var ax=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,e.status="ready",e.on_status_changes&&e.on_status_changes(e.status)};m();g();h();var Ur={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{},preload:[]},comp:{load:async()=>null},on_preload:void 0};m();g();h();var Vx=G(Qe());m();g();h();m();g();h();var He=G(Qe()),sm=class extends He.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},AI=()=>!1,sx=(0,He.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:AI});function lx({children:e}){let[t,n]=(0,He.useState)(),r=(0,He.useRef)(),i=(0,He.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return He.default.createElement(sx.Provider,{value:i},He.default.createElement(sm,{error:t,onError:(o,a)=>{n(o),r.current?.(o,a)}},e))}lx.displayName="ReactUseErrorBoundaryContext";function ux(e){function t(n){return He.default.createElement(lx,null,He.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function fx(e){let t=(0,He.useContext)(sx);t.componentDidCatch.current=e;let n=(0,He.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var Qt=G(ge()),kn=ux(({children:e,meta:t,id:n,silent:r=!0})=>{let i=wr({retrying:!1,meta:t}),[o,a]=fx((u,f)=>{r!==!0&&console.error(u)});t&&i.meta!==t&&(i.meta=t,setTimeout(a));let s=t;return o?(0,Qt.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Qt.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",s?.item.name?"["+s.item.name+"]:":""]}),(0,Qt.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:i.retrying?(0,Qt.jsx)(Qt.Fragment,{children:"Retrying..."}):(0,Qt.jsx)(Qt.Fragment,{children:o.message})}),(0,Qt.jsx)("div",{className:"p-1",children:(0,Qt.jsx)("button",{onClick:()=>{i.retrying=!0,i.render(),setTimeout(()=>{i.retrying=!1,i.render(),a()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});m();g();h();m();g();h();m();g();h();m();g();h();var Et=(e,t,n,r)=>{let i=e[t];return n==="desktop"||!n?!i&&e.mobile&&e.mobile[t]&&(i=e.mobile[t]):e.mobile&&e.mobile[t]&&(i=e.mobile[t]),i||(i=r),i};var dx=(e,t)=>{let n=Et(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` ${n.css} `,t):""};m();g();h();var px=(e,t)=>{let n=Et(e,"bg",t,{size:"contain",pos:"center"}),r=`${serverurl}${n.url}`;return n&&n.url&&n.url.startsWith("http")&&(r=n.url),cx(` background-repeat: no-repeat; `,n.color&&` background-color: ${n.color}; `,n.size&&` background-size: ${n.size}; `,n.pos&&` background-position: ${n.pos}; `)};m();g();h();var Cx=G(pm());var Tx=(e,t)=>{let n=Et(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(bn(n,"stroke.l","border-left-width"),bn(n,"stroke.r","border-right-width"),bn(n,"stroke.b","border-bottom-width"),bn(n,"stroke.t","border-top-width"),bn(n,"color","border-color","transparent"),bn(n,"style","border-style","dashed"),bn(n,"rounded.tl","border-top-left-radius"),bn(n,"rounded.tr","border-top-right-radius"),bn(n,"rounded.bl","border-bottom-left-radius"),bn(n,"rounded.br","border-bottom-right-radius"))},bn=(e,t,n,r)=>{let i=(0,Cx.default)(e,t);if(r)return i?`${n}: ${i};`:`${n}: ${r};`;if(i)return`${n}: ${i}px;`};m();g();h();var Rx=(e,t,n)=>{let r=Et(e,"dim",t,{h:"fit",w:"fit"});return r.w==="full"&&r.h==="full"?` width:100%; height:100%; flex:1; `:cx(r.w==="fit"&&` & > .txt-box > * { white-space: nowrap !important; } `,r.w==="full"&&` width: 100%; `,r.w&&typeof r.w=="number"&&r.w>=0&&` width: ${r.w}${r.wUnit||"px"}; overflow-x: clip; `,r.h==="full"&&` height: ${n?"100%":"100"+(e.type==="section"?"vh":"%")}; margin-bottom: auto; `,r.h&&typeof r.h=="number"&&r.h>=0&&` height: ${r.h}${r.hUnit||"px"}; overflow-y: clip; `)};m();g();h();var Ix=({item:e,hover:t,active:n})=>cx(t&&css` & { box-shadow: inset 0 0 0px 3px #bae3fd; > img { opacity: 0.6; } } `,n&&css` box-shadow: inset 0 0 0px 2px #009cff !important; > img { opacity: 0.6; } `);m();g();h();var ko=window,Px=(e,t)=>{let n=Et(e,"font",t,{});if(n.family){ko.loadedFonts||(ko.loadedFonts=[]);let i=`:wght@${[300,400,500,600].join(";")}`,o=n.family.replace(/ /g,"+");if(ko.loadedFonts.indexOf(n.family)<0){ko.loadedFonts.push(n.family);let a=document,s=`https://fonts.googleapis.com/css2?family=${o}${i}&display=swap`;if(!a.querySelector(`link[href="${s}]`)){let u=a.createElement("link");u.type="text/css",u.rel="stylesheet",u.crossOrigin="anonymous",u.href=s,a.head.appendChild(u)}}}return!n.family&&ko.defaultFont&&(n.family=ko.defaultFont),cx(n.color&&` color: ${n.color}; `,n.whitespace==="whitespace-normal"&&` word-break: break-word; `,n.whitespace==="whitespace-nowrap"&&` white-space: nowrap; `,n.color&&` color: ${n.color}; `,` text-align: ${n.align?n.align:"left"}; `,n.size&&` font-size: ${n.size||15}px; `,n.height&&` line-height: ${n.height==="auto"?"normal":`${n.height}%`}; `,n.family&&` font-family: ${n.family}; `)};m();g();h();var Nx=(e,t)=>{let n=[],r=Et(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(r)r.wrap&&n.push(r.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),r.dir.startsWith("col")?(r.dir==="col"?n.push("flex-direction: column;"):r.dir==="col-reverse"&&n.push("flex-direction: column-reverse;"),r.gap==="auto"?(r.align==="left"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="right"&&n.push("align-items:end; justify-content: space-between;")):(n.push(`gap: ${r.gap}px;`),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:center; justify-content: start;"),r.align==="top-right"&&n.push("align-items:end; justify-content: start;"),r.align==="left"&&n.push("align-items:start; justify-content: center;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-left"&&n.push("align-items:start; justify-content: end;"),r.align==="bottom-center"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;"))):(r.dir==="row"?n.push("flex-direction: row;"):r.dir==="row-reverse"&&n.push("flex-direction: row-reverse;"),r.gap==="auto"?(r.align==="top"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="bottom"&&n.push("align-items:end; justify-content: space-between;")):(n.push(` gap: ${r.gap}px; `),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:start; justify-content: center;"),r.align==="top-right"&&n.push("align-items:start; justify-content: end;"),r.align==="left"&&n.push("align-items:center; justify-content: start;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-left"&&n.push("align-items:end; justify-content: start;"),r.align==="bottom-center"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;")));else return"flex-direction:column; align-items:start; justify-content: start;";return n.join(` `).trim()};m();g();h();var Ax=(e,t)=>{let n=Et(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(n.l!==void 0&&` padding-left: ${n.l}px; `,n.r!==void 0&&` padding-right: ${n.r}px; `,n.b!==void 0&&` padding-bottom: ${n.b}px; `,n.t!==void 0&&` padding-top: ${n.t}px; `)};var mm=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css` display: flex; position: relative; user-select: none; ${Nx(e,t.mode)} ${Ax(e,t.mode)} ${Rx(e,t.mode,t?.editor)} ${Tx(e,t.mode)} ${px(e,t.mode)} ${Px(e,t.mode)} `,(t?.hover||t?.active)&&Ix({item:e,hover:t?.hover,active:t?.active}),dx(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Dx=G(ge()),ms=(e,t,n,r,i)=>{let o=t.item,a;o.component?.style&&(a={style:o.component.style,className:mm(o.component.style,{mode:e.mode})});let s={className:mm(o,{mode:e.mode}),inherit:a},u={},f=t.item.childs,l;return t.item.type==="text"?(l=null,s.dangerouslySetInnerHTML={__html:t.item.html||""}):l=Array.isArray(f)&&f?.map(d=>{if(!d)return null;let{id:c}=d,p=n?e.layout?.meta[c]:e.meta[c];return p?(0,Dx.jsx)(Zn,{meta:p,is_layout:n,passprop:{...r},depth:i+1},c):(d.type==="item"&&d.component?.id&&console.error(`Warning component ${d.name} - ${d.component.id} failed to load.`),null)}),s.children=l,t.item.adv?.html?(delete s.children,s.dangerouslySetInnerHTML={__html:t.item.adv?.html}):t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete s.children,delete s.dangerouslySetInnerHTML),{props:s,text_props:u}};m();g();h();var Wx=G(Qe());m();g();h();var Bx=G(Du());m();g();h();var I3={id:"",name:"",domain:"",config:{api_url:""},js:"",js_compiled:"",responsive:"",layout:{id:"--",meta:void 0,entry:[]}},P3={id:"",name:"",url:"",snapshot:null,comps:{}};var ut={active_id:!1,comp_id:!1,instance_comp_id:!1,instance_item_id:!1},bo={should_render_main:!0,hover:{id:""},scope:{},script_nav:{list:[],idx:-1},text:{id:"",content:"",timeout:null,el:null},get item_id(){return ut.active_id===!1&&(ut.active_id=localStorage.getItem("prasi-active-id")||""),ut.active_id||""},set item_id(e){localStorage.setItem("prasi-active-id",e||""),ut.active_id=e||""},get comp_id(){return ut.comp_id===!1&&(ut.comp_id=localStorage.getItem("prasi-comp-id")||""),ut.comp_id||""},set comp_id(e){localStorage.setItem("prasi-comp-id",e||""),ut.comp_id=e||""},instance:{get comp_id(){return ut.instance_comp_id===!1&&(ut.instance_comp_id=localStorage.getItem("prasi-instance-comp-id")||""),ut.instance_comp_id||""},set comp_id(e){localStorage.setItem("prasi-instance-comp-id",e||""),ut.instance_comp_id=e||""},get item_id(){return ut.instance_item_id===!1&&(ut.instance_item_id=localStorage.getItem("prasi-instance-item-id")||""),ut.instance_item_id||""},set item_id(e){localStorage.setItem("prasi-instance-item-id",e||""),ut.instance_item_id=e||""}}},sH={mode:"",user:{id:"",username:"",client_id:""},clients:{},status:"init",preview:{url_cache:new Set,route_cache:Jl(),page_cache:{},meta_cache:{}},sync:null,sync_assigned:!1,site:Xi(I3),site_tstamp:Date.now(),site_exports:{},site_dts:"",site_dts_entry:{},prisma_ext:"",script:{site_types:{},loaded:!1,do_edit:async(e,t)=>{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:P3,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{monaco:null,comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open_all:!1,open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,rebuilding:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};m();g();h();var Fu=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});m();g();h();var wi=G(Qe());m();g();h();var N3=Yd("prasi-cache","prasi-cache-store"),Mx={timeout:null,store:N3},ju=(e,t)=>{let n=[...Lx(t,"navigate(",")"),...Lx(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let i of n)e.page.navs[r].add(i);clearTimeout(Mx.timeout),Mx.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Lx=(e,t,n)=>{let r=0,i=0,o=[];for(;;){let a=e.indexOf(t,r);if(i=r,a>=0){let s=e[a+t.length];if(s==='"'||s==="'"||s==="`"){let u=e.indexOf(`${s}${n}`,a+t.length+1),f=e.substring(a+t.length+1,u);r=u+2+n.length,o.push(f)}}if(i===r)break}return o};m();g();h();var vi=G(Qe());m();g();h();var Ux=G(pm()),yi=G(Qe());var gm=G(ge()),Fx=(e,t,n,r,i)=>o=>{let[a,s]=(0,yi.useState)({}),u=o.idx||o.internal_key;n.item.script||(n.item.script={});let f=n.item.script;typeof u<"u"&&(n.item.script_keyed||(n.item.script_keyed={}),n.item.script_keyed[u]||(n.item.script_keyed[u]={}),f=n.item.script_keyed[u]),f.passprop||(f.passprop={});let l={},d=!1;for(let[v,S]of Object.entries(o))["children","key"].includes(v)||(d=!0,l[v]=S);let c={...r,...l};if(typeof u<"u"&&((typeof f.passprop.internal_key>"u"||u===f.passprop.internal_key)&&(f.passprop=c),c=f.passprop),n.editor_props=c,!Array.isArray(o.children)&&(0,yi.isValidElement)(o.children)&&typeof o.children=="object"){let v=(0,Ux.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(v)){let S=!0;for(let b of v)!(0,yi.isValidElement)(b)&&typeof b=="object"||(S=!1);if(S)return v.map(b=>{let y=e.meta[b.id];if(y||(e.meta[b.id]={item:b},y=e.meta[b.id]),y){if(Object.keys(y.item).length<=3&&y.mitem){let w={...y.item},_=y.mitem.toJSON();y.item={..._,...w}}return(0,gm.jsx)(Zn,{is_layout:t,meta:y,passprop:c,parent_key:o.internal_key,depth:i},b.id)}return null})}}if(!Array.isArray(o.children)&&!(0,yi.isValidElement)(o.children)&&typeof o.children=="object"){let v=o.children.id;if(v){let S=e.meta[v];if(!S){e.meta[v]={item:o.children},S=e.meta[v];let b=S.item.component?.id;b&&e.comp.load(b).then(y=>{if(y){for(let[_,x]of Object.entries(y)){let N=S.item;N[_]||(N[_]=x)}let w=S.item.component?.props;for(let[_,x]of Object.entries(y.component?.props||{}))w[_]||(w[_]=x);s({})}})}return(0,gm.jsx)(Zn,{is_layout:t,meta:S,passprop:c,parent_key:o.internal_key,depth:i})}}return ym(o,c,u?{parent_key:u}:void 0)},ym=(e,t,n)=>{let r={};if(Array.isArray(e)?r.children=e:r=e,Array.isArray(r.children)){if(r.children.length===1)return hm(r.children[0],r,t,n);let i=[];for(let o of r.children)i.push(hm(o,r,t,n));return i}return hm(r.children,r,t,n)},hm=(e,t,n,r)=>{if((0,yi.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,...r,passprop:{...n,...i}}}}return e};var Eo={},jx=(e,t,n)=>r=>{let i=(["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550")&&location.pathname.startsWith("/ed/"),o=n.item.id,{children:a,parent_key:s}=r,u=e.script?.init_local_effect,f=t?e.layout?.meta:e.meta,l=(0,vi.useRef)(Eo[o]?Eo[o]:r.value),[d,c]=(0,vi.useState)({}),p=l.current;return p.render=()=>{window.prasiContext.render?window.prasiContext.render():c({})},zu(e,n,n.script?.scope,s),r.hook&&r.hook(p),(0,vi.useEffect)(()=>{if(n.parent?.instance_id&&f){let S=f[n.parent?.instance_id];if(S&&S.instances){for(let[b,y]of Object.entries(S.instances[n.parent.instance_id]))if(y===n.item.id){o=b;break}}}return!u[o]&&(typeof u=="object"&&(u[o]=!0),(async()=>r.effect&&(await r.effect(p),i&&(Eo[o]=p)))()),()=>{}},[...r.deps||[],location.pathname]),(0,vi.useEffect)(()=>{i&&Eo[o]===null&&(async()=>r.effect&&(await r.effect(p),i&&(Eo[o]=p)))()},[Eo[o]]),ym(a,{...n.script?.scope,[r.name]:p})};m();g();h();var vm=G(Du()),hs=window,Oo=(e,t,n,r)=>{let i=r||{},o=t.get("id")||"";hs.prasiEditDevItem||(hs.prasiEditDevItem={});let a=hs.prasiEditDevItem[n];a||(hs.prasiEditDevItem[n]={},a=hs.prasiEditDevItem[n]);let s=()=>{let l=t.get("id")||"",d=a[l];return d||(a[l]=[],d=a[l]),d},u=t.toJSON(),f={...u,edit:{get props(){if(u.component?.props){let l={};for(let[d,c]of Object.entries(u.component.props))if(c.content){let p=t.get("component")?.get("props")?.get(d)?.get("content");if(p){let v=p.get("id")||"";i[v]?l[d]={mode:"jsx",value:i[v]}:l[d]={mode:"jsx",value:Oo(e,p,n,i)}}else l[d]={mode:"jsx",value:null}}else{let p=typeof c.valueBuilt=="string"?c.valueBuilt.trim():"";if(p.endsWith(`; `)&&(p=p.substring(0,p.length-2)),p&&p===c.value.trim()){let v=new Function(`return ${c.value}`);l[d]={mode:"string",value:v()}}else l[d]={mode:"raw",value:c.value,valueBuilt:c.valueBuilt}}return l}},get pending(){return[]},async commit(){let l={},d={};if(t){for(let[c,p]of Object.entries(a)){let v=e[c];if(!v||!v.mitem)continue;let b=v.mitem.toJSON();if(b&&b.component){let y=b?.component?.props;if(!y){console.log(b,y);return}let w={};for(let x of p)if(x.type==="prop"&&y)y[x.name]&&(x.mode==="string"?(y[x.name].value=JSON.stringify(x.value),y[x.name].valueBuilt=JSON.stringify(x.value)):x.mode==="raw"?(y[x.name].value=x.value,x.valueBuilt?y[x.name].valueBuilt=x.valueBuilt:w[x.name]=x.value):x.mode==="jsx"&&(y[x.name]||(y[x.name]={meta:{type:"content-element"}}),x.value&&(y[x.name].content=Co([x.value],d)[0])));else if(x.type==="set"&&typeof x.value=="object")for(let[N,D]of Object.entries(x.value))b[N]=D;else if(x.type==="child"&&Array.isArray(x.childs))if(b.component?.id)b.component.props||(b.component.props={}),b.component.props.child={meta:{type:"content-element"},content:{type:"item",id:(0,vm.createId)(),name:"child",childs:Co(x.childs.filter(N=>N),d)}};else{let N=Co(x.childs.filter(D=>D),d);b.childs=N}for(let[x,N]of Object.entries(d))w[x]=N.value;let _=await _api.code_build(w);if(y)for(let[x,N]of Object.entries(_))y[x]?y[x].valueBuilt=N:d[x]&&(d[x].valueBuilt=N);l[c]=b}}t.doc?.transact(()=>{for(let[c,p]of Object.entries(l)){let v=e[c];v.mitem&&syncronize(v.mitem,p)}})}},setValue(l,d){let c=s(),p=d;if(l==="childs")throw new Error("Please modify childs via .child");c.push({type:"set",name:l,value:p})},setProp(l,d){let c=s();typeof d=="string"?c.push({type:"prop",mode:"string",name:l,value:d}):d.mode==="string"?c.push({type:"prop",mode:"string",name:l,value:d.value}):d.mode==="raw"?c.push({type:"prop",mode:"raw",name:l,value:d.value,valueBuilt:d.valueBuilt}):d.mode==="jsx"&&c.push({type:"prop",mode:"jsx",name:l,value:d.value})},setChilds(l){s().push({type:"child",childs:l})},get childs(){if(u.component?.id){let l=u.component?.props.child;if(l&&l.content){let d=t.get("component")?.get("props")?.get("child")?.get("content");if(d){let c=d.get("id")||"";return i[c]?[i[c]]:[Oo(e,d,n,i)]}}return[]}return u.childs?u.childs.map(l=>{if(l){let d=e[l.id];if(i[l.id])return i[l.id];if(d&&d.mitem)return Oo(e,d.mitem,n,i)}}).filter(l=>l):[]},get parent(){if(t){let l=t.parent.toJSON(),d=null;if(Array.isArray(l))d=(t.parent?.parent).get("id");else{let p=t.parent?.parent?.parent?.parent;typeof p=="object"&&typeof p.get=="function"&&(d=p.get("id"))}let c=e[d]?.mitem;if(c){let p=i[d]?i[d]:Oo(e,c,n,i);return Array.isArray(l)?{item:p,child_type:"child",child_idx:l.findIndex(v=>v.id===p.id)}:{item:p,child_type:"prop"}}}return null}}};return i[o]=f,f},A3=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))i.mode?i.mode==="string"?n[r]={value:JSON.stringify(i.value),valueBuilt:JSON.stringify(i.value),meta:{type:"text"}}:i.mode==="jsx"&&i.value?n[r]={value:"",valueBuilt:"",content:Co([i.value],t)[0],meta:{type:"content-element"}}:i.mode==="raw"&&(n[r]={value:i.value,valueBuilt:i.valueBuilt,meta:{type:"text"}}):n[r]=i;return n},Co=(e,t)=>{let n=t||{};return e.map(i=>{let o={...i};if(delete o.edit,o.id||(o.id=(0,vm.createId)()),o.component&&(o.component.instances||(o.component.instances={}),o.component.ref_ids||(o.component.ref_ids={}),o.component?.props)){o.component.props=A3(o.component.props,n);for(let[a,s]of Object.entries(o.component.props))!s.valueBuilt&&s.value&&(n[o.id+"|||"+a]=s),s.content&&(s.content=Co([s.content],n)[0])}return o.childs?o.childs=Co(o.childs,n):o.childs=[],o})};m();g();h();var To=(e,t,n)=>({...t,edit:{setChilds(r){},get childs(){if(t.component?.id){let r=t.component?.props.child;return r.content?[To(e,r.content,n)]:[]}return t.childs?t.childs.map(r=>{if(r){let i=e[r.id];if(i&&i.item)return To(e,i.item,n)}}).filter(r=>r):[]},get props(){if(t.component?.props){let r={};for(let[i,o]of Object.entries(t.component.props))if(o.content){let a=t.component?.props?.[i]?.content;a?r[i]={mode:"jsx",value:To(e,a,n)}:r[i]={mode:"jsx",value:null}}else{let a=typeof o.valueBuilt=="string"?o.valueBuilt.trim():"";if(a.endsWith(`; `)&&(a=a.substring(0,a.length-2)),a&&a===o.value.trim()){let s=new Function(`return ${o.value}`);r[i]={mode:"string",value:s()}}else r[i]={mode:"raw",value:o.value,valueBuilt:o.valueBuilt}}return r}},async commit(){},get parent(){let r=e[t.id];if(r&&r.parent?.id){let i=e[r.parent.id];return To(e,i.item,n)}return null},pending:[],setProp(r,i){},setValue(r,i){}}});var wm=G(ge()),zx=(e,t,n,r,i,o)=>{let a=ms(e,t,n,r,i);e.visit&&e.visit(t,a),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:jx(e,n,t),PassProp:Fx(e,n,t,r,i)};let s=t.script,u=window.exports,f={useEffect:wi.useEffect,children:a.props.children,props:a.props,Local:s?.Local,db:e.site.db,api:e.site.api,PassProp:s?.PassProp,ErrorBox:kn,newElement:()=>{},__props:r,_item:t.mitem?Oo(e.meta,t.mitem,e.page.cur.id):To(e.meta,t.item,e.page.cur.id),_meta:e.meta,render:p=>{let v=p;if((0,wi.isValidElement)(p)&&p.props.children){let S=y=>{let w=!1,_=[];if((0,wi.isValidElement)(y)){if(y.type===t.script?.PassProp)return{should_replace:!0,el:{...y,props:{...y.props,internal_key:y.key}}};if(Array.isArray(y.props?.children))for(let x of y.props?.children)if(Array.isArray(x)){let N=[],D=!1;for(let A of x){let M=S(A);M.should_replace?(N.push(M.el),D=!0):N.push(A)}D?(w=!0,_.push(N)):_.push(x)}else typeof x=="object"&&x?x.type===t.script?.PassProp&&(w=!0,_.push({...x,props:{...x.props,internal_key:x.props.key}})):_.push(x)}return{should_replace:w,el:{...y,props:{...y.props,children:_}}}},b=S(p);b.should_replace&&(v=b.el)}s&&(s.result=(0,wm.jsx)(wi.Suspense,{children:v}))},params,...Fu(e),...u,...r};if(typeof r=="object"){for(let[p,v]of Object.entries(r))if(typeof v=="object"&&v&&v._jsx){let S=v;f[p]=(0,wm.jsx)(D3,{fn:S.fn,passprop:{...r},meta:t})}}!At.isEditor&&t.item.adv?.js&&ju(e,t.item.adv.js);let l=t.item.adv?.jsBuilt||"",d=xm(l,_m)||"",c=`// ${t.item.name}: ${t.item.id} try { ${d} } catch (e) { console.error(\`\\ Error in item ${t.item.name}: ${t.item.id} \${__js} ERROR: \${e.message} \`) } `;try{new Function(...Object.keys(f),"__js",c)(...Object.values(f),t.item.adv?.js)}catch(p){console.error(` // Syntax Error in ${t.item.name}: ${t.item.id} // arg: ${Object.keys(f).join(", ")} ${c} ${p.message} `)}zu(e,t,r,o)},D3=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),_m={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},xm=(e,t)=>{let n=e;for(let[r,i]of Object.entries(t))n=n.replaceAll(r,i);return n};var Hx=G(ge());var $x=(e,t,n,r,i,o)=>{if(t.item.component?.id){let a=t.item.script;if(o?(t.item.script_keyed||(t.item.script_keyed={}),t.item.script_keyed[o]||(t.item.script_keyed[o]={}),a=t.item.script_keyed[o]):(t.item.script||(t.item.script={}),a=t.item.script),!a)return;let u={...window.exports,db:e.site.db,api:e.site.api,...Fu(e),...r,params};a.props={};let f=new Set;if(t.item.component.props){let l={};for(let[d,c]of Object.entries(t.item.component.props))try{if(c.meta?.type==="content-element"){let y={_jsx:!0,fn:w=>{let _=c.content?.id;if(_){let x=n?e.layout?.meta[_]:e.meta[_];if(!x)return null;let N=t.instances;if(!w.meta.item.originalId||!N||!N[t.item.id])return null;let A=w.meta.item.originalId;if(x.mitem&&(c.jsxCalledBy&&(!c.jsxCalledBy.includes(A)||c.jsxCalledBy.length!==2)||!c.jsxCalledBy)){let M=t.mitem?.get("component")?.get("props")?.get(d);if(M){let W=M.get("jsxCalledBy");!W||typeof W!="object"?M.set("jsxCalledBy",[t.item.id,A]):Array.isArray(W)&&(!W.includes(A)||W.length!==2||W[0]!==t.item.id||W[1]!==A)&&M.set("jsxCalledBy",[t.item.id,A])}}return(0,Hx.jsx)(Zn,{meta:x,passprop:w.passprop,is_layout:n,depth:i+1})}return null}};u[d]=y,r&&(r[d]=y);continue}if(c.value&&ju(e,c.value),!c.valueBuilt&&c.value&&t.mitem){let y=t.mitem?.get("component")?.get("props")?.get(d);if(y){M3(y,c.value);return}}let p=c.valueBuilt||"",v=xm(p,_m)||"",S=new Function(...Object.keys(u),`// [${t.item.name}] ${d}: ${t.item.id} return ${v} `);a.props[d]={value:v,valueBuilt:v};let b=S(...Object.values(u));typeof b=="function"&&(b=(...y)=>new Function(...Object.keys(u),`// [${t.item.name}] ${d}: ${t.item.id} return ${v.trim()} `)(...Object.values(u))(...y)),u[d]=b,l[d]=b,r&&(r[d]=b)}catch{f.add(d)}if(location.pathname.startsWith("/ed/")&&bo.item_id&&t.item.id===bo.item_id){bo.scope={};for(let[d,c]of Object.entries(r))bo.scope[d]=c;bo.scope.self_props=l}}}},Kt={timeout:null,set:new WeakSet,map:{},src:{}},M3=(e,t)=>{if(!Kt.set.has(e)){Kt.set.add(e);let n=(0,Bx.createId)();Kt.map[n]={mprop:e},Kt.src[n]=t}clearTimeout(Kt.timeout),Kt.timeout=setTimeout(async()=>{let n=await _api.code_build(Kt.src),r=null;for(let[i,o]of Object.entries(n)){let a=Kt.map[i].mprop;if(!r&&a.doc){r=a.doc;break}}r&&(r.transact(()=>{for(let[i,o]of Object.entries(n))Kt.map[i].mprop.set("valueBuilt",o)}),Kt.set=new WeakSet,Kt.map={},Kt.src={})},300)},zu=(e,t,n,r)=>{let i=r?t.item.script_keyed?.[r]:t.item.script;if(i&&i.props){let o={...n,api:e.site.api,db:e.site.db};for(let[a,s]of Object.entries(i.props))if(s.fn){let u=new Function(...Object.keys(o),`// [${t.item.name}] ${a}: ${t.item.id} return ${s.value||""} `);s.fn=u(...Object.values(o))}}};var Sm=G(ge()),km=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{let o=_r(Ur,"VI"),[a,s]=(0,Wx.useState)({});e.render=()=>{s({})};let u=t;return e.item.component?.id&&(u||(u={}),$x(o,e,n,u,i,r)),e.item.adv?.html?(0,Sm.jsx)(Bu,{meta:e,passprop:u,is_layout:n,depth:i}):e.item.adv?.js&&(zx(o,e,n,u,i,r),e.script)?e.script.result:(0,Sm.jsx)(Bu,{meta:e,passprop:u,is_layout:n,depth:i})};var nt=G(ge()),L3=70,U3={debug:!!localStorage.getItem("prasi-js-debug")},$u={enabled:!1,meta:{}},Zn=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{if($u.enabled){let o=$u.meta;if(o[e.item.id]?o[e.item.id].last_render===Math.floor(Date.now()/1e3)?o[e.item.id].count++:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},o[e.item.id]?.count>L3)return(0,nt.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,nt.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,nt.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",o[e.item.id]?.count," times in less than 1 second."]})]})}if(!e||e.item.hidden)return null;if(U3.debug){let o="";for(let a=0;a{let o=_r(Ur,"VI");if(n&&e.item.name==="children"){let s=[];for(let u of o.entry){let f=o.meta[u];if(f.item.adv?.js||f.item.component?.id)s.push((0,nt.jsx)(kn,{meta:f,children:(0,nt.jsx)(km,{meta:f,is_layout:!1,passprop:{...t},parent_key:r,depth:i+1})}));else{let l=ms(o,f,!1,t,i);o.visit&&o.visit(f,l),s.push((0,nt.jsx)("div",{...l.props}))}}return(0,nt.jsx)(nt.Fragment,{children:s.map((u,f)=>(0,nt.jsx)(Vx.Fragment,{children:u},f))})}let a=ms(o,e,n,t,i);return o.visit&&o.visit(e,a),(0,nt.jsx)("div",{...a.props})};m();g();h();m();g();h();m();g();h();var Lt=window,Yx=async(e,t)=>{window.parent&&(window.addEventListener("message",async({data:n})=>{if(typeof n=="object"&&n.mobile){let r=n,i=async o=>{if(!Lt.notif?.onTap){let a=null,s=0;await new Promise(()=>{a=setInterval(()=>{s++,s>20&&clearInterval(a),o()&&clearInterval(a)},500)});return}};switch(r.type){case"notification-token":t.notif={token:r.token},Lt.notif={async send(o){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof o.user_id=="string"?o.user_id:o.user_id.toString(),body:o.body,title:o.title,data:o.data})},async register(o){if(e&&e.site.api&&t.notif?.token)return await e.site.api._notif("register",{type:"register",id:typeof o=="string"?o:o.toString(),token:t.notif.token})},onReceive(o){},onTap(o){}};break;case"notification-tap":if(!Lt.notif?.onTap){i(()=>Lt.notif?.onTap?(Lt.notif?.onTap(r.notif),!0):!1);return}Lt.notif?.onTap&&Lt.notif?.onTap(r.notif);break;case"notification-receive":Lt.notif?.onReceive||i(()=>Lt.notif?.onReceive?(Lt.notif?.onReceive(r.notif),!0):!1),Lt.notif?.onReceive&&Lt.notif?.onReceive(r.notif);break}}}),window.parent.postMessage({mobile:!0,type:"ready"},"*")),Lt.notif={async send(n){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof n.user_id=="string"?n.user_id:n.user_id.toString(),body:n.body,title:n.title,data:n.data})}}};m();g();h();var bm=window;bm.prasi_ext||(bm.prasi_ext={});var Hu=bm.prasi_ext;var Gx=async e=>{let t=Hu[e.site.id];if(t||(Hu[e.site.id]={status:"init"},t=Hu[e.site.id]),t.status==="init"){if(t.status="loading",window.parent!==window){let n=r=>{window.parent.postMessage({mobile:!0,...r},"*")};window.addEventListener("message",async({data:r})=>{console.log(r),typeof r=="object"&&r.mobile}),n({type:"ready"})}await Yx(e,t),t.status="ready"}};var Ro=G(ge()),Zx=({})=>{let e=_r(Ur,"VI"),t=wr({tick:Date.now()});if(e.tick=t.tick,Gx(e),e.status!=="ready")return(0,Ro.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,Ro.jsx)(ds,{backdrop:!1})});let n=!!e.layout?.entry&&e.layout.entry.length>0,r=e.entry;return n&&e.layout?.entry&&(r=e.layout?.entry),(0,Ro.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(i=>{let o=n?e.layout?.meta[i]:e.meta[i];return o&&Element?(0,Ro.jsx)(kn,{children:(0,Ro.jsx)(Zn,{meta:o,is_layout:n,depth:0})},o.item.id):null})})};var Wu=G(ge()),En=window;En.prasi_internal||(En.prasi_internal={page:{id:""}});var qx=({meta:e,entry:t,api_url:n,site_id:r,api:i,mode:o,db:a,visit:s,script:u,preloaded:f,page_id:l,render_stat:d,on_status_changed:c,on_preload:p,layout:v,comp_load:S})=>{let b=_r(Ur,"VI");return b.mode=o,b.entry=t,b.on_preload=p,b.comp.load=S,l&&(En.prasi_internal.page.id=l),En.siteurl=(y,w)=>{if(y.startsWith("http://")||y.startsWith("https://"))return y;try{["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550"?b.site.api_url&&(b.site_url||(b.site_url=new URL(b.site.api_url))):b.site_url||(w&&b.site.api_url?b.site_url=new URL(b.site.api_url):b.site_url=new URL(location.href),b.site_url.pathname="")}catch{}if(b.site_url){let _=b.site_url,x=y;return x.startsWith("/")||(x="/"+x),En.prasiContext.siteUrl&&(x=En.prasiContext.siteUrl(x)),`${_.protocol}//${_.host}${x}`}return y},En.isMobile=o==="mobile",En.isDesktop=o==="desktop",En.preloaded=f||(y=>{}),En.preload=(y,w)=>{if(b.on_preload)return new Promise(_=>{b.page.navs[l]||(b.page.navs[l]=new Set);let x=b.page.navs[l],N=typeof y=="string"?[y]:y,D=!0;for(let A of N)x.has(A)||(x.add(A),D=!1);D?_():(b.page.preload.push(_),b.on_preload?.({urls:Array.from(b.page.navs[l]),opt:{on_load:(...A)=>{w?.on_load?.(...A);for(let M of b.page.preload)M();b.page.preload=[],b.render()}}}))})},b.layout=v,b.page.cur.id=l,b.on_status_changes=c,d==="disabled"&&($u.enabled=!1),b.meta!==e&&(b.meta=e),u&&(b.script.init_local_effect=u.init_local_effect),b.visit=s,b.status==="init"&&(b.site.db=a,b.site.api=i,ax(b,{api_url:n,site_id:r})),p&&(0,Vu.useEffect)(()=>{setTimeout(()=>{let y=b.page.navs[b.page.cur.id];y&&p({urls:Array.from(y),opt:{on_load(w){}}})},500)},[b.page.cur.id]),(0,Wu.jsx)(kn,{children:(0,Wu.jsx)(Vu.Suspense,{children:(0,Wu.jsx)(Zx,{})})})};m();g();h();var Qx=e=>new Promise(async t=>{let n=!1,r=await Gd(`page-${e}`);r&&(t(r),n=!0);let i=await(await fetch(B.url`_prasi/page/${e}`)).json();n||t(i)}),F3=e=>new Promise(async t=>{let n={},r=[...new Set(e)],i=!0;for(let a of r){let s=await Gd(`page-${a}`);if(s)n[a]=s;else{i=!1;break}}i&&t(n);let o=await(await fetch(B.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();i||t(o)}),Kx=async e=>{let t=e.map(r=>B.route.router?.lookup(r)).filter(r=>r&&r.id);return await F3(t.map(r=>r?.id))};m();g();h();var Jx=G(Xx()),eS=()=>{let e=B;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Jx.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};m();g();h();var Le=window;var qn=G(ge()),Om=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",nS=()=>{let e=wr({page_id:""}),[t,n]=(0,tS.useState)({}),r=()=>n({});Le.prasiContext.render=r;let i=vd.Provider,o=Om()&&location.pathname.startsWith("/prod");if(B.route.status!=="ready")return B.route.status==="init"&&(B.route.status="loading",K1().then(async({router:l,pages:d})=>{eS(),B.route.status="ready",B.route.router=l,B.route.pages=d;let c=Le._prasi.basepath,p=`${c.endsWith("/")?c:`${c}/`}_prasi/code/index.js`,v=new URL(location.href);p.startsWith("/")&&(p=`${v.protocol}//${v.host}${p}`);let S=new Function("callback",`import("${p}").then(callback)`);await new Promise(b=>{S(y=>{for(let[w,_]of Object.entries(y))Le[w]=_;b()})}),r()})),(0,qn.jsx)(ds,{});let a=B.route.router;if(!a)return(0,qn.jsx)(am,{children:"Failed to create Router"});let s="";if(o){let l=location.pathname.split("/");om(l[3])&&(s=l[3])}let u=null;if(Le._prasi.page_id)a.insert(B.pathname,{id:Le._prasi.page_id,url:B.pathname}),u={id:Le._prasi.page_id,url:"",params:Le._prasi.params},Le._prasi.routed={page_id:Le._prasi.page_id,params:Le._prasi.params},delete Le._prasi.page_id,delete Le._prasi.params;else{if(u=a.lookup(B.pathname),s){let l=B.route.pages.find(d=>s===d.id);l&&(u=l)}u&&Le._prasi.routed&&Le._prasi.routed.page_id===u.id&&Le._prasi.routed.params&&(u.params=Le._prasi.routed.params)}if(!u)return(0,qn.jsx)(am,{children:"Page Not Found"});u.id!==e.page_id&&(B.init_local_effect={},ex({type:"page",id:u.id})),Le.params=u.params||{},B.page.id=u.id,B.page.url=u.url;let f=B.page.cache[u.id];if(f)B.page.root=f.root,B.page.meta=f.meta;else return Qx(u.id).then(async({root:l})=>{if(u){let d={id:u.id,url:u.url,root:l,meta:{}};await Or(l.childs,!0),xo(d.meta,l),B.page.cache[d.id]=d,r()}}).catch(()=>{r()}),(0,qn.jsx)(ds,{note:"Loading page"});return(0,qn.jsx)(i,{value:Le.prasiContext,children:(0,qn.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,qn.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",B.mode==="mobile"?css` @media (min-width: 768px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; width: 375px; top: 0px; overflow-x: hidden; overflow-y: auto; bottom: 0px; } @media (max-width: 767px) { left: 0px; right: 0px; top: 0px; bottom: 0px; overflow-y: auto; } `:"inset-0 overflow-auto",css` contain: content; `),children:(0,qn.jsx)(qx,{api_url:B.site.api_url,entry:Object.values(B.page.root.childs).filter(l=>l).map(l=>l.id),meta:B.page.meta,mode:B.mode,page_id:B.page.id,site_id:B.site.id,db:B.site.db,api:B.site.api,preloaded:l=>{let d=B.route.router?.lookup(l);return!!(d&&B.page.cache[d.id])},comp_load:async l=>{let d=B.comp;if(d.list[l])return d.list[l];try{let c=await(await fetch(B.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[l]})})).json();for(let[p,v]of Object.entries(c))delete d.pending[p],d.list[p]=v,await Kl(`comp-${p}`,v)}catch{}return d.list[l]},layout:B.layout.id&&B.layout.root&&B.layout.meta?{id:B.layout.id,meta:B.layout.meta,entry:Object.values(B.layout.root.childs).filter(l=>l).map(l=>l.id)}:void 0,script:{init_local_effect:B.init_local_effect},on_preload:async({urls:l,opt:d})=>{let c=[];if(B.cache.urls)for(let p of l)B.cache.urls.has(p)||(c.push(p),B.cache.urls.add(p));if(c.length>0){let p=await Kx(c);if(d?.on_load&&d.on_load(p,j3),Array.isArray(p))for(let v of p){let S={id:v.id,url:v.url,root:v.root,meta:{}};await Or(v.root.childs),xo(S.meta,v.root),B.page.cache[S.id]=S}}}})})})})},j3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Em(r,t)},Em=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Em(n.content,t);for(let n of e.childs)Em(n,t)}};var iS=G(ge());(async()=>{import("./font-PYFUZD3A.js"),J1(),Ry();let e=document.getElementById("root");if(e){await Ty(!1);let t={root:(0,rS.createRoot)(e)};ky(),Le.navigateOverride=n=>(n&&n.startsWith("/")&&Om()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,iS.jsx)(nS,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) react/cjs/react-jsx-dev-runtime.production.min.js: (** * @license React * react-jsx-dev-runtime.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. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) @noble/hashes/utils.js: (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *) pako/dist/pako.esm.mjs: (*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *) */