diff --git "a/assets/index-o3d8lRyj.js" "b/assets/index-o3d8lRyj.js" new file mode 100644--- /dev/null +++ "b/assets/index-o3d8lRyj.js" @@ -0,0 +1,33 @@ +var Cc=Object.defineProperty;var Ac=(e,t,r)=>t in e?Cc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ct=(e,t,r)=>Ac(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const u of i)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&n(h)}).observe(document,{childList:!0,subtree:!0});function r(i){const u={};return i.integrity&&(u.integrity=i.integrity),i.referrerPolicy&&(u.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?u.credentials="include":i.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function n(i){if(i.ep)return;i.ep=!0;const u=r(i);fetch(i.href,u)}})();/** +* @vue/shared v3.5.22 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function qa(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const ct={},Yr=[],ir=()=>{},Au=()=>!1,di=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Za=e=>e.startsWith("onUpdate:"),Pt=Object.assign,Ya=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Fc=Object.prototype.hasOwnProperty,ut=(e,t)=>Fc.call(e,t),ze=Array.isArray,Jr=e=>hi(e)==="[object Map]",Fu=e=>hi(e)==="[object Set]",We=e=>typeof e=="function",wt=e=>typeof e=="string",vr=e=>typeof e=="symbol",vt=e=>e!==null&&typeof e=="object",Ku=e=>(vt(e)||We(e))&&We(e.then)&&We(e.catch),Ru=Object.prototype.toString,hi=e=>Ru.call(e),Kc=e=>hi(e).slice(8,-1),Xu=e=>hi(e)==="[object Object]",Ja=e=>wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mn=qa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pi=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Rc=/-\w/g,ar=pi(e=>e.replace(Rc,t=>t.slice(1).toUpperCase())),Xc=/\B([A-Z])/g,Er=pi(e=>e.replace(Xc,"-$1").toLowerCase()),Tu=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ei=pi(e=>e?`on${Tu(e)}`:""),Sr=(e,t)=>!Object.is(e,t),ti=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Ta=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ko;const _i=()=>Ko||(Ko=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(ze(e)){const t={};for(let r=0;r{if(r){const n=r.split(Pc);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function sn(e){let t="";if(wt(e))t=e;else if(ze(e))for(let r=0;r!!(e&&e.__v_isRef===!0),Pa=e=>wt(e)?e:e==null?"":ze(e)||vt(e)&&(e.toString===Ru||!We(e.toString))?Lu(e)?Pa(e.value):JSON.stringify(e,Ou,2):String(e),Ou=(e,t)=>Lu(t)?Ou(e,t.value):Jr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],u)=>(r[Xi(n,u)+" =>"]=i,r),{})}:Fu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Xi(r))}:vr(t)?Xi(t):vt(t)&&!ze(t)&&!Xu(t)?String(t):t,Xi=(e,t="")=>{var r;return vr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.5.22 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Rt;class Du{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Rt,!t&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0&&--this._on===0&&(Rt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r0)return;if(wn){let t=wn;for(wn=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;xn;){let t=xn;for(xn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Uu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ju(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),ro(n),Qc(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function Ma(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===An)||(e.globalVersion=An,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ma(e))))return;e.flags|=2;const t=e.dep,r=ht,n=qt;ht=e,qt=!0;try{Uu(e);const i=e.fn(e._value);(t.version===0||Sr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ht=r,qt=n,ju(e),e.flags&=-3}}function ro(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let u=r.computed.deps;u;u=u.nextDep)ro(u,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function Qc(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let qt=!0;const Vu=[];function pr(){Vu.push(qt),qt=!1}function _r(){const e=Vu.pop();qt=e===void 0?!0:e}function Ro(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=ht;ht=void 0;try{t()}finally{ht=r}}}let An=0;class Uc{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ht||!qt||ht===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==ht)r=this.activeLink=new Uc(ht,this),ht.deps?(r.prevDep=ht.depsTail,ht.depsTail.nextDep=r,ht.depsTail=r):ht.deps=ht.depsTail=r,zu(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=ht.depsTail,r.nextDep=void 0,ht.depsTail.nextDep=r,ht.depsTail=r,ht.deps===r&&(ht.deps=n)}return r}trigger(t){this.version++,An++,this.notify(t)}notify(t){eo();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{to()}}}function zu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)zu(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const ii=new WeakMap,Or=Symbol(""),La=Symbol(""),Fn=Symbol("");function Xt(e,t,r){if(qt&&ht){let n=ii.get(e);n||ii.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new vi),i.map=n,i.key=r),i.track()}}function dr(e,t,r,n,i,u){const h=ii.get(e);if(!h){An++;return}const v=a=>{a&&a.trigger()};if(eo(),t==="clear")h.forEach(v);else{const a=ze(e),d=a&&Ja(r);if(a&&r==="length"){const o=Number(n);h.forEach((g,l)=>{(l==="length"||l===Fn||!vr(l)&&l>=o)&&v(g)})}else switch((r!==void 0||h.has(void 0))&&v(h.get(r)),d&&v(h.get(Fn)),t){case"add":a?d&&v(h.get("length")):(v(h.get(Or)),Jr(e)&&v(h.get(La)));break;case"delete":a||(v(h.get(Or)),Jr(e)&&v(h.get(La)));break;case"set":Jr(e)&&v(h.get(Or));break}}to()}function jc(e,t){const r=ii.get(e);return r&&r.get(t)}function Hr(e){const t=at(e);return t===e?t:(Xt(t,"iterate",Fn),Zt(e)?t:t.map(Ot))}function no(e){return Xt(e=at(e),"iterate",Fn),e}const Hc={__proto__:null,[Symbol.iterator](){return Pi(this,Symbol.iterator,Ot)},concat(...e){return Hr(this).concat(...e.map(t=>ze(t)?Hr(t):t))},entries(){return Pi(this,"entries",e=>(e[1]=Ot(e[1]),e))},every(e,t){return ur(this,"every",e,t,void 0,arguments)},filter(e,t){return ur(this,"filter",e,t,r=>r.map(Ot),arguments)},find(e,t){return ur(this,"find",e,t,Ot,arguments)},findIndex(e,t){return ur(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ur(this,"findLast",e,t,Ot,arguments)},findLastIndex(e,t){return ur(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ur(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mi(this,"includes",e)},indexOf(...e){return Mi(this,"indexOf",e)},join(e){return Hr(this).join(e)},lastIndexOf(...e){return Mi(this,"lastIndexOf",e)},map(e,t){return ur(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return Xo(this,"reduce",e,t)},reduceRight(e,...t){return Xo(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return ur(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Hr(this).toReversed()},toSorted(e){return Hr(this).toSorted(e)},toSpliced(...e){return Hr(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return Pi(this,"values",Ot)}};function Pi(e,t,r){const n=no(e),i=n[t]();return n!==e&&!Zt(e)&&(i._next=i.next,i.next=()=>{const u=i._next();return u.done||(u.value=r(u.value)),u}),i}const Vc=Array.prototype;function ur(e,t,r,n,i,u){const h=no(e),v=h!==e&&!Zt(e),a=h[t];if(a!==Vc[t]){const g=a.apply(e,u);return v?Ot(g):g}let d=r;h!==e&&(v?d=function(g,l){return r.call(this,Ot(g),l,e)}:r.length>2&&(d=function(g,l){return r.call(this,g,l,e)}));const o=a.call(h,d,n);return v&&i?i(o):o}function Xo(e,t,r,n){const i=no(e);let u=r;return i!==e&&(Zt(e)?r.length>3&&(u=function(h,v,a){return r.call(this,h,v,a,e)}):u=function(h,v,a){return r.call(this,h,Ot(v),a,e)}),i[t](u,...n)}function Mi(e,t,r){const n=at(e);Xt(n,"iterate",Fn);const i=n[t](...r);return(i===-1||i===!1)&&oo(r[0])?(r[0]=at(r[0]),n[t](...r)):i}function fn(e,t,r=[]){pr(),eo();const n=at(e)[t].apply(e,r);return to(),_r(),n}const zc=qa("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vr));function Gc(e){vr(e)||(e=String(e));const t=at(this);return Xt(t,"has",e),t.hasOwnProperty(e)}class Wu{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,u=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return u;if(r==="__v_raw")return n===(i?u?nf:Yu:u?Zu:qu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const h=ze(t);if(!i){let a;if(h&&(a=Hc[r]))return a;if(r==="hasOwnProperty")return Gc}const v=Reflect.get(t,r,pt(t)?t:n);if((vr(r)?Gu.has(r):zc(r))||(i||Xt(t,"get",r),u))return v;if(pt(v)){const a=h&&Ja(r)?v:v.value;return i&&vt(a)?nn(a):a}return vt(v)?i?nn(v):Kn(v):v}}class $u extends Wu{constructor(t=!1){super(!1,t)}set(t,r,n,i){let u=t[r];if(!this._isShallow){const a=Nr(u);if(!Zt(n)&&!Nr(n)&&(u=at(u),n=at(n)),!ze(t)&&pt(u)&&!pt(n))return a||(u.value=n),!0}const h=ze(t)&&Ja(r)?Number(r)e,Qn=e=>Reflect.getPrototypeOf(e);function Yc(e,t,r){return function(...n){const i=this.__v_raw,u=at(i),h=Jr(u),v=e==="entries"||e===Symbol.iterator&&h,a=e==="keys"&&h,d=i[e](...n),o=r?Oa:t?Da:Ot;return!t&&Xt(u,"iterate",a?La:Or),{next(){const{value:g,done:l}=d.next();return l?{value:g,done:l}:{value:v?[o(g[0]),o(g[1])]:o(g),done:l}},[Symbol.iterator](){return this}}}}function Un(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Jc(e,t){const r={get(i){const u=this.__v_raw,h=at(u),v=at(i);e||(Sr(i,v)&&Xt(h,"get",i),Xt(h,"get",v));const{has:a}=Qn(h),d=t?Oa:e?Da:Ot;if(a.call(h,i))return d(u.get(i));if(a.call(h,v))return d(u.get(v));u!==h&&u.get(i)},get size(){const i=this.__v_raw;return!e&&Xt(at(i),"iterate",Or),i.size},has(i){const u=this.__v_raw,h=at(u),v=at(i);return e||(Sr(i,v)&&Xt(h,"has",i),Xt(h,"has",v)),i===v?u.has(i):u.has(i)||u.has(v)},forEach(i,u){const h=this,v=h.__v_raw,a=at(v),d=t?Oa:e?Da:Ot;return!e&&Xt(a,"iterate",Or),v.forEach((o,g)=>i.call(u,d(o),d(g),h))}};return Pt(r,e?{add:Un("add"),set:Un("set"),delete:Un("delete"),clear:Un("clear")}:{add(i){!t&&!Zt(i)&&!Nr(i)&&(i=at(i));const u=at(this);return Qn(u).has.call(u,i)||(u.add(i),dr(u,"add",i,i)),this},set(i,u){!t&&!Zt(u)&&!Nr(u)&&(u=at(u));const h=at(this),{has:v,get:a}=Qn(h);let d=v.call(h,i);d||(i=at(i),d=v.call(h,i));const o=a.call(h,i);return h.set(i,u),d?Sr(u,o)&&dr(h,"set",i,u):dr(h,"add",i,u),this},delete(i){const u=at(this),{has:h,get:v}=Qn(u);let a=h.call(u,i);a||(i=at(i),a=h.call(u,i)),v&&v.call(u,i);const d=u.delete(i);return a&&dr(u,"delete",i,void 0),d},clear(){const i=at(this),u=i.size!==0,h=i.clear();return u&&dr(i,"clear",void 0,void 0),h}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Yc(i,e,t)}),r}function io(e,t){const r=Jc(e,t);return(n,i,u)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ut(r,i)&&i in n?r:n,i,u)}const ef={get:io(!1,!1)},tf={get:io(!1,!0)},rf={get:io(!0,!1)};const qu=new WeakMap,Zu=new WeakMap,Yu=new WeakMap,nf=new WeakMap;function af(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function of(e){return e.__v_skip||!Object.isExtensible(e)?0:af(Kc(e))}function Kn(e){return Nr(e)?e:ao(e,!1,$c,ef,qu)}function sf(e){return ao(e,!1,Zc,tf,Zu)}function nn(e){return ao(e,!0,qc,rf,Yu)}function ao(e,t,r,n,i){if(!vt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=of(e);if(u===0)return e;const h=i.get(e);if(h)return h;const v=new Proxy(e,u===2?n:r);return i.set(e,v),v}function kn(e){return Nr(e)?kn(e.__v_raw):!!(e&&e.__v_isReactive)}function Nr(e){return!!(e&&e.__v_isReadonly)}function Zt(e){return!!(e&&e.__v_isShallow)}function oo(e){return e?!!e.__v_raw:!1}function at(e){const t=e&&e.__v_raw;return t?at(t):e}function so(e){return!ut(e,"__v_skip")&&Object.isExtensible(e)&&Pu(e,"__v_skip",!0),e}const Ot=e=>vt(e)?Kn(e):e,Da=e=>vt(e)?nn(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function it(e){return Ju(e,!1)}function Dr(e){return Ju(e,!0)}function Ju(e,t){return pt(e)?e:new uf(e,t)}class uf{constructor(t,r){this.dep=new vi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:at(t),this._value=r?t:Ot(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Zt(t)||Nr(t);t=n?t:at(t),Sr(t,r)&&(this._rawValue=t,this._value=n?t:Ot(t),this.dep.trigger())}}function Fe(e){return pt(e)?e.value:e}function Ft(e){return We(e)?e():Fe(e)}const lf={get:(e,t,r)=>t==="__v_raw"?e:Fe(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return pt(i)&&!pt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function el(e){return kn(e)?e:new Proxy(e,lf)}class cf{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new vi,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ff(e){return new cf(e)}function an(e){const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=rl(e,r);return t}class df{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return jc(at(this._object),this._key)}}class hf{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function tl(e,t,r){return pt(e)?e:We(e)?new hf(e):vt(e)&&arguments.length>1?rl(e,t,r):it(e)}function rl(e,t,r){const n=e[t];return pt(n)?n:new df(e,t,r)}class pf{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new vi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=An-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ht!==this)return Qu(this,!0),!0}get value(){const t=this.dep.track();return Hu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _f(e,t,r=!1){let n,i;return We(e)?n=e:(n=e.get,i=e.set),new pf(n,i,r)}const jn={},ai=new WeakMap;let Lr;function vf(e,t=!1,r=Lr){if(r){let n=ai.get(r);n||ai.set(r,n=[]),n.push(e)}}function gf(e,t,r=ct){const{immediate:n,deep:i,once:u,scheduler:h,augmentJob:v,call:a}=r,d=x=>i?x:Zt(x)||i===!1||i===0?hr(x,1):hr(x);let o,g,l,s,p=!1,b=!1;if(pt(e)?(g=()=>e.value,p=Zt(e)):kn(e)?(g=()=>d(e),p=!0):ze(e)?(b=!0,p=e.some(x=>kn(x)||Zt(x)),g=()=>e.map(x=>{if(pt(x))return x.value;if(kn(x))return d(x);if(We(x))return a?a(x,2):x()})):We(e)?t?g=a?()=>a(e,2):e:g=()=>{if(l){pr();try{l()}finally{_r()}}const x=Lr;Lr=o;try{return a?a(e,3,[s]):e(s)}finally{Lr=x}}:g=ir,t&&i){const x=g,E=i===!0?1/0:i;g=()=>hr(x(),E)}const y=Iu(),_=()=>{o.stop(),y&&y.active&&Ya(y.effects,o)};if(u&&t){const x=t;t=(...E)=>{x(...E),_()}}let m=b?new Array(e.length).fill(jn):jn;const k=x=>{if(!(!(o.flags&1)||!o.dirty&&!x))if(t){const E=o.run();if(i||p||(b?E.some((S,A)=>Sr(S,m[A])):Sr(E,m))){l&&l();const S=Lr;Lr=o;try{const A=[E,m===jn?void 0:b&&m[0]===jn?[]:m,s];m=E,a?a(t,3,A):t(...A)}finally{Lr=S}}}else o.run()};return v&&v(k),o=new Bu(g),o.scheduler=h?()=>h(k,!1):k,s=x=>vf(x,!1,o),l=o.onStop=()=>{const x=ai.get(o);if(x){if(a)a(x,4);else for(const E of x)E();ai.delete(o)}},t?n?k(!0):m=o.run():h?h(k.bind(null,!0),!0):o.run(),_.pause=o.pause.bind(o),_.resume=o.resume.bind(o),_.stop=_,_}function hr(e,t=1/0,r){if(t<=0||!vt(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,pt(e))hr(e.value,t,r);else if(ze(e))for(let n=0;n{hr(n,t,r)});else if(Xu(e)){for(const n in e)hr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&hr(e[n],t,r)}return e}/** +* @vue/runtime-core v3.5.22 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Mn(e,t,r,n){try{return n?e(...n):e()}catch(i){gi(i,t,r)}}function or(e,t,r,n){if(We(e)){const i=Mn(e,t,r,n);return i&&Ku(i)&&i.catch(u=>{gi(u,t,r)}),i}if(ze(e)){const i=[];for(let u=0;u>>1,i=Dt[n],u=Rn(i);u=Rn(r)?Dt.push(e):Dt.splice(bf(t),0,e),e.flags|=1,il()}}function il(){oi||(oi=nl.then(ol))}function mf(e){ze(e)?en.push(...e):xr&&e.id===-1?xr.splice(qr+1,0,e):e.flags&1||(en.push(e),e.flags|=1),il()}function To(e,t,r=tr+1){for(;rRn(r)-Rn(n));if(en.length=0,xr){xr.push(...t);return}for(xr=t,qr=0;qre.id==null?e.flags&2?-1:1/0:e.id;function ol(e){try{for(tr=0;tr{n._d&&ci(-1);const u=si(t);let h;try{h=e(...i)}finally{si(u),n._d&&ci(1)}return h};return n._n=!0,n._c=!0,n._d=!0,n}function xf(e,t){if(Tt===null)return e;const r=xi(Tt),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Sf=Symbol("_leaveCb");function lo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,lo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function At(e,t){return We(e)?Pt({name:e.name},t,{setup:e}):e}function Li(){const e=Vt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ul(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Po(e){const t=Vt(),r=Dr(null);if(t){const i=t.refs===ct?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>r.value,set:u=>r.value=u})}return r}const ui=new WeakMap;function Sn(e,t,r,n,i=!1){if(ze(e)){e.forEach((p,b)=>Sn(p,t&&(ze(t)?t[b]:t),r,n,i));return}if(tn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Sn(e,t,r,n.component.subTree);return}const u=n.shapeFlag&4?xi(n.component):n.el,h=i?null:u,{i:v,r:a}=e,d=t&&t.r,o=v.refs===ct?v.refs={}:v.refs,g=v.setupState,l=at(g),s=g===ct?Au:p=>ut(l,p);if(d!=null&&d!==a){if(Mo(t),wt(d))o[d]=null,s(d)&&(g[d]=null);else if(pt(d)){d.value=null;const p=t;p.k&&(o[p.k]=null)}}if(We(a))Mn(a,v,12,[h,o]);else{const p=wt(a),b=pt(a);if(p||b){const y=()=>{if(e.f){const _=p?s(a)?g[a]:o[a]:a.value;if(i)ze(_)&&Ya(_,u);else if(ze(_))_.includes(u)||_.push(u);else if(p)o[a]=[u],s(a)&&(g[a]=o[a]);else{const m=[u];a.value=m,e.k&&(o[e.k]=m)}}else p?(o[a]=h,s(a)&&(g[a]=h)):b&&(a.value=h,e.k&&(o[e.k]=h))};if(h){const _=()=>{y(),ui.delete(e)};_.id=-1,ui.set(e,_),Ut(_,r)}else Mo(e),y()}}}function Mo(e){const t=ui.get(e);t&&(t.flags|=8,ui.delete(e))}_i().requestIdleCallback;_i().cancelIdleCallback;const tn=e=>!!e.type.__asyncLoader,ll=e=>e.type.__isKeepAlive;function Ef(e,t){cl(e,"a",t)}function Cf(e,t){cl(e,"da",t)}function cl(e,t,r=It){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(yi(t,n,r),r){let i=r.parent;for(;i&&i.parent;)ll(i.parent.vnode)&&Af(n,t,r,i),i=i.parent}}function Af(e,t,r,n){const i=yi(t,e,n,!0);On(()=>{Ya(n[t],i)},r)}function yi(e,t,r=It,n=!1){if(r){const i=r[e]||(r[e]=[]),u=t.__weh||(t.__weh=(...h)=>{pr();const v=In(r),a=or(t,r,e,h);return v(),_r(),a});return n?i.unshift(u):i.push(u),u}}const gr=e=>(t,r=It)=>{(!Tn||e==="sp")&&yi(e,(...n)=>t(...n),r)},Ff=gr("bm"),Ln=gr("m"),Kf=gr("bu"),Rf=gr("u"),Xf=gr("bum"),On=gr("um"),Tf=gr("sp"),Pf=gr("rtg"),Mf=gr("rtc");function Lf(e,t=It){yi("ec",e,t)}const Of=Symbol.for("v-ndc");function Yt(e,t,r={},n,i){if(Tt.ce||Tt.parent&&tn(Tt.parent)&&Tt.parent.ce){const d=Object.keys(r).length>0;return ft(),Kt(jt,null,[rt("slot",r,n)],d?-2:64)}let u=e[t];u&&u._c&&(u._d=!1),ft();const h=u&&fl(u(r)),v=r.key||h&&h.key,a=Kt(jt,{key:(v&&!vr(v)?v:`_${t}`)+(!h&&n?"_fb":"")},h||[],h&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),u&&u._c&&(u._d=!0),a}function fl(e){return e.some(t=>nr(t)?!(t.type===sr||t.type===jt&&!fl(t.children)):!0)?e:null}const Ia=e=>e?Tl(e)?xi(e):Ia(e.parent):null,En=Pt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ia(e.parent),$root:e=>Ia(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hl(e),$forceUpdate:e=>e.f||(e.f=()=>{uo(e.update)}),$nextTick:e=>e.n||(e.n=Ur.bind(e.proxy)),$watch:e=>nd.bind(e)}),Oi=(e,t)=>e!==ct&&!e.__isScriptSetup&&ut(e,t),Df={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:u,accessCache:h,type:v,appContext:a}=e;let d;if(t[0]!=="$"){const s=h[t];if(s!==void 0)switch(s){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return u[t]}else{if(Oi(n,t))return h[t]=1,n[t];if(i!==ct&&ut(i,t))return h[t]=2,i[t];if((d=e.propsOptions[0])&&ut(d,t))return h[t]=3,u[t];if(r!==ct&&ut(r,t))return h[t]=4,r[t];Ba&&(h[t]=0)}}const o=En[t];let g,l;if(o)return t==="$attrs"&&Xt(e.attrs,"get",""),o(e);if((g=v.__cssModules)&&(g=g[t]))return g;if(r!==ct&&ut(r,t))return h[t]=4,r[t];if(l=a.config.globalProperties,ut(l,t))return l[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:u}=e;return Oi(i,t)?(i[t]=r,!0):n!==ct&&ut(n,t)?(n[t]=r,!0):ut(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:u,type:h}},v){let a,d;return!!(r[v]||e!==ct&&v[0]!=="$"&&ut(e,v)||Oi(t,v)||(a=u[0])&&ut(a,v)||ut(n,v)||ut(En,v)||ut(i.config.globalProperties,v)||(d=h.__cssModules)&&d[v])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:ut(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Lo(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Ba=!0;function If(e){const t=hl(e),r=e.proxy,n=e.ctx;Ba=!1,t.beforeCreate&&Oo(t.beforeCreate,e,"bc");const{data:i,computed:u,methods:h,watch:v,provide:a,inject:d,created:o,beforeMount:g,mounted:l,beforeUpdate:s,updated:p,activated:b,deactivated:y,beforeDestroy:_,beforeUnmount:m,destroyed:k,unmounted:x,render:E,renderTracked:S,renderTriggered:A,errorCaptured:F,serverPrefetch:M,expose:O,inheritAttrs:H,components:z,directives:W,filters:q}=t;if(d&&Bf(d,n,null),h)for(const pe in h){const oe=h[pe];We(oe)&&(n[pe]=oe.bind(r))}if(i){const pe=i.call(r,r);vt(pe)&&(e.data=Kn(pe))}if(Ba=!0,u)for(const pe in u){const oe=u[pe],ge=We(oe)?oe.bind(r,r):We(oe.get)?oe.get.bind(r,r):ir,j=!We(oe)&&We(oe.set)?oe.set.bind(r):ir,le=ot({get:ge,set:j});Object.defineProperty(n,pe,{enumerable:!0,configurable:!0,get:()=>le.value,set:we=>le.value=we})}if(v)for(const pe in v)dl(v[pe],n,r,pe);if(a){const pe=We(a)?a.call(r):a;Reflect.ownKeys(pe).forEach(oe=>{co(oe,pe[oe])})}o&&Oo(o,e,"c");function de(pe,oe){ze(oe)?oe.forEach(ge=>pe(ge.bind(r))):oe&&pe(oe.bind(r))}if(de(Ff,g),de(Ln,l),de(Kf,s),de(Rf,p),de(Ef,b),de(Cf,y),de(Lf,F),de(Mf,S),de(Pf,A),de(Xf,m),de(On,x),de(Tf,M),ze(O))if(O.length){const pe=e.exposed||(e.exposed={});O.forEach(oe=>{Object.defineProperty(pe,oe,{get:()=>r[oe],set:ge=>r[oe]=ge,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===ir&&(e.render=E),H!=null&&(e.inheritAttrs=H),z&&(e.components=z),W&&(e.directives=W),M&&ul(e)}function Bf(e,t,r=ir){ze(e)&&(e=Na(e));for(const n in e){const i=e[n];let u;vt(i)?"default"in i?u=Br(i.from||n,i.default,!0):u=Br(i.from||n):u=Br(i),pt(u)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>u.value,set:h=>u.value=h}):t[n]=u}}function Oo(e,t,r){or(ze(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function dl(e,t,r,n){let i=n.includes(".")?Cl(r,n):()=>r[n];if(wt(e)){const u=t[e];We(u)&&Bt(i,u)}else if(We(e))Bt(i,e.bind(r));else if(vt(e))if(ze(e))e.forEach(u=>dl(u,t,r,n));else{const u=We(e.handler)?e.handler.bind(r):t[e.handler];We(u)&&Bt(i,u,e)}}function hl(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:u,config:{optionMergeStrategies:h}}=e.appContext,v=u.get(t);let a;return v?a=v:!i.length&&!r&&!n?a=t:(a={},i.length&&i.forEach(d=>li(a,d,h,!0)),li(a,t,h)),vt(t)&&u.set(t,a),a}function li(e,t,r,n=!1){const{mixins:i,extends:u}=t;u&&li(e,u,r,!0),i&&i.forEach(h=>li(e,h,r,!0));for(const h in t)if(!(n&&h==="expose")){const v=Nf[h]||r&&r[h];e[h]=v?v(e[h],t[h]):t[h]}return e}const Nf={data:Do,props:Io,emits:Io,methods:yn,computed:yn,beforeCreate:Lt,created:Lt,beforeMount:Lt,mounted:Lt,beforeUpdate:Lt,updated:Lt,beforeDestroy:Lt,beforeUnmount:Lt,destroyed:Lt,unmounted:Lt,activated:Lt,deactivated:Lt,errorCaptured:Lt,serverPrefetch:Lt,components:yn,directives:yn,watch:Uf,provide:Do,inject:Qf};function Do(e,t){return t?e?function(){return Pt(We(e)?e.call(this,this):e,We(t)?t.call(this,this):t)}:t:e}function Qf(e,t){return yn(Na(e),Na(t))}function Na(e){if(ze(e)){const t={};for(let r=0;r1)return r&&We(t)?t.call(n&&n.proxy):t}}function _l(){return!!(Vt()||Ir)}const vl={},gl=()=>Object.create(vl),yl=e=>Object.getPrototypeOf(e)===vl;function Vf(e,t,r,n=!1){const i={},u=gl();e.propsDefaults=Object.create(null),bl(e,t,i,u);for(const h in e.propsOptions[0])h in i||(i[h]=void 0);r?e.props=n?i:sf(i):e.type.props?e.props=i:e.props=u,e.attrs=u}function zf(e,t,r,n){const{props:i,attrs:u,vnode:{patchFlag:h}}=e,v=at(i),[a]=e.propsOptions;let d=!1;if((n||h>0)&&!(h&16)){if(h&8){const o=e.vnode.dynamicProps;for(let g=0;g{a=!0;const[l,s]=ml(g,t,!0);Pt(h,l),s&&v.push(...s)};!r&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!u&&!a)return vt(e)&&n.set(e,Yr),Yr;if(ze(u))for(let o=0;oe==="_"||e==="_ctx"||e==="$stable",ho=e=>ze(e)?e.map(rr):[rr(e)],Wf=(e,t,r)=>{if(t._n)return t;const n=nt((...i)=>ho(t(...i)),r);return n._c=!1,n},xl=(e,t,r)=>{const n=e._ctx;for(const i in e){if(fo(i))continue;const u=e[i];if(We(u))t[i]=Wf(i,u,n);else if(u!=null){const h=ho(u);t[i]=()=>h}}},wl=(e,t)=>{const r=ho(t);e.slots.default=()=>r},kl=(e,t,r)=>{for(const n in t)(r||!fo(n))&&(e[n]=t[n])},$f=(e,t,r)=>{const n=e.slots=gl();if(e.vnode.shapeFlag&32){const i=t._;i?(kl(n,t,r),r&&Pu(n,"_",i,!0)):xl(t,n)}else t&&wl(e,t)},qf=(e,t,r)=>{const{vnode:n,slots:i}=e;let u=!0,h=ct;if(n.shapeFlag&32){const v=t._;v?r&&v===1?u=!1:kl(i,t,r):(u=!t.$stable,xl(t,i)),h=t}else t&&(wl(e,t),h={default:1});if(u)for(const v in i)!fo(v)&&h[v]==null&&delete i[v]},Ut=fd;function Zf(e){return Yf(e)}function Yf(e,t){const r=_i();r.__VUE__=!0;const{insert:n,remove:i,patchProp:u,createElement:h,createText:v,createComment:a,setText:d,setElementText:o,parentNode:g,nextSibling:l,setScopeId:s=ir,insertStaticContent:p}=e,b=(P,T,D,N=null,V=null,te=null,I=void 0,U=null,B=!!T.dynamicChildren)=>{if(P===T)return;P&&!dn(P,T)&&(N=Z(P),we(P,V,te,!0),P=null),T.patchFlag===-2&&(B=!1,T.dynamicChildren=null);const{type:G,ref:ie,shapeFlag:se}=T;switch(G){case mi:y(P,T,D,N);break;case sr:_(P,T,D,N);break;case Ii:P==null&&m(T,D,N,I);break;case jt:z(P,T,D,N,V,te,I,U,B);break;default:se&1?E(P,T,D,N,V,te,I,U,B):se&6?W(P,T,D,N,V,te,I,U,B):(se&64||se&128)&&G.process(P,T,D,N,V,te,I,U,B,ne)}ie!=null&&V?Sn(ie,P&&P.ref,te,T||P,!T):ie==null&&P&&P.ref!=null&&Sn(P.ref,null,te,P,!0)},y=(P,T,D,N)=>{if(P==null)n(T.el=v(T.children),D,N);else{const V=T.el=P.el;T.children!==P.children&&d(V,T.children)}},_=(P,T,D,N)=>{P==null?n(T.el=a(T.children||""),D,N):T.el=P.el},m=(P,T,D,N)=>{[P.el,P.anchor]=p(P.children,T,D,N,P.el,P.anchor)},k=({el:P,anchor:T},D,N)=>{let V;for(;P&&P!==T;)V=l(P),n(P,D,N),P=V;n(T,D,N)},x=({el:P,anchor:T})=>{let D;for(;P&&P!==T;)D=l(P),i(P),P=D;i(T)},E=(P,T,D,N,V,te,I,U,B)=>{T.type==="svg"?I="svg":T.type==="math"&&(I="mathml"),P==null?S(T,D,N,V,te,I,U,B):M(P,T,V,te,I,U,B)},S=(P,T,D,N,V,te,I,U)=>{let B,G;const{props:ie,shapeFlag:se,transition:ye,dirs:Ae}=P;if(B=P.el=h(P.type,te,ie&&ie.is,ie),se&8?o(B,P.children):se&16&&F(P.children,B,null,N,V,Di(P,te),I,U),Ae&&Kr(P,null,N,"created"),A(B,P,P.scopeId,I,N),ie){for(const xe in ie)xe!=="value"&&!mn(xe)&&u(B,xe,null,ie[xe],te,N);"value"in ie&&u(B,"value",null,ie.value,te),(G=ie.onVnodeBeforeMount)&&Jt(G,N,P)}Ae&&Kr(P,null,N,"beforeMount");const Xe=Jf(V,ye);Xe&&ye.beforeEnter(B),n(B,T,D),((G=ie&&ie.onVnodeMounted)||Xe||Ae)&&Ut(()=>{G&&Jt(G,N,P),Xe&&ye.enter(B),Ae&&Kr(P,null,N,"mounted")},V)},A=(P,T,D,N,V)=>{if(D&&s(P,D),N)for(let te=0;te{for(let G=B;G{const U=T.el=P.el;let{patchFlag:B,dynamicChildren:G,dirs:ie}=T;B|=P.patchFlag&16;const se=P.props||ct,ye=T.props||ct;let Ae;if(D&&Rr(D,!1),(Ae=ye.onVnodeBeforeUpdate)&&Jt(Ae,D,T,P),ie&&Kr(T,P,D,"beforeUpdate"),D&&Rr(D,!0),(se.innerHTML&&ye.innerHTML==null||se.textContent&&ye.textContent==null)&&o(U,""),G?O(P.dynamicChildren,G,U,D,N,Di(T,V),te):I||oe(P,T,U,null,D,N,Di(T,V),te,!1),B>0){if(B&16)H(U,se,ye,D,V);else if(B&2&&se.class!==ye.class&&u(U,"class",null,ye.class,V),B&4&&u(U,"style",se.style,ye.style,V),B&8){const Xe=T.dynamicProps;for(let xe=0;xe{Ae&&Jt(Ae,D,T,P),ie&&Kr(T,P,D,"updated")},N)},O=(P,T,D,N,V,te,I)=>{for(let U=0;U{if(T!==D){if(T!==ct)for(const te in T)!mn(te)&&!(te in D)&&u(P,te,T[te],null,V,N);for(const te in D){if(mn(te))continue;const I=D[te],U=T[te];I!==U&&te!=="value"&&u(P,te,U,I,V,N)}"value"in D&&u(P,"value",T.value,D.value,V)}},z=(P,T,D,N,V,te,I,U,B)=>{const G=T.el=P?P.el:v(""),ie=T.anchor=P?P.anchor:v("");let{patchFlag:se,dynamicChildren:ye,slotScopeIds:Ae}=T;Ae&&(U=U?U.concat(Ae):Ae),P==null?(n(G,D,N),n(ie,D,N),F(T.children||[],D,ie,V,te,I,U,B)):se>0&&se&64&&ye&&P.dynamicChildren?(O(P.dynamicChildren,ye,D,V,te,I,U),(T.key!=null||V&&T===V.subTree)&&Sl(P,T,!0)):oe(P,T,D,ie,V,te,I,U,B)},W=(P,T,D,N,V,te,I,U,B)=>{T.slotScopeIds=U,P==null?T.shapeFlag&512?V.ctx.activate(T,D,N,I,B):q(T,D,N,V,te,I,B):ae(P,T,B)},q=(P,T,D,N,V,te,I)=>{const U=P.component=vd(P,N,V);if(ll(P)&&(U.ctx.renderer=ne),gd(U,!1,I),U.asyncDep){if(V&&V.registerDep(U,de,I),!P.el){const B=U.subTree=rt(sr);_(null,B,T,D),P.placeholder=B.el}}else de(U,P,T,D,V,te,I)},ae=(P,T,D)=>{const N=T.component=P.component;if(ld(P,T,D))if(N.asyncDep&&!N.asyncResolved){pe(N,T,D);return}else N.next=T,N.update();else T.el=P.el,N.vnode=T},de=(P,T,D,N,V,te,I)=>{const U=()=>{if(P.isMounted){let{next:se,bu:ye,u:Ae,parent:Xe,vnode:xe}=P;{const st=El(P);if(st){se&&(se.el=xe.el,pe(P,se,I)),st.asyncDep.then(()=>{P.isUnmounted||U()});return}}let Ne=se,Ye;Rr(P,!1),se?(se.el=xe.el,pe(P,se,I)):se=xe,ye&&ti(ye),(Ye=se.props&&se.props.onVnodeBeforeUpdate)&&Jt(Ye,Xe,se,xe),Rr(P,!0);const _t=Qo(P),gt=P.subTree;P.subTree=_t,b(gt,_t,g(gt.el),Z(gt),P,V,te),se.el=_t.el,Ne===null&&cd(P,_t.el),Ae&&Ut(Ae,V),(Ye=se.props&&se.props.onVnodeUpdated)&&Ut(()=>Jt(Ye,Xe,se,xe),V)}else{let se;const{el:ye,props:Ae}=T,{bm:Xe,m:xe,parent:Ne,root:Ye,type:_t}=P,gt=tn(T);Rr(P,!1),Xe&&ti(Xe),!gt&&(se=Ae&&Ae.onVnodeBeforeMount)&&Jt(se,Ne,T),Rr(P,!0);{Ye.ce&&Ye.ce._def.shadowRoot!==!1&&Ye.ce._injectChildStyle(_t);const st=P.subTree=Qo(P);b(null,st,D,N,P,V,te),T.el=st.el}if(xe&&Ut(xe,V),!gt&&(se=Ae&&Ae.onVnodeMounted)){const st=T;Ut(()=>Jt(se,Ne,st),V)}(T.shapeFlag&256||Ne&&tn(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&P.a&&Ut(P.a,V),P.isMounted=!0,T=D=N=null}};P.scope.on();const B=P.effect=new Bu(U);P.scope.off();const G=P.update=B.run.bind(B),ie=P.job=B.runIfDirty.bind(B);ie.i=P,ie.id=P.uid,B.scheduler=()=>uo(ie),Rr(P,!0),G()},pe=(P,T,D)=>{T.component=P;const N=P.vnode.props;P.vnode=T,P.next=null,zf(P,T.props,N,D),qf(P,T.children,D),pr(),To(P),_r()},oe=(P,T,D,N,V,te,I,U,B=!1)=>{const G=P&&P.children,ie=P?P.shapeFlag:0,se=T.children,{patchFlag:ye,shapeFlag:Ae}=T;if(ye>0){if(ye&128){j(G,se,D,N,V,te,I,U,B);return}else if(ye&256){ge(G,se,D,N,V,te,I,U,B);return}}Ae&8?(ie&16&&ce(G,V,te),se!==G&&o(D,se)):ie&16?Ae&16?j(G,se,D,N,V,te,I,U,B):ce(G,V,te,!0):(ie&8&&o(D,""),Ae&16&&F(se,D,N,V,te,I,U,B))},ge=(P,T,D,N,V,te,I,U,B)=>{P=P||Yr,T=T||Yr;const G=P.length,ie=T.length,se=Math.min(G,ie);let ye;for(ye=0;yeie?ce(P,V,te,!0,!1,se):F(T,D,N,V,te,I,U,B,se)},j=(P,T,D,N,V,te,I,U,B)=>{let G=0;const ie=T.length;let se=P.length-1,ye=ie-1;for(;G<=se&&G<=ye;){const Ae=P[G],Xe=T[G]=B?wr(T[G]):rr(T[G]);if(dn(Ae,Xe))b(Ae,Xe,D,null,V,te,I,U,B);else break;G++}for(;G<=se&&G<=ye;){const Ae=P[se],Xe=T[ye]=B?wr(T[ye]):rr(T[ye]);if(dn(Ae,Xe))b(Ae,Xe,D,null,V,te,I,U,B);else break;se--,ye--}if(G>se){if(G<=ye){const Ae=ye+1,Xe=Aeye)for(;G<=se;)we(P[G],V,te,!0),G++;else{const Ae=G,Xe=G,xe=new Map;for(G=Xe;G<=ye;G++){const _e=T[G]=B?wr(T[G]):rr(T[G]);_e.key!=null&&xe.set(_e.key,G)}let Ne,Ye=0;const _t=ye-Xe+1;let gt=!1,st=0;const kt=new Array(_t);for(G=0;G<_t;G++)kt[G]=0;for(G=Ae;G<=se;G++){const _e=P[G];if(Ye>=_t){we(_e,V,te,!0);continue}let me;if(_e.key!=null)me=xe.get(_e.key);else for(Ne=Xe;Ne<=ye;Ne++)if(kt[Ne-Xe]===0&&dn(_e,T[Ne])){me=Ne;break}me===void 0?we(_e,V,te,!0):(kt[me-Xe]=G+1,me>=st?st=me:gt=!0,b(_e,T[me],D,null,V,te,I,U,B),Ye++)}const L=gt?ed(kt):Yr;for(Ne=L.length-1,G=_t-1;G>=0;G--){const _e=Xe+G,me=T[_e],Ce=T[_e+1],Le=_e+1{const{el:te,type:I,transition:U,children:B,shapeFlag:G}=P;if(G&6){le(P.component.subTree,T,D,N);return}if(G&128){P.suspense.move(T,D,N);return}if(G&64){I.move(P,T,D,ne);return}if(I===jt){n(te,T,D);for(let se=0;seU.enter(te),V);else{const{leave:se,delayLeave:ye,afterLeave:Ae}=U,Xe=()=>{P.ctx.isUnmounted?i(te):n(te,T,D)},xe=()=>{te._isLeaving&&te[Sf](!0),se(te,()=>{Xe(),Ae&&Ae()})};ye?ye(te,Xe,xe):xe()}else n(te,T,D)},we=(P,T,D,N=!1,V=!1)=>{const{type:te,props:I,ref:U,children:B,dynamicChildren:G,shapeFlag:ie,patchFlag:se,dirs:ye,cacheIndex:Ae}=P;if(se===-2&&(V=!1),U!=null&&(pr(),Sn(U,null,D,P,!0),_r()),Ae!=null&&(T.renderCache[Ae]=void 0),ie&256){T.ctx.deactivate(P);return}const Xe=ie&1&&ye,xe=!tn(P);let Ne;if(xe&&(Ne=I&&I.onVnodeBeforeUnmount)&&Jt(Ne,T,P),ie&6)Q(P.component,D,N);else{if(ie&128){P.suspense.unmount(D,N);return}Xe&&Kr(P,null,T,"beforeUnmount"),ie&64?P.type.remove(P,T,D,ne,N):G&&!G.hasOnce&&(te!==jt||se>0&&se&64)?ce(G,T,D,!1,!0):(te===jt&&se&384||!V&&ie&16)&&ce(B,T,D),N&&ke(P)}(xe&&(Ne=I&&I.onVnodeUnmounted)||Xe)&&Ut(()=>{Ne&&Jt(Ne,T,P),Xe&&Kr(P,null,T,"unmounted")},D)},ke=P=>{const{type:T,el:D,anchor:N,transition:V}=P;if(T===jt){Y(D,N);return}if(T===Ii){x(P);return}const te=()=>{i(D),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(P.shapeFlag&1&&V&&!V.persisted){const{leave:I,delayLeave:U}=V,B=()=>I(D,te);U?U(P.el,te,B):B()}else te()},Y=(P,T)=>{let D;for(;P!==T;)D=l(P),i(P),P=D;i(T)},Q=(P,T,D)=>{const{bum:N,scope:V,job:te,subTree:I,um:U,m:B,a:G}=P;No(B),No(G),N&&ti(N),V.stop(),te&&(te.flags|=8,we(I,P,T,D)),U&&Ut(U,T),Ut(()=>{P.isUnmounted=!0},T)},ce=(P,T,D,N=!1,V=!1,te=0)=>{for(let I=te;I{if(P.shapeFlag&6)return Z(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const T=l(P.anchor||P.el),D=T&&T[wf];return D?l(D):T};let ee=!1;const J=(P,T,D)=>{P==null?T._vnode&&we(T._vnode,null,null,!0):b(T._vnode||null,P,T,null,null,null,D),T._vnode=P,ee||(ee=!0,To(),al(),ee=!1)},ne={p:b,um:we,m:le,r:ke,mt:q,mc:F,pc:oe,pbc:O,n:Z,o:e};return{render:J,hydrate:void 0,createApp:Hf(J)}}function Di({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Rr({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sl(e,t,r=!1){const n=e.children,i=t.children;if(ze(n)&&ze(i))for(let u=0;u>1,e[r[v]]0&&(t[n]=r[u-1]),r[u]=n)}}for(u=r.length,h=r[u-1];u-- >0;)r[u]=h,h=t[h];return r}function El(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:El(t)}function No(e){if(e)for(let t=0;tBr(td);function po(e,t){return _o(e,null,t)}function Bt(e,t,r){return _o(e,t,r)}function _o(e,t,r=ct){const{immediate:n,deep:i,flush:u,once:h}=r,v=Pt({},r),a=t&&n||!t&&u!=="post";let d;if(Tn){if(u==="sync"){const s=rd();d=s.__watcherHandles||(s.__watcherHandles=[])}else if(!a){const s=()=>{};return s.stop=ir,s.resume=ir,s.pause=ir,s}}const o=It;v.call=(s,p,b)=>or(s,o,p,b);let g=!1;u==="post"?v.scheduler=s=>{Ut(s,o&&o.suspense)}:u!=="sync"&&(g=!0,v.scheduler=(s,p)=>{p?s():uo(s)}),v.augmentJob=s=>{t&&(s.flags|=4),g&&(s.flags|=2,o&&(s.id=o.uid,s.i=o))};const l=gf(e,t,v);return Tn&&(d?d.push(l):a&&l()),l}function nd(e,t,r){const n=this.proxy,i=wt(e)?e.includes(".")?Cl(n,e):()=>n[e]:e.bind(n,n);let u;We(t)?u=t:(u=t.handler,r=t);const h=In(this),v=_o(i,u.bind(n),r);return h(),v}function Cl(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ar(t)}Modifiers`]||e[`${Er(t)}Modifiers`];function ad(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||ct;let i=r;const u=t.startsWith("update:"),h=u&&id(n,t.slice(7));h&&(h.trim&&(i=r.map(o=>wt(o)?o.trim():o)),h.number&&(i=r.map(Ta)));let v,a=n[v=ei(t)]||n[v=ei(ar(t))];!a&&u&&(a=n[v=ei(Er(t))]),a&&or(a,e,6,i);const d=n[v+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[v])return;e.emitted[v]=!0,or(d,e,6,i)}}const od=new WeakMap;function Al(e,t,r=!1){const n=r?od:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const u=e.emits;let h={},v=!1;if(!We(e)){const a=d=>{const o=Al(d,t,!0);o&&(v=!0,Pt(h,o))};!r&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!u&&!v?(vt(e)&&n.set(e,null),null):(ze(u)?u.forEach(a=>h[a]=null):Pt(h,u),vt(e)&&n.set(e,h),h)}function bi(e,t){return!e||!di(t)?!1:(t=t.slice(2).replace(/Once$/,""),ut(e,t[0].toLowerCase()+t.slice(1))||ut(e,Er(t))||ut(e,t))}function Qo(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[u],slots:h,attrs:v,emit:a,render:d,renderCache:o,props:g,data:l,setupState:s,ctx:p,inheritAttrs:b}=e,y=si(e);let _,m;try{if(r.shapeFlag&4){const x=i||n,E=x;_=rr(d.call(E,x,o,g,s,l,p)),m=v}else{const x=t;_=rr(x.length>1?x(g,{attrs:v,slots:h,emit:a}):x(g,null)),m=t.props?v:sd(v)}}catch(x){Cn.length=0,gi(x,e,1),_=rt(sr)}let k=_;if(m&&b!==!1){const x=Object.keys(m),{shapeFlag:E}=k;x.length&&E&7&&(u&&x.some(Za)&&(m=ud(m,u)),k=Qr(k,m,!1,!0))}return r.dirs&&(k=Qr(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(r.dirs):r.dirs),r.transition&&lo(k,r.transition),_=k,si(y),_}const sd=e=>{let t;for(const r in e)(r==="class"||r==="style"||di(r))&&((t||(t={}))[r]=e[r]);return t},ud=(e,t)=>{const r={};for(const n in e)(!Za(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function ld(e,t,r){const{props:n,children:i,component:u}=e,{props:h,children:v,patchFlag:a}=t,d=u.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&a>=0){if(a&1024)return!0;if(a&16)return n?Uo(n,h,d):!!h;if(a&8){const o=t.dynamicProps;for(let g=0;ge.__isSuspense;function fd(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):mf(e)}const jt=Symbol.for("v-fgt"),mi=Symbol.for("v-txt"),sr=Symbol.for("v-cmt"),Ii=Symbol.for("v-stc"),Cn=[];let Ht=null;function ft(e=!1){Cn.push(Ht=e?null:[])}function dd(){Cn.pop(),Ht=Cn[Cn.length-1]||null}let Xn=1;function ci(e,t=!1){Xn+=e,e<0&&Ht&&t&&(Ht.hasOnce=!0)}function Kl(e){return e.dynamicChildren=Xn>0?Ht||Yr:null,dd(),Xn>0&&Ht&&Ht.push(e),e}function er(e,t,r,n,i,u){return Kl(lt(e,t,r,n,i,u,!0))}function Kt(e,t,r,n,i){return Kl(rt(e,t,r,n,i,!0))}function nr(e){return e?e.__v_isVNode===!0:!1}function dn(e,t){return e.type===t.type&&e.key===t.key}const Rl=({key:e})=>e??null,ri=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||pt(e)||We(e)?{i:Tt,r:e,k:t,f:!!r}:e:null);function lt(e,t=null,r=null,n=0,i=null,u=e===jt?0:1,h=!1,v=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rl(t),ref:t&&ri(t),scopeId:sl,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Tt};return v?(vo(a,r),u&128&&e.normalize(a)):r&&(a.shapeFlag|=wt(r)?8:16),Xn>0&&!h&&Ht&&(a.patchFlag>0||u&6)&&a.patchFlag!==32&&Ht.push(a),a}const rt=hd;function hd(e,t=null,r=null,n=0,i=null,u=!1){if((!e||e===Of)&&(e=sr),nr(e)){const v=Qr(e,t,!0);return r&&vo(v,r),Xn>0&&!u&&Ht&&(v.shapeFlag&6?Ht[Ht.indexOf(e)]=v:Ht.push(v)),v.patchFlag=-2,v}if(xd(e)&&(e=e.__vccOpts),t){t=Xl(t);let{class:v,style:a}=t;v&&!wt(v)&&(t.class=sn(v)),vt(a)&&(oo(a)&&!ze(a)&&(a=Pt({},a)),t.style=Pn(a))}const h=wt(e)?1:Fl(e)?128:kf(e)?64:vt(e)?4:We(e)?2:0;return lt(e,t,r,n,i,h,u,!0)}function Xl(e){return e?oo(e)||yl(e)?Pt({},e):e:null}function Qr(e,t,r=!1,n=!1){const{props:i,ref:u,patchFlag:h,children:v,transition:a}=e,d=t?Dn(i||{},t):i,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Rl(d),ref:t&&t.ref?r&&u?ze(u)?u.concat(ri(t)):[u,ri(t)]:ri(t):u,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:v,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==jt?h===-1?16:h|16:h,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qr(e.ssContent),ssFallback:e.ssFallback&&Qr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&lo(o,a.clone(o)),o}function Gt(e=" ",t=0){return rt(mi,null,e,t)}function bn(e="",t=!1){return t?(ft(),Kt(sr,null,e)):rt(sr,null,e)}function rr(e){return e==null||typeof e=="boolean"?rt(sr):ze(e)?rt(jt,null,e.slice()):nr(e)?wr(e):rt(mi,null,String(e))}function wr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qr(e)}function vo(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),vo(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!yl(t)?t._ctx=Tt:i===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else We(t)?(t={default:t,_ctx:Tt},r=32):(t=String(t),n&64?(r=16,t=[Gt(t)]):r=8);e.children=t,e.shapeFlag|=r}function Dn(...e){const t={};for(let r=0;rIt||Tt;let fi,Ua;{const e=_i(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),u=>{i.length>1?i.forEach(h=>h(u)):i[0](u)}};fi=t("__VUE_INSTANCE_SETTERS__",r=>It=r),Ua=t("__VUE_SSR_SETTERS__",r=>Tn=r)}const In=e=>{const t=It;return fi(e),e.scope.on(),()=>{e.scope.off(),fi(t)}},jo=()=>{It&&It.scope.off(),fi(null)};function Tl(e){return e.vnode.shapeFlag&4}let Tn=!1;function gd(e,t=!1,r=!1){t&&Ua(t);const{props:n,children:i}=e.vnode,u=Tl(e);Vf(e,n,u,t),$f(e,i,r||t);const h=u?yd(e,t):void 0;return t&&Ua(!1),h}function yd(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Df);const{setup:n}=r;if(n){pr();const i=e.setupContext=n.length>1?md(e):null,u=In(e),h=Mn(n,e,0,[e.props,i]),v=Ku(h);if(_r(),u(),(v||e.sp)&&!tn(e)&&ul(e),v){if(h.then(jo,jo),t)return h.then(a=>{Ho(e,a)}).catch(a=>{gi(a,e,0)});e.asyncDep=h}else Ho(e,h)}else Pl(e)}function Ho(e,t,r){We(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vt(t)&&(e.setupState=el(t)),Pl(e)}function Pl(e,t,r){const n=e.type;e.render||(e.render=n.render||ir);{const i=In(e);pr();try{If(e)}finally{_r(),i()}}}const bd={get(e,t){return Xt(e,"get",""),e[t]}};function md(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,bd),slots:e.slots,emit:e.emit,expose:t}}function xi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(el(so(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in En)return En[r](e)},has(t,r){return r in t||r in En}})):e.proxy}function xd(e){return We(e)&&"__vccOpts"in e}const ot=(e,t)=>_f(e,t,Tn);function rn(e,t,r){try{ci(-1);const n=arguments.length;return n===2?vt(t)&&!ze(t)?nr(t)?rt(e,null,[t]):rt(e,t):rt(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&nr(r)&&(r=[r]),rt(e,t,r))}finally{ci(1)}}const wd="3.5.22";/** +* @vue/runtime-dom v3.5.22 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ja;const Vo=typeof window<"u"&&window.trustedTypes;if(Vo)try{ja=Vo.createPolicy("vue",{createHTML:e=>e})}catch{}const Ml=ja?e=>ja.createHTML(e):e=>e,kd="http://www.w3.org/2000/svg",Sd="http://www.w3.org/1998/Math/MathML",cr=typeof document<"u"?document:null,zo=cr&&cr.createElement("template"),Ed={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?cr.createElementNS(kd,e):t==="mathml"?cr.createElementNS(Sd,e):r?cr.createElement(e,{is:r}):cr.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>cr.createTextNode(e),createComment:e=>cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,u){const h=r?r.previousSibling:t.lastChild;if(i&&(i===u||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===u||!(i=i.nextSibling)););else{zo.innerHTML=Ml(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const v=zo.content;if(n==="svg"||n==="mathml"){const a=v.firstChild;for(;a.firstChild;)v.appendChild(a.firstChild);v.removeChild(a)}t.insertBefore(v,r)}return[h?h.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Cd=Symbol("_vtc");function Ad(e,t,r){const n=e[Cd];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Go=Symbol("_vod"),Fd=Symbol("_vsh"),Kd=Symbol(""),Rd=/(?:^|;)\s*display\s*:/;function Xd(e,t,r){const n=e.style,i=wt(r);let u=!1;if(r&&!i){if(t)if(wt(t))for(const h of t.split(";")){const v=h.slice(0,h.indexOf(":")).trim();r[v]==null&&ni(n,v,"")}else for(const h in t)r[h]==null&&ni(n,h,"");for(const h in r)h==="display"&&(u=!0),ni(n,h,r[h])}else if(i){if(t!==r){const h=n[Kd];h&&(r+=";"+h),n.cssText=r,u=Rd.test(r)}}else t&&e.removeAttribute("style");Go in e&&(e[Go]=u?n.display:"",e[Fd]&&(n.display="none"))}const Wo=/\s*!important$/;function ni(e,t,r){if(ze(r))r.forEach(n=>ni(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Td(e,t);Wo.test(r)?e.setProperty(Er(n),r.replace(Wo,""),"important"):e[n]=r}}const $o=["Webkit","Moz","ms"],Bi={};function Td(e,t){const r=Bi[t];if(r)return r;let n=ar(t);if(n!=="filter"&&n in e)return Bi[t]=n;n=Tu(n);for(let i=0;i<$o.length;i++){const u=$o[i]+n;if(u in e)return Bi[t]=u}return t}const qo="http://www.w3.org/1999/xlink";function Zo(e,t,r,n,i,u=Ic(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(qo,t.slice(6,t.length)):e.setAttributeNS(qo,t,r):r==null||u&&!Mu(r)?e.removeAttribute(t):e.setAttribute(t,u?"":vr(r)?String(r):r)}function Yo(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Ml(r):r);return}const u=e.tagName;if(t==="value"&&u!=="PROGRESS"&&!u.includes("-")){const v=u==="OPTION"?e.getAttribute("value")||"":e.value,a=r==null?e.type==="checkbox"?"on":"":String(r);(v!==a||!("_value"in e))&&(e.value=a),r==null&&e.removeAttribute(t),e._value=r;return}let h=!1;if(r===""||r==null){const v=typeof e[t];v==="boolean"?r=Mu(r):r==null&&v==="string"?(r="",h=!0):v==="number"&&(r=0,h=!0)}try{e[t]=r}catch{}h&&e.removeAttribute(i||t)}function Zr(e,t,r,n){e.addEventListener(t,r,n)}function Pd(e,t,r,n){e.removeEventListener(t,r,n)}const Jo=Symbol("_vei");function Md(e,t,r,n,i=null){const u=e[Jo]||(e[Jo]={}),h=u[t];if(n&&h)h.value=n;else{const[v,a]=Ld(t);if(n){const d=u[t]=Id(n,i);Zr(e,v,d,a)}else h&&(Pd(e,v,h,a),u[t]=void 0)}}const es=/(?:Once|Passive|Capture)$/;function Ld(e){let t;if(es.test(e)){t={};let n;for(;n=e.match(es);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Er(e.slice(2)),t]}let Ni=0;const Od=Promise.resolve(),Dd=()=>Ni||(Od.then(()=>Ni=0),Ni=Date.now());function Id(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;or(Bd(n,r.value),t,5,[n])};return r.value=e,r.attached=Dd(),r}function Bd(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nd=(e,t,r,n,i,u)=>{const h=i==="svg";t==="class"?Ad(e,n,h):t==="style"?Xd(e,r,n):di(t)?Za(t)||Md(e,t,r,n,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qd(e,t,n,h))?(Yo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,n,h,u,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!wt(n))?Yo(e,ar(t),n,u,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Zo(e,t,n,h))};function Qd(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ts(t)&&We(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ts(t)&&wt(r)?!1:t in e}const rs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>ti(t,r):t};function Ud(e){e.target.composing=!0}function ns(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qi=Symbol("_assign"),jd={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[Qi]=rs(i);const u=n||i.props&&i.props.type==="number";Zr(e,t?"change":"input",h=>{if(h.target.composing)return;let v=e.value;r&&(v=v.trim()),u&&(v=Ta(v)),e[Qi](v)}),r&&Zr(e,"change",()=>{e.value=e.value.trim()}),t||(Zr(e,"compositionstart",Ud),Zr(e,"compositionend",ns),Zr(e,"change",ns))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:u}},h){if(e[Qi]=rs(h),e.composing)return;const v=(u||e.type==="number")&&!/^0\d/.test(e.value)?Ta(e.value):e.value,a=t??"";v!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===a)||(e.value=a))}},Hd=["ctrl","shift","alt","meta"],Vd={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Hd.some(r=>e[`${r}Key`]&&!t.includes(r))},zd=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...u)=>{for(let h=0;h{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const u=Er(i.key);if(t.some(h=>h===u||Gd[h]===u))return e(i)})},$d=Pt({patchProp:Nd},Ed);let is;function qd(){return is||(is=Zf($d))}const Zd=(...e)=>{const t=qd().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Jd(n);if(!i)return;const u=t._component;!We(u)&&!u.render&&!u.template&&(u.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const h=r(i,!1,Yd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),h},t};function Yd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jd(e){return wt(e)?document.querySelector(e):e}/*! + * pinia v3.0.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const eh=Symbol();var as;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(as||(as={}));function th(){const e=Bc(!0),t=e.run(()=>it({}));let r=[],n=[];const i=so({install(u){i._a=u,u.provide(eh,i),u.config.globalProperties.$pinia=i,n.forEach(h=>r.push(h)),n=[]},use(u){return this._a?r.push(u):n.push(u),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return i}const rh=e=>{const t=th();e.use(t)},nh=Object.freeze(Object.defineProperty({__proto__:null,install:rh},Symbol.toStringTag,{value:"Module"}));function Ll(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ui={},hn={},os;function Ol(){if(os)return hn;os=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.toSigned32bit=t,hn.toUnsigned32bit=e;function e(r){return r>>>0}function t(r){return r|0}return hn}var mt={},ss;function Cr(){if(ss)return mt;ss=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.Warn=mt.Info=mt.Error=mt.Debug=void 0,mt.getLogging=r,mt.initLogging=t;var e="warn";mt.Debug=function(){},mt.Info=function(){},mt.Warn=function(){},mt.Error=function(){};function t(n){if(typeof n>"u"?n=e:e=n,mt.Debug=mt.Info=mt.Warn=mt.Error=function(){},typeof window.console<"u")switch(n){case"debug":mt.Debug=console.debug.bind(window.console);case"info":mt.Info=console.info.bind(window.console);case"warn":mt.Warn=console.warn.bind(window.console);case"error":mt.Error=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+n+"'")}}function r(){return e}return t(),mt}var pn={},us;function Dl(){if(us)return pn;us=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.decodeUTF8=e,pn.encodeUTF8=t;function e(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(r))}catch(i){if(i instanceof URIError&&n)return r;throw i}}function t(r){return unescape(encodeURIComponent(r))}return pn}var dt={},ls;function wi(){if(ls)return dt;ls=1;function e(F){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},e(F)}Object.defineProperty(dt,"__esModule",{value:!0}),dt.hasScrollbarGutter=dt.dragThreshold=void 0,dt.isAndroid=s,dt.isBlink=A,dt.isChrome=_,dt.isChromeOS=p,dt.isChromium=m,dt.isEdge=x,dt.isFirefox=y,dt.isGecko=E,dt.isIOS=l,dt.isMac=o,dt.isOpera=k,dt.isSafari=b,dt.isTouchDevice=void 0,dt.isWebKit=S,dt.isWindows=g,dt.supportsCursorURIs=void 0;var t=n(Cr());function r(F){if(typeof WeakMap!="function")return null;var M=new WeakMap,O=new WeakMap;return(r=function(z){return z?O:M})(F)}function n(F,M){if(F&&F.__esModule)return F;if(F===null||e(F)!="object"&&typeof F!="function")return{default:F};var O=r(M);if(O&&O.has(F))return O.get(F);var H={__proto__:null},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in F)if(W!=="default"&&{}.hasOwnProperty.call(F,W)){var q=z?Object.getOwnPropertyDescriptor(F,W):null;q&&(q.get||q.set)?Object.defineProperty(H,W,q):H[W]=F[W]}return H.default=F,O&&O.set(F,H),H}dt.isTouchDevice="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,window.addEventListener("touchstart",function F(){dt.isTouchDevice=!0,window.removeEventListener("touchstart",F,!1)},!1),dt.dragThreshold=10*(window.devicePixelRatio||1);var i=!1;try{var u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',u.style.cursor.indexOf("url")===0?(t.Info("Data URI scheme cursor supported"),i=!0):t.Warn("Data URI scheme cursor not supported")}catch(F){t.Error("Data URI scheme cursor test exception: "+F)}dt.supportsCursorURIs=i;var h=!0;try{var v=document.createElement("div");v.style.visibility="hidden",v.style.overflow="scroll",document.body.appendChild(v);var a=document.createElement("div");v.appendChild(a);var d=v.offsetWidth-a.offsetWidth;v.parentNode.removeChild(v),h=d!=0}catch(F){t.Error("Scrollbar test exception: "+F)}dt.hasScrollbarGutter=h;function o(){return!!/mac/i.exec(navigator.platform)}function g(){return!!/win/i.exec(navigator.platform)}function l(){return!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform)}function s(){return!!navigator.userAgent.match("Android ")}function p(){return!!navigator.userAgent.match(" CrOS ")}function b(){return!!navigator.userAgent.match("Safari/...")&&!navigator.userAgent.match("Chrome/...")&&!navigator.userAgent.match("Chromium/...")&&!navigator.userAgent.match("Epiphany/...")}function y(){return!!navigator.userAgent.match("Firefox/...")&&!navigator.userAgent.match("Seamonkey/...")}function _(){return!!navigator.userAgent.match("Chrome/...")&&!navigator.userAgent.match("Chromium/...")&&!navigator.userAgent.match("Edg/...")&&!navigator.userAgent.match("OPR/...")}function m(){return!!navigator.userAgent.match("Chromium/...")}function k(){return!!navigator.userAgent.match("OPR/...")}function x(){return!!navigator.userAgent.match("Edg/...")}function E(){return!!navigator.userAgent.match("Gecko/...")}function S(){return!!navigator.userAgent.match("AppleWebKit/...")&&!navigator.userAgent.match("Chrome/...")}function A(){return!!navigator.userAgent.match("Chrome/...")}return dt}var Hn={},cs;function ih(){if(cs)return Hn;cs=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.clientToElement=e;function e(t,r,n){var i=n.getBoundingClientRect(),u={x:0,y:0};return t=i.right?u.x=i.width-1:u.x=t-i.left,r=i.bottom?u.y=i.height-1:u.y=r-i.top,u}return Hn}var Xr={},fs;function Il(){if(fs)return Xr;fs=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.getPointerEvent=e,Xr.releaseCapture=a,Xr.setCapture=v,Xr.stopEvent=t;function e(d){return d.changedTouches?d.changedTouches[0]:d.touches?d.touches[0]:d}function t(d){d.stopPropagation(),d.preventDefault()}var r=!1,n=null;document.captureElement=null;function i(d){if(!r){var o=new d.constructor(d.type,d);r=!0,document.captureElement?document.captureElement.dispatchEvent(o):n.dispatchEvent(o),r=!1,d.stopPropagation(),o.defaultPrevented&&d.preventDefault(),d.type==="mouseup"&&a()}}function u(){var d=document.getElementById("noVNC_mouse_capture_elem");d.style.cursor=window.getComputedStyle(document.captureElement).cursor}var h=new MutationObserver(u);function v(d){if(d.setCapture)d.setCapture(),document.captureElement=d;else{a();var o=document.getElementById("noVNC_mouse_capture_elem");o===null&&(o=document.createElement("div"),o.id="noVNC_mouse_capture_elem",o.style.position="fixed",o.style.top="0px",o.style.left="0px",o.style.width="100%",o.style.height="100%",o.style.zIndex=1e4,o.style.display="none",document.body.appendChild(o),o.addEventListener("contextmenu",i),o.addEventListener("mousemove",i),o.addEventListener("mouseup",i)),document.captureElement=d,h.observe(d,{attributes:!0}),u(),o.style.display="",window.addEventListener("mousemove",i),window.addEventListener("mouseup",i)}}function a(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;n=document.captureElement,document.captureElement=null,h.disconnect();var d=document.getElementById("noVNC_mouse_capture_elem");d.style.display="none",window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",i)}}return Xr}var ji={},ds;function Bl(){return ds||(ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(v){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(v)}function r(v,a){if(!(v instanceof a))throw new TypeError("Cannot call a class as a function")}function n(v,a){for(var d=0;d>2],v+=this.toBase64Table[((h[o]&3)<<4)+(h[o+1]>>4)],v+=this.toBase64Table[((h[o+1]&15)<<2)+(h[o+2]>>6)],v+=this.toBase64Table[h[o+2]&63];var g=a-d;return d===2?(v+=this.toBase64Table[h[g]>>2],v+=this.toBase64Table[((h[g]&3)<<4)+(h[g+1]>>4)],v+=this.toBase64Table[(h[g+1]&15)<<2],v+=this.toBase64Table[64]):d===1&&(v+=this.toBase64Table[h[g]>>2],v+=this.toBase64Table[(h[g]&3)<<4],v+=this.toBase64Table[64],v+=this.toBase64Table[64]),v},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=h.indexOf("=")-v;a<0&&(a=h.length-v);for(var d=(a>>2)*3+Math.floor(a%4/1.5),o=new Array(d),g=0,l=0,s=0,p=v;p=8&&(g-=8,y||(o[s++]=l>>g&255),l&=(1<> Display.constructor"),this._target=p,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},t.Debug("User Agent: "+navigator.userAgent),t.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1}return o(s,[{key:"scale",get:function(){return this._scale},set:function(b){this._rescale(b)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(b){this._clipViewport=b;var y=this._viewportLoc;this.viewportChangeSize(y.w,y.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}},{key:"viewportChangePos",value:function(b,y){var _=this._viewportLoc;b=Math.floor(b),y=Math.floor(y),this._clipViewport||(b=-_.w,y=-_.h);var m=_.x+_.w-1,k=_.y+_.h-1;b<0&&_.x+b<0&&(b=-_.x),m+b>=this._fbWidth&&(b-=m+b-this._fbWidth+1),_.y+y<0&&(y=-_.y),k+y>=this._fbHeight&&(y-=k+y-this._fbHeight+1),!(b===0&&y===0)&&(t.Debug("viewportChange deltaX: "+b+", deltaY: "+y),_.x+=b,_.y+=y,this._damage(_.x,_.y,_.w,_.h),this.flip())}},{key:"viewportChangeSize",value:function(b,y){(!this._clipViewport||typeof b>"u"||typeof y>"u")&&(t.Debug("Setting viewport to full display region"),b=this._fbWidth,y=this._fbHeight),b=Math.floor(b),y=Math.floor(y),b>this._fbWidth&&(b=this._fbWidth),y>this._fbHeight&&(y=this._fbHeight);var _=this._viewportLoc;if(_.w!==b||_.h!==y){_.w=b,_.h=y;var m=this._target;m.width=b,m.height=y,this.viewportChangePos(0,0),this._damage(_.x,_.y,_.w,_.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(b){return this._scale===0?0:(0,n.toSigned32bit)(b/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(b){return this._scale===0?0:(0,n.toSigned32bit)(b/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(b,y){this._prevDrawStyle="",this._fbWidth=b,this._fbHeight=y;var _=this._backbuffer;if(_.width!==b||_.height!==y){var m=null;_.width>0&&_.height>0&&(m=this._drawCtx.getImageData(0,0,_.width,_.height)),_.width!==b&&(_.width=b),_.height!==y&&(_.height=y),m&&this._drawCtx.putImageData(m,0,0)}var k=this._viewportLoc;this.viewportChangeSize(k.w,k.h),this.viewportChangePos(0,0)}},{key:"getImageData",value:function(){return this._drawCtx.getImageData(0,0,this.width,this.height)}},{key:"toDataURL",value:function(b,y){return this._backbuffer.toDataURL(b,y)}},{key:"toBlob",value:function(b,y,_){return this._backbuffer.toBlob(b,y,_)}},{key:"_damage",value:function(b,y,_,m){bthis._damageBounds.right&&(this._damageBounds.right=b+_),y+m>this._damageBounds.bottom&&(this._damageBounds.bottom=y+m)}},{key:"flip",value:function(b){if(this._renderQ.length!==0&&!b)this._renderQPush({type:"flip"});else{var y=this._damageBounds.left,_=this._damageBounds.top,m=this._damageBounds.right-y,k=this._damageBounds.bottom-_,x=y-this._viewportLoc.x,E=_-this._viewportLoc.y;x<0&&(m+=x,y-=x,x=0),E<0&&(k+=E,_-=E,E=0),x+m>this._viewportLoc.w&&(m=this._viewportLoc.w-x),E+k>this._viewportLoc.h&&(k=this._viewportLoc.h-E),m>0&&k>0&&this._targetCtx.drawImage(this._backbuffer,y,_,m,k,x,E,m,k),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){var b=this;return this._renderQ.length===0?Promise.resolve():(this._flushPromise===null&&(this._flushPromise=new Promise(function(y){b._flushResolve=y})),this._flushPromise)}},{key:"fillRect",value:function(b,y,_,m,k,x){this._renderQ.length!==0&&!x?this._renderQPush({type:"fill",x:b,y,width:_,height:m,color:k}):(this._setFillColor(k),this._drawCtx.fillRect(b,y,_,m),this._damage(b,y,_,m))}},{key:"copyImage",value:function(b,y,_,m,k,x,E){this._renderQ.length!==0&&!E?this._renderQPush({type:"copy",oldX:b,oldY:y,x:_,y:m,width:k,height:x}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,b,y,k,x,_,m,k,x),this._damage(_,m,k,x))}},{key:"imageRect",value:function(b,y,_,m,k,x){if(!(_===0||m===0)){var E=new Image;E.src="data: "+k+";base64,"+r.default.encode(x),this._renderQPush({type:"img",img:E,x:b,y,width:_,height:m})}}},{key:"blitImage",value:function(b,y,_,m,k,x,E){if(this._renderQ.length!==0&&!E){var S=new Uint8Array(_*m*4);S.set(new Uint8Array(k.buffer,0,S.length)),this._renderQPush({type:"blit",data:S,x:b,y,width:_,height:m})}else{var A=new Uint8ClampedArray(k.buffer,k.byteOffset+x,_*m*4),F=new ImageData(A,_,m);this._drawCtx.putImageData(F,b,y),this._damage(b,y,_,m)}}},{key:"drawImage",value:function(b,y,_){this._drawCtx.drawImage(b,y,_),this._damage(y,_,b.width,b.height)}},{key:"autoscale",value:function(b,y){var _;if(b===0||y===0)_=0;else{var m=this._viewportLoc,k=b/y,x=m.w/m.h;x>=k?_=b/m.w:_=y/m.h}this._rescale(_)}},{key:"_rescale",value:function(b){this._scale=b;var y=this._viewportLoc,_=b*y.w+"px",m=b*y.h+"px";(this._target.style.width!==_||this._target.style.height!==m)&&(this._target.style.width=_,this._target.style.height=m)}},{key:"_setFillColor",value:function(b){var y="rgb("+b[0]+","+b[1]+","+b[2]+")";y!==this._prevDrawStyle&&(this._drawCtx.fillStyle=y,this._prevDrawStyle=y)}},{key:"_renderQPush",value:function(b){this._renderQ.push(b),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var b=!0;b&&this._renderQ.length>0;){var y=this._renderQ[0];switch(y.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(y.oldX,y.oldY,y.x,y.y,y.width,y.height,!0);break;case"fill":this.fillRect(y.x,y.y,y.width,y.height,y.color,!0);break;case"blit":this.blitImage(y.x,y.y,y.width,y.height,y.data,0,!0);break;case"img":if(y.img.complete){if(y.img.width!==y.width||y.img.height!==y.height){t.Error("Decoded image has incorrect dimensions. Got "+y.img.width+"x"+y.img.height+". Expected "+y.width+"x"+y.height+".");return}this.drawImage(y.img,y.x,y.y)}else y.img._noVNCDisplay=this,y.img.addEventListener("load",this._resumeRenderQ),b=!1;break}b&&this._renderQ.shift()}this._renderQ.length===0&&this._flushPromise!==null&&(this._flushResolve(),this._flushPromise=null,this._flushResolve=null)}}])}()}(Hi)),Hi}var zi={},Je={},zt={},_s;function ki(){if(_s)return zt;_s=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.Buf8=zt.Buf32=zt.Buf16=void 0,zt.arraySet=t,zt.flattenChunks=r,zt.shrinkBuf=e;function e(n,i){return n.length===i?n:n.subarray?n.subarray(0,i):(n.length=i,n)}function t(n,i,u,h,v){if(i.subarray&&n.subarray){n.set(i.subarray(u,u+h),v);return}for(var a=0;a>>16&65535|0,a=0;i!==0;){a=i>2e3?2e3:i,i-=a;do h=h+n[u++]|0,v=v+h|0;while(--a);h%=65521,v%=65521}return h|v<<16|0}}(Gi)),Gi}var Wi={},gs;function Ul(){return gs||(gs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){for(var r,n=[],i=0;i<256;i++){r=i;for(var u=0;u<8;u++)r=r&1?3988292384^r>>>1:r>>>1;n[i]=r}return n}t()}(Wi)),Wi}var $i={},ys;function oh(){return ys||(ys=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var t=30,r=12;function n(i,u){var h,v,a,d,o,g,l,s,p,b,y,_,m,k,x,E,S,A,F,M,O,H,z,W,q;h=i.state,v=i.next_in,W=i.input,a=v+(i.avail_in-5),d=i.next_out,q=i.output,o=d-(u-i.avail_out),g=d+(i.avail_out-257),l=h.dmax,s=h.wsize,p=h.whave,b=h.wnext,y=h.window,_=h.hold,m=h.bits,k=h.lencode,x=h.distcode,E=(1<>>24,_>>>=F,m-=F,F=A>>>16&255,F===0)q[d++]=A&65535;else if(F&16){M=A&65535,F&=15,F&&(m>>=F,m-=F),m<15&&(_+=W[v++]<>>24,_>>>=F,m-=F,F=A>>>16&255,F&16){if(O=A&65535,F&=15,ml){i.msg="invalid distance too far back",h.mode=t;break e}if(_>>>=F,m-=F,F=d-o,O>F){if(F=O-F,F>p&&h.sane){i.msg="invalid distance too far back",h.mode=t;break e}if(H=0,z=y,b===0){if(H+=s-F,F2;)q[d++]=z[H++],q[d++]=z[H++],q[d++]=z[H++],M-=3;M&&(q[d++]=z[H++],M>1&&(q[d++]=z[H++]))}else{H=d-O;do q[d++]=q[H++],q[d++]=q[H++],q[d++]=q[H++],M-=3;while(M>2);M&&(q[d++]=q[H++],M>1&&(q[d++]=q[H++]))}}else if((F&64)===0){A=x[(A&65535)+(_&(1<>3,v-=M,m-=M<<3,_&=(1<=1&&Z[z]===0;z--);if(W>z&&(W=z),z===0)return x[E++]=1<<24|64<<16|0,x[E++]=1<<24|64<<16|0,A.bits=1,0;for(H=1;H0&&(y===a||z!==1))return-1;for(ee[1]=0,M=1;Mh||y===o&&pe>v)return 1;for(;;){ve=M-ae,S[O]ce?(P=J[ne+S[O]],T=Y[Q+S[O]]):(P=96,T=0),ge=1<>ae)+j]=ve<<24|P<<16|T|0;while(j!==0);for(ge=1<>=1;if(ge!==0?(oe&=ge-1,oe+=ge):oe=0,O++,--Z[M]===0){if(M===z)break;M=_[m+S[O]]}if(M>W&&(oe&we)!==le){for(ae===0&&(ae=W),ke+=H,q=M-ae,de=1<h||y===o&&pe>v)return 1;le=oe&we,x[le]=W<<24|q<<16|ke-E|0}}return oe!==0&&(x[ke+oe]=M-ae<<24|64<<16|0),A.bits=W,0}}(qi)),qi}var ms;function uh(){if(ms)return Je;ms=1;function e($){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},e($)}Object.defineProperty(Je,"__esModule",{value:!0}),Je.Z_TREES=Je.Z_STREAM_ERROR=Je.Z_STREAM_END=Je.Z_OK=Je.Z_NEED_DICT=Je.Z_MEM_ERROR=Je.Z_FINISH=Je.Z_DEFLATED=Je.Z_DATA_ERROR=Je.Z_BUF_ERROR=Je.Z_BLOCK=void 0,Je.inflate=_e,Je.inflateEnd=me,Je.inflateGetHeader=Ce,Je.inflateInfo=void 0,Je.inflateInit=Ye,Je.inflateInit2=Ne,Je.inflateReset=Xe,Je.inflateReset2=xe,Je.inflateResetKeep=Ae,Je.inflateSetDictionary=Le;var t=a(ki()),r=h(Ql()),n=h(Ul()),i=h(oh()),u=h(sh());function h($){return $&&$.__esModule?$:{default:$}}function v($){if(typeof WeakMap!="function")return null;var he=new WeakMap,R=new WeakMap;return(v=function(Pe){return Pe?R:he})($)}function a($,he){if($&&$.__esModule)return $;if($===null||e($)!="object"&&typeof $!="function")return{default:$};var R=v(he);if(R&&R.has($))return R.get($);var Se={__proto__:null},Pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in $)if(c!=="default"&&{}.hasOwnProperty.call($,c)){var X=Pe?Object.getOwnPropertyDescriptor($,c):null;X&&(X.get||X.set)?Object.defineProperty(Se,c,X):Se[c]=$[c]}return Se.default=$,R&&R.set($,Se),Se}var d=0,o=1,g=2,l=Je.Z_FINISH=4,s=Je.Z_BLOCK=5,p=Je.Z_TREES=6,b=Je.Z_OK=0,y=Je.Z_STREAM_END=1,_=Je.Z_NEED_DICT=2,m=Je.Z_STREAM_ERROR=-2,k=Je.Z_DATA_ERROR=-3,x=Je.Z_MEM_ERROR=-4,E=Je.Z_BUF_ERROR=-5,S=Je.Z_DEFLATED=8,A=1,F=2,M=3,O=4,H=5,z=6,W=7,q=8,ae=9,de=10,pe=11,oe=12,ge=13,j=14,le=15,we=16,ke=17,Y=18,Q=19,ce=20,Z=21,ee=22,J=23,ne=24,ve=25,P=26,T=27,D=28,N=29,V=30,te=31,I=32,U=852,B=592,G=15,ie=G;function se($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function ye(){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 t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ae($){var he;return!$||!$.state?m:(he=$.state,$.total_in=$.total_out=he.total=0,$.msg="",he.wrap&&($.adler=he.wrap&1),he.mode=A,he.last=0,he.havedict=0,he.dmax=32768,he.head=null,he.hold=0,he.bits=0,he.lencode=he.lendyn=new t.Buf32(U),he.distcode=he.distdyn=new t.Buf32(B),he.sane=1,he.back=-1,b)}function Xe($){var he;return!$||!$.state?m:(he=$.state,he.wsize=0,he.whave=0,he.wnext=0,Ae($))}function xe($,he){var R,Se;return!$||!$.state||(Se=$.state,he<0?(R=0,he=-he):(R=(he>>4)+1,he<48&&(he&=15)),he&&(he<8||he>15))?m:(Se.window!==null&&Se.wbits!==he&&(Se.window=null),Se.wrap=R,Se.wbits=he,Xe($))}function Ne($,he){var R,Se;return $?(Se=new ye,$.state=Se,Se.window=null,R=xe($,he),R!==b&&($.state=null),R):m}function Ye($){return Ne($,ie)}var _t=!0,gt,st;function kt($){if(_t){var he;for(gt=new t.Buf32(512),st=new t.Buf32(32),he=0;he<144;)$.lens[he++]=8;for(;he<256;)$.lens[he++]=9;for(;he<280;)$.lens[he++]=7;for(;he<288;)$.lens[he++]=8;for((0,u.default)(o,$.lens,0,288,gt,0,$.work,{bits:9}),he=0;he<32;)$.lens[he++]=5;(0,u.default)(g,$.lens,0,32,st,0,$.work,{bits:5}),_t=!1}$.lencode=gt,$.lenbits=9,$.distcode=st,$.distbits=5}function L($,he,R,Se){var Pe,c=$.state;return c.window===null&&(c.wsize=1<=c.wsize?(t.arraySet(c.window,he,R-c.wsize,c.wsize,0),c.wnext=0,c.whave=c.wsize):(Pe=c.wsize-c.wnext,Pe>Se&&(Pe=Se),t.arraySet(c.window,he,R-Se,Pe,c.wnext),Se-=Pe,Se?(t.arraySet(c.window,he,R-Se,Se,0),c.wnext=Se,c.whave=c.wsize):(c.wnext+=Pe,c.wnext===c.wsize&&(c.wnext=0),c.whave>>8&255,R.check=(0,n.default)(R.check,et,2,0),C=0,w=0,R.mode=F;break}if(R.flags=0,R.head&&(R.head.done=!1),!(R.wrap&1)||(((C&255)<<8)+(C>>8))%31){$.msg="incorrect header check",R.mode=V;break}if((C&15)!==S){$.msg="unknown compression method",R.mode=V;break}if(C>>>=4,w-=4,tt=(C&15)+8,R.wbits===0)R.wbits=tt;else if(tt>R.wbits){$.msg="invalid window size",R.mode=V;break}R.dmax=1<>8&1),R.flags&512&&(et[0]=C&255,et[1]=C>>>8&255,R.check=(0,n.default)(R.check,et,2,0)),C=0,w=0,R.mode=M;case M:for(;w<32;){if(K===0)break e;K--,C+=Se[c++]<>>8&255,et[2]=C>>>16&255,et[3]=C>>>24&255,R.check=(0,n.default)(R.check,et,4,0)),C=0,w=0,R.mode=O;case O:for(;w<16;){if(K===0)break e;K--,C+=Se[c++]<>8),R.flags&512&&(et[0]=C&255,et[1]=C>>>8&255,R.check=(0,n.default)(R.check,et,2,0)),C=0,w=0,R.mode=H;case H:if(R.flags&1024){for(;w<16;){if(K===0)break e;K--,C+=Se[c++]<>>8&255,R.check=(0,n.default)(R.check,et,2,0)),C=0,w=0}else R.head&&(R.head.extra=null);R.mode=z;case z:if(R.flags&1024&&(fe=R.length,fe>K&&(fe=K),fe&&(R.head&&(tt=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),t.arraySet(R.head.extra,Se,c,fe,tt)),R.flags&512&&(R.check=(0,n.default)(R.check,Se,fe,c)),K-=fe,c+=fe,R.length-=fe),R.length))break e;R.length=0,R.mode=W;case W:if(R.flags&2048){if(K===0)break e;fe=0;do tt=Se[c+fe++],R.head&&tt&&R.length<65536&&(R.head.name+=String.fromCharCode(tt));while(tt&&fe>9&1,R.head.done=!0),$.adler=R.check=0,R.mode=oe;break;case de:for(;w<32;){if(K===0)break e;K--,C+=Se[c++]<>>=w&7,w-=w&7,R.mode=T;break}for(;w<3;){if(K===0)break e;K--,C+=Se[c++]<>>=1,w-=1,C&3){case 0:R.mode=j;break;case 1:if(kt(R),R.mode=ce,he===p){C>>>=2,w-=2;break e}break;case 2:R.mode=ke;break;case 3:$.msg="invalid block type",R.mode=V}C>>>=2,w-=2;break;case j:for(C>>>=w&7,w-=w&7;w<32;){if(K===0)break e;K--,C+=Se[c++]<>>16^65535)){$.msg="invalid stored block lengths",R.mode=V;break}if(R.length=C&65535,C=0,w=0,R.mode=le,he===p)break e;case le:R.mode=we;case we:if(fe=R.length,fe){if(fe>K&&(fe=K),fe>f&&(fe=f),fe===0)break e;t.arraySet(Pe,Se,c,fe,X),K-=fe,c+=fe,f-=fe,X+=fe,R.length-=fe;break}R.mode=oe;break;case ke:for(;w<14;){if(K===0)break e;K--,C+=Se[c++]<>>=5,w-=5,R.ndist=(C&31)+1,C>>>=5,w-=5,R.ncode=(C&15)+4,C>>>=4,w-=4,R.nlen>286||R.ndist>30){$.msg="too many length or distance symbols",R.mode=V;break}R.have=0,R.mode=Y;case Y:for(;R.have>>=3,w-=3}for(;R.have<19;)R.lens[Qt[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,xt={bits:R.lenbits},qe=(0,u.default)(d,R.lens,0,19,R.lencode,0,R.work,xt),R.lenbits=xt.bits,qe){$.msg="invalid code lengths set",R.mode=V;break}R.have=0,R.mode=Q;case Q:for(;R.have>>24,Ie=Be>>>16&255,He=Be&65535,!(Me<=w);){if(K===0)break e;K--,C+=Se[c++]<>>=Me,w-=Me,R.lens[R.have++]=He;else{if(He===16){for(Et=Me+2;w>>=Me,w-=Me,R.have===0){$.msg="invalid bit length repeat",R.mode=V;break}tt=R.lens[R.have-1],fe=3+(C&3),C>>>=2,w-=2}else if(He===17){for(Et=Me+3;w>>=Me,w-=Me,tt=0,fe=3+(C&7),C>>>=3,w-=3}else{for(Et=Me+7;w>>=Me,w-=Me,tt=0,fe=11+(C&127),C>>>=7,w-=7}if(R.have+fe>R.nlen+R.ndist){$.msg="invalid bit length repeat",R.mode=V;break}for(;fe--;)R.lens[R.have++]=tt}}if(R.mode===V)break;if(R.lens[256]===0){$.msg="invalid code -- missing end-of-block",R.mode=V;break}if(R.lenbits=9,xt={bits:R.lenbits},qe=(0,u.default)(o,R.lens,0,R.nlen,R.lencode,0,R.work,xt),R.lenbits=xt.bits,qe){$.msg="invalid literal/lengths set",R.mode=V;break}if(R.distbits=6,R.distcode=R.distdyn,xt={bits:R.distbits},qe=(0,u.default)(g,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,xt),R.distbits=xt.bits,qe){$.msg="invalid distances set",R.mode=V;break}if(R.mode=ce,he===p)break e;case ce:R.mode=Z;case Z:if(K>=6&&f>=258){$.next_out=X,$.avail_out=f,$.next_in=c,$.avail_in=K,R.hold=C,R.bits=w,(0,i.default)($,ue),X=$.next_out,Pe=$.output,f=$.avail_out,c=$.next_in,Se=$.input,K=$.avail_in,C=R.hold,w=R.bits,R.mode===oe&&(R.back=-1);break}for(R.back=0;Be=R.lencode[C&(1<>>24,Ie=Be>>>16&255,He=Be&65535,!(Me<=w);){if(K===0)break e;K--,C+=Se[c++]<>Te)],Me=Be>>>24,Ie=Be>>>16&255,He=Be&65535,!(Te+Me<=w);){if(K===0)break e;K--,C+=Se[c++]<>>=Te,w-=Te,R.back+=Te}if(C>>>=Me,w-=Me,R.back+=Me,R.length=He,Ie===0){R.mode=P;break}if(Ie&32){R.back=-1,R.mode=oe;break}if(Ie&64){$.msg="invalid literal/length code",R.mode=V;break}R.extra=Ie&15,R.mode=ee;case ee:if(R.extra){for(Et=R.extra;w>>=R.extra,w-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=J;case J:for(;Be=R.distcode[C&(1<>>24,Ie=Be>>>16&255,He=Be&65535,!(Me<=w);){if(K===0)break e;K--,C+=Se[c++]<>Te)],Me=Be>>>24,Ie=Be>>>16&255,He=Be&65535,!(Te+Me<=w);){if(K===0)break e;K--,C+=Se[c++]<>>=Te,w-=Te,R.back+=Te}if(C>>>=Me,w-=Me,R.back+=Me,Ie&64){$.msg="invalid distance code",R.mode=V;break}R.offset=He,R.extra=Ie&15,R.mode=ne;case ne:if(R.extra){for(Et=R.extra;w>>=R.extra,w-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){$.msg="invalid distance too far back",R.mode=V;break}R.mode=ve;case ve:if(f===0)break e;if(fe=ue-f,R.offset>fe){if(fe=R.offset-fe,fe>R.whave&&R.sane){$.msg="invalid distance too far back",R.mode=V;break}fe>R.wnext?(fe-=R.wnext,be=R.wsize-fe):be=R.wnext-fe,fe>R.length&&(fe=R.length),Qe=R.window}else Qe=Pe,be=X-R.offset,fe=R.length;fe>f&&(fe=f),f-=fe,R.length-=fe;do Pe[X++]=Qe[be++];while(--fe);R.length===0&&(R.mode=Z);break;case P:if(f===0)break e;Pe[X++]=R.length,f--,R.mode=Z;break;case T:if(R.wrap){for(;w<32;){if(K===0)break e;K--,C|=Se[c++]<this.chunkSize&&(this.chunkSize=l,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=l;var s=(0,t.inflate)(this.strm,0);if(s<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=l)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,t.inflateReset)(this.strm)}}])}()}(zi)),zi}var Yi={},Ue={},br={},ks;function lh(){if(ks)return br;ks=1;function e(L){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_e){return typeof _e}:function(_e){return _e&&typeof Symbol=="function"&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e},e(L)}Object.defineProperty(br,"__esModule",{value:!0}),br._tr_align=gt,br._tr_flush_block=st,br._tr_init=Ye,br._tr_stored_block=_t,br._tr_tally=kt;var t=n(ki());function r(L){if(typeof WeakMap!="function")return null;var _e=new WeakMap,me=new WeakMap;return(r=function(Le){return Le?me:_e})(L)}function n(L,_e){if(L&&L.__esModule)return L;if(L===null||e(L)!="object"&&typeof L!="function")return{default:L};var me=r(_e);if(me&&me.has(L))return me.get(L);var Ce={__proto__:null},Le=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in L)if($!=="default"&&{}.hasOwnProperty.call(L,$)){var he=Le?Object.getOwnPropertyDescriptor(L,$):null;he&&(he.get||he.set)?Object.defineProperty(Ce,$,he):Ce[$]=L[$]}return Ce.default=L,me&&me.set(L,Ce),Ce}var i=4,u=0,h=1,v=2;function a(L){for(var _e=L.length;--_e>=0;)L[_e]=0}var d=0,o=1,g=2,l=3,s=258,p=29,b=256,y=b+1+p,_=30,m=19,k=2*y+1,x=15,E=16,S=7,A=256,F=16,M=17,O=18,H=[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],z=[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],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ae=512,de=new Array((y+2)*2);a(de);var pe=new Array(_*2);a(pe);var oe=new Array(ae);a(oe);var ge=new Array(s-l+1);a(ge);var j=new Array(p);a(j);var le=new Array(_);a(le);function we(L,_e,me,Ce,Le){this.static_tree=L,this.extra_bits=_e,this.extra_base=me,this.elems=Ce,this.max_length=Le,this.has_stree=L&&L.length}var ke,Y,Q;function ce(L,_e){this.dyn_tree=L,this.max_code=0,this.stat_desc=_e}function Z(L){return L<256?oe[L]:oe[256+(L>>>7)]}function ee(L,_e){L.pending_buf[L.pending++]=_e&255,L.pending_buf[L.pending++]=_e>>>8&255}function J(L,_e,me){L.bi_valid>E-me?(L.bi_buf|=_e<>E-L.bi_valid,L.bi_valid+=me-E):(L.bi_buf|=_e<>>=1,me<<=1;while(--_e>0);return me>>>1}function P(L){L.bi_valid===16?(ee(L,L.bi_buf),L.bi_buf=0,L.bi_valid=0):L.bi_valid>=8&&(L.pending_buf[L.pending++]=L.bi_buf&255,L.bi_buf>>=8,L.bi_valid-=8)}function T(L,_e){var me=_e.dyn_tree,Ce=_e.max_code,Le=_e.stat_desc.static_tree,$=_e.stat_desc.has_stree,he=_e.stat_desc.extra_bits,R=_e.stat_desc.extra_base,Se=_e.stat_desc.max_length,Pe,c,X,K,f,C,w=0;for(K=0;K<=x;K++)L.bl_count[K]=0;for(me[L.heap[L.heap_max]*2+1]=0,Pe=L.heap_max+1;PeSe&&(K=Se,w++),me[c*2+1]=K,!(c>Ce)&&(L.bl_count[K]++,f=0,c>=R&&(f=he[c-R]),C=me[c*2],L.opt_len+=C*(K+f),$&&(L.static_len+=C*(Le[c*2+1]+f)));if(w!==0){do{for(K=Se-1;L.bl_count[K]===0;)K--;L.bl_count[K]--,L.bl_count[K+1]+=2,L.bl_count[Se]--,w-=2}while(w>0);for(K=Se;K!==0;K--)for(c=L.bl_count[K];c!==0;)X=L.heap[--Pe],!(X>Ce)&&(me[X*2+1]!==K&&(L.opt_len+=(K-me[X*2+1])*me[X*2],me[X*2+1]=K),c--)}}function D(L,_e,me){var Ce=new Array(x+1),Le=0,$,he;for($=1;$<=x;$++)Ce[$]=Le=Le+me[$-1]<<1;for(he=0;he<=_e;he++){var R=L[he*2+1];R!==0&&(L[he*2]=ve(Ce[R]++,R))}}function N(){var L,_e,me,Ce,Le,$=new Array(x+1);for(me=0,Ce=0;Ce>=7;Ce<_;Ce++)for(le[Ce]=Le<<7,L=0;L<1<8?ee(L,L.bi_buf):L.bi_valid>0&&(L.pending_buf[L.pending++]=L.bi_buf),L.bi_buf=0,L.bi_valid=0}function I(L,_e,me,Ce){te(L),ee(L,me),ee(L,~me),t.arraySet(L.pending_buf,L.window,_e,me,L.pending),L.pending+=me}function U(L,_e,me,Ce){var Le=_e*2,$=me*2;return L[Le]>1;he>=1;he--)B(L,me,he);Pe=$;do he=L.heap[1],L.heap[1]=L.heap[L.heap_len--],B(L,me,1),R=L.heap[1],L.heap[--L.heap_max]=he,L.heap[--L.heap_max]=R,me[Pe*2]=me[he*2]+me[R*2],L.depth[Pe]=(L.depth[he]>=L.depth[R]?L.depth[he]:L.depth[R])+1,me[he*2+1]=me[R*2+1]=Pe,L.heap[1]=Pe++,B(L,me,1);while(L.heap_len>=2);L.heap[--L.heap_max]=L.heap[1],T(L,_e),D(me,Se,L.bl_count)}function se(L,_e,me){var Ce,Le=-1,$,he=_e[1],R=0,Se=7,Pe=4;for(he===0&&(Se=138,Pe=3),_e[(me+1)*2+1]=65535,Ce=0;Ce<=me;Ce++)$=he,he=_e[(Ce+1)*2+1],!(++R=3&&L.bl_tree[q[_e]*2+1]===0;_e--);return L.opt_len+=3*(_e+1)+5+5+4,_e}function Xe(L,_e,me,Ce){var Le;for(J(L,_e-257,5),J(L,me-1,5),J(L,Ce-4,4),Le=0;Le>>=1)if(_e&1&&L.dyn_ltree[me*2]!==0)return u;if(L.dyn_ltree[18]!==0||L.dyn_ltree[20]!==0||L.dyn_ltree[26]!==0)return h;for(me=32;me0?(L.strm.data_type===v&&(L.strm.data_type=xe(L)),ie(L,L.l_desc),ie(L,L.d_desc),he=Ae(L),Le=L.opt_len+3+7>>>3,$=L.static_len+3+7>>>3,$<=Le&&(Le=$)):Le=$=me+5,me+4<=Le&&_e!==-1?_t(L,_e,me,Ce):L.strategy===i||$===Le?(J(L,(o<<1)+(Ce?1:0),3),G(L,de,pe)):(J(L,(g<<1)+(Ce?1:0),3),Xe(L,L.l_desc.max_code+1,L.d_desc.max_code+1,he+1),G(L,L.dyn_ltree,L.dyn_dtree)),V(L),Ce&&te(L)}function kt(L,_e,me){return L.pending_buf[L.d_buf+L.last_lit*2]=_e>>>8&255,L.pending_buf[L.d_buf+L.last_lit*2+1]=_e&255,L.pending_buf[L.l_buf+L.last_lit]=me&255,L.last_lit++,_e===0?L.dyn_ltree[me*2]++:(L.matches++,_e--,L.dyn_ltree[(ge[me]+b+1)*2]++,L.dyn_dtree[Z(_e)*2]++),L.last_lit===L.lit_bufsize-1}return br}var Ji={},Ss;function ch(){return Ss||(Ss=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={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"}}(Ji)),Ji}var Es;function fh(){if(Es)return Ue;Es=1;function e(c){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},e(c)}Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.Z_UNKNOWN=Ue.Z_STREAM_ERROR=Ue.Z_STREAM_END=Ue.Z_RLE=Ue.Z_PARTIAL_FLUSH=Ue.Z_OK=Ue.Z_NO_FLUSH=Ue.Z_HUFFMAN_ONLY=Ue.Z_FULL_FLUSH=Ue.Z_FIXED=Ue.Z_FINISH=Ue.Z_FILTERED=Ue.Z_DEFLATED=Ue.Z_DEFAULT_STRATEGY=Ue.Z_DEFAULT_COMPRESSION=Ue.Z_DATA_ERROR=Ue.Z_BUF_ERROR=Ue.Z_BLOCK=void 0,Ue.deflate=R,Ue.deflateEnd=Se,Ue.deflateInfo=void 0,Ue.deflateInit=he,Ue.deflateInit2=$,Ue.deflateReset=Ce,Ue.deflateResetKeep=me,Ue.deflateSetDictionary=Pe,Ue.deflateSetHeader=Le;var t=a(ki()),r=a(lh()),n=h(Ql()),i=h(Ul()),u=h(ch());function h(c){return c&&c.__esModule?c:{default:c}}function v(c){if(typeof WeakMap!="function")return null;var X=new WeakMap,K=new WeakMap;return(v=function(C){return C?K:X})(c)}function a(c,X){if(c&&c.__esModule)return c;if(c===null||e(c)!="object"&&typeof c!="function")return{default:c};var K=v(X);if(K&&K.has(c))return K.get(c);var f={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in c)if(w!=="default"&&{}.hasOwnProperty.call(c,w)){var re=C?Object.getOwnPropertyDescriptor(c,w):null;re&&(re.get||re.set)?Object.defineProperty(f,w,re):f[w]=c[w]}return f.default=c,K&&K.set(c,f),f}var d=Ue.Z_NO_FLUSH=0,o=Ue.Z_PARTIAL_FLUSH=1,g=Ue.Z_FULL_FLUSH=3,l=Ue.Z_FINISH=4,s=Ue.Z_BLOCK=5,p=Ue.Z_OK=0,b=Ue.Z_STREAM_END=1,y=Ue.Z_STREAM_ERROR=-2,_=Ue.Z_DATA_ERROR=-3,m=Ue.Z_BUF_ERROR=-5,k=Ue.Z_DEFAULT_COMPRESSION=-1,x=Ue.Z_FILTERED=1,E=Ue.Z_HUFFMAN_ONLY=2,S=Ue.Z_RLE=3,A=Ue.Z_FIXED=4,F=Ue.Z_DEFAULT_STRATEGY=0,M=Ue.Z_UNKNOWN=2,O=Ue.Z_DEFLATED=8,H=9,z=15,W=8,q=29,ae=256,de=ae+1+q,pe=30,oe=19,ge=2*de+1,j=15,le=3,we=258,ke=we+le+1,Y=32,Q=42,ce=69,Z=73,ee=91,J=103,ne=113,ve=666,P=1,T=2,D=3,N=4,V=3;function te(c,X){return c.msg=u.default[X],X}function I(c){return(c<<1)-(c>4?9:0)}function U(c){for(var X=c.length;--X>=0;)c[X]=0}function B(c){var X=c.state,K=X.pending;K>c.avail_out&&(K=c.avail_out),K!==0&&(t.arraySet(c.output,X.pending_buf,X.pending_out,K,c.next_out),c.next_out+=K,X.pending_out+=K,c.total_out+=K,c.avail_out-=K,X.pending-=K,X.pending===0&&(X.pending_out=0))}function G(c,X){r._tr_flush_block(c,c.block_start>=0?c.block_start:-1,c.strstart-c.block_start,X),c.block_start=c.strstart,B(c.strm)}function ie(c,X){c.pending_buf[c.pending++]=X}function se(c,X){c.pending_buf[c.pending++]=X>>>8&255,c.pending_buf[c.pending++]=X&255}function ye(c,X,K,f){var C=c.avail_in;return C>f&&(C=f),C===0?0:(c.avail_in-=C,t.arraySet(X,c.input,c.next_in,C,K),c.state.wrap===1?c.adler=(0,n.default)(c.adler,X,C,K):c.state.wrap===2&&(c.adler=(0,i.default)(c.adler,X,C,K)),c.next_in+=C,c.total_in+=C,C)}function Ae(c,X){var K=c.max_chain_length,f=c.strstart,C,w,re=c.prev_length,ue=c.nice_match,fe=c.strstart>c.w_size-ke?c.strstart-(c.w_size-ke):0,be=c.window,Qe=c.w_mask,Be=c.prev,Me=c.strstart+we,Ie=be[f+re-1],He=be[f+re];c.prev_length>=c.good_match&&(K>>=2),ue>c.lookahead&&(ue=c.lookahead);do if(C=X,!(be[C+re]!==He||be[C+re-1]!==Ie||be[C]!==be[f]||be[++C]!==be[f+1])){f+=2,C++;do;while(be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&be[++f]===be[++C]&&fre){if(c.match_start=X,re=w,w>=ue)break;Ie=be[f+re-1],He=be[f+re]}}while((X=Be[X&Qe])>fe&&--K!==0);return re<=c.lookahead?re:c.lookahead}function Xe(c){var X=c.w_size,K,f,C,w,re;do{if(w=c.window_size-c.lookahead-c.strstart,c.strstart>=X+(X-ke)){t.arraySet(c.window,c.window,X,X,0),c.match_start-=X,c.strstart-=X,c.block_start-=X,f=c.hash_size,K=f;do C=c.head[--K],c.head[K]=C>=X?C-X:0;while(--f);f=X,K=f;do C=c.prev[--K],c.prev[K]=C>=X?C-X:0;while(--f);w+=X}if(c.strm.avail_in===0)break;if(f=ye(c.strm,c.window,c.strstart+c.lookahead,w),c.lookahead+=f,c.lookahead+c.insert>=le)for(re=c.strstart-c.insert,c.ins_h=c.window[re],c.ins_h=(c.ins_h<c.pending_buf_size-5&&(K=c.pending_buf_size-5);;){if(c.lookahead<=1){if(Xe(c),c.lookahead===0&&X===d)return P;if(c.lookahead===0)break}c.strstart+=c.lookahead,c.lookahead=0;var f=c.block_start+K;if((c.strstart===0||c.strstart>=f)&&(c.lookahead=c.strstart-f,c.strstart=f,G(c,!1),c.strm.avail_out===0)||c.strstart-c.block_start>=c.w_size-ke&&(G(c,!1),c.strm.avail_out===0))return P}return c.insert=0,X===l?(G(c,!0),c.strm.avail_out===0?D:N):(c.strstart>c.block_start&&(G(c,!1),c.strm.avail_out===0),P)}function Ne(c,X){for(var K,f;;){if(c.lookahead=le&&(c.ins_h=(c.ins_h<=le)if(f=r._tr_tally(c,c.strstart-c.match_start,c.match_length-le),c.lookahead-=c.match_length,c.match_length<=c.max_lazy_match&&c.lookahead>=le){c.match_length--;do c.strstart++,c.ins_h=(c.ins_h<=le&&(c.ins_h=(c.ins_h<4096)&&(c.match_length=le-1)),c.prev_length>=le&&c.match_length<=c.prev_length){C=c.strstart+c.lookahead-le,f=r._tr_tally(c,c.strstart-1-c.prev_match,c.prev_length-le),c.lookahead-=c.prev_length-1,c.prev_length-=2;do++c.strstart<=C&&(c.ins_h=(c.ins_h<=le&&c.strstart>0&&(C=c.strstart-1,f=re[C],f===re[++C]&&f===re[++C]&&f===re[++C])){w=c.strstart+we;do;while(f===re[++C]&&f===re[++C]&&f===re[++C]&&f===re[++C]&&f===re[++C]&&f===re[++C]&&f===re[++C]&&f===re[++C]&&Cc.lookahead&&(c.match_length=c.lookahead)}if(c.match_length>=le?(K=r._tr_tally(c,1,c.match_length-le),c.lookahead-=c.match_length,c.strstart+=c.match_length,c.match_length=0):(K=r._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++),K&&(G(c,!1),c.strm.avail_out===0))return P}return c.insert=0,X===l?(G(c,!0),c.strm.avail_out===0?D:N):c.last_lit&&(G(c,!1),c.strm.avail_out===0)?P:T}function gt(c,X){for(var K;;){if(c.lookahead===0&&(Xe(c),c.lookahead===0)){if(X===d)return P;break}if(c.match_length=0,K=r._tr_tally(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++,K&&(G(c,!1),c.strm.avail_out===0))return P}return c.insert=0,X===l?(G(c,!0),c.strm.avail_out===0?D:N):c.last_lit&&(G(c,!1),c.strm.avail_out===0)?P:T}function st(c,X,K,f,C){this.good_length=c,this.max_lazy=X,this.nice_length=K,this.max_chain=f,this.func=C}var kt;kt=[new st(0,0,0,0,xe),new st(4,4,8,4,Ne),new st(4,5,16,8,Ne),new st(4,6,32,32,Ne),new st(4,4,16,16,Ye),new st(8,16,32,32,Ye),new st(8,16,128,128,Ye),new st(8,32,128,256,Ye),new st(32,128,258,1024,Ye),new st(32,258,258,4096,Ye)];function L(c){c.window_size=2*c.w_size,U(c.head),c.max_lazy_match=kt[c.level].max_lazy,c.good_match=kt[c.level].good_length,c.nice_match=kt[c.level].nice_length,c.max_chain_length=kt[c.level].max_chain,c.strstart=0,c.block_start=0,c.lookahead=0,c.insert=0,c.match_length=c.prev_length=le-1,c.match_available=0,c.ins_h=0}function _e(){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=O,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 t.Buf16(ge*2),this.dyn_dtree=new t.Buf16((2*pe+1)*2),this.bl_tree=new t.Buf16((2*oe+1)*2),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(j+1),this.heap=new t.Buf16(2*de+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*de+1),U(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(c){var X;return!c||!c.state?te(c,y):(c.total_in=c.total_out=0,c.data_type=M,X=c.state,X.pending=0,X.pending_out=0,X.wrap<0&&(X.wrap=-X.wrap),X.status=X.wrap?Q:ne,c.adler=X.wrap===2?0:1,X.last_flush=d,r._tr_init(X),p)}function Ce(c){var X=me(c);return X===p&&L(c.state),X}function Le(c,X){return!c||!c.state||c.state.wrap!==2?y:(c.state.gzhead=X,p)}function $(c,X,K,f,C,w){if(!c)return y;var re=1;if(X===k&&(X=6),f<0?(re=0,f=-f):f>15&&(re=2,f-=16),C<1||C>H||K!==O||f<8||f>15||X<0||X>9||w<0||w>A)return te(c,y);f===8&&(f=9);var ue=new _e;return c.state=ue,ue.strm=c,ue.wrap=re,ue.gzhead=null,ue.w_bits=f,ue.w_size=1<s||X<0)return c?te(c,y):y;if(f=c.state,!c.output||!c.input&&c.avail_in!==0||f.status===ve&&X!==l)return te(c,c.avail_out===0?m:y);if(f.strm=c,K=f.last_flush,f.last_flush=X,f.status===Q)if(f.wrap===2)c.adler=0,ie(f,31),ie(f,139),ie(f,8),f.gzhead?(ie(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),ie(f,f.gzhead.time&255),ie(f,f.gzhead.time>>8&255),ie(f,f.gzhead.time>>16&255),ie(f,f.gzhead.time>>24&255),ie(f,f.level===9?2:f.strategy>=E||f.level<2?4:0),ie(f,f.gzhead.os&255),f.gzhead.extra&&f.gzhead.extra.length&&(ie(f,f.gzhead.extra.length&255),ie(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=ce):(ie(f,0),ie(f,0),ie(f,0),ie(f,0),ie(f,0),ie(f,f.level===9?2:f.strategy>=E||f.level<2?4:0),ie(f,V),f.status=ne);else{var re=O+(f.w_bits-8<<4)<<8,ue=-1;f.strategy>=E||f.level<2?ue=0:f.level<6?ue=1:f.level===6?ue=2:ue=3,re|=ue<<6,f.strstart!==0&&(re|=Y),re+=31-re%31,f.status=ne,se(f,re),f.strstart!==0&&(se(f,c.adler>>>16),se(f,c.adler&65535)),c.adler=1}if(f.status===ce)if(f.gzhead.extra){for(C=f.pending;f.gzindex<(f.gzhead.extra.length&65535)&&!(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>C&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),B(c),C=f.pending,f.pending===f.pending_buf_size));)ie(f,f.gzhead.extra[f.gzindex]&255),f.gzindex++;f.gzhead.hcrc&&f.pending>C&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=Z)}else f.status=Z;if(f.status===Z)if(f.gzhead.name){C=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>C&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),B(c),C=f.pending,f.pending===f.pending_buf_size)){w=1;break}f.gzindexC&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),w===0&&(f.gzindex=0,f.status=ee)}else f.status=ee;if(f.status===ee)if(f.gzhead.comment){C=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>C&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),B(c),C=f.pending,f.pending===f.pending_buf_size)){w=1;break}f.gzindexC&&(c.adler=(0,i.default)(c.adler,f.pending_buf,f.pending-C,C)),w===0&&(f.status=J)}else f.status=J;if(f.status===J&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&B(c),f.pending+2<=f.pending_buf_size&&(ie(f,c.adler&255),ie(f,c.adler>>8&255),c.adler=0,f.status=ne)):f.status=ne),f.pending!==0){if(B(c),c.avail_out===0)return f.last_flush=-1,p}else if(c.avail_in===0&&I(X)<=I(K)&&X!==l)return te(c,m);if(f.status===ve&&c.avail_in!==0)return te(c,m);if(c.avail_in!==0||f.lookahead!==0||X!==d&&f.status!==ve){var fe=f.strategy===E?gt(f,X):f.strategy===S?_t(f,X):kt[f.level].func(f,X);if((fe===D||fe===N)&&(f.status=ve),fe===P||fe===D)return c.avail_out===0&&(f.last_flush=-1),p;if(fe===T&&(X===o?r._tr_align(f):X!==s&&(r._tr_stored_block(f,0,0,!1),X===g&&(U(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),B(c),c.avail_out===0))return f.last_flush=-1,p}return X!==l?p:f.wrap<=0?b:(f.wrap===2?(ie(f,c.adler&255),ie(f,c.adler>>8&255),ie(f,c.adler>>16&255),ie(f,c.adler>>24&255),ie(f,c.total_in&255),ie(f,c.total_in>>8&255),ie(f,c.total_in>>16&255),ie(f,c.total_in>>24&255)):(se(f,c.adler>>>16),se(f,c.adler&65535)),B(c),f.wrap>0&&(f.wrap=-f.wrap),f.pending!==0?p:b)}function Se(c){var X;return!c||!c.state?y:(X=c.state.status,X!==Q&&X!==ce&&X!==Z&&X!==ee&&X!==J&&X!==ne&&X!==ve?te(c,y):(c.state=null,X===ne?te(c,_):p))}function Pe(c,X){var K=X.length,f,C,w,re,ue,fe,be,Qe;if(!c||!c.state||(f=c.state,re=f.wrap,re===2||re===1&&f.status!==Q||f.lookahead))return y;for(re===1&&(c.adler=(0,n.default)(c.adler,X,K,0)),f.wrap=0,K>=f.w_size&&(re===0&&(U(f.head),f.strstart=0,f.block_start=0,f.insert=0),Qe=new t.Buf8(f.w_size),t.arraySet(Qe,X,K-f.w_size,f.w_size,0),X=Qe,K=f.w_size),ue=c.avail_in,fe=c.next_in,be=c.input,c.avail_in=K,c.next_in=0,c.input=X,Xe(f);f.lookahead>=le;){C=f.strstart,w=f.lookahead-(le-1);do f.ins_h=(f.ins_h<0){var b=[p],y=p.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,s=(0,t.deflate)(this.strm,t.Z_FULL_FLUSH),s<0)throw new Error("zlib deflate failed");var _=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);y+=_.length,b.push(_)}while(this.strm.avail_in>0);for(var m=new Uint8Array(y),k=0,x=0;x=32&&n<=255)return n;var i=t[n];return i!==void 0?i:16777216|n}}}(ra)),ra}var na={},Ks;function ph(){return Ks||(Ks=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={8:"Backspace",9:"Tab",10:"NumpadClear",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"}}(na)),na}var ia={},Rs;function _h(){return Rs||(Rs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"}}(ia)),ia}var aa={},Xs;function vh(){return Xs||(Xs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Si());function r(v){return v&&v.__esModule?v:{default:v}}var n={};function i(v,a){if(a===void 0)throw new Error('Undefined keysym for key "'+v+'"');if(v in n)throw new Error('Duplicate entry for key "'+v+'"');n[v]=[a,a,a,a]}function u(v,a,d){if(a===void 0)throw new Error('Undefined keysym for key "'+v+'"');if(d===void 0)throw new Error('Undefined keysym for key "'+v+'"');if(v in n)throw new Error('Duplicate entry for key "'+v+'"');n[v]=[a,a,d,a]}function h(v,a,d){if(a===void 0)throw new Error('Undefined keysym for key "'+v+'"');if(d===void 0)throw new Error('Undefined keysym for key "'+v+'"');if(v in n)throw new Error('Duplicate entry for key "'+v+'"');n[v]=[a,a,a,d]}u("Alt",t.default.XK_Alt_L,t.default.XK_Alt_R),i("AltGraph",t.default.XK_ISO_Level3_Shift),i("CapsLock",t.default.XK_Caps_Lock),u("Control",t.default.XK_Control_L,t.default.XK_Control_R),u("Meta",t.default.XK_Super_L,t.default.XK_Super_R),i("NumLock",t.default.XK_Num_Lock),i("ScrollLock",t.default.XK_Scroll_Lock),u("Shift",t.default.XK_Shift_L,t.default.XK_Shift_R),h("Enter",t.default.XK_Return,t.default.XK_KP_Enter),i("Tab",t.default.XK_Tab),h(" ",t.default.XK_space,t.default.XK_KP_Space),h("ArrowDown",t.default.XK_Down,t.default.XK_KP_Down),h("ArrowLeft",t.default.XK_Left,t.default.XK_KP_Left),h("ArrowRight",t.default.XK_Right,t.default.XK_KP_Right),h("ArrowUp",t.default.XK_Up,t.default.XK_KP_Up),h("End",t.default.XK_End,t.default.XK_KP_End),h("Home",t.default.XK_Home,t.default.XK_KP_Home),h("PageDown",t.default.XK_Next,t.default.XK_KP_Next),h("PageUp",t.default.XK_Prior,t.default.XK_KP_Prior),i("Backspace",t.default.XK_BackSpace),h("Clear",t.default.XK_Clear,t.default.XK_KP_Begin),i("Copy",t.default.XF86XK_Copy),i("Cut",t.default.XF86XK_Cut),h("Delete",t.default.XK_Delete,t.default.XK_KP_Delete),h("Insert",t.default.XK_Insert,t.default.XK_KP_Insert),i("Paste",t.default.XF86XK_Paste),i("Redo",t.default.XK_Redo),i("Undo",t.default.XK_Undo),i("Cancel",t.default.XK_Cancel),i("ContextMenu",t.default.XK_Menu),i("Escape",t.default.XK_Escape),i("Execute",t.default.XK_Execute),i("Find",t.default.XK_Find),i("Help",t.default.XK_Help),i("Pause",t.default.XK_Pause),i("Select",t.default.XK_Select),i("ZoomIn",t.default.XF86XK_ZoomIn),i("ZoomOut",t.default.XF86XK_ZoomOut),i("BrightnessDown",t.default.XF86XK_MonBrightnessDown),i("BrightnessUp",t.default.XF86XK_MonBrightnessUp),i("Eject",t.default.XF86XK_Eject),i("LogOff",t.default.XF86XK_LogOff),i("Power",t.default.XF86XK_PowerOff),i("PowerOff",t.default.XF86XK_PowerDown),i("PrintScreen",t.default.XK_Print),i("Hibernate",t.default.XF86XK_Hibernate),i("Standby",t.default.XF86XK_Standby),i("WakeUp",t.default.XF86XK_WakeUp),i("AllCandidates",t.default.XK_MultipleCandidate),i("Alphanumeric",t.default.XK_Eisu_toggle),i("CodeInput",t.default.XK_Codeinput),i("Compose",t.default.XK_Multi_key),i("Convert",t.default.XK_Henkan),i("GroupFirst",t.default.XK_ISO_First_Group),i("GroupLast",t.default.XK_ISO_Last_Group),i("GroupNext",t.default.XK_ISO_Next_Group),i("GroupPrevious",t.default.XK_ISO_Prev_Group),i("NonConvert",t.default.XK_Muhenkan),i("PreviousCandidate",t.default.XK_PreviousCandidate),i("SingleCandidate",t.default.XK_SingleCandidate),i("HangulMode",t.default.XK_Hangul),i("HanjaMode",t.default.XK_Hangul_Hanja),i("JunjaMode",t.default.XK_Hangul_Jeonja),i("Eisu",t.default.XK_Eisu_toggle),i("Hankaku",t.default.XK_Hankaku),i("Hiragana",t.default.XK_Hiragana),i("HiraganaKatakana",t.default.XK_Hiragana_Katakana),i("KanaMode",t.default.XK_Kana_Shift),i("KanjiMode",t.default.XK_Kanji),i("Katakana",t.default.XK_Katakana),i("Romaji",t.default.XK_Romaji),i("Zenkaku",t.default.XK_Zenkaku),i("ZenkakuHankaku",t.default.XK_Zenkaku_Hankaku),i("F1",t.default.XK_F1),i("F2",t.default.XK_F2),i("F3",t.default.XK_F3),i("F4",t.default.XK_F4),i("F5",t.default.XK_F5),i("F6",t.default.XK_F6),i("F7",t.default.XK_F7),i("F8",t.default.XK_F8),i("F9",t.default.XK_F9),i("F10",t.default.XK_F10),i("F11",t.default.XK_F11),i("F12",t.default.XK_F12),i("F13",t.default.XK_F13),i("F14",t.default.XK_F14),i("F15",t.default.XK_F15),i("F16",t.default.XK_F16),i("F17",t.default.XK_F17),i("F18",t.default.XK_F18),i("F19",t.default.XK_F19),i("F20",t.default.XK_F20),i("F21",t.default.XK_F21),i("F22",t.default.XK_F22),i("F23",t.default.XK_F23),i("F24",t.default.XK_F24),i("F25",t.default.XK_F25),i("F26",t.default.XK_F26),i("F27",t.default.XK_F27),i("F28",t.default.XK_F28),i("F29",t.default.XK_F29),i("F30",t.default.XK_F30),i("F31",t.default.XK_F31),i("F32",t.default.XK_F32),i("F33",t.default.XK_F33),i("F34",t.default.XK_F34),i("F35",t.default.XK_F35),i("Close",t.default.XF86XK_Close),i("MailForward",t.default.XF86XK_MailForward),i("MailReply",t.default.XF86XK_Reply),i("MailSend",t.default.XF86XK_Send),i("MediaFastForward",t.default.XF86XK_AudioForward),i("MediaPause",t.default.XF86XK_AudioPause),i("MediaPlay",t.default.XF86XK_AudioPlay),i("MediaRecord",t.default.XF86XK_AudioRecord),i("MediaRewind",t.default.XF86XK_AudioRewind),i("MediaStop",t.default.XF86XK_AudioStop),i("MediaTrackNext",t.default.XF86XK_AudioNext),i("MediaTrackPrevious",t.default.XF86XK_AudioPrev),i("New",t.default.XF86XK_New),i("Open",t.default.XF86XK_Open),i("Print",t.default.XK_Print),i("Save",t.default.XF86XK_Save),i("SpellCheck",t.default.XF86XK_Spell),i("AudioVolumeDown",t.default.XF86XK_AudioLowerVolume),i("AudioVolumeUp",t.default.XF86XK_AudioRaiseVolume),i("AudioVolumeMute",t.default.XF86XK_AudioMute),i("MicrophoneVolumeMute",t.default.XF86XK_AudioMicMute),i("LaunchApplication1",t.default.XF86XK_MyComputer),i("LaunchApplication2",t.default.XF86XK_Calculator),i("LaunchCalendar",t.default.XF86XK_Calendar),i("LaunchMail",t.default.XF86XK_Mail),i("LaunchMediaPlayer",t.default.XF86XK_AudioMedia),i("LaunchMusicPlayer",t.default.XF86XK_Music),i("LaunchPhone",t.default.XF86XK_Phone),i("LaunchScreenSaver",t.default.XF86XK_ScreenSaver),i("LaunchSpreadsheet",t.default.XF86XK_Excel),i("LaunchWebBrowser",t.default.XF86XK_WWW),i("LaunchWebCam",t.default.XF86XK_WebCam),i("LaunchWordProcessor",t.default.XF86XK_Word),i("BrowserBack",t.default.XF86XK_Back),i("BrowserFavorites",t.default.XF86XK_Favorites),i("BrowserForward",t.default.XF86XK_Forward),i("BrowserHome",t.default.XF86XK_HomePage),i("BrowserRefresh",t.default.XF86XK_Refresh),i("BrowserSearch",t.default.XF86XK_Search),i("BrowserStop",t.default.XF86XK_Stop),i("Dimmer",t.default.XF86XK_BrightnessAdjust),i("MediaAudioTrack",t.default.XF86XK_AudioCycleTrack),i("RandomToggle",t.default.XF86XK_AudioRandomPlay),i("SplitScreenToggle",t.default.XF86XK_SplitScreen),i("Subtitle",t.default.XF86XK_Subtitle),i("VideoModeNext",t.default.XF86XK_Next_VMode),h("=",t.default.XK_equal,t.default.XK_KP_Equal),h("+",t.default.XK_plus,t.default.XK_KP_Add),h("-",t.default.XK_minus,t.default.XK_KP_Subtract),h("*",t.default.XK_asterisk,t.default.XK_KP_Multiply),h("/",t.default.XK_slash,t.default.XK_KP_Divide),h(".",t.default.XK_period,t.default.XK_KP_Decimal),h(",",t.default.XK_comma,t.default.XK_KP_Separator),h("0",t.default.XK_0,t.default.XK_KP_0),h("1",t.default.XK_1,t.default.XK_KP_1),h("2",t.default.XK_2,t.default.XK_KP_2),h("3",t.default.XK_3,t.default.XK_KP_3),h("4",t.default.XK_4,t.default.XK_KP_4),h("5",t.default.XK_5,t.default.XK_KP_5),h("6",t.default.XK_6,t.default.XK_KP_6),h("7",t.default.XK_7,t.default.XK_KP_7),h("8",t.default.XK_8,t.default.XK_KP_8),h("9",t.default.XK_9,t.default.XK_KP_9),e.default=n}(aa)),aa}var Ts;function gh(){if(Ts)return Vr;Ts=1;function e(s){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(s)}Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.getKey=g,Vr.getKeycode=o,Vr.getKeysym=l;var t=d(Si()),r=d(hh()),n=d(ph()),i=d(_h()),u=d(vh()),h=a(wi());function v(s){if(typeof WeakMap!="function")return null;var p=new WeakMap,b=new WeakMap;return(v=function(_){return _?b:p})(s)}function a(s,p){if(s&&s.__esModule)return s;if(s===null||e(s)!="object"&&typeof s!="function")return{default:s};var b=v(p);if(b&&b.has(s))return b.get(s);var y={__proto__:null},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in s)if(m!=="default"&&{}.hasOwnProperty.call(s,m)){var k=_?Object.getOwnPropertyDescriptor(s,m):null;k&&(k.get||k.set)?Object.defineProperty(y,m,k):y[m]=s[m]}return y.default=s,b&&b.set(s,y),y}function d(s){return s&&s.__esModule?s:{default:s}}function o(s){if(s.code){switch(s.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return s.code}if(s.keyCode in n.default){var p=n.default[s.keyCode];if(h.isMac()&&p==="ContextMenu"&&(p="MetaRight"),s.location===2)switch(p){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(p){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return p}return"Unidentified"}function g(s){if(s.key!==void 0&&s.key!=="Unidentified"){switch(s.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(s.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}return s.key==="\0"&&s.code==="NumpadDecimal"?"Delete":s.key}var p=o(s);return p in i.default?i.default[p]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function l(s){var p=g(s);if(p==="Unidentified")return null;if(p in u.default){var b=s.location;if(p==="Meta"&&b===0&&(b=2),p==="Clear"&&b===3){var y=o(s);y==="NumLock"&&(b=0)}if((b===void 0||b>3)&&(b=0),p==="Meta"){var _=o(s);if(_==="AltLeft")return t.default.XK_Meta_L;if(_==="AltRight")return t.default.XK_Meta_R}if(p==="Clear"){var m=o(s);if(m==="NumLock")return t.default.XK_Num_Lock}if(h.isWindows())switch(p){case"Zenkaku":case"Hankaku":return t.default.XK_Zenkaku_Hankaku;case"Romaji":case"KanaMode":return t.default.XK_Romaji}return u.default[p][b]}if(p.length!==1)return null;var k=p.charCodeAt();return k?r.default.lookup(k):null}return Vr}var Ps;function yh(){return Ps||(Ps=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Cr()),r=Il(),n=a(gh()),i=h(Si()),u=a(wi());function h(b){return b&&b.__esModule?b:{default:b}}function v(b){if(typeof WeakMap!="function")return null;var y=new WeakMap,_=new WeakMap;return(v=function(k){return k?_:y})(b)}function a(b,y){if(b&&b.__esModule)return b;if(b===null||d(b)!="object"&&typeof b!="function")return{default:b};var _=v(y);if(_&&_.has(b))return _.get(b);var m={__proto__:null},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in b)if(x!=="default"&&{}.hasOwnProperty.call(b,x)){var E=k?Object.getOwnPropertyDescriptor(b,x):null;E&&(E.get||E.set)?Object.defineProperty(m,x,E):m[x]=b[x]}return m.default=b,_&&_.set(b,m),m}function d(b){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},d(b)}function o(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function g(b,y){for(var _=0;_3&&arguments[3]!==void 0?arguments[3]:null,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(k)this._keyDownList[m]=_;else{if(!(m in this._keyDownList))return;delete this._keyDownList[m]}t.Debug("onkeyevent "+(k?"down":"up")+", keysym: "+_,", code: "+m+", numlock: "+x+", capslock: "+E),this.onkeyevent(_,m,k,x,E)}},{key:"_getKeyCode",value:function(_){var m=n.getKeycode(_);if(m!=="Unidentified")return m;if(_.keyCode&&_.keyCode!==229)return"Platform"+_.keyCode;if(_.keyIdentifier){if(_.keyIdentifier.substr(0,2)!=="U+")return _.keyIdentifier;var k=parseInt(_.keyIdentifier.substr(2),16),x=String.fromCharCode(k).toUpperCase();return"Platform"+x.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(_){var m=this._getKeyCode(_),k=n.getKeysym(_),x=_.getModifierState("NumLock"),E=_.getModifierState("CapsLock");if((u.isMac()||u.isIOS())&&(x=null),this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),m==="AltRight"&&_.timeStamp-this._altGrCtrlTime<50?k=i.default.XK_ISO_Level3_Shift:this._sendKeyEvent(i.default.XK_Control_L,"ControlLeft",!0,x,E)),m==="Unidentified"){k&&(this._sendKeyEvent(k,m,!0,x,E),this._sendKeyEvent(k,m,!1,x,E)),(0,r.stopEvent)(_);return}if(u.isMac()||u.isIOS())switch(k){case i.default.XK_Super_L:k=i.default.XK_Alt_L;break;case i.default.XK_Super_R:k=i.default.XK_Super_L;break;case i.default.XK_Alt_L:k=i.default.XK_Mode_switch;break;case i.default.XK_Alt_R:k=i.default.XK_ISO_Level3_Shift;break}if(m in this._keyDownList&&(k=this._keyDownList[m]),(u.isMac()||u.isIOS())&&_.metaKey&&m!=="MetaLeft"&&m!=="MetaRight"){this._sendKeyEvent(k,m,!0,x,E),this._sendKeyEvent(k,m,!1,x,E),(0,r.stopEvent)(_);return}if((u.isMac()||u.isIOS())&&m==="CapsLock"){this._sendKeyEvent(i.default.XK_Caps_Lock,"CapsLock",!0,x,E),this._sendKeyEvent(i.default.XK_Caps_Lock,"CapsLock",!1,x,E),(0,r.stopEvent)(_);return}var S=[i.default.XK_Zenkaku_Hankaku,i.default.XK_Eisu_toggle,i.default.XK_Katakana,i.default.XK_Hiragana,i.default.XK_Romaji];if(u.isWindows()&&S.includes(k)){this._sendKeyEvent(k,m,!0,x,E),this._sendKeyEvent(k,m,!1,x,E),(0,r.stopEvent)(_);return}if((0,r.stopEvent)(_),m==="ControlLeft"&&u.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=_.timeStamp;return}this._sendKeyEvent(k,m,!0,x,E)}},{key:"_handleKeyUp",value:function(_){(0,r.stopEvent)(_);var m=this._getKeyCode(_);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(i.default.XK_Control_L,"ControlLeft",!0)),(u.isMac()||u.isIOS())&&m==="CapsLock"){this._sendKeyEvent(i.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(i.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[m],m,!1),u.isWindows()&&(m==="ShiftLeft"||m==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(i.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){t.Debug(">> Keyboard.allKeysUp");for(var _ in this._keyDownList)this._sendKeyEvent(this._keyDownList[_],_,!1);t.Debug("<< Keyboard.allKeysUp")}},{key:"grab",value:function(){this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),window.addEventListener("blur",this._eventHandlers.blur)}},{key:"ungrab",value:function(){this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}])}()}(ea)),ea}var oa={},Ms;function bh(){return Ms||(Ms=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(S)}function r(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function n(S,A){for(var F=0;F0&&Date.now()-this._tracked[0].started>m){this._state=v,this._ignored.push(F);return}if(this._waitingRelease){this._state=v,this._ignored.push(F);return}switch(this._tracked.push({id:F,started:Date.now(),active:!0,firstX:M,firstY:O,lastX:M,lastY:O,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=-26,this._stopLongpressTimeout();break;case 3:this._state&=-99;break;default:this._state=v}}},{key:"_touchMove",value:function(F,M,O){var H=this._tracked.find(function(pe){return pe.id===F});if(H!==void 0){H.lastX=M,H.lastY=O;var z=M-H.firstX,W=O-H.firstY;if((H.firstX!==H.lastX||H.firstY!==H.lastY)&&(H.angle=Math.atan2(W,z)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(z,W)y){var de=Math.abs(H.angle-q.angle);de=Math.abs((de+180)%360-180),de>_?this._state&=~s:this._state&=~p,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}}},{key:"_touchEnd",value:function(F,M,O){if(this._ignored.indexOf(F)!==-1){this._ignored.splice(this._ignored.indexOf(F),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=b,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=v),!this._hasDetectedGesture()&&(this._state&=-105,this._state&=~l,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=-7;break;case 2:this._state&=-6;break}if(this._waitingRelease){Date.now()-this._releaseStart>m&&(this._state=v),this._tracked.some(function(W){return Date.now()-W.started>k})&&(this._state=v);var H=this._tracked.find(function(W){return W.id===F});if(H.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var z=0;zx.length)&&(E=x.length);for(var S=0,A=Array(E);S=0;F--)A+=this._rQ[this._rQi++]<>>0}},{key:"rQshiftStr",value:function(S){for(var A="",F=0;F1&&arguments[1]!==void 0?arguments[1]:!0;return this._rQi+=S,A?this._rQ.slice(this._rQi-S,this._rQi):this._rQ.subarray(this._rQi-S,this._rQi)}},{key:"rQshiftTo",value:function(S,A){S.set(new Uint8Array(this._rQ.buffer,this._rQi,A)),this._rQi+=A}},{key:"rQpeekBytes",value:function(S){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return A?this._rQ.slice(this._rQi,this._rQi+S):this._rQ.subarray(this._rQi,this._rQi+S)}},{key:"rQwait",value:function(S,A,F){if(this._rQlen-this._rQi>8&255,this._sQ[this._sQlen++]=S>>0&255}},{key:"sQpush32",value:function(S){this._sQensureSpace(4),this._sQ[this._sQlen++]=S>>24&255,this._sQ[this._sQlen++]=S>>16&255,this._sQ[this._sQlen++]=S>>8&255,this._sQ[this._sQlen++]=S>>0&255}},{key:"sQpushString",value:function(S){var A=S.split("").map(function(F){return F.charCodeAt(0)});this.sQpushBytes(new Uint8Array(A))}},{key:"sQpushBytes",value:function(S){for(var A=0;AS.length-A&&(F=S.length-A),this._sQ.set(S.subarray(A,F),this._sQlen),this._sQlen+=F,A+=F}}},{key:"flush",value:function(){this._sQlen>0&&this.readyState==="open"&&(this._websocket.send(new Uint8Array(this._sQ.buffer,0,this._sQlen)),this._sQlen=0)}},{key:"_sQensureSpace",value:function(S){this._sQbufferSize-this._sQlen> WebSock.onopen"),A._websocket.protocol&&t.Info("Server choose sub-protocol: "+A._websocket.protocol),A._eventHandlers.open(),t.Debug("<< WebSock.onopen")},this._websocket.onclose=function(H){t.Debug(">> WebSock.onclose"),A._eventHandlers.close(H),t.Debug("<< WebSock.onclose")},this._websocket.onerror=function(H){t.Debug(">> WebSock.onerror: "+H),A._eventHandlers.error(H),t.Debug("<< WebSock.onerror: "+H)}}},{key:"close",value:function(){this._websocket&&((this.readyState==="connecting"||this.readyState==="open")&&(t.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_expandCompactRQ",value:function(S){var A=(this._rQlen-this._rQi+S)*8,F=this._rQbufferSizey&&(this._rQbufferSize=y,this._rQbufferSize-(this._rQlen-this._rQi)this._rQbufferSize-this._rQlen&&this._expandCompactRQ(A.length),this._rQ.set(A,this._rQlen),this._rQlen+=A.length,this._rQlen-this._rQi>0?this._eventHandlers.message():t.Debug("Ignoring empty message")}}])}()}(ua)),ua}var la={},Ds;function wh(){return Ds||(Ds=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang1:114,Lang2:113,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443}}(la)),la}var zr={},Is;function kh(){if(Is)return zr;Is=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.encodingName=t,zr.encodings=void 0;var e=zr.encodings={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingZRLE:16,encodingTightPNG:-260,encodingJPEG:21,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingQEMULedEvent:-261,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};function t(r){switch(r){case e.encodingRaw:return"Raw";case e.encodingCopyRect:return"CopyRect";case e.encodingRRE:return"RRE";case e.encodingHextile:return"Hextile";case e.encodingTight:return"Tight";case e.encodingZRLE:return"ZRLE";case e.encodingTightPNG:return"TightPNG";case e.encodingJPEG:return"JPEG";default:return"[unknown encoding "+r+"]"}}return zr}var ca={},fa={},Tr={},Bs;function Sh(){if(Bs)return Tr;Bs=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.AESECBCipher=Tr.AESEAXCipher=void 0;function e(d){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},e(d)}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return o};var d,o={},g=Object.prototype,l=g.hasOwnProperty,s=Object.defineProperty||function(Q,ce,Z){Q[ce]=Z.value},p=typeof Symbol=="function"?Symbol:{},b=p.iterator||"@@iterator",y=p.asyncIterator||"@@asyncIterator",_=p.toStringTag||"@@toStringTag";function m(Q,ce,Z){return Object.defineProperty(Q,ce,{value:Z,enumerable:!0,configurable:!0,writable:!0}),Q[ce]}try{m({},"")}catch{m=function(Z,ee,J){return Z[ee]=J}}function k(Q,ce,Z,ee){var J=ce&&ce.prototype instanceof O?ce:O,ne=Object.create(J.prototype),ve=new ke(ee||[]);return s(ne,"_invoke",{value:ge(Q,Z,ve)}),ne}function x(Q,ce,Z){try{return{type:"normal",arg:Q.call(ce,Z)}}catch(ee){return{type:"throw",arg:ee}}}o.wrap=k;var E="suspendedStart",S="suspendedYield",A="executing",F="completed",M={};function O(){}function H(){}function z(){}var W={};m(W,b,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(Y([])));ae&&ae!==g&&l.call(ae,b)&&(W=ae);var de=z.prototype=O.prototype=Object.create(W);function pe(Q){["next","throw","return"].forEach(function(ce){m(Q,ce,function(Z){return this._invoke(ce,Z)})})}function oe(Q,ce){function Z(J,ne,ve,P){var T=x(Q[J],Q,ne);if(T.type!=="throw"){var D=T.arg,N=D.value;return N&&e(N)=="object"&&l.call(N,"__await")?ce.resolve(N.__await).then(function(V){Z("next",V,ve,P)},function(V){Z("throw",V,ve,P)}):ce.resolve(N).then(function(V){D.value=V,ve(D)},function(V){return Z("throw",V,ve,P)})}P(T.arg)}var ee;s(this,"_invoke",{value:function(ne,ve){function P(){return new ce(function(T,D){Z(ne,ve,T,D)})}return ee=ee?ee.then(P,P):P()}})}function ge(Q,ce,Z){var ee=E;return function(J,ne){if(ee===A)throw Error("Generator is already running");if(ee===F){if(J==="throw")throw ne;return{value:d,done:!0}}for(Z.method=J,Z.arg=ne;;){var ve=Z.delegate;if(ve){var P=j(ve,Z);if(P){if(P===M)continue;return P}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(ee===E)throw ee=F,Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);ee=A;var T=x(Q,ce,Z);if(T.type==="normal"){if(ee=Z.done?F:S,T.arg===M)continue;return{value:T.arg,done:Z.done}}T.type==="throw"&&(ee=F,Z.method="throw",Z.arg=T.arg)}}}function j(Q,ce){var Z=ce.method,ee=Q.iterator[Z];if(ee===d)return ce.delegate=null,Z==="throw"&&Q.iterator.return&&(ce.method="return",ce.arg=d,j(Q,ce),ce.method==="throw")||Z!=="return"&&(ce.method="throw",ce.arg=new TypeError("The iterator does not provide a '"+Z+"' method")),M;var J=x(ee,Q.iterator,ce.arg);if(J.type==="throw")return ce.method="throw",ce.arg=J.arg,ce.delegate=null,M;var ne=J.arg;return ne?ne.done?(ce[Q.resultName]=ne.value,ce.next=Q.nextLoc,ce.method!=="return"&&(ce.method="next",ce.arg=d),ce.delegate=null,M):ne:(ce.method="throw",ce.arg=new TypeError("iterator result is not an object"),ce.delegate=null,M)}function le(Q){var ce={tryLoc:Q[0]};1 in Q&&(ce.catchLoc=Q[1]),2 in Q&&(ce.finallyLoc=Q[2],ce.afterLoc=Q[3]),this.tryEntries.push(ce)}function we(Q){var ce=Q.completion||{};ce.type="normal",delete ce.arg,Q.completion=ce}function ke(Q){this.tryEntries=[{tryLoc:"root"}],Q.forEach(le,this),this.reset(!0)}function Y(Q){if(Q||Q===""){var ce=Q[b];if(ce)return ce.call(Q);if(typeof Q.next=="function")return Q;if(!isNaN(Q.length)){var Z=-1,ee=function J(){for(;++Z=0;--J){var ne=this.tryEntries[J],ve=ne.completion;if(ne.tryLoc==="root")return ee("end");if(ne.tryLoc<=this.prev){var P=l.call(ne,"catchLoc"),T=l.call(ne,"finallyLoc");if(P&&T){if(this.prev=0;--ee){var J=this.tryEntries[ee];if(J.tryLoc<=this.prev&&l.call(J,"finallyLoc")&&this.prev=0;--Z){var ee=this.tryEntries[Z];if(ee.finallyLoc===ce)return this.complete(ee.completion,ee.afterLoc),we(ee),M}},catch:function(ce){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ee=this.tryEntries[Z];if(ee.tryLoc===ce){var J=ee.completion;if(J.type==="throw"){var ne=J.arg;we(ee)}return ne}}throw Error("illegal catch attempt")},delegateYield:function(ce,Z,ee){return this.delegate={iterator:Y(ce),resultName:Z,nextLoc:ee},this.method==="next"&&(this.arg=d),M}},o}function r(d,o,g,l,s,p,b){try{var y=d[p](b),_=y.value}catch(m){return void g(m)}y.done?o(_):Promise.resolve(_).then(l,s)}function n(d){return function(){var o=this,g=arguments;return new Promise(function(l,s){var p=d.apply(o,g);function b(_){r(p,l,s,b,y,"next",_)}function y(_){r(p,l,s,b,y,"throw",_)}b(void 0)})}}function i(d,o){if(!(d instanceof o))throw new TypeError("Cannot call a class as a function")}function u(d,o){for(var g=0;g>>6,y=0;y<15;y++)p[y]=s[y+1]>>6|s[y]<<2,s[y]=s[y+1]>>7|s[y]<<1;_=[0,135,14,137],p[14]^=b>>>1,p[15]=s[15]<<2^_[b],s[15]=s[15]<<1^_[b>>1],this._k1=s,this._k2=p;case 12:case"end":return k.stop()}},l,this)}));function g(){return o.apply(this,arguments)}return g}()},{key:"_encryptCTR",value:function(){var o=n(t().mark(function l(s,p){var b;return t().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,window.crypto.subtle.encrypt({name:"AES-CTR",counter:p,length:128},this._ctrKey,s);case 2:return b=_.sent,_.abrupt("return",new Uint8Array(b));case 4:case"end":return _.stop()}},l,this)}));function g(l,s){return o.apply(this,arguments)}return g}()},{key:"_decryptCTR",value:function(){var o=n(t().mark(function l(s,p){var b;return t().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,window.crypto.subtle.decrypt({name:"AES-CTR",counter:p,length:128},this._ctrKey,s);case 2:return b=_.sent,_.abrupt("return",new Uint8Array(b));case 4:case"end":return _.stop()}},l,this)}));function g(l,s){return o.apply(this,arguments)}return g}()},{key:"_computeCMAC",value:function(){var o=n(t().mark(function l(s,p){var b,y,_,m,k,x,E,S;return t().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(p.length===16){F.next=2;break}return F.abrupt("return",null);case 2:if(b=Math.floor(s.length/16),y=Math.ceil(s.length/16),_=s.length-b*16,m=new Uint8Array((y+1)*16),m.set(p),m.set(s,16),_===0)for(k=0;k<16;k++)m[b*16+k]^=this._k1[k];else for(m[(b+1)*16+_]=128,x=0;x<16;x++)m[(b+1)*16+x]^=this._k2[x];return F.next=11,window.crypto.subtle.encrypt({name:"AES-CBC",iv:this._zeroBlock},this._cbcKey,m);case 11:return E=F.sent,E=new Uint8Array(E),S=E.slice(E.length-32,E.length-16),F.abrupt("return",S);case 15:case"end":return F.stop()}},l,this)}));function g(l,s){return o.apply(this,arguments)}return g}()},{key:"_importKey",value:function(){var o=n(t().mark(function l(s){return t().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return this._rawKey=s,b.next=3,window.crypto.subtle.importKey("raw",s,{name:"AES-CTR"},!1,["encrypt","decrypt"]);case 3:return this._ctrKey=b.sent,b.next=6,window.crypto.subtle.importKey("raw",s,{name:"AES-CBC"},!1,["encrypt"]);case 6:return this._cbcKey=b.sent,b.next=9,this._initCMAC();case 9:case"end":return b.stop()}},l,this)}));function g(l){return o.apply(this,arguments)}return g}()},{key:"encrypt",value:function(){var o=n(t().mark(function l(s,p){var b,y,_,m,k,x,E,S;return t().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return b=s.additionalData,y=s.iv,F.next=4,this._computeCMAC(y,this._prefixBlock0);case 4:return _=F.sent,F.next=7,this._encryptCTR(p,_);case 7:return m=F.sent,F.next=10,this._computeCMAC(b,this._prefixBlock1);case 10:return k=F.sent,F.next=13,this._computeCMAC(m,this._prefixBlock2);case 13:for(x=F.sent,E=0;E<16;E++)x[E]^=_[E]^k[E];return S=new Uint8Array(16+m.length),S.set(m),S.set(x,m.length),F.abrupt("return",S);case 19:case"end":return F.stop()}},l,this)}));function g(l,s){return o.apply(this,arguments)}return g}()},{key:"decrypt",value:function(){var o=n(t().mark(function l(s,p){var b,y,_,m,k,x,E,S,A,F;return t().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return b=p.slice(0,p.length-16),y=s.additionalData,_=s.iv,m=p.slice(p.length-16),O.next=6,this._computeCMAC(_,this._prefixBlock0);case 6:return k=O.sent,O.next=9,this._computeCMAC(y,this._prefixBlock1);case 9:return x=O.sent,O.next=12,this._computeCMAC(b,this._prefixBlock2);case 12:for(E=O.sent,S=0;S<16;S++)E[S]^=k[S]^x[S];if(E.length===m.length){O.next=16;break}return O.abrupt("return",null);case 16:A=0;case 17:if(!(A>>3]&1<>>10,this.keys[Q]|=(Z&4032)>>>6,++Q,this.keys[Q]=(ce&258048)<<12,this.keys[Q]|=(ce&63)<<16,this.keys[Q]|=(Z&258048)>>>4,this.keys[Q]|=Z&63,++Q}}return n(F,[{key:"enc8",value:function(O){var H=O.slice(),z=0,W,q,ae;W=H[z++]<<24|H[z++]<<16|H[z++]<<8|H[z++],q=H[z++]<<24|H[z++]<<16|H[z++]<<8|H[z++],ae=(W>>>4^q)&252645135,q^=ae,W^=ae<<4,ae=(W>>>16^q)&65535,q^=ae,W^=ae<<16,ae=(q>>>2^W)&858993459,W^=ae,q^=ae<<2,ae=(q>>>8^W)&16711935,W^=ae,q^=ae<<8,q=q<<1|q>>>31&1,ae=(W^q)&2863311530,W^=ae,q^=ae,W=W<<1|W>>>31&1;for(var de=0,pe=0;de<8;++de){ae=q<<28|q>>>4,ae^=this.keys[pe++];var oe=E[ae&63];oe|=k[ae>>>8&63],oe|=_[ae>>>16&63],oe|=b[ae>>>24&63],ae=q^this.keys[pe++],oe|=S[ae&63],oe|=x[ae>>>8&63],oe|=m[ae>>>16&63],oe|=y[ae>>>24&63],W^=oe,ae=W<<28|W>>>4,ae^=this.keys[pe++],oe=E[ae&63],oe|=k[ae>>>8&63],oe|=_[ae>>>16&63],oe|=b[ae>>>24&63],ae=W^this.keys[pe++],oe|=S[ae&63],oe|=x[ae>>>8&63],oe|=m[ae>>>16&63],oe|=y[ae>>>24&63],q^=oe}for(q=q<<31|q>>>1,ae=(W^q)&2863311530,W^=ae,q^=ae,W=W<<31|W>>>1,ae=(W>>>8^q)&16711935,q^=ae,W^=ae<<8,ae=(W>>>2^q)&858993459,q^=ae,W^=ae<<2,ae=(q>>>16^W)&65535,W^=ae,q^=ae<<16,ae=(q>>>4^W)&252645135,W^=ae,q^=ae<<4,ae=[q,W],z=0;z<8;z++)H[z]=(ae[z>>>2]>>>8*(3-z%4))%256,H[z]<0&&(H[z]+=256);return H}}])}();return Pr.DESECBCipher=function(){function F(){t(this,F),this._cipher=null}return n(F,[{key:"algorithm",get:function(){return{name:"DES-ECB"}}},{key:"_importKey",value:function(O,H,z){this._cipher=new A(O)}},{key:"encrypt",value:function(O,H){var z=new Uint8Array(H);if(z.length%8!==0||this._cipher===null)return null;for(var W=z.length/8,q=0;q0n;)(i&1n)===1n&&(h=h*n%u),i=i>>1n,n=n*n%u;return h}function t(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=n.toString(16);i===0&&(i=Math.ceil(u.length/2)),u=u.padStart(i*2,"0");for(var h=u.length/2,v=new Uint8Array(h),a=0;a=0;--P){var T=this.tryEntries[P],D=T.completion;if(T.tryLoc==="root")return ve("end");if(T.tryLoc<=this.prev){var N=b.call(T,"catchLoc"),V=b.call(T,"finallyLoc");if(N&&V){if(this.prev=0;--ve){var P=this.tryEntries[ve];if(P.tryLoc<=this.prev&&b.call(P,"finallyLoc")&&this.prev=0;--ne){var ve=this.tryEntries[ne];if(ve.finallyLoc===J)return this.complete(ve.completion,ve.afterLoc),Q(ve),z}},catch:function(J){for(var ne=this.tryEntries.length-1;ne>=0;--ne){var ve=this.tryEntries[ne];if(ve.tryLoc===J){var P=ve.completion;if(P.type==="throw"){var T=P.arg;Q(ve)}return T}}throw Error("illegal catch attempt")},delegateYield:function(J,ne,ve){return this.delegate={iterator:Z(J),resultName:ne,nextLoc:ve},this.method==="next"&&(this.arg=l),z}},s}function u(l,s,p,b,y,_,m){try{var k=l[_](m),x=k.value}catch(E){return void p(E)}k.done?s(x):Promise.resolve(x).then(b,y)}function h(l){return function(){var s=this,p=arguments;return new Promise(function(b,y){var _=l.apply(s,p);function m(x){u(_,b,y,m,k,"next",x)}function k(x){u(_,b,y,m,k,"throw",x)}m(void 0)})}}function v(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function a(l,s){for(var p=0;pthis._keyBytes-11)){F.next=2;break}return F.abrupt("return",null);case 2:for(m=new Uint8Array(this._keyBytes-_.length-3),window.crypto.getRandomValues(m),k=0;kthis._keyBytes?l:this._keyBytes,b=(0,e.modPow)((0,e.u8ArrayToBigInt)(s),this._privateKeyBigInt,this._pBigInt);return(0,e.bigIntToU8Array)(b,p).slice(0,p)}}],[{key:"generateKey",value:function(o,g){var l=new a;return l._generateKey(o),{privateKey:l,publicKey:new v(l._publicKey)}}}])}(),vn}var Vn={},Hs;function Fh(){if(Hs)return Vn;Hs=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.MD5=i;function e(_){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},e(_)}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return m};var _,m={},k=Object.prototype,x=k.hasOwnProperty,E=Object.defineProperty||function(T,D,N){T[D]=N.value},S=typeof Symbol=="function"?Symbol:{},A=S.iterator||"@@iterator",F=S.asyncIterator||"@@asyncIterator",M=S.toStringTag||"@@toStringTag";function O(T,D,N){return Object.defineProperty(T,D,{value:N,enumerable:!0,configurable:!0,writable:!0}),T[D]}try{O({},"")}catch{O=function(N,V,te){return N[V]=te}}function H(T,D,N,V){var te=D&&D.prototype instanceof oe?D:oe,I=Object.create(te.prototype),U=new ve(V||[]);return E(I,"_invoke",{value:Z(T,N,U)}),I}function z(T,D,N){try{return{type:"normal",arg:T.call(D,N)}}catch(V){return{type:"throw",arg:V}}}m.wrap=H;var W="suspendedStart",q="suspendedYield",ae="executing",de="completed",pe={};function oe(){}function ge(){}function j(){}var le={};O(le,A,function(){return this});var we=Object.getPrototypeOf,ke=we&&we(we(P([])));ke&&ke!==k&&x.call(ke,A)&&(le=ke);var Y=j.prototype=oe.prototype=Object.create(le);function Q(T){["next","throw","return"].forEach(function(D){O(T,D,function(N){return this._invoke(D,N)})})}function ce(T,D){function N(te,I,U,B){var G=z(T[te],T,I);if(G.type!=="throw"){var ie=G.arg,se=ie.value;return se&&e(se)=="object"&&x.call(se,"__await")?D.resolve(se.__await).then(function(ye){N("next",ye,U,B)},function(ye){N("throw",ye,U,B)}):D.resolve(se).then(function(ye){ie.value=ye,U(ie)},function(ye){return N("throw",ye,U,B)})}B(G.arg)}var V;E(this,"_invoke",{value:function(I,U){function B(){return new D(function(G,ie){N(I,U,G,ie)})}return V=V?V.then(B,B):B()}})}function Z(T,D,N){var V=W;return function(te,I){if(V===ae)throw Error("Generator is already running");if(V===de){if(te==="throw")throw I;return{value:_,done:!0}}for(N.method=te,N.arg=I;;){var U=N.delegate;if(U){var B=ee(U,N);if(B){if(B===pe)continue;return B}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(V===W)throw V=de,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);V=ae;var G=z(T,D,N);if(G.type==="normal"){if(V=N.done?de:q,G.arg===pe)continue;return{value:G.arg,done:N.done}}G.type==="throw"&&(V=de,N.method="throw",N.arg=G.arg)}}}function ee(T,D){var N=D.method,V=T.iterator[N];if(V===_)return D.delegate=null,N==="throw"&&T.iterator.return&&(D.method="return",D.arg=_,ee(T,D),D.method==="throw")||N!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+N+"' method")),pe;var te=z(V,T.iterator,D.arg);if(te.type==="throw")return D.method="throw",D.arg=te.arg,D.delegate=null,pe;var I=te.arg;return I?I.done?(D[T.resultName]=I.value,D.next=T.nextLoc,D.method!=="return"&&(D.method="next",D.arg=_),D.delegate=null,pe):I:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,pe)}function J(T){var D={tryLoc:T[0]};1 in T&&(D.catchLoc=T[1]),2 in T&&(D.finallyLoc=T[2],D.afterLoc=T[3]),this.tryEntries.push(D)}function ne(T){var D=T.completion||{};D.type="normal",delete D.arg,T.completion=D}function ve(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(J,this),this.reset(!0)}function P(T){if(T||T===""){var D=T[A];if(D)return D.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var N=-1,V=function te(){for(;++N=0;--te){var I=this.tryEntries[te],U=I.completion;if(I.tryLoc==="root")return V("end");if(I.tryLoc<=this.prev){var B=x.call(I,"catchLoc"),G=x.call(I,"finallyLoc");if(B&&G){if(this.prev=0;--V){var te=this.tryEntries[V];if(te.tryLoc<=this.prev&&x.call(te,"finallyLoc")&&this.prev=0;--N){var V=this.tryEntries[N];if(V.finallyLoc===D)return this.complete(V.completion,V.afterLoc),ne(V),pe}},catch:function(D){for(var N=this.tryEntries.length-1;N>=0;--N){var V=this.tryEntries[N];if(V.tryLoc===D){var te=V.completion;if(te.type==="throw"){var I=te.arg;ne(V)}return I}}throw Error("illegal catch attempt")},delegateYield:function(D,N,V){return this.delegate={iterator:P(D),resultName:N,nextLoc:V},this.method==="next"&&(this.arg=_),pe}},m}function r(_,m,k,x,E,S,A){try{var F=_[S](A),M=F.value}catch(O){return void k(O)}F.done?m(M):Promise.resolve(M).then(x,E)}function n(_){return function(){var m=this,k=arguments;return new Promise(function(x,E){var S=_.apply(m,k);function A(M){r(S,x,E,A,F,"next",M)}function F(M){r(S,x,E,A,F,"throw",M)}A(void 0)})}}function i(_){return u.apply(this,arguments)}function u(){return u=n(t().mark(function _(m){var k,x;return t().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:for(k="",x=0;x>2),k=0;k>5]|=(255&_.charCodeAt(x/8))<>5]>>>k%32&255);return m}function d(_,m){_[m>>5]|=128<>>9<<4)]=m;for(var k=1732584193,x=-271733879,E=-1732584194,S=271733878,A=0;A<_.length;A+=16){var F=k,M=x,O=E,H=S;x=p(x=p(x=p(x=p(x=s(x=s(x=s(x=s(x=l(x=l(x=l(x=l(x=g(x=g(x=g(x=g(x,E=g(E,S=g(S,k=g(k,x,E,S,_[A+0],7,-680876936),x,E,_[A+1],12,-389564586),k,x,_[A+2],17,606105819),S,k,_[A+3],22,-1044525330),E=g(E,S=g(S,k=g(k,x,E,S,_[A+4],7,-176418897),x,E,_[A+5],12,1200080426),k,x,_[A+6],17,-1473231341),S,k,_[A+7],22,-45705983),E=g(E,S=g(S,k=g(k,x,E,S,_[A+8],7,1770035416),x,E,_[A+9],12,-1958414417),k,x,_[A+10],17,-42063),S,k,_[A+11],22,-1990404162),E=g(E,S=g(S,k=g(k,x,E,S,_[A+12],7,1804603682),x,E,_[A+13],12,-40341101),k,x,_[A+14],17,-1502002290),S,k,_[A+15],22,1236535329),E=l(E,S=l(S,k=l(k,x,E,S,_[A+1],5,-165796510),x,E,_[A+6],9,-1069501632),k,x,_[A+11],14,643717713),S,k,_[A+0],20,-373897302),E=l(E,S=l(S,k=l(k,x,E,S,_[A+5],5,-701558691),x,E,_[A+10],9,38016083),k,x,_[A+15],14,-660478335),S,k,_[A+4],20,-405537848),E=l(E,S=l(S,k=l(k,x,E,S,_[A+9],5,568446438),x,E,_[A+14],9,-1019803690),k,x,_[A+3],14,-187363961),S,k,_[A+8],20,1163531501),E=l(E,S=l(S,k=l(k,x,E,S,_[A+13],5,-1444681467),x,E,_[A+2],9,-51403784),k,x,_[A+7],14,1735328473),S,k,_[A+12],20,-1926607734),E=s(E,S=s(S,k=s(k,x,E,S,_[A+5],4,-378558),x,E,_[A+8],11,-2022574463),k,x,_[A+11],16,1839030562),S,k,_[A+14],23,-35309556),E=s(E,S=s(S,k=s(k,x,E,S,_[A+1],4,-1530992060),x,E,_[A+4],11,1272893353),k,x,_[A+7],16,-155497632),S,k,_[A+10],23,-1094730640),E=s(E,S=s(S,k=s(k,x,E,S,_[A+13],4,681279174),x,E,_[A+0],11,-358537222),k,x,_[A+3],16,-722521979),S,k,_[A+6],23,76029189),E=s(E,S=s(S,k=s(k,x,E,S,_[A+9],4,-640364487),x,E,_[A+12],11,-421815835),k,x,_[A+15],16,530742520),S,k,_[A+2],23,-995338651),E=p(E,S=p(S,k=p(k,x,E,S,_[A+0],6,-198630844),x,E,_[A+7],10,1126891415),k,x,_[A+14],15,-1416354905),S,k,_[A+5],21,-57434055),E=p(E,S=p(S,k=p(k,x,E,S,_[A+12],6,1700485571),x,E,_[A+3],10,-1894986606),k,x,_[A+10],15,-1051523),S,k,_[A+1],21,-2054922799),E=p(E,S=p(S,k=p(k,x,E,S,_[A+8],6,1873313359),x,E,_[A+15],10,-30611744),k,x,_[A+6],15,-1560198380),S,k,_[A+13],21,1309151649),E=p(E,S=p(S,k=p(k,x,E,S,_[A+4],6,-145523070),x,E,_[A+11],10,-1120210379),k,x,_[A+2],15,718787259),S,k,_[A+9],21,-343485551),k=b(k,F),x=b(x,M),E=b(E,O),S=b(S,H)}return Array(k,x,E,S)}function o(_,m,k,x,E,S){return b(y(b(b(m,_),b(x,S)),E),k)}function g(_,m,k,x,E,S,A){return o(m&k|~m&x,_,m,E,S,A)}function l(_,m,k,x,E,S,A){return o(m&x|k&~x,_,m,E,S,A)}function s(_,m,k,x,E,S,A){return o(m^k^x,_,m,E,S,A)}function p(_,m,k,x,E,S,A){return o(k^(m|~x),_,m,E,S,A)}function b(_,m){var k=(65535&_)+(65535&m);return(_>>16)+(m>>16)+(k>>16)<<16|65535&k}function y(_,m){return _<>>32-m}return Vn}var Vs;function Vl(){return Vs||(Vs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Sh(),r=Eh(),n=Ch(),i=Ah(),u=Fh();function h(s){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},h(s)}function v(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")}function a(s,p){for(var b=0;b"u"||typeof x.importKey!="function")throw new Error("algorithm is not supported");return x.importKey(y,_,m,k)}},{key:"generateKey",value:function(b,y,_){var m=this._algorithms[b.name];if(typeof m>"u"||typeof m.generateKey!="function")throw new Error("algorithm is not supported");return m.generateKey(b,y,_)}},{key:"exportKey",value:function(b,y){if(b!=="raw")throw new Error("key format is not supported");if(typeof y.exportKey!="function")throw new Error("key does not support exportKey");return y.exportKey()}},{key:"digest",value:function(b,y){var _=this._algorithms[b];if(typeof _!="function")throw new Error("algorithm is not supported");return _(y)}},{key:"deriveBits",value:function(b,y,_){if(y.algorithm.name!==b.name)throw new Error("algorithm does not match");if(typeof y.deriveBits!="function")throw new Error("key does not support deriveBits");return y.deriveBits(b,_)}}])}();e.default=new l}(fa)),fa}var zs;function Kh(){return zs||(zs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Dl(),r=i(Bl()),n=i(Vl());function i(S){return S&&S.__esModule?S:{default:S}}function u(S,A,F){return A=d(A),h(S,a()?Reflect.construct(A,[],d(S).constructor):A.apply(S,F))}function h(S,A){if(A&&(l(A)=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function a(){try{var S=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a=function(){return!!S})()}function d(S){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},d(S)}function o(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&g(S,A)}function g(S,A){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,M){return F.__proto__=M,F},g(S,A)}function l(S){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},l(S)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return A};var S,A={},F=Object.prototype,M=F.hasOwnProperty,O=Object.defineProperty||function(I,U,B){I[U]=B.value},H=typeof Symbol=="function"?Symbol:{},z=H.iterator||"@@iterator",W=H.asyncIterator||"@@asyncIterator",q=H.toStringTag||"@@toStringTag";function ae(I,U,B){return Object.defineProperty(I,U,{value:B,enumerable:!0,configurable:!0,writable:!0}),I[U]}try{ae({},"")}catch{ae=function(B,G,ie){return B[G]=ie}}function de(I,U,B,G){var ie=U&&U.prototype instanceof ke?U:ke,se=Object.create(ie.prototype),ye=new V(G||[]);return O(se,"_invoke",{value:P(I,B,ye)}),se}function pe(I,U,B){try{return{type:"normal",arg:I.call(U,B)}}catch(G){return{type:"throw",arg:G}}}A.wrap=de;var oe="suspendedStart",ge="suspendedYield",j="executing",le="completed",we={};function ke(){}function Y(){}function Q(){}var ce={};ae(ce,z,function(){return this});var Z=Object.getPrototypeOf,ee=Z&&Z(Z(te([])));ee&&ee!==F&&M.call(ee,z)&&(ce=ee);var J=Q.prototype=ke.prototype=Object.create(ce);function ne(I){["next","throw","return"].forEach(function(U){ae(I,U,function(B){return this._invoke(U,B)})})}function ve(I,U){function B(ie,se,ye,Ae){var Xe=pe(I[ie],I,se);if(Xe.type!=="throw"){var xe=Xe.arg,Ne=xe.value;return Ne&&l(Ne)=="object"&&M.call(Ne,"__await")?U.resolve(Ne.__await).then(function(Ye){B("next",Ye,ye,Ae)},function(Ye){B("throw",Ye,ye,Ae)}):U.resolve(Ne).then(function(Ye){xe.value=Ye,ye(xe)},function(Ye){return B("throw",Ye,ye,Ae)})}Ae(Xe.arg)}var G;O(this,"_invoke",{value:function(se,ye){function Ae(){return new U(function(Xe,xe){B(se,ye,Xe,xe)})}return G=G?G.then(Ae,Ae):Ae()}})}function P(I,U,B){var G=oe;return function(ie,se){if(G===j)throw Error("Generator is already running");if(G===le){if(ie==="throw")throw se;return{value:S,done:!0}}for(B.method=ie,B.arg=se;;){var ye=B.delegate;if(ye){var Ae=T(ye,B);if(Ae){if(Ae===we)continue;return Ae}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(G===oe)throw G=le,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);G=j;var Xe=pe(I,U,B);if(Xe.type==="normal"){if(G=B.done?le:ge,Xe.arg===we)continue;return{value:Xe.arg,done:B.done}}Xe.type==="throw"&&(G=le,B.method="throw",B.arg=Xe.arg)}}}function T(I,U){var B=U.method,G=I.iterator[B];if(G===S)return U.delegate=null,B==="throw"&&I.iterator.return&&(U.method="return",U.arg=S,T(I,U),U.method==="throw")||B!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+B+"' method")),we;var ie=pe(G,I.iterator,U.arg);if(ie.type==="throw")return U.method="throw",U.arg=ie.arg,U.delegate=null,we;var se=ie.arg;return se?se.done?(U[I.resultName]=se.value,U.next=I.nextLoc,U.method!=="return"&&(U.method="next",U.arg=S),U.delegate=null,we):se:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,we)}function D(I){var U={tryLoc:I[0]};1 in I&&(U.catchLoc=I[1]),2 in I&&(U.finallyLoc=I[2],U.afterLoc=I[3]),this.tryEntries.push(U)}function N(I){var U=I.completion||{};U.type="normal",delete U.arg,I.completion=U}function V(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(D,this),this.reset(!0)}function te(I){if(I||I===""){var U=I[z];if(U)return U.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var B=-1,G=function ie(){for(;++B=0;--ie){var se=this.tryEntries[ie],ye=se.completion;if(se.tryLoc==="root")return G("end");if(se.tryLoc<=this.prev){var Ae=M.call(se,"catchLoc"),Xe=M.call(se,"finallyLoc");if(Ae&&Xe){if(this.prev=0;--G){var ie=this.tryEntries[G];if(ie.tryLoc<=this.prev&&M.call(ie,"finallyLoc")&&this.prev=0;--B){var G=this.tryEntries[B];if(G.finallyLoc===U)return this.complete(G.completion,G.afterLoc),N(G),we}},catch:function(U){for(var B=this.tryEntries.length-1;B>=0;--B){var G=this.tryEntries[B];if(G.tryLoc===U){var ie=G.completion;if(ie.type==="throw"){var se=ie.arg;N(G)}return se}}throw Error("illegal catch attempt")},delegateYield:function(U,B,G){return this.delegate={iterator:te(U),resultName:B,nextLoc:G},this.method==="next"&&(this.arg=S),we}},A}function p(S,A,F,M,O,H,z){try{var W=S[H](z),q=W.value}catch(ae){return void F(ae)}W.done?A(q):Promise.resolve(q).then(M,O)}function b(S){return function(){var A=this,F=arguments;return new Promise(function(M,O){var H=S.apply(A,F);function z(q){p(H,M,O,z,W,"next",q)}function W(q){p(H,M,O,z,W,"throw",q)}z(void 0)})}}function y(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function _(S,A){for(var F=0;F>>8,O.length&255]),de.next=3,n.default.encrypt({name:"AES-EAX",iv:this._counter,additionalData:H},this._cipher,O);case 3:for(z=de.sent,W=0;W<16&&this._counter[W]++===255;W++);return q=new Uint8Array(O.length+2+16),q.set(H),q.set(z,2),de.abrupt("return",q);case 9:case"end":return de.stop()}},M,this)}));function F(M){return A.apply(this,arguments)}return F}()},{key:"receiveMessage",value:function(){var A=b(s().mark(function M(O,H){var z,W,q;return s().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return z=new Uint8Array([(O&65280)>>>8,O&255]),de.next=3,n.default.decrypt({name:"AES-EAX",iv:this._counter,additionalData:z},this._cipher,H);case 3:for(W=de.sent,q=0;q<16&&this._counter[q]++===255;q++);return de.abrupt("return",W);case 6:case"end":return de.stop()}},M,this)}));function F(M,O){return A.apply(this,arguments)}return F}()}])}();e.default=function(S){function A(F,M){var O;return y(this,A),O=u(this,A),O._hasStarted=!1,O._checkSock=null,O._checkCredentials=null,O._approveServerResolve=null,O._sockReject=null,O._credentialsReject=null,O._approveServerReject=null,O._sock=F,O._getCredentials=M,O}return o(A,S),m(A,[{key:"_waitSockAsync",value:function(M){var O=this;return new Promise(function(H,z){var W=function(){return!O._sock.rQwait("RA2",M)};W()?H():(O._checkSock=function(){W()&&(H(),O._checkSock=null,O._sockReject=null)},O._sockReject=z)})}},{key:"_waitApproveKeyAsync",value:function(){var M=this;return new Promise(function(O,H){M._approveServerResolve=O,M._approveServerReject=H})}},{key:"_waitCredentialsAsync",value:function(M){var O=this,H=function(){return M===1&&O._getCredentials().username!==void 0&&O._getCredentials().password!==void 0?!0:M===2&&O._getCredentials().password!==void 0};return new Promise(function(z,W){H()?z():(O._checkCredentials=function(){H()&&(z(),O._checkCredentials=null,O._credentialsReject=null)},O._credentialsReject=W)})}},{key:"checkInternalEvents",value:function(){this._checkSock!==null&&this._checkSock(),this._checkCredentials!==null&&this._checkCredentials()}},{key:"approveServer",value:function(){this._approveServerResolve!==null&&(this._approveServerResolve(),this._approveServerResolve=null)}},{key:"disconnect",value:function(){this._sockReject!==null&&(this._sockReject(new Error("disconnect normally")),this._sockReject=null),this._credentialsReject!==null&&(this._credentialsReject(new Error("disconnect normally")),this._credentialsReject=null),this._approveServerReject!==null&&(this._approveServerReject(new Error("disconnect normally")),this._approveServerReject=null)}},{key:"negotiateRA2neAuthAsync",value:function(){var F=b(s().mark(function O(){var H,z,W,q,ae,de,pe,oe,ge,j,le,we,ke,Y,Q,ce,Z,ee,J,ne,ve,P,T,D,N,V,te,I,U,B,G,ie,se,ye,Ae;return s().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return this._hasStarted=!0,xe.next=3,this._waitSockAsync(4);case 3:if(H=this._sock.rQpeekBytes(4),z=this._sock.rQshift32(),!(z<1024)){xe.next=9;break}throw new Error("RA2: server public key is too short: "+z);case 9:if(!(z>8192)){xe.next=11;break}throw new Error("RA2: server public key is too long: "+z);case 11:return W=Math.ceil(z/8),xe.next=14,this._waitSockAsync(W*2);case 14:return q=this._sock.rQshiftBytes(W),ae=this._sock.rQshiftBytes(W),xe.next=18,n.default.importKey("raw",{n:q,e:ae},{name:"RSA-PKCS1-v1_5"},!1,["encrypt"]);case 18:return de=xe.sent,pe=new Uint8Array(4+W*2),pe.set(H),pe.set(q,4),pe.set(ae,4+W),oe=this._waitApproveKeyAsync(),this.dispatchEvent(new CustomEvent("serververification",{detail:{type:"RSA",publickey:pe}})),xe.next=27,oe;case 27:return ge=2048,j=Math.ceil(ge/8),xe.next=31,n.default.generateKey({name:"RSA-PKCS1-v1_5",modulusLength:ge,publicExponent:new Uint8Array([1,0,1])},!0,["encrypt"]);case 31:return le=xe.sent.privateKey,xe.next=34,n.default.exportKey("raw",le);case 34:return we=xe.sent,ke=we.n,Y=we.e,Q=new Uint8Array(4+j*2),Q[0]=(ge&4278190080)>>>24,Q[1]=(ge&16711680)>>>16,Q[2]=(ge&65280)>>>8,Q[3]=ge&255,Q.set(ke,4),Q.set(Y,4+j),this._sock.sQpushBytes(Q),this._sock.flush(),ce=new Uint8Array(16),window.crypto.getRandomValues(ce),xe.next=50,n.default.encrypt({name:"RSA-PKCS1-v1_5"},de,ce);case 50:return Z=xe.sent,ee=new Uint8Array(2+W),ee[0]=(W&65280)>>>8,ee[1]=W&255,ee.set(Z,2),this._sock.sQpushBytes(ee),this._sock.flush(),xe.next=59,this._waitSockAsync(2);case 59:if(this._sock.rQshift16()===j){xe.next=61;break}throw new Error("RA2: wrong encrypted message length");case 61:return J=this._sock.rQshiftBytes(j),xe.next=64,n.default.decrypt({name:"RSA-PKCS1-v1_5"},le,J);case 64:if(ne=xe.sent,!(ne===null||ne.length!==16)){xe.next=67;break}throw new Error("RA2: corrupted server encrypted random");case 67:return ve=new Uint8Array(32),P=new Uint8Array(32),ve.set(ne),ve.set(ce,16),P.set(ce),P.set(ne,16),xe.next=75,window.crypto.subtle.digest("SHA-1",ve);case 75:return ve=xe.sent,ve=new Uint8Array(ve).slice(0,16),xe.next=79,window.crypto.subtle.digest("SHA-1",P);case 79:return P=xe.sent,P=new Uint8Array(P).slice(0,16),T=new E,xe.next=84,T.setKey(ve);case 84:return D=new E,xe.next=87,D.setKey(P);case 87:return N=new Uint8Array(8+W*2+j*2),V=new Uint8Array(8+W*2+j*2),N.set(pe),N.set(Q,4+W*2),V.set(Q),V.set(pe,4+j*2),xe.next=95,window.crypto.subtle.digest("SHA-1",N);case 95:return N=xe.sent,xe.next=98,window.crypto.subtle.digest("SHA-1",V);case 98:return V=xe.sent,N=new Uint8Array(N),V=new Uint8Array(V),xe.t0=this._sock,xe.next=104,T.makeMessage(V);case 104:return xe.t1=xe.sent,xe.t0.sQpushBytes.call(xe.t0,xe.t1),this._sock.flush(),xe.next=109,this._waitSockAsync(38);case 109:if(this._sock.rQshift16()===20){xe.next=111;break}throw new Error("RA2: wrong server hash");case 111:return xe.next=113,D.receiveMessage(20,this._sock.rQshiftBytes(36));case 113:if(te=xe.sent,te!==null){xe.next=116;break}throw new Error("RA2: failed to authenticate the message");case 116:I=0;case 117:if(!(I<20)){xe.next=123;break}if(te[I]===N[I]){xe.next=120;break}throw new Error("RA2: wrong server hash");case 120:I++,xe.next=117;break;case 123:return xe.next=125,this._waitSockAsync(19);case 125:if(this._sock.rQshift16()===1){xe.next=127;break}throw new Error("RA2: wrong subtype");case 127:return xe.next=129,D.receiveMessage(1,this._sock.rQshiftBytes(17));case 129:if(U=xe.sent,U!==null){xe.next=132;break}throw new Error("RA2: failed to authenticate the message");case 132:if(U=U[0],B=this._waitCredentialsAsync(U),U!==1){xe.next=138;break}(this._getCredentials().username===void 0||this._getCredentials().password===void 0)&&this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),xe.next=143;break;case 138:if(U!==2){xe.next=142;break}this._getCredentials().password===void 0&&this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),xe.next=143;break;case 142:throw new Error("RA2: wrong subtype");case 143:return xe.next=145,B;case 145:for(U===1?G=(0,t.encodeUTF8)(this._getCredentials().username).slice(0,255):G="",ie=(0,t.encodeUTF8)(this._getCredentials().password).slice(0,255),se=new Uint8Array(G.length+ie.length+2),se[0]=G.length,se[G.length+1]=ie.length,ye=0;ye0;){if(s.rQwait("RAW",_))return!1;var m=o+(l-this._lines),k=s.rQshiftBytes(_,!1);if(b==8){for(var x=new Uint8Array(g*4),E=0;E>0&3)*255/3,x[E*4+1]=(k[E]>>2&3)*255/3,x[E*4+2]=(k[E]>>4&3)*255/3,x[E*4+3]=255;k=x}for(var S=0;S0;){if(s.rQwait("RRE",12))return!1;var _=s.rQshiftBytes(4),m=s.rQshift16(),k=s.rQshift16(),x=s.rQshift16(),E=s.rQshift16();p.fillRect(d+m,o+k,x,E,_),this._subrects--}return!0}}])}()}(pa)),pa}var _a={},qs;function Ph(){return qs||(qs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Cr());function r(o){if(typeof WeakMap!="function")return null;var g=new WeakMap,l=new WeakMap;return(r=function(p){return p?l:g})(o)}function n(o,g){if(o&&o.__esModule)return o;if(o===null||i(o)!="object"&&typeof o!="function")return{default:o};var l=r(g);if(l&&l.has(o))return l.get(o);var s={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in o)if(b!=="default"&&{}.hasOwnProperty.call(o,b)){var y=p?Object.getOwnPropertyDescriptor(o,b):null;y&&(y.get||y.set)?Object.defineProperty(s,b,y):s[b]=o[b]}return s.default=o,l&&l.set(o,s),s}function i(o){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},i(o)}function u(o,g){if(!(o instanceof g))throw new TypeError("Cannot call a class as a function")}function h(o,g){for(var l=0;l0;){var k=1;if(y.rQwait("HEXTILE",k))return!1;var x=y.rQpeek8();if(x>30)throw new Error("Illegal hextile subencoding (subencoding: "+x+")");var E=this._totalTiles-this._tiles,S=E%this._tilesX,A=Math.floor(E/this._tilesX),F=l+S*16,M=s+A*16,O=Math.min(16,l+p-F),H=Math.min(16,s+b-M);if(x&1)k+=O*H*4;else if(x&2&&(k+=4),x&4&&(k+=4),x&8){if(k++,y.rQwait("HEXTILE",k))return!1;var z=y.rQpeekBytes(k).at(-1);x&16?k+=z*6:k+=z*2}if(y.rQwait("HEXTILE",k))return!1;if(y.rQshift8(),x===0)this._lastsubencoding&1?t.Debug(" Ignoring blank after RAW"):_.fillRect(F,M,O,H,this._background);else if(x&1){for(var W=O*H,q=y.rQshiftBytes(W*4,!1),ae=0;ae>4,le=ge&15,we=y.rQshift8(),ke=(we>>4)+1,Y=(we&15)+1;this._subTile(j,le,ke,Y,oe)}this._finishTile(_)}this._lastsubencoding=x,this._tiles--}return!0}},{key:"_startTile",value:function(l,s,p,b,y){this._tileX=l,this._tileY=s,this._tileW=p,this._tileH=b;for(var _=y[0],m=y[1],k=y[2],x=this._tileBuffer,E=0;E>E&1&&(this._zlibs[E].reset(),t.Info("Reset zlib stream "+E));this._ctl=this._ctl>>4}var S;if(this._ctl===8)S=this._fillRect(p,b,y,_,m,k,x);else if(this._ctl===9)S=this._jpegRect(p,b,y,_,m,k,x);else if(this._ctl===10)S=this._pngRect(p,b,y,_,m,k,x);else if((this._ctl&8)==0)S=this._basicRect(this._ctl,p,b,y,_,m,k,x);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return S&&(this._ctl=null),S}},{key:"_fillRect",value:function(p,b,y,_,m,k,x){if(m.rQwait("TIGHT",3))return!1;var E=m.rQshiftBytes(3);return k.fillRect(p,b,y,_,E,!1),!0}},{key:"_jpegRect",value:function(p,b,y,_,m,k,x){var E=this._readData(m);return E===null?!1:(k.imageRect(p,b,y,_,"image/jpeg",E),!0)}},{key:"_pngRect",value:function(p,b,y,_,m,k,x){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(p,b,y,_,m,k,x,E){if(this._filter===null)if(p&4){if(k.rQwait("TIGHT",1))return!1;this._filter=k.rQshift8()}else this._filter=0;var S=p&3,A;switch(this._filter){case 0:A=this._copyFilter(S,b,y,_,m,k,x,E);break;case 1:A=this._paletteFilter(S,b,y,_,m,k,x,E);break;case 2:A=this._gradientFilter(S,b,y,_,m,k,x,E);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return A&&(this._filter=null),A}},{key:"_copyFilter",value:function(p,b,y,_,m,k,x,E){var S=_*m*3,A;if(S===0)return!0;if(S<12){if(k.rQwait("TIGHT",S))return!1;A=k.rQshiftBytes(S)}else{if(A=this._readData(k),A===null)return!1;this._zlibs[p].setInput(A),A=this._zlibs[p].inflate(S),this._zlibs[p].setInput(null)}for(var F=new Uint8Array(_*m*4),M=0,O=0;M<_*m*4;M+=4,O+=3)F[M]=A[O],F[M+1]=A[O+1],F[M+2]=A[O+2],F[M+3]=255;return x.blitImage(b,y,_,m,F,0,!1),!0}},{key:"_paletteFilter",value:function(p,b,y,_,m,k,x,E){if(this._numColors===0){if(k.rQwait("TIGHT palette",1))return!1;var S=k.rQpeek8()+1,A=S*3;if(k.rQwait("TIGHT palette",1+A))return!1;this._numColors=S,k.rQskipBytes(1),k.rQshiftTo(this._palette,A)}var F=this._numColors<=2?1:8,M=Math.floor((_*F+7)/8),O=M*m,H;if(O===0)return!0;if(O<12){if(k.rQwait("TIGHT",O))return!1;H=k.rQshiftBytes(O)}else{if(H=this._readData(k),H===null)return!1;this._zlibs[p].setInput(H),H=this._zlibs[p].inflate(O),this._zlibs[p].setInput(null)}return this._numColors==2?this._monoRect(b,y,_,m,H,this._palette,x):this._paletteRect(b,y,_,m,H,this._palette,x),this._numColors=0,!0}},{key:"_monoRect",value:function(p,b,y,_,m,k,x){for(var E=this._getScratchBuffer(y*_*4),S=Math.floor((y+7)/8),A=Math.floor(y/8),F=0;F<_;F++){var M=void 0,O=void 0,H=void 0;for(H=0;H=0;z--)M=(F*y+H*8+7-z)*4,O=(m[F*S+H]>>z&1)*3,E[M]=k[O],E[M+1]=k[O+1],E[M+2]=k[O+2],E[M+3]=255;for(var W=7;W>=8-y%8;W--)M=(F*y+H*8+7-W)*4,O=(m[F*S+H]>>W&1)*3,E[M]=k[O],E[M+1]=k[O+1],E[M+2]=k[O+2],E[M+3]=255}x.blitImage(p,b,y,_,E,0,!1)}},{key:"_paletteRect",value:function(p,b,y,_,m,k,x){for(var E=this._getScratchBuffer(y*_*4),S=y*_*4,A=0,F=0;A255&&(we=255);var ke=A[O++]+we;F[M++]=ke,oe[le]=pe[le],H[le]=ke}F[M++]=255,de++}}return x.blitImage(b,y,_,m,F,0,!1),!0}},{key:"_readData",value:function(p){if(this._len===0){if(p.rQwait("TIGHT",3))return null;var b;b=p.rQshift8(),this._len=b&127,b&128&&(b=p.rQshift8(),this._len|=(b&127)<<7,b&128&&(b=p.rQshift8(),this._len|=b<<14))}if(p.rQwait("TIGHT",this._len))return null;var y=p.rQshiftBytes(this._len,!1);return this._len=0,y}},{key:"_getScratchBuffer",value:function(p){return(!this._scratchBuffer||this._scratchBuffer.length=2&&O<=16){var W=this._decodePaletteTile(O,M,F,S);m.blitImage(A,E,F,S,W,0,!1)}else if(O===128){var q=this._decodeRLETile(M);m.blitImage(A,E,F,S,q,0,!1)}else if(O>=130&&O<=255){var ae=this._decodeRLEPaletteTile(O-128,M);m.blitImage(A,E,F,S,ae,0,!1)}else throw new Error("Unknown subencoding: "+O)}return this._length=0,!0}},{key:"_getBitsPerPixelInPalette",value:function(s){if(s<=2)return 1;if(s<=4)return 2;if(s<=16)return 4}},{key:"_readPixels",value:function(s){for(var p=this._pixelBuffer,b=this._inflator.inflate(3*s),y=0,_=0;y>F&x;_[E]=m[O*4],_[E+1]=m[O*4+1],_[E+2]=m[O*4+2],_[E+3]=m[O*4+3],E+=4,F-=k}F<8-k&&A=128&&(m-=128,k=this._readRLELength()),m>s)throw new Error("Too big index in palette: "+m+", palette size: "+s);if(_+k>p)throw new Error("Too big rle length in palette mode: "+k+", allowed length is: "+(p-_));for(var x=0;x=p.length?{done:!0}:{done:!1,value:p[_++]}},e:function(A){throw A},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k,x=!0,E=!1;return{s:function(){y=y.call(p)},n:function(){var A=y.next();return x=A.done,A},e:function(A){E=!0,k=A},f:function(){try{x||y.return==null||y.return()}finally{if(E)throw k}}}}function v(p,b){if(p){if(typeof p=="string")return a(p,b);var y={}.toString.call(p).slice(8,-1);return y==="Object"&&p.constructor&&(y=p.constructor.name),y==="Map"||y==="Set"?Array.from(p):y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?a(p,b):void 0}}function a(p,b){(b==null||b>p.length)&&(b=p.length);for(var y=0,_=Array(b);y=208&&m<=217||m==1)return new Uint8Array([_,m]);if(y.rQwait("JPEG",2,2))return null;var k=y.rQshift16();if(k<2)throw new Error("Illegal JPEG length received (length: "+k+")");if(y.rQwait("JPEG",k-2,4))return null;var x=0;if(m===218)for(x+=2;;){if(y.rQwait("JPEG",k-2+x,4))return null;var E=y.rQpeekBytes(k-2+x,!1);if(E.at(-2)===255&&E.at(-1)!==0&&!(E.at(-1)>=208&&E.at(-1)<=215)){x-=2;break}x++}var S=new Uint8Array(2+k+x);return S[0]=_,S[1]=m,S[2]=k>>8,S[3]=k,S.set(y.rQshiftBytes(k-2+x,!1),4),S}}])}()}(ba)),ba}var tu;function Dh(){return tu||(tu=1,function(e){function t(c){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},t(c)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Ol(),n=ae(Cr()),i=Dl(),u=wi(),h=ih(),v=Il(),a=W(Bl()),d=W(ah()),o=W(go()),g=W(dh()),l=W(yh()),s=W(bh()),p=W(mh()),b=W(xh()),y=W(Si()),_=W(wh()),m=kh(),k=W(Kh()),x=W(Vl()),E=W(Rh()),S=W(Xh()),A=W(Th()),F=W(Ph()),M=W(zl()),O=W(Mh()),H=W(Lh()),z=W(Oh());function W(c){return c&&c.__esModule?c:{default:c}}function q(c){if(typeof WeakMap!="function")return null;var X=new WeakMap,K=new WeakMap;return(q=function(C){return C?K:X})(c)}function ae(c,X){if(c&&c.__esModule)return c;if(c===null||t(c)!="object"&&typeof c!="function")return{default:c};var K=q(X);if(K&&K.has(c))return K.get(c);var f={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in c)if(w!=="default"&&{}.hasOwnProperty.call(c,w)){var re=C?Object.getOwnPropertyDescriptor(c,w):null;re&&(re.get||re.set)?Object.defineProperty(f,w,re):f[w]=c[w]}return f.default=c,K&&K.set(c,f),f}function de(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */de=function(){return X};var c,X={},K=Object.prototype,f=K.hasOwnProperty,C=Object.defineProperty||function(Re,Ee,Ke){Re[Ee]=Ke.value},w=typeof Symbol=="function"?Symbol:{},re=w.iterator||"@@iterator",ue=w.asyncIterator||"@@asyncIterator",fe=w.toStringTag||"@@toStringTag";function be(Re,Ee,Ke){return Object.defineProperty(Re,Ee,{value:Ke,enumerable:!0,configurable:!0,writable:!0}),Re[Ee]}try{be({},"")}catch{be=function(Ke,je,$e){return Ke[je]=$e}}function Qe(Re,Ee,Ke,je){var $e=Ee&&Ee.prototype instanceof yt?Ee:yt,Ve=Object.create($e.prototype),bt=new Ki(je||[]);return C(Ve,"_invoke",{value:Sc(Re,Ke,bt)}),Ve}function Be(Re,Ee,Ke){try{return{type:"normal",arg:Re.call(Ee,Ke)}}catch(je){return{type:"throw",arg:je}}}X.wrap=Qe;var Me="suspendedStart",Ie="suspendedYield",He="executing",Te="completed",Ge={};function yt(){}function tt(){}function qe(){}var et={};be(et,re,function(){return this});var xt=Object.getPrototypeOf,Et=xt&&xt(xt(Ri([])));Et&&Et!==K&&f.call(Et,re)&&(et=Et);var Qt=qe.prototype=yt.prototype=Object.create(et);function Ao(Re){["next","throw","return"].forEach(function(Ee){be(Re,Ee,function(Ke){return this._invoke(Ee,Ke)})})}function Nn(Re,Ee){function Ke($e,Ve,bt,Mt){var Nt=Be(Re[$e],Re,Ve);if(Nt.type!=="throw"){var Ar=Nt.arg,yr=Ar.value;return yr&&t(yr)=="object"&&f.call(yr,"__await")?Ee.resolve(yr.__await).then(function(Fr){Ke("next",Fr,bt,Mt)},function(Fr){Ke("throw",Fr,bt,Mt)}):Ee.resolve(yr).then(function(Fr){Ar.value=Fr,bt(Ar)},function(Fr){return Ke("throw",Fr,bt,Mt)})}Mt(Nt.arg)}var je;C(this,"_invoke",{value:function(Ve,bt){function Mt(){return new Ee(function(Nt,Ar){Ke(Ve,bt,Nt,Ar)})}return je=je?je.then(Mt,Mt):Mt()}})}function Sc(Re,Ee,Ke){var je=Me;return function($e,Ve){if(je===He)throw Error("Generator is already running");if(je===Te){if($e==="throw")throw Ve;return{value:c,done:!0}}for(Ke.method=$e,Ke.arg=Ve;;){var bt=Ke.delegate;if(bt){var Mt=Fo(bt,Ke);if(Mt){if(Mt===Ge)continue;return Mt}}if(Ke.method==="next")Ke.sent=Ke._sent=Ke.arg;else if(Ke.method==="throw"){if(je===Me)throw je=Te,Ke.arg;Ke.dispatchException(Ke.arg)}else Ke.method==="return"&&Ke.abrupt("return",Ke.arg);je=He;var Nt=Be(Re,Ee,Ke);if(Nt.type==="normal"){if(je=Ke.done?Te:Ie,Nt.arg===Ge)continue;return{value:Nt.arg,done:Ke.done}}Nt.type==="throw"&&(je=Te,Ke.method="throw",Ke.arg=Nt.arg)}}}function Fo(Re,Ee){var Ke=Ee.method,je=Re.iterator[Ke];if(je===c)return Ee.delegate=null,Ke==="throw"&&Re.iterator.return&&(Ee.method="return",Ee.arg=c,Fo(Re,Ee),Ee.method==="throw")||Ke!=="return"&&(Ee.method="throw",Ee.arg=new TypeError("The iterator does not provide a '"+Ke+"' method")),Ge;var $e=Be(je,Re.iterator,Ee.arg);if($e.type==="throw")return Ee.method="throw",Ee.arg=$e.arg,Ee.delegate=null,Ge;var Ve=$e.arg;return Ve?Ve.done?(Ee[Re.resultName]=Ve.value,Ee.next=Re.nextLoc,Ee.method!=="return"&&(Ee.method="next",Ee.arg=c),Ee.delegate=null,Ge):Ve:(Ee.method="throw",Ee.arg=new TypeError("iterator result is not an object"),Ee.delegate=null,Ge)}function Ec(Re){var Ee={tryLoc:Re[0]};1 in Re&&(Ee.catchLoc=Re[1]),2 in Re&&(Ee.finallyLoc=Re[2],Ee.afterLoc=Re[3]),this.tryEntries.push(Ee)}function Fi(Re){var Ee=Re.completion||{};Ee.type="normal",delete Ee.arg,Re.completion=Ee}function Ki(Re){this.tryEntries=[{tryLoc:"root"}],Re.forEach(Ec,this),this.reset(!0)}function Ri(Re){if(Re||Re===""){var Ee=Re[re];if(Ee)return Ee.call(Re);if(typeof Re.next=="function")return Re;if(!isNaN(Re.length)){var Ke=-1,je=function $e(){for(;++Ke=0;--$e){var Ve=this.tryEntries[$e],bt=Ve.completion;if(Ve.tryLoc==="root")return je("end");if(Ve.tryLoc<=this.prev){var Mt=f.call(Ve,"catchLoc"),Nt=f.call(Ve,"finallyLoc");if(Mt&&Nt){if(this.prev=0;--je){var $e=this.tryEntries[je];if($e.tryLoc<=this.prev&&f.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var Ve=$e;break}}Ve&&(Ee==="break"||Ee==="continue")&&Ve.tryLoc<=Ke&&Ke<=Ve.finallyLoc&&(Ve=null);var bt=Ve?Ve.completion:{};return bt.type=Ee,bt.arg=Ke,Ve?(this.method="next",this.next=Ve.finallyLoc,Ge):this.complete(bt)},complete:function(Ee,Ke){if(Ee.type==="throw")throw Ee.arg;return Ee.type==="break"||Ee.type==="continue"?this.next=Ee.arg:Ee.type==="return"?(this.rval=this.arg=Ee.arg,this.method="return",this.next="end"):Ee.type==="normal"&&Ke&&(this.next=Ke),Ge},finish:function(Ee){for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var je=this.tryEntries[Ke];if(je.finallyLoc===Ee)return this.complete(je.completion,je.afterLoc),Fi(je),Ge}},catch:function(Ee){for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var je=this.tryEntries[Ke];if(je.tryLoc===Ee){var $e=je.completion;if($e.type==="throw"){var Ve=$e.arg;Fi(je)}return Ve}}throw Error("illegal catch attempt")},delegateYield:function(Ee,Ke,je){return this.delegate={iterator:Ri(Ee),resultName:Ke,nextLoc:je},this.method==="next"&&(this.arg=c),Ge}},X}function pe(c,X,K,f,C,w,re){try{var ue=c[w](re),fe=ue.value}catch(be){return void K(be)}ue.done?X(fe):Promise.resolve(fe).then(f,C)}function oe(c){return function(){var X=this,K=arguments;return new Promise(function(f,C){var w=c.apply(X,K);function re(fe){pe(w,f,C,re,ue,"next",fe)}function ue(fe){pe(w,f,C,re,ue,"throw",fe)}re(void 0)})}}function ge(c,X){return we(c)||le(c,X)||Y(c,X)||j()}function j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(c,X){var K=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(K!=null){var f,C,w,re,ue=[],fe=!0,be=!1;try{if(w=(K=K.call(c)).next,X!==0)for(;!(fe=(f=w.call(K)).done)&&(ue.push(f.value),ue.length!==X);fe=!0);}catch(Qe){be=!0,C=Qe}finally{try{if(!fe&&K.return!=null&&(re=K.return(),Object(re)!==re))return}finally{if(be)throw C}}return ue}}function we(c){if(Array.isArray(c))return c}function ke(c,X){var K=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!K){if(Array.isArray(c)||(K=Y(c))||X){K&&(c=K);var f=0,C=function(){};return{s:C,n:function(){return f>=c.length?{done:!0}:{done:!1,value:c[f++]}},e:function(be){throw be},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w,re=!0,ue=!1;return{s:function(){K=K.call(c)},n:function(){var be=K.next();return re=be.done,be},e:function(be){ue=!0,w=be},f:function(){try{re||K.return==null||K.return()}finally{if(ue)throw w}}}}function Y(c,X){if(c){if(typeof c=="string")return Q(c,X);var K={}.toString.call(c).slice(8,-1);return K==="Object"&&c.constructor&&(K=c.constructor.name),K==="Map"||K==="Set"?Array.from(c):K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K)?Q(c,X):void 0}}function Q(c,X){(X==null||X>c.length)&&(X=c.length);for(var K=0,f=Array(X);K> RFB.constructor"),w._screen=document.createElement("div"),w._screen.style.display="flex",w._screen.style.width="100%",w._screen.style.height="100%",w._screen.style.overflow="auto",w._screen.style.background=U,w._canvas=document.createElement("canvas"),w._canvas.style.margin="auto",w._canvas.style.outline="none",w._canvas.width=0,w._canvas.height=0,w._canvas.tabIndex=-1,w._screen.appendChild(w._canvas),w._cursor=new p.default,w._cursorImage=X.cursors.none,w._decoders[m.encodings.encodingRaw]=new E.default,w._decoders[m.encodings.encodingCopyRect]=new S.default,w._decoders[m.encodings.encodingRRE]=new A.default,w._decoders[m.encodings.encodingHextile]=new F.default,w._decoders[m.encodings.encodingTight]=new M.default,w._decoders[m.encodings.encodingTightPNG]=new O.default,w._decoders[m.encodings.encodingZRLE]=new H.default,w._decoders[m.encodings.encodingJPEG]=new z.default;try{w._display=new d.default(w._canvas)}catch(re){throw n.Error("Display exception: "+re),re}return w._keyboard=new l.default(w._canvas),w._keyboard.onkeyevent=w._handleKeyEvent.bind(w),w._remoteCapsLock=null,w._remoteNumLock=null,w._gestures=new s.default,w._sock=new b.default,w._sock.on("open",w._socketOpen.bind(w)),w._sock.on("close",w._socketClose.bind(w)),w._sock.on("message",w._handleMessage.bind(w)),w._sock.on("error",w._socketError.bind(w)),w._expectedClientWidth=null,w._expectedClientHeight=null,w._resizeObserver=new ResizeObserver(w._eventHandlers.handleResize),w._updateConnectionState("connecting"),n.Debug("<< RFB.constructor"),w.dragViewport=!1,w.focusOnClick=!0,w._viewOnly=!1,w._clipViewport=!1,w._clippingViewport=!1,w._scaleViewport=!1,w._resizeSession=!1,w._showDotCursor=!1,C.showDotCursor!==void 0&&(n.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),w._showDotCursor=C.showDotCursor),w._qualityLevel=6,w._compressionLevel=2,w}return V(X,c),ee(X,[{key:"viewOnly",get:function(){return this._viewOnly},set:function(f){this._viewOnly=f,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(f?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"clippingViewport",get:function(){return this._clippingViewport}},{key:"_setClippingViewport",value:function(f){f!==this._clippingViewport&&(this._clippingViewport=f,this.dispatchEvent(new CustomEvent("clippingviewport",{detail:this._clippingViewport})))}},{key:"touchButton",get:function(){return 0},set:function(f){n.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(f){this._clipViewport=f,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(f){this._scaleViewport=f,f&&this._clipViewport&&this._updateClip(),this._updateScale(),!f&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(f){this._resizeSession=f,f&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(f){this._showDotCursor=f,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(f){this._screen.style.background=f}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(f){if(!Number.isInteger(f)||f<0||f>9){n.Error("qualityLevel must be an integer between 0 and 9");return}this._qualityLevel!==f&&(this._qualityLevel=f,this._rfbConnectionState==="connected"&&this._sendEncodings())}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(f){if(!Number.isInteger(f)||f<0||f>9){n.Error("compressionLevel must be an integer between 0 and 9");return}this._compressionLevel!==f&&(this._compressionLevel=f,this._rfbConnectionState==="connected"&&this._sendEncodings())}},{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open"),this._rfbRSAAESAuthenticationState!==null&&this._rfbRSAAESAuthenticationState.disconnect()}},{key:"approveServer",value:function(){this._rfbRSAAESAuthenticationState!==null&&this._rfbRSAAESAuthenticationState.approveServer()}},{key:"sendCredentials",value:function(f){this._rfbCredentials=f,this._resumeAuthentication()}},{key:"sendCtrlAltDel",value:function(){this._rfbConnectionState!=="connected"||this._viewOnly||(n.Info("Sending Ctrl-Alt-Del"),this.sendKey(y.default.XK_Control_L,"ControlLeft",!0),this.sendKey(y.default.XK_Alt_L,"AltLeft",!0),this.sendKey(y.default.XK_Delete,"Delete",!0),this.sendKey(y.default.XK_Delete,"Delete",!1),this.sendKey(y.default.XK_Alt_L,"AltLeft",!1),this.sendKey(y.default.XK_Control_L,"ControlLeft",!1))}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(f,C,w){if(!(this._rfbConnectionState!=="connected"||this._viewOnly)){if(w===void 0){this.sendKey(f,C,!0),this.sendKey(f,C,!1);return}var re=_.default[C];if(this._qemuExtKeyEventSupported&&re)f=f||0,n.Info("Sending key ("+(w?"down":"up")+"): keysym "+f+", scancode "+re),X.messages.QEMUExtendedKeyEvent(this._sock,f,w,re);else{if(!f)return;n.Info("Sending keysym ("+(w?"down":"up")+"): "+f),X.messages.keyEvent(this._sock,f,w?1:0)}}}},{key:"focus",value:function(f){this._canvas.focus(f)}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(f){if(!(this._rfbConnectionState!=="connected"||this._viewOnly))if(this._clipboardServerCapabilitiesFormats[Ce]&&this._clipboardServerCapabilitiesActions[R])this._clipboardText=f,X.messages.extendedClipboardNotify(this._sock,[Ce]);else{var C,w,re;C=0;var ue=ke(f),fe;try{for(ue.s();!(fe=ue.n()).done;){var be=fe.value;C++}}catch(He){ue.e(He)}finally{ue.f()}re=new Uint8Array(C),w=0;var Qe=ke(f),Be;try{for(Qe.s();!(Be=Qe.n()).done;){var Me=Be.value,Ie=Me.codePointAt(0);Ie>255&&(Ie=63),re[w++]=Ie}}catch(He){Qe.e(He)}finally{Qe.f()}X.messages.clientCutText(this._sock,re)}}},{key:"getImageData",value:function(){return this._display.getImageData()}},{key:"toDataURL",value:function(f,C){return this._display.toDataURL(f,C)}},{key:"toBlob",value:function(f,C,w){return this._display.toBlob(f,C,w)}},{key:"_connect",value:function(){if(n.Debug(">> RFB.connect"),this._url)n.Info("connecting to ".concat(this._url)),this._sock.open(this._url,this._wsProtocols);else{if(n.Info("attaching ".concat(this._rawChannel," to Websock")),this._sock.attach(this._rawChannel),this._sock.readyState==="closed")throw Error("Cannot use already closed WebSocket/RTCDataChannel");this._sock.readyState==="open"&&this._socketOpen()}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),this._resizeObserver.observe(this._screen),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),n.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){n.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),this._resizeObserver.disconnect(),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(f){if(f.name!=="NotFoundError")throw f}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),n.Debug("<< RFB.disconnect")}},{key:"_socketOpen",value:function(){this._rfbConnectionState==="connecting"&&this._rfbInitState===""?(this._rfbInitState="ProtocolVersion",n.Debug("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)}},{key:"_socketClose",value:function(f){n.Debug("WebSocket on-close event");var C="";switch(f.code&&(C="(code: "+f.code,f.reason&&(C+=", reason: "+f.reason),C+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+C);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+C);break;default:this._fail("Unexpected server disconnect before connecting "+C);break}this._sock.off("close"),this._rawChannel=null}},{key:"_socketError",value:function(f){n.Warn("WebSocket on-error event")}},{key:"_focusCanvas",value:function(f){this.focusOnClick&&this.focus({preventScroll:!0})}},{key:"_setDesktopName",value:function(f){this._fbName=f,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_saveExpectedClientSize",value:function(){this._expectedClientWidth=this._screen.clientWidth,this._expectedClientHeight=this._screen.clientHeight}},{key:"_currentClientSize",value:function(){return[this._screen.clientWidth,this._screen.clientHeight]}},{key:"_clientHasExpectedSize",value:function(){var f=this._currentClientSize(),C=ge(f,2),w=C[0],re=C[1];return w==this._expectedClientWidth&&re==this._expectedClientHeight}},{key:"_handleResize",value:function(){var f=this;this._clientHasExpectedSize()||(window.requestAnimationFrame(function(){f._updateClip(),f._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500)))}},{key:"_updateClip",value:function(){var f=this._display.clipViewport,C=this._clipViewport;if(this._scaleViewport&&(C=!1),f!==C&&(this._display.clipViewport=C),C){var w=this._screenSize();this._display.viewportChangeSize(w.w,w.h),this._fixScrollbars(),this._setClippingViewport(w.wu.dragThreshold||Math.abs(ue)>u.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:f,y:C},this._display.viewportChangePos(re,ue));return}if(this._mousePos={x:f,y:C},this._mouseMoveTimer==null){var fe=Date.now()-this._mouseLastMoveTime;fe>B?(this._sendMouse(f,C,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){w._handleDelayedMouseMove()},B-fe)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(f,C,w){this._rfbConnectionState==="connected"&&(this._viewOnly||X.messages.pointerEvent(this._sock,this._display.absX(f),this._display.absY(C),w))}},{key:"_handleWheel",value:function(f){if(this._rfbConnectionState==="connected"&&!this._viewOnly){f.stopPropagation(),f.preventDefault();var C=(0,h.clientToElement)(f.clientX,f.clientY,this._canvas),w=f.deltaX,re=f.deltaY;f.deltaMode!==0&&(w*=ie,re*=ie),this._accumulatedWheelDeltaX+=w,this._accumulatedWheelDeltaY+=re,Math.abs(this._accumulatedWheelDeltaX)>=G&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(C.x,C.y,!0,32),this._handleMouseButton(C.x,C.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(C.x,C.y,!0,64),this._handleMouseButton(C.x,C.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=G&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(C.x,C.y,!0,8),this._handleMouseButton(C.x,C.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(C.x,C.y,!0,16),this._handleMouseButton(C.x,C.y,!1,16)),this._accumulatedWheelDeltaY=0)}}},{key:"_fakeMouseMove",value:function(f,C,w){this._handleMouseMove(C,w),this._cursor.move(f.detail.clientX,f.detail.clientY)}},{key:"_handleTapEvent",value:function(f,C){var w=(0,h.clientToElement)(f.detail.clientX,f.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimeye;)this._handleMouseButton(w.x,w.y,!0,8),this._handleMouseButton(w.x,w.y,!1,8),this._gestureLastMagnitudeY+=ye;for(;f.detail.magnitudeY-this._gestureLastMagnitudeY<-ye;)this._handleMouseButton(w.x,w.y,!0,16),this._handleMouseButton(w.x,w.y,!1,16),this._gestureLastMagnitudeY-=ye;for(;f.detail.magnitudeX-this._gestureLastMagnitudeX>ye;)this._handleMouseButton(w.x,w.y,!0,32),this._handleMouseButton(w.x,w.y,!1,32),this._gestureLastMagnitudeX+=ye;for(;f.detail.magnitudeX-this._gestureLastMagnitudeX<-ye;)this._handleMouseButton(w.x,w.y,!0,64),this._handleMouseButton(w.x,w.y,!1,64),this._gestureLastMagnitudeX-=ye;break;case"pinch":if(this._fakeMouseMove(f,w.x,w.y),C=Math.hypot(f.detail.magnitudeX,f.detail.magnitudeY),Math.abs(C-this._gestureLastMagnitudeX)>se){for(this._handleKeyEvent(y.default.XK_Control_L,"ControlLeft",!0);C-this._gestureLastMagnitudeX>se;)this._handleMouseButton(w.x,w.y,!0,8),this._handleMouseButton(w.x,w.y,!1,8),this._gestureLastMagnitudeX+=se;for(;C-this._gestureLastMagnitudeX<-se;)this._handleMouseButton(w.x,w.y,!0,16),this._handleMouseButton(w.x,w.y,!1,16),this._gestureLastMagnitudeX-=se}this._handleKeyEvent(y.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(f.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(f,w.x,w.y),this._handleMouseButton(w.x,w.y,!1,1);break;case"longpress":this._fakeMouseMove(f,w.x,w.y),this._handleMouseButton(w.x,w.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var f=this._sock.rQshiftStr(12).substr(4,7);n.Info("Server ProtocolVersion: "+f);var C=0;switch(f){case"000.000":C=1;break;case"003.003":case"003.006":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"003.889":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+f)}if(C){for(var w="ID:"+this._repeaterID;w.length<250;)w+="\0";return this._sock.sQpushString(w),this._sock.flush(),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var re="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sQpushString("RFB "+re+` +`),this._sock.flush(),n.Debug("Sent ProtocolVersion: "+re),this._rfbInitState="Security"}},{key:"_isSupportedSecurityType",value:function(f){var C=[xe,Ne,Ye,_t,gt,st,kt,L,me];return C.includes(f)}},{key:"_negotiateSecurity",value:function(){if(this._rfbVersion>=3.7){var f=this._sock.rQshift8();if(this._sock.rQwait("security type",f,1))return!1;if(f===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,!0;var C=this._sock.rQshiftBytes(f);n.Debug("Server security types: "+C),this._rfbAuthScheme=-1;var w=ke(C),re;try{for(w.s();!(re=w.n()).done;){var ue=re.value;if(this._isSupportedSecurityType(ue)){this._rfbAuthScheme=ue;break}}}catch(fe){w.e(fe)}finally{w.f()}if(this._rfbAuthScheme===-1)return this._fail("Unsupported security types (types: "+C+")");this._sock.sQpush8(this._rfbAuthScheme),this._sock.flush()}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,!0}return this._rfbInitState="Authentication",n.Debug("Authenticating using scheme: "+this._rfbAuthScheme),!0}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var f=this._sock.rQshift32(),C="";if(f>0){if(this._sock.rQwait("reason",f,4))return!1;C=this._sock.rQshiftStr(f)}return C!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:C}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+C+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1):(this._sock.sQpush8(this._rfbCredentials.username.length),this._sock.sQpush8(this._rfbCredentials.target.length),this._sock.sQpushString(this._rfbCredentials.username),this._sock.sQpushString(this._rfbCredentials.target),this._sock.flush(),this._rfbAuthScheme=Ne,this._negotiateAuthentication())}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var f=this._sock.rQshift8(),C=this._sock.rQshift8();if(!(f==0&&C==2))return this._fail("Unsupported VeNCrypt version "+f+"."+C);this._sock.sQpush8(0),this._sock.sQpush8(2),this._sock.flush(),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var w=this._sock.rQshift8();if(w!=0)return this._fail("VeNCrypt failure "+w);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var re=this._sock.rQshift8();if(re<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=re,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var ue=[],fe=0;fe0&&this._sock.rQwait("tunnel capabilities",16*f,4))return!1;if(this._rfbTightVNC=!0,f>0)return this._negotiateTightTunnels(f),!1}if(this._sock.rQwait("sub auth count",4))return!1;var C=this._sock.rQshift32();if(C===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*C,4))return!1;for(var w={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},re=[],ue=0;ue=3.8?this._rfbInitState="SecurityResult":this._rfbInitState="ClientInitialisation",!0;case st:return this._negotiateXvpAuth();case kt:return this._negotiateARDAuth();case Ne:return this._negotiateStdVNCAuth();case _t:return this._negotiateTightAuth();case gt:return this._negotiateVeNCryptAuth();case me:return this._negotiatePlainAuth();case _e:return this._negotiateTightUnixAuth();case Ye:return this._negotiateRA2neAuth();case L:return this._negotiateMSLogonIIAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var f=this._sock.rQshift32();return f===0?(this._rfbInitState="ClientInitialisation",n.Debug("Authentication OK"),!0):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=f,!0):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:f}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var f=this._sock.rQshift16(),C=this._sock.rQshift16(),w=this._sock.rQshift8(),re=this._sock.rQshift8(),ue=this._sock.rQshift8(),fe=this._sock.rQshift8(),be=this._sock.rQshift16(),Qe=this._sock.rQshift16(),Be=this._sock.rQshift16(),Me=this._sock.rQshift8(),Ie=this._sock.rQshift8(),He=this._sock.rQshift8();this._sock.rQskipBytes(3);var Te=this._sock.rQshift32();if(this._sock.rQwait("server init name",Te,24))return!1;var Ge=this._sock.rQshiftStr(Te);if(Ge=(0,i.decodeUTF8)(Ge,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Te))return!1;var yt=this._sock.rQshift16(),tt=this._sock.rQshift16(),qe=this._sock.rQshift16();this._sock.rQskipBytes(2);var et=(yt+tt+qe)*16;if(this._sock.rQwait("TightVNC extended server init header",et,32+Te))return!1;this._sock.rQskipBytes(16*yt),this._sock.rQskipBytes(16*tt),this._sock.rQskipBytes(16*qe)}return n.Info("Screen: "+f+"x"+C+", bpp: "+w+", depth: "+re+", bigEndian: "+ue+", trueColor: "+fe+", redMax: "+be+", greenMax: "+Qe+", blueMax: "+Be+", redShift: "+Me+", greenShift: "+Ie+", blueShift: "+He),this._setDesktopName(Ge),this._resize(f,C),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(n.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),X.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),X.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var f=[];f.push(m.encodings.encodingCopyRect),this._fbDepth==24&&(f.push(m.encodings.encodingTight),f.push(m.encodings.encodingTightPNG),f.push(m.encodings.encodingZRLE),f.push(m.encodings.encodingJPEG),f.push(m.encodings.encodingHextile),f.push(m.encodings.encodingRRE)),f.push(m.encodings.encodingRaw),f.push(m.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),f.push(m.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),f.push(m.encodings.pseudoEncodingDesktopSize),f.push(m.encodings.pseudoEncodingLastRect),f.push(m.encodings.pseudoEncodingQEMUExtendedKeyEvent),f.push(m.encodings.pseudoEncodingQEMULedEvent),f.push(m.encodings.pseudoEncodingExtendedDesktopSize),f.push(m.encodings.pseudoEncodingXvp),f.push(m.encodings.pseudoEncodingFence),f.push(m.encodings.pseudoEncodingContinuousUpdates),f.push(m.encodings.pseudoEncodingDesktopName),f.push(m.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(f.push(m.encodings.pseudoEncodingVMwareCursor),f.push(m.encodings.pseudoEncodingCursor)),X.messages.clientEncodings(this._sock,f)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.sQpush8(this._shared?1:0),this._sock.flush(),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_resumeAuthentication",value:function(){setTimeout(this._initMsg.bind(this),0)}},{key:"_handleSetColourMapMsg",value:function(){return n.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(n.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var f=this._sock.rQshift32();if(f=(0,r.toSigned32bit)(f),this._sock.rQwait("ServerCutText content",Math.abs(f),8))return!1;if(f>=0){var C=this._sock.rQshiftStr(f);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:C}}))}else{f=Math.abs(f);var w=this._sock.rQshift32(),re=w&65535,ue=w&4278190080,fe=!!(ue&Le);if(fe){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var be=0;be<=15;be++){var Qe=1<0&&Ge.charAt(Ge.length-1)==="\0"&&(Ge=Ge.slice(0,-1)),Ge=Ge.replaceAll(`\r +`,` +`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ge}}))}}else return this._fail("Unexpected action in extended clipboard message: "+ue)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var f=this._sock.rQshift32(),C=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",C,9))return!1;C>64&&(n.Warn("Bad payload length ("+C+") in fence response"),C=64);var w=this._sock.rQshiftStr(C);return this._supportsFence=!0,f&1<<31?(f&=3,X.messages.clientFence(this._sock,f,w),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var f=this._sock.rQshift8(),C=this._sock.rQshift8();switch(C){case 0:n.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=f,n.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+C+")");break}return!0}},{key:"_normalMsg",value:function(){var f;this._FBU.rects>0?f=0:f=this._sock.rQshift8();var C,w;switch(f){case 0:return w=this._framebufferUpdate(),w&&!this._enabledContinuousUpdates&&X.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),w;case 1:return this._handleSetColourMapMsg();case 2:return n.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return C=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,C&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),n.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+f+")"),n.Debug("sock.rQpeekBytes(30): "+this._sock.rQpeekBytes(30)),!0}}},{key:"_framebufferUpdate",value:function(){var f=this;if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush().then(function(){f._flushing=!1,f._sock.rQwait("message",1)||f._handleMessage()}),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;this._FBU.x=this._sock.rQshift16(),this._FBU.y=this._sock.rQshift16(),this._FBU.width=this._sock.rQshift16(),this._FBU.height=this._sock.rQshift16(),this._FBU.encoding=this._sock.rQshift32(),this._FBU.encoding>>=0}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case m.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case m.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case m.encodings.pseudoEncodingCursor:return this._handleCursor();case m.encodings.pseudoEncodingQEMUExtendedKeyEvent:return this._qemuExtKeyEventSupported=!0,!0;case m.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case m.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case m.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();case m.encodings.pseudoEncodingQEMULedEvent:return this._handleLedEvent();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var f=this._FBU.x,C=this._FBU.y,w=this._FBU.width,re=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var ue=this._sock.rQshift8();this._sock.rQshift8();var fe,be=4;if(ue==0){var Qe=-256;if(fe=new Array(w*re*be),this._sock.rQwait("VMware cursor classic encoding",w*re*be*2,2))return!1;for(var Be=new Array(w*re),Me=0;Me>8&255,tt=Ge>>16&255,qe=Ge>>24&255;fe[Te*be]=yt,fe[Te*be+1]=tt,fe[Te*be+2]=qe,fe[Te*be+3]=255}else(Be[Te]&Qe)==Qe?Ie[Te]==0?(fe[Te*be]=0,fe[Te*be+1]=0,fe[Te*be+2]=0,fe[Te*be+3]=0):((Ie[Te]&Qe)==Qe,fe[Te*be]=0,fe[Te*be+1]=0,fe[Te*be+2]=0,fe[Te*be+3]=255):(fe[Te*be]=0,fe[Te*be+1]=0,fe[Te*be+2]=0,fe[Te*be+3]=255)}else if(ue==1){if(this._sock.rQwait("VMware cursor alpha encoding",w*re*4,2))return!1;fe=new Array(w*re*be);for(var et=0;et>24&255,fe[et*4+1]=xt>>16&255,fe[et*4+2]=xt>>8&255,fe[et*4+3]=xt&255}}else return n.Warn("The given cursor type is not supported: "+ue+" given."),!1;return this._updateCursor(fe,f,C,w,re),!0}},{key:"_handleCursor",value:function(){var f=this._FBU.x,C=this._FBU.y,w=this._FBU.width,re=this._FBU.height,ue=w*re*4,fe=Math.ceil(w/8)*re,be=ue+fe;if(this._sock.rQwait("cursor encoding",be))return!1;for(var Qe=this._sock.rQshiftBytes(ue),Be=this._sock.rQshiftBytes(fe),Me=new Uint8Array(w*re*4),Ie=0,He=0;He>8,be=C&255;return fe===224&&be<127?be|128:ue}X.sQpush8(255),X.sQpush8(0),X.sQpush16(f),X.sQpush32(K);var re=w(C);X.sQpush32(re),X.flush()},pointerEvent:function(X,K,f,C){X.sQpush8(5),X.sQpush8(C),X.sQpush16(K),X.sQpush16(f),X.flush()},_buildExtendedClipboardFlags:function(X,K){for(var f=new Uint8Array(4),C=0,w=0,re=0;re>24,f[1]=0,f[2]=0,f[3]=C,f},extendedClipboardProvide:function(X,K,f){for(var C=new g.default,w=[],re=0;re>24&255,ue.length>>16&255,ue.length>>8&255,ue.length&255);for(var fe=0;fe>24,w[re+1]=f[C[ue]]>>16,w[re+2]=f[C[ue]]>>8,w[re+3]=f[C[ue]]>>0,re+=4,w[3]|=1<2&&arguments[2]!==void 0?arguments[2]:!1;X.sQpush8(6),X.sQpush8(0),X.sQpush8(0),X.sQpush8(0);var C;f?C=(0,r.toUnsigned32bit)(-K.length):C=K.length,X.sQpush32(C),X.sQpushBytes(K),X.flush()},setDesktopSize:function(X,K,f,C,w){X.sQpush8(251),X.sQpush8(0),X.sQpush16(K),X.sQpush16(f),X.sQpush8(1),X.sQpush8(0),X.sQpush32(C),X.sQpush16(0),X.sQpush16(0),X.sQpush16(K),X.sQpush16(f),X.sQpush32(w),X.flush()},clientFence:function(X,K,f){X.sQpush8(248),X.sQpush8(0),X.sQpush8(0),X.sQpush8(0),X.sQpush32(K),X.sQpush8(f.length),X.sQpushString(f),X.flush()},enableContinuousUpdates:function(X,K,f,C,w,re){X.sQpush8(150),X.sQpush8(K),X.sQpush16(f),X.sQpush16(C),X.sQpush16(w),X.sQpush16(re),X.flush()},pixelFormat:function(X,K,f){var C;K>16?C=32:K>8?C=16:C=8;var w=Math.floor(K/3);X.sQpush8(0),X.sQpush8(0),X.sQpush8(0),X.sQpush8(0),X.sQpush8(C),X.sQpush8(K),X.sQpush8(0),X.sQpush8(f?1:0),X.sQpush16((1<"u"&&(f=0),typeof C>"u"&&(C=0),X.sQpush8(3),X.sQpush8(K?1:0),X.sQpush16(f),X.sQpush16(C),X.sQpush16(w),X.sQpush16(re),X.flush()},xvpOp:function(X,K,f){X.sQpush8(250),X.sQpush8(0),X.sQpush8(K),X.sQpush8(f),X.flush()}},Pe.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}}(Ui)),Ui}var Ih=Dh();const Bh=Ll(Ih);var ma={},xa,ru;function Ei(){if(ru)return xa;ru=1;const e="\\\\/",t=`[^${e}]`,r="\\.",n="\\+",i="\\?",u="\\/",h="(?=.)",v="[^/]",a=`(?:${u}|$)`,d=`(?:^|${u})`,o=`${r}{1,2}${a}`,g=`(?!${r})`,l=`(?!${d}${o})`,s=`(?!${r}{0,1}${a})`,p=`(?!${o})`,b=`[^.${u}]`,y=`${v}*?`,m={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:u,ONE_CHAR:h,QMARK:v,END_ANCHOR:a,DOTS_SLASH:o,NO_DOT:g,NO_DOTS:l,NO_DOT_SLASH:s,NO_DOTS_SLASH:p,QMARK_NO_DOT:b,STAR:y,START_ANCHOR:d,SEP:"/"},k={...m,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},x={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return xa={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:x,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?k:m}},xa}var nu;function Ci(){return nu||(nu=1,function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ei();e.isObject=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),e.hasRegexChars=u=>n.test(u),e.isRegexChar=u=>u.length===1&&e.hasRegexChars(u),e.escapeRegex=u=>u.replace(i,"\\$1"),e.toPosixSlashes=u=>u.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const u=navigator.platform.toLowerCase();return u==="win32"||u==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},e.removeBackslashes=u=>u.replace(r,h=>h==="\\"?"":h),e.escapeLast=(u,h,v)=>{const a=u.lastIndexOf(h,v);return a===-1?u:u[a-1]==="\\"?e.escapeLast(u,h,a-1):`${u.slice(0,a)}\\${u.slice(a)}`},e.removePrefix=(u,h={})=>{let v=u;return v.startsWith("./")&&(v=v.slice(2),h.prefix="./"),v},e.wrapOutput=(u,h={},v={})=>{const a=v.contains?"":"^",d=v.contains?"":"$";let o=`${a}(?:${u})${d}`;return h.negated===!0&&(o=`(?:^(?!${o}).*$)`),o},e.basename=(u,{windows:h}={})=>{const v=u.split(h?/[\\/]/:"/"),a=v[v.length-1];return a===""?v[v.length-2]:a}}(ma)),ma}var wa,iu;function Nh(){if(iu)return wa;iu=1;const e=Ci(),{CHAR_ASTERISK:t,CHAR_AT:r,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:i,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:h,CHAR_FORWARD_SLASH:v,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:g,CHAR_QUESTION_MARK:l,CHAR_RIGHT_CURLY_BRACE:s,CHAR_RIGHT_PARENTHESES:p,CHAR_RIGHT_SQUARE_BRACKET:b}=Ei(),y=k=>k===v||k===n,_=k=>{k.isPrefix!==!0&&(k.depth=k.isGlobstar?1/0:1)};return wa=(k,x)=>{const E=x||{},S=k.length-1,A=E.parts===!0||E.scanToEnd===!0,F=[],M=[],O=[];let H=k,z=-1,W=0,q=0,ae=!1,de=!1,pe=!1,oe=!1,ge=!1,j=!1,le=!1,we=!1,ke=!1,Y=!1,Q=0,ce,Z,ee={value:"",depth:0,isGlob:!1};const J=()=>z>=S,ne=()=>H.charCodeAt(z+1),ve=()=>(ce=Z,H.charCodeAt(++z));for(;z0&&(T=H.slice(0,W),H=H.slice(W),q-=W),P&&pe===!0&&q>0?(P=H.slice(0,q),D=H.slice(q)):pe===!0?(P="",D=H):P=H,P&&P!==""&&P!=="/"&&P!==H&&y(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),E.unescape===!0&&(D&&(D=e.removeBackslashes(D)),P&&le===!0&&(P=e.removeBackslashes(P)));const N={prefix:T,input:k,start:W,base:P,glob:D,isBrace:ae,isBracket:de,isGlob:pe,isExtglob:oe,isGlobstar:ge,negated:we,negatedExtglob:ke};if(E.tokens===!0&&(N.maxDepth=0,y(Z)||M.push(ee),N.tokens=M),E.parts===!0||E.tokens===!0){let V;for(let te=0;te{if(typeof g.expandRange=="function")return g.expandRange(...o,g);o.sort();const l=`[${o.join("-")}]`;try{new RegExp(l)}catch{return o.map(p=>t.escapeRegex(p)).join("..")}return l},a=(o,g)=>`Missing ${o}: "${g}" - use "\\\\${g}" to match literal characters`,d=(o,g)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=h[o]||o;const l={...g},s=typeof l.maxLength=="number"?Math.min(r,l.maxLength):r;let p=o.length;if(p>s)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${s}`);const b={type:"bos",value:"",output:l.prepend||""},y=[b],_=l.capture?"":"?:",m=e.globChars(l.windows),k=e.extglobChars(m),{DOT_LITERAL:x,PLUS_LITERAL:E,SLASH_LITERAL:S,ONE_CHAR:A,DOTS_SLASH:F,NO_DOT:M,NO_DOT_SLASH:O,NO_DOTS_SLASH:H,QMARK:z,QMARK_NO_DOT:W,STAR:q,START_ANCHOR:ae}=m,de=I=>`(${_}(?:(?!${ae}${I.dot?F:x}).)*?)`,pe=l.dot?"":M,oe=l.dot?z:W;let ge=l.bash===!0?de(l):q;l.capture&&(ge=`(${ge})`),typeof l.noext=="boolean"&&(l.noextglob=l.noext);const j={input:o,index:-1,start:0,dot:l.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};o=t.removePrefix(o,j),p=o.length;const le=[],we=[],ke=[];let Y=b,Q;const ce=()=>j.index===p-1,Z=j.peek=(I=1)=>o[j.index+I],ee=j.advance=()=>o[++j.index]||"",J=()=>o.slice(j.index+1),ne=(I="",U=0)=>{j.consumed+=I,j.index+=U},ve=I=>{j.output+=I.output!=null?I.output:I.value,ne(I.value)},P=()=>{let I=1;for(;Z()==="!"&&(Z(2)!=="("||Z(3)==="?");)ee(),j.start++,I++;return I%2===0?!1:(j.negated=!0,j.start++,!0)},T=I=>{j[I]++,ke.push(I)},D=I=>{j[I]--,ke.pop()},N=I=>{if(Y.type==="globstar"){const U=j.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||le.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!U&&!B&&(j.output=j.output.slice(0,-Y.output.length),Y.type="star",Y.value="*",Y.output=ge,j.output+=Y.output)}if(le.length&&I.type!=="paren"&&(le[le.length-1].inner+=I.value),(I.value||I.output)&&ve(I),Y&&Y.type==="text"&&I.type==="text"){Y.output=(Y.output||Y.value)+I.value,Y.value+=I.value;return}I.prev=Y,y.push(I),Y=I},V=(I,U)=>{const B={...k[U],conditions:1,inner:""};B.prev=Y,B.parens=j.parens,B.output=j.output;const G=(l.capture?"(":"")+B.open;T("parens"),N({type:I,value:U,output:j.output?"":A}),N({type:"paren",extglob:!0,value:ee(),output:G}),le.push(B)},te=I=>{let U=I.close+(l.capture?")":""),B;if(I.type==="negate"){let G=ge;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(G=de(l)),(G!==ge||ce()||/^\)+$/.test(J()))&&(U=I.close=`)$))${G}`),I.inner.includes("*")&&(B=J())&&/^\.[^\\/.]+$/.test(B)){const ie=d(B,{...g,fastpaths:!1}).output;U=I.close=`)${ie})${G})`}I.prev.type==="bos"&&(j.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:Q,output:U}),D("parens")};if(l.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let I=!1,U=o.replace(u,(B,G,ie,se,ye,Ae)=>se==="\\"?(I=!0,B):se==="?"?G?G+se+(ye?z.repeat(ye.length):""):Ae===0?oe+(ye?z.repeat(ye.length):""):z.repeat(ie.length):se==="."?x.repeat(ie.length):se==="*"?G?G+se+(ye?ge:""):ge:G?B:`\\${B}`);return I===!0&&(l.unescape===!0?U=U.replace(/\\/g,""):U=U.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),U===o&&l.contains===!0?(j.output=o,j):(j.output=t.wrapOutput(U,j,g),j)}for(;!ce();){if(Q=ee(),Q==="\0")continue;if(Q==="\\"){const B=Z();if(B==="/"&&l.bash!==!0||B==="."||B===";")continue;if(!B){Q+="\\",N({type:"text",value:Q});continue}const G=/^\\+/.exec(J());let ie=0;if(G&&G[0].length>2&&(ie=G[0].length,j.index+=ie,ie%2!==0&&(Q+="\\")),l.unescape===!0?Q=ee():Q+=ee(),j.brackets===0){N({type:"text",value:Q});continue}}if(j.brackets>0&&(Q!=="]"||Y.value==="["||Y.value==="[^")){if(l.posix!==!1&&Q===":"){const B=Y.value.slice(1);if(B.includes("[")&&(Y.posix=!0,B.includes(":"))){const G=Y.value.lastIndexOf("["),ie=Y.value.slice(0,G),se=Y.value.slice(G+2),ye=n[se];if(ye){Y.value=ie+ye,j.backtrack=!0,ee(),!b.output&&y.indexOf(Y)===1&&(b.output=A);continue}}}(Q==="["&&Z()!==":"||Q==="-"&&Z()==="]")&&(Q=`\\${Q}`),Q==="]"&&(Y.value==="["||Y.value==="[^")&&(Q=`\\${Q}`),l.posix===!0&&Q==="!"&&Y.value==="["&&(Q="^"),Y.value+=Q,ve({value:Q});continue}if(j.quotes===1&&Q!=='"'){Q=t.escapeRegex(Q),Y.value+=Q,ve({value:Q});continue}if(Q==='"'){j.quotes=j.quotes===1?0:1,l.keepQuotes===!0&&N({type:"text",value:Q});continue}if(Q==="("){T("parens"),N({type:"paren",value:Q});continue}if(Q===")"){if(j.parens===0&&l.strictBrackets===!0)throw new SyntaxError(a("opening","("));const B=le[le.length-1];if(B&&j.parens===B.parens+1){te(le.pop());continue}N({type:"paren",value:Q,output:j.parens?")":"\\)"}),D("parens");continue}if(Q==="["){if(l.nobracket===!0||!J().includes("]")){if(l.nobracket!==!0&&l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));Q=`\\${Q}`}else T("brackets");N({type:"bracket",value:Q});continue}if(Q==="]"){if(l.nobracket===!0||Y&&Y.type==="bracket"&&Y.value.length===1){N({type:"text",value:Q,output:`\\${Q}`});continue}if(j.brackets===0){if(l.strictBrackets===!0)throw new SyntaxError(a("opening","["));N({type:"text",value:Q,output:`\\${Q}`});continue}D("brackets");const B=Y.value.slice(1);if(Y.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(Q=`/${Q}`),Y.value+=Q,ve({value:Q}),l.literalBrackets===!1||t.hasRegexChars(B))continue;const G=t.escapeRegex(Y.value);if(j.output=j.output.slice(0,-Y.value.length),l.literalBrackets===!0){j.output+=G,Y.value=G;continue}Y.value=`(${_}${G}|${Y.value})`,j.output+=Y.value;continue}if(Q==="{"&&l.nobrace!==!0){T("braces");const B={type:"brace",value:Q,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};we.push(B),N(B);continue}if(Q==="}"){const B=we[we.length-1];if(l.nobrace===!0||!B){N({type:"text",value:Q,output:Q});continue}let G=")";if(B.dots===!0){const ie=y.slice(),se=[];for(let ye=ie.length-1;ye>=0&&(y.pop(),ie[ye].type!=="brace");ye--)ie[ye].type!=="dots"&&se.unshift(ie[ye].value);G=v(se,l),j.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){const ie=j.output.slice(0,B.outputIndex),se=j.tokens.slice(B.tokensIndex);B.value=B.output="\\{",Q=G="\\}",j.output=ie;for(const ye of se)j.output+=ye.output||ye.value}N({type:"brace",value:Q,output:G}),D("braces"),we.pop();continue}if(Q==="|"){le.length>0&&le[le.length-1].conditions++,N({type:"text",value:Q});continue}if(Q===","){let B=Q;const G=we[we.length-1];G&&ke[ke.length-1]==="braces"&&(G.comma=!0,B="|"),N({type:"comma",value:Q,output:B});continue}if(Q==="/"){if(Y.type==="dot"&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",y.pop(),Y=b;continue}N({type:"slash",value:Q,output:S});continue}if(Q==="."){if(j.braces>0&&Y.type==="dot"){Y.value==="."&&(Y.output=x);const B=we[we.length-1];Y.type="dots",Y.output+=Q,Y.value+=Q,B.dots=!0;continue}if(j.braces+j.parens===0&&Y.type!=="bos"&&Y.type!=="slash"){N({type:"text",value:Q,output:x});continue}N({type:"dot",value:Q,output:x});continue}if(Q==="?"){if(!(Y&&Y.value==="(")&&l.noextglob!==!0&&Z()==="("&&Z(2)!=="?"){V("qmark",Q);continue}if(Y&&Y.type==="paren"){const G=Z();let ie=Q;(Y.value==="("&&!/[!=<:]/.test(G)||G==="<"&&!/<([!=]|\w+>)/.test(J()))&&(ie=`\\${Q}`),N({type:"text",value:Q,output:ie});continue}if(l.dot!==!0&&(Y.type==="slash"||Y.type==="bos")){N({type:"qmark",value:Q,output:W});continue}N({type:"qmark",value:Q,output:z});continue}if(Q==="!"){if(l.noextglob!==!0&&Z()==="("&&(Z(2)!=="?"||!/[!=<:]/.test(Z(3)))){V("negate",Q);continue}if(l.nonegate!==!0&&j.index===0){P();continue}}if(Q==="+"){if(l.noextglob!==!0&&Z()==="("&&Z(2)!=="?"){V("plus",Q);continue}if(Y&&Y.value==="("||l.regex===!1){N({type:"plus",value:Q,output:E});continue}if(Y&&(Y.type==="bracket"||Y.type==="paren"||Y.type==="brace")||j.parens>0){N({type:"plus",value:Q});continue}N({type:"plus",value:E});continue}if(Q==="@"){if(l.noextglob!==!0&&Z()==="("&&Z(2)!=="?"){N({type:"at",extglob:!0,value:Q,output:""});continue}N({type:"text",value:Q});continue}if(Q!=="*"){(Q==="$"||Q==="^")&&(Q=`\\${Q}`);const B=i.exec(J());B&&(Q+=B[0],j.index+=B[0].length),N({type:"text",value:Q});continue}if(Y&&(Y.type==="globstar"||Y.star===!0)){Y.type="star",Y.star=!0,Y.value+=Q,Y.output=ge,j.backtrack=!0,j.globstar=!0,ne(Q);continue}let I=J();if(l.noextglob!==!0&&/^\([^?]/.test(I)){V("star",Q);continue}if(Y.type==="star"){if(l.noglobstar===!0){ne(Q);continue}const B=Y.prev,G=B.prev,ie=B.type==="slash"||B.type==="bos",se=G&&(G.type==="star"||G.type==="globstar");if(l.bash===!0&&(!ie||I[0]&&I[0]!=="/")){N({type:"star",value:Q,output:""});continue}const ye=j.braces>0&&(B.type==="comma"||B.type==="brace"),Ae=le.length&&(B.type==="pipe"||B.type==="paren");if(!ie&&B.type!=="paren"&&!ye&&!Ae){N({type:"star",value:Q,output:""});continue}for(;I.slice(0,3)==="/**";){const Xe=o[j.index+4];if(Xe&&Xe!=="/")break;I=I.slice(3),ne("/**",3)}if(B.type==="bos"&&ce()){Y.type="globstar",Y.value+=Q,Y.output=de(l),j.output=Y.output,j.globstar=!0,ne(Q);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!se&&ce()){j.output=j.output.slice(0,-(B.output+Y.output).length),B.output=`(?:${B.output}`,Y.type="globstar",Y.output=de(l)+(l.strictSlashes?")":"|$)"),Y.value+=Q,j.globstar=!0,j.output+=B.output+Y.output,ne(Q);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){const Xe=I[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(B.output+Y.output).length),B.output=`(?:${B.output}`,Y.type="globstar",Y.output=`${de(l)}${S}|${S}${Xe})`,Y.value+=Q,j.output+=B.output+Y.output,j.globstar=!0,ne(Q+ee()),N({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){Y.type="globstar",Y.value+=Q,Y.output=`(?:^|${S}|${de(l)}${S})`,j.output=Y.output,j.globstar=!0,ne(Q+ee()),N({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-Y.output.length),Y.type="globstar",Y.output=de(l),Y.value+=Q,j.output+=Y.output,j.globstar=!0,ne(Q);continue}const U={type:"star",value:Q,output:ge};if(l.bash===!0){U.output=".*?",(Y.type==="bos"||Y.type==="slash")&&(U.output=pe+U.output),N(U);continue}if(Y&&(Y.type==="bracket"||Y.type==="paren")&&l.regex===!0){U.output=Q,N(U);continue}(j.index===j.start||Y.type==="slash"||Y.type==="dot")&&(Y.type==="dot"?(j.output+=O,Y.output+=O):l.dot===!0?(j.output+=H,Y.output+=H):(j.output+=pe,Y.output+=pe),Z()!=="*"&&(j.output+=A,Y.output+=A)),N(U)}for(;j.brackets>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));j.output=t.escapeLast(j.output,"["),D("brackets")}for(;j.parens>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing",")"));j.output=t.escapeLast(j.output,"("),D("parens")}for(;j.braces>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","}"));j.output=t.escapeLast(j.output,"{"),D("braces")}if(l.strictSlashes!==!0&&(Y.type==="star"||Y.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${S}?`}),j.backtrack===!0){j.output="";for(const I of j.tokens)j.output+=I.output!=null?I.output:I.value,I.suffix&&(j.output+=I.suffix)}return j};return d.fastpaths=(o,g)=>{const l={...g},s=typeof l.maxLength=="number"?Math.min(r,l.maxLength):r,p=o.length;if(p>s)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${s}`);o=h[o]||o;const{DOT_LITERAL:b,SLASH_LITERAL:y,ONE_CHAR:_,DOTS_SLASH:m,NO_DOT:k,NO_DOTS:x,NO_DOTS_SLASH:E,STAR:S,START_ANCHOR:A}=e.globChars(l.windows),F=l.dot?x:k,M=l.dot?E:k,O=l.capture?"":"?:",H={negated:!1,prefix:""};let z=l.bash===!0?".*?":S;l.capture&&(z=`(${z})`);const W=pe=>pe.noglobstar===!0?z:`(${O}(?:(?!${A}${pe.dot?m:b}).)*?)`,q=pe=>{switch(pe){case"*":return`${F}${_}${z}`;case".*":return`${b}${_}${z}`;case"*.*":return`${F}${z}${b}${_}${z}`;case"*/*":return`${F}${z}${y}${_}${M}${z}`;case"**":return F+W(l);case"**/*":return`(?:${F}${W(l)}${y})?${M}${_}${z}`;case"**/*.*":return`(?:${F}${W(l)}${y})?${M}${z}${b}${_}${z}`;case"**/.*":return`(?:${F}${W(l)}${y})?${b}${_}${z}`;default:{const oe=/^(.*?)\.(\w+)$/.exec(pe);if(!oe)return;const ge=q(oe[1]);return ge?ge+b+oe[2]:void 0}}},ae=t.removePrefix(o,H);let de=q(ae);return de&&l.strictSlashes!==!0&&(de+=`${y}?`),de},ka=d,ka}var Sa,ou;function Uh(){if(ou)return Sa;ou=1;const e=Nh(),t=Qh(),r=Ci(),n=Ei(),i=h=>h&&typeof h=="object"&&!Array.isArray(h),u=(h,v,a=!1)=>{if(Array.isArray(h)){const y=h.map(m=>u(m,v,a));return m=>{for(const k of y){const x=k(m);if(x)return x}return!1}}const d=i(h)&&h.tokens&&h.input;if(h===""||typeof h!="string"&&!d)throw new TypeError("Expected pattern to be a non-empty string");const o=v||{},g=o.windows,l=d?u.compileRe(h,v):u.makeRe(h,v,!1,!0),s=l.state;delete l.state;let p=()=>!1;if(o.ignore){const y={...v,ignore:null,onMatch:null,onResult:null};p=u(o.ignore,y,a)}const b=(y,_=!1)=>{const{isMatch:m,match:k,output:x}=u.test(y,l,v,{glob:h,posix:g}),E={glob:h,state:s,regex:l,posix:g,input:y,output:x,match:k,isMatch:m};return typeof o.onResult=="function"&&o.onResult(E),m===!1?(E.isMatch=!1,_?E:!1):p(y)?(typeof o.onIgnore=="function"&&o.onIgnore(E),E.isMatch=!1,_?E:!1):(typeof o.onMatch=="function"&&o.onMatch(E),_?E:!0)};return a&&(b.state=s),b};return u.test=(h,v,a,{glob:d,posix:o}={})=>{if(typeof h!="string")throw new TypeError("Expected input to be a string");if(h==="")return{isMatch:!1,output:""};const g=a||{},l=g.format||(o?r.toPosixSlashes:null);let s=h===d,p=s&&l?l(h):h;return s===!1&&(p=l?l(h):h,s=p===d),(s===!1||g.capture===!0)&&(g.matchBase===!0||g.basename===!0?s=u.matchBase(h,v,a,o):s=v.exec(p)),{isMatch:!!s,match:s,output:p}},u.matchBase=(h,v,a)=>(v instanceof RegExp?v:u.makeRe(v,a)).test(r.basename(h)),u.isMatch=(h,v,a)=>u(v,a)(h),u.parse=(h,v)=>Array.isArray(h)?h.map(a=>u.parse(a,v)):t(h,{...v,fastpaths:!1}),u.scan=(h,v)=>e(h,v),u.compileRe=(h,v,a=!1,d=!1)=>{if(a===!0)return h.output;const o=v||{},g=o.contains?"":"^",l=o.contains?"":"$";let s=`${g}(?:${h.output})${l}`;h&&h.negated===!0&&(s=`^(?!${s}).*$`);const p=u.toRegex(s,v);return d===!0&&(p.state=h),p},u.makeRe=(h,v={},a=!1,d=!1)=>{if(!h||typeof h!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return v.fastpaths!==!1&&(h[0]==="."||h[0]==="*")&&(o.output=t.fastpaths(h,v)),o.output||(o=t(h,v)),u.compileRe(o,v,a,d)},u.toRegex=(h,v)=>{try{const a=v||{};return new RegExp(h,a.flags||(a.nocase?"i":""))}catch(a){if(v&&v.debug===!0)throw a;return/$^/}},u.constants=n,Sa=u,Sa}var Ea,su;function jh(){if(su)return Ea;su=1;const e=Uh(),t=Ci();function r(n,i,u=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(n,i,u)}return Object.assign(r,e),Ea=r,Ea}var Hh=jh();const Vh=Ll(Hh);let zh=e=>crypto.getRandomValues(new Uint8Array(e)),Gh=(e,t,r)=>{let n=(2<{let h="";for(;;){let v=r(i),a=i|0;for(;a--;)if(h+=e[v[a]&n]||"",h.length>=u)return h}}},Wh=(e,t=21)=>Gh(e,t|0,zh);function un(){return Wh("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",16)()}let fr=function(e){return e.Event="event",e.MatchExpression="matchExpression",e}({}),yo=function(e){return e.Inbound="inbound",e.Outbound="outbound",e}({});function uu(e){return{...$t(e),_flowDirection:yo.Inbound}}function $h(e){return{...$t(e),_flowDirection:yo.Outbound}}function $t(e){return e||(e=un()),{id:e,type:fr.Event}}function qh(...e){return{id:un(),type:fr.MatchExpression,matcher:t=>e.every(r=>r.matcher?r.matcher(t):!1)}}function lu(e,t){const r=un();let n=()=>!1;return typeof e=="string"?n=i=>Vh(e)(i.id):typeof e=="object"?"ids"in e?n=i=>e.ids.includes(i.id):"eventa"in e?n=i=>e.eventa.some(u=>u.id===i.id):"types"in e&&(n=i=>typeof i.type>"u"?!1:e.types.includes(i.type)):e instanceof RegExp?n=i=>e.test(i.id):typeof e=="function"&&(n=e),{id:r,type:fr.MatchExpression,matcher:n}}function Zh(e={}){var a;const t=new Map,r=new Map,n=new Map,i=new Map,u=new Map,h=(a=e.adapter)==null?void 0:a.call(e,v).hooks;function v(d,o,g){var s,p,b,y,_,m;const l={...d,body:o};for(const k of t.get(d.id)||[])k(l,g),(s=h==null?void 0:h.onReceived)==null||s.call(h,d.id,l);for(const k of r.get(d.id)||[])k(l,g),(p=h==null?void 0:h.onReceived)==null||p.call(h,d.id,l),(b=r.get(d.id))==null||b.delete(k);for(const k of n.values())if(k.matcher){if(!k.matcher(l))continue;for(const x of i.get(k.id)||[])x(l,g),(y=h==null?void 0:h.onReceived)==null||y.call(h,k.id,l);for(const x of u.get(k.id)||[])x(l,g),(_=h==null?void 0:h.onReceived)==null||_.call(h,k.id,l),(m=u.get(k.id))==null||m.delete(x)}h==null||h.onSent(d.id,l,g)}return{get listeners(){return t},get onceListeners(){return r},emit:v,on(d,o){var g,l;if(d.type===fr.Event){const s=d;return t.has(s.id)||t.set(s.id,new Set),(g=t.get(s.id))==null||g.add(o),()=>{var p;return(p=t.get(s.id))==null?void 0:p.delete(o)}}if(d.type===fr.MatchExpression){const s=d;return n.has(s.id)||n.set(s.id,s),i.has(s.id)||i.set(s.id,new Set),(l=i.get(s.id))==null||l.add(o),()=>{var p;return(p=i.get(s.id))==null?void 0:p.delete(o)}}return()=>{}},once(d,o){var g,l;if(d.type===fr.Event){const s=d;return r.has(s.id)||r.set(s.id,new Set),(g=r.get(s.id))==null||g.add(o),()=>{var p;return(p=r.get(s.id))==null?void 0:p.delete(o)}}if(d.type===fr.MatchExpression){const s=d;return n.has(s.id)||n.set(s.id,s),i.has(s.id)||i.set(s.id,new Set),(l=u.get(s.id))==null||l.add(o),()=>{var p;return(p=u.get(s.id))==null?void 0:p.delete(o)}}return()=>{}},off(d,o){var g,l,s,p;switch(d.type){case fr.Event:if(o!==void 0){(g=t.get(d.id))==null||g.delete(o),(l=r.get(d.id))==null||l.delete(o);break}t.delete(d.id),r.delete(d.id);break;case fr.MatchExpression:if(o!==void 0){(s=i.get(d.id))==null||s.delete(o),(p=u.get(d.id))==null||p.delete(o);break}i.delete(d.id),u.delete(d.id);break}}}}let kr=function(e){return e[e.SendEvent=0]="SendEvent",e[e.SendEventError=1]="SendEventError",e[e.ReceiveEvent=2]="ReceiveEvent",e[e.ReceiveEventError=3]="ReceiveEventError",e[e.ReceiveEventStreamEnd=4]="ReceiveEventStreamEnd",e}({});function bo(e){e||(e=un());const t={...$t(`${e}-send`),invokeType:kr.SendEvent},r={...$t(`${e}-send-error`),invokeType:kr.SendEventError},n={...$t(`${e}-receive`),invokeType:kr.ReceiveEvent},i={...$t(`${e}-receive-error`),invokeType:kr.ReceiveEventError},u={...$t(`${e}-receive-stream-end`),invokeType:kr.ReceiveEventStreamEnd};return{sendEvent:t,sendEventError:r,receiveEvent:n,receiveEventError:i,receiveEventStreamEnd:u}}function Yh(e){return typeof e!="object"?!1:"invokeType"in e}function Jh(e){return Yh(e)?e.invokeType===kr.ReceiveEvent||e.invokeType===kr.ReceiveEventError||e.invokeType===kr.ReceiveEventStreamEnd:!1}function e0(e){var t,r;return Jh(e)?typeof((t=e.body)==null?void 0:t.content)=="object"&&((r=e.body)==null?void 0:r.content)!=null&&"response"in e.body.content&&(!("invokeResponse"in e.body.content)||"invokeResponse"in e.body.content&&(typeof e.body.content.invokeResponse=="object"||typeof e.body.content.invokeResponse>"u")):!1}function Ca(e,t){const r=new Map,n=new Map;function i(u,h){return new Promise((v,a)=>{const d=un();r.set(d,v),n.set(d,a);const o=$t(`${t.receiveEvent.id}-${d}`),g=$t(`${t.receiveEventError.id}-${d}`);e.on(o,l=>{var p;if(!l.body||l.body.invokeId!==d)return;const{content:s}=l.body;(p=r.get(d))==null||p(s),r.delete(d),n.delete(d),e.off(o),e.off(g)}),e.on(g,l=>{var p;if(!l.body||l.body.invokeId!==d)return;const{error:s}=l.body.content;(p=n.get(d))==null||p(s),n.delete(d),r.delete(d),e.off(o),e.off(g)}),e.emit(t.sendEvent,{invokeId:d,content:u},h)})}return i}function t0(e,t){return{id:un(),type:e,payload:t}}function Gl(e){return typeof e=="object"&&"_workerTransfer"in e&&typeof e._workerTransfer=="boolean"&&e._workerTransfer===!0}const Aa=$t();$t();function r0(e,t){var i,u,h,v,a;let r=e.body,n;return e0(e)?(((i=e.body.content.invokeResponse)==null?void 0:i.transfer)!=null&&(n=e.body.content.invokeResponse.transfer,delete e.body.content.invokeResponse),r={...e.body,content:e.body.content.response},delete r.content.response):Gl(e)&&(n=(u=e.body)==null?void 0:u.transfer,(h=e.body)==null||delete h.transfer,r=(v=e.body)==null?void 0:v.message,(a=e.body)==null||delete a.message),typeof t<"u"&&t!=null&&typeof t=="object"&&"transfer"in t&&Array.isArray(t.transfer)&&(n=t.transfer),{body:r,transfer:n}}function cu(e){const t=Zh();return t.on(qh(lu(r=>r._flowDirection===yo.Outbound||!r._flowDirection),lu("*")),(r,n)=>{const{body:i,transfer:u}=r0(r,n),h=t0(r.id,{...$h(r.type),...r,body:i});if(u!=null){e.postMessage(h,{transfer:u});return}e.postMessage(h)}),e.onmessage=r=>{try{const{type:n,payload:i}=r.data;Gl(i)?t.emit(uu(n),{message:i.body},{raw:{message:r}}):t.emit(uu(n),i.body,{raw:{message:r}})}catch(n){console.error("Failed to parse WebWorker message:",n),t.emit(Aa,{error:n},{raw:{message:r}})}},e.onerror=r=>{t.emit(Aa,{error:r},{raw:{error:r}})},e.onmessageerror=r=>{t.emit(Aa,{error:r},{raw:{messageError:r}})},{context:t}}function Wl(e){return Iu()?(Nc(e),!0):!1}function fu(){const e=new Set,t=u=>{e.delete(u)};return{on:u=>{e.add(u);const h=()=>t(u);return Wl(h),{off:h}},off:t,trigger:(...u)=>Promise.all(Array.from(e).map(h=>h(...u))),clear:()=>{e.clear()}}}const Fa=new WeakMap,n0=(...e)=>{var t;const r=e[0],n=(t=Vt())==null?void 0:t.proxy;if(n==null&&!_l())throw new Error("injectLocal must be called in setup");return n&&Fa.has(n)&&r in Fa.get(n)?Fa.get(n)[r]:Br(...e)};function i0(e){if(!pt(e))return Kn(e);const t=new Proxy({},{get(r,n,i){return Fe(Reflect.get(e.value,n,i))},set(r,n,i){return pt(e.value[n])&&!pt(i)?e.value[n].value=i:e.value[n]=i,!0},deleteProperty(r,n){return Reflect.deleteProperty(e.value,n)},has(r,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Kn(t)}function a0(e){return i0(ot(e))}function mo(e,...t){const r=t.flat(),n=r[0];return a0(()=>Object.fromEntries(typeof n=="function"?Object.entries(an(e)).filter(([i,u])=>!n(Ft(u),i)):Object.entries(an(e)).filter(i=>!r.includes(i[0]))))}const $l=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const o0=e=>typeof e<"u",s0=Object.prototype.toString,u0=e=>s0.call(e)==="[object Object]",l0=()=>{},c0=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function ql(...e){if(e.length!==1)return tl(...e);const t=e[0];return typeof t=="function"?nn(ff(()=>({get:t,set:l0}))):it(t)}function f0(e,t){function r(...n){return new Promise((i,u)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(u)})}return r}const Zl=e=>e();function d0(e=Zl,t={}){const{initialState:r="active"}=t,n=ql(r==="active");function i(){n.value=!1}function u(){n.value=!0}const h=(...v)=>{n.value&&e(...v)};return{isActive:nn(n),pause:i,resume:u,eventFilter:h}}function du(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ka(e){return Array.isArray(e)?e:[e]}function h0(e){return Vt()}function p0(e,t,r={}){const{eventFilter:n=Zl,...i}=r;return Bt(e,f0(n,t),i)}function _0(e,t,r={}){const{eventFilter:n,initialState:i="active",...u}=r,{eventFilter:h,pause:v,resume:a,isActive:d}=d0(n,{initialState:i});return{stop:p0(e,t,{...u,eventFilter:h}),pause:v,resume:a,isActive:d}}function Yl(e,t=!0,r){h0()?Ln(e,r):t?e():Ur(e)}function v0(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=pt(e),u=Dr(e);function h(v){if(arguments.length)return u.value=v,u.value;{const a=Ft(r);return u.value=u.value===a?Ft(n):a,u.value}}return i?h:[u,h]}function g0(e,t,r){return Bt(e,t,{...r,immediate:!0})}const on=$l?window:void 0,y0=$l?window.document:void 0;function xo(e){var t;const r=Ft(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Ha(...e){const t=[],r=()=>{t.forEach(v=>v()),t.length=0},n=(v,a,d,o)=>(v.addEventListener(a,d,o),()=>v.removeEventListener(a,d,o)),i=ot(()=>{const v=Ka(Ft(e[0])).filter(a=>a!=null);return v.every(a=>typeof a!="string")?v:void 0}),u=g0(()=>{var v,a;return[(a=(v=i.value)==null?void 0:v.map(d=>xo(d)))!=null?a:[on].filter(d=>d!=null),Ka(Ft(i.value?e[1]:e[0])),Ka(Fe(i.value?e[2]:e[1])),Ft(i.value?e[3]:e[2])]},([v,a,d,o])=>{if(r(),!(v!=null&&v.length)||!(a!=null&&a.length)||!(d!=null&&d.length))return;const g=u0(o)?{...o}:o;t.push(...v.flatMap(l=>a.flatMap(s=>d.map(p=>n(l,s,p,g)))))},{flush:"post"}),h=()=>{u(),r()};return Wl(r),h}function b0(){const e=Dr(!1),t=Vt();return t&&Ln(()=>{e.value=!0},t),e}function m0(e){const t=b0();return ot(()=>(t.value,!!e()))}const x0=Symbol("vueuse-ssr-width");function w0(){const e=_l()?n0(x0,null):null;return typeof e=="number"?e:void 0}function k0(e,t={}){const{window:r=on,ssrWidth:n=w0()}=t,i=m0(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),u=Dr(typeof n=="number"),h=Dr(),v=Dr(!1),a=d=>{v.value=d.matches};return po(()=>{if(u.value){u.value=!i.value;const d=Ft(e).split(",");v.value=d.some(o=>{const g=o.includes("not all"),l=o.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),s=o.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(l||s);return l&&p&&(p=n>=du(l[1])),s&&p&&(p=n<=du(s[1])),g?!p:p});return}i.value&&(h.value=r.matchMedia(Ft(e)),v.value=h.value.matches)}),Ha(h,"change",a,{passive:!0}),ot(()=>v.value)}function S0(e){return JSON.parse(JSON.stringify(e))}const zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gn="__vueuse_ssr_handlers__",E0=C0();function C0(){return Gn in zn||(zn[Gn]=zn[Gn]||{}),zn[Gn]}function Jl(e,t){return E0[e]||t}function A0(e){return k0("(prefers-color-scheme: dark)",e)}function F0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const K0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},hu="vueuse-storage";function ec(e,t,r,n={}){var i;const{flush:u="pre",deep:h=!0,listenToStorageChanges:v=!0,writeDefaults:a=!0,mergeDefaults:d=!1,shallow:o,window:g=on,eventFilter:l,onError:s=q=>{console.error(q)},initOnMounted:p}=n,b=(o?Dr:it)(typeof t=="function"?t():t),y=ot(()=>Ft(e));if(!r)try{r=Jl("getDefaultStorage",()=>{var q;return(q=on)==null?void 0:q.localStorage})()}catch(q){s(q)}if(!r)return b;const _=Ft(t),m=F0(_),k=(i=n.serializer)!=null?i:K0[m],{pause:x,resume:E}=_0(b,q=>O(q),{flush:u,deep:h,eventFilter:l});Bt(y,()=>z(),{flush:u});let S=!1;const A=q=>{p&&!S||z(q)},F=q=>{p&&!S||W(q)};g&&v&&(r instanceof Storage?Ha(g,"storage",A,{passive:!0}):Ha(g,hu,F)),p?Yl(()=>{S=!0,z()}):z();function M(q,ae){if(g){const de={key:y.value,oldValue:q,newValue:ae,storageArea:r};g.dispatchEvent(r instanceof Storage?new StorageEvent("storage",de):new CustomEvent(hu,{detail:de}))}}function O(q){try{const ae=r.getItem(y.value);if(q==null)M(ae,null),r.removeItem(y.value);else{const de=k.write(q);ae!==de&&(r.setItem(y.value,de),M(ae,de))}}catch(ae){s(ae)}}function H(q){const ae=q?q.newValue:r.getItem(y.value);if(ae==null)return a&&_!=null&&r.setItem(y.value,k.write(_)),_;if(!q&&d){const de=k.read(ae);return typeof d=="function"?d(de,_):m==="object"&&!Array.isArray(de)?{..._,...de}:de}else return typeof ae!="string"?ae:k.read(ae)}function z(q){if(!(q&&q.storageArea!==r)){if(q&&q.key==null){b.value=_;return}if(!(q&&q.key!==y.value)){x();try{const ae=k.write(b.value);(q===void 0||(q==null?void 0:q.newValue)!==ae)&&(b.value=H(q))}catch(ae){s(ae)}finally{q?Ur(E):E()}}}}function W(q){z(q.detail)}return b}const R0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function X0(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=on,storage:u,storageKey:h="vueuse-color-scheme",listenToStorageChanges:v=!0,storageRef:a,emitAuto:d,disableTransition:o=!0}=e,g={auto:"",light:"light",dark:"dark",...e.modes||{}},l=A0({window:i}),s=ot(()=>l.value?"dark":"light"),p=a||(h==null?ql(n):ec(h,n,u,{window:i,listenToStorageChanges:v})),b=ot(()=>p.value==="auto"?s.value:p.value),y=Jl("updateHTMLAttrs",(x,E,S)=>{const A=typeof x=="string"?i==null?void 0:i.document.querySelector(x):xo(x);if(!A)return;const F=new Set,M=new Set;let O=null;if(E==="class"){const z=S.split(/\s/g);Object.values(g).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{z.includes(W)?F.add(W):M.add(W)})}else O={key:E,value:S};if(F.size===0&&M.size===0&&O===null)return;let H;o&&(H=i.document.createElement("style"),H.appendChild(document.createTextNode(R0)),i.document.head.appendChild(H));for(const z of F)A.classList.add(z);for(const z of M)A.classList.remove(z);O&&A.setAttribute(O.key,O.value),o&&(i.getComputedStyle(H).opacity,document.head.removeChild(H))});function _(x){var E;y(t,r,(E=g[x])!=null?E:x)}function m(x){e.onChanged?e.onChanged(x,_):_(x)}Bt(b,m,{flush:"post",immediate:!0}),Yl(()=>m(b.value));const k=ot({get(){return d?p.value:b.value},set(x){p.value=x}});return Object.assign(k,{store:p,system:s,state:b})}function T0(e={}){const{valueDark:t="dark",valueLight:r=""}=e,n=X0({...e,onChanged:(h,v)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,h==="dark",v,h):v(h)},modes:{dark:t,light:r}}),i=ot(()=>n.system.value);return ot({get(){return n.value==="dark"},set(h){const v=h?"dark":"light";i.value===v?n.value="auto":n.value=v}})}const P0={multiple:!0,accept:"*",reset:!1,directory:!1};function M0(e){if(!e)return null;if(e instanceof FileList)return e;const t=new DataTransfer;for(const r of e)t.items.add(r);return t.files}function L0(e={}){const{document:t=y0}=e,r=it(M0(e.initialFiles)),{on:n,trigger:i}=fu(),{on:u,trigger:h}=fu(),v=ot(()=>{var g;const l=(g=xo(e.input))!=null?g:t?t.createElement("input"):void 0;return l&&(l.type="file",l.onchange=s=>{const p=s.target;r.value=p.files,i(r.value)},l.oncancel=()=>{h()}),l}),a=()=>{r.value=null,v.value&&v.value.value&&(v.value.value="",i(null))},d=g=>{const l=v.value;l&&(l.multiple=Ft(g.multiple),l.accept=Ft(g.accept),l.webkitdirectory=Ft(g.directory),c0(g,"capture")&&(l.capture=Ft(g.capture)))},o=g=>{const l=v.value;if(!l)return;const s={...P0,...e,...g};d(s),Ft(s.reset)&&a(),l.click()};return po(()=>{d(e)}),{files:nn(r),open:o,reset:a,onCancel:u,onChange:n}}function pu(e,t,r={}){const{window:n=on}=r;return ec(e,t,n==null?void 0:n.localStorage,r)}function O0(e,t,r,n={}){var i,u,h;const{clone:v=!1,passive:a=!1,eventName:d,deep:o=!1,defaultValue:g,shouldEmit:l}=n,s=Vt(),p=r||(s==null?void 0:s.emit)||((i=s==null?void 0:s.$emit)==null?void 0:i.bind(s))||((h=(u=s==null?void 0:s.proxy)==null?void 0:u.$emit)==null?void 0:h.bind(s==null?void 0:s.proxy));let b=d;b=b||`update:${t.toString()}`;const y=k=>v?typeof v=="function"?v(k):S0(k):k,_=()=>o0(e[t])?y(e[t]):g,m=k=>{l?l(k)&&p(b,k):p(b,k)};if(a){const k=_(),x=it(k);let E=!1;return Bt(()=>e[t],S=>{E||(E=!0,x.value=y(S),Ur(()=>E=!1))}),Bt(x,S=>{!E&&(S!==e[t]||o)&&m(S)},{deep:o}),x}else return ot({get(){return _()},set(k){m(k)}})}let Va=1;var D0=class{constructor(){Ct(this,"subscribers");Ct(this,"toasts");Ct(this,"dismissedToasts");Ct(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}));Ct(this,"publish",e=>{this.subscribers.forEach(t=>t(e))});Ct(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]});Ct(this,"create",e=>{var h;const{message:t,...r}=e,n=typeof e.id=="number"||e.id&&((h=e.id)==null?void 0:h.length)>0?e.id:Va++,i=this.toasts.find(v=>v.id===n),u=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),i?this.toasts=this.toasts.map(v=>v.id===n?(this.publish({...v,...e,id:n,title:t}),{...v,...e,id:n,dismissible:u,title:t}):v):this.addToast({title:t,...r,dismissible:u,id:n}),n});Ct(this,"dismiss",e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),e));Ct(this,"message",(e,t)=>this.create({...t,message:e,type:"default"}));Ct(this,"error",(e,t)=>this.create({...t,type:"error",message:e}));Ct(this,"success",(e,t)=>this.create({...t,type:"success",message:e}));Ct(this,"info",(e,t)=>this.create({...t,type:"info",message:e}));Ct(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e}));Ct(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e}));Ct(this,"promise",(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));const n=Promise.resolve(e instanceof Function?e():e);let i=r!==void 0,u;const h=n.then(async a=>{if(u=["resolve",a],nr(a))i=!1,this.create({id:r,type:"default",message:a});else if(B0(a)&&!a.ok){i=!1;const o=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,g=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description,s=typeof o=="object"&&!nr(o)?o:{message:o||"",id:r||""};this.create({id:r,type:"error",description:g,...s})}else if(a instanceof Error){i=!1;const o=typeof t.error=="function"?await t.error(a):t.error,g=typeof t.description=="function"?await t.description(a):t.description,s=typeof o=="object"&&!nr(o)?o:{message:o||"",id:r||""};this.create({id:r,type:"error",description:g,...s})}else if(t.success!==void 0){i=!1;const o=typeof t.success=="function"?await t.success(a):t.success,g=typeof t.description=="function"?await t.description(a):t.description,s=typeof o=="object"&&!nr(o)?o:{message:o||"",id:r||""};this.create({id:r,type:"success",description:g,...s})}}).catch(async a=>{if(u=["reject",a],t.error!==void 0){i=!1;const d=typeof t.error=="function"?await t.error(a):t.error,o=typeof t.description=="function"?await t.description(a):t.description,l=typeof d=="object"&&!nr(d)?d:{message:d||"",id:r||""};this.create({id:r,type:"error",description:o,...l})}}).finally(()=>{var a;i&&(this.dismiss(r),r=void 0),(a=t.finally)==null||a.call(t)}),v=()=>new Promise((a,d)=>h.then(()=>u[0]==="reject"?d(u[1]):a(u[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:v}:Object.assign(r,{unwrap:v})});Ct(this,"custom",(e,t)=>{const r=(t==null?void 0:t.id)||Va++,n=this.toasts.find(u=>u.id===r),i=(t==null?void 0:t.dismissible)===void 0?!0:t.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),n?this.toasts=this.toasts.map(u=>u.id===r?(this.publish({...u,component:e,dismissible:i,id:r,...t}),{...u,component:e,dismissible:i,id:r,...t}):u):this.addToast({component:e,dismissible:i,id:r,...t}),r});Ct(this,"getActiveToasts",()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)));this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}};const Wt=new D0;function I0(e,t){const r=(t==null?void 0:t.id)||Va++;return Wt.create({message:e,id:r,type:"default",...t}),r}const B0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",N0=I0,Q0=()=>Wt.toasts,U0=()=>Wt.getActiveToasts(),Wn=Object.assign(N0,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:Q0,getToasts:U0});function tc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,vu=rc,j0=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return vu(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=t,h=Object.keys(i).map(d=>{const o=r==null?void 0:r[d],g=u==null?void 0:u[d];if(o===null)return null;const l=_u(o)||_u(g);return i[d][l]}),v=r&&Object.entries(r).reduce((d,o)=>{let[g,l]=o;return l===void 0||(d[g]=l),d},{}),a=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,o)=>{let{class:g,className:l,...s}=o;return Object.entries(s).every(p=>{let[b,y]=p;return Array.isArray(y)?y.includes({...u,...v}[b]):{...u,...v}[b]===y})?[...d,g,l]:d},[]);return vu(e,h,a,r==null?void 0:r.class,r==null?void 0:r.className)};function wo(e,t){const r=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(r);return[h=>{const v=Br(n,h);if(v||v===null)return v;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},h=>(co(n,h),h)]}function gu(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ko(e){return e?e.flatMap(t=>t.type===jt?ko(t.children):[t]):[]}const[H0,T_]=wo("ConfigProvider"),nc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const V0=e=>typeof e<"u",z0=nc?window:void 0;function So(e){var t;const r=Ft(e);return(t=r==null?void 0:r.$el)!=null?t:r}function G0(e){return JSON.parse(JSON.stringify(e))}function ic(e,t,r,n={}){var i,u,h;const{clone:v=!1,passive:a=!1,eventName:d,deep:o=!1,defaultValue:g,shouldEmit:l}=n,s=Vt(),p=r||(s==null?void 0:s.emit)||((i=s==null?void 0:s.$emit)==null?void 0:i.bind(s))||((h=(u=s==null?void 0:s.proxy)==null?void 0:u.$emit)==null?void 0:h.bind(s==null?void 0:s.proxy));let b=d;t||(t="modelValue"),b=b||`update:${t.toString()}`;const y=k=>v?typeof v=="function"?v(k):G0(k):k,_=()=>V0(e[t])?y(e[t]):g,m=k=>{l?l(k)&&p(b,k):p(b,k)};if(a){const k=_(),x=it(k);let E=!1;return Bt(()=>e[t],S=>{E||(E=!0,x.value=y(S),Ur(()=>E=!1))}),Bt(x,S=>{!E&&(S!==e[t]||o)&&m(S)},{deep:o}),x}else return ot({get(){return _()},set(k){m(k)}})}function ac(e){const t=H0({dir:it("ltr")});return ot(()=>{var r;return(e==null?void 0:e.value)||((r=t.dir)==null?void 0:r.value)||"ltr"})}function W0(e){const t=Vt(),r=t==null?void 0:t.type.emits,n={};return r!=null&&r.length||console.warn(`No emitted event found. Please check component: ${t==null?void 0:t.type.__name}`),r==null||r.forEach(i=>{n[ei(ar(i))]=(...u)=>e(i,...u)}),n}function Ai(){const e=Vt(),t=it(),r=ot(()=>{var h,v;return["#text","#comment"].includes((h=t.value)==null?void 0:h.$el.nodeName)?(v=t.value)==null?void 0:v.$el.nextElementSibling:So(t)}),n=Object.assign({},e.exposed),i={};for(const h in e.props)Object.defineProperty(i,h,{enumerable:!0,configurable:!0,get:()=>e.props[h]});if(Object.keys(n).length>0)for(const h in n)Object.defineProperty(i,h,{enumerable:!0,configurable:!0,get:()=>n[h]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=i;function u(h){t.value=h,h&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>h instanceof Element?h:h.$el}),e.exposed=i)}return{forwardRef:u,currentRef:t,currentElement:r}}function oc(e){const t=Vt(),r=Object.keys((t==null?void 0:t.type.props)??{}).reduce((i,u)=>{const h=(t==null?void 0:t.type.props[u]).default;return h!==void 0&&(i[u]=h),i},{}),n=tl(e);return ot(()=>{const i={},u=(t==null?void 0:t.vnode.props)??{};return Object.keys(u).forEach(h=>{i[ar(h)]=u[h]}),Object.keys({...r,...i}).reduce((h,v)=>(n.value[v]!==void 0&&(h[v]=n.value[v]),h),{})})}function $0(e,t){const r=oc(e),n=t?W0(t):{};return ot(()=>({...r.value,...n}))}function sc(e,t="reka"){return`${t}-${Li==null?void 0:Li()}`}function q0(e,t){const r=it(e);function n(u){return t[r.value][u]??r.value}return{state:r,dispatch:u=>{r.value=n(u)}}}function Z0(e,t){var y;const r=it({}),n=it("none"),i=it(e),u=e.value?"mounted":"unmounted";let h;const v=((y=t.value)==null?void 0:y.ownerDocument.defaultView)??z0,{state:a,dispatch:d}=q0(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),o=_=>{var m;if(nc){const k=new CustomEvent(_,{bubbles:!1,cancelable:!1});(m=t.value)==null||m.dispatchEvent(k)}};Bt(e,async(_,m)=>{var x;const k=m!==_;if(await Ur(),k){const E=n.value,S=$n(t.value);_?(d("MOUNT"),o("enter"),S==="none"&&o("after-enter")):S==="none"||S==="undefined"||((x=r.value)==null?void 0:x.display)==="none"?(d("UNMOUNT"),o("leave"),o("after-leave")):m&&E!==S?(d("ANIMATION_OUT"),o("leave")):(d("UNMOUNT"),o("after-leave"))}},{immediate:!0});const g=_=>{const m=$n(t.value),k=m.includes(CSS.escape(_.animationName)),x=a.value==="mounted"?"enter":"leave";if(_.target===t.value&&k&&(o(`after-${x}`),d("ANIMATION_END"),!i.value)){const E=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",h=v==null?void 0:v.setTimeout(()=>{var S;((S=t.value)==null?void 0:S.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=E)})}_.target===t.value&&m==="none"&&d("ANIMATION_END")},l=_=>{_.target===t.value&&(n.value=$n(t.value))},s=Bt(t,(_,m)=>{_?(r.value=getComputedStyle(_),_.addEventListener("animationstart",l),_.addEventListener("animationcancel",g),_.addEventListener("animationend",g)):(d("ANIMATION_END"),h!==void 0&&(v==null||v.clearTimeout(h)),m==null||m.removeEventListener("animationstart",l),m==null||m.removeEventListener("animationcancel",g),m==null||m.removeEventListener("animationend",g))},{immediate:!0}),p=Bt(a,()=>{const _=$n(t.value);n.value=a.value==="mounted"?_:"none"});return On(()=>{s(),p()}),{isPresent:ot(()=>["mounted","unmountSuspended"].includes(a.value))}}function $n(e){return e&&getComputedStyle(e).animationName||"none"}var Y0=At({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){var d;const{present:n,forceMount:i}=an(e),u=it(),{isPresent:h}=Z0(n,u);r({present:h});let v=t.default({present:h.value});v=ko(v||[]);const a=Vt();if(v&&(v==null?void 0:v.length)>1){const o=(d=a==null?void 0:a.parent)!=null&&d.type.name?`<${a.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${o}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(g=>` - ${g}`).join(` +`)].join(` +`))}return()=>i.value||n.value||h.value?rn(t.default({present:h.value})[0],{ref:o=>{const g=So(o);return typeof(g==null?void 0:g.hasAttribute)>"u"||(g!=null&&g.hasAttribute("data-reka-popper-content-wrapper")?u.value=g.firstElementChild:u.value=g),g}}):null}});const za=At({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:r}){return()=>{var a;if(!r.default)return null;const n=ko(r.default()),i=n.findIndex(d=>d.type!==sr);if(i===-1)return n;const u=n[i];(a=u.props)==null||delete a.ref;const h=u.props?Dn(t,u.props):t,v=Qr({...u,props:{}},h);return n.length===1?v:(n[i]=v,n)}}}),J0=["area","img","input"],jr=At({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:r}){const n=e.asChild?"template":e.as;return typeof n=="string"&&J0.includes(n)?()=>rn(n,t):n!=="template"?()=>rn(e.as,t,{default:r.default}):()=>rn(za,t,{default:r.default})}});function yu(){const e=it(),t=ot(()=>{var r,n;return["#text","#comment"].includes((r=e.value)==null?void 0:r.$el.nodeName)?(n=e.value)==null?void 0:n.$el.nextElementSibling:So(e)});return{primitiveElement:e,currentElement:t}}const bu="data-reka-collection-item";function uc(e={}){const{key:t="",isProvider:r=!1}=e,n=`${t}CollectionProvider`;let i;if(r){const o=it(new Map);i={collectionRef:it(),itemMap:o},co(n,i)}else i=Br(n);const u=(o=!1)=>{const g=i.collectionRef.value;if(!g)return[];const l=Array.from(g.querySelectorAll(`[${bu}]`)),p=Array.from(i.itemMap.value.values()).sort((b,y)=>l.indexOf(b.ref)-l.indexOf(y.ref));return o?p:p.filter(b=>b.ref.dataset.disabled!=="")},h=At({name:"CollectionSlot",setup(o,{slots:g}){const{primitiveElement:l,currentElement:s}=yu();return Bt(s,()=>{i.collectionRef.value=s.value}),()=>rn(za,{ref:l},g)}}),v=At({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(o,{slots:g,attrs:l}){const{primitiveElement:s,currentElement:p}=yu();return po(b=>{if(p.value){const y=so(p.value);i.itemMap.value.set(y,{ref:p.value,value:o.value}),b(()=>i.itemMap.value.delete(y))}}),()=>rn(za,{...l,[bu]:"",ref:s},g)}}),a=ot(()=>Array.from(i.itemMap.value.values())),d=ot(()=>i.itemMap.value.size);return{getItems:u,reactiveItems:a,itemMapSize:d,CollectionSlot:h,CollectionItem:v}}const ep="rovingFocusGroup.onEntryFocus",tp={bubbles:!1,cancelable:!0},rp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function np(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ip(e,t,r){const n=np(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return rp[n]}function lc(e,t=!1){const r=gu();for(const n of e)if(n===r||(n.focus({preventScroll:t}),gu()!==r))return}function ap(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const[op,sp]=wo("RovingFocusGroup");var up=At({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:r}){const n=e,i=r,{loop:u,orientation:h,dir:v}=an(n),a=ac(v),d=ic(n,"currentTabStopId",i,{defaultValue:n.defaultCurrentTabStopId,passive:n.currentTabStopId===void 0}),o=it(!1),g=it(!1),l=it(0),{getItems:s,CollectionSlot:p}=uc({isProvider:!0});function b(_){const m=!g.value;if(_.currentTarget&&_.target===_.currentTarget&&m&&!o.value){const k=new CustomEvent(ep,tp);if(_.currentTarget.dispatchEvent(k),i("entryFocus",k),!k.defaultPrevented){const x=s().map(M=>M.ref).filter(M=>M.dataset.disabled!==""),E=x.find(M=>M.getAttribute("data-active")===""),S=x.find(M=>M.getAttribute("data-highlighted")===""),A=x.find(M=>M.id===d.value),F=[E,S,A,...x].filter(Boolean);lc(F,n.preventScrollOnEntryFocus)}}g.value=!1}function y(){setTimeout(()=>{g.value=!1},1)}return t({getItems:s}),sp({loop:u,dir:a,orientation:h,currentTabStopId:d,onItemFocus:_=>{d.value=_},onItemShiftTab:()=>{o.value=!0},onFocusableItemAdd:()=>{l.value++},onFocusableItemRemove:()=>{l.value--}}),(_,m)=>(ft(),Kt(Fe(p),null,{default:nt(()=>[rt(Fe(jr),{tabindex:o.value||l.value===0?-1:0,"data-orientation":Fe(h),as:_.as,"as-child":_.asChild,dir:Fe(a),style:{outline:"none"},onMousedown:m[0]||(m[0]=k=>g.value=!0),onMouseup:y,onFocus:b,onBlur:m[1]||(m[1]=k=>o.value=!1)},{default:nt(()=>[Yt(_.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),lp=up,cp=At({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,r=op(),n=sc(),i=ot(()=>t.tabStopId||n),u=ot(()=>r.currentTabStopId.value===i.value),{getItems:h,CollectionItem:v}=uc();Ln(()=>{t.focusable&&r.onFocusableItemAdd()}),On(()=>{t.focusable&&r.onFocusableItemRemove()});function a(d){if(d.key==="Tab"&&d.shiftKey){r.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const o=ip(d,r.orientation.value,r.dir.value);if(o!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let g=[...h().map(l=>l.ref).filter(l=>l.dataset.disabled!=="")];if(o==="last")g.reverse();else if(o==="prev"||o==="next"){o==="prev"&&g.reverse();const l=g.indexOf(d.currentTarget);g=r.loop.value?ap(g,l+1):g.slice(l+1)}Ur(()=>lc(g))}}return(d,o)=>(ft(),Kt(Fe(v),null,{default:nt(()=>[rt(Fe(jr),{tabindex:u.value?0:-1,"data-orientation":Fe(r).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:o[0]||(o[0]=g=>{d.focusable?Fe(r).onItemFocus(i.value):g.preventDefault()}),onFocus:o[1]||(o[1]=g=>Fe(r).onItemFocus(i.value)),onKeydown:a},{default:nt(()=>[Yt(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),fp=cp;const[Eo,dp]=wo("TabsRoot");var hp=At({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,{orientation:i,unmountOnHide:u,dir:h}=an(r),v=ac(h);Ai();const a=ic(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0}),d=it();return dp({modelValue:a,changeModelValue:o=>{a.value=o},orientation:i,dir:v,unmountOnHide:u,activationMode:r.activationMode,baseId:sc(void 0,"reka-tabs"),tabsList:d}),(o,g)=>(ft(),Kt(Fe(jr),{dir:Fe(v),"data-orientation":Fe(i),"as-child":o.asChild,as:o.as},{default:nt(()=>[Yt(o.$slots,"default",{modelValue:Fe(a)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),pp=hp;function cc(e,t){return`${e}-trigger-${t}`}function fc(e,t){return`${e}-content-${t}`}var _p=At({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:r}=Ai(),n=Eo(),i=ot(()=>cc(n.baseId,t.value)),u=ot(()=>fc(n.baseId,t.value)),h=ot(()=>t.value===n.modelValue.value),v=it(h.value);return Ln(()=>{requestAnimationFrame(()=>{v.value=!1})}),(a,d)=>(ft(),Kt(Fe(Y0),{present:a.forceMount||h.value,"force-mount":""},{default:nt(({present:o})=>[rt(Fe(jr),{id:u.value,ref:Fe(r),"as-child":a.asChild,as:a.as,role:"tabpanel","data-state":h.value?"active":"inactive","data-orientation":Fe(n).orientation.value,"aria-labelledby":i.value,hidden:!o,tabindex:"0",style:Pn({animationDuration:v.value?"0s":void 0})},{default:nt(()=>[!Fe(n).unmountOnHide.value||o?Yt(a.$slots,"default",{key:0}):bn("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),vp=_p,gp=At({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:r}=an(t),{forwardRef:n,currentElement:i}=Ai(),u=Eo();return u.tabsList=i,(h,v)=>(ft(),Kt(Fe(lp),{"as-child":"",orientation:Fe(u).orientation.value,dir:Fe(u).dir.value,loop:Fe(r)},{default:nt(()=>[rt(Fe(jr),{ref:Fe(n),role:"tablist","as-child":h.asChild,as:h.as,"aria-orientation":Fe(u).orientation.value},{default:nt(()=>[Yt(h.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),yp=gp,bp=At({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:r}=Ai(),n=Eo(),i=ot(()=>cc(n.baseId,t.value)),u=ot(()=>fc(n.baseId,t.value)),h=ot(()=>t.value===n.modelValue.value);return(v,a)=>(ft(),Kt(Fe(fp),{"as-child":"",focusable:!v.disabled,active:h.value},{default:nt(()=>[rt(Fe(jr),{id:i.value,ref:Fe(r),role:"tab",type:v.as==="button"?"button":void 0,as:v.as,"as-child":v.asChild,"aria-selected":h.value?"true":"false","aria-controls":u.value,"data-state":h.value?"active":"inactive",disabled:v.disabled,"data-disabled":v.disabled?"":void 0,"data-orientation":Fe(n).orientation.value,onMousedown:a[0]||(a[0]=zd(d=>{!v.disabled&&d.ctrlKey===!1?Fe(n).changeModelValue(v.value):d.preventDefault()},["left"])),onKeydown:a[1]||(a[1]=Wd(d=>Fe(n).changeModelValue(v.value),["enter","space"])),onFocus:a[2]||(a[2]=()=>{const d=Fe(n).activationMode!=="manual";!h.value&&!v.disabled&&d&&Fe(n).changeModelValue(v.value)})},{default:nt(()=>[Yt(v.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),mp=bp;const Co="-",xp=e=>{const t=kp(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:h=>{const v=h.split(Co);return v[0]===""&&v.length!==1&&v.shift(),dc(v,t)||wp(h)},getConflictingClassGroupIds:(h,v)=>{const a=r[h]||[];return v&&n[h]?[...a,...n[h]]:a}}},dc=(e,t)=>{var h;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?dc(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const u=e.join(Co);return(h=t.validators.find(({validator:v})=>v(u)))==null?void 0:h.classGroupId},mu=/^\[(.+)\]$/,wp=e=>{if(mu.test(e)){const t=mu.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kp=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const i in r)Ga(r[i],n,i,t);return n},Ga=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const u=i===""?t:xu(t,i);u.classGroupId=r;return}if(typeof i=="function"){if(Sp(i)){Ga(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,h])=>{Ga(h,xu(t,u),r,n)})})},xu=(e,t)=>{let r=e;return t.split(Co).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Sp=e=>e.isThemeGetter,Ep=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(u,h)=>{r.set(u,h),t++,t>e&&(t=0,n=r,r=new Map)};return{get(u){let h=r.get(u);if(h!==void 0)return h;if((h=n.get(u))!==void 0)return i(u,h),h},set(u,h){r.has(u)?r.set(u,h):i(u,h)}}},Wa="!",$a=":",Cp=$a.length,Ap=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const u=[];let h=0,v=0,a=0,d;for(let p=0;pa?d-a:void 0;return{modifiers:u,hasImportantModifier:l,baseClassName:g,maybePostfixModifierPosition:s}};if(t){const i=t+$a,u=n;n=h=>h.startsWith(i)?u(h.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=u=>r({className:u,parseClassName:i})}return n},Fp=e=>e.endsWith(Wa)?e.substring(0,e.length-1):e.startsWith(Wa)?e.substring(1):e,Kp=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const i=[];let u=[];return n.forEach(h=>{h[0]==="["||t[h]?(i.push(...u.sort(),h),u=[]):u.push(h)}),i.push(...u.sort()),i}},Rp=e=>({cache:Ep(e.cacheSize),parseClassName:Ap(e),sortModifiers:Kp(e),...xp(e)}),Xp=/\s+/,Tp=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:u}=t,h=[],v=e.trim().split(Xp);let a="";for(let d=v.length-1;d>=0;d-=1){const o=v[d],{isExternal:g,modifiers:l,hasImportantModifier:s,baseClassName:p,maybePostfixModifierPosition:b}=r(o);if(g){a=o+(a.length>0?" "+a:a);continue}let y=!!b,_=n(y?p.substring(0,b):p);if(!_){if(!y){a=o+(a.length>0?" "+a:a);continue}if(_=n(p),!_){a=o+(a.length>0?" "+a:a);continue}y=!1}const m=u(l).join(":"),k=s?m+Wa:m,x=k+_;if(h.includes(x))continue;h.push(x);const E=i(_,y);for(let S=0;S0?" "+a:a)}return a};function Pp(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;ng(o),e());return r=Rp(d),n=r.cache.get,i=r.cache.set,u=v,v(a)}function v(a){const d=n(a);if(d)return d;const o=Tp(a,r);return i(a,o),o}return function(){return u(Pp.apply(null,arguments))}}const St=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},pc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_c=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lp=/^\d+\/\d+$/,Op=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ip=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Bp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Np=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=e=>Lp.test(e),Ze=e=>!!e&&!Number.isNaN(Number(e)),mr=e=>!!e&&Number.isInteger(Number(e)),Ra=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),lr=e=>Op.test(e),Qp=()=>!0,Up=e=>Dp.test(e)&&!Ip.test(e),vc=()=>!1,jp=e=>Bp.test(e),Hp=e=>Np.test(e),Vp=e=>!Oe(e)&&!De(e),zp=e=>ln(e,bc,vc),Oe=e=>pc.test(e),Mr=e=>ln(e,mc,Up),Xa=e=>ln(e,Zp,Ze),wu=e=>ln(e,gc,vc),Gp=e=>ln(e,yc,Hp),qn=e=>ln(e,xc,jp),De=e=>_c.test(e),gn=e=>cn(e,mc),Wp=e=>cn(e,Yp),ku=e=>cn(e,gc),$p=e=>cn(e,bc),qp=e=>cn(e,yc),Zn=e=>cn(e,xc,!0),ln=(e,t,r)=>{const n=pc.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},cn=(e,t,r=!1)=>{const n=_c.exec(e);return n?n[1]?t(n[1]):r:!1},gc=e=>e==="position"||e==="percentage",yc=e=>e==="image"||e==="url",bc=e=>e==="length"||e==="size"||e==="bg-size",mc=e=>e==="length",Zp=e=>e==="number",Yp=e=>e==="family-name",xc=e=>e==="shadow",Jp=()=>{const e=St("color"),t=St("font"),r=St("text"),n=St("font-weight"),i=St("tracking"),u=St("leading"),h=St("breakpoint"),v=St("container"),a=St("spacing"),d=St("radius"),o=St("shadow"),g=St("inset-shadow"),l=St("text-shadow"),s=St("drop-shadow"),p=St("blur"),b=St("perspective"),y=St("aspect"),_=St("ease"),m=St("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...x(),De,Oe],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],F=()=>[De,Oe,a],M=()=>[Wr,"full","auto",...F()],O=()=>[mr,"none","subgrid",De,Oe],H=()=>["auto",{span:["full",mr,De,Oe]},mr,De,Oe],z=()=>[mr,"auto",De,Oe],W=()=>["auto","min","max","fr",De,Oe],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],de=()=>["auto",...F()],pe=()=>[Wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],oe=()=>[e,De,Oe],ge=()=>[...x(),ku,wu,{position:[De,Oe]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",$p,zp,{size:[De,Oe]}],we=()=>[Ra,gn,Mr],ke=()=>["","none","full",d,De,Oe],Y=()=>["",Ze,gn,Mr],Q=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[Ze,Ra,ku,wu],ee=()=>["","none",p,De,Oe],J=()=>["none",Ze,De,Oe],ne=()=>["none",Ze,De,Oe],ve=()=>[Ze,De,Oe],P=()=>[Wr,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[lr],breakpoint:[lr],color:[Qp],container:[lr],"drop-shadow":[lr],ease:["in","out","in-out"],font:[Vp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[lr],shadow:[lr],spacing:["px",Ze],text:[lr],"text-shadow":[lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wr,Oe,De,y]}],container:["container"],columns:[{columns:[Ze,Oe,De,v]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[mr,"auto",De,Oe]}],basis:[{basis:[Wr,"full","auto",v,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ze,Wr,"auto","initial","none",Oe]}],grow:[{grow:["",Ze,De,Oe]}],shrink:[{shrink:["",Ze,De,Oe]}],order:[{order:[mr,"first","last","none",De,Oe]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:de()}],mx:[{mx:de()}],my:[{my:de()}],ms:[{ms:de()}],me:[{me:de()}],mt:[{mt:de()}],mr:[{mr:de()}],mb:[{mb:de()}],ml:[{ml:de()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:pe()}],w:[{w:[v,"screen",...pe()]}],"min-w":[{"min-w":[v,"screen","none",...pe()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...pe()]}],h:[{h:["screen","lh",...pe()]}],"min-h":[{"min-h":["screen","lh","none",...pe()]}],"max-h":[{"max-h":["screen","lh",...pe()]}],"font-size":[{text:["base",r,gn,Mr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,De,Xa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ra,Oe]}],"font-family":[{font:[Wp,Oe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,De,Oe]}],"line-clamp":[{"line-clamp":[Ze,"none",De,Xa]}],leading:[{leading:[u,...F()]}],"list-image":[{"list-image":["none",De,Oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:oe()}],"text-color":[{text:oe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ze,"from-font","auto",De,Mr]}],"text-decoration-color":[{decoration:oe()}],"underline-offset":[{"underline-offset":[Ze,"auto",De,Oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",De,Oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mr,De,Oe],radial:["",De,Oe],conic:[mr,De,Oe]},qp,Gp]}],"bg-color":[{bg:oe()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:oe()}],"gradient-via":[{via:oe()}],"gradient-to":[{to:oe()}],rounded:[{rounded:ke()}],"rounded-s":[{"rounded-s":ke()}],"rounded-e":[{"rounded-e":ke()}],"rounded-t":[{"rounded-t":ke()}],"rounded-r":[{"rounded-r":ke()}],"rounded-b":[{"rounded-b":ke()}],"rounded-l":[{"rounded-l":ke()}],"rounded-ss":[{"rounded-ss":ke()}],"rounded-se":[{"rounded-se":ke()}],"rounded-ee":[{"rounded-ee":ke()}],"rounded-es":[{"rounded-es":ke()}],"rounded-tl":[{"rounded-tl":ke()}],"rounded-tr":[{"rounded-tr":ke()}],"rounded-br":[{"rounded-br":ke()}],"rounded-bl":[{"rounded-bl":ke()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:oe()}],"border-color-x":[{"border-x":oe()}],"border-color-y":[{"border-y":oe()}],"border-color-s":[{"border-s":oe()}],"border-color-e":[{"border-e":oe()}],"border-color-t":[{"border-t":oe()}],"border-color-r":[{"border-r":oe()}],"border-color-b":[{"border-b":oe()}],"border-color-l":[{"border-l":oe()}],"divide-color":[{divide:oe()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ze,De,Oe]}],"outline-w":[{outline:["",Ze,gn,Mr]}],"outline-color":[{outline:oe()}],shadow:[{shadow:["","none",o,Zn,qn]}],"shadow-color":[{shadow:oe()}],"inset-shadow":[{"inset-shadow":["none",g,Zn,qn]}],"inset-shadow-color":[{"inset-shadow":oe()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:oe()}],"ring-offset-w":[{"ring-offset":[Ze,Mr]}],"ring-offset-color":[{"ring-offset":oe()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":oe()}],"text-shadow":[{"text-shadow":["none",l,Zn,qn]}],"text-shadow-color":[{"text-shadow":oe()}],opacity:[{opacity:[Ze,De,Oe]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":oe()}],"mask-image-linear-to-color":[{"mask-linear-to":oe()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":oe()}],"mask-image-t-to-color":[{"mask-t-to":oe()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":oe()}],"mask-image-r-to-color":[{"mask-r-to":oe()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":oe()}],"mask-image-b-to-color":[{"mask-b-to":oe()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":oe()}],"mask-image-l-to-color":[{"mask-l-to":oe()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":oe()}],"mask-image-x-to-color":[{"mask-x-to":oe()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":oe()}],"mask-image-y-to-color":[{"mask-y-to":oe()}],"mask-image-radial":[{"mask-radial":[De,Oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":oe()}],"mask-image-radial-to-color":[{"mask-radial-to":oe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":oe()}],"mask-image-conic-to-color":[{"mask-conic-to":oe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Oe]}],filter:[{filter:["","none",De,Oe]}],blur:[{blur:ee()}],brightness:[{brightness:[Ze,De,Oe]}],contrast:[{contrast:[Ze,De,Oe]}],"drop-shadow":[{"drop-shadow":["","none",s,Zn,qn]}],"drop-shadow-color":[{"drop-shadow":oe()}],grayscale:[{grayscale:["",Ze,De,Oe]}],"hue-rotate":[{"hue-rotate":[Ze,De,Oe]}],invert:[{invert:["",Ze,De,Oe]}],saturate:[{saturate:[Ze,De,Oe]}],sepia:[{sepia:["",Ze,De,Oe]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Oe]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[Ze,De,Oe]}],"backdrop-contrast":[{"backdrop-contrast":[Ze,De,Oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ze,De,Oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ze,De,Oe]}],"backdrop-invert":[{"backdrop-invert":["",Ze,De,Oe]}],"backdrop-opacity":[{"backdrop-opacity":[Ze,De,Oe]}],"backdrop-saturate":[{"backdrop-saturate":[Ze,De,Oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ze,De,Oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ze,"initial",De,Oe]}],ease:[{ease:["linear","initial",_,De,Oe]}],delay:[{delay:[Ze,De,Oe]}],animate:[{animate:["none",m,De,Oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,De,Oe]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[De,Oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:P()}],"translate-x":[{"translate-x":P()}],"translate-y":[{"translate-y":P()}],"translate-z":[{"translate-z":P()}],"translate-none":["translate-none"],accent:[{accent:oe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:oe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",De,Oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",De,Oe]}],fill:[{fill:["none",...oe()]}],"stroke-w":[{stroke:[Ze,gn,Mr,Xa]}],stroke:[{stroke:["none",...oe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},e_=Mp(Jp);function Bn(...e){return e_(rc(e))}const $r=At({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(r,n)=>(ft(),Kt(Fe(jr),{as:e.as,"as-child":e.asChild,class:sn(Fe(Bn)(Fe(t_)({variant:e.variant,size:e.size}),t.class))},{default:nt(()=>[Yt(r.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),t_=j0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Su=At({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,i=O0(r,"modelValue",t,{passive:!0,defaultValue:r.defaultValue});return(u,h)=>xf((ft(),er("input",{"onUpdate:modelValue":h[0]||(h[0]=v=>pt(i)?i.value=v:null),class:sn(Fe(Bn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-foreground file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r.class))},null,2)),[[jd,Fe(i)]])}}),r_=At({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=$0(e,t);return(u,h)=>(ft(),Kt(Fe(pp),Oc(Xl(Fe(i))),{default:nt(()=>[Yt(u.$slots,"default")]),_:3},16))}}),Yn=At({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,r=mo(t,"class");return(n,i)=>(ft(),Kt(Fe(vp),Dn({class:Fe(Bn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},Fe(r)),{default:nt(()=>[Yt(n.$slots,"default")]),_:3},16,["class"]))}}),n_=At({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,r=mo(t,"class");return(n,i)=>(ft(),Kt(Fe(yp),Dn(Fe(r),{class:Fe(Bn)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:nt(()=>[Yt(n.$slots,"default")]),_:3},16,["class"]))}}),i_={class:"truncate"},Jn=At({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,r=mo(t,"class"),n=oc(r);return(i,u)=>(ft(),Kt(Fe(mp),Dn(Fe(n),{class:Fe(Bn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:nt(()=>[lt("span",i_,[Yt(i.$slots,"default")])]),_:3},16,["class"]))}}),wc=T0(),Eu=v0(wc);function Cu(e){return new Worker("/assets/detect-worker-CItSaQAS.js",{name:e==null?void 0:e.name})}function a_(e){return new Worker("/assets/vlm-play-worker-CFOrl6pM.js",{name:e==null?void 0:e.name})}const o_=bo("object-detection:eventa:invoke:detect"),s_=bo("vlm-player:eventa:invoke:load-model"),u_=bo("vlm-player:eventa:invoke:generate"),l_=$t("vlm-player:eventa:event:model-load-progress"),c_={class:"w-full h-full flex flex-col justify-center items-center"},f_={"w-full":"",flex:"","justify-center":""},d_=["width","height"],h_={key:0,absolute:"","top-0":"","left-0":"","w-full":"","h-full":"",flex:"","justify-center":"","items-center":"","text-gray-500":"","text-sm":""},p_={flex:"","gap-2":"","mb-2":""},__={class:"flex gap-2"},v_={w:"60 md:90 lg:120",h:"60 md:90 lg:120","overflow-hidden":"","rounded-lg":"",relative:"",border:"1 gray-200 dark:gray-700","transition-all":"","duration-300":"","mb-4":""},g_={key:0,absolute:"","top-0":"","left-0":"","w-full":"","h-full":"",flex:"","justify-center":"","items-center":"","text-gray-500":"","text-sm":""},y_={w:"60 md:90 lg:120",h:"60 md:90 lg:120","overflow-hidden":"","rounded-lg":"",relative:"",border:"1 gray-200 dark:gray-700","transition-all":"","duration-300":"","mb-4":""},b_={"scale-75":"","origin-top-left":""},m_=["width","height"],x_={key:0,absolute:"","top-0":"","left-0":"","w-full":"","h-full":"",flex:"","justify-center":"","items-center":"","text-gray-500":"","text-sm":""},w_={flex:"","gap-2":"","mb-2":""},k_={class:"flex gap-2"},S_={w:"60 md:90 lg:120",h:"60 md:90 lg:120","overflow-hidden":"","rounded-lg":"",relative:"",border:"1 gray-200 dark:gray-700","transition-all":"","duration-300":"","mb-4":""},E_={key:0,absolute:"","top-0":"","left-0":"","w-full":"","h-full":"",flex:"","justify-center":"","items-center":"","text-gray-500":"","text-sm":""},C_={w:"60 md:90 lg:120",h:"60 md:90 lg:120","rounded-lg":"",border:"1 gray-200 dark:gray-700","overflow-y-scroll":""},A_={key:0,"w-full":"","h-full":"",flex:"","justify-center":"","items-center":"","text-gray-500":"","text-sm":""},F_={key:1,w:"full h-full",p:"4",text:"sm"},K_={class:"flex gap-4 text-gray-500 text-lg"},R_=At({__name:"App",setup(e){const t=it([]),r=it(640),n=Po("canvasRef"),i=it(["assembling-machine-1","assembling-machine-2","assembling-machine-3","transport-belt","fast-transport-belt","express-transport-belt"]),u=cu(new Cu).context,h=Ca(u,o_),v=it(!1),a=it(!1),d=it(0),o=new Cu,g=cu(new a_).context;g.on(l_,ge=>{d.value=ge.body??0});const l=Ca(g,s_),s=Ca(g,u_),p=it("");function b(){let ge=0,j=0;const le=it(0);function we(){ge++;const ke=performance.now(),Y=(ke-j)*.001;Y>=1&&(le.value=Math.round(ge/Y),ge=0,j=ke)}return we(),{fps:le,updateFps:we}}const{fps:y,updateFps:_}=b(),m=pu("factorio-yolo-v0-playground/current-tab","image"),k=pu("factorio-yolo-v0-playground/vnc-address","ws://localhost:5901/websockify"),x=Po("vncView"),E=it(null),S=it(null);function A(ge,j,le){return ge>j?[le,Math.round(le*j/ge)]:[Math.round(le*ge/j),le]}async function F(ge){return new Promise(j=>{ge.onload=()=>j()})}function M(ge){if(!n.value)return;const j=n.value.getContext("2d");if(j){j.strokeStyle="rgb(0, 255, 0)",j.fillStyle="rgb(0, 255, 0)",j.font="20px Arial",j.lineWidth=2;for(const le of ge)j.strokeRect(le.topLeftX,le.topLeftY,le.bottomRightX-le.topLeftX,le.bottomRightY-le.topLeftY),j.fillText(`${i.value[le.classId]}: ${le.confidence.toFixed(2)}`,le.topLeftX,le.topLeftY)}}async function O(ge){if(!n.value){Wn.error("Failed to get canvas element");return}const j=await createImageBitmap(ge),le=document.createElement("img");le.src=URL.createObjectURL(ge),t.value.push(le.src),await F(le);const[we,ke]=A(j.width,j.height,r.value);le.width=we,le.height=ke;const Y=n.value.getContext("2d");if(!Y){Wn.error("Failed to get canvas context");return}Y.clearRect(0,0,r.value,r.value),Y.fillStyle="rgb(114, 114, 114)",Y.fillRect(0,0,r.value,r.value);const Q=(r.value-we)/2,ce=(r.value-ke)/2;Y.drawImage(le,Q,ce,we,ke);const Z=Y.getImageData(Q,ce,r.value,r.value);o.postMessage({imageData:Z})}async function H(ge){if(!ge){Wn.error("No file selected");return}O(ge)}const z=L0({accept:"image/*",multiple:!1});z.onChange(ge=>{ge&&H(ge[0])});function W(ge){const j=it(null);let le=!1;function we(){j.value&&(cancelAnimationFrame(j.value),j.value=null),le=!0}function ke(){ge().then(()=>{le||(j.value=requestAnimationFrame(ke))}).catch(Q=>{console.error(Q)})}const Y=ot(()=>j.value!==null);return{pause:we,resume:ke,isRunning:Y}}const q=W(async()=>{if(!E.value||!S.value||!S.value.width||!S.value.height)return;const ge=S.value.getContext("2d",{willReadFrequently:!0});if(!ge)return;if(!n.value){console.error("Failed to get canvas element");return}const j=n.value.getContext("2d");if(!j){console.error("Failed to get canvas context");return}const le=ge.getImageData(0,0,S.value.width,S.value.height),{detections:we,_transfer:ke}=await h(le.data.buffer,{transfer:[le.data.buffer]});j.clearRect(0,0,r.value,r.value),j.putImageData(new ImageData(new Uint8ClampedArray(ke[0]),S.value.width,S.value.height),0,0),M(we),_(),j.fillStyle="rgb(0, 255, 0)",j.font="20px Arial",j.fillText(`FPS: ${y.value}`,0,20)}),ae=W(async()=>{if(!E.value||!S.value)return;const ge=await new Promise((le,we)=>{if(!S.value){we(new Error("Failed to get VNC canvas element"));return}const ke=()=>{if(!S.value){requestAnimationFrame(ke);return}S.value.toBlob(Y=>{if(!Y){requestAnimationFrame(ke);return}le(Y)})};ke()}),j=await s(ge);p.value=j});async function de(){a.value||(v.value=!0,d.value=0,await l(void 0),v.value=!1,a.value=!0)}function pe(){if(!x.value){Wn.error("Failed to get VNC view element");return}E.value=new Bh(x.value,k.value),E.value.scaleViewport=!0,S.value=x.value.querySelector("canvas"),m.value==="vnc"?q.resume():m.value==="vlm"&&ae.resume()}function oe(ge){ge!=="vnc"&&ge!=="vlm"&&E.value&&(E.value.disconnect(),E.value=null,q.pause(),ae.pause())}return On(()=>{t.value.forEach(ge=>URL.revokeObjectURL(ge))}),(ge,j)=>(ft(),er("div",c_,[j[22]||(j[22]=lt("div",{class:"flex flex-col gap-2 mb-8"},[lt("div",{class:"text-3xl font-bold text-center"}," Factorio YOLO v0 "),lt("div",{class:"text-gray-500 text-sm text-center"}," The playground for the Factorio YOLO v0 model. ")],-1)),rt(Fe(r_),{modelValue:Fe(m),"onUpdate:modelValue":[j[4]||(j[4]=le=>pt(m)?m.value=le:null),oe],disabled:v.value,"default-value":"image"},{default:nt(()=>[lt("div",f_,[rt(Fe(n_),{"mx-auto":""},{default:nt(()=>[rt(Fe(Jn),{value:"image"},{default:nt(()=>[...j[7]||(j[7]=[Gt(" Image ",-1)])]),_:1}),rt(Fe(Jn),{value:"video"},{default:nt(()=>[...j[8]||(j[8]=[Gt(" Video ",-1)])]),_:1}),rt(Fe(Jn),{value:"vnc"},{default:nt(()=>[...j[9]||(j[9]=[Gt(" VNC ",-1)])]),_:1}),rt(Fe(Jn),{value:"vlm"},{default:nt(()=>[...j[10]||(j[10]=[Gt(" VLM ",-1)])]),_:1})]),_:1})]),rt(Fe(Yn),{value:"image"},{default:nt(()=>[lt("div",{w:"80 md:120 lg:160",h:"80 md:120 lg:160","overflow-hidden":"","rounded-lg":"",relative:"","cursor-pointer":"",border:"1 gray-200 dark:gray-700","transition-all":"","duration-300":"","mb-4":"",onClick:j[0]||(j[0]=le=>Fe(z).open())},[lt("canvas",{ref_key:"canvasRef",ref:n,width:r.value,height:r.value,class:"origin-top-left",scale:"50 md:75 lg:100","transition-all":"","duration-300":""},null,8,d_),t.value.length?bn("",!0):(ft(),er("div",h_,[...j[11]||(j[11]=[Gt(" Click to select a image ",-1),lt("br",null,null,-1),Gt(" (Square image required) ",-1)])]))])]),_:1}),rt(Fe(Yn),{value:"video"},{default:nt(()=>[...j[12]||(j[12]=[Gt(" TODO ",-1)])]),_:1}),rt(Fe(Yn),{value:"vnc"},{default:nt(()=>[j[15]||(j[15]=lt("div",{class:"lg:hidden mb-2 text-sm text-gray-500 text-center"}," Please use larger screen to get better experience. ",-1)),lt("div",p_,[rt(Fe(Su),{modelValue:Fe(k),"onUpdate:modelValue":j[1]||(j[1]=le=>pt(k)?k.value=le:null)},null,8,["modelValue"]),rt(Fe($r),{variant:"outline",onClick:pe},{default:nt(()=>[...j[13]||(j[13]=[Gt(" Connect ",-1)])]),_:1}),rt(Fe($r),{variant:"outline",as:"a",size:"icon","px-2":"",href:"https://github.com/moeru-ai/airi-factorio/tree/main/apps/factorio-yolo-v0-playground/README.md",target:"_blank"},{default:nt(()=>[...j[14]||(j[14]=[lt("span",{"i-solar-question-circle-bold":"","text-xl":""},null,-1)])]),_:1})]),lt("div",__,[lt("div",v_,[lt("div",{ref_key:"vncView",ref:x,"w-full":"","h-full":"",class:"vnc-container"},null,512),E.value?bn("",!0):(ft(),er("div",g_," VNC view "))]),lt("div",y_,[lt("div",b_,[lt("canvas",{ref_key:"canvasRef",ref:n,width:r.value,height:r.value,class:"origin-top-left",scale:"50 md:75 lg:100","transition-all":"","duration-300":""},null,8,m_)]),S.value?bn("",!0):(ft(),er("div",x_," Detection result "))])])]),_:1}),rt(Fe(Yn),{value:"vlm"},{default:nt(()=>[j[19]||(j[19]=lt("div",{class:"lg:hidden mb-2 text-sm text-gray-500 text-center"}," Please use larger screen to get better experience. ",-1)),lt("div",w_,[rt(Fe(Su),{modelValue:Fe(k),"onUpdate:modelValue":j[2]||(j[2]=le=>pt(k)?k.value=le:null)},null,8,["modelValue"]),a.value?Fe(ae).isRunning.value?(ft(),Kt(Fe($r),{key:1,variant:"outline",onClick:j[3]||(j[3]=()=>Fe(ae).pause())},{default:nt(()=>[...j[16]||(j[16]=[Gt(" Stop ",-1)])]),_:1})):(ft(),Kt(Fe($r),{key:2,variant:"outline",onClick:pe},{default:nt(()=>[...j[17]||(j[17]=[Gt(" Connect ",-1)])]),_:1})):(ft(),Kt(Fe($r),{key:0,disabled:v.value,variant:"outline",onClick:de},{default:nt(()=>[Gt(Pa(d.value!==0?`Loading... ${d.value}%`:"Load Model"),1)]),_:1},8,["disabled"])),rt(Fe($r),{variant:"outline",as:"a",size:"icon","px-2":"",href:"https://github.com/moeru-ai/airi-factorio/tree/main/apps/factorio-yolo-v0-playground/README.md",target:"_blank"},{default:nt(()=>[...j[18]||(j[18]=[lt("span",{"i-solar-question-circle-bold":"","text-xl":""},null,-1)])]),_:1})]),lt("div",k_,[lt("div",S_,[lt("div",{ref_key:"vncView",ref:x,"w-full":"","h-full":"",class:"vnc-container"},null,512),E.value?bn("",!0):(ft(),er("div",E_," VNC view "))]),lt("div",C_,[p.value?(ft(),er("div",F_,Pa(p.value),1)):(ft(),er("div",A_," Waiting for output... "))])])]),_:1})]),_:1},8,["modelValue","disabled"]),lt("div",K_,[Fe(wc)?(ft(),er("div",{key:0,"cursor-pointer":"","i-solar-cloudy-moon-bold-duotone":"",onClick:j[5]||(j[5]=le=>Fe(Eu)())})):(ft(),er("div",{key:1,"cursor-pointer":"","i-solar-sun-2-bold":"",onClick:j[6]||(j[6]=le=>Fe(Eu)())})),j[20]||(j[20]=lt("a",{"i-carbon-logo-github":"",href:"https://github.com/moeru-ai/airi-factorio/tree/main/models/factorio-yolo-v0",target:"_blank"},null,-1)),j[21]||(j[21]=lt("a",{"i-simple-icons-huggingface":"",href:"https://huggingface.co/spaces/proj-airi/factorio-yolo-v0-playground",target:"_blank"},null,-1))])]))}}),kc=Zd(R_);Object.values([nh]).forEach(e=>{var t;return(t=e.install)==null?void 0:t.call(e,kc)});kc.mount("#app"); +//# sourceMappingURL=index-o3d8lRyj.js.map