const __vite__fileDeps=["assets/HomeView-BPJjNFc_.js","assets/HomeView-D4RrLLwm.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();/**
* @vue/shared v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function wb(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ir={},Vu=[],xn=()=>{},l8=()=>!1,tv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Sb=e=>e.startsWith("onUpdate:"),Sr=Object.assign,Tb=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},u8=Object.prototype.hasOwnProperty,cn=(e,t)=>u8.call(e,t),st=Array.isArray,Gu=e=>Zf(e)==="[object Map]",nv=e=>Zf(e)==="[object Set]",Yl=e=>Zf(e)==="[object Date]",Pt=e=>typeof e=="function",Rt=e=>typeof e=="string",Vi=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",rf=e=>(Kt(e)||Pt(e))&&Pt(e.then)&&Pt(e.catch),eI=Object.prototype.toString,Zf=e=>eI.call(e),Ip=e=>Zf(e).slice(8,-1),d0=e=>Zf(e)==="[object Object]",Eb=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$d=wb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},c8=/-(\w)/g,go=rv(e=>e.replace(c8,(t,n)=>n?n.toUpperCase():"")),d8=/\B([A-Z])/g,Js=rv(e=>e.replace(d8,"-$1").toLowerCase()),eh=rv(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ap=rv(e=>e?`on${eh(e)}`:""),Ds=(e,t)=>!Object.is(e,t),Pp=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},tI=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},f8=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let uS;const nI=()=>uS||(uS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vt(e){if(st(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=Rt(r)?m8(r):vt(r);if(a)for(const o in a)t[o]=a[o]}return t}else if(Rt(e)||Kt(e))return e}const h8=/;(?![^(]*\))/g,p8=/:([^]+)/,v8=/\/\*[^]*?\*\//g;function m8(e){const t={};return e.replace(v8,"").split(h8).forEach(n=>{if(n){const r=n.split(p8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function K(e){let t="";if(Rt(e))t=e;else if(st(e))for(let n=0;n<e.length;n++){const r=K(e[n]);r&&(t+=r+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Di(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Rt(t)&&(e.class=K(t)),n&&(e.style=vt(n)),e}const g8="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",y8=wb(g8);function rI(e){return!!e||e===""}function b8(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=rc(e[r],t[r]);return n}function rc(e,t){if(e===t)return!0;let n=Yl(e),r=Yl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Vi(e),r=Vi(t),n||r)return e===t;if(n=st(e),r=st(t),n||r)return n&&r?b8(e,t):!1;if(n=Kt(e),r=Kt(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const s in e){const l=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(l&&!u||!l&&u||!rc(e[s],t[s]))return!1}}return String(e)===String(t)}function aI(e,t){return e.findIndex(n=>rc(n,t))}const ot=e=>Rt(e)?e:e==null?"":st(e)||Kt(e)&&(e.toString===eI||!Pt(e.toString))?JSON.stringify(e,oI,2):String(e),oI=(e,t)=>t&&t.__v_isRef?oI(e,t.value):Gu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a],o)=>(n[cm(r,o)+" =>"]=a,n),{})}:nv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>cm(n))}:Vi(t)?cm(t):Kt(t)&&!st(t)&&!d0(t)?String(t):t,cm=(e,t="")=>{var n;return Vi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Ga;class iI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ga,!t&&Ga&&(this.index=(Ga.scopes||(Ga.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ga;try{return Ga=this,t()}finally{Ga=n}}}on(){Ga=this}off(){Ga=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function _8(e){return new iI(e)}function w8(e,t=Ga){t&&t.active&&t.effects.push(e)}function sI(){return Ga}function lI(e){Ga&&Ga.cleanups.push(e)}let Bl;class Cb{constructor(t,n,r,a){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,w8(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,qs();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(S8(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Qs()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ms,n=Bl;try{return Ms=!0,Bl=this,this._runnings++,cS(this),this.fn()}finally{dS(this),this._runnings--,Bl=n,Ms=t}}stop(){this.active&&(cS(this),dS(this),this.onStop&&this.onStop(),this.active=!1)}}function S8(e){return e.value}function cS(e){e._trackId++,e._depsLength=0}function dS(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)uI(e.deps[t],e);e.deps.length=e._depsLength}}function uI(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ms=!0,Gg=0;const cI=[];function qs(){cI.push(Ms),Ms=!1}function Qs(){const e=cI.pop();Ms=e===void 0?!0:e}function xb(){Gg++}function Ib(){for(Gg--;!Gg&&jg.length;)jg.shift()()}function dI(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&uI(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const jg=[];function fI(e,t,n){xb();for(const r of e.keys()){let a;r._dirtyLevel<t&&(a??(a=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(a??(a=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&jg.push(r.scheduler)))}Ib()}const hI=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},f0=new WeakMap,Hl=Symbol(""),zg=Symbol("");function Ba(e,t,n){if(Ms&&Bl){let r=f0.get(e);r||f0.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=hI(()=>r.delete(n))),dI(Bl,a)}}function Bi(e,t,n,r,a,o){const s=f0.get(e);if(!s)return;let l=[];if(t==="clear")l=[...s.values()];else if(n==="length"&&st(e)){const u=Number(r);s.forEach((c,f)=>{(f==="length"||!Vi(f)&&f>=u)&&l.push(c)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":st(e)?Eb(n)&&l.push(s.get("length")):(l.push(s.get(Hl)),Gu(e)&&l.push(s.get(zg)));break;case"delete":st(e)||(l.push(s.get(Hl)),Gu(e)&&l.push(s.get(zg)));break;case"set":Gu(e)&&l.push(s.get(Hl));break}xb();for(const u of l)u&&fI(u,4);Ib()}function T8(e,t){const n=f0.get(e);return n&&n.get(t)}const E8=wb("__proto__,__v_isRef,__isVue"),pI=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vi)),fS=C8();function C8(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=In(this);for(let o=0,s=this.length;o<s;o++)Ba(r,"get",o+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(In)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){qs(),xb();const r=In(this)[t].apply(this,n);return Ib(),Qs(),r}}),e}function x8(e){Vi(e)||(e=String(e));const t=In(this);return Ba(t,"has",e),t.hasOwnProperty(e)}class vI{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(a?o?B8:bI:o?yI:gI).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=st(t);if(!a){if(s&&cn(fS,n))return Reflect.get(fS,n,r);if(n==="hasOwnProperty")return x8}const l=Reflect.get(t,n,r);return(Vi(n)?pI.has(n):E8(n))||(a||Ba(t,"get",n),o)?l:Un(l)?s&&Eb(n)?l:l.value:Kt(l)?a?kc(l):Sn(l):l}}class mI extends vI{constructor(t=!1){super(!1,t)}set(t,n,r,a){let o=t[n];if(!this._isShallow){const u=af(o);if(!h0(r)&&!af(r)&&(o=In(o),r=In(r)),!st(t)&&Un(o)&&!Un(r))return u?!1:(o.value=r,!0)}const s=st(t)&&Eb(n)?Number(n)<t.length:cn(t,n),l=Reflect.set(t,n,r,a);return t===In(a)&&(s?Ds(r,o)&&Bi(t,"set",n,r):Bi(t,"add",n,r)),l}deleteProperty(t,n){const r=cn(t,n);t[n];const a=Reflect.deleteProperty(t,n);return a&&r&&Bi(t,"delete",n,void 0),a}has(t,n){const r=Reflect.has(t,n);return(!Vi(n)||!pI.has(n))&&Ba(t,"has",n),r}ownKeys(t){return Ba(t,"iterate",st(t)?"length":Hl),Reflect.ownKeys(t)}}class I8 extends vI{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const A8=new mI,P8=new I8,M8=new mI(!0);const Ab=e=>e,av=e=>Reflect.getPrototypeOf(e);function Ih(e,t,n=!1,r=!1){e=e.__v_raw;const a=In(e),o=In(t);n||(Ds(t,o)&&Ba(a,"get",t),Ba(a,"get",o));const{has:s}=av(a),l=r?Ab:n?$b:of;if(s.call(a,t))return l(e.get(t));if(s.call(a,o))return l(e.get(o));e!==a&&e.get(t)}function Ah(e,t=!1){const n=this.__v_raw,r=In(n),a=In(e);return t||(Ds(e,a)&&Ba(r,"has",e),Ba(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ph(e,t=!1){return e=e.__v_raw,!t&&Ba(In(e),"iterate",Hl),Reflect.get(e,"size",e)}function hS(e){e=In(e);const t=In(this);return av(t).has.call(t,e)||(t.add(e),Bi(t,"add",e,e)),this}function pS(e,t){t=In(t);const n=In(this),{has:r,get:a}=av(n);let o=r.call(n,e);o||(e=In(e),o=r.call(n,e));const s=a.call(n,e);return n.set(e,t),o?Ds(t,s)&&Bi(n,"set",e,t):Bi(n,"add",e,t),this}function vS(e){const t=In(this),{has:n,get:r}=av(t);let a=n.call(t,e);a||(e=In(e),a=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return a&&Bi(t,"delete",e,void 0),o}function mS(){const e=In(this),t=e.size!==0,n=e.clear();return t&&Bi(e,"clear",void 0,void 0),n}function Mh(e,t){return function(r,a){const o=this,s=o.__v_raw,l=In(s),u=t?Ab:e?$b:of;return!e&&Ba(l,"iterate",Hl),s.forEach((c,f)=>r.call(a,u(c),u(f),o))}}function Oh(e,t,n){return function(...r){const a=this.__v_raw,o=In(a),s=Gu(o),l=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=a[e](...r),f=n?Ab:t?$b:of;return!t&&Ba(o,"iterate",u?zg:Hl),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function is(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function O8(){const e={get(o){return Ih(this,o)},get size(){return Ph(this)},has:Ah,add:hS,set:pS,delete:vS,clear:mS,forEach:Mh(!1,!1)},t={get(o){return Ih(this,o,!1,!0)},get size(){return Ph(this)},has:Ah,add:hS,set:pS,delete:vS,clear:mS,forEach:Mh(!1,!0)},n={get(o){return Ih(this,o,!0)},get size(){return Ph(this,!0)},has(o){return Ah.call(this,o,!0)},add:is("add"),set:is("set"),delete:is("delete"),clear:is("clear"),forEach:Mh(!0,!1)},r={get(o){return Ih(this,o,!0,!0)},get size(){return Ph(this,!0)},has(o){return Ah.call(this,o,!0)},add:is("add"),set:is("set"),delete:is("delete"),clear:is("clear"),forEach:Mh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Oh(o,!1,!1),n[o]=Oh(o,!0,!1),t[o]=Oh(o,!1,!0),r[o]=Oh(o,!0,!0)}),[e,n,t,r]}const[$8,R8,k8,L8]=O8();function Pb(e,t){const n=t?e?L8:k8:e?R8:$8;return(r,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(cn(n,a)&&a in r?n:r,a,o)}const N8={get:Pb(!1,!1)},D8={get:Pb(!1,!0)},F8={get:Pb(!0,!1)};const gI=new WeakMap,yI=new WeakMap,bI=new WeakMap,B8=new WeakMap;function H8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function U8(e){return e.__v_skip||!Object.isExtensible(e)?0:H8(Ip(e))}function Sn(e){return af(e)?e:Ob(e,!1,A8,N8,gI)}function Mb(e){return Ob(e,!1,M8,D8,yI)}function kc(e){return Ob(e,!0,P8,F8,bI)}function Ob(e,t,n,r,a){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=a.get(e);if(o)return o;const s=U8(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return a.set(e,l),l}function Rd(e){return af(e)?Rd(e.__v_raw):!!(e&&e.__v_isReactive)}function af(e){return!!(e&&e.__v_isReadonly)}function h0(e){return!!(e&&e.__v_isShallow)}function _I(e){return e?!!e.__v_raw:!1}function In(e){const t=e&&e.__v_raw;return t?In(t):e}function ju(e){return Object.isExtensible(e)&&tI(e,"__v_skip",!0),e}const of=e=>Kt(e)?Sn(e):e,$b=e=>Kt(e)?kc(e):e;class wI{constructor(t,n,r,a){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Cb(()=>t(this._value),()=>kd(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=In(this);return(!t._cacheable||t.effect.dirty)&&Ds(t._value,t._value=t.effect.run())&&kd(t,4),Rb(t),t.effect._dirtyLevel>=2&&kd(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function SI(e,t,n=!1){let r,a;const o=Pt(e);return o?(r=e,a=xn):(r=e.get,a=e.set),new wI(r,a,o||!a,n)}function Rb(e){var t;Ms&&Bl&&(e=In(e),dI(Bl,(t=e.dep)!=null?t:e.dep=hI(()=>e.dep=void 0,e instanceof wI?e:void 0)))}function kd(e,t=4,n){e=In(e);const r=e.dep;r&&fI(r,t)}function Un(e){return!!(e&&e.__v_isRef===!0)}function ee(e){return TI(e,!1)}function Fn(e){return TI(e,!0)}function TI(e,t){return Un(e)?e:new V8(e,t)}class V8{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:In(t),this._value=n?t:of(t)}get value(){return Rb(this),this._value}set value(t){const n=this.__v_isShallow||h0(t)||af(t);t=n?t:In(t),Ds(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:of(t),kd(this,4))}}function h(e){return Un(e)?e.value:e}const G8={get:(e,t,n)=>h(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Un(a)&&!Un(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function EI(e){return Rd(e)?e:new Proxy(e,G8)}class j8{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Rb(this),()=>kd(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function z8(e){return new j8(e)}function Wr(e){const t=st(e)?new Array(e.length):{};for(const n in e)t[n]=CI(e,n);return t}class K8{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return T8(In(this._object),this._key)}}class W8{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function On(e,t,n){return Un(e)?e:Pt(e)?new W8(e):Kt(e)&&arguments.length>1?CI(e,t,n):ee(e)}function CI(e,t,n){const r=e[t];return Un(r)?r:new K8(e,t,n)}/**
* @vue/runtime-core v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Os(e,t,n,r){try{return r?e(...r):e()}catch(a){ov(a,t,n)}}function po(e,t,n,r){if(Pt(e)){const a=Os(e,t,n,r);return a&&rf(a)&&a.catch(o=>{ov(o,t,n)}),a}if(st(e)){const a=[];for(let o=0;o<e.length;o++)a.push(po(e[o],t,n,r));return a}}function ov(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,l)===!1)return}o=o.parent}const u=t.appContext.config.errorHandler;if(u){qs(),Os(u,null,10,[e,s,l]),Qs();return}}X8(e,n,a,r)}function X8(e,t,n,r=!0){console.error(e)}let sf=!1,Kg=!1;const sa=[];let ii=0;const zu=[];let gs=null,xl=0;const xI=Promise.resolve();let kb=null;function bt(e){const t=kb||xI;return e?t.then(this?e.bind(this):e):t}function Y8(e){let t=ii+1,n=sa.length;for(;t<n;){const r=t+n>>>1,a=sa[r],o=lf(a);o<e||o===e&&a.pre?t=r+1:n=r}return t}function Lb(e){(!sa.length||!sa.includes(e,sf&&e.allowRecurse?ii+1:ii))&&(e.id==null?sa.push(e):sa.splice(Y8(e.id),0,e),II())}function II(){!sf&&!Kg&&(Kg=!0,kb=xI.then(PI))}function J8(e){const t=sa.indexOf(e);t>ii&&sa.splice(t,1)}function q8(e){st(e)?zu.push(...e):(!gs||!gs.includes(e,e.allowRecurse?xl+1:xl))&&zu.push(e),II()}function gS(e,t,n=sf?ii+1:0){for(;n<sa.length;n++){const r=sa[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;sa.splice(n,1),n--,r()}}}function AI(e){if(zu.length){const t=[...new Set(zu)].sort((n,r)=>lf(n)-lf(r));if(zu.length=0,gs){gs.push(...t);return}for(gs=t,xl=0;xl<gs.length;xl++)gs[xl]();gs=null,xl=0}}const lf=e=>e.id==null?1/0:e.id,Q8=(e,t)=>{const n=lf(e)-lf(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function PI(e){Kg=!1,sf=!0,sa.sort(Q8);try{for(ii=0;ii<sa.length;ii++){const t=sa[ii];t&&t.active!==!1&&Os(t,null,14)}}finally{ii=0,sa.length=0,AI(),sf=!1,kb=null,(sa.length||zu.length)&&PI()}}function Z8(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ir;let a=n;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in r){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:p}=r[f]||ir;p&&(a=n.map(g=>Rt(g)?g.trim():g)),d&&(a=n.map(Vg))}let l,u=r[l=Ap(t)]||r[l=Ap(go(t))];!u&&o&&(u=r[l=Ap(Js(t))]),u&&po(u,e,6,a);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,po(c,e,6,a)}}function MI(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const o=e.emits;let s={},l=!1;if(!Pt(e)){const u=c=>{const f=MI(c,t,!0);f&&(l=!0,Sr(s,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!l?(Kt(e)&&r.set(e,null),null):(st(o)?o.forEach(u=>s[u]=null):Sr(s,o),Kt(e)&&r.set(e,s),s)}function iv(e,t){return!e||!tv(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,Js(t))||cn(e,t))}let Dr=null,sv=null;function p0(e){const t=Dr;return Dr=e,sv=e&&e.type.__scopeId||null,t}function Twe(e){sv=e}function Ewe(){sv=null}function Ce(e,t=Dr,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&OS(-1);const o=p0(t);let s;try{s=e(...a)}finally{p0(o),r._d&&OS(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function dm(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,props:d,data:p,setupState:g,ctx:y,inheritAttrs:m}=e,S=p0(e);let _,P;try{if(n.shapeFlag&4){const $=a||r,k=$;_=ri(c.call(k,$,f,d,g,p,y)),P=l}else{const $=t;_=ri($.length>1?$(d,{attrs:l,slots:s,emit:u}):$(d,null)),P=t.props?l:e6(l)}}catch($){Bd.length=0,ov($,e,1),_=ye(la)}let A=_;if(P&&m!==!1){const $=Object.keys(P),{shapeFlag:k}=A;$.length&&k&7&&(o&&$.some(Sb)&&(P=t6(P,o)),A=ji(A,P,!1,!0))}return n.dirs&&(A=ji(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),_=A,p0(S),_}const e6=e=>{let t;for(const n in e)(n==="class"||n==="style"||tv(n))&&((t||(t={}))[n]=e[n]);return t},t6=(e,t)=>{const n={};for(const r in e)(!Sb(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function n6(e,t,n){const{props:r,children:a,component:o}=e,{props:s,children:l,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?yS(r,s,c):!!s;if(u&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(s[p]!==r[p]&&!iv(c,p))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:r===s?!1:r?s?yS(r,s,c):!0:!!s;return!1}function yS(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const o=r[a];if(t[o]!==e[o]&&!iv(n,o))return!0}return!1}function r6({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Nb="components",a6="directives";function Xt(e,t){return Db(Nb,e,!0,t)||e}const OI=Symbol.for("v-ndc");function Zt(e){return Rt(e)?Db(Nb,e,!1)||e:e||OI}function lv(e){return Db(a6,e)}function Db(e,t,n=!0,r=!1){const a=Dr||Zr;if(a){const o=a.type;if(e===Nb){const l=W6(o,!1);if(l&&(l===t||l===go(t)||l===eh(go(t))))return o}const s=bS(a[e]||o[e],t)||bS(a.appContext[e],t);return!s&&r?o:s}}function bS(e,t){return e&&(e[t]||e[go(t)]||e[eh(go(t))])}const o6=e=>e.__isSuspense;function i6(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):q8(e)}const s6=Symbol.for("v-scx"),l6=()=>dt(s6);function ta(e,t){return Fb(e,null,t)}const $h={};function We(e,t,n){return Fb(e,t,n)}function Fb(e,t,{immediate:n,deep:r,flush:a,once:o,onTrack:s,onTrigger:l}=ir){if(t&&o){const L=t;t=(...B)=>{L(...B),k()}}const u=Zr,c=L=>r===!0?L:Ol(L,r===!1?1:void 0);let f,d=!1,p=!1;if(Un(e)?(f=()=>e.value,d=h0(e)):Rd(e)?(f=()=>c(e),d=!0):st(e)?(p=!0,d=e.some(L=>Rd(L)||h0(L)),f=()=>e.map(L=>{if(Un(L))return L.value;if(Rd(L))return c(L);if(Pt(L))return Os(L,u,2)})):Pt(e)?t?f=()=>Os(e,u,2):f=()=>(g&&g(),po(e,u,3,[y])):f=xn,t&&r){const L=f;f=()=>Ol(L())}let g,y=L=>{g=A.onStop=()=>{Os(L,u,4),g=A.onStop=void 0}},m;if(fv)if(y=xn,t?n&&po(t,u,3,[f(),p?[]:void 0,y]):f(),a==="sync"){const L=l6();m=L.__watcherHandles||(L.__watcherHandles=[])}else return xn;let S=p?new Array(e.length).fill($h):$h;const _=()=>{if(!(!A.active||!A.dirty))if(t){const L=A.run();(r||d||(p?L.some((B,H)=>Ds(B,S[H])):Ds(L,S)))&&(g&&g(),po(t,u,3,[L,S===$h?void 0:p&&S[0]===$h?[]:S,y]),S=L)}else A.run()};_.allowRecurse=!!t;let P;a==="sync"?P=_:a==="post"?P=()=>Oa(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),P=()=>Lb(_));const A=new Cb(f,xn,P),$=sI(),k=()=>{A.stop(),$&&Tb($.effects,A)};return t?n?_():S=A.run():a==="post"?Oa(A.run.bind(A),u&&u.suspense):A.run(),m&&m.push(k),k}function u6(e,t,n){const r=this.proxy,a=Rt(e)?e.includes(".")?$I(r,e):()=>r[e]:e.bind(r,r);let o;Pt(t)?o=t:(o=t.handler,n=t);const s=th(this),l=Fb(a,o.bind(r),n);return s(),l}function $I(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function Ol(e,t=1/0,n){if(t<=0||!Kt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Un(e))Ol(e.value,t,n);else if(st(e))for(let r=0;r<e.length;r++)Ol(e[r],t,n);else if(nv(e)||Gu(e))e.forEach(r=>{Ol(r,t,n)});else if(d0(e))for(const r in e)Ol(e[r],t,n);return e}function Lt(e,t){if(Dr===null)return e;const n=hv(Dr)||Dr.proxy,r=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=ir]=t[a];o&&(Pt(o)&&(o={mounted:o,updated:o}),o.deep&&Ol(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function ll(e,t,n,r){const a=e.dirs,o=t&&t.dirs;for(let s=0;s<a.length;s++){const l=a[s];o&&(l.oldValue=o[s].value);let u=l.dir[r];u&&(qs(),po(u,n,8,[e.el,l,e,t]),Qs())}}const ys=Symbol("_leaveCb"),Rh=Symbol("_enterCb");function RI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ht(()=>{e.isMounted=!0}),Dn(()=>{e.isUnmounting=!0}),e}const Qa=[Function,Array],kI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qa,onEnter:Qa,onAfterEnter:Qa,onEnterCancelled:Qa,onBeforeLeave:Qa,onLeave:Qa,onAfterLeave:Qa,onLeaveCancelled:Qa,onBeforeAppear:Qa,onAppear:Qa,onAfterAppear:Qa,onAppearCancelled:Qa},c6={name:"BaseTransition",props:kI,setup(e,{slots:t}){const n=Gt(),r=RI();return()=>{const a=t.default&&Bb(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==la){o=p;break}}const s=In(e),{mode:l}=s;if(r.isLeaving)return fm(o);const u=_S(o);if(!u)return fm(o);const c=uf(u,s,r,n);cf(u,c);const f=n.subTree,d=f&&_S(f);if(d&&d.type!==la&&!Il(u,d)){const p=uf(d,s,r,n);if(cf(d,p),l==="out-in"&&u.type!==la)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},fm(o);l==="in-out"&&u.type!==la&&(p.delayLeave=(g,y,m)=>{const S=LI(r,d);S[String(d.key)]=d,g[ys]=()=>{y(),g[ys]=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},d6=c6;function LI(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function uf(e,t,n,r){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:g,onLeaveCancelled:y,onBeforeAppear:m,onAppear:S,onAfterAppear:_,onAppearCancelled:P}=t,A=String(e.key),$=LI(n,e),k=(H,G)=>{H&&po(H,r,9,G)},L=(H,G)=>{const j=G[1];k(H,G),st(H)?H.every(W=>W.length<=1)&&j():H.length<=1&&j()},B={mode:o,persisted:s,beforeEnter(H){let G=l;if(!n.isMounted)if(a)G=m||l;else return;H[ys]&&H[ys](!0);const j=$[A];j&&Il(e,j)&&j.el[ys]&&j.el[ys](),k(G,[H])},enter(H){let G=u,j=c,W=f;if(!n.isMounted)if(a)G=S||u,j=_||c,W=P||f;else return;let Q=!1;const ue=H[Rh]=se=>{Q||(Q=!0,se?k(W,[H]):k(j,[H]),B.delayedLeave&&B.delayedLeave(),H[Rh]=void 0)};G?L(G,[H,ue]):ue()},leave(H,G){const j=String(e.key);if(H[Rh]&&H[Rh](!0),n.isUnmounting)return G();k(d,[H]);let W=!1;const Q=H[ys]=ue=>{W||(W=!0,G(),ue?k(y,[H]):k(g,[H]),H[ys]=void 0,$[j]===e&&delete $[j])};$[j]=e,p?L(p,[H,Q]):Q()},clone(H){return uf(H,t,n,r)}};return B}function fm(e){if(uv(e))return e=ji(e),e.children=null,e}function _S(e){if(!uv(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Pt(n.default))return n.default()}}function cf(e,t){e.shapeFlag&6&&e.component?cf(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 Bb(e,t=!1,n){let r=[],a=0;for(let o=0;o<e.length;o++){let s=e[o];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===mt?(s.patchFlag&128&&a++,r=r.concat(Bb(s.children,t,l))):(t||s.type!==la)&&r.push(l!=null?ji(s,{key:l}):s)}if(a>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function he(e,t){return Pt(e)?Sr({name:e.name},t,{setup:e}):e}const Ld=e=>!!e.type.__asyncLoader,uv=e=>e.type.__isKeepAlive;function f6(e,t){DI(e,"a",t)}function NI(e,t){DI(e,"da",t)}function DI(e,t,n=Zr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(cv(t,r,n),n){let a=n.parent;for(;a&&a.parent;)uv(a.parent.vnode)&&h6(r,t,n,a),a=a.parent}}function h6(e,t,n,r){const a=cv(t,e,r,!0);Zs(()=>{Tb(r[t],a)},n)}function cv(e,t,n=Zr,r=!1){if(n){const a=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;qs();const l=th(n),u=po(t,n,e,s);return l(),Qs(),u});return r?a.unshift(o):a.push(o),o}}const Yi=e=>(t,n=Zr)=>(!fv||e==="sp")&&cv(e,(...r)=>t(...r),n),dv=Yi("bm"),Ht=Yi("m"),FI=Yi("bu"),Ji=Yi("u"),Dn=Yi("bum"),Zs=Yi("um"),p6=Yi("sp"),v6=Yi("rtg"),m6=Yi("rtc");function g6(e,t=Zr){cv("ec",e,t)}function sn(e,t,n,r){let a;const o=n;if(st(e)||Rt(e)){a=new Array(e.length);for(let s=0,l=e.length;s<l;s++)a[s]=t(e[s],s,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let s=0;s<e;s++)a[s]=t(s+1,s,void 0,o)}else if(Kt(e))if(e[Symbol.iterator])a=Array.from(e,(s,l)=>t(s,l,void 0,o));else{const s=Object.keys(e);a=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];a[l]=t(e[c],c,l,o)}}else a=[];return a}function Gi(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(st(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const o=r.fn(...a);return o&&(o.key=r.key),o}:r.fn)}return e}function Ue(e,t,n={},r,a){if(Dr.isCE||Dr.parent&&Ld(Dr.parent)&&Dr.parent.isCE)return t!=="default"&&(n.name=t),ye("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),V();const s=o&&BI(o(n)),l=Fe(mt,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function BI(e){return e.some(t=>zn(t)?!(t.type===la||t.type===mt&&!BI(t.children)):!0)?e:null}function y6(e,t){const n={};for(const r in e)n[Ap(r)]=e[r];return n}const Wg=e=>e?tA(e)?hv(e)||e.proxy:Wg(e.parent):null,Nd=Sr(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=>Wg(e.parent),$root:e=>Wg(e.root),$emit:e=>e.emit,$options:e=>Hb(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Lb(e.update)}),$nextTick:e=>e.n||(e.n=bt.bind(e.proxy)),$watch:e=>u6.bind(e)}),hm=(e,t)=>e!==ir&&!e.__isScriptSetup&&cn(e,t),b6={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:l,appContext:u}=e;let c;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else{if(hm(r,t))return s[t]=1,r[t];if(a!==ir&&cn(a,t))return s[t]=2,a[t];if((c=e.propsOptions[0])&&cn(c,t))return s[t]=3,o[t];if(n!==ir&&cn(n,t))return s[t]=4,n[t];Xg&&(s[t]=0)}}const f=Nd[t];let d,p;if(f)return t==="$attrs"&&Ba(e.attrs,"get",""),f(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==ir&&cn(n,t))return s[t]=4,n[t];if(p=u.config.globalProperties,cn(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:o}=e;return hm(a,t)?(a[t]=n,!0):r!==ir&&cn(r,t)?(r[t]=n,!0):cn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:o}},s){let l;return!!n[s]||e!==ir&&cn(e,s)||hm(t,s)||(l=o[0])&&cn(l,s)||cn(r,s)||cn(Nd,s)||cn(a.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:cn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vr(){return HI().slots}function lu(){return HI().attrs}function HI(){const e=Gt();return e.setupContext||(e.setupContext=rA(e))}function wS(e){return st(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Xg=!0;function _6(e){const t=Hb(e),n=e.proxy,r=e.ctx;Xg=!1,t.beforeCreate&&SS(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:s,watch:l,provide:u,inject:c,created:f,beforeMount:d,mounted:p,beforeUpdate:g,updated:y,activated:m,deactivated:S,beforeDestroy:_,beforeUnmount:P,destroyed:A,unmounted:$,render:k,renderTracked:L,renderTriggered:B,errorCaptured:H,serverPrefetch:G,expose:j,inheritAttrs:W,components:Q,directives:ue,filters:se}=t;if(c&&w6(c,r,null),s)for(const X in s){const te=s[X];Pt(te)&&(r[X]=te.bind(n))}if(a){const X=a.call(n,n);Kt(X)&&(e.data=Sn(X))}if(Xg=!0,o)for(const X in o){const te=o[X],Y=Pt(te)?te.bind(n,n):Pt(te.get)?te.get.bind(n,n):xn,Z=!Pt(te)&&Pt(te.set)?te.set.bind(n):xn,ae=N({get:Y,set:Z});Object.defineProperty(r,X,{enumerable:!0,configurable:!0,get:()=>ae.value,set:ve=>ae.value=ve})}if(l)for(const X in l)UI(l[X],r,n,X);if(u){const X=Pt(u)?u.call(n):u;Reflect.ownKeys(X).forEach(te=>{nn(te,X[te])})}f&&SS(f,e,"c");function J(X,te){st(te)?te.forEach(Y=>X(Y.bind(n))):te&&X(te.bind(n))}if(J(dv,d),J(Ht,p),J(FI,g),J(Ji,y),J(f6,m),J(NI,S),J(g6,H),J(m6,L),J(v6,B),J(Dn,P),J(Zs,$),J(p6,G),st(j))if(j.length){const X=e.exposed||(e.exposed={});j.forEach(te=>{Object.defineProperty(X,te,{get:()=>n[te],set:Y=>n[te]=Y})})}else e.exposed||(e.exposed={});k&&e.render===xn&&(e.render=k),W!=null&&(e.inheritAttrs=W),Q&&(e.components=Q),ue&&(e.directives=ue)}function w6(e,t,n=xn){st(e)&&(e=Yg(e));for(const r in e){const a=e[r];let o;Kt(a)?"default"in a?o=dt(a.from||r,a.default,!0):o=dt(a.from||r):o=dt(a),Un(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[r]=o}}function SS(e,t,n){po(st(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function UI(e,t,n,r){const a=r.includes(".")?$I(n,r):()=>n[r];if(Rt(e)){const o=t[e];Pt(o)&&We(a,o)}else if(Pt(e))We(a,e.bind(n));else if(Kt(e))if(st(e))e.forEach(o=>UI(o,t,n,r));else{const o=Pt(e.handler)?e.handler.bind(n):t[e.handler];Pt(o)&&We(a,o,e)}}function Hb(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let u;return l?u=l:!a.length&&!n&&!r?u=t:(u={},a.length&&a.forEach(c=>v0(u,c,s,!0)),v0(u,t,s)),Kt(t)&&o.set(t,u),u}function v0(e,t,n,r=!1){const{mixins:a,extends:o}=t;o&&v0(e,o,n,!0),a&&a.forEach(s=>v0(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=S6[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const S6={data:TS,props:ES,emits:ES,methods:Td,computed:Td,beforeCreate:ya,created:ya,beforeMount:ya,mounted:ya,beforeUpdate:ya,updated:ya,beforeDestroy:ya,beforeUnmount:ya,destroyed:ya,unmounted:ya,activated:ya,deactivated:ya,errorCaptured:ya,serverPrefetch:ya,components:Td,directives:Td,watch:E6,provide:TS,inject:T6};function TS(e,t){return t?e?function(){return Sr(Pt(e)?e.call(this,this):e,Pt(t)?t.call(this,this):t)}:t:e}function T6(e,t){return Td(Yg(e),Yg(t))}function Yg(e){if(st(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ya(e,t){return e?[...new Set([].concat(e,t))]:t}function Td(e,t){return e?Sr(Object.create(null),e,t):t}function ES(e,t){return e?st(e)&&st(t)?[...new Set([...e,...t])]:Sr(Object.create(null),wS(e),wS(t??{})):t}function E6(e,t){if(!e)return t;if(!t)return e;const n=Sr(Object.create(null),e);for(const r in t)n[r]=ya(e[r],t[r]);return n}function VI(){return{app:null,config:{isNativeTag:l8,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let C6=0;function x6(e,t){return function(r,a=null){Pt(r)||(r=Sr({},r)),a!=null&&!Kt(a)&&(a=null);const o=VI(),s=new WeakSet;let l=!1;const u=o.app={_uid:C6++,_component:r,_props:a,_container:null,_context:o,_instance:null,version:Y6,get config(){return o.config},set config(c){},use(c,...f){return s.has(c)||(c&&Pt(c.install)?(s.add(c),c.install(u,...f)):Pt(c)&&(s.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const p=ye(r,a);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,c):e(p,c,d),l=!0,u._container=c,c.__vue_app__=u,hv(p.component)||p.component.proxy}},unmount(){l&&(e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Dd;Dd=u;try{return c()}finally{Dd=f}}};return u}}let Dd=null;function nn(e,t){if(Zr){let n=Zr.provides;const r=Zr.parent&&Zr.parent.provides;r===n&&(n=Zr.provides=Object.create(r)),n[e]=t}}function dt(e,t,n=!1){const r=Zr||Dr;if(r||Dd){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Dd._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&Pt(t)?t.call(r&&r.proxy):t}}const GI={},jI=()=>Object.create(GI),zI=e=>Object.getPrototypeOf(e)===GI;function I6(e,t,n,r=!1){const a={},o=jI();e.propsDefaults=Object.create(null),KI(e,t,a,o);for(const s in e.propsOptions[0])s in a||(a[s]=void 0);n?e.props=r?a:Mb(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function A6(e,t,n,r){const{props:a,attrs:o,vnode:{patchFlag:s}}=e,l=In(a),[u]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(iv(e.emitsOptions,p))continue;const g=t[p];if(u)if(cn(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const y=go(p);a[y]=Jg(u,l,y,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{KI(e,t,a,o)&&(c=!0);let f;for(const d in l)(!t||!cn(t,d)&&((f=Js(d))===d||!cn(t,f)))&&(u?n&&(n[d]!==void 0||n[f]!==void 0)&&(a[d]=Jg(u,l,d,void 0,e,!0)):delete a[d]);if(o!==l)for(const d in o)(!t||!cn(t,d))&&(delete o[d],c=!0)}c&&Bi(e.attrs,"set","")}function KI(e,t,n,r){const[a,o]=e.propsOptions;let s=!1,l;if(t)for(let u in t){if($d(u))continue;const c=t[u];let f;a&&cn(a,f=go(u))?!o||!o.includes(f)?n[f]=c:(l||(l={}))[f]=c:iv(e.emitsOptions,u)||(!(u in r)||c!==r[u])&&(r[u]=c,s=!0)}if(o){const u=In(n),c=l||ir;for(let f=0;f<o.length;f++){const d=o[f];n[d]=Jg(a,u,d,c[d],e,!cn(c,d))}}return s}function Jg(e,t,n,r,a,o){const s=e[n];if(s!=null){const l=cn(s,"default");if(l&&r===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&Pt(u)){const{propsDefaults:c}=a;if(n in c)r=c[n];else{const f=th(a);r=c[n]=u.call(null,t),f()}}else r=u}s[0]&&(o&&!l?r=!1:s[1]&&(r===""||r===Js(n))&&(r=!0))}return r}function WI(e,t,n=!1){const r=t.propsCache,a=r.get(e);if(a)return a;const o=e.props,s={},l=[];let u=!1;if(!Pt(e)){const f=d=>{u=!0;const[p,g]=WI(d,t,!0);Sr(s,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return Kt(e)&&r.set(e,Vu),Vu;if(st(o))for(let f=0;f<o.length;f++){const d=go(o[f]);CS(d)&&(s[d]=ir)}else if(o)for(const f in o){const d=go(f);if(CS(d)){const p=o[f],g=s[d]=st(p)||Pt(p)?{type:p}:Sr({},p);if(g){const y=AS(Boolean,g.type),m=AS(String,g.type);g[0]=y>-1,g[1]=m<0||y<m,(y>-1||cn(g,"default"))&&l.push(d)}}}const c=[s,l];return Kt(e)&&r.set(e,c),c}function CS(e){return e[0]!=="$"&&!$d(e)}function xS(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function IS(e,t){return xS(e)===xS(t)}function AS(e,t){return st(t)?t.findIndex(n=>IS(n,e)):Pt(t)&&IS(t,e)?0:-1}const XI=e=>e[0]==="_"||e==="$stable",Ub=e=>st(e)?e.map(ri):[ri(e)],P6=(e,t,n)=>{if(t._n)return t;const r=Ce((...a)=>Ub(t(...a)),n);return r._c=!1,r},YI=(e,t,n)=>{const r=e._ctx;for(const a in e){if(XI(a))continue;const o=e[a];if(Pt(o))t[a]=P6(a,o,r);else if(o!=null){const s=Ub(o);t[a]=()=>s}}},JI=(e,t)=>{const n=Ub(t);e.slots.default=()=>n},M6=(e,t)=>{const n=e.slots=jI();if(e.vnode.shapeFlag&32){const r=t._;r?(Sr(n,t),tI(n,"_",r,!0)):YI(t,n)}else t&&JI(e,t)},O6=(e,t,n)=>{const{vnode:r,slots:a}=e;let o=!0,s=ir;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Sr(a,t),!n&&l===1&&delete a._):(o=!t.$stable,YI(t,a)),s=t}else t&&(JI(e,t),s={default:1});if(o)for(const l in a)!XI(l)&&s[l]==null&&delete a[l]};function qg(e,t,n,r,a=!1){if(st(e)){e.forEach((p,g)=>qg(p,t&&(st(t)?t[g]:t),n,r,a));return}if(Ld(r)&&!a)return;const o=r.shapeFlag&4?hv(r.component)||r.component.proxy:r.el,s=a?null:o,{i:l,r:u}=e,c=t&&t.r,f=l.refs===ir?l.refs={}:l.refs,d=l.setupState;if(c!=null&&c!==u&&(Rt(c)?(f[c]=null,cn(d,c)&&(d[c]=null)):Un(c)&&(c.value=null)),Pt(u))Os(u,l,12,[s,f]);else{const p=Rt(u),g=Un(u);if(p||g){const y=()=>{if(e.f){const m=p?cn(d,u)?d[u]:f[u]:u.value;a?st(m)&&Tb(m,o):st(m)?m.includes(o)||m.push(o):p?(f[u]=[o],cn(d,u)&&(d[u]=f[u])):(u.value=[o],e.k&&(f[e.k]=u.value))}else p?(f[u]=s,cn(d,u)&&(d[u]=s)):g&&(u.value=s,e.k&&(f[e.k]=s))};s?(y.id=-1,Oa(y,n)):y()}}}const Oa=i6;function $6(e){return R6(e)}function R6(e,t){const n=nI();n.__VUE__=!0;const{insert:r,remove:a,patchProp:o,createElement:s,createText:l,createComment:u,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:g=xn,insertStaticContent:y}=e,m=(ce,me,Be,be=null,Oe=null,Ye=null,qe=void 0,Qe=null,et=!!me.dynamicChildren)=>{if(ce===me)return;ce&&!Il(ce,me)&&(be=pe(ce),ve(ce,Oe,Ye,!0),ce=null),me.patchFlag===-2&&(et=!1,me.dynamicChildren=null);const{type:je,ref:lt,shapeFlag:ut}=me;switch(je){case Nc:S(ce,me,Be,be);break;case la:_(ce,me,Be,be);break;case vm:ce==null&&P(me,Be,be,qe);break;case mt:Q(ce,me,Be,be,Oe,Ye,qe,Qe,et);break;default:ut&1?k(ce,me,Be,be,Oe,Ye,qe,Qe,et):ut&6?ue(ce,me,Be,be,Oe,Ye,qe,Qe,et):(ut&64||ut&128)&&je.process(ce,me,Be,be,Oe,Ye,qe,Qe,et,Ae)}lt!=null&&Oe&&qg(lt,ce&&ce.ref,Ye,me||ce,!me)},S=(ce,me,Be,be)=>{if(ce==null)r(me.el=l(me.children),Be,be);else{const Oe=me.el=ce.el;me.children!==ce.children&&c(Oe,me.children)}},_=(ce,me,Be,be)=>{ce==null?r(me.el=u(me.children||""),Be,be):me.el=ce.el},P=(ce,me,Be,be)=>{[ce.el,ce.anchor]=y(ce.children,me,Be,be,ce.el,ce.anchor)},A=({el:ce,anchor:me},Be,be)=>{let Oe;for(;ce&&ce!==me;)Oe=p(ce),r(ce,Be,be),ce=Oe;r(me,Be,be)},$=({el:ce,anchor:me})=>{let Be;for(;ce&&ce!==me;)Be=p(ce),a(ce),ce=Be;a(me)},k=(ce,me,Be,be,Oe,Ye,qe,Qe,et)=>{me.type==="svg"?qe="svg":me.type==="math"&&(qe="mathml"),ce==null?L(me,Be,be,Oe,Ye,qe,Qe,et):G(ce,me,Oe,Ye,qe,Qe,et)},L=(ce,me,Be,be,Oe,Ye,qe,Qe)=>{let et,je;const{props:lt,shapeFlag:ut,transition:Ke,dirs:ct}=ce;if(et=ce.el=s(ce.type,Ye,lt&&lt.is,lt),ut&8?f(et,ce.children):ut&16&&H(ce.children,et,null,be,Oe,pm(ce,Ye),qe,Qe),ct&&ll(ce,null,be,"created"),B(et,ce,ce.scopeId,qe,be),lt){for(const Ut in lt)Ut!=="value"&&!$d(Ut)&&o(et,Ut,null,lt[Ut],Ye,ce.children,be,Oe,Ee);"value"in lt&&o(et,"value",null,lt.value,Ye),(je=lt.onVnodeBeforeMount)&&Zo(je,be,ce)}ct&&ll(ce,null,be,"beforeMount");const Et=k6(Oe,Ke);Et&&Ke.beforeEnter(et),r(et,me,Be),((je=lt&&lt.onVnodeMounted)||Et||ct)&&Oa(()=>{je&&Zo(je,be,ce),Et&&Ke.enter(et),ct&&ll(ce,null,be,"mounted")},Oe)},B=(ce,me,Be,be,Oe)=>{if(Be&&g(ce,Be),be)for(let Ye=0;Ye<be.length;Ye++)g(ce,be[Ye]);if(Oe){let Ye=Oe.subTree;if(me===Ye){const qe=Oe.vnode;B(ce,qe,qe.scopeId,qe.slotScopeIds,Oe.parent)}}},H=(ce,me,Be,be,Oe,Ye,qe,Qe,et=0)=>{for(let je=et;je<ce.length;je++){const lt=ce[je]=Qe?bs(ce[je]):ri(ce[je]);m(null,lt,me,Be,be,Oe,Ye,qe,Qe)}},G=(ce,me,Be,be,Oe,Ye,qe)=>{const Qe=me.el=ce.el;let{patchFlag:et,dynamicChildren:je,dirs:lt}=me;et|=ce.patchFlag&16;const ut=ce.props||ir,Ke=me.props||ir;let ct;if(Be&&ul(Be,!1),(ct=Ke.onVnodeBeforeUpdate)&&Zo(ct,Be,me,ce),lt&&ll(me,ce,Be,"beforeUpdate"),Be&&ul(Be,!0),je?j(ce.dynamicChildren,je,Qe,Be,be,pm(me,Oe),Ye):qe||te(ce,me,Qe,null,Be,be,pm(me,Oe),Ye,!1),et>0){if(et&16)W(Qe,me,ut,Ke,Be,be,Oe);else if(et&2&&ut.class!==Ke.class&&o(Qe,"class",null,Ke.class,Oe),et&4&&o(Qe,"style",ut.style,Ke.style,Oe),et&8){const Et=me.dynamicProps;for(let Ut=0;Ut<Et.length;Ut++){const en=Et[Ut],gt=ut[en],ge=Ke[en];(ge!==gt||en==="value")&&o(Qe,en,gt,ge,Oe,ce.children,Be,be,Ee)}}et&1&&ce.children!==me.children&&f(Qe,me.children)}else!qe&&je==null&&W(Qe,me,ut,Ke,Be,be,Oe);((ct=Ke.onVnodeUpdated)||lt)&&Oa(()=>{ct&&Zo(ct,Be,me,ce),lt&&ll(me,ce,Be,"updated")},be)},j=(ce,me,Be,be,Oe,Ye,qe)=>{for(let Qe=0;Qe<me.length;Qe++){const et=ce[Qe],je=me[Qe],lt=et.el&&(et.type===mt||!Il(et,je)||et.shapeFlag&70)?d(et.el):Be;m(et,je,lt,null,be,Oe,Ye,qe,!0)}},W=(ce,me,Be,be,Oe,Ye,qe)=>{if(Be!==be){if(Be!==ir)for(const Qe in Be)!$d(Qe)&&!(Qe in be)&&o(ce,Qe,Be[Qe],null,qe,me.children,Oe,Ye,Ee);for(const Qe in be){if($d(Qe))continue;const et=be[Qe],je=Be[Qe];et!==je&&Qe!=="value"&&o(ce,Qe,je,et,qe,me.children,Oe,Ye,Ee)}"value"in be&&o(ce,"value",Be.value,be.value,qe)}},Q=(ce,me,Be,be,Oe,Ye,qe,Qe,et)=>{const je=me.el=ce?ce.el:l(""),lt=me.anchor=ce?ce.anchor:l("");let{patchFlag:ut,dynamicChildren:Ke,slotScopeIds:ct}=me;ct&&(Qe=Qe?Qe.concat(ct):ct),ce==null?(r(je,Be,be),r(lt,Be,be),H(me.children||[],Be,lt,Oe,Ye,qe,Qe,et)):ut>0&&ut&64&&Ke&&ce.dynamicChildren?(j(ce.dynamicChildren,Ke,Be,Oe,Ye,qe,Qe),(me.key!=null||Oe&&me===Oe.subTree)&&Vb(ce,me,!0)):te(ce,me,Be,lt,Oe,Ye,qe,Qe,et)},ue=(ce,me,Be,be,Oe,Ye,qe,Qe,et)=>{me.slotScopeIds=Qe,ce==null?me.shapeFlag&512?Oe.ctx.activate(me,Be,be,qe,et):se(me,Be,be,Oe,Ye,qe,et):ne(ce,me,et)},se=(ce,me,Be,be,Oe,Ye,qe)=>{const Qe=ce.component=G6(ce,be,Oe);if(uv(ce)&&(Qe.ctx.renderer=Ae),j6(Qe),Qe.asyncDep){if(Oe&&Oe.registerDep(Qe,J),!ce.el){const et=Qe.subTree=ye(la);_(null,et,me,Be)}}else J(Qe,ce,me,Be,Oe,Ye,qe)},ne=(ce,me,Be)=>{const be=me.component=ce.component;if(n6(ce,me,Be))if(be.asyncDep&&!be.asyncResolved){X(be,me,Be);return}else be.next=me,J8(be.update),be.effect.dirty=!0,be.update();else me.el=ce.el,be.vnode=me},J=(ce,me,Be,be,Oe,Ye,qe)=>{const Qe=()=>{if(ce.isMounted){let{next:lt,bu:ut,u:Ke,parent:ct,vnode:Et}=ce;{const Ne=qI(ce);if(Ne){lt&&(lt.el=Et.el,X(ce,lt,qe)),Ne.asyncDep.then(()=>{ce.isUnmounted||Qe()});return}}let Ut=lt,en;ul(ce,!1),lt?(lt.el=Et.el,X(ce,lt,qe)):lt=Et,ut&&Pp(ut),(en=lt.props&&lt.props.onVnodeBeforeUpdate)&&Zo(en,ct,lt,Et),ul(ce,!0);const gt=dm(ce),ge=ce.subTree;ce.subTree=gt,m(ge,gt,d(ge.el),pe(ge),ce,Oe,Ye),lt.el=gt.el,Ut===null&&r6(ce,gt.el),Ke&&Oa(Ke,Oe),(en=lt.props&&lt.props.onVnodeUpdated)&&Oa(()=>Zo(en,ct,lt,Et),Oe)}else{let lt;const{el:ut,props:Ke}=me,{bm:ct,m:Et,parent:Ut}=ce,en=Ld(me);if(ul(ce,!1),ct&&Pp(ct),!en&&(lt=Ke&&Ke.onVnodeBeforeMount)&&Zo(lt,Ut,me),ul(ce,!0),ut&&ze){const gt=()=>{ce.subTree=dm(ce),ze(ut,ce.subTree,ce,Oe,null)};en?me.type.__asyncLoader().then(()=>!ce.isUnmounted&&gt()):gt()}else{const gt=ce.subTree=dm(ce);m(null,gt,Be,be,ce,Oe,Ye),me.el=gt.el}if(Et&&Oa(Et,Oe),!en&&(lt=Ke&&Ke.onVnodeMounted)){const gt=me;Oa(()=>Zo(lt,Ut,gt),Oe)}(me.shapeFlag&256||Ut&&Ld(Ut.vnode)&&Ut.vnode.shapeFlag&256)&&ce.a&&Oa(ce.a,Oe),ce.isMounted=!0,me=Be=be=null}},et=ce.effect=new Cb(Qe,xn,()=>Lb(je),ce.scope),je=ce.update=()=>{et.dirty&&et.run()};je.id=ce.uid,ul(ce,!0),je()},X=(ce,me,Be)=>{me.component=ce;const be=ce.vnode.props;ce.vnode=me,ce.next=null,A6(ce,me.props,be,Be),O6(ce,me.children,Be),qs(),gS(ce),Qs()},te=(ce,me,Be,be,Oe,Ye,qe,Qe,et=!1)=>{const je=ce&&ce.children,lt=ce?ce.shapeFlag:0,ut=me.children,{patchFlag:Ke,shapeFlag:ct}=me;if(Ke>0){if(Ke&128){Z(je,ut,Be,be,Oe,Ye,qe,Qe,et);return}else if(Ke&256){Y(je,ut,Be,be,Oe,Ye,qe,Qe,et);return}}ct&8?(lt&16&&Ee(je,Oe,Ye),ut!==je&&f(Be,ut)):lt&16?ct&16?Z(je,ut,Be,be,Oe,Ye,qe,Qe,et):Ee(je,Oe,Ye,!0):(lt&8&&f(Be,""),ct&16&&H(ut,Be,be,Oe,Ye,qe,Qe,et))},Y=(ce,me,Be,be,Oe,Ye,qe,Qe,et)=>{ce=ce||Vu,me=me||Vu;const je=ce.length,lt=me.length,ut=Math.min(je,lt);let Ke;for(Ke=0;Ke<ut;Ke++){const ct=me[Ke]=et?bs(me[Ke]):ri(me[Ke]);m(ce[Ke],ct,Be,null,Oe,Ye,qe,Qe,et)}je>lt?Ee(ce,Oe,Ye,!0,!1,ut):H(me,Be,be,Oe,Ye,qe,Qe,et,ut)},Z=(ce,me,Be,be,Oe,Ye,qe,Qe,et)=>{let je=0;const lt=me.length;let ut=ce.length-1,Ke=lt-1;for(;je<=ut&&je<=Ke;){const ct=ce[je],Et=me[je]=et?bs(me[je]):ri(me[je]);if(Il(ct,Et))m(ct,Et,Be,null,Oe,Ye,qe,Qe,et);else break;je++}for(;je<=ut&&je<=Ke;){const ct=ce[ut],Et=me[Ke]=et?bs(me[Ke]):ri(me[Ke]);if(Il(ct,Et))m(ct,Et,Be,null,Oe,Ye,qe,Qe,et);else break;ut--,Ke--}if(je>ut){if(je<=Ke){const ct=Ke+1,Et=ct<lt?me[ct].el:be;for(;je<=Ke;)m(null,me[je]=et?bs(me[je]):ri(me[je]),Be,Et,Oe,Ye,qe,Qe,et),je++}}else if(je>Ke)for(;je<=ut;)ve(ce[je],Oe,Ye,!0),je++;else{const ct=je,Et=je,Ut=new Map;for(je=Et;je<=Ke;je++){const it=me[je]=et?bs(me[je]):ri(me[je]);it.key!=null&&Ut.set(it.key,je)}let en,gt=0;const ge=Ke-Et+1;let Ne=!1,$e=0;const Te=new Array(ge);for(je=0;je<ge;je++)Te[je]=0;for(je=ct;je<=ut;je++){const it=ce[je];if(gt>=ge){ve(it,Oe,Ye,!0);continue}let Pe;if(it.key!=null)Pe=Ut.get(it.key);else for(en=Et;en<=Ke;en++)if(Te[en-Et]===0&&Il(it,me[en])){Pe=en;break}Pe===void 0?ve(it,Oe,Ye,!0):(Te[Pe-Et]=je+1,Pe>=$e?$e=Pe:Ne=!0,m(it,me[Pe],Be,null,Oe,Ye,qe,Qe,et),gt++)}const De=Ne?L6(Te):Vu;for(en=De.length-1,je=ge-1;je>=0;je--){const it=Et+je,Pe=me[it],rt=it+1<lt?me[it+1].el:be;Te[je]===0?m(null,Pe,Be,rt,Oe,Ye,qe,Qe,et):Ne&&(en<0||je!==De[en]?ae(Pe,Be,rt,2):en--)}}},ae=(ce,me,Be,be,Oe=null)=>{const{el:Ye,type:qe,transition:Qe,children:et,shapeFlag:je}=ce;if(je&6){ae(ce.component.subTree,me,Be,be);return}if(je&128){ce.suspense.move(me,Be,be);return}if(je&64){qe.move(ce,me,Be,Ae);return}if(qe===mt){r(Ye,me,Be);for(let ut=0;ut<et.length;ut++)ae(et[ut],me,Be,be);r(ce.anchor,me,Be);return}if(qe===vm){A(ce,me,Be);return}if(be!==2&&je&1&&Qe)if(be===0)Qe.beforeEnter(Ye),r(Ye,me,Be),Oa(()=>Qe.enter(Ye),Oe);else{const{leave:ut,delayLeave:Ke,afterLeave:ct}=Qe,Et=()=>r(Ye,me,Be),Ut=()=>{ut(Ye,()=>{Et(),ct&&ct()})};Ke?Ke(Ye,Et,Ut):Ut()}else r(Ye,me,Be)},ve=(ce,me,Be,be=!1,Oe=!1)=>{const{type:Ye,props:qe,ref:Qe,children:et,dynamicChildren:je,shapeFlag:lt,patchFlag:ut,dirs:Ke}=ce;if(Qe!=null&&qg(Qe,null,Be,ce,!0),lt&256){me.ctx.deactivate(ce);return}const ct=lt&1&&Ke,Et=!Ld(ce);let Ut;if(Et&&(Ut=qe&&qe.onVnodeBeforeUnmount)&&Zo(Ut,me,ce),lt&6)Ge(ce.component,Be,be);else{if(lt&128){ce.suspense.unmount(Be,be);return}ct&&ll(ce,null,me,"beforeUnmount"),lt&64?ce.type.remove(ce,me,Be,Oe,Ae,be):je&&(Ye!==mt||ut>0&&ut&64)?Ee(je,me,Be,!1,!0):(Ye===mt&&ut&384||!Oe&&lt&16)&&Ee(et,me,Be),be&&we(ce)}(Et&&(Ut=qe&&qe.onVnodeUnmounted)||ct)&&Oa(()=>{Ut&&Zo(Ut,me,ce),ct&&ll(ce,null,me,"unmounted")},Be)},we=ce=>{const{type:me,el:Be,anchor:be,transition:Oe}=ce;if(me===mt){Me(Be,be);return}if(me===vm){$(ce);return}const Ye=()=>{a(Be),Oe&&!Oe.persisted&&Oe.afterLeave&&Oe.afterLeave()};if(ce.shapeFlag&1&&Oe&&!Oe.persisted){const{leave:qe,delayLeave:Qe}=Oe,et=()=>qe(Be,Ye);Qe?Qe(ce.el,Ye,et):et()}else Ye()},Me=(ce,me)=>{let Be;for(;ce!==me;)Be=p(ce),a(ce),ce=Be;a(me)},Ge=(ce,me,Be)=>{const{bum:be,scope:Oe,update:Ye,subTree:qe,um:Qe}=ce;be&&Pp(be),Oe.stop(),Ye&&(Ye.active=!1,ve(qe,ce,me,Be)),Qe&&Oa(Qe,me),Oa(()=>{ce.isUnmounted=!0},me),me&&me.pendingBranch&&!me.isUnmounted&&ce.asyncDep&&!ce.asyncResolved&&ce.suspenseId===me.pendingId&&(me.deps--,me.deps===0&&me.resolve())},Ee=(ce,me,Be,be=!1,Oe=!1,Ye=0)=>{for(let qe=Ye;qe<ce.length;qe++)ve(ce[qe],me,Be,be,Oe)},pe=ce=>ce.shapeFlag&6?pe(ce.component.subTree):ce.shapeFlag&128?ce.suspense.next():p(ce.anchor||ce.el);let _e=!1;const He=(ce,me,Be)=>{ce==null?me._vnode&&ve(me._vnode,null,null,!0):m(me._vnode||null,ce,me,null,null,null,Be),_e||(_e=!0,gS(),AI(),_e=!1),me._vnode=ce},Ae={p:m,um:ve,m:ae,r:we,mt:se,mc:H,pc:te,pbc:j,n:pe,o:e};let ke,ze;return{render:He,hydrate:ke,createApp:x6(He,ke)}}function pm({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ul({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function k6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vb(e,t,n=!1){const r=e.children,a=t.children;if(st(r)&&st(a))for(let o=0;o<r.length;o++){const s=r[o];let l=a[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=a[o]=bs(a[o]),l.el=s.el),n||Vb(s,l)),l.type===Nc&&(l.el=s.el)}}function L6(e){const t=e.slice(),n=[0];let r,a,o,s,l;const u=e.length;for(r=0;r<u;r++){const c=e[r];if(c!==0){if(a=n[n.length-1],e[a]<c){t[r]=a,n.push(r);continue}for(o=0,s=n.length-1;o<s;)l=o+s>>1,e[n[l]]<c?o=l+1:s=l;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}function qI(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qI(t)}const N6=e=>e.__isTeleport,Fd=e=>e&&(e.disabled||e.disabled===""),PS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,MS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qg=(e,t)=>{const n=e&&e.to;return Rt(n)?t?t(n):null:n},D6={name:"Teleport",__isTeleport:!0,process(e,t,n,r,a,o,s,l,u,c){const{mc:f,pc:d,pbc:p,o:{insert:g,querySelector:y,createText:m,createComment:S}}=c,_=Fd(t.props);let{shapeFlag:P,children:A,dynamicChildren:$}=t;if(e==null){const k=t.el=m(""),L=t.anchor=m("");g(k,n,r),g(L,n,r);const B=t.target=Qg(t.props,y),H=t.targetAnchor=m("");B&&(g(H,B),s==="svg"||PS(B)?s="svg":(s==="mathml"||MS(B))&&(s="mathml"));const G=(j,W)=>{P&16&&f(A,j,W,a,o,s,l,u)};_?G(n,L):B&&G(B,H)}else{t.el=e.el;const k=t.anchor=e.anchor,L=t.target=e.target,B=t.targetAnchor=e.targetAnchor,H=Fd(e.props),G=H?n:L,j=H?k:B;if(s==="svg"||PS(L)?s="svg":(s==="mathml"||MS(L))&&(s="mathml"),$?(p(e.dynamicChildren,$,G,a,o,s,l),Vb(e,t,!0)):u||d(e,t,G,j,a,o,s,l,!1),_)H?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kh(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=Qg(t.props,y);W&&kh(t,W,null,c,0)}else H&&kh(t,L,B,c,1)}QI(t)},remove(e,t,n,r,{um:a,o:{remove:o}},s){const{shapeFlag:l,children:u,anchor:c,targetAnchor:f,target:d,props:p}=e;if(d&&o(f),s&&o(c),l&16){const g=s||!Fd(p);for(let y=0;y<u.length;y++){const m=u[y];a(m,t,n,g,!!m.dynamicChildren)}}},move:kh,hydrate:F6};function kh(e,t,n,{o:{insert:r},m:a},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:l,shapeFlag:u,children:c,props:f}=e,d=o===2;if(d&&r(s,t,n),(!d||Fd(f))&&u&16)for(let p=0;p<c.length;p++)a(c[p],t,n,2);d&&r(l,t,n)}function F6(e,t,n,r,a,o,{o:{nextSibling:s,parentNode:l,querySelector:u}},c){const f=t.target=Qg(t.props,u);if(f){const d=f._lpa||f.firstChild;if(t.shapeFlag&16)if(Fd(t.props))t.anchor=c(s(e),t,l(e),n,r,a,o),t.targetAnchor=d;else{t.anchor=s(e);let p=d;for(;p;)if(p=s(p),p&&p.nodeType===8&&p.data==="teleport anchor"){t.targetAnchor=p,f._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(d,t,f,n,r,a,o)}QI(t)}return t.anchor&&s(t.anchor)}const Lc=D6;function QI(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const mt=Symbol.for("v-fgt"),Nc=Symbol.for("v-txt"),la=Symbol.for("v-cmt"),vm=Symbol.for("v-stc"),Bd=[];let Lo=null;function V(e=!1){Bd.push(Lo=e?null:[])}function B6(){Bd.pop(),Lo=Bd[Bd.length-1]||null}let df=1;function OS(e){df+=e}function ZI(e){return e.dynamicChildren=df>0?Lo||Vu:null,B6(),df>0&&Lo&&Lo.push(e),e}function ie(e,t,n,r,a,o){return ZI(de(e,t,n,r,a,o,!0))}function Fe(e,t,n,r,a){return ZI(ye(e,t,n,r,a,!0))}function zn(e){return e?e.__v_isVNode===!0:!1}function Il(e,t){return e.type===t.type&&e.key===t.key}const eA=({key:e})=>e??null,Mp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||Un(e)||Pt(e)?{i:Dr,r:e,k:t,f:!!n}:e:null);function de(e,t=null,n=null,r=0,a=null,o=e===mt?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eA(t),ref:t&&Mp(t),scopeId:sv,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Dr};return l?(Gb(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=Rt(n)?8:16),df>0&&!s&&Lo&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Lo.push(u),u}const ye=H6;function H6(e,t=null,n=null,r=0,a=null,o=!1){if((!e||e===OI)&&(e=la),zn(e)){const l=ji(e,t,!0);return n&&Gb(l,n),df>0&&!o&&Lo&&(l.shapeFlag&6?Lo[Lo.indexOf(e)]=l:Lo.push(l)),l.patchFlag|=-2,l}if(X6(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:l,style:u}=t;l&&!Rt(l)&&(t.class=K(l)),Kt(u)&&(_I(u)&&!st(u)&&(u=Sr({},u)),t.style=vt(u))}const s=Rt(e)?1:o6(e)?128:N6(e)?64:Kt(e)?4:Pt(e)?2:0;return de(e,t,n,r,a,s,o,!0)}function ac(e){return e?_I(e)||zI(e)?Sr({},e):e:null}function ji(e,t,n=!1,r=!1){const{props:a,ref:o,patchFlag:s,children:l,transition:u}=e,c=t?rn(a||{},t):a,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&eA(c),ref:t&&t.ref?n&&o?st(o)?o.concat(Mp(t)):[o,Mp(t)]:Mp(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==mt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ji(e.ssContent),ssFallback:e.ssFallback&&ji(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&(f.transition=u.clone(f)),f}function dn(e=" ",t=0){return ye(Nc,null,e,t)}function Ie(e="",t=!1){return t?(V(),Fe(la,null,e)):ye(la,null,e)}function ri(e){return e==null||typeof e=="boolean"?ye(la):st(e)?ye(mt,null,e.slice()):typeof e=="object"?bs(e):ye(Nc,null,String(e))}function bs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ji(e)}function Gb(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(st(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),Gb(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!zI(t)?t._ctx=Dr:a===3&&Dr&&(Dr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pt(t)?(t={default:t,_ctx:Dr},n=32):(t=String(t),r&64?(n=16,t=[dn(t)]):n=8);e.children=t,e.shapeFlag|=n}function rn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=K([t.class,r.class]));else if(a==="style")t.style=vt([t.style,r.style]);else if(tv(a)){const o=t[a],s=r[a];s&&o!==s&&!(st(o)&&o.includes(s))&&(t[a]=o?[].concat(o,s):s)}else a!==""&&(t[a]=r[a])}return t}function Zo(e,t,n,r=null){po(e,t,7,[n,r])}const U6=VI();let V6=0;function G6(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||U6,o={uid:V6++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new iI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:WI(r,a),emitsOptions:MI(r,a),emit:null,emitted:null,propsDefaults:ir,inheritAttrs:r.inheritAttrs,ctx:ir,data:ir,props:ir,attrs:ir,slots:ir,refs:ir,setupState:ir,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Z8.bind(null,o),e.ce&&e.ce(o),o}let Zr=null;const Gt=()=>Zr||Dr;let m0,Zg;{const e=nI(),t=(n,r)=>{let a;return(a=e[n])||(a=e[n]=[]),a.push(r),o=>{a.length>1?a.forEach(s=>s(o)):a[0](o)}};m0=t("__VUE_INSTANCE_SETTERS__",n=>Zr=n),Zg=t("__VUE_SSR_SETTERS__",n=>fv=n)}const th=e=>{const t=Zr;return m0(e),e.scope.on(),()=>{e.scope.off(),m0(t)}},$S=()=>{Zr&&Zr.scope.off(),m0(null)};function tA(e){return e.vnode.shapeFlag&4}let fv=!1;function j6(e,t=!1){t&&Zg(t);const{props:n,children:r}=e.vnode,a=tA(e);I6(e,n,a,t),M6(e,r);const o=a?z6(e,t):void 0;return t&&Zg(!1),o}function z6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,b6);const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?rA(e):null,o=th(e);qs();const s=Os(r,e,0,[e.props,a]);if(Qs(),o(),rf(s)){if(s.then($S,$S),t)return s.then(l=>{RS(e,l,t)}).catch(l=>{ov(l,e,0)});e.asyncDep=s}else RS(e,s,t)}else nA(e,t)}function RS(e,t,n){Pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=EI(t)),nA(e,n)}let kS;function nA(e,t,n){const r=e.type;if(!e.render){if(!t&&kS&&!r.render){const a=r.template||Hb(e).template;if(a){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:u}=r,c=Sr(Sr({isCustomElement:o,delimiters:l},s),u);r.render=kS(a,c)}}e.render=r.render||xn}{const a=th(e);qs();try{_6(e)}finally{Qs(),a()}}}const K6={get(e,t){return Ba(e,"get",""),e[t]}};function rA(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,K6),slots:e.slots,emit:e.emit,expose:t}}function hv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(EI(ju(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nd)return Nd[n](e)},has(t,n){return n in t||n in Nd}}))}function W6(e,t=!0){return Pt(e)?e.displayName||e.name:e.name||t&&e.__name}function X6(e){return Pt(e)&&"__vccOpts"in e}const N=(e,t)=>SI(e,t,fv);function _t(e,t,n){const r=arguments.length;return r===2?Kt(t)&&!st(t)?zn(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zn(n)&&(n=[n]),ye(e,t,n))}const Y6="3.4.27",J6=xn;/**
* @vue/runtime-dom v3.4.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const q6="http://www.w3.org/2000/svg",Q6="http://www.w3.org/1998/Math/MathML",_s=typeof document<"u"?document:null,LS=_s&&_s.createElement("template"),Z6={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t==="svg"?_s.createElementNS(q6,e):t==="mathml"?_s.createElementNS(Q6,e):_s.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>_s.createTextNode(e),createComment:e=>_s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>_s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,o){const s=n?n.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{LS.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const l=LS.content;if(r==="svg"||r==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ss="transition",nd="animation",oc=Symbol("_vtc"),Tr=(e,{slots:t})=>_t(d6,oA(e),t);Tr.displayName="Transition";const aA={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},eL=Tr.props=Sr({},kI,aA),cl=(e,t=[])=>{st(e)?e.forEach(n=>n(...t)):e&&e(...t)},NS=e=>e?st(e)?e.some(t=>t.length>1):e.length>1:!1;function oA(e){const t={};for(const Q in e)Q in aA||(t[Q]=e[Q]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:f=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=tL(a),m=y&&y[0],S=y&&y[1],{onBeforeEnter:_,onEnter:P,onEnterCancelled:A,onLeave:$,onLeaveCancelled:k,onBeforeAppear:L=_,onAppear:B=P,onAppearCancelled:H=A}=t,G=(Q,ue,se)=>{fs(Q,ue?f:l),fs(Q,ue?c:s),se&&se()},j=(Q,ue)=>{Q._isLeaving=!1,fs(Q,d),fs(Q,g),fs(Q,p),ue&&ue()},W=Q=>(ue,se)=>{const ne=Q?B:P,J=()=>G(ue,Q,se);cl(ne,[ue,J]),DS(()=>{fs(ue,Q?u:o),Oi(ue,Q?f:l),NS(ne)||BS(ue,r,m,J)})};return Sr(t,{onBeforeEnter(Q){cl(_,[Q]),Oi(Q,o),Oi(Q,s)},onBeforeAppear(Q){cl(L,[Q]),Oi(Q,u),Oi(Q,c)},onEnter:W(!1),onAppear:W(!0),onLeave(Q,ue){Q._isLeaving=!0;const se=()=>j(Q,ue);Oi(Q,d),Oi(Q,p),sA(),DS(()=>{Q._isLeaving&&(fs(Q,d),Oi(Q,g),NS($)||BS(Q,r,S,se))}),cl($,[Q,se])},onEnterCancelled(Q){G(Q,!1),cl(A,[Q])},onAppearCancelled(Q){G(Q,!0),cl(H,[Q])},onLeaveCancelled(Q){j(Q),cl(k,[Q])}})}function tL(e){if(e==null)return null;if(Kt(e))return[mm(e.enter),mm(e.leave)];{const t=mm(e);return[t,t]}}function mm(e){return f8(e)}function Oi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[oc]||(e[oc]=new Set)).add(t)}function fs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[oc];n&&(n.delete(t),n.size||(e[oc]=void 0))}function DS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nL=0;function BS(e,t,n,r){const a=e._endId=++nL,o=()=>{a===e._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:l,propCount:u}=iA(e,t);if(!s)return r();const c=s+"end";let f=0;const d=()=>{e.removeEventListener(c,p),o()},p=g=>{g.target===e&&++f>=u&&d()};setTimeout(()=>{f<u&&d()},l+1),e.addEventListener(c,p)}function iA(e,t){const n=window.getComputedStyle(e),r=y=>(n[y]||"").split(", "),a=r(`${ss}Delay`),o=r(`${ss}Duration`),s=HS(a,o),l=r(`${nd}Delay`),u=r(`${nd}Duration`),c=HS(l,u);let f=null,d=0,p=0;t===ss?s>0&&(f=ss,d=s,p=o.length):t===nd?c>0&&(f=nd,d=c,p=u.length):(d=Math.max(s,c),f=d>0?s>c?ss:nd:null,p=f?f===ss?o.length:u.length:0);const g=f===ss&&/\b(transform|all)(,|$)/.test(r(`${ss}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:g}}function HS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>US(n)+US(e[r])))}function US(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function sA(){return document.body.offsetHeight}function rL(e,t,n){const r=e[oc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const g0=Symbol("_vod"),lA=Symbol("_vsh"),bn={beforeMount(e,{value:t},{transition:n}){e[g0]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):rd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),rd(e,!0),r.enter(e)):r.leave(e,()=>{rd(e,!1)}):rd(e,t))},beforeUnmount(e,{value:t}){rd(e,t)}};function rd(e,t){e.style.display=t?e[g0]:"none",e[lA]=!t}const aL=Symbol(""),oL=/(^|;)\s*display\s*:/;function iL(e,t,n){const r=e.style,a=Rt(n);let o=!1;if(n&&!a){if(t)if(Rt(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&Op(r,l,"")}else for(const s in t)n[s]==null&&Op(r,s,"");for(const s in n)s==="display"&&(o=!0),Op(r,s,n[s])}else if(a){if(t!==n){const s=r[aL];s&&(n+=";"+s),r.cssText=n,o=oL.test(n)}}else t&&e.removeAttribute("style");g0 in e&&(e[g0]=o?r.display:"",e[lA]&&(r.display="none"))}const VS=/\s*!important$/;function Op(e,t,n){if(st(n))n.forEach(r=>Op(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=sL(e,t);VS.test(n)?e.setProperty(Js(r),n.replace(VS,""),"important"):e[r]=n}}const GS=["Webkit","Moz","ms"],gm={};function sL(e,t){const n=gm[t];if(n)return n;let r=go(t);if(r!=="filter"&&r in e)return gm[t]=r;r=eh(r);for(let a=0;a<GS.length;a++){const o=GS[a]+r;if(o in e)return gm[t]=o}return t}const jS="http://www.w3.org/1999/xlink";function lL(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(jS,t.slice(6,t.length)):e.setAttributeNS(jS,t,n);else{const o=y8(t);n==null||o&&!rI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function uL(e,t,n,r,a,o,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,a,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const c=l==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let u=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=rI(n):n==null&&c==="string"?(n="",u=!0):c==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function Ts(e,t,n,r){e.addEventListener(t,n,r)}function cL(e,t,n,r){e.removeEventListener(t,n,r)}const zS=Symbol("_vei");function dL(e,t,n,r,a=null){const o=e[zS]||(e[zS]={}),s=o[t];if(r&&s)s.value=r;else{const[l,u]=fL(t);if(r){const c=o[t]=vL(r,a);Ts(e,l,c,u)}else s&&(cL(e,l,s,u),o[t]=void 0)}}const KS=/(?:Once|Passive|Capture)$/;function fL(e){let t;if(KS.test(e)){t={};let r;for(;r=e.match(KS);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Js(e.slice(2)),t]}let ym=0;const hL=Promise.resolve(),pL=()=>ym||(hL.then(()=>ym=0),ym=Date.now());function vL(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;po(mL(r,n.value),t,5,[r])};return n.value=e,n.attached=pL(),n}function mL(e,t){if(st(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const WS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gL=(e,t,n,r,a,o,s,l,u)=>{const c=a==="svg";t==="class"?rL(e,r,c):t==="style"?iL(e,n,r):tv(t)?Sb(t)||dL(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yL(e,t,r,c))?uL(e,t,r,o,s,l,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),lL(e,t,r,c))};function yL(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&WS(t)&&Pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return WS(t)&&Rt(n)?!1:t in e}const uA=new WeakMap,cA=new WeakMap,y0=Symbol("_moveCb"),XS=Symbol("_enterCb"),dA={name:"TransitionGroup",props:Sr({},eL,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Gt(),r=RI();let a,o;return Ji(()=>{if(!a.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!TL(a[0].el,n.vnode.el,s))return;a.forEach(_L),a.forEach(wL);const l=a.filter(SL);sA(),l.forEach(u=>{const c=u.el,f=c.style;Oi(c,s),f.transform=f.webkitTransform=f.transitionDuration="";const d=c[y0]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",d),c[y0]=null,fs(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=In(e),l=oA(s);let u=s.tag||mt;if(a=[],o)for(let c=0;c<o.length;c++){const f=o[c];f.el&&f.el instanceof Element&&(a.push(f),cf(f,uf(f,l,r,n)),uA.set(f,f.el.getBoundingClientRect()))}o=t.default?Bb(t.default()):[];for(let c=0;c<o.length;c++){const f=o[c];f.key!=null&&cf(f,uf(f,l,r,n))}return ye(u,null,o)}}},bL=e=>delete e.mode;dA.props;const fA=dA;function _L(e){const t=e.el;t[y0]&&t[y0](),t[XS]&&t[XS]()}function wL(e){cA.set(e,e.el.getBoundingClientRect())}function SL(e){const t=uA.get(e),n=cA.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${a}px)`,o.transitionDuration="0s",e}}function TL(e,t,n){const r=e.cloneNode(),a=e[oc];a&&a.forEach(l=>{l.split(/\s+/).forEach(u=>u&&r.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=iA(r);return o.removeChild(r),s}const ic=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?n=>Pp(t,n):t};function EL(e){e.target.composing=!0}function YS(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hi=Symbol("_assign"),jb={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e[Hi]=ic(a);const o=r||a.props&&a.props.type==="number";Ts(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Vg(l)),e[Hi](l)}),n&&Ts(e,"change",()=>{e.value=e.value.trim()}),t||(Ts(e,"compositionstart",EL),Ts(e,"compositionend",YS),Ts(e,"change",YS))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},o){if(e[Hi]=ic(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?Vg(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===l)||(e.value=l))}},b0={deep:!0,created(e,t,n){e[Hi]=ic(n),Ts(e,"change",()=>{const r=e._modelValue,a=pA(e),o=e.checked,s=e[Hi];if(st(r)){const l=aI(r,a),u=l!==-1;if(o&&!u)s(r.concat(a));else if(!o&&u){const c=[...r];c.splice(l,1),s(c)}}else if(nv(r)){const l=new Set(r);o?l.add(a):l.delete(a),s(l)}else s(vA(e,o))})},mounted:JS,beforeUpdate(e,t,n){e[Hi]=ic(n),JS(e,t,n)}};function JS(e,{value:t,oldValue:n},r){e._modelValue=t,st(t)?e.checked=aI(t,r.props.value)>-1:nv(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=rc(t,vA(e,!0)))}const hA={created(e,{value:t},n){e.checked=rc(t,n.props.value),e[Hi]=ic(n),Ts(e,"change",()=>{e[Hi](pA(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Hi]=ic(r),t!==n&&(e.checked=rc(t,r.props.value))}};function pA(e){return"_value"in e?e._value:e.value}function vA(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const CL=["ctrl","shift","alt","meta"],xL={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)=>CL.some(n=>e[`${n}Key`]&&!t.includes(n))},Ot=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(a,...o)=>{for(let s=0;s<t.length;s++){const l=xL[t[s]];if(l&&l(a,t))return}return e(a,...o)})},IL={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},An=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=a=>{if(!("key"in a))return;const o=Js(a.key);if(t.some(s=>s===o||IL[s]===o))return e(a)})},AL=Sr({patchProp:gL},Z6);let qS;function mA(){return qS||(qS=$6(AL))}const Fs=(...e)=>{mA().render(...e)},gA=(...e)=>{const t=mA().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=ML(r);if(!a)return;const o=t._component;!Pt(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const s=n(a,!1,PL(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},t};function PL(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ML(e){return Rt(e)?document.querySelector(e):e}/*!
  * vue-router v4.3.2
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const Ou=typeof document<"u";function OL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const jn=Object.assign;function bm(e,t){const n={};for(const r in t){const a=t[r];n[r]=Vo(a)?a.map(e):e(a)}return n}const Hd=()=>{},Vo=Array.isArray,yA=/#/g,$L=/&/g,RL=/\//g,kL=/=/g,LL=/\?/g,bA=/\+/g,NL=/%5B/g,DL=/%5D/g,_A=/%5E/g,FL=/%60/g,wA=/%7B/g,BL=/%7C/g,SA=/%7D/g,HL=/%20/g;function zb(e){return encodeURI(""+e).replace(BL,"|").replace(NL,"[").replace(DL,"]")}function UL(e){return zb(e).replace(wA,"{").replace(SA,"}").replace(_A,"^")}function e2(e){return zb(e).replace(bA,"%2B").replace(HL,"+").replace(yA,"%23").replace($L,"%26").replace(FL,"`").replace(wA,"{").replace(SA,"}").replace(_A,"^")}function VL(e){return e2(e).replace(kL,"%3D")}function GL(e){return zb(e).replace(yA,"%23").replace(LL,"%3F")}function jL(e){return e==null?"":GL(e).replace(RL,"%2F")}function ff(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zL=/\/$/,KL=e=>e.replace(zL,"");function _m(e,t,n="/"){let r,a={},o="",s="";const l=t.indexOf("#");let u=t.indexOf("?");return l<u&&l>=0&&(u=-1),u>-1&&(r=t.slice(0,u),o=t.slice(u+1,l>-1?l:t.length),a=e(o)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=JL(r??t,n),{fullPath:r+(o&&"?")+o+s,path:r,query:a,hash:ff(s)}}function WL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function QS(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function XL(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&sc(t.matched[r],n.matched[a])&&TA(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function sc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function TA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!YL(e[n],t[n]))return!1;return!0}function YL(e,t){return Vo(e)?ZS(e,t):Vo(t)?ZS(t,e):e===t}function ZS(e,t){return Vo(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let o=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s).join("/")}var hf;(function(e){e.pop="pop",e.push="push"})(hf||(hf={}));var Ud;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ud||(Ud={}));function qL(e){if(!e)if(Ou){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),KL(e)}const QL=/^[^#]+#/;function ZL(e,t){return e.replace(QL,"#")+t}function eN(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const pv=()=>({left:window.scrollX,top:window.scrollY});function tN(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=eN(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function eT(e,t){return(history.state?history.state.position-t:-1)+e}const t2=new Map;function nN(e,t){t2.set(e,t)}function rN(e){const t=t2.get(e);return t2.delete(e),t}let aN=()=>location.protocol+"//"+location.host;function EA(e,t){const{pathname:n,search:r,hash:a}=t,o=e.indexOf("#");if(o>-1){let l=a.includes(e.slice(o))?e.slice(o).length:1,u=a.slice(l);return u[0]!=="/"&&(u="/"+u),QS(u,"")}return QS(n,e)+r+a}function oN(e,t,n,r){let a=[],o=[],s=null;const l=({state:p})=>{const g=EA(e,location),y=n.value,m=t.value;let S=0;if(p){if(n.value=g,t.value=p,s&&s===y){s=null;return}S=m?p.position-m.position:0}else r(g);a.forEach(_=>{_(n.value,y,{delta:S,type:hf.pop,direction:S?S>0?Ud.forward:Ud.back:Ud.unknown})})};function u(){s=n.value}function c(p){a.push(p);const g=()=>{const y=a.indexOf(p);y>-1&&a.splice(y,1)};return o.push(g),g}function f(){const{history:p}=window;p.state&&p.replaceState(jn({},p.state,{scroll:pv()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:u,listen:c,destroy:d}}function tT(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?pv():null}}function iN(e){const{history:t,location:n}=window,r={value:EA(e,n)},a={value:t.state};a.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,f){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+u:aN()+e+u;try{t[f?"replaceState":"pushState"](c,"",p),a.value=c}catch(g){console.error(g),n[f?"replace":"assign"](p)}}function s(u,c){const f=jn({},t.state,tT(a.value.back,u,a.value.forward,!0),c,{position:a.value.position});o(u,f,!0),r.value=u}function l(u,c){const f=jn({},a.value,t.state,{forward:u,scroll:pv()});o(f.current,f,!0);const d=jn({},tT(r.value,u,null),{position:f.position+1},c);o(u,d,!1),r.value=u}return{location:r,state:a,push:l,replace:s}}function sN(e){e=qL(e);const t=iN(e),n=oN(e,t.state,t.location,t.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const a=jn({location:"",base:e,go:r,createHref:ZL.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function lN(e){return typeof e=="string"||e&&typeof e=="object"}function CA(e){return typeof e=="string"||typeof e=="symbol"}const ls={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xA=Symbol("");var nT;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(nT||(nT={}));function lc(e,t){return jn(new Error,{type:e,[xA]:!0},t)}function Ii(e,t){return e instanceof Error&&xA in e&&(t==null||!!(e.type&t))}const rT="[^/]+?",uN={sensitive:!1,strict:!1,start:!0,end:!0},cN=/[.+*?^${}()[\]/\\]/g;function dN(e,t){const n=jn({},uN,t),r=[];let a=n.start?"^":"";const o=[];for(const c of e){const f=c.length?[]:[90];n.strict&&!c.length&&(a+="/");for(let d=0;d<c.length;d++){const p=c[d];let g=40+(n.sensitive?.25:0);if(p.type===0)d||(a+="/"),a+=p.value.replace(cN,"\\$&"),g+=40;else if(p.type===1){const{value:y,repeatable:m,optional:S,regexp:_}=p;o.push({name:y,repeatable:m,optional:S});const P=_||rT;if(P!==rT){g+=10;try{new RegExp(`(${P})`)}catch($){throw new Error(`Invalid custom RegExp for param "${y}" (${P}): `+$.message)}}let A=m?`((?:${P})(?:/(?:${P}))*)`:`(${P})`;d||(A=S&&c.length<2?`(?:/${A})`:"/"+A),S&&(A+="?"),a+=A,g+=20,S&&(g+=-8),m&&(g+=-20),P===".*"&&(g+=-50)}f.push(g)}r.push(f)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const s=new RegExp(a,n.sensitive?"":"i");function l(c){const f=c.match(s),d={};if(!f)return null;for(let p=1;p<f.length;p++){const g=f[p]||"",y=o[p-1];d[y.name]=g&&y.repeatable?g.split("/"):g}return d}function u(c){let f="",d=!1;for(const p of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const g of p)if(g.type===0)f+=g.value;else if(g.type===1){const{value:y,repeatable:m,optional:S}=g,_=y in c?c[y]:"";if(Vo(_)&&!m)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);const P=Vo(_)?_.join("/"):_;if(!P)if(S)p.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${y}"`);f+=P}}return f||"/"}return{re:s,score:r,keys:o,parse:l,stringify:u}}function fN(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function hN(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const o=fN(r[n],a[n]);if(o)return o;n++}if(Math.abs(a.length-r.length)===1){if(aT(r))return 1;if(aT(a))return-1}return a.length-r.length}function aT(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const pN={type:0,value:""},vN=/[a-zA-Z0-9_]/;function mN(e){if(!e)return[[]];if(e==="/")return[[pN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,r=n;const a=[];let o;function s(){o&&a.push(o),o=[]}let l=0,u,c="",f="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;l<e.length;){if(u=e[l++],u==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:u==="/"?(c&&d(),s()):u===":"?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:u==="("?n=2:vN.test(u)?p():(d(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--);break;case 2:u===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+u:n=3:f+=u;break;case 3:d(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),s(),a}function gN(e,t,n){const r=dN(mN(e.path),n),a=jn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function yN(e,t){const n=[],r=new Map;t=sT({strict:!1,end:!0,sensitive:!1},t);function a(f){return r.get(f)}function o(f,d,p){const g=!p,y=bN(f);y.aliasOf=p&&p.record;const m=sT(t,f),S=[y];if("alias"in f){const A=typeof f.alias=="string"?[f.alias]:f.alias;for(const $ of A)S.push(jn({},y,{components:p?p.record.components:y.components,path:$,aliasOf:p?p.record:y}))}let _,P;for(const A of S){const{path:$}=A;if(d&&$[0]!=="/"){const k=d.record.path,L=k[k.length-1]==="/"?"":"/";A.path=d.record.path+($&&L+$)}if(_=gN(A,d,m),p?p.alias.push(_):(P=P||_,P!==_&&P.alias.push(_),g&&f.name&&!iT(_)&&s(f.name)),y.children){const k=y.children;for(let L=0;L<k.length;L++)o(k[L],_,p&&p.children[L])}p=p||_,(_.record.components&&Object.keys(_.record.components).length||_.record.name||_.record.redirect)&&u(_)}return P?()=>{s(P)}:Hd}function s(f){if(CA(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function l(){return n}function u(f){let d=0;for(;d<n.length&&hN(f,n[d])>=0&&(f.record.path!==n[d].record.path||!IA(f,n[d]));)d++;n.splice(d,0,f),f.record.name&&!iT(f)&&r.set(f.record.name,f)}function c(f,d){let p,g={},y,m;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw lc(1,{location:f});m=p.record.name,g=jn(oT(d.params,p.keys.filter(P=>!P.optional).concat(p.parent?p.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),f.params&&oT(f.params,p.keys.map(P=>P.name))),y=p.stringify(g)}else if(f.path!=null)y=f.path,p=n.find(P=>P.re.test(y)),p&&(g=p.parse(y),m=p.record.name);else{if(p=d.name?r.get(d.name):n.find(P=>P.re.test(d.path)),!p)throw lc(1,{location:f,currentLocation:d});m=p.record.name,g=jn({},d.params,f.params),y=p.stringify(g)}const S=[];let _=p;for(;_;)S.unshift(_.record),_=_.parent;return{name:m,path:y,params:g,matched:S,meta:wN(S)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:c,removeRoute:s,getRoutes:l,getRecordMatcher:a}}function oT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bN(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:_N(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function _N(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function iT(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wN(e){return e.reduce((t,n)=>jn(t,n.meta),{})}function sT(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function IA(e,t){return t.children.some(n=>n===e||IA(e,n))}function SN(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<r.length;++a){const o=r[a].replace(bA," "),s=o.indexOf("="),l=ff(s<0?o:o.slice(0,s)),u=s<0?null:ff(o.slice(s+1));if(l in t){let c=t[l];Vo(c)||(c=t[l]=[c]),c.push(u)}else t[l]=u}return t}function lT(e){let t="";for(let n in e){const r=e[n];if(n=VL(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Vo(r)?r.map(o=>o&&e2(o)):[r&&e2(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function TN(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Vo(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const EN=Symbol(""),uT=Symbol(""),Kb=Symbol(""),AA=Symbol(""),n2=Symbol("");function ad(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ws(e,t,n,r,a,o=s=>s()){const s=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((l,u)=>{const c=p=>{p===!1?u(lc(4,{from:n,to:t})):p instanceof Error?u(p):lN(p)?u(lc(2,{from:t,to:p})):(s&&r.enterCallbacks[a]===s&&typeof p=="function"&&s.push(p),l())},f=o(()=>e.call(r&&r.instances[a],t,n,c));let d=Promise.resolve(f);e.length<3&&(d=d.then(c)),d.catch(p=>u(p))})}function wm(e,t,n,r,a=o=>o()){const o=[];for(const s of e)for(const l in s.components){let u=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(CN(u)){const f=(u.__vccOpts||u)[t];f&&o.push(ws(f,n,r,s,l,a))}else{let c=u();o.push(()=>c.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${s.path}"`));const d=OL(f)?f.default:f;s.components[l]=d;const g=(d.__vccOpts||d)[t];return g&&ws(g,n,r,s,l,a)()}))}}return o}function CN(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function cT(e){const t=dt(Kb),n=dt(AA),r=N(()=>{const u=h(e.to);return t.resolve(u)}),a=N(()=>{const{matched:u}=r.value,{length:c}=u,f=u[c-1],d=n.matched;if(!f||!d.length)return-1;const p=d.findIndex(sc.bind(null,f));if(p>-1)return p;const g=dT(u[c-2]);return c>1&&dT(f)===g&&d[d.length-1].path!==g?d.findIndex(sc.bind(null,u[c-2])):p}),o=N(()=>a.value>-1&&PN(n.params,r.value.params)),s=N(()=>a.value>-1&&a.value===n.matched.length-1&&TA(n.params,r.value.params));function l(u={}){return AN(u)?t[h(e.replace)?"replace":"push"](h(e.to)).catch(Hd):Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:o,isExactActive:s,navigate:l}}const xN=he({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:cT,setup(e,{slots:t}){const n=Sn(cT(e)),{options:r}=dt(Kb),a=N(()=>({[fT(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[fT(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:_t("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},o)}}}),IN=xN;function AN(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function PN(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Vo(a)||a.length!==r.length||r.some((o,s)=>o!==a[s]))return!1}return!0}function dT(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fT=(e,t,n)=>e??t??n,MN=he({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=dt(n2),a=N(()=>e.route||r.value),o=dt(uT,0),s=N(()=>{let c=h(o);const{matched:f}=a.value;let d;for(;(d=f[c])&&!d.components;)c++;return c}),l=N(()=>a.value.matched[s.value]);nn(uT,N(()=>s.value+1)),nn(EN,l),nn(n2,a);const u=ee();return We(()=>[u.value,l.value,e.name],([c,f,d],[p,g,y])=>{f&&(f.instances[d]=c,g&&g!==f&&c&&c===p&&(f.leaveGuards.size||(f.leaveGuards=g.leaveGuards),f.updateGuards.size||(f.updateGuards=g.updateGuards))),c&&f&&(!g||!sc(f,g)||!p)&&(f.enterCallbacks[d]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=a.value,f=e.name,d=l.value,p=d&&d.components[f];if(!p)return hT(n.default,{Component:p,route:c});const g=d.props[f],y=g?g===!0?c.params:typeof g=="function"?g(c):g:null,S=_t(p,jn({},y,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[f]=null)},ref:u}));return hT(n.default,{Component:S,route:c})||S}}});function hT(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const PA=MN;function ON(e){const t=yN(e.routes,e),n=e.parseQuery||SN,r=e.stringifyQuery||lT,a=e.history,o=ad(),s=ad(),l=ad(),u=Fn(ls);let c=ls;Ou&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=bm.bind(null,pe=>""+pe),d=bm.bind(null,jL),p=bm.bind(null,ff);function g(pe,_e){let He,Ae;return CA(pe)?(He=t.getRecordMatcher(pe),Ae=_e):Ae=pe,t.addRoute(Ae,He)}function y(pe){const _e=t.getRecordMatcher(pe);_e&&t.removeRoute(_e)}function m(){return t.getRoutes().map(pe=>pe.record)}function S(pe){return!!t.getRecordMatcher(pe)}function _(pe,_e){if(_e=jn({},_e||u.value),typeof pe=="string"){const me=_m(n,pe,_e.path),Be=t.resolve({path:me.path},_e),be=a.createHref(me.fullPath);return jn(me,Be,{params:p(Be.params),hash:ff(me.hash),redirectedFrom:void 0,href:be})}let He;if(pe.path!=null)He=jn({},pe,{path:_m(n,pe.path,_e.path).path});else{const me=jn({},pe.params);for(const Be in me)me[Be]==null&&delete me[Be];He=jn({},pe,{params:d(me)}),_e.params=d(_e.params)}const Ae=t.resolve(He,_e),ke=pe.hash||"";Ae.params=f(p(Ae.params));const ze=WL(r,jn({},pe,{hash:UL(ke),path:Ae.path})),ce=a.createHref(ze);return jn({fullPath:ze,hash:ke,query:r===lT?TN(pe.query):pe.query||{}},Ae,{redirectedFrom:void 0,href:ce})}function P(pe){return typeof pe=="string"?_m(n,pe,u.value.path):jn({},pe)}function A(pe,_e){if(c!==pe)return lc(8,{from:_e,to:pe})}function $(pe){return B(pe)}function k(pe){return $(jn(P(pe),{replace:!0}))}function L(pe){const _e=pe.matched[pe.matched.length-1];if(_e&&_e.redirect){const{redirect:He}=_e;let Ae=typeof He=="function"?He(pe):He;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=P(Ae):{path:Ae},Ae.params={}),jn({query:pe.query,hash:pe.hash,params:Ae.path!=null?{}:pe.params},Ae)}}function B(pe,_e){const He=c=_(pe),Ae=u.value,ke=pe.state,ze=pe.force,ce=pe.replace===!0,me=L(He);if(me)return B(jn(P(me),{state:typeof me=="object"?jn({},ke,me.state):ke,force:ze,replace:ce}),_e||He);const Be=He;Be.redirectedFrom=_e;let be;return!ze&&XL(r,Ae,He)&&(be=lc(16,{to:Be,from:Ae}),ae(Ae,Ae,!0,!1)),(be?Promise.resolve(be):j(Be,Ae)).catch(Oe=>Ii(Oe)?Ii(Oe,2)?Oe:Z(Oe):te(Oe,Be,Ae)).then(Oe=>{if(Oe){if(Ii(Oe,2))return B(jn({replace:ce},P(Oe.to),{state:typeof Oe.to=="object"?jn({},ke,Oe.to.state):ke,force:ze}),_e||Be)}else Oe=Q(Be,Ae,!0,ce,ke);return W(Be,Ae,Oe),Oe})}function H(pe,_e){const He=A(pe,_e);return He?Promise.reject(He):Promise.resolve()}function G(pe){const _e=Me.values().next().value;return _e&&typeof _e.runWithContext=="function"?_e.runWithContext(pe):pe()}function j(pe,_e){let He;const[Ae,ke,ze]=$N(pe,_e);He=wm(Ae.reverse(),"beforeRouteLeave",pe,_e);for(const me of Ae)me.leaveGuards.forEach(Be=>{He.push(ws(Be,pe,_e))});const ce=H.bind(null,pe,_e);return He.push(ce),Ee(He).then(()=>{He=[];for(const me of o.list())He.push(ws(me,pe,_e));return He.push(ce),Ee(He)}).then(()=>{He=wm(ke,"beforeRouteUpdate",pe,_e);for(const me of ke)me.updateGuards.forEach(Be=>{He.push(ws(Be,pe,_e))});return He.push(ce),Ee(He)}).then(()=>{He=[];for(const me of ze)if(me.beforeEnter)if(Vo(me.beforeEnter))for(const Be of me.beforeEnter)He.push(ws(Be,pe,_e));else He.push(ws(me.beforeEnter,pe,_e));return He.push(ce),Ee(He)}).then(()=>(pe.matched.forEach(me=>me.enterCallbacks={}),He=wm(ze,"beforeRouteEnter",pe,_e,G),He.push(ce),Ee(He))).then(()=>{He=[];for(const me of s.list())He.push(ws(me,pe,_e));return He.push(ce),Ee(He)}).catch(me=>Ii(me,8)?me:Promise.reject(me))}function W(pe,_e,He){l.list().forEach(Ae=>G(()=>Ae(pe,_e,He)))}function Q(pe,_e,He,Ae,ke){const ze=A(pe,_e);if(ze)return ze;const ce=_e===ls,me=Ou?history.state:{};He&&(Ae||ce?a.replace(pe.fullPath,jn({scroll:ce&&me&&me.scroll},ke)):a.push(pe.fullPath,ke)),u.value=pe,ae(pe,_e,He,ce),Z()}let ue;function se(){ue||(ue=a.listen((pe,_e,He)=>{if(!Ge.listening)return;const Ae=_(pe),ke=L(Ae);if(ke){B(jn(ke,{replace:!0}),Ae).catch(Hd);return}c=Ae;const ze=u.value;Ou&&nN(eT(ze.fullPath,He.delta),pv()),j(Ae,ze).catch(ce=>Ii(ce,12)?ce:Ii(ce,2)?(B(ce.to,Ae).then(me=>{Ii(me,20)&&!He.delta&&He.type===hf.pop&&a.go(-1,!1)}).catch(Hd),Promise.reject()):(He.delta&&a.go(-He.delta,!1),te(ce,Ae,ze))).then(ce=>{ce=ce||Q(Ae,ze,!1),ce&&(He.delta&&!Ii(ce,8)?a.go(-He.delta,!1):He.type===hf.pop&&Ii(ce,20)&&a.go(-1,!1)),W(Ae,ze,ce)}).catch(Hd)}))}let ne=ad(),J=ad(),X;function te(pe,_e,He){Z(pe);const Ae=J.list();return Ae.length?Ae.forEach(ke=>ke(pe,_e,He)):console.error(pe),Promise.reject(pe)}function Y(){return X&&u.value!==ls?Promise.resolve():new Promise((pe,_e)=>{ne.add([pe,_e])})}function Z(pe){return X||(X=!pe,se(),ne.list().forEach(([_e,He])=>pe?He(pe):_e()),ne.reset()),pe}function ae(pe,_e,He,Ae){const{scrollBehavior:ke}=e;if(!Ou||!ke)return Promise.resolve();const ze=!He&&rN(eT(pe.fullPath,0))||(Ae||!He)&&history.state&&history.state.scroll||null;return bt().then(()=>ke(pe,_e,ze)).then(ce=>ce&&tN(ce)).catch(ce=>te(ce,pe,_e))}const ve=pe=>a.go(pe);let we;const Me=new Set,Ge={currentRoute:u,listening:!0,addRoute:g,removeRoute:y,hasRoute:S,getRoutes:m,resolve:_,options:e,push:$,replace:k,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:o.add,beforeResolve:s.add,afterEach:l.add,onError:J.add,isReady:Y,install(pe){const _e=this;pe.component("RouterLink",IN),pe.component("RouterView",PA),pe.config.globalProperties.$router=_e,Object.defineProperty(pe.config.globalProperties,"$route",{enumerable:!0,get:()=>h(u)}),Ou&&!we&&u.value===ls&&(we=!0,$(a.location).catch(ke=>{}));const He={};for(const ke in ls)Object.defineProperty(He,ke,{get:()=>u.value[ke],enumerable:!0});pe.provide(Kb,_e),pe.provide(AA,Mb(He)),pe.provide(n2,u);const Ae=pe.unmount;Me.add(pe),pe.unmount=function(){Me.delete(pe),Me.size<1&&(c=ls,ue&&ue(),ue=null,u.value=ls,we=!1,X=!1),Ae()}}};function Ee(pe){return pe.reduce((_e,He)=>_e.then(()=>G(He)),Promise.resolve())}return Ge}function $N(e,t){const n=[],r=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const l=t.matched[s];l&&(e.matched.find(c=>sc(c,l))?r.push(l):n.push(l));const u=e.matched[s];u&&(t.matched.find(c=>sc(c,u))||a.push(u))}return[n,r,a]}const RN=he({__name:"App",setup(e){return(t,n)=>(V(),Fe(h(PA)))}}),kN="modulepreload",LN=function(e){return"/"+e},pT={},NN=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));a=Promise.all(n.map(l=>{if(l=LN(l),l in pT)return;pT[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":kN,u||(f.as="script",f.crossOrigin=""),f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),u)return new Promise((d,p)=>{f.addEventListener("load",d),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return a.then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},DN=ON({history:sN("/"),routes:[{path:"/",name:"home",component:()=>NN(()=>import("./HomeView-BPJjNFc_.js"),__vite__mapDeps([0,1]))}]}),FN='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',BN=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,vT=e=>Array.from(e.querySelectorAll(FN)).filter(t=>HN(t)&&BN(t)),HN=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$p=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},MA=e=>!e.getAttribute("aria-owns"),OA=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),o=Array.prototype.indexOf.call(a,e);return a[o+t]||null},Rp=e=>{e&&(e.focus(),!MA(e)&&e.click())},nr=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const o=e==null?void 0:e(a);if(n===!1||!o)return t==null?void 0:t(a)},mT=e=>t=>t.pointerType==="mouse"?e(t):void 0;var UN=Object.defineProperty,VN=Object.defineProperties,GN=Object.getOwnPropertyDescriptors,gT=Object.getOwnPropertySymbols,jN=Object.prototype.hasOwnProperty,zN=Object.prototype.propertyIsEnumerable,yT=(e,t,n)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,KN=(e,t)=>{for(var n in t||(t={}))jN.call(t,n)&&yT(e,n,t[n]);if(gT)for(var n of gT(t))zN.call(t,n)&&yT(e,n,t[n]);return e},WN=(e,t)=>VN(e,GN(t));function bT(e,t){var n;const r=Fn();return ta(()=>{r.value=e()},WN(KN({},t),{flush:(n=void 0)!=null?n:"sync"})),kc(r)}var _T;const ln=typeof window<"u",XN=e=>typeof e<"u",r2=e=>typeof e=="function",YN=e=>typeof e=="string",uc=()=>{},JN=ln&&((_T=window==null?void 0:window.navigator)==null?void 0:_T.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Bs(e){return typeof e=="function"?e():h(e)}function $A(e,t){function n(...r){return new Promise((a,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(o)})}return n}function qN(e,t={}){let n,r,a=uc;const o=l=>{clearTimeout(l),a(),a=uc};return l=>{const u=Bs(e),c=Bs(t.maxWait);return n&&o(n),u<=0||c!==void 0&&c<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((f,d)=>{a=t.rejectOnCancel?d:f,c&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,f(l())},c)),n=setTimeout(()=>{r&&o(r),r=null,f(l())},u)})}}function QN(e,t=!0,n=!0,r=!1){let a=0,o,s=!0,l=uc,u;const c=()=>{o&&(clearTimeout(o),o=void 0,l(),l=uc)};return d=>{const p=Bs(e),g=Date.now()-a,y=()=>u=d();return c(),p<=0?(a=Date.now(),y()):(g>p&&(n||!s)?(a=Date.now(),y()):t&&(u=new Promise((m,S)=>{l=r?S:m,o=setTimeout(()=>{a=Date.now(),s=!0,m(y()),c()},Math.max(0,p-g))})),!n&&!o&&(o=setTimeout(()=>s=!0,p)),s=!1,u)}}function ZN(e){return e}function eD(e,t){let n,r,a;const o=ee(!0),s=()=>{o.value=!0,a()};We(e,s,{flush:"sync"});const l=r2(t)?t:t.get,u=r2(t)?void 0:t.set,c=z8((f,d)=>(r=f,a=d,{get(){return o.value&&(n=l(),o.value=!1),r(),n},set(p){u==null||u(p)}}));return Object.isExtensible(c)&&(c.trigger=s),c}function nh(e){return sI()?(lI(e),!0):!1}function tD(e,t=200,n={}){return $A(qN(t,n),e)}function nD(e,t=200,n={}){const r=ee(e.value),a=tD(()=>{r.value=e.value},t,n);return We(e,()=>a()),r}function RA(e,t=200,n=!1,r=!0,a=!1){return $A(QN(t,n,r,a),e)}function Wb(e,t=!0){Gt()?Ht(e):t?e():bt(e)}function Jl(e,t,n={}){const{immediate:r=!0}=n,a=ee(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){a.value=!1,s()}function u(...c){s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=null,e(...c)},Bs(t))}return r&&(a.value=!0,ln&&u()),nh(l),{isPending:kc(a),start:u,stop:l}}function La(e){var t;const n=Bs(e);return(t=n==null?void 0:n.$el)!=null?t:n}const el=ln?window:void 0,rD=ln?window.document:void 0;function Bn(...e){let t,n,r,a;if(YN(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=el):[t,n,r,a]=e,!t)return uc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(f=>f()),o.length=0},l=(f,d,p,g)=>(f.addEventListener(d,p,g),()=>f.removeEventListener(d,p,g)),u=We(()=>[La(t),Bs(a)],([f,d])=>{s(),f&&o.push(...n.flatMap(p=>r.map(g=>l(f,p,g,d))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return nh(c),c}let wT=!1;function Xb(e,t,n={}){const{window:r=el,ignore:a=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return;JN&&!wT&&(wT=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",uc)));let l=!0;const u=p=>a.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(y=>y===p.target||p.composedPath().includes(y));{const y=La(g);return y&&(p.target===y||p.composedPath().includes(y))}}),f=[Bn(r,"click",p=>{const g=La(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!u(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:o}),Bn(r,"pointerdown",p=>{const g=La(e);g&&(l=!p.composedPath().includes(g)&&!u(p))},{passive:!0}),s&&Bn(r,"blur",p=>{var g;const y=La(e);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(y!=null&&y.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function aD(e={}){var t;const{window:n=el}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,a=eD(()=>null,()=>r==null?void 0:r.activeElement);return n&&(Bn(n,"blur",o=>{o.relatedTarget===null&&a.trigger()},!0),Bn(n,"focus",a.trigger,!0)),a}function kA(e,t=!1){const n=ee(),r=()=>n.value=!!e();return r(),Wb(r,t),n}function oD(e){return JSON.parse(JSON.stringify(e))}const ST=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},TT="__vueuse_ssr_handlers__";ST[TT]=ST[TT]||{};function iD(e,t,{window:n=el,initialValue:r=""}={}){const a=ee(r),o=N(()=>{var s;return La(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return We([o,()=>Bs(e)],([s,l])=>{var u;if(s&&n){const c=(u=n.getComputedStyle(s).getPropertyValue(l))==null?void 0:u.trim();a.value=c||r}},{immediate:!0}),We(a,s=>{var l;(l=o.value)!=null&&l.style&&o.value.style.setProperty(Bs(e),s)}),a}function sD({document:e=rD}={}){if(!e)return ee("visible");const t=ee(e.visibilityState);return Bn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var ET=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,uD=Object.prototype.propertyIsEnumerable,cD=(e,t)=>{var n={};for(var r in e)lD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ET)for(var r of ET(e))t.indexOf(r)<0&&uD.call(e,r)&&(n[r]=e[r]);return n};function Wn(e,t,n={}){const r=n,{window:a=el}=r,o=cD(r,["window"]);let s;const l=kA(()=>a&&"ResizeObserver"in a),u=()=>{s&&(s.disconnect(),s=void 0)},c=We(()=>La(e),d=>{u(),l.value&&a&&d&&(s=new ResizeObserver(t),s.observe(d,o))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return nh(f),{isSupported:l,stop:f}}function CT(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:o=!0}=t,s=ee(0),l=ee(0),u=ee(0),c=ee(0),f=ee(0),d=ee(0),p=ee(0),g=ee(0);function y(){const m=La(e);if(!m){n&&(s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,p.value=0,g.value=0);return}const S=m.getBoundingClientRect();s.value=S.height,l.value=S.bottom,u.value=S.left,c.value=S.right,f.value=S.top,d.value=S.width,p.value=S.x,g.value=S.y}return Wn(e,y),We(()=>La(e),m=>!m&&y()),a&&Bn("scroll",y,{capture:!0,passive:!0}),r&&Bn("resize",y,{passive:!0}),Wb(()=>{o&&y()}),{height:s,bottom:l,left:u,right:c,top:f,width:d,x:p,y:g,update:y}}var xT=Object.getOwnPropertySymbols,dD=Object.prototype.hasOwnProperty,fD=Object.prototype.propertyIsEnumerable,hD=(e,t)=>{var n={};for(var r in e)dD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xT)for(var r of xT(e))t.indexOf(r)<0&&fD.call(e,r)&&(n[r]=e[r]);return n};function LA(e,t,n={}){const r=n,{window:a=el}=r,o=hD(r,["window"]);let s;const l=kA(()=>a&&"MutationObserver"in a),u=()=>{s&&(s.disconnect(),s=void 0)},c=We(()=>La(e),d=>{u(),l.value&&a&&d&&(s=new MutationObserver(t),s.observe(d,o))},{immediate:!0}),f=()=>{u(),c()};return nh(f),{isSupported:l,stop:f}}var IT;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(IT||(IT={}));var pD=Object.defineProperty,AT=Object.getOwnPropertySymbols,vD=Object.prototype.hasOwnProperty,mD=Object.prototype.propertyIsEnumerable,PT=(e,t,n)=>t in e?pD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gD=(e,t)=>{for(var n in t||(t={}))vD.call(t,n)&&PT(e,n,t[n]);if(AT)for(var n of AT(t))mD.call(t,n)&&PT(e,n,t[n]);return e};const yD={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};gD({linear:ZN},yD);function NA(e,t,n,r={}){var a,o,s;const{clone:l=!1,passive:u=!1,eventName:c,deep:f=!1,defaultValue:d}=r,p=Gt(),g=n||(p==null?void 0:p.emit)||((a=p==null?void 0:p.$emit)==null?void 0:a.bind(p))||((s=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let y=c;t||(t="modelValue"),y=c||y||`update:${t.toString()}`;const m=_=>l?r2(l)?l(_):oD(_):_,S=()=>XN(e[t])?m(e[t]):d;if(u){const _=S(),P=ee(_);return We(()=>e[t],A=>P.value=m(A)),We(P,A=>{(A!==e[t]||f)&&g(y,A)},{deep:f}),P}else return N({get(){return S()},set(_){g(y,_)}})}function bD({window:e=el}={}){if(!e)return ee(!1);const t=ee(e.document.hasFocus());return Bn(e,"blur",()=>{t.value=!1}),Bn(e,"focus",()=>{t.value=!0}),t}function _D(e={}){const{window:t=el,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:o=!0}=e,s=ee(n),l=ee(r),u=()=>{t&&(o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return u(),Wb(u),Bn("resize",u,{passive:!0}),a&&Bn("orientationchange",u,{passive:!0}),{width:s,height:l}}const DA=()=>ln&&/firefox/i.test(window.navigator.userAgent),wD=(e,t)=>{if(!ln||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},MT=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},a2=(e,t)=>Math.abs(MT(e)-MT(t)),Yb=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function SD(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}var FA=typeof global=="object"&&global&&global.Object===Object&&global,TD=typeof self=="object"&&self&&self.Object===Object&&self,zo=FA||TD||Function("return this")(),yo=zo.Symbol,BA=Object.prototype,ED=BA.hasOwnProperty,CD=BA.toString,od=yo?yo.toStringTag:void 0;function xD(e){var t=ED.call(e,od),n=e[od];try{e[od]=void 0;var r=!0}catch{}var a=CD.call(e);return r&&(t?e[od]=n:delete e[od]),a}var ID=Object.prototype,AD=ID.toString;function PD(e){return AD.call(e)}var MD="[object Null]",OD="[object Undefined]",OT=yo?yo.toStringTag:void 0;function uu(e){return e==null?e===void 0?OD:MD:OT&&OT in Object(e)?xD(e):PD(e)}function pi(e){return e!=null&&typeof e=="object"}var $D="[object Symbol]";function vv(e){return typeof e=="symbol"||pi(e)&&uu(e)==$D}function Jb(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Ta=Array.isArray,RD=1/0,$T=yo?yo.prototype:void 0,RT=$T?$T.toString:void 0;function HA(e){if(typeof e=="string")return e;if(Ta(e))return Jb(e,HA)+"";if(vv(e))return RT?RT.call(e):"";var t=e+"";return t=="0"&&1/e==-RD?"-0":t}var kD=/\s/;function LD(e){for(var t=e.length;t--&&kD.test(e.charAt(t)););return t}var ND=/^\s+/;function DD(e){return e&&e.slice(0,LD(e)+1).replace(ND,"")}function Ea(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kT=NaN,FD=/^[-+]0x[0-9a-f]+$/i,BD=/^0b[01]+$/i,HD=/^0o[0-7]+$/i,UD=parseInt;function LT(e){if(typeof e=="number")return e;if(vv(e))return kT;if(Ea(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ea(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DD(e);var n=BD.test(e);return n||HD.test(e)?UD(e.slice(2),n?2:8):FD.test(e)?kT:+e}function qb(e){return e}var VD="[object AsyncFunction]",GD="[object Function]",jD="[object GeneratorFunction]",zD="[object Proxy]";function Qb(e){if(!Ea(e))return!1;var t=uu(e);return t==GD||t==jD||t==VD||t==zD}var Sm=zo["__core-js_shared__"],NT=function(){var e=/[^.]+$/.exec(Sm&&Sm.keys&&Sm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KD(e){return!!NT&&NT in e}var WD=Function.prototype,XD=WD.toString;function cu(e){if(e!=null){try{return XD.call(e)}catch{}try{return e+""}catch{}}return""}var YD=/[\\^$.*+?()[\]{}|]/g,JD=/^\[object .+?Constructor\]$/,qD=Function.prototype,QD=Object.prototype,ZD=qD.toString,eF=QD.hasOwnProperty,tF=RegExp("^"+ZD.call(eF).replace(YD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nF(e){if(!Ea(e)||KD(e))return!1;var t=Qb(e)?tF:JD;return t.test(cu(e))}function rF(e,t){return e==null?void 0:e[t]}function du(e,t){var n=rF(e,t);return nF(n)?n:void 0}var o2=du(zo,"WeakMap"),DT=Object.create,aF=function(){function e(){}return function(t){if(!Ea(t))return{};if(DT)return DT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function oF(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function iF(){}function UA(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var sF=800,lF=16,uF=Date.now;function cF(e){var t=0,n=0;return function(){var r=uF(),a=lF-(r-n);if(n=r,a>0){if(++t>=sF)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function dF(e){return function(){return e}}var _0=function(){try{var e=du(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fF=_0?function(e,t){return _0(e,"toString",{configurable:!0,enumerable:!1,value:dF(t),writable:!0})}:qb,VA=cF(fF);function hF(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function GA(e,t,n,r){for(var a=e.length,o=n+(r?1:-1);r?o--:++o<a;)if(t(e[o],o,e))return o;return-1}function pF(e){return e!==e}function vF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function mF(e,t,n){return t===t?vF(e,t,n):GA(e,pF,n)}function gF(e,t){var n=e==null?0:e.length;return!!n&&mF(e,t,0)>-1}var yF=9007199254740991,bF=/^(?:0|[1-9]\d*)$/;function mv(e,t){var n=typeof e;return t=t??yF,!!t&&(n=="number"||n!="symbol"&&bF.test(e))&&e>-1&&e%1==0&&e<t}function Zb(e,t,n){t=="__proto__"&&_0?_0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function rh(e,t){return e===t||e!==e&&t!==t}var _F=Object.prototype,wF=_F.hasOwnProperty;function e_(e,t,n){var r=e[t];(!(wF.call(e,t)&&rh(r,n))||n===void 0&&!(t in e))&&Zb(e,t,n)}function Dc(e,t,n,r){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=void 0;u===void 0&&(u=e[l]),a?Zb(n,l,u):e_(n,l,u)}return n}var FT=Math.max;function jA(e,t,n){return t=FT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,o=FT(r.length-t,0),s=Array(o);++a<o;)s[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(s),oF(e,this,l)}}function zA(e,t){return VA(jA(e,t,qb),e+"")}var SF=9007199254740991;function t_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SF}function Fc(e){return e!=null&&t_(e.length)&&!Qb(e)}function TF(e,t,n){if(!Ea(n))return!1;var r=typeof t;return(r=="number"?Fc(n)&&mv(t,n.length):r=="string"&&t in n)?rh(n[t],e):!1}function EF(e){return zA(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,s&&TF(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var l=n[r];l&&e(t,l,r,o)}return t})}var CF=Object.prototype;function n_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CF;return e===n}function xF(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var IF="[object Arguments]";function BT(e){return pi(e)&&uu(e)==IF}var KA=Object.prototype,AF=KA.hasOwnProperty,PF=KA.propertyIsEnumerable,pf=BT(function(){return arguments}())?BT:function(e){return pi(e)&&AF.call(e,"callee")&&!PF.call(e,"callee")};function MF(){return!1}var WA=typeof exports=="object"&&exports&&!exports.nodeType&&exports,HT=WA&&typeof module=="object"&&module&&!module.nodeType&&module,OF=HT&&HT.exports===WA,UT=OF?zo.Buffer:void 0,$F=UT?UT.isBuffer:void 0,vf=$F||MF,RF="[object Arguments]",kF="[object Array]",LF="[object Boolean]",NF="[object Date]",DF="[object Error]",FF="[object Function]",BF="[object Map]",HF="[object Number]",UF="[object Object]",VF="[object RegExp]",GF="[object Set]",jF="[object String]",zF="[object WeakMap]",KF="[object ArrayBuffer]",WF="[object DataView]",XF="[object Float32Array]",YF="[object Float64Array]",JF="[object Int8Array]",qF="[object Int16Array]",QF="[object Int32Array]",ZF="[object Uint8Array]",e5="[object Uint8ClampedArray]",t5="[object Uint16Array]",n5="[object Uint32Array]",or={};or[XF]=or[YF]=or[JF]=or[qF]=or[QF]=or[ZF]=or[e5]=or[t5]=or[n5]=!0;or[RF]=or[kF]=or[KF]=or[LF]=or[WF]=or[NF]=or[DF]=or[FF]=or[BF]=or[HF]=or[UF]=or[VF]=or[GF]=or[jF]=or[zF]=!1;function r5(e){return pi(e)&&t_(e.length)&&!!or[uu(e)]}function r_(e){return function(t){return e(t)}}var XA=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vd=XA&&typeof module=="object"&&module&&!module.nodeType&&module,a5=Vd&&Vd.exports===XA,Tm=a5&&FA.process,cc=function(){try{var e=Vd&&Vd.require&&Vd.require("util").types;return e||Tm&&Tm.binding&&Tm.binding("util")}catch{}}(),VT=cc&&cc.isTypedArray,a_=VT?r_(VT):r5,o5=Object.prototype,i5=o5.hasOwnProperty;function YA(e,t){var n=Ta(e),r=!n&&pf(e),a=!n&&!r&&vf(e),o=!n&&!r&&!a&&a_(e),s=n||r||a||o,l=s?xF(e.length,String):[],u=l.length;for(var c in e)(t||i5.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mv(c,u)))&&l.push(c);return l}function JA(e,t){return function(n){return e(t(n))}}var s5=JA(Object.keys,Object),l5=Object.prototype,u5=l5.hasOwnProperty;function c5(e){if(!n_(e))return s5(e);var t=[];for(var n in Object(e))u5.call(e,n)&&n!="constructor"&&t.push(n);return t}function ah(e){return Fc(e)?YA(e):c5(e)}function d5(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var f5=Object.prototype,h5=f5.hasOwnProperty;function p5(e){if(!Ea(e))return d5(e);var t=n_(e),n=[];for(var r in e)r=="constructor"&&(t||!h5.call(e,r))||n.push(r);return n}function oh(e){return Fc(e)?YA(e,!0):p5(e)}var v5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m5=/^\w*$/;function o_(e,t){if(Ta(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vv(e)?!0:m5.test(e)||!v5.test(e)||t!=null&&e in Object(t)}var mf=du(Object,"create");function g5(){this.__data__=mf?mf(null):{},this.size=0}function y5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var b5="__lodash_hash_undefined__",_5=Object.prototype,w5=_5.hasOwnProperty;function S5(e){var t=this.__data__;if(mf){var n=t[e];return n===b5?void 0:n}return w5.call(t,e)?t[e]:void 0}var T5=Object.prototype,E5=T5.hasOwnProperty;function C5(e){var t=this.__data__;return mf?t[e]!==void 0:E5.call(t,e)}var x5="__lodash_hash_undefined__";function I5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mf&&t===void 0?x5:t,this}function ql(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ql.prototype.clear=g5;ql.prototype.delete=y5;ql.prototype.get=S5;ql.prototype.has=C5;ql.prototype.set=I5;function A5(){this.__data__=[],this.size=0}function gv(e,t){for(var n=e.length;n--;)if(rh(e[n][0],t))return n;return-1}var P5=Array.prototype,M5=P5.splice;function O5(e){var t=this.__data__,n=gv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M5.call(t,n,1),--this.size,!0}function $5(e){var t=this.__data__,n=gv(t,e);return n<0?void 0:t[n][1]}function R5(e){return gv(this.__data__,e)>-1}function k5(e,t){var n=this.__data__,r=gv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qi.prototype.clear=A5;qi.prototype.delete=O5;qi.prototype.get=$5;qi.prototype.has=R5;qi.prototype.set=k5;var gf=du(zo,"Map");function L5(){this.size=0,this.__data__={hash:new ql,map:new(gf||qi),string:new ql}}function N5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yv(e,t){var n=e.__data__;return N5(t)?n[typeof t=="string"?"string":"hash"]:n.map}function D5(e){var t=yv(this,e).delete(e);return this.size-=t?1:0,t}function F5(e){return yv(this,e).get(e)}function B5(e){return yv(this,e).has(e)}function H5(e,t){var n=yv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qi.prototype.clear=L5;Qi.prototype.delete=D5;Qi.prototype.get=F5;Qi.prototype.has=B5;Qi.prototype.set=H5;var U5="Expected a function";function bv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(U5);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=e.apply(this,r);return n.cache=o.set(a,s)||o,s};return n.cache=new(bv.Cache||Qi),n}bv.Cache=Qi;var V5=500;function G5(e){var t=bv(e,function(r){return n.size===V5&&n.clear(),r}),n=t.cache;return t}var j5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z5=/\\(\\)?/g,K5=G5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(j5,function(n,r,a,o){t.push(a?o.replace(z5,"$1"):r||n)}),t});function W5(e){return e==null?"":HA(e)}function Bc(e,t){return Ta(e)?e:o_(e,t)?[e]:K5(W5(e))}var X5=1/0;function Hc(e){if(typeof e=="string"||vv(e))return e;var t=e+"";return t=="0"&&1/e==-X5?"-0":t}function _v(e,t){t=Bc(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Hc(t[n++])];return n&&n==r?e:void 0}function lr(e,t,n){var r=e==null?void 0:_v(e,t);return r===void 0?n:r}function i_(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var GT=yo?yo.isConcatSpreadable:void 0;function Y5(e){return Ta(e)||pf(e)||!!(GT&&e&&e[GT])}function ih(e,t,n,r,a){var o=-1,s=e.length;for(n||(n=Y5),a||(a=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?ih(l,t-1,n,r,a):i_(a,l):r||(a[a.length]=l)}return a}function qA(e){var t=e==null?0:e.length;return t?ih(e,1):[]}function QA(e){return VA(jA(e,void 0,qA),e+"")}var s_=JA(Object.getPrototypeOf,Object),J5="[object Object]",q5=Function.prototype,Q5=Object.prototype,ZA=q5.toString,Z5=Q5.hasOwnProperty,eB=ZA.call(Object);function eP(e){if(!pi(e)||uu(e)!=J5)return!1;var t=s_(e);if(t===null)return!0;var n=Z5.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ZA.call(n)==eB}function tB(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o}function Hs(){if(!arguments.length)return[];var e=arguments[0];return Ta(e)?e:[e]}function nB(){this.__data__=new qi,this.size=0}function rB(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function aB(e){return this.__data__.get(e)}function oB(e){return this.__data__.has(e)}var iB=200;function sB(e,t){var n=this.__data__;if(n instanceof qi){var r=n.__data__;if(!gf||r.length<iB-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qi(r)}return n.set(e,t),this.size=n.size,this}function Fo(e){var t=this.__data__=new qi(e);this.size=t.size}Fo.prototype.clear=nB;Fo.prototype.delete=rB;Fo.prototype.get=aB;Fo.prototype.has=oB;Fo.prototype.set=sB;function lB(e,t){return e&&Dc(t,ah(t),e)}function uB(e,t){return e&&Dc(t,oh(t),e)}var tP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jT=tP&&typeof module=="object"&&module&&!module.nodeType&&module,cB=jT&&jT.exports===tP,zT=cB?zo.Buffer:void 0,KT=zT?zT.allocUnsafe:void 0;function nP(e,t){if(t)return e.slice();var n=e.length,r=KT?KT(n):new e.constructor(n);return e.copy(r),r}function dB(e,t){for(var n=-1,r=e==null?0:e.length,a=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[a++]=s)}return o}function rP(){return[]}var fB=Object.prototype,hB=fB.propertyIsEnumerable,WT=Object.getOwnPropertySymbols,l_=WT?function(e){return e==null?[]:(e=Object(e),dB(WT(e),function(t){return hB.call(e,t)}))}:rP;function pB(e,t){return Dc(e,l_(e),t)}var vB=Object.getOwnPropertySymbols,aP=vB?function(e){for(var t=[];e;)i_(t,l_(e)),e=s_(e);return t}:rP;function mB(e,t){return Dc(e,aP(e),t)}function oP(e,t,n){var r=t(e);return Ta(e)?r:i_(r,n(e))}function i2(e){return oP(e,ah,l_)}function iP(e){return oP(e,oh,aP)}var s2=du(zo,"DataView"),l2=du(zo,"Promise"),Ku=du(zo,"Set"),XT="[object Map]",gB="[object Object]",YT="[object Promise]",JT="[object Set]",qT="[object WeakMap]",QT="[object DataView]",yB=cu(s2),bB=cu(gf),_B=cu(l2),wB=cu(Ku),SB=cu(o2),ko=uu;(s2&&ko(new s2(new ArrayBuffer(1)))!=QT||gf&&ko(new gf)!=XT||l2&&ko(l2.resolve())!=YT||Ku&&ko(new Ku)!=JT||o2&&ko(new o2)!=qT)&&(ko=function(e){var t=uu(e),n=t==gB?e.constructor:void 0,r=n?cu(n):"";if(r)switch(r){case yB:return QT;case bB:return XT;case _B:return YT;case wB:return JT;case SB:return qT}return t});var TB=Object.prototype,EB=TB.hasOwnProperty;function CB(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&EB.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var w0=zo.Uint8Array;function u_(e){var t=new e.constructor(e.byteLength);return new w0(t).set(new w0(e)),t}function xB(e,t){var n=t?u_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var IB=/\w*$/;function AB(e){var t=new e.constructor(e.source,IB.exec(e));return t.lastIndex=e.lastIndex,t}var ZT=yo?yo.prototype:void 0,eE=ZT?ZT.valueOf:void 0;function PB(e){return eE?Object(eE.call(e)):{}}function sP(e,t){var n=t?u_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MB="[object Boolean]",OB="[object Date]",$B="[object Map]",RB="[object Number]",kB="[object RegExp]",LB="[object Set]",NB="[object String]",DB="[object Symbol]",FB="[object ArrayBuffer]",BB="[object DataView]",HB="[object Float32Array]",UB="[object Float64Array]",VB="[object Int8Array]",GB="[object Int16Array]",jB="[object Int32Array]",zB="[object Uint8Array]",KB="[object Uint8ClampedArray]",WB="[object Uint16Array]",XB="[object Uint32Array]";function YB(e,t,n){var r=e.constructor;switch(t){case FB:return u_(e);case MB:case OB:return new r(+e);case BB:return xB(e,n);case HB:case UB:case VB:case GB:case jB:case zB:case KB:case WB:case XB:return sP(e,n);case $B:return new r;case RB:case NB:return new r(e);case kB:return AB(e);case LB:return new r;case DB:return PB(e)}}function lP(e){return typeof e.constructor=="function"&&!n_(e)?aF(s_(e)):{}}var JB="[object Map]";function qB(e){return pi(e)&&ko(e)==JB}var tE=cc&&cc.isMap,QB=tE?r_(tE):qB,ZB="[object Set]";function eH(e){return pi(e)&&ko(e)==ZB}var nE=cc&&cc.isSet,tH=nE?r_(nE):eH,nH=1,rH=2,aH=4,uP="[object Arguments]",oH="[object Array]",iH="[object Boolean]",sH="[object Date]",lH="[object Error]",cP="[object Function]",uH="[object GeneratorFunction]",cH="[object Map]",dH="[object Number]",dP="[object Object]",fH="[object RegExp]",hH="[object Set]",pH="[object String]",vH="[object Symbol]",mH="[object WeakMap]",gH="[object ArrayBuffer]",yH="[object DataView]",bH="[object Float32Array]",_H="[object Float64Array]",wH="[object Int8Array]",SH="[object Int16Array]",TH="[object Int32Array]",EH="[object Uint8Array]",CH="[object Uint8ClampedArray]",xH="[object Uint16Array]",IH="[object Uint32Array]",er={};er[uP]=er[oH]=er[gH]=er[yH]=er[iH]=er[sH]=er[bH]=er[_H]=er[wH]=er[SH]=er[TH]=er[cH]=er[dH]=er[dP]=er[fH]=er[hH]=er[pH]=er[vH]=er[EH]=er[CH]=er[xH]=er[IH]=!0;er[lH]=er[cP]=er[mH]=!1;function Wu(e,t,n,r,a,o){var s,l=t&nH,u=t&rH,c=t&aH;if(n&&(s=a?n(e,r,a,o):n(e)),s!==void 0)return s;if(!Ea(e))return e;var f=Ta(e);if(f){if(s=CB(e),!l)return UA(e,s)}else{var d=ko(e),p=d==cP||d==uH;if(vf(e))return nP(e,l);if(d==dP||d==uP||p&&!a){if(s=u||p?{}:lP(e),!l)return u?mB(e,uB(s,e)):pB(e,lB(s,e))}else{if(!er[d])return a?e:{};s=YB(e,d,l)}}o||(o=new Fo);var g=o.get(e);if(g)return g;o.set(e,s),tH(e)?e.forEach(function(S){s.add(Wu(S,t,n,S,e,o))}):QB(e)&&e.forEach(function(S,_){s.set(_,Wu(S,t,n,_,e,o))});var y=c?u?iP:i2:u?oh:ah,m=f?void 0:y(e);return hF(m||e,function(S,_){m&&(_=S,S=e[_]),e_(s,_,Wu(S,t,n,_,e,o))}),s}var AH=4;function rE(e){return Wu(e,AH)}var PH=1,MH=4;function S0(e){return Wu(e,PH|MH)}var OH="__lodash_hash_undefined__";function $H(e){return this.__data__.set(e,OH),this}function RH(e){return this.__data__.has(e)}function yf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Qi;++t<n;)this.add(e[t])}yf.prototype.add=yf.prototype.push=$H;yf.prototype.has=RH;function kH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function fP(e,t){return e.has(t)}var LH=1,NH=2;function hP(e,t,n,r,a,o){var s=n&LH,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,g=n&NH?new yf:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var y=e[d],m=t[d];if(r)var S=s?r(m,y,d,t,e,o):r(y,m,d,e,t,o);if(S!==void 0){if(S)continue;p=!1;break}if(g){if(!kH(t,function(_,P){if(!fP(g,P)&&(y===_||a(y,_,n,r,o)))return g.push(P)})){p=!1;break}}else if(!(y===m||a(y,m,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function DH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function c_(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var FH=1,BH=2,HH="[object Boolean]",UH="[object Date]",VH="[object Error]",GH="[object Map]",jH="[object Number]",zH="[object RegExp]",KH="[object Set]",WH="[object String]",XH="[object Symbol]",YH="[object ArrayBuffer]",JH="[object DataView]",aE=yo?yo.prototype:void 0,Em=aE?aE.valueOf:void 0;function qH(e,t,n,r,a,o,s){switch(n){case JH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case YH:return!(e.byteLength!=t.byteLength||!o(new w0(e),new w0(t)));case HH:case UH:case jH:return rh(+e,+t);case VH:return e.name==t.name&&e.message==t.message;case zH:case WH:return e==t+"";case GH:var l=DH;case KH:var u=r&FH;if(l||(l=c_),e.size!=t.size&&!u)return!1;var c=s.get(e);if(c)return c==t;r|=BH,s.set(e,t);var f=hP(l(e),l(t),r,a,o,s);return s.delete(e),f;case XH:if(Em)return Em.call(e)==Em.call(t)}return!1}var QH=1,ZH=Object.prototype,e9=ZH.hasOwnProperty;function t9(e,t,n,r,a,o){var s=n&QH,l=i2(e),u=l.length,c=i2(t),f=c.length;if(u!=f&&!s)return!1;for(var d=u;d--;){var p=l[d];if(!(s?p in t:e9.call(t,p)))return!1}var g=o.get(e),y=o.get(t);if(g&&y)return g==t&&y==e;var m=!0;o.set(e,t),o.set(t,e);for(var S=s;++d<u;){p=l[d];var _=e[p],P=t[p];if(r)var A=s?r(P,_,p,t,e,o):r(_,P,p,e,t,o);if(!(A===void 0?_===P||a(_,P,n,r,o):A)){m=!1;break}S||(S=p=="constructor")}if(m&&!S){var $=e.constructor,k=t.constructor;$!=k&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(t),m}var n9=1,oE="[object Arguments]",iE="[object Array]",Lh="[object Object]",r9=Object.prototype,sE=r9.hasOwnProperty;function a9(e,t,n,r,a,o){var s=Ta(e),l=Ta(t),u=s?iE:ko(e),c=l?iE:ko(t);u=u==oE?Lh:u,c=c==oE?Lh:c;var f=u==Lh,d=c==Lh,p=u==c;if(p&&vf(e)){if(!vf(t))return!1;s=!0,f=!1}if(p&&!f)return o||(o=new Fo),s||a_(e)?hP(e,t,n,r,a,o):qH(e,t,u,n,r,a,o);if(!(n&n9)){var g=f&&sE.call(e,"__wrapped__"),y=d&&sE.call(t,"__wrapped__");if(g||y){var m=g?e.value():e,S=y?t.value():t;return o||(o=new Fo),a(m,S,n,r,o)}}return p?(o||(o=new Fo),t9(e,t,n,r,a,o)):!1}function wv(e,t,n,r,a){return e===t?!0:e==null||t==null||!pi(e)&&!pi(t)?e!==e&&t!==t:a9(e,t,n,r,wv,a)}var o9=1,i9=2;function s9(e,t,n,r){var a=n.length,o=a;if(e==null)return!o;for(e=Object(e);a--;){var s=n[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=n[a];var l=s[0],u=e[l],c=s[1];if(s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Fo,d;if(!(d===void 0?wv(c,u,o9|i9,r,f):d))return!1}}return!0}function pP(e){return e===e&&!Ea(e)}function l9(e){for(var t=ah(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,pP(a)]}return t}function vP(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function u9(e){var t=l9(e);return t.length==1&&t[0][2]?vP(t[0][0],t[0][1]):function(n){return n===e||s9(n,e,t)}}function c9(e,t){return e!=null&&t in Object(e)}function d9(e,t,n){t=Bc(t,e);for(var r=-1,a=t.length,o=!1;++r<a;){var s=Hc(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=a?o:(a=e==null?0:e.length,!!a&&t_(a)&&mv(s,a)&&(Ta(e)||pf(e)))}function mP(e,t){return e!=null&&d9(e,t,c9)}var f9=1,h9=2;function p9(e,t){return o_(e)&&pP(t)?vP(Hc(e),t):function(n){var r=lr(n,e);return r===void 0&&r===t?mP(n,e):wv(t,r,f9|h9)}}function v9(e){return function(t){return t==null?void 0:t[e]}}function m9(e){return function(t){return _v(t,e)}}function g9(e){return o_(e)?v9(Hc(e)):m9(e)}function gP(e){return typeof e=="function"?e:e==null?qb:typeof e=="object"?Ta(e)?p9(e[0],e[1]):u9(e):g9(e)}function y9(e){return function(t,n,r){for(var a=-1,o=Object(t),s=r(t),l=s.length;l--;){var u=s[++a];if(n(o[u],u,o)===!1)break}return t}}var yP=y9();function b9(e,t){return e&&yP(e,t,ah)}function _9(e,t){return function(n,r){if(n==null)return n;if(!Fc(n))return e(n,r);for(var a=n.length,o=-1,s=Object(n);++o<a&&r(s[o],o,s)!==!1;);return n}}var w9=_9(b9),Cm=function(){return zo.Date.now()},S9="Expected a function",T9=Math.max,E9=Math.min;function Ha(e,t,n){var r,a,o,s,l,u,c=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(S9);t=LT(t)||0,Ea(n)&&(f=!!n.leading,d="maxWait"in n,o=d?T9(LT(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function g(L){var B=r,H=a;return r=a=void 0,c=L,s=e.apply(H,B),s}function y(L){return c=L,l=setTimeout(_,t),f?g(L):s}function m(L){var B=L-u,H=L-c,G=t-B;return d?E9(G,o-H):G}function S(L){var B=L-u,H=L-c;return u===void 0||B>=t||B<0||d&&H>=o}function _(){var L=Cm();if(S(L))return P(L);l=setTimeout(_,m(L))}function P(L){return l=void 0,p&&r?g(L):(r=a=void 0,s)}function A(){l!==void 0&&clearTimeout(l),c=0,r=u=a=l=void 0}function $(){return l===void 0?s:P(Cm())}function k(){var L=Cm(),B=S(L);if(r=arguments,a=this,u=L,B){if(l===void 0)return y(u);if(d)return clearTimeout(l),l=setTimeout(_,t),g(u)}return l===void 0&&(l=setTimeout(_,t)),s}return k.cancel=A,k.flush=$,k}function u2(e,t,n){(n!==void 0&&!rh(e[t],n)||n===void 0&&!(t in e))&&Zb(e,t,n)}function bP(e){return pi(e)&&Fc(e)}function c2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function C9(e){return Dc(e,oh(e))}function x9(e,t,n,r,a,o,s){var l=c2(e,n),u=c2(t,n),c=s.get(u);if(c){u2(e,n,c);return}var f=o?o(l,u,n+"",e,t,s):void 0,d=f===void 0;if(d){var p=Ta(u),g=!p&&vf(u),y=!p&&!g&&a_(u);f=u,p||g||y?Ta(l)?f=l:bP(l)?f=UA(l):g?(d=!1,f=nP(u,!0)):y?(d=!1,f=sP(u,!0)):f=[]:eP(u)||pf(u)?(f=l,pf(l)?f=C9(l):(!Ea(l)||Qb(l))&&(f=lP(u))):d=!1}d&&(s.set(u,f),a(f,u,r,o,s),s.delete(u)),u2(e,n,f)}function _P(e,t,n,r,a){e!==t&&yP(t,function(o,s){if(a||(a=new Fo),Ea(o))x9(e,t,s,n,_P,r,a);else{var l=r?r(c2(e,s),o,s+"",e,t,a):void 0;l===void 0&&(l=o),u2(e,s,l)}},oh)}function I9(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function wP(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return GA(e,gP(t),a,!0)}function A9(e,t){var n=-1,r=Fc(e)?Array(e.length):[];return w9(e,function(a,o,s){r[++n]=t(a,o,s)}),r}function P9(e,t){var n=Ta(e)?Jb:A9;return n(e,gP(t))}function M9(e,t){return ih(P9(e,t),1)}var O9=1/0;function $9(e){var t=e==null?0:e.length;return t?ih(e,O9):[]}function T0(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function R9(e,t){return t.length<2?e:_v(e,tB(t,0,-1))}function ca(e,t){return wv(e,t)}function Br(e){return e==null}function SP(e){return e===void 0}var k9=EF(function(e,t,n){_P(e,t,n)});function L9(e,t){return t=Bc(t,e),e=R9(e,t),e==null||delete e[Hc(I9(t))]}function N9(e){return eP(e)?void 0:e}var D9=1,F9=2,B9=4,H9=QA(function(e,t){var n={};if(e==null)return n;var r=!1;t=Jb(t,function(o){return o=Bc(o,e),r||(r=o.length>1),o}),Dc(e,iP(e),n),r&&(n=Wu(n,D9|F9|B9,N9));for(var a=t.length;a--;)L9(n,t[a]);return n});function TP(e,t,n,r){if(!Ea(e))return e;t=Bc(t,e);for(var a=-1,o=t.length,s=o-1,l=e;l!=null&&++a<o;){var u=Hc(t[a]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=s){var f=l[u];c=void 0,c===void 0&&(c=Ea(f)?f:mv(t[a+1])?[]:{})}e_(l,u,c),l=l[u]}return e}function U9(e,t,n){for(var r=-1,a=t.length,o={};++r<a;){var s=t[r],l=_v(e,s);n(l,s)&&TP(o,Bc(s,e),l)}return o}function V9(e,t){return U9(e,t,function(n,r){return mP(e,r)})}var ui=QA(function(e,t){return e==null?{}:V9(e,t)});function G9(e,t,n){return e==null?e:TP(e,t,n)}var j9="Expected a function";function Ul(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(j9);return Ea(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ha(e,t,{leading:r,maxWait:t,trailing:a})}var z9=1/0,K9=Ku&&1/c_(new Ku([,-0]))[1]==z9?function(e){return new Ku(e)}:iF,W9=200;function X9(e,t,n){var r=-1,a=gF,o=e.length,s=!0,l=[],u=l;if(o>=W9){var c=K9(e);if(c)return c_(c);s=!1,a=fP,u=new yf}else u=l;t:for(;++r<o;){var f=e[r],d=f;if(f=f!==0?f:0,s&&d===d){for(var p=u.length;p--;)if(u[p]===d)continue t;l.push(f)}else a(u,d,n)||(u!==l&&u.push(d),l.push(f))}return l}var xm=zA(function(e){return X9(ih(e,1,bP,!0))});const vr=e=>e===void 0,mr=e=>typeof e=="boolean",It=e=>typeof e=="number",so=e=>!e&&e!==0||st(e)&&e.length===0||Kt(e)&&!Object.keys(e).length,bo=e=>typeof Element>"u"?!1:e instanceof Element,Ql=e=>Br(e),Y9=e=>Rt(e)?!Number.isNaN(Number(e)):!1,Sv=e=>e===window,Us=e=>ln?window.requestAnimationFrame(e):setTimeout(e,16),Zl=e=>ln?window.cancelAnimationFrame(e):clearTimeout(e),d_=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),si=e=>eh(e),dc=e=>Object.keys(e),J9=e=>Object.entries(e),kp=(e,t,n)=>({get value(){return lr(e,t,n)},set value(r){G9(e,t,r)}});class q9 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Er(e,t){throw new q9(`[${e}] ${t}`)}const EP=(e="")=>e.split(" ").filter(t=>!!t.trim()),vo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},lo=(e,t)=>{!e||!t.trim()||e.classList.add(...EP(t))},da=(e,t)=>{!e||!t.trim()||e.classList.remove(...EP(t))},Es=(e,t)=>{var n;if(!ln||!e||!t)return"";let r=go(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch{return e.style[r]}};function rr(e,t="px"){if(!e)return"";if(It(e)||Y9(e))return`${e}${t}`;if(Rt(e))return e}const Q9=(e,t)=>{if(!ln)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Es(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},f_=(e,t)=>{if(!ln)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Q9(n,t))return n;n=n.parentNode}return n};let Nh;const CP=e=>{var t;if(!ln)return 0;if(Nh!==void 0)return Nh;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const o=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Nh=r-o,Nh};function xP(e,t){if(!ln)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),o=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:o>l&&(e.scrollTop=o-e.clientHeight)}function Z9(e,t,n,r,a){const o=Date.now();let s;const l=()=>{const c=Date.now()-o,f=SD(c>r?r:c,t,n,r);Sv(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,c<r?s=Us(l):typeof a=="function"&&a()};return l(),()=>{s&&Zl(s)}}const lE=(e,t)=>Sv(t)?e.ownerDocument.documentElement:t,uE=e=>Sv(e)?window.scrollY:e.scrollTop,Dh=e=>{if(!ln||e==="")return null;if(Rt(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var e7=he({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Zi=e7,t7=he({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Vs=t7,n7=he({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),_a=n7,r7=he({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),h_=r7,a7=he({name:"Back",__name:"back",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),de("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),o7=a7,i7=he({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),s7=i7,l7=he({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),IP=l7,u7=he({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),c7=u7,d7=he({name:"Check",__name:"check",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),sh=d7,f7=he({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),h7=f7,p7=he({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),de("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),p_=p7,v7=he({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),v_=v7,m7=he({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),de("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),tl=m7,g7=he({name:"Clock",__name:"clock",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),de("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),de("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),AP=g7,y7=he({name:"Close",__name:"close",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Go=y7,b7=he({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),fc=b7,_7=he({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),hc=_7,w7=he({name:"Delete",__name:"delete",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),S7=w7,T7=he({name:"Document",__name:"document",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),E7=T7,C7=he({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),x7=C7,I7=he({name:"Hide",__name:"hide",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),de("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),A7=I7,P7=he({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),m_=P7,M7=he({name:"Loading",__name:"loading",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),nl=M7,O7=he({name:"Minus",__name:"minus",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),$7=O7,R7=he({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),cE=R7,k7=he({name:"More",__name:"more",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),L7=k7,N7=he({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),D7=N7,F7=he({name:"Plus",__name:"plus",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),PP=F7,B7=he({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),H7=B7,U7=he({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),V7=U7,G7=he({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),j7=G7,z7=he({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),K7=z7,W7=he({name:"Search",__name:"search",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),X7=W7,Y7=he({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),J7=Y7,q7=he({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Q7=q7,Z7=he({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),Fh=Z7,eU=he({name:"Star",__name:"star",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),tU=eU,nU=he({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),MP=nU,rU=he({name:"View",__name:"view",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),aU=rU,oU=he({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Tv=oU,iU=he({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),OP=iU,sU=he({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(V(),ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[de("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),lU=sU;const $P="__epPropKey",xe=e=>e,uU=e=>Kt(e)&&!!e[$P],Ko=(e,t)=>{if(!Kt(e)||uU(e))return e;const{values:n,required:r,default:a,type:o,validator:s}=e,u={type:o,required:!!r,validator:n||s?c=>{let f=!1,d=[];if(n&&(d=Array.from(n),cn(e,"default")&&d.push(a),f||(f=d.includes(c))),s&&(f||(f=s(c))),!f&&d.length>0){const p=[...new Set(d)].map(g=>JSON.stringify(g)).join(", ");J6(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[$P]:!0};return cn(e,"default")&&(u.default=a),u},tt=e=>T0(Object.entries(e).map(([t,n])=>[t,Ko(n,t)])),Pn=xe([String,Object,Function]),g_={Close:Go},y_={Close:Go,SuccessFilled:MP,InfoFilled:m_,WarningFilled:Tv,CircleCloseFilled:v_},Gs={success:MP,warning:Tv,error:v_,info:m_},b_={validating:nl,success:p_,error:tl},jt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},RP=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),cU=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Yn=e=>(e.install=xn,e),Ev=(...e)=>t=>{e.forEach(n=>{Pt(n)?n(t):n.value=t})},St={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},dU=["year","years","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],Im=["sun","mon","tue","wed","thu","fri","sat"],Yt="update:modelValue",Hn="change",wa="input",dE=Symbol("INSTALLED_KEY"),Si=["","default","small","large"],kP=e=>["",...Si].includes(e);var no=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(no||{});function d2(e){return zn(e)&&e.type===mt}function fU(e){return zn(e)&&e.type===la}function hU(e){return zn(e)&&!d2(e)&&!fU(e)}const pU=e=>{if(!zn(e))return{};const t=e.props||{},n=(zn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{cn(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[go(a)]=t[a]}),r},vU=e=>{if(!st(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},$s=e=>{const t=st(e)?e:[e],n=[];return t.forEach(r=>{var a;st(r)?n.push(...$s(r)):zn(r)&&st(r.children)?n.push(...$s(r.children)):(n.push(r),zn(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...$s(r.component.subTree)))}),n},fE=e=>[...new Set(e)],ja=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],__=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Xn=e=>e;function mU(e){let t=0;const n=(...r)=>{t&&Zl(t),t=Us(()=>{e(...r),t=0})};return n.cancel=()=>{Zl(t),t=0},n}const gU=["class","style"],yU=/^on[A-Z]/,w_=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=N(()=>((n==null?void 0:n.value)||[]).concat(gU)),a=Gt();return N(a?()=>{var o;return T0(Object.entries((o=a.proxy)==null?void 0:o.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&yU.test(s))))}:()=>({}))},Fr=({from:e,replacement:t,scope:n,version:r,ref:a,type:o="API"},s)=>{We(()=>h(s),l=>{},{immediate:!0})},LP=(e,t,n,r)=>{let a={offsetX:0,offsetY:0};const o=u=>{const c=u.clientX,f=u.clientY,{offsetX:d,offsetY:p}=a,g=e.value.getBoundingClientRect(),y=g.left,m=g.top,S=g.width,_=g.height,P=document.documentElement.clientWidth,A=document.documentElement.clientHeight,$=-y+d,k=-m+p,L=P-y-S+d,B=A-m-_+p,H=j=>{let W=d+j.clientX-c,Q=p+j.clientY-f;r!=null&&r.value||(W=Math.min(Math.max(W,$),L),Q=Math.min(Math.max(Q,k),B)),a={offsetX:W,offsetY:Q},e.value&&(e.value.style.transform=`translate(${rr(W)}, ${rr(Q)})`)},G=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",G)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",G)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Ht(()=>{ta(()=>{n.value?s():l()})}),Dn(()=>{l()})};var bU={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const _U=e=>(t,n)=>wU(t,n,h(e)),wU=(e,t,n)=>lr(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var o;return`${(o=t==null?void 0:t[a])!=null?o:`{${a}}`}`}),SU=e=>{const t=N(()=>h(e).name),n=Un(e)?e:ee(e);return{lang:t,locale:n,t:_U(e)}},NP=Symbol("localeContextKey"),hn=e=>{const t=e||dt(NP,ee());return SU(N(()=>t.value||bU))},Gd="el",TU="is-",dl=(e,t,n,r,a)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),a&&(o+=`--${a}`),o},DP=Symbol("namespaceContextKey"),S_=e=>{const t=e||(Gt()?dt(DP,ee(Gd)):ee(Gd));return N(()=>h(t)||Gd)},Je=(e,t)=>{const n=S_(t);return{namespace:n,b:(m="")=>dl(n.value,e,m,"",""),e:m=>m?dl(n.value,e,"",m,""):"",m:m=>m?dl(n.value,e,"","",m):"",be:(m,S)=>m&&S?dl(n.value,e,m,S,""):"",em:(m,S)=>m&&S?dl(n.value,e,"",m,S):"",bm:(m,S)=>m&&S?dl(n.value,e,m,"",S):"",bem:(m,S,_)=>m&&S&&_?dl(n.value,e,m,S,_):"",is:(m,...S)=>{const _=S.length>=1?S[0]:!0;return m&&_?`${TU}${m}`:""},cssVar:m=>{const S={};for(const _ in m)m[_]&&(S[`--${n.value}-${_}`]=m[_]);return S},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const S={};for(const _ in m)m[_]&&(S[`--${n.value}-${e}-${_}`]=m[_]);return S},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},T_=(e,t={})=>{Un(e)||Er("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Je("popup"),r=SI(()=>n.bm("parent","hidden"));if(!ln||vo(document.body,r.value))return;let a=0,o=!1,s="0";const l=()=>{setTimeout(()=>{da(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=s)},200)};We(e,u=>{if(!u){l();return}o=!vo(document.body,r.value),o&&(s=document.body.style.width),a=CP(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,f=Es(document.body,"overflowY");a>0&&(c||f==="scroll")&&o&&(document.body.style.width=`calc(100% - ${a}px)`),lo(document.body,r.value)}),lI(()=>l())},EU=Ko({type:xe(Boolean),default:null}),CU=Ko({type:xe(Function)}),FP=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:EU,[n]:CU};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:f,onHide:d})=>{const p=Gt(),{emit:g}=p,y=p.props,m=N(()=>Pt(y[n])),S=N(()=>y[e]===null),_=B=>{s.value!==!0&&(s.value=!0,l&&(l.value=B),Pt(f)&&f(B))},P=B=>{s.value!==!1&&(s.value=!1,l&&(l.value=B),Pt(d)&&d(B))},A=B=>{if(y.disabled===!0||Pt(c)&&!c())return;const H=m.value&&ln;H&&g(t,!0),(S.value||!H)&&_(B)},$=B=>{if(y.disabled===!0||!ln)return;const H=m.value&&ln;H&&g(t,!1),(S.value||!H)&&P(B)},k=B=>{mr(B)&&(y.disabled&&B?m.value&&g(t,!1):s.value!==B&&(B?_():P()))},L=()=>{s.value?$():A()};return We(()=>y[e],k),u&&p.appContext.config.globalProperties.$route!==void 0&&We(()=>({...p.proxy.$route}),()=>{u.value&&s.value&&$()}),Ht(()=>{k(y[e])}),{hide:$,show:A,toggle:L,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:r}};FP("modelValue");const BP=e=>{const t=Gt();return N(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Da="top",_o="bottom",wo="right",Fa="left",E_="auto",lh=[Da,_o,wo,Fa],pc="start",bf="end",xU="clippingParents",HP="viewport",id="popper",IU="reference",hE=lh.reduce(function(e,t){return e.concat([t+"-"+pc,t+"-"+bf])},[]),fu=[].concat(lh,[E_]).reduce(function(e,t){return e.concat([t,t+"-"+pc,t+"-"+bf])},[]),AU="beforeRead",PU="read",MU="afterRead",OU="beforeMain",$U="main",RU="afterMain",kU="beforeWrite",LU="write",NU="afterWrite",DU=[AU,PU,MU,OU,$U,RU,kU,LU,NU];function vi(e){return e?(e.nodeName||"").toLowerCase():null}function Wo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vc(e){var t=Wo(e).Element;return e instanceof t||e instanceof Element}function mo(e){var t=Wo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C_(e){if(typeof ShadowRoot>"u")return!1;var t=Wo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FU(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!mo(o)||!vi(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function BU(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(u,c){return u[c]="",u},{});!mo(a)||!vi(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}var UP={name:"applyStyles",enabled:!0,phase:"write",fn:FU,effect:BU,requires:["computeStyles"]};function hi(e){return e.split("-")[0]}var Vl=Math.max,E0=Math.min,mc=Math.round;function gc(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(mo(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(r=mc(n.width)/s||1),o>0&&(a=mc(n.height)/o||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function x_(e){var t=gc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function VP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&C_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zi(e){return Wo(e).getComputedStyle(e)}function HU(e){return["table","td","th"].indexOf(vi(e))>=0}function rl(e){return((vc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cv(e){return vi(e)==="html"?e:e.assignedSlot||e.parentNode||(C_(e)?e.host:null)||rl(e)}function pE(e){return!mo(e)||zi(e).position==="fixed"?null:e.offsetParent}function UU(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&mo(e)){var r=zi(e);if(r.position==="fixed")return null}var a=Cv(e);for(C_(a)&&(a=a.host);mo(a)&&["html","body"].indexOf(vi(a))<0;){var o=zi(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function uh(e){for(var t=Wo(e),n=pE(e);n&&HU(n)&&zi(n).position==="static";)n=pE(n);return n&&(vi(n)==="html"||vi(n)==="body"&&zi(n).position==="static")?t:n||UU(e)||t}function I_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jd(e,t,n){return Vl(e,E0(t,n))}function VU(e,t,n){var r=jd(e,t,n);return r>n?n:r}function GP(){return{top:0,right:0,bottom:0,left:0}}function jP(e){return Object.assign({},GP(),e)}function zP(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var GU=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,jP(typeof e!="number"?e:zP(e,lh))};function jU(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=hi(n.placement),u=I_(l),c=[Fa,wo].indexOf(l)>=0,f=c?"height":"width";if(!(!o||!s)){var d=GU(a.padding,n),p=x_(o),g=u==="y"?Da:Fa,y=u==="y"?_o:wo,m=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],S=s[u]-n.rects.reference[u],_=uh(o),P=_?u==="y"?_.clientHeight||0:_.clientWidth||0:0,A=m/2-S/2,$=d[g],k=P-p[f]-d[y],L=P/2-p[f]/2+A,B=jd($,L,k),H=u;n.modifiersData[r]=(t={},t[H]=B,t.centerOffset=B-L,t)}}function zU(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!VP(t.elements.popper,a)||(t.elements.arrow=a))}var KU={name:"arrow",enabled:!0,phase:"main",fn:jU,effect:zU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yc(e){return e.split("-")[1]}var WU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function XU(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:mc(t*a)/a||0,y:mc(n*a)/a||0}}function vE(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=s.x,g=p===void 0?0:p,y=s.y,m=y===void 0?0:y,S=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=S.x,m=S.y;var _=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),A=Fa,$=Da,k=window;if(c){var L=uh(n),B="clientHeight",H="clientWidth";if(L===Wo(n)&&(L=rl(n),zi(L).position!=="static"&&l==="absolute"&&(B="scrollHeight",H="scrollWidth")),L=L,a===Da||(a===Fa||a===wo)&&o===bf){$=_o;var G=d&&L===k&&k.visualViewport?k.visualViewport.height:L[B];m-=G-r.height,m*=u?1:-1}if(a===Fa||(a===Da||a===_o)&&o===bf){A=wo;var j=d&&L===k&&k.visualViewport?k.visualViewport.width:L[H];g-=j-r.width,g*=u?1:-1}}var W=Object.assign({position:l},c&&WU),Q=f===!0?XU({x:g,y:m}):{x:g,y:m};if(g=Q.x,m=Q.y,u){var ue;return Object.assign({},W,(ue={},ue[$]=P?"0":"",ue[A]=_?"0":"",ue.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",ue))}return Object.assign({},W,(t={},t[$]=P?m+"px":"",t[A]=_?g+"px":"",t.transform="",t))}function YU(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:hi(t.placement),variation:yc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vE(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vE(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var KP={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YU,data:{}},Bh={passive:!0};function JU(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,u=Wo(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",n.update,Bh)}),l&&u.addEventListener("resize",n.update,Bh),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",n.update,Bh)}),l&&u.removeEventListener("resize",n.update,Bh)}}var WP={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JU,data:{}},qU={left:"right",right:"left",bottom:"top",top:"bottom"};function Lp(e){return e.replace(/left|right|bottom|top/g,function(t){return qU[t]})}var QU={start:"end",end:"start"};function mE(e){return e.replace(/start|end/g,function(t){return QU[t]})}function A_(e){var t=Wo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function P_(e){return gc(rl(e)).left+A_(e).scrollLeft}function ZU(e){var t=Wo(e),n=rl(e),r=t.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;return r&&(a=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:o,x:s+P_(e),y:l}}function eV(e){var t,n=rl(e),r=A_(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Vl(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Vl(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+P_(e),u=-r.scrollTop;return zi(a||n).direction==="rtl"&&(l+=Vl(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function M_(e){var t=zi(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function XP(e){return["html","body","#document"].indexOf(vi(e))>=0?e.ownerDocument.body:mo(e)&&M_(e)?e:XP(Cv(e))}function zd(e,t){var n;t===void 0&&(t=[]);var r=XP(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Wo(r),s=a?[o].concat(o.visualViewport||[],M_(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(zd(Cv(s)))}function f2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tV(e){var t=gc(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function gE(e,t){return t===HP?f2(ZU(e)):vc(t)?tV(t):f2(eV(rl(e)))}function nV(e){var t=zd(Cv(e)),n=["absolute","fixed"].indexOf(zi(e).position)>=0,r=n&&mo(e)?uh(e):e;return vc(r)?t.filter(function(a){return vc(a)&&VP(a,r)&&vi(a)!=="body"}):[]}function rV(e,t,n){var r=t==="clippingParents"?nV(e):[].concat(t),a=[].concat(r,[n]),o=a[0],s=a.reduce(function(l,u){var c=gE(e,u);return l.top=Vl(c.top,l.top),l.right=E0(c.right,l.right),l.bottom=E0(c.bottom,l.bottom),l.left=Vl(c.left,l.left),l},gE(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function YP(e){var t=e.reference,n=e.element,r=e.placement,a=r?hi(r):null,o=r?yc(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(a){case Da:u={x:s,y:t.y-n.height};break;case _o:u={x:s,y:t.y+t.height};break;case wo:u={x:t.x+t.width,y:l};break;case Fa:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var c=a?I_(a):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case pc:u[c]=u[c]-(t[f]/2-n[f]/2);break;case bf:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function _f(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.boundary,s=o===void 0?xU:o,l=n.rootBoundary,u=l===void 0?HP:l,c=n.elementContext,f=c===void 0?id:c,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,y=g===void 0?0:g,m=jP(typeof y!="number"?y:zP(y,lh)),S=f===id?IU:id,_=e.rects.popper,P=e.elements[p?S:f],A=rV(vc(P)?P:P.contextElement||rl(e.elements.popper),s,u),$=gc(e.elements.reference),k=YP({reference:$,element:_,strategy:"absolute",placement:a}),L=f2(Object.assign({},_,k)),B=f===id?L:$,H={top:A.top-B.top+m.top,bottom:B.bottom-A.bottom+m.bottom,left:A.left-B.left+m.left,right:B.right-A.right+m.right},G=e.modifiersData.offset;if(f===id&&G){var j=G[a];Object.keys(H).forEach(function(W){var Q=[wo,_o].indexOf(W)>=0?1:-1,ue=[Da,_o].indexOf(W)>=0?"y":"x";H[W]+=j[ue]*Q})}return H}function aV(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?fu:u,f=yc(r),d=f?l?hE:hE.filter(function(y){return yc(y)===f}):lh,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var g=p.reduce(function(y,m){return y[m]=_f(e,{placement:m,boundary:a,rootBoundary:o,padding:s})[hi(m)],y},{});return Object.keys(g).sort(function(y,m){return g[y]-g[m]})}function oV(e){if(hi(e)===E_)return[];var t=Lp(e);return[mE(e),t,mE(t)]}function iV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,m=n.allowedAutoPlacements,S=t.options.placement,_=hi(S),P=_===S,A=u||(P||!y?[Lp(S)]:oV(S)),$=[S].concat(A).reduce(function(Me,Ge){return Me.concat(hi(Ge)===E_?aV(t,{placement:Ge,boundary:f,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:m}):Ge)},[]),k=t.rects.reference,L=t.rects.popper,B=new Map,H=!0,G=$[0],j=0;j<$.length;j++){var W=$[j],Q=hi(W),ue=yc(W)===pc,se=[Da,_o].indexOf(Q)>=0,ne=se?"width":"height",J=_f(t,{placement:W,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),X=se?ue?wo:Fa:ue?_o:Da;k[ne]>L[ne]&&(X=Lp(X));var te=Lp(X),Y=[];if(o&&Y.push(J[Q]<=0),l&&Y.push(J[X]<=0,J[te]<=0),Y.every(function(Me){return Me})){G=W,H=!1;break}B.set(W,Y)}if(H)for(var Z=y?3:1,ae=function(Me){var Ge=$.find(function(Ee){var pe=B.get(Ee);if(pe)return pe.slice(0,Me).every(function(_e){return _e})});if(Ge)return G=Ge,"break"},ve=Z;ve>0;ve--){var we=ae(ve);if(we==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}var sV={name:"flip",enabled:!0,phase:"main",fn:iV,requiresIfExists:["offset"],data:{_skip:!1}};function yE(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bE(e){return[Da,wo,_o,Fa].some(function(t){return e[t]>=0})}function lV(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=_f(t,{elementContext:"reference"}),l=_f(t,{altBoundary:!0}),u=yE(s,r),c=yE(l,a,o),f=bE(u),d=bE(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var uV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lV};function cV(e,t,n){var r=hi(e),a=[Fa,Da].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[Fa,wo].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function dV(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=fu.reduce(function(f,d){return f[d]=cV(d,t.rects,o),f},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var fV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dV};function hV(e){var t=e.state,n=e.name;t.modifiersData[n]=YP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var JP={name:"popperOffsets",enabled:!0,phase:"read",fn:hV,data:{}};function pV(e){return e==="x"?"y":"x"}function vV(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,y=n.tetherOffset,m=y===void 0?0:y,S=_f(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),_=hi(t.placement),P=yc(t.placement),A=!P,$=I_(_),k=pV($),L=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,G=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,j=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(L){if(o){var ue,se=$==="y"?Da:Fa,ne=$==="y"?_o:wo,J=$==="y"?"height":"width",X=L[$],te=X+S[se],Y=X-S[ne],Z=g?-H[J]/2:0,ae=P===pc?B[J]:H[J],ve=P===pc?-H[J]:-B[J],we=t.elements.arrow,Me=g&&we?x_(we):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:GP(),Ee=Ge[se],pe=Ge[ne],_e=jd(0,B[J],Me[J]),He=A?B[J]/2-Z-_e-Ee-j.mainAxis:ae-_e-Ee-j.mainAxis,Ae=A?-B[J]/2+Z+_e+pe+j.mainAxis:ve+_e+pe+j.mainAxis,ke=t.elements.arrow&&uh(t.elements.arrow),ze=ke?$==="y"?ke.clientTop||0:ke.clientLeft||0:0,ce=(ue=W==null?void 0:W[$])!=null?ue:0,me=X+He-ce-ze,Be=X+Ae-ce,be=jd(g?E0(te,me):te,X,g?Vl(Y,Be):Y);L[$]=be,Q[$]=be-X}if(l){var Oe,Ye=$==="x"?Da:Fa,qe=$==="x"?_o:wo,Qe=L[k],et=k==="y"?"height":"width",je=Qe+S[Ye],lt=Qe-S[qe],ut=[Da,Fa].indexOf(_)!==-1,Ke=(Oe=W==null?void 0:W[k])!=null?Oe:0,ct=ut?je:Qe-B[et]-H[et]-Ke+j.altAxis,Et=ut?Qe+B[et]+H[et]-Ke-j.altAxis:lt,Ut=g&&ut?VU(ct,Qe,Et):jd(g?ct:je,Qe,g?Et:lt);L[k]=Ut,Q[k]=Ut-Qe}t.modifiersData[r]=Q}}var mV={name:"preventOverflow",enabled:!0,phase:"main",fn:vV,requiresIfExists:["offset"]};function gV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yV(e){return e===Wo(e)||!mo(e)?A_(e):gV(e)}function bV(e){var t=e.getBoundingClientRect(),n=mc(t.width)/e.offsetWidth||1,r=mc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _V(e,t,n){n===void 0&&(n=!1);var r=mo(t),a=mo(t)&&bV(t),o=rl(t),s=gc(e,a),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((vi(t)!=="body"||M_(o))&&(l=yV(t)),mo(t)?(u=gc(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=P_(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function wV(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&a(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function SV(e){var t=wV(e);return DU.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function TV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function EV(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _E={placement:"bottom",modifiers:[],strategy:"absolute"};function wE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function O_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?_E:a;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_E,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,p={state:c,setOptions:function(m){var S=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},o,c.options,S),c.scrollParents={reference:vc(s)?zd(s):s.contextElement?zd(s.contextElement):[],popper:zd(l)};var _=SV(EV([].concat(r,c.options.modifiers)));return c.orderedModifiers=_.filter(function(P){return P.enabled}),g(),p.update()},forceUpdate:function(){if(!d){var m=c.elements,S=m.reference,_=m.popper;if(wE(S,_)){c.rects={reference:_V(S,uh(_),c.options.strategy==="fixed"),popper:x_(_)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(H){return c.modifiersData[H.name]=Object.assign({},H.data)});for(var P=0;P<c.orderedModifiers.length;P++){if(c.reset===!0){c.reset=!1,P=-1;continue}var A=c.orderedModifiers[P],$=A.fn,k=A.options,L=k===void 0?{}:k,B=A.name;typeof $=="function"&&(c=$({state:c,options:L,name:B,instance:p})||c)}}}},update:TV(function(){return new Promise(function(m){p.forceUpdate(),m(c)})}),destroy:function(){y(),d=!0}};if(!wE(s,l))return p;p.setOptions(u).then(function(m){!d&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){c.orderedModifiers.forEach(function(m){var S=m.name,_=m.options,P=_===void 0?{}:_,A=m.effect;if(typeof A=="function"){var $=A({state:c,name:S,instance:p,options:P}),k=function(){};f.push($||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return p}}O_();var CV=[WP,JP,KP,UP];O_({defaultModifiers:CV});var xV=[WP,JP,KP,UP,fV,sV,mV,KU,uV],IV=O_({defaultModifiers:xV});const AV=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=PV(u);Object.assign(s.value,c)},requires:["computeStyles"]},a=N(()=>{const{onFirstUpdate:u,placement:c,strategy:f,modifiers:d}=h(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:f||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),o=Fn(),s=ee({styles:{popper:{position:h(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return We(a,u=>{const c=h(o);c&&c.setOptions(u)},{deep:!0}),We([e,t],([u,c])=>{l(),!(!u||!c)&&(o.value=IV(u,c,h(a)))}),Dn(()=>{l()}),{state:N(()=>{var u;return{...((u=h(o))==null?void 0:u.state)||{}}}),styles:N(()=>h(s).styles),attributes:N(()=>h(s).attributes),update:()=>{var u;return(u=h(o))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=h(o))==null?void 0:u.forceUpdate()},instanceRef:N(()=>h(o))}};function PV(e){const t=Object.keys(e.elements),n=T0(t.map(a=>[a,e.styles[a]||{}])),r=T0(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const $_=e=>{if(!e)return{onClick:xn,onMousedown:xn,onMouseup:xn};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}},MV=(e,t=0)=>{if(t===0)return e;const n=ee(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return Ht(a),We(()=>e.value,o=>{o?a():n.value=o}),n};function SE(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return nh(()=>n()),{registerTimeout:t,cancelTimeout:n}}const TE={prefix:Math.floor(Math.random()*1e4),current:0},OV=Symbol("elIdInjection"),R_=()=>Gt()?dt(OV,TE):TE,ra=e=>{const t=R_(),n=S_();return N(()=>h(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let $u=[];const EE=e=>{const t=e;t.key===St.esc&&$u.forEach(n=>n(t))},$V=e=>{Ht(()=>{$u.length===0&&document.addEventListener("keydown",EE),ln&&$u.push(e)}),Dn(()=>{$u=$u.filter(t=>t!==e),$u.length===0&&ln&&document.removeEventListener("keydown",EE)})};let CE;const qP=()=>{const e=S_(),t=R_(),n=N(()=>`${e.value}-popper-container-${t.prefix}`),r=N(()=>`#${n.value}`);return{id:n,selector:r}},RV=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},kV=()=>{const{id:e,selector:t}=qP();return dv(()=>{ln&&!CE&&!document.body.querySelector(t.value)&&(CE=RV(e.value))}),{id:e,selector:t}},LV=tt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),NV=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:o}=SE(),{registerTimeout:s,cancelTimeout:l}=SE();return{onOpen:f=>{o(()=>{r(f);const d=h(n);It(d)&&d>0&&s(()=>{a(f)},d)},h(e))},onClose:f=>{l(),o(()=>{a(f)},h(t))}}},QP=Symbol("elForwardRef"),DV=e=>{nn(QP,{setForwardRef:n=>{e.value=n}})},FV=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),xE={current:0},IE=ee(0),ZP=2e3,AE=Symbol("elZIndexContextKey"),eM=Symbol("zIndexContextKey"),Uc=e=>{const t=Gt()?dt(AE,xE):xE,n=e||(Gt()?dt(eM,void 0):void 0),r=N(()=>{const s=h(n);return It(s)?s:ZP}),a=N(()=>r.value+IE.value),o=()=>(t.current++,IE.value=t.current,a.value);return!ln&&dt(AE),{initialZIndex:r,currentZIndex:a,nextZIndex:o}},bc=Math.min,Gl=Math.max,C0=Math.round,Hh=Math.floor,js=e=>({x:e,y:e}),BV={left:"right",right:"left",bottom:"top",top:"bottom"},HV={start:"end",end:"start"};function h2(e,t,n){return Gl(e,bc(t,n))}function ch(e,t){return typeof e=="function"?e(t):e}function eu(e){return e.split("-")[0]}function dh(e){return e.split("-")[1]}function tM(e){return e==="x"?"y":"x"}function k_(e){return e==="y"?"height":"width"}function xv(e){return["top","bottom"].includes(eu(e))?"y":"x"}function L_(e){return tM(xv(e))}function UV(e,t,n){n===void 0&&(n=!1);const r=dh(e),a=L_(e),o=k_(a);let s=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=x0(s)),[s,x0(s)]}function VV(e){const t=x0(e);return[p2(e),t,p2(t)]}function p2(e){return e.replace(/start|end/g,t=>HV[t])}function GV(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:s;default:return[]}}function jV(e,t,n,r){const a=dh(e);let o=GV(eu(e),n==="start",r);return a&&(o=o.map(s=>s+"-"+a),t&&(o=o.concat(o.map(p2)))),o}function x0(e){return e.replace(/left|right|bottom|top/g,t=>BV[t])}function zV(e){return{top:0,right:0,bottom:0,left:0,...e}}function nM(e){return typeof e!="number"?zV(e):{top:e,right:e,bottom:e,left:e}}function I0(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function PE(e,t,n){let{reference:r,floating:a}=e;const o=xv(t),s=L_(t),l=k_(s),u=eu(t),c=o==="y",f=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[l]/2-a[l]/2;let g;switch(u){case"top":g={x:f,y:r.y-a.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-a.width,y:d};break;default:g={x:r.x,y:r.y}}switch(dh(t)){case"start":g[s]-=p*(n&&c?-1:1);break;case"end":g[s]+=p*(n&&c?-1:1);break}return g}const KV=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:d}=PE(c,r,u),p=r,g={},y=0;for(let m=0;m<l.length;m++){const{name:S,fn:_}=l[m],{x:P,y:A,data:$,reset:k}=await _({x:f,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});f=P??f,d=A??d,g={...g,[S]:{...g[S],...$}},k&&y<=50&&(y++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:f,y:d}=PE(c,p,u)),m=-1)}return{x:f,y:d,placement:p,strategy:a,middlewareData:g}};async function N_(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=ch(t,e),y=nM(g),S=l[p?d==="floating"?"reference":"floating":d],_=I0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),P=d==="floating"?{x:r,y:a,width:s.floating.width,height:s.floating.height}:s.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),$=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},k=I0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:A,strategy:u}):P);return{top:(_.top-k.top+y.top)/$.y,bottom:(k.bottom-_.bottom+y.bottom)/$.y,left:(_.left-k.left+y.left)/$.x,right:(k.right-_.right+y.right)/$.x}}const WV=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:f=0}=ch(e,t)||{};if(c==null)return{};const d=nM(f),p={x:n,y:r},g=L_(a),y=k_(g),m=await s.getDimensions(c),S=g==="y",_=S?"top":"left",P=S?"bottom":"right",A=S?"clientHeight":"clientWidth",$=o.reference[y]+o.reference[g]-p[g]-o.floating[y],k=p[g]-o.reference[g],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let B=L?L[A]:0;(!B||!await(s.isElement==null?void 0:s.isElement(L)))&&(B=l.floating[A]||o.floating[y]);const H=$/2-k/2,G=B/2-m[y]/2-1,j=bc(d[_],G),W=bc(d[P],G),Q=j,ue=B-m[y]-W,se=B/2-m[y]/2+H,ne=h2(Q,se,ue),J=!u.arrow&&dh(a)!=null&&se!==ne&&o.reference[y]/2-(se<Q?j:W)-m[y]/2<0,X=J?se<Q?se-Q:se-ue:0;return{[g]:p[g]+X,data:{[g]:ne,centerOffset:se-ne-X,...J&&{alignmentOffset:X}},reset:J}}}),XV=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...S}=ch(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=eu(a),P=eu(l)===l,A=await(u.isRTL==null?void 0:u.isRTL(c.floating)),$=p||(P||!m?[x0(l)]:VV(l));!p&&y!=="none"&&$.push(...jV(l,m,y,A));const k=[l,...$],L=await N_(t,S),B=[];let H=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&B.push(L[_]),d){const Q=UV(a,s,A);B.push(L[Q[0]],L[Q[1]])}if(H=[...H,{placement:a,overflows:B}],!B.every(Q=>Q<=0)){var G,j;const Q=(((G=o.flip)==null?void 0:G.index)||0)+1,ue=k[Q];if(ue)return{data:{index:Q,overflows:H},reset:{placement:ue}};let se=(j=H.filter(ne=>ne.overflows[0]<=0).sort((ne,J)=>ne.overflows[1]-J.overflows[1])[0])==null?void 0:j.placement;if(!se)switch(g){case"bestFit":{var W;const ne=(W=H.map(J=>[J.placement,J.overflows.filter(X=>X>0).reduce((X,te)=>X+te,0)]).sort((J,X)=>J[1]-X[1])[0])==null?void 0:W[0];ne&&(se=ne);break}case"initialPlacement":se=l;break}if(a!==se)return{reset:{placement:se}}}return{}}}};async function YV(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),s=eu(n),l=dh(n),u=xv(n)==="y",c=["left","top"].includes(s)?-1:1,f=o&&u?-1:1,d=ch(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),u?{x:g*f,y:p*c}:{x:p*c,y:g*f}}const JV=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:s,middlewareData:l}=t,u=await YV(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:a+u.x,y:o+u.y,data:{...u,placement:s}}}}},qV=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:S=>{let{x:_,y:P}=S;return{x:_,y:P}}},...u}=ch(e,t),c={x:n,y:r},f=await N_(t,u),d=xv(eu(a)),p=tM(d);let g=c[p],y=c[d];if(o){const S=p==="y"?"top":"left",_=p==="y"?"bottom":"right",P=g+f[S],A=g-f[_];g=h2(P,g,A)}if(s){const S=d==="y"?"top":"left",_=d==="y"?"bottom":"right",P=y+f[S],A=y-f[_];y=h2(P,y,A)}const m=l.fn({...t,[p]:g,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function Vc(e){return rM(e)?(e.nodeName||"").toLowerCase():"#document"}function Ka(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function es(e){var t;return(t=(rM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rM(e){return e instanceof Node||e instanceof Ka(e).Node}function mi(e){return e instanceof Element||e instanceof Ka(e).Element}function gi(e){return e instanceof HTMLElement||e instanceof Ka(e).HTMLElement}function ME(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ka(e).ShadowRoot}function fh(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=jo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function QV(e){return["table","td","th"].includes(Vc(e))}function D_(e){const t=F_(),n=jo(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ZV(e){let t=zs(e);for(;gi(t)&&!_c(t);){if(D_(t))return t;t=zs(t)}return null}function F_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function _c(e){return["html","body","#document"].includes(Vc(e))}function jo(e){return Ka(e).getComputedStyle(e)}function Iv(e){return mi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zs(e){if(Vc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ME(e)&&e.host||es(e);return ME(t)?t.host:t}function aM(e){const t=zs(e);return _c(t)?e.ownerDocument?e.ownerDocument.body:e.body:gi(t)&&fh(t)?t:aM(t)}function wf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aM(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),s=Ka(a);return o?t.concat(s,s.visualViewport||[],fh(a)?a:[],s.frameElement&&n?wf(s.frameElement):[]):t.concat(a,wf(a,[],n))}function oM(e){const t=jo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=gi(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:r,l=C0(n)!==o||C0(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function B_(e){return mi(e)?e:e.contextElement}function Xu(e){const t=B_(e);if(!gi(t))return js(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=oM(t);let s=(o?C0(n.width):n.width)/r,l=(o?C0(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const eG=js(0);function iM(e){const t=Ka(e);return!F_()||!t.visualViewport?eG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function tG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ka(e)?!1:t}function tu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=B_(e);let s=js(1);t&&(r?mi(r)&&(s=Xu(r)):s=Xu(e));const l=tG(o,n,r)?iM(o):js(0);let u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,f=a.width/s.x,d=a.height/s.y;if(o){const p=Ka(o),g=r&&mi(r)?Ka(r):r;let y=p,m=y.frameElement;for(;m&&r&&g!==y;){const S=Xu(m),_=m.getBoundingClientRect(),P=jo(m),A=_.left+(m.clientLeft+parseFloat(P.paddingLeft))*S.x,$=_.top+(m.clientTop+parseFloat(P.paddingTop))*S.y;u*=S.x,c*=S.y,f*=S.x,d*=S.y,u+=A,c+=$,y=Ka(m),m=y.frameElement}}return I0({width:f,height:d,x:u,y:c})}const nG=[":popover-open",":modal"];function H_(e){return nG.some(t=>{try{return e.matches(t)}catch{return!1}})}function rG(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",s=es(r),l=t?H_(t.floating):!1;if(r===s||l&&o)return n;let u={scrollLeft:0,scrollTop:0},c=js(1);const f=js(0),d=gi(r);if((d||!d&&!o)&&((Vc(r)!=="body"||fh(s))&&(u=Iv(r)),gi(r))){const p=tu(r);c=Xu(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x,y:n.y*c.y-u.scrollTop*c.y+f.y}}function aG(e){return Array.from(e.getClientRects())}function sM(e){return tu(es(e)).left+Iv(e).scrollLeft}function oG(e){const t=es(e),n=Iv(e),r=e.ownerDocument.body,a=Gl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Gl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+sM(e);const l=-n.scrollTop;return jo(r).direction==="rtl"&&(s+=Gl(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:s,y:l}}function iG(e,t){const n=Ka(e),r=es(e),a=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;const c=F_();(!c||c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l,y:u}}function sG(e,t){const n=tu(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=gi(e)?Xu(e):js(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,u=a*o.x,c=r*o.y;return{width:s,height:l,x:u,y:c}}function OE(e,t,n){let r;if(t==="viewport")r=iG(e,n);else if(t==="document")r=oG(es(e));else if(mi(t))r=sG(t,n);else{const a=iM(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return I0(r)}function lM(e,t){const n=zs(e);return n===t||!mi(n)||_c(n)?!1:jo(n).position==="fixed"||lM(n,t)}function lG(e,t){const n=t.get(e);if(n)return n;let r=wf(e,[],!1).filter(l=>mi(l)&&Vc(l)!=="body"),a=null;const o=jo(e).position==="fixed";let s=o?zs(e):e;for(;mi(s)&&!_c(s);){const l=jo(s),u=D_(s);!u&&l.position==="fixed"&&(a=null),(o?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||fh(s)&&!u&&lM(e,s))?r=r.filter(f=>f!==s):a=l,s=zs(s)}return t.set(e,r),r}function uG(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const s=[...n==="clippingAncestors"?H_(t)?[]:lG(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((c,f)=>{const d=OE(t,f,a);return c.top=Gl(d.top,c.top),c.right=bc(d.right,c.right),c.bottom=bc(d.bottom,c.bottom),c.left=Gl(d.left,c.left),c},OE(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function cG(e){const{width:t,height:n}=oM(e);return{width:t,height:n}}function dG(e,t,n){const r=gi(t),a=es(t),o=n==="fixed",s=tu(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=js(0);if(r||!r&&!o)if((Vc(t)!=="body"||fh(a))&&(l=Iv(t)),r){const d=tu(t,!0,o,t);u.x=d.x+t.clientLeft,u.y=d.y+t.clientTop}else a&&(u.x=sM(a));const c=s.left+l.scrollLeft-u.x,f=s.top+l.scrollTop-u.y;return{x:c,y:f,width:s.width,height:s.height}}function Am(e){return jo(e).position==="static"}function $E(e,t){return!gi(e)||jo(e).position==="fixed"?null:t?t(e):e.offsetParent}function uM(e,t){const n=Ka(e);if(H_(e))return n;if(!gi(e)){let a=zs(e);for(;a&&!_c(a);){if(mi(a)&&!Am(a))return a;a=zs(a)}return n}let r=$E(e,t);for(;r&&QV(r)&&Am(r);)r=$E(r,t);return r&&_c(r)&&Am(r)&&!D_(r)?n:r||ZV(e)||n}const fG=async function(e){const t=this.getOffsetParent||uM,n=this.getDimensions,r=await n(e.floating);return{reference:dG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hG(e){return jo(e).direction==="rtl"}const pG={convertOffsetParentRelativeRectToViewportRelativeRect:rG,getDocumentElement:es,getClippingRect:uG,getOffsetParent:uM,getElementRects:fG,getClientRects:aG,getDimensions:cG,getScale:Xu,isElement:mi,isRTL:hG};function vG(e,t){let n=null,r;const a=es(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),o();const{left:c,top:f,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const g=Hh(f),y=Hh(a.clientWidth-(c+d)),m=Hh(a.clientHeight-(f+p)),S=Hh(c),P={rootMargin:-g+"px "+-y+"px "+-m+"px "+-S+"px",threshold:Gl(0,bc(1,u))||1};let A=!0;function $(k){const L=k[0].intersectionRatio;if(L!==u){if(!A)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver($,{...P,root:a.ownerDocument})}catch{n=new IntersectionObserver($,P)}n.observe(e)}return s(!0),o}function mG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=B_(e),f=a||o?[...c?wf(c):[],...wf(t)]:[];f.forEach(_=>{a&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const d=c&&l?vG(c,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(_=>{let[P]=_;P&&P.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var A;(A=g)==null||A.observe(t)})),n()}),c&&!u&&g.observe(c),g.observe(t));let y,m=u?tu(e):null;u&&S();function S(){const _=tu(e);m&&(_.x!==m.x||_.y!==m.y||_.width!==m.width||_.height!==m.height)&&n(),m=_,y=requestAnimationFrame(S)}return n(),()=>{var _;f.forEach(P=>{a&&P.removeEventListener("scroll",n),o&&P.removeEventListener("resize",n)}),d==null||d(),(_=g)==null||_.disconnect(),g=null,u&&cancelAnimationFrame(y)}}const gG=N_,cM=JV,yG=qV,bG=XV,dM=WV,fM=(e,t,n)=>{const r=new Map,a={platform:pG,...n},o={...a.platform,_c:r};return KV(e,t,{...a,platform:o})};tt({});const _G=e=>{if(!ln)return;if(!e)return e;const t=La(e);return t||(Un(e)?t:e)},wG=({middleware:e,placement:t,strategy:n})=>{const r=ee(),a=ee(),o=ee(),s=ee(),l=ee({}),u={x:o,y:s,placement:t,strategy:n,middlewareData:l},c=async()=>{if(!ln)return;const f=_G(r),d=La(a);if(!f||!d)return;const p=await fM(f,d,{placement:h(t),strategy:h(n),middleware:h(e)});dc(u).forEach(g=>{u[g].value=p[g]})};return Ht(()=>{ta(()=>{c()})}),{...u,update:c,referenceRef:r,contentRef:a}},SG=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=h(e);return r?dM({element:r,padding:t}).fn(n):{}}});function TG(e){const t=ee();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:o,value:s}=e.value;if(a==null||o==null)return;const l=s.slice(0,Math.max(0,a)),u=s.slice(Math.max(0,o));t.value={selectionStart:a,selectionEnd:o,value:s,beforeTxt:l,afterTxt:u}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:o,afterTxt:s,selectionStart:l}=t.value;if(o==null||s==null||l==null)return;let u=a.length;if(a.endsWith(s))u=a.length-s.length;else if(a.startsWith(o))u=o.length;else{const c=o[l-1],f=a.indexOf(c,l-1);f!==-1&&(u=f+1)}e.value.setSelectionRange(u,u)}return[n,r]}const EG=(e,t,n)=>$s(e.subTree).filter(o=>{var s;return zn(o)&&((s=o.type)==null?void 0:s.name)===t&&!!o.component}).map(o=>o.component.uid).map(o=>n[o]).filter(o=>!!o),U_=(e,t)=>{const n={},r=Fn([]);return{children:r,addChild:s=>{n[s.uid]=s,r.value=EG(e,t,n)},removeChild:s=>{delete n[s],r.value=r.value.filter(l=>l.uid!==s)}}},Rr=Ko({type:String,values:Si,required:!1}),hM=Symbol("size"),CG=()=>{const e=dt(hM,{});return N(()=>h(e.size)||"")};function Av(e,{afterFocus:t,beforeBlur:n,afterBlur:r}={}){const a=Gt(),{emit:o}=a,s=Fn(),l=ee(!1),u=d=>{l.value||(l.value=!0,o("focus",d),t==null||t())},c=d=>{var p;Pt(n)&&n(d)||d.relatedTarget&&((p=s.value)!=null&&p.contains(d.relatedTarget))||(l.value=!1,o("blur",d),r==null||r())},f=()=>{var d;(d=e.value)==null||d.focus()};return We(s,d=>{d&&d.setAttribute("tabindex","-1")}),Bn(s,"click",f),{wrapperRef:s,isFocused:l,handleFocus:u,handleBlur:c}}const xG=["",void 0,null],IG=void 0,Gc=tt({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Pt(e)?!e():!e}}),Pv=(e,t)=>{let n=hh();n.value||(n=ee({}));const r=N(()=>e.emptyValues||n.value.emptyValues||xG),a=N(()=>Pt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Pt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:IG),o=s=>r.value.includes(s);return r.value.includes(a.value),{emptyValues:r,valueOnClear:a,isEmptyValue:o}},AG=tt({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Xr=e=>ui(AG,e),pM=Symbol(),A0=ee();function hh(e,t=void 0){const n=Gt()?dt(pM,A0):A0;return e?N(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function Mv(e,t){const n=hh(),r=Je(e,N(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Gd})),a=hn(N(()=>{var l;return(l=n.value)==null?void 0:l.locale})),o=Uc(N(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||ZP})),s=N(()=>{var l;return h(t)||((l=n.value)==null?void 0:l.size)||""});return V_(N(()=>h(n)||{})),{ns:r,locale:a,zIndex:o,size:s}}const V_=(e,t,n=!1)=>{var r;const a=!!Gt(),o=a?hh():void 0,s=(r=t==null?void 0:t.provide)!=null?r:a?nn:void 0;if(!s)return;const l=N(()=>{const u=h(e);return o!=null&&o.value?PG(o.value,u):u});return s(pM,l),s(NP,N(()=>l.value.locale)),s(DP,N(()=>l.value.namespace)),s(eM,N(()=>l.value.zIndex)),s(hM,{size:N(()=>l.value.size||"")}),(n||!A0.value)&&(A0.value=l.value),l},PG=(e,t)=>{const n=[...new Set([...dc(e),...dc(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r},MG=tt({a11y:{type:Boolean,default:!0},locale:{type:xe(Object)},size:Rr,button:{type:xe(Object)},experimentalFeatures:{type:xe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:xe(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Gc}),v2={},OG=he({name:"ElConfigProvider",props:MG,setup(e,{slots:t}){We(()=>e.message,r=>{Object.assign(v2,r??{})},{immediate:!0,deep:!0});const n=V_(e);return()=>Ue(t,"default",{config:n==null?void 0:n.value})}}),$G=jt(OG),RG="2.7.3",kG=(e=[])=>({version:RG,install:(n,r)=>{n[dE]||(n[dE]=!0,e.forEach(a=>n.use(a)),r&&V_(r,n,!0))}}),LG=tt({zIndex:{type:xe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),NG={scroll:({scrollTop:e,fixed:t})=>It(e)&&mr(t),[Hn]:e=>mr(e)};var at=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const vM="ElAffix",DG=he({name:vM}),FG=he({...DG,props:LG,emits:NG,setup(e,{expose:t,emit:n}){const r=e,a=Je("affix"),o=Fn(),s=Fn(),l=Fn(),{height:u}=_D(),{height:c,width:f,top:d,bottom:p,update:g}=CT(s,{windowScroll:!1}),y=CT(o),m=ee(!1),S=ee(0),_=ee(0),P=N(()=>({height:m.value?`${c.value}px`:"",width:m.value?`${f.value}px`:""})),A=N(()=>{if(!m.value)return{};const L=r.offset?rr(r.offset):0;return{height:`${c.value}px`,width:`${f.value}px`,top:r.position==="top"?L:"",bottom:r.position==="bottom"?L:"",transform:_.value?`translateY(${_.value}px)`:"",zIndex:r.zIndex}}),$=()=>{if(l.value)if(S.value=l.value instanceof Window?document.documentElement.scrollTop:l.value.scrollTop||0,r.position==="top")if(r.target){const L=y.bottom.value-r.offset-c.value;m.value=r.offset>d.value&&y.bottom.value>0,_.value=L<0?L:0}else m.value=r.offset>d.value;else if(r.target){const L=u.value-y.top.value-r.offset-c.value;m.value=u.value-r.offset<p.value&&u.value>y.top.value,_.value=L<0?-L:0}else m.value=u.value-r.offset<p.value},k=()=>{g(),n("scroll",{scrollTop:S.value,fixed:m.value})};return We(m,L=>n("change",L)),Ht(()=>{var L;r.target?(o.value=(L=document.querySelector(r.target))!=null?L:void 0,o.value||Er(vM,`Target does not exist: ${r.target}`)):o.value=document.documentElement,l.value=f_(s.value,!0),g()}),Bn(l,"scroll",k),ta($),t({update:$,updateRoot:g}),(L,B)=>(V(),ie("div",{ref_key:"root",ref:s,class:K(h(a).b()),style:vt(h(P))},[de("div",{class:K({[h(a).m("fixed")]:m.value}),style:vt(h(A))},[Ue(L.$slots,"default")],6)],6))}});var BG=at(FG,[["__file","affix.vue"]]);const HG=jt(BG),UG=tt({size:{type:xe([Number,String])},color:{type:String}}),VG=he({name:"ElIcon",inheritAttrs:!1}),GG=he({...VG,props:UG,setup(e){const t=e,n=Je("icon"),r=N(()=>{const{size:a,color:o}=t;return!a&&!o?{}:{fontSize:vr(a)?void 0:rr(a),"--color":o}});return(a,o)=>(V(),ie("i",rn({class:h(n).b(),style:h(r)},a.$attrs),[Ue(a.$slots,"default")],16))}});var jG=at(GG,[["__file","icon.vue"]]);const ht=jt(jG),zG=["light","dark"],KG=tt({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:dc(Gs),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:zG,default:"light"}}),WG={close:e=>e instanceof MouseEvent},XG=he({name:"ElAlert"}),YG=he({...XG,props:KG,emits:WG,setup(e,{emit:t}){const n=e,{Close:r}=y_,a=Vr(),o=Je("alert"),s=ee(!0),l=N(()=>Gs[n.type]),u=N(()=>[o.e("icon"),{[o.is("big")]:!!n.description||!!a.default}]),c=N(()=>({"with-description":n.description||a.default})),f=d=>{s.value=!1,t("close",d)};return(d,p)=>(V(),Fe(Tr,{name:h(o).b("fade"),persisted:""},{default:Ce(()=>[Lt(de("div",{class:K([h(o).b(),h(o).m(d.type),h(o).is("center",d.center),h(o).is(d.effect)]),role:"alert"},[d.showIcon&&h(l)?(V(),Fe(h(ht),{key:0,class:K(h(u))},{default:Ce(()=>[(V(),Fe(Zt(h(l))))]),_:1},8,["class"])):Ie("v-if",!0),de("div",{class:K(h(o).e("content"))},[d.title||d.$slots.title?(V(),ie("span",{key:0,class:K([h(o).e("title"),h(c)])},[Ue(d.$slots,"title",{},()=>[dn(ot(d.title),1)])],2)):Ie("v-if",!0),d.$slots.default||d.description?(V(),ie("p",{key:1,class:K(h(o).e("description"))},[Ue(d.$slots,"default",{},()=>[dn(ot(d.description),1)])],2)):Ie("v-if",!0),d.closable?(V(),ie(mt,{key:2},[d.closeText?(V(),ie("div",{key:0,class:K([h(o).e("close-btn"),h(o).is("customed")]),onClick:f},ot(d.closeText),3)):(V(),Fe(h(ht),{key:1,class:K(h(o).e("close-btn")),onClick:f},{default:Ce(()=>[ye(h(r))]),_:1},8,["class"]))],64)):Ie("v-if",!0)],2)],2),[[bn,s.value]])]),_:3},8,["name"]))}});var JG=at(YG,[["__file","alert.vue"]]);const qG=jt(JG),hu=Symbol("formContextKey"),yi=Symbol("formItemContextKey"),yr=(e,t={})=>{const n=ee(void 0),r=t.prop?n:BP("size"),a=t.global?n:CG(),o=t.form?{size:void 0}:dt(hu,void 0),s=t.formItem?{size:void 0}:dt(yi,void 0);return N(()=>r.value||h(e)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||a.value||"")},Ca=e=>{const t=BP("disabled"),n=dt(hu,void 0);return N(()=>t.value||h(e)||(n==null?void 0:n.disabled)||!1)},va=()=>{const e=dt(hu,void 0),t=dt(yi,void 0);return{form:e,formItem:t}},Xo=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ee(!1)),r||(r=ee(!1));const a=ee();let o;const s=N(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return Ht(()=>{o=We([On(e,"id"),n],([l,u])=>{const c=l??(u?void 0:ra().value);c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!u&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),Zs(()=>{o&&o(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}},QG=tt({size:{type:String,values:Si},disabled:Boolean}),ZG=tt({...QG,model:Object,rules:{type:xe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),ej={validate:(e,t,n)=>(st(e)||Rt(e))&&mr(t)&&Rt(n)};function tj(){const e=ee([]),t=N(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const s=e.value.indexOf(o);return s===-1&&t.value,s}function r(o,s){if(o&&s){const l=n(s);e.value.splice(l,1,o)}else o&&e.value.push(o)}function a(o){const s=n(o);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const Uh=(e,t)=>{const n=Hs(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},nj="ElForm",rj=he({name:nj}),aj=he({...rj,props:ZG,emits:ej,setup(e,{expose:t,emit:n}){const r=e,a=[],o=yr(),s=Je("form"),l=N(()=>{const{labelPosition:A,inline:$}=r;return[s.b(),s.m(o.value||"default"),{[s.m(`label-${A}`)]:A,[s.m("inline")]:$}]}),u=A=>a.find($=>$.prop===A),c=A=>{a.push(A)},f=A=>{A.prop&&a.splice(a.indexOf(A),1)},d=(A=[])=>{r.model&&Uh(a,A).forEach($=>$.resetField())},p=(A=[])=>{Uh(a,A).forEach($=>$.clearValidate())},g=N(()=>!!r.model),y=A=>{if(a.length===0)return[];const $=Uh(a,A);return $.length?$:[]},m=async A=>_(void 0,A),S=async(A=[])=>{if(!g.value)return!1;const $=y(A);if($.length===0)return!0;let k={};for(const L of $)try{await L.validate("")}catch(B){k={...k,...B}}return Object.keys(k).length===0?!0:Promise.reject(k)},_=async(A=[],$)=>{const k=!Pt($);try{const L=await S(A);return L===!0&&await($==null?void 0:$(L)),L}catch(L){if(L instanceof Error)throw L;const B=L;return r.scrollToError&&P(Object.keys(B)[0]),await($==null?void 0:$(!1,B)),k&&Promise.reject(B)}},P=A=>{var $;const k=Uh(a,A)[0];k&&(($=k.$el)==null||$.scrollIntoView(r.scrollIntoViewOptions))};return We(()=>r.rules,()=>{r.validateOnRuleChange&&m().catch(A=>void 0)},{deep:!0}),nn(hu,Sn({...Wr(r),emit:n,resetFields:d,clearValidate:p,validateField:_,getField:u,addField:c,removeField:f,...tj()})),t({validate:m,validateField:_,resetFields:d,clearValidate:p,scrollToField:P,fields:a}),(A,$)=>(V(),ie("form",{class:K(h(l))},[Ue(A.$slots,"default")],2))}});var oj=at(aj,[["__file","form.vue"]]);function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$l.apply(this,arguments)}function ij(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sf(e,t)}function m2(e){return m2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},m2(e)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sf(e,t)}function sj(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Np(e,t,n){return sj()?Np=Reflect.construct.bind():Np=function(a,o,s){var l=[null];l.push.apply(l,o);var u=Function.bind.apply(a,l),c=new u;return s&&Sf(c,s.prototype),c},Np.apply(null,arguments)}function lj(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function g2(e){var t=typeof Map=="function"?new Map:void 0;return g2=function(r){if(r===null||!lj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Np(r,arguments,m2(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Sf(a,r)},g2(e)}var uj=/%[sdj%]/g,cj=function(){};function y2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function za(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(uj,function(l){if(l==="%%")return"%";if(a>=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function dj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ur(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||dj(t)&&typeof e=="string"&&!e)}function fj(e,t,n){var r=[],a=0,o=e.length;function s(l){r.push.apply(r,l||[]),a++,a===o&&n(r)}e.forEach(function(l){t(l,s)})}function RE(e,t,n){var r=0,a=e.length;function o(s){if(s&&s.length){n(s);return}var l=r;r=r+1,l<a?t(e[l],o):n([])}o([])}function hj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var kE=function(e){ij(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(g2(Error));function pj(e,t,n,r,a){if(t.first){var o=new Promise(function(p,g){var y=function(_){return r(_),_.length?g(new kE(_,y2(_))):p(a)},m=hj(e);RE(m,n,y)});return o.catch(function(p){return p}),o}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,c=0,f=[],d=new Promise(function(p,g){var y=function(S){if(f.push.apply(f,S),c++,c===u)return r(f),f.length?g(new kE(f,y2(f))):p(a)};l.length||(r(f),p(a)),l.forEach(function(m){var S=e[m];s.indexOf(m)!==-1?RE(S,n,y):fj(S,n,y)})});return d.catch(function(p){return p}),d}function vj(e){return!!(e&&e.message!==void 0)}function mj(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function LE(e,t){return function(n){var r;return e.fullFields?r=mj(t,e.fullFields):r=t[n.field||e.fullField],vj(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function NE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=$l({},e[n],r):e[n]=r}}return e}var mM=function(t,n,r,a,o,s){t.required&&(!r.hasOwnProperty(t.field)||Ur(n,s||t.type))&&a.push(za(o.messages.required,t.fullField))},gj=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(za(o.messages.whitespace,t.fullField))},Vh,yj=function(){if(Vh)return Vh;var e="[a-fA-F\\d:]",t=function($){return $&&$.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),s=new RegExp("^"+n+"$"),l=new RegExp("^"+a+"$"),u=function($){return $&&$.exact?o:new RegExp("(?:"+t($)+n+t($)+")|(?:"+t($)+a+t($)+")","g")};u.v4=function(A){return A&&A.exact?s:new RegExp(""+t(A)+n+t(A),"g")},u.v6=function(A){return A&&A.exact?l:new RegExp(""+t(A)+a+t(A),"g")};var c="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",d=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",_='(?:[/?#][^\\s"]*)?',P="(?:"+c+"|www\\.)"+f+"(?:localhost|"+d+"|"+p+"|"+g+y+m+")"+S+_;return Vh=new RegExp("(?:^"+P+"$)","i"),Vh},DE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ed={integer:function(t){return Ed.number(t)&&parseInt(t,10)===t},float:function(t){return Ed.number(t)&&!Ed.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ed.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(DE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(yj())},hex:function(t){return typeof t=="string"&&!!t.match(DE.hex)}},bj=function(t,n,r,a,o){if(t.required&&n===void 0){mM(t,n,r,a,o);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;s.indexOf(l)>-1?Ed[l](n)||a.push(za(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&a.push(za(o.messages.types[l],t.fullField,t.type))},_j=function(t,n,r,a,o){var s=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,p=typeof n=="number",g=typeof n=="string",y=Array.isArray(n);if(p?d="number":g?d="string":y&&(d="array"),!d)return!1;y&&(f=n.length),g&&(f=n.replace(c,"_").length),s?f!==t.len&&a.push(za(o.messages[d].len,t.fullField,t.len)):l&&!u&&f<t.min?a.push(za(o.messages[d].min,t.fullField,t.min)):u&&!l&&f>t.max?a.push(za(o.messages[d].max,t.fullField,t.max)):l&&u&&(f<t.min||f>t.max)&&a.push(za(o.messages[d].range,t.fullField,t.min,t.max))},yu="enum",wj=function(t,n,r,a,o){t[yu]=Array.isArray(t[yu])?t[yu]:[],t[yu].indexOf(n)===-1&&a.push(za(o.messages[yu],t.fullField,t[yu].join(", ")))},Sj=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(za(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||a.push(za(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Mn={required:mM,whitespace:gj,type:bj,range:_j,enum:wj,pattern:Sj},Tj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n,"string")&&!t.required)return r();Mn.required(t,n,a,s,o,"string"),Ur(n,"string")||(Mn.type(t,n,a,s,o),Mn.range(t,n,a,s,o),Mn.pattern(t,n,a,s,o),t.whitespace===!0&&Mn.whitespace(t,n,a,s,o))}r(s)},Ej=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&Mn.type(t,n,a,s,o)}r(s)},Cj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&(Mn.type(t,n,a,s,o),Mn.range(t,n,a,s,o))}r(s)},xj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&Mn.type(t,n,a,s,o)}r(s)},Ij=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),Ur(n)||Mn.type(t,n,a,s,o)}r(s)},Aj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&(Mn.type(t,n,a,s,o),Mn.range(t,n,a,s,o))}r(s)},Pj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&(Mn.type(t,n,a,s,o),Mn.range(t,n,a,s,o))}r(s)},Mj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Mn.required(t,n,a,s,o,"array"),n!=null&&(Mn.type(t,n,a,s,o),Mn.range(t,n,a,s,o))}r(s)},Oj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&Mn.type(t,n,a,s,o)}r(s)},$j="enum",Rj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o),n!==void 0&&Mn[$j](t,n,a,s,o)}r(s)},kj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n,"string")&&!t.required)return r();Mn.required(t,n,a,s,o),Ur(n,"string")||Mn.pattern(t,n,a,s,o)}r(s)},Lj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n,"date")&&!t.required)return r();if(Mn.required(t,n,a,s,o),!Ur(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Mn.type(t,u,a,s,o),u&&Mn.range(t,u.getTime(),a,s,o)}}r(s)},Nj=function(t,n,r,a,o){var s=[],l=Array.isArray(n)?"array":typeof n;Mn.required(t,n,a,s,o,l),r(s)},Pm=function(t,n,r,a,o){var s=t.type,l=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(Ur(n,s)&&!t.required)return r();Mn.required(t,n,a,l,o,s),Ur(n,s)||Mn.type(t,n,a,l,o)}r(l)},Dj=function(t,n,r,a,o){var s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(Ur(n)&&!t.required)return r();Mn.required(t,n,a,s,o)}r(s)},Kd={string:Tj,method:Ej,number:Cj,boolean:xj,regexp:Ij,integer:Aj,float:Pj,array:Mj,object:Oj,enum:Rj,pattern:kj,date:Lj,url:Pm,hex:Pm,email:Pm,required:Nj,any:Dj};function b2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var _2=b2(),ph=function(){function e(n){this.rules=null,this._messages=_2,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var s=r[o];a.rules[o]=Array.isArray(s)?s:[s]})},t.messages=function(r){return r&&(this._messages=NE(b2(),r)),this._messages},t.validate=function(r,a,o){var s=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var l=r,u=a,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function f(m){var S=[],_={};function P($){if(Array.isArray($)){var k;S=(k=S).concat.apply(k,$)}else S.push($)}for(var A=0;A<m.length;A++)P(m[A]);S.length?(_=y2(S),c(S,_)):c(null,l)}if(u.messages){var d=this.messages();d===_2&&(d=b2()),NE(d,u.messages),u.messages=d}else u.messages=this.messages();var p={},g=u.keys||Object.keys(this.rules);g.forEach(function(m){var S=s.rules[m],_=l[m];S.forEach(function(P){var A=P;typeof A.transform=="function"&&(l===r&&(l=$l({},l)),_=l[m]=A.transform(_)),typeof A=="function"?A={validator:A}:A=$l({},A),A.validator=s.getValidationMethod(A),A.validator&&(A.field=m,A.fullField=A.fullField||m,A.type=s.getType(A),p[m]=p[m]||[],p[m].push({rule:A,value:_,source:l,field:m}))})});var y={};return pj(p,u,function(m,S){var _=m.rule,P=(_.type==="object"||_.type==="array")&&(typeof _.fields=="object"||typeof _.defaultField=="object");P=P&&(_.required||!_.required&&m.value),_.field=m.field;function A(L,B){return $l({},B,{fullField:_.fullField+"."+L,fullFields:_.fullFields?[].concat(_.fullFields,[L]):[L]})}function $(L){L===void 0&&(L=[]);var B=Array.isArray(L)?L:[L];!u.suppressWarning&&B.length&&e.warning("async-validator:",B),B.length&&_.message!==void 0&&(B=[].concat(_.message));var H=B.map(LE(_,l));if(u.first&&H.length)return y[_.field]=1,S(H);if(!P)S(H);else{if(_.required&&!m.value)return _.message!==void 0?H=[].concat(_.message).map(LE(_,l)):u.error&&(H=[u.error(_,za(u.messages.required,_.field))]),S(H);var G={};_.defaultField&&Object.keys(m.value).map(function(Q){G[Q]=_.defaultField}),G=$l({},G,m.rule.fields);var j={};Object.keys(G).forEach(function(Q){var ue=G[Q],se=Array.isArray(ue)?ue:[ue];j[Q]=se.map(A.bind(null,Q))});var W=new e(j);W.messages(u.messages),m.rule.options&&(m.rule.options.messages=u.messages,m.rule.options.error=u.error),W.validate(m.value,m.rule.options||u,function(Q){var ue=[];H&&H.length&&ue.push.apply(ue,H),Q&&Q.length&&ue.push.apply(ue,Q),S(ue.length?ue:null)})}}var k;if(_.asyncValidator)k=_.asyncValidator(_,m.value,$,m.source,u);else if(_.validator){try{k=_.validator(_,m.value,$,m.source,u)}catch(L){console.error==null||console.error(L),u.suppressValidatorError||setTimeout(function(){throw L},0),$(L.message)}k===!0?$():k===!1?$(typeof _.message=="function"?_.message(_.fullField||_.field):_.message||(_.fullField||_.field)+" fails"):k instanceof Array?$(k):k instanceof Error&&$(k.message)}k&&k.then&&k.then(function(){return $()},function(L){return $(L)})},function(m){f(m)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Kd.hasOwnProperty(r.type))throw new Error(za("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),o=a.indexOf("message");return o!==-1&&a.splice(o,1),a.length===1&&a[0]==="required"?Kd.required:Kd[this.getType(r)]||void 0},e}();ph.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Kd[t]=n};ph.warning=cj;ph.messages=_2;ph.validators=Kd;const Fj=["","error","validating","success"],Bj=tt({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:xe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:xe([Object,Array])},error:String,validateStatus:{type:String,values:Fj},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Si}}),FE="ElLabelWrap";var Hj=he({name:FE,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=dt(hu,void 0),r=dt(yi);r||Er(FE,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Je("form"),o=ee(),s=ee(0),l=()=>{var f;if((f=o.value)!=null&&f.firstElementChild){const d=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(d))}else return 0},u=(f="update")=>{bt(()=>{t.default&&e.isAutoWidth&&(f==="update"?s.value=l():f==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},c=()=>u("update");return Ht(()=>{c()}),Dn(()=>{u("remove")}),Ji(()=>c()),We(s,(f,d)=>{e.updateAll&&(n==null||n.registerLabelWidth(f,d))}),Wn(N(()=>{var f,d;return(d=(f=o.value)==null?void 0:f.firstElementChild)!=null?d:null}),c),()=>{var f,d;if(!t)return null;const{isAutoWidth:p}=e;if(p){const g=n==null?void 0:n.autoLabelWidth,y=r==null?void 0:r.hasLabel,m={};if(y&&g&&g!=="auto"){const S=Math.max(0,Number.parseInt(g,10)-s.value),_=n.labelPosition==="left"?"marginRight":"marginLeft";S&&(m[_]=`${S}px`)}return ye("div",{ref:o,class:[a.be("item","label-wrap")],style:m},[(f=t.default)==null?void 0:f.call(t)])}else return ye(mt,{ref:o},[(d=t.default)==null?void 0:d.call(t)])}}});const Uj=["role","aria-labelledby"],Vj=he({name:"ElFormItem"}),Gj=he({...Vj,props:Bj,setup(e,{expose:t}){const n=e,r=Vr(),a=dt(hu,void 0),o=dt(yi,void 0),s=yr(void 0,{formItem:!1}),l=Je("form-item"),u=ra().value,c=ee([]),f=ee(""),d=nD(f,100),p=ee(""),g=ee();let y,m=!1;const S=N(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const pe=rr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return pe?{width:pe}:{}}),_=N(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&G)return{};const pe=rr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:pe}:{}}),P=N(()=>[l.b(),l.m(s.value),l.is("error",f.value==="error"),l.is("validating",f.value==="validating"),l.is("success",f.value==="success"),l.is("required",se.value||n.required),l.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:a==null?void 0:a.statusIcon}]),A=N(()=>mr(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),$=N(()=>[l.e("error"),{[l.em("error","inline")]:A.value}]),k=N(()=>n.prop?Rt(n.prop)?n.prop:n.prop.join("."):""),L=N(()=>!!(n.label||r.label)),B=N(()=>n.for||(c.value.length===1?c.value[0]:void 0)),H=N(()=>!B.value&&L.value),G=!!o,j=N(()=>{const pe=a==null?void 0:a.model;if(!(!pe||!n.prop))return kp(pe,n.prop).value}),W=N(()=>{const{required:pe}=n,_e=[];n.rules&&_e.push(...Hs(n.rules));const He=a==null?void 0:a.rules;if(He&&n.prop){const Ae=kp(He,n.prop).value;Ae&&_e.push(...Hs(Ae))}if(pe!==void 0){const Ae=_e.map((ke,ze)=>[ke,ze]).filter(([ke])=>Object.keys(ke).includes("required"));if(Ae.length>0)for(const[ke,ze]of Ae)ke.required!==pe&&(_e[ze]={...ke,required:pe});else _e.push({required:pe})}return _e}),Q=N(()=>W.value.length>0),ue=pe=>W.value.filter(He=>!He.trigger||!pe?!0:Array.isArray(He.trigger)?He.trigger.includes(pe):He.trigger===pe).map(({trigger:He,...Ae})=>Ae),se=N(()=>W.value.some(pe=>pe.required)),ne=N(()=>{var pe;return d.value==="error"&&n.showMessage&&((pe=a==null?void 0:a.showMessage)!=null?pe:!0)}),J=N(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),X=pe=>{f.value=pe},te=pe=>{var _e,He;const{errors:Ae,fields:ke}=pe;(!Ae||!ke)&&console.error(pe),X("error"),p.value=Ae?(He=(_e=Ae==null?void 0:Ae[0])==null?void 0:_e.message)!=null?He:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,p.value)},Y=()=>{X("success"),a==null||a.emit("validate",n.prop,!0,"")},Z=async pe=>{const _e=k.value;return new ph({[_e]:pe}).validate({[_e]:j.value},{firstFields:!0}).then(()=>(Y(),!0)).catch(Ae=>(te(Ae),Promise.reject(Ae)))},ae=async(pe,_e)=>{if(m||!n.prop)return!1;const He=Pt(_e);if(!Q.value)return _e==null||_e(!1),!1;const Ae=ue(pe);return Ae.length===0?(_e==null||_e(!0),!0):(X("validating"),Z(Ae).then(()=>(_e==null||_e(!0),!0)).catch(ke=>{const{fields:ze}=ke;return _e==null||_e(!1,ze),He?!1:Promise.reject(ze)}))},ve=()=>{X(""),p.value="",m=!1},we=async()=>{const pe=a==null?void 0:a.model;if(!pe||!n.prop)return;const _e=kp(pe,n.prop);m=!0,_e.value=rE(y),await bt(),ve(),m=!1},Me=pe=>{c.value.includes(pe)||c.value.push(pe)},Ge=pe=>{c.value=c.value.filter(_e=>_e!==pe)};We(()=>n.error,pe=>{p.value=pe||"",X(pe?"error":"")},{immediate:!0}),We(()=>n.validateStatus,pe=>X(pe||""));const Ee=Sn({...Wr(n),$el:g,size:s,validateState:f,labelId:u,inputIds:c,isGroup:H,hasLabel:L,fieldValue:j,addInputId:Me,removeInputId:Ge,resetField:we,clearValidate:ve,validate:ae});return nn(yi,Ee),Ht(()=>{n.prop&&(a==null||a.addField(Ee),y=rE(j.value))}),Dn(()=>{a==null||a.removeField(Ee)}),t({size:s,validateMessage:p,validateState:f,validate:ae,clearValidate:ve,resetField:we}),(pe,_e)=>{var He;return V(),ie("div",{ref_key:"formItemRef",ref:g,class:K(h(P)),role:h(H)?"group":void 0,"aria-labelledby":h(H)?h(u):void 0},[ye(h(Hj),{"is-auto-width":h(S).width==="auto","update-all":((He=h(a))==null?void 0:He.labelWidth)==="auto"},{default:Ce(()=>[h(L)?(V(),Fe(Zt(h(B)?"label":"div"),{key:0,id:h(u),for:h(B),class:K(h(l).e("label")),style:vt(h(S))},{default:Ce(()=>[Ue(pe.$slots,"label",{label:h(J)},()=>[dn(ot(h(J)),1)])]),_:3},8,["id","for","class","style"])):Ie("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),de("div",{class:K(h(l).e("content")),style:vt(h(_))},[Ue(pe.$slots,"default"),ye(fA,{name:`${h(l).namespace.value}-zoom-in-top`},{default:Ce(()=>[h(ne)?Ue(pe.$slots,"error",{key:0,error:p.value},()=>[de("div",{class:K(h($))},ot(p.value),3)]):Ie("v-if",!0)]),_:3},8,["name"])],6)],10,Uj)}}});var gM=at(Gj,[["__file","form-item.vue"]]);const jj=jt(oj,{FormItem:gM}),zj=Yn(gM);let Ao;const Kj=`
  height:0 !important;
  visibility:hidden !important;
  ${DA()?"":"overflow:hidden !important;"}
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
`,Wj=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Xj(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Wj.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function BE(e,t=1,n){var r;Ao||(Ao=document.createElement("textarea"),document.body.appendChild(Ao));const{paddingSize:a,borderSize:o,boxSizing:s,contextStyle:l}=Xj(e);Ao.setAttribute("style",`${l};${Kj}`),Ao.value=e.value||e.placeholder||"";let u=Ao.scrollHeight;const c={};s==="border-box"?u=u+o:s==="content-box"&&(u=u-a),Ao.value="";const f=Ao.scrollHeight-a;if(It(t)){let d=f*t;s==="border-box"&&(d=d+a+o),u=Math.max(d,u),c.minHeight=`${d}px`}if(It(n)){let d=f*n;s==="border-box"&&(d=d+a+o),u=Math.min(d,u)}return c.height=`${u}px`,(r=Ao.parentNode)==null||r.removeChild(Ao),Ao=void 0,c}const Yj=tt({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:xe([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:xe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Pn},prefixIcon:{type:Pn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:xe([Object,Array,String]),default:()=>Xn({})},autofocus:{type:Boolean,default:!1},...Xr(["ariaLabel"])}),Jj={[Yt]:e=>Rt(e),input:e=>Rt(e),change:e=>Rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},qj=["role"],Qj=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Zj=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],ez=he({name:"ElInput",inheritAttrs:!1}),tz=he({...ez,props:Yj,emits:Jj,setup(e,{expose:t,emit:n}){const r=e,a=lu(),o=Vr(),s=N(()=>{const Ke={};return r.containerRole==="combobox"&&(Ke["aria-haspopup"]=a["aria-haspopup"],Ke["aria-owns"]=a["aria-owns"],Ke["aria-expanded"]=a["aria-expanded"]),Ke}),l=N(()=>[r.type==="textarea"?S.b():m.b(),m.m(g.value),m.is("disabled",y.value),m.is("exceed",Me.value),{[m.b("group")]:o.prepend||o.append,[m.bm("group","append")]:o.append,[m.bm("group","prepend")]:o.prepend,[m.m("prefix")]:o.prefix||r.prefixIcon,[m.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[m.bm("suffix","password-clear")]:Z.value&&ae.value,[m.b("hidden")]:r.type==="hidden"},a.class]),u=N(()=>[m.e("wrapper"),m.is("focus",j.value)]),c=w_({excludeKeys:N(()=>Object.keys(s.value))}),{form:f,formItem:d}=va(),{inputId:p}=Xo(r,{formItemContext:d}),g=yr(),y=Ca(),m=Je("input"),S=Je("textarea"),_=Fn(),P=Fn(),A=ee(!1),$=ee(!1),k=ee(!1),L=ee(),B=Fn(r.inputStyle),H=N(()=>_.value||P.value),{wrapperRef:G,isFocused:j,handleFocus:W,handleBlur:Q}=Av(H,{afterBlur(){var Ke;r.validateEvent&&((Ke=d==null?void 0:d.validate)==null||Ke.call(d,"blur").catch(ct=>void 0))}}),ue=N(()=>{var Ke;return(Ke=f==null?void 0:f.statusIcon)!=null?Ke:!1}),se=N(()=>(d==null?void 0:d.validateState)||""),ne=N(()=>se.value&&b_[se.value]),J=N(()=>k.value?aU:A7),X=N(()=>[a.style]),te=N(()=>[r.inputStyle,B.value,{resize:r.resize}]),Y=N(()=>Br(r.modelValue)?"":String(r.modelValue)),Z=N(()=>r.clearable&&!y.value&&!r.readonly&&!!Y.value&&(j.value||A.value)),ae=N(()=>r.showPassword&&!y.value&&!r.readonly&&!!Y.value&&(!!Y.value||j.value)),ve=N(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!y.value&&!r.readonly&&!r.showPassword),we=N(()=>Y.value.length),Me=N(()=>!!ve.value&&we.value>Number(r.maxlength)),Ge=N(()=>!!o.suffix||!!r.suffixIcon||Z.value||r.showPassword||ve.value||!!se.value&&ue.value),[Ee,pe]=TG(_);Wn(P,Ke=>{if(Ae(),!ve.value||r.resize!=="both")return;const ct=Ke[0],{width:Et}=ct.contentRect;L.value={right:`calc(100% - ${Et+15+6}px)`}});const _e=()=>{const{type:Ke,autosize:ct}=r;if(!(!ln||Ke!=="textarea"||!P.value))if(ct){const Et=Kt(ct)?ct.minRows:void 0,Ut=Kt(ct)?ct.maxRows:void 0,en=BE(P.value,Et,Ut);B.value={overflowY:"hidden",...en},bt(()=>{P.value.offsetHeight,B.value=en})}else B.value={minHeight:BE(P.value).minHeight}},Ae=(Ke=>{let ct=!1;return()=>{var Et;if(ct||!r.autosize)return;((Et=P.value)==null?void 0:Et.offsetParent)===null||(Ke(),ct=!0)}})(_e),ke=()=>{const Ke=H.value,ct=r.formatter?r.formatter(Y.value):Y.value;!Ke||Ke.value===ct||(Ke.value=ct)},ze=async Ke=>{Ee();let{value:ct}=Ke.target;if(r.formatter&&(ct=r.parser?r.parser(ct):ct),!$.value){if(ct===Y.value){ke();return}n(Yt,ct),n("input",ct),await bt(),ke(),pe()}},ce=Ke=>{n("change",Ke.target.value)},me=Ke=>{n("compositionstart",Ke),$.value=!0},Be=Ke=>{var ct;n("compositionupdate",Ke);const Et=(ct=Ke.target)==null?void 0:ct.value,Ut=Et[Et.length-1]||"";$.value=!__(Ut)},be=Ke=>{n("compositionend",Ke),$.value&&($.value=!1,ze(Ke))},Oe=()=>{k.value=!k.value,Ye()},Ye=async()=>{var Ke;await bt(),(Ke=H.value)==null||Ke.focus()},qe=()=>{var Ke;return(Ke=H.value)==null?void 0:Ke.blur()},Qe=Ke=>{A.value=!1,n("mouseleave",Ke)},et=Ke=>{A.value=!0,n("mouseenter",Ke)},je=Ke=>{n("keydown",Ke)},lt=()=>{var Ke;(Ke=H.value)==null||Ke.select()},ut=()=>{n(Yt,""),n("change",""),n("clear"),n("input","")};return We(()=>r.modelValue,()=>{var Ke;bt(()=>_e()),r.validateEvent&&((Ke=d==null?void 0:d.validate)==null||Ke.call(d,"change").catch(ct=>void 0))}),We(Y,()=>ke()),We(()=>r.type,async()=>{await bt(),ke(),_e()}),Ht(()=>{!r.formatter&&r.parser,ke(),bt(_e)}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},N(()=>!!r.label)),t({input:_,textarea:P,ref:H,textareaStyle:te,autosize:On(r,"autosize"),focus:Ye,blur:qe,select:lt,clear:ut,resizeTextarea:_e}),(Ke,ct)=>(V(),ie("div",rn(h(s),{class:h(l),style:h(X),role:Ke.containerRole,onMouseenter:et,onMouseleave:Qe}),[Ie(" input "),Ke.type!=="textarea"?(V(),ie(mt,{key:0},[Ie(" prepend slot "),Ke.$slots.prepend?(V(),ie("div",{key:0,class:K(h(m).be("group","prepend"))},[Ue(Ke.$slots,"prepend")],2)):Ie("v-if",!0),de("div",{ref_key:"wrapperRef",ref:G,class:K(h(u))},[Ie(" prefix slot "),Ke.$slots.prefix||Ke.prefixIcon?(V(),ie("span",{key:0,class:K(h(m).e("prefix"))},[de("span",{class:K(h(m).e("prefix-inner"))},[Ue(Ke.$slots,"prefix"),Ke.prefixIcon?(V(),Fe(h(ht),{key:0,class:K(h(m).e("icon"))},{default:Ce(()=>[(V(),Fe(Zt(Ke.prefixIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)):Ie("v-if",!0),de("input",rn({id:h(p),ref_key:"input",ref:_,class:h(m).e("inner")},h(c),{minlength:Ke.minlength,maxlength:Ke.maxlength,type:Ke.showPassword?k.value?"text":"password":Ke.type,disabled:h(y),readonly:Ke.readonly,autocomplete:Ke.autocomplete,tabindex:Ke.tabindex,"aria-label":Ke.label||Ke.ariaLabel,placeholder:Ke.placeholder,style:Ke.inputStyle,form:Ke.form,autofocus:Ke.autofocus,onCompositionstart:me,onCompositionupdate:Be,onCompositionend:be,onInput:ze,onFocus:ct[0]||(ct[0]=(...Et)=>h(W)&&h(W)(...Et)),onBlur:ct[1]||(ct[1]=(...Et)=>h(Q)&&h(Q)(...Et)),onChange:ce,onKeydown:je}),null,16,Qj),Ie(" suffix slot "),h(Ge)?(V(),ie("span",{key:1,class:K(h(m).e("suffix"))},[de("span",{class:K(h(m).e("suffix-inner"))},[!h(Z)||!h(ae)||!h(ve)?(V(),ie(mt,{key:0},[Ue(Ke.$slots,"suffix"),Ke.suffixIcon?(V(),Fe(h(ht),{key:0,class:K(h(m).e("icon"))},{default:Ce(()=>[(V(),Fe(Zt(Ke.suffixIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],64)):Ie("v-if",!0),h(Z)?(V(),Fe(h(ht),{key:1,class:K([h(m).e("icon"),h(m).e("clear")]),onMousedown:Ot(h(xn),["prevent"]),onClick:ut},{default:Ce(()=>[ye(h(tl))]),_:1},8,["class","onMousedown"])):Ie("v-if",!0),h(ae)?(V(),Fe(h(ht),{key:2,class:K([h(m).e("icon"),h(m).e("password")]),onClick:Oe},{default:Ce(()=>[(V(),Fe(Zt(h(J))))]),_:1},8,["class"])):Ie("v-if",!0),h(ve)?(V(),ie("span",{key:3,class:K(h(m).e("count"))},[de("span",{class:K(h(m).e("count-inner"))},ot(h(we))+" / "+ot(Ke.maxlength),3)],2)):Ie("v-if",!0),h(se)&&h(ne)&&h(ue)?(V(),Fe(h(ht),{key:4,class:K([h(m).e("icon"),h(m).e("validateIcon"),h(m).is("loading",h(se)==="validating")])},{default:Ce(()=>[(V(),Fe(Zt(h(ne))))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)):Ie("v-if",!0)],2),Ie(" append slot "),Ke.$slots.append?(V(),ie("div",{key:1,class:K(h(m).be("group","append"))},[Ue(Ke.$slots,"append")],2)):Ie("v-if",!0)],64)):(V(),ie(mt,{key:1},[Ie(" textarea "),de("textarea",rn({id:h(p),ref_key:"textarea",ref:P,class:h(S).e("inner")},h(c),{minlength:Ke.minlength,maxlength:Ke.maxlength,tabindex:Ke.tabindex,disabled:h(y),readonly:Ke.readonly,autocomplete:Ke.autocomplete,style:h(te),"aria-label":Ke.label||Ke.ariaLabel,placeholder:Ke.placeholder,form:Ke.form,autofocus:Ke.autofocus,onCompositionstart:me,onCompositionupdate:Be,onCompositionend:be,onInput:ze,onFocus:ct[2]||(ct[2]=(...Et)=>h(W)&&h(W)(...Et)),onBlur:ct[3]||(ct[3]=(...Et)=>h(Q)&&h(Q)(...Et)),onChange:ce,onKeydown:je}),null,16,Zj),h(ve)?(V(),ie("span",{key:0,style:vt(L.value),class:K(h(m).e("count"))},ot(h(we))+" / "+ot(Ke.maxlength),7)):Ie("v-if",!0)],64))],16,qj))}});var nz=at(tz,[["__file","input.vue"]]);const ua=jt(nz),bu=4,yM={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},rz=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),G_=Symbol("scrollbarContextKey"),az=tt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),oz="Thumb",iz=he({__name:"thumb",props:az,setup(e){const t=e,n=dt(G_),r=Je("scrollbar");n||Er(oz,"can not inject scrollbar context");const a=ee(),o=ee(),s=ee({}),l=ee(!1);let u=!1,c=!1,f=ln?document.onselectstart:null;const d=N(()=>yM[t.vertical?"vertical":"horizontal"]),p=N(()=>rz({size:t.size,move:t.move,bar:d.value})),g=N(()=>a.value[d.value.offset]**2/n.wrapElement[d.value.scrollSize]/t.ratio/o.value[d.value.offset]),y=L=>{var B;if(L.stopPropagation(),L.ctrlKey||[1,2].includes(L.button))return;(B=window.getSelection())==null||B.removeAllRanges(),S(L);const H=L.currentTarget;H&&(s.value[d.value.axis]=H[d.value.offset]-(L[d.value.client]-H.getBoundingClientRect()[d.value.direction]))},m=L=>{if(!o.value||!a.value||!n.wrapElement)return;const B=Math.abs(L.target.getBoundingClientRect()[d.value.direction]-L[d.value.client]),H=o.value[d.value.offset]/2,G=(B-H)*100*g.value/a.value[d.value.offset];n.wrapElement[d.value.scroll]=G*n.wrapElement[d.value.scrollSize]/100},S=L=>{L.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",_),document.addEventListener("mouseup",P),f=document.onselectstart,document.onselectstart=()=>!1},_=L=>{if(!a.value||!o.value||u===!1)return;const B=s.value[d.value.axis];if(!B)return;const H=(a.value.getBoundingClientRect()[d.value.direction]-L[d.value.client])*-1,G=o.value[d.value.offset]-B,j=(H-G)*100*g.value/a.value[d.value.offset];n.wrapElement[d.value.scroll]=j*n.wrapElement[d.value.scrollSize]/100},P=()=>{u=!1,s.value[d.value.axis]=0,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",P),k(),c&&(l.value=!1)},A=()=>{c=!1,l.value=!!t.size},$=()=>{c=!0,l.value=u};Dn(()=>{k(),document.removeEventListener("mouseup",P)});const k=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Bn(On(n,"scrollbarElement"),"mousemove",A),Bn(On(n,"scrollbarElement"),"mouseleave",$),(L,B)=>(V(),Fe(Tr,{name:h(r).b("fade"),persisted:""},{default:Ce(()=>[Lt(de("div",{ref_key:"instance",ref:a,class:K([h(r).e("bar"),h(r).is(h(d).key)]),onMousedown:m},[de("div",{ref_key:"thumb",ref:o,class:K(h(r).e("thumb")),style:vt(h(p)),onMousedown:y},null,38)],34),[[bn,L.always||l.value]])]),_:1},8,["name"]))}});var HE=at(iz,[["__file","thumb.vue"]]);const sz=tt({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),lz=he({__name:"bar",props:sz,setup(e,{expose:t}){const n=e,r=dt(G_),a=ee(0),o=ee(0),s=ee(""),l=ee(""),u=ee(1),c=ee(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-bu,y=p.offsetWidth-bu;o.value=p.scrollTop*100/g*u.value,a.value=p.scrollLeft*100/y*c.value}},update:()=>{const p=r==null?void 0:r.wrapElement;if(!p)return;const g=p.offsetHeight-bu,y=p.offsetWidth-bu,m=g**2/p.scrollHeight,S=y**2/p.scrollWidth,_=Math.max(m,n.minSize),P=Math.max(S,n.minSize);u.value=m/(g-m)/(_/(g-_)),c.value=S/(y-S)/(P/(y-P)),l.value=_+bu<g?`${_}px`:"",s.value=P+bu<y?`${P}px`:""}}),(p,g)=>(V(),ie(mt,null,[ye(HE,{move:a.value,ratio:c.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),ye(HE,{move:o.value,ratio:u.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}});var uz=at(lz,[["__file","bar.vue"]]);const cz=tt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:xe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,...Xr(["ariaLabel","ariaOrientation"])}),dz={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(It)},fz="ElScrollbar",hz=he({name:fz}),pz=he({...hz,props:cz,emits:dz,setup(e,{expose:t,emit:n}){const r=e,a=Je("scrollbar");let o,s;const l=ee(),u=ee(),c=ee(),f=ee(),d=N(()=>{const A={};return r.height&&(A.height=rr(r.height)),r.maxHeight&&(A.maxHeight=rr(r.maxHeight)),[r.wrapStyle,A]}),p=N(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),g=N(()=>[a.e("view"),r.viewClass]),y=()=>{var A;u.value&&((A=f.value)==null||A.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function m(A,$){Kt(A)?u.value.scrollTo(A):It(A)&&It($)&&u.value.scrollTo(A,$)}const S=A=>{It(A)&&(u.value.scrollTop=A)},_=A=>{It(A)&&(u.value.scrollLeft=A)},P=()=>{var A;(A=f.value)==null||A.update()};return We(()=>r.noresize,A=>{A?(o==null||o(),s==null||s()):({stop:o}=Wn(c,P),s=Bn("resize",P))},{immediate:!0}),We(()=>[r.maxHeight,r.height],()=>{r.native||bt(()=>{var A;P(),u.value&&((A=f.value)==null||A.handleScroll(u.value))})}),nn(G_,Sn({scrollbarElement:l,wrapElement:u})),Ht(()=>{r.native||bt(()=>{P()})}),Ji(()=>P()),t({wrapRef:u,update:P,scrollTo:m,setScrollTop:S,setScrollLeft:_,handleScroll:y}),(A,$)=>(V(),ie("div",{ref_key:"scrollbarRef",ref:l,class:K(h(a).b())},[de("div",{ref_key:"wrapRef",ref:u,class:K(h(p)),style:vt(h(d)),onScroll:y},[(V(),Fe(Zt(A.tag),{id:A.id,ref_key:"resizeRef",ref:c,class:K(h(g)),style:vt(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:Ce(()=>[Ue(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),A.native?Ie("v-if",!0):(V(),Fe(uz,{key:0,ref_key:"barRef",ref:f,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}});var vz=at(pz,[["__file","scrollbar.vue"]]);const ts=jt(vz),j_=Symbol("popper"),bM=Symbol("popperContent"),mz=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],_M=tt({role:{type:String,values:mz,default:"tooltip"}}),gz=he({name:"ElPopper",inheritAttrs:!1}),yz=he({...gz,props:_M,setup(e,{expose:t}){const n=e,r=ee(),a=ee(),o=ee(),s=ee(),l=N(()=>n.role),u={triggerRef:r,popperInstanceRef:a,contentRef:o,referenceRef:s,role:l};return t(u),nn(j_,u),(c,f)=>Ue(c.$slots,"default")}});var bz=at(yz,[["__file","popper.vue"]]);const wM=tt({arrowOffset:{type:Number,default:5}}),_z=he({name:"ElPopperArrow",inheritAttrs:!1}),wz=he({..._z,props:wM,setup(e,{expose:t}){const n=e,r=Je("popper"),{arrowOffset:a,arrowRef:o,arrowStyle:s}=dt(bM,void 0);return We(()=>n.arrowOffset,l=>{a.value=l}),Dn(()=>{o.value=void 0}),t({arrowRef:o}),(l,u)=>(V(),ie("span",{ref_key:"arrowRef",ref:o,class:K(h(r).e("arrow")),style:vt(h(s)),"data-popper-arrow":""},null,6))}});var Sz=at(wz,[["__file","arrow.vue"]]);const Tz="ElOnlyChild",SM=he({name:Tz,setup(e,{slots:t,attrs:n}){var r;const a=dt(QP),o=FV((r=a==null?void 0:a.setForwardRef)!=null?r:xn);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l||l.length>1)return null;const u=TM(l);return u?Lt(ji(u,n),[[o]]):null}}});function TM(e){if(!e)return null;const t=e;for(const n of t){if(Kt(n))switch(n.type){case la:continue;case Nc:case"svg":return UE(n);case mt:return TM(n.children);default:return n}return UE(n)}return null}function UE(e){const t=Je("only-child");return ye("span",{class:t.e("content")},[e])}const EM=tt({virtualRef:{type:xe(Object)},virtualTriggering:Boolean,onMouseenter:{type:xe(Function)},onMouseleave:{type:xe(Function)},onClick:{type:xe(Function)},onKeydown:{type:xe(Function)},onFocus:{type:xe(Function)},onBlur:{type:xe(Function)},onContextmenu:{type:xe(Function)},id:String,open:Boolean}),Ez=he({name:"ElPopperTrigger",inheritAttrs:!1}),Cz=he({...Ez,props:EM,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=dt(j_,void 0);DV(a);const o=N(()=>l.value?n.id:void 0),s=N(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=N(()=>{if(r&&r.value!=="tooltip")return r.value}),u=N(()=>l.value?`${n.open}`:void 0);let c;return Ht(()=>{We(()=>n.virtualRef,f=>{f&&(a.value=La(f))},{immediate:!0}),We(a,(f,d)=>{c==null||c(),c=void 0,bo(f)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var g;const y=n[p];y&&(f.addEventListener(p.slice(2).toLowerCase(),y),(g=d==null?void 0:d.removeEventListener)==null||g.call(d,p.slice(2).toLowerCase(),y))}),c=We([o,s,l,u],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,y)=>{Br(p[y])?f.removeAttribute(g):f.setAttribute(g,p[y])})},{immediate:!0})),bo(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),Dn(()=>{c==null||c(),c=void 0}),t({triggerRef:a}),(f,d)=>f.virtualTriggering?Ie("v-if",!0):(V(),Fe(h(SM),rn({key:0},f.$attrs,{"aria-controls":h(o),"aria-describedby":h(s),"aria-expanded":h(u),"aria-haspopup":h(l)}),{default:Ce(()=>[Ue(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var xz=at(Cz,[["__file","trigger.vue"]]);const Mm="focus-trap.focus-after-trapped",Om="focus-trap.focus-after-released",Iz="focus-trap.focusout-prevented",VE={cancelable:!0,bubbles:!1},Az={cancelable:!0,bubbles:!1},GE="focusAfterTrapped",jE="focusAfterReleased",z_=Symbol("elFocusTrap"),K_=ee(),Ov=ee(0),W_=ee(0);let Gh=0;const CM=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},zE=(e,t)=>{for(const n of e)if(!Pz(n,t))return n},Pz=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Mz=e=>{const t=CM(e),n=zE(t,e),r=zE(t.reverse(),e);return[n,r]},Oz=e=>e instanceof HTMLInputElement&&"select"in e,hs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),W_.value=window.performance.now(),e!==n&&Oz(e)&&t&&e.select()}};function KE(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const $z=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=KE(e,r),e.unshift(r)},remove:r=>{var a,o;e=KE(e,r),(o=(a=e[0])==null?void 0:a.resume)==null||o.call(a)}}},Rz=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(hs(r,t),document.activeElement!==n)return},WE=$z(),kz=()=>Ov.value>W_.value,jh=()=>{K_.value="pointer",Ov.value=window.performance.now()},XE=()=>{K_.value="keyboard",Ov.value=window.performance.now()},Lz=()=>(Ht(()=>{Gh===0&&(document.addEventListener("mousedown",jh),document.addEventListener("touchstart",jh),document.addEventListener("keydown",XE)),Gh++}),Dn(()=>{Gh--,Gh<=0&&(document.removeEventListener("mousedown",jh),document.removeEventListener("touchstart",jh),document.removeEventListener("keydown",XE))}),{focusReason:K_,lastUserFocusTimestamp:Ov,lastAutomatedFocusTimestamp:W_}),zh=e=>new CustomEvent(Iz,{...Az,detail:e}),Nz=he({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[GE,jE,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ee();let r,a;const{focusReason:o}=Lz();$V(y=>{e.trapped&&!s.paused&&t("release-requested",y)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=y=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:S,ctrlKey:_,metaKey:P,currentTarget:A,shiftKey:$}=y,{loop:k}=e,L=m===St.tab&&!S&&!_&&!P,B=document.activeElement;if(L&&B){const H=A,[G,j]=Mz(H);if(G&&j){if(!$&&B===j){const Q=zh({focusReason:o.value});t("focusout-prevented",Q),Q.defaultPrevented||(y.preventDefault(),k&&hs(G,!0))}else if($&&[G,H].includes(B)){const Q=zh({focusReason:o.value});t("focusout-prevented",Q),Q.defaultPrevented||(y.preventDefault(),k&&hs(j,!0))}}else if(B===H){const Q=zh({focusReason:o.value});t("focusout-prevented",Q),Q.defaultPrevented||y.preventDefault()}}};nn(z_,{focusTrapRef:n,onKeydown:l}),We(()=>e.focusTrapEl,y=>{y&&(n.value=y)},{immediate:!0}),We([n],([y],[m])=>{y&&(y.addEventListener("keydown",l),y.addEventListener("focusin",f),y.addEventListener("focusout",d)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",d))});const u=y=>{t(GE,y)},c=y=>t(jE,y),f=y=>{const m=h(n);if(!m)return;const S=y.target,_=y.relatedTarget,P=S&&m.contains(S);e.trapped||_&&m.contains(_)||(r=_),P&&t("focusin",y),!s.paused&&e.trapped&&(P?a=S:hs(a,!0))},d=y=>{const m=h(n);if(!(s.paused||!m))if(e.trapped){const S=y.relatedTarget;!Br(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&e.trapped){const _=zh({focusReason:o.value});t("focusout-prevented",_),_.defaultPrevented||hs(a,!0)}},0)}else{const S=y.target;S&&m.contains(S)||t("focusout",y)}};async function p(){await bt();const y=h(n);if(y){WE.push(s);const m=y.contains(document.activeElement)?r:document.activeElement;if(r=m,!y.contains(m)){const _=new Event(Mm,VE);y.addEventListener(Mm,u),y.dispatchEvent(_),_.defaultPrevented||bt(()=>{let P=e.focusStartEl;Rt(P)||(hs(P),document.activeElement!==P&&(P="first")),P==="first"&&Rz(CM(y),!0),(document.activeElement===m||P==="container")&&hs(y)})}}}function g(){const y=h(n);if(y){y.removeEventListener(Mm,u);const m=new CustomEvent(Om,{...VE,detail:{focusReason:o.value}});y.addEventListener(Om,c),y.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!kz()||y.contains(document.activeElement))&&hs(r??document.body),y.removeEventListener(Om,c),WE.remove(s)}}return Ht(()=>{e.trapped&&p(),We(()=>e.trapped,y=>{y?p():g()})}),Dn(()=>{e.trapped&&g()}),{onKeydown:l}}});function Dz(e,t,n,r,a,o){return Ue(e.$slots,"default",{handleKeydown:e.onKeydown})}var vh=at(Nz,[["render",Dz],["__file","focus-trap.vue"]]);const Fz=["fixed","absolute"],Bz=tt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:xe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:fu,default:"bottom"},popperOptions:{type:xe(Object),default:()=>({})},strategy:{type:String,values:Fz,default:"absolute"}}),xM=tt({...Bz,id:String,style:{type:xe([String,Array,Object])},className:{type:xe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:xe([String,Array,Object])},popperStyle:{type:xe([String,Array,Object])},referenceEl:{type:xe(Object)},triggerTargetEl:{type:xe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Xr(["ariaLabel"])}),Hz={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Uz=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,o={placement:n,strategy:r,...a,modifiers:[...Gz(e),...t]};return jz(o,a==null?void 0:a.modifiers),o},Vz=e=>{if(ln)return La(e)};function Gz(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function jz(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const zz=0,Kz=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=dt(j_,void 0),o=ee(),s=ee(),l=N(()=>({name:"eventListeners",enabled:!!e.visible})),u=N(()=>{var _;const P=h(o),A=(_=h(s))!=null?_:zz;return{name:"arrow",enabled:!SP(P),options:{element:P,padding:A}}}),c=N(()=>({onFirstUpdate:()=>{y()},...Uz(e,[h(u),h(l)])})),f=N(()=>Vz(e.referenceEl)||h(r)),{attributes:d,state:p,styles:g,update:y,forceUpdate:m,instanceRef:S}=AV(f,n,c);return We(S,_=>t.value=_),Ht(()=>{We(()=>{var _;return(_=h(f))==null?void 0:_.getBoundingClientRect()},()=>{y()})}),{attributes:d,arrowRef:o,contentRef:n,instanceRef:S,state:p,styles:g,role:a,forceUpdate:m,update:y}},Wz=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Uc(),o=Je("popper"),s=N(()=>h(t).popper),l=ee(It(e.zIndex)?e.zIndex:a()),u=N(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),c=N(()=>[{zIndex:h(l)},h(n).popper,e.popperStyle||{}]),f=N(()=>r.value==="dialog"?"false":void 0),d=N(()=>h(n).arrow||{});return{ariaModal:f,arrowStyle:d,contentAttrs:s,contentClass:u,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=It(e.zIndex)?e.zIndex:a()}}},Xz=(e,t)=>{const n=ee(!1),r=ee();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var f;((f=c.detail)==null?void 0:f.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Yz=he({name:"ElPopperContent"}),Jz=he({...Yz,props:xM,emits:Hz,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:o,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:f}=Xz(r,n),{attributes:d,arrowRef:p,contentRef:g,styles:y,instanceRef:m,role:S,update:_}=Kz(r),{ariaModal:P,arrowStyle:A,contentAttrs:$,contentClass:k,contentStyle:L,updateZIndex:B}=Wz(r,{styles:y,attributes:d,role:S}),H=dt(yi,void 0),G=ee();nn(bM,{arrowStyle:A,arrowRef:p,arrowOffset:G}),H&&(H.addInputId||H.removeInputId)&&nn(yi,{...H,addInputId:xn,removeInputId:xn});let j;const W=(ue=!0)=>{_(),ue&&B()},Q=()=>{W(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return Ht(()=>{We(()=>r.triggerTargetEl,(ue,se)=>{j==null||j(),j=void 0;const ne=h(ue||g.value),J=h(se||g.value);bo(ne)&&(j=We([S,()=>r.ariaLabel,P,()=>r.id],X=>{["role","aria-label","aria-modal","id"].forEach((te,Y)=>{Br(X[Y])?ne.removeAttribute(te):ne.setAttribute(te,X[Y])})},{immediate:!0})),J!==ne&&bo(J)&&["role","aria-label","aria-modal","id"].forEach(X=>{J.removeAttribute(X)})},{immediate:!0}),We(()=>r.visible,Q,{immediate:!0})}),Dn(()=>{j==null||j(),j=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:W,contentStyle:L}),(ue,se)=>(V(),ie("div",rn({ref_key:"contentRef",ref:g},h($),{style:h(L),class:h(k),tabindex:"-1",onMouseenter:se[0]||(se[0]=ne=>ue.$emit("mouseenter",ne)),onMouseleave:se[1]||(se[1]=ne=>ue.$emit("mouseleave",ne))}),[ye(h(vh),{trapped:h(o),"trap-on-focus-in":!0,"focus-trap-el":h(g),"focus-start-el":h(a),onFocusAfterTrapped:h(l),onFocusAfterReleased:h(s),onFocusin:h(u),onFocusoutPrevented:h(c),onReleaseRequested:h(f)},{default:Ce(()=>[Ue(ue.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var qz=at(Jz,[["__file","content.vue"]]);const IM=jt(bz),$v=Symbol("elTooltip"),Lr=tt({...LV,...xM,appendTo:{type:xe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:xe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Xr(["ariaLabel"])}),Tf=tt({...EM,disabled:Boolean,trigger:{type:xe([String,Array]),default:"hover"},triggerKeys:{type:xe(Array),default:()=>[St.enter,St.space]}}),{useModelToggleProps:Qz,useModelToggleEmits:Zz,useModelToggle:eK}=FP("visible"),tK=tt({..._M,...Qz,...Lr,...Tf,...wM,showArrow:{type:Boolean,default:!0}}),nK=[...Zz,"before-show","before-hide","show","hide","open","close"],rK=(e,t)=>st(e)?e.includes(t):e===t,_u=(e,t,n)=>r=>{rK(h(e),t)&&n(r)},aK=he({name:"ElTooltipTrigger"}),oK=he({...aK,props:Tf,setup(e,{expose:t}){const n=e,r=Je("tooltip"),{controlled:a,id:o,open:s,onOpen:l,onClose:u,onToggle:c}=dt($v,void 0),f=ee(null),d=()=>{if(h(a)||n.disabled)return!0},p=On(n,"trigger"),g=nr(d,_u(p,"hover",l)),y=nr(d,_u(p,"hover",u)),m=nr(d,_u(p,"click",$=>{$.button===0&&c($)})),S=nr(d,_u(p,"focus",l)),_=nr(d,_u(p,"focus",u)),P=nr(d,_u(p,"contextmenu",$=>{$.preventDefault(),c($)})),A=nr(d,$=>{const{code:k}=$;n.triggerKeys.includes(k)&&($.preventDefault(),c($))});return t({triggerRef:f}),($,k)=>(V(),Fe(h(xz),{id:h(o),"virtual-ref":$.virtualRef,open:h(s),"virtual-triggering":$.virtualTriggering,class:K(h(r).e("trigger")),onBlur:h(_),onClick:h(m),onContextmenu:h(P),onFocus:h(S),onMouseenter:h(g),onMouseleave:h(y),onKeydown:h(A)},{default:Ce(()=>[Ue($.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var iK=at(oK,[["__file","trigger.vue"]]);const sK=he({name:"ElTooltipContent",inheritAttrs:!1}),lK=he({...sK,props:Lr,setup(e,{expose:t}){const n=e,{selector:r}=qP(),a=Je("tooltip"),o=ee(null),s=ee(!1),{controlled:l,id:u,open:c,trigger:f,onClose:d,onOpen:p,onShow:g,onHide:y,onBeforeShow:m,onBeforeHide:S}=dt($v,void 0),_=N(()=>n.transition||`${a.namespace.value}-fade-in-linear`),P=N(()=>n.persistent);Dn(()=>{s.value=!0});const A=N(()=>h(P)?!0:h(c)),$=N(()=>n.disabled?!1:h(c)),k=N(()=>n.appendTo||r.value),L=N(()=>{var X;return(X=n.style)!=null?X:{}}),B=N(()=>!h(c)),H=()=>{y()},G=()=>{if(h(l))return!0},j=nr(G,()=>{n.enterable&&h(f)==="hover"&&p()}),W=nr(G,()=>{h(f)==="hover"&&d()}),Q=()=>{var X,te;(te=(X=o.value)==null?void 0:X.updatePopper)==null||te.call(X),m==null||m()},ue=()=>{S==null||S()},se=()=>{g(),J=Xb(N(()=>{var X;return(X=o.value)==null?void 0:X.popperContentRef}),()=>{if(h(l))return;h(f)!=="hover"&&d()})},ne=()=>{n.virtualTriggering||d()};let J;return We(()=>h(c),X=>{X||J==null||J()},{flush:"post"}),We(()=>n.content,()=>{var X,te;(te=(X=o.value)==null?void 0:X.updatePopper)==null||te.call(X)}),t({contentRef:o}),(X,te)=>(V(),Fe(Lc,{disabled:!X.teleported,to:h(k)},[ye(Tr,{name:h(_),onAfterLeave:H,onBeforeEnter:Q,onAfterEnter:se,onBeforeLeave:ue},{default:Ce(()=>[h(A)?Lt((V(),Fe(h(qz),rn({key:0,id:h(u),ref_key:"contentRef",ref:o},X.$attrs,{"aria-label":X.ariaLabel,"aria-hidden":h(B),"boundaries-padding":X.boundariesPadding,"fallback-placements":X.fallbackPlacements,"gpu-acceleration":X.gpuAcceleration,offset:X.offset,placement:X.placement,"popper-options":X.popperOptions,strategy:X.strategy,effect:X.effect,enterable:X.enterable,pure:X.pure,"popper-class":X.popperClass,"popper-style":[X.popperStyle,h(L)],"reference-el":X.referenceEl,"trigger-target-el":X.triggerTargetEl,visible:h($),"z-index":X.zIndex,onMouseenter:h(j),onMouseleave:h(W),onBlur:ne,onClose:h(d)}),{default:Ce(()=>[s.value?Ie("v-if",!0):Ue(X.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[bn,h($)]]):Ie("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var uK=at(lK,[["__file","content.vue"]]);const cK=["innerHTML"],dK={key:1},fK=he({name:"ElTooltip"}),hK=he({...fK,props:tK,emits:nK,setup(e,{expose:t,emit:n}){const r=e;kV();const a=ra(),o=ee(),s=ee(),l=()=>{var _;const P=h(o);P&&((_=P.popperInstanceRef)==null||_.update())},u=ee(!1),c=ee(),{show:f,hide:d,hasUpdateHandler:p}=eK({indicator:u,toggleReason:c}),{onOpen:g,onClose:y}=NV({showAfter:On(r,"showAfter"),hideAfter:On(r,"hideAfter"),autoClose:On(r,"autoClose"),open:f,close:d}),m=N(()=>mr(r.visible)&&!p.value);nn($v,{controlled:m,id:a,open:kc(u),trigger:On(r,"trigger"),onOpen:_=>{g(_)},onClose:_=>{y(_)},onToggle:_=>{h(u)?y(_):g(_)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),We(()=>r.disabled,_=>{_&&u.value&&(u.value=!1)});const S=_=>{var P,A;const $=(A=(P=s.value)==null?void 0:P.contentRef)==null?void 0:A.popperContentRef,k=(_==null?void 0:_.relatedTarget)||document.activeElement;return $&&$.contains(k)};return NI(()=>u.value&&d()),t({popperRef:o,contentRef:s,isFocusInsideContent:S,updatePopper:l,onOpen:g,onClose:y,hide:d}),(_,P)=>(V(),Fe(h(IM),{ref_key:"popperRef",ref:o,role:_.role},{default:Ce(()=>[ye(iK,{disabled:_.disabled,trigger:_.trigger,"trigger-keys":_.triggerKeys,"virtual-ref":_.virtualRef,"virtual-triggering":_.virtualTriggering},{default:Ce(()=>[_.$slots.default?Ue(_.$slots,"default",{key:0}):Ie("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ye(uK,{ref_key:"contentRef",ref:s,"aria-label":_.ariaLabel,"boundaries-padding":_.boundariesPadding,content:_.content,disabled:_.disabled,effect:_.effect,enterable:_.enterable,"fallback-placements":_.fallbackPlacements,"hide-after":_.hideAfter,"gpu-acceleration":_.gpuAcceleration,offset:_.offset,persistent:_.persistent,"popper-class":_.popperClass,"popper-style":_.popperStyle,placement:_.placement,"popper-options":_.popperOptions,pure:_.pure,"raw-content":_.rawContent,"reference-el":_.referenceEl,"trigger-target-el":_.triggerTargetEl,"show-after":_.showAfter,strategy:_.strategy,teleported:_.teleported,transition:_.transition,"virtual-triggering":_.virtualTriggering,"z-index":_.zIndex,"append-to":_.appendTo},{default:Ce(()=>[Ue(_.$slots,"content",{},()=>[_.rawContent?(V(),ie("span",{key:0,innerHTML:_.content},null,8,cK)):(V(),ie("span",dK,ot(_.content),1))]),_.showArrow?(V(),Fe(h(Sz),{key:0,"arrow-offset":_.arrowOffset},null,8,["arrow-offset"])):Ie("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var pK=at(hK,[["__file","tooltip.vue"]]);const fa=jt(pK),vK=tt({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:xe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:xe([Function,Array]),default:xn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Lr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...Xr(["ariaLabel"])}),mK={[Yt]:e=>Rt(e),[wa]:e=>Rt(e),[Hn]:e=>Rt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Kt(e)},gK=["aria-expanded","aria-owns"],yK={key:0},bK=["id","aria-selected","onClick"],AM="ElAutocomplete",_K=he({name:AM,inheritAttrs:!1}),wK=he({..._K,props:vK,emits:mK,setup(e,{expose:t,emit:n}){const r=e,a=w_(),o=lu(),s=Ca(),l=Je("autocomplete"),u=ee(),c=ee(),f=ee(),d=ee();let p=!1,g=!1;const y=ee([]),m=ee(-1),S=ee(""),_=ee(!1),P=ee(!1),A=ee(!1),$=ra(),k=N(()=>o.style),L=N(()=>(y.value.length>0||A.value)&&_.value),B=N(()=>!r.hideLoading&&A.value),H=N(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),G=()=>{L.value&&(S.value=`${u.value.$el.offsetWidth}px`)},j=()=>{m.value=-1},Q=Ha(async Ee=>{if(P.value)return;const pe=_e=>{A.value=!1,!P.value&&(st(_e)?(y.value=_e,m.value=r.highlightFirstItem?0:-1):Er(AM,"autocomplete suggestions must be an array"))};if(A.value=!0,st(r.fetchSuggestions))pe(r.fetchSuggestions);else{const _e=await r.fetchSuggestions(Ee,pe);st(_e)&&pe(_e)}},r.debounce),ue=Ee=>{const pe=!!Ee;if(n(wa,Ee),n(Yt,Ee),P.value=!1,_.value||(_.value=pe),!r.triggerOnFocus&&!Ee){P.value=!0,y.value=[];return}Q(Ee)},se=Ee=>{var pe;s.value||(((pe=Ee.target)==null?void 0:pe.tagName)!=="INPUT"||H.value.includes(document.activeElement))&&(_.value=!0)},ne=Ee=>{n(Hn,Ee)},J=Ee=>{g?g=!1:(_.value=!0,n("focus",Ee),r.triggerOnFocus&&!p&&Q(String(r.modelValue)))},X=Ee=>{setTimeout(()=>{var pe;if((pe=f.value)!=null&&pe.isFocusInsideContent()){g=!0;return}_.value&&ae(),n("blur",Ee)})},te=()=>{_.value=!1,n(Yt,""),n("clear")},Y=async()=>{L.value&&m.value>=0&&m.value<y.value.length?Me(y.value[m.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),y.value=[],m.value=-1)},Z=Ee=>{L.value&&(Ee.preventDefault(),Ee.stopPropagation(),ae())},ae=()=>{_.value=!1},ve=()=>{var Ee;(Ee=u.value)==null||Ee.focus()},we=()=>{var Ee;(Ee=u.value)==null||Ee.blur()},Me=async Ee=>{n(wa,Ee[r.valueKey]),n(Yt,Ee[r.valueKey]),n("select",Ee),y.value=[],m.value=-1},Ge=Ee=>{if(!L.value||A.value)return;if(Ee<0){m.value=-1;return}Ee>=y.value.length&&(Ee=y.value.length-1);const pe=c.value.querySelector(`.${l.be("suggestion","wrap")}`),He=pe.querySelectorAll(`.${l.be("suggestion","list")} li`)[Ee],Ae=pe.scrollTop,{offsetTop:ke,scrollHeight:ze}=He;ke+ze>Ae+pe.clientHeight&&(pe.scrollTop+=ze),ke<Ae&&(pe.scrollTop-=ze),m.value=Ee,u.value.ref.setAttribute("aria-activedescendant",`${$.value}-item-${m.value}`)};return Xb(d,()=>{L.value&&ae()}),Ht(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${$.value}-item-${m.value}`),p=u.value.ref.hasAttribute("readonly")}),t({highlightedIndex:m,activated:_,loading:A,inputRef:u,popperRef:f,suggestions:y,handleSelect:Me,handleKeyEnter:Y,focus:ve,blur:we,close:ae,highlight:Ge}),(Ee,pe)=>(V(),Fe(h(fa),{ref_key:"popperRef",ref:f,visible:h(L),placement:Ee.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[h(l).e("popper"),Ee.popperClass],teleported:Ee.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${h(l).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:G,onHide:j},{content:Ce(()=>[de("div",{ref_key:"regionRef",ref:c,class:K([h(l).b("suggestion"),h(l).is("loading",h(B))]),style:vt({[Ee.fitInputWidth?"width":"minWidth"]:S.value,outline:"none"}),role:"region"},[ye(h(ts),{id:h($),tag:"ul","wrap-class":h(l).be("suggestion","wrap"),"view-class":h(l).be("suggestion","list"),role:"listbox"},{default:Ce(()=>[h(B)?(V(),ie("li",yK,[Ue(Ee.$slots,"loading",{},()=>[ye(h(ht),{class:K(h(l).is("loading"))},{default:Ce(()=>[ye(h(nl))]),_:1},8,["class"])])])):(V(!0),ie(mt,{key:1},sn(y.value,(_e,He)=>(V(),ie("li",{id:`${h($)}-item-${He}`,key:He,class:K({highlighted:m.value===He}),role:"option","aria-selected":m.value===He,onClick:Ae=>Me(_e)},[Ue(Ee.$slots,"default",{item:_e},()=>[dn(ot(_e[Ee.valueKey]),1)])],10,bK))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Ce(()=>[de("div",{ref_key:"listboxRef",ref:d,class:K([h(l).b(),Ee.$attrs.class]),style:vt(h(k)),role:"combobox","aria-haspopup":"listbox","aria-expanded":h(L),"aria-owns":h($)},[ye(h(ua),rn({ref_key:"inputRef",ref:u},h(a),{clearable:Ee.clearable,disabled:h(s),name:Ee.name,"model-value":Ee.modelValue,"aria-label":Ee.ariaLabel,onInput:ue,onChange:ne,onFocus:J,onBlur:X,onClear:te,onKeydown:[pe[0]||(pe[0]=An(Ot(_e=>Ge(m.value-1),["prevent"]),["up"])),pe[1]||(pe[1]=An(Ot(_e=>Ge(m.value+1),["prevent"]),["down"])),An(Y,["enter"]),An(ae,["tab"]),An(Z,["esc"])],onMousedown:se}),Gi({_:2},[Ee.$slots.prepend?{name:"prepend",fn:Ce(()=>[Ue(Ee.$slots,"prepend")])}:void 0,Ee.$slots.append?{name:"append",fn:Ce(()=>[Ue(Ee.$slots,"append")])}:void 0,Ee.$slots.prefix?{name:"prefix",fn:Ce(()=>[Ue(Ee.$slots,"prefix")])}:void 0,Ee.$slots.suffix?{name:"suffix",fn:Ce(()=>[Ue(Ee.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,gK)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var SK=at(wK,[["__file","autocomplete.vue"]]);const TK=jt(SK),EK=tt({size:{type:[Number,String],values:Si,default:"",validator:e=>It(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Pn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:xe(String),default:"cover"}}),CK={error:e=>e instanceof Event},xK=["src","alt","srcset"],IK=he({name:"ElAvatar"}),AK=he({...IK,props:EK,emits:CK,setup(e,{emit:t}){const n=e,r=Je("avatar"),a=ee(!1),o=N(()=>{const{size:c,icon:f,shape:d}=n,p=[r.b()];return Rt(c)&&p.push(r.m(c)),f&&p.push(r.m("icon")),d&&p.push(r.m(d)),p}),s=N(()=>{const{size:c}=n;return It(c)?r.cssVarBlock({size:rr(c)||""}):void 0}),l=N(()=>({objectFit:n.fit}));We(()=>n.src,()=>a.value=!1);function u(c){a.value=!0,t("error",c)}return(c,f)=>(V(),ie("span",{class:K(h(o)),style:vt(h(s))},[(c.src||c.srcSet)&&!a.value?(V(),ie("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:vt(h(l)),onError:u},null,44,xK)):c.icon?(V(),Fe(h(ht),{key:1},{default:Ce(()=>[(V(),Fe(Zt(c.icon)))]),_:1})):Ue(c.$slots,"default",{key:2})],6))}});var PK=at(AK,[["__file","avatar.vue"]]);const MK=jt(PK),OK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},$K={click:e=>e instanceof MouseEvent},RK=(e,t,n)=>{const r=Fn(),a=Fn(),o=ee(!1),s=()=>{r.value&&(o.value=r.value.scrollTop>=e.visibilityHeight)},l=c=>{var f;(f=r.value)==null||f.scrollTo({top:0,behavior:"smooth"}),t("click",c)},u=RA(s,300,!0);return Bn(a,"scroll",u),Ht(()=>{var c;a.value=document,r.value=document.documentElement,e.target&&(r.value=(c=document.querySelector(e.target))!=null?c:void 0,r.value||Er(n,`target does not exist: ${e.target}`),a.value=r.value),s()}),{visible:o,handleClick:l}},PM="ElBacktop",kK=he({name:PM}),LK=he({...kK,props:OK,emits:$K,setup(e,{emit:t}){const n=e,r=Je("backtop"),{handleClick:a,visible:o}=RK(n,t,PM),s=N(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(l,u)=>(V(),Fe(Tr,{name:`${h(r).namespace.value}-fade-in`},{default:Ce(()=>[h(o)?(V(),ie("div",{key:0,style:vt(h(s)),class:K(h(r).b()),onClick:u[0]||(u[0]=Ot((...c)=>h(a)&&h(a)(...c),["stop"]))},[Ue(l.$slots,"default",{},()=>[ye(h(ht),{class:K(h(r).e("icon"))},{default:Ce(()=>[ye(h(c7))]),_:1},8,["class"])])],6)):Ie("v-if",!0)]),_:3},8,["name"]))}});var NK=at(LK,[["__file","backtop.vue"]]);const DK=jt(NK),FK=tt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,dotStyle:{type:xe([String,Object,Array])},badgeStyle:{type:xe([String,Object,Array])},offset:{type:xe(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),BK=["textContent"],HK=he({name:"ElBadge"}),UK=he({...HK,props:FK,setup(e,{expose:t}){const n=e,r=Je("badge"),a=N(()=>n.isDot?"":It(n.value)&&It(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),o=N(()=>{var s,l,u,c,f,d;return[{backgroundColor:n.color,marginRight:rr(-((l=(s=n.offset)==null?void 0:s[0])!=null?l:0)),marginTop:rr((c=(u=n.offset)==null?void 0:u[1])!=null?c:0)},(f=n.dotStyle)!=null?f:{},(d=n.badgeStyle)!=null?d:{}]});return Fr({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},N(()=>!!n.dotStyle)),Fr({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},N(()=>!!n.dotClass)),t({content:a}),(s,l)=>(V(),ie("div",{class:K(h(r).b())},[Ue(s.$slots,"default"),ye(Tr,{name:`${h(r).namespace.value}-zoom-in-center`,persisted:""},{default:Ce(()=>[Lt(de("sup",{class:K([h(r).e("content"),h(r).em("content",s.type),h(r).is("fixed",!!s.$slots.default),h(r).is("dot",s.isDot),s.dotClass,s.badgeClass]),style:vt(h(o)),textContent:ot(h(a))},null,14,BK),[[bn,!s.hidden&&(h(a)||s.isDot)]])]),_:1},8,["name"])],2))}});var VK=at(UK,[["__file","badge.vue"]]);const MM=jt(VK),OM=Symbol("breadcrumbKey"),GK=tt({separator:{type:String,default:"/"},separatorIcon:{type:Pn}}),jK=["aria-label"],zK=he({name:"ElBreadcrumb"}),KK=he({...zK,props:GK,setup(e){const t=e,{t:n}=hn(),r=Je("breadcrumb"),a=ee();return nn(OM,t),Ht(()=>{const o=a.value.querySelectorAll(`.${r.e("item")}`);o.length&&o[o.length-1].setAttribute("aria-current","page")}),(o,s)=>(V(),ie("div",{ref_key:"breadcrumb",ref:a,class:K(h(r).b()),"aria-label":h(n)("el.breadcrumb.label"),role:"navigation"},[Ue(o.$slots,"default")],10,jK))}});var WK=at(KK,[["__file","breadcrumb.vue"]]);const XK=tt({to:{type:xe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),YK=he({name:"ElBreadcrumbItem"}),JK=he({...YK,props:XK,setup(e){const t=e,n=Gt(),r=dt(OM,void 0),a=Je("breadcrumb"),o=n.appContext.config.globalProperties.$router,s=ee(),l=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(u,c)=>{var f,d;return V(),ie("span",{class:K(h(a).e("item"))},[de("span",{ref_key:"link",ref:s,class:K([h(a).e("inner"),h(a).is("link",!!u.to)]),role:"link",onClick:l},[Ue(u.$slots,"default")],2),(f=h(r))!=null&&f.separatorIcon?(V(),Fe(h(ht),{key:0,class:K(h(a).e("separator"))},{default:Ce(()=>[(V(),Fe(Zt(h(r).separatorIcon)))]),_:1},8,["class"])):(V(),ie("span",{key:1,class:K(h(a).e("separator")),role:"presentation"},ot((d=h(r))==null?void 0:d.separator),3))],2)}}});var $M=at(JK,[["__file","breadcrumb-item.vue"]]);const qK=jt(WK,{BreadcrumbItem:$M}),QK=Yn($M),RM=Symbol("buttonGroupContextKey"),ZK=(e,t)=>{Fr({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},N(()=>e.type==="text"));const n=dt(RM,void 0),r=hh("button"),{form:a}=va(),o=yr(N(()=>n==null?void 0:n.size)),s=Ca(),l=ee(),u=Vr(),c=N(()=>e.type||(n==null?void 0:n.type)||""),f=N(()=>{var y,m,S;return(S=(m=e.autoInsertSpace)!=null?m:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?S:!1}),d=N(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=N(()=>{var y;const m=(y=u.default)==null?void 0:y.call(u);if(f.value&&(m==null?void 0:m.length)===1){const S=m[0];if((S==null?void 0:S.type)===Nc){const _=S.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:s,_size:o,_type:c,_ref:l,_props:d,shouldAddSpace:p,handleClick:y=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",y)}}},w2=["default","primary","success","warning","info","danger","text",""],eW=["button","submit","reset"],S2=tt({size:Rr,disabled:Boolean,type:{type:String,values:w2,default:""},icon:{type:Pn},nativeType:{type:String,values:eW,default:"button"},loading:Boolean,loadingIcon:{type:Pn,default:()=>nl},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:xe([String,Object]),default:"button"}}),tW={click:e=>e instanceof MouseEvent};function na(e,t){nW(e)&&(e="100%");var n=rW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Kh(e){return Math.min(1,Math.max(0,e))}function nW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function kM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wh(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Rl(e){return e.length===1?"0"+e:String(e)}function aW(e,t,n){return{r:na(e,255)*255,g:na(t,255)*255,b:na(n,255)*255}}function YE(e,t,n){e=na(e,255),t=na(t,255),n=na(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,s=0,l=(r+a)/2;if(r===a)s=0,o=0;else{var u=r-a;switch(s=l>.5?u/(2-r-a):u/(r+a),r){case e:o=(t-n)/u+(t<n?6:0);break;case t:o=(n-e)/u+2;break;case n:o=(e-t)/u+4;break}o/=6}return{h:o,s,l}}function $m(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oW(e,t,n){var r,a,o;if(e=na(e,360),t=na(t,100),n=na(n,100),t===0)a=n,o=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=$m(l,s,e+1/3),a=$m(l,s,e),o=$m(l,s,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function JE(e,t,n){e=na(e,255),t=na(t,255),n=na(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,s=r,l=r-a,u=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:u,v:s}}function iW(e,t,n){e=na(e,360)*6,t=na(t,100),n=na(n,100);var r=Math.floor(e),a=e-r,o=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),u=r%6,c=[n,s,o,o,l,n][u],f=[l,n,n,s,o,o][u],d=[o,o,l,n,n,s][u];return{r:c*255,g:f*255,b:d*255}}function qE(e,t,n,r){var a=[Rl(Math.round(e).toString(16)),Rl(Math.round(t).toString(16)),Rl(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function sW(e,t,n,r,a){var o=[Rl(Math.round(e).toString(16)),Rl(Math.round(t).toString(16)),Rl(Math.round(n).toString(16)),Rl(lW(r))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function lW(e){return Math.round(parseFloat(e)*255).toString(16)}function QE(e){return Va(e)/255}function Va(e){return parseInt(e,16)}function uW(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var T2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function cW(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,s=!1,l=!1;return typeof e=="string"&&(e=hW(e)),typeof e=="object"&&(Ai(e.r)&&Ai(e.g)&&Ai(e.b)?(t=aW(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ai(e.h)&&Ai(e.s)&&Ai(e.v)?(r=Wh(e.s),a=Wh(e.v),t=iW(e.h,r,a),s=!0,l="hsv"):Ai(e.h)&&Ai(e.s)&&Ai(e.l)&&(r=Wh(e.s),o=Wh(e.l),t=oW(e.h,r,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=kM(n),{ok:s,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var dW="[-\\+]?\\d+%?",fW="[-\\+]?\\d*\\.\\d+%?",xs="(?:".concat(fW,")|(?:").concat(dW,")"),Rm="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),km="[\\s|\\(]+(".concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")[,|\\s]+(").concat(xs,")\\s*\\)?"),$o={CSS_UNIT:new RegExp(xs),rgb:new RegExp("rgb"+Rm),rgba:new RegExp("rgba"+km),hsl:new RegExp("hsl"+Rm),hsla:new RegExp("hsla"+km),hsv:new RegExp("hsv"+Rm),hsva:new RegExp("hsva"+km),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function hW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(T2[e])e=T2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=$o.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=$o.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$o.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=$o.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$o.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=$o.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$o.hex8.exec(e),n?{r:Va(n[1]),g:Va(n[2]),b:Va(n[3]),a:QE(n[4]),format:t?"name":"hex8"}:(n=$o.hex6.exec(e),n?{r:Va(n[1]),g:Va(n[2]),b:Va(n[3]),format:t?"name":"hex"}:(n=$o.hex4.exec(e),n?{r:Va(n[1]+n[1]),g:Va(n[2]+n[2]),b:Va(n[3]+n[3]),a:QE(n[4]+n[4]),format:t?"name":"hex8"}:(n=$o.hex3.exec(e),n?{r:Va(n[1]+n[1]),g:Va(n[2]+n[2]),b:Va(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ai(e){return!!$o.CSS_UNIT.exec(String(e))}var LM=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=uW(t)),this.originalInput=t;var a=cW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,s=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=kM(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=JE(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=JE(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=YE(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=YE(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),qE(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),sW(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(na(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(na(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+qE(this.r,this.g,this.b,!1),n=0,r=Object.entries(T2);n<r.length;n++){var a=r[n],o=a[0],s=a[1];if(t===s)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Kh(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Kh(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Kh(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Kh(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,s={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,s=1;s<t;s++)a.push(new e({h:(r+s*o)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function us(e,t=20){return e.mix("#141414",t).toString()}function pW(e){const t=Ca(),n=Je("button");return N(()=>{let r={};const a=e.color;if(a){const o=new LM(a),s=e.dark?o.tint(20).toString():us(o,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?us(o,90):o.tint(90).toString(),"text-color":a,"border-color":e.dark?us(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?us(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?us(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?us(o,80):o.tint(80).toString());else{const l=e.dark?us(o,30):o.tint(30).toString(),u=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":u,"border-color":a,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),t.value){const c=e.dark?us(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const vW=he({name:"ElButton"}),mW=he({...vW,props:S2,emits:tW,setup(e,{expose:t,emit:n}){const r=e,a=pW(r),o=Je("button"),{_ref:s,_size:l,_type:u,_disabled:c,_props:f,shouldAddSpace:d,handleClick:p}=ZK(r,n),g=N(()=>[o.b(),o.m(u.value),o.m(l.value),o.is("disabled",c.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return t({ref:s,size:l,type:u,disabled:c,shouldAddSpace:d}),(y,m)=>(V(),Fe(Zt(y.tag),rn({ref_key:"_ref",ref:s},h(f),{class:h(g),style:h(a),onClick:h(p)}),{default:Ce(()=>[y.loading?(V(),ie(mt,{key:0},[y.$slots.loading?Ue(y.$slots,"loading",{key:0}):(V(),Fe(h(ht),{key:1,class:K(h(o).is("loading"))},{default:Ce(()=>[(V(),Fe(Zt(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(V(),Fe(h(ht),{key:1},{default:Ce(()=>[y.icon?(V(),Fe(Zt(y.icon),{key:0})):Ue(y.$slots,"icon",{key:1})]),_:3})):Ie("v-if",!0),y.$slots.default?(V(),ie("span",{key:2,class:K({[h(o).em("text","expand")]:h(d)})},[Ue(y.$slots,"default")],2)):Ie("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var gW=at(mW,[["__file","button.vue"]]);const yW={size:S2.size,type:S2.type},bW=he({name:"ElButtonGroup"}),_W=he({...bW,props:yW,setup(e){const t=e;nn(RM,Sn({size:On(t,"size"),type:On(t,"type")}));const n=Je("button");return(r,a)=>(V(),ie("div",{class:K(`${h(n).b("group")}`)},[Ue(r.$slots,"default")],2))}});var NM=at(_W,[["__file","button-group.vue"]]);const Hr=jt(gW,{ButtonGroup:NM}),DM=Yn(NM);var ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",l="minute",u="hour",c="day",f="week",d="month",p="quarter",g="year",y="date",m="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(se){var ne=["th","st","nd","rd"],J=se%100;return"["+se+(ne[(J-20)%10]||ne[J]||ne[0])+"]"}},A=function(se,ne,J){var X=String(se);return!X||X.length>=ne?se:""+Array(ne+1-X.length).join(J)+se},$={s:A,z:function(se){var ne=-se.utcOffset(),J=Math.abs(ne),X=Math.floor(J/60),te=J%60;return(ne<=0?"+":"-")+A(X,2,"0")+":"+A(te,2,"0")},m:function se(ne,J){if(ne.date()<J.date())return-se(J,ne);var X=12*(J.year()-ne.year())+(J.month()-ne.month()),te=ne.clone().add(X,d),Y=J-te<0,Z=ne.clone().add(X+(Y?-1:1),d);return+(-(X+(J-te)/(Y?te-Z:Z-te))||0)},a:function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},p:function(se){return{M:d,y:g,w:f,d:c,D:y,h:u,m:l,s,ms:o,Q:p}[se]||String(se||"").toLowerCase().replace(/s$/,"")},u:function(se){return se===void 0}},k="en",L={};L[k]=P;var B="$isDayjsObject",H=function(se){return se instanceof Q||!(!se||!se[B])},G=function se(ne,J,X){var te;if(!ne)return k;if(typeof ne=="string"){var Y=ne.toLowerCase();L[Y]&&(te=Y),J&&(L[Y]=J,te=Y);var Z=ne.split("-");if(!te&&Z.length>1)return se(Z[0])}else{var ae=ne.name;L[ae]=ne,te=ae}return!X&&te&&(k=te),te||!X&&k},j=function(se,ne){if(H(se))return se.clone();var J=typeof ne=="object"?ne:{};return J.date=se,J.args=arguments,new Q(J)},W=$;W.l=G,W.i=H,W.w=function(se,ne){return j(se,{locale:ne.$L,utc:ne.$u,x:ne.$x,$offset:ne.$offset})};var Q=function(){function se(J){this.$L=G(J.locale,null,!0),this.parse(J),this.$x=this.$x||J.x||{},this[B]=!0}var ne=se.prototype;return ne.parse=function(J){this.$d=function(X){var te=X.date,Y=X.utc;if(te===null)return new Date(NaN);if(W.u(te))return new Date;if(te instanceof Date)return new Date(te);if(typeof te=="string"&&!/Z$/i.test(te)){var Z=te.match(S);if(Z){var ae=Z[2]-1||0,ve=(Z[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Z[1],ae,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ve)):new Date(Z[1],ae,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ve)}}return new Date(te)}(J),this.init()},ne.init=function(){var J=this.$d;this.$y=J.getFullYear(),this.$M=J.getMonth(),this.$D=J.getDate(),this.$W=J.getDay(),this.$H=J.getHours(),this.$m=J.getMinutes(),this.$s=J.getSeconds(),this.$ms=J.getMilliseconds()},ne.$utils=function(){return W},ne.isValid=function(){return this.$d.toString()!==m},ne.isSame=function(J,X){var te=j(J);return this.startOf(X)<=te&&te<=this.endOf(X)},ne.isAfter=function(J,X){return j(J)<this.startOf(X)},ne.isBefore=function(J,X){return this.endOf(X)<j(J)},ne.$g=function(J,X,te){return W.u(J)?this[X]:this.set(te,J)},ne.unix=function(){return Math.floor(this.valueOf()/1e3)},ne.valueOf=function(){return this.$d.getTime()},ne.startOf=function(J,X){var te=this,Y=!!W.u(X)||X,Z=W.p(J),ae=function(He,Ae){var ke=W.w(te.$u?Date.UTC(te.$y,Ae,He):new Date(te.$y,Ae,He),te);return Y?ke:ke.endOf(c)},ve=function(He,Ae){return W.w(te.toDate()[He].apply(te.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(Ae)),te)},we=this.$W,Me=this.$M,Ge=this.$D,Ee="set"+(this.$u?"UTC":"");switch(Z){case g:return Y?ae(1,0):ae(31,11);case d:return Y?ae(1,Me):ae(0,Me+1);case f:var pe=this.$locale().weekStart||0,_e=(we<pe?we+7:we)-pe;return ae(Y?Ge-_e:Ge+(6-_e),Me);case c:case y:return ve(Ee+"Hours",0);case u:return ve(Ee+"Minutes",1);case l:return ve(Ee+"Seconds",2);case s:return ve(Ee+"Milliseconds",3);default:return this.clone()}},ne.endOf=function(J){return this.startOf(J,!1)},ne.$set=function(J,X){var te,Y=W.p(J),Z="set"+(this.$u?"UTC":""),ae=(te={},te[c]=Z+"Date",te[y]=Z+"Date",te[d]=Z+"Month",te[g]=Z+"FullYear",te[u]=Z+"Hours",te[l]=Z+"Minutes",te[s]=Z+"Seconds",te[o]=Z+"Milliseconds",te)[Y],ve=Y===c?this.$D+(X-this.$W):X;if(Y===d||Y===g){var we=this.clone().set(y,1);we.$d[ae](ve),we.init(),this.$d=we.set(y,Math.min(this.$D,we.daysInMonth())).$d}else ae&&this.$d[ae](ve);return this.init(),this},ne.set=function(J,X){return this.clone().$set(J,X)},ne.get=function(J){return this[W.p(J)]()},ne.add=function(J,X){var te,Y=this;J=Number(J);var Z=W.p(X),ae=function(Me){var Ge=j(Y);return W.w(Ge.date(Ge.date()+Math.round(Me*J)),Y)};if(Z===d)return this.set(d,this.$M+J);if(Z===g)return this.set(g,this.$y+J);if(Z===c)return ae(1);if(Z===f)return ae(7);var ve=(te={},te[l]=r,te[u]=a,te[s]=n,te)[Z]||1,we=this.$d.getTime()+J*ve;return W.w(we,this)},ne.subtract=function(J,X){return this.add(-1*J,X)},ne.format=function(J){var X=this,te=this.$locale();if(!this.isValid())return te.invalidDate||m;var Y=J||"YYYY-MM-DDTHH:mm:ssZ",Z=W.z(this),ae=this.$H,ve=this.$m,we=this.$M,Me=te.weekdays,Ge=te.months,Ee=te.meridiem,pe=function(Ae,ke,ze,ce){return Ae&&(Ae[ke]||Ae(X,Y))||ze[ke].slice(0,ce)},_e=function(Ae){return W.s(ae%12||12,Ae,"0")},He=Ee||function(Ae,ke,ze){var ce=Ae<12?"AM":"PM";return ze?ce.toLowerCase():ce};return Y.replace(_,function(Ae,ke){return ke||function(ze){switch(ze){case"YY":return String(X.$y).slice(-2);case"YYYY":return W.s(X.$y,4,"0");case"M":return we+1;case"MM":return W.s(we+1,2,"0");case"MMM":return pe(te.monthsShort,we,Ge,3);case"MMMM":return pe(Ge,we);case"D":return X.$D;case"DD":return W.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return pe(te.weekdaysMin,X.$W,Me,2);case"ddd":return pe(te.weekdaysShort,X.$W,Me,3);case"dddd":return Me[X.$W];case"H":return String(ae);case"HH":return W.s(ae,2,"0");case"h":return _e(1);case"hh":return _e(2);case"a":return He(ae,ve,!0);case"A":return He(ae,ve,!1);case"m":return String(ve);case"mm":return W.s(ve,2,"0");case"s":return String(X.$s);case"ss":return W.s(X.$s,2,"0");case"SSS":return W.s(X.$ms,3,"0");case"Z":return Z}return null}(Ae)||Z.replace(":","")})},ne.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ne.diff=function(J,X,te){var Y,Z=this,ae=W.p(X),ve=j(J),we=(ve.utcOffset()-this.utcOffset())*r,Me=this-ve,Ge=function(){return W.m(Z,ve)};switch(ae){case g:Y=Ge()/12;break;case d:Y=Ge();break;case p:Y=Ge()/3;break;case f:Y=(Me-we)/6048e5;break;case c:Y=(Me-we)/864e5;break;case u:Y=Me/a;break;case l:Y=Me/r;break;case s:Y=Me/n;break;default:Y=Me}return te?Y:W.a(Y)},ne.daysInMonth=function(){return this.endOf(d).$D},ne.$locale=function(){return L[this.$L]},ne.locale=function(J,X){if(!J)return this.$L;var te=this.clone(),Y=G(J,X,!0);return Y&&(te.$L=Y),te},ne.clone=function(){return W.w(this.$d,this)},ne.toDate=function(){return new Date(this.valueOf())},ne.toJSON=function(){return this.isValid()?this.toISOString():null},ne.toISOString=function(){return this.$d.toISOString()},ne.toString=function(){return this.$d.toUTCString()},se}(),ue=Q.prototype;return j.prototype=ue,[["$ms",o],["$s",s],["$m",l],["$H",u],["$W",c],["$M",d],["$y",g],["$D",y]].forEach(function(se){ue[se[1]]=function(ne){return this.$g(ne,se[0],se[1])}}),j.extend=function(se,ne){return se.$i||(se(ne,Q,j),se.$i=!0),j},j.locale=G,j.isDayjs=H,j.unix=function(se){return j(1e3*se)},j.en=L[k],j.Ls=L,j.p={},j})})(FM);var wW=FM.exports;const zt=rs(wW);var BM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(S){this[m]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var _=S.match(/([+-]|\d\d)/g),P=60*_[1]+(+_[2]||0);return P===0?0:_[0]==="+"?-P:P}(m)}],d=function(m){var S=l[m];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(m,S){var _,P=l.meridiem;if(P){for(var A=1;A<=24;A+=1)if(m.indexOf(P(A,0,S))>-1){_=A>12;break}}else _=m===(S?"pm":"PM");return _},g={A:[s,function(m){this.afternoon=p(m,!1)}],a:[s,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[a,c("day")],Do:[s,function(m){var S=l.ordinal,_=m.match(/\d+/);if(this.day=_[0],S)for(var P=1;P<=31;P+=1)S(P).replace(/\[|\]/g,"")===m&&(this.day=P)}],M:[o,c("month")],MM:[a,c("month")],MMM:[s,function(m){var S=d("months"),_=(d("monthsShort")||S.map(function(P){return P.slice(0,3)})).indexOf(m)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[s,function(m){var S=d("months").indexOf(m)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(m){this.year=u(m)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function y(m){var S,_;S=m,_=l&&l.formats;for(var P=(m=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(G,j,W){var Q=W&&W.toUpperCase();return j||_[W]||n[W]||_[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(ue,se,ne){return se||ne.slice(1)})})).match(r),A=P.length,$=0;$<A;$+=1){var k=P[$],L=g[k],B=L&&L[0],H=L&&L[1];P[$]=H?{regex:B,parser:H}:k.replace(/^\[|\]$/g,"")}return function(G){for(var j={},W=0,Q=0;W<A;W+=1){var ue=P[W];if(typeof ue=="string")Q+=ue.length;else{var se=ue.regex,ne=ue.parser,J=G.slice(Q),X=se.exec(J)[0];ne.call(j,X),G=G.replace(X,"")}}return function(te){var Y=te.afternoon;if(Y!==void 0){var Z=te.hours;Y?Z<12&&(te.hours+=12):Z===12&&(te.hours=0),delete te.afternoon}}(j),j}}return function(m,S,_){_.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var P=S.prototype,A=P.parse;P.parse=function($){var k=$.date,L=$.utc,B=$.args;this.$u=L;var H=B[1];if(typeof H=="string"){var G=B[2]===!0,j=B[3]===!0,W=G||j,Q=B[2];j&&(Q=B[2]),l=this.$locale(),!G&&Q&&(l=_.Ls[Q]),this.$d=function(J,X,te){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*J);var Y=y(X)(J),Z=Y.year,ae=Y.month,ve=Y.day,we=Y.hours,Me=Y.minutes,Ge=Y.seconds,Ee=Y.milliseconds,pe=Y.zone,_e=new Date,He=ve||(Z||ae?1:_e.getDate()),Ae=Z||_e.getFullYear(),ke=0;Z&&!ae||(ke=ae>0?ae-1:_e.getMonth());var ze=we||0,ce=Me||0,me=Ge||0,Be=Ee||0;return pe?new Date(Date.UTC(Ae,ke,He,ze,ce,me,Be+60*pe.offset*1e3)):te?new Date(Date.UTC(Ae,ke,He,ze,ce,me,Be)):new Date(Ae,ke,He,ze,ce,me,Be)}catch{return new Date("")}}(k,H,L),this.init(),Q&&Q!==!0&&(this.$L=this.locale(Q).$L),W&&k!=this.format(H)&&(this.$d=new Date("")),l={}}else if(H instanceof Array)for(var ue=H.length,se=1;se<=ue;se+=1){B[1]=H[se-1];var ne=_.apply(this,B);if(ne.isValid()){this.$d=ne.$d,this.$L=ne.$L,this.init();break}se===ue&&(this.$d=new Date(""))}else A.call(this,$)}}})})(BM);var SW=BM.exports;const X_=rs(SW),ZE=["hours","minutes","seconds"],E2="HH:mm:ss",Ru="YYYY-MM-DD",TW={date:Ru,dates:Ru,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",datetime:`${Ru} ${E2}`,monthrange:"YYYY-MM",daterange:Ru,datetimerange:`${Ru} ${E2}`},Lm=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Rs=e=>Array.from(Array.from({length:e}).keys()),HM=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),UM=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),eC=function(e,t){const n=Yl(e),r=Yl(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},tC=function(e,t){const n=st(e),r=st(t);return n&&r?e.length!==t.length?!1:e.every((a,o)=>eC(a,t[o])):!n&&!r?eC(e,t):!1},nC=function(e,t,n){const r=so(t)||t==="x"?zt(e).locale(n):zt(e,t).locale(n);return r.isValid()?r:void 0},rC=function(e,t,n){return so(t)?e:t==="x"?+e:zt(e).locale(n).format(t)},Nm=(e,t)=>{var n;const r=[],a=t==null?void 0:t();for(let o=0;o<e;o++)r.push((n=a==null?void 0:a.includes(o))!=null?n:!1);return r},VM=tt({disabledHours:{type:xe(Function)},disabledMinutes:{type:xe(Function)},disabledSeconds:{type:xe(Function)}}),GM=tt({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Y_=tt({id:{type:xe([Array,String])},name:{type:xe([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:xe([String,Object]),default:tl},editable:{type:Boolean,default:!0},prefixIcon:{type:xe([String,Object]),default:""},size:Rr,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:xe(Object),default:()=>({})},modelValue:{type:xe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:xe([Date,Array])},defaultTime:{type:xe([Date,Array])},isRange:Boolean,...VM,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,label:{type:String,default:void 0},tabindex:{type:xe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,...Gc,...Xr(["ariaLabel"])}),EW=["id","name","placeholder","value","disabled","readonly"],CW=["id","name","placeholder","value","disabled","readonly"],xW=he({name:"Picker"}),IW=he({...xW,props:Y_,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=lu(),{lang:o}=hn(),s=Je("date"),l=Je("input"),u=Je("range"),{form:c,formItem:f}=va(),d=dt("ElPopperOptions",{}),{valueOnClear:p}=Pv(r,null),g=ee(),y=ee(),m=ee(!1),S=ee(!1),_=ee(null);let P=!1,A=!1;const $=N(()=>[s.b("editor"),s.bm("editor",r.type),l.e("wrapper"),s.is("disabled",we.value),s.is("active",m.value),u.b("editor"),qe?u.bm("editor",qe.value):"",a.class]),k=N(()=>[l.e("icon"),u.e("close-icon"),ke.value?"":u.e("close-icon--hidden")]);We(m,Pe=>{Pe?bt(()=>{Pe&&(_.value=r.modelValue)}):(je.value=null,bt(()=>{L(r.modelValue)}))});const L=(Pe,rt)=>{(rt||!tC(Pe,_.value))&&(n("change",Pe),r.validateEvent&&(f==null||f.validate("change").catch(kt=>void 0)))},B=Pe=>{if(!tC(r.modelValue,Pe)){let rt;st(Pe)?rt=Pe.map(kt=>rC(kt,r.valueFormat,o.value)):Pe&&(rt=rC(Pe,r.valueFormat,o.value)),n("update:modelValue",Pe&&rt,o.value)}},H=Pe=>{n("keydown",Pe)},G=N(()=>{if(y.value){const Pe=Ye.value?y.value:y.value.$el;return Array.from(Pe.querySelectorAll("input"))}return[]}),j=(Pe,rt,kt)=>{const Jt=G.value;Jt.length&&(!kt||kt==="min"?(Jt[0].setSelectionRange(Pe,rt),Jt[0].focus()):kt==="max"&&(Jt[1].setSelectionRange(Pe,rt),Jt[1].focus()))},W=()=>{Y(!0,!0),bt(()=>{A=!1})},Q=(Pe="",rt=!1)=>{rt||(A=!0),m.value=rt;let kt;st(Pe)?kt=Pe.map(Jt=>Jt.toDate()):kt=Pe&&Pe.toDate(),je.value=null,B(kt)},ue=()=>{S.value=!0},se=()=>{n("visible-change",!0)},ne=Pe=>{(Pe==null?void 0:Pe.key)===St.esc&&Y(!0,!0)},J=()=>{S.value=!1,m.value=!1,A=!1,n("visible-change",!1)},X=()=>{m.value=!0},te=()=>{m.value=!1},Y=(Pe=!0,rt=!1)=>{A=rt;const[kt,Jt]=h(G);let tn=kt;!Pe&&Ye.value&&(tn=Jt),tn&&tn.focus()},Z=Pe=>{r.readonly||we.value||m.value||A||(m.value=!0,n("focus",Pe))};let ae;const ve=Pe=>{const rt=async()=>{setTimeout(()=>{var kt;ae===rt&&(!((kt=g.value)!=null&&kt.isFocusInsideContent()&&!P)&&G.value.filter(Jt=>Jt.contains(document.activeElement)).length===0&&(lt(),m.value=!1,n("blur",Pe),r.validateEvent&&(f==null||f.validate("blur").catch(Jt=>void 0))),P=!1)},0)};ae=rt,rt()},we=N(()=>r.disabled||(c==null?void 0:c.disabled)),Me=N(()=>{let Pe;if(ce.value?$e.value.getDefaultValue&&(Pe=$e.value.getDefaultValue()):st(r.modelValue)?Pe=r.modelValue.map(rt=>nC(rt,r.valueFormat,o.value)):Pe=nC(r.modelValue,r.valueFormat,o.value),$e.value.getRangeAvailableTime){const rt=$e.value.getRangeAvailableTime(Pe);ca(rt,Pe)||(Pe=rt,B(st(Pe)?Pe.map(kt=>kt.toDate()):Pe.toDate()))}return st(Pe)&&Pe.some(rt=>!rt)&&(Pe=[]),Pe}),Ge=N(()=>{if(!$e.value.panelReady)return"";const Pe=Ke(Me.value);return st(je.value)?[je.value[0]||Pe&&Pe[0]||"",je.value[1]||Pe&&Pe[1]||""]:je.value!==null?je.value:!pe.value&&ce.value||!m.value&&ce.value?"":Pe?_e.value||He.value?Pe.join(", "):Pe:""}),Ee=N(()=>r.type.includes("time")),pe=N(()=>r.type.startsWith("time")),_e=N(()=>r.type==="dates"),He=N(()=>r.type==="years"),Ae=N(()=>r.prefixIcon||(Ee.value?AP:s7)),ke=ee(!1),ze=Pe=>{r.readonly||we.value||ke.value&&(Pe.stopPropagation(),W(),B(p.value),L(p.value,!0),ke.value=!1,m.value=!1,$e.value.handleClear&&$e.value.handleClear())},ce=N(()=>{const{modelValue:Pe}=r;return!Pe||st(Pe)&&!Pe.filter(Boolean).length}),me=async Pe=>{var rt;r.readonly||we.value||(((rt=Pe.target)==null?void 0:rt.tagName)!=="INPUT"||G.value.includes(document.activeElement))&&(m.value=!0)},Be=()=>{r.readonly||we.value||!ce.value&&r.clearable&&(ke.value=!0)},be=()=>{ke.value=!1},Oe=Pe=>{var rt;r.readonly||we.value||(((rt=Pe.touches[0].target)==null?void 0:rt.tagName)!=="INPUT"||G.value.includes(document.activeElement))&&(m.value=!0)},Ye=N(()=>r.type.includes("range")),qe=yr(),Qe=N(()=>{var Pe,rt;return(rt=(Pe=h(g))==null?void 0:Pe.popperRef)==null?void 0:rt.contentRef}),et=N(()=>{var Pe;return h(Ye)?h(y):(Pe=h(y))==null?void 0:Pe.$el});Xb(et,Pe=>{const rt=h(Qe),kt=h(et);rt&&(Pe.target===rt||Pe.composedPath().includes(rt))||Pe.target===kt||Pe.composedPath().includes(kt)||(m.value=!1)});const je=ee(null),lt=()=>{if(je.value){const Pe=ut(Ge.value);Pe&&ct(Pe)&&(B(st(Pe)?Pe.map(rt=>rt.toDate()):Pe.toDate()),je.value=null)}je.value===""&&(B(p.value),L(p.value),je.value=null)},ut=Pe=>Pe?$e.value.parseUserInput(Pe):null,Ke=Pe=>Pe?$e.value.formatToString(Pe):null,ct=Pe=>$e.value.isValidValue(Pe),Et=async Pe=>{if(r.readonly||we.value)return;const{code:rt}=Pe;if(H(Pe),rt===St.esc){m.value===!0&&(m.value=!1,Pe.preventDefault(),Pe.stopPropagation());return}if(rt===St.down&&($e.value.handleFocusPicker&&(Pe.preventDefault(),Pe.stopPropagation()),m.value===!1&&(m.value=!0,await bt()),$e.value.handleFocusPicker)){$e.value.handleFocusPicker();return}if(rt===St.tab){P=!0;return}if(rt===St.enter||rt===St.numpadEnter){(je.value===null||je.value===""||ct(ut(Ge.value)))&&(lt(),m.value=!1),Pe.stopPropagation();return}if(je.value){Pe.stopPropagation();return}$e.value.handleKeydownInput&&$e.value.handleKeydownInput(Pe)},Ut=Pe=>{je.value=Pe,m.value||(m.value=!0)},en=Pe=>{const rt=Pe.target;je.value?je.value=[rt.value,je.value[1]]:je.value=[rt.value,null]},gt=Pe=>{const rt=Pe.target;je.value?je.value=[je.value[0],rt.value]:je.value=[null,rt.value]},ge=()=>{var Pe;const rt=je.value,kt=ut(rt&&rt[0]),Jt=h(Me);if(kt&&kt.isValid()){je.value=[Ke(kt),((Pe=Ge.value)==null?void 0:Pe[1])||null];const tn=[kt,Jt&&(Jt[1]||null)];ct(tn)&&(B(tn),je.value=null)}},Ne=()=>{var Pe;const rt=h(je),kt=ut(rt&&rt[1]),Jt=h(Me);if(kt&&kt.isValid()){je.value=[((Pe=h(Ge))==null?void 0:Pe[0])||null,Ke(kt)];const tn=[Jt&&Jt[0],kt];ct(tn)&&(B(tn),je.value=null)}},$e=ee({}),Te=Pe=>{$e.value[Pe[0]]=Pe[1],$e.value.panelReady=!0},De=Pe=>{n("calendar-change",Pe)},it=(Pe,rt,kt)=>{n("panel-change",Pe,rt,kt)};return nn("EP_PICKER_BASE",{props:r}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-time-picker",ref:"https://element-plus.org/en-US/component/time-picker.html"},N(()=>!!r.label)),t({focus:Y,handleFocusInput:Z,handleBlurInput:ve,handleOpen:X,handleClose:te,onPick:Q}),(Pe,rt)=>(V(),Fe(h(fa),rn({ref_key:"refPopper",ref:g,visible:m.value,effect:"light",pure:"",trigger:"click"},Pe.$attrs,{role:"dialog",teleported:"",transition:`${h(s).namespace.value}-zoom-in-top`,"popper-class":[`${h(s).namespace.value}-picker__popper`,Pe.popperClass],"popper-options":h(d),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:ue,onShow:se,onHide:J}),{default:Ce(()=>[h(Ye)?(V(),ie("div",{key:1,ref_key:"inputRef",ref:y,class:K(h($)),style:vt(Pe.$attrs.style),onClick:Z,onMouseenter:Be,onMouseleave:be,onTouchstartPassive:Oe,onKeydown:Et},[h(Ae)?(V(),Fe(h(ht),{key:0,class:K([h(l).e("icon"),h(u).e("icon")]),onMousedown:Ot(me,["prevent"]),onTouchstartPassive:Oe},{default:Ce(()=>[(V(),Fe(Zt(h(Ae))))]),_:1},8,["class","onMousedown"])):Ie("v-if",!0),de("input",{id:Pe.id&&Pe.id[0],autocomplete:"off",name:Pe.name&&Pe.name[0],placeholder:Pe.startPlaceholder,value:h(Ge)&&h(Ge)[0],disabled:h(we),readonly:!Pe.editable||Pe.readonly,class:K(h(u).b("input")),onMousedown:me,onInput:en,onChange:ge,onFocus:Z,onBlur:ve},null,42,EW),Ue(Pe.$slots,"range-separator",{},()=>[de("span",{class:K(h(u).b("separator"))},ot(Pe.rangeSeparator),3)]),de("input",{id:Pe.id&&Pe.id[1],autocomplete:"off",name:Pe.name&&Pe.name[1],placeholder:Pe.endPlaceholder,value:h(Ge)&&h(Ge)[1],disabled:h(we),readonly:!Pe.editable||Pe.readonly,class:K(h(u).b("input")),onMousedown:me,onFocus:Z,onBlur:ve,onInput:gt,onChange:Ne},null,42,CW),Pe.clearIcon?(V(),Fe(h(ht),{key:1,class:K(h(k)),onClick:ze},{default:Ce(()=>[(V(),Fe(Zt(Pe.clearIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],38)):(V(),Fe(h(ua),{key:0,id:Pe.id,ref_key:"inputRef",ref:y,"container-role":"combobox","model-value":h(Ge),name:Pe.name,size:h(qe),disabled:h(we),placeholder:Pe.placeholder,class:K([h(s).b("editor"),h(s).bm("editor",Pe.type),Pe.$attrs.class]),style:vt(Pe.$attrs.style),readonly:!Pe.editable||Pe.readonly||h(_e)||h(He)||Pe.type==="week","aria-label":Pe.label||Pe.ariaLabel,tabindex:Pe.tabindex,"validate-event":!1,onInput:Ut,onFocus:Z,onBlur:ve,onKeydown:Et,onChange:lt,onMousedown:me,onMouseenter:Be,onMouseleave:be,onTouchstartPassive:Oe,onClick:rt[0]||(rt[0]=Ot(()=>{},["stop"]))},{prefix:Ce(()=>[h(Ae)?(V(),Fe(h(ht),{key:0,class:K(h(l).e("icon")),onMousedown:Ot(me,["prevent"]),onTouchstartPassive:Oe},{default:Ce(()=>[(V(),Fe(Zt(h(Ae))))]),_:1},8,["class","onMousedown"])):Ie("v-if",!0)]),suffix:Ce(()=>[ke.value&&Pe.clearIcon?(V(),Fe(h(ht),{key:0,class:K(`${h(l).e("icon")} clear-icon`),onClick:Ot(ze,["stop"])},{default:Ce(()=>[(V(),Fe(Zt(Pe.clearIcon)))]),_:1},8,["class","onClick"])):Ie("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown"]))]),content:Ce(()=>[Ue(Pe.$slots,"default",{visible:m.value,actualVisible:S.value,parsedValue:h(Me),format:Pe.format,dateFormat:Pe.dateFormat,timeFormat:Pe.timeFormat,unlinkPanels:Pe.unlinkPanels,type:Pe.type,defaultValue:Pe.defaultValue,onPick:Q,onSelectRange:j,onSetPickerOption:Te,onCalendarChange:De,onPanelChange:it,onKeydown:ne,onMousedown:rt[1]||(rt[1]=Ot(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var jM=at(IW,[["__file","picker.vue"]]);const AW=tt({...GM,datetimeRole:String,parsedValue:{type:xe(Object)}}),zM=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(s,l,u,c)=>{const f={hour:e,minute:t,second:n};let d=s;return["hour","minute","second"].forEach(p=>{if(f[p]){let g;const y=f[p];switch(p){case"minute":{g=y(d.hour(),l,c);break}case"second":{g=y(d.hour(),d.minute(),l,c);break}default:{g=y(l,c);break}}if(g!=null&&g.length&&!g.includes(d[p]())){const m=u?0:g.length-1;d=d[p](g[m])}}}),d},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([s,l])=>{a[s]=l}}},Dm=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},KM=(e,t,n)=>({getHoursList:(s,l)=>Nm(24,e&&(()=>e==null?void 0:e(s,l))),getMinutesList:(s,l,u)=>Nm(60,t&&(()=>t==null?void 0:t(s,l,u))),getSecondsList:(s,l,u,c)=>Nm(60,n&&(()=>n==null?void 0:n(s,l,u,c)))}),WM=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:o}=KM(e,t,n);return{getAvailableHours:(c,f)=>Dm(r(c,f)),getAvailableMinutes:(c,f,d)=>Dm(a(c,f,d)),getAvailableSeconds:(c,f,d,p)=>Dm(o(c,f,d,p))}},XM=e=>{const t=ee(e.parsedValue);return We(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},ps=new Map;let aC;ln&&(document.addEventListener("mousedown",e=>aC=e),document.addEventListener("mouseup",e=>{for(const t of ps.values())for(const{documentHandler:n}of t)n(e,aC)}));function oC(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:bo(t.arg)&&n.push(t.arg),function(r,a){const o=t.instance.popperRef,s=r.target,l=a==null?void 0:a.target,u=!t||!t.instance,c=!s||!l,f=e.contains(s)||e.contains(l),d=e===s,p=n.length&&n.some(y=>y==null?void 0:y.contains(s))||n.length&&n.includes(l),g=o&&(o.contains(s)||o.contains(l));u||c||f||d||p||g||t.value(r,a)}}const Ki={beforeMount(e,t){ps.has(e)||ps.set(e,[]),ps.get(e).push({documentHandler:oC(e,t),bindingFn:t.value})},updated(e,t){ps.has(e)||ps.set(e,[]);const n=ps.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),a={documentHandler:oC(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){ps.delete(e)}},PW=100,MW=600,P0={beforeMount(e,t){const n=t.value,{interval:r=PW,delay:a=MW}=Pt(n)?{}:n;let o,s;const l=()=>Pt(n)?n():n.handler(),u=()=>{s&&(clearTimeout(s),s=void 0),o&&(clearInterval(o),o=void 0)};e.addEventListener("mousedown",c=>{c.button===0&&(u(),l(),document.addEventListener("mouseup",()=>u(),{once:!0}),s=setTimeout(()=>{o=setInterval(()=>{l()},r)},a))})}},C2="_trap-focus-children",kl=[],iC=e=>{if(kl.length===0)return;const t=kl[kl.length-1][C2];if(t.length>0&&e.code===St.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},OW={beforeMount(e){e[C2]=vT(e),kl.push(e),kl.length<=1&&document.addEventListener("keydown",iC)},updated(e){bt(()=>{e[C2]=vT(e)})},unmounted(){kl.shift(),kl.length===0&&document.removeEventListener("keydown",iC)}};var sC=!1,Al,x2,I2,Dp,Fp,YM,Bp,A2,P2,M2,JM,O2,$2,qM,QM;function Ma(){if(!sC){sC=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(O2=/\b(iPhone|iP[ao]d)/.exec(e),$2=/\b(iP[ao]d)/.exec(e),M2=/Android/i.exec(e),qM=/FBAN\/\w+;/i.exec(e),QM=/Mobile/i.exec(e),JM=!!/Win64/.exec(e),t){Al=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Al&&document&&document.documentMode&&(Al=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);YM=r?parseFloat(r[1])+4:Al,x2=t[2]?parseFloat(t[2]):NaN,I2=t[3]?parseFloat(t[3]):NaN,Dp=t[4]?parseFloat(t[4]):NaN,Dp?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Fp=t&&t[1]?parseFloat(t[1]):NaN):Fp=NaN}else Al=x2=I2=Fp=Dp=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Bp=a?parseFloat(a[1].replace("_",".")):!0}else Bp=!1;A2=!!n[2],P2=!!n[3]}else Bp=A2=P2=!1}}var R2={ie:function(){return Ma()||Al},ieCompatibilityMode:function(){return Ma()||YM>Al},ie64:function(){return R2.ie()&&JM},firefox:function(){return Ma()||x2},opera:function(){return Ma()||I2},webkit:function(){return Ma()||Dp},safari:function(){return R2.webkit()},chrome:function(){return Ma()||Fp},windows:function(){return Ma()||A2},osx:function(){return Ma()||Bp},linux:function(){return Ma()||P2},iphone:function(){return Ma()||O2},mobile:function(){return Ma()||O2||$2||M2||QM},nativeApp:function(){return Ma()||qM},android:function(){return Ma()||M2},ipad:function(){return Ma()||$2}},$W=R2,Xh=!!(typeof window<"u"&&window.document&&window.document.createElement),RW={canUseDOM:Xh,canUseWorkers:typeof Worker<"u",canUseEventListeners:Xh&&!!(window.addEventListener||window.attachEvent),canUseViewport:Xh&&!!window.screen,isInWorker:!Xh},ZM=RW,eO;ZM.canUseDOM&&(eO=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function kW(e,t){if(!ZM.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&eO&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var LW=kW,lC=10,uC=40,cC=800;function tO(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*lC,a=n*lC,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=uC,a*=uC):(r*=cC,a*=cC)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}tO.getEventType=function(){return $W.firefox()?"DOMMouseScroll":LW("wheel")?"wheel":"mousewheel"};var NW=tO;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const DW=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=NW(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},FW={beforeMount(e,t){DW(e,t.value)}},BW=tt({role:{type:String,required:!0},spinnerDate:{type:xe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:xe(String),default:""},...VM}),HW=["onClick"],UW=["onMouseenter"],VW=he({__name:"basic-time-spinner",props:BW,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Je("time"),{getHoursList:a,getMinutesList:o,getSecondsList:s}=KM(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let l=!1;const u=ee(),c=ee(),f=ee(),d=ee(),p={hours:c,minutes:f,seconds:d},g=N(()=>n.showSeconds?ZE:ZE.slice(0,2)),y=N(()=>{const{spinnerDate:Y}=n,Z=Y.hour(),ae=Y.minute(),ve=Y.second();return{hours:Z,minutes:ae,seconds:ve}}),m=N(()=>{const{hours:Y,minutes:Z}=h(y);return{hours:a(n.role),minutes:o(Y,n.role),seconds:s(Y,Z,n.role)}}),S=N(()=>{const{hours:Y,minutes:Z,seconds:ae}=h(y);return{hours:Lm(Y,23),minutes:Lm(Z,59),seconds:Lm(ae,59)}}),_=Ha(Y=>{l=!1,$(Y)},200),P=Y=>{if(!!!n.amPmMode)return"";const ae=n.amPmMode==="A";let ve=Y<12?" am":" pm";return ae&&(ve=ve.toUpperCase()),ve},A=Y=>{let Z;switch(Y){case"hours":Z=[0,2];break;case"minutes":Z=[3,5];break;case"seconds":Z=[6,8];break}const[ae,ve]=Z;t("select-range",ae,ve),u.value=Y},$=Y=>{B(Y,h(y)[Y])},k=()=>{$("hours"),$("minutes"),$("seconds")},L=Y=>Y.querySelector(`.${r.namespace.value}-scrollbar__wrap`),B=(Y,Z)=>{if(n.arrowControl)return;const ae=h(p[Y]);ae&&ae.$el&&(L(ae.$el).scrollTop=Math.max(0,Z*H(Y)))},H=Y=>{const Z=h(p[Y]),ae=Z==null?void 0:Z.$el.querySelector("li");return ae&&Number.parseFloat(Es(ae,"height"))||0},G=()=>{W(1)},j=()=>{W(-1)},W=Y=>{u.value||A("hours");const Z=u.value,ae=h(y)[Z],ve=u.value==="hours"?24:60,we=Q(Z,ae,Y,ve);ue(Z,we),B(Z,we),bt(()=>A(Z))},Q=(Y,Z,ae,ve)=>{let we=(Z+ae+ve)%ve;const Me=h(m)[Y];for(;Me[we]&&we!==Z;)we=(we+ae+ve)%ve;return we},ue=(Y,Z)=>{if(h(m)[Y][Z])return;const{hours:we,minutes:Me,seconds:Ge}=h(y);let Ee;switch(Y){case"hours":Ee=n.spinnerDate.hour(Z).minute(Me).second(Ge);break;case"minutes":Ee=n.spinnerDate.hour(we).minute(Z).second(Ge);break;case"seconds":Ee=n.spinnerDate.hour(we).minute(Me).second(Z);break}t("change",Ee)},se=(Y,{value:Z,disabled:ae})=>{ae||(ue(Y,Z),A(Y),B(Y,Z))},ne=Y=>{l=!0,_(Y);const Z=Math.min(Math.round((L(h(p[Y]).$el).scrollTop-(J(Y)*.5-10)/H(Y)+3)/H(Y)),Y==="hours"?23:59);ue(Y,Z)},J=Y=>h(p[Y]).$el.offsetHeight,X=()=>{const Y=Z=>{const ae=h(p[Z]);ae&&ae.$el&&(L(ae.$el).onscroll=()=>{ne(Z)})};Y("hours"),Y("minutes"),Y("seconds")};Ht(()=>{bt(()=>{!n.arrowControl&&X(),k(),n.role==="start"&&A("hours")})});const te=(Y,Z)=>{p[Z].value=Y};return t("set-option",[`${n.role}_scrollDown`,W]),t("set-option",[`${n.role}_emitSelectRange`,A]),We(()=>n.spinnerDate,()=>{l||k()}),(Y,Z)=>(V(),ie("div",{class:K([h(r).b("spinner"),{"has-seconds":Y.showSeconds}])},[Y.arrowControl?Ie("v-if",!0):(V(!0),ie(mt,{key:0},sn(h(g),ae=>(V(),Fe(h(ts),{key:ae,ref_for:!0,ref:ve=>te(ve,ae),class:K(h(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":h(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ve=>A(ae),onMousemove:ve=>$(ae)},{default:Ce(()=>[(V(!0),ie(mt,null,sn(h(m)[ae],(ve,we)=>(V(),ie("li",{key:we,class:K([h(r).be("spinner","item"),h(r).is("active",we===h(y)[ae]),h(r).is("disabled",ve)]),onClick:Me=>se(ae,{value:we,disabled:ve})},[ae==="hours"?(V(),ie(mt,{key:0},[dn(ot(("0"+(Y.amPmMode?we%12||12:we)).slice(-2))+ot(P(we)),1)],64)):(V(),ie(mt,{key:1},[dn(ot(("0"+we).slice(-2)),1)],64))],10,HW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Y.arrowControl?(V(!0),ie(mt,{key:1},sn(h(g),ae=>(V(),ie("div",{key:ae,class:K([h(r).be("spinner","wrapper"),h(r).is("arrow")]),onMouseenter:ve=>A(ae)},[Lt((V(),Fe(h(ht),{class:K(["arrow-up",h(r).be("spinner","arrow")])},{default:Ce(()=>[ye(h(h_))]),_:1},8,["class"])),[[h(P0),j]]),Lt((V(),Fe(h(ht),{class:K(["arrow-down",h(r).be("spinner","arrow")])},{default:Ce(()=>[ye(h(Zi))]),_:1},8,["class"])),[[h(P0),G]]),de("ul",{class:K(h(r).be("spinner","list"))},[(V(!0),ie(mt,null,sn(h(S)[ae],(ve,we)=>(V(),ie("li",{key:we,class:K([h(r).be("spinner","item"),h(r).is("active",ve===h(y)[ae]),h(r).is("disabled",h(m)[ae][ve])])},[typeof ve=="number"?(V(),ie(mt,{key:0},[ae==="hours"?(V(),ie(mt,{key:0},[dn(ot(("0"+(Y.amPmMode?ve%12||12:ve)).slice(-2))+ot(P(ve)),1)],64)):(V(),ie(mt,{key:1},[dn(ot(("0"+ve).slice(-2)),1)],64))],64)):Ie("v-if",!0)],2))),128))],2)],42,UW))),128)):Ie("v-if",!0)],2))}});var k2=at(VW,[["__file","basic-time-spinner.vue"]]);const GW=he({__name:"panel-time-pick",props:AW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=dt("EP_PICKER_BASE"),{arrowControl:a,disabledHours:o,disabledMinutes:s,disabledSeconds:l,defaultValue:u}=r.props,{getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}=WM(o,s,l),p=Je("time"),{t:g,lang:y}=hn(),m=ee([0,2]),S=XM(n),_=N(()=>vr(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),P=N(()=>n.format.includes("ss")),A=N(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),$=te=>{const Y=zt(te).locale(y.value),Z=se(Y);return Y.isSame(Z)},k=()=>{t("pick",S.value,!1)},L=(te=!1,Y=!1)=>{Y||t("pick",n.parsedValue,te)},B=te=>{if(!n.visible)return;const Y=se(te).millisecond(0);t("pick",Y,!0)},H=(te,Y)=>{t("select-range",te,Y),m.value=[te,Y]},G=te=>{const Y=[0,3].concat(P.value?[6]:[]),Z=["hours","minutes"].concat(P.value?["seconds"]:[]),ve=(Y.indexOf(m.value[0])+te+Y.length)%Y.length;W.start_emitSelectRange(Z[ve])},j=te=>{const Y=te.code,{left:Z,right:ae,up:ve,down:we}=St;if([Z,ae].includes(Y)){G(Y===Z?-1:1),te.preventDefault();return}if([ve,we].includes(Y)){const Me=Y===ve?-1:1;W.start_scrollDown(Me),te.preventDefault();return}},{timePickerOptions:W,onSetOption:Q,getAvailableTime:ue}=zM({getAvailableHours:c,getAvailableMinutes:f,getAvailableSeconds:d}),se=te=>ue(te,n.datetimeRole||"",!0),ne=te=>te?zt(te,n.format).locale(y.value):null,J=te=>te?te.format(n.format):null,X=()=>zt(u).locale(y.value);return t("set-picker-option",["isValidValue",$]),t("set-picker-option",["formatToString",J]),t("set-picker-option",["parseUserInput",ne]),t("set-picker-option",["handleKeydownInput",j]),t("set-picker-option",["getRangeAvailableTime",se]),t("set-picker-option",["getDefaultValue",X]),(te,Y)=>(V(),Fe(Tr,{name:h(_)},{default:Ce(()=>[te.actualVisible||te.visible?(V(),ie("div",{key:0,class:K(h(p).b("panel"))},[de("div",{class:K([h(p).be("panel","content"),{"has-seconds":h(P)}])},[ye(k2,{ref:"spinner",role:te.datetimeRole||"start","arrow-control":h(a),"show-seconds":h(P),"am-pm-mode":h(A),"spinner-date":te.parsedValue,"disabled-hours":h(o),"disabled-minutes":h(s),"disabled-seconds":h(l),onChange:B,onSetOption:h(Q),onSelectRange:H},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),de("div",{class:K(h(p).be("panel","footer"))},[de("button",{type:"button",class:K([h(p).be("panel","btn"),"cancel"]),onClick:k},ot(h(g)("el.datepicker.cancel")),3),de("button",{type:"button",class:K([h(p).be("panel","btn"),"confirm"]),onClick:Y[0]||(Y[0]=Z=>L())},ot(h(g)("el.datepicker.confirm")),3)],2)],2)):Ie("v-if",!0)]),_:1},8,["name"]))}});var M0=at(GW,[["__file","panel-time-pick.vue"]]);const jW=tt({...GM,parsedValue:{type:xe(Array)}}),zW=["disabled"],KW=he({__name:"panel-time-range",props:jW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(ke,ze)=>{const ce=[];for(let me=ke;me<=ze;me++)ce.push(me);return ce},{t:a,lang:o}=hn(),s=Je("time"),l=Je("picker"),u=dt("EP_PICKER_BASE"),{arrowControl:c,disabledHours:f,disabledMinutes:d,disabledSeconds:p,defaultValue:g}=u.props,y=N(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),$.value?"has-seconds":""]),m=N(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",c),$.value?"has-seconds":""]),S=N(()=>n.parsedValue[0]),_=N(()=>n.parsedValue[1]),P=XM(n),A=()=>{t("pick",P.value,!1)},$=N(()=>n.format.includes("ss")),k=N(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),L=(ke=!1)=>{t("pick",[S.value,_.value],ke)},B=ke=>{j(ke.millisecond(0),_.value)},H=ke=>{j(S.value,ke.millisecond(0))},G=ke=>{const ze=ke.map(me=>zt(me).locale(o.value)),ce=ae(ze);return ze[0].isSame(ce[0])&&ze[1].isSame(ce[1])},j=(ke,ze)=>{t("pick",[ke,ze],!0)},W=N(()=>S.value>_.value),Q=ee([0,2]),ue=(ke,ze)=>{t("select-range",ke,ze,"min"),Q.value=[ke,ze]},se=N(()=>$.value?11:8),ne=(ke,ze)=>{t("select-range",ke,ze,"max");const ce=h(se);Q.value=[ke+ce,ze+ce]},J=ke=>{const ze=$.value?[0,3,6,11,14,17]:[0,3,8,11],ce=["hours","minutes"].concat($.value?["seconds"]:[]),Be=(ze.indexOf(Q.value[0])+ke+ze.length)%ze.length,be=ze.length/2;Be<be?Ge.start_emitSelectRange(ce[Be]):Ge.end_emitSelectRange(ce[Be-be])},X=ke=>{const ze=ke.code,{left:ce,right:me,up:Be,down:be}=St;if([ce,me].includes(ze)){J(ze===ce?-1:1),ke.preventDefault();return}if([Be,be].includes(ze)){const Oe=ze===Be?-1:1,Ye=Q.value[0]<se.value?"start":"end";Ge[`${Ye}_scrollDown`](Oe),ke.preventDefault();return}},te=(ke,ze)=>{const ce=f?f(ke):[],me=ke==="start",be=(ze||(me?_.value:S.value)).hour(),Oe=me?r(be+1,23):r(0,be-1);return xm(ce,Oe)},Y=(ke,ze,ce)=>{const me=d?d(ke,ze):[],Be=ze==="start",be=ce||(Be?_.value:S.value),Oe=be.hour();if(ke!==Oe)return me;const Ye=be.minute(),qe=Be?r(Ye+1,59):r(0,Ye-1);return xm(me,qe)},Z=(ke,ze,ce,me)=>{const Be=p?p(ke,ze,ce):[],be=ce==="start",Oe=me||(be?_.value:S.value),Ye=Oe.hour(),qe=Oe.minute();if(ke!==Ye||ze!==qe)return Be;const Qe=Oe.second(),et=be?r(Qe+1,59):r(0,Qe-1);return xm(Be,et)},ae=([ke,ze])=>[Ee(ke,"start",!0,ze),Ee(ze,"end",!1,ke)],{getAvailableHours:ve,getAvailableMinutes:we,getAvailableSeconds:Me}=WM(te,Y,Z),{timePickerOptions:Ge,getAvailableTime:Ee,onSetOption:pe}=zM({getAvailableHours:ve,getAvailableMinutes:we,getAvailableSeconds:Me}),_e=ke=>ke?st(ke)?ke.map(ze=>zt(ze,n.format).locale(o.value)):zt(ke,n.format).locale(o.value):null,He=ke=>ke?st(ke)?ke.map(ze=>ze.format(n.format)):ke.format(n.format):null,Ae=()=>{if(st(g))return g.map(ze=>zt(ze).locale(o.value));const ke=zt(g).locale(o.value);return[ke,ke.add(60,"m")]};return t("set-picker-option",["formatToString",He]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["isValidValue",G]),t("set-picker-option",["handleKeydownInput",X]),t("set-picker-option",["getDefaultValue",Ae]),t("set-picker-option",["getRangeAvailableTime",ae]),(ke,ze)=>ke.actualVisible?(V(),ie("div",{key:0,class:K([h(s).b("range-picker"),h(l).b("panel")])},[de("div",{class:K(h(s).be("range-picker","content"))},[de("div",{class:K(h(s).be("range-picker","cell"))},[de("div",{class:K(h(s).be("range-picker","header"))},ot(h(a)("el.datepicker.startTime")),3),de("div",{class:K(h(y))},[ye(k2,{ref:"minSpinner",role:"start","show-seconds":h($),"am-pm-mode":h(k),"arrow-control":h(c),"spinner-date":h(S),"disabled-hours":te,"disabled-minutes":Y,"disabled-seconds":Z,onChange:B,onSetOption:h(pe),onSelectRange:ue},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),de("div",{class:K(h(s).be("range-picker","cell"))},[de("div",{class:K(h(s).be("range-picker","header"))},ot(h(a)("el.datepicker.endTime")),3),de("div",{class:K(h(m))},[ye(k2,{ref:"maxSpinner",role:"end","show-seconds":h($),"am-pm-mode":h(k),"arrow-control":h(c),"spinner-date":h(_),"disabled-hours":te,"disabled-minutes":Y,"disabled-seconds":Z,onChange:H,onSetOption:h(pe),onSelectRange:ne},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),de("div",{class:K(h(s).be("panel","footer"))},[de("button",{type:"button",class:K([h(s).be("panel","btn"),"cancel"]),onClick:ze[0]||(ze[0]=ce=>A())},ot(h(a)("el.datepicker.cancel")),3),de("button",{type:"button",class:K([h(s).be("panel","btn"),"confirm"]),disabled:h(W),onClick:ze[1]||(ze[1]=ce=>L())},ot(h(a)("el.datepicker.confirm")),11,zW)],2)],2)):Ie("v-if",!0)}});var WW=at(KW,[["__file","panel-time-range.vue"]]);zt.extend(X_);var XW=he({name:"ElTimePicker",install:null,props:{...Y_,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=ee(),[r,a]=e.isRange?["timerange",WW]:["time",M0],o=s=>t.emit("update:modelValue",s);return nn("ElPopperOptions",e.popperOptions),t.expose({focus:s=>{var l;(l=n.value)==null||l.handleFocusInput(s)},blur:s=>{var l;(l=n.value)==null||l.handleBlurInput(s)},handleOpen:()=>{var s;(s=n.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=n.value)==null||s.handleClose()}}),()=>{var s;const l=(s=e.format)!=null?s:E2;return ye(jM,rn(e,{ref:n,type:r,format:l,"onUpdate:modelValue":o}),{default:u=>ye(a,u,null)})}}});const Hp=XW;Hp.install=e=>{e.component(Hp.name,Hp)};const YW=Hp,JW=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Rs(t).map((r,a)=>n-(t-a-1))},qW=e=>{const t=e.daysInMonth();return Rs(t).map((n,r)=>r+1)},QW=e=>Rs(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),ZW=tt({selectedDay:{type:xe(Object)},range:{type:xe(Array)},date:{type:xe(Object),required:!0},hideHeader:{type:Boolean}}),eX={pick:e=>Kt(e)};var nO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r,a){var o=r.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},l=function(d,p,g,y,m){var S=d.name?d:d.$locale(),_=s(S[p]),P=s(S[g]),A=_||P.map(function(k){return k.slice(0,y)});if(!m)return A;var $=S.weekStart;return A.map(function(k,L){return A[(L+($||0))%7]})},u=function(){return a.Ls[a.locale()]},c=function(d,p){return d.formats[p]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,m,S){return m||S.slice(1)})}(d.formats[p.toUpperCase()])},f=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):l(d,"months")},monthsShort:function(p){return p?p.format("MMM"):l(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(p){return c(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return l(u(),"months")},a.monthsShort=function(){return l(u(),"monthsShort","months",3)},a.weekdays=function(d){return l(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return l(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return l(u(),"weekdaysMin","weekdays",2,d)}}})})(nO);var tX=nO.exports;const rO=rs(tX),nX=(e,t)=>{zt.extend(rO);const n=zt.localeData().firstDayOfWeek(),{t:r,lang:a}=hn(),o=zt().locale(a.value),s=N(()=>!!e.range&&!!e.range.length),l=N(()=>{let p=[];if(s.value){const[g,y]=e.range,m=Rs(y.date()-g.date()+1).map(P=>({text:g.date()+P,type:"current"}));let S=m.length%7;S=S===0?0:7-S;const _=Rs(S).map((P,A)=>({text:A+1,type:"next"}));p=m.concat(_)}else{const g=e.date.startOf("month").day(),y=JW(e.date,(g-n+7)%7).map(P=>({text:P,type:"prev"})),m=qW(e.date).map(P=>({text:P,type:"current"}));p=[...y,...m];const S=7-(p.length%7||7),_=Rs(S).map((P,A)=>({text:A+1,type:"next"}));p=p.concat(_)}return QW(p)}),u=N(()=>{const p=n;return p===0?Im.map(g=>r(`el.datepicker.weeks.${g}`)):Im.slice(p).concat(Im.slice(0,p)).map(g=>r(`el.datepicker.weeks.${g}`))}),c=(p,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:o,isInRange:s,rows:l,weekDays:u,getFormattedDate:c,handlePickDay:({text:p,type:g})=>{const y=c(p,g);t("pick",y)},getSlotData:({text:p,type:g})=>{const y=c(p,g);return{isSelected:y.isSame(e.selectedDay),type:`${g}-month`,day:y.format("YYYY-MM-DD"),date:y.toDate()}}}},rX={key:0},aX=["onClick"],oX=he({name:"DateTable"}),iX=he({...oX,props:ZW,emits:eX,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:c,getSlotData:f}=nX(r,n),d=Je("calendar-table"),p=Je("calendar-day"),g=({text:y,type:m})=>{const S=[m];if(m==="current"){const _=u(y,m);_.isSame(r.selectedDay,"day")&&S.push(p.is("selected")),_.isSame(o,"day")&&S.push(p.is("today"))}return S};return t({getFormattedDate:u}),(y,m)=>(V(),ie("table",{class:K([h(d).b(),h(d).is("range",h(a))]),cellspacing:"0",cellpadding:"0"},[y.hideHeader?Ie("v-if",!0):(V(),ie("thead",rX,[(V(!0),ie(mt,null,sn(h(l),S=>(V(),ie("th",{key:S},ot(S),1))),128))])),de("tbody",null,[(V(!0),ie(mt,null,sn(h(s),(S,_)=>(V(),ie("tr",{key:_,class:K({[h(d).e("row")]:!0,[h(d).em("row","hide-border")]:_===0&&y.hideHeader})},[(V(!0),ie(mt,null,sn(S,(P,A)=>(V(),ie("td",{key:A,class:K(g(P)),onClick:$=>h(c)(P)},[de("div",{class:K(h(p).b())},[Ue(y.$slots,"date-cell",{data:h(f)(P)},()=>[de("span",null,ot(P.text),1)])],2)],10,aX))),128))],2))),128))])],2))}});var dC=at(iX,[["__file","date-table.vue"]]);const sX=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),o=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),t]]},lX=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,o=a.endOf("month"),s=t.startOf("month"),l=o.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[a.startOf("week"),o],[l.startOf("week"),t]]},uX=(e,t,n)=>{const{lang:r}=hn(),a=ee(),o=zt().locale(r.value),s=N({get(){return e.modelValue?u.value:a.value},set(S){if(!S)return;a.value=S;const _=S.toDate();t(wa,_),t(Yt,_)}}),l=N(()=>{if(!e.range)return[];const S=e.range.map(A=>zt(A).locale(r.value)),[_,P]=S;return _.isAfter(P)?[]:_.isSame(P,"month")?g(_,P):_.add(1,"month").month()!==P.month()?[]:g(_,P)}),u=N(()=>e.modelValue?zt(e.modelValue).locale(r.value):s.value||(l.value.length?l.value[0][0]:o)),c=N(()=>u.value.subtract(1,"month").date(1)),f=N(()=>u.value.add(1,"month").date(1)),d=N(()=>u.value.subtract(1,"year").date(1)),p=N(()=>u.value.add(1,"year").date(1)),g=(S,_)=>{const P=S.startOf("week"),A=_.endOf("week"),$=P.get("month"),k=A.get("month");return $===k?[[P,A]]:($+1)%12===k?sX(P,A):$+2===k||($+1)%11===k?lX(P,A):[]},y=S=>{s.value=S};return{calculateValidatedDateRange:g,date:u,realSelectedDay:s,pickDay:y,selectDate:S=>{const P={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":p.value,today:o}[S];P.isSame(u.value,"day")||y(P)},validatedRange:l}},cX=e=>st(e)&&e.length===2&&e.every(t=>Yl(t)),dX=tt({modelValue:{type:Date},range:{type:xe(Array),validator:cX}}),fX={[Yt]:e=>Yl(e),[wa]:e=>Yl(e)},hX="ElCalendar",pX=he({name:hX}),vX=he({...pX,props:dX,emits:fX,setup(e,{expose:t,emit:n}){const r=e,a=Je("calendar"),{calculateValidatedDateRange:o,date:s,pickDay:l,realSelectedDay:u,selectDate:c,validatedRange:f}=uX(r,n),{t:d}=hn(),p=N(()=>{const g=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${d("el.datepicker.year")} ${d(g)}`});return t({selectedDay:u,pickDay:l,selectDate:c,calculateValidatedDateRange:o}),(g,y)=>(V(),ie("div",{class:K(h(a).b())},[de("div",{class:K(h(a).e("header"))},[Ue(g.$slots,"header",{date:h(p)},()=>[de("div",{class:K(h(a).e("title"))},ot(h(p)),3),h(f).length===0?(V(),ie("div",{key:0,class:K(h(a).e("button-group"))},[ye(h(DM),null,{default:Ce(()=>[ye(h(Hr),{size:"small",onClick:y[0]||(y[0]=m=>h(c)("prev-month"))},{default:Ce(()=>[dn(ot(h(d)("el.datepicker.prevMonth")),1)]),_:1}),ye(h(Hr),{size:"small",onClick:y[1]||(y[1]=m=>h(c)("today"))},{default:Ce(()=>[dn(ot(h(d)("el.datepicker.today")),1)]),_:1}),ye(h(Hr),{size:"small",onClick:y[2]||(y[2]=m=>h(c)("next-month"))},{default:Ce(()=>[dn(ot(h(d)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):Ie("v-if",!0)])],2),h(f).length===0?(V(),ie("div",{key:0,class:K(h(a).e("body"))},[ye(dC,{date:h(s),"selected-day":h(u),onPick:h(l)},Gi({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:Ce(m=>[Ue(g.$slots,"date-cell",Di(ac(m)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(V(),ie("div",{key:1,class:K(h(a).e("body"))},[(V(!0),ie(mt,null,sn(h(f),(m,S)=>(V(),Fe(dC,{key:S,date:m[0],"selected-day":h(u),range:m,"hide-header":S!==0,onPick:h(l)},Gi({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:Ce(_=>[Ue(g.$slots,"date-cell",Di(ac(_)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var mX=at(vX,[["__file","calendar.vue"]]);const gX=jt(mX),yX=tt({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:xe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),bX=he({name:"ElCard"}),_X=he({...bX,props:yX,setup(e){const t=Je("card");return(n,r)=>(V(),ie("div",{class:K([h(t).b(),h(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(V(),ie("div",{key:0,class:K(h(t).e("header"))},[Ue(n.$slots,"header",{},()=>[dn(ot(n.header),1)])],2)):Ie("v-if",!0),de("div",{class:K([h(t).e("body"),n.bodyClass]),style:vt(n.bodyStyle)},[Ue(n.$slots,"default")],6),n.$slots.footer||n.footer?(V(),ie("div",{key:1,class:K(h(t).e("footer"))},[Ue(n.$slots,"footer",{},()=>[dn(ot(n.footer),1)])],2)):Ie("v-if",!0)],2))}});var wX=at(_X,[["__file","card.vue"]]);const SX=jt(wX),TX=tt({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!1}}),EX={change:(e,t)=>[e,t].every(It)},aO=Symbol("carouselContextKey"),fC=300,CX=(e,t,n)=>{const{children:r,addChild:a,removeChild:o}=U_(Gt(),"ElCarouselItem"),s=Vr(),l=ee(-1),u=ee(null),c=ee(!1),f=ee(),d=ee(0),p=ee(!0),g=ee(!0),y=ee(!1),m=N(()=>e.arrow!=="never"&&!h(P)),S=N(()=>r.value.some(Ee=>Ee.props.label.toString().length>0)),_=N(()=>e.type==="card"),P=N(()=>e.direction==="vertical"),A=N(()=>e.height!=="auto"?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"}),$=Ul(Ee=>{j(Ee)},fC,{trailing:!0}),k=Ul(Ee=>{Y(Ee)},fC),L=Ee=>p.value?l.value<=1?Ee<=1:Ee>1:!0;function B(){u.value&&(clearInterval(u.value),u.value=null)}function H(){e.interval<=0||!e.autoplay||u.value||(u.value=setInterval(()=>G(),e.interval))}const G=()=>{g.value||(y.value=!0),g.value=!1,l.value<r.value.length-1?l.value=l.value+1:e.loop&&(l.value=0)};function j(Ee){if(g.value||(y.value=!0),g.value=!1,Rt(Ee)){const He=r.value.filter(Ae=>Ae.props.name===Ee);He.length>0&&(Ee=r.value.indexOf(He[0]))}if(Ee=Number(Ee),Number.isNaN(Ee)||Ee!==Math.floor(Ee))return;const pe=r.value.length,_e=l.value;Ee<0?l.value=e.loop?pe-1:0:Ee>=pe?l.value=e.loop?0:pe-1:l.value=Ee,_e===l.value&&W(_e),ve()}function W(Ee){r.value.forEach((pe,_e)=>{pe.translateItem(_e,l.value,Ee)})}function Q(Ee,pe){var _e,He,Ae,ke;const ze=h(r),ce=ze.length;if(ce===0||!Ee.states.inStage)return!1;const me=pe+1,Be=pe-1,be=ce-1,Oe=ze[be].states.active,Ye=ze[0].states.active,qe=(He=(_e=ze[me])==null?void 0:_e.states)==null?void 0:He.active,Qe=(ke=(Ae=ze[Be])==null?void 0:Ae.states)==null?void 0:ke.active;return pe===be&&Ye||qe?"left":pe===0&&Oe||Qe?"right":!1}function ue(){c.value=!0,e.pauseOnHover&&B()}function se(){c.value=!1,H()}function ne(){y.value=!1}function J(Ee){h(P)||r.value.forEach((pe,_e)=>{Ee===Q(pe,_e)&&(pe.states.hover=!0)})}function X(){h(P)||r.value.forEach(Ee=>{Ee.states.hover=!1})}function te(Ee){Ee!==l.value&&(g.value||(y.value=!0)),l.value=Ee}function Y(Ee){e.trigger==="hover"&&Ee!==l.value&&(l.value=Ee,g.value||(y.value=!0))}function Z(){j(l.value-1)}function ae(){j(l.value+1)}function ve(){B(),e.pauseOnHover||H()}function we(Ee){e.height==="auto"&&(d.value=Ee)}function Me(){var Ee;const pe=(Ee=s.default)==null?void 0:Ee.call(s);if(!pe)return null;const _e=$s(pe),He="ElCarouselItem",Ae=_e.filter(ke=>zn(ke)&&ke.type.name===He);return(Ae==null?void 0:Ae.length)===2&&e.loop&&!_.value?(p.value=!0,Ae):(p.value=!1,null)}We(()=>l.value,(Ee,pe)=>{W(pe),p.value&&(Ee=Ee%2,pe=pe%2),pe>-1&&t("change",Ee,pe)}),We(()=>e.autoplay,Ee=>{Ee?H():B()}),We(()=>e.loop,()=>{j(l.value)}),We(()=>e.interval,()=>{ve()});const Ge=Fn();return Ht(()=>{We(()=>r.value,()=>{r.value.length>0&&j(e.initialIndex)},{immediate:!0}),Ge.value=Wn(f.value,()=>{W()}),H()}),Dn(()=>{B(),f.value&&Ge.value&&Ge.value.stop()}),nn(aO,{root:f,isCardType:_,isVertical:P,items:r,loop:e.loop,addItem:a,removeItem:o,setActiveItem:j,setContainerHeight:we}),{root:f,activeIndex:l,arrowDisplay:m,hasLabel:S,hover:c,isCardType:_,isTransitioning:y,items:r,isVertical:P,containerStyle:A,isItemsTwoLength:p,handleButtonEnter:J,handleTransitionEnd:ne,handleButtonLeave:X,handleIndicatorClick:te,handleMouseEnter:ue,handleMouseLeave:se,setActiveItem:j,prev:Z,next:ae,PlaceholderItem:Me,isTwoLengthShow:L,throttledArrowClick:$,throttledIndicatorHover:k}},xX=["aria-label"],IX=["aria-label"],AX=["onMouseenter","onClick"],PX=["aria-label"],MX={key:0},OX={key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},$X=de("defs",null,[de("filter",{id:"elCarouselHorizontal"},[de("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),de("filter",{id:"elCarouselVertical"},[de("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1),RX=[$X],kX="ElCarousel",LX=he({name:kX}),NX=he({...LX,props:TX,emits:EX,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:o,arrowDisplay:s,hasLabel:l,hover:u,isCardType:c,items:f,isVertical:d,containerStyle:p,handleButtonEnter:g,handleButtonLeave:y,isTransitioning:m,handleIndicatorClick:S,handleMouseEnter:_,handleMouseLeave:P,handleTransitionEnd:A,setActiveItem:$,prev:k,next:L,PlaceholderItem:B,isTwoLengthShow:H,throttledArrowClick:G,throttledIndicatorHover:j}=CX(r,n),W=Je("carousel"),{t:Q}=hn(),ue=N(()=>{const J=[W.b(),W.m(r.direction)];return h(c)&&J.push(W.m("card")),J}),se=N(()=>{const J=[W.e("container")];return r.motionBlur&&h(m)&&J.push(h(d)?`${W.namespace.value}-transitioning-vertical`:`${W.namespace.value}-transitioning`),J}),ne=N(()=>{const J=[W.e("indicators"),W.em("indicators",r.direction)];return h(l)&&J.push(W.em("indicators","labels")),r.indicatorPosition==="outside"&&J.push(W.em("indicators","outside")),h(d)&&J.push(W.em("indicators","right")),J});return t({setActiveItem:$,prev:k,next:L}),(J,X)=>(V(),ie("div",{ref_key:"root",ref:a,class:K(h(ue)),onMouseenter:X[7]||(X[7]=Ot((...te)=>h(_)&&h(_)(...te),["stop"])),onMouseleave:X[8]||(X[8]=Ot((...te)=>h(P)&&h(P)(...te),["stop"]))},[h(s)?(V(),Fe(Tr,{key:0,name:"carousel-arrow-left",persisted:""},{default:Ce(()=>[Lt(de("button",{type:"button",class:K([h(W).e("arrow"),h(W).em("arrow","left")]),"aria-label":h(Q)("el.carousel.leftArrow"),onMouseenter:X[0]||(X[0]=te=>h(g)("left")),onMouseleave:X[1]||(X[1]=(...te)=>h(y)&&h(y)(...te)),onClick:X[2]||(X[2]=Ot(te=>h(G)(h(o)-1),["stop"]))},[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1})],42,xX),[[bn,(J.arrow==="always"||h(u))&&(r.loop||h(o)>0)]])]),_:1})):Ie("v-if",!0),h(s)?(V(),Fe(Tr,{key:1,name:"carousel-arrow-right",persisted:""},{default:Ce(()=>[Lt(de("button",{type:"button",class:K([h(W).e("arrow"),h(W).em("arrow","right")]),"aria-label":h(Q)("el.carousel.rightArrow"),onMouseenter:X[3]||(X[3]=te=>h(g)("right")),onMouseleave:X[4]||(X[4]=(...te)=>h(y)&&h(y)(...te)),onClick:X[5]||(X[5]=Ot(te=>h(G)(h(o)+1),["stop"]))},[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})],42,IX),[[bn,(J.arrow==="always"||h(u))&&(r.loop||h(o)<h(f).length-1)]])]),_:1})):Ie("v-if",!0),de("div",{class:K(h(se)),style:vt(h(p)),onTransitionend:X[6]||(X[6]=(...te)=>h(A)&&h(A)(...te))},[ye(h(B)),Ue(J.$slots,"default")],38),J.indicatorPosition!=="none"?(V(),ie("ul",{key:2,class:K(h(ne))},[(V(!0),ie(mt,null,sn(h(f),(te,Y)=>Lt((V(),ie("li",{key:Y,class:K([h(W).e("indicator"),h(W).em("indicator",J.direction),h(W).is("active",Y===h(o))]),onMouseenter:Z=>h(j)(Y),onClick:Ot(Z=>h(S)(Y),["stop"])},[de("button",{class:K(h(W).e("button")),"aria-label":h(Q)("el.carousel.indicator",{index:Y+1})},[h(l)?(V(),ie("span",MX,ot(te.props.label),1)):Ie("v-if",!0)],10,PX)],42,AX)),[[bn,h(H)(Y)]])),128))],2)):Ie("v-if",!0),r.motionBlur?(V(),ie("svg",OX,RX)):Ie("v-if",!0)],34))}});var DX=at(NX,[["__file","carousel.vue"]]);const FX=tt({name:{type:String,default:""},label:{type:[String,Number],default:""}}),BX=(e,t)=>{const n=dt(aO),r=Gt(),a=.83,o=ee(),s=ee(!1),l=ee(0),u=ee(1),c=ee(!1),f=ee(!1),d=ee(!1),p=ee(!1),{isCardType:g,isVertical:y}=n;function m($,k,L){const B=L-1,H=k-1,G=k+1,j=L/2;return k===0&&$===B?-1:k===B&&$===0?L:$<H&&k-$>=j?L+1:$>G&&$-k>=j?-2:$}function S($,k){var L,B;const H=h(y)?((L=n.root.value)==null?void 0:L.offsetHeight)||0:((B=n.root.value)==null?void 0:B.offsetWidth)||0;return d.value?H*((2-a)*($-k)+1)/4:$<k?-(1+a)*H/4:(3+a)*H/4}function _($,k,L){const B=n.root.value;return B?((L?B.offsetHeight:B.offsetWidth)||0)*($-k):0}const P=($,k,L)=>{var B;const H=h(g),G=(B=n.items.value.length)!=null?B:Number.NaN,j=$===k;!H&&!vr(L)&&(p.value=j||$===L),!j&&G>2&&n.loop&&($=m($,k,G));const W=h(y);c.value=j,H?(d.value=Math.round(Math.abs($-k))<=1,l.value=S($,k),u.value=h(c)?1:a):l.value=_($,k,W),f.value=!0,j&&o.value&&n.setContainerHeight(o.value.offsetHeight)};function A(){if(n&&h(g)){const $=n.items.value.findIndex(({uid:k})=>k===r.uid);n.setActiveItem($)}}return Ht(()=>{n.addItem({props:e,states:Sn({hover:s,translate:l,scale:u,active:c,ready:f,inStage:d,animating:p}),uid:r.uid,translateItem:P})}),Zs(()=>{n.removeItem(r.uid)}),{carouselItemRef:o,active:c,animating:p,hover:s,inStage:d,isVertical:y,translate:l,isCardType:g,scale:u,ready:f,handleItemClick:A}},HX=he({name:"ElCarouselItem"}),UX=he({...HX,props:FX,setup(e){const t=e,n=Je("carousel"),{carouselItemRef:r,active:a,animating:o,hover:s,inStage:l,isVertical:u,translate:c,isCardType:f,scale:d,ready:p,handleItemClick:g}=BX(t),y=N(()=>[n.e("item"),n.is("active",a.value),n.is("in-stage",l.value),n.is("hover",s.value),n.is("animating",o.value),{[n.em("item","card")]:f.value,[n.em("item","card-vertical")]:f.value&&u.value}]),m=N(()=>{const _=`${`translate${h(u)?"Y":"X"}`}(${h(c)}px)`,P=`scale(${h(d)})`;return{transform:[_,P].join(" ")}});return(S,_)=>Lt((V(),ie("div",{ref_key:"carouselItemRef",ref:r,class:K(h(y)),style:vt(h(m)),onClick:_[0]||(_[0]=(...P)=>h(g)&&h(g)(...P))},[h(f)?Lt((V(),ie("div",{key:0,class:K(h(n).e("mask"))},null,2)),[[bn,!h(a)]]):Ie("v-if",!0),Ue(S.$slots,"default")],6)),[[bn,h(p)]])}});var oO=at(UX,[["__file","carousel-item.vue"]]);const VX=jt(DX,{CarouselItem:oO}),GX=Yn(oO),iO={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Rr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Xr(["ariaControls"])},sO={[Yt]:e=>Rt(e)||It(e)||mr(e),change:e=>Rt(e)||It(e)||mr(e)},jc=Symbol("checkboxGroupContextKey"),jX=({model:e,isChecked:t})=>{const n=dt(jc,void 0),r=N(()=>{var o,s;const l=(o=n==null?void 0:n.max)==null?void 0:o.value,u=(s=n==null?void 0:n.min)==null?void 0:s.value;return!vr(l)&&e.value.length>=l&&!t.value||!vr(u)&&e.value.length<=u&&t.value});return{isDisabled:Ca(N(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},zX=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:o})=>{const s=dt(jc,void 0),{formItem:l}=va(),{emit:u}=Gt();function c(y){var m,S,_,P;return[!0,e.trueValue,e.trueLabel].includes(y)?(S=(m=e.trueValue)!=null?m:e.trueLabel)!=null?S:!0:(P=(_=e.falseValue)!=null?_:e.falseLabel)!=null?P:!1}function f(y,m){u("change",c(y),m)}function d(y){if(n.value)return;const m=y.target;u("change",c(m.checked),y)}async function p(y){n.value||!r.value&&!a.value&&o.value&&(y.composedPath().some(_=>_.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await bt(),f(t.value,y)))}const g=N(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return We(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(y=>void 0))}),{handleChange:d,onClickRoot:p}},KX=e=>{const t=ee(!1),{emit:n}=Gt(),r=dt(jc,void 0),a=N(()=>vr(r)===!1),o=ee(!1),s=N({get(){var l,u;return a.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(u=e.modelValue)!=null?u:t.value},set(l){var u,c;a.value&&st(l)?(o.value=((u=r==null?void 0:r.max)==null?void 0:u.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>s.value.length,o.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,l))):(n(Yt,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:o}},WX=(e,t,{model:n})=>{const r=dt(jc,void 0),a=ee(!1),o=N(()=>Ql(e.value)?e.label:e.value),s=N(()=>{const f=n.value;return mr(f)?f:st(f)?Kt(o.value)?f.map(In).some(d=>ca(d,o.value)):f.map(In).includes(o.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=yr(N(()=>{var f;return(f=r==null?void 0:r.size)==null?void 0:f.value}),{prop:!0}),u=yr(N(()=>{var f;return(f=r==null?void 0:r.size)==null?void 0:f.value})),c=N(()=>!!t.default||!Ql(o.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:u,hasOwnLabel:c,actualValue:o}},lO=(e,t)=>{const{formItem:n}=va(),{model:r,isGroup:a,isLimitExceeded:o}=KX(e),{isFocused:s,isChecked:l,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f,actualValue:d}=WX(e,t,{model:r}),{isDisabled:p}=jX({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:y}=Xo(e,{formItemContext:n,disableIdGeneration:f,disableIdManagement:a}),{handleChange:m,onClickRoot:S}=zX(e,{model:r,isLimitExceeded:o,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:y});return(()=>{function P(){var A,$;st(r.value)&&!r.value.includes(d.value)?r.value.push(d.value):r.value=($=(A=e.trueValue)!=null?A:e.trueLabel)!=null?$:!0}e.checked&&P()})(),Fr({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},N(()=>!!e.controls)),Fr({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},N(()=>a.value&&Ql(e.value))),Fr({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},N(()=>!!e.trueLabel)),Fr({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},N(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:y,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:f,model:r,actualValue:d,handleChange:m,onClickRoot:S}},XX=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],YX=["id","indeterminate","disabled","value","name","tabindex"],JX=he({name:"ElCheckbox"}),qX=he({...JX,props:iO,emits:sO,setup(e){const t=e,n=Vr(),{inputId:r,isLabeledByFormItem:a,isChecked:o,isDisabled:s,isFocused:l,checkboxSize:u,hasOwnLabel:c,model:f,actualValue:d,handleChange:p,onClickRoot:g}=lO(t,n),y=Je("checkbox"),m=N(()=>[y.b(),y.m(u.value),y.is("disabled",s.value),y.is("bordered",t.border),y.is("checked",o.value)]),S=N(()=>[y.e("input"),y.is("disabled",s.value),y.is("checked",o.value),y.is("indeterminate",t.indeterminate),y.is("focus",l.value)]);return(_,P)=>(V(),Fe(Zt(!h(c)&&h(a)?"span":"label"),{class:K(h(m)),"aria-controls":_.indeterminate?_.controls||_.ariaControls:null,onClick:h(g)},{default:Ce(()=>{var A,$;return[de("span",{class:K(h(S))},[_.trueValue||_.falseValue||_.trueLabel||_.falseLabel?Lt((V(),ie("input",{key:0,id:h(r),"onUpdate:modelValue":P[0]||(P[0]=k=>Un(f)?f.value=k:null),class:K(h(y).e("original")),type:"checkbox",indeterminate:_.indeterminate,name:_.name,tabindex:_.tabindex,disabled:h(s),"true-value":(A=_.trueValue)!=null?A:_.trueLabel,"false-value":($=_.falseValue)!=null?$:_.falseLabel,onChange:P[1]||(P[1]=(...k)=>h(p)&&h(p)(...k)),onFocus:P[2]||(P[2]=k=>l.value=!0),onBlur:P[3]||(P[3]=k=>l.value=!1),onClick:P[4]||(P[4]=Ot(()=>{},["stop"]))},null,42,XX)),[[b0,h(f)]]):Lt((V(),ie("input",{key:1,id:h(r),"onUpdate:modelValue":P[5]||(P[5]=k=>Un(f)?f.value=k:null),class:K(h(y).e("original")),type:"checkbox",indeterminate:_.indeterminate,disabled:h(s),value:h(d),name:_.name,tabindex:_.tabindex,onChange:P[6]||(P[6]=(...k)=>h(p)&&h(p)(...k)),onFocus:P[7]||(P[7]=k=>l.value=!0),onBlur:P[8]||(P[8]=k=>l.value=!1),onClick:P[9]||(P[9]=Ot(()=>{},["stop"]))},null,42,YX)),[[b0,h(f)]]),de("span",{class:K(h(y).e("inner"))},null,2)],2),h(c)?(V(),ie("span",{key:0,class:K(h(y).e("label"))},[Ue(_.$slots,"default"),_.$slots.default?Ie("v-if",!0):(V(),ie(mt,{key:0},[dn(ot(_.label),1)],64))],2)):Ie("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var QX=at(qX,[["__file","checkbox.vue"]]);const ZX=["name","tabindex","disabled","true-value","false-value"],eY=["name","tabindex","disabled","value"],tY=he({name:"ElCheckboxButton"}),nY=he({...tY,props:iO,emits:sO,setup(e){const t=e,n=Vr(),{isFocused:r,isChecked:a,isDisabled:o,checkboxButtonSize:s,model:l,actualValue:u,handleChange:c}=lO(t,n),f=dt(jc,void 0),d=Je("checkbox"),p=N(()=>{var y,m,S,_;const P=(m=(y=f==null?void 0:f.fill)==null?void 0:y.value)!=null?m:"";return{backgroundColor:P,borderColor:P,color:(_=(S=f==null?void 0:f.textColor)==null?void 0:S.value)!=null?_:"",boxShadow:P?`-1px 0 0 0 ${P}`:void 0}}),g=N(()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",o.value),d.is("checked",a.value),d.is("focus",r.value)]);return(y,m)=>{var S,_;return V(),ie("label",{class:K(h(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?Lt((V(),ie("input",{key:0,"onUpdate:modelValue":m[0]||(m[0]=P=>Un(l)?l.value=P:null),class:K(h(d).be("button","original")),type:"checkbox",name:y.name,tabindex:y.tabindex,disabled:h(o),"true-value":(S=y.trueValue)!=null?S:y.trueLabel,"false-value":(_=y.falseValue)!=null?_:y.falseLabel,onChange:m[1]||(m[1]=(...P)=>h(c)&&h(c)(...P)),onFocus:m[2]||(m[2]=P=>r.value=!0),onBlur:m[3]||(m[3]=P=>r.value=!1),onClick:m[4]||(m[4]=Ot(()=>{},["stop"]))},null,42,ZX)),[[b0,h(l)]]):Lt((V(),ie("input",{key:1,"onUpdate:modelValue":m[5]||(m[5]=P=>Un(l)?l.value=P:null),class:K(h(d).be("button","original")),type:"checkbox",name:y.name,tabindex:y.tabindex,disabled:h(o),value:h(u),onChange:m[6]||(m[6]=(...P)=>h(c)&&h(c)(...P)),onFocus:m[7]||(m[7]=P=>r.value=!0),onBlur:m[8]||(m[8]=P=>r.value=!1),onClick:m[9]||(m[9]=Ot(()=>{},["stop"]))},null,42,eY)),[[b0,h(l)]]),y.$slots.default||y.label?(V(),ie("span",{key:2,class:K(h(d).be("button","inner")),style:vt(h(a)?h(p):void 0)},[Ue(y.$slots,"default",{},()=>[dn(ot(y.label),1)])],6)):Ie("v-if",!0)],2)}}});var uO=at(nY,[["__file","checkbox-button.vue"]]);const rY=tt({modelValue:{type:xe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Rr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Xr(["ariaLabel"])}),aY={[Yt]:e=>st(e),change:e=>st(e)},oY=he({name:"ElCheckboxGroup"}),iY=he({...oY,props:rY,emits:aY,setup(e,{emit:t}){const n=e,r=Je("checkbox"),{formItem:a}=va(),{inputId:o,isLabeledByFormItem:s}=Xo(n,{formItemContext:a}),l=async c=>{t(Yt,c),await bt(),t("change",c)},u=N({get(){return n.modelValue},set(c){l(c)}});return nn(jc,{...ui(Wr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:l}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},N(()=>!!n.label)),We(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(c=>void 0))}),(c,f)=>{var d;return V(),Fe(Zt(c.tag),{id:h(o),class:K(h(r).b("group")),role:"group","aria-label":h(s)?void 0:c.label||c.ariaLabel||"checkbox-group","aria-labelledby":h(s)?(d=h(a))==null?void 0:d.labelId:void 0},{default:Ce(()=>[Ue(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var cO=at(iY,[["__file","checkbox-group.vue"]]);const So=jt(QX,{CheckboxButton:uO,CheckboxGroup:cO}),sY=Yn(uO),dO=Yn(cO),fO=tt({modelValue:{type:[String,Number,Boolean],default:void 0},size:Rr,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),lY=tt({...fO,border:Boolean}),hO={[Yt]:e=>Rt(e)||It(e)||mr(e),[Hn]:e=>Rt(e)||It(e)||mr(e)},pO=Symbol("radioGroupKey"),vO=(e,t)=>{const n=ee(),r=dt(pO,void 0),a=N(()=>!!r),o=N(()=>Ql(e.value)?e.label:e.value),s=N({get(){return a.value?r.modelValue:e.modelValue},set(d){a.value?r.changeEvent(d):t&&t(Yt,d),n.value.checked=e.modelValue===o.value}}),l=yr(N(()=>r==null?void 0:r.size)),u=Ca(N(()=>r==null?void 0:r.disabled)),c=ee(!1),f=N(()=>u.value||a.value&&s.value!==o.value?-1:0);return Fr({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},N(()=>a.value&&Ql(e.value))),{radioRef:n,isGroup:a,radioGroup:r,focus:c,size:l,disabled:u,tabIndex:f,modelValue:s,actualValue:o}},uY=["value","name","disabled"],cY=he({name:"ElRadio"}),dY=he({...cY,props:lY,emits:hO,setup(e,{emit:t}){const n=e,r=Je("radio"),{radioRef:a,radioGroup:o,focus:s,size:l,disabled:u,modelValue:c,actualValue:f}=vO(n,t);function d(){bt(()=>t("change",c.value))}return(p,g)=>{var y;return V(),ie("label",{class:K([h(r).b(),h(r).is("disabled",h(u)),h(r).is("focus",h(s)),h(r).is("bordered",p.border),h(r).is("checked",h(c)===h(f)),h(r).m(h(l))])},[de("span",{class:K([h(r).e("input"),h(r).is("disabled",h(u)),h(r).is("checked",h(c)===h(f))])},[Lt(de("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":g[0]||(g[0]=m=>Un(c)?c.value=m:null),class:K(h(r).e("original")),value:h(f),name:p.name||((y=h(o))==null?void 0:y.name),disabled:h(u),type:"radio",onFocus:g[1]||(g[1]=m=>s.value=!0),onBlur:g[2]||(g[2]=m=>s.value=!1),onChange:d,onClick:g[3]||(g[3]=Ot(()=>{},["stop"]))},null,42,uY),[[hA,h(c)]]),de("span",{class:K(h(r).e("inner"))},null,2)],2),de("span",{class:K(h(r).e("label")),onKeydown:g[4]||(g[4]=Ot(()=>{},["stop"]))},[Ue(p.$slots,"default",{},()=>[dn(ot(p.label),1)])],34)],2)}}});var fY=at(dY,[["__file","radio.vue"]]);const hY=tt({...fO}),pY=["value","name","disabled"],vY=he({name:"ElRadioButton"}),mY=he({...vY,props:hY,setup(e){const t=e,n=Je("radio"),{radioRef:r,focus:a,size:o,disabled:s,modelValue:l,radioGroup:u,actualValue:c}=vO(t),f=N(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(d,p)=>{var g;return V(),ie("label",{class:K([h(n).b("button"),h(n).is("active",h(l)===h(c)),h(n).is("disabled",h(s)),h(n).is("focus",h(a)),h(n).bm("button",h(o))])},[Lt(de("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p[0]||(p[0]=y=>Un(l)?l.value=y:null),class:K(h(n).be("button","original-radio")),value:h(c),type:"radio",name:d.name||((g=h(u))==null?void 0:g.name),disabled:h(s),onFocus:p[1]||(p[1]=y=>a.value=!0),onBlur:p[2]||(p[2]=y=>a.value=!1),onClick:p[3]||(p[3]=Ot(()=>{},["stop"]))},null,42,pY),[[hA,h(l)]]),de("span",{class:K(h(n).be("button","inner")),style:vt(h(l)===h(c)?h(f):{}),onKeydown:p[4]||(p[4]=Ot(()=>{},["stop"]))},[Ue(d.$slots,"default",{},()=>[dn(ot(d.label),1)])],38)],2)}}});var mO=at(mY,[["__file","radio-button.vue"]]);const gY=tt({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...Xr(["ariaLabel"])}),yY=hO,bY=["id","aria-label","aria-labelledby"],_Y=he({name:"ElRadioGroup"}),wY=he({..._Y,props:gY,emits:yY,setup(e,{emit:t}){const n=e,r=Je("radio"),a=ra(),o=ee(),{formItem:s}=va(),{inputId:l,isLabeledByFormItem:u}=Xo(n,{formItemContext:s}),c=d=>{t(Yt,d),bt(()=>t("change",d))};Ht(()=>{const d=o.value.querySelectorAll("[type=radio]"),p=d[0];!Array.from(d).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=N(()=>n.name||a.value);return nn(pO,Sn({...Wr(n),changeEvent:c,name:f})),We(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(d=>void 0))}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},N(()=>!!n.label)),(d,p)=>(V(),ie("div",{id:h(l),ref_key:"radioGroupRef",ref:o,class:K(h(r).b("group")),role:"radiogroup","aria-label":h(u)?void 0:d.label||d.ariaLabel||"radio-group","aria-labelledby":h(u)?h(s).labelId:void 0},[Ue(d.$slots,"default")],10,bY))}});var gO=at(wY,[["__file","radio-group.vue"]]);const yO=jt(fY,{RadioButton:mO,RadioGroup:gO}),SY=Yn(gO),TY=Yn(mO);var EY=he({name:"NodeContent",setup(){return{ns:Je("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:o}=n;return _t("span",{class:e.e("label")},o?o({node:t,data:r}):a)}});const J_=Symbol(),CY=he({name:"ElCascaderNode",components:{ElCheckbox:So,ElRadio:yO,NodeContent:EY,ElIcon:ht,Check:sh,Loading:nl,ArrowRight:_a},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=dt(J_),r=Je("cascader-node"),a=N(()=>n.isHoverMenu),o=N(()=>n.config.multiple),s=N(()=>n.config.checkStrictly),l=N(()=>{var L;return(L=n.checkedNodes[0])==null?void 0:L.uid}),u=N(()=>e.node.isDisabled),c=N(()=>e.node.isLeaf),f=N(()=>s.value&&!c.value||!u.value),d=N(()=>g(n.expandingNode)),p=N(()=>s.value&&n.checkedNodes.some(g)),g=L=>{var B;const{level:H,uid:G}=e.node;return((B=L==null?void 0:L.pathNodes[H-1])==null?void 0:B.uid)===G},y=()=>{d.value||n.expandNode(e.node)},m=L=>{const{node:B}=e;L!==B.checked&&n.handleCheckChange(B,L)},S=()=>{n.lazyLoad(e.node,()=>{c.value||y()})},_=L=>{a.value&&(P(),!c.value&&t("expand",L))},P=()=>{const{node:L}=e;!f.value||L.loading||(L.loaded?y():S())},A=()=>{a.value&&!c.value||(c.value&&!u.value&&!s.value&&!o.value?k(!0):P())},$=L=>{s.value?(m(L),e.node.loaded&&y()):k(L)},k=L=>{e.node.loaded?(m(L),!s.value&&y()):S()};return{panel:n,isHoverMenu:a,multiple:o,checkStrictly:s,checkedNodeId:l,isDisabled:u,isLeaf:c,expandable:f,inExpandingPath:d,inCheckedPath:p,ns:r,handleHoverExpand:_,handleExpand:P,handleClick:A,handleCheck:k,handleSelectCheck:$}}}),xY=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],IY=de("span",null,null,-1);function AY(e,t,n,r,a,o){const s=Xt("el-checkbox"),l=Xt("el-radio"),u=Xt("check"),c=Xt("el-icon"),f=Xt("node-content"),d=Xt("loading"),p=Xt("arrow-right");return V(),ie("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:K([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...g)=>e.handleHoverExpand&&e.handleHoverExpand(...g)),onFocus:t[3]||(t[3]=(...g)=>e.handleHoverExpand&&e.handleHoverExpand(...g)),onClick:t[4]||(t[4]=(...g)=>e.handleClick&&e.handleClick(...g))},[Ie(" prefix "),e.multiple?(V(),Fe(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=Ot(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(V(),Fe(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=Ot(()=>{},["stop"]))},{default:Ce(()=>[Ie(`
        Add an empty element to avoid render label,
        do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
      `),IY]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(V(),Fe(c,{key:2,class:K(e.ns.e("prefix"))},{default:Ce(()=>[ye(u)]),_:1},8,["class"])):Ie("v-if",!0),Ie(" content "),ye(f),Ie(" postfix "),e.isLeaf?Ie("v-if",!0):(V(),ie(mt,{key:3},[e.node.loading?(V(),Fe(c,{key:0,class:K([e.ns.is("loading"),e.ns.e("postfix")])},{default:Ce(()=>[ye(d)]),_:1},8,["class"])):(V(),Fe(c,{key:1,class:K(["arrow-right",e.ns.e("postfix")])},{default:Ce(()=>[ye(p)]),_:1},8,["class"]))],64))],42,xY)}var PY=at(CY,[["render",AY],["__file","node.vue"]]);const MY=he({name:"ElCascaderMenu",components:{Loading:nl,ElIcon:ht,ElScrollbar:ts,ElCascaderNode:PY},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Gt(),n=Je("cascader-menu"),{t:r}=hn(),a=ra();let o=null,s=null;const l=dt(J_),u=ee(null),c=N(()=>!e.nodes.length),f=N(()=>!l.initialLoaded),d=N(()=>`${a.value}-${e.index}`),p=S=>{o=S.target},g=S=>{if(!(!l.isHoverMenu||!o||!u.value))if(o.contains(S.target)){y();const _=t.vnode.el,{left:P}=_.getBoundingClientRect(),{offsetWidth:A,offsetHeight:$}=_,k=S.clientX-P,L=o.offsetTop,B=L+o.offsetHeight;u.value.innerHTML=`
          <path style="pointer-events: auto;" fill="transparent" d="M${k} ${L} L${A} 0 V${L} Z" />
          <path style="pointer-events: auto;" fill="transparent" d="M${k} ${B} L${A} ${$} V${B} Z" />
        `}else s||(s=window.setTimeout(m,l.config.hoverThreshold))},y=()=>{s&&(clearTimeout(s),s=null)},m=()=>{u.value&&(u.value.innerHTML="",y())};return{ns:n,panel:l,hoverZone:u,isEmpty:c,isLoading:f,menuId:d,t:r,handleExpand:p,handleMouseMove:g,clearHoverZone:m}}});function OY(e,t,n,r,a,o){const s=Xt("el-cascader-node"),l=Xt("loading"),u=Xt("el-icon"),c=Xt("el-scrollbar");return V(),Fe(c,{key:e.menuId,tag:"ul",role:"menu",class:K(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Ce(()=>{var f;return[(V(!0),ie(mt,null,sn(e.nodes,d=>(V(),Fe(s,{key:d.uid,node:d,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(V(),ie("div",{key:0,class:K(e.ns.e("empty-text"))},[ye(u,{size:"14",class:K(e.ns.is("loading"))},{default:Ce(()=>[ye(l)]),_:1},8,["class"]),dn(" "+ot(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(V(),ie("div",{key:1,class:K(e.ns.e("empty-text"))},ot(e.t("el.cascader.noData")),3)):(f=e.panel)!=null&&f.isHoverMenu?(V(),ie("svg",{key:2,ref:"hoverZone",class:K(e.ns.e("hover-zone"))},null,2)):Ie("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var $Y=at(MY,[["render",OY],["__file","menu.vue"]]);let RY=0;const kY=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let L2=class N2{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=RY++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:s,children:l}=n,u=t[l],c=kY(this);this.level=a?0:r?r.level+1:1,this.value=t[o],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(f=>f.value),this.pathLabels=c.map(f=>f.label),this.childrenData=u,this.children=(u||[]).map(f=>new N2(f,n,this)),this.loaded=!n.lazy||this.isLeaf||!so(u)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:o}=r;return(Pt(a)?a(t,this):!!t[a])||!o&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:o,leaf:s}=n,l=Pt(s)?s(t,this):t[s];return vr(l)?o&&!a?!1:!(Array.isArray(r)&&r.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new N2(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${si(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${si(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,o)=>{const s=o.checked?1:o.indeterminate?.5:0;return a+s},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const D2=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(D2(r.children,t))),n),[]);class hC{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new L2(a,this.config));this.nodes=r,this.allNodes=D2(r,!1),this.leafNodes=D2(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new L2(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>ca(a.value,t)||ca(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>ca(t.value,r)&&t.level===a)||null}}const bO=tt({modelValue:{type:xe([Number,String,Array])},options:{type:xe(Array),default:()=>[]},props:{type:xe(Object),default:()=>({})}}),LY={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:xn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},NY=e=>N(()=>({...LY,...e.props})),pC=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},DY=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():MA(e)&&e.click()},FY=(e,t)=>{const n=t.slice(0),r=n.map(o=>o.uid),a=e.reduce((o,s)=>{const l=r.indexOf(s.uid);return l>-1&&(o.push(s),n.splice(l,1),r.splice(l,1)),o},[]);return a.push(...n),a},BY=he({name:"ElCascaderPanel",components:{ElCascaderMenu:$Y},props:{...bO,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Yt,Hn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Je("cascader"),o=NY(e);let s=null;const l=ee(!0),u=ee([]),c=ee(null),f=ee([]),d=ee(null),p=ee([]),g=N(()=>o.value.expandTrigger==="hover"),y=N(()=>e.renderLabel||n.default),m=()=>{const{options:Q}=e,ue=o.value;r=!1,s=new hC(Q,ue),f.value=[s.getNodes()],ue.lazy&&so(e.options)?(l.value=!1,S(void 0,se=>{se&&(s=new hC(se,ue),f.value=[s.getNodes()]),l.value=!0,H(!1,!0)})):H(!1,!0)},S=(Q,ue)=>{const se=o.value;Q=Q||new L2({},se,void 0,!0),Q.loading=!0;const ne=J=>{const X=Q,te=X.root?null:X;J&&(s==null||s.appendNodes(J,te)),X.loading=!1,X.loaded=!0,X.childrenData=X.childrenData||[],ue&&ue(J)};se.lazyLoad(Q,ne)},_=(Q,ue)=>{var se;const{level:ne}=Q,J=f.value.slice(0,ne);let X;Q.isLeaf?X=Q.pathNodes[ne-2]:(X=Q,J.push(Q.children)),((se=d.value)==null?void 0:se.uid)!==(X==null?void 0:X.uid)&&(d.value=Q,f.value=J,!ue&&t("expand-change",(Q==null?void 0:Q.pathValues)||[]))},P=(Q,ue,se=!0)=>{const{checkStrictly:ne,multiple:J}=o.value,X=p.value[0];r=!0,!J&&(X==null||X.doCheck(!1)),Q.doCheck(ue),B(),se&&!J&&!ne&&t("close"),!se&&!J&&!ne&&A(Q)},A=Q=>{Q&&(Q=Q.parent,A(Q),Q&&_(Q))},$=Q=>s==null?void 0:s.getFlattedNodes(Q),k=Q=>{var ue;return(ue=$(Q))==null?void 0:ue.filter(se=>se.checked!==!1)},L=()=>{p.value.forEach(Q=>Q.doCheck(!1)),B(),f.value=f.value.slice(0,1),d.value=null,t("expand-change",[])},B=()=>{var Q;const{checkStrictly:ue,multiple:se}=o.value,ne=p.value,J=k(!ue),X=FY(ne,J),te=X.map(Y=>Y.valueByOption);p.value=X,c.value=se?te:(Q=te[0])!=null?Q:null},H=(Q=!1,ue=!1)=>{const{modelValue:se}=e,{lazy:ne,multiple:J,checkStrictly:X}=o.value,te=!X;if(!(!l.value||r||!ue&&ca(se,c.value)))if(ne&&!Q){const Z=fE($9(ja(se))).map(ae=>s==null?void 0:s.getNodeByValue(ae)).filter(ae=>!!ae&&!ae.loaded&&!ae.loading);Z.length?Z.forEach(ae=>{S(ae,()=>H(!1,ue))}):H(!0,ue)}else{const Y=J?ja(se):[se],Z=fE(Y.map(ae=>s==null?void 0:s.getNodeByValue(ae,te)));G(Z,ue),c.value=S0(se)}},G=(Q,ue=!0)=>{const{checkStrictly:se}=o.value,ne=p.value,J=Q.filter(Y=>!!Y&&(se||Y.isLeaf)),X=s==null?void 0:s.getSameNode(d.value),te=ue&&X||J[0];te?te.pathNodes.forEach(Y=>_(Y,!0)):d.value=null,ne.forEach(Y=>Y.doCheck(!1)),Sn(J).forEach(Y=>Y.doCheck(!0)),p.value=J,bt(j)},j=()=>{ln&&u.value.forEach(Q=>{const ue=Q==null?void 0:Q.$el;if(ue){const se=ue.querySelector(`.${a.namespace.value}-scrollbar__wrap`),ne=ue.querySelector(`.${a.b("node")}.${a.is("active")}`)||ue.querySelector(`.${a.b("node")}.in-active-path`);xP(se,ne)}})},W=Q=>{const ue=Q.target,{code:se}=Q;switch(se){case St.up:case St.down:{Q.preventDefault();const ne=se===St.up?-1:1;Rp(OA(ue,ne,`.${a.b("node")}[tabindex="-1"]`));break}case St.left:{Q.preventDefault();const ne=u.value[pC(ue)-1],J=ne==null?void 0:ne.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Rp(J);break}case St.right:{Q.preventDefault();const ne=u.value[pC(ue)+1],J=ne==null?void 0:ne.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Rp(J);break}case St.enter:DY(ue);break}};return nn(J_,Sn({config:o,expandingNode:d,checkedNodes:p,isHoverMenu:g,initialLoaded:l,renderLabelFn:y,lazyLoad:S,expandNode:_,handleCheckChange:P})),We([o,()=>e.options],m,{deep:!0,immediate:!0}),We(()=>e.modelValue,()=>{r=!1,H()},{deep:!0}),We(()=>c.value,Q=>{ca(Q,e.modelValue)||(t(Yt,Q),t(Hn,Q))}),FI(()=>u.value=[]),Ht(()=>!so(e.modelValue)&&H()),{ns:a,menuList:u,menus:f,checkedNodes:p,handleKeyDown:W,handleCheckChange:P,getFlattedNodes:$,getCheckedNodes:k,clearCheckedNodes:L,calculateCheckedValue:B,scrollToExpandingNode:j}}});function HY(e,t,n,r,a,o){const s=Xt("el-cascader-menu");return V(),ie("div",{class:K([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...l)=>e.handleKeyDown&&e.handleKeyDown(...l))},[(V(!0),ie(mt,null,sn(e.menus,(l,u)=>(V(),Fe(s,{key:u,ref_for:!0,ref:c=>e.menuList[u]=c,index:u,nodes:[...l]},null,8,["index","nodes"]))),128))],34)}var Up=at(BY,[["render",HY],["__file","index.vue"]]);Up.install=e=>{e.component(Up.name,Up)};const _O=Up,UY=_O,Rv=tt({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Si},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),VY={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},GY=he({name:"ElTag"}),jY=he({...GY,props:Rv,emits:VY,setup(e,{emit:t}){const n=e,r=yr(),a=Je("tag"),o=N(()=>{const{type:u,hit:c,effect:f,closable:d,round:p}=n;return[a.b(),a.is("closable",d),a.m(u||"primary"),a.m(r.value),a.m(f),a.is("hit",c),a.is("round",p)]}),s=u=>{t("close",u)},l=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(V(),ie("span",{key:0,class:K(h(o)),style:vt({backgroundColor:u.color}),onClick:l},[de("span",{class:K(h(a).e("content"))},[Ue(u.$slots,"default")],2),u.closable?(V(),Fe(h(ht),{key:0,class:K(h(a).e("close")),onClick:Ot(s,["stop"])},{default:Ce(()=>[ye(h(Go))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],6)):(V(),Fe(Tr,{key:1,name:`${h(a).namespace.value}-zoom-in-center`,appear:""},{default:Ce(()=>[de("span",{class:K(h(o)),style:vt({backgroundColor:u.color}),onClick:l},[de("span",{class:K(h(a).e("content"))},[Ue(u.$slots,"default")],2),u.closable?(V(),Fe(h(ht),{key:0,class:K(h(a).e("close")),onClick:Ot(s,["stop"])},{default:Ce(()=>[ye(h(Go))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],6)]),_:3},8,["name"]))}});var zY=at(jY,[["__file","tag.vue"]]);const Ef=jt(zY),KY=tt({...bO,size:Rr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:xe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:xe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Lr.teleported,tagType:{...Rv.type,default:"info"},validateEvent:{type:Boolean,default:!0},...Gc}),WY={[Yt]:e=>!0,[Hn]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>mr(e),expandChange:e=>!!e,removeTag:e=>!!e},XY={key:0},YY=["placeholder","onKeydown"],JY=["onClick"],qY="ElCascader",QY=he({name:qY}),ZY=he({...QY,props:KY,emits:WY,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Te})=>{const{modifiersData:De,placement:it}=Te;["right","left","bottom","top"].includes(it)||(De.arrow.x=35)},requires:["arrow"]}]},o=lu();let s=0,l=0;const u=Je("cascader"),c=Je("input"),{t:f}=hn(),{form:d,formItem:p}=va(),{valueOnClear:g}=Pv(r),y=ee(null),m=ee(null),S=ee(null),_=ee(null),P=ee(null),A=ee(!1),$=ee(!1),k=ee(!1),L=ee(!1),B=ee(""),H=ee(""),G=ee([]),j=ee([]),W=ee([]),Q=ee(!1),ue=N(()=>o.style),se=N(()=>r.disabled||(d==null?void 0:d.disabled)),ne=N(()=>r.placeholder||f("el.cascader.placeholder")),J=N(()=>H.value||G.value.length>0||Q.value?"":ne.value),X=yr(),te=N(()=>["small"].includes(X.value)?"small":"default"),Y=N(()=>!!r.props.multiple),Z=N(()=>!r.filterable||Y.value),ae=N(()=>Y.value?H.value:B.value),ve=N(()=>{var Te;return((Te=_.value)==null?void 0:Te.checkedNodes)||[]}),we=N(()=>!r.clearable||se.value||k.value||!$.value?!1:!!ve.value.length),Me=N(()=>{const{showAllLevels:Te,separator:De}=r,it=ve.value;return it.length?Y.value?"":it[0].calcText(Te,De):""}),Ge=N(()=>(p==null?void 0:p.validateState)||""),Ee=N({get(){return S0(r.modelValue)},set(Te){const De=Te||g.value;n(Yt,De),n(Hn,De),r.validateEvent&&(p==null||p.validate("change").catch(it=>void 0))}}),pe=N(()=>[u.b(),u.m(X.value),u.is("disabled",se.value),o.class]),_e=N(()=>[c.e("icon"),"icon-arrow-down",u.is("reverse",A.value)]),He=N(()=>u.is("focus",A.value||L.value)),Ae=N(()=>{var Te,De;return(De=(Te=y.value)==null?void 0:Te.popperRef)==null?void 0:De.contentRef}),ke=Te=>{var De,it,Pe;se.value||(Te=Te??!A.value,Te!==A.value&&(A.value=Te,(it=(De=m.value)==null?void 0:De.input)==null||it.setAttribute("aria-expanded",`${Te}`),Te?(ze(),bt((Pe=_.value)==null?void 0:Pe.scrollToExpandingNode)):r.filterable&&Ke(),n("visibleChange",Te)))},ze=()=>{bt(()=>{var Te;(Te=y.value)==null||Te.updatePopper()})},ce=()=>{k.value=!1},me=Te=>{const{showAllLevels:De,separator:it}=r;return{node:Te,key:Te.uid,text:Te.calcText(De,it),hitState:!1,closable:!se.value&&!Te.isDisabled,isCollapseTag:!1}},Be=Te=>{var De;const it=Te.node;it.doCheck(!1),(De=_.value)==null||De.calculateCheckedValue(),n("removeTag",it.valueByOption)},be=()=>{if(!Y.value)return;const Te=ve.value,De=[],it=[];if(Te.forEach(Pe=>it.push(me(Pe))),j.value=it,Te.length){Te.slice(0,r.maxCollapseTags).forEach(kt=>De.push(me(kt)));const Pe=Te.slice(r.maxCollapseTags),rt=Pe.length;rt&&(r.collapseTags?De.push({key:-1,text:`+ ${rt}`,closable:!1,isCollapseTag:!0}):Pe.forEach(kt=>De.push(me(kt))))}G.value=De},Oe=()=>{var Te,De;const{filterMethod:it,showAllLevels:Pe,separator:rt}=r,kt=(De=(Te=_.value)==null?void 0:Te.getFlattedNodes(!r.props.checkStrictly))==null?void 0:De.filter(Jt=>Jt.isDisabled?!1:(Jt.calcText(Pe,rt),it(Jt,ae.value)));Y.value&&(G.value.forEach(Jt=>{Jt.hitState=!1}),j.value.forEach(Jt=>{Jt.hitState=!1})),k.value=!0,W.value=kt,ze()},Ye=()=>{var Te;let De;k.value&&P.value?De=P.value.$el.querySelector(`.${u.e("suggestion-item")}`):De=(Te=_.value)==null?void 0:Te.$el.querySelector(`.${u.b("node")}[tabindex="-1"]`),De&&(De.focus(),!k.value&&De.click())},qe=()=>{var Te,De;const it=(Te=m.value)==null?void 0:Te.input,Pe=S.value,rt=(De=P.value)==null?void 0:De.$el;if(!(!ln||!it)){if(rt){const kt=rt.querySelector(`.${u.e("suggestion-list")}`);kt.style.minWidth=`${it.offsetWidth}px`}if(Pe){const{offsetHeight:kt}=Pe,Jt=G.value.length>0?`${Math.max(kt+6,s)}px`:`${s}px`;it.style.height=Jt,ze()}}},Qe=Te=>{var De;return(De=_.value)==null?void 0:De.getCheckedNodes(Te)},et=Te=>{ze(),n("expandChange",Te)},je=Te=>{var De;const it=(De=Te.target)==null?void 0:De.value;if(Te.type==="compositionend")Q.value=!1,bt(()=>Ne(it));else{const Pe=it[it.length-1]||"";Q.value=!__(Pe)}},lt=Te=>{if(!Q.value)switch(Te.code){case St.enter:ke();break;case St.down:ke(!0),bt(Ye),Te.preventDefault();break;case St.esc:A.value===!0&&(Te.preventDefault(),Te.stopPropagation(),ke(!1));break;case St.tab:ke(!1);break}},ut=()=>{var Te;(Te=_.value)==null||Te.clearCheckedNodes(),!A.value&&r.filterable&&Ke(),ke(!1)},Ke=()=>{const{value:Te}=Me;B.value=Te,H.value=Te},ct=Te=>{var De,it;const{checked:Pe}=Te;Y.value?(De=_.value)==null||De.handleCheckChange(Te,!Pe,!1):(!Pe&&((it=_.value)==null||it.handleCheckChange(Te,!0,!1)),ke(!1))},Et=Te=>{const De=Te.target,{code:it}=Te;switch(it){case St.up:case St.down:{const Pe=it===St.up?-1:1;Rp(OA(De,Pe,`.${u.e("suggestion-item")}[tabindex="-1"]`));break}case St.enter:De.click();break}},Ut=()=>{const Te=G.value,De=Te[Te.length-1];l=H.value?0:l+1,!(!De||!l||r.collapseTags&&Te.length>1)&&(De.hitState?Be(De):De.hitState=!0)},en=Te=>{const De=Te.target,it=u.e("search-input");De.className===it&&(L.value=!0),n("focus",Te)},gt=Te=>{L.value=!1,n("blur",Te)},ge=Ha(()=>{const{value:Te}=ae;if(!Te)return;const De=r.beforeFilter(Te);rf(De)?De.then(Oe).catch(()=>{}):De!==!1?Oe():ce()},r.debounce),Ne=(Te,De)=>{!A.value&&ke(!0),!(De!=null&&De.isComposing)&&(Te?ge():ce())},$e=Te=>Number.parseFloat(iD(c.cssVarName("input-height"),Te).value)-2;return We(k,ze),We([ve,se],be),We(G,()=>{bt(()=>qe())}),We(X,async()=>{await bt();const Te=m.value.input;s=$e(Te)||s,qe()}),We(Me,Ke,{immediate:!0}),Ht(()=>{const Te=m.value.input,De=$e(Te);s=Te.offsetHeight||De,Wn(Te,qe)}),t({getCheckedNodes:Qe,cascaderPanelRef:_,togglePopperVisible:ke,contentRef:Ae}),(Te,De)=>(V(),Fe(h(fa),{ref_key:"tooltipRef",ref:y,visible:A.value,teleported:Te.teleported,"popper-class":[h(u).e("dropdown"),Te.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${h(u).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ce},{default:Ce(()=>[Lt((V(),ie("div",{class:K(h(pe)),style:vt(h(ue)),onClick:De[5]||(De[5]=()=>ke(h(Z)?void 0:!0)),onKeydown:lt,onMouseenter:De[6]||(De[6]=it=>$.value=!0),onMouseleave:De[7]||(De[7]=it=>$.value=!1)},[ye(h(ua),{ref_key:"input",ref:m,modelValue:B.value,"onUpdate:modelValue":De[1]||(De[1]=it=>B.value=it),placeholder:h(J),readonly:h(Z),disabled:h(se),"validate-event":!1,size:h(X),class:K(h(He)),tabindex:h(Y)&&Te.filterable&&!h(se)?-1:void 0,onCompositionstart:je,onCompositionupdate:je,onCompositionend:je,onFocus:en,onBlur:gt,onInput:Ne},{suffix:Ce(()=>[h(we)?(V(),Fe(h(ht),{key:"clear",class:K([h(c).e("icon"),"icon-circle-close"]),onClick:Ot(ut,["stop"])},{default:Ce(()=>[ye(h(tl))]),_:1},8,["class","onClick"])):(V(),Fe(h(ht),{key:"arrow-down",class:K(h(_e)),onClick:De[0]||(De[0]=Ot(it=>ke(),["stop"]))},{default:Ce(()=>[ye(h(Zi))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),h(Y)?(V(),ie("div",{key:0,ref_key:"tagWrapper",ref:S,class:K([h(u).e("tags"),h(u).is("validate",!!h(Ge))])},[(V(!0),ie(mt,null,sn(G.value,it=>(V(),Fe(h(Ef),{key:it.key,type:Te.tagType,size:h(te),hit:it.hitState,closable:it.closable,"disable-transitions":"",onClose:Pe=>Be(it)},{default:Ce(()=>[it.isCollapseTag===!1?(V(),ie("span",XY,ot(it.text),1)):(V(),Fe(h(fa),{key:1,disabled:A.value||!Te.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Ce(()=>[de("span",null,ot(it.text),1)]),content:Ce(()=>[de("div",{class:K(h(u).e("collapse-tags"))},[(V(!0),ie(mt,null,sn(j.value.slice(Te.maxCollapseTags),(Pe,rt)=>(V(),ie("div",{key:rt,class:K(h(u).e("collapse-tag"))},[(V(),Fe(h(Ef),{key:Pe.key,class:"in-tooltip",type:Te.tagType,size:h(te),hit:Pe.hitState,closable:Pe.closable,"disable-transitions":"",onClose:kt=>Be(Pe)},{default:Ce(()=>[de("span",null,ot(Pe.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),Te.filterable&&!h(se)?Lt((V(),ie("input",{key:0,"onUpdate:modelValue":De[2]||(De[2]=it=>H.value=it),type:"text",class:K(h(u).e("search-input")),placeholder:h(Me)?"":h(ne),onInput:De[3]||(De[3]=it=>Ne(H.value,it)),onClick:De[4]||(De[4]=Ot(it=>ke(!0),["stop"])),onKeydown:An(Ut,["delete"]),onCompositionstart:je,onCompositionupdate:je,onCompositionend:je,onFocus:en,onBlur:gt},null,42,YY)),[[jb,H.value]]):Ie("v-if",!0)],2)):Ie("v-if",!0)],38)),[[h(Ki),()=>ke(!1),h(Ae)]])]),content:Ce(()=>[Lt(ye(h(_O),{ref_key:"cascaderPanelRef",ref:_,modelValue:h(Ee),"onUpdate:modelValue":De[8]||(De[8]=it=>Un(Ee)?Ee.value=it:null),options:Te.options,props:r.props,border:!1,"render-label":Te.$slots.default,onExpandChange:et,onClose:De[9]||(De[9]=it=>Te.$nextTick(()=>ke(!1)))},null,8,["modelValue","options","props","render-label"]),[[bn,!k.value]]),Te.filterable?Lt((V(),Fe(h(ts),{key:0,ref_key:"suggestionPanel",ref:P,tag:"ul",class:K(h(u).e("suggestion-panel")),"view-class":h(u).e("suggestion-list"),onKeydown:Et},{default:Ce(()=>[W.value.length?(V(!0),ie(mt,{key:0},sn(W.value,it=>(V(),ie("li",{key:it.uid,class:K([h(u).e("suggestion-item"),h(u).is("checked",it.checked)]),tabindex:-1,onClick:Pe=>ct(it)},[de("span",null,ot(it.text),1),it.checked?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[ye(h(sh))]),_:1})):Ie("v-if",!0)],10,JY))),128)):Ue(Te.$slots,"empty",{key:1},()=>[de("li",{class:K(h(u).e("empty-text"))},ot(h(f)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[bn,k.value]]):Ie("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Vp=at(ZY,[["__file","cascader.vue"]]);Vp.install=e=>{e.component(Vp.name,Vp)};const eJ=Vp,tJ=eJ,nJ=tt({checked:{type:Boolean,default:!1},type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),rJ={"update:checked":e=>mr(e),[Hn]:e=>mr(e)},aJ=he({name:"ElCheckTag"}),oJ=he({...aJ,props:nJ,emits:rJ,setup(e,{emit:t}){const n=e,r=Je("check-tag"),a=N(()=>[r.b(),r.is("checked",n.checked),r.m(n.type||"primary")]),o=()=>{const s=!n.checked;t(Hn,s),t("update:checked",s)};return(s,l)=>(V(),ie("span",{class:K(h(a)),onClick:o},[Ue(s.$slots,"default")],2))}});var iJ=at(oJ,[["__file","check-tag.vue"]]);const sJ=jt(iJ),wO=Symbol("rowContextKey"),lJ=["start","center","end","space-around","space-between","space-evenly"],uJ=["top","middle","bottom"],cJ=tt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:lJ,default:"start"},align:{type:String,values:uJ}}),dJ=he({name:"ElRow"}),fJ=he({...dJ,props:cJ,setup(e){const t=e,n=Je("row"),r=N(()=>t.gutter);nn(wO,{gutter:r});const a=N(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),o=N(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(V(),Fe(Zt(s.tag),{class:K(h(o)),style:vt(h(a))},{default:Ce(()=>[Ue(s.$slots,"default")]),_:3},8,["class","style"]))}});var hJ=at(fJ,[["__file","row.vue"]]);const pJ=jt(hJ),vJ=tt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:xe([Number,Object]),default:()=>Xn({})},sm:{type:xe([Number,Object]),default:()=>Xn({})},md:{type:xe([Number,Object]),default:()=>Xn({})},lg:{type:xe([Number,Object]),default:()=>Xn({})},xl:{type:xe([Number,Object]),default:()=>Xn({})}}),mJ=he({name:"ElCol"}),gJ=he({...mJ,props:vJ,setup(e){const t=e,{gutter:n}=dt(wO,{gutter:N(()=>0)}),r=Je("col"),a=N(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),o=N(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const f=t[c];It(f)&&(c==="span"?s.push(r.b(`${t[c]}`)):f>0&&s.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{It(t[c])?s.push(r.b(`${c}-${t[c]}`)):Kt(t[c])&&Object.entries(t[c]).forEach(([f,d])=>{s.push(f!=="span"?r.b(`${c}-${f}-${d}`):r.b(`${c}-${d}`))})}),n.value&&s.push(r.is("guttered")),[r.b(),s]});return(s,l)=>(V(),Fe(Zt(s.tag),{class:K(h(o)),style:vt(h(a))},{default:Ce(()=>[Ue(s.$slots,"default")]),_:3},8,["class","style"]))}});var yJ=at(gJ,[["__file","col.vue"]]);const bJ=jt(yJ),vC=e=>It(e)||Rt(e)||st(e),_J=tt({accordion:Boolean,modelValue:{type:xe([Array,String,Number]),default:()=>Xn([])}}),wJ={[Yt]:vC,[Hn]:vC},SO=Symbol("collapseContextKey"),SJ=(e,t)=>{const n=ee(Hs(e.modelValue)),r=o=>{n.value=o;const s=e.accordion?n.value[0]:n.value;t(Yt,s),t(Hn,s)},a=o=>{if(e.accordion)r([n.value[0]===o?"":o]);else{const s=[...n.value],l=s.indexOf(o);l>-1?s.splice(l,1):s.push(o),r(s)}};return We(()=>e.modelValue,()=>n.value=Hs(e.modelValue),{deep:!0}),nn(SO,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},TJ=()=>{const e=Je("collapse");return{rootKls:N(()=>e.b())}},EJ=he({name:"ElCollapse"}),CJ=he({...EJ,props:_J,emits:wJ,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:o}=SJ(r,n),{rootKls:s}=TJ();return t({activeNames:a,setActiveNames:o}),(l,u)=>(V(),ie("div",{class:K(h(s))},[Ue(l.$slots,"default")],2))}});var xJ=at(CJ,[["__file","collapse.vue"]]);const IJ=he({name:"ElCollapseTransition"}),AJ=he({...IJ,setup(e){const t=Je("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,o)=>(V(),Fe(Tr,rn({name:h(t).b()},y6(r)),{default:Ce(()=>[Ue(a.$slots,"default")]),_:3},16,["name"]))}});var Gp=at(AJ,[["__file","collapse-transition.vue"]]);Gp.install=e=>{e.component(Gp.name,Gp)};const kv=Gp,PJ=kv,MJ=tt({title:{type:String,default:""},name:{type:xe([String,Number]),default:void 0},disabled:Boolean}),OJ=e=>{const t=dt(SO),{namespace:n}=Je("collapse"),r=ee(!1),a=ee(!1),o=R_(),s=N(()=>o.current++),l=N(()=>{var p;return(p=e.name)!=null?p:`${n.value}-id-${o.prefix}-${h(s)}`}),u=N(()=>t==null?void 0:t.activeNames.value.includes(h(l)));return{focusing:r,id:s,isActive:u,handleFocus:()=>{setTimeout(()=>{a.value?a.value=!1:r.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(h(l)),r.value=!1,a.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(h(l))}}},$J=(e,{focusing:t,isActive:n,id:r})=>{const a=Je("collapse"),o=N(()=>[a.b("item"),a.is("active",h(n)),a.is("disabled",e.disabled)]),s=N(()=>[a.be("item","header"),a.is("active",h(n)),{focusing:h(t)&&!e.disabled}]),l=N(()=>[a.be("item","arrow"),a.is("active",h(n))]),u=N(()=>a.be("item","wrap")),c=N(()=>a.be("item","content")),f=N(()=>a.b(`content-${h(r)}`)),d=N(()=>a.b(`head-${h(r)}`));return{arrowKls:l,headKls:s,rootKls:o,itemWrapperKls:u,itemContentKls:c,scopedContentId:f,scopedHeadId:d}},RJ=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],kJ=["id","aria-hidden","aria-labelledby"],LJ=he({name:"ElCollapseItem"}),NJ=he({...LJ,props:MJ,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:o,handleFocus:s,handleHeaderClick:l,handleEnterClick:u}=OJ(n),{arrowKls:c,headKls:f,rootKls:d,itemWrapperKls:p,itemContentKls:g,scopedContentId:y,scopedHeadId:m}=$J(n,{focusing:r,isActive:o,id:a});return t({isActive:o}),(S,_)=>(V(),ie("div",{class:K(h(d))},[de("button",{id:h(m),class:K(h(f)),"aria-expanded":h(o),"aria-controls":h(y),"aria-describedby":h(y),tabindex:S.disabled?-1:0,type:"button",onClick:_[0]||(_[0]=(...P)=>h(l)&&h(l)(...P)),onKeydown:_[1]||(_[1]=An(Ot((...P)=>h(u)&&h(u)(...P),["stop","prevent"]),["space","enter"])),onFocus:_[2]||(_[2]=(...P)=>h(s)&&h(s)(...P)),onBlur:_[3]||(_[3]=P=>r.value=!1)},[Ue(S.$slots,"title",{},()=>[dn(ot(S.title),1)]),ye(h(ht),{class:K(h(c))},{default:Ce(()=>[ye(h(_a))]),_:1},8,["class"])],42,RJ),ye(h(kv),null,{default:Ce(()=>[Lt(de("div",{id:h(y),role:"region",class:K(h(p)),"aria-hidden":!h(o),"aria-labelledby":h(m)},[de("div",{class:K(h(g))},[Ue(S.$slots,"default")],2)],10,kJ),[[bn,h(o)]])]),_:3})],2))}});var TO=at(NJ,[["__file","collapse-item.vue"]]);const DJ=jt(xJ,{CollapseItem:TO}),FJ=Yn(TO),BJ=tt({color:{type:xe(Object),required:!0},vertical:{type:Boolean,default:!1}});let Fm=!1;function Cf(e,t){if(!ln)return;const n=function(o){var s;(s=t.drag)==null||s.call(t,o)},r=function(o){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Fm=!1,(s=t.end)==null||s.call(t,o)},a=function(o){var s;Fm||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Fm=!0,(s=t.start)==null||s.call(t,o))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const HJ=e=>{const t=Gt(),n=Fn(),r=Fn();function a(s){s.target!==n.value&&o(s)}function o(s){if(!r.value||!n.value)return;const u=t.vnode.el.getBoundingClientRect(),{clientX:c,clientY:f}=Yb(s);if(e.vertical){let d=f-u.top;d=Math.max(n.value.offsetHeight/2,d),d=Math.min(d,u.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((d-n.value.offsetHeight/2)/(u.height-n.value.offsetHeight)*100))}else{let d=c-u.left;d=Math.max(n.value.offsetWidth/2,d),d=Math.min(d,u.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((d-n.value.offsetWidth/2)/(u.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:a}},UJ=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=Gt(),o=Je("color-alpha-slider"),s=ee(0),l=ee(0),u=ee();function c(){if(!n.value||e.vertical)return 0;const P=a.vnode.el,A=e.color.get("alpha");return P?Math.round(A*(P.offsetWidth-n.value.offsetWidth/2)/100):0}function f(){if(!n.value)return 0;const P=a.vnode.el;if(!e.vertical)return 0;const A=e.color.get("alpha");return P?Math.round(A*(P.offsetHeight-n.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:P,g:A,b:$}=e.color.toRgb();return`linear-gradient(to right, rgba(${P}, ${A}, ${$}, 0) 0%, rgba(${P}, ${A}, ${$}, 1) 100%)`}return""}function p(){s.value=c(),l.value=f(),u.value=d()}Ht(()=>{if(!t.value||!n.value)return;const P={drag:A=>{r(A)},end:A=>{r(A)}};Cf(t.value,P),Cf(n.value,P),p()}),We(()=>e.color.get("alpha"),()=>p()),We(()=>e.color.value,()=>p());const g=N(()=>[o.b(),o.is("vertical",e.vertical)]),y=N(()=>o.e("bar")),m=N(()=>o.e("thumb")),S=N(()=>({background:u.value})),_=N(()=>({left:rr(s.value),top:rr(l.value)}));return{rootKls:g,barKls:y,barStyle:S,thumbKls:m,thumbStyle:_,update:p}},VJ="ElColorAlphaSlider",GJ=he({name:VJ}),jJ=he({...GJ,props:BJ,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:o,handleClick:s}=HJ(n),{rootKls:l,barKls:u,barStyle:c,thumbKls:f,thumbStyle:d,update:p}=UJ(n,{bar:r,thumb:a,handleDrag:o});return t({update:p,bar:r,thumb:a}),(g,y)=>(V(),ie("div",{class:K(h(l))},[de("div",{ref_key:"bar",ref:r,class:K(h(u)),style:vt(h(c)),onClick:y[0]||(y[0]=(...m)=>h(s)&&h(s)(...m))},null,6),de("div",{ref_key:"thumb",ref:a,class:K(h(f)),style:vt(h(d))},null,6)],2))}});var zJ=at(jJ,[["__file","alpha-slider.vue"]]);const KJ=he({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Je("color-hue-slider"),n=Gt(),r=ee(),a=ee(),o=ee(0),s=ee(0),l=N(()=>e.color.get("hue"));We(()=>l.value,()=>{p()});function u(g){g.target!==r.value&&c(g)}function c(g){if(!a.value||!r.value)return;const m=n.vnode.el.getBoundingClientRect(),{clientX:S,clientY:_}=Yb(g);let P;if(e.vertical){let A=_-m.top;A=Math.min(A,m.height-r.value.offsetHeight/2),A=Math.max(r.value.offsetHeight/2,A),P=Math.round((A-r.value.offsetHeight/2)/(m.height-r.value.offsetHeight)*360)}else{let A=S-m.left;A=Math.min(A,m.width-r.value.offsetWidth/2),A=Math.max(r.value.offsetWidth/2,A),P=Math.round((A-r.value.offsetWidth/2)/(m.width-r.value.offsetWidth)*360)}e.color.set("hue",P)}function f(){if(!r.value)return 0;const g=n.vnode.el;if(e.vertical)return 0;const y=e.color.get("hue");return g?Math.round(y*(g.offsetWidth-r.value.offsetWidth/2)/360):0}function d(){if(!r.value)return 0;const g=n.vnode.el;if(!e.vertical)return 0;const y=e.color.get("hue");return g?Math.round(y*(g.offsetHeight-r.value.offsetHeight/2)/360):0}function p(){o.value=f(),s.value=d()}return Ht(()=>{if(!a.value||!r.value)return;const g={drag:y=>{c(y)},end:y=>{c(y)}};Cf(a.value,g),Cf(r.value,g),p()}),{bar:a,thumb:r,thumbLeft:o,thumbTop:s,hueValue:l,handleClick:u,update:p,ns:t}}});function WJ(e,t,n,r,a,o){return V(),ie("div",{class:K([e.ns.b(),e.ns.is("vertical",e.vertical)])},[de("div",{ref:"bar",class:K(e.ns.e("bar")),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},null,2),de("div",{ref:"thumb",class:K(e.ns.e("thumb")),style:vt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var XJ=at(KJ,[["render",WJ],["__file","hue-slider.vue"]]);const YJ=tt({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Rr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:Lr.teleported,predefine:{type:xe(Array)},validateEvent:{type:Boolean,default:!0},...Xr(["ariaLabel"])}),JJ={[Yt]:e=>Rt(e)||Br(e),[Hn]:e=>Rt(e)||Br(e),activeChange:e=>Rt(e)||Br(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},EO=Symbol("colorPickerContextKey"),mC=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},qJ=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},QJ=function(e){return typeof e=="string"&&e.includes("%")},Yu=function(e,t){qJ(e)&&(e="100%");const n=QJ(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},gC={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},jp=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${gC[t]||t}${gC[n]||n}`},yC=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${jp(e)}${jp(t)}${jp(n)}`},Bm={A:10,B:11,C:12,D:13,E:14,F:15},fl=function(e){return e.length===2?(Bm[e[0].toUpperCase()]||+e[0])*16+(Bm[e[1].toUpperCase()]||+e[1]):Bm[e[1].toUpperCase()]||+e[1]},ZJ=function(e,t,n){t=t/100,n=n/100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const o=(n+t)/2,s=n===0?2*r/(a+r):2*t/(n+t);return{h:e,s:s*100,v:o*100}},bC=(e,t,n)=>{e=Yu(e,255),t=Yu(t,255),n=Yu(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let o;const s=r,l=r-a,u=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:{o=(t-n)/l+(t<n?6:0);break}case t:{o=(n-e)/l+2;break}case n:{o=(e-t)/l+4;break}}o/=6}return{h:o*360,s:u*100,v:s*100}},sd=function(e,t,n){e=Yu(e,360)*6,t=Yu(t,100),n=Yu(n,100);const r=Math.floor(e),a=e-r,o=n*(1-t),s=n*(1-a*t),l=n*(1-(1-a)*t),u=r%6,c=[n,s,o,o,l,n][u],f=[l,n,n,s,o,o][u],d=[o,o,l,n,n,s][u];return{r:Math.round(c*255),g:Math.round(f*255),b:Math.round(d*255)}};class Wd{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)cn(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)cn(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return sd(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,o)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,o)=>o>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:o,v:s}=ZJ(r[0],r[1],r[2]);n(a,o,s)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,o)=>o>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,o)=>o>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:o,v:s}=bC(r[0],r[1],r[2]);n(a,o,s)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,o,s;r.length===3?(a=fl(r[0]+r[0]),o=fl(r[1]+r[1]),s=fl(r[2]+r[2])):(r.length===6||r.length===8)&&(a=fl(r.slice(0,2)),o=fl(r.slice(2,4)),s=fl(r.slice(4,6))),r.length===8?this._alpha=fl(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:l,s:u,v:c}=bC(a,o,s);n(l,u,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const s=mC(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${yC(sd(t,n,r))}${jp(a*255/100)}`;break}default:{const{r:s,g:l,b:u}=sd(t,n,r);this.value=`rgba(${s}, ${l}, ${u}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const s=mC(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:s,g:l,b:u}=sd(t,n,r);this.value=`rgb(${s}, ${l}, ${u})`;break}default:this.value=yC(sd(t,n,r))}}}const eq=he({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Je("color-predefine"),{currentColor:n}=dt(EO),r=ee(o(e.colors,e.color));We(()=>n.value,s=>{const l=new Wd;l.fromString(s),r.value.forEach(u=>{u.selected=l.compare(u)})}),ta(()=>{r.value=o(e.colors,e.color)});function a(s){e.color.fromString(e.colors[s])}function o(s,l){return s.map(u=>{const c=new Wd;return c.enableAlpha=!0,c.format="rgba",c.fromString(u),c.selected=c.value===l.value,c})}return{rgbaColors:r,handleSelect:a,ns:t}}}),tq=["onClick"];function nq(e,t,n,r,a,o){return V(),ie("div",{class:K(e.ns.b())},[de("div",{class:K(e.ns.e("colors"))},[(V(!0),ie(mt,null,sn(e.rgbaColors,(s,l)=>(V(),ie("div",{key:e.colors[l],class:K([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:u=>e.handleSelect(l)},[de("div",{style:vt({backgroundColor:s.value})},null,4)],10,tq))),128))],2)],2)}var rq=at(eq,[["render",nq],["__file","predefine.vue"]]);const aq=he({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Je("color-svpanel"),n=Gt(),r=ee(0),a=ee(0),o=ee("hsl(0, 100%, 50%)"),s=N(()=>{const c=e.color.get("hue"),f=e.color.get("value");return{hue:c,value:f}});function l(){const c=e.color.get("saturation"),f=e.color.get("value"),d=n.vnode.el,{clientWidth:p,clientHeight:g}=d;a.value=c*p/100,r.value=(100-f)*g/100,o.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function u(c){const d=n.vnode.el.getBoundingClientRect(),{clientX:p,clientY:g}=Yb(c);let y=p-d.left,m=g-d.top;y=Math.max(0,y),y=Math.min(y,d.width),m=Math.max(0,m),m=Math.min(m,d.height),a.value=y,r.value=m,e.color.set({saturation:y/d.width*100,value:100-m/d.height*100})}return We(()=>s.value,()=>{l()}),Ht(()=>{Cf(n.vnode.el,{drag:c=>{u(c)},end:c=>{u(c)}}),l()}),{cursorTop:r,cursorLeft:a,background:o,colorValue:s,handleDrag:u,update:l,ns:t}}}),oq=de("div",null,null,-1),iq=[oq];function sq(e,t,n,r,a,o){return V(),ie("div",{class:K(e.ns.b()),style:vt({backgroundColor:e.background})},[de("div",{class:K(e.ns.e("white"))},null,2),de("div",{class:K(e.ns.e("black"))},null,2),de("div",{class:K(e.ns.e("cursor")),style:vt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},iq,6)],6)}var lq=at(aq,[["render",sq],["__file","sv-panel.vue"]]);const uq=["onKeydown"],cq=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],dq=he({name:"ElColorPicker"}),fq=he({...dq,props:YJ,emits:JJ,setup(e,{expose:t,emit:n}){const r=e,{t:a}=hn(),o=Je("color"),{formItem:s}=va(),l=yr(),u=Ca(),{inputId:c,isLabeledByFormItem:f}=Xo(r,{formItemContext:s}),d=ee(),p=ee(),g=ee(),y=ee(),m=ee(),S=ee(),{isFocused:_,handleFocus:P,handleBlur:A}=Av(m,{beforeBlur(Ae){var ke;return(ke=y.value)==null?void 0:ke.isFocusInsideContent(Ae)},afterBlur(){J(!1),Z()}}),$=Ae=>{if(u.value)return He();P(Ae)};let k=!0;const L=Sn(new Wd({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),B=ee(!1),H=ee(!1),G=ee(""),j=N(()=>!r.modelValue&&!H.value?"transparent":ne(L,r.showAlpha)),W=N(()=>!r.modelValue&&!H.value?"":L.value),Q=N(()=>f.value?void 0:r.label||r.ariaLabel||a("el.colorpicker.defaultLabel"));Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},N(()=>!!r.label));const ue=N(()=>f.value?s==null?void 0:s.labelId:void 0),se=N(()=>[o.b("picker"),o.is("disabled",u.value),o.bm("picker",l.value),o.is("focused",_.value)]);function ne(Ae,ke){if(!(Ae instanceof Wd))throw new TypeError("color should be instance of _color Class");const{r:ze,g:ce,b:me}=Ae.toRgb();return ke?`rgba(${ze}, ${ce}, ${me}, ${Ae.get("alpha")/100})`:`rgb(${ze}, ${ce}, ${me})`}function J(Ae){B.value=Ae}const X=Ha(J,100,{leading:!0});function te(){u.value||J(!0)}function Y(){X(!1),Z()}function Z(){bt(()=>{r.modelValue?L.fromString(r.modelValue):(L.value="",bt(()=>{H.value=!1}))})}function ae(){u.value||X(!B.value)}function ve(){L.fromString(G.value)}function we(){const Ae=L.value;n(Yt,Ae),n("change",Ae),r.validateEvent&&(s==null||s.validate("change").catch(ke=>void 0)),X(!1),bt(()=>{const ke=new Wd({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});L.compare(ke)||Z()})}function Me(){X(!1),n(Yt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(s==null||s.validate("change").catch(Ae=>void 0)),Z()}function Ge(Ae){if(B.value&&(Y(),_.value)){const ke=new FocusEvent("focus",Ae);A(ke)}}function Ee(Ae){Ae.preventDefault(),Ae.stopPropagation(),J(!1),Z()}function pe(Ae){switch(Ae.code){case St.enter:case St.space:Ae.preventDefault(),Ae.stopPropagation(),te(),S.value.focus();break;case St.esc:Ee(Ae);break}}function _e(){m.value.focus()}function He(){m.value.blur()}return Ht(()=>{r.modelValue&&(G.value=W.value)}),We(()=>r.modelValue,Ae=>{Ae?Ae&&Ae!==L.value&&(k=!1,L.fromString(Ae)):H.value=!1}),We(()=>W.value,Ae=>{G.value=Ae,k&&n("activeChange",Ae),k=!0}),We(()=>L.value,()=>{!r.modelValue&&!H.value&&(H.value=!0)}),We(()=>B.value,()=>{bt(()=>{var Ae,ke,ze;(Ae=d.value)==null||Ae.update(),(ke=p.value)==null||ke.update(),(ze=g.value)==null||ze.update()})}),nn(EO,{currentColor:W}),t({color:L,show:te,hide:Y,focus:_e,blur:He}),(Ae,ke)=>(V(),Fe(h(fa),{ref_key:"popper",ref:y,visible:B.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[h(o).be("picker","panel"),h(o).b("dropdown"),Ae.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:Ae.teleported,transition:`${h(o).namespace.value}-zoom-in-top`,persistent:"",onHide:ke[2]||(ke[2]=ze=>J(!1))},{content:Ce(()=>[Lt((V(),ie("div",{onKeydown:An(Ee,["esc"])},[de("div",{class:K(h(o).be("dropdown","main-wrapper"))},[ye(XJ,{ref_key:"hue",ref:d,class:"hue-slider",color:h(L),vertical:""},null,8,["color"]),ye(lq,{ref_key:"sv",ref:p,color:h(L)},null,8,["color"])],2),Ae.showAlpha?(V(),Fe(zJ,{key:0,ref_key:"alpha",ref:g,color:h(L)},null,8,["color"])):Ie("v-if",!0),Ae.predefine?(V(),Fe(rq,{key:1,ref:"predefine",color:h(L),colors:Ae.predefine},null,8,["color","colors"])):Ie("v-if",!0),de("div",{class:K(h(o).be("dropdown","btns"))},[de("span",{class:K(h(o).be("dropdown","value"))},[ye(h(ua),{ref_key:"inputRef",ref:S,modelValue:G.value,"onUpdate:modelValue":ke[0]||(ke[0]=ze=>G.value=ze),"validate-event":!1,size:"small",onKeyup:An(ve,["enter"]),onBlur:ve},null,8,["modelValue","onKeyup"])],2),ye(h(Hr),{class:K(h(o).be("dropdown","link-btn")),text:"",size:"small",onClick:Me},{default:Ce(()=>[dn(ot(h(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),ye(h(Hr),{plain:"",size:"small",class:K(h(o).be("dropdown","btn")),onClick:we},{default:Ce(()=>[dn(ot(h(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,uq)),[[h(Ki),Ge]])]),default:Ce(()=>[de("div",{id:h(c),ref_key:"triggerRef",ref:m,class:K(h(se)),role:"button","aria-label":h(Q),"aria-labelledby":h(ue),"aria-description":h(a)("el.colorpicker.description",{color:Ae.modelValue||""}),"aria-disabled":h(u),tabindex:h(u)?-1:Ae.tabindex,onKeydown:pe,onFocus:$,onBlur:ke[1]||(ke[1]=(...ze)=>h(A)&&h(A)(...ze))},[h(u)?(V(),ie("div",{key:0,class:K(h(o).be("picker","mask"))},null,2)):Ie("v-if",!0),de("div",{class:K(h(o).be("picker","trigger")),onClick:ae},[de("span",{class:K([h(o).be("picker","color"),h(o).is("alpha",Ae.showAlpha)])},[de("span",{class:K(h(o).be("picker","color-inner")),style:vt({backgroundColor:h(j)})},[Lt(ye(h(ht),{class:K([h(o).be("picker","icon"),h(o).is("icon-arrow-down")])},{default:Ce(()=>[ye(h(Zi))]),_:1},8,["class"]),[[bn,Ae.modelValue||H.value]]),Lt(ye(h(ht),{class:K([h(o).be("picker","empty"),h(o).is("icon-close")])},{default:Ce(()=>[ye(h(Go))]),_:1},8,["class"]),[[bn,!Ae.modelValue&&!H.value]])],6)],2)],2)],42,cq)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var hq=at(fq,[["__file","color-picker.vue"]]);const pq=jt(hq),vq=he({name:"ElContainer"}),mq=he({...vq,props:{direction:{type:String}},setup(e){const t=e,n=Vr(),r=Je("container"),a=N(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const l=s.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(o,s)=>(V(),ie("section",{class:K([h(r).b(),h(r).is("vertical",h(a))])},[Ue(o.$slots,"default")],2))}});var gq=at(mq,[["__file","container.vue"]]);const yq=he({name:"ElAside"}),bq=he({...yq,props:{width:{type:String,default:null}},setup(e){const t=e,n=Je("aside"),r=N(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,o)=>(V(),ie("aside",{class:K(h(n).b()),style:vt(h(r))},[Ue(a.$slots,"default")],6))}});var CO=at(bq,[["__file","aside.vue"]]);const _q=he({name:"ElFooter"}),wq=he({..._q,props:{height:{type:String,default:null}},setup(e){const t=e,n=Je("footer"),r=N(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(V(),ie("footer",{class:K(h(n).b()),style:vt(h(r))},[Ue(a.$slots,"default")],6))}});var xO=at(wq,[["__file","footer.vue"]]);const Sq=he({name:"ElHeader"}),Tq=he({...Sq,props:{height:{type:String,default:null}},setup(e){const t=e,n=Je("header"),r=N(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,o)=>(V(),ie("header",{class:K(h(n).b()),style:vt(h(r))},[Ue(a.$slots,"default")],6))}});var IO=at(Tq,[["__file","header.vue"]]);const Eq=he({name:"ElMain"}),Cq=he({...Eq,setup(e){const t=Je("main");return(n,r)=>(V(),ie("main",{class:K(h(t).b())},[Ue(n.$slots,"default")],2))}});var AO=at(Cq,[["__file","main.vue"]]);const xq=jt(gq,{Aside:CO,Footer:xO,Header:IO,Main:AO}),Iq=Yn(CO),Aq=Yn(xO),Pq=Yn(IO),Mq=Yn(AO);var PO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return o.bind(this)(s);var c=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(l.$H===0?24:l.$H),d==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return d}});return o.bind(this)(f)}}})})(PO);var Oq=PO.exports;const $q=rs(Oq);var MO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){var n="week",r="year";return function(a,o,s){var l=o.prototype;l.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(c),d=s(this).endOf(n);if(f.isBefore(d))return 1}var p=s(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(p,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(MO);var Rq=MO.exports;const kq=rs(Rq);var OO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),s=this.year();return o===1&&a===11?s+1:a===0&&o>=52?s-1:s}}})})(OO);var Lq=OO.exports;const Nq=rs(Lq);var $O={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r,a){r.prototype.dayOfYear=function(o){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})($O);var Dq=$O.exports;const Fq=rs(Dq);var RO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(RO);var Bq=RO.exports;const Hq=rs(Bq);var kO={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ns,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(kO);var Uq=kO.exports;const Vq=rs(Uq),q_=Symbol(),Gq=tt({...Y_,type:{type:xe(String),default:"date"}}),jq=["date","dates","year","years","month","week","range"],Q_=tt({disabledDate:{type:xe(Function)},date:{type:xe(Object),required:!0},minDate:{type:xe(Object)},maxDate:{type:xe(Object)},parsedValue:{type:xe([Object,Array])},rangeState:{type:xe(Object),default:()=>({endDate:null,selecting:!1})}}),LO=tt({type:{type:xe(String),required:!0,values:dU},dateFormat:String,timeFormat:String}),NO=tt({unlinkPanels:Boolean,parsedValue:{type:xe(Array)}}),Z_=e=>({type:String,values:jq,default:e}),zq=tt({...LO,parsedValue:{type:xe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Kq=tt({...Q_,cellClassName:{type:xe(Function)},showWeekNumber:Boolean,selectionMode:Z_("date")}),Wq=["changerange","pick","select"],F2=e=>{if(!st(e))return!1;const[t,n]=e;return zt.isDayjs(t)&&zt.isDayjs(n)&&t.isSameOrBefore(n)},DO=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(st(e)){let[o,s]=e.map(l=>zt(l).locale(t));return r||(s=o.add(1,n)),[o,s]}else e?a=zt(e):a=zt();return a=a.locale(t),[a,a.add(1,n)]},Xq=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:o,unit:s,relativeDateGetter:l,setCellMetadata:u,setRowMetadata:c})=>{for(let f=0;f<e.row;f++){const d=t[f];for(let p=0;p<e.column;p++){let g=d[p+n];g||(g={row:f,column:p,type:"normal",inRange:!1,start:!1,end:!1});const y=f*e.column+p,m=l(y);g.dayjs=m,g.date=m.toDate(),g.timestamp=m.valueOf(),g.type="normal",g.inRange=!!(r&&m.isSameOrAfter(r,s)&&a&&m.isSameOrBefore(a,s))||!!(r&&m.isSameOrBefore(r,s)&&a&&m.isSameOrAfter(a,s)),r!=null&&r.isSameOrAfter(a)?(g.start=!!a&&m.isSame(a,s),g.end=r&&m.isSame(r,s)):(g.start=!!r&&m.isSame(r,s),g.end=!!a&&m.isSame(a,s)),m.isSame(o,s)&&(g.type="today"),u==null||u(g,{rowIndex:f,columnIndex:p}),d[p+n]=g}c==null||c(d)}},B2=(e="")=>["normal","today"].includes(e),Yq=(e,t)=>{const{lang:n}=hn(),r=ee(),a=ee(),o=ee(),s=ee(),l=ee([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,f=e.date.locale("en").localeData().weekdaysShort().map(Y=>Y.toLowerCase()),d=N(()=>c>3?7-c:-c),p=N(()=>{const Y=e.date.startOf("month");return Y.subtract(Y.day()||7,"day")}),g=N(()=>f.concat(f).slice(c,c+7)),y=N(()=>qA(h($)).some(Y=>Y.isCurrent)),m=N(()=>{const Y=e.date.startOf("month"),Z=Y.day()||7,ae=Y.daysInMonth(),ve=Y.subtract(1,"month").daysInMonth();return{startOfMonthDay:Z,dateCountOfMonth:ae,dateCountOfLastMonth:ve}}),S=N(()=>e.selectionMode==="dates"?ja(e.parsedValue):[]),_=(Y,{count:Z,rowIndex:ae,columnIndex:ve})=>{const{startOfMonthDay:we,dateCountOfMonth:Me,dateCountOfLastMonth:Ge}=h(m),Ee=h(d);if(ae>=0&&ae<=1){const pe=we+Ee<0?7+we+Ee:we+Ee;if(ve+ae*7>=pe)return Y.text=Z,!0;Y.text=Ge-(pe-ve%7)+1+ae*7,Y.type="prev-month"}else return Z<=Me?Y.text=Z:(Y.text=Z-Me,Y.type="next-month"),!0;return!1},P=(Y,{columnIndex:Z,rowIndex:ae},ve)=>{const{disabledDate:we,cellClassName:Me}=e,Ge=h(S),Ee=_(Y,{count:ve,rowIndex:ae,columnIndex:Z}),pe=Y.dayjs.toDate();return Y.selected=Ge.find(_e=>_e.isSame(Y.dayjs,"day")),Y.isSelected=!!Y.selected,Y.isCurrent=L(Y),Y.disabled=we==null?void 0:we(pe),Y.customClass=Me==null?void 0:Me(pe),Ee},A=Y=>{if(e.selectionMode==="week"){const[Z,ae]=e.showWeekNumber?[1,7]:[0,6],ve=te(Y[Z+1]);Y[Z].inRange=ve,Y[Z].start=ve,Y[ae].inRange=ve,Y[ae].end=ve}},$=N(()=>{const{minDate:Y,maxDate:Z,rangeState:ae,showWeekNumber:ve}=e,we=h(d),Me=h(l),Ge="day";let Ee=1;if(ve)for(let pe=0;pe<6;pe++)Me[pe][0]||(Me[pe][0]={type:"week",text:h(p).add(pe*7+1,Ge).week()});return Xq({row:6,column:7},Me,{startDate:Y,columnIndexOffset:ve?1:0,nextEndDate:ae.endDate||Z||ae.selecting&&Y||null,now:zt().locale(h(n)).startOf(Ge),unit:Ge,relativeDateGetter:pe=>h(p).add(pe-we,Ge),setCellMetadata:(...pe)=>{P(...pe,Ee)&&(Ee+=1)},setRowMetadata:A}),Me});We(()=>e.date,async()=>{var Y;(Y=h(r))!=null&&Y.contains(document.activeElement)&&(await bt(),await k())});const k=async()=>{var Y;return(Y=h(a))==null?void 0:Y.focus()},L=Y=>e.selectionMode==="date"&&B2(Y.type)&&B(Y,e.parsedValue),B=(Y,Z)=>Z?zt(Z).locale(h(n)).isSame(e.date.date(Number(Y.text)),"day"):!1,H=(Y,Z)=>{const ae=Y*7+(Z-(e.showWeekNumber?1:0))-h(d);return h(p).add(ae,"day")},G=Y=>{var Z;if(!e.rangeState.selecting)return;let ae=Y.target;if(ae.tagName==="SPAN"&&(ae=(Z=ae.parentNode)==null?void 0:Z.parentNode),ae.tagName==="DIV"&&(ae=ae.parentNode),ae.tagName!=="TD")return;const ve=ae.parentNode.rowIndex-1,we=ae.cellIndex;h($)[ve][we].disabled||(ve!==h(o)||we!==h(s))&&(o.value=ve,s.value=we,t("changerange",{selecting:!0,endDate:H(ve,we)}))},j=Y=>!h(y)&&(Y==null?void 0:Y.text)===1&&Y.type==="normal"||Y.isCurrent,W=Y=>{u||h(y)||e.selectionMode!=="date"||X(Y,!0)},Q=Y=>{Y.target.closest("td")&&(u=!0)},ue=Y=>{Y.target.closest("td")&&(u=!1)},se=Y=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:Y,maxDate:null}),t("select",!0)):(Y>=e.minDate?t("pick",{minDate:e.minDate,maxDate:Y}):t("pick",{minDate:Y,maxDate:e.minDate}),t("select",!1))},ne=Y=>{const Z=Y.week(),ae=`${Y.year()}w${Z}`;t("pick",{year:Y.year(),week:Z,value:ae,date:Y.startOf("week")})},J=(Y,Z)=>{const ae=Z?ja(e.parsedValue).filter(ve=>(ve==null?void 0:ve.valueOf())!==Y.valueOf()):ja(e.parsedValue).concat([Y]);t("pick",ae)},X=(Y,Z=!1)=>{const ae=Y.target.closest("td");if(!ae)return;const ve=ae.parentNode.rowIndex-1,we=ae.cellIndex,Me=h($)[ve][we];if(Me.disabled||Me.type==="week")return;const Ge=H(ve,we);switch(e.selectionMode){case"range":{se(Ge);break}case"date":{t("pick",Ge,Z);break}case"week":{ne(Ge);break}case"dates":{J(Ge,!!Me.selected);break}}},te=Y=>{if(e.selectionMode!=="week")return!1;let Z=e.date.startOf("day");if(Y.type==="prev-month"&&(Z=Z.subtract(1,"month")),Y.type==="next-month"&&(Z=Z.add(1,"month")),Z=Z.date(Number.parseInt(Y.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const ae=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(ae,"day").isSame(Z,"day")}return!1};return{WEEKS:g,rows:$,tbodyRef:r,currentCellRef:a,focus:k,isCurrent:L,isWeekActive:te,isSelectedCell:j,handlePickDate:X,handleMouseUp:ue,handleMouseDown:Q,handleMouseMove:G,handleFocus:W}},Jq=(e,{isCurrent:t,isWeekActive:n})=>{const r=Je("date-table"),{t:a}=hn(),o=N(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),s=N(()=>a("el.datepicker.dateTablePrompt")),l=N(()=>a("el.datepicker.week"));return{tableKls:o,tableLabel:s,weekLabel:l,getCellClasses:f=>{const d=[];return B2(f.type)&&!f.disabled?(d.push("available"),f.type==="today"&&d.push("today")):d.push(f.type),t(f)&&d.push("current"),f.inRange&&(B2(f.type)||e.selectionMode==="week")&&(d.push("in-range"),f.start&&d.push("start-date"),f.end&&d.push("end-date")),f.disabled&&d.push("disabled"),f.selected&&d.push("selected"),f.customClass&&d.push(f.customClass),d.join(" ")},getRowKls:f=>[r.e("row"),{current:n(f)}],t:a}},qq=tt({cell:{type:xe(Object)}});var Qq=he({name:"ElDatePickerCell",props:qq,setup(e){const t=Je("date-table-cell"),{slots:n}=dt(q_);return()=>{const{cell:r}=e;return Ue(n,"default",{...r},()=>[ye("div",{class:t.b()},[ye("span",{class:t.e("text")},[r==null?void 0:r.text])])])}}});const Zq=["aria-label"],eQ={key:0,scope:"col"},tQ=["aria-label"],nQ=["aria-current","aria-selected","tabindex"],rQ=he({__name:"basic-date-table",props:Kq,emits:Wq,setup(e,{expose:t,emit:n}){const r=e,{WEEKS:a,rows:o,tbodyRef:s,currentCellRef:l,focus:u,isCurrent:c,isWeekActive:f,isSelectedCell:d,handlePickDate:p,handleMouseUp:g,handleMouseDown:y,handleMouseMove:m,handleFocus:S}=Yq(r,n),{tableLabel:_,tableKls:P,weekLabel:A,getCellClasses:$,getRowKls:k,t:L}=Jq(r,{isCurrent:c,isWeekActive:f});return t({focus:u}),(B,H)=>(V(),ie("table",{"aria-label":h(_),class:K(h(P)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:H[1]||(H[1]=(...G)=>h(p)&&h(p)(...G)),onMousemove:H[2]||(H[2]=(...G)=>h(m)&&h(m)(...G)),onMousedown:H[3]||(H[3]=Ot((...G)=>h(y)&&h(y)(...G),["prevent"])),onMouseup:H[4]||(H[4]=(...G)=>h(g)&&h(g)(...G))},[de("tbody",{ref_key:"tbodyRef",ref:s},[de("tr",null,[B.showWeekNumber?(V(),ie("th",eQ,ot(h(A)),1)):Ie("v-if",!0),(V(!0),ie(mt,null,sn(h(a),(G,j)=>(V(),ie("th",{key:j,"aria-label":h(L)("el.datepicker.weeksFull."+G),scope:"col"},ot(h(L)("el.datepicker.weeks."+G)),9,tQ))),128))]),(V(!0),ie(mt,null,sn(h(o),(G,j)=>(V(),ie("tr",{key:j,class:K(h(k)(G[1]))},[(V(!0),ie(mt,null,sn(G,(W,Q)=>(V(),ie("td",{key:`${j}.${Q}`,ref_for:!0,ref:ue=>h(d)(W)&&(l.value=ue),class:K(h($)(W)),"aria-current":W.isCurrent?"date":void 0,"aria-selected":W.isCurrent,tabindex:h(d)(W)?0:-1,onFocus:H[0]||(H[0]=(...ue)=>h(S)&&h(S)(...ue))},[ye(h(Qq),{cell:W},null,8,["cell"])],42,nQ))),128))],2))),128))],512)],42,Zq))}});var H2=at(rQ,[["__file","basic-date-table.vue"]]);const aQ=tt({...Q_,selectionMode:Z_("month")}),oQ=["aria-label"],iQ=["aria-selected","aria-label","tabindex","onKeydown"],sQ={class:"cell"},lQ=he({__name:"basic-month-table",props:aQ,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=($,k,L)=>{const B=zt().locale(L).startOf("month").month(k).year($),H=B.daysInMonth();return Rs(H).map(G=>B.add(G,"day").toDate())},o=Je("month-table"),{t:s,lang:l}=hn(),u=ee(),c=ee(),f=ee(r.date.locale("en").localeData().monthsShort().map($=>$.toLowerCase())),d=ee([[],[],[]]),p=ee(),g=ee(),y=N(()=>{var $,k;const L=d.value,B=zt().locale(l.value).startOf("month");for(let H=0;H<3;H++){const G=L[H];for(let j=0;j<4;j++){const W=G[j]||(G[j]={row:H,column:j,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});W.type="normal";const Q=H*4+j,ue=r.date.startOf("year").month(Q),se=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;W.inRange=!!(r.minDate&&ue.isSameOrAfter(r.minDate,"month")&&se&&ue.isSameOrBefore(se,"month"))||!!(r.minDate&&ue.isSameOrBefore(r.minDate,"month")&&se&&ue.isSameOrAfter(se,"month")),($=r.minDate)!=null&&$.isSameOrAfter(se)?(W.start=!!(se&&ue.isSame(se,"month")),W.end=r.minDate&&ue.isSame(r.minDate,"month")):(W.start=!!(r.minDate&&ue.isSame(r.minDate,"month")),W.end=!!(se&&ue.isSame(se,"month"))),B.isSame(ue)&&(W.type="today"),W.text=Q,W.disabled=((k=r.disabledDate)==null?void 0:k.call(r,ue.toDate()))||!1}}return L}),m=()=>{var $;($=c.value)==null||$.focus()},S=$=>{const k={},L=r.date.year(),B=new Date,H=$.text;return k.disabled=r.disabledDate?a(L,H,l.value).every(r.disabledDate):!1,k.current=ja(r.parsedValue).findIndex(G=>zt.isDayjs(G)&&G.year()===L&&G.month()===H)>=0,k.today=B.getFullYear()===L&&B.getMonth()===H,$.inRange&&(k["in-range"]=!0,$.start&&(k["start-date"]=!0),$.end&&(k["end-date"]=!0)),k},_=$=>{const k=r.date.year(),L=$.text;return ja(r.date).findIndex(B=>B.year()===k&&B.month()===L)>=0},P=$=>{var k;if(!r.rangeState.selecting)return;let L=$.target;if(L.tagName==="SPAN"&&(L=(k=L.parentNode)==null?void 0:k.parentNode),L.tagName==="DIV"&&(L=L.parentNode),L.tagName!=="TD")return;const B=L.parentNode.rowIndex,H=L.cellIndex;y.value[B][H].disabled||(B!==p.value||H!==g.value)&&(p.value=B,g.value=H,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(B*4+H)}))},A=$=>{var k;const L=(k=$.target)==null?void 0:k.closest("td");if((L==null?void 0:L.tagName)!=="TD"||vo(L,"disabled"))return;const B=L.cellIndex,G=L.parentNode.rowIndex*4+B,j=r.date.startOf("year").month(G);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&j>=r.minDate?n("pick",{minDate:r.minDate,maxDate:j}):n("pick",{minDate:j,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:j,maxDate:null}),n("select",!0)):n("pick",G)};return We(()=>r.date,async()=>{var $,k;($=u.value)!=null&&$.contains(document.activeElement)&&(await bt(),(k=c.value)==null||k.focus())}),t({focus:m}),($,k)=>(V(),ie("table",{role:"grid","aria-label":h(s)("el.datepicker.monthTablePrompt"),class:K(h(o).b()),onClick:A,onMousemove:P},[de("tbody",{ref_key:"tbodyRef",ref:u},[(V(!0),ie(mt,null,sn(h(y),(L,B)=>(V(),ie("tr",{key:B},[(V(!0),ie(mt,null,sn(L,(H,G)=>(V(),ie("td",{key:G,ref_for:!0,ref:j=>_(H)&&(c.value=j),class:K(S(H)),"aria-selected":`${_(H)}`,"aria-label":h(s)(`el.datepicker.month${+H.text+1}`),tabindex:_(H)?0:-1,onKeydown:[An(Ot(A,["prevent","stop"]),["space"]),An(Ot(A,["prevent","stop"]),["enter"])]},[de("div",null,[de("span",sQ,ot(h(s)("el.datepicker.months."+f.value[H.text])),1)])],42,iQ))),128))]))),128))],512)],42,oQ))}});var U2=at(lQ,[["__file","basic-month-table.vue"]]);const{date:uQ,disabledDate:cQ,parsedValue:dQ}=Q_,fQ=tt({date:uQ,disabledDate:cQ,parsedValue:dQ,selectionMode:Z_("year")}),hQ=["aria-label"],pQ=["aria-selected","tabindex","onKeydown"],vQ={class:"cell"},mQ={key:1},gQ=he({__name:"basic-year-table",props:fQ,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(m,S)=>{const _=zt(String(m)).locale(S).startOf("year"),A=_.endOf("year").dayOfYear();return Rs(A).map($=>_.add($,"day").toDate())},o=Je("year-table"),{t:s,lang:l}=hn(),u=ee(),c=ee(),f=N(()=>Math.floor(r.date.year()/10)*10),d=()=>{var m;(m=c.value)==null||m.focus()},p=m=>{const S={},_=zt().locale(l.value);return S.disabled=r.disabledDate?a(m,l.value).every(r.disabledDate):!1,S.current=ja(r.parsedValue).findIndex(P=>P.year()===m)>=0,S.today=_.year()===m,S},g=m=>m===f.value&&r.date.year()<f.value&&r.date.year()>f.value+9||ja(r.date).findIndex(S=>S.year()===m)>=0||ja(r.parsedValue).findIndex(S=>(S==null?void 0:S.year())===m)>=0,y=m=>{const _=m.target.closest("td");if(_&&_.textContent){if(vo(_,"disabled"))return;const P=_.textContent||_.innerText;if(r.selectionMode==="years"){if(m.type==="keydown"){n("pick",ja(r.parsedValue),!1);return}const A=vo(_,"current")?ja(r.parsedValue).filter($=>($==null?void 0:$.year())!==Number(P)):ja(r.parsedValue).concat([zt(P)]);n("pick",A)}else n("pick",Number(P))}};return We(()=>r.date,async()=>{var m,S;(m=u.value)!=null&&m.contains(document.activeElement)&&(await bt(),(S=c.value)==null||S.focus())}),t({focus:d}),(m,S)=>(V(),ie("table",{role:"grid","aria-label":h(s)("el.datepicker.yearTablePrompt"),class:K(h(o).b()),onClick:y},[de("tbody",{ref_key:"tbodyRef",ref:u},[(V(),ie(mt,null,sn(3,(_,P)=>de("tr",{key:P},[(V(),ie(mt,null,sn(4,(A,$)=>(V(),ie(mt,{key:P+"_"+$},[P*4+$<10?(V(),ie("td",{key:0,ref_for:!0,ref:k=>g(h(f)+P*4+$)&&(c.value=k),class:K(["available",p(h(f)+P*4+$)]),"aria-selected":`${g(h(f)+P*4+$)}`,tabindex:g(h(f)+P*4+$)?0:-1,onKeydown:[An(Ot(y,["prevent","stop"]),["space"]),An(Ot(y,["prevent","stop"]),["enter"])]},[de("div",null,[de("span",vQ,ot(h(f)+P*4+$),1)])],42,pQ)):(V(),ie("td",mQ))],64))),64))])),64))],512)],10,hQ))}});var yQ=at(gQ,[["__file","basic-year-table.vue"]]);const bQ=["onClick"],_Q=["aria-label"],wQ=["aria-label"],SQ=["aria-label"],TQ=["aria-label"],EQ=he({__name:"panel-date-pick",props:zq,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ge,Ne,$e)=>!0,a=Je("picker-panel"),o=Je("date-picker"),s=lu(),l=Vr(),{t:u,lang:c}=hn(),f=dt("EP_PICKER_BASE"),d=dt($v),{shortcuts:p,disabledDate:g,cellClassName:y,defaultTime:m}=f.props,S=On(f.props,"defaultValue"),_=ee(),P=ee(zt().locale(c.value)),A=ee(!1);let $=!1;const k=N(()=>zt(m).locale(c.value)),L=N(()=>P.value.month()),B=N(()=>P.value.year()),H=ee([]),G=ee(null),j=ee(null),W=ge=>H.value.length>0?r(ge,H.value,n.format||"HH:mm:ss"):!0,Q=ge=>m&&!me.value&&!A.value&&!$?k.value.year(ge.year()).month(ge.month()).date(ge.date()):Ee.value?ge.millisecond(0):ge.startOf("day"),ue=(ge,...Ne)=>{if(!ge)t("pick",ge,...Ne);else if(st(ge)){const $e=ge.map(Q);t("pick",$e,...Ne)}else t("pick",Q(ge),...Ne);G.value=null,j.value=null,A.value=!1,$=!1},se=async(ge,Ne)=>{if(Z.value==="date"){ge=ge;let $e=n.parsedValue?n.parsedValue.year(ge.year()).month(ge.month()).date(ge.date()):ge;W($e)||($e=H.value[0][0].year(ge.year()).month(ge.month()).date(ge.date())),P.value=$e,ue($e,Ee.value||Ne),n.type==="datetime"&&(await bt(),Et())}else Z.value==="week"?ue(ge.date):Z.value==="dates"&&ue(ge,!0)},ne=ge=>{const Ne=ge?"add":"subtract";P.value=P.value[Ne](1,"month"),gt("month")},J=ge=>{const Ne=P.value,$e=ge?"add":"subtract";P.value=X.value==="year"?Ne[$e](10,"year"):Ne[$e](1,"year"),gt("year")},X=ee("date"),te=N(()=>{const ge=u("el.datepicker.year");if(X.value==="year"){const Ne=Math.floor(B.value/10)*10;return ge?`${Ne} ${ge} - ${Ne+9} ${ge}`:`${Ne} - ${Ne+9}`}return`${B.value} ${ge}`}),Y=ge=>{const Ne=Pt(ge.value)?ge.value():ge.value;if(Ne){$=!0,ue(zt(Ne).locale(c.value));return}ge.onClick&&ge.onClick({attrs:s,slots:l,emit:t})},Z=N(()=>{const{type:ge}=n;return["week","month","year","years","dates"].includes(ge)?ge:"date"}),ae=N(()=>Z.value==="date"?X.value:Z.value),ve=N(()=>!!p.length),we=async ge=>{P.value=P.value.startOf("month").month(ge),Z.value==="month"?ue(P.value,!1):(X.value="date",["month","year","date","week"].includes(Z.value)&&(ue(P.value,!0),await bt(),Et())),gt("month")},Me=async(ge,Ne)=>{Z.value==="year"?(P.value=P.value.startOf("year").year(ge),ue(P.value,!1)):Z.value==="years"?ue(ge,Ne??!0):(P.value=P.value.year(ge),X.value="month",["month","year","date","week"].includes(Z.value)&&(ue(P.value,!0),await bt(),Et())),gt("year")},Ge=async ge=>{X.value=ge,await bt(),Et()},Ee=N(()=>n.type==="datetime"||n.type==="datetimerange"),pe=N(()=>{const ge=Ee.value||Z.value==="dates",Ne=Z.value==="years",$e=X.value==="date",Te=X.value==="year";return ge&&$e||Ne&&Te}),_e=N(()=>g?n.parsedValue?st(n.parsedValue)?g(n.parsedValue[0].toDate()):g(n.parsedValue.toDate()):!0:!1),He=()=>{if(Z.value==="dates"||Z.value==="years")ue(n.parsedValue);else{let ge=n.parsedValue;if(!ge){const Ne=zt(m).locale(c.value),$e=ct();ge=Ne.year($e.year()).month($e.month()).date($e.date())}P.value=ge,ue(ge)}},Ae=N(()=>g?g(zt().locale(c.value).toDate()):!1),ke=()=>{const Ne=zt().locale(c.value).toDate();A.value=!0,(!g||!g(Ne))&&W(Ne)&&(P.value=zt().locale(c.value),ue(P.value))},ze=N(()=>n.timeFormat||UM(n.format)),ce=N(()=>n.dateFormat||HM(n.format)),me=N(()=>{if(j.value)return j.value;if(!(!n.parsedValue&&!S.value))return(n.parsedValue||P.value).format(ze.value)}),Be=N(()=>{if(G.value)return G.value;if(!(!n.parsedValue&&!S.value))return(n.parsedValue||P.value).format(ce.value)}),be=ee(!1),Oe=()=>{be.value=!0},Ye=()=>{be.value=!1},qe=ge=>({hour:ge.hour(),minute:ge.minute(),second:ge.second(),year:ge.year(),month:ge.month(),date:ge.date()}),Qe=(ge,Ne,$e)=>{const{hour:Te,minute:De,second:it}=qe(ge),Pe=n.parsedValue?n.parsedValue.hour(Te).minute(De).second(it):ge;P.value=Pe,ue(P.value,!0),$e||(be.value=Ne)},et=ge=>{const Ne=zt(ge,ze.value).locale(c.value);if(Ne.isValid()&&W(Ne)){const{year:$e,month:Te,date:De}=qe(P.value);P.value=Ne.year($e).month(Te).date(De),j.value=null,be.value=!1,ue(P.value,!0)}},je=ge=>{const Ne=zt(ge,ce.value).locale(c.value);if(Ne.isValid()){if(g&&g(Ne.toDate()))return;const{hour:$e,minute:Te,second:De}=qe(P.value);P.value=Ne.hour($e).minute(Te).second(De),G.value=null,ue(P.value,!0)}},lt=ge=>zt.isDayjs(ge)&&ge.isValid()&&(g?!g(ge.toDate()):!0),ut=ge=>st(ge)?ge.map(Ne=>Ne.format(n.format)):ge.format(n.format),Ke=ge=>zt(ge,n.format).locale(c.value),ct=()=>{const ge=zt(S.value).locale(c.value);if(!S.value){const Ne=k.value;return zt().hour(Ne.hour()).minute(Ne.minute()).second(Ne.second()).locale(c.value)}return ge},Et=async()=>{var ge;["week","month","year","date"].includes(Z.value)&&((ge=_.value)==null||ge.focus(),Z.value==="week"&&en(St.down))},Ut=ge=>{const{code:Ne}=ge;[St.up,St.down,St.left,St.right,St.home,St.end,St.pageUp,St.pageDown].includes(Ne)&&(en(Ne),ge.stopPropagation(),ge.preventDefault()),[St.enter,St.space,St.numpadEnter].includes(Ne)&&G.value===null&&j.value===null&&(ge.preventDefault(),ue(P.value,!1))},en=ge=>{var Ne;const{up:$e,down:Te,left:De,right:it,home:Pe,end:rt,pageUp:kt,pageDown:Jt}=St,tn={year:{[$e]:-4,[Te]:4,[De]:-1,[it]:1,offset:(yt,yn)=>yt.setFullYear(yt.getFullYear()+yn)},month:{[$e]:-4,[Te]:4,[De]:-1,[it]:1,offset:(yt,yn)=>yt.setMonth(yt.getMonth()+yn)},week:{[$e]:-1,[Te]:1,[De]:-1,[it]:1,offset:(yt,yn)=>yt.setDate(yt.getDate()+yn*7)},date:{[$e]:-7,[Te]:7,[De]:-1,[it]:1,[Pe]:yt=>-yt.getDay(),[rt]:yt=>-yt.getDay()+6,[kt]:yt=>-new Date(yt.getFullYear(),yt.getMonth(),0).getDate(),[Jt]:yt=>new Date(yt.getFullYear(),yt.getMonth()+1,0).getDate(),offset:(yt,yn)=>yt.setDate(yt.getDate()+yn)}},Wt=P.value.toDate();for(;Math.abs(P.value.diff(Wt,"year",!0))<1;){const yt=tn[ae.value];if(!yt)return;if(yt.offset(Wt,Pt(yt[ge])?yt[ge](Wt):(Ne=yt[ge])!=null?Ne:0),g&&g(Wt))break;const yn=zt(Wt).locale(c.value);P.value=yn,t("pick",yn,!0);break}},gt=ge=>{t("panel-change",P.value.toDate(),ge,X.value)};return We(()=>Z.value,ge=>{if(["month","year"].includes(ge)){X.value=ge;return}else if(ge==="years"){X.value="year";return}X.value="date"},{immediate:!0}),We(()=>X.value,()=>{d==null||d.updatePopper()}),We(()=>S.value,ge=>{ge&&(P.value=ct())},{immediate:!0}),We(()=>n.parsedValue,ge=>{if(ge){if(Z.value==="dates"||Z.value==="years"||Array.isArray(ge))return;P.value=ge}else P.value=ct()},{immediate:!0}),t("set-picker-option",["isValidValue",lt]),t("set-picker-option",["formatToString",ut]),t("set-picker-option",["parseUserInput",Ke]),t("set-picker-option",["handleFocusPicker",Et]),(ge,Ne)=>(V(),ie("div",{class:K([h(a).b(),h(o).b(),{"has-sidebar":ge.$slots.sidebar||h(ve),"has-time":h(Ee)}])},[de("div",{class:K(h(a).e("body-wrapper"))},[Ue(ge.$slots,"sidebar",{class:K(h(a).e("sidebar"))}),h(ve)?(V(),ie("div",{key:0,class:K(h(a).e("sidebar"))},[(V(!0),ie(mt,null,sn(h(p),($e,Te)=>(V(),ie("button",{key:Te,type:"button",class:K(h(a).e("shortcut")),onClick:De=>Y($e)},ot($e.text),11,bQ))),128))],2)):Ie("v-if",!0),de("div",{class:K(h(a).e("body"))},[h(Ee)?(V(),ie("div",{key:0,class:K(h(o).e("time-header"))},[de("span",{class:K(h(o).e("editor-wrap"))},[ye(h(ua),{placeholder:h(u)("el.datepicker.selectDate"),"model-value":h(Be),size:"small","validate-event":!1,onInput:Ne[0]||(Ne[0]=$e=>G.value=$e),onChange:je},null,8,["placeholder","model-value"])],2),Lt((V(),ie("span",{class:K(h(o).e("editor-wrap"))},[ye(h(ua),{placeholder:h(u)("el.datepicker.selectTime"),"model-value":h(me),size:"small","validate-event":!1,onFocus:Oe,onInput:Ne[1]||(Ne[1]=$e=>j.value=$e),onChange:et},null,8,["placeholder","model-value"]),ye(h(M0),{visible:be.value,format:h(ze),"parsed-value":P.value,onPick:Qe},null,8,["visible","format","parsed-value"])],2)),[[h(Ki),Ye]])],2)):Ie("v-if",!0),Lt(de("div",{class:K([h(o).e("header"),(X.value==="year"||X.value==="month")&&h(o).e("header--bordered")])},[de("span",{class:K(h(o).e("prev-btn"))},[de("button",{type:"button","aria-label":h(u)("el.datepicker.prevYear"),class:K(["d-arrow-left",h(a).e("icon-btn")]),onClick:Ne[2]||(Ne[2]=$e=>J(!1))},[ye(h(ht),null,{default:Ce(()=>[ye(h(fc))]),_:1})],10,_Q),Lt(de("button",{type:"button","aria-label":h(u)("el.datepicker.prevMonth"),class:K([h(a).e("icon-btn"),"arrow-left"]),onClick:Ne[3]||(Ne[3]=$e=>ne(!1))},[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1})],10,wQ),[[bn,X.value==="date"]])],2),de("span",{role:"button",class:K(h(o).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Ne[4]||(Ne[4]=An($e=>Ge("year"),["enter"])),onClick:Ne[5]||(Ne[5]=$e=>Ge("year"))},ot(h(te)),35),Lt(de("span",{role:"button","aria-live":"polite",tabindex:"0",class:K([h(o).e("header-label"),{active:X.value==="month"}]),onKeydown:Ne[6]||(Ne[6]=An($e=>Ge("month"),["enter"])),onClick:Ne[7]||(Ne[7]=$e=>Ge("month"))},ot(h(u)(`el.datepicker.month${h(L)+1}`)),35),[[bn,X.value==="date"]]),de("span",{class:K(h(o).e("next-btn"))},[Lt(de("button",{type:"button","aria-label":h(u)("el.datepicker.nextMonth"),class:K([h(a).e("icon-btn"),"arrow-right"]),onClick:Ne[8]||(Ne[8]=$e=>ne(!0))},[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})],10,SQ),[[bn,X.value==="date"]]),de("button",{type:"button","aria-label":h(u)("el.datepicker.nextYear"),class:K([h(a).e("icon-btn"),"d-arrow-right"]),onClick:Ne[9]||(Ne[9]=$e=>J(!0))},[ye(h(ht),null,{default:Ce(()=>[ye(h(hc))]),_:1})],10,TQ)],2)],2),[[bn,X.value!=="time"]]),de("div",{class:K(h(a).e("content")),onKeydown:Ut},[X.value==="date"?(V(),Fe(H2,{key:0,ref_key:"currentViewRef",ref:_,"selection-mode":h(Z),date:P.value,"parsed-value":ge.parsedValue,"disabled-date":h(g),"cell-class-name":h(y),onPick:se},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):Ie("v-if",!0),X.value==="year"?(V(),Fe(yQ,{key:1,ref_key:"currentViewRef",ref:_,"selection-mode":h(Z),date:P.value,"disabled-date":h(g),"parsed-value":ge.parsedValue,onPick:Me},null,8,["selection-mode","date","disabled-date","parsed-value"])):Ie("v-if",!0),X.value==="month"?(V(),Fe(U2,{key:2,ref_key:"currentViewRef",ref:_,date:P.value,"parsed-value":ge.parsedValue,"disabled-date":h(g),onPick:we},null,8,["date","parsed-value","disabled-date"])):Ie("v-if",!0)],34)],2)],2),Lt(de("div",{class:K(h(a).e("footer"))},[Lt(ye(h(Hr),{text:"",size:"small",class:K(h(a).e("link-btn")),disabled:h(Ae),onClick:ke},{default:Ce(()=>[dn(ot(h(u)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[bn,h(Z)!=="dates"&&h(Z)!=="years"]]),ye(h(Hr),{plain:"",size:"small",class:K(h(a).e("link-btn")),disabled:h(_e),onClick:He},{default:Ce(()=>[dn(ot(h(u)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[bn,h(pe)]])],2))}});var CQ=at(EQ,[["__file","panel-date-pick.vue"]]);const xQ=tt({...LO,...NO}),IQ=e=>{const{emit:t}=Gt(),n=lu(),r=Vr();return o=>{const s=Pt(o.value)?o.value():o.value;if(s){t("pick",[zt(s[0]).locale(e.value),zt(s[1]).locale(e.value)]);return}o.onClick&&o.onClick({attrs:n,slots:r,emit:t})}},FO=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:o})=>{const{emit:s}=Gt(),{pickerNs:l}=dt(q_),u=Je("date-range-picker"),{t:c,lang:f}=hn(),d=IQ(f),p=ee(),g=ee(),y=ee({endDate:null,selecting:!1}),m=A=>{y.value=A},S=(A=!1)=>{const $=h(p),k=h(g);F2([$,k])&&s("pick",[$,k],A)},_=A=>{y.value.selecting=A,A||(y.value.endDate=null)},P=()=>{const[A,$]=DO(h(t),{lang:h(f),unit:a,unlinkPanels:e.unlinkPanels});p.value=void 0,g.value=void 0,n.value=A,r.value=$};return We(t,A=>{A&&P()},{immediate:!0}),We(()=>e.parsedValue,A=>{if(st(A)&&A.length===2){const[$,k]=A;p.value=$,n.value=$,g.value=k,o(h(p),h(g))}else P()},{immediate:!0}),{minDate:p,maxDate:g,rangeState:y,lang:f,ppNs:l,drpNs:u,handleChangeRange:m,handleRangeConfirm:S,handleShortcutClick:d,onSelect:_,t:c}},AQ=["onClick"],PQ=["aria-label"],MQ=["aria-label"],OQ=["disabled","aria-label"],$Q=["disabled","aria-label"],RQ=["disabled","aria-label"],kQ=["disabled","aria-label"],LQ=["aria-label"],NQ=["aria-label"],Yh="month",DQ=he({__name:"panel-date-range",props:xQ,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=dt("EP_PICKER_BASE"),{disabledDate:a,cellClassName:o,format:s,defaultTime:l,clearable:u}=r.props,c=On(r.props,"shortcuts"),f=On(r.props,"defaultValue"),{lang:d}=hn(),p=ee(zt().locale(d.value)),g=ee(zt().locale(d.value).add(1,Yh)),{minDate:y,maxDate:m,rangeState:S,ppNs:_,drpNs:P,handleChangeRange:A,handleRangeConfirm:$,handleShortcutClick:k,onSelect:L,t:B}=FO(n,{defaultValue:f,leftDate:p,rightDate:g,unit:Yh,onParsedValueChanged:Ne}),H=ee({min:null,max:null}),G=ee({min:null,max:null}),j=N(()=>`${p.value.year()} ${B("el.datepicker.year")} ${B(`el.datepicker.month${p.value.month()+1}`)}`),W=N(()=>`${g.value.year()} ${B("el.datepicker.year")} ${B(`el.datepicker.month${g.value.month()+1}`)}`),Q=N(()=>p.value.year()),ue=N(()=>p.value.month()),se=N(()=>g.value.year()),ne=N(()=>g.value.month()),J=N(()=>!!c.value.length),X=N(()=>H.value.min!==null?H.value.min:y.value?y.value.format(ve.value):""),te=N(()=>H.value.max!==null?H.value.max:m.value||y.value?(m.value||y.value).format(ve.value):""),Y=N(()=>G.value.min!==null?G.value.min:y.value?y.value.format(ae.value):""),Z=N(()=>G.value.max!==null?G.value.max:m.value||y.value?(m.value||y.value).format(ae.value):""),ae=N(()=>n.timeFormat||UM(s)),ve=N(()=>n.dateFormat||HM(s)),we=$e=>F2($e)&&(a?!a($e[0].toDate())&&!a($e[1].toDate()):!0),Me=()=>{p.value=p.value.subtract(1,"year"),n.unlinkPanels||(g.value=p.value.add(1,"month")),ze("year")},Ge=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(g.value=p.value.add(1,"month")),ze("month")},Ee=()=>{n.unlinkPanels?g.value=g.value.add(1,"year"):(p.value=p.value.add(1,"year"),g.value=p.value.add(1,"month")),ze("year")},pe=()=>{n.unlinkPanels?g.value=g.value.add(1,"month"):(p.value=p.value.add(1,"month"),g.value=p.value.add(1,"month")),ze("month")},_e=()=>{p.value=p.value.add(1,"year"),ze("year")},He=()=>{p.value=p.value.add(1,"month"),ze("month")},Ae=()=>{g.value=g.value.subtract(1,"year"),ze("year")},ke=()=>{g.value=g.value.subtract(1,"month"),ze("month")},ze=$e=>{t("panel-change",[p.value.toDate(),g.value.toDate()],$e)},ce=N(()=>{const $e=(ue.value+1)%12,Te=ue.value+1>=12?1:0;return n.unlinkPanels&&new Date(Q.value+Te,$e)<new Date(se.value,ne.value)}),me=N(()=>n.unlinkPanels&&se.value*12+ne.value-(Q.value*12+ue.value+1)>=12),Be=N(()=>!(y.value&&m.value&&!S.value.selecting&&F2([y.value,m.value]))),be=N(()=>n.type==="datetime"||n.type==="datetimerange"),Oe=($e,Te)=>{if($e)return l?zt(l[Te]||l).locale(d.value).year($e.year()).month($e.month()).date($e.date()):$e},Ye=($e,Te=!0)=>{const De=$e.minDate,it=$e.maxDate,Pe=Oe(De,0),rt=Oe(it,1);m.value===rt&&y.value===Pe||(t("calendar-change",[De.toDate(),it&&it.toDate()]),m.value=rt,y.value=Pe,!(!Te||be.value)&&$())},qe=ee(!1),Qe=ee(!1),et=()=>{qe.value=!1},je=()=>{Qe.value=!1},lt=($e,Te)=>{H.value[Te]=$e;const De=zt($e,ve.value).locale(d.value);if(De.isValid()){if(a&&a(De.toDate()))return;Te==="min"?(p.value=De,y.value=(y.value||p.value).year(De.year()).month(De.month()).date(De.date()),!n.unlinkPanels&&(!m.value||m.value.isBefore(y.value))&&(g.value=De.add(1,"month"),m.value=y.value.add(1,"month"))):(g.value=De,m.value=(m.value||g.value).year(De.year()).month(De.month()).date(De.date()),!n.unlinkPanels&&(!y.value||y.value.isAfter(m.value))&&(p.value=De.subtract(1,"month"),y.value=m.value.subtract(1,"month")))}},ut=($e,Te)=>{H.value[Te]=null},Ke=($e,Te)=>{G.value[Te]=$e;const De=zt($e,ae.value).locale(d.value);De.isValid()&&(Te==="min"?(qe.value=!0,y.value=(y.value||p.value).hour(De.hour()).minute(De.minute()).second(De.second()),(!m.value||m.value.isBefore(y.value))&&(m.value=y.value)):(Qe.value=!0,m.value=(m.value||g.value).hour(De.hour()).minute(De.minute()).second(De.second()),g.value=m.value,m.value&&m.value.isBefore(y.value)&&(y.value=m.value)))},ct=($e,Te)=>{G.value[Te]=null,Te==="min"?(p.value=y.value,qe.value=!1):(g.value=m.value,Qe.value=!1)},Et=($e,Te,De)=>{G.value.min||($e&&(p.value=$e,y.value=(y.value||p.value).hour($e.hour()).minute($e.minute()).second($e.second())),De||(qe.value=Te),(!m.value||m.value.isBefore(y.value))&&(m.value=y.value,g.value=$e))},Ut=($e,Te,De)=>{G.value.max||($e&&(g.value=$e,m.value=(m.value||g.value).hour($e.hour()).minute($e.minute()).second($e.second())),De||(Qe.value=Te),m.value&&m.value.isBefore(y.value)&&(y.value=m.value))},en=()=>{p.value=DO(h(f),{lang:h(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],g.value=p.value.add(1,"month"),m.value=void 0,y.value=void 0,t("pick",null)},gt=$e=>st($e)?$e.map(Te=>Te.format(s)):$e.format(s),ge=$e=>st($e)?$e.map(Te=>zt(Te,s).locale(d.value)):zt($e,s).locale(d.value);function Ne($e,Te){if(n.unlinkPanels&&Te){const De=($e==null?void 0:$e.year())||0,it=($e==null?void 0:$e.month())||0,Pe=Te.year(),rt=Te.month();g.value=De===Pe&&it===rt?Te.add(1,Yh):Te}else g.value=p.value.add(1,Yh),Te&&(g.value=g.value.hour(Te.hour()).minute(Te.minute()).second(Te.second()))}return t("set-picker-option",["isValidValue",we]),t("set-picker-option",["parseUserInput",ge]),t("set-picker-option",["formatToString",gt]),t("set-picker-option",["handleClear",en]),($e,Te)=>(V(),ie("div",{class:K([h(_).b(),h(P).b(),{"has-sidebar":$e.$slots.sidebar||h(J),"has-time":h(be)}])},[de("div",{class:K(h(_).e("body-wrapper"))},[Ue($e.$slots,"sidebar",{class:K(h(_).e("sidebar"))}),h(J)?(V(),ie("div",{key:0,class:K(h(_).e("sidebar"))},[(V(!0),ie(mt,null,sn(h(c),(De,it)=>(V(),ie("button",{key:it,type:"button",class:K(h(_).e("shortcut")),onClick:Pe=>h(k)(De)},ot(De.text),11,AQ))),128))],2)):Ie("v-if",!0),de("div",{class:K(h(_).e("body"))},[h(be)?(V(),ie("div",{key:0,class:K(h(P).e("time-header"))},[de("span",{class:K(h(P).e("editors-wrap"))},[de("span",{class:K(h(P).e("time-picker-wrap"))},[ye(h(ua),{size:"small",disabled:h(S).selecting,placeholder:h(B)("el.datepicker.startDate"),class:K(h(P).e("editor")),"model-value":h(X),"validate-event":!1,onInput:Te[0]||(Te[0]=De=>lt(De,"min")),onChange:Te[1]||(Te[1]=De=>ut(De,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Lt((V(),ie("span",{class:K(h(P).e("time-picker-wrap"))},[ye(h(ua),{size:"small",class:K(h(P).e("editor")),disabled:h(S).selecting,placeholder:h(B)("el.datepicker.startTime"),"model-value":h(Y),"validate-event":!1,onFocus:Te[2]||(Te[2]=De=>qe.value=!0),onInput:Te[3]||(Te[3]=De=>Ke(De,"min")),onChange:Te[4]||(Te[4]=De=>ct(De,"min"))},null,8,["class","disabled","placeholder","model-value"]),ye(h(M0),{visible:qe.value,format:h(ae),"datetime-role":"start","parsed-value":p.value,onPick:Et},null,8,["visible","format","parsed-value"])],2)),[[h(Ki),et]])],2),de("span",null,[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})]),de("span",{class:K([h(P).e("editors-wrap"),"is-right"])},[de("span",{class:K(h(P).e("time-picker-wrap"))},[ye(h(ua),{size:"small",class:K(h(P).e("editor")),disabled:h(S).selecting,placeholder:h(B)("el.datepicker.endDate"),"model-value":h(te),readonly:!h(y),"validate-event":!1,onInput:Te[5]||(Te[5]=De=>lt(De,"max")),onChange:Te[6]||(Te[6]=De=>ut(De,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Lt((V(),ie("span",{class:K(h(P).e("time-picker-wrap"))},[ye(h(ua),{size:"small",class:K(h(P).e("editor")),disabled:h(S).selecting,placeholder:h(B)("el.datepicker.endTime"),"model-value":h(Z),readonly:!h(y),"validate-event":!1,onFocus:Te[7]||(Te[7]=De=>h(y)&&(Qe.value=!0)),onInput:Te[8]||(Te[8]=De=>Ke(De,"max")),onChange:Te[9]||(Te[9]=De=>ct(De,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),ye(h(M0),{"datetime-role":"end",visible:Qe.value,format:h(ae),"parsed-value":g.value,onPick:Ut},null,8,["visible","format","parsed-value"])],2)),[[h(Ki),je]])],2)],2)):Ie("v-if",!0),de("div",{class:K([[h(_).e("content"),h(P).e("content")],"is-left"])},[de("div",{class:K(h(P).e("header"))},[de("button",{type:"button",class:K([h(_).e("icon-btn"),"d-arrow-left"]),"aria-label":h(B)("el.datepicker.prevYear"),onClick:Me},[ye(h(ht),null,{default:Ce(()=>[ye(h(fc))]),_:1})],10,PQ),de("button",{type:"button",class:K([h(_).e("icon-btn"),"arrow-left"]),"aria-label":h(B)("el.datepicker.prevMonth"),onClick:Ge},[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1})],10,MQ),$e.unlinkPanels?(V(),ie("button",{key:0,type:"button",disabled:!h(me),class:K([[h(_).e("icon-btn"),{"is-disabled":!h(me)}],"d-arrow-right"]),"aria-label":h(B)("el.datepicker.nextYear"),onClick:_e},[ye(h(ht),null,{default:Ce(()=>[ye(h(hc))]),_:1})],10,OQ)):Ie("v-if",!0),$e.unlinkPanels?(V(),ie("button",{key:1,type:"button",disabled:!h(ce),class:K([[h(_).e("icon-btn"),{"is-disabled":!h(ce)}],"arrow-right"]),"aria-label":h(B)("el.datepicker.nextMonth"),onClick:He},[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})],10,$Q)):Ie("v-if",!0),de("div",null,ot(h(j)),1)],2),ye(H2,{"selection-mode":"range",date:p.value,"min-date":h(y),"max-date":h(m),"range-state":h(S),"disabled-date":h(a),"cell-class-name":h(o),onChangerange:h(A),onPick:Ye,onSelect:h(L)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),de("div",{class:K([[h(_).e("content"),h(P).e("content")],"is-right"])},[de("div",{class:K(h(P).e("header"))},[$e.unlinkPanels?(V(),ie("button",{key:0,type:"button",disabled:!h(me),class:K([[h(_).e("icon-btn"),{"is-disabled":!h(me)}],"d-arrow-left"]),"aria-label":h(B)("el.datepicker.prevYear"),onClick:Ae},[ye(h(ht),null,{default:Ce(()=>[ye(h(fc))]),_:1})],10,RQ)):Ie("v-if",!0),$e.unlinkPanels?(V(),ie("button",{key:1,type:"button",disabled:!h(ce),class:K([[h(_).e("icon-btn"),{"is-disabled":!h(ce)}],"arrow-left"]),"aria-label":h(B)("el.datepicker.prevMonth"),onClick:ke},[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1})],10,kQ)):Ie("v-if",!0),de("button",{type:"button","aria-label":h(B)("el.datepicker.nextYear"),class:K([h(_).e("icon-btn"),"d-arrow-right"]),onClick:Ee},[ye(h(ht),null,{default:Ce(()=>[ye(h(hc))]),_:1})],10,LQ),de("button",{type:"button",class:K([h(_).e("icon-btn"),"arrow-right"]),"aria-label":h(B)("el.datepicker.nextMonth"),onClick:pe},[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})],10,NQ),de("div",null,ot(h(W)),1)],2),ye(H2,{"selection-mode":"range",date:g.value,"min-date":h(y),"max-date":h(m),"range-state":h(S),"disabled-date":h(a),"cell-class-name":h(o),onChangerange:h(A),onPick:Ye,onSelect:h(L)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),h(be)?(V(),ie("div",{key:0,class:K(h(_).e("footer"))},[h(u)?(V(),Fe(h(Hr),{key:0,text:"",size:"small",class:K(h(_).e("link-btn")),onClick:en},{default:Ce(()=>[dn(ot(h(B)("el.datepicker.clear")),1)]),_:1},8,["class"])):Ie("v-if",!0),ye(h(Hr),{plain:"",size:"small",class:K(h(_).e("link-btn")),disabled:h(Be),onClick:Te[10]||(Te[10]=De=>h($)(!1))},{default:Ce(()=>[dn(ot(h(B)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):Ie("v-if",!0)],2))}});var FQ=at(DQ,[["__file","panel-date-range.vue"]]);const BQ=tt({...NO}),HQ=["pick","set-picker-option","calendar-change"],UQ=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=hn(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},o=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},l=()=>{n.value=n.value.subtract(1,"year")},u=N(()=>`${t.value.year()} ${r("el.datepicker.year")}`),c=N(()=>`${n.value.year()} ${r("el.datepicker.year")}`),f=N(()=>t.value.year()),d=N(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:o,leftNextYear:s,rightPrevYear:l,leftLabel:u,rightLabel:c,leftYear:f,rightYear:d}},VQ=["onClick"],GQ=["disabled"],jQ=["disabled"],Jh="year",zQ=he({name:"DatePickerMonthRange"}),KQ=he({...zQ,props:BQ,emits:HQ,setup(e,{emit:t}){const n=e,{lang:r}=hn(),a=dt("EP_PICKER_BASE"),{shortcuts:o,disabledDate:s,format:l}=a.props,u=On(a.props,"defaultValue"),c=ee(zt().locale(r.value)),f=ee(zt().locale(r.value).add(1,Jh)),{minDate:d,maxDate:p,rangeState:g,ppNs:y,drpNs:m,handleChangeRange:S,handleRangeConfirm:_,handleShortcutClick:P,onSelect:A}=FO(n,{defaultValue:u,leftDate:c,rightDate:f,unit:Jh,onParsedValueChanged:J}),$=N(()=>!!o.length),{leftPrevYear:k,rightNextYear:L,leftNextYear:B,rightPrevYear:H,leftLabel:G,rightLabel:j,leftYear:W,rightYear:Q}=UQ({unlinkPanels:On(n,"unlinkPanels"),leftDate:c,rightDate:f}),ue=N(()=>n.unlinkPanels&&Q.value>W.value+1),se=(X,te=!0)=>{const Y=X.minDate,Z=X.maxDate;p.value===Z&&d.value===Y||(t("calendar-change",[Y.toDate(),Z&&Z.toDate()]),p.value=Z,d.value=Y,te&&_())},ne=X=>X.map(te=>te.format(l));function J(X,te){if(n.unlinkPanels&&te){const Y=(X==null?void 0:X.year())||0,Z=te.year();f.value=Y===Z?te.add(1,Jh):te}else f.value=c.value.add(1,Jh)}return t("set-picker-option",["formatToString",ne]),(X,te)=>(V(),ie("div",{class:K([h(y).b(),h(m).b(),{"has-sidebar":!!X.$slots.sidebar||h($)}])},[de("div",{class:K(h(y).e("body-wrapper"))},[Ue(X.$slots,"sidebar",{class:K(h(y).e("sidebar"))}),h($)?(V(),ie("div",{key:0,class:K(h(y).e("sidebar"))},[(V(!0),ie(mt,null,sn(h(o),(Y,Z)=>(V(),ie("button",{key:Z,type:"button",class:K(h(y).e("shortcut")),onClick:ae=>h(P)(Y)},ot(Y.text),11,VQ))),128))],2)):Ie("v-if",!0),de("div",{class:K(h(y).e("body"))},[de("div",{class:K([[h(y).e("content"),h(m).e("content")],"is-left"])},[de("div",{class:K(h(m).e("header"))},[de("button",{type:"button",class:K([h(y).e("icon-btn"),"d-arrow-left"]),onClick:te[0]||(te[0]=(...Y)=>h(k)&&h(k)(...Y))},[ye(h(ht),null,{default:Ce(()=>[ye(h(fc))]),_:1})],2),X.unlinkPanels?(V(),ie("button",{key:0,type:"button",disabled:!h(ue),class:K([[h(y).e("icon-btn"),{[h(y).is("disabled")]:!h(ue)}],"d-arrow-right"]),onClick:te[1]||(te[1]=(...Y)=>h(B)&&h(B)(...Y))},[ye(h(ht),null,{default:Ce(()=>[ye(h(hc))]),_:1})],10,GQ)):Ie("v-if",!0),de("div",null,ot(h(G)),1)],2),ye(U2,{"selection-mode":"range",date:c.value,"min-date":h(d),"max-date":h(p),"range-state":h(g),"disabled-date":h(s),onChangerange:h(S),onPick:se,onSelect:h(A)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),de("div",{class:K([[h(y).e("content"),h(m).e("content")],"is-right"])},[de("div",{class:K(h(m).e("header"))},[X.unlinkPanels?(V(),ie("button",{key:0,type:"button",disabled:!h(ue),class:K([[h(y).e("icon-btn"),{"is-disabled":!h(ue)}],"d-arrow-left"]),onClick:te[2]||(te[2]=(...Y)=>h(H)&&h(H)(...Y))},[ye(h(ht),null,{default:Ce(()=>[ye(h(fc))]),_:1})],10,jQ)):Ie("v-if",!0),de("button",{type:"button",class:K([h(y).e("icon-btn"),"d-arrow-right"]),onClick:te[3]||(te[3]=(...Y)=>h(L)&&h(L)(...Y))},[ye(h(ht),null,{default:Ce(()=>[ye(h(hc))]),_:1})],2),de("div",null,ot(h(j)),1)],2),ye(U2,{"selection-mode":"range",date:f.value,"min-date":h(d),"max-date":h(p),"range-state":h(g),"disabled-date":h(s),onChangerange:h(S),onPick:se,onSelect:h(A)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var WQ=at(KQ,[["__file","panel-month-range.vue"]]);const XQ=function(e){switch(e){case"daterange":case"datetimerange":return FQ;case"monthrange":return WQ;default:return CQ}};zt.extend(rO);zt.extend($q);zt.extend(X_);zt.extend(kq);zt.extend(Nq);zt.extend(Fq);zt.extend(Hq);zt.extend(Vq);var YQ=he({name:"ElDatePicker",install:null,props:Gq,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Je("picker-panel");nn("ElPopperOptions",Sn(On(e,"popperOptions"))),nn(q_,{slots:r,pickerNs:a});const o=ee();t({focus:(u=!0)=>{var c;(c=o.value)==null||c.focus(u)},handleOpen:()=>{var u;(u=o.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=o.value)==null||u.handleClose()}});const l=u=>{n("update:modelValue",u)};return()=>{var u;const c=(u=e.format)!=null?u:TW[e.type]||Ru,f=XQ(e.type);return ye(jM,rn(e,{format:c,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:d=>ye(f,d,null),"range-separator":r["range-separator"]})}}});const zp=YQ;zp.install=e=>{e.component(zp.name,zp)};const JQ=zp,e1=Symbol("elDescriptions");var ld=he({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:dt(e1,{})}},render(){var e,t,n,r,a,o,s;const l=pU(this.cell),u=(((e=this.cell)==null?void 0:e.dirs)||[]).map(k=>{const{dir:L,arg:B,modifiers:H,value:G}=k;return[L,G,B,H]}),{border:c,direction:f}=this.descriptions,d=f==="vertical",p=((r=(n=(t=this.cell)==null?void 0:t.children)==null?void 0:n.label)==null?void 0:r.call(n))||l.label,g=(s=(o=(a=this.cell)==null?void 0:a.children)==null?void 0:o.default)==null?void 0:s.call(o),y=l.span,m=l.align?`is-${l.align}`:"",S=l.labelAlign?`is-${l.labelAlign}`:m,_=l.className,P=l.labelClassName,A={width:rr(l.width),minWidth:rr(l.minWidth)},$=Je("descriptions");switch(this.type){case"label":return Lt(_t(this.tag,{style:A,class:[$.e("cell"),$.e("label"),$.is("bordered-label",c),$.is("vertical-label",d),S,P],colSpan:d?y:1},p),u);case"content":return Lt(_t(this.tag,{style:A,class:[$.e("cell"),$.e("content"),$.is("bordered-content",c),$.is("vertical-content",d),m,_],colSpan:d?y:y*2-1},g),u);default:return Lt(_t("td",{style:A,class:[$.e("cell"),m],colSpan:y},[Br(p)?void 0:_t("span",{class:[$.e("label"),P]},p),_t("span",{class:[$.e("content"),_]},g)]),u)}}});const qQ=tt({row:{type:xe(Array),default:()=>[]}}),QQ={key:1},ZQ=he({name:"ElDescriptionsRow"}),eZ=he({...ZQ,props:qQ,setup(e){const t=dt(e1,{});return(n,r)=>h(t).direction==="vertical"?(V(),ie(mt,{key:0},[de("tr",null,[(V(!0),ie(mt,null,sn(n.row,(a,o)=>(V(),Fe(h(ld),{key:`tr1-${o}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),de("tr",null,[(V(!0),ie(mt,null,sn(n.row,(a,o)=>(V(),Fe(h(ld),{key:`tr2-${o}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(V(),ie("tr",QQ,[(V(!0),ie(mt,null,sn(n.row,(a,o)=>(V(),ie(mt,{key:`tr3-${o}`},[h(t).border?(V(),ie(mt,{key:0},[ye(h(ld),{cell:a,tag:"td",type:"label"},null,8,["cell"]),ye(h(ld),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(V(),Fe(h(ld),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var tZ=at(eZ,[["__file","descriptions-row.vue"]]);const nZ=tt({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Rr,title:{type:String,default:""},extra:{type:String,default:""}}),rZ=he({name:"ElDescriptions"}),aZ=he({...rZ,props:nZ,setup(e){const t=e,n=Je("descriptions"),r=yr(),a=Vr();nn(e1,t);const o=N(()=>[n.b(),n.m(r.value)]),s=(u,c,f,d=!1)=>(u.props||(u.props={}),c>f&&(u.props.span=f),d&&(u.props.span=c),u),l=()=>{if(!a.default)return[];const u=$s(a.default()).filter(g=>{var y;return((y=g==null?void 0:g.type)==null?void 0:y.name)==="ElDescriptionsItem"}),c=[];let f=[],d=t.column,p=0;return u.forEach((g,y)=>{var m;const S=((m=g.props)==null?void 0:m.span)||1;if(y<u.length-1&&(p+=S>d?d:S),y===u.length-1){const _=t.column-p%t.column;f.push(s(g,_,d,!0)),c.push(f);return}S<d?(d-=S,f.push(g)):(f.push(s(g,S,d)),c.push(f),d=t.column,f=[])}),c};return(u,c)=>(V(),ie("div",{class:K(h(o))},[u.title||u.extra||u.$slots.title||u.$slots.extra?(V(),ie("div",{key:0,class:K(h(n).e("header"))},[de("div",{class:K(h(n).e("title"))},[Ue(u.$slots,"title",{},()=>[dn(ot(u.title),1)])],2),de("div",{class:K(h(n).e("extra"))},[Ue(u.$slots,"extra",{},()=>[dn(ot(u.extra),1)])],2)],2)):Ie("v-if",!0),de("div",{class:K(h(n).e("body"))},[de("table",{class:K([h(n).e("table"),h(n).is("bordered",u.border)])},[de("tbody",null,[(V(!0),ie(mt,null,sn(l(),(f,d)=>(V(),Fe(tZ,{key:d,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var oZ=at(aZ,[["__file","description.vue"]]);const iZ=tt({label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),BO=he({name:"ElDescriptionsItem",props:iZ}),sZ=jt(oZ,{DescriptionsItem:BO}),lZ=Yn(BO),uZ=tt({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xe([String,Array,Object])},zIndex:{type:xe([String,Number])}}),cZ={click:e=>e instanceof MouseEvent},dZ="overlay";var fZ=he({name:"ElOverlay",props:uZ,emits:cZ,setup(e,{slots:t,emit:n}){const r=Je(dZ),a=u=>{n("click",u)},{onClick:o,onMousedown:s,onMouseup:l}=$_(e.customMaskEvent?void 0:a);return()=>e.mask?ye("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:s,onMouseup:l},[Ue(t,"default")],no.STYLE|no.CLASS|no.PROPS,["onClick","onMouseup","onMousedown"]):_t("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ue(t,"default")])}});const t1=fZ,HO=Symbol("dialogInjectionKey"),UO=tt({center:Boolean,alignCenter:Boolean,closeIcon:{type:Pn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),hZ={close:()=>!0},pZ=["aria-level"],vZ=["aria-label"],mZ=["id"],gZ=he({name:"ElDialogContent"}),yZ=he({...gZ,props:UO,emits:hZ,setup(e){const t=e,{t:n}=hn(),{Close:r}=g_,{dialogRef:a,headerRef:o,bodyId:s,ns:l,style:u}=dt(HO),{focusTrapRef:c}=dt(z_),f=N(()=>[l.b(),l.is("fullscreen",t.fullscreen),l.is("draggable",t.draggable),l.is("align-center",t.alignCenter),{[l.m("center")]:t.center}]),d=Ev(c,a),p=N(()=>t.draggable),g=N(()=>t.overflow);return LP(a,o,p,g),(y,m)=>(V(),ie("div",{ref:h(d),class:K(h(f)),style:vt(h(u)),tabindex:"-1"},[de("header",{ref_key:"headerRef",ref:o,class:K([h(l).e("header"),{"show-close":y.showClose}])},[Ue(y.$slots,"header",{},()=>[de("span",{role:"heading","aria-level":y.ariaLevel,class:K(h(l).e("title"))},ot(y.title),11,pZ)]),y.showClose?(V(),ie("button",{key:0,"aria-label":h(n)("el.dialog.close"),class:K(h(l).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=S=>y.$emit("close"))},[ye(h(ht),{class:K(h(l).e("close"))},{default:Ce(()=>[(V(),Fe(Zt(y.closeIcon||h(r))))]),_:1},8,["class"])],10,vZ)):Ie("v-if",!0)],2),de("div",{id:h(s),class:K(h(l).e("body"))},[Ue(y.$slots,"default")],10,mZ),y.$slots.footer?(V(),ie("footer",{key:0,class:K(h(l).e("footer"))},[Ue(y.$slots,"footer")],2)):Ie("v-if",!0)],6))}});var bZ=at(yZ,[["__file","dialog-content.vue"]]);const VO=tt({...UO,appendToBody:Boolean,appendTo:{type:xe(String),default:"body"},beforeClose:{type:xe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),GO={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Yt]:e=>mr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},jO=(e,t)=>{var n;const a=Gt().emit,{nextZIndex:o}=Uc();let s="";const l=ra(),u=ra(),c=ee(!1),f=ee(!1),d=ee(!1),p=ee((n=e.zIndex)!=null?n:o());let g,y;const m=hh("namespace",Gd),S=N(()=>{const ne={},J=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(ne[`${J}-margin-top`]=e.top),e.width&&(ne[`${J}-width`]=rr(e.width))),ne}),_=N(()=>e.alignCenter?{display:"flex"}:{});function P(){a("opened")}function A(){a("closed"),a(Yt,!1),e.destroyOnClose&&(d.value=!1)}function $(){a("close")}function k(){y==null||y(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Jl(()=>G(),e.openDelay):G()}function L(){g==null||g(),y==null||y(),e.closeDelay&&e.closeDelay>0?{stop:y}=Jl(()=>j(),e.closeDelay):j()}function B(){function ne(J){J||(f.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(ne):L()}function H(){e.closeOnClickModal&&B()}function G(){ln&&(c.value=!0)}function j(){c.value=!1}function W(){a("openAutoFocus")}function Q(){a("closeAutoFocus")}function ue(ne){var J;((J=ne.detail)==null?void 0:J.focusReason)==="pointer"&&ne.preventDefault()}e.lockScroll&&T_(c);function se(){e.closeOnPressEscape&&B()}return We(()=>e.modelValue,ne=>{ne?(f.value=!1,k(),d.value=!0,p.value=SP(e.zIndex)?o():p.value++,bt(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):c.value&&L()}),We(()=>e.fullscreen,ne=>{t.value&&(ne?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Ht(()=>{e.modelValue&&(c.value=!0,d.value=!0,k())}),{afterEnter:P,afterLeave:A,beforeLeave:$,handleClose:B,onModalClick:H,close:L,doClose:j,onOpenAutoFocus:W,onCloseAutoFocus:Q,onCloseRequested:se,onFocusoutPrevented:ue,titleId:l,bodyId:u,closed:f,style:S,overlayDialogStyle:_,rendered:d,visible:c,zIndex:p}},_Z=["aria-label","aria-labelledby","aria-describedby"],wZ=he({name:"ElDialog",inheritAttrs:!1}),SZ=he({...wZ,props:VO,emits:GO,setup(e,{expose:t}){const n=e,r=Vr();Fr({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},N(()=>!!r.title));const a=Je("dialog"),o=ee(),s=ee(),l=ee(),{visible:u,titleId:c,bodyId:f,style:d,overlayDialogStyle:p,rendered:g,zIndex:y,afterEnter:m,afterLeave:S,beforeLeave:_,handleClose:P,onModalClick:A,onOpenAutoFocus:$,onCloseAutoFocus:k,onCloseRequested:L,onFocusoutPrevented:B}=jO(n,o);nn(HO,{dialogRef:o,headerRef:s,bodyId:f,ns:a,rendered:g,style:d});const H=$_(A),G=N(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:l}),(j,W)=>(V(),Fe(Lc,{to:j.appendTo,disabled:j.appendTo!=="body"?!1:!j.appendToBody},[ye(Tr,{name:"dialog-fade",onAfterEnter:h(m),onAfterLeave:h(S),onBeforeLeave:h(_),persisted:""},{default:Ce(()=>[Lt(ye(h(t1),{"custom-mask-event":"",mask:j.modal,"overlay-class":j.modalClass,"z-index":h(y)},{default:Ce(()=>[de("div",{role:"dialog","aria-modal":"true","aria-label":j.title||void 0,"aria-labelledby":j.title?void 0:h(c),"aria-describedby":h(f),class:K(`${h(a).namespace.value}-overlay-dialog`),style:vt(h(p)),onClick:W[0]||(W[0]=(...Q)=>h(H).onClick&&h(H).onClick(...Q)),onMousedown:W[1]||(W[1]=(...Q)=>h(H).onMousedown&&h(H).onMousedown(...Q)),onMouseup:W[2]||(W[2]=(...Q)=>h(H).onMouseup&&h(H).onMouseup(...Q))},[ye(h(vh),{loop:"",trapped:h(u),"focus-start-el":"container",onFocusAfterTrapped:h($),onFocusAfterReleased:h(k),onFocusoutPrevented:h(B),onReleaseRequested:h(L)},{default:Ce(()=>[h(g)?(V(),Fe(bZ,rn({key:0,ref_key:"dialogContentRef",ref:l},j.$attrs,{center:j.center,"align-center":j.alignCenter,"close-icon":j.closeIcon,draggable:h(G),overflow:j.overflow,fullscreen:j.fullscreen,"show-close":j.showClose,title:j.title,"aria-level":j.headerAriaLevel,onClose:h(P)}),Gi({header:Ce(()=>[j.$slots.title?Ue(j.$slots,"title",{key:1}):Ue(j.$slots,"header",{key:0,close:h(P),titleId:h(c),titleClass:h(a).e("title")})]),default:Ce(()=>[Ue(j.$slots,"default")]),_:2},[j.$slots.footer?{name:"footer",fn:Ce(()=>[Ue(j.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):Ie("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_Z)]),_:3},8,["mask","overlay-class","z-index"]),[[bn,h(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var TZ=at(SZ,[["__file","dialog.vue"]]);const EZ=jt(TZ),CZ=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:xe(String),default:"solid"}}),xZ=he({name:"ElDivider"}),IZ=he({...xZ,props:CZ,setup(e){const t=e,n=Je("divider"),r=N(()=>n.cssVar({"border-style":t.borderStyle}));return(a,o)=>(V(),ie("div",{class:K([h(n).b(),h(n).m(a.direction)]),style:vt(h(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(V(),ie("div",{key:0,class:K([h(n).e("text"),h(n).is(a.contentPosition)])},[Ue(a.$slots,"default")],2)):Ie("v-if",!0)],6))}});var AZ=at(IZ,[["__file","divider.vue"]]);const zO=jt(AZ),PZ=tt({...VO,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),MZ=GO,OZ=["aria-label","aria-labelledby","aria-describedby"],$Z=["id","aria-level"],RZ=["aria-label"],kZ=["id"],LZ=he({name:"ElDrawer",inheritAttrs:!1}),NZ=he({...LZ,props:PZ,emits:MZ,setup(e,{expose:t}){const n=e,r=Vr();Fr({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},N(()=>!!r.title));const a=ee(),o=ee(),s=Je("drawer"),{t:l}=hn(),{afterEnter:u,afterLeave:c,beforeLeave:f,visible:d,rendered:p,titleId:g,bodyId:y,zIndex:m,onModalClick:S,onOpenAutoFocus:_,onCloseAutoFocus:P,onFocusoutPrevented:A,onCloseRequested:$,handleClose:k}=jO(n,a),L=N(()=>n.direction==="rtl"||n.direction==="ltr"),B=N(()=>rr(n.size));return t({handleClose:k,afterEnter:u,afterLeave:c}),(H,G)=>(V(),Fe(Lc,{to:"body",disabled:!H.appendToBody},[ye(Tr,{name:h(s).b("fade"),onAfterEnter:h(u),onAfterLeave:h(c),onBeforeLeave:h(f),persisted:""},{default:Ce(()=>[Lt(ye(h(t1),{mask:H.modal,"overlay-class":H.modalClass,"z-index":h(m),onClick:h(S)},{default:Ce(()=>[ye(h(vh),{loop:"",trapped:h(d),"focus-trap-el":a.value,"focus-start-el":o.value,onFocusAfterTrapped:h(_),onFocusAfterReleased:h(P),onFocusoutPrevented:h(A),onReleaseRequested:h($)},{default:Ce(()=>[de("div",rn({ref_key:"drawerRef",ref:a,"aria-modal":"true","aria-label":H.title||void 0,"aria-labelledby":H.title?void 0:h(g),"aria-describedby":h(y)},H.$attrs,{class:[h(s).b(),H.direction,h(d)&&"open"],style:h(L)?"width: "+h(B):"height: "+h(B),role:"dialog",onClick:G[1]||(G[1]=Ot(()=>{},["stop"]))}),[de("span",{ref_key:"focusStartRef",ref:o,class:K(h(s).e("sr-focus")),tabindex:"-1"},null,2),H.withHeader?(V(),ie("header",{key:0,class:K(h(s).e("header"))},[H.$slots.title?Ue(H.$slots,"title",{key:1},()=>[Ie(" DEPRECATED SLOT ")]):Ue(H.$slots,"header",{key:0,close:h(k),titleId:h(g),titleClass:h(s).e("title")},()=>[H.$slots.title?Ie("v-if",!0):(V(),ie("span",{key:0,id:h(g),role:"heading","aria-level":H.headerAriaLevel,class:K(h(s).e("title"))},ot(H.title),11,$Z))]),H.showClose?(V(),ie("button",{key:2,"aria-label":h(l)("el.drawer.close"),class:K(h(s).e("close-btn")),type:"button",onClick:G[0]||(G[0]=(...j)=>h(k)&&h(k)(...j))},[ye(h(ht),{class:K(h(s).e("close"))},{default:Ce(()=>[ye(h(Go))]),_:1},8,["class"])],10,RZ)):Ie("v-if",!0)],2)):Ie("v-if",!0),h(p)?(V(),ie("div",{key:1,id:h(y),class:K(h(s).e("body"))},[Ue(H.$slots,"default")],10,kZ)):Ie("v-if",!0),H.$slots.footer?(V(),ie("div",{key:2,class:K(h(s).e("footer"))},[Ue(H.$slots,"footer")],2)):Ie("v-if",!0)],16,OZ)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[bn,h(d)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var DZ=at(NZ,[["__file","drawer.vue"]]);const FZ=jt(DZ),BZ=he({inheritAttrs:!1});function HZ(e,t,n,r,a,o){return Ue(e.$slots,"default")}var UZ=at(BZ,[["render",HZ],["__file","collection.vue"]]);const VZ=he({name:"ElCollectionItem",inheritAttrs:!1});function GZ(e,t,n,r,a,o){return Ue(e.$slots,"default")}var jZ=at(VZ,[["render",GZ],["__file","collection-item.vue"]]);const KO="data-el-collection-item",WO=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),o={...UZ,name:t,setup(){const l=ee(null),u=new Map;nn(r,{itemMap:u,getItems:()=>{const f=h(l);if(!f)return[];const d=Array.from(f.querySelectorAll(`[${KO}]`));return[...u.values()].sort((g,y)=>d.indexOf(g.ref)-d.indexOf(y.ref))},collectionRef:l})}},s={...jZ,name:n,setup(l,{attrs:u}){const c=ee(null),f=dt(r,void 0);nn(a,{collectionItemRef:c}),Ht(()=>{const d=h(c);d&&f.itemMap.set(d,{ref:d,...u})}),Dn(()=>{const d=h(c);f.itemMap.delete(d)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:o,ElCollectionItem:s}},zZ=tt({style:{type:xe([String,Array,Object])},currentTabId:{type:xe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:xe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:KZ,ElCollectionItem:WZ,COLLECTION_INJECTION_KEY:n1,COLLECTION_ITEM_INJECTION_KEY:XZ}=WO("RovingFocusGroup"),r1=Symbol("elRovingFocusGroup"),XO=Symbol("elRovingFocusGroupItem"),YZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},JZ=(e,t)=>e,qZ=(e,t,n)=>{const r=JZ(e.key);return YZ[r]},QZ=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),a1=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},_C="currentTabIdChange",wC="rovingFocusGroup.entryFocus",ZZ={bubbles:!1,cancelable:!0},eee=he({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:zZ,emits:[_C,"entryFocus"],setup(e,{emit:t}){var n;const r=ee((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=ee(!1),o=ee(!1),s=ee(null),{getItems:l}=dt(n1,void 0),u=N(()=>[{outline:"none"},e.style]),c=m=>{t(_C,m)},f=()=>{a.value=!0},d=nr(m=>{var S;(S=e.onMousedown)==null||S.call(e,m)},()=>{o.value=!0}),p=nr(m=>{var S;(S=e.onFocus)==null||S.call(e,m)},m=>{const S=!h(o),{target:_,currentTarget:P}=m;if(_===P&&S&&!h(a)){const A=new Event(wC,ZZ);if(P==null||P.dispatchEvent(A),!A.defaultPrevented){const $=l().filter(G=>G.focusable),k=$.find(G=>G.active),L=$.find(G=>G.id===h(r)),H=[k,L,...$].filter(Boolean).map(G=>G.ref);a1(H)}}o.value=!1}),g=nr(m=>{var S;(S=e.onBlur)==null||S.call(e,m)},()=>{a.value=!1}),y=(...m)=>{t("entryFocus",...m)};nn(r1,{currentTabbedId:kc(r),loop:On(e,"loop"),tabIndex:N(()=>h(a)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:u,orientation:On(e,"orientation"),dir:On(e,"dir"),onItemFocus:c,onItemShiftTab:f,onBlur:g,onFocus:p,onMousedown:d}),We(()=>e.currentTabId,m=>{r.value=m??null}),Bn(s,wC,y)}});function tee(e,t,n,r,a,o){return Ue(e.$slots,"default")}var nee=at(eee,[["render",tee],["__file","roving-focus-group-impl.vue"]]);const ree=he({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:KZ,ElRovingFocusGroupImpl:nee}});function aee(e,t,n,r,a,o){const s=Xt("el-roving-focus-group-impl"),l=Xt("el-focus-group-collection");return V(),Fe(l,null,{default:Ce(()=>[ye(s,Di(ac(e.$attrs)),{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},16)]),_:3})}var oee=at(ree,[["render",aee],["__file","roving-focus-group.vue"]]);const iee=he({components:{ElRovingFocusCollectionItem:WZ},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:o}=dt(r1,void 0),{getItems:s}=dt(n1,void 0),l=ra(),u=ee(null),c=nr(g=>{t("mousedown",g)},g=>{e.focusable?a(h(l)):g.preventDefault()}),f=nr(g=>{t("focus",g)},()=>{a(h(l))}),d=nr(g=>{t("keydown",g)},g=>{const{key:y,shiftKey:m,target:S,currentTarget:_}=g;if(y===St.tab&&m){o();return}if(S!==_)return;const P=qZ(g);if(P){g.preventDefault();let $=s().filter(k=>k.focusable).map(k=>k.ref);switch(P){case"last":{$.reverse();break}case"prev":case"next":{P==="prev"&&$.reverse();const k=$.indexOf(_);$=r.value?QZ($,k+1):$.slice(k+1);break}}bt(()=>{a1($)})}}),p=N(()=>n.value===h(l));return nn(XO,{rovingFocusGroupItemRef:u,tabIndex:N(()=>h(p)?0:-1),handleMousedown:c,handleFocus:f,handleKeydown:d}),{id:l,handleKeydown:d,handleFocus:f,handleMousedown:c}}});function see(e,t,n,r,a,o){const s=Xt("el-roving-focus-collection-item");return V(),Fe(s,{id:e.id,focusable:e.focusable,active:e.active},{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var lee=at(iee,[["render",see],["__file","roving-focus-item.vue"]]);const Kp=tt({trigger:Tf.trigger,effect:{...Lr.effect,default:"light"},type:{type:xe(String)},placement:{type:xe(String),default:"bottom"},popperOptions:{type:xe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:xe([Number,String]),default:0},maxHeight:{type:xe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:xe(Object)},teleported:Lr.teleported}),YO=tt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Pn}}),uee=tt({onKeydown:{type:xe(Function)}}),cee=[St.down,St.pageDown,St.home],JO=[St.up,St.pageUp,St.end],dee=[...cee,...JO],{ElCollection:fee,ElCollectionItem:hee,COLLECTION_INJECTION_KEY:pee,COLLECTION_ITEM_INJECTION_KEY:vee}=WO("Dropdown"),Lv=Symbol("elDropdown"),{ButtonGroup:mee}=Hr,gee=he({name:"ElDropdown",components:{ElButton:Hr,ElButtonGroup:mee,ElScrollbar:ts,ElDropdownCollection:fee,ElTooltip:fa,ElRovingFocusGroup:oee,ElOnlyChild:SM,ElIcon:ht,ArrowDown:Zi},props:Kp,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Gt(),r=Je("dropdown"),{t:a}=hn(),o=ee(),s=ee(),l=ee(null),u=ee(null),c=ee(null),f=ee(null),d=ee(!1),p=[St.enter,St.space,St.down],g=N(()=>({maxHeight:rr(e.maxHeight)})),y=N(()=>[r.m(k.value)]),m=N(()=>Hs(e.trigger)),S=ra().value,_=N(()=>e.id||S);We([o,m],([X,te],[Y])=>{var Z,ae,ve;(Z=Y==null?void 0:Y.$el)!=null&&Z.removeEventListener&&Y.$el.removeEventListener("pointerenter",B),(ae=X==null?void 0:X.$el)!=null&&ae.removeEventListener&&X.$el.removeEventListener("pointerenter",B),(ve=X==null?void 0:X.$el)!=null&&ve.addEventListener&&te.includes("hover")&&X.$el.addEventListener("pointerenter",B)},{immediate:!0}),Dn(()=>{var X,te;(te=(X=o.value)==null?void 0:X.$el)!=null&&te.removeEventListener&&o.value.$el.removeEventListener("pointerenter",B)});function P(){A()}function A(){var X;(X=l.value)==null||X.onClose()}function $(){var X;(X=l.value)==null||X.onOpen()}const k=yr();function L(...X){t("command",...X)}function B(){var X,te;(te=(X=o.value)==null?void 0:X.$el)==null||te.focus()}function H(){}function G(){const X=h(u);m.value.includes("hover")&&(X==null||X.focus()),f.value=null}function j(X){f.value=X}function W(X){d.value||(X.preventDefault(),X.stopImmediatePropagation())}function Q(){t("visible-change",!0)}function ue(X){(X==null?void 0:X.type)==="keydown"&&u.value.focus()}function se(){t("visible-change",!1)}return nn(Lv,{contentRef:u,role:N(()=>e.role),triggerId:_,isUsingKeyboard:d,onItemEnter:H,onItemLeave:G}),nn("elDropdown",{instance:n,dropdownSize:k,handleClick:P,commandHandler:L,trigger:On(e,"trigger"),hideOnClick:On(e,"hideOnClick")}),{t:a,ns:r,scrollbar:c,wrapStyle:g,dropdownTriggerKls:y,dropdownSize:k,triggerId:_,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:j,handlerMainButtonClick:X=>{t("click",X)},handleEntryFocus:W,handleClose:A,handleOpen:$,handleBeforeShowTooltip:Q,handleShowTooltip:ue,handleBeforeHideTooltip:se,onFocusAfterTrapped:X=>{var te,Y;X.preventDefault(),(Y=(te=u.value)==null?void 0:te.focus)==null||Y.call(te,{preventScroll:!0})},popperRef:l,contentRef:u,triggeringElementRef:o,referenceElementRef:s}}});function yee(e,t,n,r,a,o){var s;const l=Xt("el-dropdown-collection"),u=Xt("el-roving-focus-group"),c=Xt("el-scrollbar"),f=Xt("el-only-child"),d=Xt("el-tooltip"),p=Xt("el-button"),g=Xt("arrow-down"),y=Xt("el-icon"),m=Xt("el-button-group");return V(),ie("div",{class:K([e.ns.b(),e.ns.is("disabled",e.disabled)])},[ye(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Gi({content:Ce(()=>[ye(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Ce(()=>[ye(u,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Ce(()=>[ye(l,null,{default:Ce(()=>[Ue(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Ce(()=>[ye(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(V(),Fe(m,{key:0},{default:Ce(()=>[ye(p,rn({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),ye(p,rn({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:Ce(()=>[ye(y,{class:K(e.ns.e("icon"))},{default:Ce(()=>[ye(g)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Ie("v-if",!0)],2)}var bee=at(gee,[["render",yee],["__file","dropdown.vue"]]);const _ee=he({name:"DropdownItemImpl",components:{ElIcon:ht},props:YO,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Je("dropdown"),{role:r}=dt(Lv,void 0),{collectionItemRef:a}=dt(vee,void 0),{collectionItemRef:o}=dt(XZ,void 0),{rovingFocusGroupItemRef:s,tabIndex:l,handleFocus:u,handleKeydown:c,handleMousedown:f}=dt(XO,void 0),d=Ev(a,o,s),p=N(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),g=nr(y=>{const{code:m}=y;if(m===St.enter||m===St.space)return y.preventDefault(),y.stopImmediatePropagation(),t("clickimpl",y),!0},c);return{ns:n,itemRef:d,dataset:{[KO]:""},role:p,tabIndex:l,handleFocus:u,handleKeydown:g,handleMousedown:f}}}),wee=["aria-disabled","tabindex","role"];function See(e,t,n,r,a,o){const s=Xt("el-icon");return V(),ie(mt,null,[e.divided?(V(),ie("li",rn({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Ie("v-if",!0),de("li",rn({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=l=>e.$emit("clickimpl",l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onKeydown:t[2]||(t[2]=Ot((...l)=>e.handleKeydown&&e.handleKeydown(...l),["self"])),onMousedown:t[3]||(t[3]=(...l)=>e.handleMousedown&&e.handleMousedown(...l)),onPointermove:t[4]||(t[4]=l=>e.$emit("pointermove",l)),onPointerleave:t[5]||(t[5]=l=>e.$emit("pointerleave",l))}),[e.icon?(V(),Fe(s,{key:0},{default:Ce(()=>[(V(),Fe(Zt(e.icon)))]),_:1})):Ie("v-if",!0),Ue(e.$slots,"default")],16,wee)],64)}var Tee=at(_ee,[["render",See],["__file","dropdown-item-impl.vue"]]);const qO=()=>{const e=dt("elDropdown",{}),t=N(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Eee=he({name:"ElDropdownItem",components:{ElDropdownCollectionItem:hee,ElRovingFocusItem:lee,ElDropdownItemImpl:Tee},inheritAttrs:!1,props:YO,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=qO(),a=Gt(),o=ee(null),s=N(()=>{var g,y;return(y=(g=h(o))==null?void 0:g.textContent)!=null?y:""}),{onItemEnter:l,onItemLeave:u}=dt(Lv,void 0),c=nr(g=>(t("pointermove",g),g.defaultPrevented),mT(g=>{if(e.disabled){u(g);return}const y=g.currentTarget;y===document.activeElement||y.contains(document.activeElement)||(l(g),g.defaultPrevented||y==null||y.focus())})),f=nr(g=>(t("pointerleave",g),g.defaultPrevented),mT(g=>{u(g)})),d=nr(g=>{if(!e.disabled)return t("click",g),g.type!=="keydown"&&g.defaultPrevented},g=>{var y,m,S;if(e.disabled){g.stopImmediatePropagation();return}(y=r==null?void 0:r.hideOnClick)!=null&&y.value&&((m=r.handleClick)==null||m.call(r)),(S=r.commandHandler)==null||S.call(r,e.command,a,g)}),p=N(()=>({...e,...n}));return{handleClick:d,handlePointerMove:c,handlePointerLeave:f,textContent:s,propsAndAttrs:p}}});function Cee(e,t,n,r,a,o){var s;const l=Xt("el-dropdown-item-impl"),u=Xt("el-roving-focus-item"),c=Xt("el-dropdown-collection-item");return V(),Fe(c,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:Ce(()=>[ye(u,{focusable:!e.disabled},{default:Ce(()=>[ye(l,rn(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var QO=at(Eee,[["render",Cee],["__file","dropdown-item.vue"]]);const xee=he({name:"ElDropdownMenu",props:uee,setup(e){const t=Je("dropdown"),{_elDropdownSize:n}=qO(),r=n.value,{focusTrapRef:a,onKeydown:o}=dt(z_,void 0),{contentRef:s,role:l,triggerId:u}=dt(Lv,void 0),{collectionRef:c,getItems:f}=dt(pee,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:p,tabIndex:g,onBlur:y,onFocus:m,onMousedown:S}=dt(r1,void 0),{collectionRef:_}=dt(n1,void 0),P=N(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),A=Ev(s,c,a,d,_),$=nr(L=>{var B;(B=e.onKeydown)==null||B.call(e,L)},L=>{const{currentTarget:B,code:H,target:G}=L;if(B.contains(G),St.tab===H&&L.stopImmediatePropagation(),L.preventDefault(),G!==h(s)||!dee.includes(H))return;const W=f().filter(Q=>!Q.disabled).map(Q=>Q.ref);JO.includes(H)&&W.reverse(),a1(W)});return{size:r,rovingFocusGroupRootStyle:p,tabIndex:g,dropdownKls:P,role:l,triggerId:u,dropdownListWrapperRef:A,handleKeydown:L=>{$(L),o(L)},onBlur:y,onFocus:m,onMousedown:S}}}),Iee=["role","aria-labelledby"];function Aee(e,t,n,r,a,o){return V(),ie("ul",{ref:e.dropdownListWrapperRef,class:K(e.dropdownKls),style:vt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=Ot((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=Ot((...s)=>e.onMousedown&&e.onMousedown(...s),["self"]))},[Ue(e.$slots,"default")],46,Iee)}var ZO=at(xee,[["render",Aee],["__file","dropdown-menu.vue"]]);const Pee=jt(bee,{DropdownItem:QO,DropdownMenu:ZO}),Mee=Yn(QO),Oee=Yn(ZO),$ee={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ree=["id"],kee=["stop-color"],Lee=["stop-color"],Nee=["id"],Dee=["stop-color"],Fee=["stop-color"],Bee=["id"],Hee={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Uee={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Vee={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Gee=["fill"],jee=["fill"],zee={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},Kee=["fill"],Wee=["fill"],Xee=["fill"],Yee=["fill"],Jee=["fill"],qee={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},Qee=["fill","xlink:href"],Zee=["fill","mask"],ete=["fill"],tte=he({name:"ImgEmpty"}),nte=he({...tte,setup(e){const t=Je("empty"),n=ra();return(r,a)=>(V(),ie("svg",$ee,[de("defs",null,[de("linearGradient",{id:`linearGradient-1-${h(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[de("stop",{"stop-color":`var(${h(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,kee),de("stop",{"stop-color":`var(${h(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Lee)],8,Ree),de("linearGradient",{id:`linearGradient-2-${h(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[de("stop",{"stop-color":`var(${h(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,Dee),de("stop",{"stop-color":`var(${h(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,Fee)],8,Nee),de("rect",{id:`path-3-${h(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,Bee)]),de("g",Hee,[de("g",Uee,[de("g",Vee,[de("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${h(t).cssVarBlockName("fill-color-3")})`},null,8,Gee),de("polygon",{id:"Rectangle-Copy-14",fill:`var(${h(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,jee),de("g",zee,[de("polygon",{id:"Rectangle-Copy-10",fill:`var(${h(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,Kee),de("polygon",{id:"Rectangle-Copy-11",fill:`var(${h(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,Wee),de("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${h(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,Xee),de("polygon",{id:"Rectangle-Copy-13",fill:`var(${h(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,Yee)]),de("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${h(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,Jee),de("g",qee,[de("use",{id:"Mask",fill:`var(${h(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${h(n)}`},null,8,Qee),de("polygon",{id:"Rectangle-Copy",fill:`var(${h(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${h(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,Zee)]),de("polygon",{id:"Rectangle-Copy-18",fill:`var(${h(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,ete)])])])]))}});var rte=at(nte,[["__file","img-empty.vue"]]);const ate=tt({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ote=["src"],ite={key:1},ste=he({name:"ElEmpty"}),lte=he({...ste,props:ate,setup(e){const t=e,{t:n}=hn(),r=Je("empty"),a=N(()=>t.description||n("el.table.emptyText")),o=N(()=>({width:rr(t.imageSize)}));return(s,l)=>(V(),ie("div",{class:K(h(r).b())},[de("div",{class:K(h(r).e("image")),style:vt(h(o))},[s.image?(V(),ie("img",{key:0,src:s.image,ondragstart:"return false"},null,8,ote)):Ue(s.$slots,"image",{key:1},()=>[ye(rte)])],6),de("div",{class:K(h(r).e("description"))},[s.$slots.description?Ue(s.$slots,"description",{key:0}):(V(),ie("p",ite,ot(h(a)),1))],2),s.$slots.default?(V(),ie("div",{key:0,class:K(h(r).e("bottom"))},[Ue(s.$slots,"default")],2)):Ie("v-if",!0)],2))}});var ute=at(lte,[["__file","empty.vue"]]);const e3=jt(ute),cte=tt({urlList:{type:xe(Array),default:()=>Xn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:xe(String)}}),dte={close:()=>!0,switch:e=>It(e),rotate:e=>It(e)},fte=["src","crossorigin"],hte=he({name:"ElImageViewer"}),pte=he({...hte,props:cte,emits:dte,setup(e,{expose:t,emit:n}){var r;const a=e,o={CONTAIN:{name:"contain",icon:ju(x7)},ORIGINAL:{name:"original",icon:ju(K7)}},{t:s}=hn(),l=Je("image-viewer"),{nextZIndex:u}=Uc(),c=ee(),f=ee([]),d=_8(),p=ee(!0),g=ee(a.initialIndex),y=Fn(o.CONTAIN),m=ee({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=ee((r=a.zIndex)!=null?r:u()),_=N(()=>{const{urlList:Z}=a;return Z.length<=1}),P=N(()=>g.value===0),A=N(()=>g.value===a.urlList.length-1),$=N(()=>a.urlList[g.value]),k=N(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!a.infinite&&P.value)]),L=N(()=>[l.e("btn"),l.e("next"),l.is("disabled",!a.infinite&&A.value)]),B=N(()=>{const{scale:Z,deg:ae,offsetX:ve,offsetY:we,enableTransition:Me}=m.value;let Ge=ve/Z,Ee=we/Z;switch(ae%360){case 90:case-270:[Ge,Ee]=[Ee,-Ge];break;case 180:case-180:[Ge,Ee]=[-Ge,-Ee];break;case 270:case-90:[Ge,Ee]=[-Ee,Ge];break}const pe={transform:`scale(${Z}) rotate(${ae}deg) translate(${Ge}px, ${Ee}px)`,transition:Me?"transform .3s":""};return y.value.name===o.CONTAIN.name&&(pe.maxWidth=pe.maxHeight="100%"),pe});function H(){j(),n("close")}function G(){const Z=Ul(ve=>{switch(ve.code){case St.esc:a.closeOnPressEscape&&H();break;case St.space:ne();break;case St.left:X();break;case St.up:Y("zoomIn");break;case St.right:te();break;case St.down:Y("zoomOut");break}}),ae=Ul(ve=>{const we=ve.deltaY||ve.deltaX;Y(we<0?"zoomIn":"zoomOut",{zoomRate:a.zoomRate,enableTransition:!1})});d.run(()=>{Bn(document,"keydown",Z),Bn(document,"wheel",ae)})}function j(){d.stop()}function W(){p.value=!1}function Q(Z){p.value=!1,Z.target.alt=s("el.image.error")}function ue(Z){if(p.value||Z.button!==0||!c.value)return;m.value.enableTransition=!1;const{offsetX:ae,offsetY:ve}=m.value,we=Z.pageX,Me=Z.pageY,Ge=Ul(pe=>{m.value={...m.value,offsetX:ae+pe.pageX-we,offsetY:ve+pe.pageY-Me}}),Ee=Bn(document,"mousemove",Ge);Bn(document,"mouseup",()=>{Ee()}),Z.preventDefault()}function se(){m.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function ne(){if(p.value)return;const Z=dc(o),ae=Object.values(o),ve=y.value.name,Me=(ae.findIndex(Ge=>Ge.name===ve)+1)%Z.length;y.value=o[Z[Me]],se()}function J(Z){const ae=a.urlList.length;g.value=(Z+ae)%ae}function X(){P.value&&!a.infinite||J(g.value-1)}function te(){A.value&&!a.infinite||J(g.value+1)}function Y(Z,ae={}){if(p.value)return;const{minScale:ve,maxScale:we}=a,{zoomRate:Me,rotateDeg:Ge,enableTransition:Ee}={zoomRate:a.zoomRate,rotateDeg:90,enableTransition:!0,...ae};switch(Z){case"zoomOut":m.value.scale>ve&&(m.value.scale=Number.parseFloat((m.value.scale/Me).toFixed(3)));break;case"zoomIn":m.value.scale<we&&(m.value.scale=Number.parseFloat((m.value.scale*Me).toFixed(3)));break;case"clockwise":m.value.deg+=Ge,n("rotate",m.value.deg);break;case"anticlockwise":m.value.deg-=Ge,n("rotate",m.value.deg);break}m.value.enableTransition=Ee}return We($,()=>{bt(()=>{const Z=f.value[0];Z!=null&&Z.complete||(p.value=!0)})}),We(g,Z=>{se(),n("switch",Z)}),Ht(()=>{var Z,ae;G(),(ae=(Z=c.value)==null?void 0:Z.focus)==null||ae.call(Z)}),t({setActiveItem:J}),(Z,ae)=>(V(),Fe(Lc,{to:"body",disabled:!Z.teleported},[ye(Tr,{name:"viewer-fade",appear:""},{default:Ce(()=>[de("div",{ref_key:"wrapper",ref:c,tabindex:-1,class:K(h(l).e("wrapper")),style:vt({zIndex:S.value})},[de("div",{class:K(h(l).e("mask")),onClick:ae[0]||(ae[0]=Ot(ve=>Z.hideOnClickModal&&H(),["self"]))},null,2),Ie(" CLOSE "),de("span",{class:K([h(l).e("btn"),h(l).e("close")]),onClick:H},[ye(h(ht),null,{default:Ce(()=>[ye(h(Go))]),_:1})],2),Ie(" ARROW "),h(_)?Ie("v-if",!0):(V(),ie(mt,{key:0},[de("span",{class:K(h(k)),onClick:X},[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1})],2),de("span",{class:K(h(L)),onClick:te},[ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})],2)],64)),Ie(" ACTIONS "),de("div",{class:K([h(l).e("btn"),h(l).e("actions")])},[de("div",{class:K(h(l).e("actions__inner"))},[ye(h(ht),{onClick:ae[1]||(ae[1]=ve=>Y("zoomOut"))},{default:Ce(()=>[ye(h(lU))]),_:1}),ye(h(ht),{onClick:ae[2]||(ae[2]=ve=>Y("zoomIn"))},{default:Ce(()=>[ye(h(OP))]),_:1}),de("i",{class:K(h(l).e("actions__divider"))},null,2),ye(h(ht),{onClick:ne},{default:Ce(()=>[(V(),Fe(Zt(h(y).icon)))]),_:1}),de("i",{class:K(h(l).e("actions__divider"))},null,2),ye(h(ht),{onClick:ae[3]||(ae[3]=ve=>Y("anticlockwise"))},{default:Ce(()=>[ye(h(V7))]),_:1}),ye(h(ht),{onClick:ae[4]||(ae[4]=ve=>Y("clockwise"))},{default:Ce(()=>[ye(h(j7))]),_:1})],2)],2),Ie(" CANVAS "),de("div",{class:K(h(l).e("canvas"))},[(V(!0),ie(mt,null,sn(Z.urlList,(ve,we)=>Lt((V(),ie("img",{ref_for:!0,ref:Me=>f.value[we]=Me,key:ve,src:ve,style:vt(h(B)),class:K(h(l).e("img")),crossorigin:Z.crossorigin,onLoad:W,onError:Q,onMousedown:ue},null,46,fte)),[[bn,we===g.value]])),128))],2),Ue(Z.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var vte=at(pte,[["__file","image-viewer.vue"]]);const t3=jt(vte),mte=tt({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:xe([String,Object])},previewSrcList:{type:xe(Array),default:()=>Xn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:xe(String)}}),gte={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>It(e),close:()=>!0,show:()=>!0},yte=["src","loading","crossorigin"],bte={key:0},_te=he({name:"ElImage",inheritAttrs:!1}),wte=he({..._te,props:mte,emits:gte,setup(e,{emit:t}){const n=e;let r="";const{t:a}=hn(),o=Je("image"),s=lu(),l=w_(),u=ee(),c=ee(!1),f=ee(!0),d=ee(!1),p=ee(),g=ee(),y=ln&&"loading"in HTMLImageElement.prototype;let m,S;const _=N(()=>[o.e("inner"),$.value&&o.e("preview"),f.value&&o.is("loading")]),P=N(()=>s.style),A=N(()=>{const{fit:te}=n;return ln&&te?{objectFit:te}:{}}),$=N(()=>{const{previewSrcList:te}=n;return Array.isArray(te)&&te.length>0}),k=N(()=>{const{previewSrcList:te,initialIndex:Y}=n;let Z=Y;return Y>te.length-1&&(Z=0),Z}),L=N(()=>n.loading==="eager"?!1:!y&&n.loading==="lazy"||n.lazy),B=()=>{ln&&(f.value=!0,c.value=!1,u.value=n.src)};function H(te){f.value=!1,c.value=!1,t("load",te)}function G(te){f.value=!1,c.value=!0,t("error",te)}function j(){wD(p.value,g.value)&&(B(),ue())}const W=RA(j,200,!0);async function Q(){var te;if(!ln)return;await bt();const{scrollContainer:Y}=n;bo(Y)?g.value=Y:Rt(Y)&&Y!==""?g.value=(te=document.querySelector(Y))!=null?te:void 0:p.value&&(g.value=f_(p.value)),g.value&&(m=Bn(g,"scroll",W),setTimeout(()=>j(),100))}function ue(){!ln||!g.value||!W||(m==null||m(),g.value=void 0)}function se(te){if(te.ctrlKey){if(te.deltaY<0)return te.preventDefault(),!1;if(te.deltaY>0)return te.preventDefault(),!1}}function ne(){$.value&&(S=Bn("wheel",se,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",d.value=!0,t("show"))}function J(){S==null||S(),document.body.style.overflow=r,d.value=!1,t("close")}function X(te){t("switch",te)}return We(()=>n.src,()=>{L.value?(f.value=!0,c.value=!1,ue(),Q()):B()}),Ht(()=>{L.value?Q():B()}),(te,Y)=>(V(),ie("div",{ref_key:"container",ref:p,class:K([h(o).b(),te.$attrs.class]),style:vt(h(P))},[c.value?Ue(te.$slots,"error",{key:0},()=>[de("div",{class:K(h(o).e("error"))},ot(h(a)("el.image.error")),3)]):(V(),ie(mt,{key:1},[u.value!==void 0?(V(),ie("img",rn({key:0},h(l),{src:u.value,loading:te.loading,style:h(A),class:h(_),crossorigin:te.crossorigin,onClick:ne,onLoad:H,onError:G}),null,16,yte)):Ie("v-if",!0),f.value?(V(),ie("div",{key:1,class:K(h(o).e("wrapper"))},[Ue(te.$slots,"placeholder",{},()=>[de("div",{class:K(h(o).e("placeholder"))},null,2)])],2)):Ie("v-if",!0)],64)),h($)?(V(),ie(mt,{key:2},[d.value?(V(),Fe(h(t3),{key:0,"z-index":te.zIndex,"initial-index":h(k),infinite:te.infinite,"zoom-rate":te.zoomRate,"min-scale":te.minScale,"max-scale":te.maxScale,"url-list":te.previewSrcList,"hide-on-click-modal":te.hideOnClickModal,teleported:te.previewTeleported,"close-on-press-escape":te.closeOnPressEscape,onClose:J,onSwitch:X},{default:Ce(()=>[te.$slots.viewer?(V(),ie("div",bte,[Ue(te.$slots,"viewer")])):Ie("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):Ie("v-if",!0)],64)):Ie("v-if",!0)],6))}});var Ste=at(wte,[["__file","image.vue"]]);const Tte=jt(Ste),Ete=tt({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Rr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||It(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...Xr(["ariaLabel"])}),Cte={[Hn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[wa]:e=>It(e)||Br(e),[Yt]:e=>It(e)||Br(e)},xte=["aria-label","onKeydown"],Ite=["aria-label","onKeydown"],Ate=he({name:"ElInputNumber"}),Pte=he({...Ate,props:Ete,emits:Cte,setup(e,{expose:t,emit:n}){const r=e,{t:a}=hn(),o=Je("input-number"),s=ee(),l=Sn({currentValue:r.modelValue,userInput:null}),{formItem:u}=va(),c=N(()=>It(r.modelValue)&&r.modelValue<=r.min),f=N(()=>It(r.modelValue)&&r.modelValue>=r.max),d=N(()=>{const ne=_(r.step);return vr(r.precision)?Math.max(_(r.modelValue),ne):(ne>r.precision,r.precision)}),p=N(()=>r.controls&&r.controlsPosition==="right"),g=yr(),y=Ca(),m=N(()=>{if(l.userInput!==null)return l.userInput;let ne=l.currentValue;if(Br(ne))return"";if(It(ne)){if(Number.isNaN(ne))return"";vr(r.precision)||(ne=ne.toFixed(r.precision))}return ne}),S=(ne,J)=>{if(vr(J)&&(J=d.value),J===0)return Math.round(ne);let X=String(ne);const te=X.indexOf(".");if(te===-1||!X.replace(".","").split("")[te+J])return ne;const ae=X.length;return X.charAt(ae-1)==="5"&&(X=`${X.slice(0,Math.max(0,ae-1))}6`),Number.parseFloat(Number(X).toFixed(J))},_=ne=>{if(Br(ne))return 0;const J=ne.toString(),X=J.indexOf(".");let te=0;return X!==-1&&(te=J.length-X-1),te},P=(ne,J=1)=>It(ne)?S(ne+r.step*J):l.currentValue,A=()=>{if(r.readonly||y.value||f.value)return;const ne=Number(m.value)||0,J=P(ne);L(J),n(wa,l.currentValue),ue()},$=()=>{if(r.readonly||y.value||c.value)return;const ne=Number(m.value)||0,J=P(ne,-1);L(J),n(wa,l.currentValue),ue()},k=(ne,J)=>{const{max:X,min:te,step:Y,precision:Z,stepStrictly:ae,valueOnClear:ve}=r;X<te&&Er("InputNumber","min should not be greater than max.");let we=Number(ne);if(Br(ne)||Number.isNaN(we))return null;if(ne===""){if(ve===null)return null;we=Rt(ve)?{min:te,max:X}[ve]:ve}return ae&&(we=S(Math.round(we/Y)*Y,Z)),vr(Z)||(we=S(we,Z)),(we>X||we<te)&&(we=we>X?X:te,J&&n(Yt,we)),we},L=(ne,J=!0)=>{var X;const te=l.currentValue,Y=k(ne);if(!J){n(Yt,Y);return}te===Y&&ne||(l.userInput=null,n(Yt,Y),te!==Y&&n(Hn,Y,te),r.validateEvent&&((X=u==null?void 0:u.validate)==null||X.call(u,"change").catch(Z=>void 0)),l.currentValue=Y)},B=ne=>{l.userInput=ne;const J=ne===""?null:Number(ne);n(wa,J),L(J,!1)},H=ne=>{const J=ne!==""?Number(ne):"";(It(J)&&!Number.isNaN(J)||ne==="")&&L(J),ue(),l.userInput=null},G=()=>{var ne,J;(J=(ne=s.value)==null?void 0:ne.focus)==null||J.call(ne)},j=()=>{var ne,J;(J=(ne=s.value)==null?void 0:ne.blur)==null||J.call(ne)},W=ne=>{n("focus",ne)},Q=ne=>{var J;l.userInput=null,n("blur",ne),r.validateEvent&&((J=u==null?void 0:u.validate)==null||J.call(u,"blur").catch(X=>void 0))},ue=()=>{l.currentValue!==r.modelValue&&(l.currentValue=r.modelValue)},se=ne=>{document.activeElement===ne.target&&ne.preventDefault()};return We(()=>r.modelValue,(ne,J)=>{const X=k(ne,!0);l.userInput===null&&X!==J&&(l.currentValue=X)},{immediate:!0}),Ht(()=>{var ne;const{min:J,max:X,modelValue:te}=r,Y=(ne=s.value)==null?void 0:ne.input;if(Y.setAttribute("role","spinbutton"),Number.isFinite(X)?Y.setAttribute("aria-valuemax",String(X)):Y.removeAttribute("aria-valuemax"),Number.isFinite(J)?Y.setAttribute("aria-valuemin",String(J)):Y.removeAttribute("aria-valuemin"),Y.setAttribute("aria-valuenow",l.currentValue||l.currentValue===0?String(l.currentValue):""),Y.setAttribute("aria-disabled",String(y.value)),!It(te)&&te!=null){let Z=Number(te);Number.isNaN(Z)&&(Z=null),n(Yt,Z)}Y.addEventListener("wheel",se,{passive:!1})}),Ji(()=>{var ne,J;const X=(ne=s.value)==null?void 0:ne.input;X==null||X.setAttribute("aria-valuenow",`${(J=l.currentValue)!=null?J:""}`)}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input-number",ref:"https://element-plus.org/en-US/component/input-number.html"},N(()=>!!r.label)),t({focus:G,blur:j}),(ne,J)=>(V(),ie("div",{class:K([h(o).b(),h(o).m(h(g)),h(o).is("disabled",h(y)),h(o).is("without-controls",!ne.controls),h(o).is("controls-right",h(p))]),onDragstart:J[0]||(J[0]=Ot(()=>{},["prevent"]))},[ne.controls?Lt((V(),ie("span",{key:0,role:"button","aria-label":h(a)("el.inputNumber.decrease"),class:K([h(o).e("decrease"),h(o).is("disabled",h(c))]),onKeydown:An($,["enter"])},[Ue(ne.$slots,"decrease-icon",{},()=>[ye(h(ht),null,{default:Ce(()=>[h(p)?(V(),Fe(h(Zi),{key:0})):(V(),Fe(h($7),{key:1}))]),_:1})])],42,xte)),[[h(P0),$]]):Ie("v-if",!0),ne.controls?Lt((V(),ie("span",{key:1,role:"button","aria-label":h(a)("el.inputNumber.increase"),class:K([h(o).e("increase"),h(o).is("disabled",h(f))]),onKeydown:An(A,["enter"])},[Ue(ne.$slots,"increase-icon",{},()=>[ye(h(ht),null,{default:Ce(()=>[h(p)?(V(),Fe(h(h_),{key:0})):(V(),Fe(h(PP),{key:1}))]),_:1})])],42,Ite)),[[h(P0),A]]):Ie("v-if",!0),ye(h(ua),{id:ne.id,ref_key:"input",ref:s,type:"number",step:ne.step,"model-value":h(m),placeholder:ne.placeholder,readonly:ne.readonly,disabled:h(y),size:h(g),max:ne.max,min:ne.min,name:ne.name,"aria-label":ne.label||ne.ariaLabel,"validate-event":!1,onKeydown:[An(Ot(A,["prevent"]),["up"]),An(Ot($,["prevent"]),["down"])],onBlur:Q,onFocus:W,onInput:B,onChange:H},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],34))}});var Mte=at(Pte,[["__file","input-number.vue"]]);const n3=jt(Mte),Ote=tt({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Pn}}),$te={click:e=>e instanceof MouseEvent},Rte=["href","target"],kte=he({name:"ElLink"}),Lte=he({...kte,props:Ote,emits:$te,setup(e,{emit:t}){const n=e,r=Je("link"),a=N(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function o(s){n.disabled||t("click",s)}return(s,l)=>(V(),ie("a",{class:K(h(a)),href:s.disabled||!s.href?void 0:s.href,target:s.disabled||!s.href?void 0:s.target,onClick:o},[s.icon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(s.icon)))]),_:1})):Ie("v-if",!0),s.$slots.default?(V(),ie("span",{key:1,class:K(h(r).e("inner"))},[Ue(s.$slots,"default")],2)):Ie("v-if",!0),s.$slots.icon?Ue(s.$slots,"icon",{key:2}):Ie("v-if",!0)],10,Rte))}});var Nte=at(Lte,[["__file","link.vue"]]);const Dte=jt(Nte);let Fte=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case St.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case St.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case St.tab:{$p(t,"mouseleave");break}case St.enter:case St.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},Bte=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new Fte(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case St.down:{$p(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case St.up:{$p(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case St.tab:{$p(t.currentTarget,"mouseleave");break}case St.enter:case St.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},Hte=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new Bte(r,t)})}};const Ute=he({name:"ElMenuCollapseTransition",setup(){const e=Je("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){lo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){da(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),vo(n,e.m("collapse"))?(da(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),lo(n,e.m("collapse"))):(lo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),da(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){lo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Vte(e,t,n,r,a,o){return V(),Fe(Tr,rn({mode:"out-in"},e.listeners),{default:Ce(()=>[Ue(e.$slots,"default")]),_:3},16)}var Gte=at(Ute,[["render",Vte],["__file","menu-collapse-transition.vue"]]);function r3(e,t){const n=N(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:N(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function jte(e){return N(()=>{const n=e.backgroundColor;return n?new LM(n).shade(20).toString():""})}const a3=(e,t)=>{const n=Je("menu");return N(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":jte(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},zte=tt({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Pn},expandOpenIcon:{type:Pn},collapseCloseIcon:{type:Pn},collapseOpenIcon:{type:Pn}}),Hm="ElSubMenu";var o1=he({name:Hm,props:zte,setup(e,{slots:t,expose:n}){const r=Gt(),{indexPath:a,parentMenu:o}=r3(r,N(()=>e.index)),s=Je("menu"),l=Je("sub-menu"),u=dt("rootMenu");u||Er(Hm,"can not inject root menu");const c=dt(`subMenu:${o.value.uid}`);c||Er(Hm,"can not inject sub menu");const f=ee({}),d=ee({});let p;const g=ee(!1),y=ee(),m=ee(null),S=N(()=>H.value==="horizontal"&&P.value?"bottom-start":"right-start"),_=N(()=>H.value==="horizontal"&&P.value||H.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?L.value?e.expandOpenIcon:e.expandCloseIcon:Zi:e.collapseCloseIcon&&e.collapseOpenIcon?L.value?e.collapseOpenIcon:e.collapseCloseIcon:_a),P=N(()=>c.level===0),A=N(()=>{const Z=e.teleported;return Z===void 0?P.value:Z}),$=N(()=>u.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),k=N(()=>H.value==="horizontal"&&P.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),L=N(()=>u.openedMenus.includes(e.index)),B=N(()=>{let Z=!1;return Object.values(f.value).forEach(ae=>{ae.active&&(Z=!0)}),Object.values(d.value).forEach(ae=>{ae.active&&(Z=!0)}),Z}),H=N(()=>u.props.mode),G=Sn({index:e.index,indexPath:a,active:B}),j=a3(u.props,c.level+1),W=N(()=>{var Z;return(Z=e.popperOffset)!=null?Z:u.props.popperOffset}),Q=N(()=>{var Z;return(Z=e.popperClass)!=null?Z:u.props.popperClass}),ue=N(()=>{var Z;return(Z=e.showTimeout)!=null?Z:u.props.showTimeout}),se=N(()=>{var Z;return(Z=e.hideTimeout)!=null?Z:u.props.hideTimeout}),ne=()=>{var Z,ae,ve;return(ve=(ae=(Z=m.value)==null?void 0:Z.popperRef)==null?void 0:ae.popperInstanceRef)==null?void 0:ve.destroy()},J=Z=>{Z||ne()},X=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:a.value,active:B.value})},te=(Z,ae=ue.value)=>{var ve;if(Z.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,p==null||p(),{stop:p}=Jl(()=>{u.openMenu(e.index,a.value)},ae),A.value&&((ve=o.value.vnode.el)==null||ve.dispatchEvent(new MouseEvent("mouseenter")))}},Y=(Z=!1)=>{var ae;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}p==null||p(),c.mouseInChild.value=!1,{stop:p}=Jl(()=>!g.value&&u.closeMenu(e.index,a.value),se.value),A.value&&Z&&((ae=c.handleMouseleave)==null||ae.call(c,!0))};We(()=>u.props.collapse,Z=>J(!!Z));{const Z=ve=>{d.value[ve.index]=ve},ae=ve=>{delete d.value[ve.index]};nn(`subMenu:${r.uid}`,{addSubMenu:Z,removeSubMenu:ae,handleMouseleave:Y,mouseInChild:g,level:c.level+1})}return n({opened:L}),Ht(()=>{u.addSubMenu(G),c.addSubMenu(G)}),Dn(()=>{c.removeSubMenu(G),u.removeSubMenu(G)}),()=>{var Z;const ae=[(Z=t.title)==null?void 0:Z.call(t),_t(ht,{class:l.e("icon-arrow"),style:{transform:L.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Rt(_.value)?_t(r.appContext.components[_.value]):_t(_.value)})],ve=u.isMenuPopup?_t(fa,{ref:m,visible:L.value,effect:"light",pure:!0,offset:W.value,showArrow:!1,persistent:!0,popperClass:Q.value,placement:S.value,teleported:A.value,fallbackPlacements:k.value,transition:$.value,gpuAcceleration:!1},{content:()=>{var we;return _t("div",{class:[s.m(H.value),s.m("popup-container"),Q.value],onMouseenter:Me=>te(Me,100),onMouseleave:()=>Y(!0),onFocus:Me=>te(Me,100)},[_t("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${S.value}`)],style:j.value},[(we=t.default)==null?void 0:we.call(t)])])},default:()=>_t("div",{class:l.e("title"),onClick:X},ae)}):_t(mt,{},[_t("div",{class:l.e("title"),ref:y,onClick:X},ae),_t(kv,{},{default:()=>{var we;return Lt(_t("ul",{role:"menu",class:[s.b(),s.m("inline")],style:j.value},[(we=t.default)==null?void 0:we.call(t)]),[[bn,L.value]])}})]);return _t("li",{class:[l.b(),l.is("active",B.value),l.is("opened",L.value),l.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:L.value,onMouseenter:te,onMouseleave:()=>Y(),onFocus:te},[ve])}}});const Kte=tt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:xe(Array),default:()=>Xn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Pn,default:()=>L7},popperEffect:{type:String,values:["dark","light"],default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Um=e=>Array.isArray(e)&&e.every(t=>Rt(t)),Wte={close:(e,t)=>Rt(e)&&Um(t),open:(e,t)=>Rt(e)&&Um(t),select:(e,t,n,r)=>Rt(e)&&Um(t)&&Kt(n)&&(r===void 0||r instanceof Promise)};var Xte=he({name:"ElMenu",props:Kte,emits:Wte,setup(e,{emit:t,slots:n,expose:r}){const a=Gt(),o=a.appContext.config.globalProperties.$router,s=ee(),l=Je("menu"),u=Je("sub-menu"),c=ee(-1),f=ee(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=ee(e.defaultActive),p=ee({}),g=ee({}),y=N(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const se=d.value&&p.value[d.value];if(!se||e.mode==="horizontal"||e.collapse)return;se.indexPath.forEach(J=>{const X=g.value[J];X&&S(J,X.indexPath)})},S=(se,ne)=>{f.value.includes(se)||(e.uniqueOpened&&(f.value=f.value.filter(J=>ne.includes(J))),f.value.push(se),t("open",se,ne))},_=se=>{const ne=f.value.indexOf(se);ne!==-1&&f.value.splice(ne,1)},P=(se,ne)=>{_(se),t("close",se,ne)},A=({index:se,indexPath:ne})=>{f.value.includes(se)?P(se,ne):S(se,ne)},$=se=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:ne,indexPath:J}=se;if(!(Br(ne)||Br(J)))if(e.router&&o){const X=se.route||ne,te=o.push(X).then(Y=>(Y||(d.value=ne),Y));t("select",ne,J,{index:ne,indexPath:J,route:X},te)}else d.value=ne,t("select",ne,J,{index:ne,indexPath:J})},k=se=>{const ne=p.value,J=ne[se]||d.value&&ne[d.value]||ne[e.defaultActive];J?d.value=J.index:d.value=se},L=se=>{const ne=getComputedStyle(se),J=Number.parseInt(ne.marginLeft,10),X=Number.parseInt(ne.marginRight,10);return se.offsetWidth+J+X||0},B=()=>{var se,ne;if(!s.value)return-1;const J=Array.from((ne=(se=s.value)==null?void 0:se.childNodes)!=null?ne:[]).filter(Me=>Me.nodeName!=="#comment"&&(Me.nodeName!=="#text"||Me.nodeValue)),X=64,te=getComputedStyle(s.value),Y=Number.parseInt(te.paddingLeft,10),Z=Number.parseInt(te.paddingRight,10),ae=s.value.clientWidth-Y-Z;let ve=0,we=0;return J.forEach((Me,Ge)=>{ve+=L(Me),ve<=ae-X&&(we=Ge+1)}),we===J.length?-1:we},H=se=>g.value[se].indexPath,G=(se,ne=33.34)=>{let J;return()=>{J&&clearTimeout(J),J=setTimeout(()=>{se()},ne)}};let j=!0;const W=()=>{if(c.value===B())return;const se=()=>{c.value=-1,bt(()=>{c.value=B()})};j?se():G(se)(),j=!1};We(()=>e.defaultActive,se=>{p.value[se]||(d.value=""),k(se)}),We(()=>e.collapse,se=>{se&&(f.value=[])}),We(p.value,m);let Q;ta(()=>{e.mode==="horizontal"&&e.ellipsis?Q=Wn(s,W).stop:Q==null||Q()});const ue=ee(!1);{const se=te=>{g.value[te.index]=te},ne=te=>{delete g.value[te.index]};nn("rootMenu",Sn({props:e,openedMenus:f,items:p,subMenus:g,activeIndex:d,isMenuPopup:y,addMenuItem:te=>{p.value[te.index]=te},removeMenuItem:te=>{delete p.value[te.index]},addSubMenu:se,removeSubMenu:ne,openMenu:S,closeMenu:P,handleMenuItemClick:$,handleSubMenuClick:A})),nn(`subMenu:${a.uid}`,{addSubMenu:se,removeSubMenu:ne,mouseInChild:ue,level:0})}return Ht(()=>{e.mode==="horizontal"&&new Hte(a.vnode.el,l.namespace.value)}),r({open:ne=>{const{indexPath:J}=g.value[ne];J.forEach(X=>S(X,J))},close:_,handleResize:W}),()=>{var se,ne;let J=(ne=(se=n.default)==null?void 0:se.call(n))!=null?ne:[];const X=[];if(e.mode==="horizontal"&&s.value){const ae=$s(J),ve=c.value===-1?ae:ae.slice(0,c.value),we=c.value===-1?[]:ae.slice(c.value);we!=null&&we.length&&e.ellipsis&&(J=ve,X.push(_t(o1,{index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>_t(ht,{class:u.e("icon-more")},{default:()=>_t(e.ellipsisIcon)}),default:()=>we})))}const te=a3(e,0),Y=e.closeOnClickOutside?[[Ki,()=>{f.value.length&&(ue.value||(f.value.forEach(ae=>t("close",ae,H(ae))),f.value=[]))}]]:[],Z=Lt(_t("ul",{key:String(e.collapse),role:"menubar",ref:s,style:te.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...J,...X]),Y);return e.collapseTransition&&e.mode==="vertical"?_t(Gte,()=>Z):Z}}});const Yte=tt({index:{type:xe([String,null]),default:null},route:{type:xe([String,Object])},disabled:Boolean}),Jte={click:e=>Rt(e.index)&&Array.isArray(e.indexPath)},Vm="ElMenuItem",qte=he({name:Vm,components:{ElTooltip:fa},props:Yte,emits:Jte,setup(e,{emit:t}){const n=Gt(),r=dt("rootMenu"),a=Je("menu"),o=Je("menu-item");r||Er(Vm,"can not inject root menu");const{parentMenu:s,indexPath:l}=r3(n,On(e,"index")),u=dt(`subMenu:${s.value.uid}`);u||Er(Vm,"can not inject sub menu");const c=N(()=>e.index===r.activeIndex),f=Sn({index:e.index,indexPath:l,active:c}),d=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:l.value,route:e.route}),t("click",f))};return Ht(()=>{u.addSubMenu(f),r.addMenuItem(f)}),Dn(()=>{u.removeSubMenu(f),r.removeMenuItem(f)}),{parentMenu:s,rootMenu:r,active:c,nsMenu:a,nsMenuItem:o,handleClick:d}}});function Qte(e,t,n,r,a,o){const s=Xt("el-tooltip");return V(),ie("li",{class:K([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(V(),Fe(s,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Ce(()=>[Ue(e.$slots,"title")]),default:Ce(()=>[de("div",{class:K(e.nsMenu.be("tooltip","trigger"))},[Ue(e.$slots,"default")],2)]),_:3},8,["effect"])):(V(),ie(mt,{key:1},[Ue(e.$slots,"default"),Ue(e.$slots,"title")],64))],2)}var o3=at(qte,[["render",Qte],["__file","menu-item.vue"]]);const Zte={title:String},ene="ElMenuItemGroup",tne=he({name:ene,props:Zte,setup(){return{ns:Je("menu-item-group")}}});function nne(e,t,n,r,a,o){return V(),ie("li",{class:K(e.ns.b())},[de("div",{class:K(e.ns.e("title"))},[e.$slots.title?Ue(e.$slots,"title",{key:1}):(V(),ie(mt,{key:0},[dn(ot(e.title),1)],64))],2),de("ul",null,[Ue(e.$slots,"default")])],2)}var i3=at(tne,[["render",nne],["__file","menu-item-group.vue"]]);const rne=jt(Xte,{MenuItem:o3,MenuItemGroup:i3,SubMenu:o1}),ane=Yn(o3),one=Yn(i3),ine=Yn(o1),sne=tt({icon:{type:Pn,default:()=>o7},title:String,content:{type:String,default:""}}),lne={back:()=>!0},une=["aria-label"],cne=he({name:"ElPageHeader"}),dne=he({...cne,props:sne,emits:lne,setup(e,{emit:t}){const n=Vr(),{t:r}=hn(),a=Je("page-header"),o=N(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function s(){t("back")}return(l,u)=>(V(),ie("div",{class:K(h(o))},[l.$slots.breadcrumb?(V(),ie("div",{key:0,class:K(h(a).e("breadcrumb"))},[Ue(l.$slots,"breadcrumb")],2)):Ie("v-if",!0),de("div",{class:K(h(a).e("header"))},[de("div",{class:K(h(a).e("left"))},[de("div",{class:K(h(a).e("back")),role:"button",tabindex:"0",onClick:s},[l.icon||l.$slots.icon?(V(),ie("div",{key:0,"aria-label":l.title||h(r)("el.pageHeader.title"),class:K(h(a).e("icon"))},[Ue(l.$slots,"icon",{},()=>[l.icon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(l.icon)))]),_:1})):Ie("v-if",!0)])],10,une)):Ie("v-if",!0),de("div",{class:K(h(a).e("title"))},[Ue(l.$slots,"title",{},()=>[dn(ot(l.title||h(r)("el.pageHeader.title")),1)])],2)],2),ye(h(zO),{direction:"vertical"}),de("div",{class:K(h(a).e("content"))},[Ue(l.$slots,"content",{},()=>[dn(ot(l.content),1)])],2)],2),l.$slots.extra?(V(),ie("div",{key:0,class:K(h(a).e("extra"))},[Ue(l.$slots,"extra")],2)):Ie("v-if",!0)],2),l.$slots.default?(V(),ie("div",{key:1,class:K(h(a).e("main"))},[Ue(l.$slots,"default")],2)):Ie("v-if",!0)],2))}});var fne=at(dne,[["__file","page-header.vue"]]);const hne=jt(fne),s3=Symbol("elPaginationKey"),pne=tt({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Pn}}),vne={click:e=>e instanceof MouseEvent},mne=["disabled","aria-label","aria-disabled"],gne={key:0},yne=he({name:"ElPaginationPrev"}),bne=he({...yne,props:pne,emits:vne,setup(e){const t=e,{t:n}=hn(),r=N(()=>t.disabled||t.currentPage<=1);return(a,o)=>(V(),ie("button",{type:"button",class:"btn-prev",disabled:h(r),"aria-label":a.prevText||h(n)("el.pagination.prev"),"aria-disabled":h(r),onClick:o[0]||(o[0]=s=>a.$emit("click",s))},[a.prevText?(V(),ie("span",gne,ot(a.prevText),1)):(V(),Fe(h(ht),{key:1},{default:Ce(()=>[(V(),Fe(Zt(a.prevIcon)))]),_:1}))],8,mne))}});var _ne=at(bne,[["__file","prev.vue"]]);const wne=tt({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Pn}}),Sne=["disabled","aria-label","aria-disabled"],Tne={key:0},Ene=he({name:"ElPaginationNext"}),Cne=he({...Ene,props:wne,emits:["click"],setup(e){const t=e,{t:n}=hn(),r=N(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,o)=>(V(),ie("button",{type:"button",class:"btn-next",disabled:h(r),"aria-label":a.nextText||h(n)("el.pagination.next"),"aria-disabled":h(r),onClick:o[0]||(o[0]=s=>a.$emit("click",s))},[a.nextText?(V(),ie("span",Tne,ot(a.nextText),1)):(V(),Fe(h(ht),{key:1},{default:Ce(()=>[(V(),Fe(Zt(a.nextIcon)))]),_:1}))],8,Sne))}});var xne=at(Cne,[["__file","next.vue"]]);const l3=Symbol("ElSelectGroup"),mh=Symbol("ElSelect");function Ine(e,t){const n=dt(mh),r=dt(l3,{disabled:!1}),a=N(()=>n.props.multiple?f(n.props.modelValue,e.value):f([n.props.modelValue],e.value)),o=N(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!a.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=N(()=>e.label||(Kt(e.value)?"":e.value)),l=N(()=>e.value||e.label||""),u=N(()=>e.disabled||t.groupDisabled||o.value),c=Gt(),f=(g=[],y)=>{if(Kt(e.value)){const m=n.props.valueKey;return g&&g.some(S=>In(lr(S,m))===lr(y,m))}else return g&&g.includes(y)},d=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},p=g=>{const y=new RegExp(d_(g),"i");t.visible=y.test(s.value)||e.created};return We(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),We(()=>e.value,(g,y)=>{const{remote:m,valueKey:S}=n.props;if(ca(g,y)||(n.onOptionDestroy(y,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(S&&Kt(g)&&Kt(y)&&g[S]===y[S])return;n.setSelected()}}),We(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:u,hoverItem:d,updateOption:p}}const Ane=he({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Je("select"),n=ra(),r=N(()=>[t.be("dropdown","item"),t.is("disabled",h(l)),t.is("selected",h(s)),t.is("hovering",h(p))]),a=Sn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:l,select:u,hoverItem:c,updateOption:f}=Ine(e,a),{visible:d,hover:p}=Wr(a),g=Gt().proxy;u.onOptionCreate(g),Dn(()=>{const m=g.value,{selected:S}=u.states,P=(u.props.multiple?S:[S]).some(A=>A.value===g.value);bt(()=>{u.states.cachedOptions.get(m)===g&&!P&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function y(){e.disabled!==!0&&a.groupDisabled!==!0&&u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:s,isDisabled:l,select:u,hoverItem:c,updateOption:f,visible:d,hover:p,selectOptionClick:y,states:a}}}),Pne=["id","aria-disabled","aria-selected"];function Mne(e,t,n,r,a,o){return Lt((V(),ie("li",{id:e.id,class:K(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Ot((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[Ue(e.$slots,"default",{},()=>[de("span",null,ot(e.currentLabel),1)])],42,Pne)),[[bn,e.visible]])}var i1=at(Ane,[["render",Mne],["__file","option.vue"]]);const One=he({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=dt(mh),t=Je("select"),n=N(()=>e.props.popperClass),r=N(()=>e.props.multiple),a=N(()=>e.props.fitInputWidth),o=ee("");function s(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return Ht(()=>{s(),Wn(e.selectRef,s)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function $ne(e,t,n,r,a,o){return V(),ie("div",{class:K([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:vt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(V(),ie("div",{key:0,class:K(e.ns.be("dropdown","header"))},[Ue(e.$slots,"header")],2)):Ie("v-if",!0),Ue(e.$slots,"default"),e.$slots.footer?(V(),ie("div",{key:1,class:K(e.ns.be("dropdown","footer"))},[Ue(e.$slots,"footer")],2)):Ie("v-if",!0)],6)}var Rne=at(One,[["render",$ne],["__file","select-dropdown.vue"]]);function u3(e){const t=ee(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:o=>{const s=o.target.value,l=s[s.length-1]||"";t.value=!__(l)},handleCompositionEnd:o=>{t.value&&(t.value=!1,Pt(e)&&e(o))}}}const kne=11,Lne=(e,t)=>{const{t:n}=hn(),r=ra(),a=Je("select"),o=Je("input"),s=Sn({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:e.multiple?[]:{},selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=ee(null),u=ee(null),c=ee(null),f=ee(null),d=ee(null),p=ee(null),g=ee(null),y=ee(null),m=ee(null),S=ee(null),_=ee(null),P=ee(null),{wrapperRef:A,isFocused:$,handleFocus:k,handleBlur:L}=Av(d,{afterFocus(){e.automaticDropdown&&!B.value&&(B.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(nt){var xt,un;return((xt=c.value)==null?void 0:xt.isFocusInsideContent(nt))||((un=f.value)==null?void 0:un.isFocusInsideContent(nt))},afterBlur(){B.value=!1,s.menuVisibleOnFocus=!1}}),B=ee(!1),H=ee(),{form:G,formItem:j}=va(),{inputId:W}=Xo(e,{formItemContext:j}),{valueOnClear:Q,isEmptyValue:ue}=Pv(e),se=N(()=>e.disabled||(G==null?void 0:G.disabled)),ne=N(()=>e.multiple?st(e.modelValue)&&e.modelValue.length>0:!ue(e.modelValue)),J=N(()=>e.clearable&&!se.value&&s.inputHovering&&ne.value),X=N(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),te=N(()=>a.is("reverse",X.value&&B.value)),Y=N(()=>(j==null?void 0:j.validateState)||""),Z=N(()=>b_[Y.value]),ae=N(()=>e.remote?300:0),ve=N(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&we.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),we=N(()=>Me.value.filter(nt=>nt.visible).length),Me=N(()=>{const nt=Array.from(s.options.values()),xt=[];return s.optionValues.forEach(un=>{const qn=nt.findIndex(xa=>xa.value===un);qn>-1&&xt.push(nt[qn])}),xt.length>=nt.length?xt:nt}),Ge=N(()=>Array.from(s.cachedOptions.values())),Ee=N(()=>{const nt=Me.value.filter(xt=>!xt.created).some(xt=>xt.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!nt}),pe=()=>{e.filterable&&Pt(e.filterMethod)||e.filterable&&e.remote&&Pt(e.remoteMethod)||Me.value.forEach(nt=>{var xt;(xt=nt.updateOption)==null||xt.call(nt,s.inputValue)})},_e=yr(),He=N(()=>["small"].includes(_e.value)?"small":"default"),Ae=N({get(){return B.value&&ve.value!==!1},set(nt){B.value=nt}}),ke=N(()=>st(e.modelValue)?e.modelValue.length===0&&!s.inputValue:e.filterable?!s.inputValue:!0),ze=N(()=>{var nt;const xt=(nt=e.placeholder)!=null?nt:n("el.select.placeholder");return e.multiple||!ne.value?xt:s.selectedLabel});We(()=>e.modelValue,(nt,xt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ce("")),Be(),!ca(nt,xt)&&e.validateEvent&&(j==null||j.validate("change").catch(un=>void 0))},{flush:"post",deep:!0}),We(()=>B.value,nt=>{nt?ce(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",nt)}),We(()=>s.options.entries(),()=>{var nt;if(!ln)return;const xt=((nt=l.value)==null?void 0:nt.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!vr(e.modelValue)||!Array.from(xt).includes(document.activeElement))&&Be(),e.defaultFirstOption&&(e.filterable||e.remote)&&we.value&&me()},{flush:"post"}),We(()=>s.hoveringIndex,nt=>{It(nt)&&nt>-1?H.value=Me.value[nt]||{}:H.value={},Me.value.forEach(xt=>{xt.hover=H.value===xt})}),ta(()=>{s.isBeforeHide||pe()});const ce=nt=>{s.previousQuery!==nt&&(s.previousQuery=nt,e.filterable&&Pt(e.filterMethod)?e.filterMethod(nt):e.filterable&&e.remote&&Pt(e.remoteMethod)&&e.remoteMethod(nt),e.defaultFirstOption&&(e.filterable||e.remote)&&we.value?bt(me):bt(Oe))},me=()=>{const nt=Me.value.filter(qn=>qn.visible&&!qn.disabled&&!qn.states.groupDisabled),xt=nt.find(qn=>qn.created),un=nt[0];s.hoveringIndex=Ne(Me.value,xt||un)},Be=()=>{if(e.multiple)s.selectedLabel="";else{const xt=be(e.modelValue);s.selectedLabel=xt.currentLabel,s.selected=xt;return}const nt=[];st(e.modelValue)&&e.modelValue.forEach(xt=>{nt.push(be(xt))}),s.selected=nt},be=nt=>{let xt;const un=Ip(nt).toLowerCase()==="object",qn=Ip(nt).toLowerCase()==="null",xa=Ip(nt).toLowerCase()==="undefined";for(let Ya=s.cachedOptions.size-1;Ya>=0;Ya--){const Re=Ge.value[Ya];if(un?lr(Re.value,e.valueKey)===lr(nt,e.valueKey):Re.value===nt){xt={value:nt,currentLabel:Re.currentLabel,get isDisabled(){return Re.isDisabled}};break}}if(xt)return xt;const Xa=un?nt.label:!qn&&!xa?nt:"";return{value:nt,currentLabel:Xa}},Oe=()=>{e.multiple?s.hoveringIndex=Me.value.findIndex(nt=>s.selected.some(xt=>aa(xt)===aa(nt))):s.hoveringIndex=Me.value.findIndex(nt=>aa(nt)===aa(s.selected))},Ye=()=>{s.selectionWidth=u.value.getBoundingClientRect().width},qe=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},Qe=()=>{s.collapseItemWidth=_.value.getBoundingClientRect().width},et=()=>{var nt,xt;(xt=(nt=c.value)==null?void 0:nt.updatePopper)==null||xt.call(nt)},je=()=>{var nt,xt;(xt=(nt=f.value)==null?void 0:nt.updatePopper)==null||xt.call(nt)},lt=()=>{s.inputValue.length>0&&!B.value&&(B.value=!0),ce(s.inputValue)},ut=nt=>{if(s.inputValue=nt.target.value,e.remote)Ke();else return lt()},Ke=Ha(()=>{lt()},ae.value),ct=nt=>{ca(e.modelValue,nt)||t(Hn,nt)},Et=nt=>wP(nt,xt=>!s.disabledOptions.has(xt)),Ut=nt=>{if(e.multiple&&nt.code!==St.delete&&nt.target.value.length<=0){const xt=e.modelValue.slice(),un=Et(xt);if(un<0)return;xt.splice(un,1),t(Yt,xt),ct(xt)}},en=(nt,xt)=>{const un=s.selected.indexOf(xt);if(un>-1&&!se.value){const qn=e.modelValue.slice();qn.splice(un,1),t(Yt,qn),ct(qn),t("remove-tag",xt.value)}nt.stopPropagation(),tn()},gt=nt=>{nt.stopPropagation();const xt=e.multiple?[]:Q.value;if(e.multiple)for(const un of s.selected)un.isDisabled&&xt.push(un.value);t(Yt,xt),ct(xt),s.hoveringIndex=-1,B.value=!1,t("clear"),tn()},ge=nt=>{if(e.multiple){const xt=(e.modelValue||[]).slice(),un=Ne(xt,nt.value);un>-1?xt.splice(un,1):(e.multipleLimit<=0||xt.length<e.multipleLimit)&&xt.push(nt.value),t(Yt,xt),ct(xt),nt.created&&ce(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(Yt,nt.value),ct(nt.value),B.value=!1;tn(),!B.value&&bt(()=>{$e(nt)})},Ne=(nt=[],xt)=>{if(!Kt(xt))return nt.indexOf(xt);const un=e.valueKey;let qn=-1;return nt.some((xa,Xa)=>In(lr(xa,un))===lr(xt,un)?(qn=Xa,!0):!1),qn},$e=nt=>{var xt,un,qn,xa,Xa;const Ci=st(nt)?nt[0]:nt;let Ya=null;if(Ci!=null&&Ci.value){const Re=Me.value.filter(ma=>ma.value===Ci.value);Re.length>0&&(Ya=Re[0].$el)}if(c.value&&Ya){const Re=(xa=(qn=(un=(xt=c.value)==null?void 0:xt.popperRef)==null?void 0:un.contentRef)==null?void 0:qn.querySelector)==null?void 0:xa.call(qn,`.${a.be("dropdown","wrap")}`);Re&&xP(Re,Ya)}(Xa=P.value)==null||Xa.handleScroll()},Te=nt=>{s.options.set(nt.value,nt),s.cachedOptions.set(nt.value,nt),nt.disabled&&s.disabledOptions.set(nt.value,nt)},De=(nt,xt)=>{s.options.get(nt)===xt&&s.options.delete(nt)},{handleCompositionStart:it,handleCompositionUpdate:Pe,handleCompositionEnd:rt}=u3(nt=>ut(nt)),kt=N(()=>{var nt,xt;return(xt=(nt=c.value)==null?void 0:nt.popperRef)==null?void 0:xt.contentRef}),Jt=()=>{s.isBeforeHide=!1,bt(()=>$e(s.selected))},tn=()=>{var nt;(nt=d.value)==null||nt.focus()},Wt=()=>{yn()},yt=nt=>{gt(nt)},yn=nt=>{if(B.value=!1,$.value){const xt=new FocusEvent("focus",nt);bt(()=>L(xt))}},Wa=()=>{s.inputValue.length>0?s.inputValue="":B.value=!1},At=()=>{se.value||(s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:B.value=!B.value)},Ct=()=>{B.value?Me.value[s.hoveringIndex]&&ge(Me.value[s.hoveringIndex]):At()},aa=nt=>Kt(nt.value)?lr(nt.value,e.valueKey):nt.value,i=N(()=>Me.value.filter(nt=>nt.visible).every(nt=>nt.disabled)),Mt=N(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Ua=N(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),Jn=nt=>{if(!B.value){B.value=!0;return}if(!(s.options.size===0||we.value===0)&&!i.value){nt==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):nt==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const xt=Me.value[s.hoveringIndex];(xt.disabled===!0||xt.states.groupDisabled===!0||!xt.visible)&&Jn(nt),bt(()=>$e(H.value))}},re=()=>{if(!u.value)return 0;const nt=window.getComputedStyle(u.value);return Number.parseFloat(nt.gap||"6px")},En=N(()=>{const nt=re();return{maxWidth:`${_.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-nt:s.selectionWidth}px`}}),Ze=N(()=>({maxWidth:`${s.selectionWidth}px`})),O=N(()=>({width:`${Math.max(s.calculatorWidth,kne)}px`}));return e.multiple&&!st(e.modelValue)&&t(Yt,[]),!e.multiple&&st(e.modelValue)&&t(Yt,""),Wn(u,Ye),Wn(p,qe),Wn(m,et),Wn(A,et),Wn(S,je),Wn(_,Qe),Ht(()=>{Be()}),{inputId:W,contentId:r,nsSelect:a,nsInput:o,states:s,isFocused:$,expanded:B,optionsArray:Me,hoverOption:H,selectSize:_e,filteredOptionsCount:we,resetCalculatorWidth:qe,updateTooltip:et,updateTagTooltip:je,debouncedOnInputChange:Ke,onInput:ut,deletePrevTag:Ut,deleteTag:en,deleteSelected:gt,handleOptionSelect:ge,scrollToOption:$e,hasModelValue:ne,shouldShowPlaceholder:ke,currentPlaceholder:ze,showClose:J,iconComponent:X,iconReverse:te,validateState:Y,validateIcon:Z,showNewOption:Ee,updateOptions:pe,collapseTagSize:He,setSelected:Be,selectDisabled:se,emptyText:ve,handleCompositionStart:it,handleCompositionUpdate:Pe,handleCompositionEnd:rt,onOptionCreate:Te,onOptionDestroy:De,handleMenuEnter:Jt,handleFocus:k,focus:tn,blur:Wt,handleBlur:L,handleClearClick:yt,handleClickOutside:yn,handleEsc:Wa,toggleMenu:At,selectOption:Ct,getValueKey:aa,navigateOptions:Jn,dropdownMenuVisible:Ae,showTagList:Mt,collapseTagList:Ua,tagStyle:En,collapseTagStyle:Ze,inputStyle:O,popperRef:kt,inputRef:d,tooltipRef:c,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:y,selectRef:l,wrapperRef:A,selectionRef:u,scrollbarRef:P,menuRef:m,tagMenuRef:S,collapseItemRef:_}};var Nne=he({name:"ElOptions",setup(e,{slots:t}){const n=dt(mh);let r=[];return()=>{var a,o;const s=(a=t.default)==null?void 0:a.call(t),l=[];function u(c){st(c)&&c.forEach(f=>{var d,p,g,y;const m=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;m==="ElOptionGroup"?u(!Rt(f.children)&&!st(f.children)&&Pt((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((y=f.props)==null?void 0:y.value):st(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),ca(l,r)||(r=l,n&&(n.states.optionValues=l)),s}}});const Dne=tt({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Rr,effect:{type:xe(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:xe(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Lr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Pn,default:tl},fitInputWidth:Boolean,suffixIcon:{type:Pn,default:Zi},tagType:{...Rv.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:xe(String),values:fu,default:"bottom-start"},fallbackPlacements:{type:xe(Array),default:["bottom-start","top-start","right","left"]},...Gc,...Xr(["ariaLabel"])}),SC="ElSelect",Fne=he({name:SC,componentName:SC,components:{ElInput:ua,ElSelectMenu:Rne,ElOption:i1,ElOptions:Nne,ElTag:Ef,ElScrollbar:ts,ElTooltip:fa,ElIcon:ht},directives:{ClickOutside:Ki},props:Dne,emits:[Yt,Hn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=Lne(e,t);return nn(mh,Sn({props:e,states:n.states,optionsArray:n.optionsArray,handleOptionSelect:n.handleOptionSelect,onOptionCreate:n.onOptionCreate,onOptionDestroy:n.onOptionDestroy,selectRef:n.selectRef,setSelected:n.setSelected})),{...n}}}),Bne=["id","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Hne=["textContent"];function Une(e,t,n,r,a,o){const s=Xt("el-tag"),l=Xt("el-tooltip"),u=Xt("el-icon"),c=Xt("el-option"),f=Xt("el-options"),d=Xt("el-scrollbar"),p=Xt("el-select-menu"),g=lv("click-outside");return Lt((V(),ie("div",{ref:"selectRef",class:K([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[16]||(t[16]=y=>e.states.inputHovering=!0),onMouseleave:t[17]||(t[17]=y=>e.states.inputHovering=!1),onClick:t[18]||(t[18]=Ot((...y)=>e.toggleMenu&&e.toggleMenu(...y),["prevent","stop"]))},[ye(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[15]||(t[15]=y=>e.states.isBeforeHide=!1)},{default:Ce(()=>{var y;return[de("div",{ref:"wrapperRef",class:K([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(V(),ie("div",{key:0,ref:"prefixRef",class:K(e.nsSelect.e("prefix"))},[Ue(e.$slots,"prefix")],2)):Ie("v-if",!0),de("div",{ref:"selectionRef",class:K([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Ue(e.$slots,"tag",{key:0},()=>[(V(!0),ie(mt,null,sn(e.showTagList,m=>(V(),ie("div",{key:e.getValueKey(m),class:K(e.nsSelect.e("selected-item"))},[ye(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:vt(e.tagStyle),onClose:S=>e.deleteTag(S,m)},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))},ot(m.currentLabel),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(V(),Fe(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Ce(()=>[de("div",{ref:"collapseItemRef",class:K(e.nsSelect.e("selected-item"))},[ye(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:vt(e.collapseTagStyle)},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))}," + "+ot(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:Ce(()=>[de("div",{ref:"tagMenuRef",class:K(e.nsSelect.e("selection"))},[(V(!0),ie(mt,null,sn(e.collapseTagList,m=>(V(),ie("div",{key:e.getValueKey(m),class:K(e.nsSelect.e("selected-item"))},[ye(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:S=>e.deleteTag(S,m)},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))},ot(m.currentLabel),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):Ie("v-if",!0)]):Ie("v-if",!0),e.selectDisabled?Ie("v-if",!0):(V(),ie("div",{key:1,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[Lt(de("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=m=>e.states.inputValue=m),type:"text",class:K([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:vt(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((y=e.hoverOption)==null?void 0:y.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...m)=>e.handleFocus&&e.handleFocus(...m)),onBlur:t[2]||(t[2]=(...m)=>e.handleBlur&&e.handleBlur(...m)),onKeydown:[t[3]||(t[3]=An(Ot(m=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[4]||(t[4]=An(Ot(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),t[5]||(t[5]=An(Ot((...m)=>e.handleEsc&&e.handleEsc(...m),["stop","prevent"]),["esc"])),t[6]||(t[6]=An(Ot((...m)=>e.selectOption&&e.selectOption(...m),["stop","prevent"]),["enter"])),t[7]||(t[7]=An(Ot((...m)=>e.deletePrevTag&&e.deletePrevTag(...m),["stop"]),["delete"]))],onCompositionstart:t[8]||(t[8]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[9]||(t[9]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[10]||(t[10]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[11]||(t[11]=(...m)=>e.onInput&&e.onInput(...m)),onClick:t[12]||(t[12]=Ot((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,Bne),[[jb,e.states.inputValue]]),e.filterable?(V(),ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:K(e.nsSelect.e("input-calculator")),textContent:ot(e.states.inputValue)},null,10,Hne)):Ie("v-if",!0)],2)),e.shouldShowPlaceholder?(V(),ie("div",{key:2,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[de("span",null,ot(e.currentPlaceholder),1)],2)):Ie("v-if",!0)],2),de("div",{ref:"suffixRef",class:K(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(V(),Fe(u,{key:0,class:K([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:Ce(()=>[(V(),Fe(Zt(e.iconComponent)))]),_:1},8,["class"])):Ie("v-if",!0),e.showClose&&e.clearIcon?(V(),Fe(u,{key:1,class:K([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:Ce(()=>[(V(),Fe(Zt(e.clearIcon)))]),_:1},8,["class","onClick"])):Ie("v-if",!0),e.validateState&&e.validateIcon?(V(),Fe(u,{key:2,class:K([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Ce(()=>[(V(),Fe(Zt(e.validateIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)]}),content:Ce(()=>[ye(p,{ref:"menuRef"},{default:Ce(()=>[e.$slots.header?(V(),ie("div",{key:0,class:K(e.nsSelect.be("dropdown","header")),onClick:t[13]||(t[13]=Ot(()=>{},["stop"]))},[Ue(e.$slots,"header")],2)):Ie("v-if",!0),Lt(ye(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:K([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Ce(()=>[e.showNewOption?(V(),Fe(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):Ie("v-if",!0),ye(f,null,{default:Ce(()=>[Ue(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[bn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(V(),ie("div",{key:1,class:K(e.nsSelect.be("dropdown","loading"))},[Ue(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(V(),ie("div",{key:2,class:K(e.nsSelect.be("dropdown","empty"))},[Ue(e.$slots,"empty",{},()=>[de("span",null,ot(e.emptyText),1)])],2)):Ie("v-if",!0),e.$slots.footer?(V(),ie("div",{key:3,class:K(e.nsSelect.be("dropdown","footer")),onClick:t[14]||(t[14]=Ot(()=>{},["stop"]))},[Ue(e.$slots,"footer")],2)):Ie("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow"])],34)),[[g,e.handleClickOutside,e.popperRef]])}var Vne=at(Fne,[["render",Une],["__file","select.vue"]]);const Gne=he({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Je("select"),n=ee(null),r=Gt(),a=ee([]);nn(l3,Sn({...Wr(e)}));const o=N(()=>a.value.some(c=>c.visible===!0)),s=c=>{var f,d;return((f=c.type)==null?void 0:f.name)==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},l=c=>{const f=Hs(c),d=[];return f.forEach(p=>{var g,y;s(p)?d.push(p.component.proxy):(g=p.children)!=null&&g.length?d.push(...l(p.children)):(y=p.component)!=null&&y.subTree&&d.push(...l(p.component.subTree))}),d},u=()=>{a.value=l(r.subTree)};return Ht(()=>{u()}),LA(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function jne(e,t,n,r,a,o){return Lt((V(),ie("ul",{ref:"groupRef",class:K(e.ns.be("group","wrap"))},[de("li",{class:K(e.ns.be("group","title"))},ot(e.label),3),de("li",null,[de("ul",{class:K(e.ns.b("group"))},[Ue(e.$slots,"default")],2)])],2)),[[bn,e.visible]])}var c3=at(Gne,[["render",jne],["__file","option-group.vue"]]);const nu=jt(Vne,{Option:i1,OptionGroup:c3}),O0=Yn(i1),zne=Yn(c3),s1=()=>dt(s3,{}),Kne=tt({pageSize:{type:Number,required:!0},pageSizes:{type:xe(Array),default:()=>Xn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Si}}),Wne=he({name:"ElPaginationSizes"}),Xne=he({...Wne,props:Kne,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=hn(),a=Je("pagination"),o=s1(),s=ee(n.pageSize);We(()=>n.pageSizes,(c,f)=>{if(!ca(c,f)&&Array.isArray(c)){const d=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",d)}}),We(()=>n.pageSize,c=>{s.value=c});const l=N(()=>n.pageSizes);function u(c){var f;c!==s.value&&(s.value=c,(f=o.handleSizeChange)==null||f.call(o,Number(c)))}return(c,f)=>(V(),ie("span",{class:K(h(a).e("sizes"))},[ye(h(nu),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,onChange:u},{default:Ce(()=>[(V(!0),ie(mt,null,sn(h(l),d=>(V(),Fe(h(O0),{key:d,value:d,label:d+h(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var Yne=at(Xne,[["__file","sizes.vue"]]);const Jne=tt({size:{type:String,values:Si}}),qne=["disabled"],Qne=he({name:"ElPaginationJumper"}),Zne=he({...Qne,props:Jne,setup(e){const{t}=hn(),n=Je("pagination"),{pageCount:r,disabled:a,currentPage:o,changeEvent:s}=s1(),l=ee(),u=N(()=>{var d;return(d=l.value)!=null?d:o==null?void 0:o.value});function c(d){l.value=d?+d:""}function f(d){d=Math.trunc(+d),s==null||s(d),l.value=void 0}return(d,p)=>(V(),ie("span",{class:K(h(n).e("jump")),disabled:h(a)},[de("span",{class:K([h(n).e("goto")])},ot(h(t)("el.pagination.goto")),3),ye(h(ua),{size:d.size,class:K([h(n).e("editor"),h(n).is("in-pagination")]),min:1,max:h(r),disabled:h(a),"model-value":h(u),"validate-event":!1,"aria-label":h(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:f},null,8,["size","class","max","disabled","model-value","aria-label"]),de("span",{class:K([h(n).e("classifier")])},ot(h(t)("el.pagination.pageClassifier")),3)],10,qne))}});var ere=at(Zne,[["__file","jumper.vue"]]);const tre=tt({total:{type:Number,default:1e3}}),nre=["disabled"],rre=he({name:"ElPaginationTotal"}),are=he({...rre,props:tre,setup(e){const{t}=hn(),n=Je("pagination"),{disabled:r}=s1();return(a,o)=>(V(),ie("span",{class:K(h(n).e("total")),disabled:h(r)},ot(h(t)("el.pagination.total",{total:a.total})),11,nre))}});var ore=at(are,[["__file","total.vue"]]);const ire=tt({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),sre=["onKeyup"],lre=["aria-current","aria-label","tabindex"],ure=["tabindex","aria-label"],cre=["aria-current","aria-label","tabindex"],dre=["tabindex","aria-label"],fre=["aria-current","aria-label","tabindex"],hre=he({name:"ElPaginationPager"}),pre=he({...hre,props:ire,emits:["change"],setup(e,{emit:t}){const n=e,r=Je("pager"),a=Je("icon"),{t:o}=hn(),s=ee(!1),l=ee(!1),u=ee(!1),c=ee(!1),f=ee(!1),d=ee(!1),p=N(()=>{const $=n.pagerCount,k=($-1)/2,L=Number(n.currentPage),B=Number(n.pageCount);let H=!1,G=!1;B>$&&(L>$-k&&(H=!0),L<B-k&&(G=!0));const j=[];if(H&&!G){const W=B-($-2);for(let Q=W;Q<B;Q++)j.push(Q)}else if(!H&&G)for(let W=2;W<$;W++)j.push(W);else if(H&&G){const W=Math.floor($/2)-1;for(let Q=L-W;Q<=L+W;Q++)j.push(Q)}else for(let W=2;W<B;W++)j.push(W);return j}),g=N(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),y=N(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),m=N(()=>n.disabled?-1:0);ta(()=>{const $=(n.pagerCount-1)/2;s.value=!1,l.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-$&&(s.value=!0),n.currentPage<n.pageCount-$&&(l.value=!0))});function S($=!1){n.disabled||($?u.value=!0:c.value=!0)}function _($=!1){$?f.value=!0:d.value=!0}function P($){const k=$.target;if(k.tagName.toLowerCase()==="li"&&Array.from(k.classList).includes("number")){const L=Number(k.textContent);L!==n.currentPage&&t("change",L)}else k.tagName.toLowerCase()==="li"&&Array.from(k.classList).includes("more")&&A($)}function A($){const k=$.target;if(k.tagName.toLowerCase()==="ul"||n.disabled)return;let L=Number(k.textContent);const B=n.pageCount,H=n.currentPage,G=n.pagerCount-2;k.className.includes("more")&&(k.className.includes("quickprev")?L=H-G:k.className.includes("quicknext")&&(L=H+G)),Number.isNaN(+L)||(L<1&&(L=1),L>B&&(L=B)),L!==H&&t("change",L)}return($,k)=>(V(),ie("ul",{class:K(h(r).b()),onClick:A,onKeyup:An(P,["enter"])},[$.pageCount>0?(V(),ie("li",{key:0,class:K([[h(r).is("active",$.currentPage===1),h(r).is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===1,"aria-label":h(o)("el.pagination.currentPage",{pager:1}),tabindex:h(m)}," 1 ",10,lre)):Ie("v-if",!0),s.value?(V(),ie("li",{key:1,class:K(h(g)),tabindex:h(m),"aria-label":h(o)("el.pagination.prevPages",{pager:$.pagerCount-2}),onMouseenter:k[0]||(k[0]=L=>S(!0)),onMouseleave:k[1]||(k[1]=L=>u.value=!1),onFocus:k[2]||(k[2]=L=>_(!0)),onBlur:k[3]||(k[3]=L=>f.value=!1)},[(u.value||f.value)&&!$.disabled?(V(),Fe(h(fc),{key:0})):(V(),Fe(h(cE),{key:1}))],42,ure)):Ie("v-if",!0),(V(!0),ie(mt,null,sn(h(p),L=>(V(),ie("li",{key:L,class:K([[h(r).is("active",$.currentPage===L),h(r).is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===L,"aria-label":h(o)("el.pagination.currentPage",{pager:L}),tabindex:h(m)},ot(L),11,cre))),128)),l.value?(V(),ie("li",{key:2,class:K(h(y)),tabindex:h(m),"aria-label":h(o)("el.pagination.nextPages",{pager:$.pagerCount-2}),onMouseenter:k[4]||(k[4]=L=>S()),onMouseleave:k[5]||(k[5]=L=>c.value=!1),onFocus:k[6]||(k[6]=L=>_()),onBlur:k[7]||(k[7]=L=>d.value=!1)},[(c.value||d.value)&&!$.disabled?(V(),Fe(h(hc),{key:0})):(V(),Fe(h(cE),{key:1}))],42,dre)):Ie("v-if",!0),$.pageCount>1?(V(),ie("li",{key:3,class:K([[h(r).is("active",$.currentPage===$.pageCount),h(r).is("disabled",$.disabled)],"number"]),"aria-current":$.currentPage===$.pageCount,"aria-label":h(o)("el.pagination.currentPage",{pager:$.pageCount}),tabindex:h(m)},ot($.pageCount),11,fre)):Ie("v-if",!0)],42,sre))}});var vre=at(pre,[["__file","pager.vue"]]);const ga=e=>typeof e!="number",mre=tt({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>It(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:xe(Array),default:()=>Xn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Pn,default:()=>Vs},nextText:{type:String,default:""},nextIcon:{type:Pn,default:()=>_a},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),gre={"update:current-page":e=>It(e),"update:page-size":e=>It(e),"size-change":e=>It(e),change:(e,t)=>It(e)&&It(t),"current-change":e=>It(e),"prev-click":e=>It(e),"next-click":e=>It(e)},TC="ElPagination";var yre=he({name:TC,props:mre,emits:gre,setup(e,{emit:t,slots:n}){const{t:r}=hn(),a=Je("pagination"),o=Gt().vnode.props||{},s="onUpdate:currentPage"in o||"onUpdate:current-page"in o||"onCurrentChange"in o,l="onUpdate:pageSize"in o||"onUpdate:page-size"in o||"onSizeChange"in o,u=N(()=>{if(ga(e.total)&&ga(e.pageCount)||!ga(e.currentPage)&&!s)return!1;if(e.layout.includes("sizes")){if(ga(e.pageCount)){if(!ga(e.total)&&!ga(e.pageSize)&&!l)return!1}else if(!l)return!1}return!0}),c=ee(ga(e.defaultPageSize)?10:e.defaultPageSize),f=ee(ga(e.defaultCurrentPage)?1:e.defaultCurrentPage),d=N({get(){return ga(e.pageSize)?c.value:e.pageSize},set(A){ga(e.pageSize)&&(c.value=A),l&&(t("update:page-size",A),t("size-change",A))}}),p=N(()=>{let A=0;return ga(e.pageCount)?ga(e.total)||(A=Math.max(1,Math.ceil(e.total/d.value))):A=e.pageCount,A}),g=N({get(){return ga(e.currentPage)?f.value:e.currentPage},set(A){let $=A;A<1?$=1:A>p.value&&($=p.value),ga(e.currentPage)&&(f.value=$),s&&(t("update:current-page",$),t("current-change",$))}});We(p,A=>{g.value>A&&(g.value=A)}),We([g,d],A=>{t("change",...A)},{flush:"post"});function y(A){g.value=A}function m(A){d.value=A;const $=p.value;g.value>$&&(g.value=$)}function S(){e.disabled||(g.value-=1,t("prev-click",g.value))}function _(){e.disabled||(g.value+=1,t("next-click",g.value))}function P(A,$){A&&(A.props||(A.props={}),A.props.class=[A.props.class,$].join(" "))}return nn(s3,{pageCount:p,disabled:N(()=>e.disabled),currentPage:g,changeEvent:y,handleSizeChange:m}),()=>{var A,$;if(!u.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const k=[],L=[],B=_t("div",{class:a.e("rightwrapper")},L),H={prev:_t(_ne,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:S}),jumper:_t(ere,{size:e.small?"small":"default"}),pager:_t(vre,{currentPage:g.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:y,disabled:e.disabled}),next:_t(xne,{disabled:e.disabled,currentPage:g.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:_}),sizes:_t(Yne,{pageSize:d.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:($=(A=n==null?void 0:n.default)==null?void 0:A.call(n))!=null?$:null,total:_t(ore,{total:ga(e.total)?0:e.total})},G=e.layout.split(",").map(W=>W.trim());let j=!1;return G.forEach(W=>{if(W==="->"){j=!0;return}j?L.push(H[W]):k.push(H[W])}),P(k[0],a.is("first")),P(k[k.length-1],a.is("last")),j&&L.length>0&&(P(L[0],a.is("first")),P(L[L.length-1],a.is("last")),k.push(B)),_t("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},k)}}});const bre=jt(yre),_re=tt({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:w2,default:"primary"},cancelButtonType:{type:String,values:w2,default:"text"},icon:{type:Pn,default:()=>H7},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Lr.teleported,persistent:Lr.persistent,width:{type:[String,Number],default:150}}),wre={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Sre=he({name:"ElPopconfirm"}),Tre=he({...Sre,props:_re,emits:wre,setup(e,{emit:t}){const n=e,{t:r}=hn(),a=Je("popconfirm"),o=ee(),s=()=>{var p,g;(g=(p=o.value)==null?void 0:p.onClose)==null||g.call(p)},l=N(()=>({width:rr(n.width)})),u=p=>{t("confirm",p),s()},c=p=>{t("cancel",p),s()},f=N(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),d=N(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(p,g)=>(V(),Fe(h(fa),rn({ref_key:"tooltipRef",ref:o,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${h(a).namespace.value}-popover`,"popper-style":h(l),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:Ce(()=>[de("div",{class:K(h(a).b())},[de("div",{class:K(h(a).e("main"))},[!p.hideIcon&&p.icon?(V(),Fe(h(ht),{key:0,class:K(h(a).e("icon")),style:vt({color:p.iconColor})},{default:Ce(()=>[(V(),Fe(Zt(p.icon)))]),_:1},8,["class","style"])):Ie("v-if",!0),dn(" "+ot(p.title),1)],2),de("div",{class:K(h(a).e("action"))},[ye(h(Hr),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:c},{default:Ce(()=>[dn(ot(h(d)),1)]),_:1},8,["type","text"]),ye(h(Hr),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:u},{default:Ce(()=>[dn(ot(h(f)),1)]),_:1},8,["type","text"])],2)],2)]),default:Ce(()=>[p.$slots.reference?Ue(p.$slots,"reference",{key:0}):Ie("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Ere=at(Tre,[["__file","popconfirm.vue"]]);const Cre=jt(Ere),xre=tt({trigger:Tf.trigger,placement:Kp.placement,disabled:Tf.disabled,visible:Lr.visible,transition:Lr.transition,popperOptions:Kp.popperOptions,tabindex:Kp.tabindex,content:Lr.content,popperStyle:Lr.popperStyle,popperClass:Lr.popperClass,enterable:{...Lr.enterable,default:!0},effect:{...Lr.effect,default:"light"},teleported:Lr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Ire={"update:visible":e=>mr(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Are="onUpdate:visible",Pre=he({name:"ElPopover"}),Mre=he({...Pre,props:xre,emits:Ire,setup(e,{expose:t,emit:n}){const r=e,a=N(()=>r[Are]),o=Je("popover"),s=ee(),l=N(()=>{var S;return(S=h(s))==null?void 0:S.popperRef}),u=N(()=>[{width:rr(r.width)},r.popperStyle]),c=N(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),f=N(()=>r.transition===`${o.namespace.value}-fade-in-linear`),d=()=>{var S;(S=s.value)==null||S.hide()},p=()=>{n("before-enter")},g=()=>{n("before-leave")},y=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:d}),(S,_)=>(V(),Fe(h(fa),rn({ref_key:"tooltipRef",ref:s},S.$attrs,{trigger:S.trigger,placement:S.placement,disabled:S.disabled,visible:S.visible,transition:S.transition,"popper-options":S.popperOptions,tabindex:S.tabindex,content:S.content,offset:S.offset,"show-after":S.showAfter,"hide-after":S.hideAfter,"auto-close":S.autoClose,"show-arrow":S.showArrow,"aria-label":S.title,effect:S.effect,enterable:S.enterable,"popper-class":h(c),"popper-style":h(u),teleported:S.teleported,persistent:S.persistent,"gpu-acceleration":h(f),"onUpdate:visible":h(a),onBeforeShow:p,onBeforeHide:g,onShow:y,onHide:m}),{content:Ce(()=>[S.title?(V(),ie("div",{key:0,class:K(h(o).e("title")),role:"title"},ot(S.title),3)):Ie("v-if",!0),Ue(S.$slots,"default",{},()=>[dn(ot(S.content),1)])]),default:Ce(()=>[S.$slots.reference?Ue(S.$slots,"reference",{key:0}):Ie("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Ore=at(Mre,[["__file","popover.vue"]]);const EC=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var $re={mounted(e,t){EC(e,t)},updated(e,t){EC(e,t)}};const Rre="popover",d3=cU($re,Rre),kre=jt(Ore,{directive:d3}),Lre=tt({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:xe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:xe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:xe(Function),default:e=>`${e}%`}}),Nre=["aria-valuenow"],Dre={viewBox:"0 0 100 100"},Fre=["d","stroke","stroke-linecap","stroke-width"],Bre=["d","stroke","opacity","stroke-linecap","stroke-width"],Hre={key:0},Ure=he({name:"ElProgress"}),Vre=he({...Ure,props:Lre,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Je("progress"),a=N(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,background:P(t.percentage)})),o=N(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=N(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),l=N(()=>{const A=s.value,$=t.type==="dashboard";return`
          M 50 50
          m 0 ${$?"":"-"}${A}
          a ${A} ${A} 0 1 1 0 ${$?"-":""}${A*2}
          a ${A} ${A} 0 1 1 0 ${$?"":"-"}${A*2}
          `}),u=N(()=>2*Math.PI*s.value),c=N(()=>t.type==="dashboard"?.75:1),f=N(()=>`${-1*u.value*(1-c.value)/2}px`),d=N(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:f.value})),p=N(()=>({strokeDasharray:`${u.value*c.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=N(()=>{let A;return t.color?A=P(t.percentage):A=n[t.status]||n.default,A}),y=N(()=>t.status==="warning"?Tv:t.type==="line"?t.status==="success"?p_:tl:t.status==="success"?sh:Go),m=N(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),S=N(()=>t.format(t.percentage));function _(A){const $=100/A.length;return A.map((L,B)=>Rt(L)?{color:L,percentage:(B+1)*$}:L).sort((L,B)=>L.percentage-B.percentage)}const P=A=>{var $;const{color:k}=t;if(Pt(k))return k(A);if(Rt(k))return k;{const L=_(k);for(const B of L)if(B.percentage>A)return B.color;return($=L[L.length-1])==null?void 0:$.color}};return(A,$)=>(V(),ie("div",{class:K([h(r).b(),h(r).m(A.type),h(r).is(A.status),{[h(r).m("without-text")]:!A.showText,[h(r).m("text-inside")]:A.textInside}]),role:"progressbar","aria-valuenow":A.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[A.type==="line"?(V(),ie("div",{key:0,class:K(h(r).b("bar"))},[de("div",{class:K(h(r).be("bar","outer")),style:vt({height:`${A.strokeWidth}px`})},[de("div",{class:K([h(r).be("bar","inner"),{[h(r).bem("bar","inner","indeterminate")]:A.indeterminate},{[h(r).bem("bar","inner","striped")]:A.striped},{[h(r).bem("bar","inner","striped-flow")]:A.stripedFlow}]),style:vt(h(a))},[(A.showText||A.$slots.default)&&A.textInside?(V(),ie("div",{key:0,class:K(h(r).be("bar","innerText"))},[Ue(A.$slots,"default",{percentage:A.percentage},()=>[de("span",null,ot(h(S)),1)])],2)):Ie("v-if",!0)],6)],6)],2)):(V(),ie("div",{key:1,class:K(h(r).b("circle")),style:vt({height:`${A.width}px`,width:`${A.width}px`})},[(V(),ie("svg",Dre,[de("path",{class:K(h(r).be("circle","track")),d:h(l),stroke:`var(${h(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":A.strokeLinecap,"stroke-width":h(o),fill:"none",style:vt(h(d))},null,14,Fre),de("path",{class:K(h(r).be("circle","path")),d:h(l),stroke:h(g),fill:"none",opacity:A.percentage?1:0,"stroke-linecap":A.strokeLinecap,"stroke-width":h(o),style:vt(h(p))},null,14,Bre)]))],6)),(A.showText||A.$slots.default)&&!A.textInside?(V(),ie("div",{key:2,class:K(h(r).e("text")),style:vt({fontSize:`${h(m)}px`})},[Ue(A.$slots,"default",{percentage:A.percentage},()=>[A.status?(V(),Fe(h(ht),{key:1},{default:Ce(()=>[(V(),Fe(Zt(h(y))))]),_:1})):(V(),ie("span",Hre,ot(h(S)),1))])],6)):Ie("v-if",!0)],10,Nre))}});var Gre=at(Vre,[["__file","progress.vue"]]);const f3=jt(Gre),jre=tt({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:xe([Array,Object]),default:()=>Xn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:xe([Array,Object]),default:()=>[Fh,Fh,Fh]},voidIcon:{type:Pn,default:()=>tU},disabledVoidIcon:{type:Pn,default:()=>Fh},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:xe(Array),default:()=>Xn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Rr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1},...Xr(["ariaLabel"])}),zre={[Hn]:e=>It(e),[Yt]:e=>It(e)},Kre=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Wre=["onMousemove","onClick"],Xre=he({name:"ElRate"}),Yre=he({...Xre,props:jre,emits:zre,setup(e,{expose:t,emit:n}){const r=e;function a(J,X){const te=ae=>Kt(ae),Y=Object.keys(X).map(ae=>+ae).filter(ae=>{const ve=X[ae];return(te(ve)?ve.excluded:!1)?J<ae:J<=ae}).sort((ae,ve)=>ae-ve),Z=X[Y[0]];return te(Z)&&Z.value||Z}const o=dt(hu,void 0),s=dt(yi,void 0),l=yr(),u=Je("rate"),{inputId:c,isLabeledByFormItem:f}=Xo(r,{formItemContext:s}),d=ee(r.modelValue),p=ee(-1),g=ee(!0),y=N(()=>[u.b(),u.m(l.value)]),m=N(()=>r.disabled||(o==null?void 0:o.disabled)),S=N(()=>u.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":$.value})),_=N(()=>{let J="";return r.showScore?J=r.scoreTemplate.replace(/\{\s*value\s*\}/,m.value?`${r.modelValue}`:`${d.value}`):r.showText&&(J=r.texts[Math.ceil(d.value)-1]),J}),P=N(()=>r.modelValue*100-Math.floor(r.modelValue)*100),A=N(()=>st(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),$=N(()=>{const J=a(d.value,A.value);return Kt(J)?"":J}),k=N(()=>{let J="";return m.value?J=`${P.value}%`:r.allowHalf&&(J="50%"),{color:$.value,width:J}}),L=N(()=>{let J=st(r.icons)?[...r.icons]:{...r.icons};return J=ju(J),st(J)?{[r.lowThreshold]:J[0],[r.highThreshold]:{value:J[1],excluded:!0},[r.max]:J[2]}:J}),B=N(()=>a(r.modelValue,L.value)),H=N(()=>m.value?Rt(r.disabledVoidIcon)?r.disabledVoidIcon:ju(r.disabledVoidIcon):Rt(r.voidIcon)?r.voidIcon:ju(r.voidIcon)),G=N(()=>a(d.value,L.value));function j(J){const X=m.value&&P.value>0&&J-1<r.modelValue&&J>r.modelValue,te=r.allowHalf&&g.value&&J-.5<=d.value&&J>d.value;return X||te}function W(J){r.clearable&&J===r.modelValue&&(J=0),n(Yt,J),r.modelValue!==J&&n("change",J)}function Q(J){m.value||(r.allowHalf&&g.value?W(d.value):W(J))}function ue(J){if(m.value)return;let X=d.value;const te=J.code;return te===St.up||te===St.right?(r.allowHalf?X+=.5:X+=1,J.stopPropagation(),J.preventDefault()):(te===St.left||te===St.down)&&(r.allowHalf?X-=.5:X-=1,J.stopPropagation(),J.preventDefault()),X=X<0?0:X,X=X>r.max?r.max:X,n(Yt,X),n("change",X),X}function se(J,X){if(!m.value){if(r.allowHalf&&X){let te=X.target;vo(te,u.e("item"))&&(te=te.querySelector(`.${u.e("icon")}`)),(te.clientWidth===0||vo(te,u.e("decimal")))&&(te=te.parentNode),g.value=X.offsetX*2<=te.clientWidth,d.value=g.value?J-.5:J}else d.value=J;p.value=J}}function ne(){m.value||(r.allowHalf&&(g.value=r.modelValue!==Math.floor(r.modelValue)),d.value=r.modelValue,p.value=-1)}return We(()=>r.modelValue,J=>{d.value=J,g.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Yt,0),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-rate",ref:"https://element-plus.org/en-US/component/rate.html"},N(()=>!!r.label)),t({setCurrentValue:se,resetCurrentValue:ne}),(J,X)=>{var te;return V(),ie("div",{id:h(c),class:K([h(y),h(u).is("disabled",h(m))]),role:"slider","aria-label":h(f)?void 0:J.label||J.ariaLabel||"rating","aria-labelledby":h(f)?(te=h(s))==null?void 0:te.labelId:void 0,"aria-valuenow":d.value,"aria-valuetext":h(_)||void 0,"aria-valuemin":"0","aria-valuemax":J.max,tabindex:"0",style:vt(h(S)),onKeydown:ue},[(V(!0),ie(mt,null,sn(J.max,(Y,Z)=>(V(),ie("span",{key:Z,class:K(h(u).e("item")),onMousemove:ae=>se(Y,ae),onMouseleave:ne,onClick:ae=>Q(Y)},[ye(h(ht),{class:K([h(u).e("icon"),{hover:p.value===Y},h(u).is("active",Y<=d.value)])},{default:Ce(()=>[j(Y)?Ie("v-if",!0):(V(),ie(mt,{key:0},[Lt((V(),Fe(Zt(h(G)),null,null,512)),[[bn,Y<=d.value]]),Lt((V(),Fe(Zt(h(H)),null,null,512)),[[bn,!(Y<=d.value)]])],64)),j(Y)?(V(),ie(mt,{key:1},[(V(),Fe(Zt(h(H)),{class:K([h(u).em("decimal","box")])},null,8,["class"])),ye(h(ht),{style:vt(h(k)),class:K([h(u).e("icon"),h(u).e("decimal")])},{default:Ce(()=>[(V(),Fe(Zt(h(B))))]),_:1},8,["style","class"])],64)):Ie("v-if",!0)]),_:2},1032,["class"])],42,Wre))),128)),J.showText||J.showScore?(V(),ie("span",{key:0,class:K(h(u).e("text")),style:vt({color:J.textColor})},ot(h(_)),7)):Ie("v-if",!0)],46,Kre)}}});var Jre=at(Yre,[["__file","rate.vue"]]);const qre=jt(Jre),Fu={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},CC={[Fu.success]:h7,[Fu.warning]:Tv,[Fu.error]:v_,[Fu.info]:m_},Qre=tt({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),Zre=he({name:"ElResult"}),eae=he({...Zre,props:Qre,setup(e){const t=e,n=Je("result"),r=N(()=>{const a=t.icon,o=a&&Fu[a]?Fu[a]:"icon-info",s=CC[o]||CC["icon-info"];return{class:o,component:s}});return(a,o)=>(V(),ie("div",{class:K(h(n).b())},[de("div",{class:K(h(n).e("icon"))},[Ue(a.$slots,"icon",{},()=>[h(r).component?(V(),Fe(Zt(h(r).component),{key:0,class:K(h(r).class)},null,8,["class"])):Ie("v-if",!0)])],2),a.title||a.$slots.title?(V(),ie("div",{key:0,class:K(h(n).e("title"))},[Ue(a.$slots,"title",{},()=>[de("p",null,ot(a.title),1)])],2)):Ie("v-if",!0),a.subTitle||a.$slots["sub-title"]?(V(),ie("div",{key:1,class:K(h(n).e("subtitle"))},[Ue(a.$slots,"sub-title",{},()=>[de("p",null,ot(a.subTitle),1)])],2)):Ie("v-if",!0),a.$slots.extra?(V(),ie("div",{key:2,class:K(h(n).e("extra"))},[Ue(a.$slots,"extra")],2)):Ie("v-if",!0)],2))}});var tae=at(eae,[["__file","result.vue"]]);const nae=jt(tae);var xC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rae(e,t){return!!(e===t||xC(e)&&xC(t))}function aae(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rae(e[n],t[n]))return!1;return!0}function oae(e,t){t===void 0&&(t=aae);var n=null;function r(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var s=e.apply(this,a);return n={lastResult:s,lastArgs:a,lastThis:this},s}return r.clear=function(){n=null},r}const h3=()=>{const t=Gt().proxy.$props;return N(()=>{const n=(r,a,o)=>({});return t.perfMode?bv(n):oae(n)})},V2=50,$0="itemRendered",R0="scroll",Bu="forward",k0="backward",uo="auto",Nv="smart",xf="start",ci="center",If="end",wc="horizontal",l1="vertical",iae="ltr",Ju="rtl",Af="negative",u1="positive-ascending",c1="positive-descending",sae={[wc]:"left",[l1]:"top"},lae=20,uae={[wc]:"deltaX",[l1]:"deltaY"},cae=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,o=0;const s=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:s,onWheel:u=>{Zl(a);const c=u[uae[n.value]];s(o)&&s(o+c)||(o+=c,DA()||u.preventDefault(),a=Us(()=>{r(o),o=0}))}}},G2=Ko({type:xe([Number,Function]),required:!0}),j2=Ko({type:Number}),z2=Ko({type:Number,default:2}),dae=Ko({type:String,values:["ltr","rtl"],default:"ltr"}),K2=Ko({type:Number,default:0}),L0=Ko({type:Number,required:!0}),p3=Ko({type:String,values:["horizontal","vertical"],default:l1}),v3=tt({className:{type:String,default:""},containerElement:{type:xe([String,Object]),default:"div"},data:{type:xe(Array),default:()=>Xn([])},direction:dae,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:xe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),m3=tt({cache:z2,estimatedItemSize:j2,layout:p3,initScrollOffset:K2,total:L0,itemSize:G2,...v3}),W2={type:Number,default:6},g3={type:Number,default:0},y3={type:Number,default:2},jl=tt({columnCache:z2,columnWidth:G2,estimatedColumnWidth:j2,estimatedRowHeight:j2,initScrollLeft:K2,initScrollTop:K2,itemKey:{type:xe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:z2,rowHeight:G2,totalColumn:L0,totalRow:L0,hScrollbarSize:W2,vScrollbarSize:W2,scrollbarStartGap:g3,scrollbarEndGap:y3,role:String,...v3}),b3=tt({alwaysOn:Boolean,class:String,layout:p3,total:L0,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:W2,startGap:g3,endGap:y3,visible:Boolean}),Ll=(e,t)=>e<t?Bu:k0,Pf=e=>e===iae||e===Ju||e===wc,IC=e=>e===Ju;let wu=null;function N0(e=!1){if(wu===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?wu=c1:(t.scrollLeft=1,t.scrollLeft===0?wu=Af:wu=u1),document.body.removeChild(t),wu}return wu}function fae({move:e,size:t,bar:n},r){const a={},o=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=o,a.msTransform=o,a.webkitTransform=o,r==="horizontal"?a.height="100%":a.width="100%",a}const X2=he({name:"ElVirtualScrollBar",props:b3,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=N(()=>e.startGap+e.endGap),r=Je("virtual-scrollbar"),a=Je("scrollbar"),o=ee(),s=ee();let l=null,u=null;const c=Sn({isDragging:!1,traveled:0}),f=N(()=>yM[e.layout]),d=N(()=>e.clientSize-h(n)),p=N(()=>({position:"absolute",width:`${wc===e.layout?d.value:e.scrollbarSize}px`,height:`${wc===e.layout?e.scrollbarSize:d.value}px`,[sae[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=N(()=>{const L=e.ratio,B=e.clientSize;if(L>=100)return Number.POSITIVE_INFINITY;if(L>=50)return L*B/100;const H=B/3;return Math.floor(Math.min(Math.max(L*B,lae),H))}),y=N(()=>{if(!Number.isFinite(g.value))return{display:"none"};const L=`${g.value}px`;return fae({bar:f.value,size:L,move:c.traveled},e.layout)}),m=N(()=>Math.floor(e.clientSize-g.value-h(n))),S=()=>{window.addEventListener("mousemove",$),window.addEventListener("mouseup",A);const L=h(s);L&&(u=document.onselectstart,document.onselectstart=()=>!1,L.addEventListener("touchmove",$),L.addEventListener("touchend",A))},_=()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",A),document.onselectstart=u,u=null;const L=h(s);L&&(L.removeEventListener("touchmove",$),L.removeEventListener("touchend",A))},P=L=>{L.stopImmediatePropagation(),!(L.ctrlKey||[1,2].includes(L.button))&&(c.isDragging=!0,c[f.value.axis]=L.currentTarget[f.value.offset]-(L[f.value.client]-L.currentTarget.getBoundingClientRect()[f.value.direction]),t("start-move"),S())},A=()=>{c.isDragging=!1,c[f.value.axis]=0,t("stop-move"),_()},$=L=>{const{isDragging:B}=c;if(!B||!s.value||!o.value)return;const H=c[f.value.axis];if(!H)return;Zl(l);const G=(o.value.getBoundingClientRect()[f.value.direction]-L[f.value.client])*-1,j=s.value[f.value.offset]-H,W=G-j;l=Us(()=>{c.traveled=Math.max(e.startGap,Math.min(W,m.value)),t("scroll",W,m.value)})},k=L=>{const B=Math.abs(L.target.getBoundingClientRect()[f.value.direction]-L[f.value.client]),H=s.value[f.value.offset]/2,G=B-H;c.traveled=Math.max(0,Math.min(G,m.value)),t("scroll",G,m.value)};return We(()=>e.scrollFrom,L=>{c.isDragging||(c.traveled=Math.ceil(L*m.value))}),Dn(()=>{_()}),()=>_t("div",{role:"presentation",ref:o,class:[r.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:p.value,onMousedown:Ot(k,["stop","prevent"]),onTouchstartPrevent:P},_t("div",{ref:s,class:a.e("thumb"),style:y.value,onMousedown:P},[]))}}),_3=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:o,getStopIndexForStartIndex:s,initCache:l,clearCache:u,validateProps:c})=>he({name:e??"ElVirtualList",props:m3,emits:[$0,R0],setup(f,{emit:d,expose:p}){c(f);const g=Gt(),y=Je("vl"),m=ee(l(f,g)),S=h3(),_=ee(),P=ee(),A=ee(),$=ee({isScrolling:!1,scrollDir:"forward",scrollOffset:It(f.initScrollOffset)?f.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:f.scrollbarAlwaysOn}),k=N(()=>{const{total:we,cache:Me}=f,{isScrolling:Ge,scrollDir:Ee,scrollOffset:pe}=h($);if(we===0)return[0,0,0,0];const _e=o(f,pe,h(m)),He=s(f,_e,pe,h(m)),Ae=!Ge||Ee===k0?Math.max(1,Me):1,ke=!Ge||Ee===Bu?Math.max(1,Me):1;return[Math.max(0,_e-Ae),Math.max(0,Math.min(we-1,He+ke)),_e,He]}),L=N(()=>a(f,h(m))),B=N(()=>Pf(f.layout)),H=N(()=>[{position:"relative",[`overflow-${B.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:f.direction,height:It(f.height)?`${f.height}px`:f.height,width:It(f.width)?`${f.width}px`:f.width},f.style]),G=N(()=>{const we=h(L),Me=h(B);return{height:Me?"100%":`${we}px`,pointerEvents:h($).isScrolling?"none":void 0,width:Me?`${we}px`:"100%"}}),j=N(()=>B.value?f.width:f.height),{onWheel:W}=cae({atStartEdge:N(()=>$.value.scrollOffset<=0),atEndEdge:N(()=>$.value.scrollOffset>=L.value),layout:N(()=>f.layout)},we=>{var Me,Ge;(Ge=(Me=A.value).onMouseUp)==null||Ge.call(Me),X(Math.min($.value.scrollOffset+we,L.value-j.value))}),Q=()=>{const{total:we}=f;if(we>0){const[pe,_e,He,Ae]=h(k);d($0,pe,_e,He,Ae)}const{scrollDir:Me,scrollOffset:Ge,updateRequested:Ee}=h($);d(R0,Me,Ge,Ee)},ue=we=>{const{clientHeight:Me,scrollHeight:Ge,scrollTop:Ee}=we.currentTarget,pe=h($);if(pe.scrollOffset===Ee)return;const _e=Math.max(0,Math.min(Ee,Ge-Me));$.value={...pe,isScrolling:!0,scrollDir:Ll(pe.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},bt(Z)},se=we=>{const{clientWidth:Me,scrollLeft:Ge,scrollWidth:Ee}=we.currentTarget,pe=h($);if(pe.scrollOffset===Ge)return;const{direction:_e}=f;let He=Ge;if(_e===Ju)switch(N0()){case Af:{He=-Ge;break}case c1:{He=Ee-Me-Ge;break}}He=Math.max(0,Math.min(He,Ee-Me)),$.value={...pe,isScrolling:!0,scrollDir:Ll(pe.scrollOffset,He),scrollOffset:He,updateRequested:!1},bt(Z)},ne=we=>{h(B)?se(we):ue(we),Q()},J=(we,Me)=>{const Ge=(L.value-j.value)/Me*we;X(Math.min(L.value-j.value,Ge))},X=we=>{we=Math.max(we,0),we!==h($).scrollOffset&&($.value={...h($),scrollOffset:we,scrollDir:Ll(h($).scrollOffset,we),updateRequested:!0},bt(Z))},te=(we,Me=uo)=>{const{scrollOffset:Ge}=h($);we=Math.max(0,Math.min(we,f.total-1)),X(t(f,we,Me,Ge,h(m)))},Y=we=>{const{direction:Me,itemSize:Ge,layout:Ee}=f,pe=S.value(u&&Ge,u&&Ee,u&&Me);let _e;if(cn(pe,String(we)))_e=pe[we];else{const He=r(f,we,h(m)),Ae=n(f,we,h(m)),ke=h(B),ze=Me===Ju,ce=ke?He:0;pe[we]=_e={position:"absolute",left:ze?void 0:`${ce}px`,right:ze?`${ce}px`:void 0,top:ke?0:`${He}px`,height:ke?"100%":`${Ae}px`,width:ke?`${Ae}px`:"100%"}}return _e},Z=()=>{$.value.isScrolling=!1,bt(()=>{S.value(-1,null,null)})},ae=()=>{const we=_.value;we&&(we.scrollTop=0)};Ht(()=>{if(!ln)return;const{initScrollOffset:we}=f,Me=h(_);It(we)&&Me&&(h(B)?Me.scrollLeft=we:Me.scrollTop=we),Q()}),Ji(()=>{const{direction:we,layout:Me}=f,{scrollOffset:Ge,updateRequested:Ee}=h($),pe=h(_);if(Ee&&pe)if(Me===wc)if(we===Ju)switch(N0()){case Af:{pe.scrollLeft=-Ge;break}case u1:{pe.scrollLeft=Ge;break}default:{const{clientWidth:_e,scrollWidth:He}=pe;pe.scrollLeft=He-_e-Ge;break}}else pe.scrollLeft=Ge;else pe.scrollTop=Ge});const ve={ns:y,clientSize:j,estimatedTotalSize:L,windowStyle:H,windowRef:_,innerRef:P,innerStyle:G,itemsToRender:k,scrollbarRef:A,states:$,getItemStyle:Y,onScroll:ne,onScrollbarScroll:J,onWheel:W,scrollTo:X,scrollToItem:te,resetScrollTop:ae};return p({windowRef:_,innerRef:P,getItemStyleCache:S,scrollTo:X,scrollToItem:te,resetScrollTop:ae,states:$}),ve},render(f){var d;const{$slots:p,className:g,clientSize:y,containerElement:m,data:S,getItemStyle:_,innerElement:P,itemsToRender:A,innerStyle:$,layout:k,total:L,onScroll:B,onScrollbarScroll:H,onWheel:G,states:j,useIsScrolling:W,windowStyle:Q,ns:ue}=f,[se,ne]=A,J=Zt(m),X=Zt(P),te=[];if(L>0)for(let ve=se;ve<=ne;ve++)te.push((d=p.default)==null?void 0:d.call(p,{data:S,key:ve,index:ve,isScrolling:W?j.isScrolling:void 0,style:_(ve)}));const Y=[_t(X,{style:$,ref:"innerRef"},Rt(X)?te:{default:()=>te})],Z=_t(X2,{ref:"scrollbarRef",clientSize:y,layout:k,onScroll:H,ratio:y*100/this.estimatedTotalSize,scrollFrom:j.scrollOffset/(this.estimatedTotalSize-y),total:L}),ae=_t(J,{class:[ue.e("window"),g],style:Q,onScroll:B,onWheel:G,ref:"windowRef",key:0},Rt(J)?[Y]:{default:()=>[Y]});return _t("div",{key:0,class:[ue.e("wrapper"),j.scrollbarAlwaysOn?"always-on":""]},[ae,Z])}}),w3=_3({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},o,s,l)=>{const u=Pf(r)?a:e,c=Math.max(0,t*n-u),f=Math.min(c,o*n),d=Math.max(0,(o+1)*n-u);switch(s===Nv&&(l>=d-u&&l<=f+u?s=uo:s=ci),s){case xf:return f;case If:return d;case ci:{const p=Math.round(d+(f-d)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case uo:default:return l>=d&&l<=f?l:l<d?d:f}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},o,s)=>{const l=o*n,u=Pf(r)?a:e,c=Math.ceil((u+s-l)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Hu=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:o}=n;if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=r(l);a[l]={offset:s,size:u},s+=u}n.lastVisitedIndex=t}return a[t]},hae=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?S3(e,t,0,a,n):pae(e,t,Math.max(0,a),n)},S3=(e,t,n,r,a)=>{for(;n<=r;){const o=n+Math.floor((r-n)/2),s=Hu(e,o,t).offset;if(s===a)return o;s<a?n=o+1:s>a&&(r=o-1)}return Math.max(0,n-1)},pae=(e,t,n,r)=>{const{total:a}=e;let o=1;for(;n<a&&Hu(e,n,t).offset<r;)n+=o,o*=2;return S3(e,t,Math.floor(n/2),Math.min(n,a-1),r)},AC=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const l=t[r];a=l.offset+l.size}const s=(e-r-1)*n;return a+s},vae=_3({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Hu(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:AC,getOffset:(e,t,n,r,a)=>{const{height:o,layout:s,width:l}=e,u=Pf(s)?l:o,c=Hu(e,t,a),f=AC(e,a),d=Math.max(0,Math.min(f-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n===Nv&&(r>=p-u&&r<=d+u?n=uo:n=ci),n){case xf:return d;case If:return p;case ci:return Math.round(p+(d-p)/2);case uo:default:return r>=p&&r<=d?r:r<p?p:d}},getStartIndexForOffset:(e,t,n)=>hae(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:o,layout:s,width:l}=e,u=Pf(s)?l:a,c=Hu(e,t,r),f=n+u;let d=c.offset+c.size,p=t;for(;p<o-1&&d<f;)p++,d+=Hu(e,p,r).size;return p},initCache({estimatedItemSize:e=V2},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var o,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(o=t.exposed)==null||o.getItemStyleCache(-1),a&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),mae=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let o=null,s=0,l=0;const u=(f,d)=>{const p=f<=0&&t.value||f>=0&&e.value,g=d<=0&&r.value||d>=0&&n.value;return p&&g};return{hasReachedEdge:u,onWheel:f=>{Zl(o);let d=f.deltaX,p=f.deltaY;Math.abs(d)>Math.abs(p)?p=0:d=0,f.shiftKey&&p!==0&&(d=p,p=0),!(u(s,l)&&u(s+d,l+p))&&(s+=d,l+=p,f.preventDefault(),o=Us(()=>{a(s,l),s=0,l=0}))}}},T3=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:o,getEstimatedTotalWidth:s,getColumnOffset:l,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:f,getRowStopIndexForStartIndex:d,initCache:p,injectToInstance:g,validateProps:y})=>he({name:e??"ElVirtualList",props:jl,emits:[$0,R0],setup(m,{emit:S,expose:_,slots:P}){const A=Je("vl");y(m);const $=Gt(),k=ee(p(m,$));g==null||g($,k);const L=ee(),B=ee(),H=ee(),G=ee(null),j=ee({isScrolling:!1,scrollLeft:It(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:It(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Bu,yAxisScrollDir:Bu}),W=h3(),Q=N(()=>Number.parseInt(`${m.height}`,10)),ue=N(()=>Number.parseInt(`${m.width}`,10)),se=N(()=>{const{totalColumn:Oe,totalRow:Ye,columnCache:qe}=m,{isScrolling:Qe,xAxisScrollDir:et,scrollLeft:je}=h(j);if(Oe===0||Ye===0)return[0,0,0,0];const lt=r(m,je,h(k)),ut=a(m,lt,je,h(k)),Ke=!Qe||et===k0?Math.max(1,qe):1,ct=!Qe||et===Bu?Math.max(1,qe):1;return[Math.max(0,lt-Ke),Math.max(0,Math.min(Oe-1,ut+ct)),lt,ut]}),ne=N(()=>{const{totalColumn:Oe,totalRow:Ye,rowCache:qe}=m,{isScrolling:Qe,yAxisScrollDir:et,scrollTop:je}=h(j);if(Oe===0||Ye===0)return[0,0,0,0];const lt=f(m,je,h(k)),ut=d(m,lt,je,h(k)),Ke=!Qe||et===k0?Math.max(1,qe):1,ct=!Qe||et===Bu?Math.max(1,qe):1;return[Math.max(0,lt-Ke),Math.max(0,Math.min(Ye-1,ut+ct)),lt,ut]}),J=N(()=>o(m,h(k))),X=N(()=>s(m,h(k))),te=N(()=>{var Oe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:It(m.height)?`${m.height}px`:m.height,width:It(m.width)?`${m.width}px`:m.width},(Oe=m.style)!=null?Oe:{}]}),Y=N(()=>{const Oe=`${h(X)}px`;return{height:`${h(J)}px`,pointerEvents:h(j).isScrolling?"none":void 0,width:Oe}}),Z=()=>{const{totalColumn:Oe,totalRow:Ye}=m;if(Oe>0&&Ye>0){const[ut,Ke,ct,Et]=h(se),[Ut,en,gt,ge]=h(ne);S($0,{columnCacheStart:ut,columnCacheEnd:Ke,rowCacheStart:Ut,rowCacheEnd:en,columnVisibleStart:ct,columnVisibleEnd:Et,rowVisibleStart:gt,rowVisibleEnd:ge})}const{scrollLeft:qe,scrollTop:Qe,updateRequested:et,xAxisScrollDir:je,yAxisScrollDir:lt}=h(j);S(R0,{xAxisScrollDir:je,scrollLeft:qe,yAxisScrollDir:lt,scrollTop:Qe,updateRequested:et})},ae=Oe=>{const{clientHeight:Ye,clientWidth:qe,scrollHeight:Qe,scrollLeft:et,scrollTop:je,scrollWidth:lt}=Oe.currentTarget,ut=h(j);if(ut.scrollTop===je&&ut.scrollLeft===et)return;let Ke=et;if(IC(m.direction))switch(N0()){case Af:Ke=-et;break;case c1:Ke=lt-qe-et;break}j.value={...ut,isScrolling:!0,scrollLeft:Ke,scrollTop:Math.max(0,Math.min(je,Qe-Ye)),updateRequested:!0,xAxisScrollDir:Ll(ut.scrollLeft,Ke),yAxisScrollDir:Ll(ut.scrollTop,je)},bt(()=>_e()),He(),Z()},ve=(Oe,Ye)=>{const qe=h(Q),Qe=(J.value-qe)/Ye*Oe;Ge({scrollTop:Math.min(J.value-qe,Qe)})},we=(Oe,Ye)=>{const qe=h(ue),Qe=(X.value-qe)/Ye*Oe;Ge({scrollLeft:Math.min(X.value-qe,Qe)})},{onWheel:Me}=mae({atXStartEdge:N(()=>j.value.scrollLeft<=0),atXEndEdge:N(()=>j.value.scrollLeft>=X.value-h(ue)),atYStartEdge:N(()=>j.value.scrollTop<=0),atYEndEdge:N(()=>j.value.scrollTop>=J.value-h(Q))},(Oe,Ye)=>{var qe,Qe,et,je;(Qe=(qe=B.value)==null?void 0:qe.onMouseUp)==null||Qe.call(qe),(je=(et=H.value)==null?void 0:et.onMouseUp)==null||je.call(et);const lt=h(ue),ut=h(Q);Ge({scrollLeft:Math.min(j.value.scrollLeft+Oe,X.value-lt),scrollTop:Math.min(j.value.scrollTop+Ye,J.value-ut)})}),Ge=({scrollLeft:Oe=j.value.scrollLeft,scrollTop:Ye=j.value.scrollTop})=>{Oe=Math.max(Oe,0),Ye=Math.max(Ye,0);const qe=h(j);Ye===qe.scrollTop&&Oe===qe.scrollLeft||(j.value={...qe,xAxisScrollDir:Ll(qe.scrollLeft,Oe),yAxisScrollDir:Ll(qe.scrollTop,Ye),scrollLeft:Oe,scrollTop:Ye,updateRequested:!0},bt(()=>_e()),He(),Z())},Ee=(Oe=0,Ye=0,qe=uo)=>{const Qe=h(j);Ye=Math.max(0,Math.min(Ye,m.totalColumn-1)),Oe=Math.max(0,Math.min(Oe,m.totalRow-1));const et=CP(A.namespace.value),je=h(k),lt=o(m,je),ut=s(m,je);Ge({scrollLeft:l(m,Ye,qe,Qe.scrollLeft,je,ut>m.width?et:0),scrollTop:u(m,Oe,qe,Qe.scrollTop,je,lt>m.height?et:0)})},pe=(Oe,Ye)=>{const{columnWidth:qe,direction:Qe,rowHeight:et}=m,je=W.value(t&&qe,t&&et,t&&Qe),lt=`${Oe},${Ye}`;if(cn(je,lt))return je[lt];{const[,ut]=n(m,Ye,h(k)),Ke=h(k),ct=IC(Qe),[Et,Ut]=c(m,Oe,Ke),[en]=n(m,Ye,Ke);return je[lt]={position:"absolute",left:ct?void 0:`${ut}px`,right:ct?`${ut}px`:void 0,top:`${Ut}px`,height:`${Et}px`,width:`${en}px`},je[lt]}},_e=()=>{j.value.isScrolling=!1,bt(()=>{W.value(-1,null,null)})};Ht(()=>{if(!ln)return;const{initScrollLeft:Oe,initScrollTop:Ye}=m,qe=h(L);qe&&(It(Oe)&&(qe.scrollLeft=Oe),It(Ye)&&(qe.scrollTop=Ye)),Z()});const He=()=>{const{direction:Oe}=m,{scrollLeft:Ye,scrollTop:qe,updateRequested:Qe}=h(j),et=h(L);if(Qe&&et){if(Oe===Ju)switch(N0()){case Af:{et.scrollLeft=-Ye;break}case u1:{et.scrollLeft=Ye;break}default:{const{clientWidth:je,scrollWidth:lt}=et;et.scrollLeft=lt-je-Ye;break}}else et.scrollLeft=Math.max(0,Ye);et.scrollTop=Math.max(0,qe)}},{resetAfterColumnIndex:Ae,resetAfterRowIndex:ke,resetAfter:ze}=$.proxy;_({windowRef:L,innerRef:G,getItemStyleCache:W,scrollTo:Ge,scrollToItem:Ee,states:j,resetAfterColumnIndex:Ae,resetAfterRowIndex:ke,resetAfter:ze});const ce=()=>{const{scrollbarAlwaysOn:Oe,scrollbarStartGap:Ye,scrollbarEndGap:qe,totalColumn:Qe,totalRow:et}=m,je=h(ue),lt=h(Q),ut=h(X),Ke=h(J),{scrollLeft:ct,scrollTop:Et}=h(j),Ut=_t(X2,{ref:B,alwaysOn:Oe,startGap:Ye,endGap:qe,class:A.e("horizontal"),clientSize:je,layout:"horizontal",onScroll:we,ratio:je*100/ut,scrollFrom:ct/(ut-je),total:et,visible:!0}),en=_t(X2,{ref:H,alwaysOn:Oe,startGap:Ye,endGap:qe,class:A.e("vertical"),clientSize:lt,layout:"vertical",onScroll:ve,ratio:lt*100/Ke,scrollFrom:Et/(Ke-lt),total:Qe,visible:!0});return{horizontalScrollbar:Ut,verticalScrollbar:en}},me=()=>{var Oe;const[Ye,qe]=h(se),[Qe,et]=h(ne),{data:je,totalColumn:lt,totalRow:ut,useIsScrolling:Ke,itemKey:ct}=m,Et=[];if(ut>0&&lt>0)for(let Ut=Qe;Ut<=et;Ut++)for(let en=Ye;en<=qe;en++)Et.push((Oe=P.default)==null?void 0:Oe.call(P,{columnIndex:en,data:je,key:ct({columnIndex:en,data:je,rowIndex:Ut}),isScrolling:Ke?h(j).isScrolling:void 0,style:pe(Ut,en),rowIndex:Ut}));return Et},Be=()=>{const Oe=Zt(m.innerElement),Ye=me();return[_t(Oe,{style:h(Y),ref:G},Rt(Oe)?Ye:{default:()=>Ye})]};return()=>{const Oe=Zt(m.containerElement),{horizontalScrollbar:Ye,verticalScrollbar:qe}=ce(),Qe=Be();return _t("div",{key:0,class:A.e("wrapper"),role:m.role},[_t(Oe,{class:m.className,style:h(te),onScroll:ae,onWheel:Me,ref:L},Rt(Oe)?Qe:{default:()=>Qe}),Ye,qe])}}}),gae=T3({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,o,s,l)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,r*t),f=Math.max(0,r*t-n+l+t);switch(a==="smart"&&(o>=f-n&&o<=c+n?a=uo:a=ci),a){case xf:return c;case If:return f;case ci:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(n/2)?0:d>u+Math.floor(n/2)?u:d}case uo:default:return o>=f&&o<=c?o:f>c||o<f?f:c}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,o,s,l)=>{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,r*e),f=Math.max(0,r*e-t+l+e);switch(a===Nv&&(o>=f-t&&o<=c+t?a=uo:a=ci),a){case xf:return c;case If:return f;case ci:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(t/2)?0:d>u+Math.floor(t/2)?u:d}case uo:default:return o>=f&&o<=c?o:f>c||o<f?f:c}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const o=r*e,s=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,r+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const o=r*e,s=Math.ceil((n+a-o)/e);return Math.max(0,Math.min(t-1,r+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:D0,min:E3,floor:C3}=Math,yae={column:"columnWidth",row:"rowHeight"},Y2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Ri=(e,t,n,r)=>{const[a,o,s]=[n[r],e[yae[r]],n[Y2[r]]];if(t>s){let l=0;if(s>=0){const u=a[s];l=u.offset+u.size}for(let u=s+1;u<=t;u++){const c=o(u);a[u]={offset:l,size:c},l+=c}n[Y2[r]]=t}return a[t]},x3=(e,t,n,r,a,o)=>{for(;n<=r;){const s=n+C3((r-n)/2),l=Ri(e,s,t,o).offset;if(l===a)return s;l<a?n=s+1:r=s-1}return D0(0,n-1)},bae=(e,t,n,r,a)=>{const o=a==="column"?e.totalColumn:e.totalRow;let s=1;for(;n<o&&Ri(e,n,t,a).offset<r;)n+=s,s*=2;return x3(e,t,C3(n/2),E3(n,o-1),r,a)},PC=(e,t,n,r)=>{const[a,o]=[t[r],t[Y2[r]]];return(o>0?a[o].offset:0)>=n?x3(e,t,0,o,n,r):bae(e,t,D0(0,o),n,r)},I3=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const l=r[n];a=l.offset+l.size}const s=(e-n-1)*t;return a+s},A3=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const l=t[r];a=l.offset+l.size}const s=(e-r-1)*n;return a+s},_ae={column:A3,row:I3},MC=(e,t,n,r,a,o,s)=>{const[l,u]=[o==="row"?e.height:e.width,_ae[o]],c=Ri(e,t,a,o),f=u(e,a),d=D0(0,E3(f-l,c.offset)),p=D0(0,c.offset-l+s+c.size);switch(n===Nv&&(r>=p-l&&r<=d+l?n=uo:n=ci),n){case xf:return d;case If:return p;case ci:return Math.round(p+(d-p)/2);case uo:default:return r>=p&&r<=d?r:p>d||r<p?p:d}},wae=T3({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=Ri(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Ri(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,o)=>MC(e,t,n,r,a,"column",o),getRowOffset:(e,t,n,r,a,o)=>MC(e,t,n,r,a,"row",o),getColumnStartIndexForOffset:(e,t,n)=>PC(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=Ri(e,t,r,"column"),o=n+e.width;let s=a.offset+a.size,l=t;for(;l<e.totalColumn-1&&s<o;)l++,s+=Ri(e,t,r,"column").size;return l},getEstimatedTotalHeight:I3,getEstimatedTotalWidth:A3,getRowStartIndexForOffset:(e,t,n)=>PC(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:o}=e,s=Ri(e,t,r,"row"),l=n+o;let u=s.size+s.offset,c=t;for(;c<a-1&&u<l;)c++,u+=Ri(e,c,r,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:s},l)=>{var u,c;l=vr(l)?!0:l,It(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),It(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),l&&((c=e.proxy)==null||c.$forceUpdate())},r=(o,s)=>{n({columnIndex:o},s)},a=(o,s)=>{n({rowIndex:o},s)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=V2,estimatedRowHeight:t=V2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Sae=he({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Je("select")}}});function Tae(e,t,n,r,a,o){return e.item.isTitle?(V(),ie("div",{key:0,class:K(e.ns.be("group","title")),style:vt([e.style,{lineHeight:`${e.height}px`}])},ot(e.item.label),7)):(V(),ie("div",{key:1,class:K(e.ns.be("group","split")),style:vt(e.style)},[de("span",{class:K(e.ns.be("group","split-dash")),style:vt({top:`${e.height/2}px`})},null,6)],6))}var Eae=at(Sae,[["render",Tae],["__file","group-item.vue"]]);function Cae(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const P3={label:"label",value:"value",disabled:"disabled",options:"options"};function Dv(e){const t=N(()=>({...P3,...e.props}));return{aliasProps:t,getLabel:s=>lr(s,t.value.label),getValue:s=>lr(s,t.value.value),getDisabled:s=>lr(s,t.value.disabled),getOptions:s=>lr(s,t.value.options)}}const xae=tt({allowCreate:Boolean,autocomplete:{type:xe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Pn,default:tl},effect:{type:xe(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:xe([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:xe(Array),required:!0},placeholder:{type:String},teleported:Lr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:xe(Object),default:()=>({})},remote:Boolean,size:Rr,props:{type:xe(Object),default:()=>P3},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:xe(String),values:fu,default:"bottom-start"},fallbackPlacements:{type:xe(Array),default:["bottom-start","top-start","right","left"]},tagType:{...Rv.type,default:"info"},...Gc,...Xr(["ariaLabel"])}),Iae=tt({data:Array,disabled:Boolean,hovering:Boolean,item:{type:xe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),d1=Symbol("ElSelectV2Injection"),Aae=he({props:Iae,emits:["select","hover"],setup(e,{emit:t}){const n=dt(d1),r=Je("select"),{hoverItem:a,selectOptionClick:o}=Cae(e,{emit:t}),{getLabel:s}=Dv(n.props);return{ns:r,hoverItem:a,selectOptionClick:o,getLabel:s}}}),Pae=["aria-selected"];function Mae(e,t,n,r,a,o){return V(),ie("li",{"aria-selected":e.selected,style:vt(e.style),class:K([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMouseenter:t[0]||(t[0]=(...s)=>e.hoverItem&&e.hoverItem(...s)),onClick:t[1]||(t[1]=Ot((...s)=>e.selectOptionClick&&e.selectOptionClick(...s),["stop"]))},[Ue(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[de("span",null,ot(e.getLabel(e.item)),1)])],46,Pae)}var Oae=at(Aae,[["render",Mae],["__file","option-item.vue"]]),$ae=he({name:"ElSelectDropdown",props:{loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=dt(d1),a=Je("select"),{getLabel:o,getValue:s,getDisabled:l}=Dv(r.props),u=ee([]),c=ee(),f=N(()=>e.data.length);We(()=>f.value,()=>{var W,Q;(Q=(W=r.tooltipRef.value).updatePopper)==null||Q.call(W)});const d=N(()=>vr(r.props.estimatedOptionHeight)),p=N(()=>d.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:W=>u.value[W]}),g=(W=[],Q)=>{const{props:{valueKey:ue}}=r;return Kt(Q)?W&&W.some(se=>In(lr(se,ue))===lr(Q,ue)):W.includes(Q)},y=(W,Q)=>{if(Kt(Q)){const{valueKey:ue}=r.props;return lr(W,ue)===lr(Q,ue)}else return W===Q},m=(W,Q)=>r.props.multiple?g(W,s(Q)):y(W,s(Q)),S=(W,Q)=>{const{disabled:ue,multiple:se,multipleLimit:ne}=r.props;return ue||!Q&&(se?ne>0&&W.length>=ne:!1)},_=W=>e.hoveringIndex===W;n({listRef:c,isSized:d,isItemDisabled:S,isItemHovering:_,isItemSelected:m,scrollToItem:W=>{const Q=c.value;Q&&Q.scrollToItem(W)},resetScrollTop:()=>{const W=c.value;W&&W.resetScrollTop()}});const $=W=>{const{index:Q,data:ue,style:se}=W,ne=h(d),{itemSize:J,estimatedSize:X}=h(p),{modelValue:te}=r.props,{onSelect:Y,onHover:Z}=r,ae=ue[Q];if(ae.type==="Group")return ye(Eae,{item:ae,style:se,height:ne?J:X},null);const ve=m(te,ae),we=S(te,ve),Me=_(Q);return ye(Oae,rn(W,{selected:ve,disabled:l(ae)||we,created:!!ae.created,hovering:Me,item:ae,onSelect:Y,onHover:Z}),{default:Ge=>{var Ee;return((Ee=t.default)==null?void 0:Ee.call(t,Ge))||ye("span",null,[o(ae)])}})},{onKeyboardNavigate:k,onKeyboardSelect:L}=r,B=()=>{k("forward")},H=()=>{k("backward")},G=()=>{r.expanded=!1},j=W=>{const{code:Q}=W,{tab:ue,esc:se,down:ne,up:J,enter:X}=St;switch(Q!==ue&&(W.preventDefault(),W.stopPropagation()),Q){case ue:case se:{G();break}case ne:{B();break}case J:{H();break}case X:{L();break}}};return()=>{var W,Q,ue,se;const{data:ne,width:J}=e,{height:X,multiple:te,scrollbarAlwaysOn:Y}=r.props,Z=h(d)?w3:vae;return ye("div",{class:[a.b("dropdown"),a.is("multiple",te)],style:{width:`${J}px`}},[(W=t.header)==null?void 0:W.call(t),((Q=t.loading)==null?void 0:Q.call(t))||((ue=t.empty)==null?void 0:ue.call(t))||ye(Z,rn({ref:c},h(p),{className:a.be("dropdown","list"),scrollbarAlwaysOn:Y,data:ne,height:X,width:J,total:ne.length,onKeydown:j}),{default:ae=>ye($,ae,null)}),(se=t.footer)==null?void 0:se.call(t)])}}});function Rae(e,t){const{aliasProps:n,getLabel:r,getValue:a}=Dv(e),o=ee(0),s=ee(null),l=N(()=>e.allowCreate&&e.filterable);function u(g){const y=m=>r(m)===g;return e.options&&e.options.some(y)||t.createdOptions.some(y)}function c(g){l.value&&(e.multiple&&g.created?o.value++:s.value=g)}function f(g){if(l.value)if(g&&g.length>0){if(u(g))return;const y={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=o.value?t.createdOptions[o.value]=y:t.createdOptions.push(y)}else if(e.multiple)t.createdOptions.length=o.value;else{const y=s.value;t.createdOptions.length=0,y&&y.created&&t.createdOptions.push(y)}}function d(g){if(!l.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===r(g))return;const y=t.createdOptions.findIndex(m=>a(m)===a(g));~y&&(t.createdOptions.splice(y,1),o.value--)}function p(){l.value&&(t.createdOptions.length=0,o.value=0)}return{createNewOption:f,removeNewOption:d,selectNewOption:c,clearAllNewOption:p}}const kae=11,Lae=(e,t)=>{const{t:n}=hn(),r=Je("select"),a=Je("input"),{form:o,formItem:s}=va(),{inputId:l}=Xo(e,{formItemContext:s}),{aliasProps:u,getLabel:c,getValue:f,getDisabled:d,getOptions:p}=Dv(e),{valueOnClear:g,isEmptyValue:y}=Pv(e),m=Sn({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),S=ee(-1),_=ee(null),P=ee(null),A=ee(null),$=ee(null),k=ee(null),L=ee(null),B=ee(null),H=ee(null),G=ee(null),j=ee(null),W=ee(null),{wrapperRef:Q,isFocused:ue,handleFocus:se,handleBlur:ne}=Av(k,{afterFocus(){e.automaticDropdown&&!te.value&&(te.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(Ve){var Tt,Vt;return((Tt=A.value)==null?void 0:Tt.isFocusInsideContent(Ve))||((Vt=$.value)==null?void 0:Vt.isFocusInsideContent(Ve))},afterBlur(){te.value=!1,m.menuVisibleOnFocus=!1}}),J=ee([]),X=ee([]),te=ee(!1),Y=N(()=>e.disabled||(o==null?void 0:o.disabled)),Z=N(()=>{const Ve=X.value.length*e.itemHeight;return Ve>e.height?e.height:Ve}),ae=N(()=>e.multiple?st(e.modelValue)&&e.modelValue.length>0:!y(e.modelValue)),ve=N(()=>e.clearable&&!Y.value&&m.inputHovering&&ae.value),we=N(()=>e.remote&&e.filterable?"":Zi),Me=N(()=>we.value&&r.is("reverse",te.value)),Ge=N(()=>(s==null?void 0:s.validateState)||""),Ee=N(()=>b_[Ge.value]),pe=N(()=>e.remote?300:0),_e=N(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!m.inputValue&&J.value.length===0?!1:e.filterable&&m.inputValue&&J.value.length>0&&X.value.length===0?e.noMatchText||n("el.select.noMatch"):J.value.length===0?e.noDataText||n("el.select.noData"):null),He=Ve=>{const Tt=Vt=>{if(e.filterable&&Pt(e.filterMethod)||e.filterable&&e.remote&&Pt(e.remoteMethod))return!0;const pn=new RegExp(d_(Ve),"i");return Ve?pn.test(c(Vt)||""):!0};return e.loading?[]:[...m.createdOptions,...e.options].reduce((Vt,pn)=>{const Cr=p(pn);if(st(Cr)){const _r=Cr.filter(Tt);_r.length>0&&Vt.push({label:c(pn),isTitle:!0,type:"Group"},..._r,{type:"Group"})}else(e.remote||Tt(pn))&&Vt.push(pn);return Vt},[])},Ae=()=>{J.value=He(""),X.value=He(m.inputValue)},ke=N(()=>{const Ve=new Map;return J.value.forEach((Tt,Vt)=>{Ve.set(yt(f(Tt)),{option:Tt,index:Vt})}),Ve}),ze=N(()=>{const Ve=new Map;return X.value.forEach((Tt,Vt)=>{Ve.set(yt(f(Tt)),{option:Tt,index:Vt})}),Ve}),ce=N(()=>X.value.every(Ve=>d(Ve))),me=yr(),Be=N(()=>me.value==="small"?"small":"default"),be=()=>{var Ve;S.value=((Ve=_.value)==null?void 0:Ve.offsetWidth)||200},Oe=()=>{if(!P.value)return 0;const Ve=window.getComputedStyle(P.value);return Number.parseFloat(Ve.gap||"6px")},Ye=N(()=>{const Ve=Oe();return{maxWidth:`${W.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-Ve:m.selectionWidth}px`}}),qe=N(()=>({maxWidth:`${m.selectionWidth}px`})),Qe=N(()=>({width:`${Math.max(m.calculatorWidth,kae)}px`})),et=N(()=>st(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),je=N(()=>{var Ve;const Tt=(Ve=e.placeholder)!=null?Ve:n("el.select.placeholder");return e.multiple||!ae.value?Tt:m.selectedLabel}),lt=N(()=>{var Ve,Tt;return(Tt=(Ve=A.value)==null?void 0:Ve.popperRef)==null?void 0:Tt.contentRef}),ut=N(()=>{if(e.multiple){const Ve=e.modelValue.length;if(e.modelValue.length>0&&ze.value.has(e.modelValue[Ve-1])){const{index:Tt}=ze.value.get(e.modelValue[Ve-1]);return Tt}}else if(e.modelValue&&ze.value.has(e.modelValue)){const{index:Ve}=ze.value.get(e.modelValue);return Ve}return-1}),Ke=N({get(){return te.value&&_e.value!==!1},set(Ve){te.value=Ve}}),ct=N(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Et=N(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:Ut,removeNewOption:en,selectNewOption:gt,clearAllNewOption:ge}=Rae(e,m),{handleCompositionStart:Ne,handleCompositionUpdate:$e,handleCompositionEnd:Te}=u3(Ve=>Xa(Ve)),De=()=>{Y.value||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:te.value=!te.value)},it=()=>{m.inputValue.length>0&&!te.value&&(te.value=!0),Ut(m.inputValue),rt(m.inputValue)},Pe=Ha(it,pe.value),rt=Ve=>{m.previousQuery!==Ve&&(m.previousQuery=Ve,e.filterable&&Pt(e.filterMethod)?e.filterMethod(Ve):e.filterable&&e.remote&&Pt(e.remoteMethod)&&e.remoteMethod(Ve),e.defaultFirstOption&&(e.filterable||e.remote)&&X.value.length?bt(kt):bt(xa))},kt=()=>{const Ve=X.value.filter(pn=>!pn.disabled&&pn.type!=="Group"),Tt=Ve.find(pn=>pn.created),Vt=Ve[0];m.hoveringIndex=Wt(X.value,Tt||Vt)},Jt=Ve=>{ca(e.modelValue,Ve)||t(Hn,Ve)},tn=Ve=>{t(Yt,Ve),Jt(Ve),m.previousValue=e.multiple?String(Ve):Ve},Wt=(Ve=[],Tt)=>{if(!Kt(Tt))return Ve.indexOf(Tt);const Vt=e.valueKey;let pn=-1;return Ve.some((Cr,_r)=>lr(Cr,Vt)===lr(Tt,Vt)?(pn=_r,!0):!1),pn},yt=Ve=>Kt(Ve)?lr(Ve,e.valueKey):Ve,yn=()=>{be()},Wa=()=>{m.selectionWidth=P.value.getBoundingClientRect().width},At=()=>{m.calculatorWidth=L.value.getBoundingClientRect().width},Ct=()=>{m.collapseItemWidth=W.value.getBoundingClientRect().width},aa=()=>{var Ve,Tt;(Tt=(Ve=A.value)==null?void 0:Ve.updatePopper)==null||Tt.call(Ve)},i=()=>{var Ve,Tt;(Tt=(Ve=$.value)==null?void 0:Ve.updatePopper)==null||Tt.call(Ve)},Mt=Ve=>{if(e.multiple){let Tt=e.modelValue.slice();const Vt=Wt(Tt,f(Ve));Vt>-1?(Tt=[...Tt.slice(0,Vt),...Tt.slice(Vt+1)],m.cachedOptions.splice(Vt,1),en(Ve)):(e.multipleLimit<=0||Tt.length<e.multipleLimit)&&(Tt=[...Tt,f(Ve)],m.cachedOptions.push(Ve),gt(Ve)),tn(Tt),Ve.created&&rt(""),e.filterable&&!e.reserveKeyword&&(m.inputValue="")}else m.selectedLabel=c(Ve),tn(f(Ve)),te.value=!1,gt(Ve),Ve.created||ge();Jn()},Ua=(Ve,Tt)=>{let Vt=e.modelValue.slice();const pn=Wt(Vt,f(Tt));pn>-1&&!Y.value&&(Vt=[...e.modelValue.slice(0,pn),...e.modelValue.slice(pn+1)],m.cachedOptions.splice(pn,1),tn(Vt),t("remove-tag",f(Tt)),en(Tt)),Ve.stopPropagation(),Jn()},Jn=()=>{var Ve;(Ve=k.value)==null||Ve.focus()},re=()=>{var Ve;(Ve=k.value)==null||Ve.blur()},En=()=>{m.inputValue.length>0?m.inputValue="":te.value=!1},Ze=Ve=>wP(Ve,Tt=>!m.cachedOptions.some(Vt=>f(Vt)===Tt&&d(Vt))),O=Ve=>{if(e.multiple&&Ve.code!==St.delete&&m.inputValue.length===0){Ve.preventDefault();const Tt=e.modelValue.slice(),Vt=Ze(Tt);if(Vt<0)return;Tt.splice(Vt,1);const pn=m.cachedOptions[Vt];m.cachedOptions.splice(Vt,1),en(pn),tn(Tt)}},nt=()=>{let Ve;st(e.modelValue)?Ve=[]:Ve=g.value,e.multiple?m.cachedOptions=[]:m.selectedLabel="",te.value=!1,tn(Ve),t("clear"),ge(),Jn()},xt=(Ve,Tt=void 0)=>{const Vt=X.value;if(!["forward","backward"].includes(Ve)||Y.value||Vt.length<=0||ce.value)return;if(!te.value)return De();Tt===void 0&&(Tt=m.hoveringIndex);let pn=-1;Ve==="forward"?(pn=Tt+1,pn>=Vt.length&&(pn=0)):Ve==="backward"&&(pn=Tt-1,(pn<0||pn>=Vt.length)&&(pn=Vt.length-1));const Cr=Vt[pn];if(d(Cr)||Cr.type==="Group")return xt(Ve,pn);m.hoveringIndex=pn,Re(pn)},un=()=>{if(te.value)~m.hoveringIndex&&X.value[m.hoveringIndex]&&Mt(X.value[m.hoveringIndex]);else return De()},qn=Ve=>{m.hoveringIndex=Ve},xa=()=>{e.multiple?m.hoveringIndex=X.value.findIndex(Ve=>e.modelValue.some(Tt=>yt(Tt)===yt(Ve))):m.hoveringIndex=X.value.findIndex(Ve=>yt(Ve)===yt(e.modelValue))},Xa=Ve=>{if(m.inputValue=Ve.target.value,e.remote)Pe();else return it()},Ci=Ve=>{if(te.value=!1,ue.value){const Tt=new FocusEvent("focus",Ve);ne(Tt)}},Ya=()=>(m.isBeforeHide=!1,bt(()=>{~ut.value&&Re(m.hoveringIndex)})),Re=Ve=>{G.value.scrollToItem(Ve)},ma=Ve=>{const Tt=yt(Ve);if(ke.value.has(Tt)){const{option:Vt}=ke.value.get(Tt);return Vt}return{[u.value.value]:Ve,[u.value.label]:Ve}},il=()=>{if(e.multiple)if(e.modelValue.length>0){m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const Ve of e.modelValue){const Tt=ma(Ve);m.cachedOptions.push(Tt)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ae.value){m.previousValue=e.modelValue;const Ve=X.value,Tt=Ve.findIndex(Vt=>yt(f(Vt))===yt(e.modelValue));~Tt?m.selectedLabel=c(Ve[Tt]):m.selectedLabel=yt(e.modelValue)}else m.selectedLabel="",m.previousValue=void 0;ge(),be()};return We(te,Ve=>{Ve?rt(""):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,Ut("")),t("visible-change",Ve)}),We(()=>e.modelValue,(Ve,Tt)=>{var Vt;(!Ve||e.multiple&&Ve.toString()!==m.previousValue||!e.multiple&&yt(Ve)!==yt(m.previousValue))&&il(),!ca(Ve,Tt)&&e.validateEvent&&((Vt=s==null?void 0:s.validate)==null||Vt.call(s,"change").catch(pn=>void 0))},{deep:!0}),We(()=>e.options,()=>{const Ve=k.value;(!Ve||Ve&&document.activeElement!==Ve)&&il()},{deep:!0,flush:"post"}),We(()=>X.value,()=>G.value&&bt(G.value.resetScrollTop)),ta(()=>{m.isBeforeHide||Ae()}),ta(()=>{const{valueKey:Ve,options:Tt}=e,Vt=new Map;for(const pn of Tt){const Cr=f(pn);let _r=Cr;if(Kt(_r)&&(_r=lr(Cr,Ve)),Vt.get(_r))break;Vt.set(_r,!0)}}),Ht(()=>{il()}),Wn(_,yn),Wn(P,Wa),Wn(L,At),Wn(G,aa),Wn(Q,aa),Wn(j,i),Wn(W,Ct),{inputId:l,collapseTagSize:Be,currentPlaceholder:je,expanded:te,emptyText:_e,popupHeight:Z,debounce:pe,allOptions:J,filteredOptions:X,iconComponent:we,iconReverse:Me,tagStyle:Ye,collapseTagStyle:qe,inputStyle:Qe,popperSize:S,dropdownMenuVisible:Ke,hasModelValue:ae,shouldShowPlaceholder:et,selectDisabled:Y,selectSize:me,showClearBtn:ve,states:m,isFocused:ue,nsSelect:r,nsInput:a,calculatorRef:L,inputRef:k,menuRef:G,tagMenuRef:j,tooltipRef:A,tagTooltipRef:$,selectRef:_,wrapperRef:Q,selectionRef:P,prefixRef:B,suffixRef:H,collapseItemRef:W,popperRef:lt,validateState:Ge,validateIcon:Ee,showTagList:ct,collapseTagList:Et,debouncedOnInputChange:Pe,deleteTag:Ua,getLabel:c,getValue:f,getDisabled:d,getValueKey:yt,handleBlur:ne,handleClear:nt,handleClickOutside:Ci,handleDel:O,handleEsc:En,handleFocus:se,focus:Jn,blur:re,handleMenuEnter:Ya,handleResize:yn,resetSelectionWidth:Wa,resetCalculatorWidth:At,updateTooltip:aa,updateTagTooltip:i,updateOptions:Ae,toggleMenu:De,scrollTo:Re,onInput:Xa,onKeyboardNavigate:xt,onKeyboardSelect:un,onSelect:Mt,onHover:qn,handleCompositionStart:Ne,handleCompositionEnd:Te,handleCompositionUpdate:$e}},Nae=he({name:"ElSelectV2",components:{ElSelectMenu:$ae,ElTag:Ef,ElTooltip:fa,ElIcon:ht},directives:{ClickOutside:Ki},props:xae,emits:[Yt,Hn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=N(()=>{const{modelValue:a,multiple:o}=e,s=o?[]:void 0;return st(a)?o?a:s:o?s:a}),r=Lae(Sn({...Wr(e),modelValue:n}),t);return nn(d1,{props:Sn({...Wr(e),height:r.popupHeight,modelValue:n}),tooltipRef:r.tooltipRef,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),Dae=["id","autocomplete","aria-expanded","aria-label","disabled","readonly","name"],Fae=["textContent"];function Bae(e,t,n,r,a,o){const s=Xt("el-tag"),l=Xt("el-tooltip"),u=Xt("el-icon"),c=Xt("el-select-menu"),f=lv("click-outside");return Lt((V(),ie("div",{ref:"selectRef",class:K([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[14]||(t[14]=d=>e.states.inputHovering=!0),onMouseleave:t[15]||(t[15]=d=>e.states.inputHovering=!1),onClick:t[16]||(t[16]=Ot((...d)=>e.toggleMenu&&e.toggleMenu(...d),["prevent","stop"]))},[ye(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[13]||(t[13]=d=>e.states.isBeforeHide=!1)},{default:Ce(()=>[de("div",{ref:"wrapperRef",class:K([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(V(),ie("div",{key:0,ref:"prefixRef",class:K(e.nsSelect.e("prefix"))},[Ue(e.$slots,"prefix")],2)):Ie("v-if",!0),de("div",{ref:"selectionRef",class:K([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?Ue(e.$slots,"tag",{key:0},()=>[(V(!0),ie(mt,null,sn(e.showTagList,d=>(V(),ie("div",{key:e.getValueKey(e.getValue(d)),class:K(e.nsSelect.e("selected-item"))},[ye(s,{closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",style:vt(e.tagStyle),onClose:p=>e.deleteTag(p,d)},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))},ot(e.getLabel(d)),3)]),_:2},1032,["closable","size","type","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(V(),Fe(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:Ce(()=>[de("div",{ref:"collapseItemRef",class:K(e.nsSelect.e("selected-item"))},[ye(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,style:vt(e.collapseTagStyle),"disable-transitions":""},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))}," + "+ot(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","style"])],2)]),content:Ce(()=>[de("div",{ref:"tagMenuRef",class:K(e.nsSelect.e("selection"))},[(V(!0),ie(mt,null,sn(e.collapseTagList,d=>(V(),ie("div",{key:e.getValueKey(e.getValue(d)),class:K(e.nsSelect.e("selected-item"))},[ye(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(d),size:e.collapseTagSize,type:e.tagType,"disable-transitions":"",onClose:p=>e.deleteTag(p,d)},{default:Ce(()=>[de("span",{class:K(e.nsSelect.e("tags-text"))},ot(e.getLabel(d)),3)]),_:2},1032,["closable","size","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):Ie("v-if",!0)]):Ie("v-if",!0),e.selectDisabled?Ie("v-if",!0):(V(),ie("div",{key:1,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[Lt(de("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t[0]||(t[0]=d=>e.states.inputValue=d),style:vt(e.inputStyle),autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:K([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=An(Ot(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=An(Ot(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=An(Ot((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=An(Ot((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=An(Ot((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))],onClick:t[12]||(t[12]=Ot((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"]))},null,46,Dae),[[jb,e.states.inputValue]]),e.filterable?(V(),ie("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:K(e.nsSelect.e("input-calculator")),textContent:ot(e.states.inputValue)},null,10,Fae)):Ie("v-if",!0)],2)),e.shouldShowPlaceholder?(V(),ie("div",{key:2,class:K([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[de("span",null,ot(e.currentPlaceholder),1)],2)):Ie("v-if",!0)],2),de("div",{ref:"suffixRef",class:K(e.nsSelect.e("suffix"))},[e.iconComponent?Lt((V(),Fe(u,{key:0,class:K([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:Ce(()=>[(V(),Fe(Zt(e.iconComponent)))]),_:1},8,["class"])),[[bn,!e.showClearBtn]]):Ie("v-if",!0),e.showClearBtn&&e.clearIcon?(V(),Fe(u,{key:1,class:K([e.nsSelect.e("caret"),e.nsInput.e("icon")]),onClick:Ot(e.handleClear,["prevent","stop"])},{default:Ce(()=>[(V(),Fe(Zt(e.clearIcon)))]),_:1},8,["class","onClick"])):Ie("v-if",!0),e.validateState&&e.validateIcon?(V(),Fe(u,{key:2,class:K([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:Ce(()=>[(V(),Fe(Zt(e.validateIcon)))]),_:1},8,["class"])):Ie("v-if",!0)],2)],2)]),content:Ce(()=>[ye(c,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Gi({default:Ce(d=>[Ue(e.$slots,"default",Di(ac(d)))]),_:2},[e.$slots.header?{name:"header",fn:Ce(()=>[de("div",{class:K(e.nsSelect.be("dropdown","header"))},[Ue(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:Ce(()=>[de("div",{class:K(e.nsSelect.be("dropdown","loading"))},[Ue(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:Ce(()=>[de("div",{class:K(e.nsSelect.be("dropdown","empty"))},[Ue(e.$slots,"empty",{},()=>[de("span",null,ot(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:Ce(()=>[de("div",{class:K(e.nsSelect.be("dropdown","footer"))},[Ue(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var Wp=at(Nae,[["render",Bae],["__file","select.vue"]]);Wp.install=e=>{e.component(Wp.name,Wp)};const Hae=Wp,Uae=Hae,Vae=tt({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Gae=tt({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),jae=he({name:"ElSkeletonItem"}),zae=he({...jae,props:Gae,setup(e){const t=Je("skeleton");return(n,r)=>(V(),ie("div",{class:K([h(t).e("item"),h(t).e(n.variant)])},[n.variant==="image"?(V(),Fe(h(D7),{key:0})):Ie("v-if",!0)],2))}});var F0=at(zae,[["__file","skeleton-item.vue"]]);const Kae=he({name:"ElSkeleton"}),Wae=he({...Kae,props:Vae,setup(e,{expose:t}){const n=e,r=Je("skeleton"),a=MV(On(n,"loading"),n.throttle);return t({uiLoading:a}),(o,s)=>h(a)?(V(),ie("div",rn({key:0,class:[h(r).b(),h(r).is("animated",o.animated)]},o.$attrs),[(V(!0),ie(mt,null,sn(o.count,l=>(V(),ie(mt,{key:l},[o.loading?Ue(o.$slots,"template",{key:l},()=>[ye(F0,{class:K(h(r).is("first")),variant:"p"},null,8,["class"]),(V(!0),ie(mt,null,sn(o.rows,u=>(V(),Fe(F0,{key:u,class:K([h(r).e("paragraph"),h(r).is("last",u===o.rows&&o.rows>1)]),variant:"p"},null,8,["class"]))),128))]):Ie("v-if",!0)],64))),128))],16)):Ue(o.$slots,"default",Di(rn({key:1},o.$attrs)))}});var Xae=at(Wae,[["__file","skeleton.vue"]]);const Yae=jt(Xae,{SkeletonItem:F0}),Jae=Yn(F0),M3=Symbol("sliderContextKey"),qae=tt({modelValue:{type:xe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Rr,inputSize:Rr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:xe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:xe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:fu,default:"top"},marks:{type:xe(Object)},validateEvent:{type:Boolean,default:!0},...Xr(["ariaLabel"])}),Gm=e=>It(e)||st(e)&&e.every(It),Qae={[Yt]:Gm,[wa]:Gm,[Hn]:Gm},Zae=(e,t,n)=>{const r=ee();return Ht(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Bn(window,"resize",n),await bt(),n()}),{sliderWrapper:r}},eoe=e=>N(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),toe=(e,t,n)=>{const{form:r,formItem:a}=va(),o=Fn(),s=ee(),l=ee(),u={firstButton:s,secondButton:l},c=N(()=>e.disabled||(r==null?void 0:r.disabled)||!1),f=N(()=>Math.min(t.firstValue,t.secondValue)),d=N(()=>Math.max(t.firstValue,t.secondValue)),p=N(()=>e.range?`${100*(d.value-f.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),g=N(()=>e.range?`${100*(f.value-e.min)/(e.max-e.min)}%`:"0%"),y=N(()=>e.vertical?{height:e.height}:{}),m=N(()=>e.vertical?{height:p.value,bottom:g.value}:{width:p.value,left:g.value}),S=()=>{o.value&&(t.sliderSize=o.value[`client${e.vertical?"Height":"Width"}`])},_=W=>{const Q=e.min+W*(e.max-e.min)/100;if(!e.range)return s;let ue;return Math.abs(f.value-Q)<Math.abs(d.value-Q)?ue=t.firstValue<t.secondValue?"firstButton":"secondButton":ue=t.firstValue>t.secondValue?"firstButton":"secondButton",u[ue]},P=W=>{const Q=_(W);return Q.value.setPosition(W),Q},A=W=>{t.firstValue=W,k(e.range?[f.value,d.value]:W)},$=W=>{t.secondValue=W,e.range&&k([f.value,d.value])},k=W=>{n(Yt,W),n(wa,W)},L=async()=>{await bt(),n(Hn,e.range?[f.value,d.value]:e.modelValue)},B=W=>{var Q,ue,se,ne,J,X;if(c.value||t.dragging)return;S();let te=0;if(e.vertical){const Y=(se=(ue=(Q=W.touches)==null?void 0:Q.item(0))==null?void 0:ue.clientY)!=null?se:W.clientY;te=(o.value.getBoundingClientRect().bottom-Y)/t.sliderSize*100}else{const Y=(X=(J=(ne=W.touches)==null?void 0:ne.item(0))==null?void 0:J.clientX)!=null?X:W.clientX,Z=o.value.getBoundingClientRect().left;te=(Y-Z)/t.sliderSize*100}if(!(te<0||te>100))return P(te)};return{elFormItem:a,slider:o,firstButton:s,secondButton:l,sliderDisabled:c,minValue:f,maxValue:d,runwayStyle:y,barStyle:m,resetSize:S,setPosition:P,emitChange:L,onSliderWrapperPrevent:W=>{var Q,ue;((Q=u.firstButton.value)!=null&&Q.dragging||(ue=u.secondButton.value)!=null&&ue.dragging)&&W.preventDefault()},onSliderClick:W=>{B(W)&&L()},onSliderDown:async W=>{const Q=B(W);Q&&(await bt(),Q.value.onButtonDown(W))},setFirstValue:A,setSecondValue:$}},{left:noe,down:roe,right:aoe,up:ooe,home:ioe,end:soe,pageUp:loe,pageDown:uoe}=St,coe=(e,t,n)=>{const r=ee(),a=ee(!1),o=N(()=>t.value instanceof Function),s=N(()=>o.value&&t.value(e.modelValue)||e.modelValue),l=Ha(()=>{n.value&&(a.value=!0)},50),u=Ha(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:s,displayTooltip:l,hideTooltip:u}},doe=(e,t,n)=>{const{disabled:r,min:a,max:o,step:s,showTooltip:l,precision:u,sliderSize:c,formatTooltip:f,emitChange:d,resetSize:p,updateDragging:g}=dt(M3),{tooltip:y,tooltipVisible:m,formatValue:S,displayTooltip:_,hideTooltip:P}=coe(e,f,l),A=ee(),$=N(()=>`${(e.modelValue-a.value)/(o.value-a.value)*100}%`),k=N(()=>e.vertical?{bottom:$.value}:{left:$.value}),L=()=>{t.hovering=!0,_()},B=()=>{t.hovering=!1,t.dragging||P()},H=ve=>{r.value||(ve.preventDefault(),te(ve),window.addEventListener("mousemove",Y),window.addEventListener("touchmove",Y),window.addEventListener("mouseup",Z),window.addEventListener("touchend",Z),window.addEventListener("contextmenu",Z),A.value.focus())},G=ve=>{r.value||(t.newPosition=Number.parseFloat($.value)+ve/(o.value-a.value)*100,ae(t.newPosition),d())},j=()=>{G(-s.value)},W=()=>{G(s.value)},Q=()=>{G(-s.value*4)},ue=()=>{G(s.value*4)},se=()=>{r.value||(ae(0),d())},ne=()=>{r.value||(ae(100),d())},J=ve=>{let we=!0;[noe,roe].includes(ve.key)?j():[aoe,ooe].includes(ve.key)?W():ve.key===ioe?se():ve.key===soe?ne():ve.key===uoe?Q():ve.key===loe?ue():we=!1,we&&ve.preventDefault()},X=ve=>{let we,Me;return ve.type.startsWith("touch")?(Me=ve.touches[0].clientY,we=ve.touches[0].clientX):(Me=ve.clientY,we=ve.clientX),{clientX:we,clientY:Me}},te=ve=>{t.dragging=!0,t.isClick=!0;const{clientX:we,clientY:Me}=X(ve);e.vertical?t.startY=Me:t.startX=we,t.startPosition=Number.parseFloat($.value),t.newPosition=t.startPosition},Y=ve=>{if(t.dragging){t.isClick=!1,_(),p();let we;const{clientX:Me,clientY:Ge}=X(ve);e.vertical?(t.currentY=Ge,we=(t.startY-t.currentY)/c.value*100):(t.currentX=Me,we=(t.currentX-t.startX)/c.value*100),t.newPosition=t.startPosition+we,ae(t.newPosition)}},Z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||P(),t.isClick||ae(t.newPosition),d()},0),window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",Z),window.removeEventListener("touchend",Z),window.removeEventListener("contextmenu",Z))},ae=async ve=>{if(ve===null||Number.isNaN(+ve))return;ve<0?ve=0:ve>100&&(ve=100);const we=100/((o.value-a.value)/s.value);let Ge=Math.round(ve/we)*we*(o.value-a.value)*.01+a.value;Ge=Number.parseFloat(Ge.toFixed(u.value)),Ge!==e.modelValue&&n(Yt,Ge),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await bt(),t.dragging&&_(),y.value.updatePopper()};return We(()=>t.dragging,ve=>{g(ve)}),{disabled:r,button:A,tooltip:y,tooltipVisible:m,showTooltip:l,wrapperStyle:k,formatValue:S,handleMouseEnter:L,handleMouseLeave:B,onButtonDown:H,onKeyDown:J,setPosition:ae}},foe=(e,t,n,r)=>({stops:N(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,l=100*e.step/(e.max-e.min),u=Array.from({length:s-1}).map((c,f)=>(f+1)*l);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(r.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),hoe=(e,t,n,r,a,o)=>{const s=c=>{a(Yt,c),a(wa,c)},l=()=>e.range?![n.value,r.value].every((c,f)=>c===t.oldValue[f]):e.modelValue!==t.oldValue,u=()=>{var c,f;e.min>e.max&&Er("Slider","min should not be greater than max.");const d=e.modelValue;e.range&&Array.isArray(d)?d[1]<e.min?s([e.min,e.min]):d[0]>e.max?s([e.max,e.max]):d[0]<e.min?s([e.min,d[1]]):d[1]>e.max?s([d[0],e.max]):(t.firstValue=d[0],t.secondValue=d[1],l()&&(e.validateEvent&&((c=o==null?void 0:o.validate)==null||c.call(o,"change").catch(p=>void 0)),t.oldValue=d.slice())):!e.range&&typeof d=="number"&&!Number.isNaN(d)&&(d<e.min?s(e.min):d>e.max?s(e.max):(t.firstValue=d,l()&&(e.validateEvent&&((f=o==null?void 0:o.validate)==null||f.call(o,"change").catch(p=>void 0)),t.oldValue=d)))};u(),We(()=>t.dragging,c=>{c||u()}),We(()=>e.modelValue,(c,f)=>{t.dragging||Array.isArray(c)&&Array.isArray(f)&&c.every((d,p)=>d===f[p])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),We(()=>[e.min,e.max],()=>{u()})},poe=tt({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:fu,default:"top"}}),voe={[Yt]:e=>It(e)},moe=["tabindex"],goe=he({name:"ElSliderButton"}),yoe=he({...goe,props:poe,emits:voe,setup(e,{expose:t,emit:n}){const r=e,a=Je("slider"),o=Sn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:s,button:l,tooltip:u,showTooltip:c,tooltipVisible:f,wrapperStyle:d,formatValue:p,handleMouseEnter:g,handleMouseLeave:y,onButtonDown:m,onKeyDown:S,setPosition:_}=doe(r,o,n),{hovering:P,dragging:A}=Wr(o);return t({onButtonDown:m,onKeyDown:S,setPosition:_,hovering:P,dragging:A}),($,k)=>(V(),ie("div",{ref_key:"button",ref:l,class:K([h(a).e("button-wrapper"),{hover:h(P),dragging:h(A)}]),style:vt(h(d)),tabindex:h(s)?-1:0,onMouseenter:k[0]||(k[0]=(...L)=>h(g)&&h(g)(...L)),onMouseleave:k[1]||(k[1]=(...L)=>h(y)&&h(y)(...L)),onMousedown:k[2]||(k[2]=(...L)=>h(m)&&h(m)(...L)),onTouchstart:k[3]||(k[3]=(...L)=>h(m)&&h(m)(...L)),onFocus:k[4]||(k[4]=(...L)=>h(g)&&h(g)(...L)),onBlur:k[5]||(k[5]=(...L)=>h(y)&&h(y)(...L)),onKeydown:k[6]||(k[6]=(...L)=>h(S)&&h(S)(...L))},[ye(h(fa),{ref_key:"tooltip",ref:u,visible:h(f),placement:$.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":$.tooltipClass,disabled:!h(c),persistent:""},{content:Ce(()=>[de("span",null,ot(h(p)),1)]),default:Ce(()=>[de("div",{class:K([h(a).e("button"),{hover:h(P),dragging:h(A)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,moe))}});var OC=at(yoe,[["__file","button.vue"]]);const boe=tt({mark:{type:xe([String,Object]),default:void 0}});var _oe=he({name:"ElSliderMarker",props:boe,setup(e){const t=Je("slider"),n=N(()=>Rt(e.mark)?e.mark:e.mark.label),r=N(()=>Rt(e.mark)?void 0:e.mark.style);return()=>_t("div",{class:t.e("marks-text"),style:r.value},n.value)}});const woe=["id","role","aria-label","aria-labelledby"],Soe={key:1},Toe=he({name:"ElSlider"}),Eoe=he({...Toe,props:qae,emits:Qae,setup(e,{expose:t,emit:n}){const r=e,a=Je("slider"),{t:o}=hn(),s=Sn({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:l,slider:u,firstButton:c,secondButton:f,sliderDisabled:d,minValue:p,maxValue:g,runwayStyle:y,barStyle:m,resetSize:S,emitChange:_,onSliderWrapperPrevent:P,onSliderClick:A,onSliderDown:$,setFirstValue:k,setSecondValue:L}=toe(r,s,n),{stops:B,getStopStyle:H}=foe(r,s,p,g),{inputId:G,isLabeledByFormItem:j}=Xo(r,{formItemContext:l}),W=yr(),Q=N(()=>r.inputSize||W.value),ue=N(()=>r.label||r.ariaLabel||o("el.slider.defaultLabel",{min:r.min,max:r.max})),se=N(()=>r.range?r.rangeStartLabel||o("el.slider.defaultRangeStartLabel"):ue.value),ne=N(()=>r.formatValueText?r.formatValueText(ve.value):`${ve.value}`),J=N(()=>r.rangeEndLabel||o("el.slider.defaultRangeEndLabel")),X=N(()=>r.formatValueText?r.formatValueText(we.value):`${we.value}`),te=N(()=>[a.b(),a.m(W.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),Y=eoe(r);hoe(r,s,p,g,n,l);const Z=N(()=>{const Ee=[r.min,r.max,r.step].map(pe=>{const _e=`${pe}`.split(".")[1];return _e?_e.length:0});return Math.max.apply(null,Ee)}),{sliderWrapper:ae}=Zae(r,s,S),{firstValue:ve,secondValue:we,sliderSize:Me}=Wr(s),Ge=Ee=>{s.dragging=Ee};return nn(M3,{...Wr(r),sliderSize:Me,disabled:d,precision:Z,emitChange:_,resetSize:S,updateDragging:Ge}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-slider",ref:"https://element-plus.org/en-US/component/slider.html"},N(()=>!!r.label)),t({onSliderClick:A}),(Ee,pe)=>{var _e,He;return V(),ie("div",{id:Ee.range?h(G):void 0,ref_key:"sliderWrapper",ref:ae,class:K(h(te)),role:Ee.range?"group":void 0,"aria-label":Ee.range&&!h(j)?h(ue):void 0,"aria-labelledby":Ee.range&&h(j)?(_e=h(l))==null?void 0:_e.labelId:void 0,onTouchstart:pe[2]||(pe[2]=(...Ae)=>h(P)&&h(P)(...Ae)),onTouchmove:pe[3]||(pe[3]=(...Ae)=>h(P)&&h(P)(...Ae))},[de("div",{ref_key:"slider",ref:u,class:K([h(a).e("runway"),{"show-input":Ee.showInput&&!Ee.range},h(a).is("disabled",h(d))]),style:vt(h(y)),onMousedown:pe[0]||(pe[0]=(...Ae)=>h($)&&h($)(...Ae)),onTouchstart:pe[1]||(pe[1]=(...Ae)=>h($)&&h($)(...Ae))},[de("div",{class:K(h(a).e("bar")),style:vt(h(m))},null,6),ye(OC,{id:Ee.range?void 0:h(G),ref_key:"firstButton",ref:c,"model-value":h(ve),vertical:Ee.vertical,"tooltip-class":Ee.tooltipClass,placement:Ee.placement,role:"slider","aria-label":Ee.range||!h(j)?h(se):void 0,"aria-labelledby":!Ee.range&&h(j)?(He=h(l))==null?void 0:He.labelId:void 0,"aria-valuemin":Ee.min,"aria-valuemax":Ee.range?h(we):Ee.max,"aria-valuenow":h(ve),"aria-valuetext":h(ne),"aria-orientation":Ee.vertical?"vertical":"horizontal","aria-disabled":h(d),"onUpdate:modelValue":h(k)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Ee.range?(V(),Fe(OC,{key:0,ref_key:"secondButton",ref:f,"model-value":h(we),vertical:Ee.vertical,"tooltip-class":Ee.tooltipClass,placement:Ee.placement,role:"slider","aria-label":h(J),"aria-valuemin":h(ve),"aria-valuemax":Ee.max,"aria-valuenow":h(we),"aria-valuetext":h(X),"aria-orientation":Ee.vertical?"vertical":"horizontal","aria-disabled":h(d),"onUpdate:modelValue":h(L)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):Ie("v-if",!0),Ee.showStops?(V(),ie("div",Soe,[(V(!0),ie(mt,null,sn(h(B),(Ae,ke)=>(V(),ie("div",{key:ke,class:K(h(a).e("stop")),style:vt(h(H)(Ae))},null,6))),128))])):Ie("v-if",!0),h(Y).length>0?(V(),ie(mt,{key:2},[de("div",null,[(V(!0),ie(mt,null,sn(h(Y),(Ae,ke)=>(V(),ie("div",{key:ke,style:vt(h(H)(Ae.position)),class:K([h(a).e("stop"),h(a).e("marks-stop")])},null,6))),128))]),de("div",{class:K(h(a).e("marks"))},[(V(!0),ie(mt,null,sn(h(Y),(Ae,ke)=>(V(),Fe(h(_oe),{key:ke,mark:Ae.mark,style:vt(h(H)(Ae.position))},null,8,["mark","style"]))),128))],2)],64)):Ie("v-if",!0)],38),Ee.showInput&&!Ee.range?(V(),Fe(h(n3),{key:0,ref:"input","model-value":h(ve),class:K(h(a).e("input")),step:Ee.step,disabled:h(d),controls:Ee.showInputControls,min:Ee.min,max:Ee.max,debounce:Ee.debounce,size:h(Q),"onUpdate:modelValue":h(k),onChange:h(_)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):Ie("v-if",!0)],42,woe)}}});var Coe=at(Eoe,[["__file","slider.vue"]]);const xoe=jt(Coe),Ioe=tt({prefixCls:{type:String}}),$C=he({name:"ElSpaceItem",props:Ioe,setup(e,{slots:t}){const n=Je("space"),r=N(()=>`${e.prefixCls||n.b()}__item`);return()=>_t("div",{class:r.value},Ue(t,"default"))}}),RC={small:8,default:12,large:16};function Aoe(e){const t=Je("space"),n=N(()=>[t.b(),t.m(e.direction),e.class]),r=ee(0),a=ee(0),o=N(()=>{const l=e.wrap||e.fill?{flexWrap:"wrap"}:{},u={alignItems:e.alignment},c={rowGap:`${a.value}px`,columnGap:`${r.value}px`};return[l,u,c,e.style]}),s=N(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return ta(()=>{const{size:l="small",wrap:u,direction:c,fill:f}=e;if(st(l)){const[d=0,p=0]=l;r.value=d,a.value=p}else{let d;It(l)?d=l:d=RC[l||"small"]||RC.small,(u||f)&&c==="horizontal"?r.value=a.value=d:c==="horizontal"?(r.value=d,a.value=0):(a.value=d,r.value=0)}}),{classes:n,containerStyle:o,itemStyle:s}}const Poe=tt({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:xe([String,Object,Array]),default:""},style:{type:xe([String,Array,Object]),default:""},alignment:{type:xe(String),default:"center"},prefixCls:{type:String},spacer:{type:xe([Object,String,Number,Array]),default:null,validator:e=>zn(e)||It(e)||Rt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Si,validator:e=>It(e)||st(e)&&e.length===2&&e.every(It)}}),Moe=he({name:"ElSpace",props:Poe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=Aoe(e);function o(s,l="",u=[]){const{prefixCls:c}=e;return s.forEach((f,d)=>{d2(f)?st(f.children)&&f.children.forEach((p,g)=>{d2(p)&&st(p.children)?o(p.children,`${l+g}-`,u):u.push(ye($C,{style:a.value,prefixCls:c,key:`nested-${l+g}`},{default:()=>[p]},no.PROPS|no.STYLE,["style","prefixCls"]))}):hU(f)&&u.push(ye($C,{style:a.value,prefixCls:c,key:`LoopKey${l+d}`},{default:()=>[f]},no.PROPS|no.STYLE,["style","prefixCls"]))}),u}return()=>{var s;const{spacer:l,direction:u}=e,c=Ue(t,"default",{key:0},()=>[]);if(((s=c.children)!=null?s:[]).length===0)return null;if(st(c.children)){let f=o(c.children);if(l){const d=f.length-1;f=f.reduce((p,g,y)=>{const m=[...p,g];return y!==d&&m.push(ye("span",{style:[a.value,u==="vertical"?"width: 100%":null],key:y},[zn(l)?l:dn(l,no.TEXT)],no.STYLE)),m},[])}return ye("div",{class:n.value,style:r.value},f,no.STYLE|no.CLASS)}return c.children}}}),Ooe=jt(Moe),$oe=tt({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:xe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:xe([String,Object,Array])}}),Roe=he({name:"ElStatistic"}),koe=he({...Roe,props:$oe,setup(e,{expose:t}){const n=e,r=Je("statistic"),a=N(()=>{const{value:o,formatter:s,precision:l,decimalSeparator:u,groupSeparator:c}=n;if(Pt(s))return s(o);if(!It(o))return o;let[f,d=""]=String(o).split(".");return d=d.padEnd(l,"0").slice(0,l>0?l:0),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,c),[f,d].join(d?u:"")});return t({displayValue:a}),(o,s)=>(V(),ie("div",{class:K(h(r).b())},[o.$slots.title||o.title?(V(),ie("div",{key:0,class:K(h(r).e("head"))},[Ue(o.$slots,"title",{},()=>[dn(ot(o.title),1)])],2)):Ie("v-if",!0),de("div",{class:K(h(r).e("content"))},[o.$slots.prefix||o.prefix?(V(),ie("div",{key:0,class:K(h(r).e("prefix"))},[Ue(o.$slots,"prefix",{},()=>[de("span",null,ot(o.prefix),1)])],2)):Ie("v-if",!0),de("span",{class:K(h(r).e("number")),style:vt(o.valueStyle)},ot(h(a)),7),o.$slots.suffix||o.suffix?(V(),ie("div",{key:1,class:K(h(r).e("suffix"))},[Ue(o.$slots,"suffix",{},()=>[de("span",null,ot(o.suffix),1)])],2)):Ie("v-if",!0)],2)],2))}});var Loe=at(koe,[["__file","statistic.vue"]]);const O3=jt(Loe),Noe=tt({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:xe([Number,Object]),default:0},valueStyle:{type:xe([String,Object,Array])}}),Doe={finish:()=>!0,[Hn]:e=>It(e)},Foe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],kC=e=>It(e)?new Date(e).getTime():e.valueOf(),LC=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return Foe.reduce((o,[s,l])=>{const u=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(u.test(o)){const c=Math.floor(n/l);return n-=c*l,o.replace(u,f=>String(c).padStart(f.length,"0"))}return o},t).replace(r,"$1")},Boe=he({name:"ElCountdown"}),Hoe=he({...Boe,props:Noe,emits:Doe,setup(e,{expose:t,emit:n}){const r=e;let a;const o=ee(kC(r.value)-Date.now()),s=N(()=>LC(o.value,r.format)),l=f=>LC(f,r.format),u=()=>{a&&(Zl(a),a=void 0)},c=()=>{const f=kC(r.value),d=()=>{let p=f-Date.now();n("change",p),p<=0?(p=0,u(),n("finish")):a=Us(d),o.value=p};a=Us(d)};return We(()=>[r.value,r.format],()=>{u(),c()},{immediate:!0}),Dn(()=>{u()}),t({displayValue:s}),(f,d)=>(V(),Fe(h(O3),{value:o.value,title:f.title,prefix:f.prefix,suffix:f.suffix,"value-style":f.valueStyle,formatter:l},Gi({_:2},[sn(f.$slots,(p,g)=>({name:g,fn:Ce(()=>[Ue(f.$slots,g)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Uoe=at(Hoe,[["__file","countdown.vue"]]);const Voe=jt(Uoe),Goe=tt({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),joe={[Hn]:(e,t)=>[e,t].every(It)},zoe=he({name:"ElSteps"}),Koe=he({...zoe,props:Goe,emits:joe,setup(e,{emit:t}){const n=e,r=Je("steps"),{children:a,addChild:o,removeChild:s}=U_(Gt(),"ElStep");return We(a,()=>{a.value.forEach((l,u)=>{l.setIndex(u)})}),nn("ElSteps",{props:n,steps:a,addStep:o,removeStep:s}),We(()=>n.active,(l,u)=>{t(Hn,l,u)}),(l,u)=>(V(),ie("div",{class:K([h(r).b(),h(r).m(l.simple?"simple":l.direction)])},[Ue(l.$slots,"default")],2))}});var Woe=at(Koe,[["__file","steps.vue"]]);const Xoe=tt({title:{type:String,default:""},icon:{type:Pn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Yoe=he({name:"ElStep"}),Joe=he({...Yoe,props:Xoe,setup(e){const t=e,n=Je("step"),r=ee(-1),a=ee({}),o=ee(""),s=dt("ElSteps"),l=Gt();Ht(()=>{We([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([L])=>{$(L)},{immediate:!0})}),Dn(()=>{s.removeStep(k.uid)});const u=N(()=>t.status||o.value),c=N(()=>{const L=s.steps.value[r.value-1];return L?L.currentStatus:"wait"}),f=N(()=>s.props.alignCenter),d=N(()=>s.props.direction==="vertical"),p=N(()=>s.props.simple),g=N(()=>s.steps.value.length),y=N(()=>{var L;return((L=s.steps.value[g.value-1])==null?void 0:L.uid)===(l==null?void 0:l.uid)}),m=N(()=>p.value?"":s.props.space),S=N(()=>[n.b(),n.is(p.value?"simple":s.props.direction),n.is("flex",y.value&&!m.value&&!f.value),n.is("center",f.value&&!d.value&&!p.value)]),_=N(()=>{const L={flexBasis:It(m.value)?`${m.value}px`:m.value?m.value:`${100/(g.value-(f.value?0:1))}%`};return d.value||y.value&&(L.maxWidth=`${100/g.value}%`),L}),P=L=>{r.value=L},A=L=>{const B=L==="wait",H={transitionDelay:`${B?"-":""}${150*r.value}ms`},G=L===s.props.processStatus||B?0:100;H.borderWidth=G&&!p.value?"1px":0,H[s.props.direction==="vertical"?"height":"width"]=`${G}%`,a.value=H},$=L=>{L>r.value?o.value=s.props.finishStatus:L===r.value&&c.value!=="error"?o.value=s.props.processStatus:o.value="wait";const B=s.steps.value[r.value-1];B&&B.calcProgress(o.value)},k=Sn({uid:l.uid,currentStatus:u,setIndex:P,calcProgress:A});return s.addStep(k),(L,B)=>(V(),ie("div",{style:vt(h(_)),class:K(h(S))},[Ie(" icon & line "),de("div",{class:K([h(n).e("head"),h(n).is(h(u))])},[h(p)?Ie("v-if",!0):(V(),ie("div",{key:0,class:K(h(n).e("line"))},[de("i",{class:K(h(n).e("line-inner")),style:vt(a.value)},null,6)],2)),de("div",{class:K([h(n).e("icon"),h(n).is(L.icon||L.$slots.icon?"icon":"text")])},[Ue(L.$slots,"icon",{},()=>[L.icon?(V(),Fe(h(ht),{key:0,class:K(h(n).e("icon-inner"))},{default:Ce(()=>[(V(),Fe(Zt(L.icon)))]),_:1},8,["class"])):h(u)==="success"?(V(),Fe(h(ht),{key:1,class:K([h(n).e("icon-inner"),h(n).is("status")])},{default:Ce(()=>[ye(h(sh))]),_:1},8,["class"])):h(u)==="error"?(V(),Fe(h(ht),{key:2,class:K([h(n).e("icon-inner"),h(n).is("status")])},{default:Ce(()=>[ye(h(Go))]),_:1},8,["class"])):h(p)?Ie("v-if",!0):(V(),ie("div",{key:3,class:K(h(n).e("icon-inner"))},ot(r.value+1),3))])],2)],2),Ie(" title & description "),de("div",{class:K(h(n).e("main"))},[de("div",{class:K([h(n).e("title"),h(n).is(h(u))])},[Ue(L.$slots,"title",{},()=>[dn(ot(L.title),1)])],2),h(p)?(V(),ie("div",{key:0,class:K(h(n).e("arrow"))},null,2)):(V(),ie("div",{key:1,class:K([h(n).e("description"),h(n).is(h(u))])},[Ue(L.$slots,"description",{},()=>[dn(ot(L.description),1)])],2))],2)],6))}});var $3=at(Joe,[["__file","item.vue"]]);const qoe=jt(Woe,{Step:$3}),Qoe=Yn($3),Zoe=tt({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:kP},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Pn},activeActionIcon:{type:Pn},activeIcon:{type:Pn},inactiveIcon:{type:Pn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:xe(Function)},id:String,tabindex:{type:[String,Number]},label:{type:String,default:void 0},...Xr(["ariaLabel"])}),eie={[Yt]:e=>mr(e)||Rt(e)||It(e),[Hn]:e=>mr(e)||Rt(e)||It(e),[wa]:e=>mr(e)||Rt(e)||It(e)},tie=["onClick"],nie=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],rie=["aria-hidden"],aie=["aria-hidden"],oie=["aria-hidden"],R3="ElSwitch",iie=he({name:R3}),sie=he({...iie,props:Zoe,emits:eie,setup(e,{expose:t,emit:n}){const r=e,{formItem:a}=va(),o=yr(),s=Je("switch"),{inputId:l}=Xo(r,{formItemContext:a}),u=Ca(N(()=>r.loading)),c=ee(r.modelValue!==!1),f=ee(),d=ee(),p=N(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",_.value)]),g=N(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),y=N(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=N(()=>({width:rr(r.width)}));We(()=>r.modelValue,()=>{c.value=!0});const S=N(()=>c.value?r.modelValue:!1),_=N(()=>S.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(S.value)||(n(Yt,r.inactiveValue),n(Hn,r.inactiveValue),n(wa,r.inactiveValue)),We(_,k=>{var L;f.value.checked=k,r.validateEvent&&((L=a==null?void 0:a.validate)==null||L.call(a,"change").catch(B=>void 0))});const P=()=>{const k=_.value?r.inactiveValue:r.activeValue;n(Yt,k),n(Hn,k),n(wa,k),bt(()=>{f.value.checked=_.value})},A=()=>{if(u.value)return;const{beforeChange:k}=r;if(!k){P();return}const L=k();[rf(L),mr(L)].includes(!0)||Er(R3,"beforeChange must return type `Promise<boolean>` or `boolean`"),rf(L)?L.then(H=>{H&&P()}).catch(H=>{}):L&&P()},$=()=>{var k,L;(L=(k=f.value)==null?void 0:k.focus)==null||L.call(k)};return Ht(()=>{f.value.checked=_.value}),Fr({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-switch",ref:"https://element-plus.org/en-US/component/switch.html"},N(()=>!!r.label)),t({focus:$,checked:_}),(k,L)=>(V(),ie("div",{class:K(h(p)),onClick:Ot(A,["prevent"])},[de("input",{id:h(l),ref_key:"input",ref:f,class:K(h(s).e("input")),type:"checkbox",role:"switch","aria-checked":h(_),"aria-disabled":h(u),"aria-label":k.label||k.ariaLabel,name:k.name,"true-value":k.activeValue,"false-value":k.inactiveValue,disabled:h(u),tabindex:k.tabindex,onChange:P,onKeydown:An(A,["enter"])},null,42,nie),!k.inlinePrompt&&(k.inactiveIcon||k.inactiveText)?(V(),ie("span",{key:0,class:K(h(g))},[k.inactiveIcon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(k.inactiveIcon)))]),_:1})):Ie("v-if",!0),!k.inactiveIcon&&k.inactiveText?(V(),ie("span",{key:1,"aria-hidden":h(_)},ot(k.inactiveText),9,rie)):Ie("v-if",!0)],2)):Ie("v-if",!0),de("span",{ref_key:"core",ref:d,class:K(h(s).e("core")),style:vt(h(m))},[k.inlinePrompt?(V(),ie("div",{key:0,class:K(h(s).e("inner"))},[k.activeIcon||k.inactiveIcon?(V(),Fe(h(ht),{key:0,class:K(h(s).is("icon"))},{default:Ce(()=>[(V(),Fe(Zt(h(_)?k.activeIcon:k.inactiveIcon)))]),_:1},8,["class"])):k.activeText||k.inactiveText?(V(),ie("span",{key:1,class:K(h(s).is("text")),"aria-hidden":!h(_)},ot(h(_)?k.activeText:k.inactiveText),11,aie)):Ie("v-if",!0)],2)):Ie("v-if",!0),de("div",{class:K(h(s).e("action"))},[k.loading?(V(),Fe(h(ht),{key:0,class:K(h(s).is("loading"))},{default:Ce(()=>[ye(h(nl))]),_:1},8,["class"])):h(_)?Ue(k.$slots,"active-action",{key:1},()=>[k.activeActionIcon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(k.activeActionIcon)))]),_:1})):Ie("v-if",!0)]):h(_)?Ie("v-if",!0):Ue(k.$slots,"inactive-action",{key:2},()=>[k.inactiveActionIcon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(k.inactiveActionIcon)))]),_:1})):Ie("v-if",!0)])],2)],6),!k.inlinePrompt&&(k.activeIcon||k.activeText)?(V(),ie("span",{key:1,class:K(h(y))},[k.activeIcon?(V(),Fe(h(ht),{key:0},{default:Ce(()=>[(V(),Fe(Zt(k.activeIcon)))]),_:1})):Ie("v-if",!0),!k.activeIcon&&k.activeText?(V(),ie("span",{key:1,"aria-hidden":!h(_)},ot(k.activeText),9,oie)):Ie("v-if",!0)],2)):Ie("v-if",!0)],10,tie))}});var lie=at(sie,[["__file","switch.vue"]]);const uie=jt(lie),jm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},cie=function(e,t,n,r,a){if(!t&&!r&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(l,u){return a?(Array.isArray(a)||(a=[a]),a.map(c=>typeof c=="string"?lr(l,c):c(l,u,e))):(t!=="$key"&&Kt(l)&&"$value"in l&&(l=l.$value),[Kt(l)?lr(l,t):l])},s=function(l,u){if(r)return r(l.value,u.value);for(let c=0,f=l.key.length;c<f;c++){if(l.key[c]<u.key[c])return-1;if(l.key[c]>u.key[c])return 1}return 0};return e.map((l,u)=>({value:l,index:u,key:o?o(l,u):null})).sort((l,u)=>{let c=s(l,u);return c||(c=l.index-u.index),c*+n}).map(l=>l.value)},k3=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},die=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||Er("ElTable",`No column matching with column-key: ${t}`),n},NC=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?k3(e,r[0]):null},ea=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Nl=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[ea(r,t)]={row:r,index:a}}),n};function fie(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(cn(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function f1(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function L3(e){return e===""||e!==void 0&&(e=f1(e),Number.isNaN(e)&&(e=80)),e}function hie(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function pie(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Xd(e,t,n){let r=!1;const a=e.indexOf(t),o=a!==-1,s=l=>{l==="add"?e.push(t):e.splice(a,1),r=!0,st(t.children)&&t.children.forEach(u=>{Xd(e,u,n??!o)})};return mr(n)?n&&!o?s("add"):!n&&o&&s("remove"):s(o?"remove":"add"),r}function vie(e,t,n="children",r="hasChildren"){const a=s=>!(Array.isArray(s)&&s.length);function o(s,l,u){t(s,l,u),l.forEach(c=>{if(c[r]){t(c,null,u+1);return}const f=c[n];a(f)||o(c,f,u+1)})}e.forEach(s=>{if(s[r]){t(s,null,0);return}const l=s[n];a(l)||o(s,l,0)})}let eo=null;function mie(e,t,n,r){if((eo==null?void 0:eo.trigger)===n)return;eo==null||eo();const a=r==null?void 0:r.refs.tableWrapper,o=a==null?void 0:a.dataset.prefix,s={strategy:"fixed",...e.popperOptions},l=ye(fa,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:a,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:s,onHide:()=>{eo==null||eo()}});l.appContext={...r.appContext,...r};const u=document.createElement("div");Fs(l,u),l.component.exposed.onOpen();const c=a==null?void 0:a.querySelector(`.${o}-scrollbar__wrap`);eo=()=>{Fs(null,u),c==null||c.removeEventListener("scroll",eo),eo=null},eo.trigger=n,c==null||c.addEventListener("scroll",eo)}function N3(e){return e.children?M9(e.children,N3):[e]}function DC(e,t){return e+t.colSpan}const D3=(e,t,n,r)=>{let a=0,o=e;const s=n.states.columns.value;if(r){const u=N3(r[e]);a=s.slice(0,s.indexOf(u[0])).reduce(DC,0),o=a+u.reduce(DC,0)-1}else a=e;let l;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":a>=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:o<n.states.fixedLeafColumnsLength.value?l="left":a>=s.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:a,after:o}:{}},h1=(e,t,n,r,a,o=0)=>{const s=[],{direction:l,start:u,after:c}=D3(t,n,r,a);if(l){const f=l==="left";s.push(`${e}-fixed-column--${l}`),f&&c+o===r.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!f&&u-o===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function FC(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const p1=(e,t,n,r)=>{const{direction:a,start:o=0,after:s=0}=D3(e,t,n,r);if(!a)return;const l={},u=a==="left",c=n.states.columns.value;return u?l.left=c.slice(0,o).reduce(FC,0):l.right=c.slice(s+1).reverse().reduce(FC,0),l},Sc=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function gie(e){const t=Gt(),n=ee(!1),r=ee([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=u.slice();else if(c){const f=Nl(r.value,c);r.value=u.reduce((d,p)=>{const g=ea(p,c);return f[g]&&d.push(p),d},[])}else r.value=[]},toggleRowExpansion:(u,c)=>{Xd(r.value,u,c)&&t.emit("expand-change",u,r.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],f=e.rowKey.value,d=Nl(c,f);r.value=u.reduce((p,g)=>{const y=d[g];return y&&p.push(y.row),p},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Nl(r.value,c)[ea(u,c)]:r.value.includes(u)},states:{expandRows:r,defaultExpandAll:n}}}function yie(e){const t=Gt(),n=ee(null),r=ee(null),a=c=>{t.store.assertRowKey(),n.value=c,s(c)},o=()=>{n.value=null},s=c=>{const{data:f,rowKey:d}=e;let p=null;d.value&&(p=(h(f)||[]).find(g=>ea(g,d.value)===c)),r.value=p,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:o,setCurrentRowByKey:s,updateCurrentRow:c=>{const f=r.value;if(c&&c!==f){r.value=c,t.emit("current-change",r.value,f);return}!c&&f&&(r.value=null,t.emit("current-change",null,f))},updateCurrentRowData:()=>{const c=e.rowKey.value,f=e.data.value||[],d=r.value;if(!f.includes(d)&&d){if(c){const p=ea(d,c);s(p)}else r.value=null;r.value===null&&t.emit("current-change",null,d)}else n.value&&(s(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}function bie(e){const t=ee([]),n=ee({}),r=ee(16),a=ee(!1),o=ee({}),s=ee("hasChildren"),l=ee("children"),u=Gt(),c=N(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return d(_)}),f=N(()=>{const _=e.rowKey.value,P=Object.keys(o.value),A={};return P.length&&P.forEach($=>{if(o.value[$].length){const k={children:[]};o.value[$].forEach(L=>{const B=ea(L,_);k.children.push(B),L[s.value]&&!A[B]&&(A[B]={children:[]})}),A[$]=k}}),A}),d=_=>{const P=e.rowKey.value,A={};return vie(_,($,k,L)=>{const B=ea($,P);Array.isArray(k)?A[B]={children:k.map(H=>ea(H,P)),level:L}:a.value&&(A[B]={children:[],lazy:!0,level:L})},l.value,s.value),A},p=(_=!1,P=(A=>(A=u.store)==null?void 0:A.states.defaultExpandAll.value)())=>{var A;const $=c.value,k=f.value,L=Object.keys($),B={};if(L.length){const H=h(n),G=[],j=(Q,ue)=>{if(_)return t.value?P||t.value.includes(ue):!!(P||Q!=null&&Q.expanded);{const se=P||t.value&&t.value.includes(ue);return!!(Q!=null&&Q.expanded||se)}};L.forEach(Q=>{const ue=H[Q],se={...$[Q]};if(se.expanded=j(ue,Q),se.lazy){const{loaded:ne=!1,loading:J=!1}=ue||{};se.loaded=!!ne,se.loading=!!J,G.push(Q)}B[Q]=se});const W=Object.keys(k);a.value&&W.length&&G.length&&W.forEach(Q=>{const ue=H[Q],se=k[Q].children;if(G.includes(Q)){if(B[Q].children.length!==0)throw new Error("[ElTable]children must be an empty array.");B[Q].children=se}else{const{loaded:ne=!1,loading:J=!1}=ue||{};B[Q]={lazy:!0,loaded:!!ne,loading:!!J,expanded:j(ue,Q),children:se,level:""}}})}n.value=B,(A=u.store)==null||A.updateTableScrollY()};We(()=>t.value,()=>{p(!0)}),We(()=>c.value,()=>{p()}),We(()=>f.value,()=>{p()});const g=_=>{t.value=_,p()},y=(_,P)=>{u.store.assertRowKey();const A=e.rowKey.value,$=ea(_,A),k=$&&n.value[$];if($&&k&&"expanded"in k){const L=k.expanded;P=typeof P>"u"?!k.expanded:P,n.value[$].expanded=P,L!==P&&u.emit("expand-change",_,P),u.store.updateTableScrollY()}},m=_=>{u.store.assertRowKey();const P=e.rowKey.value,A=ea(_,P),$=n.value[A];a.value&&$&&"loaded"in $&&!$.loaded?S(_,A,$):y(_,void 0)},S=(_,P,A)=>{const{load:$}=u.props;$&&!n.value[P].loaded&&(n.value[P].loading=!0,$(_,A,k=>{if(!Array.isArray(k))throw new TypeError("[ElTable] data must be an array");n.value[P].loading=!1,n.value[P].loaded=!0,n.value[P].expanded=!0,k.length&&(o.value[P]=k),u.emit("expand-change",_,!0)}))};return{loadData:S,loadOrToggle:m,toggleTreeExpansion:y,updateTreeExpandKeys:g,updateTreeData:p,normalize:d,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:o,lazyColumnIdentifier:s,childrenColumnName:l}}}const _ie=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:cie(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Xp=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Xp(n.children)):t.push(n)}),t};function wie(){var e;const t=Gt(),{size:n}=Wr((e=t.proxy)==null?void 0:e.$props),r=ee(null),a=ee([]),o=ee([]),s=ee(!1),l=ee([]),u=ee([]),c=ee([]),f=ee([]),d=ee([]),p=ee([]),g=ee([]),y=ee([]),m=[],S=ee(0),_=ee(0),P=ee(0),A=ee(!1),$=ee([]),k=ee(!1),L=ee(!1),B=ee(null),H=ee({}),G=ee(null),j=ee(null),W=ee(null),Q=ee(null),ue=ee(null);We(a,()=>t.state&&X(!1),{deep:!0});const se=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ne=gt=>{var ge;(ge=gt.children)==null||ge.forEach(Ne=>{Ne.fixed=gt.fixed,ne(Ne)})},J=()=>{l.value.forEach(Te=>{ne(Te)}),f.value=l.value.filter(Te=>Te.fixed===!0||Te.fixed==="left"),d.value=l.value.filter(Te=>Te.fixed==="right"),f.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&!l.value[0].fixed&&(l.value[0].fixed=!0,f.value.unshift(l.value[0]));const gt=l.value.filter(Te=>!Te.fixed);u.value=[].concat(f.value).concat(gt).concat(d.value);const ge=Xp(gt),Ne=Xp(f.value),$e=Xp(d.value);S.value=ge.length,_.value=Ne.length,P.value=$e.length,c.value=[].concat(Ne).concat(ge).concat($e),s.value=f.value.length>0||d.value.length>0},X=(gt,ge=!1)=>{gt&&J(),ge?t.state.doLayout():t.state.debouncedUpdateLayout()},te=gt=>$.value.includes(gt),Y=()=>{A.value=!1;const gt=$.value;$.value=[],gt.length&&t.emit("selection-change",[])},Z=()=>{let gt;if(r.value){gt=[];const ge=Nl($.value,r.value),Ne=Nl(a.value,r.value);for(const $e in ge)cn(ge,$e)&&!Ne[$e]&&gt.push(ge[$e].row)}else gt=$.value.filter(ge=>!a.value.includes(ge));if(gt.length){const ge=$.value.filter(Ne=>!gt.includes(Ne));$.value=ge,t.emit("selection-change",ge.slice())}},ae=()=>($.value||[]).slice(),ve=(gt,ge=void 0,Ne=!0)=>{if(Xd($.value,gt,ge)){const Te=($.value||[]).slice();Ne&&t.emit("select",Te,gt),t.emit("selection-change",Te)}},we=()=>{var gt,ge;const Ne=L.value?!A.value:!(A.value||$.value.length);A.value=Ne;let $e=!1,Te=0;const De=(ge=(gt=t==null?void 0:t.store)==null?void 0:gt.states)==null?void 0:ge.rowKey.value;a.value.forEach((it,Pe)=>{const rt=Pe+Te;B.value?B.value.call(null,it,rt)&&Xd($.value,it,Ne)&&($e=!0):Xd($.value,it,Ne)&&($e=!0),Te+=Ee(ea(it,De))}),$e&&t.emit("selection-change",$.value?$.value.slice():[]),t.emit("select-all",($.value||[]).slice())},Me=()=>{const gt=Nl($.value,r.value);a.value.forEach(ge=>{const Ne=ea(ge,r.value),$e=gt[Ne];$e&&($.value[$e.index]=ge)})},Ge=()=>{var gt,ge,Ne;if(((gt=a.value)==null?void 0:gt.length)===0){A.value=!1;return}let $e;r.value&&($e=Nl($.value,r.value));const Te=function(rt){return $e?!!$e[ea(rt,r.value)]:$.value.includes(rt)};let De=!0,it=0,Pe=0;for(let rt=0,kt=(a.value||[]).length;rt<kt;rt++){const Jt=(Ne=(ge=t==null?void 0:t.store)==null?void 0:ge.states)==null?void 0:Ne.rowKey.value,tn=rt+Pe,Wt=a.value[rt],yt=B.value&&B.value.call(null,Wt,tn);if(Te(Wt))it++;else if(!B.value||yt){De=!1;break}Pe+=Ee(ea(Wt,Jt))}it===0&&(De=!1),A.value=De},Ee=gt=>{var ge;if(!t||!t.store)return 0;const{treeData:Ne}=t.store.states;let $e=0;const Te=(ge=Ne.value[gt])==null?void 0:ge.children;return Te&&($e+=Te.length,Te.forEach(De=>{$e+=Ee(De)})),$e},pe=(gt,ge)=>{Array.isArray(gt)||(gt=[gt]);const Ne={};return gt.forEach($e=>{H.value[$e.id]=ge,Ne[$e.columnKey||$e.id]=ge}),Ne},_e=(gt,ge,Ne)=>{j.value&&j.value!==gt&&(j.value.order=null),j.value=gt,W.value=ge,Q.value=Ne},He=()=>{let gt=h(o);Object.keys(H.value).forEach(ge=>{const Ne=H.value[ge];if(!Ne||Ne.length===0)return;const $e=k3({columns:c.value},ge);$e&&$e.filterMethod&&(gt=gt.filter(Te=>Ne.some(De=>$e.filterMethod.call(null,De,Te,$e))))}),G.value=gt},Ae=()=>{a.value=_ie(G.value,{sortingColumn:j.value,sortProp:W.value,sortOrder:Q.value})},ke=(gt=void 0)=>{gt&&gt.filter||He(),Ae()},ze=gt=>{const{tableHeaderRef:ge}=t.refs;if(!ge)return;const Ne=Object.assign({},ge.filterPanels),$e=Object.keys(Ne);if($e.length)if(typeof gt=="string"&&(gt=[gt]),Array.isArray(gt)){const Te=gt.map(De=>die({columns:c.value},De));$e.forEach(De=>{const it=Te.find(Pe=>Pe.id===De);it&&(it.filteredValue=[])}),t.store.commit("filterChange",{column:Te,values:[],silent:!0,multi:!0})}else $e.forEach(Te=>{const De=c.value.find(it=>it.id===Te);De&&(De.filteredValue=[])}),H.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ce=()=>{j.value&&(_e(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:me,toggleRowExpansion:Be,updateExpandRows:be,states:Oe,isRowExpanded:Ye}=gie({data:a,rowKey:r}),{updateTreeExpandKeys:qe,toggleTreeExpansion:Qe,updateTreeData:et,loadOrToggle:je,states:lt}=bie({data:a,rowKey:r}),{updateCurrentRowData:ut,updateCurrentRow:Ke,setCurrentRowKey:ct,states:Et}=yie({data:a,rowKey:r});return{assertRowKey:se,updateColumns:J,scheduleLayout:X,isSelected:te,clearSelection:Y,cleanSelection:Z,getSelectionRows:ae,toggleRowSelection:ve,_toggleAllSelection:we,toggleAllSelection:null,updateSelectionByRowKey:Me,updateAllSelected:Ge,updateFilters:pe,updateCurrentRow:Ke,updateSort:_e,execFilter:He,execSort:Ae,execQuery:ke,clearFilter:ze,clearSort:ce,toggleRowExpansion:Be,setExpandRowKeysAdapter:gt=>{me(gt),qe(gt)},setCurrentRowKey:ct,toggleRowExpansionAdapter:(gt,ge)=>{c.value.some(({type:$e})=>$e==="expand")?Be(gt,ge):Qe(gt,ge)},isRowExpanded:Ye,updateExpandRows:be,updateCurrentRowData:ut,loadOrToggle:je,updateTreeData:et,states:{tableSize:n,rowKey:r,data:a,_data:o,isComplex:s,_columns:l,originColumns:u,columns:c,fixedColumns:f,rightFixedColumns:d,leafColumns:p,fixedLeafColumns:g,rightFixedLeafColumns:y,updateOrderFns:m,leafColumnsLength:S,fixedLeafColumnsLength:_,rightFixedLeafColumnsLength:P,isAllSelected:A,selection:$,reserveSelection:k,selectOnIndeterminate:L,selectable:B,filters:H,filteredData:G,sortingColumn:j,sortProp:W,sortOrder:Q,hoverRow:ue,...Oe,...lt,...Et}}}function J2(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=J2(n.children,t)),n)})}function q2(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&q2(t.children)}),e.sort((t,n)=>t.no-n.no)}function Sie(){const e=Gt(),t=wie();return{ns:Je("table"),...t,mutations:{setData(s,l){const u=h(s._data)!==l;s.data.value=l,s._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),h(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,l,u,c){const f=h(s._columns);let d=[];u?(u&&!u.children&&(u.children=[]),u.children.push(l),d=J2(f,u)):(f.push(l),d=f),q2(d),s._columns.value=d,s.updateOrderFns.push(c),l.type==="selection"&&(s.selectable.value=l.selectable,s.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,l){var u;((u=l.getColumnIndex)==null?void 0:u.call(l))!==l.no&&(q2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,l,u,c){const f=h(s._columns)||[];if(u)u.children.splice(u.children.findIndex(p=>p.id===l.id),1),bt(()=>{var p;((p=u.children)==null?void 0:p.length)===0&&delete u.children}),s._columns.value=J2(f,u);else{const p=f.indexOf(l);p>-1&&(f.splice(p,1),s._columns.value=f)}const d=s.updateOrderFns.indexOf(c);d>-1&&s.updateOrderFns.splice(d,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,l){const{prop:u,order:c,init:f}=l;if(u){const d=h(s.columns).find(p=>p.property===u);d&&(d.order=c,e.store.updateSort(d,u,c),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,l){const{sortingColumn:u,sortProp:c,sortOrder:f}=s,d=h(u),p=h(c),g=h(f);g===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const y={filter:!0};e.store.execQuery(y),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:d,prop:p,order:g}),e.store.updateTableScrollY()},filterChange(s,l){const{column:u,values:c,silent:f}=l,d=e.store.updateFilters(u,c);e.store.execQuery(),f||e.emit("filter-change",d),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(s,l){s.hoverRow.value=l},setCurrentRow(s,l){e.store.updateCurrentRow(l)}},commit:function(s,...l){const u=e.store.mutations;if(u[s])u[s].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){bt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Yd={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"}};function Tie(e,t){if(!e)throw new Error("Table is required.");const n=Sie();return n.toggleAllSelection=Ha(n._toggleAllSelection,10),Object.keys(Yd).forEach(r=>{F3(B3(t,r),r,n)}),Eie(n,t),n}function Eie(e,t){Object.keys(Yd).forEach(n=>{We(()=>B3(t,n),r=>{F3(r,n,e)})})}function F3(e,t,n){let r=e,a=Yd[t];typeof Yd[t]=="object"&&(a=a.key,r=r||Yd[t].default),n.states[a].value=r}function B3(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(a=>{r=r[a]}),r}else return e[t]}class Cie{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ee(null),this.scrollX=ee(!1),this.scrollY=ee(!1),this.bodyWidth=ee(null),this.fixedWidth=ee(null),this.rightFixedWidth=ee(null),this.gutterWidth=0;for(const n in t)cn(t,n)&&(Un(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!ln)return;const r=this.table.vnode.el;if(t=hie(t),this.height.value=Number(t),!r&&(t||t===0))return bt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!ln)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),o=a.filter(u=>typeof u.width!="number");if(a.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),o.length>0&&t){if(a.forEach(u=>{r+=Number(u.width||u.minWidth||80)}),r<=n){this.scrollX.value=!1;const u=n-r;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=o.reduce((p,g)=>p+Number(g.minWidth||80),0),f=u/c;let d=0;o.forEach((p,g)=>{if(g===0)return;const y=Math.floor(Number(p.minWidth||80)*f);d+=y,p.realWidth=Number(p.minWidth||80)+y}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),r+=u.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const s=this.store.states.fixedColumns.value;if(s.length>0){let u=0;s.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const l=this.store.states.rightFixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,o;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(o=r.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:xie}=So,Iie=he({name:"ElTableFilterPanel",components:{ElCheckbox:So,ElCheckboxGroup:xie,ElScrollbar:ts,ElTooltip:fa,ElIcon:ht,ArrowDown:Zi,ArrowUp:h_},directives:{ClickOutside:Ki},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Gt(),{t:n}=hn(),r=Je("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const o=ee(!1),s=ee(null),l=N(()=>e.column&&e.column.filters),u=N(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),c=N({get:()=>{var k;return(((k=e.column)==null?void 0:k.filteredValue)||[])[0]},set:k=>{f.value&&(typeof k<"u"&&k!==null?f.value.splice(0,1,k):f.value.splice(0,1))}}),f=N({get(){return e.column?e.column.filteredValue||[]:[]},set(k){e.column&&e.upDataColumn("filteredValue",k)}}),d=N(()=>e.column?e.column.filterMultiple:!0),p=k=>k.value===c.value,g=()=>{o.value=!1},y=k=>{k.stopPropagation(),o.value=!o.value},m=()=>{o.value=!1},S=()=>{A(f.value),g()},_=()=>{f.value=[],A(f.value),g()},P=k=>{c.value=k,A(typeof k<"u"&&k!==null?f.value:[]),g()},A=k=>{e.store.commit("filterChange",{column:e.column,values:k}),e.store.updateAllSelected()};We(o,k=>{e.column&&e.upDataColumn("filterOpened",k)},{immediate:!0});const $=N(()=>{var k,L;return(L=(k=s.value)==null?void 0:k.popperRef)==null?void 0:L.contentRef});return{tooltipVisible:o,multiple:d,filterClassName:u,filteredValue:f,filterValue:c,filters:l,handleConfirm:S,handleReset:_,handleSelect:P,isActive:p,t:n,ns:r,showFilterPanel:y,hideFilterPanel:m,popperPaneRef:$,tooltip:s}}}),Aie={key:0},Pie=["disabled"],Mie=["label","onClick"];function Oie(e,t,n,r,a,o){const s=Xt("el-checkbox"),l=Xt("el-checkbox-group"),u=Xt("el-scrollbar"),c=Xt("arrow-up"),f=Xt("arrow-down"),d=Xt("el-icon"),p=Xt("el-tooltip"),g=lv("click-outside");return V(),Fe(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:""},{content:Ce(()=>[e.multiple?(V(),ie("div",Aie,[de("div",{class:K(e.ns.e("content"))},[ye(u,{"wrap-class":e.ns.e("wrap")},{default:Ce(()=>[ye(l,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filteredValue=y),class:K(e.ns.e("checkbox-group"))},{default:Ce(()=>[(V(!0),ie(mt,null,sn(e.filters,y=>(V(),Fe(s,{key:y.value,value:y.value},{default:Ce(()=>[dn(ot(y.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),de("div",{class:K(e.ns.e("bottom"))},[de("button",{class:K({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...y)=>e.handleConfirm&&e.handleConfirm(...y))},ot(e.t("el.table.confirmFilter")),11,Pie),de("button",{type:"button",onClick:t[2]||(t[2]=(...y)=>e.handleReset&&e.handleReset(...y))},ot(e.t("el.table.resetFilter")),1)],2)])):(V(),ie("ul",{key:1,class:K(e.ns.e("list"))},[de("li",{class:K([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=y=>e.handleSelect(null))},ot(e.t("el.table.clearFilter")),3),(V(!0),ie(mt,null,sn(e.filters,y=>(V(),ie("li",{key:y.value,class:K([e.ns.e("list-item"),e.ns.is("active",e.isActive(y))]),label:y.value,onClick:m=>e.handleSelect(y.value)},ot(y.text),11,Mie))),128))],2))]),default:Ce(()=>[Lt((V(),ie("span",{class:K([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...y)=>e.showFilterPanel&&e.showFilterPanel(...y))},[ye(d,null,{default:Ce(()=>[e.column.filterOpened?(V(),Fe(c,{key:0})):(V(),Fe(f,{key:1}))]),_:1})],2)),[[g,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var $ie=at(Iie,[["render",Oie],["__file","filter-panel.vue"]]);function H3(e){const t=Gt();dv(()=>{n.value.addObserver(t)}),Ht(()=>{r(n.value),a(n.value)}),Ji(()=>{r(n.value),a(n.value)}),Zs(()=>{n.value.removeObserver(t)});const n=N(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),r=o=>{var s;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const u=o.getFlattenColumns(),c={};u.forEach(f=>{c[f.id]=f});for(let f=0,d=l.length;f<d;f++){const p=l[f],g=p.getAttribute("name"),y=c[g];y&&p.setAttribute("width",y.realWidth||y.width)}},a=o=>{var s,l;const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let f=0,d=u.length;f<d;f++)u[f].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const c=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let f=0,d=c.length;f<d;f++){const p=c[f];p.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",p.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Ti=Symbol("ElTable");function Rie(e,t){const n=Gt(),r=dt(Ti),a=m=>{m.stopPropagation()},o=(m,S)=>{!S.filters&&S.sortable?y(m,S,!1):S.filterable&&!S.sortable&&a(m),r==null||r.emit("header-click",S,m)},s=(m,S)=>{r==null||r.emit("header-contextmenu",S,m)},l=ee(null),u=ee(!1),c=ee({}),f=(m,S)=>{if(ln&&!(S.children&&S.children.length>0)&&l.value&&e.border){u.value=!0;const _=r;t("set-drag-visible",!0);const A=(_==null?void 0:_.vnode.el).getBoundingClientRect().left,$=n.vnode.el.querySelector(`th.${S.id}`),k=$.getBoundingClientRect(),L=k.left-A+30;lo($,"noclick"),c.value={startMouseLeft:m.clientX,startLeft:k.right-A,startColumnLeft:k.left-A,tableLeft:A};const B=_==null?void 0:_.refs.resizeProxy;B.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const H=j=>{const W=j.clientX-c.value.startMouseLeft,Q=c.value.startLeft+W;B.style.left=`${Math.max(L,Q)}px`},G=()=>{if(u.value){const{startColumnLeft:j,startLeft:W}=c.value,ue=Number.parseInt(B.style.left,10)-j;S.width=S.realWidth=ue,_==null||_.emit("header-dragend",S.width,W-j,S,m),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,l.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",G),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{da($,"noclick")},0)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",G)}},d=(m,S)=>{if(S.children&&S.children.length>0)return;const _=m.target;if(!bo(_))return;const P=_==null?void 0:_.closest("th");if(!(!S||!S.resizable)&&!u.value&&e.border){const A=P.getBoundingClientRect(),$=document.body.style;A.width>12&&A.right-m.pageX<8?($.cursor="col-resize",vo(P,"is-sortable")&&(P.style.cursor="col-resize"),l.value=S):u.value||($.cursor="",vo(P,"is-sortable")&&(P.style.cursor="pointer"),l.value=null)}},p=()=>{ln&&(document.body.style.cursor="")},g=({order:m,sortOrders:S})=>{if(m==="")return S[0];const _=S.indexOf(m||null);return S[_>S.length-2?0:_+1]},y=(m,S,_)=>{var P;m.stopPropagation();const A=S.order===_?null:_||g(S),$=(P=m.target)==null?void 0:P.closest("th");if($&&vo($,"noclick")){da($,"noclick");return}if(!S.sortable)return;const k=e.store.states;let L=k.sortProp.value,B;const H=k.sortingColumn.value;(H!==S||H===S&&H.order===null)&&(H&&(H.order=null),k.sortingColumn.value=S,L=S.property),A?B=S.order=A:B=S.order=null,k.sortProp.value=L,k.sortOrder.value=B,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:s,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:y,handleFilterClick:a}}function kie(e){const t=dt(Ti),n=Je("table");return{getHeaderRowStyle:l=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:l}):u},getHeaderRowClass:l=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:l})),u.join(" ")},getHeaderCellStyle:(l,u,c,f)=>{var d;let p=(d=t==null?void 0:t.props.headerCellStyle)!=null?d:{};typeof p=="function"&&(p=p.call(null,{rowIndex:l,columnIndex:u,row:c,column:f}));const g=p1(u,f.fixed,e.store,c);return Sc(g,"left"),Sc(g,"right"),Object.assign({},p,g)},getHeaderCellClass:(l,u,c,f)=>{const d=h1(n.b(),u,f.fixed,e.store,c),p=[f.id,f.order,f.headerAlign,f.className,f.labelClassName,...d];f.children||p.push("is-leaf"),f.sortable&&p.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:l,columnIndex:u,row:c,column:f})),p.push(n.e("cell")),p.filter(y=>!!y).join(" ")}}}const U3=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,U3(n.children))):t.push(n)}),t},Lie=e=>{let t=1;const n=(o,s)=>{if(s&&(o.level=s.level+1,t<o.level&&(t=o.level)),o.children){let l=0;o.children.forEach(u=>{n(u,o),l+=u.colSpan}),o.colSpan=l}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const r=[];for(let o=0;o<t;o++)r.push([]);return U3(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(s=>s.isSubColumn=!0)):o.rowSpan=t-o.level+1,r[o.level-1].push(o)}),r};function Nie(e){const t=dt(Ti),n=N(()=>Lie(e.store.states.originColumns.value));return{isGroup:N(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Die=he({name:"ElTableHeader",components:{ElCheckbox:So},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Gt(),r=dt(Ti),a=Je("table"),o=ee({}),{onColumnsChange:s,onScrollableChange:l}=H3(r);Ht(async()=>{await bt(),await bt();const{prop:L,order:B}=e.defaultSort;r==null||r.store.commit("sort",{prop:L,order:B,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:g,handleFilterClick:y}=Rie(e,t),{getHeaderRowStyle:m,getHeaderRowClass:S,getHeaderCellStyle:_,getHeaderCellClass:P}=kie(e),{isGroup:A,toggleAllSelection:$,columnRows:k}=Nie(e);return n.state={onColumnsChange:s,onScrollableChange:l},n.filterPanels=o,{ns:a,filterPanels:o,onColumnsChange:s,onScrollableChange:l,columnRows:k,getHeaderRowClass:S,getHeaderRowStyle:m,getHeaderCellClass:P,getHeaderCellStyle:_,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:f,handleMouseMove:d,handleMouseOut:p,handleSortClick:g,handleFilterClick:y,isGroup:A,toggleAllSelection:$}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:o,getHeaderRowStyle:s,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleSortClick:d,handleMouseOut:p,store:g,$parent:y}=this;let m=1;return _t("thead",{class:{[e.is("group")]:t}},n.map((S,_)=>_t("tr",{class:o(_),key:_,style:s(_)},S.map((P,A)=>(P.rowSpan>m&&(m=P.rowSpan),_t("th",{class:a(_,A,S,P),colspan:P.colSpan,key:`${P.id}-thead`,rowspan:P.rowSpan,style:r(_,A,S,P),onClick:$=>l($,P),onContextmenu:$=>u($,P),onMousedown:$=>c($,P),onMousemove:$=>f($,P),onMouseout:p},[_t("div",{class:["cell",P.filteredValue&&P.filteredValue.length>0?"highlight":""]},[P.renderHeader?P.renderHeader({column:P,$index:A,store:g,_self:y}):P.label,P.sortable&&_t("span",{onClick:$=>d($,P),class:"caret-wrapper"},[_t("i",{onClick:$=>d($,P,"ascending"),class:"sort-caret ascending"}),_t("i",{onClick:$=>d($,P,"descending"),class:"sort-caret descending"})]),P.filterable&&_t($ie,{store:g,placement:P.filterPlacement||"bottom-start",column:P,upDataColumn:($,k)=>{P[$]=k}})])]))))))}});function Fie(e){const t=dt(Ti),n=ee(""),r=ee(_t("div")),a=(y,m,S)=>{var _;const P=t,A=jm(y);let $;const k=(_=P==null?void 0:P.vnode.el)==null?void 0:_.dataset.prefix;A&&($=NC({columns:e.store.states.columns.value},A,k),$&&(P==null||P.emit(`cell-${S}`,m,$,A,y))),P==null||P.emit(`row-${S}`,m,$,y)},o=(y,m)=>{a(y,m,"dblclick")},s=(y,m)=>{e.store.commit("setCurrentRow",m),a(y,m,"click")},l=(y,m)=>{a(y,m,"contextmenu")},u=Ha(y=>{e.store.commit("setHoverRow",y)},30),c=Ha(()=>{e.store.commit("setHoverRow",null)},30),f=y=>{const m=window.getComputedStyle(y,null),S=Number.parseInt(m.paddingLeft,10)||0,_=Number.parseInt(m.paddingRight,10)||0,P=Number.parseInt(m.paddingTop,10)||0,A=Number.parseInt(m.paddingBottom,10)||0;return{left:S,right:_,top:P,bottom:A}},d=(y,m,S)=>{let _=m.target.parentNode;for(;y>1&&(_=_==null?void 0:_.nextSibling,!(!_||_.nodeName!=="TR"));)S(_,"hover-row hover-fixed-row"),y--};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(y,m,S)=>{var _;const P=t,A=jm(y),$=(_=P==null?void 0:P.vnode.el)==null?void 0:_.dataset.prefix;if(A){const Y=NC({columns:e.store.states.columns.value},A,$);A.rowSpan>1&&d(A.rowSpan,y,lo);const Z=P.hoverState={cell:A,column:Y,row:m};P==null||P.emit("cell-mouse-enter",Z.row,Z.column,Z.cell,y)}if(!S)return;const k=y.target.querySelector(".cell");if(!(vo(k,`${$}-tooltip`)&&k.childNodes.length))return;const L=document.createRange();L.setStart(k,0),L.setEnd(k,k.childNodes.length);let B=L.getBoundingClientRect().width,H=L.getBoundingClientRect().height;const G=B-Math.floor(B),{width:j,height:W}=k.getBoundingClientRect();G<.001&&(B=Math.floor(B)),H-Math.floor(H)<.001&&(H=Math.floor(H));const{top:ue,left:se,right:ne,bottom:J}=f(k),X=se+ne,te=ue+J;(B+X>j||H+te>W||k.scrollWidth>j)&&mie(S,A.innerText||A.textContent,A,P)},handleCellMouseLeave:y=>{const m=jm(y);if(!m)return;m.rowSpan>1&&d(m.rowSpan,y,da);const S=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",S==null?void 0:S.row,S==null?void 0:S.column,S==null?void 0:S.cell,y)},tooltipContent:n,tooltipTrigger:r}}function Bie(e){const t=dt(Ti),n=Je("table");return{getRowStyle:(c,f)=>{const d=t==null?void 0:t.props.rowStyle;return typeof d=="function"?d.call(null,{row:c,rowIndex:f}):d||null},getRowClass:(c,f)=>{const d=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&d.push("current-row"),e.stripe&&f%2===1&&d.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return typeof p=="string"?d.push(p):typeof p=="function"&&d.push(p.call(null,{row:c,rowIndex:f})),d},getCellStyle:(c,f,d,p)=>{const g=t==null?void 0:t.props.cellStyle;let y=g??{};typeof g=="function"&&(y=g.call(null,{rowIndex:c,columnIndex:f,row:d,column:p}));const m=p1(f,e==null?void 0:e.fixed,e.store);return Sc(m,"left"),Sc(m,"right"),Object.assign({},y,m)},getCellClass:(c,f,d,p,g)=>{const y=h1(n.b(),f,e==null?void 0:e.fixed,e.store,void 0,g),m=[p.id,p.align,p.className,...y],S=t==null?void 0:t.props.cellClassName;return typeof S=="string"?m.push(S):typeof S=="function"&&m.push(S.call(null,{rowIndex:c,columnIndex:f,row:d,column:p})),m.push(n.e("cell")),m.filter(_=>!!_).join(" ")},getSpan:(c,f,d,p)=>{let g=1,y=1;const m=t==null?void 0:t.props.spanMethod;if(typeof m=="function"){const S=m({row:c,column:f,rowIndex:d,columnIndex:p});Array.isArray(S)?(g=S[0],y=S[1]):typeof S=="object"&&(g=S.rowspan,y=S.colspan)}return{rowspan:g,colspan:y}},getColspanRealWidth:(c,f,d)=>{if(f<1)return c[d].realWidth;const p=c.map(({realWidth:g,width:y})=>g||y).slice(d,d+f);return Number(p.reduce((g,y)=>Number(g)+Number(y),-1))}}}function Hie(e){const t=dt(Ti),n=Je("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:o,handleMouseEnter:s,handleMouseLeave:l,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:f,tooltipTrigger:d}=Fie(e),{getRowStyle:p,getRowClass:g,getCellStyle:y,getCellClass:m,getSpan:S,getColspanRealWidth:_}=Bie(e),P=N(()=>e.store.states.columns.value.findIndex(({type:B})=>B==="default")),A=(B,H)=>{const G=t.props.rowKey;return G?ea(B,G):H},$=(B,H,G,j=!1)=>{const{tooltipEffect:W,tooltipOptions:Q,store:ue}=e,{indent:se,columns:ne}=ue.states,J=g(B,H);let X=!0;return G&&(J.push(n.em("row",`level-${G.level}`)),X=G.display),_t("tr",{style:[X?null:{display:"none"},p(B,H)],class:J,key:A(B,H),onDblclick:Y=>r(Y,B),onClick:Y=>a(Y,B),onContextmenu:Y=>o(Y,B),onMouseenter:()=>s(H),onMouseleave:l},ne.value.map((Y,Z)=>{const{rowspan:ae,colspan:ve}=S(B,Y,H,Z);if(!ae||!ve)return null;const we=Object.assign({},Y);we.realWidth=_(ne.value,ve,Z);const Me={store:e.store,_self:e.context||t,column:we,row:B,$index:H,cellIndex:Z,expanded:j};Z===P.value&&G&&(Me.treeNode={indent:G.level*se.value,level:G.level},typeof G.expanded=="boolean"&&(Me.treeNode.expanded=G.expanded,"loading"in G&&(Me.treeNode.loading=G.loading),"noLazyChildren"in G&&(Me.treeNode.noLazyChildren=G.noLazyChildren)));const Ge=`${A(B,H)},${Z}`,Ee=we.columnKey||we.rawColumnKey||"",pe=k(Z,Y,Me),_e=Y.showOverflowTooltip&&k9({effect:W},Q,Y.showOverflowTooltip);return _t("td",{style:y(H,Z,B,Y),class:m(H,Z,B,Y,ve-1),key:`${Ee}${Ge}`,rowspan:ae,colspan:ve,onMouseenter:He=>u(He,B,_e),onMouseleave:c},[pe])}))},k=(B,H,G)=>H.renderCell(G);return{wrappedRowRender:(B,H)=>{const G=e.store,{isRowExpanded:j,assertRowKey:W}=G,{treeData:Q,lazyTreeNodeMap:ue,childrenColumnName:se,rowKey:ne}=G.states,J=G.states.columns.value;if(J.some(({type:te})=>te==="expand")){const te=j(B),Y=$(B,H,void 0,te),Z=t.renderExpanded;return te?Z?[[Y,_t("tr",{key:`expanded-row__${Y.key}`},[_t("td",{colspan:J.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[Z({row:B,$index:H,store:G,expanded:te})])])]]:(console.error("[Element Error]renderExpanded is required."),Y):[[Y]]}else if(Object.keys(Q.value).length){W();const te=ea(B,ne.value);let Y=Q.value[te],Z=null;Y&&(Z={expanded:Y.expanded,level:Y.level,display:!0},typeof Y.lazy=="boolean"&&(typeof Y.loaded=="boolean"&&Y.loaded&&(Z.noLazyChildren=!(Y.children&&Y.children.length)),Z.loading=Y.loading));const ae=[$(B,H,Z)];if(Y){let ve=0;const we=(Ge,Ee)=>{Ge&&Ge.length&&Ee&&Ge.forEach(pe=>{const _e={display:Ee.display&&Ee.expanded,level:Ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},He=ea(pe,ne.value);if(He==null)throw new Error("For nested data item, row-key is required.");if(Y={...Q.value[He]},Y&&(_e.expanded=Y.expanded,Y.level=Y.level||_e.level,Y.display=!!(Y.expanded&&_e.display),typeof Y.lazy=="boolean"&&(typeof Y.loaded=="boolean"&&Y.loaded&&(_e.noLazyChildren=!(Y.children&&Y.children.length)),_e.loading=Y.loading)),ve++,ae.push($(pe,H+ve,_e)),Y){const Ae=ue.value[He]||pe[se.value];we(Ae,Y)}})};Y.display=!0;const Me=ue.value[te]||B[se.value];we(Me,Y)}return ae}else return $(B,H,void 0)},tooltipContent:f,tooltipTrigger:d}}const Uie={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Vie=he({name:"ElTableBody",props:Uie,setup(e){const t=Gt(),n=dt(Ti),r=Je("table"),{wrappedRowRender:a,tooltipContent:o,tooltipTrigger:s}=Hie(e),{onColumnsChange:l,onScrollableChange:u}=H3(n),c=[];return We(e.store.states.hoverRow,(f,d)=>{var p;const g=t==null?void 0:t.vnode.el,y=Array.from((g==null?void 0:g.children)||[]).filter(_=>_==null?void 0:_.classList.contains(`${r.e("row")}`));let m=f;const S=(p=y[m])==null?void 0:p.childNodes;if(S!=null&&S.length){let _=0;Array.from(S).reduce((A,$,k)=>{var L,B;return((L=S[k])==null?void 0:L.colSpan)>1&&(_=(B=S[k])==null?void 0:B.colSpan),$.nodeName!=="TD"&&_===0&&A.push(k),_>0&&_--,A},[]).forEach(A=>{var $;for(m=f;m>0;){const k=($=y[m-1])==null?void 0:$.childNodes;if(k[A]&&k[A].nodeName==="TD"&&k[A].rowSpan>1){lo(k[A],"hover-cell"),c.push(k[A]);break}m--}})}else c.forEach(_=>da(_,"hover-cell")),c.length=0;!e.store.states.isComplex.value||!ln||Us(()=>{const _=y[d],P=y[f];_&&!_.classList.contains("hover-fixed-row")&&da(_,"hover-row"),P&&lo(P,"hover-row")})}),Zs(()=>{var f;(f=eo)==null||f()}),{ns:r,onColumnsChange:l,onScrollableChange:u,wrappedRowRender:a,tooltipContent:o,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return _t("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function Gie(){const e=dt(Ti),t=e==null?void 0:e.store,n=N(()=>t.states.fixedLeafColumnsLength.value),r=N(()=>t.states.rightFixedColumns.value.length),a=N(()=>t.states.columns.value.length),o=N(()=>t.states.fixedColumns.value.length),s=N(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:o,rightFixedCount:s,columns:t.states.columns}}function jie(e){const{columns:t}=Gie(),n=Je("table");return{getCellClasses:(o,s)=>{const l=o[s],u=[n.e("cell"),l.id,l.align,l.labelClassName,...h1(n.b(),s,l.fixed,e.store)];return l.className&&u.push(l.className),l.children||u.push(n.is("leaf")),u},getCellStyles:(o,s)=>{const l=p1(s,o.fixed,e.store);return Sc(l,"left"),Sc(l,"right"),l},columns:t}}var zie=he({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=jie(e);return{ns:Je("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(g=>Number(g[l.property])),f=[];let d=!0;c.forEach(g=>{if(!Number.isNaN(+g)){d=!1;const y=`${g}`.split(".")[1];f.push(y?y.length:0)}});const p=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((g,y)=>{const m=Number(y);return Number.isNaN(+m)?g:Number.parseFloat((g+y).toFixed(Math.min(p,20)))},0)}),_t(_t("tfoot",[_t("tr",{},[...e.map((l,u)=>_t("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[_t("div",{class:["cell",l.labelClassName]},[s[u]])]))])]))}});function Kie(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,d)=>{e.toggleRowSelection(f,d,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,d)=>{e.toggleRowExpansionAdapter(f,d)},clearSort:()=>{e.clearSort()},sort:(f,d)=>{e.commit("sort",{prop:f,order:d})}}}function Wie(e,t,n,r){const a=ee(!1),o=ee(null),s=ee(!1),l=Y=>{s.value=Y},u=ee({width:null,height:null,headerHeight:null}),c=ee(!1),f={display:"inline-block",verticalAlign:"middle"},d=ee(),p=ee(0),g=ee(0),y=ee(0),m=ee(0),S=ee(0);ta(()=>{t.setHeight(e.height)}),ta(()=>{t.setMaxHeight(e.maxHeight)}),We(()=>[e.currentRowKey,n.states.rowKey],([Y,Z])=>{!h(Z)||!h(Y)||n.setCurrentRowKey(`${Y}`)},{immediate:!0}),We(()=>e.data,Y=>{r.store.commit("setData",Y)},{immediate:!0,deep:!0}),ta(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const _=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},P=(Y,Z)=>{const{pixelX:ae,pixelY:ve}=Z;Math.abs(ae)>=Math.abs(ve)&&(r.refs.bodyWrapper.scrollLeft+=Z.pixelX/5)},A=N(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),$=N(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),k=()=>{A.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(G)};Ht(async()=>{await bt(),n.updateColumns(),j(),requestAnimationFrame(k);const Y=r.vnode.el,Z=r.refs.headerWrapper;e.flexible&&Y&&Y.parentElement&&(Y.parentElement.style.minWidth="0"),u.value={width:d.value=Y.offsetWidth,height:Y.offsetHeight,headerHeight:e.showHeader&&Z?Z.offsetHeight:null},n.states.columns.value.forEach(ae=>{ae.filteredValue&&ae.filteredValue.length&&r.store.commit("filterChange",{column:ae,values:ae.filteredValue,silent:!0})}),r.$ready=!0});const L=(Y,Z)=>{if(!Y)return;const ae=Array.from(Y.classList).filter(ve=>!ve.startsWith("is-scrolling-"));ae.push(t.scrollX.value?Z:"is-scrolling-none"),Y.className=ae.join(" ")},B=Y=>{const{tableWrapper:Z}=r.refs;L(Z,Y)},H=Y=>{const{tableWrapper:Z}=r.refs;return!!(Z&&Z.classList.contains(Y))},G=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Ee="is-scrolling-none";H(Ee)||B(Ee);return}const Y=r.refs.scrollBarRef.wrapRef;if(!Y)return;const{scrollLeft:Z,offsetWidth:ae,scrollWidth:ve}=Y,{headerWrapper:we,footerWrapper:Me}=r.refs;we&&(we.scrollLeft=Z),Me&&(Me.scrollLeft=Z);const Ge=ve-ae-1;Z>=Ge?B("is-scrolling-right"):B(Z===0?"is-scrolling-left":"is-scrolling-middle")},j=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Bn(r.refs.scrollBarRef.wrapRef,"scroll",G,{passive:!0}),e.fit?Wn(r.vnode.el,W):Bn(window,"resize",W),Wn(r.refs.bodyWrapper,()=>{var Y,Z;W(),(Z=(Y=r.refs)==null?void 0:Y.scrollBarRef)==null||Z.update()}))},W=()=>{var Y,Z,ae,ve;const we=r.vnode.el;if(!r.$ready||!we)return;let Me=!1;const{width:Ge,height:Ee,headerHeight:pe}=u.value,_e=d.value=we.offsetWidth;Ge!==_e&&(Me=!0);const He=we.offsetHeight;(e.height||A.value)&&Ee!==He&&(Me=!0);const Ae=e.tableLayout==="fixed"?r.refs.headerWrapper:(Y=r.refs.tableHeaderRef)==null?void 0:Y.$el;e.showHeader&&(Ae==null?void 0:Ae.offsetHeight)!==pe&&(Me=!0),p.value=((Z=r.refs.tableWrapper)==null?void 0:Z.scrollHeight)||0,y.value=(Ae==null?void 0:Ae.scrollHeight)||0,m.value=((ae=r.refs.footerWrapper)==null?void 0:ae.offsetHeight)||0,S.value=((ve=r.refs.appendWrapper)==null?void 0:ve.offsetHeight)||0,g.value=p.value-y.value-m.value-S.value,Me&&(u.value={width:_e,height:He,headerHeight:e.showHeader&&(Ae==null?void 0:Ae.offsetHeight)||0},k())},Q=yr(),ue=N(()=>{const{bodyWidth:Y,scrollY:Z,gutterWidth:ae}=t;return Y.value?`${Y.value-(Z.value?ae:0)}px`:""}),se=N(()=>e.maxHeight?"fixed":e.tableLayout),ne=N(()=>{if(e.data&&e.data.length)return null;let Y="100%";e.height&&g.value&&(Y=`${g.value}px`);const Z=d.value;return{width:Z?`${Z}px`:"",height:Y}}),J=N(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),X=N(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${y.value+m.value}px)`}:{maxHeight:`${e.maxHeight-y.value-m.value}px`}:{});return{isHidden:a,renderExpanded:o,setDragVisible:l,isGroup:c,handleMouseLeave:_,handleHeaderFooterMousewheel:P,tableSize:Q,emptyBlockStyle:ne,handleFixedMousewheel:(Y,Z)=>{const ae=r.refs.bodyWrapper;if(Math.abs(Z.spinY)>0){const ve=ae.scrollTop;Z.pixelY<0&&ve!==0&&Y.preventDefault(),Z.pixelY>0&&ae.scrollHeight-ae.clientHeight>ve&&Y.preventDefault(),ae.scrollTop+=Math.ceil(Z.pixelY/5)}else ae.scrollLeft+=Math.ceil(Z.pixelX/5)},resizeProxyVisible:s,bodyWidth:ue,resizeState:u,doLayout:k,tableBodyStyles:$,tableLayout:se,scrollbarViewStyle:f,tableInnerStyle:J,scrollbarStyle:X}}function Xie(e){const t=ee(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(l=>l())}),t.value.observe(a,o)};Ht(()=>{n()}),Zs(()=>{var r;(r=t.value)==null||r.disconnect()})}var Yie={data:{type:Array,default:()=>[]},size:Rr,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object]};function V3(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const o={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?o.style={width:`${a.width}px`}:o.name=a.id,o};return _t("colgroup",{},n.map(a=>_t("col",r(a))))}V3.props=["columns","tableLayout"];const Jie=()=>{const e=ee(),t=(o,s)=>{const l=e.value;l&&l.scrollTo(o,s)},n=(o,s)=>{const l=e.value;l&&It(s)&&["Top","Left"].includes(o)&&l[`setScroll${o}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};let qie=1;const Qie=he({name:"ElTable",directives:{Mousewheel:FW},components:{TableHeader:Die,TableBody:Vie,TableFooter:zie,ElScrollbar:ts,hColgroup:V3},props:Yie,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=hn(),n=Je("table"),r=Gt();nn(Ti,r);const a=Tie(r,e);r.store=a;const o=new Cie({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const s=N(()=>(a.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:g,clearSort:y,sort:m}=Kie(a),{isHidden:S,renderExpanded:_,setDragVisible:P,isGroup:A,handleMouseLeave:$,handleHeaderFooterMousewheel:k,tableSize:L,emptyBlockStyle:B,handleFixedMousewheel:H,resizeProxyVisible:G,bodyWidth:j,resizeState:W,doLayout:Q,tableBodyStyles:ue,tableLayout:se,scrollbarViewStyle:ne,tableInnerStyle:J,scrollbarStyle:X}=Wie(e,o,a,r),{scrollBarRef:te,scrollTo:Y,setScrollLeft:Z,setScrollTop:ae}=Jie(),ve=Ha(Q,50),we=`${n.namespace.value}-table_${qie++}`;r.tableId=we,r.state={isGroup:A,resizeState:W,doLayout:Q,debouncedUpdateLayout:ve};const Me=N(()=>e.sumText||t("el.table.sumText")),Ge=N(()=>e.emptyText||t("el.table.emptyText"));return Xie(r),{ns:n,layout:o,store:a,handleHeaderFooterMousewheel:k,handleMouseLeave:$,tableId:we,tableSize:L,isHidden:S,isEmpty:s,renderExpanded:_,resizeProxyVisible:G,resizeState:W,isGroup:A,bodyWidth:j,tableBodyStyles:ue,emptyBlockStyle:B,debouncedUpdateLayout:ve,handleFixedMousewheel:H,setCurrentRow:l,getSelectionRows:u,toggleRowSelection:c,clearSelection:f,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:g,clearSort:y,doLayout:Q,sort:m,t,setDragVisible:P,context:r,computedSumText:Me,computedEmptyText:Ge,tableLayout:se,scrollbarViewStyle:ne,tableInnerStyle:J,scrollbarStyle:X,scrollBarRef:te,scrollTo:Y,setScrollLeft:Z,setScrollTop:ae}}}),Zie=["data-prefix"],ese={ref:"hiddenColumns",class:"hidden-columns"};function tse(e,t,n,r,a,o){const s=Xt("hColgroup"),l=Xt("table-header"),u=Xt("table-body"),c=Xt("table-footer"),f=Xt("el-scrollbar"),d=lv("mousewheel");return V(),ie("div",{ref:"tableWrapper",class:K([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:vt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p))},[de("div",{class:K(e.ns.e("inner-wrapper")),style:vt(e.tableInnerStyle)},[de("div",ese,[Ue(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Lt((V(),ie("div",{key:0,ref:"headerWrapper",class:K(e.ns.e("header-wrapper"))},[de("table",{ref:"tableHeader",class:K(e.ns.e("header")),style:vt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ye(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ye(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):Ie("v-if",!0),de("div",{ref:"bodyWrapper",class:K(e.ns.e("body-wrapper"))},[ye(f,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Ce(()=>[de("table",{ref:"tableBody",class:K(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:vt({width:e.bodyWidth,tableLayout:e.tableLayout})},[ye(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(V(),Fe(l,{key:0,ref:"tableHeaderRef",class:K(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):Ie("v-if",!0),ye(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(V(),Fe(c,{key:1,class:K(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Ie("v-if",!0)],6),e.isEmpty?(V(),ie("div",{key:0,ref:"emptyBlock",style:vt(e.emptyBlockStyle),class:K(e.ns.e("empty-block"))},[de("span",{class:K(e.ns.e("empty-text"))},[Ue(e.$slots,"empty",{},()=>[dn(ot(e.computedEmptyText),1)])],2)],6)):Ie("v-if",!0),e.$slots.append?(V(),ie("div",{key:1,ref:"appendWrapper",class:K(e.ns.e("append-wrapper"))},[Ue(e.$slots,"append")],2)):Ie("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary&&e.tableLayout==="fixed"?Lt((V(),ie("div",{key:1,ref:"footerWrapper",class:K(e.ns.e("footer-wrapper"))},[de("table",{class:K(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:vt(e.tableBodyStyles)},[ye(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ye(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[bn,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):Ie("v-if",!0),e.border||e.isGroup?(V(),ie("div",{key:2,class:K(e.ns.e("border-left-patch"))},null,2)):Ie("v-if",!0)],6),Lt(de("div",{ref:"resizeProxy",class:K(e.ns.e("column-resize-proxy"))},null,2),[[bn,e.resizeProxyVisible]])],46,Zie)}var nse=at(Qie,[["render",tse],["__file","table.vue"]]);const rse={selection:"table-column--selection",expand:"table__expand-column"},ase={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},ose=e=>rse[e]||"",ise={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return _t(So,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return _t(So,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),_t("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),_t("div",{class:a,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[_t(ht,null,{default:()=>[_t(_a)]})]})},sortable:!1,resizable:!1}};function sse({row:e,column:t,$index:n}){var r;const a=t.property,o=a&&kp(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((r=o==null?void 0:o.toString)==null?void 0:r.call(o))||""}function lse({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[_t("span",{class:a.e("placeholder")})]:null;const o=[],s=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(_t("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let u=_a;t.loading&&(u=nl),o.push(_t("div",{class:l,onClick:s},{default:()=>[_t(ht,{class:{[a.is("loading")]:t.loading}},{default:()=>[_t(u)]})]}))}else o.push(_t("span",{class:a.e("placeholder")}));return o}function BC(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function use(e,t){const n=Gt();return{registerComplexWatchers:()=>{const o=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},l=BC(o,s);Object.keys(l).forEach(u=>{const c=s[u];cn(t,c)&&We(()=>t[c],f=>{let d=f;c==="width"&&u==="realWidth"&&(d=f1(f)),c==="minWidth"&&u==="realMinWidth"&&(d=L3(f)),n.columnConfig.value[c]=d,n.columnConfig.value[u]=d;const p=c==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=BC(o,s);Object.keys(l).forEach(u=>{const c=s[u];cn(t,c)&&We(()=>t[c],f=>{n.columnConfig.value[u]=f})})}}}function cse(e,t,n){const r=Gt(),a=ee(""),o=ee(!1),s=ee(),l=ee(),u=Je("table");ta(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),ta(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:s.value,l.value});const c=N(()=>{let $=r.vnode.vParent||r.parent;for(;$&&!$.tableId&&!$.columnId;)$=$.vnode.vParent||$.parent;return $}),f=N(()=>{const{store:$}=r.parent;if(!$)return!1;const{treeData:k}=$.states,L=k.value;return L&&Object.keys(L).length>0}),d=ee(f1(e.width)),p=ee(L3(e.minWidth)),g=$=>(d.value&&($.width=d.value),p.value&&($.minWidth=p.value),!d.value&&p.value&&($.width=void 0),$.minWidth||($.minWidth=80),$.realWidth=Number($.width===void 0?$.minWidth:$.width),$),y=$=>{const k=$.type,L=ise[k]||{};Object.keys(L).forEach(H=>{const G=L[H];H!=="className"&&G!==void 0&&($[H]=G)});const B=ose(k);if(B){const H=`${h(u.namespace)}-${B}`;$.className=$.className?`${$.className} ${H}`:H}return $},m=$=>{Array.isArray($)?$.forEach(L=>k(L)):k($);function k(L){var B;((B=L==null?void 0:L.type)==null?void 0:B.name)==="ElTableColumn"&&(L.vParent=r)}};return{columnId:a,realAlign:s,isSubColumn:o,realHeaderAlign:l,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:y,setColumnRenders:$=>{e.renderHeader||$.type!=="selection"&&($.renderHeader=L=>(r.columnConfig.value.label,Ue(t,"header",L,()=>[$.label])));let k=$.renderCell;return $.type==="expand"?($.renderCell=L=>_t("div",{class:"cell"},[k(L)]),n.value.renderExpanded=L=>t.default?t.default(L):t.default):(k=k||sse,$.renderCell=L=>{let B=null;if(t.default){const ue=t.default(L);B=ue.some(se=>se.type!==la)?ue:k(L)}else B=k(L);const{columns:H}=n.value.store.states,G=H.value.findIndex(ue=>ue.type==="default"),j=f.value&&L.cellIndex===G,W=lse(L,j),Q={class:"cell",style:{}};return $.showOverflowTooltip&&(Q.class=`${Q.class} ${h(u.namespace)}-tooltip`,Q.style={width:`${(L.column.realWidth||Number(L.column.width))-1}px`}),m(B),_t("div",Q,[W,B])}),$},getPropsData:(...$)=>$.reduce((k,L)=>(Array.isArray(L)&&L.forEach(B=>{k[B]=e[B]}),k),{}),getColumnElIndex:($,k)=>Array.prototype.indexOf.call($,k),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var dse={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let fse=1;var G3=he({name:"ElTableColumn",components:{ElCheckbox:So},props:dse,setup(e,{slots:t}){const n=Gt(),r=ee({}),a=N(()=>{let A=n.parent;for(;A&&!A.tableId;)A=A.parent;return A}),{registerNormalWatchers:o,registerComplexWatchers:s}=use(a,e),{columnId:l,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:f,setColumnWidth:d,setColumnForcedProps:p,setColumnRenders:g,getPropsData:y,getColumnElIndex:m,realAlign:S,updateColumnOrder:_}=cse(e,t,a),P=f.value;l.value=`${P.tableId||P.columnId}_column_${fse++}`,dv(()=>{u.value=a.value!==P;const A=e.type||"default",$=e.sortable===""?!0:e.sortable,k=vr(e.showOverflowTooltip)?P.props.showOverflowTooltip:e.showOverflowTooltip,L={...ase[A],id:l.value,type:A,property:e.prop||e.property,align:S,headerAlign:c,showOverflowTooltip:k,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:$,index:e.index,rawColumnKey:n.vnode.key};let W=y(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);W=fie(L,W),W=pie(g,d,p)(W),r.value=W,o(),s()}),Ht(()=>{var A;const $=f.value,k=u.value?$.vnode.el.children:(A=$.refs.hiddenColumns)==null?void 0:A.children,L=()=>m(k||[],n.vnode.el);r.value.getColumnIndex=L,L()>-1&&a.value.store.commit("insertColumn",r.value,u.value?$.columnConfig.value:null,_)}),Dn(()=>{r.value.getColumnIndex()>-1&&a.value.store.commit("removeColumn",r.value,u.value?P.columnConfig.value:null,_)}),n.columnId=l.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const s of r)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?a.push(s):s.type===mt&&Array.isArray(s.children)&&s.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!Rt(l==null?void 0:l.children)&&a.push(l)});return _t("div",a)}catch{return _t("div",[])}}});const hse=jt(nse,{TableColumn:G3}),pse=Yn(G3);var Mf=(e=>(e.ASC="asc",e.DESC="desc",e))(Mf||{}),Of=(e=>(e.CENTER="center",e.RIGHT="right",e))(Of||{}),j3=(e=>(e.LEFT="left",e.RIGHT="right",e))(j3||{});const Q2={asc:"desc",desc:"asc"},$f=Symbol("placeholder"),vse=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const o={...(r=e.style)!=null?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function mse(e,t,n){const r=N(()=>h(t).filter(m=>!m.hidden)),a=N(()=>h(r).filter(m=>m.fixed==="left"||m.fixed===!0)),o=N(()=>h(r).filter(m=>m.fixed==="right")),s=N(()=>h(r).filter(m=>!m.fixed)),l=N(()=>{const m=[];return h(a).forEach(S=>{m.push({...S,placeholderSign:$f})}),h(s).forEach(S=>{m.push(S)}),h(o).forEach(S=>{m.push({...S,placeholderSign:$f})}),m}),u=N(()=>h(a).length||h(o).length),c=N(()=>h(t).reduce((S,_)=>(S[_.key]=vse(_,h(n),e.fixed),S),{})),f=N(()=>h(r).reduce((m,S)=>m+S.width,0)),d=m=>h(t).find(S=>S.key===m),p=m=>h(c)[m],g=(m,S)=>{m.width=S};function y(m){var S;const{key:_}=m.currentTarget.dataset;if(!_)return;const{sortState:P,sortBy:A}=e;let $=Mf.ASC;Kt(P)?$=Q2[P[_]]:$=Q2[A.order],(S=e.onColumnSort)==null||S.call(e,{column:d(_),key:_,order:$})}return{columns:t,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:a,fixedColumnsOnRight:o,hasFixedColumns:u,mainColumns:l,normalColumns:s,visibleColumns:r,getColumn:d,getColumnStyle:p,updateColumnWidth:g,onColumnSorted:y}}const gse=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const o=ee({scrollLeft:0,scrollTop:0});function s(g){var y,m,S;const{scrollTop:_}=g;(y=t.value)==null||y.scrollTo(g),(m=n.value)==null||m.scrollToTop(_),(S=r.value)==null||S.scrollToTop(_)}function l(g){o.value=g,s(g)}function u(g){o.value.scrollTop=g,s(h(o))}function c(g){var y,m;o.value.scrollLeft=g,(m=(y=t.value)==null?void 0:y.scrollTo)==null||m.call(y,h(o))}function f(g){var y;l(g),(y=e.onScroll)==null||y.call(e,g)}function d({scrollTop:g}){const{scrollTop:y}=h(o);g!==y&&u(g)}function p(g,y="auto"){var m;(m=t.value)==null||m.scrollToRow(g,y)}return We(()=>h(o).scrollTop,(g,y)=>{g>y&&a()}),{scrollPos:o,scrollTo:l,scrollToLeft:c,scrollToTop:u,scrollToRow:p,onScroll:f,onVerticalScroll:d}},yse=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:a,ns:o,isScrolling:s})=>{const l=Gt(),{emit:u}=l,c=Fn(!1),f=ee(e.defaultExpandedRowKeys||[]),d=ee(-1),p=Fn(null),g=ee({}),y=ee({}),m=Fn({}),S=Fn({}),_=Fn({}),P=N(()=>It(e.estimatedRowHeight));function A(j){var W;(W=e.onRowsRendered)==null||W.call(e,j),j.rowCacheEnd>h(d)&&(d.value=j.rowCacheEnd)}function $({hovered:j,rowKey:W}){if(s.value)return;a.vnode.el.querySelectorAll(`[rowkey=${W}]`).forEach(se=>{j?se.classList.add(o.is("hovered")):se.classList.remove(o.is("hovered"))})}function k({expanded:j,rowData:W,rowIndex:Q,rowKey:ue}){var se,ne;const J=[...h(f)],X=J.indexOf(ue);j?X===-1&&J.push(ue):X>-1&&J.splice(X,1),f.value=J,u("update:expandedRowKeys",J),(se=e.onRowExpand)==null||se.call(e,{expanded:j,rowData:W,rowIndex:Q,rowKey:ue}),(ne=e.onExpandedRowsChange)==null||ne.call(e,J)}const L=Ha(()=>{var j,W,Q,ue;c.value=!0,g.value={...h(g),...h(y)},B(h(p),!1),y.value={},p.value=null,(j=t.value)==null||j.forceUpdate(),(W=n.value)==null||W.forceUpdate(),(Q=r.value)==null||Q.forceUpdate(),(ue=l.proxy)==null||ue.$forceUpdate(),c.value=!1},0);function B(j,W=!1){h(P)&&[t,n,r].forEach(Q=>{const ue=h(Q);ue&&ue.resetAfterRowIndex(j,W)})}function H(j,W,Q){const ue=h(p);(ue===null||ue>Q)&&(p.value=Q),y.value[j]=W}function G({rowKey:j,height:W,rowIndex:Q},ue){ue?ue===j3.RIGHT?_.value[j]=W:m.value[j]=W:S.value[j]=W;const se=Math.max(...[m,_,S].map(ne=>ne.value[j]||0));h(g)[j]!==se&&(H(j,se,Q),L())}return{expandedRowKeys:f,lastRenderedRowIndex:d,isDynamic:P,isResetting:c,rowHeights:g,resetAfterIndex:B,onRowExpanded:k,onRowHovered:$,onRowsRendered:A,onRowHeightChange:G}},bse=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=ee({}),o=N(()=>{const l={},{data:u,rowKey:c}=e,f=h(t);if(!f||!f.length)return u;const d=[],p=new Set;f.forEach(y=>p.add(y));let g=u.slice();for(g.forEach(y=>l[y[c]]=0);g.length>0;){const y=g.shift();d.push(y),p.has(y[c])&&Array.isArray(y.children)&&y.children.length>0&&(g=[...y.children,...g],y.children.forEach(m=>l[m[c]]=l[y[c]]+1))}return a.value=l,d}),s=N(()=>{const{data:l,expandColumnKey:u}=e;return u?h(o):l});return We(s,(l,u)=>{l!==u&&(n.value=-1,r(0,!0))}),{data:s,depthMap:a}},_se=(e,t)=>e+t,Yp=e=>st(e)?e.reduce(_se,0):e,ru=(e,t,n={})=>Pt(e)?e(t):e??n,Is=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=rr(e[t])}),e),z3=e=>zn(e)?t=>_t(e,t):e,wse=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const o=N(()=>{const{fixed:A,width:$,vScrollbarSize:k}=e,L=$-k;return A?Math.max(Math.round(h(t)),L):L}),s=N(()=>h(o)+e.vScrollbarSize),l=N(()=>{const{height:A=0,maxHeight:$=0,footerHeight:k,hScrollbarSize:L}=e;if($>0){const B=h(y),H=h(u),j=h(g)+B+H+L;return Math.min(j,$-k)}return A-k}),u=N(()=>{const{rowHeight:A,estimatedRowHeight:$}=e,k=h(n);return It($)?k.length*$:k.length*A}),c=N(()=>{const{maxHeight:A}=e,$=h(l);if(It(A)&&A>0)return $;const k=h(u)+h(g)+h(y);return Math.min($,k)}),f=A=>A.width,d=N(()=>Yp(h(r).map(f))),p=N(()=>Yp(h(a).map(f))),g=N(()=>Yp(e.headerHeight)),y=N(()=>{var A;return(((A=e.fixedData)==null?void 0:A.length)||0)*e.rowHeight}),m=N(()=>h(l)-h(g)-h(y)),S=N(()=>{const{style:A={},height:$,width:k}=e;return Is({...A,height:$,width:k})}),_=N(()=>Is({height:e.footerHeight})),P=N(()=>({top:rr(h(g)),bottom:rr(e.footerHeight),width:rr(e.width)}));return{bodyWidth:o,fixedTableHeight:c,mainTableHeight:l,leftTableWidth:d,rightTableWidth:p,headerWidth:s,rowsHeight:u,windowHeight:m,footerHeight:_,emptyStyle:P,rootStyle:S,headerHeight:g}},Sse=e=>{const t=ee(),n=ee(0),r=ee(0);let a;return Ht(()=>{a=Wn(t,([o])=>{const{width:s,height:l}=o.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:f,paddingBottom:d}=getComputedStyle(o.target),p=Number.parseInt(u)||0,g=Number.parseInt(c)||0,y=Number.parseInt(f)||0,m=Number.parseInt(d)||0;n.value=s-p-g,r.value=l-y-m}).stop}),Dn(()=>{a==null||a()}),We([n,r],([o,s])=>{var l;(l=e.onResize)==null||l.call(e,{width:o,height:s})}),{sizer:t,width:n,height:r}};function Tse(e){const t=ee(),n=ee(),r=ee(),{columns:a,columnsStyles:o,columnsTotalWidth:s,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:f,onColumnSorted:d}=mse(e,On(e,"columns"),On(e,"fixed")),{scrollTo:p,scrollToLeft:g,scrollToTop:y,scrollToRow:m,onScroll:S,onVerticalScroll:_,scrollPos:P}=gse(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:ce}),A=Je("table-v2"),$=Gt(),k=Fn(!1),{expandedRowKeys:L,lastRenderedRowIndex:B,isDynamic:H,isResetting:G,rowHeights:j,resetAfterIndex:W,onRowExpanded:Q,onRowHeightChange:ue,onRowHovered:se,onRowsRendered:ne}=yse(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,tableInstance:$,ns:A,isScrolling:k}),{data:J,depthMap:X}=bse(e,{expandedRowKeys:L,lastRenderedRowIndex:B,resetAfterIndex:W}),{bodyWidth:te,fixedTableHeight:Y,mainTableHeight:Z,leftTableWidth:ae,rightTableWidth:ve,headerWidth:we,rowsHeight:Me,windowHeight:Ge,footerHeight:Ee,emptyStyle:pe,rootStyle:_e,headerHeight:He}=wse(e,{columnsTotalWidth:s,data:J,fixedColumnsOnLeft:l,fixedColumnsOnRight:u}),Ae=ee(),ke=N(()=>{const me=h(J).length===0;return st(e.fixedData)?e.fixedData.length===0&&me:me});function ze(me){const{estimatedRowHeight:Be,rowHeight:be,rowKey:Oe}=e;return Be?h(j)[h(J)[me][Oe]]||Be:be}function ce(){const{onEndReached:me}=e;if(!me)return;const{scrollTop:Be}=h(P),be=h(Me),Oe=h(Ge),Ye=be-(Be+Oe)+e.hScrollbarSize;h(B)>=0&&be===Be+h(Z)-h(He)&&me(Ye)}return We(()=>e.expandedRowKeys,me=>L.value=me,{deep:!0}),{columns:a,containerRef:Ae,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:H,isResetting:G,isScrolling:k,hasFixedColumns:c,columnsStyles:o,columnsTotalWidth:s,data:J,expandedRowKeys:L,depthMap:X,fixedColumnsOnLeft:l,fixedColumnsOnRight:u,mainColumns:f,bodyWidth:te,emptyStyle:pe,rootStyle:_e,headerWidth:we,footerHeight:Ee,mainTableHeight:Z,fixedTableHeight:Y,leftTableWidth:ae,rightTableWidth:ve,showEmpty:ke,getRowHeight:ze,onColumnSorted:d,onRowHovered:se,onRowExpanded:Q,onRowsRendered:ne,onRowHeightChange:ue,scrollTo:p,scrollToLeft:g,scrollToTop:y,scrollToRow:m,onScroll:S,onVerticalScroll:_}}const v1=Symbol("tableV2"),K3=String,gh={type:xe(Array),required:!0},m1={type:xe(Array)},W3={...m1,required:!0},Ese=String,HC={type:xe(Array),default:()=>Xn([])},Pl={type:Number,required:!0},X3={type:xe([String,Number,Symbol]),default:"id"},UC={type:xe(Object)},Dl=tt({class:String,columns:gh,columnsStyles:{type:xe(Object),required:!0},depth:Number,expandColumnKey:Ese,estimatedRowHeight:{...jl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:xe(Function)},onRowHover:{type:xe(Function)},onRowHeightChange:{type:xe(Function)},rowData:{type:xe(Object),required:!0},rowEventHandlers:{type:xe(Object)},rowIndex:{type:Number,required:!0},rowKey:X3,style:{type:xe(Object)}}),zm={type:Number,required:!0},g1=tt({class:String,columns:gh,fixedHeaderData:{type:xe(Array)},headerData:{type:xe(Array),required:!0},headerHeight:{type:xe([Number,Array]),default:50},rowWidth:zm,rowHeight:{type:Number,default:50},height:zm,width:zm}),Jp=tt({columns:gh,data:W3,fixedData:m1,estimatedRowHeight:Dl.estimatedRowHeight,width:Pl,height:Pl,headerWidth:Pl,headerHeight:g1.headerHeight,bodyWidth:Pl,rowHeight:Pl,cache:m3.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:jl.scrollbarAlwaysOn,scrollbarStartGap:jl.scrollbarStartGap,scrollbarEndGap:jl.scrollbarEndGap,class:K3,style:UC,containerStyle:UC,getRowHeight:{type:xe(Function),required:!0},rowKey:Dl.rowKey,onRowsRendered:{type:xe(Function)},onScroll:{type:xe(Function)}}),Cse=tt({cache:Jp.cache,estimatedRowHeight:Dl.estimatedRowHeight,rowKey:X3,headerClass:{type:xe([String,Function])},headerProps:{type:xe([Object,Function])},headerCellProps:{type:xe([Object,Function])},headerHeight:g1.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:xe([String,Function])},rowProps:{type:xe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:xe([Object,Function])},columns:gh,data:W3,dataGetter:{type:xe(Function)},fixedData:m1,expandColumnKey:Dl.expandColumnKey,expandedRowKeys:HC,defaultExpandedRowKeys:HC,class:K3,fixed:Boolean,style:{type:xe(Object)},width:Pl,height:Pl,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:jl.hScrollbarSize,vScrollbarSize:jl.vScrollbarSize,scrollbarAlwaysOn:b3.alwaysOn,sortBy:{type:xe(Object),default:()=>({})},sortState:{type:xe(Object),default:void 0},onColumnSort:{type:xe(Function)},onExpandedRowsChange:{type:xe(Function)},onEndReached:{type:xe(Function)},onRowExpand:Dl.onRowExpand,onScroll:Jp.onScroll,onRowsRendered:Jp.onRowsRendered,rowEventHandlers:Dl.rowEventHandlers}),y1=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,o=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"",s=Ue(t,"default",e,()=>[o]);return ye("div",{class:e.class,title:o,style:a},[s])};y1.displayName="ElTableV2Cell";y1.inheritAttrs=!1;const b1=(e,{slots:t})=>Ue(t,"default",e,()=>{var n,r;return[ye("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])]});b1.displayName="ElTableV2HeaderCell";b1.inheritAttrs=!1;const xse=tt({class:String,columns:gh,columnsStyles:{type:xe(Object),required:!0},headerIndex:Number,style:{type:xe(Object)}}),Ise=he({name:"ElTableV2HeaderRow",props:xse,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:o}=e;let s=n.map((l,u)=>t.cell({columns:n,column:l,columnIndex:u,headerIndex:a,style:r[l.key]}));return t.header&&(s=t.header({cells:s.map(l=>st(l)&&l.length===1?l[0]:l),columns:n,headerIndex:a})),ye("div",{class:e.class,style:o,role:"row"},[s])}}}),Ase="ElTableV2Header",Pse=he({name:Ase,props:g1,setup(e,{slots:t,expose:n}){const r=Je("table-v2"),a=ee(),o=N(()=>Is({width:e.width,height:e.height})),s=N(()=>Is({width:e.rowWidth,height:e.height})),l=N(()=>Hs(h(e.headerHeight))),u=d=>{const p=h(a);bt(()=>{p!=null&&p.scroll&&p.scroll({left:d})})},c=()=>{const d=r.e("fixed-header-row"),{columns:p,fixedHeaderData:g,rowHeight:y}=e;return g==null?void 0:g.map((m,S)=>{var _;const P=Is({height:y,width:"100%"});return(_=t.fixed)==null?void 0:_.call(t,{class:d,columns:p,rowData:m,rowIndex:-(S+1),style:P})})},f=()=>{const d=r.e("dynamic-header-row"),{columns:p}=e;return h(l).map((g,y)=>{var m;const S=Is({width:"100%",height:g});return(m=t.dynamic)==null?void 0:m.call(t,{class:d,columns:p,headerIndex:y,style:S})})};return n({scrollToLeft:u}),()=>{if(!(e.height<=0))return ye("div",{ref:a,class:e.class,style:h(o),role:"rowgroup"},[ye("div",{style:h(s),class:r.e("header")},[f(),c()])])}}}),Mse=e=>{const{isScrolling:t}=dt(v1),n=ee(!1),r=ee(),a=N(()=>It(e.estimatedRowHeight)&&e.rowIndex>=0),o=(u=!1)=>{const c=h(r);if(!c)return;const{columns:f,onRowHeightChange:d,rowKey:p,rowIndex:g,style:y}=e,{height:m}=c.getBoundingClientRect();n.value=!0,bt(()=>{if(u||m!==Number.parseInt(y.height)){const S=f[0],_=(S==null?void 0:S.placeholderSign)===$f;d==null||d({rowKey:p,height:m,rowIndex:g},S&&!_&&S.fixed)}})},s=N(()=>{const{rowData:u,rowIndex:c,rowKey:f,onRowHover:d}=e,p=e.rowEventHandlers||{},g={};return Object.entries(p).forEach(([y,m])=>{Pt(m)&&(g[y]=S=>{m({event:S,rowData:u,rowIndex:c,rowKey:f})})}),d&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:y,hovered:m})=>{const S=g[y];g[y]=_=>{d({event:_,hovered:m,rowData:u,rowIndex:c,rowKey:f}),S==null||S(_)}}),g}),l=u=>{const{onRowExpand:c,rowData:f,rowIndex:d,rowKey:p}=e;c==null||c({expanded:u,rowData:f,rowIndex:d,rowKey:p})};return Ht(()=>{h(a)&&o(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:s,onExpand:l}},Ose="ElTableV2TableRow",$se=he({name:Ose,props:Dl,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:o,measurable:s,measured:l,rowRef:u,onExpand:c}=Mse(e);return t({onExpand:c}),()=>{const{columns:f,columnsStyles:d,expandColumnKey:p,depth:g,rowData:y,rowIndex:m,style:S}=e;let _=f.map((P,A)=>{const $=st(y.children)&&y.children.length>0&&P.key===p;return n.cell({column:P,columns:f,columnIndex:A,depth:g,style:d[P.key],rowData:y,rowIndex:m,isScrolling:h(o),expandIconProps:$?{rowData:y,rowIndex:m,onExpand:c}:void 0})});if(n.row&&(_=n.row({cells:_.map(P=>st(P)&&P.length===1?P[0]:P),style:S,columns:f,depth:g,rowData:y,rowIndex:m,isScrolling:h(o)})),h(s)){const{height:P,...A}=S||{},$=h(l);return ye("div",rn({ref:u,class:e.class,style:$?S:A,role:"row"},r,h(a)),[_])}return ye("div",rn(r,{ref:u,class:e.class,style:S,role:"row"},h(a)),[_])}}}),Rse=e=>{const{sortOrder:t}=e;return ye(ht,{size:14,class:e.class},{default:()=>[t===Mf.ASC?ye(Q7,null,null):ye(J7,null,null)]})},kse=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:o}=e,s={onClick:n?()=>r(!t):void 0,class:e.class};return ye(ht,rn(s,{size:o,style:a}),{default:()=>[ye(_a,null,null)]})},Lse="ElTableV2Grid",Nse=e=>{const t=ee(),n=ee(),r=N(()=>{const{data:m,rowHeight:S,estimatedRowHeight:_}=e;if(!_)return m.length*S}),a=N(()=>{const{fixedData:m,rowHeight:S}=e;return((m==null?void 0:m.length)||0)*S}),o=N(()=>Yp(e.headerHeight)),s=N(()=>{const{height:m}=e;return Math.max(0,m-h(o)-h(a))}),l=N(()=>h(o)+h(a)>0),u=({data:m,rowIndex:S})=>m[S][e.rowKey];function c({rowCacheStart:m,rowCacheEnd:S,rowVisibleStart:_,rowVisibleEnd:P}){var A;(A=e.onRowsRendered)==null||A.call(e,{rowCacheStart:m,rowCacheEnd:S,rowVisibleStart:_,rowVisibleEnd:P})}function f(m,S){var _;(_=n.value)==null||_.resetAfterRowIndex(m,S)}function d(m,S){const _=h(t),P=h(n);Kt(m)?(_==null||_.scrollToLeft(m.scrollLeft),P==null||P.scrollTo(m)):(_==null||_.scrollToLeft(m),P==null||P.scrollTo({scrollLeft:m,scrollTop:S}))}function p(m){var S;(S=h(n))==null||S.scrollTo({scrollTop:m})}function g(m,S){var _;(_=h(n))==null||_.scrollToItem(m,1,S)}function y(){var m,S;(m=h(n))==null||m.$forceUpdate(),(S=h(t))==null||S.$forceUpdate()}return{bodyRef:n,forceUpdate:y,fixedRowHeight:a,gridHeight:s,hasHeader:l,headerHeight:o,headerRef:t,totalHeight:r,itemKey:u,onItemRendered:c,resetAfterRowIndex:f,scrollTo:d,scrollToTop:p,scrollToRow:g}},_1=he({name:Lse,props:Jp,setup(e,{slots:t,expose:n}){const{ns:r}=dt(v1),{bodyRef:a,fixedRowHeight:o,gridHeight:s,hasHeader:l,headerRef:u,headerHeight:c,totalHeight:f,forceUpdate:d,itemKey:p,onItemRendered:g,resetAfterRowIndex:y,scrollTo:m,scrollToTop:S,scrollToRow:_}=Nse(e);n({forceUpdate:d,totalHeight:f,scrollTo:m,scrollToTop:S,scrollToRow:_,resetAfterRowIndex:y});const P=()=>e.bodyWidth;return()=>{const{cache:A,columns:$,data:k,fixedData:L,useIsScrolling:B,scrollbarAlwaysOn:H,scrollbarEndGap:G,scrollbarStartGap:j,style:W,rowHeight:Q,bodyWidth:ue,estimatedRowHeight:se,headerWidth:ne,height:J,width:X,getRowHeight:te,onScroll:Y}=e,Z=It(se),ae=Z?wae:gae,ve=h(c);return ye("div",{role:"table",class:[r.e("table"),e.class],style:W},[ye(ae,{ref:a,data:k,useIsScrolling:B,itemKey:p,columnCache:0,columnWidth:Z?P:ue,totalColumn:1,totalRow:k.length,rowCache:A,rowHeight:Z?te:Q,width:X,height:h(s),class:r.e("body"),role:"rowgroup",scrollbarStartGap:j,scrollbarEndGap:G,scrollbarAlwaysOn:H,onScroll:Y,onItemRendered:g,perfMode:!1},{default:we=>{var Me;const Ge=k[we.rowIndex];return(Me=t.row)==null?void 0:Me.call(t,{...we,columns:$,rowData:Ge})}}),h(l)&&ye(Pse,{ref:u,class:r.e("header-wrapper"),columns:$,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:L,rowWidth:ne,rowHeight:Q,width:X,height:Math.min(ve+h(o),J)},{dynamic:t.header,fixed:t.row})])}}});function Dse(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const Fse=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return ye(_1,rn({ref:n},r),Dse(t)?t:{default:()=>[t]})};function Bse(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const Hse=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return ye(_1,rn({ref:n},r),Bse(t)?t:{default:()=>[t]})};function Use(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const Vse=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return ye(_1,rn({ref:n},r),Use(t)?t:{default:()=>[t]})};function Gse(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const jse=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:o,expandedRowKeys:s,estimatedRowHeight:l,hasFixedColumns:u,rowData:c,rowIndex:f,style:d,isScrolling:p,rowProps:g,rowClass:y,rowKey:m,rowEventHandlers:S,ns:_,onRowHovered:P,onRowExpanded:A}=e,$=ru(y,{columns:n,rowData:c,rowIndex:f},""),k=ru(g,{columns:n,rowData:c,rowIndex:f}),L=c[m],B=a[L]||0,H=!!o,G=f<0,j=[_.e("row"),$,{[_.e(`row-depth-${B}`)]:H&&f>=0,[_.is("expanded")]:H&&s.includes(L),[_.is("fixed")]:!B&&G,[_.is("customized")]:!!t.row}],W=u?P:void 0,Q={...k,columns:n,columnsStyles:r,class:j,depth:B,expandColumnKey:o,estimatedRowHeight:G?void 0:l,isScrolling:p,rowIndex:f,rowData:c,rowKey:L,rowEventHandlers:S,style:d};return ye($se,rn(Q,{onRowExpand:A,onMouseenter:ne=>{W==null||W({hovered:!0,rowKey:L,event:ne,rowData:c,rowIndex:f})},onMouseleave:ne=>{W==null||W({hovered:!1,rowKey:L,event:ne,rowData:c,rowIndex:f})},rowkey:L}),Gse(t)?t:{default:()=>[t]})},Z2=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:o,rowData:s,rowIndex:l,style:u,expandedRowKeys:c,ns:f,cellProps:d,expandColumnKey:p,indentSize:g,iconSize:y,rowKey:m},{slots:S})=>{const _=Is(u);if(t.placeholderSign===$f)return ye("div",{class:f.em("row-cell","placeholder"),style:_},null);const{cellRenderer:P,dataKey:A,dataGetter:$}=t,k=Pt($)?$({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:l}):lr(s,A??""),L=ru(d,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:l,rowData:s}),B={class:f.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:o,rowData:s,rowIndex:l},H=z3(P),G=H?H(B):Ue(S,"default",B,()=>[ye(y1,B,null)]),j=[f.e("row-cell"),t.class,t.align===Of.CENTER&&f.is("align-center"),t.align===Of.RIGHT&&f.is("align-right")],W=l>=0&&p&&t.key===p,Q=l>=0&&c.includes(s[m]);let ue;const se=`margin-inline-start: ${r*g}px;`;return W&&(Kt(a)?ue=ye(kse,rn(a,{class:[f.e("expand-icon"),f.is("expanded",Q)],size:y,expanded:Q,style:se,expandable:!0}),null):ue=ye("div",{style:[se,`width: ${y}px; height: ${y}px;`].join(" ")},null)),ye("div",rn({class:j,style:_},L,{role:"cell"}),[ue,G])};Z2.inheritAttrs=!1;function zse(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const Kse=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:o,ns:s},{slots:l})=>{const u={columns:e,headerIndex:n},c=[s.e("header-row"),ru(a,u,""),{[s.is("customized")]:!!l.header}],f={...ru(o,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:r};return ye(Ise,f,zse(l)?l:{default:()=>[l]})},VC=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:o}=e,s=Is(a);if(n.placeholderSign===$f)return ye("div",{class:r.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:l,headerClass:u,sortable:c}=n,f={...e,class:r.e("header-cell-text")},d=z3(l),p=d?d(f):Ue(t,"default",f,()=>[ye(b1,f,null)]),{sortBy:g,sortState:y,headerCellProps:m}=e;let S,_;if(y){const $=y[n.key];S=!!Q2[$],_=S?$:Mf.ASC}else S=n.key===g.key,_=S?g.order:Mf.ASC;const P=[r.e("header-cell"),ru(u,e,""),n.align===Of.CENTER&&r.is("align-center"),n.align===Of.RIGHT&&r.is("align-right"),c&&r.is("sortable")],A={...ru(m,e),onClick:n.sortable?o:void 0,class:P,style:s,"data-key":n.key};return ye("div",rn(A,{role:"columnheader"}),[p,c&&ye(Rse,{class:[r.e("sort-icon"),S&&r.is("sorting")],sortOrder:_},null)])},Y3=(e,{slots:t})=>{var n;return ye("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};Y3.displayName="ElTableV2Footer";const J3=(e,{slots:t})=>{const n=Ue(t,"default",{},()=>[ye(e3,null,null)]);return ye("div",{class:e.class,style:e.style},[n])};J3.displayName="ElTableV2Empty";const q3=(e,{slots:t})=>{var n;return ye("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};q3.displayName="ElTableV2Overlay";function ud(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!zn(e)}const Wse="ElTableV2",Xse=he({name:Wse,props:Cse,setup(e,{slots:t,expose:n}){const r=Je("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:o,fixedColumnsOnRight:s,mainColumns:l,mainTableHeight:u,fixedTableHeight:c,leftTableWidth:f,rightTableWidth:d,data:p,depthMap:g,expandedRowKeys:y,hasFixedColumns:m,mainTableRef:S,leftTableRef:_,rightTableRef:P,isDynamic:A,isResetting:$,isScrolling:k,bodyWidth:L,emptyStyle:B,rootStyle:H,headerWidth:G,footerHeight:j,showEmpty:W,scrollTo:Q,scrollToLeft:ue,scrollToTop:se,scrollToRow:ne,getRowHeight:J,onColumnSorted:X,onRowHeightChange:te,onRowHovered:Y,onRowExpanded:Z,onRowsRendered:ae,onScroll:ve,onVerticalScroll:we}=Tse(e);return n({scrollTo:Q,scrollToLeft:ue,scrollToTop:se,scrollToRow:ne}),nn(v1,{ns:r,isResetting:$,isScrolling:k}),()=>{const{cache:Me,cellProps:Ge,estimatedRowHeight:Ee,expandColumnKey:pe,fixedData:_e,headerHeight:He,headerClass:Ae,headerProps:ke,headerCellProps:ze,sortBy:ce,sortState:me,rowHeight:Be,rowClass:be,rowEventHandlers:Oe,rowKey:Ye,rowProps:qe,scrollbarAlwaysOn:Qe,indentSize:et,iconSize:je,useIsScrolling:lt,vScrollbarSize:ut,width:Ke}=e,ct=h(p),Et={cache:Me,class:r.e("main"),columns:h(l),data:ct,fixedData:_e,estimatedRowHeight:Ee,bodyWidth:h(L)+ut,headerHeight:He,headerWidth:h(G),height:h(u),mainTableRef:S,rowKey:Ye,rowHeight:Be,scrollbarAlwaysOn:Qe,scrollbarStartGap:2,scrollbarEndGap:ut,useIsScrolling:lt,width:Ke,getRowHeight:J,onRowsRendered:ae,onScroll:ve},Ut=h(f),en=h(c),gt={cache:Me,class:r.e("left"),columns:h(o),data:ct,estimatedRowHeight:Ee,leftTableRef:_,rowHeight:Be,bodyWidth:Ut,headerWidth:Ut,headerHeight:He,height:en,rowKey:Ye,scrollbarAlwaysOn:Qe,scrollbarStartGap:2,scrollbarEndGap:ut,useIsScrolling:lt,width:Ut,getRowHeight:J,onScroll:we},Ne=h(d)+ut,$e={cache:Me,class:r.e("right"),columns:h(s),data:ct,estimatedRowHeight:Ee,rightTableRef:P,rowHeight:Be,bodyWidth:Ne,headerWidth:Ne,headerHeight:He,height:en,rowKey:Ye,scrollbarAlwaysOn:Qe,scrollbarStartGap:2,scrollbarEndGap:ut,width:Ne,style:`--${h(r.namespace)}-table-scrollbar-size: ${ut}px`,useIsScrolling:lt,getRowHeight:J,onScroll:we},Te=h(a),De={ns:r,depthMap:h(g),columnsStyles:Te,expandColumnKey:pe,expandedRowKeys:h(y),estimatedRowHeight:Ee,hasFixedColumns:h(m),rowProps:qe,rowClass:be,rowKey:Ye,rowEventHandlers:Oe,onRowHovered:Y,onRowExpanded:Z,onRowHeightChange:te},it={cellProps:Ge,expandColumnKey:pe,indentSize:et,iconSize:je,rowKey:Ye,expandedRowKeys:h(y),ns:r},Pe={ns:r,headerClass:Ae,headerProps:ke,columnsStyles:Te},rt={ns:r,sortBy:ce,sortState:me,headerCellProps:ze,onColumnSorted:X},kt={row:Wt=>ye(jse,rn(Wt,De),{row:t.row,cell:yt=>{let yn;return t.cell?ye(Z2,rn(yt,it,{style:Te[yt.column.key]}),ud(yn=t.cell(yt))?yn:{default:()=>[yn]}):ye(Z2,rn(yt,it,{style:Te[yt.column.key]}),null)}}),header:Wt=>ye(Kse,rn(Wt,Pe),{header:t.header,cell:yt=>{let yn;return t["header-cell"]?ye(VC,rn(yt,rt,{style:Te[yt.column.key]}),ud(yn=t["header-cell"](yt))?yn:{default:()=>[yn]}):ye(VC,rn(yt,rt,{style:Te[yt.column.key]}),null)}})},Jt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:h(A)}],tn={class:r.e("footer"),style:h(j)};return ye("div",{class:Jt,style:h(H)},[ye(Fse,Et,ud(kt)?kt:{default:()=>[kt]}),ye(Hse,gt,ud(kt)?kt:{default:()=>[kt]}),ye(Vse,$e,ud(kt)?kt:{default:()=>[kt]}),t.footer&&ye(Y3,tn,{default:t.footer}),h(W)&&ye(J3,{class:r.e("empty"),style:h(B)},{default:t.empty}),t.overlay&&ye(q3,{class:r.e("overlay")},{default:t.overlay})])}}}),Yse=tt({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:xe(Function)}}),Jse=he({name:"ElAutoResizer",props:Yse,setup(e,{slots:t}){const n=Je("auto-resizer"),{height:r,width:a,sizer:o}=Sse(e),s={width:"100%",height:"100%"};return()=>{var l;return ye("div",{ref:o,class:n.b(),style:s},[(l=t.default)==null?void 0:l.call(t,{height:r.value,width:a.value})])}}}),qse=jt(Xse),Qse=jt(Jse),Fv=Symbol("tabsRootContextKey"),Zse=tt({tabs:{type:xe(Array),default:()=>Xn([])}}),Q3="ElTabBar",ele=he({name:Q3}),tle=he({...ele,props:Zse,setup(e,{expose:t}){const n=e,r=Gt(),a=dt(Fv);a||Er(Q3,"<el-tabs><el-tab-bar /></el-tabs>");const o=Je("tabs"),s=ee(),l=ee(),u=()=>{let f=0,d=0;const p=["top","bottom"].includes(a.props.tabPosition)?"width":"height",g=p==="width"?"x":"y",y=g==="x"?"left":"top";return n.tabs.every(m=>{var S,_;const P=(_=(S=r.parent)==null?void 0:S.refs)==null?void 0:_[`tab-${m.uid}`];if(!P)return!1;if(!m.active)return!0;f=P[`offset${si(y)}`],d=P[`client${si(p)}`];const A=window.getComputedStyle(P);return p==="width"&&(n.tabs.length>1&&(d-=Number.parseFloat(A.paddingLeft)+Number.parseFloat(A.paddingRight)),f+=Number.parseFloat(A.paddingLeft)),!1}),{[p]:`${d}px`,transform:`translate${si(g)}(${f}px)`}},c=()=>l.value=u();return We(()=>n.tabs,async()=>{await bt(),c()},{immediate:!0}),Wn(s,()=>c()),t({ref:s,update:c}),(f,d)=>(V(),ie("div",{ref_key:"barRef",ref:s,class:K([h(o).e("active-bar"),h(o).is(h(a).props.tabPosition)]),style:vt(l.value)},null,6))}});var nle=at(tle,[["__file","tab-bar.vue"]]);const rle=tt({panes:{type:xe(Array),default:()=>Xn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),ale={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},GC="ElTabNav",ole=he({name:GC,props:rle,emits:ale,setup(e,{expose:t,emit:n}){const r=Gt(),a=dt(Fv);a||Er(GC,"<el-tabs><tab-nav /></el-tabs>");const o=Je("tabs"),s=sD(),l=bD(),u=ee(),c=ee(),f=ee(),d=ee(),p=ee(!1),g=ee(0),y=ee(!1),m=ee(!0),S=N(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),_=N(()=>({transform:`translate${S.value==="width"?"X":"Y"}(-${g.value}px)`})),P=()=>{if(!u.value)return;const G=u.value[`offset${si(S.value)}`],j=g.value;if(!j)return;const W=j>G?j-G:0;g.value=W},A=()=>{if(!u.value||!c.value)return;const G=c.value[`offset${si(S.value)}`],j=u.value[`offset${si(S.value)}`],W=g.value;if(G-W<=j)return;const Q=G-W>j*2?W+j:G-j;g.value=Q},$=async()=>{const G=c.value;if(!p.value||!f.value||!u.value||!G)return;await bt();const j=f.value.querySelector(".is-active");if(!j)return;const W=u.value,Q=["top","bottom"].includes(a.props.tabPosition),ue=j.getBoundingClientRect(),se=W.getBoundingClientRect(),ne=Q?G.offsetWidth-se.width:G.offsetHeight-se.height,J=g.value;let X=J;Q?(ue.left<se.left&&(X=J-(se.left-ue.left)),ue.right>se.right&&(X=J+ue.right-se.right)):(ue.top<se.top&&(X=J-(se.top-ue.top)),ue.bottom>se.bottom&&(X=J+(ue.bottom-se.bottom))),X=Math.max(X,0),g.value=Math.min(X,ne)},k=()=>{var G;if(!c.value||!u.value)return;e.stretch&&((G=d.value)==null||G.update());const j=c.value[`offset${si(S.value)}`],W=u.value[`offset${si(S.value)}`],Q=g.value;W<j?(p.value=p.value||{},p.value.prev=Q,p.value.next=Q+W<j,j-Q<W&&(g.value=j-W)):(p.value=!1,Q>0&&(g.value=0))},L=G=>{const j=G.code,{up:W,down:Q,left:ue,right:se}=St;if(![W,Q,ue,se].includes(j))return;const ne=Array.from(G.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),J=ne.indexOf(G.target);let X;j===ue||j===W?J===0?X=ne.length-1:X=J-1:J<ne.length-1?X=J+1:X=0,ne[X].focus({preventScroll:!0}),ne[X].click(),B()},B=()=>{m.value&&(y.value=!0)},H=()=>y.value=!1;return We(s,G=>{G==="hidden"?m.value=!1:G==="visible"&&setTimeout(()=>m.value=!0,50)}),We(l,G=>{G?setTimeout(()=>m.value=!0,50):m.value=!1}),Wn(f,k),Ht(()=>setTimeout(()=>$(),0)),Ji(()=>k()),t({scrollToActiveTab:$,removeFocus:H}),We(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const G=p.value?[ye("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:P},[ye(ht,null,{default:()=>[ye(Vs,null,null)]})]),ye("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:A},[ye(ht,null,{default:()=>[ye(_a,null,null)]})])]:null,j=e.panes.map((W,Q)=>{var ue,se,ne,J;const X=W.uid,te=W.props.disabled,Y=(se=(ue=W.props.name)!=null?ue:W.index)!=null?se:`${Q}`,Z=!te&&(W.isClosable||e.editable);W.index=`${Q}`;const ae=Z?ye(ht,{class:"is-icon-close",onClick:Me=>n("tabRemove",W,Me)},{default:()=>[ye(Go,null,null)]}):null,ve=((J=(ne=W.slots).label)==null?void 0:J.call(ne))||W.props.label,we=!te&&W.active?0:-1;return ye("div",{ref:`tab-${X}`,class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",W.active),o.is("disabled",te),o.is("closable",Z),o.is("focus",y.value)],id:`tab-${Y}`,key:`tab-${X}`,"aria-controls":`pane-${Y}`,role:"tab","aria-selected":W.active,tabindex:we,onFocus:()=>B(),onBlur:()=>H(),onClick:Me=>{H(),n("tabClick",W,Y,Me)},onKeydown:Me=>{Z&&(Me.code===St.delete||Me.code===St.backspace)&&n("tabRemove",W,Me)}},[ve,ae])});return ye("div",{ref:f,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(a.props.tabPosition)]},[G,ye("div",{class:o.e("nav-scroll"),ref:u},[ye("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:c,style:_.value,role:"tablist",onKeydown:L},[e.type?null:ye(nle,{ref:d,tabs:[...e.panes]},null),j])])])}}}),ile=tt({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:xe(Function),default:()=>!0},stretch:Boolean}),Km=e=>Rt(e)||It(e),sle={[Yt]:e=>Km(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Km(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Km(e),tabAdd:()=>!0},lle=he({name:"ElTabs",props:ile,emits:sle,setup(e,{emit:t,slots:n,expose:r}){var a;const o=Je("tabs"),{children:s,addChild:l,removeChild:u}=U_(Gt(),"ElTabPane"),c=ee(),f=ee((a=e.modelValue)!=null?a:"0"),d=async(m,S=!1)=>{var _,P,A;if(!(f.value===m||vr(m)))try{await((_=e.beforeLeave)==null?void 0:_.call(e,m,f.value))!==!1&&(f.value=m,S&&(t(Yt,m),t("tabChange",m)),(A=(P=c.value)==null?void 0:P.removeFocus)==null||A.call(P))}catch{}},p=(m,S,_)=>{m.props.disabled||(d(S,!0),t("tabClick",m,_))},g=(m,S)=>{m.props.disabled||vr(m.props.name)||(S.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")};return We(()=>e.modelValue,m=>d(m)),We(f,async()=>{var m;await bt(),(m=c.value)==null||m.scrollToActiveTab()}),nn(Fv,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=n["add-icon"],S=e.editable||e.addable?ye("span",{class:o.e("new-tab"),tabindex:"0",onClick:y,onKeydown:A=>{A.code===St.enter&&y()}},[m?Ue(n,"add-icon"):ye(ht,{class:o.is("icon-plus")},{default:()=>[ye(PP,null,null)]})]):null,_=ye("div",{class:[o.e("header"),o.is(e.tabPosition)]},[S,ye(ole,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:p,onTabRemove:g},null)]),P=ye("div",{class:o.e("content")},[Ue(n,"default")]);return ye("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[_,P]:[P,_]])}}}),ule=tt({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),cle=["id","aria-hidden","aria-labelledby"],Z3="ElTabPane",dle=he({name:Z3}),fle=he({...dle,props:ule,setup(e){const t=e,n=Gt(),r=Vr(),a=dt(Fv);a||Er(Z3,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const o=Je("tab-pane"),s=ee(),l=N(()=>t.closable||a.props.closable),u=bT(()=>{var g;return a.currentName.value===((g=t.name)!=null?g:s.value)}),c=ee(u.value),f=N(()=>{var g;return(g=t.name)!=null?g:s.value}),d=bT(()=>!t.lazy||c.value||u.value);We(u,g=>{g&&(c.value=!0)});const p=Sn({uid:n.uid,slots:r,props:t,paneName:f,active:u,index:s,isClosable:l});return Ht(()=>{a.registerPane(p)}),Zs(()=>{a.unregisterPane(p.uid)}),(g,y)=>h(d)?Lt((V(),ie("div",{key:0,id:`pane-${h(f)}`,class:K(h(o).b()),role:"tabpanel","aria-hidden":!h(u),"aria-labelledby":`tab-${h(f)}`},[Ue(g.$slots,"default")],10,cle)),[[bn,h(u)]]):Ie("v-if",!0)}});var e$=at(fle,[["__file","tab-pane.vue"]]);const hle=jt(lle,{TabPane:e$}),ple=Yn(e$),vle=tt({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Si,default:""},truncated:{type:Boolean},lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),mle=he({name:"ElText"}),gle=he({...mle,props:vle,setup(e){const t=e,n=yr(),r=Je("text"),a=N(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated),r.is("line-clamp",!vr(t.lineClamp))]);return(o,s)=>(V(),Fe(Zt(o.tag),{class:K(h(a)),style:vt({"-webkit-line-clamp":o.lineClamp})},{default:Ce(()=>[Ue(o.$slots,"default")]),_:3},8,["class","style"]))}});var yle=at(gle,[["__file","text.vue"]]);const ble=jt(yle),_le=tt({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Rr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:xe([String,Object]),default:()=>AP},clearIcon:{type:xe([String,Object]),default:()=>tl},...Gc}),Li=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},Wm=(e,t)=>{const n=Li(e);if(!n)return-1;const r=Li(t);if(!r)return-1;const a=n.minutes+n.hours*60,o=r.minutes+r.hours*60;return a===o?0:a>o?1:-1},jC=e=>`${e}`.padStart(2,"0"),ku=e=>`${jC(e.hours)}:${jC(e.minutes)}`,wle=(e,t)=>{const n=Li(e);if(!n)return"";const r=Li(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,ku(a)},Sle=he({name:"ElTimeSelect"}),Tle=he({...Sle,props:_le,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;zt.extend(X_);const{Option:r}=nu,a=Je("input"),o=ee(),s=Ca(),{lang:l}=hn(),u=N(()=>n.modelValue),c=N(()=>{const _=Li(n.start);return _?ku(_):null}),f=N(()=>{const _=Li(n.end);return _?ku(_):null}),d=N(()=>{const _=Li(n.step);return _?ku(_):null}),p=N(()=>{const _=Li(n.minTime||"");return _?ku(_):null}),g=N(()=>{const _=Li(n.maxTime||"");return _?ku(_):null}),y=N(()=>{const _=[];if(n.start&&n.end&&n.step){let P=c.value,A;for(;P&&f.value&&Wm(P,f.value)<=0;)A=zt(P,"HH:mm").locale(l.value).format(n.format),_.push({value:A,disabled:Wm(P,p.value||"-1:-1")<=0||Wm(P,g.value||"100:100")>=0}),P=wle(P,d.value)}return _});return t({blur:()=>{var _,P;(P=(_=o.value)==null?void 0:_.blur)==null||P.call(_)},focus:()=>{var _,P;(P=(_=o.value)==null?void 0:_.focus)==null||P.call(_)}}),(_,P)=>(V(),Fe(h(nu),{ref_key:"select",ref:o,"model-value":h(u),disabled:h(s),clearable:_.clearable,"clear-icon":_.clearIcon,size:_.size,effect:_.effect,placeholder:_.placeholder,"default-first-option":"",filterable:_.editable,"empty-values":_.emptyValues,"value-on-clear":_.valueOnClear,"onUpdate:modelValue":P[0]||(P[0]=A=>_.$emit("update:modelValue",A)),onChange:P[1]||(P[1]=A=>_.$emit("change",A)),onBlur:P[2]||(P[2]=A=>_.$emit("blur",A)),onFocus:P[3]||(P[3]=A=>_.$emit("focus",A))},{prefix:Ce(()=>[_.prefixIcon?(V(),Fe(h(ht),{key:0,class:K(h(a).e("prefix-icon"))},{default:Ce(()=>[(V(),Fe(Zt(_.prefixIcon)))]),_:1},8,["class"])):Ie("v-if",!0)]),default:Ce(()=>[(V(!0),ie(mt,null,sn(h(y),A=>(V(),Fe(h(r),{key:A.value,label:A.value,value:A.value,disabled:A.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear"]))}});var qp=at(Tle,[["__file","time-select.vue"]]);qp.install=e=>{e.component(qp.name,qp)};const Ele=qp,Cle=Ele,xle=he({name:"ElTimeline",setup(e,{slots:t}){const n=Je("timeline");return nn("timeline",t),()=>_t("ul",{class:[n.b()]},[Ue(t,"default")])}}),Ile=tt({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Pn},hollow:{type:Boolean,default:!1}}),Ale=he({name:"ElTimelineItem"}),Ple=he({...Ale,props:Ile,setup(e){const t=e,n=Je("timeline-item"),r=N(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,o)=>(V(),ie("li",{class:K([h(n).b(),{[h(n).e("center")]:a.center}])},[de("div",{class:K(h(n).e("tail"))},null,2),a.$slots.dot?Ie("v-if",!0):(V(),ie("div",{key:0,class:K(h(r)),style:vt({backgroundColor:a.color})},[a.icon?(V(),Fe(h(ht),{key:0,class:K(h(n).e("icon"))},{default:Ce(()=>[(V(),Fe(Zt(a.icon)))]),_:1},8,["class"])):Ie("v-if",!0)],6)),a.$slots.dot?(V(),ie("div",{key:1,class:K(h(n).e("dot"))},[Ue(a.$slots,"dot")],2)):Ie("v-if",!0),de("div",{class:K(h(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(V(),ie("div",{key:0,class:K([h(n).e("timestamp"),h(n).is("top")])},ot(a.timestamp),3)):Ie("v-if",!0),de("div",{class:K(h(n).e("content"))},[Ue(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(V(),ie("div",{key:1,class:K([h(n).e("timestamp"),h(n).is("bottom")])},ot(a.timestamp),3)):Ie("v-if",!0)],2)],2))}});var t$=at(Ple,[["__file","timeline-item.vue"]]);const Mle=jt(xle,{TimelineItem:t$}),Ole=Yn(t$),n$=tt({nowrap:Boolean});var r$=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(r$||{});const $le=Object.values(r$),w1=tt({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:xe(Object),default:null}}),Rle=tt({side:{type:xe(String),values:$le,required:!0}}),kle=["absolute","fixed"],Lle=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],S1=tt({arrowPadding:{type:xe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:xe(String),values:Lle,default:"bottom"},reference:{type:xe(Object),default:null},offset:{type:Number,default:8},strategy:{type:xe(String),values:kle,default:"absolute"},showArrow:{type:Boolean,default:!1},...Xr(["ariaLabel"])}),T1=tt({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:xe(Function)},"onUpdate:open":{type:xe(Function)}}),Su={type:xe(Function)},E1=tt({onBlur:Su,onClick:Su,onFocus:Su,onMouseDown:Su,onMouseEnter:Su,onMouseLeave:Su}),Nle=tt({...T1,...w1,...E1,...S1,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:xe(Object),default:null},teleported:Boolean,to:{type:xe(String),default:"body"}}),Bv=Symbol("tooltipV2"),a$=Symbol("tooltipV2Content"),Xm="tooltip_v2.open",Dle=he({name:"ElTooltipV2Root"}),Fle=he({...Dle,props:T1,setup(e,{expose:t}){const n=e,r=ee(n.defaultOpen),a=ee(null),o=N({get:()=>Ql(n.open)?r.value:n.open,set:S=>{var _;r.value=S,(_=n["onUpdate:open"])==null||_.call(n,S)}}),s=N(()=>It(n.delayDuration)&&n.delayDuration>0),{start:l,stop:u}=Jl(()=>{o.value=!0},N(()=>n.delayDuration),{immediate:!1}),c=Je("tooltip-v2"),f=ra(),d=()=>{u(),o.value=!0},p=()=>{h(s)?l():d()},g=d,y=()=>{u(),o.value=!1};return We(o,S=>{var _;S&&(document.dispatchEvent(new CustomEvent(Xm)),g()),(_=n.onOpenChange)==null||_.call(n,S)}),Ht(()=>{document.addEventListener(Xm,y)}),Dn(()=>{u(),document.removeEventListener(Xm,y)}),nn(Bv,{contentId:f,triggerRef:a,ns:c,onClose:y,onDelayOpen:p,onOpen:g}),t({onOpen:g,onClose:y}),(S,_)=>Ue(S.$slots,"default",{open:h(o)})}});var Ble=at(Fle,[["__file","root.vue"]]);const Hle=he({name:"ElTooltipV2Arrow"}),Ule=he({...Hle,props:{...w1,...Rle},setup(e){const t=e,{ns:n}=dt(Bv),{arrowRef:r}=dt(a$),a=N(()=>{const{style:o,width:s,height:l}=t,u=n.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${s}px`,[`--${u}-tooltip-v2-arrow-height`]:`${l}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:s/2-1,...o||{}}});return(o,s)=>(V(),ie("span",{ref_key:"arrowRef",ref:r,style:vt(h(a)),class:K(h(n).e("arrow"))},null,6))}});var zC=at(Ule,[["__file","arrow.vue"]]);const Vle=tt({style:{type:xe([String,Object,Array]),default:()=>({})}}),Gle=he({name:"ElVisuallyHidden"}),jle=he({...Gle,props:Vle,setup(e){const t=e,n=N(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(V(),ie("span",rn(r.$attrs,{style:h(n)}),[Ue(r.$slots,"default")],16))}});var zle=at(jle,[["__file","visual-hidden.vue"]]);const Kle=["data-side"],Wle=he({name:"ElTooltipV2Content"}),Xle=he({...Wle,props:{...S1,...n$},setup(e){const t=e,{triggerRef:n,contentId:r}=dt(Bv),a=ee(t.placement),o=ee(t.strategy),s=ee(null),{referenceRef:l,contentRef:u,middlewareData:c,x:f,y:d,update:p}=wG({placement:a,strategy:o,middleware:N(()=>{const A=[cM(t.offset)];return t.showArrow&&A.push(SG({arrowRef:s})),A})}),g=Uc().nextZIndex(),y=Je("tooltip-v2"),m=N(()=>a.value.split("-")[0]),S=N(()=>({position:h(o),top:`${h(d)||0}px`,left:`${h(f)||0}px`,zIndex:g})),_=N(()=>{if(!t.showArrow)return{};const{arrow:A}=h(c);return{[`--${y.namespace.value}-tooltip-v2-arrow-x`]:`${A==null?void 0:A.x}px`||"",[`--${y.namespace.value}-tooltip-v2-arrow-y`]:`${A==null?void 0:A.y}px`||""}}),P=N(()=>[y.e("content"),y.is("dark",t.effect==="dark"),y.is(h(o)),t.contentClass]);return We(s,()=>p()),We(()=>t.placement,A=>a.value=A),Ht(()=>{We(()=>t.reference||n.value,A=>{l.value=A||void 0},{immediate:!0})}),nn(a$,{arrowRef:s}),(A,$)=>(V(),ie("div",{ref_key:"contentRef",ref:u,style:vt(h(S)),"data-tooltip-v2-root":""},[A.nowrap?Ie("v-if",!0):(V(),ie("div",{key:0,"data-side":h(m),class:K(h(P))},[Ue(A.$slots,"default",{contentStyle:h(S),contentClass:h(P)}),ye(h(zle),{id:h(r),role:"tooltip"},{default:Ce(()=>[A.ariaLabel?(V(),ie(mt,{key:0},[dn(ot(A.ariaLabel),1)],64)):Ue(A.$slots,"default",{key:1})]),_:3},8,["id"]),Ue(A.$slots,"arrow",{style:vt(h(_)),side:h(m)})],10,Kle))],4))}});var KC=at(Xle,[["__file","content.vue"]]);const Yle=tt({setRef:{type:xe(Function),required:!0},onlyChild:Boolean});var Jle=he({props:Yle,setup(e,{slots:t}){const n=ee(),r=Ev(n,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[o]=((a=t.default)==null?void 0:a.call(t))||[],s=e.onlyChild?vU(o.children):o.children;return ye(mt,{ref:r},[s])}}});const qle=he({name:"ElTooltipV2Trigger"}),Qle=he({...qle,props:{...n$,...E1},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:o,contentId:s}=dt(Bv);let l=!1;const u=P=>{o.value=P},c=()=>{l=!1},f=nr(t.onMouseEnter,a),d=nr(t.onMouseLeave,n),p=nr(t.onMouseDown,()=>{n(),l=!0,document.addEventListener("mouseup",c,{once:!0})}),g=nr(t.onFocus,()=>{l||r()}),y=nr(t.onBlur,n),m=nr(t.onClick,P=>{P.detail===0&&n()}),S={blur:y,click:m,focus:g,mousedown:p,mouseenter:f,mouseleave:d},_=(P,A,$)=>{P&&Object.entries(A).forEach(([k,L])=>{P[$](k,L)})};return We(o,(P,A)=>{_(P,S,"addEventListener"),_(A,S,"removeEventListener"),P&&P.setAttribute("aria-describedby",s.value)}),Dn(()=>{_(o.value,S,"removeEventListener"),document.removeEventListener("mouseup",c)}),(P,A)=>P.nowrap?(V(),Fe(h(Jle),{key:0,"set-ref":u,"only-child":""},{default:Ce(()=>[Ue(P.$slots,"default")]),_:3})):(V(),ie("button",rn({key:1,ref_key:"triggerRef",ref:o},P.$attrs),[Ue(P.$slots,"default")],16))}});var Zle=at(Qle,[["__file","trigger.vue"]]);const eue=he({name:"ElTooltipV2"}),tue=he({...eue,props:Nle,setup(e){const n=Wr(e),r=Sn(ui(n,Object.keys(w1))),a=Sn(ui(n,Object.keys(S1))),o=Sn(ui(n,Object.keys(T1))),s=Sn(ui(n,Object.keys(E1)));return(l,u)=>(V(),Fe(Ble,Di(ac(o)),{default:Ce(({open:c})=>[ye(Zle,rn(s,{nowrap:""}),{default:Ce(()=>[Ue(l.$slots,"trigger")]),_:3},16),(V(),Fe(Lc,{to:l.to,disabled:!l.teleported},[l.fullTransition?(V(),Fe(Tr,Di(rn({key:0},l.transitionProps)),{default:Ce(()=>[l.alwaysOn||c?(V(),Fe(KC,Di(rn({key:0},a)),{arrow:Ce(({style:f,side:d})=>[l.showArrow?(V(),Fe(zC,rn({key:0},r,{style:f,side:d}),null,16,["style","side"])):Ie("v-if",!0)]),default:Ce(()=>[Ue(l.$slots,"default")]),_:3},16)):Ie("v-if",!0)]),_:2},1040)):(V(),ie(mt,{key:1},[l.alwaysOn||c?(V(),Fe(KC,Di(rn({key:0},a)),{arrow:Ce(({style:f,side:d})=>[l.showArrow?(V(),Fe(zC,rn({key:0},r,{style:f,side:d}),null,16,["style","side"])):Ie("v-if",!0)]),default:Ce(()=>[Ue(l.$slots,"default")]),_:3},16)):Ie("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var nue=at(tue,[["__file","tooltip.vue"]]);const rue=jt(nue),o$="left-check-change",i$="right-check-change",Lu=tt({data:{type:xe(Array),default:()=>[]},titles:{type:xe(Array),default:()=>[]},buttonTexts:{type:xe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:xe(Function)},leftDefaultChecked:{type:xe(Array),default:()=>[]},rightDefaultChecked:{type:xe(Array),default:()=>[]},renderContent:{type:xe(Function)},modelValue:{type:xe(Array),default:()=>[]},format:{type:xe(Object),default:()=>({})},filterable:Boolean,props:{type:xe(Object),default:()=>Xn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),ey=(e,t)=>[e,t].every(st)||st(e)&&Br(t),aue={[Hn]:(e,t,n)=>[e,n].every(st)&&["left","right"].includes(t),[Yt]:e=>st(e),[o$]:ey,[i$]:ey},ty="checked-change",oue=tt({data:Lu.data,optionRender:{type:xe(Function)},placeholder:String,title:String,filterable:Boolean,format:Lu.format,filterMethod:Lu.filterMethod,defaultChecked:Lu.leftDefaultChecked,props:Lu.props}),iue={[ty]:ey},yh=e=>{const t={label:"label",key:"key",disabled:"disabled"};return N(()=>({...t,...e.props}))},sue=(e,t,n)=>{const r=yh(e),a=N(()=>e.data.filter(f=>Pt(e.filterMethod)?e.filterMethod(t.query,f):String(f[r.value.label]||f[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),o=N(()=>a.value.filter(f=>!f[r.value.disabled])),s=N(()=>{const f=t.checked.length,d=e.data.length,{noChecked:p,hasChecked:g}=e.format;return p&&g?f>0?g.replace(/\${checked}/g,f.toString()).replace(/\${total}/g,d.toString()):p.replace(/\${total}/g,d.toString()):`${f}/${d}`}),l=N(()=>{const f=t.checked.length;return f>0&&f<o.value.length}),u=()=>{const f=o.value.map(d=>d[r.value.key]);t.allChecked=f.length>0&&f.every(d=>t.checked.includes(d))},c=f=>{t.checked=f?o.value.map(d=>d[r.value.key]):[]};return We(()=>t.checked,(f,d)=>{if(u(),t.checkChangeByUser){const p=f.concat(d).filter(g=>!f.includes(g)||!d.includes(g));n(ty,f,p)}else n(ty,f),t.checkChangeByUser=!0}),We(o,()=>{u()}),We(()=>e.data,()=>{const f=[],d=a.value.map(p=>p[r.value.key]);t.checked.forEach(p=>{d.includes(p)&&f.push(p)}),t.checkChangeByUser=!1,t.checked=f}),We(()=>e.defaultChecked,(f,d)=>{if(d&&f.length===d.length&&f.every(y=>d.includes(y)))return;const p=[],g=o.value.map(y=>y[r.value.key]);f.forEach(y=>{g.includes(y)&&p.push(y)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:a,checkableData:o,checkedSummary:s,isIndeterminate:l,updateAllChecked:u,handleAllCheckedChange:c}},lue=(e,t)=>({onSourceCheckedChange:(a,o)=>{e.leftChecked=a,o&&t(o$,a,o)},onTargetCheckedChange:(a,o)=>{e.rightChecked=a,o&&t(i$,a,o)}}),uue=e=>{const t=yh(e),n=N(()=>e.data.reduce((o,s)=>(o[s[t.value.key]]=s)&&o,{})),r=N(()=>e.data.filter(o=>!e.modelValue.includes(o[t.value.key]))),a=N(()=>e.targetOrder==="original"?e.data.filter(o=>e.modelValue.includes(o[t.value.key])):e.modelValue.reduce((o,s)=>{const l=n.value[s];return l&&o.push(l),o},[]));return{sourceData:r,targetData:a}},cue=(e,t,n)=>{const r=yh(e),a=(l,u,c)=>{n(Yt,l),n(Hn,l,u,c)};return{addToLeft:()=>{const l=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=l.indexOf(u);c>-1&&l.splice(c,1)}),a(l,"left",t.rightChecked)},addToRight:()=>{let l=e.modelValue.slice();const u=e.data.filter(c=>{const f=c[r.value.key];return t.leftChecked.includes(f)&&!e.modelValue.includes(f)}).map(c=>c[r.value.key]);l=e.targetOrder==="unshift"?u.concat(l):l.concat(u),e.targetOrder==="original"&&(l=e.data.filter(c=>l.includes(c[r.value.key])).map(c=>c[r.value.key])),a(l,"right",t.leftChecked)}}},due=he({name:"ElTransferPanel"}),fue=he({...due,props:oue,emits:iue,setup(e,{expose:t,emit:n}){const r=e,a=Vr(),o=({option:A})=>A,{t:s}=hn(),l=Je("transfer"),u=Sn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),c=yh(r),{filteredData:f,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:g}=sue(r,u,n),y=N(()=>!so(u.query)&&so(f.value)),m=N(()=>!so(a.default()[0].children)),{checked:S,allChecked:_,query:P}=Wr(u);return t({query:P}),(A,$)=>(V(),ie("div",{class:K(h(l).b("panel"))},[de("p",{class:K(h(l).be("panel","header"))},[ye(h(So),{modelValue:h(_),"onUpdate:modelValue":$[0]||($[0]=k=>Un(_)?_.value=k:null),indeterminate:h(p),"validate-event":!1,onChange:h(g)},{default:Ce(()=>[dn(ot(A.title)+" ",1),de("span",null,ot(h(d)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),de("div",{class:K([h(l).be("panel","body"),h(l).is("with-footer",h(m))])},[A.filterable?(V(),Fe(h(ua),{key:0,modelValue:h(P),"onUpdate:modelValue":$[1]||($[1]=k=>Un(P)?P.value=k:null),class:K(h(l).be("panel","filter")),size:"default",placeholder:A.placeholder,"prefix-icon":h(X7),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):Ie("v-if",!0),Lt(ye(h(dO),{modelValue:h(S),"onUpdate:modelValue":$[2]||($[2]=k=>Un(S)?S.value=k:null),"validate-event":!1,class:K([h(l).is("filterable",A.filterable),h(l).be("panel","list")])},{default:Ce(()=>[(V(!0),ie(mt,null,sn(h(f),k=>(V(),Fe(h(So),{key:k[h(c).key],class:K(h(l).be("panel","item")),value:k[h(c).key],disabled:k[h(c).disabled],"validate-event":!1},{default:Ce(()=>{var L;return[ye(o,{option:(L=A.optionRender)==null?void 0:L.call(A,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[bn,!h(y)&&!h(so)(A.data)]]),Lt(de("p",{class:K(h(l).be("panel","empty"))},ot(h(y)?h(s)("el.transfer.noMatch"):h(s)("el.transfer.noData")),3),[[bn,h(y)||h(so)(A.data)]])],2),h(m)?(V(),ie("p",{key:0,class:K(h(l).be("panel","footer"))},[Ue(A.$slots,"default")],2)):Ie("v-if",!0)],2))}});var WC=at(fue,[["__file","transfer-panel.vue"]]);const hue={key:0},pue={key:0},vue=he({name:"ElTransfer"}),mue=he({...vue,props:Lu,emits:aue,setup(e,{expose:t,emit:n}){const r=e,a=Vr(),{t:o}=hn(),s=Je("transfer"),{formItem:l}=va(),u=Sn({leftChecked:[],rightChecked:[]}),c=yh(r),{sourceData:f,targetData:d}=uue(r),{onSourceCheckedChange:p,onTargetCheckedChange:g}=lue(u,n),{addToLeft:y,addToRight:m}=cue(r,u,n),S=ee(),_=ee(),P=H=>{switch(H){case"left":S.value.query="";break;case"right":_.value.query="";break}},A=N(()=>r.buttonTexts.length===2),$=N(()=>r.titles[0]||o("el.transfer.titles.0")),k=N(()=>r.titles[1]||o("el.transfer.titles.1")),L=N(()=>r.filterPlaceholder||o("el.transfer.filterPlaceholder"));We(()=>r.modelValue,()=>{var H;r.validateEvent&&((H=l==null?void 0:l.validate)==null||H.call(l,"change").catch(G=>void 0))});const B=N(()=>H=>r.renderContent?r.renderContent(_t,H):a.default?a.default({option:H}):_t("span",H[c.value.label]||H[c.value.key]));return t({clearQuery:P,leftPanel:S,rightPanel:_}),(H,G)=>(V(),ie("div",{class:K(h(s).b())},[ye(WC,{ref_key:"leftPanel",ref:S,data:h(f),"option-render":h(B),placeholder:h(L),title:h($),filterable:H.filterable,format:H.format,"filter-method":H.filterMethod,"default-checked":H.leftDefaultChecked,props:r.props,onCheckedChange:h(p)},{default:Ce(()=>[Ue(H.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),de("div",{class:K(h(s).e("buttons"))},[ye(h(Hr),{type:"primary",class:K([h(s).e("button"),h(s).is("with-texts",h(A))]),disabled:h(so)(u.rightChecked),onClick:h(y)},{default:Ce(()=>[ye(h(ht),null,{default:Ce(()=>[ye(h(Vs))]),_:1}),h(vr)(H.buttonTexts[0])?Ie("v-if",!0):(V(),ie("span",hue,ot(H.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),ye(h(Hr),{type:"primary",class:K([h(s).e("button"),h(s).is("with-texts",h(A))]),disabled:h(so)(u.leftChecked),onClick:h(m)},{default:Ce(()=>[h(vr)(H.buttonTexts[1])?Ie("v-if",!0):(V(),ie("span",pue,ot(H.buttonTexts[1]),1)),ye(h(ht),null,{default:Ce(()=>[ye(h(_a))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),ye(WC,{ref_key:"rightPanel",ref:_,data:h(d),"option-render":h(B),placeholder:h(L),filterable:H.filterable,format:H.format,"filter-method":H.filterMethod,title:h(k),"default-checked":H.rightDefaultChecked,props:r.props,onCheckedChange:h(g)},{default:Ce(()=>[Ue(H.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var gue=at(mue,[["__file","transfer.vue"]]);const yue=jt(gue),qu="$treeNodeId",XC=function(e,t){!t||t[qu]||Object.defineProperty(t,qu,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},C1=function(e,t){return e?t[e]:t[qu]},ny=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},ry=e=>{let t=!0,n=!0,r=!0;for(let a=0,o=e.length;a<o;a++){const s=e[a];(s.checked!==!0||s.indeterminate)&&(t=!1,s.disabled||(r=!1)),(s.checked!==!1||s.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},Cd=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=ry(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||Cd(a)},qh=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if(typeof a=="function")return a(r,e);if(typeof a=="string")return r[a];if(typeof a>"u"){const o=r[t];return o===void 0?"":o}};let bue=0,ay=class Qp{constructor(t){this.id=bue++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)cn(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const o=qh(this,"isLeaf");typeof o=="boolean"&&(this.isLeafByUser=o)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||XC(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||XC(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=qh(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return qh(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return qh(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Qp)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Sn(new Qp(t)),t instanceof Qp&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Cd(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:l}=ry(this.childNodes);!this.isLeaf&&!s&&l&&(this.checked=!1,t=!1);const u=()=>{if(n){const c=this.childNodes;for(let p=0,g=c.length;p<g;p++){const y=c[p];a=a||t!==!1;const m=y.disabled?y.checked:a;y.setChecked(m,n,!0,a)}const{half:f,all:d}=ry(c);d||(this.checked=d,this.indeterminate=f)}};if(this.shouldLoadData()){this.loadData(()=>{u(),Cd(this)},{checked:t!==!1});return}else u()}const o=this.parent;!o||o.level===0||r||Cd(o)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(o=>o.data),r={},a=[];t.forEach((o,s)=>{const l=o[qu];!!l&&n.findIndex(c=>c[qu]===l)>=0?r[l]={index:s,data:o}:a.push({index:s,data:o})}),this.store.lazy||n.forEach(o=>{r[o[qu]]||this.removeChildByData(o)}),a.forEach(({index:o,data:s})=>{this.insertChild({data:s},o)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,o)},a=()=>{this.loading=!1};this.store.load(this,r,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||Cd(this)}};class _ue{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)cn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new ay({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=function(o){const s=o.root?o.root.childNodes:o.childNodes;if(s.forEach(l=>{l.visible=n.call(l,t,l.data,l),a(l)}),!o.visible&&s.length){let l=!0;l=!s.some(u=>u.visible),o.root?o.root.visible=l===!1:o.visible=l===!1}t&&o.visible&&!o.isLeaf&&(!r||o.loaded)&&o.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof ay)return t;const n=Kt(t)?C1(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=Ql(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||n&&l.indeterminate)&&(!t||t&&l.isLeaf)&&r.push(l.data),a(l)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(o=>{o.indeterminate&&t.push(o.data),n(o)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)cn(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let o=a.length-1;o>=0;o--){const s=a[o];this.remove(s.data)}for(let o=0,s=n.length;o<s;o++){const l=n[o];this.append(l,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((u,c)=>u.level-c.level),o=Object.create(null),s=Object.keys(r);a.forEach(u=>u.setChecked(!1,!1));const l=u=>{u.childNodes.forEach(c=>{var f;o[c.data[t]]=!0,(f=c.childNodes)!=null&&f.length&&l(c)})};for(let u=0,c=a.length;u<c;u++){const f=a[u],d=f.data[t].toString();if(!s.includes(d)){f.checked&&!o[d]&&f.setChecked(!1,!1);continue}if(f.childNodes.length&&l(f),f.isLeaf||this.checkStrictly){f.setChecked(!0,!1);continue}if(f.setChecked(!0,!0),n){f.setChecked(!1,!1);const g=function(y){y.childNodes.forEach(S=>{S.isLeaf||S.setChecked(!1,!1),g(S)})};g(f)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(o=>{a[(o||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(o=>{a[o]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const wue=he({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Je("tree"),n=dt("NodeInstance"),r=dt("RootTree");return()=>{const a=e.node,{data:o,store:s}=a;return e.renderContent?e.renderContent(_t,{_self:n,node:a,data:o,store:s}):Ue(r.ctx.slots,"default",{node:a,data:o},()=>[_t("span",{class:t.be("node","label")},[a.label])])}}});var Sue=at(wue,[["__file","tree-node-content.vue"]]);function s$(e){const t=dt("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),nn("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const l$=Symbol("dragEvents");function Tue({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const o=Je("tree"),s=ee({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return nn(l$,{treeNodeDragStart:({event:f,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return f.preventDefault(),!1;f.dataTransfer.effectAllowed="move";try{f.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=d,t.emit("node-drag-start",d.node,f)},treeNodeDragOver:({event:f,treeNode:d})=>{const p=d,g=s.value.dropNode;g&&g.node.id!==p.node.id&&da(g.$el,o.is("drop-inner"));const y=s.value.draggingNode;if(!y||!p)return;let m=!0,S=!0,_=!0,P=!0;typeof e.allowDrop=="function"&&(m=e.allowDrop(y.node,p.node,"prev"),P=S=e.allowDrop(y.node,p.node,"inner"),_=e.allowDrop(y.node,p.node,"next")),f.dataTransfer.dropEffect=S||m||_?"move":"none",(m||S||_)&&(g==null?void 0:g.node.id)!==p.node.id&&(g&&t.emit("node-drag-leave",y.node,g.node,f),t.emit("node-drag-enter",y.node,p.node,f)),m||S||_?s.value.dropNode=p:s.value.dropNode=null,p.node.nextSibling===y.node&&(_=!1),p.node.previousSibling===y.node&&(m=!1),p.node.contains(y.node,!1)&&(S=!1),(y.node===p.node||y.node.contains(p.node))&&(m=!1,S=!1,_=!1);const A=p.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),$=n.value.getBoundingClientRect();let k;const L=m?S?.25:_?.45:1:-1,B=_?S?.75:m?.55:0:1;let H=-9999;const G=f.clientY-A.top;G<A.height*L?k="before":G>A.height*B?k="after":S?k="inner":k="none";const j=p.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),W=r.value;k==="before"?H=j.top-$.top:k==="after"&&(H=j.bottom-$.top),W.style.top=`${H}px`,W.style.left=`${j.right-$.left}px`,k==="inner"?lo(p.$el,o.is("drop-inner")):da(p.$el,o.is("drop-inner")),s.value.showDropIndicator=k==="before"||k==="after",s.value.allowDrop=s.value.showDropIndicator||P,s.value.dropType=k,t.emit("node-drag-over",y.node,p.node,f)},treeNodeDragEnd:f=>{const{draggingNode:d,dropType:p,dropNode:g}=s.value;if(f.preventDefault(),f.dataTransfer.dropEffect="move",d&&g){const y={data:d.node.data};p!=="none"&&d.node.remove(),p==="before"?g.node.parent.insertBefore(y,g.node):p==="after"?g.node.parent.insertAfter(y,g.node):p==="inner"&&g.node.insertChild(y),p!=="none"&&(a.value.registerNode(y),a.value.key&&d.node.eachNode(m=>{var S;(S=a.value.nodesMap[m.data[a.value.key]])==null||S.setChecked(m.checked,!a.value.checkStrictly)})),da(g.$el,o.is("drop-inner")),t.emit("node-drag-end",d.node,g.node,p,f),p!=="none"&&t.emit("node-drop",d.node,g.node,p,f)}d&&!g&&t.emit("node-drag-end",d.node,null,p,f),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const Eue=he({name:"ElTreeNode",components:{ElCollapseTransition:kv,ElCheckbox:So,NodeContent:Sue,ElIcon:ht,Loading:nl},props:{node:{type:ay,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Je("tree"),{broadcastExpanded:r}=s$(e),a=dt("RootTree"),o=ee(!1),s=ee(!1),l=ee(null),u=ee(null),c=ee(null),f=dt(l$),d=Gt();nn("NodeInstance",d),e.node.expanded&&(o.value=!0,s.value=!0);const p=a.props.props.children||"children";We(()=>{const G=e.node.data[p];return G&&[...G]},()=>{e.node.updateChildren()}),We(()=>e.node.indeterminate,G=>{m(e.node.checked,G)}),We(()=>e.node.checked,G=>{m(G,e.node.indeterminate)}),We(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),We(()=>e.node.expanded,G=>{bt(()=>o.value=G),G&&(s.value=!0)});const g=G=>C1(a.props.nodeKey,G.data),y=G=>{const j=e.props.class;if(!j)return{};let W;if(Pt(j)){const{data:Q}=G;W=j(Q,G)}else W=j;return Rt(W)?{[W]:!0}:W},m=(G,j)=>{(l.value!==G||u.value!==j)&&a.ctx.emit("check-change",e.node.data,G,j),l.value=G,u.value=j},S=G=>{ny(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&P(),a.props.checkOnClickNode&&!e.node.disabled&&A(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,d,G)},_=G=>{a.instance.vnode.props.onNodeContextmenu&&(G.stopPropagation(),G.preventDefault()),a.ctx.emit("node-contextmenu",G,e.node.data,e.node,d)},P=()=>{e.node.isLeaf||(o.value?(a.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,d)))},A=(G,j)=>{e.node.setChecked(j.target.checked,!a.props.checkStrictly),bt(()=>{const W=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:W.getCheckedNodes(),checkedKeys:W.getCheckedKeys(),halfCheckedNodes:W.getHalfCheckedNodes(),halfCheckedKeys:W.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:o,childNodeRendered:s,oldChecked:l,oldIndeterminate:u,getNodeKey:g,getNodeClass:y,handleSelectChange:m,handleClick:S,handleContextMenu:_,handleExpandIconClick:P,handleCheckChange:A,handleChildNodeExpand:(G,j,W)=>{r(j),a.ctx.emit("node-expand",G,j,W)},handleDragStart:G=>{a.props.draggable&&f.treeNodeDragStart({event:G,treeNode:e})},handleDragOver:G=>{G.preventDefault(),a.props.draggable&&f.treeNodeDragOver({event:G,treeNode:{$el:c.value,node:e.node}})},handleDrop:G=>{G.preventDefault()},handleDragEnd:G=>{a.props.draggable&&f.treeNodeDragEnd(G)},CaretRight:IP}}}),Cue=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],xue=["aria-expanded"];function Iue(e,t,n,r,a,o){const s=Xt("el-icon"),l=Xt("el-checkbox"),u=Xt("loading"),c=Xt("node-content"),f=Xt("el-tree-node"),d=Xt("el-collapse-transition");return Lt((V(),ie("div",{ref:"node$",class:K([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=Ot((...p)=>e.handleClick&&e.handleClick(...p),["stop"])),onContextmenu:t[2]||(t[2]=(...p)=>e.handleContextMenu&&e.handleContextMenu(...p)),onDragstart:t[3]||(t[3]=Ot((...p)=>e.handleDragStart&&e.handleDragStart(...p),["stop"])),onDragover:t[4]||(t[4]=Ot((...p)=>e.handleDragOver&&e.handleDragOver(...p),["stop"])),onDragend:t[5]||(t[5]=Ot((...p)=>e.handleDragEnd&&e.handleDragEnd(...p),["stop"])),onDrop:t[6]||(t[6]=Ot((...p)=>e.handleDrop&&e.handleDrop(...p),["stop"]))},[de("div",{class:K(e.ns.be("node","content")),style:vt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(V(),Fe(s,{key:0,class:K([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Ot(e.handleExpandIconClick,["stop"])},{default:Ce(()=>[(V(),Fe(Zt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):Ie("v-if",!0),e.showCheckbox?(V(),Fe(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Ot(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):Ie("v-if",!0),e.node.loading?(V(),Fe(s,{key:2,class:K([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Ce(()=>[ye(u)]),_:1},8,["class"])):Ie("v-if",!0),ye(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),ye(d,null,{default:Ce(()=>[!e.renderAfterExpand||e.childNodeRendered?Lt((V(),ie("div",{key:0,class:K(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(V(!0),ie(mt,null,sn(e.node.childNodes,p=>(V(),Fe(f,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,xue)),[[bn,e.expanded]]):Ie("v-if",!0)]),_:1})],42,Cue)),[[bn,e.node.visible]])}var Aue=at(Eue,[["render",Iue],["__file","tree-node.vue"]]);function Pue({el$:e},t){const n=Je("tree"),r=Fn([]),a=Fn([]);Ht(()=>{s()}),Ji(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),We(a,l=>{l.forEach(u=>{u.setAttribute("tabindex","-1")})}),Bn(e,"keydown",l=>{const u=l.target;if(!u.className.includes(n.b("node")))return;const c=l.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const f=r.value.indexOf(u);let d;if([St.up,St.down].includes(c)){if(l.preventDefault(),c===St.up){d=f===-1?0:f!==0?f-1:r.value.length-1;const g=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d--,d===g){d=-1;break}d<0&&(d=r.value.length-1)}}else{d=f===-1?0:f<r.value.length-1?f+1:0;const g=d;for(;!t.value.getNode(r.value[d].dataset.key).canFocus;){if(d++,d===g){d=-1;break}d>=r.value.length&&(d=0)}}d!==-1&&r.value[d].focus()}[St.left,St.right].includes(c)&&(l.preventDefault(),u.click());const p=u.querySelector('[type="checkbox"]');[St.enter,St.space].includes(c)&&p&&(l.preventDefault(),p.click())});const s=()=>{var l;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const u=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(l=r.value[0])==null||l.setAttribute("tabindex","0")}}const Mue=he({name:"ElTree",components:{ElTreeNode:Aue},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Pn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=hn(),r=Je("tree"),a=ee(new _ue({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const o=ee(a.value.root),s=ee(null),l=ee(null),u=ee(null),{broadcastExpanded:c}=s$(e),{dragState:f}=Tue({props:e,ctx:t,el$:l,dropIndicator$:u,store:a});Pue({el$:l},a);const d=N(()=>{const{childNodes:X}=o.value;return!X||X.length===0||X.every(({visible:te})=>!te)});We(()=>e.currentNodeKey,X=>{a.value.setCurrentNodeKey(X)}),We(()=>e.defaultCheckedKeys,X=>{a.value.setDefaultCheckedKey(X)}),We(()=>e.defaultExpandedKeys,X=>{a.value.setDefaultExpandedKeys(X)}),We(()=>e.data,X=>{a.value.setData(X)},{deep:!0}),We(()=>e.checkStrictly,X=>{a.value.checkStrictly=X});const p=X=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(X)},g=X=>C1(e.nodeKey,X.data),y=X=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const te=a.value.getNode(X);if(!te)return[];const Y=[te.data];let Z=te.parent;for(;Z&&Z!==o.value;)Y.push(Z.data),Z=Z.parent;return Y.reverse()},m=(X,te)=>a.value.getCheckedNodes(X,te),S=X=>a.value.getCheckedKeys(X),_=()=>{const X=a.value.getCurrentNode();return X?X.data:null},P=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const X=_();return X?X[e.nodeKey]:null},A=(X,te)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(X,te)},$=(X,te)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(X,te)},k=(X,te,Y)=>{a.value.setChecked(X,te,Y)},L=()=>a.value.getHalfCheckedNodes(),B=()=>a.value.getHalfCheckedKeys(),H=(X,te=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");ny(a,t.emit,()=>a.value.setUserCurrentNode(X,te))},G=(X,te=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");ny(a,t.emit,()=>a.value.setCurrentNodeKey(X,te))},j=X=>a.value.getNode(X),W=X=>{a.value.remove(X)},Q=(X,te)=>{a.value.append(X,te)},ue=(X,te)=>{a.value.insertBefore(X,te)},se=(X,te)=>{a.value.insertAfter(X,te)},ne=(X,te,Y)=>{c(te),t.emit("node-expand",X,te,Y)},J=(X,te)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(X,te)};return nn("RootTree",{ctx:t,props:e,store:a,root:o,currentNode:s,instance:Gt()}),nn(yi,void 0),{ns:r,store:a,root:o,currentNode:s,dragState:f,el$:l,dropIndicator$:u,isEmpty:d,filter:p,getNodeKey:g,getNodePath:y,getCheckedNodes:m,getCheckedKeys:S,getCurrentNode:_,getCurrentKey:P,setCheckedNodes:A,setCheckedKeys:$,setChecked:k,getHalfCheckedNodes:L,getHalfCheckedKeys:B,setCurrentNode:H,setCurrentKey:G,t:n,getNode:j,remove:W,append:Q,insertBefore:ue,insertAfter:se,handleNodeExpand:ne,updateKeyChildren:J}}});function Oue(e,t,n,r,a,o){const s=Xt("el-tree-node");return V(),ie("div",{ref:"el$",class:K([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(V(!0),ie(mt,null,sn(e.root.childNodes,l=>(V(),Fe(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(V(),ie("div",{key:0,class:K(e.ns.e("empty-block"))},[Ue(e.$slots,"empty",{},()=>{var l;return[de("span",{class:K(e.ns.e("empty-text"))},ot((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)]})],2)):Ie("v-if",!0),Lt(de("div",{ref:"dropIndicator$",class:K(e.ns.e("drop-indicator"))},null,2),[[bn,e.dragState.showDropIndicator]])],2)}var Zp=at(Mue,[["render",Oue],["__file","tree.vue"]]);Zp.install=e=>{e.component(Zp.name,Zp)};const B0=Zp,$ue=B0,Rue=(e,{attrs:t,emit:n},{select:r,tree:a,key:o})=>{const s=Je("tree-select");return We(()=>e.data,()=>{e.filterable&&bt(()=>{var u,c;(c=a.value)==null||c.filter((u=r.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...ui(Wr(e),Object.keys(nu.props)),...t,"onUpdate:modelValue":u=>n(Yt,u),valueKey:o,popperClass:N(()=>{const u=[s.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=a.value)==null||c.filter(u)}}},kue=he({extends:O0,setup(e,t){const n=O0.setup(e,t);delete n.selectOptionClick;const r=Gt().proxy;return bt(()=>{n.select.states.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function oy(e){return e||e===0}function x1(e){return Array.isArray(e)&&e.length}function cd(e){return Array.isArray(e)?e:oy(e)?[e]:[]}function e0(e,t,n,r,a){for(let o=0;o<e.length;o++){const s=e[o];if(t(s,o,e,a))return r?r(s,o,e,a):s;{const l=n(s);if(x1(l)){const u=e0(l,t,n,r,s);if(u)return u}}}}function iy(e,t,n,r){for(let a=0;a<e.length;a++){const o=e[a];t(o,a,e,r);const s=n(o);x1(s)&&iy(s,t,n,o)}}const Lue=(e,{attrs:t,slots:n,emit:r},{select:a,tree:o,key:s})=>{We(()=>e.modelValue,()=>{e.showCheckbox&&bt(()=>{const d=o.value;d&&!ca(d.getCheckedKeys(),cd(e.modelValue))&&d.setCheckedKeys(cd(e.modelValue))})},{immediate:!0,deep:!0});const l=N(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(d,p)=>{var g;const y=l.value[d];return Pt(y)?y(p,(g=o.value)==null?void 0:g.getNode(u("value",p))):p[y]},c=cd(e.modelValue).map(d=>e0(e.data||[],p=>u("value",p)===d,p=>u("children",p),(p,g,y,m)=>m&&u("value",m))).filter(d=>oy(d)),f=N(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return iy(e.data.concat(e.cacheData),p=>{const g=u("value",p);d.push({value:g,currentLabel:u("label",p),isDisabled:u("disabled",p)})},p=>u("children",p)),d});return{...ui(Wr(e),Object.keys(B0.props)),...t,nodeKey:s,expandOnClickNode:N(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:N(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(d,{node:p,data:g,store:y})=>d(kue,{value:u("value",g),label:u("label",g),disabled:u("disabled",g)},e.renderContent?()=>e.renderContent(d,{node:p,data:g,store:y}):n.default?()=>n.default({node:p,data:g,store:y}):void 0),filterNodeMethod:(d,p,g)=>e.filterNodeMethod?e.filterNodeMethod(d,p,g):d?new RegExp(d_(d),"i").test(u("label",p)||""):!0,onNodeClick:(d,p,g)=>{var y,m,S,_;if((y=t.onNodeClick)==null||y.call(t,d,p,g),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||p.isLeaf)){if(!u("disabled",d)){const P=(m=a.value)==null?void 0:m.states.options.get(u("value",d));(S=a.value)==null||S.handleOptionSelect(P)}}else e.expandOnClickNode&&g.proxy.handleExpandIconClick();(_=a.value)==null||_.focus()}},onCheck:(d,p)=>{var g;if(!e.showCheckbox)return;const y=u("value",d),m={};iy([o.value.store.root],A=>m[A.key]=A,A=>A.childNodes);const S=p.checkedKeys,_=e.multiple?cd(e.modelValue).filter(A=>!(A in m)&&!S.includes(A)):[],P=_.concat(S);if(e.checkStrictly)r(Yt,e.multiple?P:P.includes(y)?y:void 0);else if(e.multiple)r(Yt,_.concat(o.value.getCheckedKeys(!0)));else{const A=e0([d],L=>!x1(u("children",L))&&!u("disabled",L),L=>u("children",L)),$=A?u("value",A):void 0,k=oy(e.modelValue)&&!!e0([d],L=>u("value",L)===e.modelValue,L=>u("children",L));r(Yt,$===e.modelValue||k?void 0:$)}bt(()=>{var A;const $=cd(e.modelValue);o.value.setCheckedKeys($),(A=t.onCheck)==null||A.call(t,d,{checkedKeys:o.value.getCheckedKeys(),checkedNodes:o.value.getCheckedNodes(),halfCheckedKeys:o.value.getHalfCheckedKeys(),halfCheckedNodes:o.value.getHalfCheckedNodes()})}),(g=a.value)==null||g.focus()},cacheOptions:f}};var Nue=he({props:{data:{type:Array,default:()=>[]}},setup(e){const t=dt(mh);return We(()=>e.data,()=>{var n;e.data.forEach(a=>{t.states.cachedOptions.has(a.value)||t.states.cachedOptions.set(a.value,a)});const r=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Due=he({name:"ElTreeSelect",inheritAttrs:!1,props:{...nu.props,...B0.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=ee(),o=ee(),s=N(()=>e.nodeKey||e.valueKey||"value"),l=Rue(e,t,{select:a,tree:o,key:s}),{cacheOptions:u,...c}=Lue(e,t,{select:a,tree:o,key:s}),f=Sn({});return r(f),Ht(()=>{Object.assign(f,{...ui(o.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ui(a.value,["focus","blur"])})}),()=>_t(nu,Sn({...l,ref:d=>a.value=d}),{...n,default:()=>[_t(Nue,{data:u.value}),_t(B0,Sn({...c,ref:d=>o.value=d}))]})}});var t0=at(Due,[["__file","tree-select.vue"]]);t0.install=e=>{e.component(t0.name,t0)};const Fue=t0,Bue=Fue,I1=Symbol(),Hue={key:-1,level:-1,data:{}};var xd=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(xd||{}),sy=(e=>(e.ADD="add",e.DELETE="delete",e))(sy||{});const u$={type:Number,default:26},Uue=tt({data:{type:xe(Array),default:()=>Xn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:xe(Object),default:()=>Xn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:xe(Array),default:()=>Xn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:xe(Array),default:()=>Xn([])},indent:{type:Number,default:16},itemSize:u$,icon:{type:Pn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:xe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:xe(Function)},perfMode:{type:Boolean,default:!0}}),Vue=tt({node:{type:xe(Object),default:()=>Xn(Hue)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:u$}),Gue=tt({node:{type:xe(Object),required:!0}}),c$="node-click",d$="node-expand",f$="node-collapse",h$="current-change",p$="check",v$="check-change",m$="node-contextmenu",jue={[c$]:(e,t,n)=>e&&t&&n,[d$]:(e,t)=>e&&t,[f$]:(e,t)=>e&&t,[h$]:(e,t)=>e&&t,[p$]:(e,t)=>e&&t,[v$]:(e,t)=>e&&typeof t=="boolean",[m$]:(e,t,n)=>e&&t&&n},zue={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Kue(e,t){const n=ee(new Set),r=ee(new Set),{emit:a}=Gt();We([()=>t.value,()=>e.defaultCheckedKeys],()=>bt(()=>{P(e.defaultCheckedKeys)}),{immediate:!0});const o=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:A,maxLevel:$}=t.value,k=n.value,L=new Set;for(let B=$-1;B>=1;--B){const H=A.get(B);H&&H.forEach(G=>{const j=G.children;if(j){let W=!0,Q=!1;for(const ue of j){const se=ue.key;if(k.has(se))Q=!0;else if(L.has(se)){W=!1,Q=!0;break}else W=!1}W?k.add(G.key):Q?(L.add(G.key),k.delete(G.key)):(k.delete(G.key),L.delete(G.key))}})}r.value=L},s=A=>n.value.has(A.key),l=A=>r.value.has(A.key),u=(A,$,k=!0)=>{const L=n.value,B=(H,G)=>{L[G?sy.ADD:sy.DELETE](H.key);const j=H.children;!e.checkStrictly&&j&&j.forEach(W=>{W.disabled||B(W,G)})};B(A,$),o(),k&&c(A,$)},c=(A,$)=>{const{checkedNodes:k,checkedKeys:L}=y(),{halfCheckedNodes:B,halfCheckedKeys:H}=m();a(p$,A.data,{checkedKeys:L,checkedNodes:k,halfCheckedKeys:H,halfCheckedNodes:B}),a(v$,A.data,$)};function f(A=!1){return y(A).checkedKeys}function d(A=!1){return y(A).checkedNodes}function p(){return m().halfCheckedKeys}function g(){return m().halfCheckedNodes}function y(A=!1){const $=[],k=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:L}=t.value;n.value.forEach(B=>{const H=L.get(B);H&&(!A||A&&H.isLeaf)&&(k.push(B),$.push(H.data))})}return{checkedKeys:k,checkedNodes:$}}function m(){const A=[],$=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;r.value.forEach(L=>{const B=k.get(L);B&&($.push(L),A.push(B.data))})}return{halfCheckedNodes:A,halfCheckedKeys:$}}function S(A){n.value.clear(),r.value.clear(),bt(()=>{P(A)})}function _(A,$){if(t!=null&&t.value&&e.showCheckbox){const k=t.value.treeNodeMap.get(A);k&&u(k,$,!1)}}function P(A){if(t!=null&&t.value){const{treeNodeMap:$}=t.value;if(e.showCheckbox&&$&&A)for(const k of A){const L=$.get(k);L&&!s(L)&&u(L,!0,!1)}}}return{updateCheckedKeys:o,toggleCheckbox:u,isChecked:s,isIndeterminate:l,getCheckedKeys:f,getCheckedNodes:d,getHalfCheckedKeys:p,getHalfCheckedNodes:g,setChecked:_,setCheckedKeys:S}}function Wue(e,t){const n=ee(new Set([])),r=ee(new Set([])),a=N(()=>Pt(e.filterMethod));function o(l){var u;if(!a.value)return;const c=new Set,f=r.value,d=n.value,p=[],g=((u=t.value)==null?void 0:u.treeNodes)||[],y=e.filterMethod;d.clear();function m(S){S.forEach(_=>{p.push(_),y!=null&&y(l,_.data)?p.forEach(A=>{c.add(A.key)}):_.isLeaf&&d.add(_.key);const P=_.children;if(P&&m(P),!_.isLeaf){if(!c.has(_.key))d.add(_.key);else if(P){let A=!0;for(const $ of P)if(!d.has($.key)){A=!1;break}A?f.add(_.key):f.delete(_.key)}}p.pop()})}return m(g),c}function s(l){return r.value.has(l.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:o,isForceHiddenExpandIcon:s}}function Xue(e,t){const n=ee(new Set(e.defaultExpandedKeys)),r=ee(),a=Fn();We(()=>e.currentNodeKey,_e=>{r.value=_e},{immediate:!0}),We(()=>e.data,_e=>{Ee(_e)},{immediate:!0});const{isIndeterminate:o,isChecked:s,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:g}=Kue(e,a),{doFilter:y,hiddenNodeKeySet:m,isForceHiddenExpandIcon:S}=Wue(e,a),_=N(()=>{var _e;return((_e=e.props)==null?void 0:_e.value)||xd.KEY}),P=N(()=>{var _e;return((_e=e.props)==null?void 0:_e.children)||xd.CHILDREN}),A=N(()=>{var _e;return((_e=e.props)==null?void 0:_e.disabled)||xd.DISABLED}),$=N(()=>{var _e;return((_e=e.props)==null?void 0:_e.label)||xd.LABEL}),k=N(()=>{const _e=n.value,He=m.value,Ae=[],ke=a.value&&a.value.treeNodes||[];function ze(){const ce=[];for(let me=ke.length-1;me>=0;--me)ce.push(ke[me]);for(;ce.length;){const me=ce.pop();if(me&&(He.has(me.key)||Ae.push(me),_e.has(me.key))){const Be=me.children;if(Be){const be=Be.length;for(let Oe=be-1;Oe>=0;--Oe)ce.push(Be[Oe])}}}}return ze(),Ae}),L=N(()=>k.value.length>0);function B(_e){const He=new Map,Ae=new Map;let ke=1;function ze(me,Be=1,be=void 0){var Oe;const Ye=[];for(const qe of me){const Qe=j(qe),et={level:Be,key:Qe,data:qe};et.label=Q(qe),et.parent=be;const je=G(qe);et.disabled=W(qe),et.isLeaf=!je||je.length===0,je&&je.length&&(et.children=ze(je,Be+1,et)),Ye.push(et),He.set(Qe,et),Ae.has(Be)||Ae.set(Be,[]),(Oe=Ae.get(Be))==null||Oe.push(et)}return Be>ke&&(ke=Be),Ye}const ce=ze(_e);return{treeNodeMap:He,levelTreeNodeMap:Ae,maxLevel:ke,treeNodes:ce}}function H(_e){const He=y(_e);He&&(n.value=He)}function G(_e){return _e[P.value]}function j(_e){return _e?_e[_.value]:""}function W(_e){return _e[A.value]}function Q(_e){return _e[$.value]}function ue(_e){n.value.has(_e.key)?Y(_e):te(_e)}function se(_e){n.value=new Set(_e)}function ne(_e,He){t(c$,_e.data,_e,He),J(_e),e.expandOnClickNode&&ue(_e),e.showCheckbox&&e.checkOnClickNode&&!_e.disabled&&l(_e,!s(_e),!0)}function J(_e){ve(_e)||(r.value=_e.key,t(h$,_e.data,_e))}function X(_e,He){l(_e,He)}function te(_e){const He=n.value;if(a.value&&e.accordion){const{treeNodeMap:Ae}=a.value;He.forEach(ke=>{const ze=Ae.get(ke);_e&&_e.level===(ze==null?void 0:ze.level)&&He.delete(ke)})}He.add(_e.key),t(d$,_e.data,_e)}function Y(_e){n.value.delete(_e.key),t(f$,_e.data,_e)}function Z(_e){return n.value.has(_e.key)}function ae(_e){return!!_e.disabled}function ve(_e){const He=r.value;return He!==void 0&&He===_e.key}function we(){var _e,He;if(r.value)return(He=(_e=a.value)==null?void 0:_e.treeNodeMap.get(r.value))==null?void 0:He.data}function Me(){return r.value}function Ge(_e){r.value=_e}function Ee(_e){bt(()=>a.value=B(_e))}function pe(_e){var He;const Ae=Kt(_e)?j(_e):_e;return(He=a.value)==null?void 0:He.treeNodeMap.get(Ae)}return{tree:a,flattenTree:k,isNotEmpty:L,getKey:j,getChildren:G,toggleExpand:ue,toggleCheckbox:l,isExpanded:Z,isChecked:s,isIndeterminate:o,isDisabled:ae,isCurrent:ve,isForceHiddenExpandIcon:S,handleNodeClick:ne,handleNodeCheck:X,getCurrentNode:we,getCurrentKey:Me,setCurrentKey:Ge,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:d,setChecked:p,setCheckedKeys:g,filter:H,setData:Ee,getNode:pe,expandNode:te,collapseNode:Y,setExpandedKeys:se}}var Yue=he({name:"ElTreeNodeContent",props:Gue,setup(e){const t=dt(I1),n=Je("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):_t("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const Jue=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],que=he({name:"ElTreeNode"}),Que=he({...que,props:Vue,emits:zue,setup(e,{emit:t}){const n=e,r=dt(I1),a=Je("tree"),o=N(()=>{var d;return(d=r==null?void 0:r.props.indent)!=null?d:16}),s=N(()=>{var d;return(d=r==null?void 0:r.props.icon)!=null?d:IP}),l=d=>{t("click",n.node,d)},u=()=>{t("toggle",n.node)},c=d=>{t("check",n.node,d)},f=d=>{var p,g,y,m;(y=(g=(p=r==null?void 0:r.instance)==null?void 0:p.vnode)==null?void 0:g.props)!=null&&y.onNodeContextmenu&&(d.stopPropagation(),d.preventDefault()),r==null||r.ctx.emit(m$,d,(m=n.node)==null?void 0:m.data,n.node)};return(d,p)=>{var g,y,m;return V(),ie("div",{ref:"node$",class:K([h(a).b("node"),h(a).is("expanded",d.expanded),h(a).is("current",d.current),h(a).is("focusable",!d.disabled),h(a).is("checked",!d.disabled&&d.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":d.expanded,"aria-disabled":d.disabled,"aria-checked":d.checked,"data-key":(g=d.node)==null?void 0:g.key,onClick:Ot(l,["stop"]),onContextmenu:f},[de("div",{class:K(h(a).be("node","content")),style:vt({paddingLeft:`${(d.node.level-1)*h(o)}px`,height:d.itemSize+"px"})},[h(s)?(V(),Fe(h(ht),{key:0,class:K([h(a).is("leaf",!!((y=d.node)!=null&&y.isLeaf)),h(a).is("hidden",d.hiddenExpandIcon),{expanded:!((m=d.node)!=null&&m.isLeaf)&&d.expanded},h(a).be("node","expand-icon")]),onClick:Ot(u,["stop"])},{default:Ce(()=>[(V(),Fe(Zt(h(s))))]),_:1},8,["class","onClick"])):Ie("v-if",!0),d.showCheckbox?(V(),Fe(h(So),{key:1,"model-value":d.checked,indeterminate:d.indeterminate,disabled:d.disabled,onChange:c,onClick:p[0]||(p[0]=Ot(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):Ie("v-if",!0),ye(h(Yue),{node:d.node},null,8,["node"])],6)],42,Jue)}}});var Zue=at(Que,[["__file","tree-node.vue"]]);const ece=he({name:"ElTreeV2"}),tce=he({...ece,props:Uue,emits:jue,setup(e,{expose:t,emit:n}){const r=e,a=Vr(),o=N(()=>r.itemSize);nn(I1,{ctx:{emit:n,slots:a},props:r,instance:Gt()}),nn(yi,void 0);const{t:s}=hn(),l=Je("tree"),{flattenTree:u,isNotEmpty:c,toggleExpand:f,isExpanded:d,isIndeterminate:p,isChecked:g,isDisabled:y,isCurrent:m,isForceHiddenExpandIcon:S,handleNodeClick:_,handleNodeCheck:P,toggleCheckbox:A,getCurrentNode:$,getCurrentKey:k,setCurrentKey:L,getCheckedKeys:B,getCheckedNodes:H,getHalfCheckedKeys:G,getHalfCheckedNodes:j,setChecked:W,setCheckedKeys:Q,filter:ue,setData:se,getNode:ne,expandNode:J,collapseNode:X,setExpandedKeys:te}=Xue(r,n);return t({toggleCheckbox:A,getCurrentNode:$,getCurrentKey:k,setCurrentKey:L,getCheckedKeys:B,getCheckedNodes:H,getHalfCheckedKeys:G,getHalfCheckedNodes:j,setChecked:W,setCheckedKeys:Q,filter:ue,setData:se,getNode:ne,expandNode:J,collapseNode:X,setExpandedKeys:te}),(Y,Z)=>{var ae;return V(),ie("div",{class:K([h(l).b(),{[h(l).m("highlight-current")]:Y.highlightCurrent}]),role:"tree"},[h(c)?(V(),Fe(h(w3),{key:0,"class-name":h(l).b("virtual-list"),data:h(u),total:h(u).length,height:Y.height,"item-size":h(o),"perf-mode":Y.perfMode},{default:Ce(({data:ve,index:we,style:Me})=>[(V(),Fe(Zue,{key:ve[we].key,style:vt(Me),node:ve[we],expanded:h(d)(ve[we]),"show-checkbox":Y.showCheckbox,checked:h(g)(ve[we]),indeterminate:h(p)(ve[we]),"item-size":h(o),disabled:h(y)(ve[we]),current:h(m)(ve[we]),"hidden-expand-icon":h(S)(ve[we]),onClick:h(_),onToggle:h(f),onCheck:h(P)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(V(),ie("div",{key:1,class:K(h(l).e("empty-block"))},[de("span",{class:K(h(l).e("empty-text"))},ot((ae=Y.emptyText)!=null?ae:h(s)("el.tree.emptyText")),3)],2))],2)}}});var nce=at(tce,[["__file","tree.vue"]]);const rce=jt(nce),g$=Symbol("uploadContextKey"),ace="ElUpload";class oce extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function YC(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new oce(r,n.status,t.method,e)}function ice(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const sce=e=>{typeof XMLHttpRequest>"u"&&Er(ace,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const s=o;s.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(s)});const r=new FormData;if(e.data)for(const[o,s]of Object.entries(e.data))st(s)&&s.length?r.append(o,...s):r.append(o,s);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(YC(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(YC(n,e,t));e.onSuccess(ice(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((o,s)=>t.setRequestHeader(s,o));else for(const[o,s]of Object.entries(a))Br(s)||t.setRequestHeader(o,String(s));return t.send(r),t},y$=["text","picture","picture-card"];let lce=1;const ly=()=>Date.now()+lce++,b$=tt({action:{type:String,default:"#"},headers:{type:xe(Object)},method:{type:String,default:"post"},data:{type:xe([Object,Function,Promise]),default:()=>Xn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:xe(Array),default:()=>Xn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:y$,default:"text"},httpRequest:{type:xe(Function),default:sce},disabled:Boolean,limit:Number}),uce=tt({...b$,beforeUpload:{type:xe(Function),default:xn},beforeRemove:{type:xe(Function)},onRemove:{type:xe(Function),default:xn},onChange:{type:xe(Function),default:xn},onPreview:{type:xe(Function),default:xn},onSuccess:{type:xe(Function),default:xn},onProgress:{type:xe(Function),default:xn},onError:{type:xe(Function),default:xn},onExceed:{type:xe(Function),default:xn},crossorigin:{type:xe(String)}}),cce=tt({files:{type:xe(Array),default:()=>Xn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:xe(Function),default:xn},listType:{type:String,values:y$,default:"text"},crossorigin:{type:xe(String)}}),dce={remove:e=>!!e},fce=["onKeydown"],hce=["src","crossorigin"],pce=["onClick"],vce=["title"],mce=["onClick"],gce=["onClick"],yce=he({name:"ElUploadList"}),bce=he({...yce,props:cce,emits:dce,setup(e,{emit:t}){const n=e,{t:r}=hn(),a=Je("upload"),o=Je("icon"),s=Je("list"),l=Ca(),u=ee(!1),c=N(()=>[a.b("list"),a.bm("list",n.listType),a.is("disabled",n.disabled)]),f=d=>{t("remove",d)};return(d,p)=>(V(),Fe(fA,{tag:"ul",class:K(h(c)),name:h(s).b()},{default:Ce(()=>[(V(!0),ie(mt,null,sn(d.files,g=>(V(),ie("li",{key:g.uid||g.name,class:K([h(a).be("list","item"),h(a).is(g.status),{focusing:u.value}]),tabindex:"0",onKeydown:An(y=>!h(l)&&f(g),["delete"]),onFocus:p[0]||(p[0]=y=>u.value=!0),onBlur:p[1]||(p[1]=y=>u.value=!1),onClick:p[2]||(p[2]=y=>u.value=!1)},[Ue(d.$slots,"default",{file:g},()=>[d.listType==="picture"||g.status!=="uploading"&&d.listType==="picture-card"?(V(),ie("img",{key:0,class:K(h(a).be("list","item-thumbnail")),src:g.url,crossorigin:d.crossorigin,alt:""},null,10,hce)):Ie("v-if",!0),g.status==="uploading"||d.listType!=="picture-card"?(V(),ie("div",{key:1,class:K(h(a).be("list","item-info"))},[de("a",{class:K(h(a).be("list","item-name")),onClick:Ot(y=>d.handlePreview(g),["prevent"])},[ye(h(ht),{class:K(h(o).m("document"))},{default:Ce(()=>[ye(h(E7))]),_:1},8,["class"]),de("span",{class:K(h(a).be("list","item-file-name")),title:g.name},ot(g.name),11,vce)],10,pce),g.status==="uploading"?(V(),Fe(h(f3),{key:0,type:d.listType==="picture-card"?"circle":"line","stroke-width":d.listType==="picture-card"?6:2,percentage:Number(g.percentage),style:vt(d.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Ie("v-if",!0)],2)):Ie("v-if",!0),de("label",{class:K(h(a).be("list","item-status-label"))},[d.listType==="text"?(V(),Fe(h(ht),{key:0,class:K([h(o).m("upload-success"),h(o).m("circle-check")])},{default:Ce(()=>[ye(h(p_))]),_:1},8,["class"])):["picture-card","picture"].includes(d.listType)?(V(),Fe(h(ht),{key:1,class:K([h(o).m("upload-success"),h(o).m("check")])},{default:Ce(()=>[ye(h(sh))]),_:1},8,["class"])):Ie("v-if",!0)],2),h(l)?Ie("v-if",!0):(V(),Fe(h(ht),{key:2,class:K(h(o).m("close")),onClick:y=>f(g)},{default:Ce(()=>[ye(h(Go))]),_:2},1032,["class","onClick"])),Ie(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Ie(" This is a bug which needs to be fixed "),Ie(" TODO: Fix the incorrect navigation interaction "),h(l)?Ie("v-if",!0):(V(),ie("i",{key:3,class:K(h(o).m("close-tip"))},ot(h(r)("el.upload.deleteTip")),3)),d.listType==="picture-card"?(V(),ie("span",{key:4,class:K(h(a).be("list","item-actions"))},[de("span",{class:K(h(a).be("list","item-preview")),onClick:y=>d.handlePreview(g)},[ye(h(ht),{class:K(h(o).m("zoom-in"))},{default:Ce(()=>[ye(h(OP))]),_:1},8,["class"])],10,mce),h(l)?Ie("v-if",!0):(V(),ie("span",{key:0,class:K(h(a).be("list","item-delete")),onClick:y=>f(g)},[ye(h(ht),{class:K(h(o).m("delete"))},{default:Ce(()=>[ye(h(S7))]),_:1},8,["class"])],10,gce))],2)):Ie("v-if",!0)])],42,fce))),128)),Ue(d.$slots,"append")]),_:3},8,["class","name"]))}});var JC=at(bce,[["__file","upload-list.vue"]]);const _ce=tt({disabled:{type:Boolean,default:!1}}),wce={file:e=>st(e)},Sce=["onDrop","onDragover"],_$="ElUploadDrag",Tce=he({name:_$}),Ece=he({...Tce,props:_ce,emits:wce,setup(e,{emit:t}){dt(g$)||Er(_$,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Je("upload"),a=ee(!1),o=Ca(),s=u=>{if(o.value)return;a.value=!1,u.stopPropagation();const c=Array.from(u.dataTransfer.files);t("file",c)},l=()=>{o.value||(a.value=!0)};return(u,c)=>(V(),ie("div",{class:K([h(r).b("dragger"),h(r).is("dragover",a.value)]),onDrop:Ot(s,["prevent"]),onDragover:Ot(l,["prevent"]),onDragleave:c[0]||(c[0]=Ot(f=>a.value=!1,["prevent"]))},[Ue(u.$slots,"default")],42,Sce))}});var Cce=at(Ece,[["__file","upload-dragger.vue"]]);const xce=tt({...b$,beforeUpload:{type:xe(Function),default:xn},onRemove:{type:xe(Function),default:xn},onStart:{type:xe(Function),default:xn},onSuccess:{type:xe(Function),default:xn},onProgress:{type:xe(Function),default:xn},onError:{type:xe(Function),default:xn},onExceed:{type:xe(Function),default:xn}}),Ice=["onKeydown"],Ace=["name","multiple","accept"],Pce=he({name:"ElUploadContent",inheritAttrs:!1}),Mce=he({...Pce,props:xce,setup(e,{expose:t}){const n=e,r=Je("upload"),a=Ca(),o=Fn({}),s=Fn(),l=m=>{if(m.length===0)return;const{autoUpload:S,limit:_,fileList:P,multiple:A,onStart:$,onExceed:k}=n;if(_&&P.length+m.length>_){k(m,P);return}A||(m=m.slice(0,1));for(const L of m){const B=L;B.uid=ly(),$(B),S&&u(B)}},u=async m=>{if(s.value.value="",!n.beforeUpload)return f(m);let S,_={};try{const A=n.data,$=n.beforeUpload(m);_=d0(n.data)?S0(n.data):n.data,S=await $,d0(n.data)&&ca(A,_)&&(_=S0(n.data))}catch{S=!1}if(S===!1){n.onRemove(m);return}let P=m;S instanceof Blob&&(S instanceof File?P=S:P=new File([S],m.name,{type:m.type})),f(Object.assign(P,{uid:m.uid}),_)},c=async(m,S)=>Pt(m)?m(S):m,f=async(m,S)=>{const{headers:_,data:P,method:A,withCredentials:$,name:k,action:L,onProgress:B,onSuccess:H,onError:G,httpRequest:j}=n;try{S=await c(S??P,m)}catch{n.onRemove(m);return}const{uid:W}=m,Q={headers:_||{},withCredentials:$,file:m,data:S,method:A,filename:k,action:L,onProgress:se=>{B(se,m)},onSuccess:se=>{H(se,m),delete o.value[W]},onError:se=>{G(se,m),delete o.value[W]}},ue=j(Q);o.value[W]=ue,ue instanceof Promise&&ue.then(Q.onSuccess,Q.onError)},d=m=>{const S=m.target.files;S&&l(Array.from(S))},p=()=>{a.value||(s.value.value="",s.value.click())},g=()=>{p()};return t({abort:m=>{J9(o.value).filter(m?([_])=>String(m.uid)===_:()=>!0).forEach(([_,P])=>{P instanceof XMLHttpRequest&&P.abort(),delete o.value[_]})},upload:u}),(m,S)=>(V(),ie("div",{class:K([h(r).b(),h(r).m(m.listType),h(r).is("drag",m.drag)]),tabindex:"0",onClick:p,onKeydown:An(Ot(g,["self"]),["enter","space"])},[m.drag?(V(),Fe(Cce,{key:0,disabled:h(a),onFile:l},{default:Ce(()=>[Ue(m.$slots,"default")]),_:3},8,["disabled"])):Ue(m.$slots,"default",{key:1}),de("input",{ref_key:"inputRef",ref:s,class:K(h(r).e("input")),name:m.name,multiple:m.multiple,accept:m.accept,type:"file",onChange:d,onClick:S[0]||(S[0]=Ot(()=>{},["stop"]))},null,42,Ace)],42,Ice))}});var qC=at(Mce,[["__file","upload-content.vue"]]);const QC="ElUpload",ZC=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Oce=(e,t)=>{const n=NA(e,"fileList",void 0,{passive:!0}),r=p=>n.value.find(g=>g.uid===p.uid);function a(p){var g;(g=t.value)==null||g.abort(p)}function o(p=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!p.includes(g.status))}const s=(p,g)=>{const y=r(g);y&&(console.error(p),y.status="fail",n.value.splice(n.value.indexOf(y),1),e.onError(p,y,n.value),e.onChange(y,n.value))},l=(p,g)=>{const y=r(g);y&&(e.onProgress(p,y,n.value),y.status="uploading",y.percentage=Math.round(p.percent))},u=(p,g)=>{const y=r(g);y&&(y.status="success",y.response=p,e.onSuccess(p,y,n.value),e.onChange(y,n.value))},c=p=>{Br(p.uid)&&(p.uid=ly());const g={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(p)}catch(y){y.message,e.onError(y,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},f=async p=>{const g=p instanceof File?r(p):p;g||Er(QC,"file to be removed not found");const y=m=>{a(m);const S=n.value;S.splice(S.indexOf(m),1),e.onRemove(m,S),ZC(m)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&y(g):y(g)};function d(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var g;return p&&((g=t.value)==null?void 0:g.upload(p))})}return We(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(g=>{const{raw:y,url:m}=g;if(!m&&y)try{g.url=URL.createObjectURL(y)}catch(S){e.onError(S,g,n.value)}return g}))}),We(n,p=>{for(const g of p)g.uid||(g.uid=ly()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:o,handleError:s,handleProgress:l,handleStart:c,handleSuccess:u,handleRemove:f,submit:d,revokeFileObjectURL:ZC}},$ce=he({name:"ElUpload"}),Rce=he({...$ce,props:uce,setup(e,{expose:t}){const n=e,r=Ca(),a=Fn(),{abort:o,submit:s,clearFiles:l,uploadFiles:u,handleStart:c,handleError:f,handleRemove:d,handleSuccess:p,handleProgress:g,revokeFileObjectURL:y}=Oce(n,a),m=N(()=>n.listType==="picture-card"),S=N(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:p,onError:f,onRemove:d}));return Dn(()=>{u.value.forEach(y)}),nn(g$,{accept:On(n,"accept")}),t({abort:o,submit:s,clearFiles:l,handleStart:c,handleRemove:d}),(_,P)=>(V(),ie("div",null,[h(m)&&_.showFileList?(V(),Fe(JC,{key:0,disabled:h(r),"list-type":_.listType,files:h(u),crossorigin:_.crossorigin,"handle-preview":_.onPreview,onRemove:h(d)},Gi({append:Ce(()=>[ye(qC,rn({ref_key:"uploadRef",ref:a},h(S)),{default:Ce(()=>[_.$slots.trigger?Ue(_.$slots,"trigger",{key:0}):Ie("v-if",!0),!_.$slots.trigger&&_.$slots.default?Ue(_.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)]),_:2},[_.$slots.file?{name:"default",fn:Ce(({file:A})=>[Ue(_.$slots,"file",{file:A})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Ie("v-if",!0),!h(m)||h(m)&&!_.showFileList?(V(),Fe(qC,rn({key:1,ref_key:"uploadRef",ref:a},h(S)),{default:Ce(()=>[_.$slots.trigger?Ue(_.$slots,"trigger",{key:0}):Ie("v-if",!0),!_.$slots.trigger&&_.$slots.default?Ue(_.$slots,"default",{key:1}):Ie("v-if",!0)]),_:3},16)):Ie("v-if",!0),_.$slots.trigger?Ue(_.$slots,"default",{key:2}):Ie("v-if",!0),Ue(_.$slots,"tip"),!h(m)&&_.showFileList?(V(),Fe(JC,{key:3,disabled:h(r),"list-type":_.listType,files:h(u),crossorigin:_.crossorigin,"handle-preview":_.onPreview,onRemove:h(d)},Gi({_:2},[_.$slots.file?{name:"default",fn:Ce(({file:A})=>[Ue(_.$slots,"file",{file:A})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Ie("v-if",!0)]))}});var kce=at(Rce,[["__file","upload.vue"]]);const Lce=jt(kce),Nce=tt({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:xe([String,Array]),default:"Element Plus"},font:{type:xe(Object)},gap:{type:xe(Array),default:()=>[100,100]},offset:{type:xe(Array)}});function Dce(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Fce(e){return Object.keys(e).map(t=>`${Dce(t)}: ${e[t]};`).join(" ")}function Bce(){return window.devicePixelRatio||1}const Hce=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},w$=3;function Ym(e,t,n=1){const r=document.createElement("canvas"),a=r.getContext("2d"),o=e*n,s=t*n;return r.setAttribute("width",`${o}px`),r.setAttribute("height",`${s}px`),a.save(),[a,r,o,s]}function Uce(){function e(t,n,r,a,o,s,l,u){const[c,f,d,p]=Ym(a,o,r);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,d,p);else{const{color:ae,fontSize:ve,fontStyle:we,fontWeight:Me,fontFamily:Ge,textAlign:Ee,textBaseline:pe}=s,_e=Number(ve)*r;c.font=`${we} normal ${Me} ${_e}px/${o}px ${Ge}`,c.fillStyle=ae,c.textAlign=Ee,c.textBaseline=pe;const He=Array.isArray(t)?t:[t];He==null||He.forEach((Ae,ke)=>{c.fillText(Ae??"",d/2,ke*(_e+w$*r))})}const g=Math.PI/180*Number(n),y=Math.max(a,o),[m,S,_]=Ym(y,y,r);m.translate(_/2,_/2),m.rotate(g),d>0&&p>0&&m.drawImage(f,-d/2,-p/2);function P(ae,ve){const we=ae*Math.cos(g)-ve*Math.sin(g),Me=ae*Math.sin(g)+ve*Math.cos(g);return[we,Me]}let A=0,$=0,k=0,L=0;const B=d/2,H=p/2;[[0-B,0-H],[0+B,0-H],[0+B,0+H],[0-B,0+H]].forEach(([ae,ve])=>{const[we,Me]=P(ae,ve);A=Math.min(A,we),$=Math.max($,we),k=Math.min(k,Me),L=Math.max(L,Me)});const j=A+_/2,W=k+_/2,Q=$-A,ue=L-k,se=l*r,ne=u*r,J=(Q+se)*2,X=ue+ne,[te,Y]=Ym(J,X);function Z(ae=0,ve=0){te.drawImage(S,j,W,Q,ue,ae,ve,Q,ue)}return Z(),Z(Q+se,-ue/2-ne/2),Z(Q+se,+ue/2+ne/2),[Y.toDataURL(),J/r,X/r]}return e}const Vce=he({name:"ElWatermark"}),Gce=he({...Vce,props:Nce,setup(e){const t=e,n={position:"relative"},r=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.color)!=null?W:"rgba(0,0,0,.15)"}),a=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.fontSize)!=null?W:16}),o=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.fontWeight)!=null?W:"normal"}),s=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.fontStyle)!=null?W:"normal"}),l=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.fontFamily)!=null?W:"sans-serif"}),u=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.textAlign)!=null?W:"center"}),c=N(()=>{var j,W;return(W=(j=t.font)==null?void 0:j.textBaseline)!=null?W:"top"}),f=N(()=>t.gap[0]),d=N(()=>t.gap[1]),p=N(()=>f.value/2),g=N(()=>d.value/2),y=N(()=>{var j,W;return(W=(j=t.offset)==null?void 0:j[0])!=null?W:p.value}),m=N(()=>{var j,W;return(W=(j=t.offset)==null?void 0:j[1])!=null?W:g.value}),S=()=>{const j={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let W=y.value-p.value,Q=m.value-g.value;return W>0&&(j.left=`${W}px`,j.width=`calc(100% - ${W}px)`,W=0),Q>0&&(j.top=`${Q}px`,j.height=`calc(100% - ${Q}px)`,Q=0),j.backgroundPosition=`${W}px ${Q}px`,j},_=Fn(null),P=Fn(),A=ee(!1),$=()=>{P.value&&(P.value.remove(),P.value=void 0)},k=(j,W)=>{var Q;_.value&&P.value&&(A.value=!0,P.value.setAttribute("style",Fce({...S(),backgroundImage:`url('${j}')`,backgroundSize:`${Math.floor(W)}px`})),(Q=_.value)==null||Q.append(P.value),setTimeout(()=>{A.value=!1}))},L=j=>{let W=120,Q=64;const ue=t.image,se=t.content,ne=t.width,J=t.height;if(!ue&&j.measureText){j.font=`${Number(a.value)}px ${l.value}`;const X=Array.isArray(se)?se:[se],te=X.map(Y=>{const Z=j.measureText(Y);return[Z.width,Z.fontBoundingBoxAscent!==void 0?Z.fontBoundingBoxAscent+Z.fontBoundingBoxDescent:Z.actualBoundingBoxAscent+Z.actualBoundingBoxDescent]});W=Math.ceil(Math.max(...te.map(Y=>Y[0]))),Q=Math.ceil(Math.max(...te.map(Y=>Y[1])))*X.length+(X.length-1)*w$}return[ne??W,J??Q]},B=Uce(),H=()=>{const W=document.createElement("canvas").getContext("2d"),Q=t.image,ue=t.content,se=t.rotate;if(W){P.value||(P.value=document.createElement("div"));const ne=Bce(),[J,X]=L(W),te=Y=>{const[Z,ae]=B(Y||"",se,ne,J,X,{color:r.value,fontSize:a.value,fontStyle:s.value,fontWeight:o.value,fontFamily:l.value,textAlign:u.value,textBaseline:c.value},f.value,d.value);k(Z,ae)};if(Q){const Y=new Image;Y.onload=()=>{te(Y)},Y.onerror=()=>{te(ue)},Y.crossOrigin="anonymous",Y.referrerPolicy="no-referrer",Y.src=Q}else te(ue)}};return Ht(()=>{H()}),We(()=>t,()=>{H()},{deep:!0,flush:"post"}),Dn(()=>{$()}),LA(_,j=>{A.value||j.forEach(W=>{Hce(W,P.value)&&($(),H())})},{attributes:!0,subtree:!0,childList:!0}),(j,W)=>(V(),ie("div",{ref_key:"containerRef",ref:_,style:vt([n])},[Ue(j.$slots,"default")],4))}});var jce=at(Gce,[["__file","watermark.vue"]]);const zce=jt(jce),Kce=tt({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:xe(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Wce=(e,t,n,r,a)=>{const o=ee(null),s=()=>{let d;return Rt(e.value)?d=document.querySelector(e.value):Pt(e.value)?d=e.value():d=e.value,d},l=()=>{const d=s();if(!d||!t.value){o.value=null;return}!Xce(d)&&t.value&&d.scrollIntoView(a.value);const{left:p,top:g,width:y,height:m}=d.getBoundingClientRect();o.value={left:p,top:g,width:y,height:m,radius:0}};Ht(()=>{We([t,e],()=>{l()},{immediate:!0}),window.addEventListener("resize",l)}),Dn(()=>{window.removeEventListener("resize",l)});const u=d=>{var p;return(p=st(n.value.offset)?n.value.offset[d]:n.value.offset)!=null?p:6},c=N(()=>{var d;if(!o.value)return o.value;const p=u(0),g=u(1),y=((d=n.value)==null?void 0:d.radius)||2;return{left:o.value.left-p,top:o.value.top-g,width:o.value.width+p*2,height:o.value.height+g*2,radius:y}}),f=N(()=>{const d=s();return!r.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var p,g,y,m;return window.DOMRect.fromRect({width:((p=c.value)==null?void 0:p.width)||0,height:((g=c.value)==null?void 0:g.height)||0,x:((y=c.value)==null?void 0:y.left)||0,y:((m=c.value)==null?void 0:m.top)||0})}}});return{mergedPosInfo:c,triggerTarget:f}},Hv=Symbol("ElTour");function Xce(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:a,bottom:o,left:s}=e.getBoundingClientRect();return r>=0&&s>=0&&a<=t&&o<=n}const Yce=(e,t,n,r,a,o,s,l)=>{const u=ee(),c=ee(),f=ee({}),d={x:u,y:c,placement:r,strategy:a,middlewareData:f},p=N(()=>{const _=[cM(h(o)),bG(),yG(),Jce()];return h(l)&&h(n)&&_.push(dM({element:h(n)})),_}),g=async()=>{if(!ln)return;const _=h(e),P=h(t);if(!_||!P)return;const A=await fM(_,P,{placement:h(r),strategy:h(a),middleware:h(p)});dc(d).forEach($=>{d[$].value=A[$]})},y=N(()=>{if(!h(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:h(s)};const{overflow:_}=h(f);return{position:h(a),zIndex:h(s),top:h(c)!=null?`${h(c)}px`:"",left:h(u)!=null?`${h(u)}px`:"",maxWidth:_!=null&&_.maxWidth?`${_==null?void 0:_.maxWidth}px`:""}}),m=N(()=>{if(!h(l))return{};const{arrow:_}=h(f);return{left:(_==null?void 0:_.x)!=null?`${_==null?void 0:_.x}px`:"",top:(_==null?void 0:_.y)!=null?`${_==null?void 0:_.y}px`:""}});let S;return Ht(()=>{const _=h(e),P=h(t);_&&P&&(S=mG(_,P,g)),ta(()=>{g()})}),Dn(()=>{S&&S()}),{update:g,contentStyle:y,arrowStyle:m}},Jce=()=>({name:"overflow",async fn(e){const t=await gG(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),qce={style:{width:"100%",height:"100%"}},Qce=["d"],Zce=he({name:"ElTourMask",inheritAttrs:!1}),ede=he({...Zce,props:Kce,setup(e){const t=e,{ns:n}=dt(Hv),r=N(()=>{var l,u;return(u=(l=t.pos)==null?void 0:l.radius)!=null?u:2}),a=N(()=>{const l=r.value,u=`a${l},${l} 0 0 1`;return{topRight:`${u} ${l},${l}`,bottomRight:`${u} ${-l},${l}`,bottomLeft:`${u} ${-l},${-l}`,topLeft:`${u} ${l},${-l}`}}),o=N(()=>{const l=window.innerWidth,u=window.innerHeight,c=a.value,f=`M${l},0 L0,0 L0,${u} L${l},${u} L${l},0 Z`,d=r.value;return t.pos?`${f} M${t.pos.left+d},${t.pos.top} h${t.pos.width-d*2} ${c.topRight} v${t.pos.height-d*2} ${c.bottomRight} h${-t.pos.width+d*2} ${c.bottomLeft} v${-t.pos.height+d*2} ${c.topLeft} z`:f}),s=N(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return T_(On(t,"visible"),{ns:n}),(l,u)=>l.visible?(V(),ie("div",rn({key:0,class:h(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:l.zIndex,pointerEvents:l.pos&&l.targetAreaClickable?"none":"auto"}},l.$attrs),[(V(),ie("svg",qce,[de("path",{class:K(h(n).e("hollow")),style:vt(h(s)),d:h(o)},null,14,Qce)]))],16)):Ie("v-if",!0)}});var tde=at(ede,[["__file","mask.vue"]]);const nde=["absolute","fixed"],rde=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],A1=tt({placement:{type:xe(String),values:rde,default:"bottom"},reference:{type:xe(Object),default:null},strategy:{type:xe(String),values:nde,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),ade={close:()=>!0},ode=["data-side"],ide=he({name:"ElTourContent"}),sde=he({...ide,props:A1,emits:ade,setup(e,{emit:t}){const n=e,r=ee(n.placement),a=ee(n.strategy),o=ee(null),s=ee(null);We(()=>n.placement,()=>{r.value=n.placement});const{contentStyle:l,arrowStyle:u}=Yce(On(n,"reference"),o,s,r,a,On(n,"offset"),On(n,"zIndex"),On(n,"showArrow")),c=N(()=>r.value.split("-")[0]),{ns:f}=dt(Hv),d=()=>{t("close")},p=g=>{g.detail.focusReason==="pointer"&&g.preventDefault()};return(g,y)=>(V(),ie("div",{ref_key:"contentRef",ref:o,style:vt(h(l)),class:K(h(f).e("content")),"data-side":h(c),tabindex:"-1"},[ye(h(vh),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":o.value||void 0,onReleaseRequested:d,onFocusoutPrevented:p},{default:Ce(()=>[Ue(g.$slots,"default")]),_:3},8,["focus-trap-el"]),g.showArrow?(V(),ie("span",{key:0,ref_key:"arrowRef",ref:s,style:vt(h(u)),class:K(h(f).e("arrow"))},null,6)):Ie("v-if",!0)],14,ode))}});var lde=at(sde,[["__file","content.vue"]]),ude=he({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let r=0;return()=>{var a,o;const s=(a=t.default)==null?void 0:a.call(t),l=[];let u=0;function c(f){st(f)&&f.forEach(d=>{var p;((p=(d==null?void 0:d.type)||{})==null?void 0:p.name)==="ElTourStep"&&(l.push(d),u+=1)})}return s.length&&c($s((o=s[0])==null?void 0:o.children)),r!==u&&(r=u,n("update-total",u)),l.length?l[e.current]:null}}});const cde=tt({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Pn},placement:A1.placement,contentStyle:{type:xe([Object])},mask:{type:xe([Boolean,Object]),default:!0},gap:{type:xe(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:xe([Boolean,Object]),default:()=>({block:"center"})},type:{type:xe(String)},appendTo:{type:xe([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),dde={[Yt]:e=>mr(e),"update:current":e=>It(e),close:e=>It(e),finish:()=>!0,change:e=>It(e)},fde=he({name:"ElTour"}),hde=he({...fde,props:cde,emits:dde,setup(e,{emit:t}){const n=e,r=Je("tour"),a=ee(0),o=ee(),s=NA(n,"current",t,{passive:!0}),l=N(()=>{var G;return(G=o.value)==null?void 0:G.target}),u=N(()=>[r.b(),S.value==="primary"?r.m("primary"):""]),c=N(()=>{var G;return((G=o.value)==null?void 0:G.placement)||n.placement}),f=N(()=>{var G,j;return(j=(G=o.value)==null?void 0:G.contentStyle)!=null?j:n.contentStyle}),d=N(()=>{var G,j;return(j=(G=o.value)==null?void 0:G.mask)!=null?j:n.mask}),p=N(()=>!!d.value&&n.modelValue),g=N(()=>mr(d.value)?void 0:d.value),y=N(()=>{var G,j;return!!l.value&&((j=(G=o.value)==null?void 0:G.showArrow)!=null?j:n.showArrow)}),m=N(()=>{var G,j;return(j=(G=o.value)==null?void 0:G.scrollIntoViewOptions)!=null?j:n.scrollIntoViewOptions}),S=N(()=>{var G,j;return(j=(G=o.value)==null?void 0:G.type)!=null?j:n.type}),{nextZIndex:_}=Uc(),P=_(),A=N(()=>{var G;return(G=n.zIndex)!=null?G:P}),{mergedPosInfo:$,triggerTarget:k}=Wce(l,On(n,"modelValue"),On(n,"gap"),d,m);We(()=>n.modelValue,G=>{G||(s.value=0)});const L=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",s.value))},B=G=>{a.value=G},H=Vr();return nn(Hv,{currentStep:o,current:s,total:a,showClose:On(n,"showClose"),closeIcon:On(n,"closeIcon"),mergedType:S,ns:r,slots:H,updateModelValue(G){t("update:modelValue",G)},onClose(){t("close",s.value)},onFinish(){t("finish")},onChange(){t("change",s.value)}}),(G,j)=>{var W,Q;return V(),ie(mt,null,[(V(),Fe(Lc,{to:G.appendTo},[de("div",rn({class:h(u)},G.$attrs),[ye(tde,{visible:h(p),fill:(W=h(g))==null?void 0:W.color,style:vt((Q=h(g))==null?void 0:Q.style),pos:h($),"z-index":h(A),"target-area-clickable":G.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),G.modelValue?(V(),Fe(lde,{key:h(s),reference:h(k),placement:h(c),"show-arrow":h(y),"z-index":h(A),style:vt(h(f)),onClose:L},{default:Ce(()=>[ye(h(ude),{current:h(s),onUpdateTotal:B},{default:Ce(()=>[Ue(G.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):Ie("v-if",!0)],16)],8,["to"])),Ie(" just for IDE "),Ie("v-if",!0)],64)}}});var pde=at(hde,[["__file","tour.vue"]]);const vde=tt({target:{type:xe([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Pn},showArrow:{type:Boolean,default:void 0},placement:A1.placement,mask:{type:xe([Boolean,Object]),default:void 0},contentStyle:{type:xe([Object])},prevButtonProps:{type:xe(Object)},nextButtonProps:{type:xe(Object)},scrollIntoViewOptions:{type:xe([Boolean,Object]),default:void 0},type:{type:xe(String)}}),mde={close:()=>!0},gde=he({name:"ElTourStep"}),yde=he({...gde,props:vde,emits:mde,setup(e,{emit:t}){const n=e,{Close:r}=g_,{t:a}=hn(),{currentStep:o,current:s,total:l,showClose:u,closeIcon:c,mergedType:f,ns:d,slots:p,updateModelValue:g,onClose:y,onFinish:m,onChange:S}=dt(Hv);We(n,H=>{o.value=H},{immediate:!0});const _=N(()=>{var H;return(H=n.showClose)!=null?H:u.value}),P=N(()=>{var H,G;return(G=(H=n.closeIcon)!=null?H:c.value)!=null?G:r}),A=H=>{if(H)return H9(H,["children","onClick"])},$=()=>{var H,G;s.value-=1,(H=n.prevButtonProps)!=null&&H.onClick&&((G=n.prevButtonProps)==null||G.onClick()),S()},k=()=>{var H;s.value>=l.value-1?L():s.value+=1,(H=n.nextButtonProps)!=null&&H.onClick&&n.nextButtonProps.onClick(),S()},L=()=>{B(),m()},B=()=>{g(!1),y(),t("close")};return(H,G)=>(V(),ie(mt,null,[h(_)?(V(),ie("button",{key:0,"aria-label":"Close",class:K(h(d).e("closebtn")),type:"button",onClick:B},[ye(h(ht),{class:K(h(d).e("close"))},{default:Ce(()=>[(V(),Fe(Zt(h(P))))]),_:1},8,["class"])],2)):Ie("v-if",!0),de("header",{class:K([h(d).e("header"),{"show-close":h(u)}])},[Ue(H.$slots,"header",{},()=>[de("span",{role:"heading",class:K(h(d).e("title"))},ot(H.title),3)])],2),de("div",{class:K(h(d).e("body"))},[Ue(H.$slots,"default",{},()=>[de("span",null,ot(H.description),1)])],2),de("footer",{class:K(h(d).e("footer"))},[de("div",{class:K(h(d).b("indicators"))},[h(p).indicators?(V(),Fe(Zt(h(p).indicators),{key:0,current:h(s),total:h(l)},null,8,["current","total"])):(V(!0),ie(mt,{key:1},sn(h(l),(j,W)=>(V(),ie("span",{key:j,class:K([h(d).b("indicator"),W===h(s)?"is-active":""])},null,2))),128))],2),de("div",{class:K(h(d).b("buttons"))},[h(s)>0?(V(),Fe(h(Hr),rn({key:0,size:"small",type:h(f)},A(H.prevButtonProps),{onClick:$}),{default:Ce(()=>{var j,W;return[dn(ot((W=(j=H.prevButtonProps)==null?void 0:j.children)!=null?W:h(a)("el.tour.previous")),1)]}),_:1},16,["type"])):Ie("v-if",!0),h(s)<=h(l)-1?(V(),Fe(h(Hr),rn({key:1,size:"small",type:h(f)==="primary"?"default":"primary"},A(H.nextButtonProps),{onClick:k}),{default:Ce(()=>{var j,W;return[dn(ot((W=(j=H.nextButtonProps)==null?void 0:j.children)!=null?W:h(s)===h(l)-1?h(a)("el.tour.finish"):h(a)("el.tour.next")),1)]}),_:1},16,["type"])):Ie("v-if",!0)],2)],2)],64))}});var S$=at(yde,[["__file","step.vue"]]);const bde=jt(pde,{TourStep:S$}),_de=Yn(S$),wde=tt({container:{type:xe([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:xe(String),default:"default"},direction:{type:xe(String),default:"vertical"}}),Sde={change:e=>Rt(e),click:(e,t)=>e instanceof MouseEvent&&(Rt(t)||vr(t))},T$=Symbol("anchor"),Tde=he({name:"ElAnchor"}),Ede=he({...Tde,props:wde,emits:Sde,setup(e,{expose:t,emit:n}){const r=e,a=ee(""),o=ee(null),s=ee(null),l=ee(),u={};let c=!1,f=0;const d=Je("anchor"),p=N(()=>[d.b(),r.type==="underline"?d.m("underline"):"",d.m(r.direction)]),g=H=>{u[H.href]=H.el},y=H=>{delete u[H]},m=H=>{a.value!==H&&(a.value=H,n("change",H))};let S=null;const _=H=>{if(!l.value)return;const G=Dh(H);if(!G)return;S&&S(),c=!0;const j=lE(G,l.value),W=a2(G,j),Q=j.scrollHeight-j.clientHeight,ue=Math.min(W-r.offset,Q);S=Z9(l.value,f,ue,r.duration,()=>{setTimeout(()=>{c=!1},20)})},P=H=>{H&&(m(H),_(H))},A=(H,G)=>{n("click",H,G),P(G)},$=mU(()=>{l.value&&(f=uE(l.value));const H=k();c||vr(H)||m(H)}),k=()=>{if(!l.value)return;const H=uE(l.value),G=[];for(const j of Object.keys(u)){const W=Dh(j);if(!W)continue;const Q=lE(W,l.value),ue=a2(W,Q);G.push({top:ue-r.offset-r.bound,href:j})}G.sort((j,W)=>j.top-W.top);for(let j=0;j<G.length;j++){const W=G[j],Q=G[j+1];if(j===0&&H===0)return"";if(W.top<=H&&(!Q||Q.top>H))return W.href}},L=()=>{const H=Dh(r.container);!H||Sv(H)?l.value=window:l.value=H};Bn(l,"scroll",$);const B=N(()=>{if(!o.value||!s.value||!a.value)return{};const H=u[a.value];if(!H)return{};const G=o.value.getBoundingClientRect(),j=s.value.getBoundingClientRect(),W=H.getBoundingClientRect();return r.direction==="horizontal"?{left:`${W.left-G.left}px`,width:`${W.width}px`,opacity:1}:{top:`${W.top-G.top+(W.height-j.height)/2}px`,opacity:1}});return Ht(()=>{L();const H=decodeURIComponent(window.location.hash);Dh(H)?P(H):$()}),We(()=>r.container,()=>{L()}),nn(T$,{ns:d,direction:r.direction,currentAnchor:a,addLink:g,removeLink:y,handleClick:A}),t({scrollTo:P}),(H,G)=>(V(),ie("div",{ref_key:"anchorRef",ref:o,class:K(h(p))},[H.marker?(V(),ie("div",{key:0,ref_key:"markerRef",ref:s,class:K(h(d).e("marker")),style:vt(h(B))},null,6)):Ie("v-if",!0),de("div",{class:K(h(d).e("list"))},[Ue(H.$slots,"default")],2)],2))}});var Cde=at(Ede,[["__file","anchor.vue"]]);const xde=tt({title:String,href:String}),Ide=["href"],Ade=he({name:"ElAnchorLink"}),Pde=he({...Ade,props:xde,setup(e){const t=e,n=ee(null),{ns:r,direction:a,currentAnchor:o,addLink:s,removeLink:l,handleClick:u}=dt(T$),c=N(()=>[r.e("link"),r.is("active",o.value===t.href)]),f=d=>{u(d,t.href)};return We(()=>t.href,(d,p)=>{bt(()=>{p&&l(p),d&&s({href:d,el:n.value})})}),Ht(()=>{const{href:d}=t;d&&s({href:d,el:n.value})}),Dn(()=>{const{href:d}=t;d&&l(d)}),(d,p)=>(V(),ie("div",{class:K(h(r).e("item"))},[de("a",{ref_key:"linkRef",ref:n,class:K(h(c)),href:d.href,onClick:f},[Ue(d.$slots,"default",{},()=>[dn(ot(d.title),1)])],10,Ide),d.$slots["sub-link"]&&h(a)==="vertical"?(V(),ie("div",{key:0,class:K(h(r).e("list"))},[Ue(d.$slots,"sub-link")],2)):Ie("v-if",!0)],2))}});var E$=at(Pde,[["__file","anchor-link.vue"]]);const Mde=jt(Cde,{AnchorLink:E$}),Ode=Yn(E$),$de=tt({options:{type:xe(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Rr,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...Xr(["ariaLabel"])}),Rde={[Yt]:e=>Rt(e)||It(e),[Hn]:e=>Rt(e)||It(e)},kde=["id","aria-label","aria-labelledby"],Lde=["name","disabled","checked","onChange"],Nde=he({name:"ElSegmented"}),Dde=he({...Nde,props:$de,emits:Rde,setup(e,{emit:t}){const n=e,r=Je("segmented"),a=ra(),o=yr(),s=Ca(),{formItem:l}=va(),{inputId:u,isLabeledByFormItem:c}=Xo(n,{formItemContext:l}),f=ee(null),d=aD(),p=Sn({isInit:!1,width:0,translateX:0,disabled:!1,focusVisible:!1}),g=G=>{const j=y(G);t(Yt,j),t(Hn,j)},y=G=>Kt(G)?G.value:G,m=G=>Kt(G)?G.label:G,S=G=>!!(s.value||Kt(G)&&G.disabled),_=G=>n.modelValue===y(G),P=G=>n.options.find(j=>y(j)===G),A=G=>[r.e("item"),r.is("selected",_(G)),r.is("disabled",S(G))],$=()=>{if(!f.value)return;const G=f.value.querySelector(".is-selected"),j=f.value.querySelector(".is-selected input");if(!G||!j){p.width=0,p.translateX=0,p.disabled=!1,p.focusVisible=!1;return}const W=G.getBoundingClientRect();p.isInit=!0,p.width=W.width,p.translateX=G.offsetLeft,p.disabled=S(P(n.modelValue));try{p.focusVisible=j.matches(":focus-visible")}catch{}},k=N(()=>[r.b(),r.m(o.value),r.is("block",n.block)]),L=N(()=>({width:`${p.width}px`,transform:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),B=N(()=>[r.e("item-selected"),r.is("disabled",p.disabled),r.is("focus-visible",p.focusVisible)]),H=N(()=>n.name||a.value);return Wn(f,$),We(d,$),We(()=>n.modelValue,()=>{var G;$(),n.validateEvent&&((G=l==null?void 0:l.validate)==null||G.call(l,"change").catch(j=>void 0))},{flush:"post"}),(G,j)=>(V(),ie("div",{id:h(u),ref_key:"segmentedRef",ref:f,class:K(h(k)),role:"radiogroup","aria-label":h(c)?void 0:G.ariaLabel||"segmented","aria-labelledby":h(c)?h(l).labelId:void 0},[de("div",{class:K(h(r).e("group"))},[de("div",{style:vt(h(L)),class:K(h(B))},null,6),(V(!0),ie(mt,null,sn(G.options,(W,Q)=>(V(),ie("label",{key:Q,class:K(A(W))},[de("input",{class:K(h(r).e("item-input")),type:"radio",name:h(H),disabled:S(W),checked:_(W),onChange:ue=>g(W)},null,42,Lde),de("div",{class:K(h(r).e("item-label"))},[Ue(G.$slots,"default",{item:W},()=>[dn(ot(m(W)),1)])],2)],2))),128))],2)],10,kde))}});var Fde=at(Dde,[["__file","segmented.vue"]]);const Bde=jt(Fde);var Hde=[HG,qG,TK,Qse,MK,DK,MM,qK,QK,Hr,DM,gX,SX,VX,GX,tJ,UY,sJ,So,sY,dO,bJ,DJ,FJ,PJ,pq,$G,xq,Iq,Aq,Pq,Mq,JQ,sZ,lZ,EZ,zO,FZ,Pee,Mee,Oee,e3,jj,zj,ht,Tte,t3,ua,n3,Dte,rne,ane,one,ine,hne,bre,Cre,kre,IM,f3,yO,TY,SY,qre,nae,pJ,ts,nu,O0,zne,Uae,Yae,Jae,xoe,Ooe,O3,Voe,qoe,Qoe,uie,hse,pse,qse,hle,ple,Ef,ble,YW,Cle,Mle,Ole,fa,rue,yue,$ue,Bue,rce,Lce,zce,bde,_de,Mde,Ode,Bde];const ro="ElInfiniteScroll",Ude=50,Vde=200,Gde=0,jde={delay:{type:Number,default:Vde},distance:{type:Number,default:Gde},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},P1=(e,t)=>Object.entries(jde).reduce((n,[r,a])=>{var o,s;const{type:l,default:u}=a,c=e.getAttribute(`infinite-scroll-${r}`);let f=(s=(o=t[c])!=null?o:c)!=null?s:u;return f=f==="false"?!1:f,f=l(f),n[r]=Number.isNaN(f)?u:f,n},{}),C$=e=>{const{observer:t}=e[ro];t&&(t.disconnect(),delete e[ro].observer)},zde=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:o,lastScrollTop:s}=e[ro],{disabled:l,distance:u}=P1(e,a),{clientHeight:c,scrollHeight:f,scrollTop:d}=r,p=d-s;if(e[ro].lastScrollTop=d,o||l||p<0)return;let g=!1;if(n===e)g=f-(c+d)<=u;else{const{clientTop:y,scrollHeight:m}=e,S=a2(e,r);g=d+c>=S+y+m-u}g&&t.call(a)};function Jm(e,t){const{containerEl:n,instance:r}=e[ro],{disabled:a}=P1(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):C$(e))}const Kde={async mounted(e,t){const{instance:n,value:r}=t;Pt(r)||Er(ro,"'v-infinite-scroll' binding value must be a function"),await bt();const{delay:a,immediate:o}=P1(e,n),s=f_(e,!0),l=s===window?document.documentElement:s,u=Ul(zde.bind(null,e,r),a);if(s){if(e[ro]={instance:n,container:s,containerEl:l,delay:a,cb:r,onScroll:u,lastScrollTop:l.scrollTop},o){const c=new MutationObserver(Ul(Jm.bind(null,e,r),Ude));e[ro].observer=c,c.observe(e,{childList:!0,subtree:!0}),Jm(e,r)}s.addEventListener("scroll",u)}},unmounted(e){if(!e[ro])return;const{container:t,onScroll:n}=e[ro];t==null||t.removeEventListener("scroll",n),C$(e)},async updated(e){if(!e[ro])await bt();else{const{containerEl:t,cb:n,observer:r}=e[ro];t.clientHeight&&r&&Jm(e,n)}}},uy=Kde;uy.install=e=>{e.directive("InfiniteScroll",uy)};const Wde=uy;function Xde(e){let t;const n=ee(!1),r=Sn({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){r.text=p}function o(){const p=r.parent,g=d.ns;if(!p.vLoadingAddClassList){let y=p.getAttribute("loading-number");y=Number.parseInt(y)-1,y?p.setAttribute("loading-number",y.toString()):(da(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),da(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=d.$el)==null?void 0:p.parentNode)==null||g.removeChild(d.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),r.visible=!1,(p=e.closed)==null||p.call(e))}function u(){if(!n.value)return;const p=r.parent;n.value=!1,p.vLoadingAddClassList=void 0,o()}const f=gA(he({name:"ElLoading",setup(p,{expose:g}){const{ns:y,zIndex:m}=Mv("loading");return g({ns:y,zIndex:m}),()=>{const S=r.spinner||r.svg,_=_t("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...S?{innerHTML:S}:{}},[_t("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),P=r.text?_t("p",{class:y.b("text")},[r.text]):void 0;return _t(Tr,{name:y.b("fade"),onAfterLeave:u},{default:Ce(()=>[Lt(ye("div",{style:{backgroundColor:r.background||""},class:[y.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[_t("div",{class:y.b("spinner")},[_,P])]),[[bn,r.visible]])])})}}})),d=f.mount(document.createElement("div"));return{...Wr(r),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let Qh;const cy=function(e={}){if(!ln)return;const t=Yde(e);if(t.fullscreen&&Qh)return Qh;const n=Xde({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Qh=void 0)}});Jde(t,t.parent,n),ex(t,t.parent,n),t.parent.vLoadingAddClassList=()=>ex(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),bt(()=>n.visible.value=t.visible),t.fullscreen&&(Qh=n),n},Yde=e=>{var t,n,r,a;let o;return Rt(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:o}},Jde=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Es(document.body,"position"),n.originalOverflow.value=Es(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Es(document.body,"position"),await bt();for(const o of["top","left"]){const s=o==="top"?"scrollTop":"scrollLeft";a[o]=`${e.target.getBoundingClientRect()[o]+document.body[s]+document.documentElement[s]-Number.parseInt(Es(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])a[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=Es(t,"position");for(const[o,s]of Object.entries(a))n.$el.style[o]=s},ex=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?da(t,r.bm("parent","relative")):lo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?lo(t,r.bm("parent","hidden")):da(t,r.bm("parent","hidden"))},n0=Symbol("ElLoading"),tx=(e,t)=>{var n,r,a,o;const s=t.instance,l=p=>Kt(t.value)?t.value[p]:void 0,u=p=>{const g=Rt(p)&&(s==null?void 0:s[p])||p;return g&&ee(g)},c=p=>u(l(p)||e.getAttribute(`element-loading-${Js(p)}`)),f=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,d={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:f,target:(r=l("target"))!=null?r:f?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(o=l("lock"))!=null?o:t.modifiers.lock};e[n0]={options:d,instance:cy(d)}},qde=(e,t)=>{for(const n of Object.keys(t))Un(t[n])&&(t[n].value=e[n])},nx={mounted(e,t){t.value&&tx(e,t)},updated(e,t){const n=e[n0];t.oldValue!==t.value&&(t.value&&!t.oldValue?tx(e,t):t.value&&t.oldValue?Kt(t.value)&&qde(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[n0])==null||t.instance.close(),e[n0]=null}},Qde={install(e){e.directive("loading",nx),e.config.globalProperties.$loading=cy},directive:nx,service:cy},x$=["success","info","warning","error"],oa=Xn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ln?document.body:void 0}),Zde=tt({customClass:{type:String,default:oa.customClass},center:{type:Boolean,default:oa.center},dangerouslyUseHTMLString:{type:Boolean,default:oa.dangerouslyUseHTMLString},duration:{type:Number,default:oa.duration},icon:{type:Pn,default:oa.icon},id:{type:String,default:oa.id},message:{type:xe([String,Object,Function]),default:oa.message},onClose:{type:xe(Function),default:oa.onClose},showClose:{type:Boolean,default:oa.showClose},type:{type:String,values:x$,default:oa.type},plain:{type:Boolean,default:oa.plain},offset:{type:Number,default:oa.offset},zIndex:{type:Number,default:oa.zIndex},grouping:{type:Boolean,default:oa.grouping},repeatNum:{type:Number,default:oa.repeatNum}}),efe={destroy:()=>!0},No=Mb([]),tfe=e=>{const t=No.findIndex(a=>a.id===e),n=No[t];let r;return t>0&&(r=No[t-1]),{current:n,prev:r}},nfe=e=>{const{prev:t}=tfe(e);return t?t.vm.exposed.bottom.value:0},rfe=(e,t)=>No.findIndex(r=>r.id===e)>0?16:t,afe=["id"],ofe=["innerHTML"],ife=he({name:"ElMessage"}),sfe=he({...ife,props:Zde,emits:efe,setup(e,{expose:t}){const n=e,{Close:r}=y_,{ns:a,zIndex:o}=Mv("message"),{currentZIndex:s,nextZIndex:l}=o,u=ee(),c=ee(!1),f=ee(0);let d;const p=N(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=N(()=>{const B=n.type;return{[a.bm("icon",B)]:B&&Gs[B]}}),y=N(()=>n.icon||Gs[n.type]||""),m=N(()=>nfe(n.id)),S=N(()=>rfe(n.id,n.offset)+m.value),_=N(()=>f.value+S.value),P=N(()=>({top:`${S.value}px`,zIndex:s.value}));function A(){n.duration!==0&&({stop:d}=Jl(()=>{k()},n.duration))}function $(){d==null||d()}function k(){c.value=!1}function L({code:B}){B===St.esc&&k()}return Ht(()=>{A(),l(),c.value=!0}),We(()=>n.repeatNum,()=>{$(),A()}),Bn(document,"keydown",L),Wn(u,()=>{f.value=u.value.getBoundingClientRect().height}),t({visible:c,bottom:_,close:k}),(B,H)=>(V(),Fe(Tr,{name:h(a).b("fade"),onBeforeLeave:B.onClose,onAfterLeave:H[0]||(H[0]=G=>B.$emit("destroy")),persisted:""},{default:Ce(()=>[Lt(de("div",{id:B.id,ref_key:"messageRef",ref:u,class:K([h(a).b(),{[h(a).m(B.type)]:B.type},h(a).is("center",B.center),h(a).is("closable",B.showClose),h(a).is("plain",B.plain),B.customClass]),style:vt(h(P)),role:"alert",onMouseenter:$,onMouseleave:A},[B.repeatNum>1?(V(),Fe(h(MM),{key:0,value:B.repeatNum,type:h(p),class:K(h(a).e("badge"))},null,8,["value","type","class"])):Ie("v-if",!0),h(y)?(V(),Fe(h(ht),{key:1,class:K([h(a).e("icon"),h(g)])},{default:Ce(()=>[(V(),Fe(Zt(h(y))))]),_:1},8,["class"])):Ie("v-if",!0),Ue(B.$slots,"default",{},()=>[B.dangerouslyUseHTMLString?(V(),ie(mt,{key:1},[Ie(" Caution here, message could've been compromised, never use user's input as message "),de("p",{class:K(h(a).e("content")),innerHTML:B.message},null,10,ofe)],2112)):(V(),ie("p",{key:0,class:K(h(a).e("content"))},ot(B.message),3))]),B.showClose?(V(),Fe(h(ht),{key:2,class:K(h(a).e("closeBtn")),onClick:Ot(k,["stop"])},{default:Ce(()=>[ye(h(r))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],46,afe),[[bn,c.value]])]),_:3},8,["name","onBeforeLeave"]))}});var lfe=at(sfe,[["__file","message.vue"]]);let ufe=1;const I$=e=>{const t=!e||Rt(e)||zn(e)||Pt(e)?{message:e}:e,n={...oa,...t};if(!n.appendTo)n.appendTo=document.body;else if(Rt(n.appendTo)){let r=document.querySelector(n.appendTo);bo(r)||(r=document.body),n.appendTo=r}return n},cfe=e=>{const t=No.indexOf(e);if(t===-1)return;No.splice(t,1);const{handler:n}=e;n.close()},dfe=({appendTo:e,...t},n)=>{const r=`message_${ufe++}`,a=t.onClose,o=document.createElement("div"),s={...t,id:r,onClose:()=>{a==null||a(),cfe(f)},onDestroy:()=>{Fs(null,o)}},l=ye(lfe,s,Pt(s.message)||zn(s.message)?{default:Pt(s.message)?s.message:()=>s.message}:null);l.appContext=n||Tc._context,Fs(l,o),e.appendChild(o.firstElementChild);const u=l.component,f={id:r,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return f},Tc=(e={},t)=>{if(!ln)return{close:()=>{}};if(It(v2.max)&&No.length>=v2.max)return{close:()=>{}};const n=I$(e);if(n.grouping&&No.length){const a=No.find(({vnode:o})=>{var s;return((s=o.props)==null?void 0:s.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=dfe(n,t);return No.push(r),r.handler};x$.forEach(e=>{Tc[e]=(t={},n)=>{const r=I$(t);return Tc({...r,type:e},n)}});function ffe(e){for(const t of No)(!e||e===t.props.type)&&t.handler.close()}Tc.closeAll=ffe;Tc._context=null;const hfe=RP(Tc,"$message"),pfe=he({name:"ElMessageBox",directives:{TrapFocus:OW},components:{ElButton:Hr,ElFocusTrap:vh,ElInput:ua,ElOverlay:t1,ElIcon:ht,...y_},inheritAttrs:!1,props:{buttonSize:{type:String,validator:kP},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:a,size:o}=Mv("message-box",N(()=>e.buttonSize)),{t:s}=n,{nextZIndex:l}=r,u=ee(!1),c=Sn({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),f=N(()=>{const J=c.type;return{[a.bm("icon",J)]:J&&Gs[J]}}),d=ra(),p=ra(),g=N(()=>c.icon||Gs[c.type]||""),y=N(()=>!!c.message),m=ee(),S=ee(),_=ee(),P=ee(),A=ee(),$=N(()=>c.confirmButtonClass);We(()=>c.inputValue,async J=>{await bt(),e.boxType==="prompt"&&J!==null&&Q()},{immediate:!0}),We(()=>u.value,J=>{var X,te;J&&(e.boxType!=="prompt"&&(c.autofocus?_.value=(te=(X=A.value)==null?void 0:X.$el)!=null?te:m.value:_.value=m.value),c.zIndex=l()),e.boxType==="prompt"&&(J?bt().then(()=>{var Y;P.value&&P.value.$el&&(c.autofocus?_.value=(Y=ue())!=null?Y:m.value:_.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const k=N(()=>e.draggable),L=N(()=>e.overflow);LP(m,S,k,L),Ht(async()=>{await bt(),e.closeOnHashChange&&window.addEventListener("hashchange",B)}),Dn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",B)});function B(){u.value&&(u.value=!1,bt(()=>{c.action&&t("action",c.action)}))}const H=()=>{e.closeOnClickModal&&W(c.distinguishCancelAndClose?"close":"cancel")},G=$_(H),j=J=>{if(c.inputType!=="textarea")return J.preventDefault(),W("confirm")},W=J=>{var X;e.boxType==="prompt"&&J==="confirm"&&!Q()||(c.action=J,c.beforeClose?(X=c.beforeClose)==null||X.call(c,J,c,B):B())},Q=()=>{if(e.boxType==="prompt"){const J=c.inputPattern;if(J&&!J.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;const X=c.inputValidator;if(typeof X=="function"){const te=X(c.inputValue);if(te===!1)return c.editorErrorMessage=c.inputErrorMessage||s("el.messagebox.error"),c.validateError=!0,!1;if(typeof te=="string")return c.editorErrorMessage=te,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},ue=()=>{const J=P.value.$refs;return J.input||J.textarea},se=()=>{W("close")},ne=()=>{e.closeOnPressEscape&&se()};return e.lockScroll&&T_(u),{...Wr(c),ns:a,overlayEvent:G,visible:u,hasMessage:y,typeClass:f,contentId:d,inputId:p,btnSize:o,iconComponent:g,confirmButtonClasses:$,rootRef:m,focusStartRef:_,headerRef:S,inputRef:P,confirmRef:A,doClose:B,handleClose:se,onCloseRequested:ne,handleWrapperClick:H,handleInputEnter:j,handleAction:W,t:s}}}),vfe=["aria-label","aria-describedby"],mfe=["aria-label"],gfe=["id"];function yfe(e,t,n,r,a,o){const s=Xt("el-icon"),l=Xt("close"),u=Xt("el-input"),c=Xt("el-button"),f=Xt("el-focus-trap"),d=Xt("el-overlay");return V(),Fe(Tr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=p=>e.$emit("vanish")),persisted:""},{default:Ce(()=>[Lt(ye(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Ce(()=>[de("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:K(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...p)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...p)),onMousedown:t[9]||(t[9]=(...p)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...p)),onMouseup:t[10]||(t[10]=(...p)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...p))},[ye(f,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Ce(()=>[de("div",{ref:"rootRef",class:K([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:vt(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Ot(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(V(),ie("div",{key:0,ref:"headerRef",class:K([e.ns.e("header"),{"show-close":e.showClose}])},[de("div",{class:K(e.ns.e("title"))},[e.iconComponent&&e.center?(V(),Fe(s,{key:0,class:K([e.ns.e("status"),e.typeClass])},{default:Ce(()=>[(V(),Fe(Zt(e.iconComponent)))]),_:1},8,["class"])):Ie("v-if",!0),de("span",null,ot(e.title),1)],2),e.showClose?(V(),ie("button",{key:0,type:"button",class:K(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=An(Ot(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[ye(s,{class:K(e.ns.e("close"))},{default:Ce(()=>[ye(l)]),_:1},8,["class"])],42,mfe)):Ie("v-if",!0)],2)):Ie("v-if",!0),de("div",{id:e.contentId,class:K(e.ns.e("content"))},[de("div",{class:K(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(V(),Fe(s,{key:0,class:K([e.ns.e("status"),e.typeClass])},{default:Ce(()=>[(V(),Fe(Zt(e.iconComponent)))]),_:1},8,["class"])):Ie("v-if",!0),e.hasMessage?(V(),ie("div",{key:1,class:K(e.ns.e("message"))},[Ue(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(V(),Fe(Zt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(V(),Fe(Zt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Ce(()=>[dn(ot(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Ie("v-if",!0)],2),Lt(de("div",{class:K(e.ns.e("input"))},[ye(u,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=p=>e.inputValue=p),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:K({invalid:e.validateError}),onKeydown:An(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),de("div",{class:K(e.ns.e("errormsg")),style:vt({visibility:e.editorErrorMessage?"visible":"hidden"})},ot(e.editorErrorMessage),7)],2),[[bn,e.showInput]])],10,gfe),de("div",{class:K(e.ns.e("btns"))},[e.showCancelButton?(V(),Fe(c,{key:0,loading:e.cancelButtonLoading,class:K([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=p=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=An(Ot(p=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Ce(()=>[dn(ot(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Ie("v-if",!0),Lt(ye(c,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:K([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=p=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=An(Ot(p=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Ce(()=>[dn(ot(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[bn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,vfe)]),_:3},8,["z-index","overlay-class","mask"]),[[bn,e.visible]])]),_:3})}var bfe=at(pfe,[["render",yfe],["__file","index.vue"]]);const Rf=new Map,_fe=e=>{let t=document.body;return e.appendTo&&(Rt(e.appendTo)&&(t=document.querySelector(e.appendTo)),bo(e.appendTo)&&(t=e.appendTo),bo(t)||(t=document.body)),t},wfe=(e,t,n=null)=>{const r=ye(bfe,e,Pt(e.message)||zn(e.message)?{default:Pt(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Fs(r,t),_fe(e).appendChild(t.firstElementChild),r.component},Sfe=()=>document.createElement("div"),Tfe=(e,t)=>{const n=Sfe();e.onVanish=()=>{Fs(null,n),Rf.delete(a)},e.onAction=o=>{const s=Rf.get(a);let l;e.showInput?l={value:a.inputValue,action:o}:l=o,e.callback?e.callback(l,r.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(l)};const r=wfe(e,n,t),a=r.proxy;for(const o in e)cn(e,o)&&!cn(a.$props,o)&&(a[o]=e[o]);return a.visible=!0,a};function zc(e,t=null){if(!ln)return Promise.reject();let n;return Rt(e)||zn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const o=Tfe(e,t??zc._context);Rf.set(o,{options:e,callback:n,resolve:r,reject:a})})}const Efe=["alert","confirm","prompt"],Cfe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Efe.forEach(e=>{zc[e]=xfe(e)});function xfe(e){return(t,n,r,a)=>{let o="";return Kt(n)?(r=n,o=""):vr(n)?o="":o=n,zc(Object.assign({title:o,message:t,type:"",...Cfe[e]},r,{boxType:e}),a)}}zc.close=()=>{Rf.forEach((e,t)=>{t.doClose()}),Rf.clear()};zc._context=null;const vs=zc;vs.install=e=>{vs._context=e._context,e.config.globalProperties.$msgbox=vs,e.config.globalProperties.$messageBox=vs,e.config.globalProperties.$alert=vs.alert,e.config.globalProperties.$confirm=vs.confirm,e.config.globalProperties.$prompt=vs.prompt};const Ife=vs,A$=["success","info","warning","error"],Afe=tt({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Pn},id:{type:String,default:""},message:{type:xe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:xe(Function),default:()=>{}},onClose:{type:xe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...A$,""],default:""},zIndex:Number}),Pfe={destroy:()=>!0},Mfe=["id"],Ofe=["textContent"],$fe={key:0},Rfe=["innerHTML"],kfe=he({name:"ElNotification"}),Lfe=he({...kfe,props:Afe,emits:Pfe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=Mv("notification"),{nextZIndex:o,currentZIndex:s}=a,{Close:l}=g_,u=ee(!1);let c;const f=N(()=>{const A=n.type;return A&&Gs[n.type]?r.m(A):""}),d=N(()=>n.type&&Gs[n.type]||n.icon),p=N(()=>n.position.endsWith("right")?"right":"left"),g=N(()=>n.position.startsWith("top")?"top":"bottom"),y=N(()=>{var A;return{[g.value]:`${n.offset}px`,zIndex:(A=n.zIndex)!=null?A:s.value}});function m(){n.duration>0&&({stop:c}=Jl(()=>{u.value&&_()},n.duration))}function S(){c==null||c()}function _(){u.value=!1}function P({code:A}){A===St.delete||A===St.backspace?S():A===St.esc?u.value&&_():m()}return Ht(()=>{m(),o(),u.value=!0}),Bn(document,"keydown",P),t({visible:u,close:_}),(A,$)=>(V(),Fe(Tr,{name:h(r).b("fade"),onBeforeLeave:A.onClose,onAfterLeave:$[1]||($[1]=k=>A.$emit("destroy")),persisted:""},{default:Ce(()=>[Lt(de("div",{id:A.id,class:K([h(r).b(),A.customClass,h(p)]),style:vt(h(y)),role:"alert",onMouseenter:S,onMouseleave:m,onClick:$[0]||($[0]=(...k)=>A.onClick&&A.onClick(...k))},[h(d)?(V(),Fe(h(ht),{key:0,class:K([h(r).e("icon"),h(f)])},{default:Ce(()=>[(V(),Fe(Zt(h(d))))]),_:1},8,["class"])):Ie("v-if",!0),de("div",{class:K(h(r).e("group"))},[de("h2",{class:K(h(r).e("title")),textContent:ot(A.title)},null,10,Ofe),Lt(de("div",{class:K(h(r).e("content")),style:vt(A.title?void 0:{margin:0})},[Ue(A.$slots,"default",{},()=>[A.dangerouslyUseHTMLString?(V(),ie(mt,{key:1},[Ie(" Caution here, message could've been compromised, never use user's input as message "),de("p",{innerHTML:A.message},null,8,Rfe)],2112)):(V(),ie("p",$fe,ot(A.message),1))])],6),[[bn,A.message]]),A.showClose?(V(),Fe(h(ht),{key:0,class:K(h(r).e("closeBtn")),onClick:Ot(_,["stop"])},{default:Ce(()=>[ye(h(l))]),_:1},8,["class","onClick"])):Ie("v-if",!0)],2)],46,Mfe),[[bn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Nfe=at(Lfe,[["__file","notification.vue"]]);const H0={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},dy=16;let Dfe=1;const Ec=function(e={},t=null){if(!ln)return{close:()=>{}};(typeof e=="string"||zn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;H0[n].forEach(({vm:f})=>{var d;r+=(((d=f.el)==null?void 0:d.offsetHeight)||0)+dy}),r+=dy;const a=`notification_${Dfe++}`,o=e.onClose,s={...e,offset:r,id:a,onClose:()=>{Ffe(a,n,o)}};let l=document.body;bo(e.appendTo)?l=e.appendTo:Rt(e.appendTo)&&(l=document.querySelector(e.appendTo)),bo(l)||(l=document.body);const u=document.createElement("div"),c=ye(Nfe,s,zn(s.message)?{default:()=>s.message}:null);return c.appContext=t??Ec._context,c.props.onDestroy=()=>{Fs(null,u)},Fs(c,u),H0[n].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};A$.forEach(e=>{Ec[e]=(t={})=>((typeof t=="string"||zn(t))&&(t={message:t}),Ec({...t,type:e}))});function Ffe(e,t,n){const r=H0[t],a=r.findIndex(({vm:c})=>{var f;return((f=c.component)==null?void 0:f.props.id)===e});if(a===-1)return;const{vm:o}=r[a];if(!o)return;n==null||n(o);const s=o.el.offsetHeight,l=t.split("-")[0];r.splice(a,1);const u=r.length;if(!(u<1))for(let c=a;c<u;c++){const{el:f,component:d}=r[c].vm,p=Number.parseInt(f.style[l],10)-s-dy;d.props.offset=p}}function Bfe(){for(const e of Object.values(H0))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Ec.closeAll=Bfe;Ec._context=null;const Hfe=RP(Ec,"$notify");var Ufe=[Wde,Qde,hfe,Ife,Hfe,d3],Vfe=kG([...Hde,...Ufe]),Gfe=Object.defineProperty,rx=Object.getOwnPropertySymbols,jfe=Object.prototype.hasOwnProperty,zfe=Object.prototype.propertyIsEnumerable,fy=(e,t,n)=>t in e?Gfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kfe=(e,t)=>{for(var n in t||(t={}))jfe.call(t,n)&&fy(e,n,t[n]);if(rx)for(var n of rx(t))zfe.call(t,n)&&fy(e,n,t[n]);return e},wn=(e,t,n)=>(fy(e,typeof t!="symbol"?t+"":t,n),n),$a=(e,t,n)=>new Promise((r,a)=>{var o=u=>{try{l(n.next(u))}catch(c){a(c)}},s=u=>{try{l(n.throw(u))}catch(c){a(c)}},l=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);l((n=n.apply(e,t)).next())});window._iconfont_svg_string_3847283='<svg><symbol id="icon-rest" viewBox="0 0 1280 1024"><path d="M352 512c88.22 0 160-71.78 160-160s-71.78-160-160-160-160 71.78-160 160 71.78 160 160 160z m704-256H608c-17.68 0-32 14.32-32 32v288H128V160c0-17.68-14.32-32-32-32H32C14.32 128 0 142.32 0 160v704c0 17.68 14.32 32 32 32h64c17.68 0 32-14.32 32-32v-96h1024v96c0 17.68 14.32 32 32 32h64c17.68 0 32-14.32 32-32V480c0-123.72-100.28-224-224-224z"  ></path></symbol><symbol id="icon-about" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272z m-32-344c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"  ></path></symbol><symbol id="icon-like" viewBox="0 0 1024 1024"><path d="M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9z"  ></path></symbol><symbol id="icon-skin" viewBox="0 0 1024 1024"><path d="M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7c-4.1-17.4-19.5-29.3-37-29.3H154c-24.3 0-44 19.7-44 44v252c0 24.3 19.7 44 44 44h75v388c0 24.3 19.7 44 44 44h478c24.3 0 44-19.7 44-44V466h75c24.3 0 44-19.7 44-44V170c0-24.3-19.7-44-44-44z"  ></path></symbol><symbol id="icon-setting" viewBox="0 0 1024 1024"><path d="M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1-21.2-21.2-49.2-32.8-79.1-32.8z"  ></path><path d="M924.8 626.1l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9c10.1-8.6 13.8-22.6 9.3-35.2l-0.9-2.6c-18.1-50.4-44.8-96.8-79.6-137.7l-1.8-2.1c-8.6-10.1-22.5-13.9-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9c-2.4-13.1-12.7-23.3-25.8-25.7l-2.7-0.5c-52-9.4-106.8-9.4-158.8 0l-2.7 0.5c-13.1 2.4-23.4 12.6-25.8 25.7l-15.8 85.3c-35.9 13.6-69.1 32.9-98.9 57.3l-81.8-29.1c-12.5-4.4-26.5-0.7-35.1 9.5l-1.8 2.1c-34.8 41.1-61.5 87.4-79.6 137.7l-0.9 2.6c-4.5 12.5-0.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5c-10.1 8.6-13.8 22.6-9.3 35.2l0.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1c8.6 10.1 22.5 13.9 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3c2.4 13.1 12.7 23.3 25.8 25.7l2.7 0.5c26.1 4.7 52.7 7.1 79.4 7.1 26.7 0 53.4-2.4 79.4-7.1l2.7-0.5c13.1-2.4 23.4-12.6 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9c12.5 4.4 26.5 0.7 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l0.9-2.6c4.3-12.4 0.6-26.3-9.5-35z m-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z"  ></path></symbol><symbol id="icon-switch" viewBox="0 0 1024 1024"><path d="M512 565c133.7 0 242-108.3 242-242S645.7 81 512 81 270 189.3 270 323s108.3 242 242 242z m4.8 299.3a264.4 264.4 0 0 1 0-205.6c2.3-5.4 4.8-10.8 7.4-16a4 4 0 0 0-3.7-5.8H512a311.4 311.4 0 0 1-122.2-24.7 319.8 319.8 0 0 1-57.9-32 4 4 0 0 0-4.2-0.3C208.7 645.3 128 771.7 128 917v25a4 4 0 0 0 4 4h429.9a4 4 0 0 0 3-6.7 261.9 261.9 0 0 1-48.1-75zM760 568c-106 0-192 86-192 192s86 192 192 192 192-86 192-192-86-192-192-192z m-98.4 136a4 4 0 0 1 4-4h124v-33.4c0-16 20.8-22.1 29.4-8.7l36.9 57.5a16 16 0 0 1-13.5 24.6H665.6a4 4 0 0 1-4-4z m196.8 112a4 4 0 0 1-4 4h-124v33.4c0 16-20.8 22.1-29.4 8.7l-36.9-57.5a16 16 0 0 1 13.5-24.6h176.8a4 4 0 0 1 4 4z"  ></path></symbol><symbol id="icon-loading" viewBox="0 0 1024 1024"><path d="M563.2 819.2a102.4 102.4 0 1 1 0 204.8 102.4 102.4 0 0 1 0-204.8z m-320.4608-153.6a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m592.7936 25.6a102.4 102.4 0 1 1 0 204.8 102.4 102.4 0 0 1 0-204.8zM947.2 477.1328a76.8 76.8 0 1 1 0 153.6 76.8 76.8 0 0 1 0-153.6zM128 307.2a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m782.6432-40.6016a51.2 51.2 0 1 1 0 102.4 51.2 51.2 0 0 1 0-102.4zM409.6 0a153.6 153.6 0 1 1 0 307.2 153.6 153.6 0 0 1 0-307.2z m384 153.6a25.6 25.6 0 1 1 0 51.2 25.6 25.6 0 0 1 0-51.2z"  ></path></symbol></svg>',function(e){var n=(n=document.getElementsByTagName("script"))[n.length-1],t=n.getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,a,o,s,l,u=function(d,p){p.parentNode.insertBefore(d,p)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(d){console&&console.log(d)}}r=function(){var d,p=document.createElement("div");p.innerHTML=e._iconfont_svg_string_3847283,(p=p.getElementsByTagName("svg")[0])&&(p.setAttribute("aria-hidden","true"),p.style.position="absolute",p.style.width=0,p.style.height=0,p.style.overflow="hidden",p=p,(d=document.body).firstChild?u(p,d.firstChild):d.appendChild(p))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(a=function(){document.removeEventListener("DOMContentLoaded",a,!1),r()},document.addEventListener("DOMContentLoaded",a,!1)):document.attachEvent&&(o=r,s=e.document,l=!1,f(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,c())})}function c(){l||(l=!0,o())}function f(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(f,50)}c()}}(window);const P$=document.createElement("script");document.head.append(P$);const Wfe=`
var __NONECONSOLE = {log(){}};(function(){var j=true;function aa(){if(j){return;}this._$MT=null;this._$5S=null;this._$NP=0;aa._$42++;this._$5S=new y(this);}aa._$0s=1;aa._$4s=2;aa._$42=0;aa._$62=function(aQ,aU){try{if(aU instanceof ArrayBuffer){aU=new DataView(aU);}if(!(aU instanceof DataView)){throw new J("_$SS#loadModel(b) / b _$x be DataView or ArrayBuffer");}var aS=new K(aU);var aM=aS._$ST();var aK=aS._$ST();var aJ=aS._$ST();var aN;if(aM==109&&aK==111&&aJ==99){aN=aS._$ST();}else{throw new J("_$gi _$C _$li , _$Q0 _$P0.");}aS._$gr(aN);if(aN>ay._$T7){aQ._$NP|=aa._$4s;var aR=ay._$T7;var aI="_$gi _$C _$li , _$n0 _$_ version _$li ( SDK : "+aR+" < _$f0 : "+aN+" )@_$SS#loadModel()\\
";throw new J(aI);}var aL=aS._$nP();if(aN>=ay._$s7){var aH=aS._$9T();var aT=aS._$9T();if(aH!=-30584||aT!=-30584){aQ._$NP|=aa._$0s;throw new J("_$gi _$C _$li , _$0 _$6 _$Ui.");}}aQ._$KS(aL);var aP=aQ.getModelContext();aP.setDrawParam(aQ.getDrawParam());aP.init();}catch(aO){q._$Rb(aO);}};aa.prototype._$KS=function(aH){this._$MT=aH;};aa.prototype.getModelImpl=function(){if(this._$MT==null){this._$MT=new w();this._$MT._$zP();}return this._$MT;};aa.prototype.getCanvasWidth=function(){if(this._$MT==null){return 0;}return this._$MT.getCanvasWidth();};aa.prototype.getCanvasHeight=function(){if(this._$MT==null){return 0;}return this._$MT.getCanvasHeight();};aa.prototype.getParamFloat=function(aH){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}return this._$5S.getParamFloat(aH);};aa.prototype.setParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)*(1-aI)+aJ*aI);};aa.prototype.addToParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)+aJ*aI);};aa.prototype.multParamFloat=function(aH,aJ,aI){if(typeof aH!="number"){aH=this._$5S.getParamIndex(z.getID(aH));}if(arguments.length<3){aI=1;}this._$5S.setParamFloat(aH,this._$5S.getParamFloat(aH)*(1+(aJ-1)*aI));};aa.prototype.getParamIndex=function(aH){return this._$5S.getParamIndex(z.getID(aH));};aa.prototype.loadParam=function(){this._$5S.loadParam();};aa.prototype.saveParam=function(){this._$5S.saveParam();};aa.prototype.init=function(){this._$5S.init();};aa.prototype.update=function(){this._$5S.update();};aa.prototype._$Rs=function(){q._$li("_$60 _$PT _$Rs()");return -1;};aa.prototype._$Ds=function(aH){q._$li("_$60 _$PT _$SS#_$Ds() \\n");};aa.prototype._$K2=function(){};aa.prototype.draw=function(){};aa.prototype.getModelContext=function(){return this._$5S;};aa.prototype._$s2=function(){return this._$NP;};aa.prototype._$P7=function(aK,aR,aH,a0){var aU=-1;var aY=0;var aM=this;var aJ=0.5;var aI=0.15;var aX=true;if(aH==0){for(var aV=0;aV<aK.length;aV++){var aP=aK[aV];var aO=aR[aV];var aS=(aM.getParamFloat(aP)!=0);aM.setPartsOpacity(aO,(aS?1:0));}return;}else{if(aK.length==1){var aP=aK[0];var aT=(aM.getParamFloat(aP)!=0);var aO=aR[0];var aQ=aM.getPartsOpacity(aO);var aW=aH/a0;if(aT){aQ+=aW;if(aQ>1){aQ=1;}}else{aQ-=aW;if(aQ<0){aQ=0;}}aM.setPartsOpacity(aO,aQ);}else{for(var aV=0;aV<aK.length;aV++){var aP=aK[aV];var aS=(aM.getParamFloat(aP)!=0);if(aS){if(aU>=0){break;}aU=aV;var aO=aR[aV];aY=aM.getPartsOpacity(aO);aY+=aH/a0;if(aY>1){aY=1;}}}if(aU<0){__NONECONSOLE.log("No _$wi _$q0/ _$U default[%s]",aK[0]);aU=0;aY=1;aM.loadParam();aM.setParamFloat(aK[aU],aY);aM.saveParam();}for(var aV=0;aV<aK.length;aV++){var aO=aR[aV];if(aU==aV){aM.setPartsOpacity(aO,aY);}else{var aL=aM.getPartsOpacity(aO);var aZ;if(aY<aJ){aZ=aY*(aJ-1)/aJ+1;}else{aZ=(1-aY)*aJ/(1-aJ);}if(aX){var aN=(1-aZ)*(1-aY);if(aN>aI){aZ=1-aI/(1-aY);}}if(aL>aZ){aL=aZ;}aM.setPartsOpacity(aO,aL);}}}}};aa.prototype.setPartsOpacity=function(aI,aH){if(typeof aI!="number"){aI=this._$5S.getPartsDataIndex(i.getID(aI));}this._$5S.setPartsOpacity(aI,aH);};aa.prototype.getPartsDataIndex=function(aH){if(!(aH instanceof i)){aH=i.getID(aH);}return this._$5S.getPartsDataIndex(aH);};aa.prototype.getPartsOpacity=function(aH){if(typeof aH!="number"){aH=this._$5S.getPartsDataIndex(i.getID(aH));}if(aH<0){return 0;}return this._$5S.getPartsOpacity(aH);};aa.prototype.getDrawParam=function(){};aa.prototype.getDrawDataIndex=function(aH){return this._$5S.getDrawDataIndex(Z.getID(aH));};aa.prototype.getDrawData=function(aH){return this._$5S.getDrawData(aH);};aa.prototype.getTransformedPoints=function(aH){var aI=this._$5S._$C2(aH);if(aI instanceof ag){return(aI).getTransformedPoints();}return null;};aa.prototype.getIndexArray=function(aI){if(aI<0||aI>=this._$5S._$aS.length){return null;}var aH=this._$5S._$aS[aI];if(aH!=null&&aH.getType()==a._$wb){if(aH instanceof b){return aH.getIndexArray();}}return null;};function W(aJ){if(j){return;}this.clipContextList=new Array();this.glcontext=aJ.gl;this.dp_webgl=aJ;this.curFrameNo=0;this.firstError_clipInNotUpdate=true;this.colorBuffer=0;this.isInitGLFBFunc=false;this.tmpBoundsOnModel=new av();if(Q.glContext.length>Q.frameBuffers.length){this.curFrameNo=this.getMaskRenderTexture();}else{}this.tmpModelToViewMatrix=new ac();this.tmpMatrix2=new ac();this.tmpMatrixForMask=new ac();this.tmpMatrixForDraw=new ac();this.CHANNEL_COLORS=new Array();var aI=new o();aI=new o();aI.r=0;aI.g=0;aI.b=0;aI.a=1;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=1;aI.g=0;aI.b=0;aI.a=0;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=0;aI.g=1;aI.b=0;aI.a=0;this.CHANNEL_COLORS.push(aI);aI=new o();aI.r=0;aI.g=0;aI.b=1;aI.a=0;this.CHANNEL_COLORS.push(aI);for(var aH=0;aH<this.CHANNEL_COLORS.length;aH++){this.dp_webgl.setChannelFlagAsColor(aH,this.CHANNEL_COLORS[aH]);}}W.CHANNEL_COUNT=4;W.RENDER_TEXTURE_USE_MIPMAP=false;W.NOT_USED_FRAME=-100;W.prototype._$L7=function(){if(this.tmpModelToViewMatrix){this.tmpModelToViewMatrix=null;}if(this.tmpMatrix2){this.tmpMatrix2=null;}if(this.tmpMatrixForMask){this.tmpMatrixForMask=null;}if(this.tmpMatrixForDraw){this.tmpMatrixForDraw=null;}if(this.tmpBoundsOnModel){this.tmpBoundsOnModel=null;}if(this.CHANNEL_COLORS){for(var aH=this.CHANNEL_COLORS.length-1;aH>=0;--aH){this.CHANNEL_COLORS.splice(aH,1);}this.CHANNEL_COLORS=[];}this.releaseShader();};W.prototype.releaseShader=function(){var aI=Q.frameBuffers.length;for(var aH=0;aH<aI;aH++){this.gl.deleteFramebuffer(Q.frameBuffers[aH].framebuffer);}Q.frameBuffers=[];Q.glContext=[];};W.prototype.init=function(aO,aN,aL){for(var aM=0;aM<aN.length;aM++){var aH=aN[aM].getClipIDList();if(aH==null){continue;}var aJ=this.findSameClip(aH);if(aJ==null){aJ=new U(this,aO,aH);this.clipContextList.push(aJ);}var aI=aN[aM].getDrawDataID();var aK=aO.getDrawDataIndex(aI);aJ.addClippedDrawData(aI,aK);var aP=aL[aM];aP.clipBufPre_clipContext=aJ;}};W.prototype.getMaskRenderTexture=function(){var aH=null;aH=this.dp_webgl.createFramebuffer();Q.frameBuffers[this.dp_webgl.glno]=aH;return this.dp_webgl.glno;};W.prototype.setupClip=function(a1,aQ){var aK=0;for(var aO=0;aO<this.clipContextList.length;aO++){var aP=this.clipContextList[aO];this.calcClippedDrawTotalBounds(a1,aP);if(aP.isUsing){aK++;}}if(aK>0){var aM=aQ.gl.getParameter(aQ.gl.FRAMEBUFFER_BINDING);var aW=new Array(4);aW[0]=0;aW[1]=0;aW[2]=aQ.gl.canvas.width;aW[3]=aQ.gl.canvas.height;aQ.gl.viewport(0,0,Q.clippingMaskBufferSize,Q.clippingMaskBufferSize);this.setupLayoutBounds(aK);aQ.gl.bindFramebuffer(aQ.gl.FRAMEBUFFER,Q.frameBuffers[this.curFrameNo].framebuffer);aQ.gl.clearColor(0,0,0,0);aQ.gl.clear(aQ.gl.COLOR_BUFFER_BIT);for(var aO=0;aO<this.clipContextList.length;aO++){var aP=this.clipContextList[aO];var aT=aP.allClippedDrawRect;var aN=aP.layoutChannelNo;var aV=aP.layoutBounds;var aJ=0.05;this.tmpBoundsOnModel._$jL(aT);this.tmpBoundsOnModel.expand(aT.width*aJ,aT.height*aJ);var aZ=aV.width/this.tmpBoundsOnModel.width;var aY=aV.height/this.tmpBoundsOnModel.height;this.tmpMatrix2.identity();this.tmpMatrix2.translate(-1,-1,0);this.tmpMatrix2.scale(2,2,1);this.tmpMatrix2.translate(aV.x,aV.y,0);this.tmpMatrix2.scale(aZ,aY,1);this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0);this.tmpMatrixForMask.setMatrix(this.tmpMatrix2.m);this.tmpMatrix2.identity();this.tmpMatrix2.translate(aV.x,aV.y,0);this.tmpMatrix2.scale(aZ,aY,1);this.tmpMatrix2.translate(-this.tmpBoundsOnModel.x,-this.tmpBoundsOnModel.y,0);this.tmpMatrixForDraw.setMatrix(this.tmpMatrix2.m);var aH=this.tmpMatrixForMask.getArray();for(var aX=0;aX<16;aX++){aP.matrixForMask[aX]=aH[aX];}var a0=this.tmpMatrixForDraw.getArray();for(var aX=0;aX<16;aX++){aP.matrixForDraw[aX]=a0[aX];}var aS=aP.clippingMaskDrawIndexList.length;for(var aU=0;aU<aS;aU++){var aR=aP.clippingMaskDrawIndexList[aU];var aI=a1.getDrawData(aR);var aL=a1._$C2(aR);aQ.setClipBufPre_clipContextForMask(aP);aI.draw(aQ,a1,aL);}}aQ.gl.bindFramebuffer(aQ.gl.FRAMEBUFFER,aM);aQ.setClipBufPre_clipContextForMask(null);aQ.gl.viewport(aW[0],aW[1],aW[2],aW[3]);}};W.prototype.getColorBuffer=function(){return this.colorBuffer;};W.prototype.findSameClip=function(aK){for(var aN=0;aN<this.clipContextList.length;aN++){var aO=this.clipContextList[aN];var aH=aO.clipIDList.length;if(aH!=aK.length){continue;}var aI=0;for(var aM=0;aM<aH;aM++){var aL=aO.clipIDList[aM];for(var aJ=0;aJ<aH;aJ++){if(aK[aJ]==aL){aI++;break;}}}if(aI==aH){return aO;}}return null;};W.prototype.calcClippedDrawTotalBounds=function(a6,aV){var aU=a6._$Ri.getModelImpl().getCanvasWidth();var a5=a6._$Ri.getModelImpl().getCanvasHeight();var aJ=aU>a5?aU:a5;var aT=aJ;var aR=aJ;var aS=0;var aP=0;var aL=aV.clippedDrawContextList.length;for(var aM=0;aM<aL;aM++){var aW=aV.clippedDrawContextList[aM];var aN=aW.drawDataIndex;var aK=a6._$C2(aN);if(aK._$yo()){var aX=aK.getTransformedPoints();var a4=aX.length;var aI=[];var aH=[];var aO=0;for(var a3=aw._$i2;a3<a4;a3+=aw._$No){aI[aO]=aX[a3];aH[aO]=aX[a3+1];aO++;}var a2=Math.min.apply(null,aI);var a1=Math.min.apply(null,aH);var a0=Math.max.apply(null,aI);var aZ=Math.max.apply(null,aH);if(a2<aT){aT=a2;}if(a1<aR){aR=a1;}if(a0>aS){aS=a0;}if(aZ>aP){aP=aZ;}}}if(aT==aJ){aV.allClippedDrawRect.x=0;aV.allClippedDrawRect.y=0;aV.allClippedDrawRect.width=0;aV.allClippedDrawRect.height=0;aV.isUsing=false;}else{var aQ=aS-aT;var aY=aP-aR;aV.allClippedDrawRect.x=aT;aV.allClippedDrawRect.y=aR;aV.allClippedDrawRect.width=aQ;aV.allClippedDrawRect.height=aY;aV.isUsing=true;}};W.prototype.setupLayoutBounds=function(aQ){var aI=aQ/W.CHANNEL_COUNT;var aP=aQ%W.CHANNEL_COUNT;aI=~~aI;aP=~~aP;var aH=0;for(var aJ=0;aJ<W.CHANNEL_COUNT;aJ++){var aM=aI+(aJ<aP?1:0);if(aM==0){}else{if(aM==1){var aL=this.clipContextList[aH++];aL.layoutChannelNo=aJ;aL.layoutBounds.x=0;aL.layoutBounds.y=0;aL.layoutBounds.width=1;aL.layoutBounds.height=1;}else{if(aM==2){for(var aO=0;aO<aM;aO++){var aN=aO%2;var aK=0;aN=~~aN;var aL=this.clipContextList[aH++];aL.layoutChannelNo=aJ;aL.layoutBounds.x=aN*0.5;aL.layoutBounds.y=0;aL.layoutBounds.width=0.5;aL.layoutBounds.height=1;}}else{if(aM<=4){for(var aO=0;aO<aM;aO++){var aN=aO%2;var aK=aO/2;aN=~~aN;aK=~~aK;var aL=this.clipContextList[aH++];aL.layoutChannelNo=aJ;aL.layoutBounds.x=aN*0.5;aL.layoutBounds.y=aK*0.5;aL.layoutBounds.width=0.5;aL.layoutBounds.height=0.5;}}else{if(aM<=9){for(var aO=0;aO<aM;aO++){var aN=aO%3;var aK=aO/3;aN=~~aN;aK=~~aK;var aL=this.clipContextList[aH++];aL.layoutChannelNo=aJ;aL.layoutBounds.x=aN/3;aL.layoutBounds.y=aK/3;aL.layoutBounds.width=1/3;aL.layoutBounds.height=1/3;}}else{q._$li("_$6 _$0P mask count : %d",aM);}}}}}}};function U(aH,aK,aI){this.clipIDList=new Array();this.clipIDList=aI;this.clippingMaskDrawIndexList=new Array();for(var aJ=0;aJ<aI.length;aJ++){this.clippingMaskDrawIndexList.push(aK.getDrawDataIndex(aI[aJ]));}this.clippedDrawContextList=new Array();this.isUsing=true;this.layoutChannelNo=0;this.layoutBounds=new av();this.allClippedDrawRect=new av();this.matrixForMask=new Float32Array(16);this.matrixForDraw=new Float32Array(16);this.owner=aH;}U.prototype.addClippedDrawData=function(aJ,aI){var aH=new R(aJ,aI);this.clippedDrawContextList.push(aH);};function R(aI,aH){this._$gP=aI;this.drawDataIndex=aH;}function I(){if(j){return;}this.color=null;}function ah(){if(j){return;}this._$dP=null;this._$eo=null;this._$V0=null;this._$dP=1000;this._$eo=1000;this._$V0=1;this._$a0();}ah._$JT=function(aP,aN,aO){var aQ=aP/aN;var a1=aO/aN;var aU=a1;var aZ=1/3;var aR=2/3;var a0=1-(1-a1)*(1-a1);var a2=1-(1-aU)*(1-aU);var aM=0;var aL=((1-a1)*aZ)*a0+(aU*aR+(1-aU)*aZ)*(1-a0);var aK=(aU+(1-aU)*aR)*a2+(a1*aZ+(1-a1)*aR)*(1-a2);var aJ=1;var aY=aJ-3*aK+3*aL-aM;var aX=3*aK-6*aL+3*aM;var aW=3*aL-3*aM;var aV=aM;if(aQ<=0){return 0;}else{if(aQ>=1){return 1;}}var aS=aQ;var aI=aS*aS;var aH=aS*aI;var aT=aY*aH+aX*aI+aW*aS+aV;return aT;};ah.prototype._$a0=function(){};ah.prototype.setFadeIn=function(aH){this._$dP=aH;};ah.prototype.setFadeOut=function(aH){this._$eo=aH;};ah.prototype._$pT=function(aH){this._$V0=aH;};ah.prototype.getFadeOut=function(){return this._$eo;};ah.prototype._$4T=function(){return this._$eo;};ah.prototype._$mT=function(){return this._$V0;};ah.prototype.getDurationMSec=function(){return -1;};ah.prototype.getLoopDurationMSec=function(){return -1;};ah.prototype.updateParam=function(aJ,aN){if(!aN._$AT||aN._$9L){return;}var aL=P.getUserTimeMSec();if(aN._$z2<0){aN._$z2=aL;aN._$bs=aL;var aM=this.getDurationMSec();if(aN._$Do<0){aN._$Do=(aM<=0)?-1:aN._$z2+aM;}}var aI=this._$V0;var aH=(this._$dP==0)?1:A._$r2(((aL-aN._$bs)/(this._$dP)));var aK=(this._$eo==0||aN._$Do<0)?1:A._$r2(((aN._$Do-aL)/(this._$eo)));aI=aI*aH*aK;if(!((0<=aI&&aI<=1))){__NONECONSOLE.log("### assert!! ### ");}this.updateParamExe(aJ,aL,aI,aN);if(aN._$Do>0&&aN._$Do<aL){aN._$9L=true;}};ah.prototype.updateParamExe=function(aH,aI,aJ,aK){};function q(){}q._$8s=0;q._$fT=new Object();q.start=function(aI){var aH=q._$fT[aI];if(aH==null){aH=new af();aH._$r=aI;q._$fT[aI]=aH;}aH._$0S=P.getSystemTimeMSec();};q.dump=function(aJ){var aH=q._$fT[aJ];if(aH!=null){var aI=P.getSystemTimeMSec();var aK=aI-aH._$0S;__NONECONSOLE.log(aJ+" : "+aK+"ms");return aK;}else{return -1;}};q.end=function(aJ){var aH=q._$fT[aJ];if(aH!=null){var aI=P.getSystemTimeMSec();return aI-aH._$0S;}else{return -1;}};q._$li=function(aI,aH){__NONECONSOLE.log("_$li : "+aI+"\\n",aH);};q._$Ji=function(aI,aH){__NONECONSOLE.log(aI,aH);};q._$dL=function(aI,aH){__NONECONSOLE.log(aI,aH);__NONECONSOLE.log("\\n");};q._$KL=function(aJ,aI){for(var aH=0;aH<aI;aH++){if(aH%16==0&&aH>0){__NONECONSOLE.log("\\n");}else{if(aH%8==0&&aH>0){__NONECONSOLE.log("  ");}}__NONECONSOLE.log("%02X ",(aJ[aH]&255));}__NONECONSOLE.log("\\n");};q._$nr=function(aL,aI,aK){__NONECONSOLE.log("%s\\n",aL);var aH=aI.length;for(var aJ=0;aJ<aH;++aJ){__NONECONSOLE.log("%5d",aI[aJ]);__NONECONSOLE.log("%s\\n",aK);__NONECONSOLE.log(",");}__NONECONSOLE.log("\\n");};q._$Rb=function(aH){__NONECONSOLE.log("dump exception : "+aH);__NONECONSOLE.log("stack :: "+aH.stack);};function af(){this._$r=null;this._$0S=null;}function F(){if(j){return;}this.x=null;this.y=null;this.width=null;this.height=null;}F.prototype._$8P=function(){return 0.5*(this.x+this.x+this.width);};F.prototype._$6P=function(){return 0.5*(this.y+this.y+this.height);};F.prototype._$EL=function(){return this.x+this.width;};F.prototype._$5T=function(){return this.y+this.height;};F.prototype._$jL=function(aI,aK,aJ,aH){this.x=aI;this.y=aK;this.width=aJ;this.height=aH;};F.prototype._$jL=function(aH){this.x=aH.x;this.y=aH.y;this.width=aH.width;this.height=aH.height;};function i(aH){if(j){return;}ak.prototype.constructor.call(this,aH);}i.prototype=new ak();i._$tP=new Object();i._$27=function(){i._$tP.clear();};i.getID=function(aH){var aI=i._$tP[aH];if(aI==null){aI=new i(aH);i._$tP[aH]=aI;}return aI;};i.prototype._$3s=function(){return new i();};function S(){}function z(aH){if(j){return;}ak.prototype.constructor.call(this,aH);}z.prototype=new ak();z._$tP=new Object();z._$27=function(){z._$tP.clear();};z.getID=function(aH){var aI=z._$tP[aH];if(aI==null){aI=new z(aH);z._$tP[aH]=aI;}return aI;};z.prototype._$3s=function(){return new z();};function w(){if(j){return;}this._$vo=null;this._$F2=null;this._$ao=400;this._$1S=400;w._$42++;}w._$42=0;w.prototype._$zP=function(){if(this._$vo==null){this._$vo=new an();}if(this._$F2==null){this._$F2=new Array();}};w.prototype.getCanvasWidth=function(){return this._$ao;};w.prototype.getCanvasHeight=function(){return this._$1S;};w.prototype._$F0=function(aH){this._$vo=aH._$nP();this._$F2=aH._$nP();this._$ao=aH._$6L();this._$1S=aH._$6L();};w.prototype._$6S=function(aH){this._$F2.push(aH);};w.prototype._$Xr=function(){return this._$F2;};w.prototype._$E2=function(){return this._$vo;};function u(){if(j){return;}this.p1=new N();this.p2=new N();this._$Fo=0;this._$Db=0;this._$L2=0;this._$M2=0;this._$ks=0;this._$9b=0;this._$iP=0;this._$iT=0;this._$lL=new Array();this._$qP=new Array();this.setup(0.3,0.5,0.1);}u.prototype.setup=function(aJ,aI,aH){this._$ks=this._$Yb();this.p2._$xT();if(arguments.length==3){this._$Fo=aJ;this._$L2=aI;this.p1._$p=aH;this.p2._$p=aH;this.p2.y=aJ;this.setup();}};u.prototype.getPhysicsPoint1=function(){return this.p1;};u.prototype.getPhysicsPoint2=function(){return this.p2;};u.prototype._$qr=function(){return this._$Db;};u.prototype._$pr=function(aH){this._$Db=aH;};u.prototype._$5r=function(){return this._$M2;};u.prototype._$Cs=function(){return this._$9b;};u.prototype._$Yb=function(){return(-180*(Math.atan2(this.p1.x-this.p2.x,-(this.p1.y-this.p2.y)))/Math.PI);};u.prototype.addSrcParam=function(aJ,aH,aL,aI){var aK=new h(aJ,aH,aL,aI);this._$lL.push(aK);};u.prototype.addTargetParam=function(aJ,aH,aK,aI){var aL=new aF(aJ,aH,aK,aI);this._$qP.push(aL);};u.prototype.update=function(aI,aL){if(this._$iP==0){this._$iP=this._$iT=aL;this._$Fo=(Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y)));return;}var aK=(aL-this._$iT)/1000;if(aK!=0){for(var aJ=this._$lL.length-1;aJ>=0;--aJ){var aM=this._$lL[aJ];aM._$oP(aI,this);}this._$oo(aI,aK);this._$M2=this._$Yb();this._$9b=(this._$M2-this._$ks)/aK;this._$ks=this._$M2;}for(var aJ=this._$qP.length-1;aJ>=0;--aJ){var aH=this._$qP[aJ];aH._$YS(aI,this);}this._$iT=aL;};u.prototype._$oo=function(aN,aI){if(aI<0.033){aI=0.033;}var aU=1/aI;this.p1.vx=(this.p1.x-this.p1._$s0)*aU;this.p1.vy=(this.p1.y-this.p1._$70)*aU;this.p1.ax=(this.p1.vx-this.p1._$7L)*aU;this.p1.ay=(this.p1.vy-this.p1._$HL)*aU;this.p1.fx=this.p1.ax*this.p1._$p;this.p1.fy=this.p1.ay*this.p1._$p;this.p1._$xT();var aM=-(Math.atan2((this.p1.y-this.p2.y),this.p1.x-this.p2.x));var aL;var aV;var aR=Math.cos(aM);var aH=Math.sin(aM);var aW=9.8*this.p2._$p;var aQ=(this._$Db*aC._$bS);var aP=(aW*Math.cos(aM-aQ));aL=(aP*aH);aV=(aP*aR);var aK=(-this.p1.fx*aH*aH);var aT=(-this.p1.fy*aH*aR);var aJ=((-this.p2.vx*this._$L2));var aS=((-this.p2.vy*this._$L2));this.p2.fx=((aL+aK+aJ));this.p2.fy=((aV+aT+aS));this.p2.ax=this.p2.fx/this.p2._$p;this.p2.ay=this.p2.fy/this.p2._$p;this.p2.vx+=this.p2.ax*aI;this.p2.vy+=this.p2.ay*aI;this.p2.x+=this.p2.vx*aI;this.p2.y+=this.p2.vy*aI;var aO=(Math.sqrt((this.p1.x-this.p2.x)*(this.p1.x-this.p2.x)+(this.p1.y-this.p2.y)*(this.p1.y-this.p2.y)));this.p2.x=this.p1.x+this._$Fo*(this.p2.x-this.p1.x)/aO;this.p2.y=this.p1.y+this._$Fo*(this.p2.y-this.p1.y)/aO;this.p2.vx=(this.p2.x-this.p2._$s0)*aU;this.p2.vy=(this.p2.y-this.p2._$70)*aU;this.p2._$xT();};function N(){this._$p=1;this.x=0;this.y=0;this.vx=0;this.vy=0;this.ax=0;this.ay=0;this.fx=0;this.fy=0;this._$s0=0;this._$70=0;this._$7L=0;this._$HL=0;}N.prototype._$xT=function(){this._$s0=this.x;this._$70=this.y;this._$7L=this.vx;this._$HL=this.vy;};function at(aJ,aI,aH){this._$wL=null;this.scale=null;this._$V0=null;this._$wL=aJ;this.scale=aI;this._$V0=aH;}at.prototype._$oP=function(aI,aH){};function h(aJ,aK,aI,aH){at.prototype.constructor.call(this,aK,aI,aH);this._$tL=null;this._$tL=aJ;}h.prototype=new at();h.prototype._$oP=function(aJ,aH){var aK=this.scale*aJ.getParamFloat(this._$wL);var aL=aH.getPhysicsPoint1();switch(this._$tL){default:case u.Src.SRC_TO_X:aL.x=aL.x+(aK-aL.x)*this._$V0;break;case u.Src.SRC_TO_Y:aL.y=aL.y+(aK-aL.y)*this._$V0;break;case u.Src.SRC_TO_G_ANGLE:var aI=aH._$qr();aI=aI+(aK-aI)*this._$V0;aH._$pr(aI);break;}};function d(aJ,aI,aH){this._$wL=null;this.scale=null;this._$V0=null;this._$wL=aJ;this.scale=aI;this._$V0=aH;}d.prototype._$YS=function(aI,aH){};function aF(aI,aK,aJ,aH){d.prototype.constructor.call(this,aK,aJ,aH);this._$YP=null;this._$YP=aI;}aF.prototype=new d();aF.prototype._$YS=function(aI,aH){switch(this._$YP){default:case u.Target.TARGET_FROM_ANGLE:aI.setParamFloat(this._$wL,this.scale*aH._$5r(),this._$V0);break;case u.Target.TARGET_FROM_ANGLE_V:aI.setParamFloat(this._$wL,this.scale*aH._$Cs(),this._$V0);break;}};u.Src=function(){};u.Src.SRC_TO_X="SRC_TO_X";u.Src.SRC_TO_Y="SRC_TO_Y";u.Src.SRC_TO_G_ANGLE="SRC_TO_G_ANGLE";u.Target=function(){};u.Target.TARGET_FROM_ANGLE="TARGET_FROM_ANGLE";u.Target.TARGET_FROM_ANGLE_V="TARGET_FROM_ANGLE_V";function X(){if(j){return;}this._$fL=0;this._$gL=0;this._$B0=1;this._$z0=1;this._$qT=0;this.reflectX=false;this.reflectY=false;}X.prototype.init=function(aH){this._$fL=aH._$fL;this._$gL=aH._$gL;this._$B0=aH._$B0;this._$z0=aH._$z0;this._$qT=aH._$qT;this.reflectX=aH.reflectX;this.reflectY=aH.reflectY;};X.prototype._$F0=function(aH){this._$fL=aH._$_T();this._$gL=aH._$_T();this._$B0=aH._$_T();this._$z0=aH._$_T();this._$qT=aH._$_T();if(aH.getFormatVersion()>=ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2){this.reflectX=aH._$po();this.reflectY=aH._$po();}};X.prototype._$e=function(){};var ad=function(){};ad._$ni=function(aL,aJ,aR,aQ,aK,aI,aH,aS,aN){var aM=(aH*aI-aS*aK);if(aM==0){return null;}else{var aO=((aL-aR)*aI-(aJ-aQ)*aK)/aM;var aP;if(aK!=0){aP=(aL-aR-aO*aH)/aK;}else{aP=(aJ-aQ-aO*aS)/aI;}if(isNaN(aP)){aP=(aL-aR-aO*aH)/aK;if(isNaN(aP)){aP=(aJ-aQ-aO*aS)/aI;}if(isNaN(aP)){__NONECONSOLE.log("a is NaN @UtVector#_$ni() ");__NONECONSOLE.log("v1x : "+aK);__NONECONSOLE.log("v1x != 0 ? "+(aK!=0));}}if(aN==null){return new Array(aP,aO);}else{aN[0]=aP;aN[1]=aO;return aN;}}};function av(){if(j){return;}this.x=null;this.y=null;this.width=null;this.height=null;}av.prototype._$8P=function(){return this.x+0.5*this.width;};av.prototype._$6P=function(){return this.y+0.5*this.height;};av.prototype._$EL=function(){return this.x+this.width;};av.prototype._$5T=function(){return this.y+this.height;};av.prototype._$jL=function(aI,aK,aJ,aH){this.x=aI;this.y=aK;this.width=aJ;this.height=aH;};av.prototype._$jL=function(aH){this.x=aH.x;this.y=aH.y;this.width=aH.width;this.height=aH.height;};av.prototype.contains=function(aH,aI){return this.x<=this.x&&this.y<=this.y&&(this.x<=this.x+this.width)&&(this.y<=this.y+this.height);};av.prototype.expand=function(aH,aI){this.x-=aH;this.y-=aI;this.width+=aH*2;this.height+=aI*2;};function aG(){}aG._$Z2=function(bb,bo,bp,a2){var a1=bo._$Q2(bb,bp);var a3=bb._$vs();var ba=bb._$Tr();bo._$zr(a3,ba,a1);if(a1<=0){return a2[a3[0]];}else{if(a1==1){var bj=a2[a3[0]];var bi=a2[a3[1]];var a9=ba[0];return(bj+(bi-bj)*a9)|0;}else{if(a1==2){var bj=a2[a3[0]];var bi=a2[a3[1]];var a0=a2[a3[2]];var aZ=a2[a3[3]];var a9=ba[0];var a8=ba[1];var br=(bj+(bi-bj)*a9)|0;var bq=(a0+(aZ-a0)*a9)|0;return(br+(bq-br)*a8)|0;}else{if(a1==3){var aP=a2[a3[0]];var aO=a2[a3[1]];var bn=a2[a3[2]];var bm=a2[a3[3]];var aK=a2[a3[4]];var aJ=a2[a3[5]];var bg=a2[a3[6]];var bf=a2[a3[7]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var bj=(aP+(aO-aP)*a9)|0;var bi=(bn+(bm-bn)*a9)|0;var a0=(aK+(aJ-aK)*a9)|0;var aZ=(bg+(bf-bg)*a9)|0;var br=(bj+(bi-bj)*a8)|0;var bq=(a0+(aZ-a0)*a8)|0;return(br+(bq-br)*a6)|0;}else{if(a1==4){var aT=a2[a3[0]];var aS=a2[a3[1]];var bu=a2[a3[2]];var bt=a2[a3[3]];var aN=a2[a3[4]];var aM=a2[a3[5]];var bl=a2[a3[6]];var bk=a2[a3[7]];var be=a2[a3[8]];var bc=a2[a3[9]];var aX=a2[a3[10]];var aW=a2[a3[11]];var a7=a2[a3[12]];var a5=a2[a3[13]];var aR=a2[a3[14]];var aQ=a2[a3[15]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var a4=ba[3];var aP=(aT+(aS-aT)*a9)|0;var aO=(bu+(bt-bu)*a9)|0;var bn=(aN+(aM-aN)*a9)|0;var bm=(bl+(bk-bl)*a9)|0;var aK=(be+(bc-be)*a9)|0;var aJ=(aX+(aW-aX)*a9)|0;var bg=(a7+(a5-a7)*a9)|0;var bf=(aR+(aQ-aR)*a9)|0;var bj=(aP+(aO-aP)*a8)|0;var bi=(bn+(bm-bn)*a8)|0;var a0=(aK+(aJ-aK)*a8)|0;var aZ=(bg+(bf-bg)*a8)|0;var br=(bj+(bi-bj)*a6)|0;var bq=(a0+(aZ-a0)*a6)|0;return(br+(bq-br)*a4)|0;}else{var aV=1<<a1;var aY=new Float32Array(aV);for(var bh=0;bh<aV;bh++){var aI=bh;var aH=1;for(var aL=0;aL<a1;aL++){aH*=(aI%2==0)?(1-ba[aL]):ba[aL];aI/=2;}aY[bh]=aH;}var bs=new Float32Array(aV);for(var aU=0;aU<aV;aU++){bs[aU]=a2[a3[aU]];}var bd=0;for(var aU=0;aU<aV;aU++){bd+=aY[aU]*bs[aU];}return(bd+0.5)|0;}}}}}};aG._$br=function(ba,bo,bp,bg){var a1=bo._$Q2(ba,bp);var a2=ba._$vs();var a9=ba._$Tr();bo._$zr(a2,a9,a1);if(a1<=0){return bg[a2[0]];}else{if(a1==1){var bj=bg[a2[0]];var bi=bg[a2[1]];var a8=a9[0];return bj+(bi-bj)*a8;}else{if(a1==2){var bj=bg[a2[0]];var bi=bg[a2[1]];var a0=bg[a2[2]];var aZ=bg[a2[3]];var a8=a9[0];var a7=a9[1];return(1-a7)*(bj+(bi-bj)*a8)+a7*(a0+(aZ-a0)*a8);}else{if(a1==3){var aP=bg[a2[0]];var aO=bg[a2[1]];var bn=bg[a2[2]];var bm=bg[a2[3]];var aK=bg[a2[4]];var aJ=bg[a2[5]];var bf=bg[a2[6]];var be=bg[a2[7]];var a8=a9[0];var a7=a9[1];var a5=a9[2];return(1-a5)*((1-a7)*(aP+(aO-aP)*a8)+a7*(bn+(bm-bn)*a8))+a5*((1-a7)*(aK+(aJ-aK)*a8)+a7*(bf+(be-bf)*a8));}else{if(a1==4){var aT=bg[a2[0]];var aS=bg[a2[1]];var bs=bg[a2[2]];var br=bg[a2[3]];var aN=bg[a2[4]];var aM=bg[a2[5]];var bl=bg[a2[6]];var bk=bg[a2[7]];var bd=bg[a2[8]];var bb=bg[a2[9]];var aX=bg[a2[10]];var aW=bg[a2[11]];var a6=bg[a2[12]];var a4=bg[a2[13]];var aR=bg[a2[14]];var aQ=bg[a2[15]];var a8=a9[0];var a7=a9[1];var a5=a9[2];var a3=a9[3];return(1-a3)*((1-a5)*((1-a7)*(aT+(aS-aT)*a8)+a7*(bs+(br-bs)*a8))+a5*((1-a7)*(aN+(aM-aN)*a8)+a7*(bl+(bk-bl)*a8)))+a3*((1-a5)*((1-a7)*(bd+(bb-bd)*a8)+a7*(aX+(aW-aX)*a8))+a5*((1-a7)*(a6+(a4-a6)*a8)+a7*(aR+(aQ-aR)*a8)));}else{var aV=1<<a1;var aY=new Float32Array(aV);for(var bh=0;bh<aV;bh++){var aI=bh;var aH=1;for(var aL=0;aL<a1;aL++){aH*=(aI%2==0)?(1-a9[aL]):a9[aL];aI/=2;}aY[bh]=aH;}var bq=new Float32Array(aV);for(var aU=0;aU<aV;aU++){bq[aU]=bg[a2[aU]];}var bc=0;for(var aU=0;aU<aV;aU++){bc+=aY[aU]*bq[aU];}return bc;}}}}}};aG._$Vr=function(bV,bW,a5,aI,bC,a3,bX,bH){var aN=bW._$Q2(bV,a5);var bw=bV._$vs();var a2=bV._$Tr();bW._$zr(bw,a2,aN);var aJ=aI*2;var aQ=bX;if(aN<=0){var bI=bw[0];var bq=bC[bI];if(bH==2&&bX==0){P._$jT(bq,0,a3,0,aJ);}else{for(var bt=0;bt<aJ;){a3[aQ]=bq[bt++];a3[aQ+1]=bq[bt++];aQ+=bH;}}}else{if(aN==1){var bq=bC[bw[0]];var bp=bC[bw[1]];var b3=a2[0];var bT=1-b3;for(var bt=0;bt<aJ;){a3[aQ]=bq[bt]*bT+bp[bt]*b3;++bt;a3[aQ+1]=bq[bt]*bT+bp[bt]*b3;++bt;aQ+=bH;}}else{if(aN==2){var bq=bC[bw[0]];var bp=bC[bw[1]];var aZ=bC[bw[2]];var aY=bC[bw[3]];var b3=a2[0];var b1=a2[1];var bT=1-b3;var bP=1-b1;var b2=bP*bT;var b0=bP*b3;var bM=b1*bT;var bL=b1*b3;for(var bt=0;bt<aJ;){a3[aQ]=b2*bq[bt]+b0*bp[bt]+bM*aZ[bt]+bL*aY[bt];++bt;a3[aQ+1]=b2*bq[bt]+b0*bp[bt]+bM*aZ[bt]+bL*aY[bt];++bt;aQ+=bH;}}else{if(aN==3){var ba=bC[bw[0]];var a9=bC[bw[1]];var aP=bC[bw[2]];var aO=bC[bw[3]];var a6=bC[bw[4]];var a4=bC[bw[5]];var aL=bC[bw[6]];var aK=bC[bw[7]];var b3=a2[0];var b1=a2[1];var bZ=a2[2];var bT=1-b3;var bP=1-b1;var bN=1-bZ;var b8=bN*bP*bT;var b7=bN*bP*b3;var bU=bN*b1*bT;var bS=bN*b1*b3;var b6=bZ*bP*bT;var b5=bZ*bP*b3;var bQ=bZ*b1*bT;var bO=bZ*b1*b3;for(var bt=0;bt<aJ;){a3[aQ]=b8*ba[bt]+b7*a9[bt]+bU*aP[bt]+bS*aO[bt]+b6*a6[bt]+b5*a4[bt]+bQ*aL[bt]+bO*aK[bt];++bt;a3[aQ+1]=b8*ba[bt]+b7*a9[bt]+bU*aP[bt]+bS*aO[bt]+b6*a6[bt]+b5*a4[bt]+bQ*aL[bt]+bO*aK[bt];++bt;aQ+=bH;}}else{if(aN==4){var bD=bC[bw[0]];var bB=bC[bw[1]];var bo=bC[bw[2]];var bm=bC[bw[3]];var by=bC[bw[4]];var bx=bC[bw[5]];var be=bC[bw[6]];var bd=bC[bw[7]];var bG=bC[bw[8]];var bE=bC[bw[9]];var bv=bC[bw[10]];var bu=bC[bw[11]];var bA=bC[bw[12]];var bz=bC[bw[13]];var bn=bC[bw[14]];var bl=bC[bw[15]];var b3=a2[0];var b1=a2[1];var bZ=a2[2];var bY=a2[3];var bT=1-b3;var bP=1-b1;var bN=1-bZ;var bK=1-bY;var bk=bK*bN*bP*bT;var bi=bK*bN*bP*b3;var aW=bK*bN*b1*bT;var aV=bK*bN*b1*b3;var bc=bK*bZ*bP*bT;var bb=bK*bZ*bP*b3;var aS=bK*bZ*b1*bT;var aR=bK*bZ*b1*b3;var bs=bY*bN*bP*bT;var br=bY*bN*bP*b3;var a1=bY*bN*b1*bT;var a0=bY*bN*b1*b3;var bh=bY*bZ*bP*bT;var bf=bY*bZ*bP*b3;var aU=bY*bZ*b1*bT;var aT=bY*bZ*b1*b3;for(var bt=0;bt<aJ;){a3[aQ]=bk*bD[bt]+bi*bB[bt]+aW*bo[bt]+aV*bm[bt]+bc*by[bt]+bb*bx[bt]+aS*be[bt]+aR*bd[bt]+bs*bG[bt]+br*bE[bt]+a1*bv[bt]+a0*bu[bt]+bh*bA[bt]+bf*bz[bt]+aU*bn[bt]+aT*bl[bt];++bt;a3[aQ+1]=bk*bD[bt]+bi*bB[bt]+aW*bo[bt]+aV*bm[bt]+bc*by[bt]+bb*bx[bt]+aS*be[bt]+aR*bd[bt]+bs*bG[bt]+br*bE[bt]+a1*bv[bt]+a0*bu[bt]+bh*bA[bt]+bf*bz[bt]+aU*bn[bt]+aT*bl[bt];++bt;aQ+=bH;}}else{var b4=1<<aN;var bJ=new Float32Array(b4);for(var bj=0;bj<b4;bj++){var aH=bj;var aM=1;for(var bF=0;bF<aN;bF++){aM*=(aH%2==0)?(1-a2[bF]):a2[bF];aH/=2;}bJ[bj]=aM;}var bg=new Float32Array(b4);for(var aX=0;aX<b4;aX++){bg[aX]=bC[bw[aX]];}for(var bt=0;bt<aJ;){var a8=0,a7=0;var bR=bt+1;for(var aX=0;aX<b4;aX++){a8+=bJ[aX]*bg[aX][bt];a7+=bJ[aX]*bg[aX][bR];}bt+=2;a3[aQ]=a8;a3[aQ+1]=a7;aQ+=bH;}}}}}}};function e(){if(j){return;}this.x=null;this.y=null;}e.prototype._$HT=function(aH,aI){this.x=aH;this.y=aI;};e.prototype._$HT=function(aH){this.x=aH.x;this.y=aH.y;};function ae(){if(j){return;}this._$gP=null;this._$dr=null;this._$GS=null;this._$qb=null;this._$Lb=null;this._$mS=null;this.clipID=null;this.clipIDList=new Array();}ae._$ur=-2;ae._$ES=500;ae._$wb=2;ae._$8S=3;ae._$52=ae._$ES;ae._$R2=ae._$ES;ae._$or=function(){return ae._$52;};ae._$Pr=function(){return ae._$R2;};ae.prototype.convertClipIDForV2_11=function(aI){var aH=[];if(aI==null){return null;}if(aI.length==0){return null;}if(!/,/.test(aI)){aH.push(aI.id);return aH;}aH=aI.id.split(",");return aH;};ae.prototype._$F0=function(aH){this._$gP=aH._$nP();this._$dr=aH._$nP();this._$GS=aH._$nP();this._$qb=aH._$6L();this._$Lb=aH._$cS();this._$mS=aH._$Tb();if(aH.getFormatVersion()>=ay._$T7){this.clipID=aH._$nP();this.clipIDList=this.convertClipIDForV2_11(this.clipID);}else{this.clipIDList=[];}this._$MS(this._$Lb);};ae.prototype.getClipIDList=function(){return this.clipIDList;};ae.prototype.init=function(aH){};ae.prototype._$Nr=function(aH,aI){aI._$IS[0]=false;aI._$Us=aG._$Z2(aH,this._$GS,aI._$IS,this._$Lb);if(Q._$Zs){}else{if(aI._$IS[0]){return;}}aI._$7s=aG._$br(aH,this._$GS,aI._$IS,this._$mS);};ae.prototype._$2b=function(aH,aI){};ae.prototype.getDrawDataID=function(){return this._$gP;};ae.prototype._$j2=function(aH){this._$gP=aH;};ae.prototype.getOpacity=function(aH,aI){return aI._$7s;};ae.prototype._$zS=function(aH,aI){return aI._$Us;};ae.prototype._$MS=function(aJ){for(var aI=aJ.length-1;aI>=0;--aI){var aH=aJ[aI];if(aH<ae._$52){ae._$52=aH;}else{if(aH>ae._$R2){ae._$R2=aH;}}}};ae.prototype.getTargetBaseDataID=function(){return this._$dr;};ae.prototype._$gs=function(aH){this._$dr=aH;};ae.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};ae.prototype.preDraw=function(aJ,aH,aI){};ae.prototype.draw=function(aJ,aH,aI){};ae.prototype.getType=function(){};ae.prototype._$B2=function(aI,aH,aJ){};function ax(){if(j){return;}this._$Eb=ax._$ps;this._$lT=1;this._$C0=1;this._$tT=1;this._$WL=1;this.culling=false;this.matrix4x4=new Float32Array(16);this.premultipliedAlpha=false;this.anisotropy=0;this.clippingProcess=ax.CLIPPING_PROCESS_NONE;this.clipBufPre_clipContextMask=null;this.clipBufPre_clipContextDraw=null;this.CHANNEL_COLORS=new Array();}ax._$ps=32;ax.CLIPPING_PROCESS_NONE=0;ax.CLIPPING_PROCESS_OVERWRITE_ALPHA=1;ax.CLIPPING_PROCESS_MULTIPLY_ALPHA=2;ax.CLIPPING_PROCESS_DRAW=3;ax.CLIPPING_PROCESS_CLEAR_ALPHA=4;ax.prototype.setChannelFlagAsColor=function(aH,aI){this.CHANNEL_COLORS[aH]=aI;};ax.prototype.getChannelFlagAsColor=function(aH){return this.CHANNEL_COLORS[aH];};ax.prototype._$ZT=function(){};ax.prototype._$Uo=function(aM,aK,aJ,aL,aN,aI,aH){};ax.prototype._$Rs=function(){return -1;};ax.prototype._$Ds=function(aH){};ax.prototype.setBaseColor=function(aK,aJ,aI,aH){if(aK<0){aK=0;}else{if(aK>1){aK=1;}}if(aJ<0){aJ=0;}else{if(aJ>1){aJ=1;}}if(aI<0){aI=0;}else{if(aI>1){aI=1;}}if(aH<0){aH=0;}else{if(aH>1){aH=1;}}this._$lT=aK;this._$C0=aJ;this._$tT=aI;this._$WL=aH;};ax.prototype._$WP=function(aH){this.culling=aH;};ax.prototype.setMatrix=function(aH){for(var aI=0;aI<16;aI++){this.matrix4x4[aI]=aH[aI];}};ax.prototype._$IT=function(){return this.matrix4x4;};ax.prototype.setPremultipliedAlpha=function(aH){this.premultipliedAlpha=aH;};ax.prototype.isPremultipliedAlpha=function(){return this.premultipliedAlpha;};ax.prototype.setAnisotropy=function(aH){this.anisotropy=aH;};ax.prototype.getAnisotropy=function(){return this.anisotropy;};ax.prototype.getClippingProcess=function(){return this.clippingProcess;};ax.prototype.setClippingProcess=function(aH){this.clippingProcess=aH;};ax.prototype.setClipBufPre_clipContextForMask=function(aH){this.clipBufPre_clipContextMask=aH;};ax.prototype.getClipBufPre_clipContextMask=function(){return this.clipBufPre_clipContextMask;};ax.prototype.setClipBufPre_clipContextForDraw=function(aH){this.clipBufPre_clipContextDraw=aH;};ax.prototype.getClipBufPre_clipContextDraw=function(){return this.clipBufPre_clipContextDraw;};function o(){if(j){return;}this.a=1;this.r=1;this.g=1;this.b=1;this.scale=1;this._$ho=1;this.blendMode=Q.L2D_COLOR_BLEND_MODE_MULT;}function c(){if(j){return;}this._$kP=null;this._$dr=null;this._$Ai=true;this._$mS=null;}c._$ur=-2;c._$c2=1;c._$_b=2;c.prototype._$F0=function(aH){this._$kP=aH._$nP();this._$dr=aH._$nP();};c.prototype.readV2_opacity=function(aH){if(aH.getFormatVersion()>=ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2){this._$mS=aH._$Tb();}};c.prototype.init=function(aH){};c.prototype._$Nr=function(aI,aH){};c.prototype.interpolateOpacity=function(aJ,aK,aI,aH){if(this._$mS==null){aI.setInterpolatedOpacity(1);}else{aI.setInterpolatedOpacity(aG._$br(aJ,aK,aH,this._$mS));}};c.prototype._$2b=function(aI,aH){};c.prototype._$nb=function(aL,aK,aM,aH,aI,aJ,aN){};c.prototype.getType=function(){};c.prototype._$gs=function(aH){this._$dr=aH;};c.prototype._$a2=function(aH){this._$kP=aH;};c.prototype.getTargetBaseDataID=function(){return this._$dr;};c.prototype.getBaseDataID=function(){return this._$kP;};c.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};function P(){}P._$W2=0;P._$CS=P._$W2;P._$Mo=function(){return true;};P._$XP=function(aI){try{var aJ=getTimeMSec();while(getTimeMSec()-aJ<aI){}}catch(aH){aH._$Rb();}};P.getUserTimeMSec=function(){return(P._$CS==P._$W2)?P.getSystemTimeMSec():P._$CS;};P.setUserTimeMSec=function(aH){P._$CS=aH;};P.updateUserTimeMSec=function(){return(P._$CS=P.getSystemTimeMSec());};P.getTimeMSec=function(){return new Date().getTime();};P.getSystemTimeMSec=function(){return new Date().getTime();};P._$Q=function(aH){};P._$jT=function(aM,aJ,aI,aL,aH){for(var aK=0;aK<aH;aK++){aI[aL+aK]=aM[aJ+aK];}};function aA(){if(j){return;}this._$VP=0;this._$wL=null;this._$GP=null;this._$8o=aA._$ds;this._$2r=-1;this._$O2=0;this._$ri=0;}aA._$ds=-2;aA.prototype._$F0=function(aH){this._$wL=aH._$nP();this._$VP=aH._$6L();this._$GP=aH._$nP();};aA.prototype.getParamIndex=function(aH){if(this._$2r!=aH){this._$8o=aA._$ds;}return this._$8o;};aA.prototype._$Pb=function(aI,aH){this._$8o=aI;this._$2r=aH;};aA.prototype.getParamID=function(){return this._$wL;};aA.prototype._$yP=function(aH){this._$wL=aH;};aA.prototype._$N2=function(){return this._$VP;};aA.prototype._$d2=function(){return this._$GP;};aA.prototype._$t2=function(aI,aH){this._$VP=aI;this._$GP=aH;};aA.prototype._$Lr=function(){return this._$O2;};aA.prototype._$wr=function(aH){this._$O2=aH;};aA.prototype._$SL=function(){return this._$ri;};aA.prototype._$AL=function(aH){this._$ri=aH;};function G(){}G.startsWith=function(aJ,aL,aK){var aH=aL+aK.length;if(aH>=aJ.length){return false;}for(var aI=aL;aI<aH;aI++){if(G.getChar(aJ,aI)!=aK.charAt(aI-aL)){return false;}}return true;};G.getChar=function(aI,aH){return String.fromCharCode(aI.getUint8(aH));};G.createString=function(aM,aL,aJ){var aH=new ArrayBuffer(aJ*2);var aK=new Uint16Array(aH);for(var aI=0;aI<aJ;aI++){aK[aI]=aM.getUint8(aL+aI);}return String.fromCharCode.apply(null,aK);};G._$LS=function(aP,aM,aR,aK){if(aP instanceof ArrayBuffer){aP=new DataView(aP);}var aL=aR;var aJ=false;var aQ=false;var aS=0;var aO=G.getChar(aP,aL);if(aO=="-"){aJ=true;aL++;}var aN=false;for(;aL<aM;aL++){aO=G.getChar(aP,aL);switch(aO){case"0":aS=aS*10;break;case"1":aS=aS*10+1;break;case"2":aS=aS*10+2;break;case"3":aS=aS*10+3;break;case"4":aS=aS*10+4;break;case"5":aS=aS*10+5;break;case"6":aS=aS*10+6;break;case"7":aS=aS*10+7;break;case"8":aS=aS*10+8;break;case"9":aS=aS*10+9;break;case".":aQ=true;aL++;aN=true;break;default:aN=true;break;}if(aN){break;}}if(aQ){var aI=0.1;var aH=false;for(;aL<aM;aL++){aO=G.getChar(aP,aL);switch(aO){case"0":break;case"1":aS+=aI*1;break;case"2":aS+=aI*2;break;case"3":aS+=aI*3;break;case"4":aS+=aI*4;break;case"5":aS+=aI*5;break;case"6":aS+=aI*6;break;case"7":aS+=aI*7;break;case"8":aS+=aI*8;break;case"9":aS+=aI*9;break;default:aH=true;break;}aI*=0.1;if(aH){break;}}}if(aJ){aS=-aS;}aK[0]=aL;return aS;};function g(){if(j){return;}this._$Ob=null;}g.prototype._$zP=function(){this._$Ob=new Array();};g.prototype._$F0=function(aH){this._$Ob=aH._$nP();};g.prototype._$Ur=function(aK){if(aK._$WS()){return true;}var aH=aK._$v2();for(var aJ=this._$Ob.length-1;aJ>=0;--aJ){var aI=this._$Ob[aJ].getParamIndex(aH);if(aI==aA._$ds){aI=aK.getParamIndex(this._$Ob[aJ].getParamID());}if(aK._$Xb(aI)){return true;}}return false;};g.prototype._$Q2=function(aL,aV){var aX=this._$Ob.length;var aJ=aL._$v2();var aN=0;var aI;var aQ;for(var aK=0;aK<aX;aK++){var aH=this._$Ob[aK];aI=aH.getParamIndex(aJ);if(aI==aA._$ds){aI=aL.getParamIndex(aH.getParamID());aH._$Pb(aI,aJ);}if(aI<0){throw new Exception("err 23242 : "+aH.getParamID());}var aU=aI<0?0:aL.getParamFloat(aI);aQ=aH._$N2();var aM=aH._$d2();var aP=-1;var aT=0;var aS;var aR;if(aQ<1){}else{if(aQ==1){aS=aM[0];if(aS-aw._$J<aU&&aU<aS+aw._$J){aP=0;aT=0;}else{aP=0;aV[0]=true;}}else{aS=aM[0];if(aU<aS-aw._$J){aP=0;aV[0]=true;}else{if(aU<aS+aw._$J){aP=0;}else{var aW=false;for(var aO=1;aO<aQ;++aO){aR=aM[aO];if(aU<aR+aw._$J){if(aR-aw._$J<aU){aP=aO;}else{aP=aO-1;aT=(aU-aS)/(aR-aS);aN++;}aW=true;break;}aS=aR;}if(!aW){aP=aQ-1;aT=0;aV[0]=true;}}}}}aH._$wr(aP);aH._$AL(aT);}return aN;};g.prototype._$zr=function(aN,aT,aP){var aR=1<<aP;if(aR+1>aw._$Qb){__NONECONSOLE.log("err 23245\\n");}var aS=this._$Ob.length;var aK=1;var aH=1;var aJ=0;for(var aQ=0;aQ<aR;++aQ){aN[aQ]=0;}for(var aL=0;aL<aS;++aL){var aI=this._$Ob[aL];if(aI._$SL()==0){var aO=aI._$Lr()*aK;if(aO<0&&Q._$3T){throw new Exception("err 23246");}for(var aQ=0;aQ<aR;++aQ){aN[aQ]+=aO;}}else{var aO=aK*aI._$Lr();var aM=aK*(aI._$Lr()+1);for(var aQ=0;aQ<aR;++aQ){aN[aQ]+=((aQ/aH|0)%2==0)?aO:aM;}aT[aJ++]=aI._$SL();aH*=2;}aK*=aI._$N2();}aN[aR]=65535;aT[aJ]=-1;};g.prototype._$h2=function(aJ,aH,aK){var aM=new Float32Array(aH);for(var aL=0;aL<aH;++aL){aM[aL]=aK[aL];}var aI=new aA();aI._$yP(aJ);aI._$t2(aH,aM);this._$Ob.push(aI);};g.prototype._$J2=function(aO){var aN=aO;var aM=this._$Ob.length;for(var aK=0;aK<aM;++aK){var aI=this._$Ob[aK];var aH=aI._$N2();var aJ=aN%aI._$N2();var aL=aI._$d2()[aJ];__NONECONSOLE.log("%s[%d]=%7.2f / ",aI.getParamID(),aJ,aL);aN/=aH;}__NONECONSOLE.log("\\n");};g.prototype.getParamCount=function(){return this._$Ob.length;};g.prototype._$zs=function(){return this._$Ob;};function ac(){this.m=new Float32Array(16);this.identity();}ac.prototype.identity=function(){for(var aH=0;aH<16;aH++){this.m[aH]=((aH%5)==0)?1:0;}};ac.prototype.getArray=function(){return this.m;};ac.prototype.getCopyMatrix=function(){return new Float32Array(this.m);};ac.prototype.setMatrix=function(aI){if(aI==null||aI.length!=16){return;}for(var aH=0;aH<16;aH++){this.m[aH]=aI[aH];}};ac.prototype.mult=function(aH,aJ,aI){if(aJ==null){return null;}if(this==aJ){this.mult_safe(this.m,aH.m,aJ.m,aI);}else{this.mult_fast(this.m,aH.m,aJ.m,aI);}return aJ;};ac.prototype.mult_safe=function(aI,aH,aM,aJ){if(aI==aM){var aL=new Array(16);this.mult_fast(aI,aH,aL,aJ);for(var aK=15;aK>=0;--aK){aM[aK]=aL[aK];}}else{this.mult_fast(aI,aH,aM,aJ);}};ac.prototype.mult_fast=function(aI,aH,aK,aJ){if(aJ){aK[0]=aI[0]*aH[0]+aI[4]*aH[1]+aI[8]*aH[2];aK[4]=aI[0]*aH[4]+aI[4]*aH[5]+aI[8]*aH[6];aK[8]=aI[0]*aH[8]+aI[4]*aH[9]+aI[8]*aH[10];aK[12]=aI[0]*aH[12]+aI[4]*aH[13]+aI[8]*aH[14]+aI[12];aK[1]=aI[1]*aH[0]+aI[5]*aH[1]+aI[9]*aH[2];aK[5]=aI[1]*aH[4]+aI[5]*aH[5]+aI[9]*aH[6];aK[9]=aI[1]*aH[8]+aI[5]*aH[9]+aI[9]*aH[10];aK[13]=aI[1]*aH[12]+aI[5]*aH[13]+aI[9]*aH[14]+aI[13];aK[2]=aI[2]*aH[0]+aI[6]*aH[1]+aI[10]*aH[2];aK[6]=aI[2]*aH[4]+aI[6]*aH[5]+aI[10]*aH[6];aK[10]=aI[2]*aH[8]+aI[6]*aH[9]+aI[10]*aH[10];aK[14]=aI[2]*aH[12]+aI[6]*aH[13]+aI[10]*aH[14]+aI[14];aK[3]=aK[7]=aK[11]=0;aK[15]=1;}else{aK[0]=aI[0]*aH[0]+aI[4]*aH[1]+aI[8]*aH[2]+aI[12]*aH[3];aK[4]=aI[0]*aH[4]+aI[4]*aH[5]+aI[8]*aH[6]+aI[12]*aH[7];aK[8]=aI[0]*aH[8]+aI[4]*aH[9]+aI[8]*aH[10]+aI[12]*aH[11];aK[12]=aI[0]*aH[12]+aI[4]*aH[13]+aI[8]*aH[14]+aI[12]*aH[15];aK[1]=aI[1]*aH[0]+aI[5]*aH[1]+aI[9]*aH[2]+aI[13]*aH[3];aK[5]=aI[1]*aH[4]+aI[5]*aH[5]+aI[9]*aH[6]+aI[13]*aH[7];aK[9]=aI[1]*aH[8]+aI[5]*aH[9]+aI[9]*aH[10]+aI[13]*aH[11];aK[13]=aI[1]*aH[12]+aI[5]*aH[13]+aI[9]*aH[14]+aI[13]*aH[15];aK[2]=aI[2]*aH[0]+aI[6]*aH[1]+aI[10]*aH[2]+aI[14]*aH[3];aK[6]=aI[2]*aH[4]+aI[6]*aH[5]+aI[10]*aH[6]+aI[14]*aH[7];aK[10]=aI[2]*aH[8]+aI[6]*aH[9]+aI[10]*aH[10]+aI[14]*aH[11];aK[14]=aI[2]*aH[12]+aI[6]*aH[13]+aI[10]*aH[14]+aI[14]*aH[15];aK[3]=aI[3]*aH[0]+aI[7]*aH[1]+aI[11]*aH[2]+aI[15]*aH[3];aK[7]=aI[3]*aH[4]+aI[7]*aH[5]+aI[11]*aH[6]+aI[15]*aH[7];aK[11]=aI[3]*aH[8]+aI[7]*aH[9]+aI[11]*aH[10]+aI[15]*aH[11];aK[15]=aI[3]*aH[12]+aI[7]*aH[13]+aI[11]*aH[14]+aI[15]*aH[15];}};ac.prototype.translate=function(aH,aJ,aI){this.m[12]=this.m[0]*aH+this.m[4]*aJ+this.m[8]*aI+this.m[12];this.m[13]=this.m[1]*aH+this.m[5]*aJ+this.m[9]*aI+this.m[13];this.m[14]=this.m[2]*aH+this.m[6]*aJ+this.m[10]*aI+this.m[14];this.m[15]=this.m[3]*aH+this.m[7]*aJ+this.m[11]*aI+this.m[15];};ac.prototype.scale=function(aJ,aI,aH){this.m[0]*=aJ;this.m[4]*=aI;this.m[8]*=aH;this.m[1]*=aJ;this.m[5]*=aI;this.m[9]*=aH;this.m[2]*=aJ;this.m[6]*=aI;this.m[10]*=aH;this.m[3]*=aJ;this.m[7]*=aI;this.m[11]*=aH;};ac.prototype.rotateX=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[4];this.m[4]=aI*aK+this.m[8]*aJ;this.m[8]=aI*-aJ+this.m[8]*aK;aI=this.m[5];this.m[5]=aI*aK+this.m[9]*aJ;this.m[9]=aI*-aJ+this.m[9]*aK;aI=this.m[6];this.m[6]=aI*aK+this.m[10]*aJ;this.m[10]=aI*-aJ+this.m[10]*aK;aI=this.m[7];this.m[7]=aI*aK+this.m[11]*aJ;this.m[11]=aI*-aJ+this.m[11]*aK;};ac.prototype.rotateY=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[0];this.m[0]=aI*aK+this.m[8]*-aJ;this.m[8]=aI*aJ+this.m[8]*aK;aI=this.m[1];this.m[1]=aI*aK+this.m[9]*-aJ;this.m[9]=aI*aJ+this.m[9]*aK;aI=m[2];this.m[2]=aI*aK+this.m[10]*-aJ;this.m[10]=aI*aJ+this.m[10]*aK;aI=m[3];this.m[3]=aI*aK+this.m[11]*-aJ;this.m[11]=aI*aJ+this.m[11]*aK;};ac.prototype.rotateZ=function(aH){var aK=aC.fcos(aH);var aJ=aC._$9(aH);var aI=this.m[0];this.m[0]=aI*aK+this.m[4]*aJ;this.m[4]=aI*-aJ+this.m[4]*aK;aI=this.m[1];this.m[1]=aI*aK+this.m[5]*aJ;this.m[5]=aI*-aJ+this.m[5]*aK;aI=this.m[2];this.m[2]=aI*aK+this.m[6]*aJ;this.m[6]=aI*-aJ+this.m[6]*aK;aI=this.m[3];this.m[3]=aI*aK+this.m[7]*aJ;this.m[7]=aI*-aJ+this.m[7]*aK;};function Z(aH){if(j){return;}ak.prototype.constructor.call(this,aH);}Z.prototype=new ak();Z._$tP=new Object();Z._$27=function(){Z._$tP.clear();};Z.getID=function(aH){var aI=Z._$tP[aH];if(aI==null){aI=new Z(aH);Z._$tP[aH]=aI;}return aI;};Z.prototype._$3s=function(){return new Z();};function aD(){if(j){return;}this._$7=1;this._$f=0;this._$H=0;this._$g=1;this._$k=0;this._$w=0;this._$hi=STATE_IDENTITY;this._$Z=_$pS;}aD._$kS=-1;aD._$pS=0;aD._$hb=1;aD.STATE_IDENTITY=0;aD._$gb=1;aD._$fo=2;aD._$go=4;aD.prototype.transform=function(aK,aI,aH){var aT,aS,aR,aM,aL,aJ;var aQ=0;var aN=0;switch(this._$hi){default:return;case (aD._$go|aD._$fo|aD._$gb):aT=this._$7;aS=this._$H;aR=this._$k;aM=this._$f;aL=this._$g;aJ=this._$w;while(--aH>=0){var aP=aK[aQ++];var aO=aK[aQ++];aI[aN++]=(aT*aP+aS*aO+aR);aI[aN++]=(aM*aP+aL*aO+aJ);}return;case (aD._$go|aD._$fo):aT=this._$7;aS=this._$H;aM=this._$f;aL=this._$g;while(--aH>=0){var aP=aK[aQ++];var aO=aK[aQ++];aI[aN++]=(aT*aP+aS*aO);aI[aN++]=(aM*aP+aL*aO);}return;case (aD._$go|aD._$gb):aS=this._$H;aR=this._$k;aM=this._$f;aJ=this._$w;while(--aH>=0){var aP=aK[aQ++];aI[aN++]=(aS*aK[aQ++]+aR);aI[aN++]=(aM*aP+aJ);}return;case (aD._$go):aS=this._$H;aM=this._$f;while(--aH>=0){var aP=aK[aQ++];aI[aN++]=(aS*aK[aQ++]);aI[aN++]=(aM*aP);}return;case (aD._$fo|aD._$gb):aT=this._$7;aR=this._$k;aL=this._$g;aJ=this._$w;while(--aH>=0){aI[aN++]=(aT*aK[aQ++]+aR);aI[aN++]=(aL*aK[aQ++]+aJ);}return;case (aD._$fo):aT=this._$7;aL=this._$g;while(--aH>=0){aI[aN++]=(aT*aK[aQ++]);aI[aN++]=(aL*aK[aQ++]);}return;case (aD._$gb):aR=this._$k;aJ=this._$w;while(--aH>=0){aI[aN++]=(aK[aQ++]+aR);aI[aN++]=(aK[aQ++]+aJ);}return;case (aD.STATE_IDENTITY):if(aK!=aI||aQ!=aN){P._$jT(aK,aQ,aI,aN,aH*2);}return;}};aD.prototype.update=function(){if(this._$H==0&&this._$f==0){if(this._$7==1&&this._$g==1){if(this._$k==0&&this._$w==0){this._$hi=aD.STATE_IDENTITY;this._$Z=aD._$pS;}else{this._$hi=aD._$gb;this._$Z=aD._$hb;}}else{if(this._$k==0&&this._$w==0){this._$hi=aD._$fo;this._$Z=aD._$kS;}else{this._$hi=(aD._$fo|aD._$gb);this._$Z=aD._$kS;}}}else{if(this._$7==0&&this._$g==0){if(this._$k==0&&this._$w==0){this._$hi=aD._$go;this._$Z=aD._$kS;}else{this._$hi=(aD._$go|aD._$gb);this._$Z=aD._$kS;}}else{if(this._$k==0&&this._$w==0){this._$hi=(aD._$go|aD._$fo);this._$Z=aD._$kS;}else{this._$hi=(aD._$go|aD._$fo|aD._$gb);this._$Z=aD._$kS;}}}};aD.prototype._$RT=function(aK){this._$IT(aK);var aJ=aK[0];var aH=aK[2];var aN=aK[1];var aM=aK[3];var aI=Math.sqrt(aJ*aJ+aN*aN);var aL=aJ*aM-aH*aN;if(aI==0){if(Q._$so){__NONECONSOLE.log("affine._$RT() / rt==0");}}else{aK[0]=aI;aK[1]=aL/aI;aK[2]=(aN*aM+aJ*aH)/aL;aK[3]=Math.atan2(aN,aJ);}};aD.prototype._$ho=function(aN,aM,aI,aH){var aL=new Float32Array(6);var aK=new Float32Array(6);aN._$RT(aL);aM._$RT(aK);var aJ=new Float32Array(6);aJ[0]=aL[0]+(aK[0]-aL[0])*aI;aJ[1]=aL[1]+(aK[1]-aL[1])*aI;aJ[2]=aL[2]+(aK[2]-aL[2])*aI;aJ[3]=aL[3]+(aK[3]-aL[3])*aI;aJ[4]=aL[4]+(aK[4]-aL[4])*aI;aJ[5]=aL[5]+(aK[5]-aL[5])*aI;aH._$CT(aJ);};aD.prototype._$CT=function(aJ){var aI=Math.cos(aJ[3]);var aH=Math.sin(aJ[3]);this._$7=aJ[0]*aI;this._$f=aJ[0]*aH;this._$H=aJ[1]*(aJ[2]*aI-aH);this._$g=aJ[1]*(aJ[2]*aH+aI);this._$k=aJ[4];this._$w=aJ[5];this.update();};aD.prototype._$IT=function(aH){aH[0]=this._$7;aH[1]=this._$f;aH[2]=this._$H;aH[3]=this._$g;aH[4]=this._$k;aH[5]=this._$w;};function Y(){if(j){return;}ah.prototype.constructor.call(this);this.motions=new Array();this._$7r=null;this._$7r=Y._$Co++;this._$D0=30;this._$yT=0;this._$E=true;this.loopFadeIn=true;this._$AS=-1;_$a0();}Y.prototype=new ah();Y._$cs="VISIBLE:";Y._$ar="LAYOUT:";Y._$Co=0;Y._$D2=[];Y._$1T=1;Y.loadMotion=function(aR){var aM=new Y();var aI=[0];var aP=aR.length;aM._$yT=0;for(var aJ=0;aJ<aP;++aJ){var aQ=(aR[aJ]&255);if(aQ=="\\n"||aQ=="\\r"){continue;}if(aQ=="#"){for(;aJ<aP;++aJ){if(aR[aJ]=="\\n"||aR[aJ]=="\\r"){break;}}continue;}if(aQ=="$"){var aT=aJ;var aK=-1;for(;aJ<aP;++aJ){aQ=(aR[aJ]&255);if(aQ=="\\r"||aQ=="\\n"){break;}if(aQ=="="){aK=aJ;break;}}var aO=false;if(aK>=0){if(aK==aT+4&&aR[aT+1]=="f"&&aR[aT+2]=="p"&&aR[aT+3]=="s"){aO=true;}for(aJ=aK+1;aJ<aP;++aJ){aQ=(aR[aJ]&255);if(aQ=="\\r"||aQ=="\\n"){break;}if(aQ==","||aQ==" "||aQ=="	"){continue;}var aL=G._$LS(aR,aP,aJ,aI);if(aI[0]>0){if(aO&&5<aL&&aL<121){aM._$D0=aL;}}aJ=aI[0];}}for(;aJ<aP;++aJ){if(aR[aJ]=="\\n"||aR[aJ]=="\\r"){break;}}continue;}if(("a"<=aQ&&aQ<="z")||("A"<=aQ&&aQ<="Z")||aQ=="_"){var aT=aJ;var aK=-1;for(;aJ<aP;++aJ){aQ=(aR[aJ]&255);if(aQ=="\\r"||aQ=="\\n"){break;}if(aQ=="="){aK=aJ;break;}}if(aK>=0){var aN=new t();if(G.startsWith(aR,aT,Y._$cs)){aN._$RP=t._$hs;aN._$4P=new String(aR,aT,aK-aT);}else{if(G.startsWith(aR,aT,Y._$ar)){aN._$4P=new String(aR,aT+7,aK-aT-7);if(G.startsWith(aR,aT+7,"ANCHOR_X")){aN._$RP=t._$xs;}else{if(G.startsWith(aR,aT+7,"ANCHOR_Y")){aN._$RP=t._$us;}else{if(G.startsWith(aR,aT+7,"SCALE_X")){aN._$RP=t._$qs;}else{if(G.startsWith(aR,aT+7,"SCALE_Y")){aN._$RP=t._$Ys;}else{if(G.startsWith(aR,aT+7,"X")){aN._$RP=t._$ws;}else{if(G.startsWith(aR,aT+7,"Y")){aN._$RP=t._$Ns;}}}}}}}else{aN._$RP=t._$Fr;aN._$4P=new String(aR,aT,aK-aT);}}aM.motions.push(aN);var aS=0;Y._$D2.clear();for(aJ=aK+1;aJ<aP;++aJ){aQ=(aR[aJ]&255);if(aQ=="\\r"||aQ=="\\n"){break;}if(aQ==","||aQ==" "||aQ=="	"){continue;}var aL=G._$LS(aR,aP,aJ,aI);if(aI[0]>0){Y._$D2.push(aL);aS++;var aH=aI[0];if(aH<aJ){__NONECONSOLE.log("_$n0 _$hi . @Live2DMotion loadMotion()\\n");break;}aJ=aH;}}aN._$I0=Y._$D2._$BL();if(aS>aM._$yT){aM._$yT=aS;}}}}aM._$AS=((1000*aM._$yT)/aM._$D0)|0;return aM;};Y.prototype.getDurationMSec=function(){return this._$AS;};Y.prototype.dump=function(){for(var aJ=0;aJ<this.motions.length;aJ++){var aH=this.motions[aJ];__NONECONSOLE.log("_$wL[%s] [%d]. ",aH._$4P,aH._$I0.length);for(var aI=0;aI<aH._$I0.length&&aI<10;aI++){__NONECONSOLE.log("%5.2f ,",aH._$I0[aI]);}__NONECONSOLE.log("\\n");}};Y.prototype.updateParamExe=function(aH,aL,aO,aX){var aM=aL-aX._$z2;var aV=aM*this._$D0/1000;var aJ=aV|0;var aP=aV-aJ;for(var aU=0;aU<this.motions.length;aU++){var aS=this.motions[aU];var aK=aS._$I0.length;var aQ=aS._$4P;if(aS._$RP==t._$hs){var aT=aS._$I0[(aJ>=aK?aK-1:aJ)];aH.setParamFloat(aQ,aT);}else{if(t._$ws<=aS._$RP&&aS._$RP<=t._$Ys){}else{var aR=aH.getParamFloat(aQ);var aY=aS._$I0[(aJ>=aK?aK-1:aJ)];var aW=aS._$I0[(aJ+1>=aK?aK-1:aJ+1)];var aI=aY+(aW-aY)*aP;var aN=aR+(aI-aR)*aO;aH.setParamFloat(aQ,aN);}}}if(aJ>=this._$yT){if(this._$E){aX._$z2=aL;if(this.loopFadeIn){aX._$bs=aL;}}else{aX._$9L=true;}}};Y.prototype._$r0=function(){return this._$E;};Y.prototype._$aL=function(aH){this._$E=aH;};Y.prototype.isLoopFadeIn=function(){return this.loopFadeIn;};Y.prototype.setLoopFadeIn=function(aH){this.loopFadeIn=aH;};function aE(){this._$P=new Float32Array(100);this.size=0;}aE.prototype.clear=function(){this.size=0;};aE.prototype.add=function(aI){if(this._$P.length<=this.size){var aH=new Float32Array(this.size*2);P._$jT(this._$P,0,aH,0,this.size);this._$P=aH;}this._$P[this.size++]=aI;};aE.prototype._$BL=function(){var aH=new Float32Array(this.size);P._$jT(this._$P,0,aH,0,this.size);return aH;};function t(){this._$4P=null;this._$I0=null;this._$RP=null;}t._$Fr=0;t._$hs=1;t._$ws=100;t._$Ns=101;t._$xs=102;t._$us=103;t._$qs=104;t._$Ys=105;function aw(){}aw._$Ms=1;aw._$Qs=2;aw._$i2=0;aw._$No=2;aw._$do=aw._$Ms;aw._$Ls=true;aw._$1r=5;aw._$Qb=65;aw._$J=0.0001;aw._$FT=0.001;aw._$Ss=3;function ay(){}ay._$o7=6;ay._$S7=7;ay._$s7=8;ay._$77=9;ay.LIVE2D_FORMAT_VERSION_V2_10_SDK2=10;ay.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1=11;ay._$T7=ay.LIVE2D_FORMAT_VERSION_V2_11_SDK2_1;ay._$Is=-2004318072;ay._$h0=0;ay._$4L=23;ay._$7P=33;ay._$uT=function(aH){__NONECONSOLE.log("_$bo :: _$6 _$mo _$E0 : %d\\n",aH);};ay._$9o=function(aH){if(aH<40){ay._$uT(aH);return null;}else{if(aH<50){ay._$uT(aH);return null;}else{if(aH<60){ay._$uT(aH);return null;}else{if(aH<100){switch(aH){case 65:return new E();case 66:return new g();case 67:return new aA();case 68:return new ab();case 69:return new X();case 70:return new b();default:ay._$uT(aH);return null;}}else{if(aH<150){switch(aH){case 131:return new f();case 133:return new s();case 136:return new w();case 137:return new an();case 142:return new aq();}}}}}}ay._$uT(aH);return null;};function y(aH){if(j){return;}this._$QT=true;this._$co=-1;this._$qo=0;this._$pb=new Array(y._$is);this._$_2=new Float32Array(y._$is);this._$vr=new Float32Array(y._$is);this._$Rr=new Float32Array(y._$is);this._$Or=new Float32Array(y._$is);this._$fs=new Float32Array(y._$is);this._$Js=new Array(y._$is);this._$3S=new Array();this._$aS=new Array();this._$Bo=null;this._$F2=new Array();this._$db=new Array();this._$8b=new Array();this._$Hr=new Array();this._$Ws=null;this._$Vs=null;this._$Er=null;this._$Es=new Int16Array(aw._$Qb);this._$ZP=new Float32Array(aw._$1r*2);this._$Ri=aH;this._$b0=y._$HP++;this.clipManager=null;this.dp_webgl=null;}y._$HP=0;y._$_0=true;y._$V2=-1;y._$W0=-1;y._$jr=false;y._$ZS=true;y._$tr=(-1000000);y._$lr=(1000000);y._$is=32;y._$e=false;y.prototype.getDrawDataIndex=function(aI){for(var aH=this._$aS.length-1;aH>=0;--aH){if(this._$aS[aH]!=null&&this._$aS[aH].getDrawDataID()==aI){return aH;}}return -1;};y.prototype.getDrawData=function(aH){if(aH instanceof Z){if(this._$Bo==null){this._$Bo=new Object();var aJ=this._$aS.length;for(var aI=0;aI<aJ;aI++){var aL=this._$aS[aI];var aK=aL.getDrawDataID();if(aK==null){continue;}this._$Bo[aK]=aL;}}return this._$Bo[id];}else{if(aH<this._$aS.length){return this._$aS[aH];}else{return null;}}};y.prototype.release=function(){this._$3S.clear();this._$aS.clear();this._$F2.clear();if(this._$Bo!=null){this._$Bo.clear();}this._$db.clear();this._$8b.clear();this._$Hr.clear();};y.prototype.init=function(){this._$co++;if(this._$F2.length>0){this.release();}var aO=this._$Ri.getModelImpl();var aT=aO._$Xr();var aS=aT.length;var aH=new Array();var a3=new Array();for(var aV=0;aV<aS;++aV){var a4=aT[aV];this._$F2.push(a4);this._$Hr.push(a4.init(this));var aK=a4.getBaseData();var aR=aK.length;for(var aU=0;aU<aR;++aU){aH.push(aK[aU]);}for(var aU=0;aU<aR;++aU){var aM=aK[aU].init(this);aM._$l2(aV);a3.push(aM);}var a1=a4.getDrawData();var aP=a1.length;for(var aU=0;aU<aP;++aU){var aZ=a1[aU];var a0=aZ.init(this);a0._$IP=aV;this._$aS.push(aZ);this._$8b.push(a0);}}var aY=aH.length;var aN=n._$2o();while(true){var aX=false;for(var aV=0;aV<aY;++aV){var aL=aH[aV];if(aL==null){continue;}var a2=aL.getTargetBaseDataID();if(a2==null||a2==aN||this.getBaseDataIndex(a2)>=0){this._$3S.push(aL);this._$db.push(a3[aV]);aH[aV]=null;aX=true;}}if(!aX){break;}}var aI=aO._$E2();if(aI!=null){var aJ=aI._$1s();if(aJ!=null){var aW=aJ.length;for(var aV=0;aV<aW;++aV){var aQ=aJ[aV];if(aQ==null){continue;}this._$02(aQ.getParamID(),aQ.getDefaultValue(),aQ.getMinValue(),aQ.getMaxValue());}}}this.clipManager=new W(this.dp_webgl);this.clipManager.init(this,this._$aS,this._$8b);this._$QT=true;};y.prototype.update=function(){if(y._$e){q.start("_$zL");}var aK=this._$_2.length;for(var aW=0;aW<aK;aW++){if(this._$_2[aW]!=this._$vr[aW]){this._$Js[aW]=y._$ZS;this._$vr[aW]=this._$_2[aW];}}var aX=false;var aQ=this._$3S.length;var aN=this._$aS.length;var aS=a._$or();var aZ=a._$Pr();var aU=aZ-aS+1;if(this._$Ws==null||this._$Ws.length<aU){this._$Ws=new Int16Array(aU);this._$Vs=new Int16Array(aU);}for(var aW=0;aW<aU;aW++){this._$Ws[aW]=y._$V2;this._$Vs[aW]=y._$V2;}if(this._$Er==null||this._$Er.length<aN){this._$Er=new Int16Array(aN);}for(var aW=0;aW<aN;aW++){this._$Er[aW]=y._$W0;}if(y._$e){q.dump("_$zL");}if(y._$e){q.start("_$UL");}var aL=null;for(var aV=0;aV<aQ;++aV){var aJ=this._$3S[aV];var aH=this._$db[aV];try{aJ._$Nr(this,aH);aJ._$2b(this,aH);}catch(aY){if(aL==null){aL=aY;}}}if(aL!=null){if(y._$_0){q._$Rb(aL);}}if(y._$e){q.dump("_$UL");}if(y._$e){q.start("_$DL");}var aR=null;for(var aO=0;aO<aN;++aO){var aM=this._$aS[aO];var aI=this._$8b[aO];try{aM._$Nr(this,aI);if(aI._$u2()){continue;}aM._$2b(this,aI);var aT=Math.floor(aM._$zS(this,aI)-aS);var aP;try{aP=this._$Vs[aT];}catch(aY){__NONECONSOLE.log("_$li :: %s / %s 				@@_$fS\\n",aY.toString(),aM.getDrawDataID().toString());aT=Math.floor(aM._$zS(this,aI)-aS);continue;}if(aP==y._$V2){this._$Ws[aT]=aO;}else{this._$Er[aP]=aO;}this._$Vs[aT]=aO;}catch(aY){if(aR==null){aR=aY;Q._$sT(Q._$H7);}}}if(aR!=null){if(y._$_0){q._$Rb(aR);}}if(y._$e){q.dump("_$DL");}if(y._$e){q.start("_$eL");}for(var aW=this._$Js.length-1;aW>=0;aW--){this._$Js[aW]=y._$jr;}this._$QT=false;if(y._$e){q.dump("_$eL");}return aX;};y.prototype.preDraw=function(aH){if(this.clipManager!=null){aH._$ZT();this.clipManager.setupClip(this,aH);}};y.prototype.draw=function(aM){if(this._$Ws==null){q._$li("call _$Ri.update() before _$Ri.draw() ");return;}var aP=this._$Ws.length;aM._$ZT();for(var aK=0;aK<aP;++aK){var aN=this._$Ws[aK];if(aN==y._$V2){continue;}do{var aH=this._$aS[aN];var aI=this._$8b[aN];if(aI._$yo()){var aJ=aI._$IP;var aL=this._$Hr[aJ];aI._$VS=aL.getPartsOpacity();aH.draw(aM,this,aI);}var aO=this._$Er[aN];if(aO<=aN||aO==y._$W0){break;}aN=aO;}while(true);}};y.prototype.getParamIndex=function(aH){for(var aI=this._$pb.length-1;aI>=0;--aI){if(this._$pb[aI]==aH){return aI;}}return this._$02(aH,0,y._$tr,y._$lr);};y.prototype._$BS=function(aH){return this.getBaseDataIndex(aH);};y.prototype.getBaseDataIndex=function(aH){for(var aI=this._$3S.length-1;aI>=0;--aI){if(this._$3S[aI]!=null&&this._$3S[aI].getBaseDataID()==aH){return aI;}}return -1;};y.prototype._$UT=function(aJ,aH){var aI=new Float32Array(aH);P._$jT(aJ,0,aI,0,aJ.length);return aI;};y.prototype._$02=function(aN,aM,aL,aH){if(this._$qo>=this._$pb.length){var aK=this._$pb.length;var aJ=new Array(aK*2);P._$jT(this._$pb,0,aJ,0,aK);this._$pb=aJ;this._$_2=this._$UT(this._$_2,aK*2);this._$vr=this._$UT(this._$vr,aK*2);this._$Rr=this._$UT(this._$Rr,aK*2);this._$Or=this._$UT(this._$Or,aK*2);var aI=new Array();P._$jT(this._$Js,0,aI,0,aK);this._$Js=aI;}this._$pb[this._$qo]=aN;this._$_2[this._$qo]=aM;this._$vr[this._$qo]=aM;this._$Rr[this._$qo]=aL;this._$Or[this._$qo]=aH;this._$Js[this._$qo]=y._$ZS;return this._$qo++;};y.prototype._$Zo=function(aI,aH){this._$3S[aI]=aH;};y.prototype.setParamFloat=function(aH,aI){if(aI<this._$Rr[aH]){aI=this._$Rr[aH];}if(aI>this._$Or[aH]){aI=this._$Or[aH];}this._$_2[aH]=aI;};y.prototype.loadParam=function(){var aH=this._$_2.length;if(aH>this._$fs.length){aH=this._$fs.length;}P._$jT(this._$fs,0,this._$_2,0,aH);};y.prototype.saveParam=function(){var aH=this._$_2.length;if(aH>this._$fs.length){this._$fs=new Float32Array(aH);}P._$jT(this._$_2,0,this._$fs,0,aH);};y.prototype._$v2=function(){return this._$co;};y.prototype._$WS=function(){return this._$QT;};y.prototype._$Xb=function(aH){return this._$Js[aH]==y._$ZS;};y.prototype._$vs=function(){return this._$Es;};y.prototype._$Tr=function(){return this._$ZP;};y.prototype.getBaseData=function(aH){return this._$3S[aH];};y.prototype.getParamFloat=function(aH){return this._$_2[aH];};y.prototype.getParamMax=function(aH){return this._$Or[aH];};y.prototype.getParamMin=function(aH){return this._$Rr[aH];};y.prototype.setPartsOpacity=function(aJ,aH){var aI=this._$Hr[aJ];aI.setPartsOpacity(aH);};y.prototype.getPartsOpacity=function(aI){var aH=this._$Hr[aI];return aH.getPartsOpacity();};y.prototype.getPartsDataIndex=function(aI){for(var aH=this._$F2.length-1;aH>=0;--aH){if(this._$F2[aH]!=null&&this._$F2[aH]._$p2()==aI){return aH;}}return -1;};y.prototype._$q2=function(aH){return this._$db[aH];};y.prototype._$C2=function(aH){return this._$8b[aH];};y.prototype._$Bb=function(aH){return this._$Hr[aH];};y.prototype._$5s=function(aO,aK){var aJ=this._$Ws.length;var aN=aO;for(var aL=0;aL<aJ;++aL){var aI=this._$Ws[aL];if(aI==y._$V2){continue;}do{var aM=this._$8b[aI];if(aM._$yo()){aM._$GT()._$B2(this,aM,aN);aN+=aK;}var aH=this._$Er[aI];if(aH<=aI||aH==y._$W0){break;}aI=aH;}while(true);}};y.prototype.setDrawParam=function(aH){this.dp_webgl=aH;};y.prototype.getDrawParam=function(){return this.dp_webgl;};function ap(){}ap._$0T=function(aH){return ap._$0T(new _$5(aH));};ap._$0T=function(aJ){if(!aJ.exists()){throw new _$ls(aJ._$3b());}var aH=aJ.length();var aI=new Int8Array(aH);var aM=new _$Xs(new _$kb(aJ),8192);var aK;var aL=0;while((aK=aM.read(aI,aL,aH-aL))>0){aL+=aK;}return aI;};ap._$C=function(aJ){var aI=null;var aL=null;try{aI=(aJ instanceof Array)?aJ:new _$Xs(aJ,8192);aL=new _$js();var aM=1000;var aK;var aH=new Int8Array(aM);while((aK=aI.read(aH))>0){aL.write(aH,0,aK);}return aL._$TS();}finally{if(aJ!=null){aJ.close();}if(aL!=null){aL.flush();aL.close();}}};function ar(){if(j){return;}this._$12=null;this._$bb=null;this._$_L=null;this._$jo=null;this._$iL=null;this._$0L=null;this._$Br=null;this._$Dr=null;this._$Cb=null;this._$mr=null;this._$_L=az.STATE_FIRST;this._$Br=4000;this._$Dr=100;this._$Cb=50;this._$mr=150;this._$jo=true;this._$iL="PARAM_EYE_L_OPEN";this._$0L="PARAM_EYE_R_OPEN";}ar.prototype._$T2=function(){var aI=P.getUserTimeMSec();var aH=Math._$10();return(aI+aH*(2*this._$Br-1));};ar.prototype._$uo=function(aH){this._$Br=aH;};ar.prototype._$QS=function(aI,aH,aJ){this._$Dr=aI;this._$Cb=aH;this._$mr=aJ;};ar.prototype._$7T=function(aI){var aK=P.getUserTimeMSec();var aH;var aJ=0;switch(this._$_L){case STATE_CLOSING:aJ=(aK-this._$bb)/this._$Dr;if(aJ>=1){aJ=1;this._$_L=az.STATE_CLOSED;this._$bb=aK;}aH=1-aJ;break;case STATE_CLOSED:aJ=(aK-this._$bb)/this._$Cb;if(aJ>=1){this._$_L=az.STATE_OPENING;this._$bb=aK;}aH=0;break;case STATE_OPENING:aJ=(aK-this._$bb)/this._$mr;if(aJ>=1){aJ=1;this._$_L=az.STATE_INTERVAL;this._$12=this._$T2();}aH=aJ;break;case STATE_INTERVAL:if(this._$12<aK){this._$_L=az.STATE_CLOSING;this._$bb=aK;}aH=1;break;case STATE_FIRST:default:this._$_L=az.STATE_INTERVAL;this._$12=this._$T2();aH=1;break;}if(!this._$jo){aH=-aH;}aI.setParamFloat(this._$iL,aH);aI.setParamFloat(this._$0L,aH);};var az=function(){};az.STATE_FIRST="STATE_FIRST";az.STATE_INTERVAL="STATE_INTERVAL";az.STATE_CLOSING="STATE_CLOSING";az.STATE_CLOSED="STATE_CLOSED";az.STATE_OPENING="STATE_OPENING";function x(){if(j){return;}ax.prototype.constructor.call(this);this._$sb=new Int32Array(x._$As);this._$U2=new Array();this.transform=null;this.gl=null;if(x._$NT==null){x._$NT=x._$9r(256);x._$vS=x._$9r(256);x._$no=x._$vb(256);}}x.prototype=new ax();x._$As=32;x._$Gr=false;x._$NT=null;x._$vS=null;x._$no=null;x._$9r=function(aH){var aI=new Float32Array(aH);return aI;};x._$vb=function(aH){var aI=new Int16Array(aH);return aI;};x._$cr=function(aI,aH){if(aI==null||aI._$yL()<aH.length){aI=x._$9r(aH.length*2);aI.put(aH);aI._$oT(0);}else{aI.clear();aI.put(aH);aI._$oT(0);}return aI;};x._$mb=function(aI,aH){if(aI==null||aI._$yL()<aH.length){aI=x._$vb(aH.length*2);aI.put(aH);aI._$oT(0);}else{aI.clear();aI.put(aH);aI._$oT(0);}return aI;};x._$Hs=function(){return x._$Gr;};x._$as=function(aH){x._$Gr=aH;};x.prototype.setGL=function(aH){this.gl=aH;};x.prototype.setTransform=function(aH){this.transform=aH;};x.prototype._$ZT=function(){};x.prototype._$Uo=function(aO,aH,aP,aI,aQ,aM,aK,aJ){if(aM<0.01){return;}var aL=this._$U2[aO];var aN=aM>0.9?Q.EXPAND_W:0;this.gl.drawElements(aL,aP,aI,aQ,aM,aN,this.transform,aJ);};x.prototype._$Rs=function(){throw new Error("_$Rs");};x.prototype._$Ds=function(aH){throw new Error("_$Ds");};x.prototype._$K2=function(){for(var aH=0;aH<this._$sb.length;aH++){var aI=this._$sb[aH];if(aI!=0){this.gl._$Sr(1,this._$sb,aH);this._$sb[aH]=0;}}};x.prototype.setTexture=function(aI,aH){if(this._$sb.length<aI+1){this._$nS(aI);}this._$sb[aI]=aH;};x.prototype.setTexture=function(aH,aI){if(this._$sb.length<aH+1){this._$nS(aH);}this._$U2[aH]=aI;};x.prototype._$nS=function(aH){var aK=Math.max(this._$sb.length*2,aH+1+10);var aI=new Int32Array(aK);P._$jT(this._$sb,0,aI,0,this._$sb.length);this._$sb=aI;var aJ=new Array();P._$jT(this._$U2,0,aJ,0,this._$U2.length);this._$U2=aJ;};function ab(){if(j){return;}c.prototype.constructor.call(this);this._$GS=null;this._$Y0=null;}ab.prototype=new c();ab._$Xo=new Float32Array(2);ab._$io=new Float32Array(2);ab._$0o=new Float32Array(2);ab._$Lo=new Float32Array(2);ab._$To=new Float32Array(2);ab._$Po=new Float32Array(2);ab._$gT=new Array();ab.prototype._$zP=function(){this._$GS=new g();this._$GS._$zP();this._$Y0=new Array();};ab.prototype.getType=function(){return c._$c2;};ab.prototype._$F0=function(aH){c.prototype._$F0.call(this,aH);this._$GS=aH._$nP();this._$Y0=aH._$nP();c.prototype.readV2_opacity.call(this,aH);};ab.prototype.init=function(aH){var aI=new al(this);aI._$Yr=new X();if(this._$32()){aI._$Wr=new X();}return aI;};ab.prototype._$Nr=function(bf,bx){if(!((this==bx._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var bm=bx;if(!this._$GS._$Ur(bf)){return;}var bw=ab._$gT;bw[0]=false;var a2=this._$GS._$Q2(bf,bw);bx._$Ib(bw[0]);this.interpolateOpacity(bf,this._$GS,bx,bw);var a3=bf._$vs();var ba=bf._$Tr();this._$GS._$zr(a3,ba,a2);if(a2<=0){var bn=this._$Y0[a3[0]];bm._$Yr.init(bn);}else{if(a2==1){var bn=this._$Y0[a3[0]];var bl=this._$Y0[a3[1]];var a9=ba[0];bm._$Yr._$fL=bn._$fL+(bl._$fL-bn._$fL)*a9;bm._$Yr._$gL=bn._$gL+(bl._$gL-bn._$gL)*a9;bm._$Yr._$B0=bn._$B0+(bl._$B0-bn._$B0)*a9;bm._$Yr._$z0=bn._$z0+(bl._$z0-bn._$z0)*a9;bm._$Yr._$qT=bn._$qT+(bl._$qT-bn._$qT)*a9;}else{if(a2==2){var bn=this._$Y0[a3[0]];var bl=this._$Y0[a3[1]];var a1=this._$Y0[a3[2]];var a0=this._$Y0[a3[3]];var a9=ba[0];var a8=ba[1];var bC=bn._$fL+(bl._$fL-bn._$fL)*a9;var bB=a1._$fL+(a0._$fL-a1._$fL)*a9;bm._$Yr._$fL=bC+(bB-bC)*a8;bC=bn._$gL+(bl._$gL-bn._$gL)*a9;bB=a1._$gL+(a0._$gL-a1._$gL)*a9;bm._$Yr._$gL=bC+(bB-bC)*a8;bC=bn._$B0+(bl._$B0-bn._$B0)*a9;bB=a1._$B0+(a0._$B0-a1._$B0)*a9;bm._$Yr._$B0=bC+(bB-bC)*a8;bC=bn._$z0+(bl._$z0-bn._$z0)*a9;bB=a1._$z0+(a0._$z0-a1._$z0)*a9;bm._$Yr._$z0=bC+(bB-bC)*a8;bC=bn._$qT+(bl._$qT-bn._$qT)*a9;bB=a1._$qT+(a0._$qT-a1._$qT)*a9;bm._$Yr._$qT=bC+(bB-bC)*a8;}else{if(a2==3){var aP=this._$Y0[a3[0]];var aO=this._$Y0[a3[1]];var bu=this._$Y0[a3[2]];var bs=this._$Y0[a3[3]];var aK=this._$Y0[a3[4]];var aJ=this._$Y0[a3[5]];var bj=this._$Y0[a3[6]];var bi=this._$Y0[a3[7]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var bC=aP._$fL+(aO._$fL-aP._$fL)*a9;var bB=bu._$fL+(bs._$fL-bu._$fL)*a9;var bz=aK._$fL+(aJ._$fL-aK._$fL)*a9;var by=bj._$fL+(bi._$fL-bj._$fL)*a9;bm._$Yr._$fL=(1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8);bC=aP._$gL+(aO._$gL-aP._$gL)*a9;bB=bu._$gL+(bs._$gL-bu._$gL)*a9;bz=aK._$gL+(aJ._$gL-aK._$gL)*a9;by=bj._$gL+(bi._$gL-bj._$gL)*a9;bm._$Yr._$gL=(1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8);bC=aP._$B0+(aO._$B0-aP._$B0)*a9;bB=bu._$B0+(bs._$B0-bu._$B0)*a9;bz=aK._$B0+(aJ._$B0-aK._$B0)*a9;by=bj._$B0+(bi._$B0-bj._$B0)*a9;bm._$Yr._$B0=(1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8);bC=aP._$z0+(aO._$z0-aP._$z0)*a9;bB=bu._$z0+(bs._$z0-bu._$z0)*a9;bz=aK._$z0+(aJ._$z0-aK._$z0)*a9;by=bj._$z0+(bi._$z0-bj._$z0)*a9;bm._$Yr._$z0=(1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8);bC=aP._$qT+(aO._$qT-aP._$qT)*a9;bB=bu._$qT+(bs._$qT-bu._$qT)*a9;bz=aK._$qT+(aJ._$qT-aK._$qT)*a9;by=bj._$qT+(bi._$qT-bj._$qT)*a9;bm._$Yr._$qT=(1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8);}else{if(a2==4){var aT=this._$Y0[a3[0]];var aS=this._$Y0[a3[1]];var bE=this._$Y0[a3[2]];var bD=this._$Y0[a3[3]];var aN=this._$Y0[a3[4]];var aM=this._$Y0[a3[5]];var bp=this._$Y0[a3[6]];var bo=this._$Y0[a3[7]];var bh=this._$Y0[a3[8]];var bg=this._$Y0[a3[9]];var aY=this._$Y0[a3[10]];var aW=this._$Y0[a3[11]];var a7=this._$Y0[a3[12]];var a5=this._$Y0[a3[13]];var aR=this._$Y0[a3[14]];var aQ=this._$Y0[a3[15]];var a9=ba[0];var a8=ba[1];var a6=ba[2];var a4=ba[3];var bC=aT._$fL+(aS._$fL-aT._$fL)*a9;var bB=bE._$fL+(bD._$fL-bE._$fL)*a9;var bz=aN._$fL+(aM._$fL-aN._$fL)*a9;var by=bp._$fL+(bo._$fL-bp._$fL)*a9;var bv=bh._$fL+(bg._$fL-bh._$fL)*a9;var bt=aY._$fL+(aW._$fL-aY._$fL)*a9;var br=a7._$fL+(a5._$fL-a7._$fL)*a9;var bq=aR._$fL+(aQ._$fL-aR._$fL)*a9;bm._$Yr._$fL=(1-a4)*((1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8))+a4*((1-a6)*(bv+(bt-bv)*a8)+a6*(br+(bq-br)*a8));bC=aT._$gL+(aS._$gL-aT._$gL)*a9;bB=bE._$gL+(bD._$gL-bE._$gL)*a9;bz=aN._$gL+(aM._$gL-aN._$gL)*a9;by=bp._$gL+(bo._$gL-bp._$gL)*a9;bv=bh._$gL+(bg._$gL-bh._$gL)*a9;bt=aY._$gL+(aW._$gL-aY._$gL)*a9;br=a7._$gL+(a5._$gL-a7._$gL)*a9;bq=aR._$gL+(aQ._$gL-aR._$gL)*a9;bm._$Yr._$gL=(1-a4)*((1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8))+a4*((1-a6)*(bv+(bt-bv)*a8)+a6*(br+(bq-br)*a8));bC=aT._$B0+(aS._$B0-aT._$B0)*a9;bB=bE._$B0+(bD._$B0-bE._$B0)*a9;bz=aN._$B0+(aM._$B0-aN._$B0)*a9;by=bp._$B0+(bo._$B0-bp._$B0)*a9;bv=bh._$B0+(bg._$B0-bh._$B0)*a9;bt=aY._$B0+(aW._$B0-aY._$B0)*a9;br=a7._$B0+(a5._$B0-a7._$B0)*a9;bq=aR._$B0+(aQ._$B0-aR._$B0)*a9;bm._$Yr._$B0=(1-a4)*((1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8))+a4*((1-a6)*(bv+(bt-bv)*a8)+a6*(br+(bq-br)*a8));bC=aT._$z0+(aS._$z0-aT._$z0)*a9;bB=bE._$z0+(bD._$z0-bE._$z0)*a9;bz=aN._$z0+(aM._$z0-aN._$z0)*a9;by=bp._$z0+(bo._$z0-bp._$z0)*a9;bv=bh._$z0+(bg._$z0-bh._$z0)*a9;bt=aY._$z0+(aW._$z0-aY._$z0)*a9;br=a7._$z0+(a5._$z0-a7._$z0)*a9;bq=aR._$z0+(aQ._$z0-aR._$z0)*a9;bm._$Yr._$z0=(1-a4)*((1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8))+a4*((1-a6)*(bv+(bt-bv)*a8)+a6*(br+(bq-br)*a8));bC=aT._$qT+(aS._$qT-aT._$qT)*a9;bB=bE._$qT+(bD._$qT-bE._$qT)*a9;bz=aN._$qT+(aM._$qT-aN._$qT)*a9;by=bp._$qT+(bo._$qT-bp._$qT)*a9;bv=bh._$qT+(bg._$qT-bh._$qT)*a9;bt=aY._$qT+(aW._$qT-aY._$qT)*a9;br=a7._$qT+(a5._$qT-a7._$qT)*a9;bq=aR._$qT+(aQ._$qT-aR._$qT)*a9;bm._$Yr._$qT=(1-a4)*((1-a6)*(bC+(bB-bC)*a8)+a6*(bz+(by-bz)*a8))+a4*((1-a6)*(bv+(bt-bv)*a8)+a6*(br+(bq-br)*a8));}else{var aV=Math.pow(2,a2)|0;var aZ=new Float32Array(aV);for(var bk=0;bk<aV;bk++){var aI=bk;var aH=1;for(var aL=0;aL<a2;aL++){aH*=(aI%2==0)?(1-ba[aL]):ba[aL];aI/=2;}aZ[bk]=aH;}var bA=new Array();for(var aU=0;aU<aV;aU++){bA[aU]=this._$Y0[a3[aU]];}var be=0,bc=0,bd=0,bb=0,aX=0;for(var aU=0;aU<aV;aU++){be+=aZ[aU]*bA[aU]._$fL;bc+=aZ[aU]*bA[aU]._$gL;bd+=aZ[aU]*bA[aU]._$B0;bb+=aZ[aU]*bA[aU]._$z0;aX+=aZ[aU]*bA[aU]._$qT;}bm._$Yr._$fL=be;bm._$Yr._$gL=bc;bm._$Yr._$B0=bd;bm._$Yr._$z0=bb;bm._$Yr._$qT=aX;}}}}}var bn=this._$Y0[a3[0]];bm._$Yr.reflectX=bn.reflectX;bm._$Yr.reflectY=bn.reflectY;};ab.prototype._$2b=function(aM,aH){if(!((this==aH._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var aR=aH;aR._$hS(true);if(!this._$32()){aR.setTotalScale_notForClient(aR._$Yr._$B0);aR.setTotalOpacity(aR.getInterpolatedOpacity());}else{var aT=this.getTargetBaseDataID();if(aR._$8r==c._$ur){aR._$8r=aM.getBaseDataIndex(aT);}if(aR._$8r<0){if(Q._$so){q._$li("_$L _$0P _$G :: %s",aT);}aR._$hS(false);}else{var aI=aM.getBaseData(aR._$8r);if(aI!=null){var aL=aM._$q2(aR._$8r);var aS=ab._$Xo;aS[0]=aR._$Yr._$fL;aS[1]=aR._$Yr._$gL;var aJ=ab._$io;aJ[0]=0;aJ[1]=-0.1;var aO=aL._$GT().getType();if(aO==c._$c2){aJ[1]=-10;}else{aJ[1]=-0.1;}var aQ=ab._$0o;this._$Jr(aM,aI,aL,aS,aJ,aQ);var aP=aC._$92(aJ,aQ);aI._$nb(aM,aL,aS,aS,1,0,2);aR._$Wr._$fL=aS[0];aR._$Wr._$gL=aS[1];aR._$Wr._$B0=aR._$Yr._$B0;aR._$Wr._$z0=aR._$Yr._$z0;aR._$Wr._$qT=aR._$Yr._$qT-aP*aC._$NS;var aK=aL.getTotalScale();aR.setTotalScale_notForClient(aK*aR._$Wr._$B0);var aN=aL.getTotalOpacity();aR.setTotalOpacity(aN*aR.getInterpolatedOpacity());aR._$Wr.reflectX=aR._$Yr.reflectX;aR._$Wr.reflectY=aR._$Yr.reflectY;aR._$hS(aL._$yo());}else{aR._$hS(false);}}}};ab.prototype._$nb=function(aJ,aR,aL,a4,aT,aO,a2){if(!((this==aR._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var aH=aR;var aU=aH._$Wr!=null?aH._$Wr:aH._$Yr;var a0=Math.sin(aC._$bS*aU._$qT);var aP=Math.cos(aC._$bS*aU._$qT);var a3=aH.getTotalScale();var aW=aU.reflectX?-1:1;var aV=aU.reflectY?-1:1;var aS=aP*a3*aW;var aQ=-a0*a3*aV;var a1=a0*a3*aW;var aZ=aP*a3*aV;var aY=aU._$fL;var aX=aU._$gL;var aN,aM;var aI=aT*a2;for(var aK=aO;aK<aI;aK+=a2){aN=aL[aK];aM=aL[aK+1];a4[aK]=aS*aN+aQ*aM+aY;a4[aK+1]=a1*aN+aZ*aM+aX;}};ab.prototype._$Jr=function(aP,aK,aI,aR,aQ,aH){if(!((aK==aI._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var aO=ab._$Lo;ab._$Lo[0]=aR[0];ab._$Lo[1]=aR[1];aK._$nb(aP,aI,aO,aO,1,0,2);var aL=ab._$To;var aS=ab._$Po;var aN=10;var aJ=1;for(var aM=0;aM<aN;aM++){aS[0]=aR[0]+aJ*aQ[0];aS[1]=aR[1]+aJ*aQ[1];aK._$nb(aP,aI,aS,aL,1,0,2);aL[0]-=aO[0];aL[1]-=aO[1];if(aL[0]!=0||aL[1]!=0){aH[0]=aL[0];aH[1]=aL[1];return;}aS[0]=aR[0]-aJ*aQ[0];aS[1]=aR[1]-aJ*aQ[1];aK._$nb(aP,aI,aS,aL,1,0,2);aL[0]-=aO[0];aL[1]-=aO[1];if(aL[0]!=0||aL[1]!=0){aL[0]=-aL[0];aL[0]=-aL[0];aH[0]=aL[0];aH[1]=aL[1];return;}aJ*=0.1;}if(Q._$so){__NONECONSOLE.log("_$L0 to transform _$SP\\n");}};function al(aH){B.prototype.constructor.call(this,aH);this._$8r=c._$ur;this._$Yr=null;this._$Wr=null;}al.prototype=new B();function a(){if(j){return;}ae.prototype.constructor.call(this);this._$gP=null;this._$dr=null;this._$GS=null;this._$qb=null;this._$Lb=null;this._$mS=null;}a.prototype=new ae();a._$ur=-2;a._$ES=500;a._$wb=2;a._$8S=3;a._$os=4;a._$52=a._$ES;a._$R2=a._$ES;a._$Sb=function(aJ){for(var aI=aJ.length-1;aI>=0;--aI){var aH=aJ[aI];if(aH<a._$52){a._$52=aH;}else{if(aH>a._$R2){a._$R2=aH;}}}};a._$or=function(){return a._$52;};a._$Pr=function(){return a._$R2;};a.prototype._$F0=function(aH){this._$gP=aH._$nP();this._$dr=aH._$nP();this._$GS=aH._$nP();this._$qb=aH._$6L();this._$Lb=aH._$cS();this._$mS=aH._$Tb();if(aH.getFormatVersion()>=ay._$T7){this.clipID=aH._$nP();this.clipIDList=this.convertClipIDForV2_11(this.clipID);}else{this.clipIDList=null;}a._$Sb(this._$Lb);};a.prototype.getClipIDList=function(){return this.clipIDList;};a.prototype._$Nr=function(aI,aH){aH._$IS[0]=false;aH._$Us=aG._$Z2(aI,this._$GS,aH._$IS,this._$Lb);if(Q._$Zs){}else{if(aH._$IS[0]){return;}}aH._$7s=aG._$br(aI,this._$GS,aH._$IS,this._$mS);};a.prototype._$2b=function(aH){};a.prototype.getDrawDataID=function(){return this._$gP;};a.prototype._$j2=function(aH){this._$gP=aH;};a.prototype.getOpacity=function(aH,aI){return aI._$7s;};a.prototype._$zS=function(aH,aI){return aI._$Us;};a.prototype.getTargetBaseDataID=function(){return this._$dr;};a.prototype._$gs=function(aH){this._$dr=aH;};a.prototype._$32=function(){return(this._$dr!=null&&(this._$dr!=n._$2o()));};a.prototype.getType=function(){};function aq(){if(j){return;}this._$NL=null;this._$3S=null;this._$aS=null;aq._$42++;}aq._$42=0;aq.prototype._$1b=function(){return this._$3S;};aq.prototype.getDrawDataList=function(){return this._$aS;};aq.prototype._$F0=function(aH){this._$NL=aH._$nP();this._$aS=aH._$nP();this._$3S=aH._$nP();};aq.prototype._$kr=function(aH){aH._$Zo(this._$3S);aH._$xo(this._$aS);this._$3S=null;this._$aS=null;};function v(){if(j){return;}aa.prototype.constructor.call(this);this._$zo=new x();}v.prototype=new aa();v.loadModel=function(aI){var aH=new v();aa._$62(aH,aI);return aH;};v.loadModel=function(aI){var aH=new v();aa._$62(aH,aI);return aH;};v._$to=function(){var aH=new v();return aH;};v._$er=function(aM){var aJ=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(aJ.exists()==false){throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+aJ._$PL());}var aH=["../_$_r/_$t0/_$Ri/_$_P.512/_$CP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$vP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$EP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$pP._$1"];var aK=v.loadModel(aJ._$3b());for(var aI=0;aI<aH.length;aI++){var aL=new _$5(aH[aI]);if(aL.exists()==false){throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+aL._$PL());}aK.setTexture(aI,_$nL._$_o(aM,aL._$3b()));}return aK;};v.prototype.setGL=function(aH){this._$zo.setGL(aH);};v.prototype.setTransform=function(aH){this._$zo.setTransform(aH);};v.prototype.draw=function(){this._$5S.draw(this._$zo);};v.prototype._$K2=function(){this._$zo._$K2();};v.prototype.setTexture=function(aI,aH){if(this._$zo==null){q._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!");}this._$zo.setTexture(aI,aH);};v.prototype.setTexture=function(aI,aH){if(this._$zo==null){q._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!");}this._$zo.setTexture(aI,aH);};v.prototype._$Rs=function(){return this._$zo._$Rs();};v.prototype._$Ds=function(aH){this._$zo._$Ds(aH);};v.prototype.getDrawParam=function(){return this._$zo;};function ao(){if(j){return;}ah.prototype.constructor.call(this);this.motions=new Array();this._$o2=null;this._$7r=ao._$Co++;this._$D0=30;this._$yT=0;this._$E=false;this.loopFadeIn=true;this._$rr=-1;this._$eP=0;}ao.prototype=new ah();ao._$cs="VISIBLE:";ao._$ar="LAYOUT:";ao.MTN_PREFIX_FADEIN="FADEIN:";ao.MTN_PREFIX_FADEOUT="FADEOUT:";ao._$Co=0;ao._$1T=1;ao.loadMotion=function(aJ){var aI=ap._$C(aJ);var aH=ao.loadMotion(aI);return aH;};function p(aI,aH){return String.fromCharCode(aI.getUint8(aH));}ao.loadMotion=function(aT){if(aT instanceof ArrayBuffer){aT=new DataView(aT);}var aN=new ao();var aI=[0];var aQ=aT.byteLength;aN._$yT=0;for(var aJ=0;aJ<aQ;++aJ){var aS=p(aT,aJ);var aL=aS.charCodeAt(0);if(aS=="\\n"||aS=="\\r"){continue;}if(aS=="#"){for(;aJ<aQ;++aJ){if(p(aT,aJ)=="\\n"||p(aT,aJ)=="\\r"){break;}}continue;}if(aS=="$"){var aV=aJ;var aK=-1;for(;aJ<aQ;++aJ){aS=p(aT,aJ);if(aS=="\\r"||aS=="\\n"){break;}if(aS=="="){aK=aJ;break;}}var aP=false;if(aK>=0){if(aK==aV+4&&p(aT,aV+1)=="f"&&p(aT,aV+2)=="p"&&p(aT,aV+3)=="s"){aP=true;}for(aJ=aK+1;aJ<aQ;++aJ){aS=p(aT,aJ);if(aS=="\\r"||aS=="\\n"){break;}if(aS==","||aS==" "||aS=="	"){continue;}var aM=G._$LS(aT,aQ,aJ,aI);if(aI[0]>0){if(aP&&5<aM&&aM<121){aN._$D0=aM;}}aJ=aI[0];}}for(;aJ<aQ;++aJ){if(p(aT,aJ)=="\\n"||p(aT,aJ)=="\\r"){break;}}continue;}if((97<=aL&&aL<=122)||(65<=aL&&aL<=90)||aS=="_"){var aV=aJ;var aK=-1;for(;aJ<aQ;++aJ){aS=p(aT,aJ);if(aS=="\\r"||aS=="\\n"){break;}if(aS=="="){aK=aJ;break;}}if(aK>=0){var aO=new t();if(G.startsWith(aT,aV,ao._$cs)){aO._$RP=t._$hs;aO._$4P=G.createString(aT,aV,aK-aV);}else{if(G.startsWith(aT,aV,ao._$ar)){aO._$4P=G.createString(aT,aV+7,aK-aV-7);if(G.startsWith(aT,aV+7,"ANCHOR_X")){aO._$RP=t._$xs;}else{if(G.startsWith(aT,aV+7,"ANCHOR_Y")){aO._$RP=t._$us;}else{if(G.startsWith(aT,aV+7,"SCALE_X")){aO._$RP=t._$qs;}else{if(G.startsWith(aT,aV+7,"SCALE_Y")){aO._$RP=t._$Ys;}else{if(G.startsWith(aT,aV+7,"X")){aO._$RP=t._$ws;}else{if(G.startsWith(aT,aV+7,"Y")){aO._$RP=t._$Ns;}}}}}}}else{aO._$RP=t._$Fr;aO._$4P=G.createString(aT,aV,aK-aV);}}aN.motions.push(aO);var aU=0;var aR=[];for(aJ=aK+1;aJ<aQ;++aJ){aS=p(aT,aJ);if(aS=="\\r"||aS=="\\n"){break;}if(aS==","||aS==" "||aS=="	"){continue;}var aM=G._$LS(aT,aQ,aJ,aI);if(aI[0]>0){aR.push(aM);aU++;var aH=aI[0];if(aH<aJ){__NONECONSOLE.log("_$n0 _$hi . @Live2DMotion loadMotion()\\n");break;}aJ=aH-1;}}aO._$I0=new Float32Array(aR);if(aU>aN._$yT){aN._$yT=aU;}}}}aN._$rr=((1000*aN._$yT)/aN._$D0)|0;return aN;};ao.prototype.getDurationMSec=function(){return this._$E?-1:this._$rr;};ao.prototype.getLoopDurationMSec=function(){return this._$rr;};ao.prototype.dump=function(){for(var aJ=0;aJ<this.motions.length;aJ++){var aH=this.motions[aJ];__NONECONSOLE.log("_$wL[%s] [%d]. ",aH._$4P,aH._$I0.length);for(var aI=0;aI<aH._$I0.length&&aI<10;aI++){__NONECONSOLE.log("%5.2f ,",aH._$I0[aI]);}__NONECONSOLE.log("\\n");}};ao.prototype.updateParamExe=function(aJ,aN,aQ,a3){var aO=aN-a3._$z2;var a0=aO*this._$D0/1000;var aK=a0|0;var aR=a0-aK;for(var aZ=0;aZ<this.motions.length;aZ++){var aV=this.motions[aZ];var aL=aV._$I0.length;var aT=aV._$4P;if(aV._$RP==t._$hs){var aX=aV._$I0[(aK>=aL?aL-1:aK)];aJ.setParamFloat(aT,aX);}else{if(t._$ws<=aV._$RP&&aV._$RP<=t._$Ys){}else{var aH=aJ.getParamIndex(aT);var a4=aJ.getModelContext();var aY=a4.getParamMax(aH);var aW=a4.getParamMin(aH);var aM=0.4;var aS=aM*(aY-aW);var aU=a4.getParamFloat(aH);var a2=aV._$I0[(aK>=aL?aL-1:aK)];var a1=aV._$I0[(aK+1>=aL?aL-1:aK+1)];var aI;if((a2<a1&&a1-a2>aS)||(a2>a1&&a2-a1>aS)){aI=a2;}else{aI=a2+(a1-a2)*aR;}var aP=aU+(aI-aU)*aQ;aJ.setParamFloat(aT,aP);}}}if(aK>=this._$yT){if(this._$E){a3._$z2=aN;if(this.loopFadeIn){a3._$bs=aN;}}else{a3._$9L=true;}}this._$eP=aQ;};ao.prototype._$r0=function(){return this._$E;};ao.prototype._$aL=function(aH){this._$E=aH;};ao.prototype._$S0=function(){return this._$D0;};ao.prototype._$U0=function(aH){this._$D0=aH;};ao.prototype.isLoopFadeIn=function(){return this.loopFadeIn;};ao.prototype.setLoopFadeIn=function(aH){this.loopFadeIn=aH;};function aE(){this._$P=new Float32Array(100);this.size=0;}aE.prototype.clear=function(){this.size=0;};aE.prototype.add=function(aI){if(this._$P.length<=this.size){var aH=new Float32Array(this.size*2);P._$jT(this._$P,0,aH,0,this.size);this._$P=aH;}this._$P[this.size++]=aI;};aE.prototype._$BL=function(){var aH=new Float32Array(this.size);P._$jT(this._$P,0,aH,0,this.size);return aH;};function t(){this._$4P=null;this._$I0=null;this._$RP=null;}t._$Fr=0;t._$hs=1;t._$ws=100;t._$Ns=101;t._$xs=102;t._$us=103;t._$qs=104;t._$Ys=105;function E(){if(j){return;}c.prototype.constructor.call(this);this._$o=0;this._$A=0;this._$GS=null;this._$Eo=null;}E.prototype=new c();E._$gT=new Array();E.prototype._$zP=function(){this._$GS=new g();this._$GS._$zP();};E.prototype._$F0=function(aH){c.prototype._$F0.call(this,aH);this._$A=aH._$6L();this._$o=aH._$6L();this._$GS=aH._$nP();this._$Eo=aH._$nP();c.prototype.readV2_opacity.call(this,aH);};E.prototype.init=function(aH){var aI=new H(this);var aJ=(this._$o+1)*(this._$A+1);if(aI._$Cr!=null){aI._$Cr=null;}aI._$Cr=new Float32Array(aJ*2);if(aI._$hr!=null){aI._$hr=null;}if(this._$32()){aI._$hr=new Float32Array(aJ*2);}else{aI._$hr=null;}return aI;};E.prototype._$Nr=function(aJ,aI){var aK=aI;if(!this._$GS._$Ur(aJ)){return;}var aL=this._$VT();var aH=E._$gT;aH[0]=false;aG._$Vr(aJ,this._$GS,aH,aL,this._$Eo,aK._$Cr,0,2);aI._$Ib(aH[0]);this.interpolateOpacity(aJ,this._$GS,aI,aH);};E.prototype._$2b=function(aK,aJ){var aL=aJ;aL._$hS(true);if(!this._$32()){aL.setTotalOpacity(aL.getInterpolatedOpacity());}else{var aH=this.getTargetBaseDataID();if(aL._$8r==c._$ur){aL._$8r=aK.getBaseDataIndex(aH);}if(aL._$8r<0){if(Q._$so){q._$li("_$L _$0P _$G :: %s",aH);}aL._$hS(false);}else{var aN=aK.getBaseData(aL._$8r);var aI=aK._$q2(aL._$8r);if(aN!=null&&aI._$yo()){var aM=aI.getTotalScale();aL.setTotalScale_notForClient(aM);var aO=aI.getTotalOpacity();aL.setTotalOpacity(aO*aL.getInterpolatedOpacity());aN._$nb(aK,aI,aL._$Cr,aL._$hr,this._$VT(),0,2);aL._$hS(true);}else{aL._$hS(false);}}}};E.prototype._$nb=function(aL,aI,aH,aM,aO,aK,aJ){if(true){var aN=aI;var aP=(aN._$hr!=null)?aN._$hr:aN._$Cr;E.transformPoints_sdk2(aH,aM,aO,aK,aJ,aP,this._$o,this._$A);}else{this.transformPoints_sdk1(aL,aI,aH,aM,aO,aK,aJ);}};E.transformPoints_sdk2=function(a0,bc,a5,aP,aI,aR,aQ,aU){var aW=a5*aI;var aV;var bn,bm;var aT=0;var aS=0;var bl=0;var bk=0;var bf=0;var be=0;var aZ=false;for(var ba=aP;ba<aW;ba+=aI){var bd,a7,a4,aX;a4=a0[ba];aX=a0[ba+1];bd=a4*aQ;a7=aX*aU;if(bd<0||a7<0||aQ<=bd||aU<=a7){var a1=aQ+1;if(!aZ){aZ=true;aT=0.25*(aR[((0)+(0)*a1)*2]+aR[((aQ)+(0)*a1)*2]+aR[((0)+(aU)*a1)*2]+aR[((aQ)+(aU)*a1)*2]);aS=0.25*(aR[((0)+(0)*a1)*2+1]+aR[((aQ)+(0)*a1)*2+1]+aR[((0)+(aU)*a1)*2+1]+aR[((aQ)+(aU)*a1)*2+1]);var aM=aR[((aQ)+(aU)*a1)*2]-aR[((0)+(0)*a1)*2];var aL=aR[((aQ)+(aU)*a1)*2+1]-aR[((0)+(0)*a1)*2+1];var bh=aR[((aQ)+(0)*a1)*2]-aR[((0)+(aU)*a1)*2];var bg=aR[((aQ)+(0)*a1)*2+1]-aR[((0)+(aU)*a1)*2+1];bl=(aM+bh)*0.5;bk=(aL+bg)*0.5;bf=(aM-bh)*0.5;be=(aL-bg)*0.5;if(bl==0&&bk==0){}if(bf==0&&be==0){}aT-=0.5*(bl+bf);aS-=0.5*(bk+be);}if((-2<a4&&a4<3)&&(-2<aX&&aX<3)){if(a4<=0){if(aX<=0){var a3=aR[((0)+(0)*a1)*2];var a2=aR[((0)+(0)*a1)*2+1];var a8=aT-2*bl;var a6=aS-2*bk;var aK=aT-2*bf;var aJ=aS-2*be;var aO=aT-2*bl-2*bf;var aN=aS-2*bk-2*be;var bj=0.5*(a4-(-2));var bi=0.5*(aX-(-2));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{if(aX>=1){var aK=aR[((0)+(aU)*a1)*2];var aJ=aR[((0)+(aU)*a1)*2+1];var aO=aT-2*bl+1*bf;var aN=aS-2*bk+1*be;var a3=aT+3*bf;var a2=aS+3*be;var a8=aT-2*bl+3*bf;var a6=aS-2*bk+3*be;var bj=0.5*(a4-(-2));var bi=0.5*(aX-(1));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{var aH=(a7|0);if(aH==aU){aH=aU-1;}var bj=0.5*(a4-(-2));var bi=a7-aH;var bb=aH/aU;var a9=(aH+1)/aU;var aK=aR[((0)+(aH)*a1)*2];var aJ=aR[((0)+(aH)*a1)*2+1];var a3=aR[((0)+(aH+1)*a1)*2];var a2=aR[((0)+(aH+1)*a1)*2+1];var aO=aT-2*bl+bb*bf;var aN=aS-2*bk+bb*be;var a8=aT-2*bl+a9*bf;var a6=aS-2*bk+a9*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}}}else{if(1<=a4){if(aX<=0){var a8=aR[((aQ)+(0)*a1)*2];var a6=aR[((aQ)+(0)*a1)*2+1];var a3=aT+3*bl;var a2=aS+3*bk;var aO=aT+1*bl-2*bf;var aN=aS+1*bk-2*be;var aK=aT+3*bl-2*bf;var aJ=aS+3*bk-2*be;var bj=0.5*(a4-(1));var bi=0.5*(aX-(-2));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{if(aX>=1){var aO=aR[((aQ)+(aU)*a1)*2];var aN=aR[((aQ)+(aU)*a1)*2+1];var aK=aT+3*bl+1*bf;var aJ=aS+3*bk+1*be;var a8=aT+1*bl+3*bf;var a6=aS+1*bk+3*be;var a3=aT+3*bl+3*bf;var a2=aS+3*bk+3*be;var bj=0.5*(a4-(1));var bi=0.5*(aX-(1));if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{var aH=(a7|0);if(aH==aU){aH=aU-1;}var bj=0.5*(a4-(1));var bi=a7-aH;var bb=aH/aU;var a9=(aH+1)/aU;var aO=aR[((aQ)+(aH)*a1)*2];var aN=aR[((aQ)+(aH)*a1)*2+1];var a8=aR[((aQ)+(aH+1)*a1)*2];var a6=aR[((aQ)+(aH+1)*a1)*2+1];var aK=aT+3*bl+bb*bf;var aJ=aS+3*bk+bb*be;var a3=aT+3*bl+a9*bf;var a2=aS+3*bk+a9*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}}}else{if(aX<=0){var aY=(bd|0);if(aY==aQ){aY=aQ-1;}var bj=bd-aY;var bi=0.5*(aX-(-2));var bp=aY/aQ;var bo=(aY+1)/aQ;var a8=aR[((aY)+(0)*a1)*2];var a6=aR[((aY)+(0)*a1)*2+1];var a3=aR[((aY+1)+(0)*a1)*2];var a2=aR[((aY+1)+(0)*a1)*2+1];var aO=aT+bp*bl-2*bf;var aN=aS+bp*bk-2*be;var aK=aT+bo*bl-2*bf;var aJ=aS+bo*bk-2*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{if(aX>=1){var aY=(bd|0);if(aY==aQ){aY=aQ-1;}var bj=bd-aY;var bi=0.5*(aX-(1));var bp=aY/aQ;var bo=(aY+1)/aQ;var aO=aR[((aY)+(aU)*a1)*2];var aN=aR[((aY)+(aU)*a1)*2+1];var aK=aR[((aY+1)+(aU)*a1)*2];var aJ=aR[((aY+1)+(aU)*a1)*2+1];var a8=aT+bp*bl+3*bf;var a6=aS+bp*bk+3*be;var a3=aT+bo*bl+3*bf;var a2=aS+bo*bk+3*be;if(bj+bi<=1){bc[ba]=aO+(aK-aO)*bj+(a8-aO)*bi;bc[ba+1]=aN+(aJ-aN)*bj+(a6-aN)*bi;}else{bc[ba]=a3+(a8-a3)*(1-bj)+(aK-a3)*(1-bi);bc[ba+1]=a2+(a6-a2)*(1-bj)+(aJ-a2)*(1-bi);}}else{System.err.printf("_$li calc : %.4f , %.4f					@@BDBoxGrid\\n",a4,aX);}}}}}else{bc[ba]=aT+a4*bl+aX*bf;bc[ba+1]=aS+a4*bk+aX*be;}}else{bn=bd-(bd|0);bm=a7-(a7|0);aV=2*((bd|0)+((a7|0))*(aQ+1));if(bn+bm<1){bc[ba]=aR[aV]*(1-bn-bm)+aR[aV+2]*bn+aR[aV+2*(aQ+1)]*bm;bc[ba+1]=aR[aV+1]*(1-bn-bm)+aR[aV+3]*bn+aR[aV+2*(aQ+1)+1]*bm;}else{bc[ba]=aR[aV+2*(aQ+1)+2]*(bn-1+bm)+aR[aV+2*(aQ+1)]*(1-bn)+aR[aV+2]*(1-bm);bc[ba+1]=aR[aV+2*(aQ+1)+3]*(bn-1+bm)+aR[aV+2*(aQ+1)+1]*(1-bn)+aR[aV+3]*(1-bm);}}}};E.prototype.transformPoints_sdk1=function(aJ,aR,aL,a0,aU,aP,aZ){var aH=aR;var aO,aN;var aM=this._$o;var aQ=this._$A;var aI=aU*aZ;var aS,aY;var aV;var aX,aW;var aT=(aH._$hr!=null)?aH._$hr:aH._$Cr;for(var aK=aP;aK<aI;aK+=aZ){if(Q._$ts){aO=aL[aK];aN=aL[aK+1];if(aO<0){aO=0;}else{if(aO>1){aO=1;}}if(aN<0){aN=0;}else{if(aN>1){aN=1;}}aO*=aM;aN*=aQ;aS=(aO|0);aY=(aN|0);if(aS>aM-1){aS=aM-1;}if(aY>aQ-1){aY=aQ-1;}aX=aO-aS;aW=aN-aY;aV=2*(aS+aY*(aM+1));}else{aO=aL[aK]*aM;aN=aL[aK+1]*aQ;aX=aO-(aO|0);aW=aN-(aN|0);aV=2*((aO|0)+(aN|0)*(aM+1));}if(aX+aW<1){a0[aK]=aT[aV]*(1-aX-aW)+aT[aV+2]*aX+aT[aV+2*(aM+1)]*aW;a0[aK+1]=aT[aV+1]*(1-aX-aW)+aT[aV+3]*aX+aT[aV+2*(aM+1)+1]*aW;}else{a0[aK]=aT[aV+2*(aM+1)+2]*(aX-1+aW)+aT[aV+2*(aM+1)]*(1-aX)+aT[aV+2]*(1-aW);a0[aK+1]=aT[aV+2*(aM+1)+3]*(aX-1+aW)+aT[aV+2*(aM+1)+1]*(1-aX)+aT[aV+3]*(1-aW);}}};E.prototype._$VT=function(){return(this._$o+1)*(this._$A+1);};E.prototype.getType=function(){return c._$_b;};function H(aH){B.prototype.constructor.call(this,aH);this._$8r=c._$ur;this._$Cr=null;this._$hr=null;}H.prototype=new B();function s(){if(j){return;}this.visible=true;this._$g0=false;this._$NL=null;this._$3S=null;this._$aS=null;s._$42++;}s._$42=0;s.prototype._$zP=function(){this._$3S=new Array();this._$aS=new Array();};s.prototype._$F0=function(aH){this._$g0=aH._$8L();this.visible=aH._$8L();this._$NL=aH._$nP();this._$3S=aH._$nP();this._$aS=aH._$nP();};s.prototype.init=function(aI){var aH=new aj(this);aH.setPartsOpacity(this.isVisible()?1:0);return aH;};s.prototype._$6o=function(aH){if(this._$3S==null){throw new Error("_$3S _$6 _$Wo@_$6o");}this._$3S.push(aH);};s.prototype._$3o=function(aH){if(this._$aS==null){throw new Error("_$aS _$6 _$Wo@_$3o");}this._$aS.push(aH);};s.prototype._$Zo=function(aH){this._$3S=aH;};s.prototype._$xo=function(aH){this._$aS=aH;};s.prototype.isVisible=function(){return this.visible;};s.prototype._$uL=function(){return this._$g0;};s.prototype._$KP=function(aH){this.visible=aH;};s.prototype._$ET=function(aH){this._$g0=aH;};s.prototype.getBaseData=function(){return this._$3S;};s.prototype.getDrawData=function(){return this._$aS;};s.prototype._$p2=function(){return this._$NL;};s.prototype._$ob=function(aH){this._$NL=aH;};s.prototype.getPartsID=function(){return this._$NL;};s.prototype._$MP=function(aH){this._$NL=aH;};function aj(aH){this._$VS=null;this._$e0=null;this._$e0=aH;}aj.prototype=new S();aj.prototype.getPartsOpacity=function(){return this._$VS;};aj.prototype.setPartsOpacity=function(aH){this._$VS=aH;};function ak(aH){if(j){return;}this.id=aH;}ak._$L7=function(){z._$27();n._$27();Z._$27();i._$27();};ak.prototype.toString=function(){return this.id;};function D(){}D.prototype._$F0=function(aH){};function an(){if(j){return;}this._$4S=null;}an.prototype._$1s=function(){return this._$4S;};an.prototype._$zP=function(){this._$4S=new Array();};an.prototype._$F0=function(aH){this._$4S=aH._$nP();};an.prototype._$Ks=function(aH){this._$4S.push(aH);};function au(aH,aI){this.canvas=aH;this.context=aI;this.viewport=new Array(0,0,aH.width,aH.height);this._$6r=1;this._$xP=0;this._$3r=1;this._$uP=0;this._$Qo=-1;this.cacheImages={};}au.tr=new am();au._$50=new am();au._$Ti=new Array(0,0);au._$Pi=new Array(0,0);au._$B=new Array(0,0);au.prototype._$lP=function(aI,aK,aJ,aH){this.viewport=new Array(aI,aK,aJ,aH);};au.prototype._$bL=function(){this.context.save();var aH=this.viewport;if(aH!=null){this.context.beginPath();this.context._$Li(aH[0],aH[1],aH[2],aH[3]);this.context.clip();}};au.prototype._$ei=function(){this.context.restore();};au.prototype.drawElements=function(bc,bm,aX,aJ,bA,aM,bl,bz){try{if(bA!=this._$Qo){this._$Qo=bA;this.context.globalAlpha=bA;}var a2=bm.length;var aP=bc.width;var a5=bc.height;var bE=this.context;var a7=this._$xP;var a6=this._$uP;var a1=this._$6r;var aZ=this._$3r;var bD=au.tr;var aI=au._$Ti;var aH=au._$Pi;var bu=au._$B;for(var by=0;by<a2;by+=3){bE.save();var aW=bm[by];var aV=bm[by+1];var aT=bm[by+2];var aL=a7+a1*aX[aW*2];var aK=a6+aZ*aX[aW*2+1];var br=a7+a1*aX[aV*2];var bp=a6+aZ*aX[aV*2+1];var bh=a7+a1*aX[aT*2];var bf=a6+aZ*aX[aT*2+1];if(bl){bl._$PS(aL,aK,bu);aL=bu[0];aK=bu[1];bl._$PS(br,bp,bu);br=bu[0];bp=bu[1];bl._$PS(bh,bf,bu);bh=bu[0];bf=bu[1];}var aS=aP*aJ[aW*2];var aQ=a5-a5*aJ[aW*2+1];var bx=aP*aJ[aV*2];var bw=a5-a5*aJ[aV*2+1];var bk=aP*aJ[aT*2];var bj=a5-a5*aJ[aT*2+1];var a3=Math.atan2(bw-aQ,bx-aS);var a0=Math.atan2(bp-aK,br-aL);var aO=br-aL;var aN=bp-aK;var bi=Math.sqrt(aO*aO+aN*aN);var aU=bx-aS;var aR=bw-aQ;var bt=Math.sqrt(aU*aU+aR*aR);var bv=bi/bt;ad._$ni(bk,bj,aS,aQ,(bx-aS),(bw-aQ),-(bw-aQ),(bx-aS),aI);ad._$ni(bh,bf,aL,aK,(br-aL),(bp-aK),-(bp-aK),(br-aL),aH);var aY=(aH[0]-aI[0])/aI[1];var bs=Math.min(aS,bx,bk);var bg=Math.max(aS,bx,bk);var bq=Math.min(aQ,bw,bj);var be=Math.max(aQ,bw,bj);var bo=Math.floor(bs);var bb=Math.floor(bq);var a4=Math.ceil(bg);var bC=Math.ceil(be);bD.identity();bD.translate(aL,aK);bD.rotate(a0);bD.scale(1,aH[1]/aI[1]);bD.shear(aY,0);bD.scale(bv,bv);bD.rotate(-a3);bD.translate(-aS,-aQ);bD.setContext(bE);var a8=true;var a9=1.2;if(!aM){aM=a8?a9:0;}if(Q.IGNORE_EXPAND){aM=0;}if(Q.USE_CACHED_POLYGON_IMAGE){var bd=bz._$e0;bd.gl_cacheImage=bd.gl_cacheImage||{};if(!bd.gl_cacheImage[by]){var bn=au.createCanvas(a4-bo,bC-bb);Q.DEBUG_DATA.LDGL_CANVAS_MB=Q.DEBUG_DATA.LDGL_CANVAS_MB||0;Q.DEBUG_DATA.LDGL_CANVAS_MB+=(a4-bo)*(bC-bb)*4;var ba=bn.getContext("2d");ba.translate(-bo,-bb);au.clip(ba,bD,aM,bi,aS,aQ,bx,bw,bk,bj,aL,aK,br,bp,bh,bf);ba.drawImage(bc,0,0);bd.gl_cacheImage[by]={cacheCanvas:bn,cacheContext:ba};}bE.drawImage(bd.gl_cacheImage[by]["cacheCanvas"],bo,bb);}else{if(!Q.IGNORE_CLIP){au.clip(bE,bD,aM,bi,aS,aQ,bx,bw,bk,bj,aL,aK,br,bp,bh,bf);}if(Q.USE_ADJUST_TRANSLATION){bs=0;bg=aP;bq=0;be=a5;}bE.drawImage(bc,bs,bq,bg-bs,be-bq,bs,bq,bg-bs,be-bq);}bE.restore();}}catch(bB){q._$Rb(bB);}};au.clip=function(aK,aJ,aV,aI,aM,aL,aU,aT,aQ,aP,aO,aN,aH,aW,aS,aR){if(aV>0.02){au.expandClip(aK,aJ,aV,aI,aO,aN,aH,aW,aS,aR);}else{au.clipWithTransform(aK,null,aM,aL,aU,aT,aQ,aP);}};au.expandClip=function(aV,bg,aK,a3,aJ,aI,be,ba,aZ,aX){var aP=be-aJ;var aO=ba-aI;var bi=aZ-aJ;var bh=aX-aI;var bj=aP*bh-aO*bi>0?aK:-aK;var aL=-aO;var aH=aP;var bc=aZ-be;var a8=aX-ba;var a7=-a8;var a6=bc;var aQ=Math.sqrt(bc*bc+a8*a8);var bf=-bh;var bb=bi;var a2=Math.sqrt(bi*bi+bh*bh);var bd=aJ-bj*aL/a3;var a9=aI-bj*aH/a3;var aY=be-bj*aL/a3;var aW=ba-bj*aH/a3;var a5=be-bj*a7/aQ;var a4=ba-bj*a6/aQ;var aS=aZ-bj*a7/aQ;var aR=aX-bj*a6/aQ;var aN=aJ+bj*bf/a2;var aM=aI+bj*bb/a2;var a1=aZ+bj*bf/a2;var a0=aX+bj*bb/a2;var aU=au._$50;var aT=bg._$P2(aU);if(aT==null){return false;}au.clipWithTransform(aV,aU,bd,a9,aY,aW,a5,a4,aS,aR,a1,a0,aN,aM);return true;};au.clipWithTransform=function(aH,aI,aS,aN,aQ,aK,aP,aJ){if(arguments.length<(1+3*2)){q._$li("err : @LDGL.clip()");return;}if(!(arguments[1] instanceof am)){q._$li("err : a[0] is _$6 LDTransform @LDGL.clip()");return;}var aM=au._$B;var aO=aI;var aR=arguments;aH.beginPath();if(aO){aO._$PS(aR[2],aR[3],aM);aH.moveTo(aM[0],aM[1]);for(var aL=4;aL<aR.length;aL+=2){aO._$PS(aR[aL],aR[aL+1],aM);aH.lineTo(aM[0],aM[1]);}}else{aH.moveTo(aR[2],aR[3]);for(var aL=4;aL<aR.length;aL+=2){aH.lineTo(aR[aL],aR[aL+1]);}}aH.clip();};au.createCanvas=function(aH,aJ){var aI=document.createElement("canvas");aI.setAttribute("width",aH);aI.setAttribute("height",aJ);if(!aI){q._$li("err : "+aI);}return aI;};au.dumpValues=function(){var aI="";for(var aH=0;aH<arguments.length;aH++){aI+="["+aH+"]= "+arguments[aH].toFixed(3)+" , ";}__NONECONSOLE.log(aI);};function f(){if(j){return;}this._$TT=null;this._$LT=null;this._$FS=null;this._$wL=null;}f.prototype._$F0=function(aH){this._$TT=aH._$_T();this._$LT=aH._$_T();this._$FS=aH._$_T();this._$wL=aH._$nP();};f.prototype.getMinValue=function(){return this._$TT;};f.prototype.getMaxValue=function(){return this._$LT;};f.prototype.getDefaultValue=function(){return this._$FS;};f.prototype.getParamID=function(){return this._$wL;};function B(aH){if(j){return;}this._$e0=null;this._$IP=null;this._$JS=false;this._$AT=true;this._$e0=aH;this.totalScale=1;this._$7s=1;this.totalOpacity=1;}B.prototype._$yo=function(){return this._$AT&&!this._$JS;};B.prototype._$hS=function(aH){this._$AT=aH;};B.prototype._$GT=function(){return this._$e0;};B.prototype._$l2=function(aH){this._$IP=aH;};B.prototype.getPartsIndex=function(){return this._$IP;};B.prototype._$x2=function(){return this._$JS;};B.prototype._$Ib=function(aH){this._$JS=aH;};B.prototype.getTotalScale=function(){return this.totalScale;};B.prototype.setTotalScale_notForClient=function(aH){this.totalScale=aH;};B.prototype.getInterpolatedOpacity=function(){return this._$7s;};B.prototype.setInterpolatedOpacity=function(aH){this._$7s=aH;};B.prototype.getTotalOpacity=function(aH){return this.totalOpacity;};B.prototype.setTotalOpacity=function(aH){this.totalOpacity=aH;};function Q(){}Q._$2s="2.1.00_1";Q._$Kr=201001000;Q._$sP=true;Q._$so=true;Q._$cb=false;Q._$3T=true;Q._$Ts=true;Q._$fb=true;Q._$ts=true;Q.L2D_DEFORMER_EXTEND=true;Q._$Wb=false;Q._$yr=false;Q._$Zs=false;Q.L2D_NO_ERROR=0;Q._$i7=1000;Q._$9s=1001;Q._$es=1100;Q._$r7=2000;Q._$07=2001;Q._$b7=2002;Q._$H7=4000;Q.L2D_COLOR_BLEND_MODE_MULT=0;Q.L2D_COLOR_BLEND_MODE_ADD=1;Q.L2D_COLOR_BLEND_MODE_INTERPOLATE=2;Q._$6b=true;Q._$cT=0;Q.clippingMaskBufferSize=256;Q.glContext=new Array();Q.frameBuffers=new Array();Q.fTexture=new Array();Q.IGNORE_CLIP=false;Q.IGNORE_EXPAND=false;Q.EXPAND_W=2;Q.USE_ADJUST_TRANSLATION=true;Q.USE_CANVAS_TRANSFORM=true;Q.USE_CACHED_POLYGON_IMAGE=false;Q.DEBUG_DATA={};Q.PROFILE_IOS_SPEED={PROFILE_NAME:"iOS Speed",USE_ADJUST_TRANSLATION:true,USE_CACHED_POLYGON_IMAGE:true,EXPAND_W:4};Q.PROFILE_IOS_QUALITY={PROFILE_NAME:"iOS HiQ",USE_ADJUST_TRANSLATION:true,USE_CACHED_POLYGON_IMAGE:false,EXPAND_W:2};Q.PROFILE_IOS_DEFAULT=Q.PROFILE_IOS_QUALITY;Q.PROFILE_ANDROID={PROFILE_NAME:"Android",USE_ADJUST_TRANSLATION:false,USE_CACHED_POLYGON_IMAGE:false,EXPAND_W:2};Q.PROFILE_DESKTOP={PROFILE_NAME:"Desktop",USE_ADJUST_TRANSLATION:false,USE_CACHED_POLYGON_IMAGE:false,EXPAND_W:2};Q.initProfile=function(){if(r.isIOS()){Q.setupProfile(Q.PROFILE_IOS_DEFAULT);}else{if(r.isAndroid()){Q.setupProfile(Q.PROFILE_ANDROID);}else{Q.setupProfile(Q.PROFILE_DESKTOP);}}};Q.setupProfile=function(aI,aJ){if(typeof aI=="number"){switch(aI){case 9901:aI=Q.PROFILE_IOS_SPEED;break;case 9902:aI=Q.PROFILE_IOS_QUALITY;break;case 9903:aI=Q.PROFILE_IOS_DEFAULT;break;case 9904:aI=Q.PROFILE_ANDROID;break;case 9905:aI=Q.PROFILE_DESKTOP;break;default:alert("profile _$6 _$Ui : "+aI);break;}}if(arguments.length<2){aJ=true;}if(aJ){__NONECONSOLE.log("profile : "+aI.PROFILE_NAME);}for(var aH in aI){Q[aH]=aI[aH];if(aJ){__NONECONSOLE.log("  ["+aH+"] = "+aI[aH]);}}};Q.init=function(){if(Q._$6b){__NONECONSOLE.log("Live2D %s",Q._$2s);Q._$6b=false;var aH=false;aH=true;Q.initProfile();}};Q.getVersionStr=function(){return Q._$2s;};Q.getVersionNo=function(){return Q._$Kr;};Q._$sT=function(aH){Q._$cT=aH;};Q.getError=function(){var aH=Q._$cT;Q._$cT=0;return aH;};Q.dispose=function(){Q.glContext=[];Q.frameBuffers=[];Q.fTexture=[];};Q.setGL=function(aJ,aI){var aH=aI||0;Q.glContext[aH]=aJ;};Q.getGL=function(aH){return Q.glContext[aH];};Q.setClippingMaskBufferSize=function(aH){Q.clippingMaskBufferSize=aH;};Q.getClippingMaskBufferSize=function(){return Q.clippingMaskBufferSize;};Q.deleteBuffer=function(aI){var aH=Q.getGL(aI);aH.deleteFramebuffer(Q.frameBuffers[aI].framebuffer);delete Q.frameBuffers[aI];delete Q.glContext[aI];};function A(){}A._$r2=function(aH){if(aH<0){return 0;}else{if(aH>1){return 1;}}return(0.5-0.5*Math.cos(aH*aC.PI_F));};function J(aH){if(j){return;}this._$ib=aH;}J._$fr=-1;J.prototype.toString=function(){return this._$ib;};function b(){if(j){return;}a.prototype.constructor.call(this);this._$LP=-1;this._$d0=0;this._$Yo=0;this._$JP=null;this._$5P=null;this._$BP=null;this._$Eo=null;this._$Qi=null;this._$6s=b._$ms;this.culling=true;this.gl_cacheImage=null;this.instanceNo=b._$42++;}b.prototype=new a();b._$42=0;b._$Os=30;b._$ms=0;b._$ns=1;b._$_s=2;b._$gT=new Array();b.prototype._$_S=function(aH){this._$LP=aH;};b.prototype.getTextureNo=function(){return this._$LP;};b.prototype._$ZL=function(){return this._$Qi;};b.prototype._$H2=function(){return this._$JP;};b.prototype.getNumPoints=function(){return this._$d0;};b.prototype.getType=function(){return a._$wb;};b.prototype._$B2=function(aL,aH,aO){var aM=aH;var aN=(aM._$hr!=null)?aM._$hr:aM._$Cr;var aK=aw._$do;switch(aK){default:case aw._$Ms:throw new Error("_$L _$ro ");case aw._$Qs:for(var aJ=this._$d0-1;aJ>=0;--aJ){var aI=aJ*aw._$No;aN[aI+4]=aO;}break;}};b.prototype._$zP=function(){this._$GS=new g();this._$GS._$zP();};b.prototype._$F0=function(aK){a.prototype._$F0.call(this,aK);this._$LP=aK._$6L();this._$d0=aK._$6L();this._$Yo=aK._$6L();var aH=aK._$nP();this._$BP=new Int16Array(this._$Yo*3);for(var aJ=this._$Yo*3-1;aJ>=0;--aJ){this._$BP[aJ]=aH[aJ];}this._$Eo=aK._$nP();this._$Qi=aK._$nP();if(aK.getFormatVersion()>=ay._$s7){this._$JP=aK._$6L();if(this._$JP!=0){if((this._$JP&1)!=0){var aI=aK._$6L();if(this._$5P==null){this._$5P=new Object();}this._$5P._$Hb=parseInt(aI);}if((this._$JP&b._$Os)!=0){this._$6s=(this._$JP&b._$Os)>>1;}else{this._$6s=b._$ms;}if((this._$JP&32)!=0){this.culling=false;}}}else{this._$JP=0;}};b.prototype.init=function(aL){var aN=new ag(this);var aI=this._$d0*aw._$No;var aH=this._$32();if(aN._$Cr!=null){aN._$Cr=null;}aN._$Cr=new Float32Array(aI);if(aN._$hr!=null){aN._$hr=null;}aN._$hr=aH?new Float32Array(aI):null;var aM=aw._$do;switch(aM){default:case aw._$Ms:if(aw._$Ls){for(var aJ=this._$d0-1;aJ>=0;--aJ){var aO=aJ<<1;this._$Qi[aO+1]=1-this._$Qi[aO+1];}}break;case aw._$Qs:for(var aJ=this._$d0-1;aJ>=0;--aJ){var aO=aJ<<1;var aK=aJ*aw._$No;var aQ=this._$Qi[aO];var aP=this._$Qi[aO+1];aN._$Cr[aK]=aQ;aN._$Cr[aK+1]=aP;aN._$Cr[aK+4]=0;if(aH){aN._$hr[aK]=aQ;aN._$hr[aK+1]=aP;aN._$hr[aK+4]=0;}}break;}return aN;};b.prototype._$Nr=function(aJ,aH){var aK=aH;if(!((this==aK._$GT()))){__NONECONSOLE.log("### assert!! ### ");}if(!this._$GS._$Ur(aJ)){return;}a.prototype._$Nr.call(this,aJ,aK);if(aK._$IS[0]){return;}var aI=b._$gT;aI[0]=false;aG._$Vr(aJ,this._$GS,aI,this._$d0,this._$Eo,aK._$Cr,aw._$i2,aw._$No);};b.prototype._$2b=function(aK,aI){try{if(!((this==aI._$GT()))){__NONECONSOLE.log("### assert!! ### ");}var aL=false;if(aI._$IS[0]){aL=true;}var aM=aI;if(!aL){a.prototype._$2b.call(this,aK);if(this._$32()){var aH=this.getTargetBaseDataID();if(aM._$8r==a._$ur){aM._$8r=aK.getBaseDataIndex(aH);}if(aM._$8r<0){if(Q._$so){q._$li("_$L _$0P _$G :: %s",aH);}}else{var aO=aK.getBaseData(aM._$8r);var aJ=aK._$q2(aM._$8r);if(aO!=null&&!aJ._$x2()){aO._$nb(aK,aJ,aM._$Cr,aM._$hr,this._$d0,aw._$i2,aw._$No);aM._$AT=true;}else{aM._$AT=false;}aM.baseOpacity=aJ.getTotalOpacity();}}}}catch(aN){throw aN;}};b.prototype.draw=function(aN,aK,aI){if(!((this==aI._$GT()))){__NONECONSOLE.log("### assert!! ### ");}if(aI._$IS[0]){return;}var aL=aI;var aJ=this._$LP;if(aJ<0){aJ=1;}var aH=this.getOpacity(aK,aL)*aI._$VS*aI.baseOpacity;var aM=(aL._$hr!=null)?aL._$hr:aL._$Cr;aN.setClipBufPre_clipContextForDraw(aI.clipBufPre_clipContext);aN._$WP(this.culling);aN._$Uo(aJ,3*this._$Yo,this._$BP,aM,this._$Qi,aH,this._$6s,aL);};b.prototype.dump=function(){__NONECONSOLE.log("  _$yi( %d ) , _$d0( %d ) , _$Yo( %d ) \\n",this._$LP,this._$d0,this._$Yo);__NONECONSOLE.log("  _$Oi _$di = { ");for(var aJ=0;aJ<this._$BP.length;aJ++){__NONECONSOLE.log("%5d ,",this._$BP[aJ]);}__NONECONSOLE.log("\\n  _$5i _$30");for(var aJ=0;aJ<this._$Eo.length;aJ++){__NONECONSOLE.log("\\n    _$30[%d] = ",aJ);var aH=this._$Eo[aJ];for(var aI=0;aI<aH.length;aI++){__NONECONSOLE.log("%6.2f, ",aH[aI]);}}__NONECONSOLE.log("\\n");};b.prototype._$72=function(aH){if(this._$5P==null){return null;}return this._$5P[aH];};b.prototype.getIndexArray=function(){return this._$BP;};function ag(aH){aB.prototype.constructor.call(this,aH);this._$8r=a._$ur;this._$Cr=null;this._$hr=null;}ag.prototype=new aB();ag.prototype.getTransformedPoints=function(){return(this._$hr!=null)?this._$hr:this._$Cr;};function k(){if(j){return;}this.x=null;this.y=null;}k.prototype._$HT=function(aH){this.x=aH.x;this.y=aH.y;};k.prototype._$HT=function(aH,aI){this.x=aH;this.y=aI;};function l(aH){if(j){return;}aa.prototype.constructor.call(this);this.drawParamWebGL=new C(aH);this.drawParamWebGL.setGL(Q.getGL(aH));}l.prototype=new aa();l.loadModel=function(aI){var aH=new l();aa._$62(aH,aI);return aH;};l.loadModel=function(aI,aK){var aJ=aK||0;var aH=new l(aJ);aa._$62(aH,aI);return aH;};l._$to=function(){var aH=new l();return aH;};l._$er=function(aM){var aJ=new _$5("../_$_r/_$t0/_$Ri/_$_P._$d");if(aJ.exists()==false){throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+aJ._$PL());}var aH=["../_$_r/_$t0/_$Ri/_$_P.512/_$CP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$vP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$EP._$1","../_$_r/_$t0/_$Ri/_$_P.512/_$pP._$1"];var aK=l.loadModel(aJ._$3b());for(var aI=0;aI<aH.length;aI++){var aL=new _$5(aH[aI]);if(aL.exists()==false){throw new _$ls("_$t0 _$_ _$6 _$Ui :: "+aL._$PL());}aK.setTexture(aI,_$nL._$_o(aM,aL._$3b()));}return aK;};l.prototype.setGL=function(aH){Q.setGL(aH);};l.prototype.setTransform=function(aH){this.drawParamWebGL.setTransform(aH);};l.prototype.update=function(){this._$5S.update();this._$5S.preDraw(this.drawParamWebGL);};l.prototype.draw=function(){this._$5S.draw(this.drawParamWebGL);};l.prototype._$K2=function(){this.drawParamWebGL._$K2();};l.prototype.setTexture=function(aI,aH){if(this.drawParamWebGL==null){q._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!");}this.drawParamWebGL.setTexture(aI,aH);};l.prototype.setTexture=function(aI,aH){if(this.drawParamWebGL==null){q._$li("_$Yi for QT _$ki / _$XS() is _$6 _$ui!!");}this.drawParamWebGL.setTexture(aI,aH);};l.prototype._$Rs=function(){return this.drawParamWebGL._$Rs();};l.prototype._$Ds=function(aH){this.drawParamWebGL._$Ds(aH);};l.prototype.getDrawParam=function(){return this.drawParamWebGL;};l.prototype.setMatrix=function(aH){this.drawParamWebGL.setMatrix(aH);};l.prototype.setPremultipliedAlpha=function(aH){this.drawParamWebGL.setPremultipliedAlpha(aH);};l.prototype.isPremultipliedAlpha=function(){return this.drawParamWebGL.isPremultipliedAlpha();};l.prototype.setAnisotropy=function(aH){this.drawParamWebGL.setAnisotropy(aH);};l.prototype.getAnisotropy=function(){return this.drawParamWebGL.getAnisotropy();};function V(){if(j){return;}this.motions=null;this._$eb=false;this.motions=new Array();}V.prototype._$tb=function(){return this.motions;};V.prototype.startMotion=function(aJ,aI){var aM=null;var aL=null;var aH=this.motions.length;for(var aK=0;aK<aH;++aK){aL=this.motions[aK];if(aL==null){continue;}aL._$qS(aL._$w0.getFadeOut());if(this._$eb){q._$Ji("MotionQueueManager[size:%2d]->startMotion() / start _$K _$3 (m%d)\\n",aH,aL._$sr);}}if(aJ==null){return -1;}aL=new M();aL._$w0=aJ;this.motions.push(aL);var aN=aL._$sr;if(this._$eb){q._$Ji("MotionQueueManager[size:%2d]->startMotion() / new _$w0 (m%d)\\n",aH,aN);}return aN;};V.prototype.updateParam=function(aJ){try{var aI=false;for(var aK=0;aK<this.motions.length;aK++){var aL=this.motions[aK];if(aL==null){this.motions.splice(aK,1);aK--;continue;}var aH=aL._$w0;if(aH==null){this.motions=this.motions.splice(aK,1);aK--;continue;}aH.updateParam(aJ,aL);aI=true;if(aL.isFinished()){if(this._$eb){q._$Ji("MotionQueueManager[size:%2d]->updateParam() / _$T0 _$w0 (m%d)\\n",this.motions.length-1,aL._$sr);}this.motions.splice(aK,1);aK--;}else{}}return aI;}catch(aM){q._$li(aM);return true;}};V.prototype.isFinished=function(aK){if(arguments.length>=1){for(var aI=0;aI<this.motions.length;aI++){var aJ=this.motions[aI];if(aJ==null){continue;}if(aJ._$sr==aK&&!aJ.isFinished()){return false;}}return true;}else{for(var aI=0;aI<this.motions.length;aI++){var aJ=this.motions[aI];if(aJ==null){this.motions.splice(aI,1);aI--;continue;}var aH=aJ._$w0;if(aH==null){this.motions.splice(aI,1);aI--;continue;}if(!aJ.isFinished()){return false;}}return true;}};V.prototype.stopAllMotions=function(){for(var aI=0;aI<this.motions.length;aI++){var aJ=this.motions[aI];if(aJ==null){this.motions.splice(aI,1);aI--;continue;}var aH=aJ._$w0;if(aH==null){this.motions.splice(aI,1);aI--;continue;}if(true){this.motions.splice(aI,1);aI--;}}};V.prototype._$Zr=function(aH){this._$eb=aH;};V.prototype._$e=function(){__NONECONSOLE.log("-- _$R --\\n");for(var aH=0;aH<this.motions.length;aH++){var aI=this.motions[aH];var aJ=aI._$w0;__NONECONSOLE.log("MotionQueueEnt[%d] :: %s\\n",this.motions.length,aJ.toString());}};function M(){this._$w0=null;this._$AT=true;this._$9L=false;this._$z2=-1;this._$bs=-1;this._$Do=-1;this._$sr=null;this._$sr=M._$Gs++;}M._$Gs=0;M.prototype.isFinished=function(){return this._$9L;};M.prototype._$qS=function(aJ){var aI=P.getUserTimeMSec();var aH=aI+aJ;if(this._$Do<0||aH<this._$Do){this._$Do=aH;}};M.prototype._$Bs=function(){return this._$sr;};function am(){this.m=new Array(1,0,0,0,1,0,0,0,1);}am.prototype.setContext=function(aI){var aH=this.m;aI.transform(aH[0],aH[1],aH[3],aH[4],aH[6],aH[7]);};am.prototype.toString=function(){var aI="LDTransform { ";for(var aH=0;aH<9;aH++){aI+=this.m[aH].toFixed(2)+" ,";}aI+=" }";return aI;};am.prototype.identity=function(){var aH=this.m;aH[0]=aH[4]=aH[8]=1;aH[1]=aH[2]=aH[3]=aH[5]=aH[6]=aH[7]=0;};am.prototype._$PS=function(aI,aK,aJ){if(aJ==null){aJ=new Array(0,0);}var aH=this.m;aJ[0]=aH[0]*aI+aH[3]*aK+aH[6];aJ[1]=aH[1]*aI+aH[4]*aK+aH[7];return aJ;};am.prototype._$P2=function(aK){if(!aK){aK=new am();}var aI=this.m;var aT=aI[0];var aS=aI[1];var aR=aI[2];var aQ=aI[3];var aP=aI[4];var aO=aI[5];var aN=aI[6];var aM=aI[7];var aL=aI[8];var aJ=aT*aP*aL+aS*aO*aN+aR*aQ*aM-aT*aO*aM-aR*aP*aN-aS*aQ*aL;if(aJ==0){return null;}else{var aH=1/aJ;aK.m[0]=aH*(aP*aL-aM*aO);aK.m[1]=aH*(aM*aR-aS*aL);aK.m[2]=aH*(aS*aO-aP*aR);aK.m[3]=aH*(aN*aO-aQ*aL);aK.m[4]=aH*(aT*aL-aN*aR);aK.m[5]=aH*(aQ*aR-aT*aO);aK.m[6]=aH*(aQ*aM-aN*aP);aK.m[7]=aH*(aN*aS-aT*aM);aK.m[8]=aH*(aT*aP-aQ*aS);return aK;}};am.prototype.transform=function(aI,aK,aJ){if(aJ==null){aJ=new Array(0,0);}var aH=this.m;aJ[0]=aH[0]*aI+aH[3]*aK+aH[6];aJ[1]=aH[1]*aI+aH[4]*aK+aH[7];return aJ;};am.prototype.translate=function(aI,aJ){var aH=this.m;aH[6]=aH[0]*aI+aH[3]*aJ+aH[6];aH[7]=aH[1]*aI+aH[4]*aJ+aH[7];aH[8]=aH[2]*aI+aH[5]*aJ+aH[8];};am.prototype.scale=function(aJ,aI){var aH=this.m;aH[0]*=aJ;aH[1]*=aJ;aH[2]*=aJ;aH[3]*=aI;aH[4]*=aI;aH[5]*=aI;};am.prototype.shear=function(aM,aL){var aH=this.m;var aK=aH[0]+aH[3]*aL;var aJ=aH[1]+aH[4]*aL;var aI=aH[2]+aH[5]*aL;aH[3]=aH[0]*aM+aH[3];aH[4]=aH[1]*aM+aH[4];aH[5]=aH[2]*aM+aH[5];aH[0]=aK;aH[1]=aJ;aH[2]=aI;};am.prototype.rotate=function(aM){var aH=this.m;var aN=Math.cos(aM);var aL=Math.sin(aM);var aK=aH[0]*aN+aH[3]*aL;var aJ=aH[1]*aN+aH[4]*aL;var aI=aH[2]*aN+aH[5]*aL;aH[3]=-aH[0]*aL+aH[3]*aN;aH[4]=-aH[1]*aL+aH[4]*aN;aH[5]=-aH[2]*aL+aH[5]*aN;aH[0]=aK;aH[1]=aJ;aH[2]=aI;};am.prototype.concatenate=function(aL){var aO=this.m;var aM=aL.m;var aS=aO[0]*aM[0]+aO[3]*aM[1]+aO[6]*aM[2];var aR=aO[1]*aM[0]+aO[4]*aM[1]+aO[7]*aM[2];var aQ=aO[2]*aM[0]+aO[5]*aM[1]+aO[8]*aM[2];var aP=aO[0]*aM[3]+aO[3]*aM[4]+aO[6]*aM[5];var aN=aO[1]*aM[3]+aO[4]*aM[4]+aO[7]*aM[5];var aK=aO[2]*aM[3]+aO[5]*aM[4]+aO[8]*aM[5];var aJ=aO[0]*aM[6]+aO[3]*aM[7]+aO[6]*aM[8];var aI=aO[1]*aM[6]+aO[4]*aM[7]+aO[7]*aM[8];var aH=aO[2]*aM[6]+aO[5]*aM[7]+aO[8]*aM[8];m[0]=aS;m[1]=aR;m[2]=aQ;m[3]=aP;m[4]=aN;m[5]=aK;m[6]=aJ;m[7]=aI;m[8]=aH;};function n(aH){if(j){return;}ak.prototype.constructor.call(this,aH);}n.prototype=new ak();n._$eT=null;n._$tP=new Object();n._$2o=function(){if(n._$eT==null){n._$eT=n.getID("DST_BASE");}return n._$eT;};n._$27=function(){n._$tP.clear();n._$eT=null;};n.getID=function(aH){var aI=n._$tP[aH];if(aI==null){aI=new n(aH);n._$tP[aH]=aI;}return aI;};n.prototype._$3s=function(){return new n();};function C(aH){if(j){return;}ax.prototype.constructor.call(this);this.textures=new Array();this.transform=null;this.gl=null;this.glno=aH;this.firstDraw=true;this.anisotropyExt=null;this.maxAnisotropy=0;this._$As=32;this._$Gr=false;this._$NT=null;this._$vS=null;this._$no=null;this.vertShader=null;this.fragShader=null;this.vertShaderOff=null;this.fragShaderOff=null;}C.prototype=new ax();C._$9r=function(aH){var aI=new Float32Array(aH);return aI;};C._$vb=function(aH){var aI=new Int16Array(aH);return aI;};C._$cr=function(aI,aH){if(aI==null||aI._$yL()<aH.length){aI=C._$9r(aH.length*2);aI.put(aH);aI._$oT(0);}else{aI.clear();aI.put(aH);aI._$oT(0);}return aI;};C._$mb=function(aI,aH){if(aI==null||aI._$yL()<aH.length){aI=C._$vb(aH.length*2);aI.put(aH);aI._$oT(0);}else{aI.clear();aI.put(aH);aI._$oT(0);}return aI;};C._$Hs=function(){return this._$Gr;};C._$as=function(aH){this._$Gr=aH;};C.prototype.getGL=function(){return this.gl;};C.prototype.setGL=function(aH){this.gl=aH;};C.prototype.setTransform=function(aH){this.transform=aH;};C.prototype._$ZT=function(){var aH=this.gl;if(this.firstDraw){this.initShader();this.firstDraw=false;this.anisotropyExt=aH.getExtension("EXT_texture_filter_anisotropic")||aH.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||aH.getExtension("MOZ_EXT_texture_filter_anisotropic");if(this.anisotropyExt){this.maxAnisotropy=aH.getParameter(this.anisotropyExt.MAX_TEXTURE_MAX_ANISOTROPY_EXT);}}aH.disable(aH.SCISSOR_TEST);aH.disable(aH.STENCIL_TEST);aH.disable(aH.DEPTH_TEST);aH.frontFace(aH.CW);aH.enable(aH.BLEND);aH.colorMask(1,1,1,1);aH.bindBuffer(aH.ARRAY_BUFFER,null);aH.bindBuffer(aH.ELEMENT_ARRAY_BUFFER,null);};C.prototype._$Uo=function(aS,aT,aL,aU,aV,aN,aM,aO){if(aN<0.01&&this.clipBufPre_clipContextMask==null){return;}var aH=aN>0.9?Q.EXPAND_W:0;var a0=this.gl;if(this.gl==null){throw new Error("gl is null");}var a1=false;var aQ=1;var aP=1;var a3=1;var aZ=1;var aW=this._$C0*aP*aN;var a2=this._$tT*a3*aN;var a5=this._$WL*aZ*aN;var a7=this._$lT*aN;if(this.clipBufPre_clipContextMask!=null){a0.frontFace(a0.CCW);a0.useProgram(this.shaderProgram);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc);a0.vertexAttribPointer(this.a_position_Loc,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc,1);a0.enableVertexAttribArray(this.a_texCoord_Loc);a0.vertexAttribPointer(this.a_texCoord_Loc,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_matrix_Loc,false,this.getClipBufPre_clipContextMask().matrixForMask);var aY=this.getClipBufPre_clipContextMask().layoutChannelNo;var a4=this.getChannelFlagAsColor(aY);a0.uniform4f(this.u_channelFlag,a4.r,a4.g,a4.b,a4.a);var aI=this.getClipBufPre_clipContextMask().layoutBounds;a0.uniform4f(this.u_baseColor_Loc,aI.x*2-1,aI.y*2-1,aI._$EL()*2-1,aI._$5T()*2-1);a0.uniform1i(this.u_maskFlag_Loc,true);}else{a1=this.getClipBufPre_clipContextDraw()!=null;if(a1){a0.useProgram(this.shaderProgramOff);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc_Off);a0.vertexAttribPointer(this.a_position_Loc_Off,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc_Off,1);a0.enableVertexAttribArray(this.a_texCoord_Loc_Off);a0.vertexAttribPointer(this.a_texCoord_Loc_Off,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_clipMatrix_Loc_Off,false,this.getClipBufPre_clipContextDraw().matrixForDraw);a0.uniformMatrix4fv(this.u_matrix_Loc_Off,false,this.matrix4x4);a0.activeTexture(a0.TEXTURE2);a0.bindTexture(a0.TEXTURE_2D,Q.fTexture[this.glno]);a0.uniform1i(this.s_texture1_Loc_Off,2);var aY=this.getClipBufPre_clipContextDraw().layoutChannelNo;var a4=this.getChannelFlagAsColor(aY);a0.uniform4f(this.u_channelFlag_Loc_Off,a4.r,a4.g,a4.b,a4.a);a0.uniform4f(this.u_baseColor_Loc_Off,aW,a2,a5,a7);}else{a0.useProgram(this.shaderProgram);this._$vS=T(a0,this._$vS,aU);this._$no=L(a0,this._$no,aL);a0.enableVertexAttribArray(this.a_position_Loc);a0.vertexAttribPointer(this.a_position_Loc,2,a0.FLOAT,false,0,0);this._$NT=T(a0,this._$NT,aV);a0.activeTexture(a0.TEXTURE1);a0.bindTexture(a0.TEXTURE_2D,this.textures[aS]);a0.uniform1i(this.s_texture0_Loc,1);a0.enableVertexAttribArray(this.a_texCoord_Loc);a0.vertexAttribPointer(this.a_texCoord_Loc,2,a0.FLOAT,false,0,0);a0.uniformMatrix4fv(this.u_matrix_Loc,false,this.matrix4x4);a0.uniform4f(this.u_baseColor_Loc,aW,a2,a5,a7);a0.uniform1i(this.u_maskFlag_Loc,false);}}if(this.culling){this.gl.enable(a0.CULL_FACE);}else{this.gl.disable(a0.CULL_FACE);}this.gl.enable(a0.BLEND);var a6;var aX;var aR;var aK;if(this.clipBufPre_clipContextMask!=null){a6=a0.ONE;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ONE;aK=a0.ONE_MINUS_SRC_ALPHA;}else{switch(aM){case b._$ms:a6=a0.ONE;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ONE;aK=a0.ONE_MINUS_SRC_ALPHA;break;case b._$ns:a6=a0.ONE;aX=a0.ONE;aR=a0.ZERO;aK=a0.ONE;break;case b._$_s:a6=a0.DST_COLOR;aX=a0.ONE_MINUS_SRC_ALPHA;aR=a0.ZERO;aK=a0.ONE;break;}}a0.blendEquationSeparate(a0.FUNC_ADD,a0.FUNC_ADD);a0.blendFuncSeparate(a6,aX,aR,aK);if(this.anisotropyExt){a0.texParameteri(a0.TEXTURE_2D,this.anisotropyExt.TEXTURE_MAX_ANISOTROPY_EXT,this.maxAnisotropy);}var aJ=aL.length;a0.drawElements(a0.TRIANGLES,aJ,a0.UNSIGNED_SHORT,0);a0.bindTexture(a0.TEXTURE_2D,null);};function T(aJ,aH,aI){if(aH==null){aH=aJ.createBuffer();}aJ.bindBuffer(aJ.ARRAY_BUFFER,aH);aJ.bufferData(aJ.ARRAY_BUFFER,aI,aJ.DYNAMIC_DRAW);return aH;}function L(aJ,aH,aI){if(aH==null){aH=aJ.createBuffer();}aJ.bindBuffer(aJ.ELEMENT_ARRAY_BUFFER,aH);aJ.bufferData(aJ.ELEMENT_ARRAY_BUFFER,aI,aJ.DYNAMIC_DRAW);return aH;}C.prototype._$Rs=function(){throw new Error("_$Rs");};C.prototype._$Ds=function(aH){throw new Error("_$Ds");};C.prototype._$K2=function(){for(var aH=0;aH<this.textures.length;aH++){var aI=this.textures[aH];if(aI!=0){this.gl._$K2(1,this.textures,aH);this.textures[aH]=null;}}};C.prototype.setTexture=function(aH,aI){this.textures[aH]=aI;};C.prototype.initShader=function(){var aH=this.gl;this.loadShaders2();this.a_position_Loc=aH.getAttribLocation(this.shaderProgram,"a_position");this.a_texCoord_Loc=aH.getAttribLocation(this.shaderProgram,"a_texCoord");this.u_matrix_Loc=aH.getUniformLocation(this.shaderProgram,"u_mvpMatrix");this.s_texture0_Loc=aH.getUniformLocation(this.shaderProgram,"s_texture0");this.u_channelFlag=aH.getUniformLocation(this.shaderProgram,"u_channelFlag");this.u_baseColor_Loc=aH.getUniformLocation(this.shaderProgram,"u_baseColor");this.u_maskFlag_Loc=aH.getUniformLocation(this.shaderProgram,"u_maskFlag");this.a_position_Loc_Off=aH.getAttribLocation(this.shaderProgramOff,"a_position");this.a_texCoord_Loc_Off=aH.getAttribLocation(this.shaderProgramOff,"a_texCoord");this.u_matrix_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"u_mvpMatrix");this.u_clipMatrix_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"u_ClipMatrix");this.s_texture0_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"s_texture0");this.s_texture1_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"s_texture1");this.u_channelFlag_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"u_channelFlag");this.u_baseColor_Loc_Off=aH.getUniformLocation(this.shaderProgramOff,"u_baseColor");};C.prototype.disposeShader=function(){var aH=this.gl;if(this.shaderProgram){aH.deleteProgram(this.shaderProgram);this.shaderProgram=null;}if(this.shaderProgramOff){aH.deleteProgram(this.shaderProgramOff);this.shaderProgramOff=null;}};C.prototype.compileShader=function(aJ,aN){var aM=this.gl;var aH;var aL=aN;var aK=aM.createShader(aJ);if(aK==null){q._$Ji("_$L0 to create shader");return null;}aM.shaderSource(aK,aL);aM.compileShader(aK);var aH=aM.getShaderParameter(aK,aM.COMPILE_STATUS);if(!aH){var aI=aM.getShaderInfoLog(aK);q._$Ji("_$L0 to compile shader : "+aI);aM.deleteShader(aK);return null;}return aK;};C.prototype.loadShaders2=function(){var aN=this.gl;this.shaderProgram=aN.createProgram();if(!this.shaderProgram){return false;}this.shaderProgramOff=aN.createProgram();if(!this.shaderProgramOff){return false;}var aK="attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform mat4       u_mvpMatrix;void main(){    gl_Position = u_mvpMatrix * a_position;    v_ClipPos = u_mvpMatrix * a_position;    v_texCoord = a_texCoord;}";var aM="precision mediump float;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform sampler2D  s_texture0;uniform vec4       u_channelFlag;uniform vec4       u_baseColor;uniform bool       u_maskFlag;void main(){    vec4 smpColor;     if(u_maskFlag){        float isInside =             step(u_baseColor.x, v_ClipPos.x/v_ClipPos.w)          * step(u_baseColor.y, v_ClipPos.y/v_ClipPos.w)          * step(v_ClipPos.x/v_ClipPos.w, u_baseColor.z)          * step(v_ClipPos.y/v_ClipPos.w, u_baseColor.w);        smpColor = u_channelFlag * texture2D(s_texture0 , v_texCoord).a * isInside;    }else{        smpColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;    }    gl_FragColor = smpColor;}";var aL="attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform mat4       u_mvpMatrix;uniform mat4       u_ClipMatrix;void main(){    gl_Position = u_mvpMatrix * a_position;    v_ClipPos = u_ClipMatrix * a_position;    v_texCoord = a_texCoord ;}";var aJ="precision mediump float ;varying vec2       v_texCoord;varying vec4       v_ClipPos;uniform sampler2D  s_texture0;uniform sampler2D  s_texture1;uniform vec4       u_channelFlag;uniform vec4       u_baseColor ;void main(){    vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;    vec4 clipMask = texture2D(s_texture1, v_ClipPos.xy / v_ClipPos.w) * u_channelFlag;    float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;    col_formask = col_formask * maskVal;    gl_FragColor = col_formask;}";this.vertShader=this.compileShader(aN.VERTEX_SHADER,aK);if(!this.vertShader){q._$Ji("Vertex shader compile _$li!");return false;}this.vertShaderOff=this.compileShader(aN.VERTEX_SHADER,aL);if(!this.vertShaderOff){q._$Ji("OffVertex shader compile _$li!");return false;}this.fragShader=this.compileShader(aN.FRAGMENT_SHADER,aM);if(!this.fragShader){q._$Ji("Fragment shader compile _$li!");return false;}this.fragShaderOff=this.compileShader(aN.FRAGMENT_SHADER,aJ);if(!this.fragShaderOff){q._$Ji("OffFragment shader compile _$li!");return false;}aN.attachShader(this.shaderProgram,this.vertShader);aN.attachShader(this.shaderProgram,this.fragShader);aN.attachShader(this.shaderProgramOff,this.vertShaderOff);aN.attachShader(this.shaderProgramOff,this.fragShaderOff);aN.linkProgram(this.shaderProgram);aN.linkProgram(this.shaderProgramOff);var aH=aN.getProgramParameter(this.shaderProgram,aN.LINK_STATUS);if(!aH){var aI=aN.getProgramInfoLog(this.shaderProgram);q._$Ji("_$L0 to link program: "+aI);if(this.vertShader){aN.deleteShader(this.vertShader);this.vertShader=0;}if(this.fragShader){aN.deleteShader(this.fragShader);this.fragShader=0;}if(this.shaderProgram){aN.deleteProgram(this.shaderProgram);this.shaderProgram=0;}if(this.vertShaderOff){aN.deleteShader(this.vertShaderOff);this.vertShaderOff=0;}if(this.fragShaderOff){aN.deleteShader(this.fragShaderOff);this.fragShaderOff=0;}if(this.shaderProgramOff){aN.deleteProgram(this.shaderProgramOff);this.shaderProgramOff=0;}return false;}return true;};C.prototype.createFramebuffer=function(){var aL=this.gl;var aK=Q.clippingMaskBufferSize;var aJ=aL.createFramebuffer();aL.bindFramebuffer(aL.FRAMEBUFFER,aJ);var aH=aL.createRenderbuffer();aL.bindRenderbuffer(aL.RENDERBUFFER,aH);aL.renderbufferStorage(aL.RENDERBUFFER,aL.RGBA4,aK,aK);aL.framebufferRenderbuffer(aL.FRAMEBUFFER,aL.COLOR_ATTACHMENT0,aL.RENDERBUFFER,aH);var aI=aL.createTexture();aL.bindTexture(aL.TEXTURE_2D,aI);aL.texImage2D(aL.TEXTURE_2D,0,aL.RGBA,aK,aK,0,aL.RGBA,aL.UNSIGNED_BYTE,null);aL.texParameteri(aL.TEXTURE_2D,aL.TEXTURE_MIN_FILTER,aL.LINEAR);aL.texParameteri(aL.TEXTURE_2D,aL.TEXTURE_MAG_FILTER,aL.LINEAR);aL.texParameteri(aL.TEXTURE_2D,aL.TEXTURE_WRAP_S,aL.CLAMP_TO_EDGE);aL.texParameteri(aL.TEXTURE_2D,aL.TEXTURE_WRAP_T,aL.CLAMP_TO_EDGE);aL.framebufferTexture2D(aL.FRAMEBUFFER,aL.COLOR_ATTACHMENT0,aL.TEXTURE_2D,aI,0);aL.bindTexture(aL.TEXTURE_2D,null);aL.bindRenderbuffer(aL.RENDERBUFFER,null);aL.bindFramebuffer(aL.FRAMEBUFFER,null);Q.fTexture[this.glno]=aI;return{framebuffer:aJ,renderbuffer:aH,texture:Q.fTexture[this.glno]};};function K(aH){if(j){return;}this._$P=new Int8Array(8);this._$R0=new DataView(this._$P.buffer);this._$3i=new Int8Array(1000);this._$hL=0;this._$v0=0;this._$S2=0;this._$Ko=new Array();this._$T=aH;this._$F=0;}K.prototype._$fP=function(){var aK=this._$ST();var aJ,aI,aH;if((aK&128)==0){return aK&255;}else{if(((aJ=this._$ST())&128)==0){return((aK&127)<<7)|(aJ&127);}else{if(((aI=this._$ST())&128)==0){return((aK&127)<<14)|((aJ&127)<<7)|(aI&255);}else{if(((aH=this._$ST())&128)==0){return((aK&127)<<21)|((aJ&127)<<14)|((aI&127)<<7)|(aH&255);}else{throw new J("_$L _$0P  _");}}}}};K.prototype.getFormatVersion=function(){return this._$S2;};K.prototype._$gr=function(aH){this._$S2=aH;};K.prototype._$3L=function(){return this._$fP();};K.prototype._$mP=function(){this._$zT();this._$F+=8;return this._$T.getFloat64(this._$F-8);};K.prototype._$_T=function(){this._$zT();this._$F+=4;return this._$T.getFloat32(this._$F-4);};K.prototype._$6L=function(){this._$zT();this._$F+=4;return this._$T.getInt32(this._$F-4);};K.prototype._$ST=function(){this._$zT();return this._$T.getInt8(this._$F++);};K.prototype._$9T=function(){this._$zT();this._$F+=2;return this._$T.getInt16(this._$F-2);};K.prototype._$2T=function(){this._$zT();this._$F+=8;throw new J("_$L _$q read long");};K.prototype._$po=function(){this._$zT();return this._$T.getInt8(this._$F++)!=0;};var O=true;K.prototype._$bT=function(){this._$zT();var aH=this._$3L();var aK=null;if(O){try{var aM=new ArrayBuffer(aH*2);aK=new Uint16Array(aM);for(var aJ=0;aJ<aH;++aJ){aK[aJ]=this._$T.getUint8(this._$F++);}return String.fromCharCode.apply(null,aK);}catch(aL){O=false;}}try{var aI=new Array();if(aK==null){for(var aJ=0;aJ<aH;++aJ){aI[aJ]=this._$T.getUint8(this._$F++);}}else{for(var aJ=0;aJ<aH;++aJ){aI[aJ]=aK[aJ];}}return String.fromCharCode.apply(null,aI);}catch(aL){__NONECONSOLE.log("read utf8 / _$rT _$L0 !! : "+aL);}};K.prototype._$cS=function(){this._$zT();var aI=this._$3L();var aH=new Int32Array(aI);for(var aJ=0;aJ<aI;aJ++){aH[aJ]=this._$T.getInt32(this._$F);this._$F+=4;}return aH;};K.prototype._$Tb=function(){this._$zT();var aI=this._$3L();var aH=new Float32Array(aI);for(var aJ=0;aJ<aI;aJ++){aH[aJ]=this._$T.getFloat32(this._$F);this._$F+=4;}return aH;};K.prototype._$5b=function(){this._$zT();var aI=this._$3L();var aH=new Float64Array(aI);for(var aJ=0;aJ<aI;aJ++){aH[aJ]=this._$T.getFloat64(this._$F);this._$F+=8;}return aH;};K.prototype._$nP=function(){return this._$Jb(-1);};K.prototype._$Jb=function(aJ){this._$zT();if(aJ<0){aJ=this._$3L();}if(aJ==ay._$7P){var aH=this._$6L();if(0<=aH&&aH<this._$Ko.length){return this._$Ko[aH];}else{throw new J("_$sL _$4i @_$m0");}}else{var aI=this._$4b(aJ);this._$Ko.push(aI);return aI;}};K.prototype._$4b=function(aN){if(aN==0){return null;}if(aN==50){var aK=this._$bT();var aI=Z.getID(aK);return aI;}else{if(aN==51){var aK=this._$bT();var aI=n.getID(aK);return aI;}else{if(aN==134){var aK=this._$bT();var aI=i.getID(aK);return aI;}else{if(aN==60){var aK=this._$bT();var aI=z.getID(aK);return aI;}}}}if(aN>=48){var aL=ay._$9o(aN);if(aL!=null){aL._$F0(this);return aL;}else{return null;}}switch(aN){case 1:return this._$bT();case 10:var aM=this._$6L();return new I(aM,true);case 11:return new av(this._$mP(),this._$mP(),this._$mP(),this._$mP());case 12:return new av(this._$_T(),this._$_T(),this._$_T(),this._$_T());case 13:return new e(this._$mP(),this._$mP());case 14:return new e(this._$_T(),this._$_T());case 15:var aH=this._$3L();var aI=new Array(aH);for(var aJ=0;aJ<aH;aJ++){aI[aJ]=this._$nP();}return aI;case 17:var aI=new aD(this._$mP(),this._$mP(),this._$mP(),this._$mP(),this._$mP(),this._$mP());return aI;case 21:return new F(this._$6L(),this._$6L(),this._$6L(),this._$6L());case 22:return new k(this._$6L(),this._$6L());case 23:throw new Error("_$L _$ro ");case 16:case 25:return this._$cS();case 26:return this._$5b();case 27:return this._$Tb();case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 18:case 19:case 20:case 24:case 28:throw new J("_$6 _$q : _$nP() of 2-9 ,18,19,20,24,28 : "+aN);default:throw new J("_$6 _$q : _$nP() NO _$i : "+aN);}};K.prototype._$8L=function(){if(this._$hL==0){this._$v0=this._$ST();}else{if(this._$hL==8){this._$v0=this._$ST();this._$hL=0;}}return((this._$v0>>(7-this._$hL++))&1)==1;};K.prototype._$zT=function(){if(this._$hL!=0){this._$hL=0;}};function ai(){}ai.prototype._$wP=function(aM,aI,aK){for(var aL=0;aL<aK;aL++){for(var aH=0;aH<aI;aH++){var aJ=2*(aH+aL*aI);__NONECONSOLE.log("(% 7.3f , % 7.3f) , ",aM[aJ],aM[aJ+1]);}__NONECONSOLE.log("\\n");}__NONECONSOLE.log("\\n");};function aC(){}aC._$2S=Math.PI/180;aC._$bS=(Math.PI/180);aC._$wS=180/Math.PI;aC._$NS=(180/Math.PI);aC.PI_F=Math.PI;aC._$kT=[0,0.012368,0.024734,0.037097,0.049454,0.061803,0.074143,0.086471,0.098786,0.111087,0.12337,0.135634,0.147877,0.160098,0.172295,0.184465,0.196606,0.208718,0.220798,0.232844,0.244854,0.256827,0.268761,0.280654,0.292503,0.304308,0.316066,0.327776,0.339436,0.351044,0.362598,0.374097,0.385538,0.396921,0.408243,0.419502,0.430697,0.441826,0.452888,0.463881,0.474802,0.485651,0.496425,0.507124,0.517745,0.528287,0.538748,0.549126,0.559421,0.56963,0.579752,0.589785,0.599728,0.609579,0.619337,0.629,0.638567,0.648036,0.657406,0.666676,0.675843,0.684908,0.693867,0.70272,0.711466,0.720103,0.72863,0.737045,0.745348,0.753536,0.76161,0.769566,0.777405,0.785125,0.792725,0.800204,0.807561,0.814793,0.821901,0.828884,0.835739,0.842467,0.849066,0.855535,0.861873,0.868079,0.874153,0.880093,0.885898,0.891567,0.897101,0.902497,0.907754,0.912873,0.917853,0.922692,0.92739,0.931946,0.936359,0.940629,0.944755,0.948737,0.952574,0.956265,0.959809,0.963207,0.966457,0.96956,0.972514,0.97532,0.977976,0.980482,0.982839,0.985045,0.987101,0.989006,0.990759,0.992361,0.993811,0.995109,0.996254,0.997248,0.998088,0.998776,0.999312,0.999694,0.999924,1];aC._$92=function(aK,aI){var aH=Math.atan2(aK[1],aK[0]);var aJ=Math.atan2(aI[1],aI[0]);return aC._$tS(aH,aJ);};aC._$tS=function(aI,aH){var aJ=aI-aH;while(aJ<-Math.PI){aJ+=2*Math.PI;}while(aJ>Math.PI){aJ-=2*Math.PI;}return aJ;};aC._$9=function(aH){return Math.sin(aH);};aC.fcos=function(aH){return Math.cos(aH);};function aB(aH){if(j){return;}this._$e0=null;this._$IP=null;this._$Us=null;this._$7s=null;this._$IS=[false];this._$VS=null;this._$AT=true;this.baseOpacity=1;this.clipBufPre_clipContext=null;this._$e0=aH;}aB.prototype._$u2=function(){return this._$IS[0];};aB.prototype._$yo=function(){return this._$AT&&!this._$IS[0];};aB.prototype._$GT=function(){return this._$e0;};function r(){}r._$W2=0;r.SYSTEM_INFO=null;r.USER_AGENT=navigator.userAgent;r.isIPhone=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isIPhone;};r.isIOS=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isIPhone||r.SYSTEM_INFO._isIPad;};r.isAndroid=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO._isAndroid;};r.getOSVersion=function(){if(!r.SYSTEM_INFO){r.setup();}return r.SYSTEM_INFO.version;};r.getOS=function(){if(!r.SYSTEM_INFO){r.setup();}if(r.SYSTEM_INFO._isIPhone||r.SYSTEM_INFO._isIPad){return"iOS";}if(r.SYSTEM_INFO._isAndroid){return"Android";}else{return"_$Q0 OS";}};r.setup=function(){var aK=r.USER_AGENT;function aI(aO,aR){var aN=aO.substring(aR).split(/[ _,;.]/);var aQ=0;for(var aM=0;aM<=2;aM++){if(isNaN(aN[aM])){break;}var aP=parseInt(aN[aM]);if(aP<0||aP>999){q._$li("err : "+aP+" @UtHtml5.setup()");aQ=0;break;}aQ+=aP*Math.pow(1000,(2-aM));}return aQ;}var aL;var aH;var aJ=r.SYSTEM_INFO={userAgent:aK};if((aL=aK.indexOf("iPhone OS "))>=0){aJ.os="iPhone";aJ._isIPhone=true;aJ.version=aI(aK,aL+"iPhone OS ".length);}else{if((aL=aK.indexOf("iPad"))>=0){aL=aK.indexOf("CPU OS");if(aL<0){q._$li(" err : "+aK+" @UtHtml5.setup()");return;}aJ.os="iPad";aJ._isIPad=true;aJ.version=aI(aK,aL+"CPU OS ".length);}else{if((aL=aK.indexOf("Android"))>=0){aJ.os="Android";aJ._isAndroid=true;aJ.version=aI(aK,aL+"Android ".length);}else{aJ.os="-";aJ.version=-1;}}}};window.UtSystem=P;window.UtDebug=q;window.LDTransform=am;window.LDGL=au;window.Live2D=Q;window.Live2DModelWebGL=l;window.Live2DModelJS=v;window.Live2DMotion=ao;window.MotionQueueManager=V;window.PhysicsHair=u;window.AMotion=ah;window.PartsDataID=i;window.DrawDataID=Z;window.BaseDataID=n;window.ParamID=z;Q.init();var j=false;})();
`;P$.append(Wfe);var hy;(function(e){var t,n=function(){function f(){}return f.getVersion=function(){return c.ccall("csmGetVersion","number",[],[])},f.getLatestMocVersion=function(){return c.ccall("csmGetLatestMocVersion","number",[],[])},f.getMocVersion=function(d,p){return c.ccall("csmGetMocVersion","number",["number","number"],[d,p])},f.getSizeofModel=function(d){return c.ccall("csmGetSizeofModel","number",["number"],[d])},f.reviveMocInPlace=function(d,p){return c.ccall("csmReviveMocInPlace","number",["number","number"],[d,p])},f.initializeModelInPlace=function(d,p,g){return c.ccall("csmInitializeModelInPlace","number",["number","number","number"],[d,p,g])},f.hasMocConsistency=function(d,p){return c.ccall("csmHasMocConsistency","number",["number","number"],[d,p])},f.getParameterCount=function(d){return c.ccall("csmGetParameterCount","number",["number"],[d])},f.getParameterIds=function(d){return c.ccall("csmGetParameterIds","number",["number"],[d])},f.getParameterMinimumValues=function(d){return c.ccall("csmGetParameterMinimumValues","number",["number"],[d])},f.getParameterTypes=function(d){return c.ccall("csmGetParameterTypes","number",["number"],[d])},f.getParameterMaximumValues=function(d){return c.ccall("csmGetParameterMaximumValues","number",["number"],[d])},f.getParameterDefaultValues=function(d){return c.ccall("csmGetParameterDefaultValues","number",["number"],[d])},f.getParameterValues=function(d){return c.ccall("csmGetParameterValues","number",["number"],[d])},f.getParameterKeyCounts=function(d){return c.ccall("csmGetParameterKeyCounts","number",["number"],[d])},f.getParameterKeyValues=function(d){return c.ccall("csmGetParameterKeyValues","number",["number"],[d])},f.getPartCount=function(d){return c.ccall("csmGetPartCount","number",["number"],[d])},f.getPartIds=function(d){return c.ccall("csmGetPartIds","number",["number"],[d])},f.getPartOpacities=function(d){return c.ccall("csmGetPartOpacities","number",["number"],[d])},f.getPartParentPartIndices=function(d){return c.ccall("csmGetPartParentPartIndices","number",["number"],[d])},f.getDrawableCount=function(d){return c.ccall("csmGetDrawableCount","number",["number"],[d])},f.getDrawableIds=function(d){return c.ccall("csmGetDrawableIds","number",["number"],[d])},f.getDrawableConstantFlags=function(d){return c.ccall("csmGetDrawableConstantFlags","number",["number"],[d])},f.getDrawableDynamicFlags=function(d){return c.ccall("csmGetDrawableDynamicFlags","number",["number"],[d])},f.getDrawableTextureIndices=function(d){return c.ccall("csmGetDrawableTextureIndices","number",["number"],[d])},f.getDrawableDrawOrders=function(d){return c.ccall("csmGetDrawableDrawOrders","number",["number"],[d])},f.getDrawableRenderOrders=function(d){return c.ccall("csmGetDrawableRenderOrders","number",["number"],[d])},f.getDrawableOpacities=function(d){return c.ccall("csmGetDrawableOpacities","number",["number"],[d])},f.getDrawableMaskCounts=function(d){return c.ccall("csmGetDrawableMaskCounts","number",["number"],[d])},f.getDrawableMasks=function(d){return c.ccall("csmGetDrawableMasks","number",["number"],[d])},f.getDrawableVertexCounts=function(d){return c.ccall("csmGetDrawableVertexCounts","number",["number"],[d])},f.getDrawableVertexPositions=function(d){return c.ccall("csmGetDrawableVertexPositions","number",["number"],[d])},f.getDrawableVertexUvs=function(d){return c.ccall("csmGetDrawableVertexUvs","number",["number"],[d])},f.getDrawableIndexCounts=function(d){return c.ccall("csmGetDrawableIndexCounts","number",["number"],[d])},f.getDrawableIndices=function(d){return c.ccall("csmGetDrawableIndices","number",["number"],[d])},f.getDrawableMultiplyColors=function(d){return c.ccall("csmGetDrawableMultiplyColors","number",["number"],[d])},f.getDrawableScreenColors=function(d){return c.ccall("csmGetDrawableScreenColors","number",["number"],[d])},f.getDrawableParentPartIndices=function(d){return c.ccall("csmGetDrawableParentPartIndices","number",["number"],[d])},f.mallocMoc=function(d){return c.ccall("csmMallocMoc","number",["number"],[d])},f.mallocModelAndInitialize=function(d){return c.ccall("csmMallocModelAndInitialize","number",["number"],[d])},f.malloc=function(d){return c.ccall("csmMalloc","number",["number"],[d])},f.setLogFunction=function(d){c.ccall("csmSetLogFunction",null,["number"],[d])},f.updateModel=function(d){c.ccall("csmUpdateModel",null,["number"],[d])},f.readCanvasInfo=function(d,p,g,y){c.ccall("csmReadCanvasInfo",null,["number","number","number","number"],[d,p,g,y])},f.resetDrawableDynamicFlags=function(d){c.ccall("csmResetDrawableDynamicFlags",null,["number"],[d])},f.free=function(d){c.ccall("csmFree",null,["number"],[d])},f.initializeAmountOfMemory=function(d){c.ccall("csmInitializeAmountOfMemory",null,["number"],[d])},f}(),l=(e.AlignofMoc=64,e.AlignofModel=16,e.MocVersion_Unknown=0,e.MocVersion_30=1,e.MocVersion_33=2,e.MocVersion_40=3,e.MocVersion_42=4,e.MocVersion_50=5,e.ParameterType_Normal=0,e.ParameterType_BlendShape=1,function(){function f(){}return f.csmGetVersion=function(){return n.getVersion()},f.csmGetLatestMocVersion=function(){return n.getLatestMocVersion()},f.csmGetMocVersion=function(d,p){return n.getMocVersion(d._ptr,p.byteLength)},f}()),l=(e.Version=l,function(){function f(){}return f.csmSetLogFunction=function(d){f.logFunction=d,d=c.addFunction(f.wrapLogFunction,"vi"),n.setLogFunction(d)},f.csmGetLogFunction=function(){return f.logFunction},f.wrapLogFunction=function(d){d=c.UTF8ToString(d),f.logFunction(d)},f}()),l=(e.Logging=l,function(){function f(d){var p=n.mallocMoc(d.byteLength);p&&(new Uint8Array(c.HEAPU8.buffer,p,d.byteLength).set(new Uint8Array(d)),this._ptr=n.reviveMocInPlace(p,d.byteLength),this._ptr||n.free(p))}return f.prototype.hasMocConsistency=function(d){var p=n.mallocMoc(d.byteLength);if(p)return new Uint8Array(c.HEAPU8.buffer,p,d.byteLength).set(new Uint8Array(d)),d=n.hasMocConsistency(p,d.byteLength),n.free(p),d},f.fromArrayBuffer=function(d){return d&&(d=new f(d))._ptr?d:null},f.prototype._release=function(){n.free(this._ptr),this._ptr=0},f}()),l=(e.Moc=l,function(){function f(d){this._ptr=n.mallocModelAndInitialize(d._ptr),this._ptr&&(this.parameters=new a(this._ptr),this.parts=new o(this._ptr),this.drawables=new s(this._ptr),this.canvasinfo=new r(this._ptr))}return f.fromMoc=function(d){return d=new f(d),d._ptr?d:null},f.prototype.update=function(){n.updateModel(this._ptr)},f.prototype.release=function(){n.free(this._ptr),this._ptr=0},f}()),r=(e.Model=l,function(f){var d,p,g,y,m,S,_;f&&(g=(d=new Float32Array(2)).length*d.BYTES_PER_ELEMENT,p=n.malloc(g),(p=new Uint8Array(c.HEAPU8.buffer,p,g)).set(new Uint8Array(d.buffer)),m=(g=new Float32Array(2)).length*g.BYTES_PER_ELEMENT,y=n.malloc(m),(y=new Uint8Array(c.HEAPU8.buffer,y,m)).set(new Uint8Array(g.buffer)),S=(m=new Float32Array(1)).length*m.BYTES_PER_ELEMENT,_=n.malloc(S),(_=new Uint8Array(c.HEAPU8.buffer,_,S)).set(new Uint8Array(m.buffer)),n.readCanvasInfo(f,p.byteOffset,y.byteOffset,_.byteOffset),d=new Float32Array(p.buffer,p.byteOffset,p.length),g=new Float32Array(y.buffer,y.byteOffset,y.length),m=new Float32Array(_.buffer,_.byteOffset,_.length),this.CanvasWidth=d[0],this.CanvasHeight=d[1],this.CanvasOriginX=g[0],this.CanvasOriginY=g[1],this.PixelsPerUnit=m[0],n.free(p.byteOffset),n.free(y.byteOffset),n.free(_.byteOffset))}),a=(e.CanvasInfo=r,function(f){this.count=n.getParameterCount(f),d=n.getParameterCount(f),this.ids=new Array(d);for(var d,p,g=new Uint32Array(c.HEAPU32.buffer,n.getParameterIds(f),d),y=0;y<g.length;y++)this.ids[y]=c.UTF8ToString(g[y]);d=n.getParameterCount(f),this.minimumValues=new Float32Array(c.HEAPF32.buffer,n.getParameterMinimumValues(f),d),d=n.getParameterCount(f),this.types=new Int32Array(c.HEAP32.buffer,n.getParameterTypes(f),d),d=n.getParameterCount(f),this.maximumValues=new Float32Array(c.HEAPF32.buffer,n.getParameterMaximumValues(f),d),d=n.getParameterCount(f),this.defaultValues=new Float32Array(c.HEAPF32.buffer,n.getParameterDefaultValues(f),d),d=n.getParameterCount(f),this.values=new Float32Array(c.HEAPF32.buffer,n.getParameterValues(f),d),d=n.getParameterCount(f),this.keyCounts=new Int32Array(c.HEAP32.buffer,n.getParameterKeyCounts(f),d),d=n.getParameterCount(f),p=new Int32Array(c.HEAP32.buffer,n.getParameterKeyCounts(f),d),this.keyValues=new Array(d);for(var m=new Uint32Array(c.HEAPU32.buffer,n.getParameterKeyValues(f),d),y=0;y<m.length;y++)this.keyValues[y]=new Float32Array(c.HEAPF32.buffer,m[y],p[y])}),o=(e.Parameters=a,function(f){this.count=n.getPartCount(f),d=n.getPartCount(f),this.ids=new Array(d);for(var d,p=new Uint32Array(c.HEAPU32.buffer,n.getPartIds(f),d),g=0;g<p.length;g++)this.ids[g]=c.UTF8ToString(p[g]);d=n.getPartCount(f),this.opacities=new Float32Array(c.HEAPF32.buffer,n.getPartOpacities(f),d),d=n.getPartCount(f),this.parentIndices=new Int32Array(c.HEAP32.buffer,n.getPartParentPartIndices(f),d)}),s=(e.Parts=o,function(){function f(d){this._modelPtr=d;for(var p,g=null,y=(this.count=n.getDrawableCount(d),p=n.getDrawableCount(d),this.ids=new Array(p),new Uint32Array(c.HEAPU32.buffer,n.getDrawableIds(d),p)),m=0;m<y.length;m++)this.ids[m]=c.UTF8ToString(y[m]);p=n.getDrawableCount(d),this.constantFlags=new Uint8Array(c.HEAPU8.buffer,n.getDrawableConstantFlags(d),p),p=n.getDrawableCount(d),this.dynamicFlags=new Uint8Array(c.HEAPU8.buffer,n.getDrawableDynamicFlags(d),p),p=n.getDrawableCount(d),this.textureIndices=new Int32Array(c.HEAP32.buffer,n.getDrawableTextureIndices(d),p),p=n.getDrawableCount(d),this.drawOrders=new Int32Array(c.HEAP32.buffer,n.getDrawableDrawOrders(d),p),p=n.getDrawableCount(d),this.renderOrders=new Int32Array(c.HEAP32.buffer,n.getDrawableRenderOrders(d),p),p=n.getDrawableCount(d),this.opacities=new Float32Array(c.HEAPF32.buffer,n.getDrawableOpacities(d),p),p=n.getDrawableCount(d),this.maskCounts=new Int32Array(c.HEAP32.buffer,n.getDrawableMaskCounts(d),p),p=n.getDrawableCount(d),this.vertexCounts=new Int32Array(c.HEAP32.buffer,n.getDrawableVertexCounts(d),p),p=n.getDrawableCount(d),this.indexCounts=new Int32Array(c.HEAP32.buffer,n.getDrawableIndexCounts(d),p),p=n.getDrawableCount(d),this.multiplyColors=new Float32Array(c.HEAPF32.buffer,n.getDrawableMultiplyColors(d),4*p),p=n.getDrawableCount(d),this.screenColors=new Float32Array(c.HEAPF32.buffer,n.getDrawableScreenColors(d),4*p),p=n.getDrawableCount(d),this.parentPartIndices=new Int32Array(c.HEAP32.buffer,n.getDrawableParentPartIndices(d),p),p=n.getDrawableCount(d),g=new Int32Array(c.HEAP32.buffer,n.getDrawableMaskCounts(d),p),this.masks=new Array(p);for(var S=new Uint32Array(c.HEAPU32.buffer,n.getDrawableMasks(d),p),m=0;m<S.length;m++)this.masks[m]=new Int32Array(c.HEAP32.buffer,S[m],g[m]);p=n.getDrawableCount(d),g=new Int32Array(c.HEAP32.buffer,n.getDrawableVertexCounts(d),p),this.vertexPositions=new Array(p);for(var _=new Uint32Array(c.HEAPU32.buffer,n.getDrawableVertexPositions(d),p),m=0;m<_.length;m++)this.vertexPositions[m]=new Float32Array(c.HEAPF32.buffer,_[m],2*g[m]);p=n.getDrawableCount(d),g=new Int32Array(c.HEAP32.buffer,n.getDrawableVertexCounts(d),p),this.vertexUvs=new Array(p);for(var P=new Uint32Array(c.HEAPU32.buffer,n.getDrawableVertexUvs(d),p),m=0;m<P.length;m++)this.vertexUvs[m]=new Float32Array(c.HEAPF32.buffer,P[m],2*g[m]);p=n.getDrawableCount(d),g=new Int32Array(c.HEAP32.buffer,n.getDrawableIndexCounts(d),p),this.indices=new Array(p);for(var A=new Uint32Array(c.HEAPU32.buffer,n.getDrawableIndices(d),p),m=0;m<A.length;m++)this.indices[m]=new Uint16Array(c.HEAPU16.buffer,A[m],g[m])}return f.prototype.resetDynamicFlags=function(){n.resetDrawableDynamicFlags(this._modelPtr)},f}()),l=(e.Drawables=s,function(){function f(){}return f.hasBlendAdditiveBit=function(d){return(1&d)==1},f.hasBlendMultiplicativeBit=function(d){return(2&d)==2},f.hasIsDoubleSidedBit=function(d){return(4&d)==4},f.hasIsInvertedMaskBit=function(d){return(8&d)==8},f.hasIsVisibleBit=function(d){return(1&d)==1},f.hasVisibilityDidChangeBit=function(d){return(2&d)==2},f.hasOpacityDidChangeBit=function(d){return(4&d)==4},f.hasDrawOrderDidChangeBit=function(d){return(8&d)==8},f.hasRenderOrderDidChangeBit=function(d){return(16&d)==16},f.hasVertexPositionsDidChangeBit=function(d){return(32&d)==32},f.hasBlendColorDidChangeBit=function(d){return(64&d)==64},f}()),l=(e.Utils=l,function(){function f(){}return f.initializeAmountOfMemory=function(d){16777216<d&&n.initializeAmountOfMemory(d)},f}()),u=(e.Memory=l,t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,function(f){f=f||{};var d,p,g={};for(p in d=d||(f!==void 0?f:{}))d.hasOwnProperty(p)&&(g[p]=d[p]);var y,m,S,_,$=!1,P=typeof window=="object",A=typeof importScripts=="function",$=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&!P&&!A,k=!P&&!$&&!A,ut="",L=($?(ut=__dirname+"/",S=function(ge,Ne){var $e=et(ge);return $e||(y=y||require("fs"),ge=(m=m||require("path")).normalize(ge),$e=y.readFileSync(ge)),Ne?$e:$e.toString()},_=function(ge){return se((ge=(ge=S(ge,!0)).buffer?ge:new Uint8Array(ge)).buffer),ge},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",function(ge){throw ge}),process.on("unhandledRejection",ce),d.inspect=function(){return"[Emscripten Module object]"}):k?(typeof read<"u"&&(S=function(ge){var Ne=et(ge);return Ne?qe(Ne):read(ge)}),_=function(ge){var Ne;if(!(Ne=et(ge))){if(typeof readbuffer=="function")return new Uint8Array(readbuffer(ge));se(typeof(Ne=read(ge,"binary"))=="object")}return Ne},typeof print<"u"&&((console=typeof console>"u"?{}:console).log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(P||A)&&(A?ut=self.location.href:document.currentScript&&(ut=document.currentScript.src),ut=(ut=t||ut).indexOf("blob:")!==0?ut.substr(0,ut.lastIndexOf("/")+1):"",S=function(ge){try{var Ne=new XMLHttpRequest;return Ne.open("GET",ge,!1),Ne.send(null),Ne.responseText}catch($e){if(ge=et(ge))return qe(ge);throw $e}},A)&&(_=function(ge){try{var Ne=new XMLHttpRequest;return Ne.open("GET",ge,!1),Ne.responseType="arraybuffer",Ne.send(null),new Uint8Array(Ne.response)}catch($e){if(ge=et(ge))return ge;throw $e}}),d.print||console.log.bind(console)),B=d.printErr||console.warn.bind(console);for(p in g)g.hasOwnProperty(p)&&(d[p]=g[p]);function H(){return{exports:function(ge,Ne,$e){var Te=new ArrayBuffer(8),De=new Int32Array(Te),it=new Float32Array(Te),Pe=new Float64Array(Te);function rt(v,E){De[v]=E}function kt(){return Pe[0]}function Jt(v){Pe[0]=v}function tn(v){it[0]=v}function Wt(){return it[0]}Te=Ne.buffer;var il,yt,yn,Wa,At,Ct,aa,i,Mt,Ua,Jn,re,En,Ze,O,nt,xt,un,qn,xa,Xa,Ci,Ya,Re,ma,il=new Uint8Array(Te);return(Te=function(v,E){var F,C;if(typeof Buffer>"u")for(F=atob(E),C=0;C<F.length;C++)il[v+C]=F.charCodeAt(C);else for(F=Buffer.from(E,"base64"),C=0;C<F.length;C++)il[v+C]=F[C]})(1024,"QW4gZXJyb3Igb2NjdXJyZWQgaW4gdGhlIGludGVycG9sYXRpb24gZm9yIGJsZW5kIHNoYXBlcy4gQ29tYmluYXRpb25Db3VudCBpcyAlZC4ACgBbQ1NNXSBbRV1XYXJwRGVmb3JtZXI6OlRyYW5zZm9ybVRhcmdldCgpIGVycm9yLiBbJWRdIHAwMT0oJS40ZiAsICUuNGYpCgBbQ1NNXSBbRV1Jbml0aWFsaXplRGVmb3JtZXJzKCk6IFVua25vd24gRGVmb3JtZXIgVHlwZS4KAFtDU01dIFtFXWNzbUhhc01vY0NvbnNpc3RlbmN5OiBUaGlzIG1vYzMgc2l6ZSBpcyBpbnZhbGlkLgoAW0NTTV0gW0VdJXM6ICVzCgBbQ1NNXSBbV11Sb3RhdGlvbkRlZm9ybWVyOiBOb3QgZm91bmQgdHJhbnNmb3JtZWQgRGlyZWN0aW9uLgoAW0NTTV0gW0VdVXBkYXRlRGVmb3JtZXJIaWVyYXJjaHkoKTogVW5rbm93biBEZWZvcm1lciBUeXBlLgoAJXMKACAgAE1PQzMAImFkZHJlc3MiIGlzIG51bGwuACUwMlggAFtDU01dIFtFXWNzbUhhc01vY0NvbnNpc3RlbmN5OiBGaWxlVHlwZSBpcyBpbnZhbGlkLgoAImFkZHJlc3MiIGFsaWdubWVudCBpcyBpbnZhbGlkLgBbQ1NNXSBbRV1jc21IYXNNb2NDb25zaXN0ZW5jeTogVGhpcyBtb2MzIHZlciBpcyBpbnZhbGlkIFt2ZXI6JWRdLgoAInNpemUiIGlzIGludmFsaWQuAFtDU01dIFtFXWNzbUhhc01vY0NvbnNpc3RlbmN5OiBUaGUgQ29yZSB1bnN1cHBvcnQgbGF0ZXIgdGhhbiBtb2MzIHZlcjpbJWRdLiBUaGlzIG1vYzMgdmVyIGlzIFslZF0uCgAibW9kZWwiIGlzIGludmFsaWQuAFtDU01dIFtFXWNzbUhhc01vY0NvbnNpc3RlbmN5OiBIZWFkZXIgc2VjdGlvbiBpcyBpbnZhbGlkLgoAIm91dFNpemVJblBpeGVscyIgaXMgbnVsbC4AW0NTTV0gW0VdY3NtSGFzTW9jQ29uc2lzdGVuY3k6IERhdGEgc2VjdGlvbiBpcyBpbnZhbGlkLgoAIm91dE9yaWdpbkluUGl4ZWxzIiBpcyBudWxsLgBbQ1NNXSBbRV1jc21SZXZpdmVNb2NJblBsYWNlIGlzIGZhaWxlZC4gQ29ycnVwdGVkICBtb2MzIGZpbGUuCgAib3V0UGl4ZWxzUGVyVW5pdCIgaXMgbnVsbC4AW0NTTV0gW0VdY3NtUmV2aXZlTW9jSW5QbGFjZSBpcyBmYWlsZWQuIFRoZSBDb3JlIHVuc3VwcG9ydCBsYXRlciB0aGFuIG1vYzMgdmVyOlslZF0uIFRoaXMgbW9jMyB2ZXIgaXMgWyVkXS4KACJtb2MiIGlzIGludmFsaWQuAFtDU01dIFtFXWNzbUdldE1vY1ZlcnNpb24gaXMgZmFpbGVkLiBDb3JydXB0ZWQgbW9jMyBmaWxlLgoAInNpemUiIGlzIGludmFsaWQATGl2ZTJEIEN1YmlzbSBTREsgQ29yZSBWZXJzaW9uICVkLiVkLiVkAGNzbUdldE1vY1ZlcnNpb24AY3NtSGFzTW9jQ29uc2lzdGVuY3kAY3NtUmV2aXZlTW9jSW5QbGFjZQBjc21SZWFkQ2FudmFzSW5mbwBjc21HZXRTaXplb2ZNb2RlbABjc21Jbml0aWFsaXplTW9kZWxJblBsYWNlAGNzbVVwZGF0ZU1vZGVsAGNzbUdldFBhcmFtZXRlckNvdW50AGNzbUdldFBhcmFtZXRlcklkcwBjc21HZXRQYXJhbWV0ZXJUeXBlcwBjc21HZXRQYXJhbWV0ZXJNaW5pbXVtVmFsdWVzAGNzbUdldFBhcmFtZXRlck1heGltdW1WYWx1ZXMAY3NtR2V0UGFyYW1ldGVyRGVmYXVsdFZhbHVlcwBjc21HZXRQYXJhbWV0ZXJWYWx1ZXMAY3NtR2V0UGFydENvdW50AGNzbUdldFBhcnRJZHMAY3NtR2V0UGFydE9wYWNpdGllcwBjc21HZXRQYXJ0UGFyZW50UGFydEluZGljZXMAY3NtR2V0RHJhd2FibGVDb3VudABjc21HZXREcmF3YWJsZUlkcwBjc21HZXREcmF3YWJsZUNvbnN0YW50RmxhZ3MAY3NtR2V0RHJhd2FibGVEeW5hbWljRmxhZ3MAY3NtR2V0RHJhd2FibGVUZXh0dXJlSW5kaWNlcwBjc21HZXREcmF3YWJsZURyYXdPcmRlcnMAY3NtR2V0RHJhd2FibGVSZW5kZXJPcmRlcnMAY3NtR2V0RHJhd2FibGVPcGFjaXRpZXMAY3NtR2V0RHJhd2FibGVNYXNrQ291bnRzAGNzbUdldERyYXdhYmxlTWFza3MAY3NtR2V0RHJhd2FibGVWZXJ0ZXhDb3VudHMAY3NtR2V0RHJhd2FibGVWZXJ0ZXhQb3NpdGlvbnMAY3NtR2V0RHJhd2FibGVWZXJ0ZXhVdnMAY3NtR2V0RHJhd2FibGVJbmRleENvdW50cwBjc21HZXREcmF3YWJsZUluZGljZXMAY3NtR2V0RHJhd2FibGVNdWx0aXBseUNvbG9ycwBjc21HZXREcmF3YWJsZVNjcmVlbkNvbG9ycwBjc21HZXREcmF3YWJsZVBhcmVudFBhcnRJbmRpY2VzAGNzbVJlc2V0RHJhd2FibGVEeW5hbWljRmxhZ3MAY3NtR2V0UGFyYW1ldGVyS2V5Q291bnRzAGNzbUdldFBhcmFtZXRlcktleVZhbHVlcw=="),Te(3228,"Cg=="),Te(3267,"//////8="),Te(3336,"LSsgICAwWDB4AChudWxsKQ=="),Te(3360,"EQAKABEREQAAAAAFAAAAAAAACQAAAAAL"),Te(3392,"EQAPChEREQMKBwABEwkLCwAACQYLAAALAAYRAAAAERER"),Te(3441,"Cw=="),Te(3450,"EQAKChEREQAKAAACAAkLAAAACQALAAAL"),Te(3499,"DA=="),Te(3511,"DAAAAAAMAAAAAAkMAAAAAAAMAAAM"),Te(3557,"Dg=="),Te(3569,"DQAAAAQNAAAAAAkOAAAAAAAOAAAO"),Te(3615,"EA=="),Te(3627,"DwAAAAAPAAAAAAkQAAAAAAAQAAAQAAASAAAAEhIS"),Te(3682,"EgAAABISEgAAAAAAAAk="),Te(3731,"Cw=="),Te(3743,"CgAAAAAKAAAAAAkLAAAAAAALAAAL"),Te(3789,"DA=="),Te(3801,"DAAAAAAMAAAAAAkMAAAAAAAMAAAMAAAwMTIzNDU2Nzg5QUJDREVGLTBYKzBYIDBYLTB4KzB4IDB4AGluZgBJTkYAbmFuAE5BTgAuAAAAAKgaAAAAAAAAAwAAAAQAAAAEAAAABgAAAIP5ogBETm4A/CkVANFXJwDdNPUAYtvAADyZlQBBkEMAY1H+ALveqwC3YcUAOm4kANJNQgBJBuAACeouAByS0QDrHf4AKbEcAOg+pwD1NYIARLsuAJzphAC0JnAAQX5fANaROQBTgzkAnPQ5AItfhAAo+b0A+B87AN7/lwAPmAUAES/vAApaiwBtH20Az342AAnLJwBGT7cAnmY/AC3qXwC6J3UA5evHAD178QD3OQcAklKKAPtr6gAfsV8ACF2NADADVgB7/EYA8KtrACC8zwA29JoA46kdAF5hkQAIG+YAhZllAKAUXwCNQGgAgNj/ACdzTQAGBjEAylYVAMmocwB74mAAa4zAABnERwDNZ8MACejcAFmDKgCLdsQAphyWAESv3QAZV9EApT4FAAUH/wAzfj8AwjLoAJhP3gC7fTIAJj3DAB5r7wCf+F4ANR86AH/yygDxhx0AfJAhAGokfADVbvoAMC13ABU7QwC1FMYAwxmdAK3EwgAsTUEADABdAIZ9RgDjcS0Am8aaADNiAAC00nwAtKeXADdV1QDXPvYAoxAYAE12/ABknSoAcNerAGN8+AB6sFcAFxXnAMBJVgA71tkAp4Q4ACQjywDWincAWlQjAAAfuQDxChsAGc7fAJ8x/wBmHmoAmVdhAKz7RwB+f9gAImW3ADLoiQDmv2AA78TNAGw2CQBdP9QAFt7XAFg73gDem5IA0iIoACiG6ADiWE0AxsoyAAjjFgDgfcsAF8BQAPMdpwAY4FsALhM0AIMSYgCDSAEA9Y5bAK2wfwAe6fIASEpDABBn0wCq3dgArl9CAGphzgAKKKQA05m0AAam8gBcd38Ao8KDAGE8iACKc3gAr4xaAG/XvQAtpmMA9L/LAI2B7wAmwWcAVcpFAMrZNgAoqNIAwmGNABLJdwAEJhQAEkabAMRZxADIxUQATbKRAAAX8wDUQ60AKUnlAP3VEAAAvvwAHpTMAHDO7gATPvUA7PGAALPnwwDH+CgAkwWUAMFxPgAuCbMAC0XzAIgSnACrIHsALrWfAEeSwgB7Mi8ADFVtAHKnkABr5x8AMcuWAHkWSgBBeeIA9N+JAOiUlwDi5oQAmTGXAIjtawBfXzYAu/0OAEiatABnpGwAcXJCAI1dMgCfFbgAvOUJAI0xJQD3dDkAMAUcAA0MAQBLCGgALO5YAEeqkAB05wIAvdYkAPd9pgBuSHIAnxbvAI6UpgC0kfYA0VNRAM8K8gAgmDMA9Ut+ALJjaADdPl8AQF0DAIWJfwBVUikAN2TAAG3YEAAySDIAW0x1AE5x1ABFVG4ACwnBACr1aQAUZtUAJwedAF0EUAC0O9sA6nbFAIf5FwBJa30AHSe6AJZpKQDGzKwArRRUAJDiagCI2YkALHJQAASkvgB3B5QA8zBwAAD8JwDqcagAZsJJAGTgPQCX3YMAoz+XAEOU/QANhowAMUHeAJI5nQDdcIwAF7fnAAjfOwAVNysAXICgAFqAkwAQEZIAD+jYAGyArwDb/0sAOJAPAFkYdgBipRUAYcu7AMeJuQAQQL0A0vIEAEl1JwDrtvYA2yK7AAoUqgCJJi8AZIN2AAk7MwAOlBoAUTqqAB2jwgCv7a4AXCYSAG3CTQAtepwAwFaXAAM/gwAJ8PYAK0CMAG0xmQA5tAcADCAVANjDWwD1ksQAxq1LAE7KpQCnN80A5qk2AKuSlADdQmgAGWPeAHaM7wBoi1IA/Ns3AK6hqwDfFTEAAK6hAAz72gBkTWYA7QW3ACllMABXVr8AR/86AGr5uQB1vvMAKJPfAKuAMABmjPYABMsVAPoiBgDZ5B0APbOkAFcbjwA2zQkATkLpABO+pAAzI7UA8KoaAE9lqADSwaUACz8PAFt4zQAj+XYAe4sEAIkXcgDGplMAb27iAO/rAACbSlgAxNq3AKpmugB2z88A0QIdALHxLQCMmcEAw613AIZI2gD3XaAAxoD0AKzwLwDd7JoAP1y8ANDebQCQxx8AKtu2AKMlOgAAr5oArVOTALZXBAApLbQAS4B+ANoHpwB2qg4Ae1mhABYSKgDcty0A+uX9AInb/gCJvv0A5HZsAAap/AA+gHAAhW4VAP2H/wAoPgcAYWczACoYhgBNveoAs+evAI9tbgCVZzkAMb9bAITXSAAw3xYAxy1DACVhNQDJcM4AMMu4AL9s/QCkAKIABWzkAFrdoAAhb0cAYhLSALlchABwYUkAa1bgAJlSAQBQVTcAHtW3ADPxxAATbl8AXTDkAIUuqQAdssMAoTI2AAi3pADqsdQAFvchAI9p5AAn/3cADAOAAI1ALQBPzaAAIKWZALOi0wAvXQoAtPlCABHaywB9vtAAm9vBAKsXvQDKooEACGpcAC5VFwAnAFUAfxTwAOEHhgAUC2QAlkGNAIe+3gDa/SoAayW2AHuJNAAF8/4Aub+eAGhqTwBKKqgAT8RaAC34vADXWpgA9MeVAA1NjQAgOqYApFdfABQ/sQCAOJUAzCABAHHdhgDJ3rYAv2D1AE1lEQABB2sAjLCsALLA0ABRVUgAHvsOAJVywwCjBjsAwEA1AAbcewDgRcwATin6ANbKyADo80EAfGTeAJtk2ADZvjEApJfDAHdY1ABp48UA8NoTALo6PABGGEYAVXVfANK99QBuksYArC5dAA5E7QAcPkIAYcSHACn96QDn1vMAInzKAG+RNQAI4MUA/9eNAG5q4gCw/cYAkwjBAHxddABrrbIAzW6dAD5yewDGEWoA98+pAClz3wC1yboAtwBRAOKyDQB0uiQA5X1gAHTYigANFSwAgRgMAH5mlAABKRYAn3p2AP39vgBWRe8A2X42AOzZEwCLurkAxJf8ADGoJwDxbsMAlMU2ANioVgC0qLUAz8wOABKJLQBvVzQALFaJAJnO4wDWILkAa16qAD4qnAARX8wA/QtKAOH0+wCOO20A4oYsAOnUhAD8tKkA7+7RAC41yQAvOWEAOCFEABvZyACB/AoA+0pqAC8c2ABTtIQATpmMAFQizAAqVdwAwMbWAAsZlgAacLgAaZVkACZaYAA/Uu4AfxEPAPS1EQD8y/UANLwtADS87gDoXcwA3V5gAGeOmwCSM+8AyRe4AGFYmwDhV7wAUYPGANg+EADdcUgALRzdAK8YoQAhLEYAWfPXANl6mACeVMAAT4b6AFYG/ADlea4AiSI2ADitIgBnk9wAVeiqAIImOADK55sAUQ2kAJkzsQCp1w4AaQVIAGWy8AB/iKcAiEyXAPnRNgAhkrMAe4JKAJjPIQBAn9wA3EdVAOF0OgBn60IA/p3fAF7UXwB7Z6QAuqx6AFX2ogAriCMAQbpVAFluCAAhKoYAOUeDAInj5gDlntQASftAAP9W6QAcD8oAxVmKAJT6KwDTwcUAD8XPANtargBHxYYAhUNiACGGOwAseZQAEGGHACpMewCALBoAQ78SAIgmkAB4PIkAqMTkAOXbewDEOsIAJvTqAPdnigANkr8AZaMrAD2TsQC9fAsApFHcACfdYwBp4d0AmpQZAKgplQBozigACe20AESfIABOmMoAcIJjAH58IwAPuTIAp/WOABRW5wAh8QgAtZ0qAG9+TQClGVEAtfmrAILf1gCW3WEAFjYCAMQ6nwCDoqEAcu1tADmNegCCuKkAazJcAEYnWwAANO0A0gB3APz0VQABWU0A4HGA"),Te(6675,"QPsh+T8AAAAALUR0PgAAAICYRvg8AAAAYFHMeDsAAACAgxvwOQAAAEAgJXo4AAAAgCKC4zYAAAAAHfNpNThj7T7aD0k/Xph7P9oPyT9pN6wxaCEiM7QPFDNoIaIz2w9JP9sPSb/kyxZA5MsWwAAAAAAAAACA2w9JQNsPScAAAIA/AADAPwAAAADcz9E1AAAAAADAFT8="),Te(6824,"BQ=="),Te(6836,"DQ=="),Te(6860,"DgAAAA8AAABYHAAAAAQ="),Te(6884,"AQ=="),Te(6899,"Cv////8="),Te(7156,"gCA="),yt={Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Float32Array,Float64Array,NaN:NaN,Infinity:1/0,Math},yn=Ne.buffer,Wa=(Te=ge).memory,At=$e,Ct=new yt.Int8Array(yn),aa=new yt.Int16Array(yn),i=new yt.Int32Array(yn),Mt=new yt.Uint8Array(yn),Ua=new yt.Uint16Array(yn),Jn=new yt.Uint32Array(yn),re=new yt.Float32Array(yn),En=new yt.Float64Array(yn),Ze=yt.Math.imul,O=yt.Math.fround,nt=yt.Math.abs,xt=yt.Math.clz32,un=yt.Math.min,yt.Math.max,qn=yt.Math.floor,yt.Math.ceil,yt.Math.sqrt,Te.abort,yt.NaN,xa=yt.Infinity,Xa=Te.a,Ci=Te.b,Ya=Te.c,Re=5251744,ma=0,At[1]=function(v,E,F,C,w){v|=0,E|=0,F|=0,C|=0,w|=0;var R,b,T,x,I,M,D,U,z,q,oe,le,fe,Se,Le,Xe,ft,wt,Dt,qt,gn,Cn,Bt,Ln,pt=0,Ft=O(0),Qt=O(0),fn=0,vn=O(0),Nn=O(0),Vn=O(0),xr=O(0),Ir=O(0),Ar=O(0),Pr=O(0),Mr=O(0),kr=O(0),Yr=O(0),Jr=O(0),Aa=O(0),Pa=O(0),Ja=O(0),qa=O(0),xo=O(0),Io=O(0),qo=O(0),Qo=O(0),lS=(O(0),O(0),O(0),O(0),O(0),O(0),O(0),O(0),O(0),0);if(Re=Ln=Re-32|0,1<=(0|w))for(R=i[16+(i[v+308>>2]+(E<<5)|0)>>2],pt=i[v+60>>2]+Ze(R,24)|0,E=(b=i[pt+8>>2])+-1|0,le=(I=i[pt+4>>2])+-1|0,fe=z=(R=i[i[v+152>>2]+(R<<2)>>2])+(b<<3)|0,Se=q=R+((U=Ze(I,T=b+1|0))<<3)|0,Le=oe=R+(b+U<<3)|0,Bt=i[pt+12>>2],M=O(0|I),D=O(0|b),v=0;Vn=re[4+(pt=(x=v<<3)+F|0)>>2],Qt=O(Vn*M),xr=re[pt>>2],Ft=O(xr*D),pt=Vn>=O(1),Qt=!(Vn<O(0)^1)||pt|xr>=O(1)|xr<O(0)?(lS||(kr=re[4+Le>>2],Xe=re[R+4>>2],Ir=O(kr-Xe),ft=re[4+fe>>2],wt=re[4+Se>>2],Ar=O(ft-wt),Yr=O(O(Ir-Ar)*O(.5)),Dt=re[oe>>2],qt=re[R>>2],Pr=O(Dt-qt),gn=re[z>>2],Cn=re[q>>2],Mr=O(gn-Cn),Jr=O(O(Pr-Mr)*O(.5)),Ar=O(O(Ar+Ir)*O(.5)),Mr=O(O(Mr+Pr)*O(.5)),lS=1,Ir=O(O(O(O(O(Xe+ft)+wt)+kr)*O(.25))-O(Ir*O(.5))),Pr=O(O(O(O(O(qt+gn)+Cn)+Dt)*O(.25))-O(Pr*O(.5)))),Vn<O(3)^1|xr>O(-2)^1|(xr<O(3)^1|Vn>O(-2)^1)?(re[C+x>>2]=O(Vn*Jr)+O(O(xr*Mr)+Pr),Ft=O(Vn*Yr),O(O(xr*Ar)+Ir)):(xr<=O(0)?Vn<=O(0)?(Nn=O(O(Vn+O(2))*O(.5)),vn=O(O(xr+O(2))*O(.5)),Ft=O(Yr+Yr),qo=O(Ir-Ft),Qt=O(Jr+Jr),Qo=O(Pr-Qt),xo=O(Ir-O(Ar+Ar)),Aa=O(xo-Ft),Io=O(Pr-O(Mr+Mr)),Pa=O(Io-Qt),Ja=re[R+4>>2],qa=re[R>>2]):pt?(Ft=O(Yr*O(3)),Qt=O(Ir-O(Ar+Ar)),xo=O(Ft+Qt),Aa=O(Jr*O(3)),Pa=O(Pr-O(Mr+Mr)),Io=O(Aa+Pa),Nn=O(O(Vn+O(-1))*O(.5)),vn=O(O(xr+O(2))*O(.5)),Ja=O(Ft+Ir),qa=O(Aa+Pr),Aa=O(Yr+Qt),Pa=O(Jr+Pa),qo=re[4+Se>>2],Qo=re[q>>2]):(Ft=O(Ir-O(Ar+Ar)),pt=le,fn=O(nt(Qt))<O(2147483648)?~~Qt:-2147483648,Nn=O(0|(pt=(0|fn)==(0|I)?pt:fn)),vn=O(Nn/M),Aa=O(O(vn*Yr)+Ft),kr=O(vn*Jr),vn=O(Pr-O(Mr+Mr)),Pa=O(kr+vn),Vn=O(O(0|(fn=pt+1|0))/M),xo=O(O(Vn*Yr)+Ft),Io=O(O(Vn*Jr)+vn),vn=O(O(xr+O(2))*O(.5)),Nn=O(Qt-Nn),pt=R+(Ze(pt,T)<<3)|0,qo=re[pt+4>>2],Qo=re[pt>>2],pt=R+(Ze(fn,T)<<3)|0,Ja=re[pt+4>>2],qa=re[pt>>2]):xr>=O(1)?Vn<=O(0)?(Nn=O(O(Vn+O(2))*O(.5)),vn=O(O(xr+O(-1))*O(.5)),Ft=O(Yr+Yr),Aa=O(O(Ar+Ir)-Ft),Qt=O(Jr+Jr),Pa=O(O(Mr+Pr)-Qt),Ja=O(O(Ar*O(3))+Ir),qo=O(Ja-Ft),qa=O(O(Mr*O(3))+Pr),Qo=O(qa-Qt),xo=re[4+fe>>2],Io=re[z>>2]):pt?(Ft=O(Yr*O(3)),xo=O(Ft+O(Ar+Ir)),Qt=O(Jr*O(3)),Io=O(Qt+O(Mr+Pr)),kr=Ft,Ft=O(O(Ar*O(3))+Ir),Ja=O(kr+Ft),kr=Qt,Qt=O(O(Mr*O(3))+Pr),qa=O(kr+Qt),Nn=O(O(Vn+O(-1))*O(.5)),vn=O(O(xr+O(-1))*O(.5)),qo=O(Yr+Ft),Qo=O(Jr+Qt),Aa=re[4+Le>>2],Pa=re[oe>>2]):(Ft=O(O(Ar*O(3))+Ir),pt=le,fn=O(nt(Qt))<O(2147483648)?~~Qt:-2147483648,Nn=O(0|(pt=(0|fn)==(0|I)?pt:fn)),vn=O(Nn/M),qo=O(O(vn*Yr)+Ft),kr=O(vn*Jr),vn=O(O(Mr*O(3))+Pr),Qo=O(kr+vn),Vn=O(O(0|(fn=pt+1|0))/M),Ja=O(O(Vn*Yr)+Ft),qa=O(O(Vn*Jr)+vn),vn=O(O(xr+O(-1))*O(.5)),Nn=O(Qt-Nn),pt=R+(Ze(pt,T)+b<<3)|0,Aa=re[pt+4>>2],Pa=re[pt>>2],pt=R+(Ze(fn,T)+b<<3)|0,xo=re[pt+4>>2],Io=re[pt>>2]):Vn<=O(0)?(Nn=O(O(Vn+O(2))*O(.5)),pt=E,fn=O(nt(Qt=Ft))<O(2147483648)?~~Ft:-2147483648,Ft=O(0|(pt=(0|fn)==(0|b)?pt:fn)),vn=O(Qt-Ft),Ft=O(Ft/D),Qt=O(Yr+Yr),Aa=O(O(O(Ft*Ar)+Ir)-Qt),kr=O(O(Ft*Mr)+Pr),Ft=O(Jr+Jr),Pa=O(kr-Ft),Vn=O(O(0|(fn=pt+1|0))/D),qo=O(O(O(Vn*Ar)+Ir)-Qt),Qo=O(O(O(Vn*Mr)+Pr)-Ft),xo=re[4+(pt=R+(pt<<3)|0)>>2],Io=re[pt>>2],Ja=re[4+(pt=R+(fn<<3)|0)>>2],qa=re[pt>>2]):pt?(kr=Qt=O(Yr*O(3)),pt=E,fn=O(nt(Ft))<O(2147483648)?~~Ft:-2147483648,vn=O(0|(pt=(0|fn)==(0|b)?pt:fn)),Nn=O(vn/D),xo=O(kr+O(O(Nn*Ar)+Ir)),xr=O(Jr*O(3)),Io=O(xr+O(O(Nn*Mr)+Pr)),kr=Qt,Qt=O(O(0|(fn=pt+1|0))/D),Ja=O(kr+O(O(Qt*Ar)+Ir)),qa=O(xr+O(O(Qt*Mr)+Pr)),Nn=O(O(Vn+O(-1))*O(.5)),vn=O(Ft-vn),Aa=re[4+(pt=R+(pt+U<<3)|0)>>2],Pa=re[pt>>2],qo=re[4+(pt=R+(fn+U<<3)|0)>>2],Qo=re[pt>>2]):(En[16+Ln>>3]=Vn,i[Ln>>2]=v,En[8+Ln>>3]=xr,Ve(4,1107,Ln)),O(vn+Nn)<=O(1)?(re[C+x>>2]=O(Pa+O(O(Qo-Pa)*vn))+O(O(Io-Pa)*Nn),Ft=O(Aa+O(O(qo-Aa)*vn)),O(O(xo-Aa)*Nn)):(Ft=O(O(1)-vn),Qt=O(O(1)-Nn),re[C+x>>2]=O(qa+O(O(Io-qa)*Ft))+O(O(Qo-qa)*Qt),Ft=O(Ja+O(O(xo-Ja)*Ft)),O(O(qo-Ja)*Qt)))):(pt=O(nt(kr=Qt))<O(2147483648)?~~Qt:-2147483648,Nn=O(kr-O(0|pt)),fn=O(nt(Qt=Ft))<O(2147483648)?~~Ft:-2147483648,vn=O(Qt-O(0|fn)),pt=fn+Ze(pt,T)|0,Bt?(Ft=O(O(1)-Nn),Qt=O(O(1)-vn),fn=R+(pt<<3)|0,pt=R+(pt+T<<3)|0,re[C+x>>2]=O(O(O(Ft*O(Qt*re[fn>>2]))+O(Ft*O(vn*re[fn+8>>2])))+O(Nn*O(Qt*re[pt>>2])))+O(Nn*O(vn*re[pt+8>>2])),Ft=O(O(O(Ft*O(Qt*re[fn+4>>2]))+O(Ft*O(vn*re[fn+12>>2])))+O(Nn*O(Qt*re[pt+4>>2]))),O(Nn*O(vn*re[pt+12>>2]))):O(vn+Nn)<=O(1)?(Ft=O(O(O(1)-vn)-Nn),fn=R+(pt<<3)|0,pt=R+(pt+T<<3)|0,re[C+x>>2]=O(O(Ft*re[fn>>2])+O(vn*re[fn+8>>2]))+O(Nn*re[pt>>2]),Ft=O(O(Ft*re[fn+4>>2])+O(vn*re[fn+12>>2])),O(Nn*re[pt+4>>2])):(Ft=O(O(vn+O(-1))+Nn),fn=R+(pt+T<<3)|0,Qt=O(O(1)-vn),Vn=O(O(1)-Nn),pt=R+(pt<<3)|0,re[C+x>>2]=O(O(Ft*re[fn+8>>2])+O(Qt*re[fn>>2]))+O(Vn*re[pt+8>>2]),Ft=O(O(Ft*re[fn+12>>2])+O(Qt*re[fn+4>>2])),O(Vn*re[pt+12>>2]))),re[4+(C+x|0)>>2]=Ft+Qt,(0|w)!=(0|(v=v+1|0)););Re=32+Ln|0},At[2]=function(v,E){v|=0,E|=0;var M=0,F=0,C=0,I=0,D=0,w=O(0),R=0,b=0,T=(O(0),0),x=0,I=i[v+320>>2],M=i[v+316>>2],D=i[v+308>>2];(0|(F=i[8+(C=D+(E<<5)|0)>>2]))==-1?(i[(x=M)+(M=E<<2)>>2]=i[i[v+148>>2]+(i[C+16>>2]<<2)>>2],i[M+I>>2]=1065353216):(R=i[C+16>>2],b=i[i[v+152>>2]+(R<<2)>>2],At[i[24+(D+(F<<5)|0)>>2]](v,F,b,b,i[16+(i[v+60>>2]+Ze(R,24)|0)>>2]),w=re[i[v+148>>2]+(i[C+16>>2]<<2)>>2],C=i[C+8>>2]<<2,re[(F=E<<2)+M>>2]=w*re[C+M>>2],i[F+I>>2]=i[C+I>>2]),4<=Mt[i[v>>2]+4|0]&&(I=E<<2,M=i[v+308>>2]+(E<<5)|0,F=i[M+16>>2]<<2,C=i[v+328>>2],E=i[v+324>>2],(0|(D=i[M+8>>2]))==-1?(D=i[v+156>>2],i[(M=I<<2)+E>>2]=i[D+(F<<=2)>>2],i[(R=4|M)+E>>2]=i[(b=4|F)+D>>2],i[(T=8|M)+E>>2]=i[D+(x=8|F)>>2],i[E+((I|=3)<<2)>>2]=1065353216,v=i[v+160>>2],i[M+C>>2]=i[v+F>>2],i[C+R>>2]=i[v+b>>2],i[C+T>>2]=i[v+x>>2]):(F=(b=F<<2)+i[v+156>>2]|0,re[(M=(R=I<<2)+E|0)>>2]=re[F>>2]*re[(D=(T=D<<4)+E|0)>>2],re[M+4>>2]=re[F+4>>2]*re[D+4>>2],re[M+8>>2]=re[F+8>>2]*re[D+8>>2],i[E+((I|=3)<<2)>>2]=1065353216,v=b+i[v+160>>2]|0,x=re[v>>2],w=re[(M=C+T|0)>>2],re[(E=C+R|0)>>2]=O(x+w)-O(x*w),x=re[v+4>>2],w=re[M+4>>2],re[E+4>>2]=O(x+w)-O(x*w),x=re[v+8>>2],w=re[M+8>>2],re[E+8>>2]=O(x+w)-O(x*w)),i[C+(I<<2)>>2]=1065353216)},At[3]=function(v,E,F,C,w){v|=0,E|=0,F|=0,C|=0,w|=0;var R,b,T,x,I,M=0,M=(O(0),O(0),O(0),O(0),O(0),O(0),O(0),O(0),(E=i[16+(i[v+308>>2]+(E<<5)|0)>>2])<<2),D=function(oe){var le,fe,Se,Le,Xe=O(0);Re=Se=Re-16|0,tn(oe);t:if((le=2147483647&(Le=De[0]))>>>0<=1061752794)Xe=O(1),le>>>0<964689920||(Xe=_r(+oe));else if(le>>>0<=1081824209)fe=+oe,Xe=1075235812<=le>>>0?O(-_r(((0|Le)<0?3.141592653589793:-3.141592653589793)+fe)):Cr((0|Le)<=-1?1.5707963267948966+fe:1.5707963267948966-fe);else if(le>>>0<=1088565717)Xe=1085271520<=le>>>0?_r(+oe+((0|Le)<0?6.283185307179586:-6.283185307179586)):Cr((0|Le)<=-1?-4.71238898038469-+oe:+oe-4.71238898038469);else if(Xe=O(oe-oe),!(2139095040<=le>>>0))if((le=3&Xw(oe,8+Se|0))>>>0<=2){switch(le-1|0){default:Xe=_r(En[8+Se>>3]);break t;case 0:Xe=Cr(-En[8+Se>>3]);break t;case 1:}Xe=O(-_r(En[8+Se>>3]))}else Xe=Cr(En[8+Se>>3]);return Re=16+Se|0,Xe}(q=O(O(O(re[4+(i[v+168>>2]+Ze(E,12)|0)>>2]+re[M+i[v+284>>2]>>2])*O(3.1415927410125732))/O(180))),U=re[M+i[v+272>>2]>>2],z=i[M+i[v+292>>2]>>2],q=function(oe){var le,fe,Se,Le=0;Re=fe=Re-16|0,tn(oe);t:if((le=2147483647&(Se=De[0]))>>>0<=1061752794)le>>>0<964689920||(oe=Cr(+oe));else if(le>>>0<=1081824209)Le=+oe,oe=le>>>0<=1075235811?(0|Se)<=-1?O(-_r(Le+1.5707963267948966)):_r(Le+-1.5707963267948966):Cr(-(((0|Se)<0?3.141592653589793:-3.141592653589793)+Le));else if(le>>>0<=1088565717)Le=+oe,oe=le>>>0<=1085271519?(0|Se)<=-1?_r(Le+4.71238898038469):O(-_r(Le+-4.71238898038469)):Cr(((0|Se)<0?6.283185307179586:-6.283185307179586)+Le);else if(2139095040<=le>>>0)oe=O(oe-oe);else if((le=3&Xw(oe,8+fe|0))>>>0<=2){switch(le-1|0){default:oe=Cr(En[8+fe>>3]);break t;case 0:oe=_r(En[8+fe>>3]);break t;case 1:}oe=Cr(-En[8+fe>>3])}else oe=O(-_r(En[8+fe>>3]));return Re=16+fe|0,oe}(q);if((E=0)<(0|w))for(D=O(U*D),b=O(z?-1:1),x=O(D*b),R=i[M+i[v+288>>2]>>2]?O(-1):O(1),I=O(O(U*q)*R),D=O(D*R),U=O(O(U*O(-q))*b),q=re[M+i[v+280>>2]>>2],b=re[M+i[v+276>>2]>>2];M=(v=E<<3)+C|0,R=re[(v=v+F|0)>>2],T=re[v+4>>2],re[M+4>>2]=q+O(O(I*R)+O(x*T)),re[M>>2]=b+O(O(D*R)+O(U*T)),(0|w)!=(0|(E=E+1|0)););},At[4]=function(v,E){v|=0,E|=0;var F,C,w,R,b,T,x=0,I=0,M=0,D=O(0),U=0,z=0,q=O(0),oe=0,le=0,fe=0;if(O(0),O(0),O(0),O(0),Re=T=Re+-64|0,oe=i[v+320>>2],le=i[v+316>>2],I=i[v+308>>2],(0|(U=i[8+(M=I+(E<<5)|0)>>2]))==-1)x=i[M+16>>2]<<2,i[(I=E<<2)+le>>2]=i[x+i[v+268>>2]>>2],i[I+oe>>2]=i[x+i[v+272>>2]>>2];else{x=i[M+16>>2]<<2,fe=i[x+i[v+276>>2]>>2],i[24+T>>2]=fe,x=i[x+i[v+280>>2]>>2],i[28+T>>2]=x,i[16+T>>2]=0,C=i[12+(z=I+(U<<5)|0)>>2]==1?O(-10):O(-.10000000149011612),re[20+T>>2]=C,i[60+T>>2]=x,i[56+T>>2]=fe,At[i[z+24>>2]](v,U,56+T|0,48+T|0,1),D=O(1),I=9;t:{for(;;){if(x=I,q=O(D*O(0)),re[32+T>>2]=q+re[56+T>>2],F=O(C*D),re[36+T>>2]=F+re[60+T>>2],At[i[z+24>>2]](v,U,32+T|0,40+T|0,1),w=O(re[44+T>>2]-re[52+T>>2]),re[44+T>>2]=w,R=O(re[40+T>>2]-re[48+T>>2]),re[40+T>>2]=R,w!=O(0)||R!=O(0)){I=i[44+T>>2],i[8+T>>2]=i[40+T>>2],i[12+T>>2]=I;break t}if(re[32+T>>2]=re[56+T>>2]-q,re[36+T>>2]=re[60+T>>2]-F,At[i[z+24>>2]](v,U,32+T|0,40+T|0,1),q=O(re[40+T>>2]-re[48+T>>2]),re[40+T>>2]=q,F=O(re[44+T>>2]-re[52+T>>2]),(re[44+T>>2]=F)!=O(0)||q!=O(0)){re[12+T>>2]=-F,re[8+T>>2]=-q;break t}if(I=x+-1|0,D=O(D*O(.10000000149011612)),!x)break}Ve(3,1311,0)}D=function(Se,Le){var Xe=O(0);if((Xe=O(Kw(re[4+Se>>2],re[Se>>2])-Kw(re[4+Le>>2],re[Le>>2])))<O(-3.1415927410125732))for(;(Xe=O(Xe+O(6.2831854820251465)))<O(-3.1415927410125732););if(Xe>O(3.1415927410125732))for(;(Xe=O(Xe+O(-6.2831854820251465)))>O(3.1415927410125732););return Xe}(16+T|0,8+T|0),At[i[z+24>>2]](v,i[M+8>>2],24+T|0,24+T|0,1),I=i[M+16>>2]<<2,i[I+i[v+276>>2]>>2]=i[24+T>>2],i[I+i[v+280>>2]>>2]=i[28+T>>2],x=I+i[v+284>>2]|0,re[x>>2]=re[x>>2]+O(O(D*O(-180))/O(3.1415927410125732)),M=i[M+8>>2]<<2,re[(x=E<<2)+le>>2]=re[I+i[v+268>>2]>>2]*re[M+le>>2],I=I+i[v+272>>2]|0,D=O(re[I>>2]*re[M+oe>>2]),re[x+oe>>2]=D,re[I>>2]=D}4<=Mt[i[v>>2]+4|0]&&(x=E<<2,M=i[v+308>>2]+(E<<5)|0,U=i[M+16>>2]<<2,I=i[v+328>>2],E=i[v+324>>2],(0|(z=i[M+8>>2]))==-1?(z=i[v+296>>2],i[(M=x<<2)+E>>2]=i[z+(U<<=2)>>2],i[(oe=4|M)+E>>2]=i[(le=4|U)+z>>2],i[(fe=8|M)+E>>2]=i[z+(b=8|U)>>2],i[E+((x|=3)<<2)>>2]=1065353216,v=i[v+300>>2],i[I+M>>2]=i[v+U>>2],i[I+oe>>2]=i[v+le>>2],i[I+fe>>2]=i[v+b>>2]):(U=(le=U<<2)+i[v+296>>2]|0,re[(M=(oe=x<<2)+E|0)>>2]=re[U>>2]*re[(z=(fe=z<<4)+E|0)>>2],re[M+4>>2]=re[U+4>>2]*re[z+4>>2],re[M+8>>2]=re[U+8>>2]*re[z+8>>2],i[E+((x|=3)<<2)>>2]=1065353216,v=le+i[v+300>>2]|0,D=re[v>>2],q=re[(M=I+fe|0)>>2],re[(E=I+oe|0)>>2]=O(D+q)-O(D*q),D=re[v+4>>2],q=re[M+4>>2],re[E+4>>2]=O(D+q)-O(D*q),D=re[v+8>>2],q=re[M+8>>2],re[E+8>>2]=O(D+q)-O(D*q)),i[I+(x<<2)>>2]=1065353216),Re=64+T|0},At[5]=function(v,E){return v|=0,E|=0,O(0),O(0),0|((v=re[v>>2])<(E=re[E>>2])?-1:E<v)},At[6]=function(v,E,F,C){v|=0,E|=0,F|=0,C|=0;var w=0,R=0,b=O(0),T=0,x=0,I=0,M=0,D=0;if(1<=(0|(T=i[v+8>>2])))for(I=i[v+12>>2],x=i[v+20>>2];re[(R=w<<2)+I>>2]=re[E+R>>2]*re[R+x>>2],(0|(w=w+1|0))<(0|T););if(!((0|(T=i[v>>2]))<1))if(I=i[v+4>>2],C)for(R=E=0;;){if(i[C>>2]){if((0|(w=i[(x=E<<2)+i[v+16>>2]>>2]))<1)b=O(0);else for(M=w+R|0,D=i[v+12>>2],b=O(0),w=R;b=O(b+re[D+(w<<2)>>2]),(0|(w=w+1|0))<(0|M););re[F+x>>2]=b}if(C=C+4|0,R=i[I+(E<<2)>>2]+R|0,!((0|(E=E+1|0))<(0|T)))break}else for(x=i[v+16>>2],E=C=0;;){if((0|(w=i[(R=C<<2)+x>>2]))<=0)b=O(0);else for(M=E+w|0,D=i[v+12>>2],b=O(0),w=E;b=O(b+re[D+(w<<2)>>2]),(0|(w=w+1|0))<(0|M););if(re[F+R>>2]=b,E=i[R+I>>2]+E|0,!((0|(C=C+1|0))<(0|T)))break}},At[7]=function(v,E,F,C){v|=0,E|=0,F|=0,C|=0;var w=0,R=O(0),b=0,T=0,x=0,I=0,M=0;if(1<=(0|(I=i[v+8>>2])))for(T=i[v+12>>2],x=i[v+20>>2];re[(b=w<<2)+T>>2]=re[E+b>>2]*re[b+x>>2],(0|(w=w+1|0))<(0|I););if(!((0|(w=i[v>>2]))<1))if(I=i[v+4>>2],C)for(b=E=0;;){if(i[C>>2]){if((0|(w=i[(T=E<<2)+i[v+16>>2]>>2]))<1)R=O(0);else for(x=w+b|0,M=i[v+12>>2],R=O(0),w=b;R=O(R+re[M+(w<<2)>>2]),(0|(w=w+1|0))<(0|x););w=F+T|0,R=O(R+O(.0010000000474974513)),T=O(nt(R))<O(2147483648)?~~R:-2147483648,i[w>>2]=T,w=i[v>>2]}if(C=C+4|0,b=i[I+(E<<2)>>2]+b|0,!((0|(E=E+1|0))<(0|w)))break}else for(T=i[v+16>>2],E=C=0;;){if((0|(w=i[(b=C<<2)+T>>2]))<=0)R=O(0);else for(x=E+w|0,M=i[v+12>>2],R=O(0),w=E;R=O(R+re[M+(w<<2)>>2]),(0|(w=w+1|0))<(0|x););if(w=F+b|0,R=O(R+O(.0010000000474974513)),x=O(nt(R))<O(2147483648)?~~R:-2147483648,i[w>>2]=x,E=i[b+I>>2]+E|0,!((0|(C=C+1|0))<i[v>>2]))break}},At[8]=function(v,E,F,C,w,R){v|=0,E|=0,F|=0,C|=0,w|=0,R|=0;var b,T,x=0,I=0,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=O(0),Le=0,Xe=i[v>>2];if(!((0|Xe)<1))if(b=w<<2,T=i[v+4>>2],R)for(;;){if(i[R>>2]&&(M=i[(x=D<<2)+i[v+16>>2]>>2],q=i[F+x>>2],I=i[C+x>>2],(x=(0|(oe=Ze(I,w)))<1)||Jo(q,0,Ze(I,b)),!(x|(0|M)<1)))for(le=M+z|0,fe=i[v+20>>2],x=z;;){for(Se=re[(I=x<<2)+fe>>2],Le=i[E+I>>2],U=0;re[(I=(M=U<<2)+q|0)>>2]=re[I>>2]+O(Se*re[M+Le>>2]),(0|oe)!=(0|(U=U+1|0)););if(!((0|(x=x+1|0))<(0|le)))break}if(R=R+4|0,z=i[(D<<2)+T>>2]+z|0,!((0|(D=D+1|0))<(0|Xe)))break}else for(R=0;;){if(M=i[(D=R<<2)+i[v+16>>2]>>2],q=i[F+D>>2],I=i[C+D>>2],(x=(0|(oe=Ze(I,w)))<1)||Jo(q,0,Ze(I,b)),!(x|(0|M)<=0))for(le=M+z|0,fe=i[v+20>>2],x=z;;){for(Se=re[(I=x<<2)+fe>>2],Le=i[E+I>>2],U=0;re[(I=(M=U<<2)+q|0)>>2]=re[I>>2]+O(Se*re[M+Le>>2]),(0|oe)!=(0|(U=U+1|0)););if(!((0|(x=x+1|0))<(0|le)))break}if(z=i[D+T>>2]+z|0,!((0|(R=R+1|0))<(0|Xe)))break}},At[9]=function(v){var E,F,C,w=0,R=0,b=0,T=0;if(!(i[(v|=0)+648>>2]||(0|(w=i[v+332>>2]))<1))for(F=(R=i[v+336>>2])+Ze(w,20)|0,w=i[v+424>>2],T=i[v+444>>2];;){if(i[w>>2]&&!((0|(b=i[R+16>>2]))<(v=1)))for(b<<=1,C=i[T>>2];re[(E=(v<<2)+C|0)>>2]=-re[E>>2],(0|(v=v+2|0))<(0|b););if(T=T+4|0,w=w+4|0,!((R=R+20|0)>>>0<F>>>0))break}},At[10]=function(v,E,F){var C;return pn(C=i[20+(v|=0)>>2],E|=0,E=(F|=0)>>>0<(E=i[v+16>>2]-C|0)>>>0?F:E),i[v+20>>2]=E+i[v+20>>2],0|F},At[11]=function(v,E,F,C,w,R){v|=0,E=+E,F|=0,C|=0,w|=0,R|=0;var b,T,x,I,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0;if(i[44+(Re=x=Re-560|0)>>2]=0,Jt(+E),M=0|De[1],T=4294967295<De[0]>>>0?0:1,I=(0|M)<-1||(0|M)<=-1&&T?(Jt(E=-E),M=0|De[1],De[0],Dt=1,3840):2048&w?(Dt=1,3843):(Dt=1&w)?3846:3841,(2146435072&M)==2146435072)Vt(v,32,F,oe=Dt+3|0,-65537&w),Tt(v,I,Dt),C=R>>>5&1,Tt(v,E!=E?C?3867:3871:C?3859:3863,3);else if(E=function gn(Cn,Bt){var Ln,pt,Ft=0;if(Jt(+Cn),Ft=0|De[1],Ln=0|De[0],(0|(Ft=(pt=Ft)>>>20&2047))!=2047){if(!Ft)return Ft=Bt,Bt=Cn==0?0:(Cn=gn(18446744073709552e3*Cn,Bt),i[Bt>>2]+-64|0),i[Ft>>2]=Bt,Cn;i[Bt>>2]=Ft+-1022,rt(0,0|Ln),rt(1,-2146435073&pt|1071644672),Cn=+kt()}return Cn}(E,44+x|0),(E+=E)!=0&&(i[44+x>>2]=i[44+x>>2]+-1),b=16+x|0,(0|(T=32|R))==97){if(Xe=(Le=32&R)?9+I|0:I,!(11<C>>>0)&&(M=12-C|0)){for(ft=8;ft*=16,M=M+-1|0;);E=Mt[0|Xe]==45?-(ft+(-E-ft)):E+ft-ft}for((0|b)==(0|(M=gu((U=(M=i[44+x>>2])>>31)^M+U,0,b)))&&(Ct[15+x|0]=48,M=15+x|0),q=2|Dt,U=i[44+x>>2],Ct[0|(Se=M+-2|0)]=R+15,Ct[M+-1|0]=(0|U)<0?45:43,M=8&w,D=16+x|0;R=D,fe=Le,U=nt(E)<2147483648?~~E:-2147483648,Ct[0|D]=fe|Mt[U+3824|0],((D=R+1|0)-(16+x|0)|0)!=1|((E=16*(E-(0|U)))==0?!(M|0<(0|C)):0)||(Ct[R+1|0]=46,D=R+2|0),E!=0;);Vt(v,32,F,oe=(R=!C|(0|C)<=((D-x|0)-18|0)?((b-(16+x|0)|0)-Se|0)+D|0:2+((C+b|0)-Se|0)|0)+q|0,w),Tt(v,Xe,q),Vt(v,48,F,oe,65536^w),Tt(v,16+x|0,C=D-(16+x|0)|0),Vt(v,48,R-((M=C)+(C=b-Se|0)|0)|0,0,0),Tt(v,Se,C)}else{for(M=(0|C)<0,E==0?z=i[44+x>>2]:(z=i[44+x>>2]+-28|0,i[44+x>>2]=z,E*=268435456),le=M?6:C,U=Le=(0|z)<0?48+x|0:336+x|0;U=(C=U)+4|0,(E=1e9*(E-((i[C>>2]=M=E<4294967296&0<=E?~~E>>>0:0)>>>0)))!=0;);if((0|z)<1)M=U,D=Le;else for(D=Le;;){if(Se=(0|z)<29?z:29,!((M=U+-4|0)>>>0<D>>>0)){for(C=Se,fe=0;qt=fe,fe=i[(Xe=M)>>2],q=31&C,q=32<=(63&C)>>>(oe=0)?(z=fe<<q,0):(z=(1<<q)-1&fe>>>32-q,fe<<q),oe=z+oe|0,oe=(fe=qt+q|0)>>>0<q>>>0?oe+1|0:oe,qt=Xe,Xe=oS(fe=iS(q=fe,oe,1e9),ma,1e9),i[qt>>2]=q-Xe,D>>>0<=(M=M+-4|0)>>>0;);(C=fe)&&(i[(D=D+-4|0)>>2]=C)}for(;D>>>0<(M=U)>>>0&&!i[(U=M+-4|0)>>2];);if(z=i[44+x>>2]-Se|0,U=M,!(0<(0|(i[44+x>>2]=z))))break}if((0|z)<=-1)for(wt=1+((le+25|0)/9|0)|0,Se=(0|T)==102;;){if(fe=(0|z)<-9?9:0-z|0,M>>>0<=D>>>0)D=i[D>>2]?D:D+4|0;else{for(Xe=1e9>>>fe,q=-1<<fe^-1,z=0,U=D;C=i[U>>2],i[U>>2]=(C>>>fe)+z,z=Ze(Xe,C&q),(U=U+4|0)>>>0<M>>>0;);D=i[D>>2]?D:D+4|0,z&&(i[M>>2]=z,M=M+4|0)}if(z=fe+i[44+x>>2]|0,M=(0|wt)<M-(C=Se?Le:D)>>2?C+(wt<<2)|0:M,!((0|(i[44+x>>2]=z))<0))break}if(!(M>>>(U=0)<=D>>>0||(U=Ze(Le-D>>2,9),(C=i[D>>2])>>>0<(z=10))))for(;U=U+1|0,(z=Ze(z,10))>>>0<=C>>>0;);if((0|(C=(le-((0|T)==102?0:U)|0)-((0|T)==103&(0|le)!=0)|0))<(Ze(M-Le>>2,9)+-9|0)){if(oe=(Le+((C=(0|(q=C+9216|0))/9|0)<<2)|0)-4092|0,z=10,(0|(C=1+(q-Ze(C,9)|0)|0))<=8)for(;z=Ze(z,10),(0|(C=C+1|0))!=9;);if(wt=oe+4|0,((Se=(Xe=i[oe>>2])-Ze(z,q=(Xe>>>0)/(z>>>0)|0)|0)||(0|wt)!=(0|M))&&(ft=Se>>>0<(C=z>>>1)>>>0?.5:(0|M)==(0|wt)&&(0|C)==(0|Se)?1:1.5,E=1&q?9007199254740994:9007199254740992,!Dt|Mt[0|I]!=45||(ft=-ft,E=-E),i[oe>>2]=C=Xe-Se|0,E+ft!=E)){if(1e9<=(i[oe>>2]=C=C+z|0)>>>0)for(;(oe=oe+-4|(i[oe>>2]=0))>>>0<D>>>0&&(i[(D=D+-4|0)>>2]=0),C=i[oe>>2]+1|0,999999999<(i[oe>>2]=C)>>>0;);if(U=Ze(Le-D>>2,9),!((C=i[D>>2])>>>0<(z=10)))for(;U=U+1|0,(z=Ze(z,10))>>>0<=C>>>0;);}M=(C=oe+4|0)>>>0<M>>>0?C:M}t:{for(;;){if((Se=M)>>>(Xe=0)<=D>>>0)break t;if(i[(M=Se+-4|0)>>2])break}Xe=1}if((0|T)!=103)q=8&w;else if(le=((C=(0|U)<(0|(M=le||1))&-5<(0|U))?-1^U:-1)+M|0,R=(C?-1:-2)+R|0,!(q=8&w)){if(M=9,Xe&&(q=i[Se+-4>>2])&&!((q>>>(M=0))%(C=10)))for(;M=M+1|0,!((q>>>0)%((C=Ze(C,10))>>>0)););C=Ze(Se-Le>>2,9)+-9|0,le=(32|R)==102?((q=0)|le)<(0|(C=0<(0|(C=C-M|0))?C:0))?le:C:((q=0)|le)<(0|(C=0<(0|(C=(C+U|0)-M|0))?C:0))?le:C}if(oe=(0|(z=le|q))!=0,C=v,qt=F,M=0<(0|U)?U:0,(0|(fe=32|R))!=102){if((b-(M=gu((M=U>>31)+U^M,0,b))|0)<=1)for(;Ct[0|(M=M+-1|0)]=48,(b-M|0)<2;);Ct[0|(wt=M+-2|0)]=R,Ct[M+-1|0]=(0|U)<0?45:43,M=b-wt|0}if(Vt(C,32,qt,oe=1+(M+(oe+(le+Dt|0)|0)|0)|0,w),Tt(v,I,Dt),Vt(v,48,F,oe,65536^w),(0|fe)==102){for(C=16+x|8,U=16+x|9,D=R=Le>>>0<D>>>0?Le:D;;){if(M=gu(i[D>>2],0,U),(0|R)!=(0|D)){if(!(M>>>0<=16+x>>>0))for(;Ct[0|(M=M+-1|0)]=48,16+x>>>0<M>>>0;);}else(0|M)==(0|U)&&(Ct[24+x|0]=48,M=C);if(Tt(v,M,U-M|0),!((D=D+4|0)>>>0<=Le>>>0))break}z&&Tt(v,3875,1);t:if(!((0|le)<1|Se>>>0<=D>>>0))for(;;){if(16+x>>>0<(M=gu(i[D>>2],0,U))>>>0)for(;Ct[0|(M=M+-1|0)]=48,16+x>>>0<M>>>0;);if(Tt(v,M,(0|le)<9?le:9),le=le+-9|0,Se>>>0<=(D=D+4|0)>>>0)break t;if(!(0<(0|le)))break}Vt(v,48,le+9|0,9,0)}else{t:if(!((0|le)<0))for(R=Xe?Se:D+4|0,C=16+x|8,Le=16+x|9,U=D;;){if((0|Le)==(0|(M=gu(i[U>>2],0,Le)))&&(Ct[24+x|0]=48,M=C),(0|D)!=(0|U)){if(!(M>>>0<=16+x>>>0))for(;Ct[0|(M=M+-1|0)]=48,16+x>>>0<M>>>0;);}else Tt(v,M,1),M=M+1|0,(0|le)<1&&!q||Tt(v,3875,1);if(Tt(v,fe=M,(0|(M=Le-M|0))<(0|le)?M:le),le=le-M|0,R>>>0<=(U=U+4|0)>>>0)break t;if(!(-1<(0|le)))break}Vt(v,48,le+18|0,18,0),Tt(v,wt,b-wt|0)}}return Vt(v,32,F,oe,8192^w),Re=560+x|0,0|((0|oe)<(0|F)?F:oe)},At[12]=function(v,E){v|=0;var F=E|=0;E=i[E>>2]+15&-16,i[F>>2]=E+16,F=v,v=function(C,w,R,b){var T,x,I=0,M=0,D=0,U=0;return Re=x=Re-32|0,I=(U=I=2147483647&b)-1006698496|0,M=I=(T=M=D=R)>>>0<0?I+1|0:I,I=U-1140785152|0,(0|(I=D>>>0<0?I+1|0:I))==(0|M)&T>>>0<D>>>0|M>>>0<I>>>0?(I=b<<4|R>>>28,R=R<<4|w>>>28,(0|(D=w&=268435455))==134217728&1<=C>>>0|134217728<w>>>0?(I=I+1073741824|0,(C=R+1|0)>>>0<1&&(I=I+1|0),M=C):(I=I-(((M=R)>>>0<0)+-1073741824|0)|0,C|134217728^D||((C=M+(1&M)|0)>>>0<M>>>0&&(I=I+1|0),M=C))):(!D&(0|U)==2147418112?!(C|w):(0|U)==2147418112&D>>>0<0|U>>>0<2147418112)?(I=2146435072,((M=0)|U)==1140785151&4294967295<D>>>0|1140785151<U>>>0||(D=U>>>16)>>>(I=0)<15249||(function(z,q,oe,le,fe,Se){var Le,Xe,ft=0,wt=0;64&Se?(q=31&(oe=Se-64|0),q=32<=(63&oe)>>>0?(oe=0,fe>>>q):(oe=fe>>>q,((1<<q)-1&fe)<<32-q|le>>>q),fe=le=0):Se&&(wt=fe,ft=31&(Xe=64-Se|0),Xe=32<=(63&Xe)>>>0?(wt=le<<ft,0):(wt=(1<<ft)-1&le>>>32-ft|wt<<ft,le<<ft),Le=q,q=31&(ft=Se),q=32<=(63&ft)>>>0?(ft=0,oe>>>q):(ft=oe>>>q,((1<<q)-1&oe)<<32-q|Le>>>q),q|=Xe,oe=ft|wt,ft=le,le=31&Se,le=32<=(63&Se)>>>0?(wt=0,fe>>>le):(wt=fe>>>le,((1<<le)-1&fe)<<32-le|ft>>>le),fe=wt),i[z>>2]=q,i[4+z>>2]=oe,i[8+z>>2]=le,i[12+z>>2]=fe}(x,C,w,R,I=65535&b|65536,15361-D|0),function(z,q,oe,le,fe,Se){var Le,Xe,ft=0;64&Se?(le=q,q=31&(fe=Se+-64|0),32<=(63&fe)>>>0?(fe=le<<q,le=0):(fe=(1<<q)-1&le>>>32-q|oe<<q,le<<=q),oe=q=0):Se&&(Xe=le,le=31&(Le=Se),Xe=32<=(63&Se)>>>0?(ft=Xe<<le,0):(ft=(1<<le)-1&Xe>>>32-le|fe<<le,Xe<<le),le=oe,fe=31&(Se=64-Se|0),32<=(63&Se)>>>0?(Se=0,le>>>=fe):(Se=le>>>fe,le=((1<<fe)-1&le)<<32-fe|q>>>fe),le|=Xe,fe=Se|ft,Se=q,q=31&Le,q=32<=(63&Le)>>>0?(ft=Se<<q,0):(ft=(1<<q)-1&Se>>>32-q|oe<<q,Se<<q),oe=ft),i[z>>2]=q,i[4+z>>2]=oe,i[8+z>>2]=le,i[12+z>>2]=fe}(16+x|0,C,w,R,I,D+-15233|0),R=i[4+x>>2],C=i[8+x>>2],I=i[12+x>>2]<<4|C>>>28,M=C<<4|R>>>28,(0|(R=C=268435455&R))==134217728&1<=(w=i[x>>2]|((i[16+x>>2]|i[24+x>>2])!=0|(i[20+x>>2]|i[28+x>>2])!=0))>>>0|134217728<C>>>0?((C=M+1|0)>>>0<1&&(I=I+1|0),M=C):w|134217728^R||((C=M+(1&M)|0)>>>0<M>>>0&&(I=I+1|0),M=C))):(M=R<<4|w>>>28,I=524287&(I=b<<4|R>>>28)|2146959360),Re=32+x|0,rt(0,0|M),rt(1,-2147483648&b|I),+kt()}(i[E>>2],i[E+4>>2],i[E+8>>2],i[E+12>>2]),En[F>>3]=v},At[13]=function(v){return 0},At[14]=function(v,E,F){E|=0,F|=0;var C,w,R=0,b=0,T=0,x=0;for(Re=w=Re-32|0,R=i[28+(v|=0)>>2],i[16+w>>2]=R,T=i[v+20>>2],i[28+w>>2]=F,i[24+w>>2]=E,T=(i[20+w>>2]=E=T-R|0)+F|0,x=2,E=16+w|0;;){t:{if((b=(R=0)|Ya(i[v+60>>2],0|E,0|x,12+w|0))&&(i[2086]=b,R=-1),(0|(R=R?i[12+w>>2]=-1:i[12+w>>2]))==(0|T))E=i[v+44>>2],i[v+28>>2]=E,i[v+20>>2]=E,i[v+16>>2]=E+i[v+48>>2],v=F;else{if(-1<(0|R))break t;i[v+28>>2]=0,i[v+16>>2]=0,i[v+20>>2]=0,i[v>>2]=32|i[v>>2],((v=0)|x)!=2&&(v=F-i[E+4>>2]|0)}return Re=32+w|0,0|v}b=i[E+4>>2],i[(E=(C=b>>>0<R>>>0)?E+8|0:E)>>2]=(b=R-(C?b:0)|0)+i[E>>2],i[E+4>>2]=i[E+4>>2]-b,T=T-R|0,x=x-C|0}},At[15]=function(v,E,F,C){return ma=0},{d:function(){},e:function(){return 83886080},f:function(){return 5},g:function(v,E){return E|=0,Re=E=Re-16|0,v=(v|=0)?lm(v)?(Ve(4,2150,0),0):Mt[v+4|0]:(i[E+4>>2]=1444,i[E>>2]=2267,Ve(4,1294,E),0),Re=E+16|0,0|v},h:function(v,E){var F;return E|=0,Re=F=Re-48|0,v=(v|=0)?(v+63&-64)!=(0|v)?(i[36+F>>2]=1522,i[32+F>>2]=2284,Ve(4,1294,32+F|0),0):(E+63&-64)==(0|E)&&E?function(C,w){var R,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0,gn=0,Cn=0;Re=M=(R=T=Re)-704&-64;t:if(w>>>0<=1343)Ve(4,1235,0);else if(lm(C))Ve(4,1469,0);else if(T=Mt[0|(gn=C+4|0)]){if(!(6<=T>>>0)){(ft=(0|!Mt[C+5|0])==1)||(xi(gn,1),be(C- -64|0,4,160)),Jo(M- -64|0,0,640),rm(C,M- -64|0),T=C+w|0,w=i[M+64>>2];e:{n:{r:{if(5<=(Xe=Mt[C+4|0])>>>0){if(w>>>0<C>>>0|T>>>0<w>>>0||(I=w+256|0)>>>0<C>>>0)break n;if(I>>>0<=T>>>0)break r;break n}if(w>>>0<C>>>0|T>>>0<w>>>0||(I=w+128|0)>>>0<C>>>0|T>>>0<I>>>0)break n}if(!((x=i[M+68>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<I>>>0||(x=x- -64|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(oe=i[w>>2]))<0||(I=i[M+72>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=(b=I)+(I=oe<<2)|0)>>>0<C>>>0|T>>>0<x>>>0||(U=i[M+76>>2])>>>0<C>>>0|T>>>0<U>>>0|U>>>0<x>>>0||(b=(oe<<6)+U|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+80>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+84>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+88>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+92>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+96>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+100>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+4>>2]))<0||(I=i[M+104>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(D=(x=I)+(I=b<<2)|0)>>>0<C>>>0|T>>>0<D>>>0||(x=i[M+108>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<D>>>0||(b=x+(b<<6)|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+112>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+116>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+120>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+124>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+128>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+132>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+136>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+8>>2]))<0||(I=i[M+140>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=(le=b<<2)+I|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+144>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+le|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+148>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+le|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+156>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+le|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+160>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+le|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+164>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+le|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+12>>2]))<0||(I=i[M+172>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=(fe=b<<2)+I|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+176>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+fe|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+180>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+fe|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+188>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=I+fe|0)>>>0<C>>>0|T>>>0<b>>>0||(0|(x=i[w+16>>2]))<0||(I=i[M+192>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(D=(b=I)+(I=x<<2)|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+196>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+200>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+204>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+208>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+(x<<6)|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+212>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+216>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+220>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+228>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+232>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+236>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+240>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+244>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+I|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+248>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(b=b+x|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+252>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+256>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+260>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+264>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+268>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+272>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(0|(D=i[w+20>>2]))<0||(x=i[M+276>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(Se=(b=x)+(x=D<<2)|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+280>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(D=b+(D<<6)|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+284>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+288>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+292>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+296>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+300>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+308>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+312>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+x|0)>>>0<C>>>0|T>>>0<D>>>0||(0|(Se=i[w+24>>2]))<0||(b=i[M+336>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+(Se<<2)|0)>>>0<C>>>0|T>>>0<D>>>0||(0|(Se=i[w+28>>2]))<0||(b=i[M+340>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=(Dt=Se<<2)+b|0)>>>0<C>>>0|T>>>0<D>>>0||(b=i[M+344>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(D=b+Dt|0)>>>0<C>>>0|T>>>0<D>>>0||(0|(Se=i[w+32>>2]))<0||(b=i[M+356>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<D>>>0||(Se=(D=Se<<2)+b|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+360>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+364>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+368>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+372>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+376>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(b=i[M+380>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(Se=b+D|0)>>>0<C>>>0|T>>>0<Se>>>0||(0|(z=i[w+36>>2]))<0||(b=i[M+392>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<Se>>>0||(z=(Se=z<<2)+b|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+396>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+Se|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+400>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+Se|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+40>>2]))<0||(b=i[M+412>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+44>>2]))<0||(b=i[M+424>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+48>>2]))<0||(b=i[M+428>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=(q<<=2)+b|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+432>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+q|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+52>>2]))<0||(b=i[M+416>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=(q<<=2)+b|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+420>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+q|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+56>>2]))<0||(b=i[M+552>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+60>>2]))<0||(b=i[M+556>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+64>>2]))<0||(b=i[M+560>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<1)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+68>>2]))<0||(b=i[M+564>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+72>>2]))<0||(b=i[M+568>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(q=(z=b)+(b=q<<2)|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+572>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+576>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+580>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+584>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(z=b+z|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+76>>2]))<0||(b=i[M+588>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(q=(z=q<<2)+b|0)>>>0<C>>>0|T>>>0<q>>>0||(b=i[M+592>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(b=i[M+596>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<q>>>0||(z=b+z|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+80>>2]))<0||(b=i[M+600>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(Le=(z=b)+(b=q<<2)|0)>>>0<C>>>0|T>>>0<Le>>>0||(z=i[M+604>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<Le>>>0||(q=z+(q<<6)|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+608>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+612>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+616>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+620>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+624>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+628>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(q=b+z|0)>>>0<C>>>0|T>>>0<q>>>0||(z=i[M+632>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<q>>>0||(z=b+z|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+84>>2]))<0||(b=i[M+636>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<2)|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+640>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+(q<<1)|0)>>>0<C>>>0|T>>>0<z>>>0||(0|(q=i[w+88>>2]))<0||(b=i[M+644>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(b=b+(q<<2)|0)>>>0<C>>>0|T>>>0<b>>>0)){if(!(Xe>>>0<2)&&((z=i[M+168>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<b>>>0||(b=z+le|0)>>>0<C>>>0|T>>>0<b>>>0||!(Xe>>>0<4)&&((z=i[M+324>>2])>>>0<C>>>0|T>>>0<z>>>0|z>>>0<b>>>0||(z=x+z|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+328>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+x|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+332>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(z=b+x|0)>>>0<C>>>0|T>>>0<z>>>0||(b=i[M+152>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<z>>>0||(le=b+le|0)>>>0<C>>>0|T>>>0<le>>>0||(b=i[M+184>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<le>>>0||(le=b+fe|0)>>>0<C>>>0|T>>>0<le>>>0||(b=i[M+224>>2])>>>0<C>>>0|T>>>0<b>>>0|b>>>0<le>>>0||(b=b+I|0)>>>0<C>>>0|T>>>0<b>>>0||(0|(le=i[w+92>>2]))<0||(I=i[M+648>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(le=(b=le<<2)+I|0)>>>0<C>>>0|T>>>0<le>>>0||(I=i[M+652>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<le>>>0||(le=b+I|0)>>>0<C>>>0|T>>>0<le>>>0||(I=i[M+656>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<le>>>0||(b=b+I|0)>>>0<C>>>0|T>>>0<b>>>0||(0|(le=i[w+96>>2]))<0||(I=i[M+660>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(le=(b=le<<2)+I|0)>>>0<C>>>0|T>>>0<le>>>0||(I=i[M+664>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<le>>>0||(le=b+I|0)>>>0<C>>>0|T>>>0<le>>>0||(I=i[M+668>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<le>>>0||(b=b+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+304>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+316>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+320>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+100>>2]))<0||(I=i[M+436>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+440>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+444>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+104>>2]))<0||(I=i[M+448>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=I)+(I=b<<2)|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+452>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+456>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+460>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(x=i[M+464>>2])>>>0<C>>>0|T>>>0<x>>>0|x>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+108>>2]))<0||(I=i[M+480>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+484>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+488>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+112>>2]))<0||(I=i[M+504>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+508>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+512>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+116>>2]))<0||(I=i[M+528>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+(b<<2)|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+120>>2]))<0||(I=i[M+532>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+536>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+540>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+124>>2]))<0||(I=i[M+544>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=(b<<=2)+I|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+548>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=b+I|0)>>>0<C>>>0|T>>>0<b>>>0)))break n;if(Xe>>>0<5||!((I=i[M+348>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=I+Dt|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+352>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+Dt|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+384>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+D|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+388>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+D|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+404>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+Se|0)>>>0<C>>>0|T>>>0<x>>>0||(I=i[M+408>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(x=I+Se|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+128>>2]))<0||(I=i[M+468>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+472>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+476>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+132>>2]))<0||(I=i[M+492>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+496>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+500>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(x=x+I|0)>>>0<C>>>0|T>>>0<x>>>0||(0|(b=i[w+136>>2]))<0||(I=i[M+516>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<x>>>0||(b=(x=b<<2)+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+520>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(b=x+I|0)>>>0<C>>>0|T>>>0<b>>>0||(I=i[M+524>>2])>>>0<C>>>0|T>>>0<I>>>0|I>>>0<b>>>0||(I=x+I|0)>>>0<C>>>0)&&I>>>0<=T>>>0)break e}}Ve(4,1760,0),xi(gn,1),be(C- -64|0,4,160);break t}ft||(Gw(C),Ct[C+5|0]=0,w=i[M+64>>2],oe=i[w>>2],U=i[M+76>>2],Xe=Mt[C+4|0]);e:{if((C=0)<(0|oe)){for(;;){if(63<ed((C<<6)+U|0)>>>0)break e;if((0|oe)==(0|(C=C+1|0)))break}if(b=w+48|0,(T=0)<(0|(C=i[w>>2]))){for(I=i[w+48>>2],x=i[M+80>>2];;){if((0|(U=i[x+(T<<2)>>2]))<0|(0|I)<=(0|U))break e;if((0|C)==(0|(T=T+1|0)))break}for(Se=w+24|0,I=i[w+24>>2],D=i[M+88>>2],oe=i[M+84>>2],T=0;;){if((x=i[(U=T<<2)+D>>2])&&((0|x)<0|(0|I)<(0|x)||(0|(U=i[U+oe>>2]))<0|(0|I)<=(0|U)||(x=x+U|0)>>>31|(0|I)<(0|x)))break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+92>>2];;){if(1<Jn[I+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+96>>2];;){if(1<Jn[I+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+100>>2];;){if((0|(x=i[I+(T<<2)>>2]))<-1|(0|C)<=(0|x))break e;if((0|C)==(0|(T=T+1|0)))break}}else Se=w+24|0}else Se=w+24|0,b=w+48|0;if((C=0)<(0|(T=i[w+4>>2]))){for(I=i[M+108>>2];;){if(63<ed(I+(C<<6)|0)>>>0)break e;if((0|T)==(0|(C=C+1|0)))break}if(D=(I=i[w+48>>2])+-1|0,!(((T=0)|(C=i[w+4>>2]))<=0)){for(x=i[M+112>>2];;){if((0|(U=i[x+(T<<2)>>2]))<0|(0|I)<=(0|U))break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+116>>2];;){if(1<Jn[I+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+120>>2];;){if(1<Jn[I+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(I=i[w>>2],T=0,x=i[M+124>>2];;){if((0|(U=i[x+(T<<2)>>2]))<-1|(0|I)<=(0|U))break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+128>>2];;){if((0|(x=i[I+(T<<2)>>2]))<-1|(0|C)<=(0|x))break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,I=i[M+132>>2];;){if(1<Jn[I+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(x=w+8|0,U=w+12|0,oe=i[M+136>>2],T=0;;){if(1<(fe=i[(le=T<<2)+I>>2])>>>0||(0|(le=i[oe+le>>2]))<0|(0|le)>=i[(fe-1|0?x:U)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}}}else D=i[b>>2]+-1|0;if((C=0)<(0|(T=i[w+8>>2]))){for(I=i[M+140>>2];;){if((0|(x=i[I+(C<<2)>>2]))<0|(0|D)<(0|x))break e;if((0|T)==(0|(C=C+1|0)))break}for(Dt=w+28|0,I=i[w+28>>2],oe=i[M+148>>2],le=i[M+144>>2],C=0;;){if((x=i[(U=C<<2)+oe>>2])&&((0|x)<0|(0|I)<(0|x)||(0|(U=i[U+le>>2]))<0|(0|I)<=(0|U)||(x=x+U|0)>>>31|(0|I)<(0|x)))break e;if((0|T)==(0|(C=C+1|0)))break}for(C=0,x=i[M+156>>2],U=i[M+164>>2],oe=i[M+160>>2];;){if((0|(le=i[(I=C<<2)+oe>>2]))<1||(0|(fe=i[I+U>>2]))<1||(0|(I=i[x+I>>2]))<1|(0|I)!=(0|Ze(fe+1|0,le+1|0)))break e;if((0|T)==(0|(C=C+1|0)))break}}else Dt=w+28|0;if((C=0)<(0|(x=i[w+12>>2]))){for(T=i[M+172>>2];;){if((0|(I=i[T+(C<<2)>>2]))<0|(0|D)<(0|I))break e;if((0|x)==(0|(C=C+1|0)))break}for(z=w+32|0,T=i[w+32>>2],D=i[M+180>>2],oe=i[M+176>>2],C=0;;){if((I=i[(U=C<<2)+D>>2])&&((0|I)<0|(0|T)<(0|I)||(0|(U=i[U+oe>>2]))<0|(0|T)<=(0|U)||(I=I+U|0)>>>31|(0|T)<(0|I)))break e;if((0|x)==(0|(C=C+1|0)))break}}else z=w+32|0;I=w+16|0;n:{r:{if(!(((C=0)|(T=i[w+16>>2]))<=0)){for(x=i[M+208>>2];;){if(63<ed(x+(C<<6)|0)>>>0)break e;if((0|T)==(0|(C=C+1|0)))break}if(!(((T=0)|(C=i[I>>2]))<=0)){for(x=i[b>>2],U=i[M+212>>2];;){if((0|(D=i[U+(T<<2)>>2]))<0|(0|x)<=(0|D))break e;if((0|C)==(0|(T=T+1|0)))break}for(gn=w+36|0,x=i[w+36>>2],oe=i[M+220>>2],le=i[M+216>>2],T=0;;){if((U=i[(D=T<<2)+oe>>2])&&((0|U)<0|(0|x)<(0|U)||(0|(D=i[D+le>>2]))<0|(0|x)<=(0|D)||(U=U+D|0)>>>31|(0|x)<(0|U)))break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,x=i[M+228>>2];;){if(1<Jn[x+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,x=i[M+232>>2];;){if(1<Jn[x+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(x=i[w>>2],T=0,U=i[M+236>>2];;){if((0|(D=i[U+(T<<2)>>2]))<-1|(0|x)<=(0|D))break e;if((0|C)==(0|(T=T+1|0)))break}for(x=i[w+4>>2],T=0,U=i[M+240>>2];;){if((0|(D=i[U+(T<<2)>>2]))<-1|(0|x)<=(0|D))break e;if((0|C)==(0|(T=T+1|0)))break}for(x=i[M+244>>2],T=0;;){if(i[x+(T<<2)>>2]<0)break e;if((0|C)==(0|(T=T+1|0)))break}break r}}U=w+68|0,gn=w+36|0;break n}for(x=i[M+252>>2],T=0;;){if(i[x+(T<<2)>>2]<0)break e;if((0|C)==(0|(T=T+1|0)))break}for(U=i[w+60>>2],T=0,D=i[M+256>>2];;){if((oe=i[(oe=T<<2)+D>>2]+(i[x+oe>>2]<<1)|0)>>>31|(0|U)<(0|oe))break e;if((0|C)==(0|(T=T+1|0)))break}for(x=i[w+64>>2],oe=i[M+264>>2],le=i[M+260>>2],T=0;;){if((U=i[(D=T<<2)+oe>>2])&&((0|U)<0|(0|x)<(0|U)||(0|(D=i[D+le>>2]))<0|(0|x)<=(0|D)||(U=U+D|0)>>>31|(0|x)<(0|U)))break e;if((0|C)==(0|(T=T+1|0)))break}for(U=w+68|0,x=i[w+68>>2],le=i[M+272>>2],fe=i[M+268>>2],T=0;;){if((D=i[(oe=T<<2)+le>>2])&&((0|D)<0|(0|x)<(0|D)||(0|(oe=i[oe+fe>>2]))<0|(0|x)<=(0|oe)||(D=D+oe|0)>>>31|(0|x)<(0|D)))break e;if((0|C)==(0|(T=T+1|0)))break}}n:{r:{if(!(((C=0)|(T=i[w+20>>2]))<=0)){for(x=i[M+280>>2];;){if(63<ed(x+(C<<6)|0)>>>0)break e;if((0|T)==(0|(C=C+1|0)))break}if(!(((C=0)|(T=i[w+20>>2]))<=0)){for(x=i[M+296>>2];;){if(1<Jn[x+(C<<2)>>2])break e;if((0|T)==(0|(C=C+1|0)))break}for(x=i[M+300>>2],C=0;;){if(i[x+(C<<2)>>2]<0)break e;if((0|T)==(0|(C=C+1|0)))break}break r}}C=i[w+52>>2];break n}for(C=i[w+52>>2],le=i[M+312>>2],fe=i[M+308>>2],D=0;;){if((x=i[(oe=D<<2)+le>>2])&&((0|x)<0|(0|C)<(0|x)||(0|(oe=i[oe+fe>>2]))<0|(0|C)<=(0|oe)||(x=x+oe|0)>>>31|(0|C)<(0|x)))break e;if((0|T)==(0|(D=D+1|0)))break}}if(x=i[w+40>>2],(T=0)<(0|(D=i[w+8>>2])))for(oe=i[M+344>>2],le=i[M+156>>2];;){if((fe=i[(fe=T<<2)+oe>>2]+(i[le+fe>>2]<<1)|0)>>>31|(0|x)<(0|fe))break e;if((0|D)==(0|(T=T+1|0)))break}if((T=0)<(0|(D=i[z>>2]))){for(oe=i[M+376>>2];;){if(1<Jn[oe+(T<<2)>>2])break e;if((0|D)==(0|(T=T+1|0)))break}for(T=0,oe=i[M+380>>2];;){if(1<Jn[oe+(T<<2)>>2])break e;if((0|D)==(0|(T=T+1|0)))break}}if((T=0)<(0|(D=i[I>>2])))for(oe=i[M+400>>2],le=i[M+252>>2];;){if((fe=i[(fe=T<<2)+oe>>2]+(i[le+fe>>2]<<1)|0)>>>31|(0|x)<(0|fe))break e;if((0|D)==(0|(T=T+1|0)))break}if((T=0)<(0|(x=i[w+44>>2])))for(oe=i[M+424>>2];;){if((0|(le=i[oe+(T<<2)>>2]))<0|(0|C)<=(0|le))break e;if((0|x)==(0|(T=T+1|0)))break}if(1<=(0|(le=i[b>>2])))for(T=0,fe=i[M+432>>2],q=i[M+428>>2];;){if((b=i[(oe=T<<2)+fe>>2])&&((0|b)<0|(0|x)<(0|b)||(0|(oe=i[q+oe>>2]))<0|(0|x)<=(0|oe)||(b=b+oe|0)>>>31|(0|x)<(0|b)))break e;if((0|le)==(0|(T=T+1|0)))break}if(1<=(0|C))for(x=i[w+56>>2],T=0,le=i[M+420>>2],fe=i[M+416>>2];;){if((b=i[(oe=T<<2)+le>>2])&&((0|b)<0|(0|x)<(0|b)||(0|(oe=i[oe+fe>>2]))<0|(0|x)<=(0|oe)||(b=b+oe|0)>>>31|(0|x)<(0|b)))break e;if((0|(T=T+1|0))==(0|C))break}if((C=0)<(0|(T=i[U>>2])))for(x=i[M+564>>2];;){if((0|(U=i[x+(C<<2)>>2]))<-1|(0|D)<=(0|U))break e;if((0|T)==(0|(C=C+1|0)))break}if(C=i[w+76>>2],1<=(0|(U=i[w+72>>2])))for(T=0,D=i[M+572>>2],oe=i[M+568>>2];;){if((x=i[(b=T<<2)+D>>2])&&((0|x)<0|(0|C)<(0|x)||(0|(b=i[b+oe>>2]))<0|(0|C)<=(0|b)||(x=b+x|0)>>>31|(0|C)<(0|x)))break e;if((0|U)==(0|(T=T+1|0)))break}if((T=0)<(0|C)){for(x=i[M+588>>2];;){if(1<Jn[x+(T<<2)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(b=i[M+592>>2],T=0;;){if(1<(oe=i[(D=T<<2)+x>>2])>>>0||(0|(D=i[b+D>>2]))<0|(0|D)>=i[(oe-1|0?I:w)>>2])break e;if((0|C)==(0|(T=T+1|0)))break}for(T=0,x=i[M+596>>2];;){if((0|(b=i[x+(T<<2)>>2]))<-1|(0|U)<=(0|b))break e;if((0|C)==(0|(T=T+1|0)))break}}n:{if(!(((C=0)|(D=i[w+80>>2]))<=0)){for(T=i[M+604>>2];;){if(63<ed(T+(C<<6)|0)>>>0)break e;if((0|D)==(0|(C=C+1|0)))break}if(!(((C=0)|(D=i[w+80>>2]))<=0)){for(T=i[w+48>>2],x=i[M+608>>2];;){if((0|(U=i[x+(C<<2)>>2]))<0|(0|T)<=(0|U))break e;if((0|D)==(0|(C=C+1|0)))break}for(le=i[w+88>>2],U=i[M+616>>2],b=i[M+612>>2],C=0;;){if((T=i[(x=C<<2)+U>>2])&&((0|T)<0|(0|le)<(0|T)||(0|(x=i[b+x>>2]))<0|(0|le)<=(0|x)||(T=T+x|0)>>>31|(0|le)<(0|T)))break e;if((0|D)==(0|(C=C+1|0)))break}for(I=i[I>>2],U=i[M+620>>2],C=0;;){if((0|(T=i[U+(C<<2)>>2]))<0|(0|I)<=(0|T))break e;if((0|D)==(0|(C=C+1|0)))break}for(b=i[M+624>>2],C=0;;){if((0|(T=i[b+(C<<2)>>2]))<0|(0|I)<=(0|T))break e;if((0|D)==(0|(C=C+1|0)))break}for(T=i[w+84>>2],oe=i[M+632>>2],fe=i[M+628>>2],C=0;;){if((x=i[(q=C<<2)+oe>>2])&&((0|x)<0|(0|T)<(0|x)||(0|(q=i[q+fe>>2]))<0|(0|T)<=(0|q)||(x=x+q|0)>>>31|(0|T)<(0|x)))break e;if((0|D)==(0|(C=C+1|0)))break}for(Le=i[M+640>>2],T=i[M+252>>2],x=0;;){if(0<(0|(ft=i[(C=x<<2)+oe>>2])))for(q=Le+(i[C+fe>>2]<<1)|0,Cn=i[T+(i[C+b>>2]<<2)>>2],wt=i[T+(i[C+U>>2]<<2)>>2],C=0;;){if((0|Cn)<=Ua[q+(2|(qt=C<<1))>>1]|(0|wt)<=Ua[q+qt>>1])break e;if(!((0|(C=C+2|0))<(0|ft)))break}if((0|D)==(0|(x=x+1|0)))break}break n}}I=i[w+16>>2],le=i[w+88>>2]}if(!((255&Xe)>>>0<2)){if((C=0)<(0|(oe=i[w+8>>2])))for(T=i[M+168>>2];;){if(1<Jn[T+(C<<2)>>2])break e;if((0|oe)==(0|(C=C+1|0)))break}if(!((255&Xe)>>>0<4)){if(U=i[w+56>>2],1<=(0|(fe=i[w+20>>2])))for(b=i[M+332>>2],q=i[M+328>>2],C=0;;){if((T=i[(x=C<<2)+b>>2])&&((0|T)<0|(0|U)<(0|T)||(0|(x=i[x+q>>2]))<0|(0|U)<=(0|x)||(T=T+x|0)>>>31|(0|U)<(0|T)))break e;if((0|fe)==(0|(C=C+1|0)))break}if((0|(C=i[w+92>>2]))!=i[w+96>>2])break e;if(1<=(0|oe))for(q=i[M+152>>2],T=0,Le=i[M+148>>2];;){if((x=i[(b=T<<2)+Le>>2])&&((0|x)<0|(0|C)<(0|x)||(0|(b=i[b+q>>2]))<0|(0|C)<=(0|b)||(x=b+x|0)>>>31|(0|C)<(0|x)))break e;if((0|oe)==(0|(T=T+1|0)))break}if(1<=(0|(Cn=i[w+12>>2])))for(q=i[M+184>>2],T=0,Le=i[M+180>>2];;){if((x=i[(b=T<<2)+Le>>2])&&((0|x)<0|(0|C)<(0|x)||(0|(b=i[b+q>>2]))<0|(0|C)<=(0|b)||(x=b+x|0)>>>31|(0|C)<(0|x)))break e;if((0|Cn)==(0|(T=T+1|0)))break}if(1<=(0|I))for(q=i[M+224>>2],T=0,Le=i[M+220>>2];;){if((x=i[(b=T<<2)+Le>>2])&&((0|x)<0|(0|C)<(0|x)||(0|(b=i[b+q>>2]))<0|(0|C)<=(0|b)||(x=b+x|0)>>>31|(0|C)<(0|x)))break e;if((0|I)==(0|(T=T+1|0)))break}if((T=0)<(0|fe)){for(x=i[M+304>>2];;){if(1<Jn[x+(T<<2)>>2])break e;if((0|fe)==(0|(T=T+1|0)))break}for(x=i[w+100>>2],Le=i[M+320>>2],ft=i[M+316>>2],T=0;;){if((b=i[(q=T<<2)+Le>>2])&&((0|b)<0|(0|x)<(0|b)||(0|(q=i[q+ft>>2]))<0|(0|x)<=(0|q)||(b=b+q|0)>>>31|(0|x)<(0|b)))break e;if((0|fe)==(0|(T=T+1|0)))break}}else x=i[w+100>>2];if(1<=(0|x)){for(q=i[M+440>>2],T=0,ft=i[M+436>>2];;){if((b=i[(Le=T<<2)+q>>2])&&((0|b)<0|(0|U)<(0|b)||(0|(Le=i[Le+ft>>2]))<0|(0|U)<=(0|Le)||(b=b+Le|0)>>>31|(0|U)<(0|b)))break e;if((0|x)==(0|(T=T+1|0)))break}for(U=i[M+444>>2],T=0;;){if((0|(Le=i[(b=T<<2)+U>>2]))<0|(0|Le)>=i[b+q>>2])break e;if((0|x)==(0|(T=T+1|0)))break}}if((U=0)<(0|(T=i[w+104>>2]))){for(b=i[M+448>>2];;){if((0|(q=i[b+(U<<2)>>2]))<0|(0|x)<=(0|q))break e;if((0|T)==(0|(U=U+1|0)))break}for(b=i[w+116>>2],Le=i[M+464>>2],ft=i[M+460>>2],x=0;;){if((U=i[(q=x<<2)+Le>>2])&&((0|U)<0|(0|b)<(0|U)||(0|(q=i[q+ft>>2]))<0|(0|b)<=(0|q)||(U=U+q|0)>>>31|(0|b)<(0|U)))break e;if((0|T)==(0|(x=x+1|0)))break}}else b=i[w+116>>2];if((x=0)<(0|(q=i[w+108>>2]))){for(U=i[M+480>>2];;){if((0|(Le=i[U+(x<<2)>>2]))<0|(0|oe)<=(0|Le))break e;if((0|q)==(0|(x=x+1|0)))break}for(Le=i[M+488>>2],wt=i[M+484>>2],x=0;;){if((U=i[(oe=x<<2)+Le>>2])&&((0|U)<0|(0|T)<(0|U)||(0|(oe=i[oe+wt>>2]))<0|(0|T)<=(0|oe)||(U=U+oe|0)>>>31|(0|T)<(0|U)))break e;if((0|q)==(0|(x=x+1|0)))break}for(Le=i[Dt>>2],x=i[M+456>>2],oe=i[M+452>>2],U=0;;){if(qt=i[wt+(U<<2)>>2]<<2,(ft=i[qt+x>>2])&&((0|ft)<0|(0|Le)<(0|ft)||(0|(qt=i[oe+qt>>2]))<0|(0|Le)<=(0|qt)||(0|(ft=ft+qt|0))<0|(0|Le)<(0|ft)))break e;if((0|q)==(0|(U=U+1|0)))break}}else x=i[M+456>>2],oe=i[M+452>>2];if((U=0)<(0|(q=i[w+112>>2]))){for(Le=i[M+504>>2];;){if((0|(ft=i[Le+(U<<2)>>2]))<0|(0|I)<=(0|ft))break e;if((0|q)==(0|(U=U+1|0)))break}for(wt=i[M+512>>2],ft=i[M+508>>2],I=0;;){if((U=i[(Le=I<<2)+wt>>2])&&((0|U)<0|(0|T)<(0|U)||(0|(Le=i[Le+ft>>2]))<0|(0|T)<=(0|Le)||(U=U+Le|0)>>>31|(0|T)<(0|U)))break e;if((0|q)==(0|(I=I+1|0)))break}for(U=i[gn>>2],I=0;;){if(wt=i[ft+(I<<2)>>2]<<2,(Le=i[wt+x>>2])&&((0|Le)<0|(0|U)<(0|Le)||(0|(wt=i[oe+wt>>2]))<0|(0|U)<=(0|wt)||(0|(Le=Le+wt|0))<0|(0|U)<(0|Le)))break e;if((0|q)==(0|(I=I+1|0)))break}}if(U=i[w+120>>2],(I=0)<(0|b))for(q=i[M+528>>2];;){if((0|(Le=i[q+(I<<2)>>2]))<0|(0|U)<=(0|Le))break e;if((0|(I=I+1|0))==(0|b))break}if((I=0)<(0|U)){for(b=i[M+532>>2];;){if((0|(q=i[b+(I<<2)>>2]))<-1|(0|fe)<=(0|q))break e;if((0|U)==(0|(I=I+1|0)))break}for(b=i[w+124>>2],Le=i[M+540>>2],ft=i[M+536>>2],I=0;;){if((fe=i[(q=I<<2)+Le>>2])&&((0|fe)<0|(0|b)<(0|fe)||(0|(q=i[q+ft>>2]))<0|(0|b)<=(0|q)||(fe=q+fe|0)>>>31|(0|b)<(0|fe)))break e;if((0|U)==(0|(I=I+1|0)))break}}if(!((255&Xe)>>>0<5)){if((I=0)<(0|(Xe=i[Dt>>2]))){for(U=i[M+348>>2];;){if((0|(b=i[U+(I<<2)>>2]))<0|(0|C)<(0|b))break e;if((0|Xe)==(0|(I=I+1|0)))break}for(U=i[M+352>>2],I=0;;){if((0|(b=i[U+(I<<2)>>2]))<0|(0|C)<(0|b))break e;if((0|Xe)==(0|(I=I+1|0)))break}}if((Xe=0)<(0|(I=i[z>>2]))){for(U=i[M+384>>2];;){if((0|(b=i[U+(Xe<<2)>>2]))<0|(0|C)<(0|b))break e;if((0|I)==(0|(Xe=Xe+1|0)))break}for(U=i[M+388>>2],Xe=0;;){if((0|(b=i[U+(Xe<<2)>>2]))<0|(0|C)<(0|b))break e;if((0|I)==(0|(Xe=Xe+1|0)))break}}if((Xe=0)<(0|(U=i[gn>>2]))){for(b=i[M+404>>2];;){if((0|(fe=i[b+(Xe<<2)>>2]))<0|(0|C)<(0|fe))break e;if((0|U)==(0|(Xe=Xe+1|0)))break}for(b=i[M+408>>2],Xe=0;;){if((0|(fe=i[b+(Xe<<2)>>2]))<0|(0|C)<(0|fe))break e;if((0|U)==(0|(Xe=Xe+1|0)))break}}if((C=0)<(0|(Xe=i[w+128>>2]))){for(U=i[w>>2],b=i[M+468>>2];;){if((0|(fe=i[b+(C<<2)>>2]))<0|(0|U)<=(0|fe))break e;if((0|Xe)==(0|(C=C+1|0)))break}for(Dt=i[M+476>>2],fe=i[M+472>>2],C=0;;){if((U=i[(b=C<<2)+Dt>>2])&&((0|U)<0|(0|T)<(0|U)||(0|(b=i[b+fe>>2]))<0|(0|T)<=(0|b)||(U=b+U|0)>>>31|(0|T)<(0|U)))break e;if((0|Xe)==(0|(C=C+1|0)))break}for(U=i[Se>>2],C=0;;){if(Se=i[fe+(C<<2)>>2]<<2,(b=i[Se+x>>2])&&((0|b)<0|(0|U)<(0|b)||(0|(Se=i[oe+Se>>2]))<0|(0|U)<=(0|Se)||(0|(b=b+Se|0))<0|(0|U)<(0|b)))break e;if((0|Xe)==(0|(C=C+1|0)))break}}if((C=0)<(0|(Xe=i[w+132>>2]))){for(U=i[M+492>>2];;){if((0|(b=i[U+(C<<2)>>2]))<0|(0|Cn)<=(0|b))break e;if((0|Xe)==(0|(C=C+1|0)))break}for(Se=i[M+500>>2],b=i[M+496>>2],C=0;;){if((U=i[(fe=C<<2)+Se>>2])&&((0|U)<0|(0|T)<(0|U)||(0|(fe=i[b+fe>>2]))<0|(0|T)<=(0|fe)||(U=U+fe|0)>>>31|(0|T)<(0|U)))break e;if((0|Xe)==(0|(C=C+1|0)))break}for(C=0;;){if(fe=i[b+(C<<2)>>2]<<2,(U=i[fe+x>>2])&&((0|U)<0|(0|I)<(0|U)||(0|(fe=i[oe+fe>>2]))<0|(0|I)<=(0|fe)||(0|(U=U+fe|0))<0|(0|I)<(0|U)))break e;if((0|Xe)==(0|(C=C+1|0)))break}}if(!(((C=0)|(w=i[w+136>>2]))<=0)){for(I=i[M+516>>2];;){if((0|(Xe=i[I+(C<<2)>>2]))<0|(0|D)<=(0|Xe))break e;if((0|w)==(0|(C=C+1|0)))break}for(U=i[M+524>>2],I=i[M+520>>2],C=0;;){if((M=i[(Xe=C<<2)+U>>2])&&((0|M)<0|(0|T)<(0|M)||(0|(Xe=i[I+Xe>>2]))<0|(0|T)<=(0|Xe)||(M=M+Xe|0)>>>31|(0|T)<(0|M)))break e;if((0|w)==(0|(C=C+1|0)))break}for(C=0;;){if(M=i[I+(C<<2)>>2]<<2,(T=i[M+x>>2])&&((0|T)<0|(0|le)<(0|T)||(0|(M=i[M+oe>>2]))<0|(0|le)<=(0|M)||(0|(T=T+M|0))<0|(0|le)<(0|T)))break e;if((0|w)==(0|(C=C+1|0)))break}}}}}return Re=R,1}return Ve(4,1846,0),Re=R,0}i[M+52>>2]=T,i[M+48>>2]=5,Ve(4,1640,M+48|0)}else i[M+32>>2]=T,Ve(4,1554,M+32|0);return Re=R,0}(v,E):(i[20+F>>2]=1621,i[16+F>>2]=2284,Ve(4,1294,16+F|0),0):(i[4+F>>2]=1444,i[F>>2]=2284,Ve(4,1294,F),0),Re=48+F|0,0|v},i:function(v){i[1805]=v|=0},j:function(v,E){var F;return E|=0,Re=F=Re-48|0,v=(v|=0)?(v+63&-64)!=(0|v)?(i[36+F>>2]=1522,i[32+F>>2]=2305,Ve(4,1294,32+F|0),0):(E+63&-64)==(0|E)&&E?function(C){var w,R,b,T,x=0,I=0,M=0,D=0,U=0,z=0,q=0,oe=0;i[24+(Re=w=Re-32|0)>>2]=0,i[16+w>>2]=5,i[20+w>>2]=0,eS(16+(Re=T=Re-272|0)|0,2227,i[12+T>>2]=16+w|0),function(le){var fe;i[(Re=fe=Re-16|0)>>2]=le,function(Se,Le){var Xe;i[12+(Re=Xe=Re-16|0)>>2]=Le,Zw(Se,1432,Le,0,0),Re=16+Xe|0}(i[970],fe),Re=16+fe|0}(16+T|0),Re=272+T|0;t:{if(lm(C))Ve(4,1932,0);else{if(!(6<=(M=Mt[C+4|0])>>>0)){if((0|!Mt[C+5|0])!=1?(xi(C+4|0,1),be(C- -64|0,4,160),rm(C,C+704|(Ct[C+5|0]=0)),Gw(C)):rm(C,C+704|0),Mt[7224]||(i[1807]=6,Ct[7224]=1,i[1808]=7,i[1809]=8,i[1810]=9),I=i[C+704>>2],1<=(0|(M=i[I+16>>2]))){for(oe=(D=i[C+912>>2])+(M<<2)|0,U=i[C+908>>2];;){q=i[C+1204>>2]+(i[U>>2]<<2)|0;e:if(!(((I=0)|(x=(M=i[D>>2])+-1|0))<1))n:for(;;){for(;;){if(i[(z=q+(I<<2)|0)>>2]<=-1){if(function(le,fe,Se){var Le=0,Xe=0;r:if((0|le)!=(0|fe)){if(!(le>>>0<fe+Se>>>0&&fe>>>0<(Xe=le+Se|0)>>>0))return pn(le,fe,Se);if(Le=3&(le^fe),le>>>0<fe>>>0){if(!Le){if(3&le)for(;;){if(!Se)break r;if(Ct[0|le]=Mt[0|fe],fe=fe+1|0,Se=Se+-1|0,!(3&(le=le+1|0)))break}if(!(Se>>>0<=3)){for(Le=Se;i[le>>2]=i[fe>>2],fe=fe+4|0,le=le+4|0,3<(Le=Le+-4|0)>>>0;);Se&=3}}if(Se)for(;Ct[0|le]=Mt[0|fe],le=le+1|0,fe=fe+1|0,Se=Se+-1|0;);}else{if(!Le){if(3&Xe)for(;;){if(!Se)break r;if(Ct[0|(Le=(Se=Se+-1|0)+le|0)]=Mt[fe+Se|0],!(3&Le))break}if(!(Se>>>0<=3))for(;i[(Se=Se+-4|0)+le>>2]=i[fe+Se>>2],3<Se>>>0;);}if(Se)for(;Ct[(Se=Se+-1|0)+le|0]=Mt[fe+Se|0],Se;);}}}(z,z+4|0,(-1^I)+M<<2),(0|I)<(0|(x=(M=x)+-1|0)))continue n;break e}if(!((0|(I=I+1|0))<(0|x)))break}break}if(I=D,0<(0|M)&&(M=i[q+(x<<2)>>2]<0?x:M),i[I>>2]=M,U=U+4|0,!((D=D+4|0)>>>0<oe>>>0))break}I=i[C+704>>2]}if(1<=i[I>>2])for(x=0;i[i[C+712>>2]+(x<<2)>>2]=i[C+716>>2]+(x<<6),I=i[C+704>>2],(0|(x=x+1|0))<i[I>>2];);if(1<=i[I+4>>2])for(x=0;i[i[C+744>>2]+(x<<2)>>2]=i[C+748>>2]+(x<<6),I=i[C+704>>2],(0|(x=x+1|0))<i[I+4>>2];);if(1<=i[I+16>>2])for(x=0;i[(M=x<<2)+i[C+832>>2]>>2]=i[C+848>>2]+(x<<6),i[M+i[C+836>>2]>>2]=i[C+1196>>2]+(i[M+i[C+896>>2]>>2]<<2),i[M+i[C+840>>2]>>2]=i[C+1200>>2]+(i[M+i[C+900>>2]>>2]<<1),i[M+i[C+844>>2]>>2]=i[C+1204>>2]+(i[M+i[C+908>>2]>>2]<<2),I=i[C+704>>2],(0|(x=x+1|0))<i[I+16>>2];);if(1<=i[I+20>>2])for(x=0;i[i[C+916>>2]+(x<<2)>>2]=i[C+920>>2]+(x<<6),I=i[C+704>>2],(0|(x=x+1|0))<i[I+20>>2];);if(1<=i[I+80>>2])for(x=0;i[i[C+1240>>2]+(x<<2)>>2]=i[C+1244>>2]+(x<<6),I=i[C+704>>2],(0|(x=x+1|0))<i[I+80>>2];);if(1&Ct[i[C+708>>2]+20|0]||(0|(D=i[I+16>>2]))<1)break t;for(x=i[C+904>>2],q=i[C+900>>2],z=i[C+1200>>2],U=0;;){if(0<(0|(oe=i[(M=U<<2)+x>>2]+-1|0)))for(R=z+(i[M+q>>2]<<1)|0,I=0;b=Ua[(M=R+(I<<1)|0)>>1],aa[M>>1]=Ua[M+4>>1],aa[M+4>>1]=b,(0|(I=I+3|0))<(0|oe););if((0|D)==(0|(U=U+1|0)))break}for(M=i[C+892>>2],U=i[C+896>>2],q=i[C+1196>>2],x=0;;){if(1<=(0|(z=i[(I=x<<2)+M>>2])))for(z=(I=q+(i[I+U>>2]<<2)|0)+(z<<3)|0,I=I+4|0;re[I>>2]=O(1)-re[I>>2],(I=I+8|0)>>>0<z>>>0;);if((0|D)==(0|(x=x+1|0)))break}break t}i[4+w>>2]=M,i[w>>2]=5,Ve(4,2023,w)}C=0}return Re=32+w|0,C}(v):(i[20+F>>2]=1621,i[16+F>>2]=2305,Ve(4,1294,16+F|0),0):(i[4+F>>2]=1444,i[F>>2]=2305,Ve(4,1294,F),0),Re=48+F|0,0|v},k:function(v,E,F,C){var w;E|=0,F|=0,C|=0,Re=w=Re+-64|0,(v|=0)?E?F?C?(v=i[i[v>>2]+708>>2],i[E>>2]=i[v+12>>2],i[E+4>>2]=i[v+16>>2],i[F>>2]=i[v+4>>2],i[F+4>>2]=i[v+8>>2],i[C>>2]=i[v>>2]):(i[52+w>>2]=1995,i[48+w>>2]=2325,Ve(4,1294,48+w|0)):(i[36+w>>2]=1903,i[32+w>>2]=2325,Ve(4,1294,32+w|0)):(i[20+w>>2]=1819,i[16+w>>2]=2325,Ve(4,1294,16+w|0)):(i[4+w>>2]=1740,i[w>>2]=2325,Ve(4,1294,w)),Re=64+w|0},l:Vw,m:Uw,n:function(v){var E;Re=E=Re-16|0,(v|=0)?Bw(v):(i[4+E>>2]=1740,i[E>>2]=2387,Ve(4,1294,E)),Re=16+E|0},o:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+540>>2]:(i[4+E>>2]=1740,i[E>>2]=2402,Ve(4,1294,E),-1),Re=16+E|0,0|v},p:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+916>>2]:(i[4+E>>2]=1740,i[E>>2]=2423,Ve(4,1294,E),0),Re=16+E|0,0|v},q:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+548>>2]:(i[4+E>>2]=1740,i[E>>2]=2442,Ve(4,1294,E),0),Re=16+E|0,0|v},r:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+928>>2]:(i[4+E>>2]=1740,i[E>>2]=2463,Ve(4,1294,E),0),Re=16+E|0,0|v},s:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+924>>2]:(i[4+E>>2]=1740,i[E>>2]=2492,Ve(4,1294,E),0),Re=16+E|0,0|v},t:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+932>>2]:(i[4+E>>2]=1740,i[E>>2]=2521,Ve(4,1294,E),0),Re=16+E|0,0|v},u:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+552>>2]:(i[4+E>>2]=1740,i[E>>2]=2550,Ve(4,1294,E),0),Re=16+E|0,0|v},v:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+4>>2]:(i[4+E>>2]=1740,i[E>>2]=2572,Ve(4,1294,E),-1),Re=16+E|0,0|v},w:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+712>>2]:(i[4+E>>2]=1740,i[E>>2]=2588,Ve(4,1294,E),0),Re=16+E|0,0|v},x:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+52>>2]:(i[4+E>>2]=1740,i[E>>2]=2602,Ve(4,1294,E),0),Re=16+E|0,0|v},y:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+740>>2]:(i[4+E>>2]=1740,i[E>>2]=2622,Ve(4,1294,E),0),Re=16+E|0,0|v},z:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+332>>2]:(i[4+E>>2]=1740,i[E>>2]=2650,Ve(4,1294,E),-1),Re=16+E|0,0|v},A:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+832>>2]:(i[4+E>>2]=1740,i[E>>2]=2670,Ve(4,1294,E),0),Re=16+E|0,0|v},B:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+888>>2]:(i[4+E>>2]=1740,i[E>>2]=2688,Ve(4,1294,E),0),Re=16+E|0,0|v},C:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+432>>2]:(i[4+E>>2]=1740,i[E>>2]=2716,Ve(4,1294,E),0),Re=16+E|0,0|v},D:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+884>>2]:(i[4+E>>2]=1740,i[E>>2]=2743,Ve(4,1294,E),0),Re=16+E|0,0|v},E:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+440>>2]:(i[4+E>>2]=1740,i[E>>2]=2772,Ve(4,1294,E),0),Re=16+E|0,0|v},F:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+436>>2]:(i[4+E>>2]=1740,i[E>>2]=2797,Ve(4,1294,E),0),Re=16+E|0,0|v},G:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+448>>2]:(i[4+E>>2]=1740,i[E>>2]=2824,Ve(4,1294,E),0),Re=16+E|0,0|v},H:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+912>>2]:(i[4+E>>2]=1740,i[E>>2]=2848,Ve(4,1294,E),0),Re=16+E|0,0|v},I:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+844>>2]:(i[4+E>>2]=1740,i[E>>2]=2873,Ve(4,1294,E),0),Re=16+E|0,0|v},J:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+892>>2]:(i[4+E>>2]=1740,i[E>>2]=2893,Ve(4,1294,E),0),Re=16+E|0,0|v},K:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+444>>2]:(i[4+E>>2]=1740,i[E>>2]=2920,Ve(4,1294,E),0),Re=16+E|0,0|v},L:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+836>>2]:(i[4+E>>2]=1740,i[E>>2]=2950,Ve(4,1294,E),0),Re=16+E|0,0|v},M:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+904>>2]:(i[4+E>>2]=1740,i[E>>2]=2974,Ve(4,1294,E),0),Re=16+E|0,0|v},N:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+840>>2]:(i[4+E>>2]=1740,i[E>>2]=3e3,Ve(4,1294,E),0),Re=16+E|0,0|v},O:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+452>>2]:(i[4+E>>2]=1740,i[E>>2]=3022,Ve(4,1294,E),0),Re=16+E|0,0|v},P:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+456>>2]:(i[4+E>>2]=1740,i[E>>2]=3051,Ve(4,1294,E),0),Re=16+E|0,0|v},Q:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[i[v>>2]+876>>2]:(i[4+E>>2]=1740,i[E>>2]=3078,Ve(4,1294,E),0),Re=16+E|0,0|v},R:function(v){var E;Re=E=Re-16|0,(v|=0)?i[v+428>>2]=1:(i[4+E>>2]=1740,i[E>>2]=3110,Ve(4,1294,E)),Re=16+E|0},S:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+640>>2]:(i[4+E>>2]=1740,i[E>>2]=3139,Ve(4,1294,E),0),Re=16+E|0,0|v},T:function(v){var E;return Re=E=Re-16|0,v=(v|=0)?i[v+636>>2]:(i[4+E>>2]=1740,i[E>>2]=3164,Ve(4,1294,E),0),Re=16+E|0,0|v},U:function(v){var E;return am(12+(Re=E=Re-16|0)|0,64,v|=0),Re=16+E|0,i[12+E>>2]},V:function(v){var E,F,C=0;return Re=F=Re-16|0,!(v|=0)||am(12+F|0,16,E=Vw(v))||(C=Uw(v,i[12+F>>2],E))||(om(i[12+F>>2]),C=0),Re=16+F|0,0|C},W:function(v){return 0|im(v|=0)},X:function(v){om(v|=0)},Y:function(v){var E;am(12+(Re=E=Re-16|0)|0,64,v|=0),om(i[12+E>>2]),Re=16+E|0},Z:function(){return 0|Re},_:function(v){return 0|(Re=Re-(0|v)&-16)},$:function(v){Re=0|v},aa:function(v){return 0|(v=0|(v|=0),(F=0|sS())<(v=F+(v|=0)|0)&&v<65536&&(v=new ArrayBuffer(Ze(v,65536)),(E=new yt.Int8Array(v)).set(Ct),Ct=E,Ct=new yt.Int8Array(v),aa=new yt.Int16Array(v),i=new yt.Int32Array(v),Mt=new yt.Uint8Array(v),Ua=new yt.Uint16Array(v),Jn=new yt.Uint32Array(v),re=new yt.Float32Array(v),En=new yt.Float64Array(v),yn=v,Wa.buffer=v),F);var E,F},ba:function(v,E){At[v|=0](E|=0)}};function Ve(v,E,F){var C;Re=C=Re-272|0,Jn[1804]>v>>>0||(v=i[1805])&&(eS(16+C|0,E,i[12+C>>2]=F),At[v](16+C|0)),Re=272+C|0}function Tt(v,E,F){32&Mt[0|v]||function(C,w,R){var b=0,T=0,x=0;t:{if(!(b=i[R+16>>2])){if(function(I){var M;return M=Mt[I+74|0],Ct[I+74|0]=M+-1|M,8&(M=i[I>>2])?(i[I>>2]=32|M,1):(i[I+4>>2]=0,i[I+8>>2]=0,M=i[I+44>>2],i[I+28>>2]=M,i[I+20>>2]=M,i[I+16>>2]=M+i[I+48>>2],0)}(R))break t;b=i[R+16>>2]}if(b-(x=i[R+20>>2])>>>0<w>>>0)return At[i[R+36>>2]](R,C,w);e:if(!(Ct[R+75|0]<0)){for(b=w;;){if(!(T=b))break e;if(Mt[(b=T+-1|0)+C|0]==10)break}if(At[i[R+36>>2]](R,C,T)>>>0<T>>>0)break t;w=w-T|0,C=C+T|0,x=i[R+20>>2]}pn(x,C,w),i[R+20>>2]=i[R+20>>2]+w}}(E,F,v)}function Vt(v,E,F,C,w){var R,b,T;if(Re=T=Re-256|0,!(73728&w|(0|F)<=(0|C))){if(Jo(T,E,(R=(w=F-C|0)>>>0<256)?w:256),E=v,b=T,!R){for(F=F-C|0;Tt(v,T,256),255<(w=w+-256|0)>>>0;);w=255&F}Tt(E,b,w)}Re=256+T|0}function pn(v,E,F){var C,w=0;if(8192<=F>>>0)Xa(0|v,0|E,0|F);else{if(C=v+F|0,3&(v^E))if(C>>>0<4)F=v;else if((w=C-4|0)>>>0<v>>>0)F=v;else for(F=v;Ct[0|F]=Mt[0|E],Ct[F+1|0]=Mt[E+1|0],Ct[F+2|0]=Mt[E+2|0],Ct[F+3|0]=Mt[E+3|0],E=E+4|0,(F=F+4|0)>>>0<=w>>>0;);else{t:if((0|F)<1)F=v;else if(3&v)for(F=v;;){if(Ct[0|F]=Mt[0|E],E=E+1|0,C>>>0<=(F=F+1|0)>>>0)break t;if(!(3&F))break}else F=v;if(!((v=-4&C)>>>0<64||(w=v+-64|0)>>>0<F>>>0))for(;i[F>>2]=i[E>>2],i[F+4>>2]=i[E+4>>2],i[F+8>>2]=i[E+8>>2],i[F+12>>2]=i[E+12>>2],i[F+16>>2]=i[E+16>>2],i[F+20>>2]=i[E+20>>2],i[F+24>>2]=i[E+24>>2],i[F+28>>2]=i[E+28>>2],i[F+32>>2]=i[E+32>>2],i[F+36>>2]=i[E+36>>2],i[F+40>>2]=i[E+40>>2],i[F+44>>2]=i[E+44>>2],i[F+48>>2]=i[E+48>>2],i[F+52>>2]=i[E+52>>2],i[F+56>>2]=i[E+56>>2],i[F+60>>2]=i[E+60>>2],E=E- -64|0,(F=F- -64|0)>>>0<=w>>>0;);if(!(v>>>0<=F>>>0))for(;i[F>>2]=i[E>>2],E=E+4|0,(F=F+4|0)>>>0<v>>>0;);}if(F>>>0<C>>>0)for(;Ct[0|F]=Mt[0|E],E=E+1|0,(0|C)!=(0|(F=F+1|0)););}}function Cr(v){var E,F;return O((E=v*v)*E*(F=E*v)*(2718311493989822e-21*E-.00019839334836096632)+(F*(.008333329385889463*E-.16666666641626524)+v))}function _r(v){var E;return O(-.499999997251031*(v*=v)+1+.04166662332373906*(E=v*v)+v*E*(2439044879627741e-20*v-.001388676377460993))}function Jo(v,E,F){var C,w,R,b;if(F&&(Ct[(C=v+F|0)-1|0]=E,Ct[0|v]=E,!(F>>>0<3||(Ct[C-2|0]=E,Ct[v+1|0]=E,Ct[C-3|0]=E,Ct[v+2|0]=E,F>>>0<7)||(Ct[C-4|0]=E,Ct[v+3|0]=E,F>>>0<9)||(w=(C=0-v&3)+v|0,E=Ze(255&E,16843009),i[w>>2]=E,i[(C=(F=F-C&-4)+w|0)-4>>2]=E,F>>>0<9)||(i[8+w>>2]=E,i[4+w>>2]=E,i[C-8>>2]=E,i[C-12>>2]=E,F>>>0<25)||(i[24+w>>2]=E,i[20+w>>2]=E,i[16+w>>2]=E,i[12+w>>2]=E,i[C-16>>2]=E,i[C-20>>2]=E,i[C-24>>2]=E,i[C-28>>2]=E,(F=F-(b=4&w|24)|0)>>>0<32))))for(R=C=E,E=w+b|0;i[E+24>>2]=R,i[E+28>>2]=C,i[E+16>>2]=R,i[E+20>>2]=C,i[E+8>>2]=R,i[E+12>>2]=C,i[E>>2]=R,i[E+4>>2]=C,E=E+32|0,31<(F=F+-32|0)>>>0;);return v}function xi(v,E){var F;if(v>>>0<(E=(v+E|0)-1|0)>>>0)for(;F=Mt[0|v],Ct[0|v]=Mt[0|E],Ct[0|E]=F,(v=v+1|0)>>>0<(E=E+-1|0)>>>0;);}function sl(v){var E,F=sS();return(v=(E=i[2216])+v|0)>>>0<=F<<16>>>0||Ci(0|v)?(i[2216]=v,E):(i[2086]=48,-1)}function mu(v,E,F,C,w,R,b){var T,x,I,M,D,U,z,q,oe,le,fe=0,Se=O(0),Le=O(0),Xe=O(0);if(O(0),O(0),O(0),O(0),Re=le=Re-16|0,1<=(0|v))for(U=Ze(v,12)+E|0;;){if(1<=(0|(x=i[E+4>>2])))for(z=(v=i[E+8>>2])+Ze(x,48)|0,x=(T=i[E>>2]<<4)+b|0,I=(8|T)+b|0,T=(4|T)+b|0;(fe=i[v+8>>2])&&((q=fe+-1|0)>>>0<=1?(oe=(i[v+4>>2]<<2)+F|0,fe=i[oe+(i[v+12>>2]<<2)>>2]<<2,Se=re[fe+R>>2],D=re[w+fe>>2],Le=re[C+fe>>2],q-1?(Xe=Le,Le=re[v+20>>2],re[x>>2]=re[x>>2]+O(re[v+44>>2]*O(Xe*Le)),re[T>>2]=re[T>>2]+O(O(D*Le)*re[v+44>>2]),re[I>>2]=re[I>>2]+O(O(Se*Le)*re[v+44>>2])):(fe=i[(i[v+16>>2]<<2)+oe>>2]<<2,q=re[fe+R>>2],oe=re[w+fe>>2],Xe=Le,Le=re[v+20>>2],M=re[v+24>>2],re[x>>2]=re[x>>2]+O(re[v+44>>2]*O(O(Xe*Le)+O(re[C+fe>>2]*M))),re[T>>2]=re[T>>2]+O(O(O(D*Le)+O(oe*M))*re[v+44>>2]),re[I>>2]=re[I>>2]+O(O(O(Se*Le)+O(q*M))*re[v+44>>2]))):(i[le>>2]=fe,Ve(4,1024,le))),(v=v+48|0)>>>0<z>>>0;);if(v=(i[E>>2]<<4)+b|0,Se=re[v>>2],re[v>>2]=Se<O(0)?O(0):O(un(Se,O(1))),Se=re[v+4>>2],re[v+4>>2]=Se<O(0)?O(0):O(un(Se,O(1))),Se=re[v+8>>2],re[v+8>>2]=Se<O(0)?O(0):O(un(Se,O(1))),!((E=E+12|0)>>>0<U>>>0))break}Re=16+le|0}function gu(v,E,F){var C,w,R=0;if((0|E)==1&v>>>0<0|E>>>0<1)R=v;else for(;C=oS(R=iS(v,E,10),w=ma,10),Ct[0|(F=F+-1|0)]=v-C|48,C=(0|E)==9&4294967295<v>>>0|9<E>>>0,v=R,E=w,C;);if(R)for(;Ct[0|(F=F+-1|0)]=R-Ze(v=(R>>>0)/10|0,10)|48,E=9<R>>>0,R=v,E;);return F}function Zc(v){return v+-48>>>0<10}function ed(v){var E;return(E=tS(v,64))?E-v|0:64}function Th(v,E){var F=0;return 1024<=(0|E)?(v*=898846567431158e293,E=(0|(F=E+-1023|0))<1024?F:(v*=898846567431158e293,((0|E)<3069?E:3069)+-2046|0)):-1023<(0|E)||(v*=22250738585072014e-324,E=-1023<(0|(F=E+1022|0))?F:(v*=22250738585072014e-324,(-3066<(0|E)?E:-3066)+2044|0)),rt(0,0),rt(1,E+1023<<20),v*+kt()}function Eh(v,E){var F=0,C=v,w=E>>>0<=31?(F=i[v+4>>2],i[v>>2]):(F=i[v>>2],i[v+4>>2]=F,E=E+-32|(i[v>>2]=0),0);i[C>>2]=w<<E,i[v+4>>2]=F<<E|w>>>32-E}function Ch(v,E,F,C,w){var R,b=0,T=0,x=0;Re=R=Re-240|0,b=i[E>>2],i[232+R>>2]=b,E=i[E+4>>2],i[R>>2]=v,T=1;t:{e:{n:{if(((i[236+R>>2]=E)||(0|b)!=1)&&(b=v-i[(F<<2)+w>>2]|0,!((0|At[5](b,v))<1))){for(x=!C;;){r:{if(E=b,!(!x|(0|F)<2)&&(C=i[((F<<2)+w|0)-8>>2],-1<(0|At[5](b=v+-4|0,E))||-1<(0|At[5](b-C|0,E))))break r;if(i[(T<<2)+R>>2]=E,T=T+1|0,xh(232+R|0,v=aS(232+R|0)),F=v+F|0,!i[236+R>>2]&&i[232+R>>2]==1)break e;if(x=1,b=(v=E)-i[(F<<2)+w>>2]|(C=0),0<(0|At[5](b,i[R>>2])))continue;break n}break}E=v;break e}E=v}if(C)break t}rS(R,T),um(E,F,w)}Re=240+R|0}function xh(v,E){var F=0,C=v,w=E>>>0<=31?(F=i[v>>2],i[v+4>>2]):(F=i[v+4>>2],i[v+4>>2]=0,i[v>>2]=F,E=E+-32|0,0);i[C+4>>2]=w>>>E,i[v>>2]=w<<32-E|F>>>E}function rm(v,E){var F=Mt[v+4|0];i[E>>2]=i[v+64>>2]+v,i[E+4>>2]=i[v+68>>2]+v,i[E+8>>2]=i[v+72>>2]+v,i[E+12>>2]=i[v+76>>2]+v,i[E+16>>2]=i[v+80>>2]+v,i[E+20>>2]=i[v+84>>2]+v,i[E+24>>2]=i[v+88>>2]+v,i[E+28>>2]=i[v+92>>2]+v,i[E+32>>2]=i[v+96>>2]+v,i[E+36>>2]=i[v+100>>2]+v,i[E+40>>2]=i[v+104>>2]+v,i[E+44>>2]=i[v+108>>2]+v,i[E+48>>2]=i[v+112>>2]+v,i[E+52>>2]=i[v+116>>2]+v,i[E+56>>2]=i[v+120>>2]+v,i[E+60>>2]=i[v+124>>2]+v,i[E- -64>>2]=i[v+128>>2]+v,i[E+68>>2]=i[v+132>>2]+v,i[E+72>>2]=i[v+136>>2]+v,i[E+76>>2]=i[v+140>>2]+v,i[E+80>>2]=i[v+144>>2]+v,i[E+84>>2]=i[v+148>>2]+v,i[E+92>>2]=i[v+152>>2]+v,i[E+96>>2]=i[v+156>>2]+v,i[E+100>>2]=i[v+160>>2]+v,i[E+108>>2]=i[v+164>>2]+v,i[E+112>>2]=i[v+168>>2]+v,i[E+116>>2]=i[v+172>>2]+v,i[E+124>>2]=i[v+176>>2]+v,i[E+128>>2]=i[v+180>>2]+v,i[E+132>>2]=i[v+184>>2]+v,i[E+136>>2]=i[v+188>>2]+v,i[E+140>>2]=i[v+192>>2]+v,i[E+144>>2]=i[v+196>>2]+v,i[E+148>>2]=i[v+200>>2]+v,i[E+152>>2]=i[v+204>>2]+v,i[E+156>>2]=i[v+208>>2]+v,i[E+164>>2]=i[v+212>>2]+v,i[E+168>>2]=i[v+216>>2]+v,i[E+172>>2]=i[v+220>>2]+v,i[E+176>>2]=i[v+224>>2]+v,i[E+180>>2]=i[v+228>>2]+v,i[E+184>>2]=i[v+232>>2]+v,i[E+188>>2]=i[v+236>>2]+v,i[E+192>>2]=i[v+240>>2]+v,i[E+196>>2]=i[v+244>>2]+v,i[E+200>>2]=i[v+248>>2]+v,i[E+204>>2]=i[v+252>>2]+v,i[E+208>>2]=i[v+256>>2]+v,i[E+212>>2]=i[v+260>>2]+v,i[E+216>>2]=i[v+264>>2]+v,i[E+220>>2]=i[v+268>>2]+v,i[E+224>>2]=i[v+272>>2]+v,i[E+228>>2]=i[v+276>>2]+v,i[E+232>>2]=i[v+280>>2]+v,i[E+236>>2]=i[v+284>>2]+v,i[E+244>>2]=i[v+288>>2]+v,i[E+248>>2]=i[v+292>>2]+v,i[E+272>>2]=i[v+296>>2]+v,i[E+276>>2]=i[v+300>>2]+v,i[E+280>>2]=i[v+304>>2]+v,i[E+292>>2]=i[v+308>>2]+v,i[E+296>>2]=i[v+312>>2]+v,i[E+300>>2]=i[v+316>>2]+v,i[E+304>>2]=i[v+320>>2]+v,i[E+308>>2]=i[v+324>>2]+v,i[E+312>>2]=i[v+328>>2]+v,i[E+316>>2]=i[v+332>>2]+v,i[E+328>>2]=i[v+336>>2]+v,i[E+332>>2]=i[v+340>>2]+v,i[E+336>>2]=i[v+344>>2]+v,i[E+348>>2]=i[v+348>>2]+v,i[E+360>>2]=i[v+352>>2]+v,i[E+364>>2]=i[v+356>>2]+v,i[E+368>>2]=i[v+360>>2]+v,i[E+352>>2]=i[v+364>>2]+v,i[E+356>>2]=i[v+368>>2]+v,i[E+488>>2]=i[v+372>>2]+v,i[E+492>>2]=i[v+376>>2]+v,i[E+496>>2]=i[v+380>>2]+v,i[E+500>>2]=i[v+384>>2]+v,i[E+504>>2]=i[v+388>>2]+v,i[E+508>>2]=i[v+392>>2]+v,i[E+512>>2]=i[v+396>>2]+v,i[E+516>>2]=i[v+400>>2]+v,i[E+520>>2]=i[v+404>>2]+v,i[E+524>>2]=i[v+408>>2]+v,i[E+528>>2]=i[v+412>>2]+v,i[E+532>>2]=i[v+416>>2]+v,i[E+536>>2]=i[v+420>>2]+v,i[E+540>>2]=i[v+424>>2]+v,i[E+544>>2]=i[v+428>>2]+v,i[E+548>>2]=i[v+432>>2]+v,i[E+552>>2]=i[v+436>>2]+v,i[E+556>>2]=i[v+440>>2]+v,i[E+560>>2]=i[v+444>>2]+v,i[E+564>>2]=i[v+448>>2]+v,i[E+568>>2]=i[v+452>>2]+v,i[E+572>>2]=i[v+456>>2]+v,i[E+576>>2]=i[v+460>>2]+v,i[E+580>>2]=i[v+464>>2]+v,F>>>0<2||(i[E+104>>2]=i[v+468>>2]+v,F>>>0<4)||(i[E+260>>2]=i[v+472>>2]+v,i[E+264>>2]=i[v+476>>2]+v,i[E+268>>2]=i[v+480>>2]+v,i[E+88>>2]=i[v+484>>2]+v,i[E+120>>2]=i[v+488>>2]+v,i[E+160>>2]=i[v+492>>2]+v,i[E+584>>2]=i[v+496>>2]+v,i[E+588>>2]=i[v+500>>2]+v,i[E+592>>2]=i[v+504>>2]+v,i[E+596>>2]=i[v+508>>2]+v,i[E+600>>2]=i[v+512>>2]+v,i[E+604>>2]=i[v+516>>2]+v,i[E+240>>2]=i[v+520>>2]+v,i[E+252>>2]=i[v+524>>2]+v,i[E+256>>2]=i[v+528>>2]+v,i[E+372>>2]=i[v+532>>2]+v,i[E+376>>2]=i[v+536>>2]+v,i[E+380>>2]=i[v+540>>2]+v,i[E+384>>2]=i[v+544>>2]+v,i[E+388>>2]=i[v+548>>2]+v,i[E+392>>2]=i[v+552>>2]+v,i[E+396>>2]=i[v+556>>2]+v,i[E+400>>2]=i[v+560>>2]+v,i[E+416>>2]=i[v+564>>2]+v,i[E+420>>2]=i[v+568>>2]+v,i[E+424>>2]=i[v+572>>2]+v,i[E+440>>2]=i[v+576>>2]+v,i[E+444>>2]=i[v+580>>2]+v,i[E+448>>2]=i[v+584>>2]+v,i[E+464>>2]=i[v+588>>2]+v,i[E+468>>2]=i[v+592>>2]+v,i[E+472>>2]=i[v+596>>2]+v,i[E+476>>2]=i[v+600>>2]+v,i[E+480>>2]=i[v+604>>2]+v,i[E+484>>2]=i[v+608>>2]+v,(0|F)!=4&&(i[E+284>>2]=i[v+612>>2]+v,i[E+288>>2]=i[v+616>>2]+v,i[E+320>>2]=i[v+620>>2]+v,i[E+324>>2]=i[v+624>>2]+v,i[E+340>>2]=i[v+628>>2]+v,i[E+344>>2]=i[v+632>>2]+v,i[E+404>>2]=i[v+636>>2]+v,i[E+408>>2]=i[v+640>>2]+v,i[E+412>>2]=i[v+644>>2]+v,i[E+428>>2]=i[v+648>>2]+v,i[E+432>>2]=i[v+652>>2]+v,i[E+436>>2]=i[v+656>>2]+v,i[E+452>>2]=i[v+660>>2]+v,i[E+456>>2]=i[v+664>>2]+v,i[E+460>>2]=i[v+668>>2]+v))}function am(v,E,F){var C=0;t:{if((0|E)==8)E=im(F);else{if(C=28,3&E|(0|function(w){for(var R=0,b=0;b=R,w;)w&=w-1,R=R+1|0;return b}(E>>>2))!=1||(C=48,-64-E>>>0<F>>>0))break t;E=function(w,R){var b,T,x=0,I=0,M=0;if((I=w>>>0>(x=16)?w:16)+-1&I)for(;x=(w=x)<<1,w>>>0<I>>>0;);else w=I;return-64-w>>>0<=R>>>0?(i[2086]=48,0):(x=im(12+((I=R>>>0<11?16:R+11&-8)+w|0)|0))?(R=x+-8|0,x&w+-1?(M=(-8&(T=i[(b=x+-4|0)>>2]))-(x=(w=15<(x=((w+x|0)-1&0-w)-8|0)-R>>>0?x:w+x|0)-R|0)|0,3&T?(i[w+4>>2]=M|1&i[w+4>>2]|2,i[4+(M=w+M|0)>>2]=1|i[4+M>>2],i[b>>2]=x|1&i[b>>2]|2,i[w+4>>2]=1|i[w+4>>2],jw(R,x)):(R=i[R>>2],i[w+4>>2]=M,i[w>>2]=R+x)):w=R,3&(R=i[w+4>>2])&&((x=-8&R)>>>0<=I+16>>>0||(i[w+4>>2]=I|1&R|2,i[(R=w+I|0)+4>>2]=3|(I=x-I|0),i[4+(x=w+x|0)>>2]=1|i[x+4>>2],jw(R,I))),w+8|0):0}(16<E>>>0?E:16,F)}if(!E)return 1;i[v>>2]=E,C=0}return C}function om(v){var E,F=0,C=0,w=0,R=0,b=0,T=0,x=0;t:if(v){E=(w=v+-8|0)+(v=-8&(C=i[v+-4>>2]))|0;e:if(!(1&C)){if(!(3&C)||(w=w-(C=i[w>>2])|0)>>>0<Jn[2091])break t;if(v=v+C|0,i[2092]!=(0|w))if(C>>>0<=255)R=i[w+8>>2],C>>>=3,(0|(F=i[w+12>>2]))==(0|R)?(x=i[2087]&Ia(C),i[2087]=x):(i[R+12>>2]=F,i[F+8>>2]=R);else{if(T=i[w+24>>2],(0|w)!=(0|(C=i[w+12>>2])))F=i[w+8>>2],i[F+12>>2]=C,i[C+8>>2]=F;else if(F=(F=i[(R=w+20|0)>>2])||i[(R=w+16|0)>>2]){for(;b=R,(F=i[(R=(C=F)+20|0)>>2])||(R=C+16|0,F=i[C+16>>2]););i[b>>2]=0}else C=0;if(T){R=i[w+28>>2];n:{if(i[(F=8652+(R<<2)|0)>>2]==(0|w)){if(i[F>>2]=C)break n;x=i[2088]&Ia(R),i[2088]=x;break e}if(!(i[T+(i[T+16>>2]==(0|w)?16:20)>>2]=C))break e}i[C+24>>2]=T,(F=i[w+16>>2])&&(i[C+16>>2]=F,i[F+24>>2]=C),(F=i[w+20>>2])&&(i[C+20>>2]=F,i[F+24>>2]=C)}}else if((3&(C=i[4+E>>2]))==3)return i[2089]=v,i[4+E>>2]=-2&C,i[w+4>>2]=1|v,i[v+w>>2]=v}if(!(E>>>0<=w>>>0)&&1&(C=i[4+E>>2])){e:{if(!(2&C)){if(i[2093]==(0|E)){if(i[2093]=w,v=i[2090]+v|0,i[2090]=v,i[w+4>>2]=1|v,i[2092]!=(0|w))break t;return i[2089]=0,i[2092]=0}if(i[2092]==(0|E))return i[2092]=w,v=i[2089]+v|0,i[2089]=v,i[w+4>>2]=1|v,i[v+w>>2]=v;v=(-8&C)+v|0;n:if(C>>>0<=255)C>>>=3,(0|(F=i[8+E>>2]))==(0|(R=i[12+E>>2]))?(x=i[2087]&Ia(C),i[2087]=x):(i[F+12>>2]=R,i[R+8>>2]=F);else{if(T=i[24+E>>2],(0|E)!=(0|(C=i[12+E>>2])))F=i[8+E>>2],i[F+12>>2]=C,i[C+8>>2]=F;else if(F=(F=i[(R=20+E|0)>>2])||i[(R=16+E|0)>>2]){for(;b=R,(F=i[(R=(C=F)+20|0)>>2])||(R=C+16|0,F=i[C+16>>2]););i[b>>2]=0}else C=0;if(T){R=i[28+E>>2];r:{if(i[(F=8652+(R<<2)|0)>>2]==(0|E)){if(i[F>>2]=C)break r;x=i[2088]&Ia(R),i[2088]=x;break n}if(!(i[T+(i[T+16>>2]==(0|E)?16:20)>>2]=C))break n}i[C+24>>2]=T,(F=i[16+E>>2])&&(i[C+16>>2]=F,i[F+24>>2]=C),(F=i[20+E>>2])&&(i[C+20>>2]=F,i[F+24>>2]=C)}}if(i[w+4>>2]=1|v,i[v+w>>2]=v,i[2092]!=(0|w))break e;return i[2089]=v}i[4+E>>2]=-2&C,i[w+4>>2]=1|v,i[v+w>>2]=v}if(v>>>0<=255)return C=8388+((v>>>=3)<<3)|0,v=(F=i[2087])&(v=1<<v)?i[C+8>>2]:(i[2087]=v|F,C),i[C+8>>2]=w,i[v+12>>2]=w,i[w+12>>2]=C,i[w+8>>2]=v;i[w+16>>2]=0,F=i[w+20>>2]=0,(R=v>>>8)&&(F=31,16777215<v>>>0||(F=R,F=28+((F=((F=(F<<=R=R+1048320>>>16&8)<<(T=F+520192>>>16&4))<<(b=F+245760>>>16&2)>>>15)-(b|R|T)|0)<<1|v>>>F+21&1)|0)),b=8652+((i[(C=w)+28>>2]=F)<<2)|0;e:if((R=i[2088])&(C=1<<F)){R=v<<((0|F)==31?0:25-(F>>>1)|0),C=i[b>>2];n:{for(;;){if((-8&i[(F=C)+4>>2])==(0|v))break n;if(C=R>>>29,R<<=1,!(C=i[16+(b=F+(4&C)|0)>>2]))break}i[b+16>>2]=w,i[w+12>>2]=w,i[w+24>>2]=F,i[w+8>>2]=w;break e}v=i[F+8>>2],i[v+12>>2]=w,i[F+8>>2]=w,i[w+24>>2]=0,i[w+12>>2]=F,i[w+8>>2]=v}else i[2088]=C|R,i[b>>2]=w,i[w+12>>2]=w,i[w+24>>2]=b,i[w+8>>2]=w;if(v=i[2095]+-1|0,!(i[2095]=v)){for(w=8804;w=(v=i[w>>2])+8|0,v;);i[2095]=-1}}}}function im(v){var E,F=0,C=0,w=0,R=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0;Re=E=Re-16|0;t:{e:{n:{r:{a:{i:{o:{d:{f:{l:{s:{if(v>>>0<=244){if(3&(F=(b=i[2087])>>>(v=(T=v>>>0<11?16:v+11&-8)>>>3))){v=(F=i[8396+(R=(C=v+(1&(-1^F))|0)<<3)>>2])+8|0,(0|(w=i[F+8>>2]))==(0|(R=R+8388|0))?(U=Ia(C)&b,i[2087]=U):(i[w+12>>2]=R,i[R+8>>2]=w),i[F+4>>2]=3|(C<<=3),i[4+(F=F+C|0)>>2]=1|i[F+4>>2];break t}if(T>>>0<=(I=i[2089])>>>0)break s;if(F){C=F=(v=(0-(v=(0-(C=2<<v)|C)&F<<v)&v)-1|0)>>>12&16,F=i[8396+(w=(C=((C=(C|=F=(v>>>=F)>>>5&8)|(F=(v>>>=F)>>>2&4)|(F=(v>>>=F)>>>1&2))|(F=(v>>>=F)>>>1&1))+(v>>>F)|0)<<3)>>2],(0|(v=i[F+8>>2]))==(0|(w=w+8388|0))?(b=Ia(C)&b,i[2087]=b):(i[v+12>>2]=w,i[w+8>>2]=v),v=F+8|0,i[F+4>>2]=3|T,i[4+(x=F+T|0)>>2]=1|(R=(C<<=3)-T|0),i[F+C>>2]=R,I&&(F=8388+((C=I>>>3)<<3)|0,w=i[2092],C=(C=1<<C)&b?i[F+8>>2]:(i[2087]=C|b,F),i[F+8>>2]=w,i[C+12>>2]=w,i[w+12>>2]=F,i[w+8>>2]=C),i[2092]=x,i[2089]=R;break t}if(!(D=i[2088]))break s;for(C=F=(v=(D&0-D)-1|0)>>>12&16,F=i[8652+(((C=(C|=F=(v>>>=F)>>>5&8)|(F=(v>>>=F)>>>2&4)|(F=(v>>>=F)>>>1&2))|(F=(v>>>=F)>>>1&1))+(v>>>F)<<2)>>2],w=(-8&i[F+4>>2])-T|0,C=F;v=(v=i[C+16>>2])||i[C+20>>2];)w=(C=(R=(-8&i[v+4>>2])-T|0)>>>0<w>>>0)?R:w,F=C?v:F,C=v;if(M=i[F+24>>2],(0|(R=i[F+12>>2]))!=(0|F)){v=i[F+8>>2],i[v+12>>2]=R,i[R+8>>2]=v;break e}if(!(v=i[(C=F+20|0)>>2])){if(!(v=i[F+16>>2]))break l;C=F+16|0}for(;x=C,(v=i[(C=(R=v)+20|0)>>2])||(C=R+16|0,v=i[R+16>>2]););i[x>>2]=0;break e}if(T=-1,!(4294967231<v>>>0)&&(T=-8&(F=v+11|0),I=i[2088])){C=0-T|0,b=0,(F>>>=8)&&(b=31,16777215<T>>>0||(b=28+((v=((b=(F<<=w=F+1048320>>>16&8)<<(v=F+520192>>>16&4))<<(F=b+245760>>>16&2)>>>15)-(F|v|w)|0)<<1|T>>>v+21&1)|0));h:{p:{if(w=i[8652+(b<<2)>>2])for(F=T<<((0|b)==31?0:25-(b>>>1)|0),v=0;;){if(!(C>>>0<=(x=(-8&i[w+4>>2])-T|0)>>>0||(R=w,C=x))){C=0,v=w;break p}if(x=i[w+20>>2],w=i[16+((F>>>29&4)+w|0)>>2],v=x&&(0|x)!=(0|w)?x:v,F<<=(0|w)!=0,!w)break}else v=0;if(!(v|R)){if(!(v=(0-(v=2<<b)|v)&I))break s;w=F=(v=(v&0-v)-1|0)>>>12&16,v=i[8652+(((w=(w|=F=(v>>>=F)>>>5&8)|(F=(v>>>=F)>>>2&4)|(F=(v>>>=F)>>>1&2))|(F=(v>>>=F)>>>1&1))+(v>>>F)<<2)>>2]}if(!v)break h}for(;C=(F=(w=(-8&i[v+4>>2])-T|0)>>>0<C>>>0)?w:C,R=F?v:R,v=(F=i[v+16>>2])||i[v+20>>2];);}if(!(!R|C>>>0>=i[2089]-T>>>0)){if(x=i[R+24>>2],(0|R)!=(0|(F=i[R+12>>2]))){v=i[R+8>>2],i[v+12>>2]=F,i[F+8>>2]=v;break n}if(!(v=i[(w=R+20|0)>>2])){if(!(v=i[R+16>>2]))break f;w=R+16|0}for(;b=w,(v=i[(w=(F=v)+20|0)>>2])||(w=F+16|0,v=i[F+16>>2]););i[b>>2]=0;break n}}}if(T>>>0<=(F=i[2089])>>>0){v=i[2092],16<=(C=F-T|0)>>>0?(i[2089]=C,i[2092]=w=v+T|0,i[w+4>>2]=1|C,i[v+F>>2]=C,i[v+4>>2]=3|T):(i[2092]=0,i[2089]=0,i[v+4>>2]=3|F,i[4+(F=v+F|0)>>2]=1|i[F+4>>2]),v=v+8|0;break t}if(T>>>0<(w=i[2090])>>>0){i[2090]=F=w-T|0,v=i[2093],i[2093]=C=v+T|0,i[C+4>>2]=1|F,i[v+4>>2]=3|T,v=v+8|0;break t}if((C=(b=(C=R=T+47|(v=0))+(F=i[2205]?i[2207]:(i[2208]=-1,i[2209]=-1,i[2206]=4096,i[2207]=4096,i[2205]=12+E&-16^1431655768,i[2210]=0,i[2198]=0,4096))|0)&(x=0-F|0))>>>0<=T>>>0||(F=i[2197])&&(M=(I=i[2195])+C|0)>>>0<=I>>>0|F>>>0<M>>>0)break t;if(4&Mt[8792])break i;s:{h:{if(F=i[2093])for(v=8796;;){if((I=i[v>>2])+i[v+4>>2]>>>0>F>>>0&&I>>>0<=F>>>0)break h;if(!(v=i[v+8>>2]))break}if((0|(F=sl(0)))==-1||(b=C,(b=(w=(v=i[2206])+-1|0)&F?(C-F|0)+(F+w&0-v)|0:b)>>>0<=T>>>0|2147483646<b>>>0)||(v=i[2197])&&(x=(w=i[2195])+b|0)>>>0<=w>>>0|v>>>0<x>>>0)break o;if((0|F)!=(0|(v=sl(b))))break s;break a}if(2147483646<(b=x&b-w)>>>0)break o;if((0|(F=sl(b)))==(i[v>>2]+i[v+4>>2]|0))break d;v=F}if(!(T+48>>>0<=b>>>0|2147483646<b>>>0|(0|(F=v))==-1)){if(2147483646<(v=(v=i[2207])+(R-b|0)&0-v)>>>0)break a;if((0|sl(v))!=-1){b=v+b|0;break a}sl(0-b|0);break o}if((0|F)!=-1)break a;break o}R=0;break e}F=0;break n}if((0|F)!=-1)break a}i[2198]=4|i[2198]}if(2147483646<C>>>0||(F=sl(C),(v=sl(0))>>>0<=F>>>0|(0|F)==-1|(0|v)==-1)||(b=v-F|0)>>>0<=T+40>>>0)break r}v=i[2195]+b|0,(i[2195]=v)>>>0>Jn[2196]&&(i[2196]=v);a:{i:{o:{if(C=i[2093]){for(v=8796;;){if(((w=i[v>>2])+(R=i[v+4>>2])|0)==(0|F))break o;if(!(v=i[v+8>>2]))break}break i}for((v=i[2091])>>>0<=F>>>0&&v||(i[2091]=F),v=0,i[2200]=b,i[2199]=F,i[2095]=-1,i[2096]=i[2205],i[2202]=0;i[8396+(C=v<<3)>>2]=w=C+8388|0,i[C+8400>>2]=w,(0|(v=v+1|0))!=32;);i[2090]=w=(v=b+-40|0)-(C=F+8&7?-8-F&7:0)|0,i[2093]=C=F+C|0,i[C+4>>2]=1|w,i[4+(v+F|0)>>2]=40,i[2094]=i[2209];break a}if(!(8&Mt[v+12|0]|F>>>0<=C>>>0|C>>>0<w>>>0)){i[v+4>>2]=R+b,i[2093]=F=(v=C+8&7?-8-C&7:0)+C|0,w=i[2090]+b|0,i[2090]=v=w-v|0,i[F+4>>2]=1|v,i[4+(C+w|0)>>2]=40,i[2094]=i[2209];break a}}F>>>0<(R=i[2091])>>>0&&(i[2091]=F,R=0),w=F+b|0,v=8796;i:{o:{d:{f:{l:{s:{for(;(0|w)!=i[v>>2];)if(!(v=i[v+8>>2]))break s;if(!(8&Mt[v+12|0]))break l}for(v=8796;;){if((w=i[v>>2])>>>0<=C>>>0&&C>>>0<(R=w+i[v+4>>2]|0)>>>0)break f;v=i[v+8>>2]}}if(i[v>>2]=F,i[v+4>>2]=i[v+4>>2]+b,i[4+(M=(F+8&7?-8-F&7:0)+F|0)>>2]=3|T,v=((F=w+(w+8&7?-8-w&7:0)|0)-M|0)-T|0,x=T+M|0,(0|F)==(0|C)){i[2093]=x,v=i[2090]+v|0,i[2090]=v,i[x+4>>2]=1|v;break o}if(i[2092]==(0|F)){i[2092]=x,v=i[2089]+v|0,i[2089]=v,i[x+4>>2]=1|v,i[v+x>>2]=v;break o}if((3&(C=i[F+4>>2]))==1){D=-8&C;l:if(C>>>0<=255)R=C>>>3,C=i[F+8>>2],(0|(w=i[F+12>>2]))==(0|C)?(U=i[2087]&Ia(R),i[2087]=U):(i[C+12>>2]=w,i[w+8>>2]=C);else{if(I=i[F+24>>2],(0|(b=i[F+12>>2]))!=(0|F))C=i[F+8>>2],i[C+12>>2]=b,i[b+8>>2]=C;else if(T=(T=i[(w=F+20|0)>>2])||i[(w=F+16|0)>>2]){for(;C=w,(T=i[(w=(b=T)+20|0)>>2])||(w=b+16|0,T=i[b+16>>2]););i[C>>2]=0}else b=0;if(I){C=i[F+28>>2];s:{if(i[(w=8652+(C<<2)|0)>>2]==(0|F)){if(i[w>>2]=b)break s;U=i[2088]&Ia(C),i[2088]=U;break l}if(!(i[I+(i[I+16>>2]==(0|F)?16:20)>>2]=b))break l}i[b+24>>2]=I,(C=i[F+16>>2])&&(i[b+16>>2]=C,i[C+24>>2]=b),(C=i[F+20>>2])&&(i[b+20>>2]=C,i[C+24>>2]=b)}}F=F+D|0,v=v+D|0}if(i[F+4>>2]=-2&i[F+4>>2],i[x+4>>2]=1|v,(i[v+x>>2]=v)>>>0<=255){v=8388+((F=v>>>3)<<3)|0,F=(C=i[2087])&(F=1<<F)?i[v+8>>2]:(i[2087]=F|C,v),i[v+8>>2]=x,i[F+12>>2]=x,i[x+12>>2]=v,i[x+8>>2]=F;break o}if(F=0,(w=v>>>8)&&(F=31,16777215<v>>>0||(F=28+((F=((T=(w<<=R=w+1048320>>>16&8)<<(F=w+520192>>>16&4))<<(w=T+245760>>>16&2)>>>15)-(w|F|R)|0)<<1|v>>>F+21&1)|0)),i[(C=x)+28>>2]=F,i[x+16>>2]=0,C=8652+(F<<2)|(i[x+20>>2]=0),(w=i[2088])&(R=1<<F)){for(w=v<<((0|F)==31?0:25-(F>>>1)|0),F=i[C>>2];;){if((-8&i[(C=F)+4>>2])==(0|v))break d;if(F=w>>>29,w<<=1,!(F=i[16+(R=(4&F)+C|0)>>2]))break}i[R+16>>2]=x}else i[2088]=w|R,i[C>>2]=x;i[x+24>>2]=C,i[x+12>>2]=x,i[x+8>>2]=x;break o}for(i[2090]=x=(v=b+-40|0)-(w=F+8&7?-8-F&7:0)|0,i[2093]=w=F+w|0,i[w+4>>2]=1|x,i[4+(v+F|0)>>2]=40,i[2094]=i[2209],i[(w=(v=(R+(R+-39&7?39-R&7:0)|0)-47|0)>>>0<C+16>>>0?C:v)+4>>2]=27,v=i[2202],i[w+16>>2]=i[2201],i[w+20>>2]=v,v=i[2200],i[w+8>>2]=i[2199],i[w+12>>2]=v,i[2201]=w+8,i[2200]=b,i[2199]=F,v=w+24|(i[2202]=0);i[v+4>>2]=7,F=v+8|0,v=v+4|0,F>>>0<R>>>0;);if((0|C)==(0|w))break a;if(i[w+4>>2]=-2&i[w+4>>2],i[C+4>>2]=1|(R=w-C|0),(i[w>>2]=R)>>>0<=255){v=8388+((F=R>>>3)<<3)|0,F=(w=i[2087])&(F=1<<F)?i[v+8>>2]:(i[2087]=F|w,v),i[v+8>>2]=C,i[F+12>>2]=C,i[C+12>>2]=v,i[C+8>>2]=F;break a}if(i[C+16>>2]=0,v=i[C+20>>2]=0,(w=R>>>8)&&(v=31,16777215<R>>>0||(v=28+((v=((x=(w<<=b=w+1048320>>>16&8)<<(v=w+520192>>>16&4))<<(w=x+245760>>>16&2)>>>15)-(w|v|b)|0)<<1|R>>>v+21&1)|0)),F=8652+((i[(F=C)+28>>2]=v)<<2)|0,(w=i[2088])&(b=1<<v)){for(v=R<<((0|v)==31?0:25-(v>>>1)|0),F=i[F>>2];;){if((0|R)==(-8&i[(w=F)+4>>2]))break i;if(F=v>>>29,v<<=1,!(F=i[16+(b=w+(4&F)|0)>>2]))break}i[b+16>>2]=C,i[C+24>>2]=w}else i[2088]=w|b,i[F>>2]=C,i[C+24>>2]=F;i[C+12>>2]=C,i[C+8>>2]=C;break a}v=i[C+8>>2],i[v+12>>2]=x,i[C+8>>2]=x,i[x+24>>2]=0,i[x+12>>2]=C,i[x+8>>2]=v}v=M+8|0;break t}v=i[w+8>>2],i[v+12>>2]=C,i[w+8>>2]=C,i[C+24>>2]=0,i[C+12>>2]=w,i[C+8>>2]=v}if(!((v=i[2090])>>>0<=T>>>0)){i[2090]=F=v-T|0,v=i[2093],i[2093]=C=v+T|0,i[C+4>>2]=1|F,i[v+4>>2]=3|T,v=v+8|0;break t}}i[2086]=48,v=0;break t}n:if(x){v=i[R+28>>2];r:{if(i[(w=8652+(v<<2)|0)>>2]==(0|R)){if(i[w>>2]=F)break r;I=Ia(v)&I,i[2088]=I;break n}if(!(i[x+(i[x+16>>2]==(0|R)?16:20)>>2]=F))break n}i[F+24>>2]=x,(v=i[R+16>>2])&&(i[F+16>>2]=v,i[v+24>>2]=F),(v=i[R+20>>2])&&(i[F+20>>2]=v,i[v+24>>2]=F)}n:if(C>>>0<=15)i[R+4>>2]=3|(v=C+T|0),i[4+(v=v+R|0)>>2]=1|i[v+4>>2];else if(i[R+4>>2]=3|T,i[4+(w=R+T|0)>>2]=1|C,(i[C+w>>2]=C)>>>0<=255)v=8388+((F=C>>>3)<<3)|0,F=(C=i[2087])&(F=1<<F)?i[v+8>>2]:(i[2087]=F|C,v),i[v+8>>2]=w,i[F+12>>2]=w,i[w+12>>2]=v,i[w+8>>2]=F;else{v=0,(T=C>>>8)&&(v=31,16777215<C>>>0||(v=28+((v=((x=(T<<=b=T+1048320>>>16&8)<<(v=T+520192>>>16&4))<<(T=x+245760>>>16&2)>>>15)-(T|v|b)|0)<<1|C>>>v+21&1)|0)),i[(F=w)+28>>2]=v,i[w+16>>2]=0,F=8652+(v<<2)|(i[w+20>>2]=0);r:{if((T=1<<v)&I){for(v=C<<((0|v)==31?0:25-(v>>>1)|0),T=i[F>>2];;){if((-8&i[(F=T)+4>>2])==(0|C))break r;if(T=v>>>29,v<<=1,!(T=i[16+(b=(4&T)+F|0)>>2]))break}i[b+16>>2]=w}else i[2088]=T|I,i[F>>2]=w;i[w+24>>2]=F,i[w+12>>2]=w,i[w+8>>2]=w;break n}v=i[F+8>>2],i[v+12>>2]=w,i[F+8>>2]=w,i[w+24>>2]=0,i[w+12>>2]=F,i[w+8>>2]=v}v=R+8|0;break t}e:if(M){v=i[F+28>>2];n:{if(i[(C=8652+(v<<2)|0)>>2]==(0|F)){if(i[C>>2]=R)break n;U=Ia(v)&D,i[2088]=U;break e}if(!(i[M+(i[M+16>>2]==(0|F)?16:20)>>2]=R))break e}i[R+24>>2]=M,(v=i[F+16>>2])&&(i[R+16>>2]=v,i[v+24>>2]=R),(v=i[F+20>>2])&&(i[R+20>>2]=v,i[v+24>>2]=R)}w>>>0<=15?(i[F+4>>2]=3|(v=w+T|0),i[4+(v=v+F|0)>>2]=1|i[v+4>>2]):(i[F+4>>2]=3|T,i[4+(T=F+T|0)>>2]=1|w,i[w+T>>2]=w,I&&(v=8388+((C=I>>>3)<<3)|0,R=i[2092],C=(C=1<<C)&b?i[v+8>>2]:(i[2087]=C|b,v),i[v+8>>2]=R,i[C+12>>2]=R,i[R+12>>2]=v,i[R+8>>2]=C),i[2092]=T,i[2089]=w),v=F+8|0}return Re=16+E|0,v}function sm(v,E,F,C,w,R,b){var T,x,I,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0;i[76+(Re=I=Re-80|0)>>2]=E,x=55+I|0,T=56+I|0,E=0;t:{e:{n:for(;;){(0|Se)<0||(Se=(2147483647-Se|0)<(0|E)?(i[2086]=61,-1):E+Se|0);r:{a:{i:{o:{d:{f:{l:{s:{h:{p:{g:{y:{v:{if(z=i[76+I>>2],U=Mt[0|(E=z)]){for(;;){b:{_:{u:if(M=255&U){if((0|M)!=37)break _;for(U=E;;){if(Mt[E+1|0]!=37)break u;if(i[76+I>>2]=M=E+2|0,U=U+1|0,D=Mt[E+2|0],E=M,(0|D)!=37)break}}else U=E;if(E=U-z|0,v&&Tt(v,z,E),E)continue n;Le=-1,q=!Zc(Ct[i[76+(M=I)>>2]+(U=1)|0]),E=i[76+I>>2],q|Mt[E+2|0]!=36||(Le=Ct[E+1|0]+-48|0,Xe=1,U=3),i[M+76>>2]=E=U+E|0;u:if(31<(D=(le=Ct[(U=0)|E])+-32|0)>>>0)M=E;else if(M=E,75913&(D=1<<D))for(;;){if(i[76+I>>2]=M=E+1|0,U|=D,31<(D=(le=Ct[E+1|0])+-32|0)>>>0)break u;if(E=M,!(75913&(D=1<<D)))break}if((0|le)==42){if(q=I,Zc(Ct[M+1|0])&&(E=i[76+I>>2],Mt[E+2|0]==36))i[((Ct[E+1|0]<<2)+w|0)-192>>2]=10,fe=i[((Ct[E+1|0]<<3)+C|0)-384>>2],Xe=1,E=E+3|0;else{if(Xe)break e;fe=Xe=0,v&&(E=i[F>>2],i[F>>2]=E+4,fe=i[E>>2]),E=i[76+I>>2]+1|0}i[q+76>>2]=E,-1<(0|fe)||(fe=0-fe|0,U|=8192)}else{if((0|(fe=Qw(76+I|0)))<0)break e;E=i[76+I>>2]}if(D=-1,Mt[0|E]==46)if(Mt[E+1|0]==42)if(Zc(Ct[E+2|0])&&(E=i[76+I>>2],Mt[E+3|0]==36))i[((Ct[E+2|0]<<2)+w|0)-192>>2]=10,D=i[((Ct[E+2|0]<<3)+C|0)-384>>2],i[76+I>>2]=E=E+4|0;else{if(Xe)break e;D=v?(E=i[F>>2],i[F>>2]=E+4,i[E>>2]):0,E=i[76+I>>2]+2|0,i[76+I>>2]=E}else i[76+I>>2]=E+1,D=Qw(76+I|0),E=i[76+I>>2];for(M=0;;){if(ft=M,oe=-1,57<Ct[0|E]+-65>>>0)break t;if(i[76+I>>2]=le=E+1|0,M=Ct[0|E],E=le,!((M=Mt[3295+(M+Ze(ft,58)|0)|0])+-1>>>0<8))break}if(!M)break t;u:{c:{m:{if((0|M)==19){if((0|Le)<=-1)break m;break t}if((0|Le)<0)break c;i[(Le<<2)+w>>2]=M,M=i[4+(E=(Le<<3)+C|0)>>2],i[64+I>>2]=i[E>>2],i[68+I>>2]=M}if(E=0,v)break u;continue n}if(!v)break r;qw(64+I|0,M,F,b),le=i[76+I>>2]}if(q=-65537&U,U=8192&U?q:U,Le=3336,M=T,E=Ct[le+-1|(oe=0)],(le=(E=ft&&(15&E)==3?-33&E:E)+-88|0)>>>0<=32)break b;u:{c:{m:{w:{if(6<(q=E+-65|0)>>>0){if((0|E)!=83)break a;if(!D)break w;M=i[64+I>>2];break c}switch(q-1|0){case 1:break m;case 0:case 2:break a;default:break v}}Vt(v,32,fe,E=0,U);break u}i[12+I>>2]=0,i[8+I>>2]=i[64+I>>2],i[64+I>>2]=8+I,D=-1,M=8+I|0}E=0;c:{for(;;){if(!(z=i[M>>2]))break c;if((q=(0|(z=Yw(4+I|0,z)))<0)|D-E>>>0<z>>>0)break;if(M=M+4|0,!((E=E+z|0)>>>0<D>>>0))break c}if(oe=-1,q)break t}if(Vt(v,32,fe,E,U),E)for(D=0,M=i[64+I>>2];;){if(!(z=i[M>>2])||(0|E)<(0|(D=(z=Yw(4+I|0,z))+D|0)))break u;if(Tt(v,4+I|0,z),M=M+4|0,!(D>>>0<E>>>0))break}else E=0}Vt(v,32,fe,E,8192^U),E=(0|E)<(0|fe)?fe:E;continue n}i[76+I>>2]=M=E+1|0,U=Mt[E+1|0],E=M;continue}break}switch(le-1|0){case 28:break d;case 21:break f;case 23:break s;case 22:break h;case 11:case 16:break p;case 10:break g;case 26:break y;case 8:case 12:case 13:case 14:break v;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 9:case 15:case 17:case 18:case 19:case 20:case 24:case 25:case 27:case 29:case 30:break a;default:break l}}if(oe=Se,v)break t;if(!Xe)break r;for(E=1;;){if(v=i[(E<<2)+w>>2]){if(qw((E<<3)+C|0,v,F,b),(0|(E=E+(oe=1)|0))!=10)continue;break t}break}if(oe=1,9<E>>>0||(oe=-1,i[(E<<2)+w>>2]))break t;for(;!i[((E=E+1|0)<<2)+w>>2]&&(0|E)!=10;);oe=E>>>0<10?-1:1;break t}E=0|At[R](v,En[64+I>>3],fe,D,U,E);continue}M=(E=tS(z=(E=i[64+I>>2])||3346,D))||D+z|0,U=q,D=E?E-z|0:D;break a}Ct[55+I|0]=i[64+I>>2],D=1,z=x,U=q;break a}if(E=q=i[68+I>>2],z=i[64+I>>2],(0|E)<-1||(0|E)<=-1&&!(4294967295<z>>>0)){E=0-(E+(0<z>>>0)|0)|0,i[64+I>>2]=z=0-z|0,i[68+I>>2]=E,oe=1,Le=3336;break o}if(2048&U){oe=1,Le=3337;break o}Le=(oe=1&U)?3338:3336;break o}if(z=function(wt,Dt,qt){if(wt|Dt)for(;Ct[0|(qt=qt+-1|0)]=7&wt|48,(wt=(7&Dt)<<29|wt>>>3)|(Dt>>>=3););return qt}(i[64+I>>2],i[68+I>>2],T),!(8&U))break i;D=(0|(E=T-z|0))<(0|D)?D:E+1|0;break i}D=8<D>>>0?D:8,U|=8,E=120}if(z=function(wt,Dt,qt,gn){if(wt|Dt)for(;Ct[0|(qt=qt+-1|0)]=Mt[3824+(15&wt)|0]|gn,(wt=(15&Dt)<<28|wt>>>4)|(Dt>>>=4););return qt}(i[64+I>>2],i[68+I>>2],T,32&E),!(8&U)|!(i[64+I>>2]|i[68+I>>2]))break i;Le=3336+(E>>>4)|0,oe=2;break i}if(7<(M=255&ft)>>>(E=0))continue;switch(M-1|0){default:case 0:i[i[64+I>>2]>>2]=Se;continue;case 1:M=i[64+I>>2],i[M>>2]=Se,i[M+4>>2]=Se>>31;continue;case 2:aa[i[64+I>>2]>>1]=Se;continue;case 3:Ct[i[64+I>>2]]=Se;continue;case 5:i[i[64+I>>2]>>2]=Se;continue;case 4:continue;case 6:}M=i[64+I>>2],i[M>>2]=Se,i[M+4>>2]=Se>>31;continue}z=i[64+I>>2],E=i[68+I>>2],Le=3336}z=gu(z,E,T)}U=-1<(0|D)?-65537&U:U,D=!!((q=E=i[68+I>>2])|(le=i[64+I>>2]))|D?(0|(E=!(q|le)+(T-z|0)|0))<(0|D)?D:E:(z=T,0)}Vt(v,32,E=(0|fe)<(0|(M=(D=(0|D)<(0|(q=M-z|0))?q:D)+oe|0))?M:fe,M,U),Tt(v,Le,oe),Vt(v,48,E,M,65536^U),Vt(v,48,D,q,0),Tt(v,z,q),Vt(v,32,E,M,8192^U);continue}break}oe=0;break t}oe=-1}return Re=80+I|0,oe}function lm(v){var E,F=0,R=0,w=0,C=0,w=4,R=1439;t:if(F=Mt[0|v]){for(;!((0|(E=Mt[0|R]))!=(0|F)||!(w=w+-1|0)|!E);)if(R=R+1|0,F=Mt[v+1|0],v=v+1|0,!F)break t;C=F}return(255&C)-Mt[0|R]|0}function um(v,E,F){var C,w,R=0,b=0,T=0;i[(Re=w=Re-240|0)>>2]=v,b=1;t:if(!((0|E)<2))for(R=v;;){if(R=(C=R+-4|0)-i[((T=E+-2|0)<<2)+F>>2]|0,0<=(0|At[5](v,R))&&-1<(0|At[5](v,C))||(v=(b<<2)+w|0,0<=(0|At[5](R,C))?(i[v>>2]=R,T=E+-1|0):R=i[v>>2]=C,b=b+1|0,(0|T)<2))break t;v=i[w>>2],E=T}rS(w,b),Re=240+w|0}function Bw(v){var E,F,C=0;if(O(0),function(w){var R,b;i[w+428>>2]&&(b=i[w+332>>2],pn(i[w+460>>2],i[w+436>>2],R=b<<2),pn(i[w+464>>2],i[w+440>>2],R),pn(i[w+468>>2],i[w+448>>2],R),Mt[i[w>>2]+4|0]<4||(pn(i[w+472>>2],i[w+452>>2],R=b<<4),pn(i[w+476>>2],i[w+456>>2],R)))}(v),function(w){var R,b,T,x=0,I=O(0),M=O(0),D=0,U=O(0);if(O(0),O(0),1<=(0|(D=i[w>>2])))for(T=(x=i[w+4>>2])+Ze(D,52)|0,w=i[w+12>>2];I=re[w>>2],re[x+44>>2]!=(I=(R=i[x+16>>2])?(M=I,I=re[x+4>>2],U=re[x+12>>2],M=O(O(M-I)/U),b=O(qn(M)),D=O(nt(b))<O(2147483648)?~~b:-2147483648,O(I+O(U*O(M-O(0|D))))):(U=re[x+4>>2],M=re[x+8>>2],I<U?U:M<I?M:I))?(re[x+44>>2]=I,i[x+48>>2]=1):i[x+48>>2]=0,R||(re[w>>2]=I),w=w+4|0,(x=x+52|0)>>>0<T>>>0;);}(v+540|0),function(w){var R,b,T,x,I,M,D=0,U=0,z=O(0),q=0,oe=O(0),le=(O(0),O(0),0),fe=O(0),Se=0,Le=0,Xe=0;if(O(0),1<=(0|(q=i[w+540>>2])))for(I=(le=i[w+544>>2])+Ze(q,52)|0,M=i[w+644>>2];;){t:if(!(i[le>>2]||(0|(q=i[le+32>>2]))<1))if(T=(w=i[le+28>>2])+Ze(q,28)|0,x=re[le+24>>2],b=re[le+20>>2],R=re[le+44>>2],M)for(;;){fe=O(Le=0);e:{n:{r:{if((0|(U=i[w>>2]))<1)D=q=0;else if(Se=i[w+4>>2],oe=re[Se>>2],z=O(oe-b),(0|U)==1)q=R<O(b+oe)^1|z<R^1,D=0;else{if(R<z){q=1,D=0;break n}if(q=0,R<O(b+oe))D=0;else{if(D=1,z=re[Se+4>>2],!(R<O(b+z)))for(;;){if((0|U)==(0|(D=D+1|0)))break r;if(oe=z,z=re[Se+(D<<2)>>2],R<O(b+z))break}O(z-b)<R||(D=D+-1|0,(z=O(z-oe))<x)||(fe=O(O(R-oe)/z))}}if(q)break n;if(Se=U=1,i[w+16>>2])break e;break n}D=U+-1|0,q=1}Se=(U=(oe=re[w+12>>2])!=fe)&(fe==O(0)|oe==O(0))|i[w+8>>2]!=(0|D),Le=q}if(i[w+20>>2]=Se,i[w+24>>2]=U,re[w+12>>2]=fe,i[w+16>>2]=Le,i[w+8>>2]=D,!((w=w+28|0)>>>0<T>>>0))break}else{if(!i[le+48>>2]){for(;;)if(i[w+20>>2]=0,!((w=w+28|(i[w+24>>2]=0))>>>0<T>>>0))break t}for(;;){fe=O(Le=0);e:{n:{r:{a:if(!(((U=0)|(D=i[(Se=w)>>2]))<1)){if(q=i[w+4>>2],oe=re[q>>2],z=O(oe-b),(0|D)!=1){if(!(R<z)){if(U=0,R<O(b+oe))break a;U=1;i:if(z=re[q+4>>2],!(R<O(b+z))){for(D=D+-1|0;oe=z,(0|D)!=(0|U);)if(z=re[q+((U=U+1|0)<<2)>>2],R<O(b+z))break i;q=1;break n}if(q=0,O(z-b)<R){D=U;break r}if(D=U+-1|0,(z=O(z-oe))<x)break r;fe=O(O(R-oe)/z);break r}q=1,D=0;break n}U=R<O(b+oe)^1|z<R^1}q=U,D=0}if(!q&&(Xe=U=1,i[w+16>>2]))break e}Le=q,Xe=(U=(oe=re[w+12>>2])!=fe)&(fe==O(0)|oe==O(0))|i[w+8>>2]!=(0|D)}if(i[Se+20>>2]=Xe,i[w+24>>2]=U,re[w+12>>2]=fe,i[w+16>>2]=Le,i[w+8>>2]=D,!((w=w+28|0)>>>0<T>>>0))break}}if(!((le=le+52|0)>>>0<I>>>0))break}}(v),function(w){var R,b,T,x,I,M=0,D=O(0),U=0,z=0,q=O(0),oe=0,le=O(0);if(O(0),!(Mt[i[w>>2]+4|0]<4||(0|(M=i[w+540>>2]))<1))for(x=(oe=i[w+544>>2])+Ze(M,52)|0,I=i[w+644>>2];;){t:if(i[oe>>2]==1&&!((0|(M=i[oe+40>>2]))<1))if(b=(w=i[oe+36>>2])+Ze(M,28)|0,R=re[oe+44>>2],I)for(;;){le=O(M=0);e:if(!((0|(z=i[w>>2]))<2||(U=i[w+4>>2],R<=(D=re[U>>2])))){M=1;n:if(!(R<(q=re[U+4>>2]))){for(;D=q,(0|z)!=(0|(M=M+1|0));)if(R<(q=re[U+(M<<2)>>2]))break n;M=z+-1|0;break e}le=O(O(R-D)/O(q-D)),M=M+-1|0}if(D=re[w+16>>2],re[w+16>>2]=le,z=i[w+12>>2],i[w+12>>2]=M,i[w+24>>2]=U=D!=le,i[w+20>>2]=U&(le==O(0)|D==O(0))|(0|M)!=(0|z),!((w=w+28|0)>>>0<b>>>0))break}else{if(!i[oe+48>>2]){for(;;)if(i[w+20>>2]=0,!((w=w+28|(i[w+24>>2]=0))>>>0<b>>>0))break t}for(;;){le=O(z=0);e:if(!((0|(T=i[w>>2]))<2||(U=i[w+4>>2],R<=(D=re[U>>2])))){if(M=1,!(R<(q=re[U+4>>2])))for(z=T+-1|0;;){if(D=q,(0|M)==(0|z))break e;if(R<(q=re[U+((M=M+1|0)<<2)>>2]))break}le=O(O(R-D)/O(q-D)),z=M+-1|0}if(D=re[w+16>>2],re[w+16>>2]=le,M=i[w+12>>2],i[w+12>>2]=z,i[w+24>>2]=U=D!=le,i[w+20>>2]=U&(le==O(0)|D==O(0))|(0|M)!=(0|z),!((w=w+28|0)>>>0<b>>>0))break}}if(!((oe=oe+52|0)>>>0<x>>>0))break}}(v),function(w){var R,b,T,x,I,M,D,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=O(0),Xe=0,ft=0,wt=0,Dt=0,qt=0;if(1<=(0|(z=i[w+564>>2])))for(M=(le=i[w+568>>2])+Ze(z,36)|0,x=i[w+644>>2];;){t:{if(!(fe=((q=oe=z=0)|(b=i[le+4>>2]))<1))for(Xe=i[le>>2],w=Dt=0;;){if(U=i[Xe+(w<<2)>>2],i[U+16>>2]){U=1,qt=0;break t}if(q=q||i[U+24>>2],z=z||i[U+20>>2],oe=(re[U+12>>2]!=O(0))+oe|0,(0|b)==(0|(w=w+1|0)))break}if(U=0,(Dt=x?1:q)|(qt=x?1:z)&&(i[le+12>>2]=Xe=1<<oe,(0|oe)!=31)){for(z=i[le+20>>2],I=i[le>>2],q=(w=i[le+16>>2])+(Se=Xe<<2)|0,q=Jo(w,0,4+((-1^w)+((w=w+4|0)>>>0<q>>>0?q:w)|0)&-4),Se=z+Se|0,w=z;i[w>>2]=1065353216,(w=w+4|0)>>>0<Se>>>0;);if(!fe){if(fe=0,Se=U=1,oe)for(;;){if(oe=i[(fe<<2)+I>>2],ft=i[oe+8>>2],wt=Ze(ft,U),(Le=re[oe+12>>2])!=O(w=0)){for(i[q>>2]=wt+i[q>>2],re[z>>2]=O(O(1)-Le)*re[z>>2],ft=Ze(ft+(w=1)|0,U);Le=re[oe+12>>2],D=i[(T=(R=w<<2)+q|0)>>2],i[T>>2]=D+((T=w&Se)?ft:wt),re[(R=z+R|0)>>2]=(T?Le:O(O(1)-Le))*re[R>>2],(0|Xe)!=(0|(w=w+1|0)););Se<<=1}else for(;i[(ft=q+(w<<2)|0)>>2]=wt+i[ft>>2],(0|Xe)!=(0|(w=w+1|0)););if(U=Ze(i[oe>>2],U),(0|b)==(0|(fe=fe+1|0)))break}else for(;;){if(oe=i[(fe<<2)+I>>2],Se=Ze(i[oe+8>>2],U),(Le=re[oe+12>>2])!=O(w=0))i[q>>2]=Se+i[q>>2],re[z>>2]=O(O(1)-Le)*re[z>>2];else for(;i[(wt=q+(w<<2)|0)>>2]=Se+i[wt>>2],(0|Xe)!=(0|(w=w+1|0)););if(U=Ze(i[oe>>2],U),(0|b)==(0|(fe=fe+1|0)))break}U=0}}}if(i[le+32>>2]=U,i[le+24>>2]=qt,i[le+28>>2]=Dt,!((le=le+36|0)>>>0<M>>>0))break}}(v),function(w){var R,b,T,x,I=O(0),M=0,D=0,U=0,z=0,q=0,oe=O(0),le=O(0),fe=O(0),Se=0,Le=0,Xe=0;if(!(Mt[i[w>>2]+4|0]<4||(0|(M=i[w+588>>2]))<1))for(x=(U=i[w+592>>2])+Ze(M,48)|0,R=i[w+644>>2];;){if(w=i[U>>2],(Le=R?1:i[w+20>>2])|(Xe=R?1:i[w+24>>2])){t:{e:{q=U,z=i[w+8>>2],M=i[w+12>>2],I=re[w+16>>2],w=(0|z)!=(0|M);n:{if(I!=O(0)){if(w=M+1|0,(0|M)==(0|z)){i[U+8>>2]=Le=1,I=O(O(1)-I),Xe=1;break n}w=(0|w)==(0|z)?1:2}if(i[q+8>>2]=w,!Xe)break e;w=M}re[U+24>>2]=I,re[U+20>>2]=O(1)-I;break t}Xe=0,w=M}Le?(i[U+12>>2]=w,i[U+16>>2]=w+1):Le=0}else Le=Xe=0;t:if((0|(b=i[U+36>>2]))<1)fe=O(1);else{if(T=i[U+40>>2],w=0,fe=O(1),!R)for(;;){e:{n:{if(M=i[(w<<2)+T>>2],D=i[M>>2]){if(!i[D+48>>2]){I=re[M+16>>2];break e}if((0|(z=i[M+12>>2]))<1){I=O(1),re[M+16>>2]=1;break e}if(Se=i[M+8>>2],(0|z)!=1&&(oe=re[D+44>>2],q=i[M+4>>2],!(oe<=(le=re[q>>2]))))break n;I=re[Se>>2],re[M+16>>2]=I;break e}i[M+16>>2]=1065353216,I=O(1);break e}D=1;n:if(!(oe<(I=re[q+4>>2]))){for(;le=I,(0|z)!=(0|(D=D+1|0));)if(oe<(I=re[q+(D<<2)>>2]))break n;I=re[(Se+(z<<2)|0)-4>>2],re[M+16>>2]=I;break e}q=M,I=O(O(oe-le)/O(I-le)),I=O(O(I*re[(M=Se+(D<<2)|0)>>2])+O(re[M+-4>>2]*O(O(1)-I))),re[q+16>>2]=I}if(fe=fe<I?fe:I,(0|b)==(0|(w=w+1|0)))break t}for(;;){M=i[(w<<2)+T>>2],D=i[M>>2],I=O(1);e:if(D&&(Se=i[M+12>>2],I=O(1),!((0|Se)<1))&&(z=i[M+8>>2],I=re[z>>2],(0|Se)!=1)){n:{if(oe=re[D+44>>2],q=i[M+4>>2],oe<=(le=re[q>>2])){I=re[z>>2];break e}if(D=1,!(oe<(I=re[q+4>>2]))){for(;le=I,(0|Se)!=(0|(D=D+1|0));)if(oe<(I=re[q+(D<<2)>>2]))break n;I=re[(z+(Se<<2)|0)-4>>2];break e}}I=O(O(oe-le)/O(I-le)),I=O(O(I*re[(D=z+(D<<2)|0)>>2])+O(re[D+-4>>2]*O(O(1)-I)))}if(fe=fe<(re[M+16>>2]=I)?fe:I,(0|b)==(0|(w=w+1|0)))break}}if(i[U+32>>2]=Xe,i[U+28>>2]=Le,re[U+44>>2]=fe,!((U=U+48|0)>>>0<x>>>0))break}}(v),1<=(0|(E=i[v+4>>2])))for(E=(C=i[v+52>>2])+(E<<2)|0;F=re[C>>2],re[C>>2]=F<O(0)?O(0):O(un(F,O(1))),(C=C+4|0)>>>0<E>>>0;);(function(w){var R,b,T,x=0,I=0;if(1<=(0|(I=i[w+4>>2])))for(T=(x=i[w+8>>2])+Ze(I,12)|0,w=R=i[w+40>>2];I=0,i[x+8>>2]&&(b=i[x+4>>2],!i[(b<<2)+R>>2]&&(0|b)!=-1||(I=!i[i[x>>2]+32>>2])),i[w>>2]=I,w=w+4|0,(x=x+12|0)>>>0<T>>>0;);})(v),function(w){var R,b,T,x,I,M,D,U=0,z=0,q=0,oe=0,le=0;if(1<=(0|(b=i[w+4>>2])))for(x=i[w+8>>2],T=i[w>>2],I=i[T+724>>2];;){if(R=i[Ze(oe,12)+x>>2],(i[R+28>>2]||i[R+24>>2])&&(i[(U=oe<<2)+i[w+28>>2]>>2]=i[R+12>>2],i[R+24>>2])&&!((0|(q=i[R+12>>2]))<1))for(q=(z=i[R+16>>2])+(q<<2)|0,M=i[U+I>>2],U=i[w+36>>2]+(le<<2)|0,D=i[T+976>>2];i[U>>2]=i[(i[z>>2]+M<<2)+D>>2],U=U+4|0,(z=z+4|0)>>>0<q>>>0;);if(i[R+28>>2]&&!((0|(U=i[R+12>>2]))<1))for(q=(z=i[R+20>>2])+(U<<2)|0,U=i[w+32>>2]+(le<<2)|0;i[U>>2]=i[z>>2],U=U+4|0,(z=z+4|0)>>>0<q>>>0;);if(le=i[R+8>>2]+le|0,(0|b)==(0|(oe=oe+1|0)))break}}(v),At[i[1808]](v+12|0,i[v+36>>2],i[v+44>>2],i[v+40>>2]),function(w){var R,b,T,x,I,M,D=0,U=0,z=0;if(1<=(0|(z=i[w+304>>2])))for(T=(D=i[w+308>>2])+(z<<5)|0,x=i[w+264>>2],I=i[w+144>>2],M=i[w+40>>2],z=b=i[w+312>>2];R=z,U=0,w=U=!i[D+28>>2]||(0|(w=i[D+4>>2]))!=-1&&(U=0,!i[(w<<2)+M>>2])||(0|(w=i[D+8>>2]))!=-1&&(U=0,!i[(w<<2)+b>>2])?U:!i[i[D>>2]+32>>2],i[R>>2]=w,(R=i[D+12>>2])>>>0<=1?R-1?i[(i[D+16>>2]<<2)+I>>2]=w:i[(i[D+16>>2]<<2)+x>>2]=w:Ve(4,1372,0),z=z+4|0,(D=D+32|0)>>>0<T>>>0;);}(v),function(w){var R,b,T,x,I,M,D,U,z,q=0,oe=0,le=0,fe=0,Bt=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0,gn=0,Cn=0,Bt=i[w>>2];if(1<=(0|(Xe=i[w+56>>2]))){for(ft=i[w+60>>2],wt=i[Bt+1052>>2],Dt=i[Bt+784>>2];;){if(q=i[ft+Ze(Se,24)>>2],(i[q+28>>2]||i[q+24>>2])&&(i[(oe=Se<<2)+i[w+80>>2]>>2]=i[q+12>>2],i[q+24>>2])&&!((0|(fe=i[q+12>>2]))<1))for(qt=(le=i[q+16>>2])+(fe<<2)|0,gn=i[oe+Dt>>2],oe=(fe=Le<<2)+i[w+92>>2]|0,fe=fe+i[w+88>>2]|0;Cn=gn+i[le>>2]<<2,i[oe>>2]=wt+(i[Cn+i[Bt+984>>2]>>2]<<2),i[fe>>2]=i[Cn+i[Bt+980>>2]>>2],fe=fe+4|0,oe=oe+4|0,(le=le+4|0)>>>0<qt>>>0;);if(i[q+28>>2]&&!((0|(oe=i[q+12>>2]))<1))for(fe=(le=i[q+20>>2])+(oe<<2)|0,oe=i[w+84>>2]+(Le<<2)|0;i[oe>>2]=i[le>>2],oe=oe+4|0,(le=le+4|0)>>>0<fe>>>0;);if(Le=i[q+8>>2]+Le|0,(0|Xe)==(0|(Se=Se+1|0)))break}Bt=i[w>>2]}if(!(Mt[Bt+4|0]<4||(0|(gn=i[w+56>>2]))<1))for(Cn=i[Bt+792>>2],R=i[w+60>>2],le=Le=0;;){if(Se=i[Ze(le,24)+R>>2],i[Se+24>>2]&&!((0|(q=i[Se+12>>2]))<1))for(b=(oe=i[Se+16>>2])+(q<<2)|0,T=i[Cn+(le<<2)>>2],fe=(q=Le<<2)+i[w+96>>2]|0,Xe=q+i[w+100>>2]|0,ft=q+i[w+104>>2]|0,wt=q+i[w+108>>2]|0,Dt=q+i[w+112>>2]|0,qt=q+i[w+116>>2]|0,x=i[Bt+1308>>2],I=i[Bt+1304>>2],M=i[Bt+1300>>2],D=i[Bt+1296>>2],U=i[Bt+1292>>2],z=i[Bt+1288>>2];q=i[oe>>2]+T<<2,i[fe>>2]=i[q+z>>2],i[Xe>>2]=i[q+U>>2],i[ft>>2]=i[q+D>>2],i[wt>>2]=i[q+M>>2],i[Dt>>2]=i[q+I>>2],i[qt>>2]=i[q+x>>2],qt=qt+4|0,Dt=Dt+4|0,wt=wt+4|0,ft=ft+4|0,Xe=Xe+4|0,fe=fe+4|0,(oe=oe+4|0)>>>0<b>>>0;);if(Le=i[Se+8>>2]+Le|0,(0|gn)==(0|(le=le+1|0)))break}}(v),function(w){var R=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0,gn=0,Cn=i[w+168>>2],Bt=i[w>>2];if(1<=(0|(fe=i[w+164>>2])))for(Le=i[Bt+816>>2];;){if(T=i[Ze(D,12)+Cn>>2],(i[T+28>>2]||i[T+24>>2])&&(i[(U=D<<2)+i[w+188>>2]>>2]=i[T+12>>2],i[T+24>>2])){if(b=i[T+16>>2],Se=i[U+Le>>2],1<=(0|(R=i[T+12>>2])))for(Xe=b+(R<<2)|0,x=(R=M<<2)+i[w+200>>2]|0,z=R+i[w+204>>2]|0,q=R+i[w+208>>2]|0,oe=R+i[w+212>>2]|0,le=R+i[w+196>>2]|0,ft=i[Bt+996>>2],wt=i[Bt+1012>>2],Dt=i[Bt+1008>>2],qt=i[Bt+1004>>2],gn=i[Bt+1e3>>2],R=b;I=Se+i[R>>2]<<2,i[x>>2]=i[I+gn>>2],i[z>>2]=i[I+qt>>2],i[q>>2]=i[I+Dt>>2],i[oe>>2]=i[I+wt>>2],i[le>>2]=i[I+ft>>2],le=le+4|0,oe=oe+4|0,q=q+4|0,z=z+4|0,x=x+4|0,(R=R+4|0)>>>0<Xe>>>0;);R=Se+i[b>>2]<<2,i[U+i[w+288>>2]>>2]=i[R+i[Bt+1016>>2]>>2],i[U+i[w+292>>2]>>2]=i[R+i[Bt+1020>>2]>>2]}if(i[T+28>>2]&&!((0|(b=i[T+12>>2]))<1))for(b=(R=i[T+20>>2])+(b<<2)|0,x=i[w+192>>2]+(M<<2)|0;i[x>>2]=i[R>>2],x=x+4|0,(R=R+4|0)>>>0<b>>>0;);if(M=i[T+8>>2]+M|0,(0|fe)==(0|(D=D+1|0)))break}if(!(Mt[Bt+4|0]<4||(0|(U=i[w+164>>2]))<1))for(Se=i[Bt+824>>2],M=T=0;;){if(I=i[Ze(M,12)+Cn>>2],i[I+24>>2]&&!((0|(R=i[I+12>>2]))<1))for(fe=(x=i[I+16>>2])+(R<<2)|0,Le=i[Se+(M<<2)>>2],z=(b=T<<2)+i[w+216>>2]|0,q=b+i[w+220>>2]|0,oe=b+i[w+224>>2]|0,le=b+i[w+228>>2]|0,R=b+i[w+232>>2]|0,D=b+i[w+236>>2]|0,Xe=i[Bt+1308>>2],ft=i[Bt+1304>>2],wt=i[Bt+1300>>2],Dt=i[Bt+1296>>2],qt=i[Bt+1292>>2],gn=i[Bt+1288>>2];b=Le+i[x>>2]<<2,i[z>>2]=i[b+gn>>2],i[q>>2]=i[b+qt>>2],i[oe>>2]=i[b+Dt>>2],i[le>>2]=i[b+wt>>2],i[R>>2]=i[b+ft>>2],i[D>>2]=i[b+Xe>>2],D=D+4|0,R=R+4|0,le=le+4|0,oe=oe+4|0,q=q+4|0,z=z+4|0,(x=x+4|0)>>>0<fe>>>0;);if(T=i[I+8>>2]+T|0,(0|U)==(0|(M=M+1|0)))break}}(v),function(w){var R,z=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=w- -64|0;if(At[i[1807]](z,i[w+88>>2],i[w+148>>2],i[w+144>>2]),At[i[1809]](z,i[w+92>>2],i[w+152>>2],i[i[w>>2]+796>>2],2,i[w+144>>2]),!(Mt[i[w>>2]+4|0]<4||(At[i[1807]](z,i[w+96>>2],i[w+120>>2],i[w+144>>2]),At[i[1807]](z,i[w+100>>2],i[w+124>>2],i[w+144>>2]),At[i[1807]](z,i[w+104>>2],i[w+128>>2],i[w+144>>2]),At[i[1807]](z,i[w+108>>2],i[w+132>>2],i[w+144>>2]),At[i[1807]](z,i[w+112>>2],i[w+136>>2],i[w+144>>2]),At[i[1807]](z,i[w+116>>2],i[w+140>>2],i[w+144>>2]),(0|(M=i[w+56>>2]))<1))){for(D=i[w+128>>2],U=i[w+124>>2],R=i[w+120>>2],b=i[w+156>>2],z=0;i[(T=x<<2)+b>>2]=i[(I=z<<2)+R>>2],i[b+(4|T)>>2]=i[I+U>>2],i[b+(8|T)>>2]=i[I+D>>2],x=x+4|0,(0|M)!=(0|(z=z+1|0)););for(b=i[w+160>>2],I=i[w+140>>2],D=i[w+136>>2],U=i[w+132>>2],z=w=0;i[(x=w<<2)+b>>2]=i[(T=z<<2)+U>>2],i[b+(4|x)>>2]=i[T+D>>2],i[b+(8|x)>>2]=i[T+I>>2],w=w+4|0,(0|M)!=(0|(z=z+1|0)););}}(v),function(w){var R,z=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=w+172|0;if(At[i[1807]](z,i[w+196>>2],i[w+268>>2],i[w+264>>2]),At[i[1807]](z,i[w+200>>2],i[w+284>>2],i[w+264>>2]),At[i[1807]](z,i[w+204>>2],i[w+276>>2],i[w+264>>2]),At[i[1807]](z,i[w+208>>2],i[w+280>>2],i[w+264>>2]),At[i[1807]](z,i[w+212>>2],i[w+272>>2],i[w+264>>2]),!(Mt[i[w>>2]+4|0]<4||(At[i[1807]](z,i[w+216>>2],i[w+240>>2],i[w+264>>2]),At[i[1807]](z,i[w+220>>2],i[w+244>>2],i[w+264>>2]),At[i[1807]](z,i[w+224>>2],i[w+248>>2],i[w+264>>2]),At[i[1807]](z,i[w+228>>2],i[w+252>>2],i[w+264>>2]),At[i[1807]](z,i[w+232>>2],i[w+256>>2],i[w+264>>2]),At[i[1807]](z,i[w+236>>2],i[w+260>>2],i[w+264>>2]),(0|(M=i[w+164>>2]))<1))){for(D=i[w+248>>2],U=i[w+244>>2],R=i[w+240>>2],b=i[w+296>>2],z=0;i[(T=x<<2)+b>>2]=i[(I=z<<2)+R>>2],i[b+(4|T)>>2]=i[I+U>>2],i[b+(8|T)>>2]=i[I+D>>2],x=x+4|0,(0|M)!=(0|(z=z+1|0)););for(b=i[w+300>>2],I=i[w+260>>2],D=i[w+256>>2],U=i[w+252>>2],z=w=0;i[(x=w<<2)+b>>2]=i[(T=z<<2)+U>>2],i[b+(4|x)>>2]=i[T+D>>2],i[b+(8|x)>>2]=i[T+I>>2],w=w+4|0,(0|M)!=(0|(z=z+1|0)););}}(v),function(w){var R,b,T,x=0,I=0,M=0;if(1<=(0|(I=i[w+332>>2])))for(R=(x=i[w+336>>2])+Ze(I,20)|0,b=i[w+312>>2],T=i[w+40>>2],w=i[w+424>>2];I=0,i[x+12>>2]&&(M=i[x+4>>2],i[(M<<2)+T>>2]||(0|M)==-1)&&(M=i[x+8>>2],i[(M<<2)+b>>2]||(0|M)==-1)&&(I=!i[i[x>>2]+32>>2]),i[w>>2]=I,w=w+4|0,(x=x+20|0)>>>0<R>>>0;);}(v),function(w){var R,b,T,x,I,M,D,U,z=0,q=0,oe=0,Bt=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0,gn=0,Cn=0,Bt=i[w>>2];if(1<=(0|(ft=i[w+332>>2]))){for(wt=i[w+336>>2],Dt=i[Bt+1052>>2],qt=i[Bt+856>>2];;){if(z=i[wt+Ze(Se,20)>>2],(i[z+28>>2]||i[z+24>>2])&&(i[(q=Se<<2)+i[w+356>>2]>>2]=i[z+12>>2],i[z+24>>2])&&!((0|(le=i[z+12>>2]))<1))for(gn=(oe=i[z+16>>2])+(le<<2)|0,Cn=i[q+qt>>2],q=(fe=Le<<2)+i[w+372>>2]|0,le=fe+i[w+364>>2]|0,fe=fe+i[w+368>>2]|0;Xe=Cn+i[oe>>2]<<2,i[q>>2]=Dt+(i[Xe+i[Bt+1040>>2]>>2]<<2),i[le>>2]=i[Xe+i[Bt+1032>>2]>>2],i[fe>>2]=i[Xe+i[Bt+1036>>2]>>2],fe=fe+4|0,le=le+4|0,q=q+4|0,(oe=oe+4|0)>>>0<gn>>>0;);if(i[z+28>>2]&&!((0|(q=i[z+12>>2]))<1))for(le=(oe=i[z+20>>2])+(q<<2)|0,q=i[w+360>>2]+(Le<<2)|0;i[q>>2]=i[oe>>2],q=q+4|0,(oe=oe+4|0)>>>0<le>>>0;);if(Le=i[z+8>>2]+Le|0,(0|ft)==(0|(Se=Se+1|0)))break}Bt=i[w>>2]}if(!(Mt[Bt+4|0]<4||(0|(qt=i[w+332>>2]))<1))for(gn=i[Bt+864>>2],Cn=i[w+336>>2],oe=Le=0;;){if(Se=i[Cn+Ze(oe,20)>>2],i[Se+24>>2]&&!((0|(z=i[Se+12>>2]))<1))for(R=(q=i[Se+16>>2])+(z<<2)|0,b=i[gn+(oe<<2)>>2],le=(z=Le<<2)+i[w+376>>2]|0,fe=z+i[w+380>>2]|0,Xe=z+i[w+384>>2]|0,ft=z+i[w+388>>2]|0,wt=z+i[w+392>>2]|0,Dt=z+i[w+396>>2]|0,T=i[Bt+1308>>2],x=i[Bt+1304>>2],I=i[Bt+1300>>2],M=i[Bt+1296>>2],D=i[Bt+1292>>2],U=i[Bt+1288>>2];z=i[q>>2]+b<<2,i[le>>2]=i[z+U>>2],i[fe>>2]=i[z+D>>2],i[Xe>>2]=i[z+M>>2],i[ft>>2]=i[z+I>>2],i[wt>>2]=i[z+x>>2],i[Dt>>2]=i[z+T>>2],Dt=Dt+4|0,wt=wt+4|0,ft=ft+4|0,Xe=Xe+4|0,fe=fe+4|0,le=le+4|0,(q=q+4|0)>>>0<R>>>0;);if(Le=i[Se+8>>2]+Le|0,(0|qt)==(0|(oe=oe+1|0)))break}}(v),function(w){var R,z=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=w+340|0;if(At[i[1807]](z,i[w+364>>2],i[w+448>>2],i[w+424>>2]),At[i[1808]](z,i[w+368>>2],i[w+440>>2],i[w+424>>2]),At[i[1809]](z,i[w+372>>2],i[w+444>>2],i[i[w>>2]+892>>2],2,i[w+424>>2]),!(Mt[i[w>>2]+4|0]<4||(At[i[1807]](z,i[w+376>>2],i[w+400>>2],i[w+424>>2]),At[i[1807]](z,i[w+380>>2],i[w+404>>2],i[w+424>>2]),At[i[1807]](z,i[w+384>>2],i[w+408>>2],i[w+424>>2]),At[i[1807]](z,i[w+388>>2],i[w+412>>2],i[w+424>>2]),At[i[1807]](z,i[w+392>>2],i[w+416>>2],i[w+424>>2]),At[i[1807]](z,i[w+396>>2],i[w+420>>2],i[w+424>>2]),(0|(M=i[w+332>>2]))<1))){for(D=i[w+408>>2],U=i[w+404>>2],R=i[w+400>>2],b=i[w+452>>2],z=0;i[(T=x<<2)+b>>2]=i[(I=z<<2)+R>>2],i[b+(4|T)>>2]=i[I+U>>2],i[b+(8|T)>>2]=i[I+D>>2],x=x+4|0,(0|M)!=(0|(z=z+1|0)););for(b=i[w+456>>2],I=i[w+420>>2],D=i[w+416>>2],U=i[w+412>>2],z=w=0;i[(x=w<<2)+b>>2]=i[(T=z<<2)+U>>2],i[b+(4|x)>>2]=i[T+D>>2],i[b+(8|x)>>2]=i[T+I>>2],w=w+4|0,(0|M)!=(0|(z=z+1|0)););}}(v),function(w){var R,b,T,x,I,M,D,U=0,z=0,q=0,oe=0,le=0;if(1<=(0|(b=i[w+500>>2])))for(x=i[w+504>>2],T=i[w>>2],I=i[T+1252>>2];;){if(R=i[Ze(oe,24)+x>>2],(i[R+28>>2]||i[R+24>>2])&&(i[(U=oe<<2)+i[w+524>>2]>>2]=i[R+12>>2],i[R+24>>2])&&!((0|(q=i[R+12>>2]))<1))for(q=(z=i[R+16>>2])+(q<<2)|0,M=i[U+I>>2],U=i[w+532>>2]+(le<<2)|0,D=i[T+1284>>2];i[U>>2]=i[(i[z>>2]+M<<2)+D>>2],U=U+4|0,(z=z+4|0)>>>0<q>>>0;);if(i[R+28>>2]&&!((0|(U=i[R+12>>2]))<1))for(q=(z=i[R+20>>2])+(U<<2)|0,U=i[w+528>>2]+(le<<2)|0;i[U>>2]=i[z>>2],U=U+4|0,(z=z+4|0)>>>0<q>>>0;);if(le=i[R+8>>2]+le|0,(0|b)==(0|(oe=oe+1|0)))break}}(v),At[i[1807]](v+508|0,i[v+532>>2],i[v+536>>2],0),function(w){var R,b,T,x,I,M,D=O(0),U=0,z=0,q=0,oe=0;if(O(0),Re=R=Re-16|0,q=i[w>>2],!(Mt[q+4|0]<5||(0|(oe=i[w+596>>2]))<1))for(x=(z=i[w+600>>2])+Ze(oe,12)|0,I=i[w+44>>2],oe=i[q+976>>2];;){if(q=(i[z>>2]<<2)+I|0,D=O(i[q>>2]),1<=(0|(U=i[z+4>>2])))for(M=(w=i[z+8>>2])+Ze(U,48)|0;(U=i[w+8>>2])&&((b=U+-1|0)>>>0<=1?(U=i[w+4>>2],T=re[oe+(U+i[w+12>>2]<<2)>>2],D=O(b-1?D+O(re[w+44>>2]*O(T*re[w+20>>2])):D+O(re[w+44>>2]*O(O(T*re[w+20>>2])+O(re[oe+(U+i[w+16>>2]<<2)>>2]*re[w+24>>2]))))):(i[R>>2]=U,Ve(4,1024,R))),(w=w+48|0)>>>0<M>>>0;);if(D=(D=O(D+O(.0010000000474974513)))<O(0)?O(0):O(un(D,O(1e3))),w=O(nt(D))<O(2147483648)?~~D:-2147483648,i[q>>2]=w,!((z=z+12|0)>>>0<x>>>0))break}Re=16+R|0}(v),function(w){var R,b,T,x,I,M,D,U,z,q=0,oe=0,le=0,fe=0,Se=0,Le=O(0);if(Re=R=Re-16|0,q=i[w>>2],!(Mt[q+4|0]<4||(Hw(w,i[w+604>>2],i[w+608>>2],i[q+984>>2],i[w+152>>2],i[q+796>>2]),oe=i[w>>2],Mt[oe+4|0]<5))){if(le=i[w+608>>2],I=i[oe+992>>2],M=i[oe+988>>2],1<=(0|(q=i[w+604>>2]))){for(D=Ze(q,12)+le|0,U=i[w+148>>2],b=i[oe+980>>2];;){if(T=(i[le>>2]<<2)+U|0,Se=i[T>>2],1<=(0|(fe=i[le+4>>2])))for(z=(q=i[le+8>>2])+Ze(fe,48)|0;(fe=i[q+8>>2])&&((x=fe+-1|0)>>>0<=1?(fe=i[q+4>>2],Le=re[(fe+i[q+12>>2]<<2)+b>>2],tn(O(x-1?O(re[q+44>>2]*O(Le*re[q+20>>2]))+(rt(0,Se),Wt()):O(re[q+44>>2]*O(O(Le*re[q+20>>2])+O(re[(fe+i[q+16>>2]<<2)+b>>2]*re[q+24>>2])))+(rt(0,Se),Wt()))),Se=De[0]):(i[R>>2]=fe,Ve(4,1024,R))),(q=q+48|0)>>>0<z>>>0;);if(rt(0,Se),Le=Wt(),re[T>>2]=Le<O(0)?O(0):O(un(Le,O(1))),!((le=le+12|0)>>>0<D>>>0))break}le=i[w+608>>2],q=i[w+604>>2]}mu(q,le,M,i[oe+1288>>2],i[oe+1292>>2],i[oe+1296>>2],i[w+156>>2]),mu(i[w+604>>2],i[w+608>>2],I,i[oe+1300>>2],i[oe+1304>>2],i[oe+1308>>2],i[w+160>>2])}Re=16+R|0}(v),function(w){var R,b=0,T=0,x=0,I=0,M=0,D=O(0),U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0;if(Re=R=Re-80|0,M=i[w>>2],!(Mt[M+4|0]<5)){if(fe=i[M+1028>>2],Se=i[M+1024>>2],x=T=i[w+616>>2],!((0|(b=i[w+612>>2]))<1)){for(z=Ze(b,12)+T|0,q=i[w+276>>2],U=i[M+1004>>2];;){if(oe=q+(i[T>>2]<<2)|0,x=i[oe>>2],1<=(0|(I=i[T+4>>2])))for(Le=(b=i[T+8>>2])+Ze(I,48)|0;(I=i[b+8>>2])&&((le=I+-1|0)>>>0<=1?(I=i[b+4>>2],D=re[U+(I+i[b+12>>2]<<2)>>2],tn(O(le-1?O(re[b+44>>2]*O(D*re[b+20>>2]))+(rt(0,x),Wt()):O(re[b+44>>2]*O(O(D*re[b+20>>2])+O(re[U+(I+i[b+16>>2]<<2)>>2]*re[b+24>>2])))+(rt(0,x),Wt()))),x=De[0]):(i[64+R>>2]=I,Ve(4,1024,64+R|0))),(b=b+48|0)>>>0<Le>>>0;);if(i[oe>>2]=x,!((T=T+12|0)>>>0<z>>>0))break}if(x=T=i[w+616>>2],!((0|(b=i[w+612>>2]))<1)){for(z=Ze(b,12)+T|0,q=i[w+280>>2],U=i[i[w>>2]+1008>>2];;){if(oe=q+(i[T>>2]<<2)|0,x=i[oe>>2],1<=(0|(I=i[T+4>>2])))for(Le=(b=i[T+8>>2])+Ze(I,48)|0;(I=i[b+8>>2])&&((le=I+-1|0)>>>0<=1?(I=i[b+4>>2],D=re[U+(I+i[b+12>>2]<<2)>>2],tn(O(le-1?O(re[b+44>>2]*O(D*re[b+20>>2]))+(rt(0,x),Wt()):O(re[b+44>>2]*O(O(D*re[b+20>>2])+O(re[U+(I+i[b+16>>2]<<2)>>2]*re[b+24>>2])))+(rt(0,x),Wt()))),x=De[0]):(i[48+R>>2]=I,Ve(4,1024,48+R|0))),(b=b+48|0)>>>0<Le>>>0;);if(i[oe>>2]=x,!((T=T+12|0)>>>0<z>>>0))break}if(x=T=i[w+616>>2],!((0|(b=i[w+612>>2]))<1)){for(z=Ze(b,12)+T|0,q=i[w+268>>2],U=i[i[w>>2]+996>>2];;){if(oe=q+(i[T>>2]<<2)|0,x=i[oe>>2],1<=(0|(I=i[T+4>>2])))for(Le=(b=i[T+8>>2])+Ze(I,48)|0;(I=i[b+8>>2])&&((le=I+-1|0)>>>0<=1?(I=i[b+4>>2],D=re[U+(I+i[b+12>>2]<<2)>>2],tn(O(le-1?O(re[b+44>>2]*O(D*re[b+20>>2]))+(rt(0,x),Wt()):O(re[b+44>>2]*O(O(D*re[b+20>>2])+O(re[U+(I+i[b+16>>2]<<2)>>2]*re[b+24>>2])))+(rt(0,x),Wt()))),x=De[0]):(i[32+R>>2]=I,Ve(4,1024,32+R|0))),(b=b+48|0)>>>0<Le>>>0;);if(rt(0,x),D=Wt(),re[oe>>2]=D<O(0)?O(0):O(un(D,O(1))),!((T=T+12|0)>>>0<z>>>0))break}b=i[w+612>>2],x=i[w+616>>2]}}}if(mu(b,x,Se,i[M+1288>>2],i[M+1292>>2],i[M+1296>>2],i[w+296>>2]),mu(i[w+612>>2],i[w+616>>2],fe,i[M+1300>>2],i[M+1304>>2],i[M+1308>>2],i[w+300>>2]),!((0|(b=i[w+612>>2]))<1)){for(I=(T=i[w+616>>2])+Ze(b,12)|0,fe=i[w+284>>2],M=i[i[w>>2]+1e3>>2];;){if(Se=fe+(i[T>>2]<<2)|0,x=i[Se>>2],1<=(0|(U=i[T+4>>2])))for(z=(b=i[T+8>>2])+Ze(U,48)|0;(U=i[b+8>>2])&&((q=U+-1|0)>>>0<=1?(U=i[b+4>>2],D=re[M+(U+i[b+12>>2]<<2)>>2],tn(O(q-1?O(re[b+44>>2]*O(D*re[b+20>>2]))+(rt(0,x),Wt()):O(re[b+44>>2]*O(O(D*re[b+20>>2])+O(re[M+(U+i[b+16>>2]<<2)>>2]*re[b+24>>2])))+(rt(0,x),Wt()))),x=De[0]):(i[16+R>>2]=U,Ve(4,1024,16+R|0))),(b=b+48|0)>>>0<z>>>0;);if(rt(0,x),D=Wt(),re[Se>>2]=D<O(-3600)?O(-3600):O(un(D,O(3600))),!((T=T+12|0)>>>0<I>>>0))break}if(!((0|(b=i[w+612>>2]))<1))for(U=(T=i[w+616>>2])+Ze(b,12)|0,I=i[w+272>>2],w=i[i[w>>2]+1012>>2];;){if(fe=I+(i[T>>2]<<2)|0,x=i[fe>>2],1<=(0|(M=i[T+4>>2])))for(Se=(b=i[T+8>>2])+Ze(M,48)|0;(M=i[b+8>>2])&&((z=M+-1|0)>>>0<=1?(M=i[b+4>>2],D=re[w+(M+i[b+12>>2]<<2)>>2],tn(O(z-1?O(re[b+44>>2]*O(D*re[b+20>>2]))+(rt(0,x),Wt()):O(re[b+44>>2]*O(O(D*re[b+20>>2])+O(re[w+(M+i[b+16>>2]<<2)>>2]*re[b+24>>2])))+(rt(0,x),Wt()))),x=De[0]):(i[R>>2]=M,Ve(4,1024,R))),(b=b+48|0)>>>0<Se>>>0;);if(rt(0,x),D=Wt(),re[fe>>2]=D<O(9999999747378752e-20)?O(9999999747378752e-20):O(un(D,O(100))),!((T=T+12|0)>>>0<U>>>0))break}}}Re=80+R|0}(v),function(w){var R,b,T,x,I,M=0,D=0,U=0,z=0,q=O(0),oe=0,le=0,fe=0,Se=0,Le=0,Xe=0;if(O(0),Re=R=Re-32|0,U=i[w>>2],!(Mt[U+4|0]<4||(Hw(w,i[w+620>>2],i[w+624>>2],i[U+1040>>2],i[w+444>>2],i[U+892>>2]),oe=i[w>>2],Mt[oe+4|0]<5))){if(x=i[oe+1048>>2],I=i[oe+1044>>2],U=z=i[w+624>>2],!((0|(M=i[w+620>>2]))<1)){for(Le=Ze(M,12)+z|0,Xe=i[w+440>>2],le=i[oe+1036>>2];;){if(U=Xe+(i[z>>2]<<2)|0,q=O(i[U>>2]),1<=(0|(D=i[z+4>>2])))for(fe=(M=i[z+8>>2])+Ze(D,48)|0;(D=i[M+8>>2])&&((Se=D+-1|0)>>>0<=1?(D=i[M+4>>2],b=re[le+(D+i[M+12>>2]<<2)>>2],q=O(Se-1?q+O(re[M+44>>2]*O(b*re[M+20>>2])):q+O(re[M+44>>2]*O(O(b*re[M+20>>2])+O(re[le+(D+i[M+16>>2]<<2)>>2]*re[M+24>>2]))))):(i[16+R>>2]=D,Ve(4,1024,16+R|0))),(M=M+48|0)>>>0<fe>>>0;);if(q=(q=O(q+O(.0010000000474974513)))<O(0)?O(0):O(un(q,O(1e3))),M=O(nt(q))<O(2147483648)?~~q:-2147483648,i[U>>2]=M,!((z=z+12|0)>>>0<Le>>>0))break}if(U=z=i[w+624>>2],!((0|(M=i[w+620>>2]))<1)){for(Le=Ze(M,12)+z|0,Xe=i[w+448>>2],le=i[i[w>>2]+1032>>2];;){if(fe=Xe+(i[z>>2]<<2)|0,U=i[fe>>2],1<=(0|(D=i[z+4>>2])))for(Se=(M=i[z+8>>2])+Ze(D,48)|0;(D=i[M+8>>2])&&((T=D+-1|0)>>>0<=1?(D=i[M+4>>2],q=re[le+(D+i[M+12>>2]<<2)>>2],tn(O(T-1?O(re[M+44>>2]*O(q*re[M+20>>2]))+(rt(0,U),Wt()):O(re[M+44>>2]*O(O(q*re[M+20>>2])+O(re[le+(D+i[M+16>>2]<<2)>>2]*re[M+24>>2])))+(rt(0,U),Wt()))),U=De[0]):(i[R>>2]=D,Ve(4,1024,R))),(M=M+48|0)>>>0<Se>>>0;);if(rt(0,U),q=Wt(),re[fe>>2]=q<O(0)?O(0):O(un(q,O(1))),!((z=z+12|0)>>>0<Le>>>0))break}M=i[w+620>>2],U=i[w+624>>2]}}mu(M,U,I,i[oe+1288>>2],i[oe+1292>>2],i[oe+1296>>2],i[w+452>>2]),mu(i[w+620>>2],i[w+624>>2],x,i[oe+1300>>2],i[oe+1304>>2],i[oe+1308>>2],i[w+456>>2])}Re=32+R|0}(v),function(w){var R,b,T,x,I,M,D=0,U=0,z=0,q=0,oe=O(0);if(Re=R=Re-16|0,U=i[w>>2],!(Mt[U+4|0]<5||(0|(q=i[w+628>>2]))<1))for(x=(z=i[w+632>>2])+Ze(q,12)|0,I=i[w+536>>2],q=i[U+1284>>2];;){if(b=(i[z>>2]<<2)+I|0,U=i[b>>2],1<=(0|(D=i[z+4>>2])))for(M=(w=i[z+8>>2])+Ze(D,48)|0;(D=i[w+8>>2])&&((T=D+-1|0)>>>0<=1?(D=i[w+4>>2],oe=re[q+(D+i[w+12>>2]<<2)>>2],tn(O(T-1?O(re[w+44>>2]*O(oe*re[w+20>>2]))+(rt(0,U),Wt()):O(re[w+44>>2]*O(O(oe*re[w+20>>2])+O(re[q+(D+i[w+16>>2]<<2)>>2]*re[w+24>>2])))+(rt(0,U),Wt()))),U=De[0]):(i[R>>2]=D,Ve(4,1024,R))),(w=w+48|0)>>>0<M>>>0;);if(rt(0,U),oe=Wt(),re[b>>2]=oe<O(0)?O(0):O(un(oe,O(1))),!((z=z+12|0)>>>0<x>>>0))break}Re=16+R|0}(v),function(w){var R,b,T=0,x=0,I=0,M=O(0),D=0;if(1<=(0|(T=i[w+4>>2])))for(b=(x=i[w+8>>2])+Ze(T,12)|0,T=i[w+40>>2],I=i[w+52>>2],w=R=i[w+48>>2];i[T>>2]&&(M=re[I>>2],re[w>>2]=M,(0|(D=i[x+4>>2]))!=-1)&&(re[w>>2]=M*re[(D<<2)+R>>2]),w=w+4|0,I=I+4|0,T=T+4|0,(x=x+12|0)>>>0<b>>>0;);}(v),function(w){var R,b=0,T=0,x=0;if(1<=(0|(R=i[w+304>>2])))for(b=i[w+308>>2],T=i[w+312>>2];i[T>>2]&&At[i[b+20>>2]](w,x),T=T+4|0,b=b+32|0,(0|R)!=(0|(x=x+1|0)););}(v),function(w){var R,b,T,x,I,M=0,D=0,U=(O(0),O(0),0),z=0,q=0,oe=(O(0),0),le=0,fe=0;if(1<=(0|(M=i[w+332>>2])))for(le=(D=i[w+336>>2])+Ze(M,20)|0,fe=i[w+308>>2],oe=i[w+316>>2],I=i[w+48>>2],M=i[w+448>>2],U=i[w+444>>2],q=i[w+424>>2];i[q>>2]&&((0|(z=i[D+4>>2]))!=-1&&(re[M>>2]=re[(z<<2)+I>>2]*re[M>>2]),(0|(z=i[D+8>>2]))!=-1)&&(re[M>>2]=re[oe+(z<<2)>>2]*re[M>>2],x=i[U>>2],At[i[24+(fe+(z<<5)|0)>>2]](w,z,x,x,i[D+16>>2])),U=U+4|0,M=M+4|0,q=q+4|0,(D=D+20|0)>>>0<le>>>0;);if(!(Mt[i[w>>2]+4|0]<4||(0|(M=i[w+332>>2]))<1))for(z=(U=i[w+336>>2])+Ze(M,20)|0,le=i[w+328>>2],fe=i[w+324>>2],D=i[w+452>>2],M=i[w+456>>2],q=i[w+424>>2];i[q>>2]&&(0|(w=i[U+8>>2]))!=-1&&(w=(oe=w<<4)+fe|0,R=O(re[D>>2]*re[w>>2]),re[D>>2]=R,b=O(re[D+4>>2]*re[w+4>>2]),re[D+4>>2]=b,T=re[w+8>>2],i[D+12>>2]=1065353216,re[D+4>>2]=b<O(0)?O(0):O(un(b,O(1))),re[D>>2]=R<O(0)?O(0):O(un(R,O(1))),R=O(T*re[D+8>>2]),re[D+8>>2]=R<O(0)?O(0):O(un(R,O(1))),R=re[M>>2],b=re[(w=le+oe|0)>>2],R=O(O(R+b)-O(R*b)),re[M>>2]=R,b=re[M+4>>2],T=re[w+4>>2],b=O(O(b+T)-O(b*T)),re[M+4>>2]=b,T=re[w+8>>2],i[M+12>>2]=1065353216,re[M+4>>2]=b<O(0)?O(0):O(un(b,O(1))),re[M>>2]=R<O(0)?O(0):O(un(R,O(1))),R=re[M+8>>2],R=O(O(T+R)-O(R*T)),re[M+8>>2]=R<O(0)?O(0):O(un(R,O(1)))),M=M+16|0,D=D+16|0,q=q+4|0,(U=U+20|0)>>>0<z>>>0;);}(v),function(w){var R,b,T,x,I,M,D,U,z,q,oe,le,fe,Se,Le,Xe,ft,wt,Dt,qt,gn=0;if(O(0),O(0),O(0),O(0),O(0),O(0),O(0),1<=(0|(U=i[w+500>>2])))for(Dt=i[w+536>>2],z=i[w+444>>2],qt=i[w+504>>2];;){if(w=Ze(gn,24)+qt|0,0<(0|(q=i[w+12>>2])))for(T=re[(gn<<2)+Dt>>2],oe=i[w+20>>2],le=i[w+16>>2],fe=i[(i[w+4>>2]<<2)+z>>2],Se=i[(i[w+8>>2]<<2)+z>>2],w=0;Le=re[((R=1|w)<<2)+le>>2],b=Ua[(w<<1)+oe>>1]<<3&262136,x=re[(Xe=(4|b)+fe|0)>>2],R=Ua[(R<<1)+oe>>1]<<3&262136,I=re[(ft=(4|R)+Se|0)>>2],M=re[(b=b+fe|0)>>2],wt=re[(w<<2)+le>>2],D=re[(R=R+Se|0)>>2],re[b>>2]=M+O(T*O(wt*O(D-M))),re[Xe>>2]=x+O(T*O(wt*O(I-x))),re[R>>2]=D+O(T*O(Le*O(M-D))),re[ft>>2]=I+O(T*O(Le*O(x-I))),(0|(w=w+2|0))<(0|q););if(!((0|(gn=gn+1|0))<(0|U)))break}}(v),At[i[1810]](v),function(w){var R,b,T,x,I=0,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0;if(!((0|(R=i[w+480>>2]))<1)){for(U=(b=i[w+484>>2])+Ze(R,28)|0,oe=i[w+424>>2],le=i[w+40>>2],z=i[w+44>>2],Le=i[w+440>>2],I=b;;){if(1<=(0|(q=i[I+4>>2])))for(Se=I+20|0,fe=i[I+12>>2],M=0;T=i[4+(D=fe+(M<<4)|0)>>2]<<2,D=i[(x=D)>>2]==1,i[x+12>>2]=i[(i[(D?le:oe)+T>>2]?(D?z:Le)+T|0:Se)>>2],(0|(M=M+1|0))<(0|q););if(!((I=I+28|0)>>>0<U>>>0))break}if(!((0|R)<1))for(Le=i[w+436>>2],le=0;;){if(U=Ze(le,28)+b|0,!(i[(oe=U)+24>>2]<1)){for(D=i[w+488>>2],M=0;i[D+(M<<2)>>2]=-1,(0|(M=M+1|0))<(0|(I=i[oe+24>>2])););if(!((0|I)<1))for(I=i[w+496>>2],M=0;i[I+(M<<2)>>2]=-1,(0|(M=M+1|0))<i[oe+24>>2];);}if(!(i[U+4>>2]<1)){for(z=i[w+492>>2],M=0;i[z+(M<<2)>>2]=-1,(0|(M=M+1|0))<(0|(I=i[U+4>>2])););if(!((0|I)<1))for(q=i[U+12>>2],Se=i[w+496>>2],M=0;fe=i[12+(q+(M<<4)|0)>>2]-i[U+20>>2]<<2,I=(0|(I=i[(D=fe+Se|0)>>2]))==-1?fe+i[w+488>>2]|0:z+(I<<2)|0,i[I>>2]=M,(0|(M=(i[D>>2]=M)+1|0))<i[U+4>>2];);}if(1<=(0|(I=i[oe+24>>2])))for(z=i[U+8>>2],Se=i[w+488>>2],q=0;;){if((0|(M=i[Se+(q<<2)>>2]))!=-1){for(fe=i[w+492>>2],D=i[U+12>>2];z=(I=i[(I=D+(M<<4)|0)>>2]==1?(I=Ze(i[I+8>>2],28)+b|0,i[I+8>>2]=z,i[I>>2]):(i[Le+(i[I+4>>2]<<2)>>2]=z,1))+z|0,(0|M)<(0|(I=i[fe+(M<<2)>>2]))&&(0|(M=I))!=-1;);I=i[oe+24>>2]}if(!((0|(q=q+1|0))<(0|I)))break}if((0|R)==(0|(le=le+1|0)))break}}}(v),function(w){var R=0,b=0,T=0,x=0,I=0,M=O(0),D=0,U=0,z=i[w+332>>2];if(i[w+644>>2]){if(!(((i[w+428>>2]=0)|z)<1))for(;R=126,D=i[w+432>>2]+T|0,!i[(b=T<<2)+i[w+424>>2]>>2]|re[b+i[w+448>>2]>>2]==O(0)||(R=127),Ct[0|D]=R,(0|z)!=(0|(T=T+1|0)););}else if(i[w+428>>2]){if(R=Mt[i[w>>2]+4|0],!(((i[w+428>>2]=0)|z)<1))if(4<=R>>>0)for(;M=re[(R=T<<2)+i[w+448>>2]>>2],x=i[R+i[w+424>>2]>>2],b=M!=O(0)&(0|x)!=0,D=i[w+432>>2]+T|0,b=(0|b)==(1&Ct[0|D])?b:2|b,b=M!=re[R+i[w+468>>2]>>2]?4|b:b,b=i[R+i[w+440>>2]>>2]==i[R+i[w+464>>2]>>2]?b:8|b,R=i[R+i[w+436>>2]>>2]==i[R+i[w+460>>2]>>2]?b:16|b,R=x?32|R:R,x=(b=U<<2)+i[w+452>>2]|0,I=b+i[w+472>>2]|0,(re[x>>2]!=re[I>>2]|re[x+4>>2]!=re[I+4>>2]|(re[x+8>>2]!=re[I+8>>2]|re[x+12>>2]!=re[I+12>>2])||(x=b+i[w+456>>2]|0,b=b+i[w+476>>2]|0,re[x>>2]!=re[b>>2]|re[x+4>>2]!=re[b+4>>2]|re[x+8>>2]!=re[b+8>>2])||re[x+12>>2]!=re[b+12>>2])&&(R|=64),Ct[0|D]=R,U=U+4|0,(0|z)!=(0|(T=T+1|0)););else for(;M=re[(R=T<<2)+i[w+448>>2]>>2],x=i[R+i[w+424>>2]>>2],b=M!=O(0)&(0|x)!=0,I=i[w+432>>2]+T|0,b=(0|b)==(1&Ct[0|I])?b:2|b,b=M!=re[R+i[w+468>>2]>>2]?4|b:b,b=i[R+i[w+440>>2]>>2]==i[R+i[w+464>>2]>>2]?b:8|b,R=i[R+i[w+436>>2]>>2]==i[R+i[w+460>>2]>>2]?b:16|b,Ct[0|I]=x?32|R:R,(0|z)!=(0|(T=T+1|0)););}else if(!((0|z)<1))for(;!i[(R=T<<2)+i[w+424>>2]>>2]|re[R+i[w+448>>2]>>2]==O(0)?(R=i[w+432>>2]+T|0,Ct[0|R]=254&Mt[0|R]):(R=i[w+432>>2]+T|0,Ct[0|R]=1|Mt[0|R]),(0|z)!=(0|(T=T+1|0)););}(v),i[v+644>>2]=0}function Hw(v,E,F,C,w,R){var b,T,x,I,M,D,U,z=0,q=0,oe=0,le=0;if(Re=D=Re-32|0,1<=(0|E))for(M=Ze(E,12)+F|0;;){if(!((0|(z=i[F+4>>2]))<1))if(b=(E=i[F+8>>2])+Ze(z,48)|0,z=i[F>>2]<<2,1<=(0|(U=i[z+R>>2])))for(U<<=1,T=i[i[v>>2]+1052>>2],x=i[w+z>>2];;){t:if(z=i[E+8>>2]){e:{if((q=z+-1|0)>>>0<=1){if(z=(i[E+4>>2]<<2)+C|0,le=(i[z+(i[E+12>>2]<<2)>>2]<<2)+T|0,q-1)break e;for(oe=(i[z+(i[E+16>>2]<<2)>>2]<<2)+T|0,z=0;re[(I=(q=z<<2)+x|0)>>2]=re[I>>2]+O(re[E+44>>2]*O(O(re[q+le>>2]*re[E+20>>2])+O(re[q+oe>>2]*re[E+24>>2]))),(0|U)!=(0|(z=z+1|0)););break t}i[D>>2]=z,Ve(4,1024,D);break t}for(z=0;re[(oe=(q=z<<2)+x|0)>>2]=re[oe>>2]+O(re[E+44>>2]*O(re[q+le>>2]*re[E+20>>2])),(0|U)!=(0|(z=z+1|0)););}if(!((E=E+48|0)>>>0<b>>>0))break}else for(;3<=(z=i[E+8>>2])>>>0&&(i[16+D>>2]=z,Ve(4,1024,16+D|0)),(E=E+48|0)>>>0<b>>>0;);if(!((F=F+12|0)>>>0<M>>>0))break}Re=32+D|0}function Uw(v,E,F){var C;E|=0,F|=0,Re=C=Re+-64|0;t:{if(v|=0)if(E)if((E+15&-16)!=(0|E))i[52+C>>2]=1522,i[48+C>>2]=2361,Ve(4,1294,48+C|0);else{if(E=function(w,R,b){var T,x=0,I=0,M=0,D=0,U=0,z=0,q=0,oe=0,le=0,fe=0,Se=0,Le=0,Xe=0,ft=O(0),wt=0,Dt=0,qt=0,gn=0,Cn=0;if(Jo(16+(Re=T=Re-576|0)|0,0,560),Jw(w,16+T|0,12+T|0),(D=i[12+T>>2])>>>0<=b>>>0){if(x=(I=Jo(R,0,D))+i[16+T>>2]|0,i[x+8>>2]=I+i[20+T>>2],i[x+40>>2]=I+i[24+T>>2],i[x+44>>2]=I+i[28+T>>2],i[x+48>>2]=I+i[32+T>>2],i[x+52>>2]=I+i[36+T>>2],i[x+16>>2]=I+i[40+T>>2],i[x+24>>2]=I+i[44+T>>2],i[x+28>>2]=I+i[48+T>>2],i[x+32>>2]=I+i[52+T>>2],i[x+36>>2]=I+i[56+T>>2],R=i[w+704>>2],i[x+308>>2]=I+i[60+T>>2],i[x+312>>2]=I+i[64+T>>2],i[x+316>>2]=I+i[68+T>>2],i[x+320>>2]=I+i[72+T>>2],i[x+324>>2]=I+i[76+T>>2],i[x+328>>2]=I+i[80+T>>2],i[x+60>>2]=I+i[84+T>>2],i[x+144>>2]=I+i[88+T>>2],i[x+148>>2]=I+i[92+T>>2],b=I+i[96+T>>2]|0,i[x+152>>2]=b,!((0|(D=i[R+8>>2]))<1)&&(R=I+i[100+T>>2]|0,i[b>>2]=R,(0|D)!=1))for(b=1;R=(15+(i[i[w+796>>2]+(M<<2)>>2]<<3)&-16)+R|0,i[i[x+152>>2]+(b<<2)>>2]=R,(0|D)!=(0|(b=(M=b)+1|0)););if(i[x+156>>2]=I+i[104+T>>2],i[x+160>>2]=I+i[108+T>>2],i[x+68>>2]=I+i[112+T>>2],i[x+76>>2]=I+i[116+T>>2],i[x+80>>2]=I+i[120+T>>2],i[x+84>>2]=I+i[124+T>>2],i[x+88>>2]=I+i[128+T>>2],i[x+92>>2]=I+i[132+T>>2],i[x+96>>2]=I+i[136+T>>2],i[x+100>>2]=I+i[140+T>>2],i[x+104>>2]=I+i[144+T>>2],i[x+108>>2]=I+i[148+T>>2],i[x+112>>2]=I+i[152+T>>2],i[x+116>>2]=I+i[156+T>>2],i[x+120>>2]=I+i[160+T>>2],i[x+124>>2]=I+i[164+T>>2],i[x+128>>2]=I+i[168+T>>2],i[x+132>>2]=I+i[172+T>>2],i[x+136>>2]=I+i[176+T>>2],i[x+140>>2]=I+i[180+T>>2],i[x+168>>2]=I+i[184+T>>2],i[x+264>>2]=I+i[188+T>>2],i[x+268>>2]=I+i[192+T>>2],i[x+272>>2]=I+i[196+T>>2],i[x+276>>2]=I+i[200+T>>2],i[x+280>>2]=I+i[204+T>>2],i[x+284>>2]=I+i[208+T>>2],i[x+288>>2]=I+i[212+T>>2],i[x+292>>2]=I+i[216+T>>2],i[x+296>>2]=I+i[220+T>>2],i[x+300>>2]=I+i[224+T>>2],i[x+176>>2]=I+i[228+T>>2],i[x+184>>2]=I+i[232+T>>2],i[x+188>>2]=I+i[236+T>>2],i[x+192>>2]=I+i[240+T>>2],i[x+196>>2]=I+i[244+T>>2],i[x+200>>2]=I+i[248+T>>2],i[x+204>>2]=I+i[252+T>>2],i[x+208>>2]=I+i[256+T>>2],i[x+212>>2]=I+i[260+T>>2],i[x+216>>2]=I+i[264+T>>2],i[x+220>>2]=I+i[268+T>>2],i[x+224>>2]=I+i[272+T>>2],i[x+228>>2]=I+i[276+T>>2],i[x+232>>2]=I+i[280+T>>2],i[x+236>>2]=I+i[284+T>>2],i[x+240>>2]=I+i[288+T>>2],i[x+244>>2]=I+i[292+T>>2],i[x+248>>2]=I+i[296+T>>2],i[x+252>>2]=I+i[300+T>>2],i[x+256>>2]=I+i[304+T>>2],i[x+260>>2]=I+i[308+T>>2],R=i[w+704>>2],i[x+336>>2]=I+i[312+T>>2],i[x+424>>2]=I+i[316+T>>2],i[x+432>>2]=I+i[320+T>>2],i[x+436>>2]=I+i[324+T>>2],i[x+440>>2]=I+i[328+T>>2],b=I+i[332+T>>2]|0,i[x+444>>2]=b,!((0|(D=i[R+16>>2]))<1)&&(M=I+i[336+T>>2]|0,i[b>>2]=M,(b=1)!=(0|D)))for(R=0;M=(15+(i[i[w+892>>2]+(R<<2)>>2]<<3)&-16)+M|0,i[i[x+444>>2]+(b<<2)>>2]=M,(0|D)!=(0|(b=(R=b)+1|0)););if(i[x+448>>2]=I+i[340+T>>2],i[x+452>>2]=I+i[344+T>>2],i[x+456>>2]=I+i[348+T>>2],i[x+460>>2]=I+i[352+T>>2],i[x+464>>2]=I+i[356+T>>2],i[x+468>>2]=I+i[360+T>>2],i[x+472>>2]=I+i[364+T>>2],i[x+476>>2]=I+i[368+T>>2],i[x+344>>2]=I+i[372+T>>2],i[x+352>>2]=I+i[376+T>>2],i[x+356>>2]=I+i[380+T>>2],i[x+360>>2]=I+i[384+T>>2],i[x+364>>2]=I+i[388+T>>2],i[x+368>>2]=I+i[392+T>>2],i[x+372>>2]=I+i[396+T>>2],i[x+376>>2]=I+i[400+T>>2],i[x+380>>2]=I+i[404+T>>2],i[x+384>>2]=I+i[408+T>>2],i[x+388>>2]=I+i[412+T>>2],i[x+392>>2]=I+i[416+T>>2],i[x+396>>2]=I+i[420+T>>2],i[x+400>>2]=I+i[424+T>>2],i[x+404>>2]=I+i[428+T>>2],i[x+408>>2]=I+i[432+T>>2],i[x+412>>2]=I+i[436+T>>2],i[x+416>>2]=I+i[440+T>>2],i[x+420>>2]=I+i[444+T>>2],R=i[448+T>>2],b=i[452+T>>2],i[x+552>>2]=I+i[456+T>>2],i[x+548>>2]=b+I,i[x+544>>2]=R+I,i[x+560>>2]=I+i[460+T>>2],R=i[w+704>>2],q=I+i[464+T>>2]|0,i[x+568>>2]=q,1<=(0|(z=i[R+48>>2])))for(M=I+i[468+T>>2]|0,R=I+i[472+T>>2]|0,U=I+i[476+T>>2]|0,oe=i[w+1072>>2],b=0;D=q+Ze(b,36)|0,i[D+20>>2]=U,i[D+16>>2]=R,i[D>>2]=M,M=((D=i[oe+(b<<2)>>2])<<2)+M|0,U=(D=1<<D<<2)+U|0,R=R+D|0,(0|z)!=(0|(b=b+1|0)););if(R=i[w+704>>2],D=I+i[516+T>>2]|0,i[x+484>>2]=D,1<=(0|(R=i[R+72>>2])))for(M=I+i[520+T>>2]|0,U=i[w+1212>>2],b=0;i[12+(D+Ze(b,28)|0)>>2]=M,M=(i[U+(b<<2)>>2]<<4)+M|0,(0|R)!=(0|(b=b+1|0)););i[x+488>>2]=I+i[524+T>>2],i[x+492>>2]=I+i[528+T>>2],i[x+496>>2]=I+i[532+T>>2],i[x+504>>2]=I+i[536+T>>2],i[x+536>>2]=I+i[540+T>>2],i[x+512>>2]=I+i[544+T>>2],i[x+520>>2]=I+i[548+T>>2],i[x+524>>2]=I+i[552+T>>2],i[x+528>>2]=I+i[556+T>>2],i[x+532>>2]=I+i[560+T>>2];e:{if(4<=(z=Mt[w+4|0])>>>0){if(i[x+576>>2]=I+i[480+T>>2],i[x+584>>2]=I+i[484+T>>2],R=i[w+704>>2],b=i[492+T>>2],D=I+i[488+T>>2]|0,i[x+592>>2]=D,1<=(0|(R=i[R+104>>2])))for(M=b+I|0,U=i[w+1104>>2],b=0;i[40+(D+Ze(b,48)|0)>>2]=M,M=(i[U+(b<<2)>>2]<<2)+M|0,(0|R)!=(0|(b=b+1|0)););i[x+608>>2]=I+i[500+T>>2],i[x+624>>2]=I+i[508+T>>2]}else{if(R=i[572+T>>2],b=i[568+T>>2],i[x+636>>2]=I+i[564+T>>2],i[x+640>>2]=b+I,i[i[w+704>>2]+20>>2]<1)break e;for(D=R+I|0,q=0;;){n:{if((0|(M=i[(R=q<<2)+i[w+952>>2]>>2]))<=0)R=R+i[x+636>>2]|0;else{for(U=M+(b=i[R+i[w+948>>2]>>2])|0,oe=i[w+1060>>2],M=0;M=i[oe+(b<<2)>>2]+M|0,(0|(b=b+1|0))<(0|U););if(R=R+i[x+636>>2]|0,b=D,M)break n}b=M=0}if(i[R>>2]=b,D=(M<<2)+D|0,!((0|(q=q+1|0))<i[i[w+704>>2]+20>>2]))break}}z>>>0<5||(i[x+600>>2]=I+i[496+T>>2],i[x+616>>2]=I+i[504+T>>2],i[x+632>>2]=I+i[512+T>>2])}i[x+644>>2]=1,i[x>>2]=w,i[x+648>>2]=1&Ct[i[w+708>>2]+20|0],I=i[w+704>>2],q=i[I+20>>2];e:if(!((0|(i[x+540>>2]=q))<1)){if(R=q+-1|0,oe=i[w+952>>2],le=i[w+940>>2],fe=i[w+932>>2],Se=i[w+936>>2],Le=i[w+924>>2],Xe=i[w+928>>2],wt=i[x+552>>2],qt=i[x+544>>2],z>>>0<4){for(;;)if(b=qt+Ze(R,52)|0,M=(D=R<<2)+Xe|(i[b>>2]=0),i[b+4>>2]=i[M>>2],i[b+8>>2]=i[(U=D+Le|0)>>2],re[b+12>>2]=re[U>>2]-re[M>>2],i[b+16>>2]=i[D+Se>>2],i[b+44>>2]=i[(M=D+fe|0)>>2],ft=zw(O(i[D+le>>2])),re[b+20>>2]=ft,re[b+24>>2]=ft*O(1.5),Dt=i[D+oe>>2],U=0,U=(i[b+32>>2]=Dt)?i[x+560>>2]+Ze(i[D+i[w+948>>2]>>2],28)|0:U,i[b+48>>2]=1,i[b+28>>2]=U,i[D+wt>>2]=i[M>>2],b=0<(0|R),R=R+-1|0,!b)break e}for(Dt=i[w+960>>2],Cn=i[w+944>>2];b=qt+Ze(R,52)|0,i[b>>2]=i[(M=R<<2)+Cn>>2],i[b+4>>2]=i[(D=M+Xe|0)>>2],i[b+8>>2]=i[(U=M+Le|0)>>2],re[b+12>>2]=re[U>>2]-re[D>>2],i[b+16>>2]=i[M+Se>>2],i[b+44>>2]=i[(gn=M+fe|0)>>2],ft=zw(O(i[M+le>>2])),re[b+20>>2]=ft,re[b+24>>2]=ft*O(1.5),U=i[M+oe>>2],i[b+32>>2]=U,i[b+28>>2]=U?i[x+560>>2]+Ze(i[M+i[w+948>>2]>>2],28)|0:0,D=i[M+Dt>>2],D=(i[b+40>>2]=D)?i[x+584>>2]+Ze(i[M+i[w+956>>2]>>2],28)|0:0,i[b+48>>2]=1,i[b+36>>2]=D,i[M+wt>>2]=i[gn>>2],b=0<(0|R),R=R+-1|0,b;);}if(4<=z>>>0?(i[x+548>>2]=i[w+944>>2],D=w):(Jo(i[x+548>>2],0,q<<2),D=i[x>>2],I=i[D+704>>2]),M=i[I+52>>2],1<=(0|(i[x+556>>2]=M)))for(b=i[D+1056>>2],U=i[D+1192>>2],q=i[D+1060>>2],z=i[x+560>>2];R=z+Ze(M=M+-1|0,28)|0,i[R>>2]=i[(oe=M<<2)+q>>2],oe=i[b+oe>>2],i[R+24>>2]=1,i[R+16>>2]=0,i[R+20>>2]=1,i[R+8>>2]=0,i[R+12>>2]=0,i[R+4>>2]=U+(oe<<2),0<(0|M););if(M=i[I+48>>2],1<=(0|(i[x+564>>2]=M))){for(;;){if(R=i[x+568>>2]+Ze(M=M+-1|0,36)|0,U=i[(I=M<<2)+i[D+1072>>2]>>2],1<=(0|(i[R+4>>2]=U)))for(b=0;i[i[R>>2]+(b<<2)>>2]=i[x+560>>2]+Ze(i[i[D+1064>>2]+(i[I+i[D+1068>>2]>>2]+b<<2)>>2],28),(0|U)!=(0|(b=b+1|0)););if(i[R+24>>2]=1,i[R+28>>2]=1,i[R+8>>2]=1<<U,!(0<(0|M)))break}D=i[x>>2],I=i[D+704>>2]}if(R=i[I>>2],(0|(i[x+4>>2]=R))<1)b=0;else{for(oe=i[D+732>>2],le=i[D+736>>2],fe=i[D+740>>2],U=i[D+720>>2],Se=i[x+52>>2],q=i[x+568>>2],Le=i[x+8>>2],M=R;z=Le+Ze(M=M+-1|0,12)|0,i[z>>2]=q+Ze(i[(b=M<<2)+U>>2],36),i[z+4>>2]=i[b+fe>>2],i[z+8>>2]=i[b+le>>2],re[b+Se>>2]=i[b+oe>>2]?O(1):O(0),0<(0|M););for(z=i[x+16>>2],b=0;M=i[8+(q+Ze(i[(oe=(R=R+-1|0)<<2)+U>>2],36)|0)>>2],b=b+(i[z+oe>>2]=M)|0,0<(0|R););R=i[x+4>>2]}if(i[x+12>>2]=R,i[x+20>>2]=b,R=i[I+4>>2],1<=(0|(i[x+304>>2]=R))){for(;b=i[x+308>>2]+((R=R+-1|0)<<5)|0,i[b>>2]=i[x+568>>2]+Ze(i[(M=R<<2)+i[D+752>>2]>>2],36),i[b+4>>2]=i[M+i[D+764>>2]>>2],i[b+8>>2]=i[M+i[D+768>>2]>>2],U=i[M+i[D+772>>2]>>2],i[b+12>>2]=U,I=i[M+i[D+776>>2]>>2],i[b+16>>2]=I,i[b+28>>2]=i[M+i[D+760>>2]>>2],U>>>0<=1?U-1?(i[20+(i[x+60>>2]+Ze(I,24)|0)>>2]=R,i[b+24>>2]=1,i[b+20>>2]=2):(i[8+(i[x+168>>2]+Ze(I,12)|0)>>2]=R,i[b+24>>2]=3,i[b+20>>2]=4):Ve(4,1179,0),0<(0|R););D=i[x>>2],I=i[D+704>>2]}M=i[I+8>>2];e:if(!((0|(i[x+56>>2]=M))<1)){if(b=M+-1|0,q=i[D+796>>2],z=i[D+804>>2],oe=i[D+800>>2],le=i[D+780>>2],fe=i[x+568>>2],Se=i[x+60>>2],Mt[D+4|0]<2){for(;;)if(R=Se+Ze(b,24)|0,i[R>>2]=fe+Ze(i[(U=b<<2)+le>>2],36),i[R+4>>2]=i[U+oe>>2],i[R+8>>2]=i[U+z>>2],U=i[U+q>>2],i[R+12>>2]=0,i[R+16>>2]=U,R=0<(0|b),b=b+-1|0,!R)break e}for(Le=i[D+808>>2];R=Se+Ze(b,24)|0,i[R>>2]=fe+Ze(i[(U=b<<2)+le>>2],36),i[R+4>>2]=i[U+oe>>2],i[R+8>>2]=i[U+z>>2],i[R+16>>2]=i[U+q>>2],i[R+12>>2]=i[U+Le>>2],R=0<(0|b),b=b+-1|0,R;);}if(b=i[I+12>>2],1<=(0|(i[x+164>>2]=b)))for(U=i[D+828>>2],q=i[D+812>>2],z=i[x+568>>2],oe=i[x+168>>2],R=b;le=oe+Ze(R=R+-1|0,12)|0,i[le>>2]=z+Ze(i[(fe=R<<2)+q>>2],36),i[le+4>>2]=i[U+fe>>2],0<(0|R););if(((R=0)|M)<1)U=0;else{for(q=i[x+68>>2],z=i[x+60>>2],U=0;b=i[i[z+Ze(M=M+-1|0,24)>>2]+8>>2],U=(i[q+(M<<2)>>2]=b)+U|0,0<(0|M););b=i[x+164>>2],M=i[x+56>>2]}if(i[x+64>>2]=M,i[x+72>>2]=U,M=x,1<=(0|b)){for(q=i[x+176>>2],z=i[x+168>>2];U=i[i[z+Ze(b=b+-1|0,12)>>2]+8>>2],R=R+(i[q+(b<<2)>>2]=U)|0,0<(0|b););b=i[x+164>>2]}if(i[M+172>>2]=b,i[x+180>>2]=R,U=i[I+16>>2],1<=(0|(i[x+332>>2]=U))){for(oe=i[D+872>>2],le=i[D+892>>2],fe=i[D+880>>2],Se=i[D+876>>2],q=i[D+852>>2],z=i[x+568>>2],Le=i[x+336>>2],R=U;b=Le+Ze(R=R+-1|0,20)|0,i[b>>2]=z+Ze(i[(M=R<<2)+q>>2],36),i[b+4>>2]=i[M+Se>>2],i[b+8>>2]=i[M+fe>>2],i[b+16>>2]=i[M+le>>2],i[b+12>>2]=i[M+oe>>2],0<(0|R););for(M=i[x+344>>2],b=0;R=i[8+(z+Ze(i[(oe=(U=U+-1|0)<<2)+q>>2],36)|0)>>2],b=(i[M+oe>>2]=R)+b|0,0<(0|U););if(i[x+348>>2]=b,U=i[x+332>>2],!((0|(i[x+340>>2]=U))<1))for(b=U<<2,M=i[x+456>>2],q=i[x+452>>2];i[(z=(R=b+-4|0)<<2)+q>>2]=1065353216,i[(oe=(b<<=2)-4|0)+q>>2]=1065353216,i[(le=(b=b+-12|0)+q|0)>>2]=1065353216,i[le+4>>2]=1065353216,i[M+z>>2]=0,i[M+oe>>2]=1065353216,i[(b=b+M|0)>>2]=0,i[b+4>>2]=0,b=R,0<(0|(U=U+-1|0)););}else i[x+340>>2]=U,i[x+348>>2]=0;if(U=i[I+72>>2],1<=(0|(i[x+480>>2]=U)))for(oe=i[D+1208>>2],le=i[D+1224>>2],fe=i[D+1220>>2],Se=i[D+1216>>2],Le=i[D+1212>>2],Xe=i[x+484>>2],M=0;;){if(R=Xe+Ze(M,28)|0,q=i[(b=M<<2)+Le>>2],i[R+4>>2]=q,i[R>>2]=i[b+Se>>2],z=i[b+fe>>2],i[R+16>>2]=z,wt=i[b+le>>2],i[R+20>>2]=wt,i[R+8>>2]=0,i[R+24>>2]=1+(z-wt|0),1<=(0|q))for(wt=i[b+oe>>2],qt=i[R+12>>2],Dt=i[D+1236>>2],Cn=i[D+1228>>2],gn=i[D+1232>>2],b=0;i[4+(R=qt+(b<<4)|0)>>2]=i[(z=b+wt<<2)+gn>>2],i[R>>2]=i[z+Cn>>2],z=i[z+Dt>>2],i[R+12>>2]=0,i[R+8>>2]=z,(0|q)!=(0|(b=b+1|0)););if((0|U)==(0|(M=M+1|0)))break}if(b=i[I+80>>2],(0|(i[x+500>>2]=b))<1)M=0;else{for(z=i[D+1280>>2],oe=i[D+1268>>2],le=i[D+1276>>2],fe=i[D+1272>>2],Se=i[D+1264>>2],Le=i[D+1260>>2],U=i[D+1248>>2],q=i[x+568>>2],Xe=i[x+504>>2];R=Xe+Ze(b=b+-1|0,24)|0,i[R>>2]=q+Ze(i[(M=b<<2)+U>>2],36),i[R+4>>2]=i[M+Le>>2],i[R+8>>2]=i[M+Se>>2],i[R+12>>2]=i[M+fe>>2],M=i[M+oe>>2],i[R+20>>2]=z+(M<<1),i[R+16>>2]=le+(M<<2),0<(0|b););if((0|(b=i[x+500>>2]))<1)M=0;else{for(z=i[x+512>>2],M=0;R=i[8+(q+Ze(i[(oe=(b=b+-1|0)<<2)+U>>2],36)|0)>>2],M=(i[z+oe>>2]=R)+M|0,0<(0|b););b=i[x+500>>2]}}i[x+508>>2]=b,i[x+516>>2]=M;e:if(4<=Mt[w+4|0]){if(!((U=Mt[D+4|0])>>>0<4)){if(b=i[I+120>>2],1<=(0|(i[x+572>>2]=b))){for(z=i[D+1172>>2],oe=i[x+576>>2];U=(0|(I=i[(R=(b=b+-1|0)<<2)+z>>2]))<0?I=q=M=0:(M=(U=i[R+i[D+1176>>2]>>2]<<2)+i[D+1188>>2]|0,q=i[R+i[D+1180>>2]>>2],I=i[x+544>>2]+Ze(I,52)|0,U+i[D+1184>>2]|0),R=oe+Ze(b,20)|0,i[R+12>>2]=q,i[R+8>>2]=M,i[R+4>>2]=U,i[R>>2]=I,0<(0|b););if(D=i[x>>2],(U=Mt[D+4|0])>>>0<4)break e}if(I=i[D+704>>2],M=i[I+100>>2],1<=(0|(i[x+580>>2]=M)))for(q=i[D+1084>>2],z=i[D+1076>>2],oe=i[D+1192>>2],le=i[D+1080>>2],fe=i[x+584>>2];R=fe+Ze(M=M+-1|0,28)|0,i[R>>2]=i[(b=M<<2)+le>>2],i[R+4>>2]=oe+(i[b+z>>2]<<2),b=i[b+q>>2],i[R+20>>2]=1,i[R+24>>2]=1,i[R+12>>2]=0,i[R+16>>2]=0,i[R+8>>2]=b,0<(0|M););if(M=i[I+104>>2],1<=(0|(i[x+588>>2]=M))){for(;;){if(R=i[x+592>>2]+Ze(M=M+-1|0,48)|0,i[R>>2]=i[x+584>>2]+Ze(i[(U=M<<2)+i[D+1088>>2]>>2],28),b=i[U+i[D+1092>>2]>>2],i[R+28>>2]=1,i[R+32>>2]=1,i[R+8>>2]=0,i[R+4>>2]=b,I=i[U+i[D+1104>>2]>>2],1<=(0|(i[R+36>>2]=I)))for(b=0;i[i[R+40>>2]+(b<<2)>>2]=i[x+576>>2]+Ze(i[i[D+1168>>2]+(i[U+i[D+1100>>2]>>2]+b<<2)>>2],20),(0|I)!=(0|(b=b+1|0)););if(!(1<=(0|M)))break}D=i[x>>2],U=Mt[D+4|0]}if(!(U>>>0<4)){if(U=i[w+704>>2],b=i[U+108>>2],1<=(0|(i[x+604>>2]=b)))for(I=i[w+1124>>2],q=i[w+1128>>2],z=i[w+1120>>2],oe=i[x+592>>2],le=i[x+608>>2];R=le+Ze(b=b+-1|0,12)|0,i[R>>2]=i[(M=b<<2)+z>>2],i[R+4>>2]=i[M+q>>2],i[R+8>>2]=oe+Ze(i[I+M>>2],48),0<(0|b););if(b=i[U+112>>2],1<=(0|(i[x+620>>2]=b)))for(U=i[w+1148>>2],I=i[w+1152>>2],q=i[w+1144>>2],z=i[x+592>>2],oe=i[x+624>>2];R=oe+Ze(b=b+-1|0,12)|0,i[R>>2]=i[(M=b<<2)+q>>2],i[R+4>>2]=i[I+M>>2],i[R+8>>2]=z+Ze(i[M+U>>2],48),0<(0|b););if(M=i[D+1192>>2],R=i[i[D+704>>2]+20>>2],i[x+640>>2]=i[D+972>>2],U=i[D+964>>2],i[x+636>>2]=U,!((0|R)<(b=1))&&(i[U>>2]=M+(i[i[D+968>>2]>>2]<<2),(0|R)!=1))for(;i[(U=b<<2)+i[x+636>>2]>>2]=M+(i[U+i[D+968>>2]>>2]<<2),(0|R)!=(0|(b=b+1|0)););}}}else if(!(i[I+20>>2]<1))for(I=0;;){if(M=i[(q=I<<2)+i[x+636>>2]>>2],1<=((R=0)|(b=i[q+i[D+952>>2]>>2])))for(le=b+(z=i[q+i[D+948>>2]>>2])|0,fe=i[D+1060>>2],Se=i[D+1056>>2];;){if(1<=(0|(oe=i[(b=z<<2)+fe>>2])))for(Le=oe+(U=i[b+Se>>2])|0,Xe=i[D+1192>>2];;){oe=M+(R<<2)|0,ft=re[Xe+(U<<2)>>2],b=M;n:{if(0<(0|R))for(;;){if(re[b>>2]==ft)break n;if(!((b=b+4|0)>>>0<oe>>>0))break}re[oe>>2]=ft,R=R+1|0}if(!((0|(U=U+1|0))<(0|Le)))break}if(!((0|(z=z+1|0))<(0|le)))break}if(function(Bt,Ln){var pt,Ft,Qt=0,fn=0,vn=0;i[8+(Re=pt=Re-208|0)>>2]=1,i[12+pt>>2]=0;n:if(Ft=Ln<<2){for(i[16+pt>>2]=4,vn=Ln=i[20+pt>>2]=4,Qt=2;Ln=(vn+4|0)+(fn=Ln)|0,i[(16+pt|0)+(Qt<<2)>>2]=Ln,Qt=Qt+1|0,vn=fn,Ln>>>0<Ft>>>0;);if((fn=(Bt+Ft|0)-4|0)>>>0<=Bt>>>0)Ln=Qt=1;else for(Ln=Qt=1;Ln=(3&Qt)==3?(um(Bt,Ln,16+pt|0),xh(8+pt|0,2),Ln+2|0):(Jn[(16+pt|0)+((vn=Ln+-1|0)<<2)>>2]>=fn-Bt>>>0?Ch(Bt,8+pt|0,Ln,0,16+pt|0):um(Bt,Ln,16+pt|0),(0|Ln)==1?(Eh(8+pt|0,1),0):(Eh(8+pt|0,vn),1)),Qt=1|i[8+pt>>2],i[8+pt>>2]=Qt,(Bt=Bt+4|0)>>>0<fn>>>0;);for(Ch(Bt,8+pt|0,Ln,0,16+pt|0);;){r:{a:{i:{if(!((0|Ln)!=1|(0|Qt)!=1)){if(i[12+pt>>2])break i;break n}if(1<(0|Ln))break a}xh(8+pt|0,fn=aS(8+pt|0)),Qt=i[8+pt>>2],Ln=Ln+fn|0;break r}Eh(8+pt|0,2),i[8+pt>>2]=7^i[8+pt>>2],xh(8+pt|0,1),Ch((vn=Bt+-4|0)-i[(16+pt|0)+((fn=Ln+-2|0)<<2)>>2]|0,8+pt|0,Ln+-1|0,1,16+pt|0),Eh(8+pt|0,1),Qt=1|i[8+pt>>2],i[8+pt>>2]=Qt,Ch(vn,8+pt|0,fn,1,16+pt|0),Ln=fn}Bt=Bt+-4|0}}Re=208+pt|0}(M,R),i[q+i[x+640>>2]>>2]=R,!((0|(I=I+1|0))<i[i[D+704>>2]+20>>2]))break}if(!(Mt[w+4|0]<5|Mt[i[x>>2]+4|0]<4)){if(R=i[w+704>>2],b=i[R+128>>2],1<=(0|(i[x+596>>2]=b)))for(U=i[w+1112>>2],I=i[w+1116>>2],q=i[w+1108>>2],z=i[x+592>>2],oe=i[x+600>>2];D=oe+Ze(b=b+-1|0,12)|0,i[D>>2]=i[(M=b<<2)+q>>2],i[D+4>>2]=i[I+M>>2],i[D+8>>2]=z+Ze(i[M+U>>2],48),0<(0|b););if(b=i[R+132>>2],1<=(0|(i[x+612>>2]=b)))for(U=i[w+1136>>2],I=i[w+1140>>2],q=i[w+1132>>2],z=i[x+592>>2],oe=i[x+616>>2];D=oe+Ze(b=b+-1|0,12)|0,i[D>>2]=i[(M=b<<2)+q>>2],i[D+4>>2]=i[I+M>>2],i[D+8>>2]=z+Ze(i[M+U>>2],48),0<(0|b););if(b=i[R+136>>2],!((0|(i[x+628>>2]=b))<1))for(D=i[w+1160>>2],M=i[w+1164>>2],U=i[w+1156>>2],I=i[x+592>>2],q=i[x+632>>2];w=q+Ze(b=b+-1|0,12)|0,i[w>>2]=i[(R=b<<2)+U>>2],i[w+4>>2]=i[R+M>>2],i[w+8>>2]=I+Ze(i[R+D>>2],48),0<(0|b););}Bw(x)}return Re=576+T|0,x}(v,E,F))break t;i[36+C>>2]=2209,i[32+C>>2]=2361,Ve(4,1294,32+C|0)}else i[20+C>>2]=1444,i[16+C>>2]=2361,Ve(4,1294,16+C|0);else i[4+C>>2]=2132,i[C>>2]=2361,Ve(4,1294,C);E=0}return Re=64+C|0,0|E}function Vw(v){var E;return Re=E=Re-16|0,v=(v|=0)?function(F){var C;return Jo(16+(Re=C=Re-576|0)|0,0,560),Jw(F,16+C|0,12+C|0),Re=576+C|0,i[12+C>>2]}(v):(i[4+E>>2]=2132,i[E>>2]=2343,Ve(4,1294,E),0),Re=16+E|0,0|v}function Gw(v){var E=Mt[v+4|0];be(i[v+704>>2],4,64),xi(i[v+708>>2],4),xi(i[v+708>>2]+4|0,4),xi(i[v+708>>2]+8|0,4),xi(i[v+708>>2]+12|0,4),xi(i[v+708>>2]+16|0,4),xi(i[v+708>>2]+20|0,1),be(i[v+720>>2],4,i[i[v+704>>2]>>2]),be(i[v+724>>2],4,i[i[v+704>>2]>>2]),be(i[v+728>>2],4,i[i[v+704>>2]>>2]),be(i[v+732>>2],4,i[i[v+704>>2]>>2]),be(i[v+736>>2],4,i[i[v+704>>2]>>2]),be(i[v+740>>2],4,i[i[v+704>>2]>>2]),be(i[v+752>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+756>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+760>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+764>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+768>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+772>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+776>>2],4,i[i[v+704>>2]+4>>2]),be(i[v+780>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+784>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+788>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+796>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+800>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+804>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+812>>2],4,i[i[v+704>>2]+12>>2]),be(i[v+816>>2],4,i[i[v+704>>2]+12>>2]),be(i[v+820>>2],4,i[i[v+704>>2]+12>>2]),be(i[v+828>>2],4,i[i[v+704>>2]+12>>2]),be(i[v+852>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+856>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+860>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+868>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+872>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+876>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+880>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+884>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+888>>2],1,i[i[v+704>>2]+16>>2]),be(i[v+892>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+896>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+900>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+904>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+908>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+912>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+924>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+928>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+932>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+936>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+940>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+948>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+952>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+976>>2],4,i[i[v+704>>2]+24>>2]),be(i[v+980>>2],4,i[i[v+704>>2]+28>>2]),be(i[v+984>>2],4,i[i[v+704>>2]+28>>2]),be(i[v+996>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1e3>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1004>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1008>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1012>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1016>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1020>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1032>>2],4,i[i[v+704>>2]+36>>2]),be(i[v+1036>>2],4,i[i[v+704>>2]+36>>2]),be(i[v+1040>>2],4,i[i[v+704>>2]+36>>2]),be(i[v+1052>>2],4,i[i[v+704>>2]+40>>2]),be(i[v+1064>>2],4,i[i[v+704>>2]+44>>2]),be(i[v+1068>>2],4,i[i[v+704>>2]+48>>2]),be(i[v+1072>>2],4,i[i[v+704>>2]+48>>2]),be(i[v+1056>>2],4,i[i[v+704>>2]+52>>2]),be(i[v+1060>>2],4,i[i[v+704>>2]+52>>2]),be(i[v+1192>>2],4,i[i[v+704>>2]+56>>2]),be(i[v+1196>>2],4,i[i[v+704>>2]+60>>2]),be(i[v+1200>>2],2,i[i[v+704>>2]+64>>2]),be(i[v+1204>>2],4,i[i[v+704>>2]+68>>2]),be(i[v+1208>>2],4,i[i[v+704>>2]+72>>2]),be(i[v+1212>>2],4,i[i[v+704>>2]+72>>2]),be(i[v+1216>>2],4,i[i[v+704>>2]+72>>2]),be(i[v+1220>>2],4,i[i[v+704>>2]+72>>2]),be(i[v+1224>>2],4,i[i[v+704>>2]+72>>2]),be(i[v+1228>>2],4,i[i[v+704>>2]+76>>2]),be(i[v+1232>>2],4,i[i[v+704>>2]+76>>2]),be(i[v+1236>>2],4,i[i[v+704>>2]+76>>2]),be(i[v+1248>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1252>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1256>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1260>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1264>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1268>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1272>>2],4,i[i[v+704>>2]+80>>2]),be(i[v+1276>>2],4,i[i[v+704>>2]+84>>2]),be(i[v+1280>>2],2,i[i[v+704>>2]+84>>2]),be(i[v+1284>>2],4,i[i[v+704>>2]+88>>2]),E>>>0<2||(be(i[v+808>>2],4,i[i[v+704>>2]+8>>2]),E>>>0<4)||(be(i[v+968>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+972>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+792>>2],4,i[i[v+704>>2]+8>>2]),be(i[v+824>>2],4,i[i[v+704>>2]+12>>2]),be(i[v+864>>2],4,i[i[v+704>>2]+16>>2]),be(i[v+1288>>2],4,i[i[v+704>>2]+92>>2]),be(i[v+1292>>2],4,i[i[v+704>>2]+92>>2]),be(i[v+1296>>2],4,i[i[v+704>>2]+92>>2]),be(i[v+1300>>2],4,i[i[v+704>>2]+96>>2]),be(i[v+1304>>2],4,i[i[v+704>>2]+96>>2]),be(i[v+1308>>2],4,i[i[v+704>>2]+96>>2]),be(i[v+944>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+956>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+960>>2],4,i[i[v+704>>2]+20>>2]),be(i[v+1076>>2],4,i[i[v+704>>2]+100>>2]),be(i[v+1080>>2],4,i[i[v+704>>2]+100>>2]),be(i[v+1084>>2],4,i[i[v+704>>2]+100>>2]),be(i[v+1088>>2],4,i[i[v+704>>2]+104>>2]),be(i[v+1092>>2],4,i[i[v+704>>2]+104>>2]),be(i[v+1096>>2],4,i[i[v+704>>2]+104>>2]),be(i[v+1100>>2],4,i[i[v+704>>2]+104>>2]),be(i[v+1104>>2],4,i[i[v+704>>2]+104>>2]),be(i[v+1120>>2],4,i[i[v+704>>2]+108>>2]),be(i[v+1124>>2],4,i[i[v+704>>2]+108>>2]),be(i[v+1128>>2],4,i[i[v+704>>2]+108>>2]),be(i[v+1144>>2],4,i[i[v+704>>2]+112>>2]),be(i[v+1148>>2],4,i[i[v+704>>2]+112>>2]),be(i[v+1152>>2],4,i[i[v+704>>2]+112>>2]),be(i[v+1168>>2],4,i[i[v+704>>2]+116>>2]),be(i[v+1172>>2],4,i[i[v+704>>2]+120>>2]),be(i[v+1176>>2],4,i[i[v+704>>2]+120>>2]),be(i[v+1180>>2],4,i[i[v+704>>2]+120>>2]),be(i[v+1184>>2],4,i[i[v+704>>2]+124>>2]),be(i[v+1188>>2],4,i[i[v+704>>2]+124>>2]),(0|E)!=4&&(be(i[v+988>>2],4,i[i[v+704>>2]+28>>2]),be(i[v+992>>2],4,i[i[v+704>>2]+28>>2]),be(i[v+1024>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1028>>2],4,i[i[v+704>>2]+32>>2]),be(i[v+1044>>2],4,i[i[v+704>>2]+36>>2]),be(i[v+1048>>2],4,i[i[v+704>>2]+36>>2]),be(i[v+1108>>2],4,i[i[v+704>>2]+128>>2]),be(i[v+1112>>2],4,i[i[v+704>>2]+128>>2]),be(i[v+1116>>2],4,i[i[v+704>>2]+128>>2]),be(i[v+1132>>2],4,i[i[v+704>>2]+132>>2]),be(i[v+1136>>2],4,i[i[v+704>>2]+132>>2]),be(i[v+1140>>2],4,i[i[v+704>>2]+132>>2]),be(i[v+1156>>2],4,i[i[v+704>>2]+136>>2]),be(i[v+1160>>2],4,i[i[v+704>>2]+136>>2]),be(i[v+1164>>2],4,i[i[v+704>>2]+136>>2])))}function jw(v,E){var F=0,C=0,w=0,R=0,b=0,T=0,x=v+E|0;t:{e:if(!(1&(F=i[v+4>>2]))){if(!(3&F))break t;if(E=(F=i[v>>2])+E|0,(0|(v=v-F|0))!=i[2092])if(F>>>0<=255)w=F>>>3,F=i[v+8>>2],(0|(C=i[v+12>>2]))==(0|F)?(T=i[2087]&Ia(w),i[2087]=T):(i[F+12>>2]=C,i[C+8>>2]=F);else{if(b=i[v+24>>2],(0|(F=i[v+12>>2]))!=(0|v))C=i[v+8>>2],i[C+12>>2]=F,i[F+8>>2]=C;else if(w=(w=i[(C=v+20|0)>>2])||i[(C=v+16|0)>>2]){for(;R=C,(w=i[(C=(F=w)+20|0)>>2])||(C=F+16|0,w=i[F+16>>2]););i[R>>2]=0}else F=0;if(b){C=i[v+28>>2];n:{if(i[(w=8652+(C<<2)|0)>>2]==(0|v)){if(i[w>>2]=F)break n;T=i[2088]&Ia(C),i[2088]=T;break e}if(!(i[b+(i[b+16>>2]==(0|v)?16:20)>>2]=F))break e}i[F+24>>2]=b,(C=i[v+16>>2])&&(i[F+16>>2]=C,i[C+24>>2]=F),(C=i[v+20>>2])&&(i[F+20>>2]=C,i[C+24>>2]=F)}}else if((3&(F=i[4+x>>2]))==3)return i[2089]=E,i[4+x>>2]=-2&F,i[v+4>>2]=1|E,i[x>>2]=E}e:{if(!(2&(F=i[4+x>>2]))){if(i[2093]==(0|x)){if(i[2093]=v,E=i[2090]+E|0,i[2090]=E,i[v+4>>2]=1|E,i[2092]!=(0|v))break t;return i[2089]=0,i[2092]=0}if(i[2092]==(0|x))return i[2092]=v,E=i[2089]+E|0,i[2089]=E,i[v+4>>2]=1|E,i[v+E>>2]=E;E=(-8&F)+E|0;n:if(F>>>0<=255)w=F>>>3,F=i[8+x>>2],(0|(C=i[12+x>>2]))==(0|F)?(T=i[2087]&Ia(w),i[2087]=T):(i[F+12>>2]=C,i[C+8>>2]=F);else{if(b=i[24+x>>2],(0|x)!=(0|(F=i[12+x>>2])))C=i[8+x>>2],i[C+12>>2]=F,i[F+8>>2]=C;else if(w=(w=i[(C=20+x|0)>>2])||i[(C=16+x|0)>>2]){for(;R=C,(w=i[(C=(F=w)+20|0)>>2])||(C=F+16|0,w=i[F+16>>2]););i[R>>2]=0}else F=0;if(b){C=i[28+x>>2];r:{if(i[(w=8652+(C<<2)|0)>>2]==(0|x)){if(i[w>>2]=F)break r;T=i[2088]&Ia(C),i[2088]=T;break n}if(!(i[b+(i[b+16>>2]==(0|x)?16:20)>>2]=F))break n}i[F+24>>2]=b,(C=i[16+x>>2])&&(i[F+16>>2]=C,i[C+24>>2]=F),(C=i[20+x>>2])&&(i[F+20>>2]=C,i[C+24>>2]=F)}}if(i[v+4>>2]=1|E,i[v+E>>2]=E,i[2092]!=(0|v))break e;return i[2089]=E}i[4+x>>2]=-2&F,i[v+4>>2]=1|E,i[v+E>>2]=E}if(E>>>0<=255)return E=8388+((F=E>>>3)<<3)|0,F=(C=i[2087])&(F=1<<F)?i[E+8>>2]:(i[2087]=F|C,E),i[E+8>>2]=v,i[F+12>>2]=v,i[v+12>>2]=E,i[v+8>>2]=F;i[v+16>>2]=0,F=i[v+20>>2]=0,(w=E>>>8)&&(F=31,16777215<E>>>0||(F=28+((F=((x=(w<<=R=w+1048320>>>16&8)<<(F=w+520192>>>16&4))<<(w=245760+x>>>16&2)>>>15)-(w|F|R)|0)<<1|E>>>F+21&1)|0)),w=8652+((i[(C=v)+28>>2]=F)<<2)|0;e:{if((C=i[2088])&(R=1<<F)){for(C=E<<((0|F)==31?0:25-(F>>>1)|0),F=i[w>>2];;){if((-8&i[(w=F)+4>>2])==(0|E))break e;if(F=C>>>29,C<<=1,!(F=i[16+(R=w+(4&F)|0)>>2]))break}i[R+16>>2]=v}else i[2088]=C|R,i[w>>2]=v;return i[v+24>>2]=w,i[v+12>>2]=v,i[v+8>>2]=v}E=i[w+8>>2],i[E+12>>2]=v,i[w+8>>2]=v,i[v+24>>2]=0,i[v+12>>2]=w,i[v+8>>2]=E}}function zw(v){var E,F,C,w,R,b,T,x,I=O(0),M=(O(0),0),D=0,U=(O(0),O(0),O(0),O(0),0);O(0),O(0);t:{e:{if(tn(v),D=2147483647&(M=De[0])){if(!(D>>>0<2139095041))return O(O(.10000000149011612)+v);if((0|D)==1065353216)return O(-1<(0|M)?.10000000149011612:10);if((0|D)==2139095040)return O(-1<(0|M)?0:-v);if((0|M)==1073741824)return O(.010000000707805157);if((0|M)==1056964608)return O(.3162277638912201);if(1291845633<=D>>>0)return O((0|M)<0?xa:0);if(E=re[1701],x=O(O(1.600000023841858)-E),F=O(O(1)/O(E+O(1.600000023841858))),rt(0,-4096&(tn(T=O(x*F)),De[0])),I=Wt(),C=O(I*I),R=re[1705],E=O(F*O(O(x-O((w=I)*O(3.099609375)))-O(I*O(O(1.600000023841858)-O(O(3.099609375)-E))))),F=O(O(T+I)*E),I=O(T*T),x=O(F+O(O(I*I)*O(O(I*O(O(I*O(O(I*O(O(I*O(O(I*O(.20697501301765442))+O(.23066075146198273)))+O(.2727281153202057)))+O(.3333333432674408)))+O(.4285714328289032)))+O(.6000000238418579)))),rt(0,-4096&(tn(O(O(C+O(3))+x)),De[0])),I=Wt(),F=O(w*I),T=O(O(E*I)+O(T*O(x-O(O(I+O(-3))-C)))),rt(0,-4096&(tn(O(F+T)),De[0])),I=Wt(),E=O(I*O(.9619140625)),C=O(re[1703]+O(O(O(T-O(I-F))*O(.9617967009544373))+O(I*O(-.00011736857413779944)))),rt(0,-4096&(tn(O(O(R+O(E+C))+O(-4))),De[0])),T=Wt(),rt(0,-4096&M),x=Wt(),I=O(T*x),v=O(O(O(C-O(O(O(T-O(-4))-R)-E))*v)+O(O(v-x)*T)),tn(T=O(I+v)),1124073473<=(0|(M=De[0])))break e;n:{if((D=1124073472)==(0|M)){if(O(v+O(4299566569443414e-23))>O(T-I))break e}else{if(D=2147483647&M,!(v<=O(T-I)^1|(0|M)!=-1021968384)|1125515265<=D>>>0)break t;if(D>>>0<1056964609)break n}U=(8388607&(D=(8388608>>>(D>>>23)-126)+M|0)|8388608)>>>150-(b=D>>>23&255),U=(0|M)<0?0-U|0:U,I=O(I-(rt(0,D&-8388608>>b-127),Wt())),tn(O(v+I)),M=De[0]}rt(0,-32768&M),T=Wt(),E=O(T*O(.693145751953125)),T=O(O(T*O(14286065379565116e-22))+O(O(v-O(T-I))*O(.6931471824645996))),v=O(E+T),I=O(v*v),I=O(v-O(I*O(O(I*O(O(I*O(O(I*O(O(I*O(4138136944220605e-23))+O(-16533901998627698e-22)))+O(661375597701408e-19)))+O(-.0027777778450399637)))+O(.1666666716337204)))),w=O(O(v*I)/O(I+O(-2))),I=O(T-O(v-E)),v=(0|(M=0|(tn(v=O(O(v-O(w-O(I+O(v*I))))+O(1))),De[0]+(U<<23))))<=8388607?function(z,q){var oe=0;return 128<=(0|q)?(z=O(z*O(17014118346046923e22)),q=(0|(oe=q+-127|0))<128?oe:(z=O(z*O(17014118346046923e22)),((0|q)<381?q:381)+-254|0)):-127<(0|q)||(z=O(z*O(11754943508222875e-54)),q=-127<(0|(oe=q+126|0))?oe:(z=O(z*O(11754943508222875e-54)),(-378<(0|q)?q:-378)+252|0)),O(z*(rt(0,1065353216+(q<<23)|0),Wt()))}(v,U):(rt(0,M),Wt()),v=O(O(1)*v)}else v=O(1);return v}return O(xa)}return O(0)}function Kw(v,E){var F,C,w,R=0,b=0,T=O(0);if(tn(E),!((w=2147483647&(C=De[0]))>>>0<=2139095040&&(tn(v),(R=2147483647&(b=De[0]))>>>0<2139095041)))return O(v+E);if((0|C)==1065353216)return Ww(v);C=(F=C>>>30&2)|b>>>31;t:{e:{n:{r:{if(!R){switch(C-2|0){case 0:break r;case 1:break;default:break n}return O(-3.1415927410125732)}if((0|w)!=2139095040){if(!w|!(R>>>0<=218103808+w>>>0&&(0|R)!=2139095040))break t;if(v=T=R+218103808>>>0<w>>>0&&(T=O(0),F)?T:Ww(O(nt(O(v/E)))),C>>>0<=2){switch(C-1|0){case 0:return O(-v);case 1:break;default:break n}return O(O(3.1415927410125732)-O(v+O(8742277657347586e-23)))}return O(O(v+O(8742277657347586e-23))+O(-3.1415927410125732))}if((0|R)==2139095040)break e;return re[6784+(C<<2)>>2]}v=O(3.1415927410125732)}return v}return re[6768+(C<<2)>>2]}return O((0|b)<0?-1.5707963705062866:1.5707963705062866)}function Ww(v){O(0);var E,F,C,w,R,b=0;O(0),O(0),tn(v);t:{if(1283457024<=(w=2147483647&(R=De[0]))>>>0){if(2139095040<w>>>0)break t;return O((0|R)<0?-1.570796251296997:1.570796251296997)}e:{if(w>>>0<=1054867455){if(b=-1,964689920<=w>>>0)break e;break t}v=O(nt(v)),b=w>>>0<=1066926079?w>>>0<=1060110335?(v=O(O(O(v+v)+O(-1))/O(v+O(2))),0):(v=O(O(v+O(-1))/O(v+O(1))),1):w>>>0<=1075576831?(v=O(O(v+O(-1.5))/O(O(v*O(1.5))+O(1))),2):(v=O(O(-1)/v),3)}if(w=b,F=O(v*v),E=O(F*F),C=O(E*O(O(E*O(-.106480173766613))+O(-.19999158382415771))),E=O(F*O(O(E*O(O(E*O(.06168760731816292))+O(.14253635704517365)))+O(.333333283662796))),(0|w)<=-1)return O(v-O(v*O(C+E)));v=O(re[6736+(w<<=2)>>2]-O(O(O(v*O(C+E))-re[6752+w>>2])-v)),v=(0|R)<0?O(-v):v}return v}function Xw(v,E){var F,C,w,R=0,b=0;return Re=C=Re-16|0,tn(v),(R=2147483647&(w=De[0]))>>>0<=1305022426?(En[E>>3]=(F=+v)+-1.5707963109016418*(b=.6366197723675814*F+6755399441055744-6755399441055744)+-15893254773528196e-24*b,R=nt(b)<2147483648?~~b:-2147483648):2139095040<=R>>>0?(En[E>>3]=O(v-v),R=0):(F=R,En[8+C>>3]=(rt(0,F-((R=(R>>>23)-150|0)<<23)|0),Wt()),R=function(T,x,I){var M,D,U,z,q,oe,le=0,fe=0,Se=0,Le=0,Xe=0,ft=0,wt=0,Dt=0,qt=0,gn=0,Cn=0;if(Re=M=Re-560|0,wt=(fe=I)+Ze(U=0<(0|(I=(I+-3|0)/24|0))?I:0,-24)|0,0<=(0|(D=i[972])))for(fe=D+1|0,I=U;En[(320+M|0)+(Se<<3)>>3]=(0|I)<0?0:+i[3904+(I<<2)>>2],I=I+1|0,(0|fe)!=(0|(Se=Se+1|0)););for(Xe=wt+-24|0,fe=0;;){for(le=I=0;le+=En[(I<<3)+T>>3]*En[(320+M|0)+(fe-I<<3)>>3],(0|(I=I+1|0))!=1;);if(En[(fe<<3)+M>>3]=le,I=(0|fe)<(0|D),fe=fe+1|0,!I)break}oe=23-Xe|0,z=24-Xe|0,fe=D;t:{for(;;){if(le=En[(fe<<3)+M>>3],!(qt=((I=0)|(Se=fe))<1))for(;ft=(480+M|0)+(I<<2)|0,Dt=le,Le=nt(le*=5960464477539063e-23)<2147483648?~~le:-2147483648,Le=nt(Dt+=-16777216*(le=0|Le))<2147483648?~~Dt:-2147483648,i[ft>>2]=Le,le=En[((Se=Se+-1|0)<<3)+M>>3]+le,(0|fe)!=(0|(I=I+1|0)););le=Th(le,Xe),le=(le+=-8*qn(.125*le))-(0|(ft=nt(le)<2147483648?~~le:-2147483648));e:{n:{r:{if(Cn=(0|Xe)<1){if(Xe)break r;Le=i[476+((fe<<2)+M|0)>>2]>>23}else Le=i[476+(Se=(fe<<2)+M|0)>>2],gn=Se,Se=Le-((I=Le>>z)<<z)|0,ft=I+ft|0,Le=(i[gn+476>>2]=Se)>>oe;if((0|Le)<1)break e;break n}if(Le=2,!(.5<=le)){Le=0;break e}}if(Se=I=0,!qt)for(;;){qt=i[(q=(480+M|0)+(I<<2)|0)>>2],gn=16777215;n:{r:{if(!Se){if(!qt)break r;gn=16777216,Se=1}i[q>>2]=gn-qt;break n}Se=0}if((0|fe)==(0|(I=I+1|0)))break}Cn||1<(I=Xe+-1|0)>>>0||(i[476+(I=(fe<<2)+M|0)>>2]=I-1?8388607&i[I+476>>2]:4194303&i[I+476>>2]),ft=ft+1|0,(0|Le)==2&&(le=1-le,Le=2,Se)&&(le-=Th(1,Xe))}if(le!=0)break;if(!(((Se=0)|(I=fe))<=(0|D))){for(;Se=i[(480+M|0)+((I=I+-1|0)<<2)>>2]|Se,(0|D)<(0|I););if(Se){for(wt=Xe;wt=wt+-24|0,!i[(480+M|0)+((fe=fe+-1|0)<<2)>>2];);break t}}for(I=1;I=(Se=I)+1|0,!i[(480+M|0)+(D-Se<<2)>>2];);for(Se=fe+Se|0;;){for(fe=ft=fe+1|0,En[(320+M|0)+(ft<<3)>>3]=i[3904+(U+fe<<2)>>2],le=I=0;le+=En[(I<<3)+T>>3]*En[(320+M|0)+(ft-I<<3)>>3],(0|(I=I+1|0))!=1;);if(En[(fe<<3)+M>>3]=le,!((0|fe)<(0|Se)))break}fe=Se}16777216<=(le=Th(le,0-Xe|0))?(T=(480+M|0)+(fe<<2)|0,Dt=le,I=nt(le*=5960464477539063e-23)<2147483648?~~le:-2147483648,Se=nt(le=Dt+-16777216*(0|I))<2147483648?~~le:-2147483648,i[T>>2]=Se,fe=fe+1|0):(I=nt(le)<2147483648?~~le:-2147483648,wt=Xe),i[(480+M|0)+(fe<<2)>>2]=I}if(le=Th(1,wt),!((0|fe)<=-1)){for(I=fe;En[(I<<3)+M>>3]=le*+i[(480+M|0)+(I<<2)>>2],le*=5960464477539063e-23,T=0<(0|I),I=I+-1|0,T;);if(!((0|fe)<=-1))for(I=fe;;){for(Xe=fe-(T=I)|0,I=le=0;le+=En[6672+(I<<3)>>3]*En[(T+I<<3)+M>>3],!((0|D)<=(0|I))&&(wt=I>>>0<Xe>>>0,I=I+1|0,wt););if(En[(160+M|0)+(Xe<<3)>>3]=le,I=T+-1|0,!(0<(0|T)))break}}if(0<=(fe|(le=0)))for(;le+=En[(160+M|0)+(fe<<3)>>3],T=0<(0|fe),fe=fe+-1|0,T;);return En[x>>3]=Le?-le:le,Re=560+M|0,7&ft}(8+C|0,C,R),b=En[C>>3],(0|w)<=-1?(En[E>>3]=-b,R=0-R|0):En[E>>3]=b),Re=16+C|0,R}function Yw(v,E){return v?function(F,C){t:{if(F){if(C>>>0<=127)break t;if(i[i[1789]>>2]){if(C>>>0<=2047)return Ct[F+1|0]=63&C|128,Ct[0|F]=C>>>6|192,2;if(!((-8192&C)!=57344&&55296<=C>>>0))return Ct[F+2|0]=63&C|128,Ct[0|F]=C>>>12|224,Ct[F+1|0]=C>>>6&63|128,3;if(C+-65536>>>0<=1048575)return Ct[F+3|0]=63&C|128,Ct[0|F]=C>>>18|240,Ct[F+2|0]=C>>>6&63|128,Ct[F+1|0]=C>>>12&63|128,4}else if((-128&C)==57216)break t;i[2086]=25,F=-1}else F=1;return F}return Ct[0|F]=C,1}(v,E):0}function Jw(v,E,F){var C,w,R=0,b=0,T=0,x=0,I=0,M=0,D=0,U=0,z=0,q=Mt[v+4|0];if(i[E>>2]=652,b=i[v+704>>2],1<=(0|(x=i[b>>2]))){for(I=i[v+720>>2],D=i[v+1072>>2];T=(1<<i[D+(i[I+(R<<2)>>2]<<2)>>2])+T|0,(0|x)!=(0|(R=R+1|0)););R=T<<2}if(i[E+4>>2]=Ze(x,12),i[E+8>>2]=i[b>>2]<<2,i[E+12>>2]=i[b>>2]<<2,i[E+16>>2]=i[b>>2]<<2,i[E+20>>2]=i[b>>2]<<2,T=i[b>>2],i[E+28>>2]=R,i[E+24>>2]=T<<2,T=i[b>>2],i[E+40>>2]=R,i[E+36>>2]=R,i[E+32>>2]=T<<2,i[E+44>>2]=i[b+4>>2]<<5,i[E+48>>2]=i[b+4>>2]<<2,i[E+52>>2]=i[b+4>>2]<<2,i[E+56>>2]=i[b+4>>2]<<2,i[E+60>>2]=i[b+4>>2]<<4,i[E+64>>2]=i[b+4>>2]<<4,1<=((R=0)|(x=i[b+8>>2]))){for(I=i[v+780>>2],D=i[v+1072>>2],z=i[v+796>>2],T=0;M=(15+(i[(U=R<<2)+z>>2]<<3)&-16)+M|0,T=(1<<i[D+(i[I+U>>2]<<2)>>2])+T|0,(0|x)!=(0|(R=R+1|0)););R=T<<2}if(i[E+68>>2]=Ze(x,24),i[E+72>>2]=i[b+8>>2]<<2,i[E+76>>2]=i[b+8>>2]<<2,T=i[b+8>>2],i[E+84>>2]=M,i[E+80>>2]=T<<2,i[E+88>>2]=i[b+8>>2]<<4,i[E+92>>2]=i[b+8>>2]<<4,T=i[b+8>>2],i[E+100>>2]=R,i[E+96>>2]=T<<2,T=i[b+8>>2],i[E+140>>2]=R,i[E+136>>2]=R,i[E+132>>2]=R,i[E+128>>2]=R,i[E+124>>2]=R,i[E+120>>2]=R,i[E+116>>2]=R,i[E+112>>2]=R,i[E+108>>2]=R,i[E+104>>2]=T<<2,i[E+144>>2]=i[b+8>>2]<<2,i[E+148>>2]=i[b+8>>2]<<2,i[E+152>>2]=i[b+8>>2]<<2,i[E+156>>2]=i[b+8>>2]<<2,i[E+160>>2]=i[b+8>>2]<<2,i[E+164>>2]=i[b+8>>2]<<2,1<=((R=M=0)|(x=i[b+12>>2]))){for(I=i[v+812>>2],D=i[v+1072>>2],T=0;T=(1<<i[D+(i[I+(R<<2)>>2]<<2)>>2])+T|0,(0|x)!=(0|(R=R+1|0)););R=T<<2}if(i[E+168>>2]=Ze(x,12),i[E+172>>2]=i[b+12>>2]<<2,i[E+176>>2]=i[b+12>>2]<<2,i[E+180>>2]=i[b+12>>2]<<2,i[E+184>>2]=i[b+12>>2]<<2,i[E+188>>2]=i[b+12>>2]<<2,i[E+192>>2]=i[b+12>>2]<<2,i[E+196>>2]=i[b+12>>2]<<2,i[E+200>>2]=i[b+12>>2]<<2,i[E+204>>2]=i[b+12>>2]<<4,i[E+208>>2]=i[b+12>>2]<<4,T=i[b+12>>2],i[E+216>>2]=R,i[E+212>>2]=T<<2,T=i[b+12>>2],i[E+268>>2]=R,i[E+264>>2]=R,i[E+260>>2]=R,i[E+256>>2]=R,i[E+252>>2]=R,i[E+248>>2]=R,i[E+244>>2]=R,i[E+240>>2]=R,i[E+236>>2]=R,i[E+232>>2]=R,i[E+228>>2]=R,i[E+224>>2]=R,i[E+220>>2]=T<<2,i[E+272>>2]=i[b+12>>2]<<2,i[E+276>>2]=i[b+12>>2]<<2,i[E+280>>2]=i[b+12>>2]<<2,i[E+284>>2]=i[b+12>>2]<<2,i[E+288>>2]=i[b+12>>2]<<2,i[E+292>>2]=i[b+12>>2]<<2,1<=((R=0)|(T=i[b+16>>2]))){for(I=i[v+852>>2],D=i[v+1072>>2],z=i[v+892>>2],x=0;M=(15+(i[(U=R<<2)+z>>2]<<3)&-16)+M|0,x=(1<<i[D+(i[I+U>>2]<<2)>>2])+x|0,(0|T)!=(0|(R=R+1|0)););R=x<<2}if(i[E+296>>2]=Ze(T,20),i[E+300>>2]=i[b+16>>2]<<2,i[E+304>>2]=i[b+16>>2],i[E+308>>2]=i[b+16>>2]<<2,i[E+312>>2]=i[b+16>>2]<<2,T=i[b+16>>2],i[E+320>>2]=M,i[E+316>>2]=T<<2,i[E+324>>2]=i[b+16>>2]<<2,i[E+328>>2]=i[b+16>>2]<<4,i[E+332>>2]=i[b+16>>2]<<4,i[E+336>>2]=i[b+16>>2]<<2,i[E+340>>2]=i[b+16>>2]<<2,i[E+344>>2]=i[b+16>>2]<<2,i[E+348>>2]=i[b+16>>2]<<4,i[E+352>>2]=i[b+16>>2]<<4,T=i[b+16>>2],i[E+360>>2]=R,i[E+356>>2]=T<<2,T=i[b+16>>2],i[E+404>>2]=R,i[E+400>>2]=R,i[E+396>>2]=R,i[E+392>>2]=R,i[E+388>>2]=R,i[E+384>>2]=R,i[E+380>>2]=R,i[E+376>>2]=R,i[E+372>>2]=R,i[E+368>>2]=R,i[E+364>>2]=T<<2,i[E+408>>2]=i[b+16>>2]<<2,i[E+412>>2]=i[b+16>>2]<<2,i[E+416>>2]=i[b+16>>2]<<2,i[E+420>>2]=i[b+16>>2]<<2,i[E+424>>2]=i[b+16>>2]<<2,i[E+428>>2]=i[b+16>>2]<<2,I=i[v+704>>2],i[E+432>>2]=Ze(i[I+20>>2],52),i[E+436>>2]=q>>>(R=x=0)<=3?i[I+20>>2]<<2:0,i[E+440>>2]=i[I+20>>2]<<2,i[E+444>>2]=Ze(i[I+52>>2],28),1<=(0|(b=i[I+48>>2]))){for(T=i[v+1072>>2],M=0;M=(D=i[T+(R<<2)>>2])+M|0,x=(1<<D)+x|0,(0|b)!=(0|(R=R+1|0)););R=x<<2,x=M<<2}if(i[E+460>>2]=R,i[E+456>>2]=R,i[E+452>>2]=x,i[E+448>>2]=Ze(b,36),i[E+500>>2]=Ze(i[I+72>>2],28),1<=((M=R=T=0)|(D=i[I+72>>2]))){for(z=i[v+1224>>2],U=i[v+1220>>2],w=i[v+1212>>2],x=0;x=(0|(C=i[(b=M<<2)+U>>2]-i[b+z>>2]|0))<(0|x)?x:1+C|0,R=(0|R)<(0|(b=i[b+w>>2]))?b:R,(0|D)!=(0|(M=M+1|0)););M=R<<2,R=x<<2}if(b=i[I+76>>2],i[E+516>>2]=R,i[E+512>>2]=M,i[E+508>>2]=R,i[E+504>>2]=b<<4,1<=(0|(b=i[I+80>>2]))){for(T=i[v+1248>>2],M=i[v+1072>>2],x=R=0;x=(1<<i[M+(i[T+(R<<2)>>2]<<2)>>2])+x|0,(0|b)!=(0|(R=R+1|0)););T=x<<2}if(i[E+520>>2]=Ze(b,24),i[E+524>>2]=i[I+80>>2]<<2,b=i[I+80>>2],i[E+532>>2]=T,i[E+528>>2]=b<<2,b=i[I+80>>2],i[E+544>>2]=T,i[E+540>>2]=T,i[E+536>>2]=b<<2,b=E,4<=q>>>0){if(i[E+464>>2]=Ze(i[I+120>>2],20),i[E+468>>2]=Ze(i[I+100>>2],28),T=E,1<=((R=M=0)|(D=i[I+104>>2]))){for(v=i[v+1104>>2],x=0;x=i[v+(R<<2)>>2]+x|0,(0|D)!=(0|(R=R+1|0)););v=x<<2}else v=0;i[T+476>>2]=v,i[E+472>>2]=Ze(D,48),i[E+484>>2]=Ze(i[I+108>>2],12),v=i[I+112>>2],i[E+552>>2]=0,i[E+492>>2]=Ze(v,12),v=0}else{if((0|(M=i[I+20>>2]))<1)x=0;else for(D=i[v+1060>>2],z=i[v+952>>2],v=i[v+948>>2],T=x=0;;){if(1<=(0|(U=i[(R=T<<2)+z>>2])))for(U=(R=D+(i[v+R>>2]<<2)|0)+(U<<2)|0;x=i[R>>2]+x|0,(R=R+4|0)>>>0<U>>>0;);if((0|M)==(0|(T=T+1|0)))break}i[E+552>>2]=M<<2,M=i[I+20>>2]<<2,v=x<<2}for(i[b+556>>2]=v,i[E+548>>2]=M,4<q>>>0&&(i[E+480>>2]=Ze(i[I+128>>2],12),i[E+488>>2]=Ze(i[I+132>>2],12),i[E+496>>2]=Ze(i[I+136>>2],12)),R=x=0;R=((b=i[(v=(x<<2)+E|0)>>2])+15&-16)+(i[v>>2]=R)|0,(0|(x=x+1|0))!=140;);i[F>>2]=R}function qw(v,E,F,C){t:{if(!(20<E>>>0||9<(E=E+-9|0)>>>0)){switch(E-1|0){default:return E=i[F>>2],i[F>>2]=E+4,i[v>>2]=i[E>>2];case 0:return E=i[F>>2],i[F>>2]=E+4,E=i[E>>2],i[v>>2]=E,i[v+4>>2]=E>>31;case 1:return E=i[F>>2],i[F>>2]=E+4,i[v>>2]=i[E>>2],i[v+4>>2]=0;case 3:return E=i[F>>2],i[F>>2]=E+4,E=aa[E>>1],i[v>>2]=E,i[v+4>>2]=E>>31;case 4:return E=i[F>>2],i[F>>2]=E+4,i[v>>2]=Ua[E>>1],i[v+4>>2]=0;case 5:return E=i[F>>2],i[F>>2]=E+4,E=Ct[0|E],i[v>>2]=E,i[v+4>>2]=E>>31;case 6:return E=i[F>>2],i[F>>2]=E+4,i[v>>2]=Mt[0|E],i[v+4>>2]=0;case 2:case 7:break t;case 8:}At[C](v,F)}return}E=i[F>>2]+7&-8,i[F>>2]=E+8,F=i[E+4>>2],i[v>>2]=i[E>>2],i[v+4>>2]=F}function Qw(v){var E,F,C=0;if(Zc(Ct[i[v>>2]]))for(;E=i[v>>2],F=Ct[0|E],i[v>>2]=E+1,C=(Ze(C,10)+F|0)-48|0,Zc(Ct[E+1|0]););return C}function Zw(v,E,F,C,w){var R,b;i[204+(Re=b=Re-208|0)>>2]=F,Jo(160+b|(F=0),0,40),i[200+b>>2]=i[204+b>>2],(0|sm(0,E,200+b|0,80+b|0,160+b|0,C,w))<0||(F=0<=i[v+76>>2]?1:F,F=i[v>>2],Ct[v+74|0]<=0&&(i[v>>2]=-33&F),R=32&F,i[v+48>>2]?sm(v,E,200+b|0,80+b|0,160+b|0,C,w):(i[v+48>>2]=80,i[v+16>>2]=80+b,i[v+28>>2]=b,i[v+20>>2]=b,F=i[v+44>>2],sm(v,E,200+(i[v+44>>2]=b)|0,80+b|0,160+b|0,C,w),F&&(At[i[v+36>>2]](v,0,0),i[v+48>>2]=0,i[v+44>>2]=F,i[v+28>>2]=0,i[v+16>>2]=0,i[v+20>>2]=0)),i[v>>2]=i[v>>2]|R),Re=208+b|0}function eS(v,E,F){var C,w;pn(8+(Re=w=Re-160|0)|0,3192,144),i[52+w>>2]=v,i[28+w>>2]=v,i[56+w>>2]=C=(C=-2-v|0)>>>0<256?C:256,i[36+w>>2]=v=v+C|0,i[24+w>>2]=v,Zw(8+w|0,E,F,11,12),C&&(v=i[28+w>>2],Ct[v-((0|v)==i[24+w>>2])|0]=0),Re=160+w|0}function tS(v,E){var F,C,w=0,w=(0|E)!=0;t:{e:{n:{r:if(!(!E|!(3&v)))for(;;){if(!Mt[0|v])break n;if(v=v+1|0,w=(0|(E=E+-1|0))!=0,!E)break r;if(!(3&v))break}if(!w)break e}if(!Mt[0|v])break t;n:{if(4<=E>>>0){for(w=(w=E+-4|0)-(F=-4&w)|0,F=4+(v+F|0)|0;;){if((-1^(C=i[v>>2]))&C+-16843009&-2139062144)break n;if(v=v+4|0,!(3<(E=E+-4|0)>>>0))break}E=w,v=F}if(!E)break e}for(;;){if(!Mt[0|v])break t;if(v=v+1|0,!(E=E+-1|0))break}}return 0}return v}function nS(v){var E,F=0;if(!v)return 32;if(!(1&v))for(;F=F+1|0,E=2&v,v>>>=1,!E;);return F}function rS(v,E){var F,C,w,R,b=0,T=0,T=4;Re=R=Re-256|0;t:if(!((0|E)<2))for(b=i[(w=(E<<2)+v|0)>>2]=R;;){for(pn(b,i[v>>2],F=T>>>0<256?T:256),b=0;pn(i[(C=(b<<2)+v|0)>>2],i[((b=b+1|0)<<2)+v>>2],F),i[C>>2]=i[C>>2]+F,(0|E)!=(0|b););if(!(T=T-F|0))break t;b=i[w>>2]}Re=256+R|0}function aS(v){return nS(i[v>>2]+-1|0)||((v=nS(i[v+4>>2]))?v+32|0:0)}function td(v,E){E|=0,De[0]=v|=0,De[1]=E}function oS(v,E,F){return function(C,w,R){var b,T,x,I,M=Ze(T=R>>>16,x=C>>>16);return C=(65535&(x=((b=Ze(I=65535&R,C&=65535))>>>16)+Ze(x,I)|0))+Ze(C,T)|0,ma=((M+Ze(w,R)|0)+(x>>>16)|0)+(C>>>16)|0,65535&b|C<<16}(v,E,F)}function iS(v,E,F){return function(C,w,R){var b,T,x=0,I=0,M=0,D=0,U=0,z=0,q=0;t:{e:{n:{r:{a:{if(!(I=w))return td((w=C)-Ze(C=(C>>>0)/(R>>>0)|0,R)|0,0),ma=0,C;if(x=R){if(!((D=x+-1|0)&x))break a;U=0-(D=(xt(x)+33|0)-xt(I)|0)|0;break n}if(!C)return td(0,I-Ze(C=(I>>>0)/0|0,0)|0),ma=0,C;if((x=32-xt(I)|0)>>>0<31)break r;break e}if(td(C&D,0),(0|x)==1)break t;return R=31&(x=x?31-xt(x+-1^x)|0:32),C=32<=(63&x)>>>0?(I=0,w>>>R):(I=w>>>R,((1<<R)-1&w)<<32-R|C>>>R),ma=I,C}D=x+1|0,U=63-x|0}if(x=w,M=31&(I=63&D),M=32<=I>>>0?(I=0,x>>>M):(I=x>>>M,((1<<M)-1&x)<<32-M|C>>>M),x=31&(U&=63),32<=U>>>0?(w=C<<x,C=0):(w=(1<<x)-1&C>>>32-x|w<<x,C<<=x),D)for((U=R+(x=-1)|0)>>>0<4294967295&&(x=0);M=(T=z=M<<1|w>>>31)-(b=R&(z=x-((I=I<<1|M>>>31)+(U>>>0<z>>>0)|0)>>31))|0,I=I-(T>>>0<b>>>0)|0,w=w<<1|C>>>31,C=q|C<<1,q=z&=1,D=D+-1|0;);return td(M,I),ma=w<<1|C>>>31,z|C<<1}td(C,w),w=C=0}return ma=w,C}(v,E,F)}function Ia(v){var E;return(-1>>>(E=31&v)&-2)<<E|(-1<<(v=0-v&31)&-2)>>>v}function sS(){return yn.byteLength/65536|0}}(lt,W,Q)}}g=null,d.wasmBinary&&(j=d.wasmBinary);var G={},j=[];typeof G!="object"&&B("no native wasm support detected");var W,Q=new function(ge){var Ne=Array(16);return Ne.grow=function(){17<=Ne.length&&ce("Unable to grow wasm table. Use a higher value for RESERVED_FUNCTION_POINTERS or set ALLOW_TABLE_GROWTH."),Ne.push(null)},Ne.set=function($e,Te){Ne[$e]=Te},Ne.get=function($e){return Ne[$e]},Ne},ue=!1;function se(ge,Ne){ge||ce("Assertion failed: "+Ne)}var ne,J,X,te,Y=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Z(ge,Ne,$e){var Te=Ne+$e;for($e=Ne;ge[$e]&&!(Te<=$e);)++$e;if(16<$e-Ne&&ge.subarray&&Y)return Y.decode(ge.subarray(Ne,$e));for(Te="";Ne<$e;){var De,it,Pe=ge[Ne++];128&Pe?(De=63&ge[Ne++],(224&Pe)==192?Te+=String.fromCharCode((31&Pe)<<6|De):(it=63&ge[Ne++],(Pe=(240&Pe)==224?(15&Pe)<<12|De<<6|it:(7&Pe)<<18|De<<12|it<<6|63&ge[Ne++])<65536?Te+=String.fromCharCode(Pe):(Pe-=65536,Te+=String.fromCharCode(55296|Pe>>10,56320|1023&Pe)))):Te+=String.fromCharCode(Pe)}return Te}function ae(ge,Ne){return ge?Z(X,ge,Ne):""}function ve(ge){return 0<ge%65536&&(ge+=65536-ge%65536),ge}function we(ge){ne=ge,d.HEAP8=J=new Int8Array(ge),d.HEAP16=new Int16Array(ge),d.HEAP32=te=new Int32Array(ge),d.HEAPU8=X=new Uint8Array(ge),d.HEAPU16=new Uint16Array(ge),d.HEAPU32=new Uint32Array(ge),d.HEAPF32=new Float32Array(ge),d.HEAPF64=new Float64Array(ge)}typeof TextDecoder<"u"&&new TextDecoder("utf-16le");var Me=d.TOTAL_MEMORY||16777216;function Ge(ge){for(;0<ge.length;){var Ne,$e=ge.shift();typeof $e=="function"?$e():typeof(Ne=$e.ea)=="number"?$e.da===void 0?d.dynCall_v(Ne):d.dynCall_vi(Ne,$e.da):Ne($e.da===void 0?null:$e.da)}}(W=d.wasmMemory||new function(){return{buffer:new ArrayBuffer(Me/65536*65536),grow:function(ge){return en(ge)}}})&&(ne=W.buffer),ne.byteLength,we(ne),te[2216]=5251936;var Ee,pe=[],_e=[],He=[],Ae=[],ke=(Math.imul&&Math.imul(4294967295,5)===-5||(Math.imul=function(ge,Ne){var $e=65535&ge,Te=65535&Ne;return $e*Te+((ge>>>16)*Te+$e*(Ne>>>16)<<16)|0}),Math.fround||(Ee=new Float32Array(1),Math.fround=function(ge){return Ee[0]=ge,Ee[0]}),Math.clz32||(Math.clz32=function(ge){var Ne=32,$e=ge>>16;return $e&&(Ne-=16,ge=$e),($e=ge>>8)&&(Ne-=8,ge=$e),($e=ge>>4)&&(Ne-=4,ge=$e),($e=ge>>2)&&(Ne-=2,ge=$e),ge>>1?Ne-2:Ne-ge}),Math.trunc||(Math.trunc=function(ge){return ge<0?Math.ceil(ge):Math.floor(ge)}),0),ze=null;function ce(ge){throw d.onAbort&&d.onAbort(ge),L(ge),B(ge),ue=!0,"abort("+ge+"). Build with -s ASSERTIONS=1 for more info."}d.preloadedImages={},d.preloadedAudios={};var me="data:application/octet-stream;base64,";function Be(ge){return String.prototype.startsWith?ge.startsWith(me):ge.indexOf(me)===0}var be="_em_module.wasm";function Oe(){try{if(j)return new Uint8Array(j);var ge=et(be);if(ge)return ge;if(_)return _(be);throw"both async and sync fetching of the wasm failed"}catch(Ne){ce(Ne)}}Be(be)||(k=be,be=d.locateFile?d.locateFile(k,ut):ut+k),_e.push({ea:function(){Ke()}});var Ye=[null,[],[]];function qe(ge){for(var Ne=[],$e=0;$e<ge.length;$e++){var Te=ge[$e];255<Te&&(Te&=255),Ne.push(String.fromCharCode(Te))}return Ne.join("")}var Qe=typeof atob=="function"?atob:function(ge){var Ne="",$e=0;ge=ge.replace(/[^A-Za-z0-9\+\/=]/g,"");do var it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ge.charAt($e++)),Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ge.charAt($e++)),Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ge.charAt($e++)),De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ge.charAt($e++)),it=it<<2|Pe>>4,Pe=(15&Pe)<<4|Te>>2,rt=(3&Te)<<6|De;while(Ne+=String.fromCharCode(it),Te!==64&&(Ne+=String.fromCharCode(Pe)),De!==64&&(Ne+=String.fromCharCode(rt)),$e<ge.length);return Ne};function et(ge){if(Be(ge)){if(ge=ge.slice(me.length),typeof $=="boolean"&&$){try{var Ne=Buffer.from(ge,"base64")}catch{Ne=new Buffer(ge,"base64")}var $e=new Uint8Array(Ne.buffer,Ne.byteOffset,Ne.byteLength)}else try{for(var Te=Qe(ge),De=new Uint8Array(Te.length),Ne=0;Ne<Te.length;++Ne)De[Ne]=Te.charCodeAt(Ne);$e=De}catch{throw Error("Converting base64 string to bytes failed.")}return $e}}var je,lt={a:function(ge,Ne,$e){X.set(X.subarray(Ne,Ne+$e),ge)},b:function(ge){if(2147418112<ge)return!1;for(var Ne=Math.max(J.length,16777216);Ne<ge;)Ne=Ne<=536870912?ve(2*Ne):Math.min(ve((3*Ne+2147483648)/4),2147418112);t:{try{W.grow(Ne-ne.byteLength+65535>>16),we(W.buffer);var $e=1;break t}catch{}$e=void 0}return!!$e},c:function(ge,Ne,$e,Te){try{for(var De=0,it=0;it<$e;it++){for(var Pe=te[Ne+8*it>>2],rt=te[Ne+(8*it+4)>>2],kt=0;kt<rt;kt++){var Jt=X[Pe+kt],tn=Ye[ge];Jt===0||Jt===10?((ge===1?L:B)(Z(tn,0)),tn.length=0):tn.push(Jt)}De+=rt}return te[Te>>2]=De,0}catch(Wt){return typeof FS<"u"&&Wt instanceof FS.fa||ce(Wt),Wt.ga}},memory:W,table:Q},ut=function(){function ge(De){d.asm=De.exports,ke--,d.monitorRunDependencies&&d.monitorRunDependencies(ke),ke==0&&ze&&(De=ze,ze=null,De())}function Ne(De){ge(De.instance)}function $e(De){(j||!P&&!A||typeof fetch!="function"?new Promise(function(it){it(Oe())}):fetch(be,{credentials:"same-origin"}).then(function(it){if(it.ok)return it.arrayBuffer();throw"failed to load wasm binary file at '"+be+"'"}).catch(Oe)).then(function(){return{then:function(it){it({instance:new H})}}}).then(De,function(it){B("failed to asynchronously prepare wasm: "+it),ce(it)})}var Te={env:lt,wasi_unstable:lt};if(ke++,d.monitorRunDependencies&&d.monitorRunDependencies(ke),d.instantiateWasm)try{return d.instantiateWasm(Te,ge)}catch(De){return B("Module.instantiateWasm callback failed with error: "+De),!1}return j||typeof G.instantiateStreaming!="function"||Be(be)||typeof fetch!="function"?$e(Ne):fetch(be,{credentials:"same-origin"}).then(function(De){return G.instantiateStreaming(De,Te).then(Ne,function(it){B("wasm streaming compile failed: "+it),B("falling back to ArrayBuffer instantiation"),$e(Ne)})}),{}}(),Ke=(d.asm=ut,d.___wasm_call_ctors=function(){return d.asm.d.apply(null,arguments)}),ct=(d._csmGetVersion=function(){return d.asm.e.apply(null,arguments)},d._csmGetLatestMocVersion=function(){return d.asm.f.apply(null,arguments)},d._csmGetMocVersion=function(){return d.asm.g.apply(null,arguments)},d._csmHasMocConsistency=function(){return d.asm.h.apply(null,arguments)},d._csmSetLogFunction=function(){return d.asm.i.apply(null,arguments)},d._csmReviveMocInPlace=function(){return d.asm.j.apply(null,arguments)},d._csmReadCanvasInfo=function(){return d.asm.k.apply(null,arguments)},d._csmGetSizeofModel=function(){return d.asm.l.apply(null,arguments)},d._csmInitializeModelInPlace=function(){return d.asm.m.apply(null,arguments)},d._csmUpdateModel=function(){return d.asm.n.apply(null,arguments)},d._csmGetParameterCount=function(){return d.asm.o.apply(null,arguments)},d._csmGetParameterIds=function(){return d.asm.p.apply(null,arguments)},d._csmGetParameterTypes=function(){return d.asm.q.apply(null,arguments)},d._csmGetParameterMinimumValues=function(){return d.asm.r.apply(null,arguments)},d._csmGetParameterMaximumValues=function(){return d.asm.s.apply(null,arguments)},d._csmGetParameterDefaultValues=function(){return d.asm.t.apply(null,arguments)},d._csmGetParameterValues=function(){return d.asm.u.apply(null,arguments)},d._csmGetPartCount=function(){return d.asm.v.apply(null,arguments)},d._csmGetPartIds=function(){return d.asm.w.apply(null,arguments)},d._csmGetPartOpacities=function(){return d.asm.x.apply(null,arguments)},d._csmGetPartParentPartIndices=function(){return d.asm.y.apply(null,arguments)},d._csmGetDrawableCount=function(){return d.asm.z.apply(null,arguments)},d._csmGetDrawableIds=function(){return d.asm.A.apply(null,arguments)},d._csmGetDrawableConstantFlags=function(){return d.asm.B.apply(null,arguments)},d._csmGetDrawableDynamicFlags=function(){return d.asm.C.apply(null,arguments)},d._csmGetDrawableTextureIndices=function(){return d.asm.D.apply(null,arguments)},d._csmGetDrawableDrawOrders=function(){return d.asm.E.apply(null,arguments)},d._csmGetDrawableRenderOrders=function(){return d.asm.F.apply(null,arguments)},d._csmGetDrawableOpacities=function(){return d.asm.G.apply(null,arguments)},d._csmGetDrawableMaskCounts=function(){return d.asm.H.apply(null,arguments)},d._csmGetDrawableMasks=function(){return d.asm.I.apply(null,arguments)},d._csmGetDrawableVertexCounts=function(){return d.asm.J.apply(null,arguments)},d._csmGetDrawableVertexPositions=function(){return d.asm.K.apply(null,arguments)},d._csmGetDrawableVertexUvs=function(){return d.asm.L.apply(null,arguments)},d._csmGetDrawableIndexCounts=function(){return d.asm.M.apply(null,arguments)},d._csmGetDrawableIndices=function(){return d.asm.N.apply(null,arguments)},d._csmGetDrawableMultiplyColors=function(){return d.asm.O.apply(null,arguments)},d._csmGetDrawableScreenColors=function(){return d.asm.P.apply(null,arguments)},d._csmGetDrawableParentPartIndices=function(){return d.asm.Q.apply(null,arguments)},d._csmResetDrawableDynamicFlags=function(){return d.asm.R.apply(null,arguments)},d._csmGetParameterKeyCounts=function(){return d.asm.S.apply(null,arguments)},d._csmGetParameterKeyValues=function(){return d.asm.T.apply(null,arguments)},d._csmMallocMoc=function(){return d.asm.U.apply(null,arguments)},d._csmMallocModelAndInitialize=function(){return d.asm.V.apply(null,arguments)},d._csmMalloc=function(){return d.asm.W.apply(null,arguments)},d._csmFree=function(){return d.asm.X.apply(null,arguments)},d._csmInitializeAmountOfMemory=function(){return d.asm.Y.apply(null,arguments)},d.stackSave=function(){return d.asm.Z.apply(null,arguments)}),Et=d.stackAlloc=function(){return d.asm._.apply(null,arguments)},Ut=d.stackRestore=function(){return d.asm.$.apply(null,arguments)},en=d.__growWasmMemory=function(){return d.asm.aa.apply(null,arguments)};function gt(){function ge(){if(!je&&(je=!0,!ue)){if(Ge(_e),Ge(He),d.onRuntimeInitialized&&d.onRuntimeInitialized(),d.postRun)for(typeof d.postRun=="function"&&(d.postRun=[d.postRun]);d.postRun.length;){var Ne=d.postRun.shift();Ae.unshift(Ne)}Ge(Ae)}}if(!(0<ke)){if(d.preRun)for(typeof d.preRun=="function"&&(d.preRun=[d.preRun]);d.preRun.length;)(function(){var Ne=d.preRun.shift();pe.unshift(Ne)})();Ge(pe),0<ke||(d.setStatus?(d.setStatus("Running..."),setTimeout(function(){setTimeout(function(){d.setStatus("")},1),ge()},1)):ge())}}if(d.dynCall_vi=function(){return d.asm.ba.apply(null,arguments)},d.asm=ut,d.ccall=function(ge,Ne,$e,Te){var De={string:function(Jt){var tn=0;if(Jt!=null&&Jt!==0){var Wt=1+(Jt.length<<2),yt=tn=Et(Wt),yn=X;if(0<Wt){for(var Wt=yt+Wt-1,Wa=0;Wa<Jt.length;++Wa){var At=Jt.charCodeAt(Wa);if((At=55296<=At&&At<=57343?65536+((1023&At)<<10)|1023&Jt.charCodeAt(++Wa):At)<=127){if(Wt<=yt)break;yn[yt++]=At}else{if(At<=2047){if(Wt<=yt+1)break;yn[yt++]=192|At>>6}else{if(At<=65535){if(Wt<=yt+2)break;yn[yt++]=224|At>>12}else{if(Wt<=yt+3)break;yn[yt++]=240|At>>18,yn[yt++]=128|At>>12&63}yn[yt++]=128|At>>6&63}yn[yt++]=128|63&At}}yn[yt]=0}}return tn},array:function(Jt){var tn=Et(Jt.length);return J.set(Jt,tn),tn}},it=function(Jt){var tn=d["_"+Jt];return se(tn,"Cannot call unknown function "+Jt+", make sure it is exported"),tn}(ge),Pe=[];if(ge=0,Te)for(var rt=0;rt<Te.length;rt++){var kt=De[$e[rt]];kt?(ge===0&&(ge=ct()),Pe[rt]=kt(Te[rt])):Pe[rt]=Te[rt]}return $e=function(Jt){return Ne==="string"?ae(Jt):Ne==="boolean"?!!Jt:Jt}($e=it.apply(null,Pe)),ge!==0&&Ut(ge),$e},d.UTF8ToString=ae,d.addFunction=function(ge,Ne){var $e=Q.length;try{Q.grow(1)}catch(Te){throw!Te instanceof RangeError?Te:"Unable to grow wasm table. Use a higher value for RESERVED_FUNCTION_POINTERS or set ALLOW_TABLE_GROWTH."}try{Q.set($e,ge)}catch(Te){if(!Te instanceof TypeError)throw Te;se(Ne!==void 0,"Missing signature argument to addFunction"),Q.set($e,ge)}return $e},d.then=function(ge){var Ne;return je?ge(d):(Ne=d.onRuntimeInitialized,d.onRuntimeInitialized=function(){Ne&&Ne(),ge(d)}),d},ze=function ge(){je||gt(),je||(ze=ge)},d.run=gt,d.preInit)for(typeof d.preInit=="function"&&(d.preInit=[d.preInit]);0<d.preInit.length;)d.preInit.pop()();return gt(),f}),c=(typeof exports=="object"&&typeof module=="object"?module.exports=u:typeof define=="function"&&define.amd?define([],function(){return u}):typeof exports=="object"&&(exports._em_module=u),u())})(hy=hy||{});window.Live2DCubismCore=hy;const py=e=>{const t=e.length;if(t===0)return;const n=Math.floor(Math.random()*t);return e[n]},Xfe=(e,t)=>{let n;return{start:function(){return $a(this,null,function*(){const r=()=>$a(this,null,function*(){n&&(yield e(),clearTimeout(n),n=setTimeout(r,t))});n||(clearTimeout(n),n=setTimeout(r,t))})},stop:function(){clearTimeout(n),n=void 0}}},qm=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),U0=e=>typeof e=="number"||e instanceof Number,M$=e=>Array.isArray(e),Jd=e=>typeof e=="function",Or=(e,t)=>{const n=Object.assign({},e);return qm(e)&&qm(t)&&Object.keys(t).forEach(r=>{qm(t[r])?r in e?n[r]=Or(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n};class Yfe{constructor(){wn(this,"eventMap",new Map)}add(t,n){if(!n)return;const r=this.eventMap.get(t)||[];r.push(n),this.eventMap.set(t,r)}emit(t,...n){const r=this.eventMap.get(t);r==null||r.forEach(a=>void a(...n))}}const ax=e=>`
  @keyframes oml2d-shake-tips{
    0% {
      transform: translate(-50%, 5%) scale(0.99);
    }
    50% {
   
      transform: translate(-50%, 0%) scale(1);
    }
    100% {
      transform: translate(-50%, 5%) scale(0.99);
    }
  }
  
  @keyframes oml2d-stage-slide-in {
    from {
      transform: translateY(130%);
    }
    to {
      transform: translateY(0%);
    }
  }
  
  @keyframes oml2d-stage-slide-out {
    from {
      transform: translateY(0%);
    }
    to {
      transform: translateY(130%);
    }
  }
  
  @keyframes oml2d-display-tips {
    0% {
      opacity: 0;
      visibility: hidden;
    }
    100% {
      opacity: 1;
      visibility: visible;
    }
  }
  
  @keyframes oml2d-hidden-tips {
    0% {
      opacity: 1;
      visibility: visible;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes oml2d-loading-rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  .oml2d-icon {
    width: 1em; 
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
  }
  
  .oml2d-loading{
    animation-name: oml2d-loading-rotate;
    animation-duration: 600ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }

  .oml2d-menus-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    align-items: center;
    transition: all 300ms;
    color: ${e};
    cursor: pointer;
    background-color: #fff;
  }
  
  .oml2d-menus-item:hover {
    background-color: ${e};
    color: #fff;
    box-shadow: 0 0 5px #000;
  }
  
  #${Wi.menus} .oml2d-menus-item:not(:last-child) {
    margin-bottom: 10px;
  }
  
  @keyframes oml2d-status-bar-left-slide-out {
    0% {
      transform: translateX(-8%);
    }
    100% {
      transform: translateX(-120%);
    }
  }
  
  
  @keyframes oml2d-status-bar-left-slide-in {
    0% {
      transform: translateX(-120%);
    }
    100% {
      transform: translateX(-8%);
    }
  }

  @keyframes oml2d-status-bar-right-slide-out {
    0% {
      transform: translateX(8%);
    }
    100% {
      transform: translateX(120%);
    }
  }
  
  
  @keyframes oml2d-status-bar-right-slide-in {
    0% {
      transform: translateX(120%);
    }
    100% {
      transform: translateX(8%);
    }
  }
  `,Jfe={},qfe={width:"0px",height:"0px",position:"fixed",right:"auto",bottom:0,zIndex:"9997",transform:"translateY(130%)"},ox={position:"absolute",fontSize:"18px",borderRadius:"10px",filter:"drop-shadow(0 0 5px #999)",border:"2px solid #fff",color:"#fff",padding:"5px 5px",opacity:0,visibility:"hidden",transform:"translateX(-50%)",textAlign:"center",justifyContent:"center",animationDuration:"1000ms,1000ms",animationFillMode:"forwards, none",animationIterationCount:"1, infinite",width:"60%",left:"50%",top:0,display:"flex",alignItems:"center",minHeight:"100px"},ix={minWidth:"20px",minHeight:"40px",position:"fixed",transform:"translateX(-110%)",bottom:"80px",padding:"7px 5px",zIndex:"9998",borderStyle:"solid",borderColor:"#fff",fontWeight:"bold",borderRadius:"5px",borderWidth:"2px",boxShadow:"0 0 5px #999",color:"#fff",display:"flex",alignItems:"center",textAlign:"center",flexWrap:"wrap",fontSize:"14px",writingMode:"vertical-lr",cursor:"pointer"},sx={transition:"all 500ms",visibility:"hidden",opacity:0,position:"absolute",bottom:"10%",zIndex:"9999",fontSize:"26px"},Qfe="#38B0DE",Zfe="#F08080",Qu={dockedPosition:"left",mobileDisplay:!1,primaryColor:Qfe,sayHello:!0,transitionTime:1e3,parentElement:document.body,importType:"complete",libraryUrls:{complete:"",cubism2:"",cubism5:""},stageStyle:Jfe,models:[],statusBar:{disable:!1,transitionTime:800,switchingMessage:"正在切换",loadingMessage:"加载中",loadSuccessMessage:"加载成功",loadFailMessage:"加载失败",reloadMessage:"重新加载",restMessage:"看板娘休息中",restMessageDuration:8e3,loadingIcon:"icon-loading",errorColor:Zfe,style:ix,mobileStyle:ix},tips:{messageLine:3,mobileStyle:ox,style:ox,idleTips:{wordTheDay:!1,message:[],duration:5e3,interval:1e4,priority:2},welcomeTips:{message:{daybreak:"早上好！一日之计在于晨，美好的一天就要开始了。",morning:"上午好！工作顺利嘛，不要久坐，多起来走动走动哦！",noon:"中午了，工作了一个上午，现在是午餐时间！",afternoon:"午后很容易犯困呢，来杯咖啡吧~",dusk:"傍晚了！工作一天幸苦啦~",night:"晚上好，今天过得怎么样呢？",lateNight:"已经这么晚了呀，早点休息吧，晚安~",weeHours:"这么晚还不睡吗？当心熬夜秃头哦！"},duration:6e3,priority:3},copyTips:{duration:3e3,priority:3,message:["你复制了什么内容呢?记得注明出处哦~"]}},menus:{disable:!1,items:[{id:"Rest",icon:"icon-rest",title:"休息",onClick(e){var t;e.statusBarOpen((t=e.options.statusBar)==null?void 0:t.restMessage),e.clearTips(),e.setStatusBarClickEvent(()=>{e.statusBarClose(),e.stageSlideIn(),e.statusBarClearEvents()}),e.stageSlideOut()}},{id:"SwitchModelClothes",icon:"icon-skin",title:"切换衣服",onClick(e){e.loadNextModelClothes()}},{id:"SwitchModel",icon:"icon-switch",title:"切换模型",onClick(e){e.loadNextModel()}},{id:"About",icon:"icon-about",title:"关于",onClick(){window.open("https://oml2d.com")}}],style:sx,itemStyle:{},mobileStyle:sx,mobileItemStyle:{}},initialStatus:"active"},Wi={globalStyle:"oml2d-global-style",stage:"oml2d-stage",canvas:"oml2d-canvas",statusBar:"oml2d-statusBar",tips:"oml2d-tips",menus:"oml2d-menus",iconSvg:"oml2d-icon-svg"},ehe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lx=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ehe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},ux=e=>e==="*"||e==="x"||e==="X",cx=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},the=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],nhe=(e,t)=>{if(ux(e)||ux(t))return 0;const[n,r]=the(cx(e),cx(t));return n>r?1:n<r?-1:0},dx=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=nhe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},rhe=(e,t)=>{const n=lx(e),r=lx(t),a=n.pop(),o=r.pop(),s=dx(n,r);return s!==0?s:a&&o?dx(a.split("."),o.split(".")):a||o?a?-1:1:0},ahe=(e,t,n)=>{ohe(n);const r=rhe(e,t);return O$[n].includes(r)},O$={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},fx=Object.keys(O$),ohe=e=>{if(fx.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${fx.join("|")}`)};var ha=(e=>(e.pc="PC",e.mobile="MOBILE",e))(ha||{}),$$=(e=>(e.ALL="ALL",e.IDLE="IDLE",e.NONE="NONE",e))($$||{});const ihe=function(e){const{message:t}=e;let n="";const r=new Date().getHours().toString(),a=/^[5-7]$/,o=/^(?:[8-9]|1[0-1])$/,s=/^(1[2-3])$/,l=/^1[4-7]$/,u=/^1[8-9]$/,c=/^2[0-1]$/,f=/^2[2-3]$/;return a.test(r)?n=t.daybreak:o.test(r)?n=t==null?void 0:t.morning:s.test(r)?n=t==null?void 0:t.noon:l.test(r)?n=t==null?void 0:t.afternoon:u.test(r)?n=t==null?void 0:t.dusk:c.test(r)?n=t==null?void 0:t.night:f.test(r)?n=t==null?void 0:t.lateNight:n=t==null?void 0:t.weeHours,n},she=()=>console.log(`
 %c 🎉🎉🎉 %c %c ✨ oh-my-live2d v0.19.3 - https://oml2d.com Happy Hacking !! ✨ %c %c 🎉🎉🎉 
`,"background: #add7fb; padding:5px 0;","background: #58b0fc; padding:5px 0;","color: #fff; background: #030307; padding:5px 0;","background: #58b0fc; padding:5px 0;","background: #add7fb; padding:5px 0;"),di=e=>{const t=Kfe({},e);return"width"in e&&U0(e.width)&&(t.width=`${e.width}px`),"height"in e&&U0(e.height)&&(t.height=`${e.height}px`),t},au=(e,t)=>{Object.assign(t.style,e)},lhe=e=>new Promise(t=>setTimeout(t,e)),Xi=e=>{const t=document.createElement(e.tagName);return t.id=e.id,e.className&&(t.className=e.className),e.dataName&&t.setAttribute("data-name",e.dataName),e.children&&e.children.forEach(n=>{t.appendChild(Xi(n))}),e.innerHtml&&(t.innerHTML=e.innerHtml),e.innerText&&(t.innerText=e.innerText),t},uhe=()=>$a(void 0,null,function*(){const e=yield fetch("https://unpkg.com/oh-my-live2d@latest/package.json"),{version:t}=yield e.json();ahe(t,"0.19.3",">")&&console.warn("[oml2d] 检查到 oh-my-live2d 存在最新版:",`v${t}`,"请前往: https://oml2d.com 以获得最新版详细信息, 并及时更新.")}),hx=e=>$a(void 0,null,function*(){const t=yield(yield fetch("https://v1.hitokoto.cn")).json();return e?e(t):`${t.hitokoto}`}),R$=window.matchMedia("screen and (max-width: 768px)"),Kc=()=>R$.matches?ha.mobile:ha.pc,che=e=>{R$.addEventListener("change",t=>{t.matches?e(ha.mobile):e(ha.pc)})},dhe=(e,t)=>{const n=Or(e,t);return n.parentElement=t.parentElement||document.body,n},kf=(e,t=0,n=!1)=>{switch(e){case"left":return n?{left:"auto",right:`${t}px`}:{left:`${t}px`,right:"auto"};case"right":return n?{left:`${t}px`,right:"auto"}:{left:"auto",right:`${t}px`}}},fhe=(e,t)=>{let n=t;for(;n===t;)n=Math.floor(Math.random()*e);return n};class hhe{constructor(t){wn(this,"styleSheet"),this.options=t}create(){document.getElementById(Wi.globalStyle)||(this.styleSheet=Xi({tagName:"style",id:Wi.globalStyle,innerHtml:ax(this.options.primaryColor)}))}mount(){this.styleSheet&&document.head.append(this.styleSheet)}initialize(){this.create(),this.mount(),this.reloadStyleSheet()}initializeStyle(){this.reloadStyleSheet()}reloadStyleSheet(){this.styleSheet&&(this.styleSheet.innerHTML=ax(this.options.primaryColor))}}class phe{constructor(t,n){wn(this,"element"),wn(this,"style",{}),wn(this,"itemStyle",{}),wn(this,"menuItemList",[]),wn(this,"_menuOptions",Qu.menus),this.options=t,this.oml2d=n}reload(t){this.unmount(),this.create(),this.reloadStyle(),this.mount(t)}get menuOptions(){return this._menuOptions}set menuOptions(t){let n;Jd(t)?n=Or(Qu.menus,t(this.options.models[this.oml2d.modelIndex||0],this.oml2d.modelIndex||0)):n=t,this._menuOptions=n}createMenuItemElements(t){this.menuItemList=t.map(n=>{const r=Xi({id:n.id,tagName:"div",dataName:n.id,className:"oml2d-menus-item",innerHtml:`<svg class="oml2d-icon"><use xlink:href="#${n.icon}"></use></svg>`});return r.title=n.title,r.onclick=()=>{var a;(a=n.onClick)==null||a.call(n,this.oml2d)},r})}createMenuItem(){if(M$(this.menuOptions.items))this.createMenuItemElements(this.menuOptions.items);else if(Jd(this.menuOptions.items)){const t=this.menuOptions.items(Qu.menus.items);this.createMenuItemElements(t)}}create(){this.menuOptions=this.options.menus,this.menuOptions.disable===!1&&(this.element=Xi({id:Wi.menus,tagName:"div",className:Wi.menus}),this.createMenuItem())}unmountItems(){this.menuItemList.forEach(t=>{t.remove()})}unmount(){var t;this.unmountItems(),(t=this.element)==null||t.remove()}mountItems(){this.element&&this.element.append(...this.menuItemList)}mount(t){if(this.element){t.append(this.element),this.mountItems(),t.onmouseover=()=>{this.setStyle({opacity:1,visibility:"visible"})},t.onmouseout=()=>{this.setStyle({opacity:0,visibility:"hidden"})};let n;t.ontouchend=()=>{clearTimeout(n),this.setStyle({opacity:1,visibility:"visible"}),n=setTimeout(()=>{this.setStyle({opacity:0,visibility:"hidden"})},3e3)}}}reloadStyle(){switch(this.style={},Kc()){case ha.pc:this.setStyle(di(Or(kf(this.options.dockedPosition,10,!0),this.menuOptions.style||{}))),this.setItemStyle(di(this.menuOptions.itemStyle||{}));break;case ha.mobile:this.setStyle(di(Or(kf(this.options.dockedPosition,10,!0),this.menuOptions.mobileStyle||{}))),this.setItemStyle(di(this.menuOptions.mobileItemStyle||{}));break}}update(t){this.options=t,this.reloadStyle()}setStyle(t){this.element&&(this.style=Or(this.style,t),au(this.style,this.element))}setItemStyle(t){this.itemStyle=Or(this.itemStyle,t),this.menuItemList.forEach(n=>{au(this.itemStyle,n)})}}/*!
 * @pixi/constants - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/constants is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var bi;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(bi||(bi={}));var Cc;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(Cc||(Cc={}));var Lf;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Lf||(Lf={}));var on;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(on||(on={}));var co;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(co||(co={}));var $t;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})($t||($t={}));var ks;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(ks||(ks={}));var an;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(an||(an={}));var Nf;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(Nf||(Nf={}));var Do;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(Do||(Do={}));var Bo;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Bo||(Bo={}));var To;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(To||(To={}));var Eo;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Eo||(Eo={}));var oo;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(oo||(oo={}));var Df;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(Df||(Df={}));var Na;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(Na||(Na={}));var wr;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR"})(wr||(wr={}));var vy;(function(e){e[e.RED=1]="RED",e[e.GREEN=2]="GREEN",e[e.BLUE=4]="BLUE",e[e.ALPHA=8]="ALPHA"})(vy||(vy={}));var sr;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(sr||(sr={}));var Ho;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Ho||(Ho={}));/*!
 * @pixi/settings - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/settings is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var k$={createCanvas:function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){var e;return(e=document.baseURI)!==null&&e!==void 0?e:window.location.href},fetch:function(e,t){return fetch(e,t)}},Qm=/iPhone/i,px=/iPod/i,vx=/iPad/i,mx=/\biOS-universal(?:.+)Mac\b/i,Zm=/\bAndroid(?:.+)Mobile\b/i,gx=/Android/i,Tu=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Zh=/Silk/i,Pi=/Windows Phone/i,yx=/\bWindows(?:.+)ARM\b/i,bx=/BlackBerry/i,_x=/BB10/i,wx=/Opera Mini/i,Sx=/\b(CriOS|Chrome)(?:.+)Mobile/i,Tx=/Mobile(?:.+)Firefox\b/i,Ex=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function vhe(e){return function(t){return t.test(e)}}function mhe(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var a=vhe(n),o={apple:{phone:a(Qm)&&!a(Pi),ipod:a(px),tablet:!a(Qm)&&(a(vx)||Ex(t))&&!a(Pi),universal:a(mx),device:(a(Qm)||a(px)||a(vx)||a(mx)||Ex(t))&&!a(Pi)},amazon:{phone:a(Tu),tablet:!a(Tu)&&a(Zh),device:a(Tu)||a(Zh)},android:{phone:!a(Pi)&&a(Tu)||!a(Pi)&&a(Zm),tablet:!a(Pi)&&!a(Tu)&&!a(Zm)&&(a(Zh)||a(gx)),device:!a(Pi)&&(a(Tu)||a(Zh)||a(Zm)||a(gx))||a(/\bokhttp\b/i)},windows:{phone:a(Pi),tablet:a(yx),device:a(Pi)||a(yx)},other:{blackberry:a(bx),blackberry10:a(_x),opera:a(wx),firefox:a(Tx),chrome:a(Sx),device:a(bx)||a(_x)||a(wx)||a(Tx)||a(Sx)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var fo=mhe(globalThis.navigator);function ghe(){return!fo.apple.device}function yhe(e){var t=!0;if(fo.tablet||fo.phone){if(fo.apple.device){var n=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(n){var r=parseInt(n[1],10);r<11&&(t=!1)}}if(fo.android.device){var n=navigator.userAgent.match(/Android\s([0-9.]*)/);if(n){var r=parseInt(n[1],10);r<7&&(t=!1)}}}return t?e:4}var Nt={ADAPTER:k$,MIPMAP_TEXTURES:To.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:sr.NONE,SPRITE_MAX_TEXTURES:yhe(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,width:800,height:600,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,antialias:!1,preserveDrawingBuffer:!1},GC_MODE:Df.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Bo.CLAMP,SCALE_MODE:Do.LINEAR,PRECISION_VERTEX:Na.HIGH,PRECISION_FRAGMENT:fo.apple.device?Na.HIGH:Na.MEDIUM,CAN_UPLOAD_SAME_BUFFER:ghe(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},r0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bhe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var L$={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function o(u,c,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new a(f,d||u,p),y=n?n+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],g]:u._events[y].push(g):(u._events[y]=g,u._eventsCount++),u}function s(u,c){--u._eventsCount===0?u._events=new r:delete u._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,g=new Array(p);d<p;d++)g[d]=f[d].fn;return g},l.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,p,g){var y=n?n+u:u;if(!this._events[y])return!1;var m=this._events[y],S=arguments.length,_,P;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),S){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,c),!0;case 3:return m.fn.call(m.context,c,f),!0;case 4:return m.fn.call(m.context,c,f,d),!0;case 5:return m.fn.call(m.context,c,f,d,p),!0;case 6:return m.fn.call(m.context,c,f,d,p,g),!0}for(P=1,_=new Array(S-1);P<S;P++)_[P-1]=arguments[P];m.fn.apply(m.context,_)}else{var A=m.length,$;for(P=0;P<A;P++)switch(m[P].once&&this.removeListener(u,m[P].fn,void 0,!0),S){case 1:m[P].fn.call(m[P].context);break;case 2:m[P].fn.call(m[P].context,c);break;case 3:m[P].fn.call(m[P].context,c,f);break;case 4:m[P].fn.call(m[P].context,c,f,d);break;default:if(!_)for($=1,_=new Array(S-1);$<S;$++)_[$-1]=arguments[$];m[P].fn.apply(m[P].context,_)}}return!0},l.prototype.on=function(u,c,f){return o(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return o(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return s(this,p),this;var g=this._events[p];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&s(this,p);else{for(var y=0,m=[],S=g.length;y<S;y++)(g[y].fn!==c||d&&!g[y].once||f&&g[y].context!==f)&&m.push(g[y]);m.length?this._events[p]=m.length===1?m[0]:m:s(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&s(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(L$);var _he=L$.exports;const as=M1(_he);var O1={exports:{}};O1.exports=Uv;O1.exports.default=Uv;function Uv(e,t,n){n=n||2;var r=t&&t.length,a=r?t[0]*n:e.length,o=N$(e,0,a,n,!0),s=[];if(!o||o.next===o.prev)return s;var l,u,c,f,d,p,g;if(r&&(o=Che(e,t,o,n)),e.length>80*n){l=c=e[0],u=f=e[1];for(var y=n;y<a;y+=n)d=e[y],p=e[y+1],d<l&&(l=d),p<u&&(u=p),d>c&&(c=d),p>f&&(f=p);g=Math.max(c-l,f-u),g=g!==0?32767/g:0}return Ff(o,s,n,l,u,g,0),s}function N$(e,t,n,r,a){var o,s;if(a===yy(e,t,n,r)>0)for(o=t;o<n;o+=r)s=Cx(o,e[o],e[o+1],s);else for(o=n-r;o>=t;o-=r)s=Cx(o,e[o],e[o+1],s);return s&&Vv(s,s.next)&&(Hf(s),s=s.next),s}function ou(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(Vv(n,n.next)||hr(n.prev,n,n.next)===0)){if(Hf(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function Ff(e,t,n,r,a,o,s){if(e){!s&&o&&Mhe(e,r,a,o);for(var l=e,u,c;e.prev!==e.next;){if(u=e.prev,c=e.next,o?She(e,r,a,o):whe(e)){t.push(u.i/n|0),t.push(e.i/n|0),t.push(c.i/n|0),Hf(e),e=c.next,l=c.next;continue}if(e=c,e===l){s?s===1?(e=The(ou(e),t,n),Ff(e,t,n,r,a,o,2)):s===2&&Ehe(e,t,n,r,a,o):Ff(ou(e),t,n,r,a,o,1);break}}}}function whe(e){var t=e.prev,n=e,r=e.next;if(hr(t,n,r)>=0)return!1;for(var a=t.x,o=n.x,s=r.x,l=t.y,u=n.y,c=r.y,f=a<o?a<s?a:s:o<s?o:s,d=l<u?l<c?l:c:u<c?u:c,p=a>o?a>s?a:s:o>s?o:s,g=l>u?l>c?l:c:u>c?u:c,y=r.next;y!==t;){if(y.x>=f&&y.x<=p&&y.y>=d&&y.y<=g&&Uu(a,l,o,u,s,c,y.x,y.y)&&hr(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function She(e,t,n,r){var a=e.prev,o=e,s=e.next;if(hr(a,o,s)>=0)return!1;for(var l=a.x,u=o.x,c=s.x,f=a.y,d=o.y,p=s.y,g=l<u?l<c?l:c:u<c?u:c,y=f<d?f<p?f:p:d<p?d:p,m=l>u?l>c?l:c:u>c?u:c,S=f>d?f>p?f:p:d>p?d:p,_=my(g,y,t,n,r),P=my(m,S,t,n,r),A=e.prevZ,$=e.nextZ;A&&A.z>=_&&$&&$.z<=P;){if(A.x>=g&&A.x<=m&&A.y>=y&&A.y<=S&&A!==a&&A!==s&&Uu(l,f,u,d,c,p,A.x,A.y)&&hr(A.prev,A,A.next)>=0||(A=A.prevZ,$.x>=g&&$.x<=m&&$.y>=y&&$.y<=S&&$!==a&&$!==s&&Uu(l,f,u,d,c,p,$.x,$.y)&&hr($.prev,$,$.next)>=0))return!1;$=$.nextZ}for(;A&&A.z>=_;){if(A.x>=g&&A.x<=m&&A.y>=y&&A.y<=S&&A!==a&&A!==s&&Uu(l,f,u,d,c,p,A.x,A.y)&&hr(A.prev,A,A.next)>=0)return!1;A=A.prevZ}for(;$&&$.z<=P;){if($.x>=g&&$.x<=m&&$.y>=y&&$.y<=S&&$!==a&&$!==s&&Uu(l,f,u,d,c,p,$.x,$.y)&&hr($.prev,$,$.next)>=0)return!1;$=$.nextZ}return!0}function The(e,t,n){var r=e;do{var a=r.prev,o=r.next.next;!Vv(a,o)&&D$(a,r,r.next,o)&&Bf(a,o)&&Bf(o,a)&&(t.push(a.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Hf(r),Hf(r.next),r=e=o),r=r.next}while(r!==e);return ou(r)}function Ehe(e,t,n,r,a,o){var s=e;do{for(var l=s.next.next;l!==s.prev;){if(s.i!==l.i&&Rhe(s,l)){var u=F$(s,l);s=ou(s,s.next),u=ou(u,u.next),Ff(s,t,n,r,a,o,0),Ff(u,t,n,r,a,o,0);return}l=l.next}s=s.next}while(s!==e)}function Che(e,t,n,r){var a=[],o,s,l,u,c;for(o=0,s=t.length;o<s;o++)l=t[o]*r,u=o<s-1?t[o+1]*r:e.length,c=N$(e,l,u,r,!1),c===c.next&&(c.steiner=!0),a.push($he(c));for(a.sort(xhe),o=0;o<a.length;o++)n=Ihe(a[o],n);return n}function xhe(e,t){return e.x-t.x}function Ihe(e,t){var n=Ahe(e,t);if(!n)return t;var r=F$(n,e);return ou(r,r.next),ou(n,n.next)}function Ahe(e,t){var n=t,r=e.x,a=e.y,o=-1/0,s;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var l=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(l<=r&&l>o&&(o=l,s=n.x<n.next.x?n:n.next,l===r))return s}n=n.next}while(n!==t);if(!s)return null;var u=s,c=s.x,f=s.y,d=1/0,p;n=s;do r>=n.x&&n.x>=c&&r!==n.x&&Uu(a<f?r:o,a,c,f,a<f?o:r,a,n.x,n.y)&&(p=Math.abs(a-n.y)/(r-n.x),Bf(n,e)&&(p<d||p===d&&(n.x>s.x||n.x===s.x&&Phe(s,n)))&&(s=n,d=p)),n=n.next;while(n!==u);return s}function Phe(e,t){return hr(e.prev,e,t.prev)<0&&hr(t.next,e,e.next)<0}function Mhe(e,t,n,r){var a=e;do a.z===0&&(a.z=my(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,Ohe(a)}function Ohe(e){var t,n,r,a,o,s,l,u,c=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,l=0,t=0;t<c&&(l++,r=r.nextZ,!!r);t++);for(u=c;l>0||u>0&&r;)l!==0&&(u===0||!r||n.z<=r.z)?(a=n,n=n.nextZ,l--):(a=r,r=r.nextZ,u--),o?o.nextZ=a:e=a,a.prevZ=o,o=a;n=r}o.nextZ=null,c*=2}while(s>1);return e}function my(e,t,n,r,a){return e=(e-n)*a|0,t=(t-r)*a|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function $he(e){var t=e,n=e;do(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next;while(t!==e);return n}function Uu(e,t,n,r,a,o,s,l){return(a-s)*(t-l)>=(e-s)*(o-l)&&(e-s)*(r-l)>=(n-s)*(t-l)&&(n-s)*(o-l)>=(a-s)*(r-l)}function Rhe(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!khe(e,t)&&(Bf(e,t)&&Bf(t,e)&&Lhe(e,t)&&(hr(e.prev,e,t.prev)||hr(e,t.prev,t))||Vv(e,t)&&hr(e.prev,e,e.next)>0&&hr(t.prev,t,t.next)>0)}function hr(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Vv(e,t){return e.x===t.x&&e.y===t.y}function D$(e,t,n,r){var a=tp(hr(e,t,n)),o=tp(hr(e,t,r)),s=tp(hr(n,r,e)),l=tp(hr(n,r,t));return!!(a!==o&&s!==l||a===0&&ep(e,n,t)||o===0&&ep(e,r,t)||s===0&&ep(n,e,r)||l===0&&ep(n,t,r))}function ep(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function tp(e){return e>0?1:e<0?-1:0}function khe(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&D$(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Bf(e,t){return hr(e.prev,e,e.next)<0?hr(e,t,e.next)>=0&&hr(e,e.prev,t)>=0:hr(e,t,e.prev)<0||hr(e,e.next,t)<0}function Lhe(e,t){var n=e,r=!1,a=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&a<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function F$(e,t){var n=new gy(e.i,e.x,e.y),r=new gy(t.i,t.x,t.y),a=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Cx(e,t,n,r){var a=new gy(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function Hf(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function gy(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Uv.deviation=function(e,t,n,r){var a=t&&t.length,o=a?t[0]*n:e.length,s=Math.abs(yy(e,0,o,n));if(a)for(var l=0,u=t.length;l<u;l++){var c=t[l]*n,f=l<u-1?t[l+1]*n:e.length;s-=Math.abs(yy(e,c,f,n))}var d=0;for(l=0;l<r.length;l+=3){var p=r[l]*n,g=r[l+1]*n,y=r[l+2]*n;d+=Math.abs((e[p]-e[y])*(e[g+1]-e[p+1])-(e[p]-e[g])*(e[y+1]-e[p+1]))}return s===0&&d===0?0:Math.abs((d-s)/s)};function yy(e,t,n,r){for(var a=0,o=t,s=n-r;o<n;o+=r)a+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return a}Uv.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var o=0;o<e[a].length;o++)for(var s=0;s<t;s++)n.vertices.push(e[a][o][s]);a>0&&(r+=e[a-1].length,n.holes.push(r))}return n};var Nhe=O1.exports;const $1=M1(Nhe);var V0={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */V0.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,o=typeof r0=="object"&&r0;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,l=2147483647,u=36,c=1,f=26,d=38,p=700,g=72,y=128,m="-",S=/^xn--/,_=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=u-c,k=Math.floor,L=String.fromCharCode,B;function H(Z){throw new RangeError(A[Z])}function G(Z,ae){for(var ve=Z.length,we=[];ve--;)we[ve]=ae(Z[ve]);return we}function j(Z,ae){var ve=Z.split("@"),we="";ve.length>1&&(we=ve[0]+"@",Z=ve[1]),Z=Z.replace(P,".");var Me=Z.split("."),Ge=G(Me,ae).join(".");return we+Ge}function W(Z){for(var ae=[],ve=0,we=Z.length,Me,Ge;ve<we;)Me=Z.charCodeAt(ve++),Me>=55296&&Me<=56319&&ve<we?(Ge=Z.charCodeAt(ve++),(Ge&64512)==56320?ae.push(((Me&1023)<<10)+(Ge&1023)+65536):(ae.push(Me),ve--)):ae.push(Me);return ae}function Q(Z){return G(Z,function(ae){var ve="";return ae>65535&&(ae-=65536,ve+=L(ae>>>10&1023|55296),ae=56320|ae&1023),ve+=L(ae),ve}).join("")}function ue(Z){return Z-48<10?Z-22:Z-65<26?Z-65:Z-97<26?Z-97:u}function se(Z,ae){return Z+22+75*(Z<26)-((ae!=0)<<5)}function ne(Z,ae,ve){var we=0;for(Z=ve?k(Z/p):Z>>1,Z+=k(Z/ae);Z>$*f>>1;we+=u)Z=k(Z/$);return k(we+($+1)*Z/(Z+d))}function J(Z){var ae=[],ve=Z.length,we,Me=0,Ge=y,Ee=g,pe,_e,He,Ae,ke,ze,ce,me,Be;for(pe=Z.lastIndexOf(m),pe<0&&(pe=0),_e=0;_e<pe;++_e)Z.charCodeAt(_e)>=128&&H("not-basic"),ae.push(Z.charCodeAt(_e));for(He=pe>0?pe+1:0;He<ve;){for(Ae=Me,ke=1,ze=u;He>=ve&&H("invalid-input"),ce=ue(Z.charCodeAt(He++)),(ce>=u||ce>k((l-Me)/ke))&&H("overflow"),Me+=ce*ke,me=ze<=Ee?c:ze>=Ee+f?f:ze-Ee,!(ce<me);ze+=u)Be=u-me,ke>k(l/Be)&&H("overflow"),ke*=Be;we=ae.length+1,Ee=ne(Me-Ae,we,Ae==0),k(Me/we)>l-Ge&&H("overflow"),Ge+=k(Me/we),Me%=we,ae.splice(Me++,0,Ge)}return Q(ae)}function X(Z){var ae,ve,we,Me,Ge,Ee,pe,_e,He,Ae,ke,ze=[],ce,me,Be,be;for(Z=W(Z),ce=Z.length,ae=y,ve=0,Ge=g,Ee=0;Ee<ce;++Ee)ke=Z[Ee],ke<128&&ze.push(L(ke));for(we=Me=ze.length,Me&&ze.push(m);we<ce;){for(pe=l,Ee=0;Ee<ce;++Ee)ke=Z[Ee],ke>=ae&&ke<pe&&(pe=ke);for(me=we+1,pe-ae>k((l-ve)/me)&&H("overflow"),ve+=(pe-ae)*me,ae=pe,Ee=0;Ee<ce;++Ee)if(ke=Z[Ee],ke<ae&&++ve>l&&H("overflow"),ke==ae){for(_e=ve,He=u;Ae=He<=Ge?c:He>=Ge+f?f:He-Ge,!(_e<Ae);He+=u)be=_e-Ae,Be=u-Ae,ze.push(L(se(Ae+be%Be,0))),_e=k(be/Be);ze.push(L(se(_e,0))),Ge=ne(ve,me,we==Me),ve=0,++we}++ve,++ae}return ze.join("")}function te(Z){return j(Z,function(ae){return S.test(ae)?J(ae.slice(4).toLowerCase()):ae})}function Y(Z){return j(Z,function(ae){return _.test(ae)?"xn--"+X(ae):ae})}if(s={version:"1.4.1",ucs2:{decode:W,encode:Q},decode:J,encode:X,toASCII:Y,toUnicode:te},r&&a)if(e.exports==r)a.exports=s;else for(B in s)s.hasOwnProperty(B)&&(r[B]=s[B]);else n.punycode=s})(r0)})(V0,V0.exports);var Dhe=V0.exports,Fhe=Error,Bhe=EvalError,Hhe=RangeError,Uhe=ReferenceError,B$=SyntaxError,bh=TypeError,Vhe=URIError,Ghe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0},xx=typeof Symbol<"u"&&Symbol,jhe=Ghe,zhe=function(){return typeof xx!="function"||typeof Symbol!="function"||typeof xx("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jhe()},eg={__proto__:null,foo:{}},Khe=Object,Whe=function(){return{__proto__:eg}.foo===eg.foo&&!(eg instanceof Khe)},Xhe="Function.prototype.bind called on incompatible ",Yhe=Object.prototype.toString,Jhe=Math.max,qhe="[object Function]",Ix=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},Qhe=function(e,t){for(var n=[],r=t,a=0;r<e.length;r+=1,a+=1)n[a]=e[r];return n},Zhe=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},epe=function(e){var t=this;if(typeof t!="function"||Yhe.apply(t)!==qhe)throw new TypeError(Xhe+t);for(var n=Qhe(arguments,1),r,a=function(){if(this instanceof r){var c=t.apply(this,Ix(n,arguments));return Object(c)===c?c:this}return t.apply(e,Ix(n,arguments))},o=Jhe(0,t.length-n.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(r=Function("binder","return function ("+Zhe(s,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var u=function(){};u.prototype=t.prototype,r.prototype=new u,u.prototype=null}return r},tpe=epe,R1=Function.prototype.bind||tpe,npe=Function.prototype.call,rpe=Object.prototype.hasOwnProperty,ape=R1,ope=ape.call(npe,rpe),Rn,ipe=Fhe,spe=Bhe,lpe=Hhe,upe=Uhe,xc=B$,Zu=bh,cpe=Vhe,H$=Function,tg=function(e){try{return H$('"use strict"; return ('+e+").constructor;")()}catch{}},zl=Object.getOwnPropertyDescriptor;if(zl)try{zl({},"")}catch{zl=null}var ng=function(){throw new Zu},dpe=zl?function(){try{return arguments.callee,ng}catch{try{return zl(arguments,"callee").get}catch{return ng}}}():ng,Eu=zhe(),fpe=Whe(),jr=Object.getPrototypeOf||(fpe?function(e){return e.__proto__}:null),Nu={},hpe=typeof Uint8Array>"u"||!jr?Rn:jr(Uint8Array),Kl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Rn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Rn:ArrayBuffer,"%ArrayIteratorPrototype%":Eu&&jr?jr([][Symbol.iterator]()):Rn,"%AsyncFromSyncIteratorPrototype%":Rn,"%AsyncFunction%":Nu,"%AsyncGenerator%":Nu,"%AsyncGeneratorFunction%":Nu,"%AsyncIteratorPrototype%":Nu,"%Atomics%":typeof Atomics>"u"?Rn:Atomics,"%BigInt%":typeof BigInt>"u"?Rn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Rn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Rn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Rn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ipe,"%eval%":eval,"%EvalError%":spe,"%Float32Array%":typeof Float32Array>"u"?Rn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Rn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Rn:FinalizationRegistry,"%Function%":H$,"%GeneratorFunction%":Nu,"%Int8Array%":typeof Int8Array>"u"?Rn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Rn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Rn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Eu&&jr?jr(jr([][Symbol.iterator]())):Rn,"%JSON%":typeof JSON=="object"?JSON:Rn,"%Map%":typeof Map>"u"?Rn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Eu||!jr?Rn:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Rn:Promise,"%Proxy%":typeof Proxy>"u"?Rn:Proxy,"%RangeError%":lpe,"%ReferenceError%":upe,"%Reflect%":typeof Reflect>"u"?Rn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Rn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Eu||!jr?Rn:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Rn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Eu&&jr?jr(""[Symbol.iterator]()):Rn,"%Symbol%":Eu?Symbol:Rn,"%SyntaxError%":xc,"%ThrowTypeError%":dpe,"%TypedArray%":hpe,"%TypeError%":Zu,"%Uint8Array%":typeof Uint8Array>"u"?Rn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Rn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Rn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Rn:Uint32Array,"%URIError%":cpe,"%WeakMap%":typeof WeakMap>"u"?Rn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Rn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Rn:WeakSet};if(jr)try{null.error}catch(e){var ppe=jr(jr(e));Kl["%Error.prototype%"]=ppe}var vpe=function e(t){var n;if(t==="%AsyncFunction%")n=tg("async function () {}");else if(t==="%GeneratorFunction%")n=tg("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=tg("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&jr&&(n=jr(a.prototype))}return Kl[t]=n,n},Ax={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_h=R1,G0=ope,mpe=_h.call(Function.call,Array.prototype.concat),gpe=_h.call(Function.apply,Array.prototype.splice),Px=_h.call(Function.call,String.prototype.replace),j0=_h.call(Function.call,String.prototype.slice),ype=_h.call(Function.call,RegExp.prototype.exec),bpe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_pe=/\\(\\)?/g,wpe=function(e){var t=j0(e,0,1),n=j0(e,-1);if(t==="%"&&n!=="%")throw new xc("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new xc("invalid intrinsic syntax, expected opening `%`");var r=[];return Px(e,bpe,function(a,o,s,l){r[r.length]=s?Px(l,_pe,"$1"):o||a}),r},Spe=function(e,t){var n=e,r;if(G0(Ax,n)&&(r=Ax[n],n="%"+r[0]+"%"),G0(Kl,n)){var a=Kl[n];if(a===Nu&&(a=vpe(n)),typeof a>"u"&&!t)throw new Zu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new xc("intrinsic "+e+" does not exist!")},Wc=function(e,t){if(typeof e!="string"||e.length===0)throw new Zu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Zu('"allowMissing" argument must be a boolean');if(ype(/^%?[^%]*%?$/,e)===null)throw new xc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=wpe(e),r=n.length>0?n[0]:"",a=Spe("%"+r+"%",t),o=a.name,s=a.value,l=!1,u=a.alias;u&&(r=u[0],gpe(n,mpe([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var d=n[c],p=j0(d,0,1),g=j0(d,-1);if((p==='"'||p==="'"||p==="`"||g==='"'||g==="'"||g==="`")&&p!==g)throw new xc("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(l=!0),r+="."+d,o="%"+r+"%",G0(Kl,o))s=Kl[o];else if(s!=null){if(!(d in s)){if(!t)throw new Zu("base intrinsic for "+e+" exists, but the property is not available.");return}if(zl&&c+1>=n.length){var y=zl(s,d);f=!!y,f&&"get"in y&&!("originalValue"in y.get)?s=y.get:s=s[d]}else f=G0(s,d),s=s[d];f&&!l&&(Kl[o]=s)}}return s},U$={exports:{}},rg,Mx;function k1(){if(Mx)return rg;Mx=1;var e=Wc,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return rg=t,rg}var Tpe=Wc,a0=Tpe("%Object.getOwnPropertyDescriptor%",!0);if(a0)try{a0([],"length")}catch{a0=null}var V$=a0,Ox=k1(),Epe=B$,Cu=bh,$x=V$,Cpe=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Cu("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new Cu("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Cu("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Cu("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Cu("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Cu("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!$x&&$x(e,t);if(Ox)Ox(e,t,{configurable:o===null&&l?l.configurable:!o,enumerable:r===null&&l?l.enumerable:!r,value:n,writable:a===null&&l?l.writable:!a});else if(s||!r&&!a&&!o)e[t]=n;else throw new Epe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},by=k1(),G$=function(){return!!by};G$.hasArrayLengthDefineBug=function(){if(!by)return null;try{return by([],"length",{value:1}).length!==1}catch{return!0}};var xpe=G$,Ipe=Wc,Rx=Cpe,Ape=xpe(),kx=V$,Lx=bh,Ppe=Ipe("%Math.floor%"),Mpe=function(e,t){if(typeof e!="function")throw new Lx("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Ppe(t)!==t)throw new Lx("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,a=!0;if("length"in e&&kx){var o=kx(e,"length");o&&!o.configurable&&(r=!1),o&&!o.writable&&(a=!1)}return(r||a||!n)&&(Ape?Rx(e,"length",t,!0,!0):Rx(e,"length",t)),e};(function(e){var t=R1,n=Wc,r=Mpe,a=bh,o=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(s,o),u=k1(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new a("a function is required");var p=l(t,s,arguments);return r(p,1+c(0,d.length-(arguments.length-1)),!0)};var f=function(){return l(t,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f})(U$);var Ope=U$.exports,j$=Wc,z$=Ope,$pe=z$(j$("String.prototype.indexOf")),Rpe=function(e,t){var n=j$(e,!!t);return typeof n=="function"&&$pe(e,".prototype.")>-1?z$(n):n};const kpe={},Lpe=Object.freeze(Object.defineProperty({__proto__:null,default:kpe},Symbol.toStringTag,{value:"Module"})),Npe=bhe(Lpe);var L1=typeof Map=="function"&&Map.prototype,ag=Object.getOwnPropertyDescriptor&&L1?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,z0=L1&&ag&&typeof ag.get=="function"?ag.get:null,Nx=L1&&Map.prototype.forEach,N1=typeof Set=="function"&&Set.prototype,og=Object.getOwnPropertyDescriptor&&N1?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,K0=N1&&og&&typeof og.get=="function"?og.get:null,Dx=N1&&Set.prototype.forEach,Dpe=typeof WeakMap=="function"&&WeakMap.prototype,qd=Dpe?WeakMap.prototype.has:null,Fpe=typeof WeakSet=="function"&&WeakSet.prototype,Qd=Fpe?WeakSet.prototype.has:null,Bpe=typeof WeakRef=="function"&&WeakRef.prototype,Fx=Bpe?WeakRef.prototype.deref:null,Hpe=Boolean.prototype.valueOf,Upe=Object.prototype.toString,Vpe=Function.prototype.toString,Gpe=String.prototype.match,D1=String.prototype.slice,As=String.prototype.replace,jpe=String.prototype.toUpperCase,Bx=String.prototype.toLowerCase,K$=RegExp.prototype.test,Hx=Array.prototype.concat,ai=Array.prototype.join,zpe=Array.prototype.slice,Ux=Math.floor,_y=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ig=Object.getOwnPropertySymbols,wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="object",pa=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ic||!0)?Symbol.toStringTag:null,W$=Object.prototype.propertyIsEnumerable,Vx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Gx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||K$.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Ux(-e):Ux(e);if(r!==e){var a=String(r),o=D1.call(t,a.length+1);return As.call(a,n,"$&_")+"."+As.call(As.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return As.call(t,n,"$&_")}var Sy=Npe,jx=Sy.custom,zx=Y$(jx)?jx:null,Kpe=function e(t,n,r,a){var o=n||{};if(Ss(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ss(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ss(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ss(o,"indent")&&o.indent!==null&&o.indent!=="	"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ss(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return q$(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return l?Gx(t,u):u}if(typeof t=="bigint"){var c=String(t)+"n";return l?Gx(t,c):c}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return Ty(t)?"[Array]":"[Object]";var d=c0e(o,r);if(typeof a>"u")a=[];else if(J$(a,t)>=0)return"[Circular]";function p(ue,se,ne){if(se&&(a=zpe.call(a),a.push(se)),ne){var J={depth:o.depth};return Ss(o,"quoteStyle")&&(J.quoteStyle=o.quoteStyle),e(ue,J,r+1,a)}return e(ue,o,r+1,a)}if(typeof t=="function"&&!Kx(t)){var g=t0e(t),y=np(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(y.length>0?" { "+ai.call(y,", ")+" }":"")}if(Y$(t)){var m=Ic?As.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):wy.call(t);return typeof t=="object"&&!Ic?dd(m):m}if(s0e(t)){for(var S="<"+Bx.call(String(t.nodeName)),_=t.attributes||[],P=0;P<_.length;P++)S+=" "+_[P].name+"="+X$(Wpe(_[P].value),"double",o);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="</"+Bx.call(String(t.nodeName))+">",S}if(Ty(t)){if(t.length===0)return"[]";var A=np(t,p);return d&&!u0e(A)?"["+Ey(A,d)+"]":"[ "+ai.call(A,", ")+" ]"}if(Ype(t)){var $=np(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!W$.call(t,"cause")?"{ ["+String(t)+"] "+ai.call(Hx.call("[cause]: "+p(t.cause),$),", ")+" }":$.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ai.call($,", ")+" }"}if(typeof t=="object"&&s){if(zx&&typeof t[zx]=="function"&&Sy)return Sy(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(n0e(t)){var k=[];return Nx&&Nx.call(t,function(ue,se){k.push(p(se,t,!0)+" => "+p(ue,t))}),Wx("Map",z0.call(t),k,d)}if(o0e(t)){var L=[];return Dx&&Dx.call(t,function(ue){L.push(p(ue,t))}),Wx("Set",K0.call(t),L,d)}if(r0e(t))return sg("WeakMap");if(i0e(t))return sg("WeakSet");if(a0e(t))return sg("WeakRef");if(qpe(t))return dd(p(Number(t)));if(Zpe(t))return dd(p(_y.call(t)));if(Qpe(t))return dd(Hpe.call(t));if(Jpe(t))return dd(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===r0)return"{ [object globalThis] }";if(!Xpe(t)&&!Kx(t)){var B=np(t,p),H=Vx?Vx(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",j=!H&&pa&&Object(t)===t&&pa in t?D1.call(al(t),8,-1):G?"Object":"",W=H||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Q=W+(j||G?"["+ai.call(Hx.call([],j||[],G||[]),": ")+"] ":"");return B.length===0?Q+"{}":d?Q+"{"+Ey(B,d)+"}":Q+"{ "+ai.call(B,", ")+" }"}return String(t)};function X$(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Wpe(e){return As.call(String(e),/"/g,"&quot;")}function Ty(e){return al(e)==="[object Array]"&&(!pa||!(typeof e=="object"&&pa in e))}function Xpe(e){return al(e)==="[object Date]"&&(!pa||!(typeof e=="object"&&pa in e))}function Kx(e){return al(e)==="[object RegExp]"&&(!pa||!(typeof e=="object"&&pa in e))}function Ype(e){return al(e)==="[object Error]"&&(!pa||!(typeof e=="object"&&pa in e))}function Jpe(e){return al(e)==="[object String]"&&(!pa||!(typeof e=="object"&&pa in e))}function qpe(e){return al(e)==="[object Number]"&&(!pa||!(typeof e=="object"&&pa in e))}function Qpe(e){return al(e)==="[object Boolean]"&&(!pa||!(typeof e=="object"&&pa in e))}function Y$(e){if(Ic)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!wy)return!1;try{return wy.call(e),!0}catch{}return!1}function Zpe(e){if(!e||typeof e!="object"||!_y)return!1;try{return _y.call(e),!0}catch{}return!1}var e0e=Object.prototype.hasOwnProperty||function(e){return e in this};function Ss(e,t){return e0e.call(e,t)}function al(e){return Upe.call(e)}function t0e(e){if(e.name)return e.name;var t=Gpe.call(Vpe.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function J$(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function n0e(e){if(!z0||!e||typeof e!="object")return!1;try{z0.call(e);try{K0.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function r0e(e){if(!qd||!e||typeof e!="object")return!1;try{qd.call(e,qd);try{Qd.call(e,Qd)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function a0e(e){if(!Fx||!e||typeof e!="object")return!1;try{return Fx.call(e),!0}catch{}return!1}function o0e(e){if(!K0||!e||typeof e!="object")return!1;try{K0.call(e);try{z0.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function i0e(e){if(!Qd||!e||typeof e!="object")return!1;try{Qd.call(e,Qd);try{qd.call(e,qd)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function s0e(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function q$(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return q$(D1.call(e,0,t.maxStringLength),t)+r}var a=As.call(As.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,l0e);return X$(a,"single",t)}function l0e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+jpe.call(t.toString(16))}function dd(e){return"Object("+e+")"}function sg(e){return e+" { ? }"}function Wx(e,t,n,r){var a=r?Ey(n,r):ai.call(n,", ");return e+" ("+t+") {"+a+"}"}function u0e(e){for(var t=0;t<e.length;t++)if(J$(e[t],`
`)>=0)return!1;return!0}function c0e(e,t){var n;if(e.indent==="	")n="	";else if(typeof e.indent=="number"&&e.indent>0)n=ai.call(Array(e.indent+1)," ");else return null;return{base:n,prev:ai.call(Array(t+1),n)}}function Ey(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+ai.call(e,","+n)+`
`+t.prev}function np(e,t){var n=Ty(e),r=[];if(n){r.length=e.length;for(var a=0;a<e.length;a++)r[a]=Ss(e,a)?t(e[a],e):""}var o=typeof ig=="function"?ig(e):[],s;if(Ic){s={};for(var l=0;l<o.length;l++)s["$"+o[l]]=o[l]}for(var u in e)Ss(e,u)&&(n&&String(Number(u))===u&&u<e.length||Ic&&s["$"+u]instanceof Symbol||(K$.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof ig=="function")for(var c=0;c<o.length;c++)W$.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}var Q$=Wc,Xc=Rpe,d0e=Kpe,f0e=bh,rp=Q$("%WeakMap%",!0),ap=Q$("%Map%",!0),h0e=Xc("WeakMap.prototype.get",!0),p0e=Xc("WeakMap.prototype.set",!0),v0e=Xc("WeakMap.prototype.has",!0),m0e=Xc("Map.prototype.get",!0),g0e=Xc("Map.prototype.set",!0),y0e=Xc("Map.prototype.has",!0),F1=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},b0e=function(e,t){var n=F1(e,t);return n&&n.value},_0e=function(e,t,n){var r=F1(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},w0e=function(e,t){return!!F1(e,t)},S0e=function(){var e,t,n,r={assert:function(a){if(!r.has(a))throw new f0e("Side channel does not contain "+d0e(a))},get:function(a){if(rp&&a&&(typeof a=="object"||typeof a=="function")){if(e)return h0e(e,a)}else if(ap){if(t)return m0e(t,a)}else if(n)return b0e(n,a)},has:function(a){if(rp&&a&&(typeof a=="object"||typeof a=="function")){if(e)return v0e(e,a)}else if(ap){if(t)return y0e(t,a)}else if(n)return w0e(n,a);return!1},set:function(a,o){rp&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new rp),p0e(e,a,o)):ap?(t||(t=new ap),g0e(t,a,o)):(n||(n={key:{},next:null}),_0e(n,a,o))}};return r},T0e=String.prototype.replace,E0e=/%20/g,lg={RFC1738:"RFC1738",RFC3986:"RFC3986"},B1={default:lg.RFC3986,formatters:{RFC1738:function(e){return T0e.call(e,E0e,"+")},RFC3986:function(e){return String(e)}},RFC1738:lg.RFC1738,RFC3986:lg.RFC3986},C0e=B1,ug=Object.prototype.hasOwnProperty,Ml=Array.isArray,ei=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),x0e=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ml(n)){for(var r=[],a=0;a<n.length;++a)typeof n[a]<"u"&&r.push(n[a]);t.obj[t.prop]=r}}},Z$=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)typeof e[r]<"u"&&(n[r]=e[r]);return n},I0e=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ml(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!ug.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var a=t;return Ml(t)&&!Ml(n)&&(a=Z$(t,r)),Ml(t)&&Ml(n)?(n.forEach(function(o,s){if(ug.call(t,s)){var l=t[s];l&&typeof l=="object"&&o&&typeof o=="object"?t[s]=e(l,o,r):t.push(o)}else t[s]=o}),t):Object.keys(n).reduce(function(o,s){var l=n[s];return ug.call(o,s)?o[s]=e(o[s],l,r):o[s]=l,o},a)},A0e=function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=t[r],n},e)},P0e=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},M0e=function(e,t,n,r,a){if(e.length===0)return e;var o=e;if(typeof e=="symbol"?o=Symbol.prototype.toString.call(e):typeof e!="string"&&(o=String(e)),n==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;++l){var u=o.charCodeAt(l);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===C0e.RFC1738&&(u===40||u===41)){s+=o.charAt(l);continue}if(u<128){s=s+ei[u];continue}if(u<2048){s=s+(ei[192|u>>6]+ei[128|u&63]);continue}if(u<55296||u>=57344){s=s+(ei[224|u>>12]+ei[128|u>>6&63]+ei[128|u&63]);continue}l+=1,u=65536+((u&1023)<<10|o.charCodeAt(l)&1023),s+=ei[240|u>>18]+ei[128|u>>12&63]+ei[128|u>>6&63]+ei[128|u&63]}return s},O0e=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var a=t[r],o=a.obj[a.prop],s=Object.keys(o),l=0;l<s.length;++l){var u=s[l],c=o[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(t.push({obj:o,prop:u}),n.push(c))}return x0e(t),e},$0e=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},R0e=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},k0e=function(e,t){return[].concat(e,t)},L0e=function(e,t){if(Ml(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},eR={arrayToObject:Z$,assign:A0e,combine:k0e,compact:O0e,decode:P0e,encode:M0e,isBuffer:R0e,isRegExp:$0e,maybeMap:L0e,merge:I0e},tR=S0e,o0=eR,Zd=B1,N0e=Object.prototype.hasOwnProperty,Xx={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},ki=Array.isArray,D0e=Array.prototype.push,nR=function(e,t){D0e.apply(e,ki(t)?t:[t])},F0e=Date.prototype.toISOString,Yx=Zd.default,ia={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o0.encode,encodeValuesOnly:!1,format:Yx,formatter:Zd.formatters[Yx],indices:!1,serializeDate:function(e){return F0e.call(e)},skipNulls:!1,strictNullHandling:!1},B0e=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},cg={},H0e=function e(t,n,r,a,o,s,l,u,c,f,d,p,g,y,m,S){for(var _=t,P=S,A=0,$=!1;(P=P.get(cg))!==void 0&&!$;){var k=P.get(t);if(A+=1,typeof k<"u"){if(k===A)throw new RangeError("Cyclic object value");$=!0}typeof P.get(cg)>"u"&&(A=0)}if(typeof u=="function"?_=u(n,_):_ instanceof Date?_=d(_):r==="comma"&&ki(_)&&(_=o0.maybeMap(_,function(J){return J instanceof Date?d(J):J})),_===null){if(o)return l&&!y?l(n,ia.encoder,m,"key",p):n;_=""}if(B0e(_)||o0.isBuffer(_)){if(l){var L=y?n:l(n,ia.encoder,m,"key",p);return[g(L)+"="+g(l(_,ia.encoder,m,"value",p))]}return[g(n)+"="+g(String(_))]}var B=[];if(typeof _>"u")return B;var H;if(r==="comma"&&ki(_))y&&l&&(_=o0.maybeMap(_,l)),H=[{value:_.length>0?_.join(",")||null:void 0}];else if(ki(u))H=u;else{var G=Object.keys(_);H=c?G.sort(c):G}for(var j=a&&ki(_)&&_.length===1?n+"[]":n,W=0;W<H.length;++W){var Q=H[W],ue=typeof Q=="object"&&typeof Q.value<"u"?Q.value:_[Q];if(!(s&&ue===null)){var se=ki(_)?typeof r=="function"?r(j,Q):j:j+(f?"."+Q:"["+Q+"]");S.set(t,A);var ne=tR();ne.set(cg,S),nR(B,e(ue,se,r,a,o,s,r==="comma"&&y&&ki(_)?null:l,u,c,f,d,p,g,y,m,ne))}}return B},U0e=function(e){if(!e)return ia;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||ia.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Zd.default;if(typeof e.format<"u"){if(!N0e.call(Zd.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Zd.formatters[n],a=ia.filter;return(typeof e.filter=="function"||ki(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:ia.addQueryPrefix,allowDots:typeof e.allowDots>"u"?ia.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ia.charsetSentinel,delimiter:typeof e.delimiter>"u"?ia.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:ia.encode,encoder:typeof e.encoder=="function"?e.encoder:ia.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:ia.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:ia.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:ia.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ia.strictNullHandling}},V0e=function(e,t){var n=e,r=U0e(t),a,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ki(r.filter)&&(o=r.filter,a=o);var s=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in Xx?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var u=Xx[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=u==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(n)),r.sort&&a.sort(r.sort);for(var f=tR(),d=0;d<a.length;++d){var p=a[d];r.skipNulls&&n[p]===null||nR(s,H0e(n[p],p,u,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,f))}var g=s.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""},Ac=eR,Cy=Object.prototype.hasOwnProperty,G0e=Array.isArray,Gr={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ac.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},j0e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},rR=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},z0e="utf8=%26%2310003%3B",K0e="utf8=%E2%9C%93",W0e=function(e,t){var n={__proto__:null},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=r.split(t.delimiter,a),s=-1,l,u=t.charset;if(t.charsetSentinel)for(l=0;l<o.length;++l)o[l].indexOf("utf8=")===0&&(o[l]===K0e?u="utf-8":o[l]===z0e&&(u="iso-8859-1"),s=l,l=o.length);for(l=0;l<o.length;++l)if(l!==s){var c=o[l],f=c.indexOf("]="),d=f===-1?c.indexOf("="):f+1,p,g;d===-1?(p=t.decoder(c,Gr.decoder,u,"key"),g=t.strictNullHandling?null:""):(p=t.decoder(c.slice(0,d),Gr.decoder,u,"key"),g=Ac.maybeMap(rR(c.slice(d+1),t),function(y){return t.decoder(y,Gr.decoder,u,"value")})),g&&t.interpretNumericEntities&&u==="iso-8859-1"&&(g=j0e(g)),c.indexOf("[]=")>-1&&(g=G0e(g)?[g]:g),Cy.call(n,p)?n[p]=Ac.combine(n[p],g):n[p]=g}return n},X0e=function(e,t,n,r){for(var a=r?t:rR(t,n),o=e.length-1;o>=0;--o){var s,l=e[o];if(l==="[]"&&n.parseArrays)s=[].concat(a);else{s=n.plainObjects?Object.create(null):{};var u=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=parseInt(u,10);!n.parseArrays&&u===""?s={0:a}:!isNaN(c)&&l!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=a):u!=="__proto__"&&(s[u]=a)}a=s}return a},Y0e=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&o.exec(a),u=l?a.slice(0,l.index):a,c=[];if(u){if(!n.plainObjects&&Cy.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Cy.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+a.slice(l.index)+"]"),X0e(c,t,n,r)}},J0e=function(e){if(!e)return Gr;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?Gr.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Gr.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Gr.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Gr.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Gr.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Gr.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Gr.comma,decoder:typeof e.decoder=="function"?e.decoder:Gr.decoder,delimiter:typeof e.delimiter=="string"||Ac.isRegExp(e.delimiter)?e.delimiter:Gr.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Gr.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Gr.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Gr.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Gr.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Gr.strictNullHandling}},q0e=function(e,t){var n=J0e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?W0e(e,n):e,a=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s<o.length;++s){var l=o[s],u=Y0e(l,r[l],n,typeof e=="string");a=Ac.merge(a,u,n)}return n.allowSparse===!0?a:Ac.compact(a)},Q0e=V0e,Z0e=q0e,eve=B1,tve={formats:eve,parse:Z0e,stringify:Q0e},nve=Dhe;function Uo(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var rve=/^([a-z0-9.+-]+:)/i,ave=/:[0-9]*$/,ove=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,ive=["<",">",'"',"`"," ","\r",`
`,"	"],sve=["{","}","|","\\","^","`"].concat(ive),xy=["'"].concat(sve),Jx=["%","/","?",";","#"].concat(xy),qx=["/","?","#"],lve=255,Qx=/^[+a-z0-9A-Z_-]{0,63}$/,uve=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,cve={javascript:!0,"javascript:":!0},Iy={javascript:!0,"javascript:":!0},ec={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ay=tve;function Gv(e,t,n){if(e&&typeof e=="object"&&e instanceof Uo)return e;var r=new Uo;return r.parse(e,t,n),r}Uo.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),a=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(a),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(a);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var u=ove.exec(l);if(u)return this.path=l,this.href=l,this.pathname=u[1],u[2]?(this.search=u[2],t?this.query=Ay.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=rve.exec(l);if(c){c=c[0];var f=c.toLowerCase();this.protocol=f,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var d=l.substr(0,2)==="//";d&&!(c&&Iy[c])&&(l=l.substr(2),this.slashes=!0)}if(!Iy[c]&&(d||c&&!ec[c])){for(var p=-1,g=0;g<qx.length;g++){var y=l.indexOf(qx[g]);y!==-1&&(p===-1||y<p)&&(p=y)}var m,S;p===-1?S=l.lastIndexOf("@"):S=l.lastIndexOf("@",p),S!==-1&&(m=l.slice(0,S),l=l.slice(S+1),this.auth=decodeURIComponent(m)),p=-1;for(var g=0;g<Jx.length;g++){var y=l.indexOf(Jx[g]);y!==-1&&(p===-1||y<p)&&(p=y)}p===-1&&(p=l.length),this.host=l.slice(0,p),l=l.slice(p),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var P=this.hostname.split(/\./),g=0,A=P.length;g<A;g++){var $=P[g];if($&&!$.match(Qx)){for(var k="",L=0,B=$.length;L<B;L++)$.charCodeAt(L)>127?k+="x":k+=$[L];if(!k.match(Qx)){var H=P.slice(0,g),G=P.slice(g+1),j=$.match(uve);j&&(H.push(j[1]),G.unshift(j[2])),G.length&&(l="/"+G.join(".")+l),this.hostname=H.join(".");break}}}this.hostname.length>lve?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=nve.toASCII(this.hostname));var W=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+W,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!cve[f])for(var g=0,A=xy.length;g<A;g++){var ue=xy[g];if(l.indexOf(ue)!==-1){var se=encodeURIComponent(ue);se===ue&&(se=escape(ue)),l=l.split(ue).join(se)}}var ne=l.indexOf("#");ne!==-1&&(this.hash=l.substr(ne),l=l.slice(0,ne));var J=l.indexOf("?");if(J!==-1?(this.search=l.substr(J),this.query=l.substr(J+1),t&&(this.query=Ay.parse(this.query)),l=l.slice(0,J)):t&&(this.search="",this.query={}),l&&(this.pathname=l),ec[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var W=this.pathname||"",X=this.search||"";this.path=W+X}return this.href=this.format(),this};function dve(e){return typeof e=="string"&&(e=Gv(e)),e instanceof Uo?e.format():Uo.prototype.format.call(e)}Uo.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",a=!1,o="";this.host?a=e+this.host:this.hostname&&(a=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Ay.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||ec[t])&&a!==!1?(a="//"+(a||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):a||(a=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),s=s.replace("#","%23"),t+a+n+s+r};function fve(e,t){return Gv(e,!1,!0).resolve(t)}Uo.prototype.resolve=function(e){return this.resolveObject(Gv(e,!1,!0)).format()};Uo.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Uo;t.parse(e,!1,!0),e=t}for(var n=new Uo,r=Object.keys(this),a=0;a<r.length;a++){var o=r[a];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];u!=="protocol"&&(n[u]=e[u])}return ec[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!ec[e.protocol]){for(var c=Object.keys(e),f=0;f<c.length;f++){var d=c[f];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!Iy[e.protocol]){for(var A=(e.pathname||"").split("/");A.length&&!(e.host=A.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),A[0]!==""&&A.unshift(""),A.length<2&&A.unshift(""),n.pathname=A.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",g=n.search||"";n.path=p+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&n.pathname.charAt(0)==="/",m=e.host||e.pathname&&e.pathname.charAt(0)==="/",S=m||y||n.host&&e.pathname,_=S,P=n.pathname&&n.pathname.split("/")||[],A=e.pathname&&e.pathname.split("/")||[],$=n.protocol&&!ec[n.protocol];if($&&(n.hostname="",n.port=null,n.host&&(P[0]===""?P[0]=n.host:P.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(A[0]===""?A[0]=e.host:A.unshift(e.host)),e.host=null),S=S&&(A[0]===""||P[0]==="")),m)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,P=A;else if(A.length)P||(P=[]),P.pop(),P=P.concat(A),n.search=e.search,n.query=e.query;else if(e.search!=null){if($){n.host=P.shift(),n.hostname=n.host;var k=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!P.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var L=P.slice(-1)[0],B=(n.host||e.host||P.length>1)&&(L==="."||L==="..")||L==="",H=0,G=P.length;G>=0;G--)L=P[G],L==="."?P.splice(G,1):L===".."?(P.splice(G,1),H++):H&&(P.splice(G,1),H--);if(!S&&!_)for(;H--;H)P.unshift("..");S&&P[0]!==""&&(!P[0]||P[0].charAt(0)!=="/")&&P.unshift(""),B&&P.join("/").substr(-1)!=="/"&&P.push("");var j=P[0]===""||P[0]&&P[0].charAt(0)==="/";if($){n.hostname=j?"":P.length?P.shift():"",n.host=n.hostname;var k=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return S=S||n.host&&P.length,S&&!j&&P.unshift(""),P.length>0?n.pathname=P.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};Uo.prototype.parseHost=function(){var e=this.host,t=ave.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var hve=Gv,pve=fve,vve=dve;/*!
 * @pixi/utils - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/utils is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var fi={parse:hve,format:vve,resolve:pve};function Po(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Zx(e){var t=e.split("?")[0];return t.split("#")[0]}function mve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gve(e,t,n){return e.replace(new RegExp(mve(t),"g"),n)}function yve(e,t){for(var n="",r=0,a=-1,o=0,s,l=0;l<=e.length;++l){if(l<e.length)s=e.charCodeAt(l);else{if(s===47)break;s=47}if(s===47){if(!(a===l-1||o===1))if(a!==l-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),a=l,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,a=l,o=0;continue}}}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,o=0}else s===46&&o!==-1?++o:o=-1}return n}var aR={toPosix:function(e){return gve(e,"\\","/")},isUrl:function(e){return/^https?:/.test(this.toPosix(e))},isDataUrl:function(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol:function(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol:function(e){Po(e),e=this.toPosix(e);var t="",n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),a=/^[^/:]+:\//.exec(e);if(n||r||a){var o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(a==null?void 0:a[0]);t=o,e=e.slice(o.length)}return t},toAbsolute:function(e,t,n){if(this.isDataUrl(e))return e;var r=Zx(this.toPosix(t??Nt.ADAPTER.getBaseUrl())),a=Zx(this.toPosix(n??this.rootname(r)));if(Po(e),e=this.toPosix(e),e.startsWith("/"))return aR.join(a,e.slice(1));var o=this.isAbsolute(e)?e:this.join(r,e);return o},normalize:function(e){if(e=this.toPosix(e),Po(e),e.length===0)return".";var t="",n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));var r=e.endsWith("/");return e=yve(e),e.length>0&&r&&(e+="/"),n?"/"+e:t+e},isAbsolute:function(e){return Po(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join:function(){for(var e=arguments,t,n=[],r=0;r<arguments.length;r++)n[r]=e[r];if(n.length===0)return".";for(var a,o=0;o<n.length;++o){var s=n[o];if(Po(s),s.length>0)if(a===void 0)a=s;else{var l=(t=n[o-1])!==null&&t!==void 0?t:"";this.extname(l)?a+="/../"+s:a+="/"+s}}return a===void 0?".":this.normalize(a)},dirname:function(e){if(Po(e),e.length===0)return".";e=this.toPosix(e);var t=e.charCodeAt(0),n=t===47,r=-1,a=!0,o=this.getProtocol(e),s=e;e=e.slice(o.length);for(var l=e.length-1;l>=1;--l)if(t=e.charCodeAt(l),t===47){if(!a){r=l;break}}else a=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname:function(e){Po(e),e=this.toPosix(e);var t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){var n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename:function(e,t){Po(e),t&&Po(t),e=this.toPosix(e);var n=0,r=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(u===47){if(!a){n=o+1;break}}else l===-1&&(a=!1,l=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){n=o+1;break}}else r===-1&&(a=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){Po(e),e=this.toPosix(e);for(var t=-1,n=0,r=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l===47){if(!a){n=s+1;break}continue}r===-1&&(a=!1,r=s+1),l===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse:function(e){Po(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=this.toPosix(e);var n=e.charCodeAt(0),r=this.isAbsolute(e),a;t.root=this.rootname(e),r||this.hasProtocol(e)?a=1:a=0;for(var o=-1,s=0,l=-1,u=!0,c=e.length-1,f=0;c>=a;--c){if(n=e.charCodeAt(c),n===47){if(!u){s=c+1;break}continue}l===-1&&(u=!1,l=c+1),n===46?o===-1?o=c:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(s===0&&r?t.base=t.name=e.slice(1,l):t.base=t.name=e.slice(s,l)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(s,o),t.base=e.slice(s,l)),t.ext=e.slice(o,l)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"};Nt.RETINA_PREFIX=/@([0-9\.]+)x/;Nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Py=!1,e4="6.5.10";function bve(){Py=!0}function oR(e){var t;if(!Py){if(Nt.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome")>-1){var n=[`
 %c %c %c PixiJS `+e4+" - ✰ "+e+` ✰  %c  %c  http://www.pixijs.com/  %c %c ♥%c♥%c♥ 

`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,n)}else globalThis.console&&globalThis.console.log("PixiJS "+e4+" - "+e+" - http://www.pixijs.com/");Py=!0}}var dg;function iR(){return typeof dg>"u"&&(dg=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:Nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!Nt.ADAPTER.getWebGLRenderingContext())return!1;var t=Nt.ADAPTER.createCanvas(),n=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),r=!!(n&&n.getContextAttributes().stencil);if(n){var a=n.getExtension("WEBGL_lose_context");a&&a.loseContext()}return n=null,r}catch{return!1}}()),dg}var _ve="#f0f8ff",wve="#faebd7",Sve="#00ffff",Tve="#7fffd4",Eve="#f0ffff",Cve="#f5f5dc",xve="#ffe4c4",Ive="#000000",Ave="#ffebcd",Pve="#0000ff",Mve="#8a2be2",Ove="#a52a2a",$ve="#deb887",Rve="#5f9ea0",kve="#7fff00",Lve="#d2691e",Nve="#ff7f50",Dve="#6495ed",Fve="#fff8dc",Bve="#dc143c",Hve="#00ffff",Uve="#00008b",Vve="#008b8b",Gve="#b8860b",jve="#a9a9a9",zve="#006400",Kve="#a9a9a9",Wve="#bdb76b",Xve="#8b008b",Yve="#556b2f",Jve="#ff8c00",qve="#9932cc",Qve="#8b0000",Zve="#e9967a",eme="#8fbc8f",tme="#483d8b",nme="#2f4f4f",rme="#2f4f4f",ame="#00ced1",ome="#9400d3",ime="#ff1493",sme="#00bfff",lme="#696969",ume="#696969",cme="#1e90ff",dme="#b22222",fme="#fffaf0",hme="#228b22",pme="#ff00ff",vme="#dcdcdc",mme="#f8f8ff",gme="#daa520",yme="#ffd700",bme="#808080",_me="#008000",wme="#adff2f",Sme="#808080",Tme="#f0fff0",Eme="#ff69b4",Cme="#cd5c5c",xme="#4b0082",Ime="#fffff0",Ame="#f0e68c",Pme="#fff0f5",Mme="#e6e6fa",Ome="#7cfc00",$me="#fffacd",Rme="#add8e6",kme="#f08080",Lme="#e0ffff",Nme="#fafad2",Dme="#d3d3d3",Fme="#90ee90",Bme="#d3d3d3",Hme="#ffb6c1",Ume="#ffa07a",Vme="#20b2aa",Gme="#87cefa",jme="#778899",zme="#778899",Kme="#b0c4de",Wme="#ffffe0",Xme="#00ff00",Yme="#32cd32",Jme="#faf0e6",qme="#ff00ff",Qme="#800000",Zme="#66cdaa",ege="#0000cd",tge="#ba55d3",nge="#9370db",rge="#3cb371",age="#7b68ee",oge="#00fa9a",ige="#48d1cc",sge="#c71585",lge="#191970",uge="#f5fffa",cge="#ffe4e1",dge="#ffe4b5",fge="#ffdead",hge="#000080",pge="#fdf5e6",vge="#808000",mge="#6b8e23",gge="#ffa500",yge="#ff4500",bge="#da70d6",_ge="#eee8aa",wge="#98fb98",Sge="#afeeee",Tge="#db7093",Ege="#ffefd5",Cge="#ffdab9",xge="#cd853f",Ige="#ffc0cb",Age="#dda0dd",Pge="#b0e0e6",Mge="#800080",Oge="#663399",$ge="#ff0000",Rge="#bc8f8f",kge="#4169e1",Lge="#8b4513",Nge="#fa8072",Dge="#f4a460",Fge="#2e8b57",Bge="#fff5ee",Hge="#a0522d",Uge="#c0c0c0",Vge="#87ceeb",Gge="#6a5acd",jge="#708090",zge="#708090",Kge="#fffafa",Wge="#00ff7f",Xge="#4682b4",Yge="#d2b48c",Jge="#008080",qge="#d8bfd8",Qge="#ff6347",Zge="#40e0d0",e2e="#ee82ee",t2e="#f5deb3",n2e="#ffffff",r2e="#f5f5f5",a2e="#ffff00",o2e="#9acd32",i2e={aliceblue:_ve,antiquewhite:wve,aqua:Sve,aquamarine:Tve,azure:Eve,beige:Cve,bisque:xve,black:Ive,blanchedalmond:Ave,blue:Pve,blueviolet:Mve,brown:Ove,burlywood:$ve,cadetblue:Rve,chartreuse:kve,chocolate:Lve,coral:Nve,cornflowerblue:Dve,cornsilk:Fve,crimson:Bve,cyan:Hve,darkblue:Uve,darkcyan:Vve,darkgoldenrod:Gve,darkgray:jve,darkgreen:zve,darkgrey:Kve,darkkhaki:Wve,darkmagenta:Xve,darkolivegreen:Yve,darkorange:Jve,darkorchid:qve,darkred:Qve,darksalmon:Zve,darkseagreen:eme,darkslateblue:tme,darkslategray:nme,darkslategrey:rme,darkturquoise:ame,darkviolet:ome,deeppink:ime,deepskyblue:sme,dimgray:lme,dimgrey:ume,dodgerblue:cme,firebrick:dme,floralwhite:fme,forestgreen:hme,fuchsia:pme,gainsboro:vme,ghostwhite:mme,goldenrod:gme,gold:yme,gray:bme,green:_me,greenyellow:wme,grey:Sme,honeydew:Tme,hotpink:Eme,indianred:Cme,indigo:xme,ivory:Ime,khaki:Ame,lavenderblush:Pme,lavender:Mme,lawngreen:Ome,lemonchiffon:$me,lightblue:Rme,lightcoral:kme,lightcyan:Lme,lightgoldenrodyellow:Nme,lightgray:Dme,lightgreen:Fme,lightgrey:Bme,lightpink:Hme,lightsalmon:Ume,lightseagreen:Vme,lightskyblue:Gme,lightslategray:jme,lightslategrey:zme,lightsteelblue:Kme,lightyellow:Wme,lime:Xme,limegreen:Yme,linen:Jme,magenta:qme,maroon:Qme,mediumaquamarine:Zme,mediumblue:ege,mediumorchid:tge,mediumpurple:nge,mediumseagreen:rge,mediumslateblue:age,mediumspringgreen:oge,mediumturquoise:ige,mediumvioletred:sge,midnightblue:lge,mintcream:uge,mistyrose:cge,moccasin:dge,navajowhite:fge,navy:hge,oldlace:pge,olive:vge,olivedrab:mge,orange:gge,orangered:yge,orchid:bge,palegoldenrod:_ge,palegreen:wge,paleturquoise:Sge,palevioletred:Tge,papayawhip:Ege,peachpuff:Cge,peru:xge,pink:Ige,plum:Age,powderblue:Pge,purple:Mge,rebeccapurple:Oge,red:$ge,rosybrown:Rge,royalblue:kge,saddlebrown:Lge,salmon:Nge,sandybrown:Dge,seagreen:Fge,seashell:Bge,sienna:Hge,silver:Uge,skyblue:Vge,slateblue:Gge,slategray:jge,slategrey:zge,snow:Kge,springgreen:Wge,steelblue:Xge,tan:Yge,teal:Jge,thistle:qge,tomato:Qge,turquoise:Zge,violet:e2e,wheat:t2e,white:n2e,whitesmoke:r2e,yellow:a2e,yellowgreen:o2e};function iu(e,t){return t===void 0&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function H1(e){var t=e.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function U1(e){return typeof e=="string"&&(e=i2e[e.toLowerCase()]||e,e[0]==="#"&&(e=e.slice(1))),parseInt(e,16)}function s2e(e){return(e[0]*255<<16)+(e[1]*255<<8)+(e[2]*255|0)}function l2e(){for(var e=[],t=[],n=0;n<32;n++)e[n]=n,t[n]=n;e[on.NORMAL_NPM]=on.NORMAL,e[on.ADD_NPM]=on.ADD,e[on.SCREEN_NPM]=on.SCREEN,t[on.NORMAL]=on.NORMAL_NPM,t[on.ADD]=on.ADD_NPM,t[on.SCREEN]=on.SCREEN_NPM;var r=[];return r.push(t),r.push(e),r}var V1=l2e();function G1(e,t){return V1[t?1:0][e]}function sR(e,t,n,r){return n=n||new Float32Array(4),r||r===void 0?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=t,n}function jv(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var n=e>>16&255,r=e>>8&255,a=e&255;return n=n*t+.5|0,r=r*t+.5|0,a=a*t+.5|0,(t*255<<24)+(n<<16)+(r<<8)+a}function j1(e,t,n,r){return n=n||new Float32Array(4),n[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(e&255)/255,(r||r===void 0)&&(n[0]*=t,n[1]*=t,n[2]*=t),n[3]=t,n}function lR(e,t){t===void 0&&(t=null);var n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+n);for(var r=0,a=0;r<n;r+=6,a+=4)t[r+0]=a+0,t[r+1]=a+1,t[r+2]=a+2,t[r+3]=a+0,t[r+4]=a+2,t[r+5]=a+3;return t}function zv(e){if(e.BYTES_PER_ELEMENT===4)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(e.BYTES_PER_ELEMENT===2){if(e instanceof Uint16Array)return"Uint16Array"}else if(e.BYTES_PER_ELEMENT===1&&e instanceof Uint8Array)return"Uint8Array";return null}var u2e={Float32Array,Uint32Array,Int32Array,Uint8Array};function c2e(e,t){for(var n=0,r=0,a={},o=0;o<e.length;o++)r+=t[o],n+=e[o].length;for(var s=new ArrayBuffer(n*4),l=null,u=0,o=0;o<e.length;o++){var c=t[o],f=e[o],d=zv(f);a[d]||(a[d]=new u2e[d](s)),l=a[d];for(var p=0;p<f.length;p++){var g=(p/c|0)*r+u,y=p%c;l[g+y]=f[p]}u+=c}return new Float32Array(s)}function Uf(e){return e+=e===0?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function My(e){return!(e&e-1)&&!!e}function Oy(e){var t=(e>65535?1:0)<<4;e>>>=t;var n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function Wl(e,t,n){var r=e.length,a;if(!(t>=r||n===0)){n=t+n>r?r-t:n;var o=r-n;for(a=t;a<o;++a)e[a]=e[a+n];e.length=o}}function Fl(e){return e===0?0:e<0?-1:1}var d2e=0;function Ks(){return++d2e}var t4={};function Sa(e,t,n){if(n===void 0&&(n=3),!t4[t]){var r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",t+`
Deprecated since v`+e):(r=r.split(`
`).splice(n).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+`
Deprecated since v`+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+`
Deprecated since v`+e),console.warn(r))),t4[t]=!0}}var $y={},ka=Object.create(null),ao=Object.create(null);function f2e(){var e;for(e in ka)ka[e].destroy();for(e in ao)ao[e].destroy()}function h2e(){var e;for(e in ka)delete ka[e];for(e in ao)delete ao[e]}var Ry=function(){function e(t,n,r){this.canvas=Nt.ADAPTER.createCanvas(),this.context=this.canvas.getContext("2d"),this.resolution=r||Nt.RESOLUTION,this.resize(t,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(t,n){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(n*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),e}();function uR(e){var t=e.width,n=e.height,r=e.getContext("2d",{willReadFrequently:!0}),a=r.getImageData(0,0,t,n),o=a.data,s=o.length,l={top:null,left:null,right:null,bottom:null},u=null,c,f,d;for(c=0;c<s;c+=4)o[c+3]!==0&&(f=c/4%t,d=~~(c/4/t),l.top===null&&(l.top=d),(l.left===null||f<l.left)&&(l.left=f),(l.right===null||l.right<f)&&(l.right=f+1),(l.bottom===null||l.bottom<d)&&(l.bottom=d));return l.top!==null&&(t=l.right-l.left,n=l.bottom-l.top+1,u=r.getImageData(l.left,l.top,t,n)),{height:n,width:t,data:u}}var cR=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function p2e(e){var t=cR.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}}var op;function dR(e,t){if(t===void 0&&(t=globalThis.location),e.indexOf("data:")===0)return"";t=t||globalThis.location,op||(op=document.createElement("a")),op.href=e;var n=fi.parse(op.href),r=!n.port&&t.port===""||n.port===t.port;return n.hostname!==t.hostname||!r||n.protocol!==t.protocol?"anonymous":""}function Vf(e,t){var n=Nt.RETINA_PREFIX.exec(e);return n?parseFloat(n[1]):t!==void 0?t:1}const v2e=Object.freeze(Object.defineProperty({__proto__:null,BaseTextureCache:ao,CanvasRenderTarget:Ry,DATA_URI:cR,EventEmitter:as,ProgramCache:$y,TextureCache:ka,clearTextureCache:h2e,correctBlendMode:G1,createIndicesForQuads:lR,decomposeDataUri:p2e,deprecation:Sa,destroyTextureCache:f2e,determineCrossOrigin:dR,earcut:$1,getBufferType:zv,getResolutionOfUrl:Vf,hex2rgb:iu,hex2string:H1,interleaveTypedArrays:c2e,isMobile:fo,isPow2:My,isWebGLSupported:iR,log2:Oy,nextPow2:Uf,path:aR,premultiplyBlendMode:V1,premultiplyRgba:sR,premultiplyTint:jv,premultiplyTintToRgba:j1,removeItems:Wl,rgb2hex:s2e,sayHello:oR,sign:Fl,skipHello:bve,string2hex:U1,trimCanvas:uR,uid:Ks,url:fi},Symbol.toStringTag,{value:"Module"}));/*!
 * @pixi/math - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/math is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var Gf=Math.PI*2,fR=180/Math.PI,hR=Math.PI/180,Nr;(function(e){e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC"})(Nr||(Nr={}));var Zn=function(){function e(t,n){t===void 0&&(t=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=t,this.y=n}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},e.prototype.copyTo=function(t){return t.set(this.x,this.y),t},e.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},e.prototype.set=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),this.x=t,this.y=n,this},e.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},e}(),ip=[new Zn,new Zn,new Zn,new Zn],$n=function(){function e(t,n,r,a){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=0),this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(a),this.type=Nr.RECT}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e,"EMPTY",{get:function(){return new e(0,0,0,0)},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},e.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},e.prototype.contains=function(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t<this.x+this.width&&n>=this.y&&n<this.y+this.height},e.prototype.intersects=function(t,n){if(!n){var r=this.x<t.x?t.x:this.x,a=this.right>t.right?t.right:this.right;if(a<=r)return!1;var o=this.y<t.y?t.y:this.y,s=this.bottom>t.bottom?t.bottom:this.bottom;return s>o}var l=this.left,u=this.right,c=this.top,f=this.bottom;if(u<=l||f<=c)return!1;var d=ip[0].set(t.left,t.top),p=ip[1].set(t.left,t.bottom),g=ip[2].set(t.right,t.top),y=ip[3].set(t.right,t.bottom);if(g.x<=d.x||p.y<=d.y)return!1;var m=Math.sign(n.a*n.d-n.b*n.c);if(m===0||(n.apply(d,d),n.apply(p,p),n.apply(g,g),n.apply(y,y),Math.max(d.x,p.x,g.x,y.x)<=l||Math.min(d.x,p.x,g.x,y.x)>=u||Math.max(d.y,p.y,g.y,y.y)<=c||Math.min(d.y,p.y,g.y,y.y)>=f))return!1;var S=m*(p.y-d.y),_=m*(d.x-p.x),P=S*l+_*c,A=S*u+_*c,$=S*l+_*f,k=S*u+_*f;if(Math.max(P,A,$,k)<=S*d.x+_*d.y||Math.min(P,A,$,k)>=S*y.x+_*y.y)return!1;var L=m*(d.y-g.y),B=m*(g.x-d.x),H=L*l+B*c,G=L*u+B*c,j=L*l+B*f,W=L*u+B*f;return!(Math.max(H,G,j,W)<=L*d.x+B*d.y||Math.min(H,G,j,W)>=L*y.x+B*y.y)},e.prototype.pad=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this},e.prototype.fit=function(t){var n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),a=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=a,this.height=Math.max(o-a,0),this},e.prototype.ceil=function(t,n){t===void 0&&(t=1),n===void 0&&(n=.001);var r=Math.ceil((this.x+this.width-n)*t)/t,a=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=a-this.y,this},e.prototype.enlarge=function(t){var n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),a=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=a,this.height=o-a,this},e.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),pR=function(){function e(t,n,r){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),this.x=t,this.y=n,this.radius=r,this.type=Nr.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(t,n){if(this.radius<=0)return!1;var r=this.radius*this.radius,a=this.x-t,o=this.y-n;return a*=a,o*=o,a+o<=r},e.prototype.getBounds=function(){return new $n(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},e.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},e}(),vR=function(){function e(t,n,r,a){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=0),this.x=t,this.y=n,this.width=r,this.height=a,this.type=Nr.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(t,n){if(this.width<=0||this.height<=0)return!1;var r=(t-this.x)/this.width,a=(n-this.y)/this.height;return r*=r,a*=a,r+a<=1},e.prototype.getBounds=function(){return new $n(this.x-this.width,this.y-this.height,this.width,this.height)},e.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),ef=function(){function e(){for(var t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];var a=Array.isArray(n[0])?n[0]:n;if(typeof a[0]!="number"){for(var o=[],s=0,l=a.length;s<l;s++)o.push(a[s].x,a[s].y);a=o}this.points=a,this.type=Nr.POLY,this.closeStroke=!0}return e.prototype.clone=function(){var t=this.points.slice(),n=new e(t);return n.closeStroke=this.closeStroke,n},e.prototype.contains=function(t,n){for(var r=!1,a=this.points.length/2,o=0,s=a-1;o<a;s=o++){var l=this.points[o*2],u=this.points[o*2+1],c=this.points[s*2],f=this.points[s*2+1],d=u>n!=f>n&&t<(c-l)*((n-u)/(f-u))+l;d&&(r=!r)}return r},e.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(t,n){return t+", "+n},"")+"]")},e}(),mR=function(){function e(t,n,r,a,o){t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=0),o===void 0&&(o=20),this.x=t,this.y=n,this.width=r,this.height=a,this.radius=o,this.type=Nr.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){var r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;var a=t-(this.x+r),o=n-(this.y+r),s=r*r;if(a*a+o*o<=s||(a=t-(this.x+this.width-r),a*a+o*o<=s)||(o=n-(this.y+this.height-r),a*a+o*o<=s)||(a=t-(this.x+r),a*a+o*o<=s))return!0}return!1},e.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},e}(),Ps=function(){function e(t,n,r,a){r===void 0&&(r=0),a===void 0&&(a=0),this._x=r,this._y=a,this.cb=t,this.scope=n}return e.prototype.clone=function(t,n){return t===void 0&&(t=this.cb),n===void 0&&(n=this.scope),new e(t,n,this._x,this._y)},e.prototype.set=function(t,n){return t===void 0&&(t=0),n===void 0&&(n=t),(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this},e.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},e.prototype.copyTo=function(t){return t.set(this._x,this._y),t},e.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},e.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),e}(),cr=function(){function e(t,n,r,a,o,s){t===void 0&&(t=1),n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=1),o===void 0&&(o=0),s===void 0&&(s=0),this.array=null,this.a=t,this.b=n,this.c=r,this.d=a,this.tx=o,this.ty=s}return e.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},e.prototype.set=function(t,n,r,a,o,s){return this.a=t,this.b=n,this.c=r,this.d=a,this.tx=o,this.ty=s,this},e.prototype.toArray=function(t,n){this.array||(this.array=new Float32Array(9));var r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},e.prototype.apply=function(t,n){n=n||new Zn;var r=t.x,a=t.y;return n.x=this.a*r+this.c*a+this.tx,n.y=this.b*r+this.d*a+this.ty,n},e.prototype.applyInverse=function(t,n){n=n||new Zn;var r=1/(this.a*this.d+this.c*-this.b),a=t.x,o=t.y;return n.x=this.d*r*a+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*a+(-this.ty*this.a+this.tx*this.b)*r,n},e.prototype.translate=function(t,n){return this.tx+=t,this.ty+=n,this},e.prototype.scale=function(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this},e.prototype.rotate=function(t){var n=Math.cos(t),r=Math.sin(t),a=this.a,o=this.c,s=this.tx;return this.a=a*n-this.b*r,this.b=a*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this},e.prototype.append=function(t){var n=this.a,r=this.b,a=this.c,o=this.d;return this.a=t.a*n+t.b*a,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*a,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*a+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this},e.prototype.setTransform=function(t,n,r,a,o,s,l,u,c){return this.a=Math.cos(l+c)*o,this.b=Math.sin(l+c)*o,this.c=-Math.sin(l-u)*s,this.d=Math.cos(l-u)*s,this.tx=t-(r*this.a+a*this.c),this.ty=n-(r*this.b+a*this.d),this},e.prototype.prepend=function(t){var n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var r=this.a,a=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=a*t.a+this.d*t.c,this.d=a*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this},e.prototype.decompose=function(t){var n=this.a,r=this.b,a=this.c,o=this.d,s=t.pivot,l=-Math.atan2(-a,o),u=Math.atan2(r,n),c=Math.abs(l+u);return c<1e-5||Math.abs(Gf-c)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=l,t.skew.y=u),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(a*a+o*o),t.position.x=this.tx+(s.x*n+s.y*a),t.position.y=this.ty+(s.x*r+s.y*o),t},e.prototype.invert=function(){var t=this.a,n=this.b,r=this.c,a=this.d,o=this.tx,s=t*a-n*r;return this.a=a/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-a*o)/s,this.ty=-(t*this.ty-n*o)/s,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},e.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(e,"IDENTITY",{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"TEMP_MATRIX",{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),bl=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],_l=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],wl=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Sl=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],ky=[],gR=[],sp=Math.sign;function m2e(){for(var e=0;e<16;e++){var t=[];ky.push(t);for(var n=0;n<16;n++)for(var r=sp(bl[e]*bl[n]+wl[e]*_l[n]),a=sp(_l[e]*bl[n]+Sl[e]*_l[n]),o=sp(bl[e]*wl[n]+wl[e]*Sl[n]),s=sp(_l[e]*wl[n]+Sl[e]*Sl[n]),l=0;l<16;l++)if(bl[l]===r&&_l[l]===a&&wl[l]===o&&Sl[l]===s){t.push(l);break}}for(var e=0;e<16;e++){var u=new cr;u.set(bl[e],_l[e],wl[e],Sl[e],0,0),gR.push(u)}}m2e();var ur={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return bl[e]},uY:function(e){return _l[e]},vX:function(e){return wl[e]},vY:function(e){return Sl[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return ky[e][t]},sub:function(e,t){return ky[e][ur.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)===2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?ur.S:ur.N:Math.abs(t)*2<=Math.abs(e)?e>0?ur.E:ur.W:t>0?e>0?ur.SE:ur.SW:e>0?ur.NE:ur.NW},matrixAppendRotationInv:function(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var a=gR[ur.inv(t)];a.tx=n,a.ty=r,e.append(a)}},Kv=function(){function e(){this.worldTransform=new cr,this.localTransform=new cr,this.position=new Ps(this.onChange,this,0,0),this.scale=new Ps(this.onChange,this,1,1),this.pivot=new Ps(this.onChange,this,0,0),this.skew=new Ps(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return e.prototype.onChange=function(){this._localID++},e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},e.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},e.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},e.prototype.updateTransform=function(t){var n=this.localTransform;if(this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,a=this.worldTransform;a.a=n.a*r.a+n.b*r.c,a.b=n.a*r.b+n.b*r.d,a.c=n.c*r.a+n.d*r.c,a.d=n.c*r.b+n.d*r.d,a.tx=n.tx*r.a+n.ty*r.c+r.tx,a.ty=n.tx*r.b+n.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},e.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();/*!
 * @pixi/extensions - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/extensions is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var tf=function(){return tf=Object.assign||function(e){for(var t=arguments,n,r=1,a=arguments.length;r<a;r++){n=t[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},tf.apply(this,arguments)},Kn;(function(e){e.Application="application",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Loader="loader",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser"})(Kn||(Kn={}));var n4=function(e){if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");var t=typeof e.extension!="object"?{type:e.extension}:e.extension;e=tf(tf({},t),{ref:e})}if(typeof e=="object")e=tf({},e);else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},Ei={_addHandlers:null,_removeHandlers:null,_queue:{},remove:function(){for(var e=arguments,t=this,n=[],r=0;r<arguments.length;r++)n[r]=e[r];return n.map(n4).forEach(function(a){a.type.forEach(function(o){var s,l;return(l=(s=t._removeHandlers)[o])===null||l===void 0?void 0:l.call(s,a)})}),this},add:function(){for(var e=arguments,t=this,n=[],r=0;r<arguments.length;r++)n[r]=e[r];return n.map(n4).forEach(function(a){a.type.forEach(function(o){var s=t._addHandlers,l=t._queue;s[o]?s[o](a):(l[o]=l[o]||[],l[o].push(a))})}),this},handle:function(e,t,n){var r=this._addHandlers=this._addHandlers||{},a=this._removeHandlers=this._removeHandlers||{};if(r[e]||a[e])throw new Error("Extension type "+e+" already has a handler");r[e]=t,a[e]=n;var o=this._queue;return o[e]&&(o[e].forEach(function(s){return t(s)}),delete o[e]),this},handleByMap:function(e,t){return this.handle(e,function(n){t[n.name]=n.ref},function(n){delete t[n.name]})},handleByList:function(e,t){return this.handle(e,function(n){var r,a;t.includes(n.ref)||(t.push(n.ref),e===Kn.Loader&&((a=(r=n.ref).add)===null||a===void 0||a.call(r)))},function(n){var r=t.indexOf(n.ref);r!==-1&&t.splice(r,1)})}};/*!
 * @pixi/runner - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/runner is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var zr=function(){function e(t){this.items=[],this._name=t,this._aliasCount=0}return e.prototype.emit=function(t,n,r,a,o,s,l,u){if(arguments.length>8)throw new Error("max arguments reached");var c=this,f=c.name,d=c.items;this._aliasCount++;for(var p=0,g=d.length;p<g;p++)d[p][f](t,n,r,a,o,s,l,u);return d===this.items&&this._aliasCount--,this},e.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){var n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this},e.prototype.contains=function(t){return this.items.indexOf(t)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(zr.prototype,{dispatch:{value:zr.prototype.emit},run:{value:zr.prototype.emit}});/*!
 * @pixi/ticker - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/ticker is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */Nt.TARGET_FPMS=.06;var _i;(function(e){e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY"})(_i||(_i={}));var fg=function(){function e(t,n,r,a){n===void 0&&(n=null),r===void 0&&(r=0),a===void 0&&(a=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=a}return e.prototype.match=function(t,n){return n===void 0&&(n=null),this.fn===t&&this.context===n},e.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n},e.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},e.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var n=this.next;return this.next=t?null:n,this.previous=null,n},e}(),Kr=function(){function e(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new fg(null,null,1/0),this.deltaMS=1/Nt.TARGET_FPMS,this.elapsedMS=1/Nt.TARGET_FPMS,this._tick=function(n){t._requestId=null,t.started&&(t.update(n),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(t,n,r){return r===void 0&&(r=_i.NORMAL),this._addListener(new fg(t,n,r))},e.prototype.addOnce=function(t,n,r){return r===void 0&&(r=_i.NORMAL),this._addListener(new fg(t,n,r,!0))},e.prototype._addListener=function(t){var n=this._head.next,r=this._head;if(!n)t.connect(r);else{for(;n;){if(t.priority>n.priority){t.connect(r);break}r=n,n=n.next}t.previous||t.connect(r)}return this._startIfPossible(),this},e.prototype.remove=function(t,n){for(var r=this._head.next;r;)r.match(t,n)?r=r.destroy():r=r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,n=this._head;n=n.next;)t++;return t},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},e.prototype.update=function(t){t===void 0&&(t=performance.now());var n;if(t>this.lastTime){if(n=this.elapsedMS=t-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),n*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r<this._minElapsedMS)return;this._lastFrame=t-r%this._minElapsedMS}this.deltaMS=n,this.deltaTime=this.deltaMS*Nt.TARGET_FPMS;for(var a=this._head,o=a.next;o;)o=o.emit(this.deltaTime);a.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},Object.defineProperty(e.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(t){var n=Math.min(this.maxFPS,t),r=Math.min(Math.max(0,n)/1e3,Nt.TARGET_FPMS);this._maxElapsedMS=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(t){if(t===0)this._minElapsedMS=0;else{var n=Math.max(this.minFPS,t);this._minElapsedMS=1/(n/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"shared",{get:function(){if(!e._shared){var t=e._shared=new e;t.autoStart=!0,t._protected=!0}return e._shared},enumerable:!1,configurable:!0}),Object.defineProperty(e,"system",{get:function(){if(!e._system){var t=e._system=new e;t.autoStart=!0,t._protected=!0}return e._system},enumerable:!1,configurable:!0}),e}(),yR=function(){function e(){}return e.init=function(t){var n=this;t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set:function(r){this._ticker&&this._ticker.remove(this.render,this),this._ticker=r,r&&r.add(this.render,this,_i.LOW)},get:function(){return this._ticker}}),this.stop=function(){n._ticker.stop()},this.start=function(){n._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Kr.shared:new Kr,t.autoStart&&this.start()},e.destroy=function(){if(this._ticker){var t=this._ticker;this.ticker=null,t.destroy()}},e.extension=Kn.Application,e}();/*!
 * @pixi/core - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/core is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */Nt.PREFER_ENV=fo.any?bi.WEBGL:bi.WEBGL2;Nt.STRICT_TEXTURE_CACHE=!1;var jf=[];function Wv(e,t){if(!e)return null;var n="";if(typeof e=="string"){var r=/\.(\w{3,4})(?:$|\?|#)/i.exec(e);r&&(n=r[1].toLowerCase())}for(var a=jf.length-1;a>=0;--a){var o=jf[a];if(o.test&&o.test(e,n))return new o(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ly=function(e,t){return Ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},Ly(e,t)};function ar(e,t){Ly(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ny=function(){return Ny=Object.assign||function(e){for(var t=arguments,n,r=1,a=arguments.length;r<a;r++){n=t[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ny.apply(this,arguments)};function g2e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}var su=function(){function e(t,n){t===void 0&&(t=0),n===void 0&&(n=0),this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new zr("setRealSize"),this.onUpdate=new zr("update"),this.onError=new zr("onError")}return e.prototype.bind=function(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},e.prototype.unbind=function(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)},e.prototype.resize=function(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))},Object.defineProperty(e.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),e.prototype.update=function(){this.destroyed||this.onUpdate.emit()},e.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),e.prototype.style=function(t,n,r){return!1},e.prototype.dispose=function(){},e.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},e.test=function(t,n){return!1},e}(),pu=function(e){ar(t,e);function t(n,r){var a=this,o=r||{},s=o.width,l=o.height;if(!s||!l)throw new Error("BufferResource width or height invalid");return a=e.call(this,s,l)||this,a.data=n,a}return t.prototype.upload=function(n,r,a){var o=n.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===Eo.UNPACK);var s=r.realWidth,l=r.realHeight;return a.width===s&&a.height===l?o.texSubImage2D(r.target,0,0,0,s,l,r.format,a.type,this.data):(a.width=s,a.height=l,o.texImage2D(r.target,0,a.internalFormat,s,l,0,r.format,a.type,this.data)),!0},t.prototype.dispose=function(){this.data=null},t.test=function(n){return n instanceof Float32Array||n instanceof Uint8Array||n instanceof Uint32Array},t}(su),y2e={scaleMode:Do.NEAREST,format:$t.RGBA,alphaMode:Eo.NPM},kn=function(e){ar(t,e);function t(n,r){n===void 0&&(n=null),r===void 0&&(r=null);var a=e.call(this)||this;r=r||{};var o=r.alphaMode,s=r.mipmap,l=r.anisotropicLevel,u=r.scaleMode,c=r.width,f=r.height,d=r.wrapMode,p=r.format,g=r.type,y=r.target,m=r.resolution,S=r.resourceOptions;return n&&!(n instanceof su)&&(n=Wv(n,S),n.internal=!0),a.resolution=m||Nt.RESOLUTION,a.width=Math.round((c||0)*a.resolution)/a.resolution,a.height=Math.round((f||0)*a.resolution)/a.resolution,a._mipmap=s!==void 0?s:Nt.MIPMAP_TEXTURES,a.anisotropicLevel=l!==void 0?l:Nt.ANISOTROPIC_LEVEL,a._wrapMode=d||Nt.WRAP_MODE,a._scaleMode=u!==void 0?u:Nt.SCALE_MODE,a.format=p||$t.RGBA,a.type=g||an.UNSIGNED_BYTE,a.target=y||ks.TEXTURE_2D,a.alphaMode=o!==void 0?o:Eo.UNPACK,a.uid=Ks(),a.touched=0,a.isPowerOfTwo=!1,a._refreshPOT(),a._glTextures={},a.dirtyId=0,a.dirtyStyleId=0,a.cacheId=null,a.valid=c>0&&f>0,a.textureCacheIds=[],a.destroyed=!1,a.resource=null,a._batchEnabled=0,a._batchLocation=0,a.parentTextureArray=null,a.setResource(n),a}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(n){this._mipmap!==n&&(this._mipmap=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(n){this._scaleMode!==n&&(this._scaleMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(n){this._wrapMode!==n&&(this._wrapMode=n,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(n,r){var a;return n!==void 0&&n!==this.scaleMode&&(this.scaleMode=n,a=!0),r!==void 0&&r!==this.mipmap&&(this.mipmap=r,a=!0),a&&this.dirtyStyleId++,this},t.prototype.setSize=function(n,r,a){return a=a||this.resolution,this.setRealSize(n*a,r*a,a)},t.prototype.setRealSize=function(n,r,a){return this.resolution=a||this.resolution,this.width=Math.round(n)/this.resolution,this.height=Math.round(r)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=My(this.realWidth)&&My(this.realHeight)},t.prototype.setResolution=function(n){var r=this.resolution;return r===n?this:(this.resolution=n,this.valid&&(this.width=Math.round(this.width*r)/n,this.height=Math.round(this.height*r)/n,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(n){if(this.resource===n)return this;if(this.resource)throw new Error("Resource can be set only once");return n.bind(this),this.resource=n,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(n){this.emit("error",this,n)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete ao[this.cacheId],delete ka[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(n,r,a){a===void 0&&(a=Nt.STRICT_TEXTURE_CACHE);var o=typeof n=="string",s=null;if(o)s=n;else{if(!n._pixiId){var l=r&&r.pixiIdPrefix||"pixiid";n._pixiId=l+"_"+Ks()}s=n._pixiId}var u=ao[s];if(o&&a&&!u)throw new Error('The cacheId "'+s+'" does not exist in BaseTextureCache.');return u||(u=new t(n,r),u.cacheId=s,t.addToCache(u,s)),u},t.fromBuffer=function(n,r,a,o){n=n||new Float32Array(r*a*4);var s=new pu(n,{width:r,height:a}),l=n instanceof Float32Array?an.FLOAT:an.UNSIGNED_BYTE;return new t(s,Object.assign({},y2e,o||{width:r,height:a,type:l}))},t.addToCache=function(n,r){r&&(n.textureCacheIds.indexOf(r)===-1&&n.textureCacheIds.push(r),ao[r]&&console.warn("BaseTexture added to the cache with an id ["+r+"] that already had an entry"),ao[r]=n)},t.removeFromCache=function(n){if(typeof n=="string"){var r=ao[n];if(r){var a=r.textureCacheIds.indexOf(n);return a>-1&&r.textureCacheIds.splice(a,1),delete ao[n],r}}else if(n&&n.textureCacheIds){for(var o=0;o<n.textureCacheIds.length;++o)delete ao[n.textureCacheIds[o]];return n.textureCacheIds.length=0,n}return null},t._globalBatch=0,t}(as),Xv=function(e){ar(t,e);function t(n,r){var a=this,o=r||{},s=o.width,l=o.height;a=e.call(this,s,l)||this,a.items=[],a.itemDirtyIds=[];for(var u=0;u<n;u++){var c=new kn;a.items.push(c),a.itemDirtyIds.push(-2)}return a.length=n,a._load=null,a.baseTexture=null,a}return t.prototype.initFromArray=function(n,r){for(var a=0;a<this.length;a++)n[a]&&(n[a].castToBaseTexture?this.addBaseTextureAt(n[a].castToBaseTexture(),a):n[a]instanceof su?this.addResourceAt(n[a],a):this.addResourceAt(Wv(n[a],r),a))},t.prototype.dispose=function(){for(var n=0,r=this.length;n<r;n++)this.items[n].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},t.prototype.addResourceAt=function(n,r){if(!this.items[r])throw new Error("Index "+r+" is out of bounds");return n.valid&&!this.valid&&this.resize(n.width,n.height),this.items[r].setResource(n),this},t.prototype.bind=function(n){if(this.baseTexture!==null)throw new Error("Only one base texture per TextureArray is allowed");e.prototype.bind.call(this,n);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=n,this.items[r].on("update",n.update,n)},t.prototype.unbind=function(n){e.prototype.unbind.call(this,n);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=null,this.items[r].off("update",n.update,n)},t.prototype.load=function(){var n=this;if(this._load)return this._load;var r=this.items.map(function(o){return o.resource}).filter(function(o){return o}),a=r.map(function(o){return o.load()});return this._load=Promise.all(a).then(function(){var o=n.items[0],s=o.realWidth,l=o.realHeight;return n.resize(s,l),Promise.resolve(n)}),this._load},t}(su),z1=function(e){ar(t,e);function t(n,r){var a=this,o=r||{},s=o.width,l=o.height,u,c;return Array.isArray(n)?(u=n,c=n.length):c=n,a=e.call(this,c,{width:s,height:l})||this,u&&a.initFromArray(u,r),a}return t.prototype.addBaseTextureAt=function(n,r){if(n.resource)this.addResourceAt(n.resource,r);else throw new Error("ArrayResource does not support RenderTexture");return this},t.prototype.bind=function(n){e.prototype.bind.call(this,n),n.target=ks.TEXTURE_2D_ARRAY},t.prototype.upload=function(n,r,a){var o=this,s=o.length,l=o.itemDirtyIds,u=o.items,c=n.gl;a.dirtyId<0&&c.texImage3D(c.TEXTURE_2D_ARRAY,0,a.internalFormat,this._width,this._height,s,0,r.format,a.type,null);for(var f=0;f<s;f++){var d=u[f];l[f]<d.dirtyId&&(l[f]=d.dirtyId,d.valid&&c.texSubImage3D(c.TEXTURE_2D_ARRAY,0,0,0,f,d.resource.width,d.resource.height,1,r.format,a.type,d.resource.source))}return!0},t}(Xv),wi=function(e){ar(t,e);function t(n){var r=this,a=n,o=a.naturalWidth||a.videoWidth||a.width,s=a.naturalHeight||a.videoHeight||a.height;return r=e.call(this,o,s)||this,r.source=n,r.noSubImage=!1,r}return t.crossOrigin=function(n,r,a){a===void 0&&r.indexOf("data:")!==0?n.crossOrigin=dR(r):a!==!1&&(n.crossOrigin=typeof a=="string"?a:"anonymous")},t.prototype.upload=function(n,r,a,o){var s=n.gl,l=r.realWidth,u=r.realHeight;if(o=o||this.source,o instanceof HTMLImageElement){if(!o.complete||o.naturalWidth===0)return!1}else if(o instanceof HTMLVideoElement&&o.readyState<=1)return!1;return s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===Eo.UNPACK),!this.noSubImage&&r.target===s.TEXTURE_2D&&a.width===l&&a.height===u?s.texSubImage2D(s.TEXTURE_2D,0,0,0,r.format,a.type,o):(a.width=l,a.height=u,s.texImage2D(r.target,0,a.internalFormat,r.format,a.type,o)),!0},t.prototype.update=function(){if(!this.destroyed){var n=this.source,r=n.naturalWidth||n.videoWidth||n.width,a=n.naturalHeight||n.videoHeight||n.height;this.resize(r,a),e.prototype.update.call(this)}},t.prototype.dispose=function(){this.source=null},t}(su),K1=function(e){ar(t,e);function t(n){return e.call(this,n)||this}return t.test=function(n){var r=globalThis.OffscreenCanvas;return r&&n instanceof r?!0:globalThis.HTMLCanvasElement&&n instanceof HTMLCanvasElement},t}(wi),W1=function(e){ar(t,e);function t(n,r){var a=this,o=r||{},s=o.width,l=o.height,u=o.autoLoad,c=o.linkBaseTexture;if(n&&n.length!==t.SIDES)throw new Error("Invalid length. Got "+n.length+", expected 6");a=e.call(this,6,{width:s,height:l})||this;for(var f=0;f<t.SIDES;f++)a.items[f].target=ks.TEXTURE_CUBE_MAP_POSITIVE_X+f;return a.linkBaseTexture=c!==!1,n&&a.initFromArray(n,r),u!==!1&&a.load(),a}return t.prototype.bind=function(n){e.prototype.bind.call(this,n),n.target=ks.TEXTURE_CUBE_MAP},t.prototype.addBaseTextureAt=function(n,r,a){if(!this.items[r])throw new Error("Index "+r+" is out of bounds");if(!this.linkBaseTexture||n.parentTextureArray||Object.keys(n._glTextures).length>0)if(n.resource)this.addResourceAt(n.resource,r);else throw new Error("CubeResource does not support copying of renderTexture.");else n.target=ks.TEXTURE_CUBE_MAP_POSITIVE_X+r,n.parentTextureArray=this.baseTexture,this.items[r]=n;return n.valid&&!this.valid&&this.resize(n.realWidth,n.realHeight),this.items[r]=n,this},t.prototype.upload=function(n,r,a){for(var o=this.itemDirtyIds,s=0;s<t.SIDES;s++){var l=this.items[s];(o[s]<l.dirtyId||a.dirtyId<r.dirtyId)&&(l.valid&&l.resource?(l.resource.upload(n,l,a),o[s]=l.dirtyId):o[s]<-1&&(n.gl.texImage2D(l.target,0,a.internalFormat,r.realWidth,r.realHeight,0,r.format,a.type,null),o[s]=-1))}return!0},t.test=function(n){return Array.isArray(n)&&n.length===t.SIDES},t.SIDES=6,t}(Xv),Yv=function(e){ar(t,e);function t(n,r){var a=this;if(r=r||{},!(n instanceof HTMLImageElement)){var o=new Image;wi.crossOrigin(o,n,r.crossorigin),o.src=n,n=o}return a=e.call(this,n)||this,!n.complete&&a._width&&a._height&&(a._width=0,a._height=0),a.url=n.src,a._process=null,a.preserveBitmap=!1,a.createBitmap=(r.createBitmap!==void 0?r.createBitmap:Nt.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,a.alphaMode=typeof r.alphaMode=="number"?r.alphaMode:null,a.bitmap=null,a._load=null,r.autoLoad!==!1&&a.load(),a}return t.prototype.load=function(n){var r=this;return this._load?this._load:(n!==void 0&&(this.createBitmap=n),this._load=new Promise(function(a,o){var s=r.source;r.url=s.src;var l=function(){r.destroyed||(s.onload=null,s.onerror=null,r.resize(s.width,s.height),r._load=null,r.createBitmap?a(r.process()):a(r))};s.complete&&s.src?l():(s.onload=l,s.onerror=function(u){o(u),r.onError.emit(u)})}),this._load)},t.prototype.process=function(){var n=this,r=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);var a=globalThis.createImageBitmap,o=!r.crossOrigin||r.crossOrigin==="anonymous";return this._process=fetch(r.src,{mode:o?"cors":"no-cors"}).then(function(s){return s.blob()}).then(function(s){return a(s,0,0,r.width,r.height,{premultiplyAlpha:n.alphaMode===null||n.alphaMode===Eo.UNPACK?"premultiply":"none"})}).then(function(s){return n.destroyed?Promise.reject():(n.bitmap=s,n.update(),n._process=null,Promise.resolve(n))}),this._process},t.prototype.upload=function(n,r,a){if(typeof this.alphaMode=="number"&&(r.alphaMode=this.alphaMode),!this.createBitmap)return e.prototype.upload.call(this,n,r,a);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(e.prototype.upload.call(this,n,r,a,this.bitmap),!this.preserveBitmap){var o=!0,s=r._glTextures;for(var l in s){var u=s[l];if(u!==a&&u.dirtyId!==r.dirtyId){o=!1;break}}o&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},t.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,e.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},t.test=function(n){return typeof n=="string"||n instanceof HTMLImageElement},t}(wi),X1=function(e){ar(t,e);function t(n,r){var a=this;return r=r||{},a=e.call(this,Nt.ADAPTER.createCanvas())||this,a._width=0,a._height=0,a.svg=n,a.scale=r.scale||1,a._overrideWidth=r.width,a._overrideHeight=r.height,a._resolve=null,a._crossorigin=r.crossorigin,a._load=null,r.autoLoad!==!1&&a.load(),a}return t.prototype.load=function(){var n=this;return this._load?this._load:(this._load=new Promise(function(r){if(n._resolve=function(){n.resize(n.source.width,n.source.height),r(n)},t.SVG_XML.test(n.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");n.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n.svg)))}n._loadSvg()}),this._load)},t.prototype._loadSvg=function(){var n=this,r=new Image;wi.crossOrigin(r,this.svg,this._crossorigin),r.src=this.svg,r.onerror=function(a){n._resolve&&(r.onerror=null,n.onError.emit(a))},r.onload=function(){if(n._resolve){var a=r.width,o=r.height;if(!a||!o)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var s=a*n.scale,l=o*n.scale;(n._overrideWidth||n._overrideHeight)&&(s=n._overrideWidth||n._overrideHeight/o*a,l=n._overrideHeight||n._overrideWidth/a*o),s=Math.round(s),l=Math.round(l);var u=n.source;u.width=s,u.height=l,u._pixiId="canvas_"+Ks(),u.getContext("2d").drawImage(r,0,0,a,o,0,0,s,l),n._resolve(),n._resolve=null}}},t.getSize=function(n){var r=t.SVG_SIZE.exec(n),a={};return r&&(a[r[1]]=Math.round(parseFloat(r[3])),a[r[5]]=Math.round(parseFloat(r[7]))),a},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},t.test=function(n,r){return r==="svg"||typeof n=="string"&&n.startsWith("data:image/svg+xml")||typeof n=="string"&&t.SVG_XML.test(n)},t.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,t.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(wi),Y1=function(e){ar(t,e);function t(n,r){var a=this;if(r=r||{},!(n instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof n=="string"&&(n=[n]);var s=n[0].src||n[0];wi.crossOrigin(o,s,r.crossorigin);for(var l=0;l<n.length;++l){var u=document.createElement("source"),c=n[l],f=c.src,d=c.mime;f=f||n[l];var p=f.split("?").shift().toLowerCase(),g=p.slice(p.lastIndexOf(".")+1);d=d||t.MIME_TYPES[g]||"video/"+g,u.src=f,u.type=d,o.appendChild(u)}n=o}return a=e.call(this,n)||this,a.noSubImage=!0,a._autoUpdate=!0,a._isConnectedToTicker=!1,a._updateFPS=r.updateFPS||0,a._msToNextUpdate=0,a.autoPlay=r.autoPlay!==!1,a._load=null,a._resolve=null,a._onCanPlay=a._onCanPlay.bind(a),a._onError=a._onError.bind(a),r.autoLoad!==!1&&a.load(),a}return t.prototype.update=function(n){if(!this.destroyed){var r=Kr.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-r),(!this._updateFPS||this._msToNextUpdate<=0)&&(e.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}},t.prototype.load=function(){var n=this;if(this._load)return this._load;var r=this.source;return(r.readyState===r.HAVE_ENOUGH_DATA||r.readyState===r.HAVE_FUTURE_DATA)&&r.width&&r.height&&(r.complete=!0),r.addEventListener("play",this._onPlayStart.bind(this)),r.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(r.addEventListener("canplay",this._onCanPlay),r.addEventListener("canplaythrough",this._onCanPlay),r.addEventListener("error",this._onError,!0)),this._load=new Promise(function(a){n.valid?a(n):(n._resolve=a,r.load())}),this._load},t.prototype._onError=function(n){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(n)},t.prototype._isSourcePlaying=function(){var n=this.source;return!n.paused&&!n.ended&&this._isSourceReady()},t.prototype._isSourceReady=function(){var n=this.source;return n.readyState>2},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Kr.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Kr.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var n=this.source;n.removeEventListener("canplay",this._onCanPlay),n.removeEventListener("canplaythrough",this._onCanPlay);var r=this.valid;this.resize(n.videoWidth,n.videoHeight),!r&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&n.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(Kr.shared.remove(this.update,this),this._isConnectedToTicker=!1);var n=this.source;n&&(n.removeEventListener("error",this._onError,!0),n.pause(),n.src="",n.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(n){n!==this._autoUpdate&&(this._autoUpdate=n,!this._autoUpdate&&this._isConnectedToTicker?(Kr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Kr.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(n){n!==this._updateFPS&&(this._updateFPS=n)},enumerable:!1,configurable:!0}),t.test=function(n,r){return globalThis.HTMLVideoElement&&n instanceof HTMLVideoElement||t.TYPES.indexOf(r)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(wi),J1=function(e){ar(t,e);function t(n){return e.call(this,n)||this}return t.test=function(n){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&n instanceof ImageBitmap},t}(wi);jf.push(Yv,J1,K1,Y1,X1,pu,W1,z1);var bR={__proto__:null,Resource:su,BaseImageResource:wi,INSTALLED:jf,autoDetectResource:Wv,AbstractMultiResource:Xv,ArrayResource:z1,BufferResource:pu,CanvasResource:K1,CubeResource:W1,ImageResource:Yv,SVGResource:X1,VideoResource:Y1,ImageBitmapResource:J1},b2e=function(e){ar(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(n,r,a){var o=n.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.alphaMode===Eo.UNPACK);var s=r.realWidth,l=r.realHeight;return a.width===s&&a.height===l?o.texSubImage2D(r.target,0,0,0,s,l,r.format,a.type,this.data):(a.width=s,a.height=l,o.texImage2D(r.target,0,a.internalFormat,s,l,0,r.format,a.type,this.data)),!0},t}(pu),W0=function(){function e(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new zr("disposeFramebuffer"),this.multisample=sr.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,n){return t===void 0&&(t=0),this.colorTextures[t]=n||new kn(null,{scaleMode:Do.NEAREST,resolution:1,mipmap:To.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new kn(new b2e(null,{width:this.width,height:this.height}),{scaleMode:Do.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:To.OFF,format:$t.DEPTH_COMPONENT,type:an.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(var r=0;r<this.colorTextures.length;r++){var a=this.colorTextures[r],o=a.resolution;a.setSize(t/o,n/o)}if(this.depthTexture){var o=this.depthTexture.resolution;this.depthTexture.setSize(t/o,n/o)}}},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)},e}(),q1=function(e){ar(t,e);function t(n){n===void 0&&(n={});var r=this;if(typeof n=="number"){var a=arguments[0],o=arguments[1],s=arguments[2],l=arguments[3];n={width:a,height:o,scaleMode:s,resolution:l}}return n.width=n.width||100,n.height=n.height||100,n.multisample=n.multisample!==void 0?n.multisample:sr.NONE,r=e.call(this,null,n)||this,r.mipmap=To.OFF,r.valid=!0,r.clearColor=[0,0,0,0],r.framebuffer=new W0(r.realWidth,r.realHeight).addColorTexture(0,r),r.framebuffer.multisample=n.multisample,r.maskStack=[],r.filterStack=[{}],r}return t.prototype.resize=function(n,r){this.framebuffer.resize(n*this.resolution,r*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},t.prototype.dispose=function(){this.framebuffer.dispose(),e.prototype.dispose.call(this)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null},t}(kn),Q1=function(){function e(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}return e.prototype.set=function(t,n,r){var a=n.width,o=n.height;if(r){var s=t.width/2/a,l=t.height/2/o,u=t.x/a+s,c=t.y/o+l;r=ur.add(r,ur.NW),this.x0=u+s*ur.uX(r),this.y0=c+l*ur.uY(r),r=ur.add(r,2),this.x1=u+s*ur.uX(r),this.y1=c+l*ur.uY(r),r=ur.add(r,2),this.x2=u+s*ur.uX(r),this.y2=c+l*ur.uY(r),r=ur.add(r,2),this.x3=u+s*ur.uX(r),this.y3=c+l*ur.uY(r)}else this.x0=t.x/a,this.y0=t.y/o,this.x1=(t.x+t.width)/a,this.y1=t.y/o,this.x2=(t.x+t.width)/a,this.y2=(t.y+t.height)/o,this.x3=t.x/a,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},e.prototype.toString=function(){return"[@pixi/core:TextureUvs "+("x0="+this.x0+" y0="+this.y0+" ")+("x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" ")+("y2="+this.y2+" x3="+this.x3+" y3="+this.y3)+"]"},e}(),r4=new Q1;function lp(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}var mn=function(e){ar(t,e);function t(n,r,a,o,s,l){var u=e.call(this)||this;if(u.noFrame=!1,r||(u.noFrame=!0,r=new $n(0,0,1,1)),n instanceof t&&(n=n.baseTexture),u.baseTexture=n,u._frame=r,u.trim=o,u.valid=!1,u._uvs=r4,u.uvMatrix=null,u.orig=a||r,u._rotate=Number(s||0),s===!0)u._rotate=2;else if(u._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return u.defaultAnchor=l?new Zn(l.x,l.y):new Zn(0,0),u._updateID=0,u.textureCacheIds=[],n.valid?u.noFrame?n.valid&&u.onBaseTextureUpdated(n):u.frame=r:n.once("loaded",u.onBaseTextureUpdated,u),u.noFrame&&n.on("update",u.onBaseTextureUpdated,u),u}return t.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},t.prototype.onBaseTextureUpdated=function(n){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=n.width,this._frame.height=n.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},t.prototype.destroy=function(n){if(this.baseTexture){if(n){var r=this.baseTexture.resource;r&&r.url&&ka[r.url]&&t.removeFromCache(r.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,t.removeFromCache(this),this.textureCacheIds=null},t.prototype.clone=function(){var n=this._frame.clone(),r=this._frame===this.orig?n:this.orig.clone(),a=new t(this.baseTexture,!this.noFrame&&n,r,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(a._frame=n),a},t.prototype.updateUvs=function(){this._uvs===r4&&(this._uvs=new Q1),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},t.from=function(n,r,a){r===void 0&&(r={}),a===void 0&&(a=Nt.STRICT_TEXTURE_CACHE);var o=typeof n=="string",s=null;if(o)s=n;else if(n instanceof kn){if(!n.cacheId){var l=r&&r.pixiIdPrefix||"pixiid";n.cacheId=l+"-"+Ks(),kn.addToCache(n,n.cacheId)}s=n.cacheId}else{if(!n._pixiId){var l=r&&r.pixiIdPrefix||"pixiid";n._pixiId=l+"_"+Ks()}s=n._pixiId}var u=ka[s];if(o&&a&&!u)throw new Error('The cacheId "'+s+'" does not exist in TextureCache.');return!u&&!(n instanceof kn)?(r.resolution||(r.resolution=Vf(n)),u=new t(new kn(n,r)),u.baseTexture.cacheId=s,kn.addToCache(u.baseTexture,s),t.addToCache(u,s)):!u&&n instanceof kn&&(u=new t(n),t.addToCache(u,s)),u},t.fromURL=function(n,r){var a=Object.assign({autoLoad:!1},r==null?void 0:r.resourceOptions),o=t.from(n,Object.assign({resourceOptions:a},r),!1),s=o.baseTexture.resource;return o.baseTexture.valid?Promise.resolve(o):s.load().then(function(){return Promise.resolve(o)})},t.fromBuffer=function(n,r,a,o){return new t(kn.fromBuffer(n,r,a,o))},t.fromLoader=function(n,r,a,o){var s=new kn(n,Object.assign({scaleMode:Nt.SCALE_MODE,resolution:Vf(r)},o)),l=s.resource;l instanceof Yv&&(l.url=r);var u=new t(s);return a||(a=r),kn.addToCache(u.baseTexture,a),t.addToCache(u,a),a!==r&&(kn.addToCache(u.baseTexture,r),t.addToCache(u,r)),u.baseTexture.valid?Promise.resolve(u):new Promise(function(c){u.baseTexture.once("loaded",function(){return c(u)})})},t.addToCache=function(n,r){r&&(n.textureCacheIds.indexOf(r)===-1&&n.textureCacheIds.push(r),ka[r]&&console.warn("Texture added to the cache with an id ["+r+"] that already had an entry"),ka[r]=n)},t.removeFromCache=function(n){if(typeof n=="string"){var r=ka[n];if(r){var a=r.textureCacheIds.indexOf(n);return a>-1&&r.textureCacheIds.splice(a,1),delete ka[n],r}}else if(n&&n.textureCacheIds){for(var o=0;o<n.textureCacheIds.length;++o)ka[n.textureCacheIds[o]]===n&&delete ka[n.textureCacheIds[o]];return n.textureCacheIds.length=0,n}return null},Object.defineProperty(t.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frame",{get:function(){return this._frame},set:function(n){this._frame=n,this.noFrame=!1;var r=n.x,a=n.y,o=n.width,s=n.height,l=r+o>this.baseTexture.width,u=a+s>this.baseTexture.height;if(l||u){var c=l&&u?"and":"or",f="X: "+r+" + "+o+" = "+(r+o)+" > "+this.baseTexture.width,d="Y: "+a+" + "+s+" = "+(a+s)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(f+" "+c+" "+d))}this.valid=o&&s&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=n),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(n){this._rotate=n,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new kn),lp(t._EMPTY),lp(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var n=Nt.ADAPTER.createCanvas(16,16),r=n.getContext("2d");n.width=16,n.height=16,r.fillStyle="white",r.fillRect(0,0,16,16),t._WHITE=new t(kn.from(n)),lp(t._WHITE),lp(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(as),Ws=function(e){ar(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.valid=!0,a.filterFrame=null,a.filterPoolKey=null,a.updateUvs(),a}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(n){this.framebuffer.multisample=n},enumerable:!1,configurable:!0}),t.prototype.resize=function(n,r,a){a===void 0&&(a=!0);var o=this.baseTexture.resolution,s=Math.round(n*o)/o,l=Math.round(r*o)/o;this.valid=s>0&&l>0,this._frame.width=this.orig.width=s,this._frame.height=this.orig.height=l,a&&this.baseTexture.resize(s,l),this.updateUvs()},t.prototype.setResolution=function(n){var r=this.baseTexture;r.resolution!==n&&(r.setResolution(n),this.resize(r.width,r.height,!1))},t.create=function(n){for(var r=arguments,a=[],o=1;o<arguments.length;o++)a[o-1]=r[o];return typeof n=="number"&&(Sa("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),n={width:n,height:a[0],scaleMode:a[1],resolution:a[2]}),new t(new q1(n))},t}(mn),_R=function(){function e(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}return e.prototype.createTexture=function(t,n,r){r===void 0&&(r=sr.NONE);var a=new q1(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new Ws(a)},e.prototype.getOptimalTexture=function(t,n,r,a){r===void 0&&(r=1),a===void 0&&(a=sr.NONE);var o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=Uf(t),n=Uf(n),o=((t&65535)<<16|n&65535)>>>0,a>1&&(o+=a*4294967296)):o=a>1?-a:-1,this.texturePool[o]||(this.texturePool[o]=[]);var s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,a)),s.filterPoolKey=o,s.setResolution(r),s},e.prototype.getFilterTexture=function(t,n,r){var a=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||sr.NONE);return a.filterFrame=t.filterFrame,a},e.prototype.returnTexture=function(t){var n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var n in this.texturePool){var r=this.texturePool[n];if(r)for(var a=0;a<r.length;a++)r[a].destroy(!0)}this.texturePool={}},e.prototype.setScreenSize=function(t){if(!(t.width===this._pixelsWidth&&t.height===this._pixelsHeight)){this.enableFullScreen=t.width>0&&t.height>0;for(var n in this.texturePool)if(Number(n)<0){var r=this.texturePool[n];if(r)for(var a=0;a<r.length;a++)r[a].destroy(!0);this.texturePool[n]=[]}this._pixelsWidth=t.width,this._pixelsHeight=t.height}},e.SCREEN_KEY=-1,e}(),Dy=function(){function e(t,n,r,a,o,s,l){n===void 0&&(n=0),r===void 0&&(r=!1),a===void 0&&(a=an.FLOAT),this.buffer=t,this.size=n,this.normalized=r,this.type=a,this.stride=o,this.start=s,this.instance=l}return e.prototype.destroy=function(){this.buffer=null},e.from=function(t,n,r,a,o){return new e(t,n,r,a,o)},e}(),_2e=0,$r=function(){function e(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1),this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=r,this.static=n,this.id=_2e++,this.disposeRunner=new zr("disposeBuffer")}return e.prototype.update=function(t){t instanceof Array&&(t=new Float32Array(t)),this.data=t||this.data,this._updateID++},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(e.prototype,"index",{get:function(){return this.type===Ho.ELEMENT_ARRAY_BUFFER},set:function(t){this.type=t?Ho.ELEMENT_ARRAY_BUFFER:Ho.ARRAY_BUFFER},enumerable:!1,configurable:!0}),e.from=function(t){return t instanceof Array&&(t=new Float32Array(t)),new e(t)},e}(),w2e={Float32Array,Uint32Array,Int32Array,Uint8Array};function S2e(e,t){for(var n=0,r=0,a={},o=0;o<e.length;o++)r+=t[o],n+=e[o].length;for(var s=new ArrayBuffer(n*4),l=null,u=0,o=0;o<e.length;o++){var c=t[o],f=e[o],d=zv(f);a[d]||(a[d]=new w2e[d](s)),l=a[d];for(var p=0;p<f.length;p++){var g=(p/c|0)*r+u,y=p%c;l[g+y]=f[p]}u+=c}return new Float32Array(s)}var a4={5126:4,5123:2,5121:1},T2e=0,E2e={Float32Array,Uint32Array,Int32Array,Uint8Array,Uint16Array},Yc=function(){function e(t,n){t===void 0&&(t=[]),n===void 0&&(n={}),this.buffers=t,this.indexBuffer=null,this.attributes=n,this.glVertexArrayObjects={},this.id=T2e++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new zr("disposeGeometry"),this.refCount=0}return e.prototype.addAttribute=function(t,n,r,a,o,s,l,u){if(r===void 0&&(r=0),a===void 0&&(a=!1),u===void 0&&(u=!1),!n)throw new Error("You must pass a buffer when creating an attribute");n instanceof $r||(n instanceof Array&&(n=new Float32Array(n)),n=new $r(n));var c=t.split("|");if(c.length>1){for(var f=0;f<c.length;f++)this.addAttribute(c[f],n,r,a,o);return this}var d=this.buffers.indexOf(n);return d===-1&&(this.buffers.push(n),d=this.buffers.length-1),this.attributes[t]=new Dy(d,r,a,o,s,l,u),this.instanced=this.instanced||u,this},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getBuffer=function(t){return this.buffers[this.getAttribute(t).buffer]},e.prototype.addIndex=function(t){return t instanceof $r||(t instanceof Array&&(t=new Uint16Array(t)),t=new $r(t)),t.type=Ho.ELEMENT_ARRAY_BUFFER,this.indexBuffer=t,this.buffers.indexOf(t)===-1&&this.buffers.push(t),this},e.prototype.getIndex=function(){return this.indexBuffer},e.prototype.interleave=function(){if(this.buffers.length===1||this.buffers.length===2&&this.indexBuffer)return this;var t=[],n=[],r=new $r,a;for(a in this.attributes){var o=this.attributes[a],s=this.buffers[o.buffer];t.push(s.data),n.push(o.size*a4[o.type]/4),o.buffer=0}for(r.data=S2e(t,n),a=0;a<this.buffers.length;a++)this.buffers[a]!==this.indexBuffer&&this.buffers[a].destroy();return this.buffers=[r],this.indexBuffer&&this.buffers.push(this.indexBuffer),this},e.prototype.getSize=function(){for(var t in this.attributes){var n=this.attributes[t],r=this.buffers[n.buffer];return r.data.length/(n.stride/4||n.size)}return 0},e.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},e.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},e.prototype.clone=function(){for(var t=new e,n=0;n<this.buffers.length;n++)t.buffers[n]=new $r(this.buffers[n].data.slice(0));for(var n in this.attributes){var r=this.attributes[n];t.attributes[n]=new Dy(r.buffer,r.size,r.normalized,r.type,r.stride,r.start,r.instance)}return this.indexBuffer&&(t.indexBuffer=t.buffers[this.buffers.indexOf(this.indexBuffer)],t.indexBuffer.type=Ho.ELEMENT_ARRAY_BUFFER),t},e.merge=function(t){for(var n=new e,r=[],a=[],o=[],s,l=0;l<t.length;l++){s=t[l];for(var u=0;u<s.buffers.length;u++)a[u]=a[u]||0,a[u]+=s.buffers[u].data.length,o[u]=0}for(var l=0;l<s.buffers.length;l++)r[l]=new E2e[zv(s.buffers[l].data)](a[l]),n.buffers[l]=new $r(r[l]);for(var l=0;l<t.length;l++){s=t[l];for(var u=0;u<s.buffers.length;u++)r[u].set(s.buffers[u].data,o[u]),o[u]+=s.buffers[u].data.length}if(n.attributes=s.attributes,s.indexBuffer){n.indexBuffer=n.buffers[s.buffers.indexOf(s.indexBuffer)],n.indexBuffer.type=Ho.ELEMENT_ARRAY_BUFFER;for(var c=0,f=0,d=0,p=0,l=0;l<s.buffers.length;l++)if(s.buffers[l]!==s.indexBuffer){p=l;break}for(var l in s.attributes){var g=s.attributes[l];(g.buffer|0)===p&&(f+=g.size*a4[g.type]/4)}for(var l=0;l<t.length;l++){for(var y=t[l].indexBuffer.data,u=0;u<y.length;u++)n.indexBuffer.data[u+d]+=c;c+=t[l].buffers[p].data.length/f,d+=y.length}}return n},e}(),wR=function(e){ar(t,e);function t(){var n=e.call(this)||this;return n.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),n}return t}(Yc),Z1=function(e){ar(t,e);function t(){var n=e.call(this)||this;return n.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),n.uvs=new Float32Array([0,0,1,0,1,1,0,1]),n.vertexBuffer=new $r(n.vertices),n.uvBuffer=new $r(n.uvs),n.addAttribute("aVertexPosition",n.vertexBuffer).addAttribute("aTextureCoord",n.uvBuffer).addIndex([0,1,2,0,2,3]),n}return t.prototype.map=function(n,r){var a=0,o=0;return this.uvs[0]=a,this.uvs[1]=o,this.uvs[2]=a+r.width/n.width,this.uvs[3]=o,this.uvs[4]=a+r.width/n.width,this.uvs[5]=o+r.height/n.height,this.uvs[6]=a,this.uvs[7]=o+r.height/n.height,a=r.x,o=r.y,this.vertices[0]=a,this.vertices[1]=o,this.vertices[2]=a+r.width,this.vertices[3]=o,this.vertices[4]=a+r.width,this.vertices[5]=o+r.height,this.vertices[6]=a,this.vertices[7]=o+r.height,this.invalidate(),this},t.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},t}(Yc),C2e=0,Ls=function(){function e(t,n,r){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=C2e++,this.static=!!n,this.ubo=!!r,t instanceof $r?(this.buffer=t,this.buffer.type=Ho.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new $r(new Float32Array(1)),this.buffer.type=Ho.UNIFORM_BUFFER,this.autoManage=!0))}return e.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},e.prototype.add=function(t,n,r){if(!this.ubo)this.uniforms[t]=new e(n,r);else throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them")},e.from=function(t,n,r){return new e(t,n,r)},e.uboFrom=function(t,n){return new e(t,n??!0,!0)},e}(),SR=function(){function e(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=sr.NONE,this.sourceFrame=new $n,this.destinationFrame=new $n,this.bindingSourceFrame=new $n,this.bindingDestinationFrame=new $n,this.filters=[],this.transform=null}return e.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},e}(),up=[new Zn,new Zn,new Zn,new Zn],hg=new cr,ew=function(){function e(t){this.renderer=t,this.defaultFilterStack=[{}],this.texturePool=new _R,this.texturePool.setScreenSize(t.view),this.statePool=[],this.quad=new wR,this.quadUv=new Z1,this.tempRect=new $n,this.activeState={},this.globalUniforms=new Ls({outputFrame:new $n,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}return e.prototype.push=function(t,n){for(var r,a,o=this.renderer,s=this.defaultFilterStack,l=this.statePool.pop()||new SR,u=this.renderer.renderTexture,c=n[0].resolution,f=n[0].multisample,d=n[0].padding,p=n[0].autoFit,g=(r=n[0].legacy)!==null&&r!==void 0?r:!0,y=1;y<n.length;y++){var m=n[y];c=Math.min(c,m.resolution),f=Math.min(f,m.multisample),d=this.useMaxPadding?Math.max(d,m.padding):d+m.padding,p=p&&m.autoFit,g=g||((a=m.legacy)!==null&&a!==void 0?a:!0)}s.length===1&&(this.defaultFilterStack[0].renderTexture=u.current),s.push(l),l.resolution=c,l.multisample=f,l.legacy=g,l.target=t,l.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),l.sourceFrame.pad(d);var S=this.tempRect.copyFrom(u.sourceFrame);o.projection.transform&&this.transformAABB(hg.copyFrom(o.projection.transform).invert(),S),p?(l.sourceFrame.fit(S),(l.sourceFrame.width<=0||l.sourceFrame.height<=0)&&(l.sourceFrame.width=0,l.sourceFrame.height=0)):l.sourceFrame.intersects(S)||(l.sourceFrame.width=0,l.sourceFrame.height=0),this.roundFrame(l.sourceFrame,u.current?u.current.resolution:o.resolution,u.sourceFrame,u.destinationFrame,o.projection.transform),l.renderTexture=this.getOptimalFilterTexture(l.sourceFrame.width,l.sourceFrame.height,c,f),l.filters=n,l.destinationFrame.width=l.renderTexture.width,l.destinationFrame.height=l.renderTexture.height;var _=this.tempRect;_.x=0,_.y=0,_.width=l.sourceFrame.width,_.height=l.sourceFrame.height,l.renderTexture.filterFrame=l.sourceFrame,l.bindingSourceFrame.copyFrom(u.sourceFrame),l.bindingDestinationFrame.copyFrom(u.destinationFrame),l.transform=o.projection.transform,o.projection.transform=null,u.bind(l.renderTexture,l.sourceFrame,_),o.framebuffer.clear(0,0,0,0)},e.prototype.pop=function(){var t=this.defaultFilterStack,n=t.pop(),r=n.filters;this.activeState=n;var a=this.globalUniforms.uniforms;a.outputFrame=n.sourceFrame,a.resolution=n.resolution;var o=a.inputSize,s=a.inputPixel,l=a.inputClamp;if(o[0]=n.destinationFrame.width,o[1]=n.destinationFrame.height,o[2]=1/o[0],o[3]=1/o[1],s[0]=Math.round(o[0]*n.resolution),s[1]=Math.round(o[1]*n.resolution),s[2]=1/s[0],s[3]=1/s[1],l[0]=.5*s[2],l[1]=.5*s[3],l[2]=n.sourceFrame.width*o[2]-.5*s[2],l[3]=n.sourceFrame.height*o[3]-.5*s[3],n.legacy){var u=a.filterArea;u[0]=n.destinationFrame.width,u[1]=n.destinationFrame.height,u[2]=n.sourceFrame.x,u[3]=n.sourceFrame.y,a.filterClamp=a.inputClamp}this.globalUniforms.update();var c=t[t.length-1];if(this.renderer.framebuffer.blit(),r.length===1)r[0].apply(this,n.renderTexture,c.renderTexture,oo.BLEND,n),this.returnFilterTexture(n.renderTexture);else{var f=n.renderTexture,d=this.getOptimalFilterTexture(f.width,f.height,n.resolution);d.filterFrame=f.filterFrame;var p=0;for(p=0;p<r.length-1;++p){p===1&&n.multisample>1&&(d=this.getOptimalFilterTexture(f.width,f.height,n.resolution),d.filterFrame=f.filterFrame),r[p].apply(this,f,d,oo.CLEAR,n);var g=f;f=d,d=g}r[p].apply(this,f,c.renderTexture,oo.BLEND,n),p>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(f),this.returnFilterTexture(d)}n.clear(),this.statePool.push(n)},e.prototype.bindAndClear=function(t,n){n===void 0&&(n=oo.CLEAR);var r=this.renderer,a=r.renderTexture,o=r.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,a.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?a.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var l=o.stateId&1||this.forceClear;(n===oo.CLEAR||n===oo.BLIT&&l)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,n,r,a){var o=this.renderer;o.state.set(t.state),this.bindAndClear(r,a),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(co.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(co.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,n){var r=this.activeState,a=r.sourceFrame,o=r.destinationFrame,s=n._texture.orig,l=t.set(o.width,0,0,o.height,a.x,a.y),u=n.worldTransform.copyTo(cr.TEMP_MATRIX);return u.invert(),l.prepend(u),l.scale(1/s.width,1/s.height),l.translate(n.anchor.x,n.anchor.y),l},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,n,r,a){return r===void 0&&(r=1),a===void 0&&(a=sr.NONE),this.texturePool.getOptimalTexture(t,n,r,a)},e.prototype.getFilterTexture=function(t,n,r){if(typeof t=="number"){var a=t;t=n,n=a}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||sr.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,n){var r=up[0],a=up[1],o=up[2],s=up[3];r.set(n.left,n.top),a.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(a,a),t.apply(o,o),t.apply(s,s);var l=Math.min(r.x,a.x,o.x,s.x),u=Math.min(r.y,a.y,o.y,s.y),c=Math.max(r.x,a.x,o.x,s.x),f=Math.max(r.y,a.y,o.y,s.y);n.x=l,n.y=u,n.width=c-l,n.height=f-u},e.prototype.roundFrame=function(t,n,r,a,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){var s=o.a,l=o.b,u=o.c,c=o.d;if((Math.abs(l)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(c)>1e-4))return}o=o?hg.copyFrom(o):hg.identity(),o.translate(-r.x,-r.y).scale(a.width/r.width,a.height/r.height).translate(a.x,a.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}},e}(),wh=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),tw=function(){function e(t){this.renderer=t,this.emptyRenderer=new wh(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,n){for(var r=this.renderer.texture.boundTextures,a=n-1;a>=0;--a)t[a]=r[a]||null,t[a]&&(t[a]._batchLocation=a)},e.prototype.boundArray=function(t,n,r,a){for(var o=t.elements,s=t.ids,l=t.count,u=0,c=0;c<l;c++){var f=o[c],d=f._batchLocation;if(d>=0&&d<a&&n[d]===f){s[c]=d;continue}for(;u<a;){var p=n[u];if(p&&p._batchEnabled===r&&p._batchLocation===u){u++;continue}s[c]=u,f._batchLocation=u,n[u]=f;break}}},e.prototype.destroy=function(){this.renderer=null},e}(),o4=0,nw=function(){function e(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),t.view.addEventListener("webglcontextlost",this.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}return Object.defineProperty(e.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),e.prototype.contextChange=function(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=o4++},e.prototype.initFromContext=function(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=o4++,this.renderer.runners.contextChange.emit(t)},e.prototype.initFromOptions=function(t){var n=this.createContext(this.renderer.view,t);this.initFromContext(n)},e.prototype.createContext=function(t,n){var r;if(Nt.PREFER_ENV>=bi.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){var n=this;t.preventDefault(),setTimeout(function(){n.gl.isContextLost()&&n.extensions.loseContext&&n.extensions.loseContext.restoreContext()},0)},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var a=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=a,a||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),TR=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=sr.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),x2e=new $n,rw=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new W0(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new $n,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){var n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;Nt.PREFER_ENV===bi.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=function(a){return n.drawBuffersWEBGL(a)}:(this.hasMRT=!1,t.drawBuffers=function(){}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,n,r){r===void 0&&(r=0);var a=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,a.bindFramebuffer(a.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var s=0;s<t.colorTextures.length;s++){var l=t.colorTextures[s];this.renderer.texture.unbind(l.parentTextureArray||l)}if(t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),n){var u=n.width>>r,c=n.height>>r,f=u/n.width;this.setViewport(n.x*f,n.y*f,u,c)}else{var u=t.width>>r,c=t.height>>r;this.setViewport(0,0,u,c)}}else this.current&&(this.current=null,a.bindFramebuffer(a.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,n,r,a){var o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),a=Math.round(a),(o.width!==r||o.height!==a||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=a,this.gl.viewport(t,n,r,a))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,n,r,a,o){o===void 0&&(o=Lf.COLOR|Lf.DEPTH);var s=this.gl;s.clearColor(t,n,r,a),s.clear(o)},e.prototype.initFramebuffer=function(t){var n=this.gl,r=new TR(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r},e.prototype.resizeFramebuffer=function(t){var n=this.gl,r=t.glFramebuffers[this.CONTEXT_UID];r.msaaBuffer&&(n.bindRenderbuffer(n.RENDERBUFFER,r.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.RGBA8,t.width,t.height)),r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));var a=t.colorTextures,o=a.length;n.drawBuffers||(o=Math.min(o,1));for(var s=0;s<o;s++){var l=a[s],u=l.parentTextureArray||l;this.renderer.texture.bind(u,0)}t.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(t.depthTexture,0)},e.prototype.updateFramebuffer=function(t,n){var r=this.gl,a=t.glFramebuffers[this.CONTEXT_UID],o=t.colorTextures,s=o.length;r.drawBuffers||(s=Math.min(s,1)),a.multisample>1&&this.canMultisampleFramebuffer(t)?(a.msaaBuffer=a.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,a.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,a.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,a.msaaBuffer)):a.msaaBuffer&&(r.deleteRenderbuffer(a.msaaBuffer),a.msaaBuffer=null,a.blitFramebuffer&&(a.blitFramebuffer.dispose(),a.blitFramebuffer=null));for(var l=[],u=0;u<s;u++){var c=o[u],f=c.parentTextureArray||c;this.renderer.texture.bind(f,0),!(u===0&&a.msaaBuffer)&&(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+u,c.target,f._glTextures[this.CONTEXT_UID].texture,n),l.push(r.COLOR_ATTACHMENT0+u))}if(l.length>1&&r.drawBuffers(l),t.depthTexture){var d=this.writeDepthTexture;if(d){var p=t.depthTexture;this.renderer.texture.bind(p,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,p._glTextures[this.CONTEXT_UID].texture,n)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(a.stencil=a.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,a.stencil),a.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,a.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,a.stencil)):a.stencil&&(r.deleteRenderbuffer(a.stencil),a.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var n=this.msaaSamples,r=sr.NONE;if(t<=1||n===null)return r;for(var a=0;a<n.length;a++)if(n[a]<=t){r=n[a];break}return r===1&&(r=sr.NONE),r},e.prototype.blit=function(t,n,r){var a=this,o=a.current,s=a.renderer,l=a.gl,u=a.CONTEXT_UID;if(s.context.webGLVersion===2&&o){var c=o.glFramebuffers[u];if(c){if(!t){if(!c.msaaBuffer)return;var f=o.colorTextures[0];if(!f)return;c.blitFramebuffer||(c.blitFramebuffer=new W0(o.width,o.height),c.blitFramebuffer.addColorTexture(0,f)),t=c.blitFramebuffer,t.colorTextures[0]!==f&&(t.colorTextures[0]=f,t.dirtyId++,t.dirtyFormat++),(t.width!==o.width||t.height!==o.height)&&(t.width=o.width,t.height=o.height,t.dirtyId++,t.dirtySize++)}n||(n=x2e,n.width=o.width,n.height=o.height),r||(r=n);var d=n.width===r.width&&n.height===r.height;this.bind(t),l.bindFramebuffer(l.READ_FRAMEBUFFER,c.framebuffer),l.blitFramebuffer(n.left,n.top,n.right,n.bottom,r.left,r.top,r.right,r.bottom,l.COLOR_BUFFER_BIT,d?l.NEAREST:l.LINEAR)}}},e.prototype.disposeFramebuffer=function(t,n){var r=t.glFramebuffers[this.CONTEXT_UID],a=this.gl;if(r){delete t.glFramebuffers[this.CONTEXT_UID];var o=this.managedFramebuffers.indexOf(t);o>=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(a.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&a.deleteRenderbuffer(r.msaaBuffer),r.stencil&&a.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var n=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r<n.length;r++)this.disposeFramebuffer(n[r],t)},e.prototype.forceStencil=function(){var t=this.current;if(t){var n=t.glFramebuffers[this.CONTEXT_UID];if(!(!n||n.stencil)){t.stencil=!0;var r=t.width,a=t.height,o=this.gl,s=o.createRenderbuffer();o.bindRenderbuffer(o.RENDERBUFFER,s),n.msaaBuffer?o.renderbufferStorageMultisample(o.RENDERBUFFER,n.multisample,o.DEPTH24_STENCIL8,r,a):o.renderbufferStorage(o.RENDERBUFFER,o.DEPTH_STENCIL,r,a),n.stencil=s,o.framebufferRenderbuffer(o.FRAMEBUFFER,o.DEPTH_STENCIL_ATTACHMENT,o.RENDERBUFFER,s)}}},e.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new $n},e.prototype.destroy=function(){this.renderer=null},e}(),pg={5126:4,5123:2,5121:1},aw=function(){function e(t){this.renderer=t,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}return e.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl,n=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,n.webGLVersion!==2){var r=this.renderer.context.extensions.vertexArrayObject;Nt.PREFER_ENV===bi.WEBGL_LEGACY&&(r=null),r?(t.createVertexArray=function(){return r.createVertexArrayOES()},t.bindVertexArray=function(o){return r.bindVertexArrayOES(o)},t.deleteVertexArray=function(o){return r.deleteVertexArrayOES(o)}):(this.hasVao=!1,t.createVertexArray=function(){return null},t.bindVertexArray=function(){return null},t.deleteVertexArray=function(){return null})}if(n.webGLVersion!==2){var a=t.getExtension("ANGLE_instanced_arrays");a?(t.vertexAttribDivisor=function(o,s){return a.vertexAttribDivisorANGLE(o,s)},t.drawElementsInstanced=function(o,s,l,u,c){return a.drawElementsInstancedANGLE(o,s,l,u,c)},t.drawArraysInstanced=function(o,s,l,u){return a.drawArraysInstancedANGLE(o,s,l,u)}):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex},e.prototype.bind=function(t,n){n=n||this.renderer.shader.shader;var r=this.gl,a=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;a||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=a={},o=!0);var s=a[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()},e.prototype.reset=function(){this.unbind()},e.prototype.updateBuffers=function(){for(var t=this._activeGeometry,n=this.renderer.buffer,r=0;r<t.buffers.length;r++){var a=t.buffers[r];n.update(a)}},e.prototype.checkCompatibility=function(t,n){var r=t.attributes,a=n.attributeData;for(var o in a)if(!r[o])throw new Error('shader and geometry incompatible, geometry missing the "'+o+'" attribute')},e.prototype.getSignature=function(t,n){var r=t.attributes,a=n.attributeData,o=["g",t.id];for(var s in r)a[s]&&o.push(s,a[s].location);return o.join("-")},e.prototype.initGeometryVao=function(t,n,r){r===void 0&&(r=!0);var a=this.gl,o=this.CONTEXT_UID,s=this.renderer.buffer,l=n.program;l.glPrograms[o]||this.renderer.shader.generateProgram(n),this.checkCompatibility(t,l);var u=this.getSignature(t,l),c=t.glVertexArrayObjects[this.CONTEXT_UID],f=c[u];if(f)return c[l.id]=f,f;var d=t.buffers,p=t.attributes,g={},y={};for(var m in d)g[m]=0,y[m]=0;for(var m in p)!p[m].size&&l.attributeData[m]?p[m].size=l.attributeData[m].size:p[m].size||console.warn("PIXI Geometry attribute '"+m+"' size cannot be determined (likely the bound shader does not have the attribute)"),g[p[m].buffer]+=p[m].size*pg[p[m].type];for(var m in p){var S=p[m],_=S.size;S.stride===void 0&&(g[S.buffer]===_*pg[S.type]?S.stride=0:S.stride=g[S.buffer]),S.start===void 0&&(S.start=y[S.buffer],y[S.buffer]+=_*pg[S.type])}f=a.createVertexArray(),a.bindVertexArray(f);for(var P=0;P<d.length;P++){var A=d[P];s.bind(A),r&&A._glBuffers[o].refCount++}return this.activateVao(t,l),this._activeVao=f,c[l.id]=f,c[u]=f,f},e.prototype.disposeGeometry=function(t,n){var r;if(this.managedGeometries[t.id]){delete this.managedGeometries[t.id];var a=t.glVertexArrayObjects[this.CONTEXT_UID],o=this.gl,s=t.buffers,l=(r=this.renderer)===null||r===void 0?void 0:r.buffer;if(t.disposeRunner.remove(this),!!a){if(l)for(var u=0;u<s.length;u++){var c=s[u]._glBuffers[this.CONTEXT_UID];c&&(c.refCount--,c.refCount===0&&!n&&l.dispose(s[u],n))}if(!n){for(var f in a)if(f[0]==="g"){var d=a[f];this._activeVao===d&&this.unbind(),o.deleteVertexArray(d)}}delete t.glVertexArrayObjects[this.CONTEXT_UID]}}},e.prototype.disposeAll=function(t){for(var n=Object.keys(this.managedGeometries),r=0;r<n.length;r++)this.disposeGeometry(this.managedGeometries[n[r]],t)},e.prototype.activateVao=function(t,n){var r=this.gl,a=this.CONTEXT_UID,o=this.renderer.buffer,s=t.buffers,l=t.attributes;t.indexBuffer&&o.bind(t.indexBuffer);var u=null;for(var c in l){var f=l[c],d=s[f.buffer],p=d._glBuffers[a];if(n.attributeData[c]){u!==p&&(o.bind(d),u=p);var g=n.attributeData[c].location;if(r.enableVertexAttribArray(g),r.vertexAttribPointer(g,f.size,f.type||r.FLOAT,f.normalized,f.stride,f.start),f.instance)if(this.hasInstance)r.vertexAttribDivisor(g,1);else throw new Error("geometry error, GPU Instancing is not supported on this device")}}},e.prototype.draw=function(t,n,r,a){var o=this.gl,s=this._activeGeometry;if(s.indexBuffer){var l=s.indexBuffer.data.BYTES_PER_ELEMENT,u=l===2?o.UNSIGNED_SHORT:o.UNSIGNED_INT;l===2||l===4&&this.canUseUInt32ElementIndex?s.instanced?o.drawElementsInstanced(t,n||s.indexBuffer.data.length,u,(r||0)*l,a||1):o.drawElements(t,n||s.indexBuffer.data.length,u,(r||0)*l):console.warn("unsupported index buffer type: uint32")}else s.instanced?o.drawArraysInstanced(t,r,n||s.getSize(),a||1):o.drawArrays(t,r,n||s.getSize());return this},e.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},e.prototype.destroy=function(){this.renderer=null},e}(),ER=function(){function e(t){t===void 0&&(t=null),this.type=wr.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=Nt.FILTER_MULTISAMPLE,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}return Object.defineProperty(e.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=wr.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},e.prototype.copyCountersOrReset=function(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)},e}();function i4(e,t,n){var r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function s4(e,t){var n=e.getShaderSource(t).split(`
`).map(function(c,f){return f+": "+c}),r=e.getShaderInfoLog(t),a=r.split(`
`),o={},s=a.map(function(c){return parseFloat(c.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))}).filter(function(c){return c&&!o[c]?(o[c]=!0,!0):!1}),l=[""];s.forEach(function(c){n[c-1]="%c"+n[c-1]+"%c",l.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});var u=n.join(`
`);l[0]=u,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,l),console.groupEnd()}function I2e(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||s4(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||s4(e,r),console.error("PixiJS Error: Could not initialize shader."),e.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}function vg(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=!1;return t}function CR(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"uvec2":return new Uint32Array(2*t);case"uvec3":return new Uint32Array(3*t);case"uvec4":return new Uint32Array(4*t);case"bool":return!1;case"bvec2":return vg(2*t);case"bvec3":return vg(3*t);case"bvec4":return vg(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var xR={},fd=xR;function IR(){if(fd===xR||fd&&fd.isContextLost()){var e=Nt.ADAPTER.createCanvas(),t=void 0;Nt.PREFER_ENV>=bi.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),fd=t}return fd}var cp;function A2e(){if(!cp){cp=Na.MEDIUM;var e=IR();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);cp=t.precision?Na.HIGH:Na.MEDIUM}}return cp}function l4(e,t,n){if(e.substring(0,9)!=="precision"){var r=t;return t===Na.HIGH&&n!==Na.HIGH&&(r=Na.MEDIUM),"precision "+r+` float;
`+e}else if(n!==Na.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var P2e={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function AR(e){return P2e[e]}var dp=null,u4={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function PR(e,t){if(!dp){var n=Object.keys(u4);dp={};for(var r=0;r<n.length;++r){var a=n[r];dp[e[a]]=u4[a]}}return dp[t]}var Xl=[{test:function(e){return e.type==="float"&&e.size===1&&!e.isArray},code:function(e){return`
            if(uv["`+e+'"] !== ud["'+e+`"].value)
            {
                ud["`+e+'"].value = uv["'+e+`"]
                gl.uniform1f(ud["`+e+'"].location, uv["'+e+`"])
            }
            `}},{test:function(e,t){return(e.type==="sampler2D"||e.type==="samplerCube"||e.type==="sampler2DArray")&&e.size===1&&!e.isArray&&(t==null||t.castToBaseTexture!==void 0)},code:function(e){return`t = syncData.textureCount++;

            renderer.texture.bind(uv["`+e+`"], t);

            if(ud["`+e+`"].value !== t)
            {
                ud["`+e+`"].value = t;
                gl.uniform1i(ud["`+e+`"].location, t);
; // eslint-disable-line max-len
            }`}},{test:function(e,t){return e.type==="mat3"&&e.size===1&&!e.isArray&&t.a!==void 0},code:function(e){return`
            gl.uniformMatrix3fv(ud["`+e+'"].location, false, uv["'+e+`"].toArray(true));
            `},codeUbo:function(e){return`
                var `+e+"_matrix = uv."+e+`.toArray(true);

                data[offset] = `+e+`_matrix[0];
                data[offset+1] = `+e+`_matrix[1];
                data[offset+2] = `+e+`_matrix[2];
        
                data[offset + 4] = `+e+`_matrix[3];
                data[offset + 5] = `+e+`_matrix[4];
                data[offset + 6] = `+e+`_matrix[5];
        
                data[offset + 8] = `+e+`_matrix[6];
                data[offset + 9] = `+e+`_matrix[7];
                data[offset + 10] = `+e+`_matrix[8];
            `}},{test:function(e,t){return e.type==="vec2"&&e.size===1&&!e.isArray&&t.x!==void 0},code:function(e){return`
                cv = ud["`+e+`"].value;
                v = uv["`+e+`"];

                if(cv[0] !== v.x || cv[1] !== v.y)
                {
                    cv[0] = v.x;
                    cv[1] = v.y;
                    gl.uniform2f(ud["`+e+`"].location, v.x, v.y);
                }`},codeUbo:function(e){return`
                v = uv.`+e+`;

                data[offset] = v.x;
                data[offset+1] = v.y;
            `}},{test:function(e){return e.type==="vec2"&&e.size===1&&!e.isArray},code:function(e){return`
                cv = ud["`+e+`"].value;
                v = uv["`+e+`"];

                if(cv[0] !== v[0] || cv[1] !== v[1])
                {
                    cv[0] = v[0];
                    cv[1] = v[1];
                    gl.uniform2f(ud["`+e+`"].location, v[0], v[1]);
                }
            `}},{test:function(e,t){return e.type==="vec4"&&e.size===1&&!e.isArray&&t.width!==void 0},code:function(e){return`
                cv = ud["`+e+`"].value;
                v = uv["`+e+`"];

                if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)
                {
                    cv[0] = v.x;
                    cv[1] = v.y;
                    cv[2] = v.width;
                    cv[3] = v.height;
                    gl.uniform4f(ud["`+e+`"].location, v.x, v.y, v.width, v.height)
                }`},codeUbo:function(e){return`
                    v = uv.`+e+`;

                    data[offset] = v.x;
                    data[offset+1] = v.y;
                    data[offset+2] = v.width;
                    data[offset+3] = v.height;
                `}},{test:function(e){return e.type==="vec4"&&e.size===1&&!e.isArray},code:function(e){return`
                cv = ud["`+e+`"].value;
                v = uv["`+e+`"];

                if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
                {
                    cv[0] = v[0];
                    cv[1] = v[1];
                    cv[2] = v[2];
                    cv[3] = v[3];

                    gl.uniform4f(ud["`+e+`"].location, v[0], v[1], v[2], v[3])
                }`}}],M2e={float:`
    if (cv !== v)
    {
        cu.value = v;
        gl.uniform1f(location, v);
    }`,vec2:`
    if (cv[0] !== v[0] || cv[1] !== v[1])
    {
        cv[0] = v[0];
        cv[1] = v[1];

        gl.uniform2f(location, v[0], v[1])
    }`,vec3:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];

        gl.uniform3f(location, v[0], v[1], v[2])
    }`,vec4:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];
        cv[3] = v[3];

        gl.uniform4f(location, v[0], v[1], v[2], v[3]);
    }`,int:`
    if (cv !== v)
    {
        cu.value = v;

        gl.uniform1i(location, v);
    }`,ivec2:`
    if (cv[0] !== v[0] || cv[1] !== v[1])
    {
        cv[0] = v[0];
        cv[1] = v[1];

        gl.uniform2i(location, v[0], v[1]);
    }`,ivec3:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];

        gl.uniform3i(location, v[0], v[1], v[2]);
    }`,ivec4:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];
        cv[3] = v[3];

        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
    }`,uint:`
    if (cv !== v)
    {
        cu.value = v;

        gl.uniform1ui(location, v);
    }`,uvec2:`
    if (cv[0] !== v[0] || cv[1] !== v[1])
    {
        cv[0] = v[0];
        cv[1] = v[1];

        gl.uniform2ui(location, v[0], v[1]);
    }`,uvec3:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];

        gl.uniform3ui(location, v[0], v[1], v[2]);
    }`,uvec4:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];
        cv[3] = v[3];

        gl.uniform4ui(location, v[0], v[1], v[2], v[3]);
    }`,bool:`
    if (cv !== v)
    {
        cu.value = v;
        gl.uniform1i(location, v);
    }`,bvec2:`
    if (cv[0] != v[0] || cv[1] != v[1])
    {
        cv[0] = v[0];
        cv[1] = v[1];

        gl.uniform2i(location, v[0], v[1]);
    }`,bvec3:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];

        gl.uniform3i(location, v[0], v[1], v[2]);
    }`,bvec4:`
    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])
    {
        cv[0] = v[0];
        cv[1] = v[1];
        cv[2] = v[2];
        cv[3] = v[3];

        gl.uniform4i(location, v[0], v[1], v[2], v[3]);
    }`,mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:`
    if (cv !== v)
    {
        cu.value = v;

        gl.uniform1i(location, v);
    }`,samplerCube:`
    if (cv !== v)
    {
        cu.value = v;

        gl.uniform1i(location, v);
    }`,sampler2DArray:`
    if (cv !== v)
    {
        cu.value = v;

        gl.uniform1i(location, v);
    }`},O2e={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function $2e(e,t){var n,r=[`
        var v = null;
        var cv = null;
        var cu = null;
        var t = 0;
        var gl = renderer.gl;
    `];for(var a in e.uniforms){var o=t[a];if(!o){!((n=e.uniforms[a])===null||n===void 0)&&n.group&&(e.uniforms[a].ubo?r.push(`
                        renderer.shader.syncUniformBufferGroup(uv.`+a+", '"+a+`');
                    `):r.push(`
                        renderer.shader.syncUniformGroup(uv.`+a+`, syncData);
                    `));continue}for(var s=e.uniforms[a],l=!1,u=0;u<Xl.length;u++)if(Xl[u].test(o,s)){r.push(Xl[u].code(a,s)),l=!0;break}if(!l){var c=o.size===1&&!o.isArray?M2e:O2e,f=c[o.type].replace("location",'ud["'+a+'"].location');r.push(`
            cu = ud["`+a+`"];
            cv = cu.value;
            v = uv["`+a+`"];
            `+f+";")}}return new Function("ud","uv","renderer","syncData",r.join(`
`))}var R2e=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
`);function k2e(e){for(var t="",n=0;n<e;++n)n>0&&(t+=`
else `),n<e-1&&(t+="if(test == "+n+".0){}");return t}function MR(e,t){if(e===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");for(var n=t.createShader(t.FRAGMENT_SHADER);;){var r=R2e.replace(/%forloop%/gi,k2e(e));if(t.shaderSource(n,r),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))e=e/2|0;else break}return e}var hd;function L2e(){if(typeof hd=="boolean")return hd;try{var e=new Function("param1","param2","param3","return param1[param2] === param3;");hd=e({a:"b"},"a","b")===!0}catch{hd=!1}return hd}var N2e=`varying vec2 vTextureCoord;

uniform sampler2D uSampler;

void main(void){
   gl_FragColor *= texture2D(uSampler, vTextureCoord);
}`,D2e=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;

varying vec2 vTextureCoord;

void main(void){
   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
   vTextureCoord = aTextureCoord;
}
`,F2e=0,fp={},Jc=function(){function e(t,n,r){r===void 0&&(r="pixi-shader"),this.id=F2e++,this.vertexSrc=t||e.defaultVertexSrc,this.fragmentSrc=n||e.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.vertexSrc.substring(0,8)!=="#version"&&(r=r.replace(/\s+/g,"-"),fp[r]?(fp[r]++,r+="-"+fp[r]):fp[r]=1,this.vertexSrc="#define SHADER_NAME "+r+`
`+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+r+`
`+this.fragmentSrc,this.vertexSrc=l4(this.vertexSrc,Nt.PRECISION_VERTEX,Na.HIGH),this.fragmentSrc=l4(this.fragmentSrc,Nt.PRECISION_FRAGMENT,A2e())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(e,"defaultVertexSrc",{get:function(){return D2e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return N2e},enumerable:!1,configurable:!0}),e.from=function(t,n,r){var a=t+n,o=$y[a];return o||($y[a]=o=new e(t,n,r)),o},e}(),Ui=function(){function e(t,n){this.uniformBindCount=0,this.program=t,n?n instanceof Ls?this.uniformGroup=n:this.uniformGroup=new Ls(n):this.uniformGroup=new Ls({}),this.disposeRunner=new zr("disposeShader")}return e.prototype.checkUniformExists=function(t,n){if(n.uniforms[t])return!0;for(var r in n.uniforms){var a=n.uniforms[r];if(a.group&&this.checkUniformExists(t,a))return!0}return!1},e.prototype.destroy=function(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()},Object.defineProperty(e.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),e.from=function(t,n,r){var a=Jc.from(t,n);return new e(a,r)},e}(),mg=0,gg=1,yg=2,bg=3,_g=4,wg=5,ol=function(){function e(){this.data=0,this.blendMode=on.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(e.prototype,"blend",{get:function(){return!!(this.data&1<<mg)},set:function(t){!!(this.data&1<<mg)!==t&&(this.data^=1<<mg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsets",{get:function(){return!!(this.data&1<<gg)},set:function(t){!!(this.data&1<<gg)!==t&&(this.data^=1<<gg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"culling",{get:function(){return!!(this.data&1<<yg)},set:function(t){!!(this.data&1<<yg)!==t&&(this.data^=1<<yg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depthTest",{get:function(){return!!(this.data&1<<bg)},set:function(t){!!(this.data&1<<bg)!==t&&(this.data^=1<<bg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depthMask",{get:function(){return!!(this.data&1<<wg)},set:function(t){!!(this.data&1<<wg)!==t&&(this.data^=1<<wg)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<_g)},set:function(t){!!(this.data&1<<_g)!==t&&(this.data^=1<<_g)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==on.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[@pixi/core:State "+("blendMode="+this.blendMode+" ")+("clockwiseFrontFace="+this.clockwiseFrontFace+" ")+("culling="+this.culling+" ")+("depthMask="+this.depthMask+" ")+("polygonOffset="+this.polygonOffset)+"]"},e.for2d=function(){var t=new e;return t.depthTest=!1,t.blend=!0,t},e}(),B2e=`varying vec2 vTextureCoord;

uniform sampler2D uSampler;

void main(void){
   gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`,H2e=`attribute vec2 aVertexPosition;

uniform mat3 projectionMatrix;

varying vec2 vTextureCoord;

uniform vec4 inputSize;
uniform vec4 outputFrame;

vec4 filterVertexPosition( void )
{
    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;

    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}

vec2 filterTextureCoord( void )
{
    return aVertexPosition * (outputFrame.zw * inputSize.zw);
}

void main(void)
{
    gl_Position = filterVertexPosition();
    vTextureCoord = filterTextureCoord();
}
`,os=function(e){ar(t,e);function t(n,r,a){var o=this,s=Jc.from(n||t.defaultVertexSrc,r||t.defaultFragmentSrc);return o=e.call(this,s,a)||this,o.padding=0,o.resolution=Nt.FILTER_RESOLUTION,o.multisample=Nt.FILTER_MULTISAMPLE,o.enabled=!0,o.autoFit=!0,o.state=new ol,o}return t.prototype.apply=function(n,r,a,o,s){n.applyFilter(this,r,a,o)},Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(n){this.state.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(n){this._resolution=n},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultVertexSrc",{get:function(){return H2e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return B2e},enumerable:!1,configurable:!0}),t}(Ui),U2e=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;
uniform mat3 otherMatrix;

varying vec2 vMaskCoord;
varying vec2 vTextureCoord;

void main(void)
{
    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = aTextureCoord;
    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;
}
`,V2e=`varying vec2 vMaskCoord;
varying vec2 vTextureCoord;

uniform sampler2D uSampler;
uniform sampler2D mask;
uniform float alpha;
uniform float npmAlpha;
uniform vec4 maskClamp;

void main(void)
{
    float clip = step(3.5,
        step(maskClamp.x, vMaskCoord.x) +
        step(maskClamp.y, vMaskCoord.y) +
        step(vMaskCoord.x, maskClamp.z) +
        step(vMaskCoord.y, maskClamp.w));

    vec4 original = texture2D(uSampler, vTextureCoord);
    vec4 masky = texture2D(mask, vMaskCoord);
    float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);

    original *= (alphaMul * masky.r * alpha * clip);

    gl_FragColor = original;
}
`,c4=new cr,Jv=function(){function e(t,n){this._texture=t,this.mapCoord=new cr,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof n>"u"?.5:n,this.isSimple=!1}return Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),e.prototype.multiplyUvs=function(t,n){n===void 0&&(n=t);for(var r=this.mapCoord,a=0;a<t.length;a+=2){var o=t[a],s=t[a+1];n[a]=o*r.a+s*r.c+r.tx,n[a+1]=o*r.b+s*r.d+r.ty}return n},e.prototype.update=function(t){var n=this._texture;if(!n||!n.valid||!t&&this._textureID===n._updateID)return!1;this._textureID=n._updateID,this._updateID++;var r=n._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var a=n.orig,o=n.trim;o&&(c4.set(a.width/o.width,0,0,a.height/o.height,-o.x/o.width,-o.y/o.height),this.mapCoord.append(c4));var s=n.baseTexture,l=this.uClampFrame,u=this.clampMargin/s.resolution,c=this.clampOffset;return l[0]=(n._frame.x+u+c)/s.width,l[1]=(n._frame.y+u+c)/s.height,l[2]=(n._frame.x+n._frame.width-u+c)/s.width,l[3]=(n._frame.y+n._frame.height-u+c)/s.height,this.uClampOffset[0]=c/s.realWidth,this.uClampOffset[1]=c/s.realHeight,this.isSimple=n._frame.width===s.width&&n._frame.height===s.height&&n.rotate===0,!0},e}(),OR=function(e){ar(t,e);function t(n,r,a){var o=this,s=null;return typeof n!="string"&&r===void 0&&a===void 0&&(s=n,n=void 0,r=void 0,a=void 0),o=e.call(this,n||U2e,r||V2e,a)||this,o.maskSprite=s,o.maskMatrix=new cr,o}return Object.defineProperty(t.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(n){this._maskSprite=n,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),t.prototype.apply=function(n,r,a,o){var s=this._maskSprite,l=s._texture;l.valid&&(l.uvMatrix||(l.uvMatrix=new Jv(l,0)),l.uvMatrix.update(),this.uniforms.npmAlpha=l.baseTexture.alphaMode?0:1,this.uniforms.mask=l,this.uniforms.otherMatrix=n.calculateSpriteMatrix(this.maskMatrix,s).prepend(l.uvMatrix.mapCoord),this.uniforms.alpha=s.worldAlpha,this.uniforms.maskClamp=l.uvMatrix.uClampFrame,n.applyFilter(this,r,a,o))},t}(os),ow=function(){function e(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return e.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},e.prototype.push=function(t,n){var r=n;if(!r.isMaskData){var a=this.maskDataPool.pop()||new ER;a.pooled=!0,a.maskObject=n,r=a}var o=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null;if(r.copyCountersOrReset(o),r._colorMask=o?o._colorMask:15,r.autoDetect&&this.detect(r),r._target=t,r.type!==wr.SPRITE&&this.maskStack.push(r),r.enabled)switch(r.type){case wr.SCISSOR:this.renderer.scissor.push(r);break;case wr.STENCIL:this.renderer.stencil.push(r);break;case wr.SPRITE:r.copyCountersOrReset(null),this.pushSpriteMask(r);break;case wr.COLOR:this.pushColorMask(r);break}r.type===wr.SPRITE&&this.maskStack.push(r)},e.prototype.pop=function(t){var n=this.maskStack.pop();if(!(!n||n._target!==t)){if(n.enabled)switch(n.type){case wr.SCISSOR:this.renderer.scissor.pop(n);break;case wr.STENCIL:this.renderer.stencil.pop(n.maskObject);break;case wr.SPRITE:this.popSpriteMask(n);break;case wr.COLOR:this.popColorMask(n);break}if(n.reset(),n.pooled&&this.maskDataPool.push(n),this.maskStack.length!==0){var r=this.maskStack[this.maskStack.length-1];r.type===wr.SPRITE&&r._filters&&(r._filters[0].maskSprite=r.maskObject)}}},e.prototype.detect=function(t){var n=t.maskObject;n?n.isSprite?t.type=wr.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=wr.SCISSOR:t.type=wr.STENCIL:t.type=wr.COLOR},e.prototype.pushSpriteMask=function(t){var n,r,a=t.maskObject,o=t._target,s=t._filters;s||(s=this.alphaMaskPool[this.alphaMaskIndex],s||(s=this.alphaMaskPool[this.alphaMaskIndex]=[new OR]));var l=this.renderer,u=l.renderTexture,c,f;if(u.current){var d=u.current;c=t.resolution||d.resolution,f=(n=t.multisample)!==null&&n!==void 0?n:d.multisample}else c=t.resolution||l.resolution,f=(r=t.multisample)!==null&&r!==void 0?r:l.multisample;s[0].resolution=c,s[0].multisample=f,s[0].maskSprite=a;var p=o.filterArea;o.filterArea=a.getBounds(!0),l.filter.push(o,s),o.filterArea=p,t._filters||this.alphaMaskIndex++},e.prototype.popSpriteMask=function(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},e.prototype.pushColorMask=function(t){var n=t._colorMask,r=t._colorMask=n&t.colorMask;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)},e.prototype.popColorMask=function(t){var n=t._colorMask,r=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)},e.prototype.destroy=function(){this.renderer=null},e}(),$R=function(){function e(t){this.renderer=t,this.maskStack=[],this.glConst=0}return e.prototype.getStackLength=function(){return this.maskStack.length},e.prototype.setMaskStack=function(t){var n=this.renderer.gl,r=this.getStackLength();this.maskStack=t;var a=this.getStackLength();a!==r&&(a===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))},e.prototype._useCurrent=function(){},e.prototype.destroy=function(){this.renderer=null,this.maskStack=null},e}(),d4=new cr,f4=[],iw=function(e){ar(t,e);function t(n){var r=e.call(this,n)||this;return r.glConst=Nt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST,r}return t.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._scissorCounter:0},t.prototype.calcScissorRect=function(n){var r;if(!n._scissorRectLocal){var a=n._scissorRect,o=n.maskObject,s=this.renderer,l=s.renderTexture,u=o.getBounds(!0,(r=f4.pop())!==null&&r!==void 0?r:new $n);this.roundFrameToPixels(u,l.current?l.current.resolution:s.resolution,l.sourceFrame,l.destinationFrame,s.projection.transform),a&&u.fit(a),n._scissorRectLocal=u}},t.isMatrixRotated=function(n){if(!n)return!1;var r=n.a,a=n.b,o=n.c,s=n.d;return(Math.abs(a)>1e-4||Math.abs(o)>1e-4)&&(Math.abs(r)>1e-4||Math.abs(s)>1e-4)},t.prototype.testScissor=function(n){var r=n.maskObject;if(!r.isFastRect||!r.isFastRect()||t.isMatrixRotated(r.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(n);var a=n._scissorRectLocal;return a.width>0&&a.height>0},t.prototype.roundFrameToPixels=function(n,r,a,o,s){t.isMatrixRotated(s)||(s=s?d4.copyFrom(s):d4.identity(),s.translate(-a.x,-a.y).scale(o.width/a.width,o.height/a.height).translate(o.x,o.y),this.renderer.filter.transformAABB(s,n),n.fit(o),n.x=Math.round(n.x*r),n.y=Math.round(n.y*r),n.width=Math.round(n.width*r),n.height=Math.round(n.height*r))},t.prototype.push=function(n){n._scissorRectLocal||this.calcScissorRect(n);var r=this.renderer.gl;n._scissorRect||r.enable(r.SCISSOR_TEST),n._scissorCounter++,n._scissorRect=n._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(n){var r=this.renderer.gl;n&&f4.push(n._scissorRectLocal),this.getStackLength()>0?this._useCurrent():r.disable(r.SCISSOR_TEST)},t.prototype._useCurrent=function(){var n=this.maskStack[this.maskStack.length-1]._scissorRect,r;this.renderer.renderTexture.current?r=n.y:r=this.renderer.height-n.height-n.y,this.renderer.gl.scissor(n.x,r,n.width,n.height)},t}($R),sw=function(e){ar(t,e);function t(n){var r=e.call(this,n)||this;return r.glConst=Nt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST,r}return t.prototype.getStackLength=function(){var n=this.maskStack[this.maskStack.length-1];return n?n._stencilCounter:0},t.prototype.push=function(n){var r=n.maskObject,a=this.renderer.gl,o=n._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),a.clearStencil(0),a.clear(a.STENCIL_BUFFER_BIT),a.enable(a.STENCIL_TEST)),n._stencilCounter++;var s=n._colorMask;s!==0&&(n._colorMask=0,a.colorMask(!1,!1,!1,!1)),a.stencilFunc(a.EQUAL,o,4294967295),a.stencilOp(a.KEEP,a.KEEP,a.INCR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,s!==0&&(n._colorMask=s,a.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this._useCurrent()},t.prototype.pop=function(n){var r=this.renderer.gl;if(this.getStackLength()===0)r.disable(r.STENCIL_TEST);else{var a=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,o=a?a._colorMask:15;o!==0&&(a._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilOp(r.KEEP,r.KEEP,r.DECR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(a._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}},t.prototype._useCurrent=function(){var n=this.renderer.gl;n.stencilFunc(n.EQUAL,this.getStackLength(),4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP)},t}($R),lw=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new cr,this.transform=null}return e.prototype.update=function(t,n,r,a){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,a),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,n,r,a){var o=this.projectionMatrix,s=a?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),hl=new $n,pd=new $n,uw=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new $n,this.destinationFrame=new $n,this.viewportFrame=new $n}return e.prototype.bind=function(t,n,r){t===void 0&&(t=null);var a=this.renderer;this.current=t;var o,s,l;t?(o=t.baseTexture,l=o.resolution,n||(hl.width=t.frame.width,hl.height=t.frame.height,n=hl),r||(pd.x=t.frame.x,pd.y=t.frame.y,pd.width=n.width,pd.height=n.height,r=pd),s=o.framebuffer):(l=a.resolution,n||(hl.width=a.screen.width,hl.height=a.screen.height,n=hl),r||(r=hl,r.width=n.width,r.height=n.height));var u=this.viewportFrame;u.x=r.x*l,u.y=r.y*l,u.width=r.width*l,u.height=r.height*l,t||(u.y=a.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(s,u),this.renderer.projection.update(r,n,l,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)},e.prototype.clear=function(t,n){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var r=this.destinationFrame,a=this.current?this.current.baseTexture:this.renderer.screen,o=r.width!==a.width||r.height!==a.height;if(o){var s=this.viewportFrame,l=s.x,u=s.y,c=s.width,f=s.height;l=Math.round(l),u=Math.round(u),c=Math.round(c),f=Math.round(f),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(l,u,c,f)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],n),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function G2e(e,t,n,r,a){n.buffer.update(a)}var j2e={float:`
        data[offset] = v;
    `,vec2:`
        data[offset] = v[0];
        data[offset+1] = v[1];
    `,vec3:`
        data[offset] = v[0];
        data[offset+1] = v[1];
        data[offset+2] = v[2];

    `,vec4:`
        data[offset] = v[0];
        data[offset+1] = v[1];
        data[offset+2] = v[2];
        data[offset+3] = v[3];
    `,mat2:`
        data[offset] = v[0];
        data[offset+1] = v[1];

        data[offset+4] = v[2];
        data[offset+5] = v[3];
    `,mat3:`
        data[offset] = v[0];
        data[offset+1] = v[1];
        data[offset+2] = v[2];

        data[offset + 4] = v[3];
        data[offset + 5] = v[4];
        data[offset + 6] = v[5];

        data[offset + 8] = v[6];
        data[offset + 9] = v[7];
        data[offset + 10] = v[8];
    `,mat4:`
        for(var i = 0; i < 16; i++)
        {
            data[offset + i] = v[i];
        }
    `},RR={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function kR(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),n=0,r=0,a=0,o=0;o<t.length;o++){var s=t[o];if(n=RR[s.data.type],s.data.size>1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){var l=r%n%16;r+=l,a+=l}r+n>16?(a=Math.ceil(a/16)*16,s.offset=a,a+=n,r=n):(s.offset=a,r+=n,a+=n)}return a=Math.ceil(a/16)*16,{uboElements:t,size:a}}function LR(e,t){var n=[];for(var r in e)t[r]&&n.push(t[r]);return n.sort(function(a,o){return a.index-o.index}),n}function NR(e,t){if(!e.autoManage)return{size:0,syncFunc:G2e};for(var n=LR(e.uniforms,t),r=kR(n),a=r.uboElements,o=r.size,s=[`
    var v = null;
    var v2 = null;
    var cv = null;
    var t = 0;
    var gl = renderer.gl
    var index = 0;
    var data = buffer.data;
    `],l=0;l<a.length;l++){for(var u=a[l],c=e.uniforms[u.data.name],f=u.data.name,d=!1,p=0;p<Xl.length;p++){var g=Xl[p];if(g.codeUbo&&g.test(u.data,c)){s.push("offset = "+u.offset/4+";",Xl[p].codeUbo(u.data.name,c)),d=!0;break}}if(!d)if(u.data.size>1){var y=AR(u.data.type),m=Math.max(RR[u.data.type]/16,1),S=y/m,_=(4-S%4)%4;s.push(`
                cv = ud.`+f+`.value;
                v = uv.`+f+`;
                offset = `+u.offset/4+`;

                t = 0;

                for(var i=0; i < `+u.data.size*m+`; i++)
                {
                    for(var j = 0; j < `+S+`; j++)
                    {
                        data[offset++] = v[t++];
                    }
                    offset += `+_+`;
                }

                `)}else{var P=j2e[u.data.type];s.push(`
                cv = ud.`+f+`.value;
                v = uv.`+f+`;
                offset = `+u.offset/4+`;
                `+P+`;
                `)}}return s.push(`
       renderer.buffer.update(buffer);
    `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join(`
`))}}var z2e=function(){function e(){}return e}(),DR=function(){function e(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function K2e(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),a=0;a<r;a++){var o=t.getActiveAttrib(e,a);if(o.name.indexOf("gl_")!==0){var s=PR(t,o.type),l={type:s,name:o.name,size:AR(s),location:t.getAttribLocation(e,o.name)};n[o.name]=l}}return n}function W2e(e,t){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),a=0;a<r;a++){var o=t.getActiveUniform(e,a),s=o.name.replace(/\[.*?\]$/,""),l=!!o.name.match(/\[.*?\]$/),u=PR(t,o.type);n[s]={name:s,index:a,type:u,size:o.size,isArray:l,value:CR(u,o.size)}}return n}function FR(e,t){var n=i4(e,e.VERTEX_SHADER,t.vertexSrc),r=i4(e,e.FRAGMENT_SHADER,t.fragmentSrc),a=e.createProgram();if(e.attachShader(a,n),e.attachShader(a,r),e.linkProgram(a),e.getProgramParameter(a,e.LINK_STATUS)||I2e(e,a,n,r),t.attributeData=K2e(a,e),t.uniformData=W2e(a,e),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(t.vertexSrc)){var o=Object.keys(t.attributeData);o.sort(function(f,d){return f>d?1:-1});for(var s=0;s<o.length;s++)t.attributeData[o[s]].location=s,e.bindAttribLocation(a,s,o[s]);e.linkProgram(a)}e.deleteShader(n),e.deleteShader(r);var l={};for(var s in t.uniformData){var u=t.uniformData[s];l[s]={location:e.getUniformLocation(a,s),value:CR(u.type,u.size)}}var c=new DR(a,l);return c}var X2e=0,hp={textureCount:0,uboCount:0},cw=function(){function e(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=X2e++}return e.prototype.systemCheck=function(){if(!L2e())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},e.prototype.contextChange=function(t){this.gl=t,this.reset()},e.prototype.bind=function(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;var r=t.program,a=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(a.program)),n||(hp.textureCount=0,hp.uboCount=0,this.syncUniformGroup(t.uniformGroup,hp)),a},e.prototype.setUniforms=function(t){var n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)},e.prototype.syncUniformGroup=function(t,n){var r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))},e.prototype.syncUniforms=function(t,n,r){var a=t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t);a(n.uniformData,t.uniforms,this.renderer,r)},e.prototype.createSyncGroups=function(t){var n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=$2e(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]},e.prototype.syncUniformBufferGroup=function(t,n){var r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;var a=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),a(r.uniformData,t.uniforms,this.renderer,hp,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])},e.prototype.createSyncBufferGroup=function(t,n,r){var a=this.renderer.gl;this.renderer.buffer.bind(t.buffer);var o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,a.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;var s=this.getSignature(t,this.shader.program.uniformData,"ubo"),l=this._uboCache[s];if(l||(l=this._uboCache[s]=NR(t,this.shader.program.uniformData)),t.autoManage){var u=new Float32Array(l.size/4);t.buffer.update(u)}return n.uniformGroups[t.id]=l.syncFunc,n.uniformGroups[t.id]},e.prototype.getSignature=function(t,n,r){var a=t.uniforms,o=[r+"-"];for(var s in a)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")},e.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},e.prototype.generateProgram=function(t){var n=this.gl,r=t.program,a=FR(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=a,a},e.prototype.reset=function(){this.program=null,this.shader=null},e.prototype.disposeShader=function(t){this.shader===t&&(this.shader=null)},e.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},e}();function Y2e(e,t){return t===void 0&&(t=[]),t[on.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.ADD]=[e.ONE,e.ONE],t[on.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.NONE]=[0,0],t[on.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[on.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[on.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[on.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[on.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[on.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[on.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[on.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[on.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[on.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[on.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}var J2e=0,q2e=1,Q2e=2,Z2e=3,eye=4,tye=5,dw=function(){function e(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=on.NONE,this._blendEq=!1,this.map=[],this.map[J2e]=this.setBlend,this.map[q2e]=this.setOffset,this.map[Q2e]=this.setCullFace,this.map[Z2e]=this.setDepthTest,this.map[eye]=this.setFrontFace,this.map[tye]=this.setDepthMask,this.checks=[],this.defaultState=new ol,this.defaultState.blend=!0}return e.prototype.contextChange=function(t){this.gl=t,this.blendModes=Y2e(t),this.set(this.defaultState),this.reset()},e.prototype.set=function(t){if(t=t||this.defaultState,this.stateId!==t.data){for(var n=this.stateId^t.data,r=0;n;)n&1&&this.map[r].call(this,!!(t.data&1<<r)),n=n>>1,r++;this.stateId=t.data}for(var r=0;r<this.checks.length;r++)this.checks[r](this,t)},e.prototype.forceState=function(t){t=t||this.defaultState;for(var n=0;n<this.map.length;n++)this.map[n].call(this,!!(t.data&1<<n));for(var n=0;n<this.checks.length;n++)this.checks[n](this,t);this.stateId=t.data},e.prototype.setBlend=function(t){this.updateCheck(e.checkBlendMode,t),this.gl[t?"enable":"disable"](this.gl.BLEND)},e.prototype.setOffset=function(t){this.updateCheck(e.checkPolygonOffset,t),this.gl[t?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},e.prototype.setDepthTest=function(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)},e.prototype.setDepthMask=function(t){this.gl.depthMask(t)},e.prototype.setCullFace=function(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)},e.prototype.setFrontFace=function(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])},e.prototype.setBlendMode=function(t){if(t!==this.blendMode){this.blendMode=t;var n=this.blendModes[t],r=this.gl;n.length===2?r.blendFunc(n[0],n[1]):r.blendFuncSeparate(n[0],n[1],n[2],n[3]),n.length===6?(this._blendEq=!0,r.blendEquationSeparate(n[4],n[5])):this._blendEq&&(this._blendEq=!1,r.blendEquationSeparate(r.FUNC_ADD,r.FUNC_ADD))}},e.prototype.setPolygonOffset=function(t,n){this.gl.polygonOffset(t,n)},e.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},e.prototype.updateCheck=function(t,n){var r=this.checks.indexOf(t);n&&r===-1?this.checks.push(t):!n&&r!==-1&&this.checks.splice(r,1)},e.checkBlendMode=function(t,n){t.setBlendMode(n.blendMode)},e.checkPolygonOffset=function(t,n){t.setPolygonOffset(1,n.polygonOffset)},e.prototype.destroy=function(){this.gl=null},e}(),fw=function(){function e(t){this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=Nt.GC_MAX_IDLE,this.checkCountMax=Nt.GC_MAX_CHECK_COUNT,this.mode=Nt.GC_MODE}return e.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==Df.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,n=t.managedTextures,r=!1,a=0;a<n.length;a++){var o=n[a];!o.framebuffer&&this.count-o.touched>this.maxIdle&&(t.destroyTexture(o,!0),n[a]=null,r=!0)}if(r){for(var s=0,a=0;a<n.length;a++)n[a]!==null&&(n[s++]=n[a]);n.length=s}},e.prototype.unload=function(t){var n=this.renderer.texture,r=t._texture;r&&!r.framebuffer&&n.destroyTexture(r);for(var a=t.children.length-1;a>=0;a--)this.unload(t.children[a])},e.prototype.destroy=function(){this.renderer=null},e}();function nye(e){var t,n,r,a,o,s,l,u,c,f,d,p,g,y,m,S,_,P,A,$,k,L,B;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?B=(t={},t[an.UNSIGNED_BYTE]=(n={},n[$t.RGBA]=e.RGBA8,n[$t.RGB]=e.RGB8,n[$t.RG]=e.RG8,n[$t.RED]=e.R8,n[$t.RGBA_INTEGER]=e.RGBA8UI,n[$t.RGB_INTEGER]=e.RGB8UI,n[$t.RG_INTEGER]=e.RG8UI,n[$t.RED_INTEGER]=e.R8UI,n[$t.ALPHA]=e.ALPHA,n[$t.LUMINANCE]=e.LUMINANCE,n[$t.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,n),t[an.BYTE]=(r={},r[$t.RGBA]=e.RGBA8_SNORM,r[$t.RGB]=e.RGB8_SNORM,r[$t.RG]=e.RG8_SNORM,r[$t.RED]=e.R8_SNORM,r[$t.RGBA_INTEGER]=e.RGBA8I,r[$t.RGB_INTEGER]=e.RGB8I,r[$t.RG_INTEGER]=e.RG8I,r[$t.RED_INTEGER]=e.R8I,r),t[an.UNSIGNED_SHORT]=(a={},a[$t.RGBA_INTEGER]=e.RGBA16UI,a[$t.RGB_INTEGER]=e.RGB16UI,a[$t.RG_INTEGER]=e.RG16UI,a[$t.RED_INTEGER]=e.R16UI,a[$t.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,a),t[an.SHORT]=(o={},o[$t.RGBA_INTEGER]=e.RGBA16I,o[$t.RGB_INTEGER]=e.RGB16I,o[$t.RG_INTEGER]=e.RG16I,o[$t.RED_INTEGER]=e.R16I,o),t[an.UNSIGNED_INT]=(s={},s[$t.RGBA_INTEGER]=e.RGBA32UI,s[$t.RGB_INTEGER]=e.RGB32UI,s[$t.RG_INTEGER]=e.RG32UI,s[$t.RED_INTEGER]=e.R32UI,s[$t.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,s),t[an.INT]=(l={},l[$t.RGBA_INTEGER]=e.RGBA32I,l[$t.RGB_INTEGER]=e.RGB32I,l[$t.RG_INTEGER]=e.RG32I,l[$t.RED_INTEGER]=e.R32I,l),t[an.FLOAT]=(u={},u[$t.RGBA]=e.RGBA32F,u[$t.RGB]=e.RGB32F,u[$t.RG]=e.RG32F,u[$t.RED]=e.R32F,u[$t.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[an.HALF_FLOAT]=(c={},c[$t.RGBA]=e.RGBA16F,c[$t.RGB]=e.RGB16F,c[$t.RG]=e.RG16F,c[$t.RED]=e.R16F,c),t[an.UNSIGNED_SHORT_5_6_5]=(f={},f[$t.RGB]=e.RGB565,f),t[an.UNSIGNED_SHORT_4_4_4_4]=(d={},d[$t.RGBA]=e.RGBA4,d),t[an.UNSIGNED_SHORT_5_5_5_1]=(p={},p[$t.RGBA]=e.RGB5_A1,p),t[an.UNSIGNED_INT_2_10_10_10_REV]=(g={},g[$t.RGBA]=e.RGB10_A2,g[$t.RGBA_INTEGER]=e.RGB10_A2UI,g),t[an.UNSIGNED_INT_10F_11F_11F_REV]=(y={},y[$t.RGB]=e.R11F_G11F_B10F,y),t[an.UNSIGNED_INT_5_9_9_9_REV]=(m={},m[$t.RGB]=e.RGB9_E5,m),t[an.UNSIGNED_INT_24_8]=(S={},S[$t.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,S),t[an.FLOAT_32_UNSIGNED_INT_24_8_REV]=(_={},_[$t.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,_),t):B=(P={},P[an.UNSIGNED_BYTE]=(A={},A[$t.RGBA]=e.RGBA,A[$t.RGB]=e.RGB,A[$t.ALPHA]=e.ALPHA,A[$t.LUMINANCE]=e.LUMINANCE,A[$t.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,A),P[an.UNSIGNED_SHORT_5_6_5]=($={},$[$t.RGB]=e.RGB,$),P[an.UNSIGNED_SHORT_4_4_4_4]=(k={},k[$t.RGBA]=e.RGBA,k),P[an.UNSIGNED_SHORT_5_5_5_1]=(L={},L[$t.RGBA]=e.RGBA,L),P),B}var i0=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=an.UNSIGNED_BYTE,this.internalFormat=$t.RGBA,this.samplerType=0}return e}(),hw=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new kn,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=nye(t);var n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(var r=0;r<n;r++)this.boundTextures[r]=null;this.emptyTextures={};var a=new i0(t.createTexture());t.bindTexture(t.TEXTURE_2D,a.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[t.TEXTURE_2D]=a,this.emptyTextures[t.TEXTURE_CUBE_MAP]=new i0(t.createTexture()),t.bindTexture(t.TEXTURE_CUBE_MAP,this.emptyTextures[t.TEXTURE_CUBE_MAP].texture);for(var r=0;r<6;r++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,null);t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,t.LINEAR);for(var r=0;r<this.boundTextures.length;r++)this.bind(null,r)},e.prototype.bind=function(t,n){n===void 0&&(n=0);var r=this.gl;if(t=t==null?void 0:t.castToBaseTexture(),t&&t.valid&&!t.parentTextureArray){t.touched=this.renderer.textureGC.count;var a=t._glTextures[this.CONTEXT_UID]||this.initTexture(t);this.boundTextures[n]!==t&&(this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),r.bindTexture(t.target,a.texture)),a.dirtyId!==t.dirtyId?(this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),this.updateTexture(t)):a.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(t),this.boundTextures[n]=t}else this.currentLocation!==n&&(this.currentLocation=n,r.activeTexture(r.TEXTURE0+n)),r.bindTexture(r.TEXTURE_2D,this.emptyTextures[r.TEXTURE_2D].texture),this.boundTextures[n]=null},e.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture},e.prototype.unbind=function(t){var n=this,r=n.gl,a=n.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var o=0;o<a.length;o++)a[o]===this.unknownTexture&&this.bind(null,o)}for(var o=0;o<a.length;o++)a[o]===t&&(this.currentLocation!==o&&(r.activeTexture(r.TEXTURE0+o),this.currentLocation=o),r.bindTexture(t.target,this.emptyTextures[t.target].texture),a[o]=null)},e.prototype.ensureSamplerType=function(t){var n=this,r=n.boundTextures,a=n.hasIntegerTextures,o=n.CONTEXT_UID;if(a)for(var s=t-1;s>=0;--s){var l=r[s];if(l){var u=l._glTextures[o];u.samplerType!==Nf.FLOAT&&this.renderer.texture.unbind(l)}}},e.prototype.initTexture=function(t){var n=new i0(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n},e.prototype.initTextureType=function(t,n){var r,a;n.internalFormat=(a=(r=this.internalFormats[t.type])===null||r===void 0?void 0:r[t.format])!==null&&a!==void 0?a:t.format,this.webGLVersion===2&&t.type===an.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type},e.prototype.updateTexture=function(t){var n=t._glTextures[this.CONTEXT_UID];if(n){var r=this.renderer;if(this.initTextureType(t,n),t.resource&&t.resource.upload(r,t,n))n.samplerType!==Nf.FLOAT&&(this.hasIntegerTextures=!0);else{var a=t.realWidth,o=t.realHeight,s=r.gl;(n.width!==a||n.height!==o||n.dirtyId<0)&&(n.width=a,n.height=o,s.texImage2D(t.target,0,n.internalFormat,a,o,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,n){var r=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){var a=this.managedTextures.indexOf(t);a!==-1&&Wl(this.managedTextures,a,1)}},e.prototype.updateTextureStyle=function(t){var n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===To.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Bo.CLAMP:n.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,n){var r=this.gl;if(n.mipmap&&t.mipmap!==To.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Do.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);var a=this.renderer.context.extensions.anisotropicFiltering;if(a&&t.anisotropicLevel>0&&t.scaleMode===Do.LINEAR){var o=Math.min(t.anisotropicLevel,r.getParameter(a.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,a.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Do.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===Do.LINEAR?r.LINEAR:r.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),BR={__proto__:null,FilterSystem:ew,BatchSystem:tw,ContextSystem:nw,FramebufferSystem:rw,GeometrySystem:aw,MaskSystem:ow,ScissorSystem:iw,StencilSystem:sw,ProjectionSystem:lw,RenderTextureSystem:uw,ShaderSystem:cw,StateSystem:dw,TextureGCSystem:fw,TextureSystem:hw},Sg=new cr,HR=function(e){ar(t,e);function t(n,r){n===void 0&&(n=Cc.UNKNOWN);var a=e.call(this)||this;return r=Object.assign({},Nt.RENDER_OPTIONS,r),a.options=r,a.type=n,a.screen=new $n(0,0,r.width,r.height),a.view=r.view||Nt.ADAPTER.createCanvas(),a.resolution=r.resolution||Nt.RESOLUTION,a.useContextAlpha=r.useContextAlpha,a.autoDensity=!!r.autoDensity,a.preserveDrawingBuffer=r.preserveDrawingBuffer,a.clearBeforeRender=r.clearBeforeRender,a._backgroundColor=0,a._backgroundColorRgba=[0,0,0,1],a._backgroundColorString="#000000",a.backgroundColor=r.backgroundColor||a._backgroundColor,a.backgroundAlpha=r.backgroundAlpha,r.transparent!==void 0&&(Sa("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),a.useContextAlpha=r.transparent,a.backgroundAlpha=r.transparent?0:1),a._lastObjectRendered=null,a.plugins={},a}return t.prototype.initPlugins=function(n){for(var r in n)this.plugins[r]=new n[r](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(n,r){this.view.width=Math.round(n*this.resolution),this.view.height=Math.round(r*this.resolution);var a=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=a,this.screen.height=o,this.autoDensity&&(this.view.style.width=a+"px",this.view.style.height=o+"px"),this.emit("resize",a,o)},t.prototype.generateTexture=function(n,r,a,o){r===void 0&&(r={}),typeof r=="number"&&(Sa("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),r={scaleMode:r,resolution:a,region:o});var s=r.region,l=g2e(r,["region"]);o=s||n.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=Ws.create(Ny({width:o.width,height:o.height},l));return Sg.tx=-o.x,Sg.ty=-o.y,this.render(n,{renderTexture:u,clear:!1,transform:Sg,skipUpdateTransform:!!n.parent}),u},t.prototype.destroy=function(n){for(var r in this.plugins)this.plugins[r].destroy(),this.plugins[r]=null;n&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var a=this;a.plugins=null,a.type=Cc.UNKNOWN,a.view=null,a.screen=null,a._tempDisplayObjectParent=null,a.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(n){this._backgroundColor=n,this._backgroundColorString=H1(n),iu(n,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(n){this._backgroundColorRgba[3]=n},enumerable:!1,configurable:!0}),t}(as),rye=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),aye=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var n=this,r=n.gl,a=n.CONTEXT_UID,o=t._glBuffers[a]||this.createGLBuffer(t);r.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,n){var r=this,a=r.gl,o=r.CONTEXT_UID;if(this.boundBufferBases[n]!==t){var s=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[n]=t,a.bindBufferBase(a.UNIFORM_BUFFER,n,s.buffer)}},e.prototype.bindBufferRange=function(t,n,r){var a=this,o=a.gl,s=a.CONTEXT_UID;r=r||0;var l=t._glBuffers[s]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,n||0,l.buffer,r*256,256)},e.prototype.update=function(t){var n=this,r=n.gl,a=n.CONTEXT_UID,o=t._glBuffers[a];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,r.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)r.bufferSubData(t.type,0,t.data);else{var s=t.static?r.STATIC_DRAW:r.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,r.bufferData(t.type,t.data,s)}},e.prototype.dispose=function(t,n){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var r=t._glBuffers[this.CONTEXT_UID],a=this.gl;t.disposeRunner.remove(this),r&&(n||a.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var n=Object.keys(this.managedBuffers),r=0;r<n.length;r++)this.dispose(this.managedBuffers[n[r]],t)},e.prototype.createGLBuffer=function(t){var n=this,r=n.CONTEXT_UID,a=n.gl;return t._glBuffers[r]=new rye(a.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[r]},e}(),pw=function(e){ar(t,e);function t(n){var r=e.call(this,Cc.WEBGL,n)||this;return n=r.options,r.gl=null,r.CONTEXT_UID=0,r.runners={destroy:new zr("destroy"),contextChange:new zr("contextChange"),reset:new zr("reset"),update:new zr("update"),postrender:new zr("postrender"),prerender:new zr("prerender"),resize:new zr("resize")},r.runners.contextChange.add(r),r.globalUniforms=new Ls({projectionMatrix:new cr},!0),r.addSystem(ow,"mask").addSystem(nw,"context").addSystem(dw,"state").addSystem(cw,"shader").addSystem(hw,"texture").addSystem(aye,"buffer").addSystem(aw,"geometry").addSystem(rw,"framebuffer").addSystem(iw,"scissor").addSystem(sw,"stencil").addSystem(lw,"projection").addSystem(fw,"textureGC").addSystem(ew,"filter").addSystem(uw,"renderTexture").addSystem(tw,"batch"),r.initPlugins(t.__plugins),r.multisample=void 0,n.context?r.context.initFromContext(n.context):r.context.initFromOptions({alpha:!!r.useContextAlpha,antialias:n.antialias,premultipliedAlpha:r.useContextAlpha&&r.useContextAlpha!=="notMultiplied",stencil:!0,preserveDrawingBuffer:n.preserveDrawingBuffer,powerPreference:r.options.powerPreference}),r.renderingToScreen=!0,oR(r.context.webGLVersion===2?"WebGL 2":"WebGL 1"),r.resize(r.options.width,r.options.height),r}return t.create=function(n){if(iR())return new t(n);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},t.prototype.contextChange=function(){var n=this.gl,r;if(this.context.webGLVersion===1){var a=n.getParameter(n.FRAMEBUFFER_BINDING);n.bindFramebuffer(n.FRAMEBUFFER,null),r=n.getParameter(n.SAMPLES),n.bindFramebuffer(n.FRAMEBUFFER,a)}else{var a=n.getParameter(n.DRAW_FRAMEBUFFER_BINDING);n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),r=n.getParameter(n.SAMPLES),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,a)}r>=sr.HIGH?this.multisample=sr.HIGH:r>=sr.MEDIUM?this.multisample=sr.MEDIUM:r>=sr.LOW?this.multisample=sr.LOW:this.multisample=sr.NONE},t.prototype.addSystem=function(n,r){var a=new n(this);if(this[r])throw new Error('Whoops! The name "'+r+'" is already in use');this[r]=a;for(var o in this.runners)this.runners[o].add(a);return this},t.prototype.render=function(n,r){var a,o,s,l;if(r&&(r instanceof Ws?(Sa("6.0.0","Renderer#render arguments changed, use options instead."),a=r,o=arguments[2],s=arguments[3],l=arguments[4]):(a=r.renderTexture,o=r.clear,s=r.transform,l=r.skipUpdateTransform)),this.renderingToScreen=!a,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=s,!this.context.isLost){if(a||(this._lastObjectRendered=n),!l){var u=n.enableTempParent();n.updateTransform(),n.disableTempParent(u)}this.renderTexture.bind(a),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),n.render(this),this.batch.currentRenderer.flush(),a&&a.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(n,r,a,o){r===void 0&&(r={});var s=e.prototype.generateTexture.call(this,n,r,a,o);return this.framebuffer.blit(),s},t.prototype.resize=function(n,r){e.prototype.resize.call(this,n,r),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(n){this.runners.destroy.emit();for(var r in this.runners)this.runners[r].destroy();e.prototype.destroy.call(this,n),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Sa("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(n,r){Sa("6.5.0","Renderer.registerPlugin() has been deprecated, please use extensions.add() instead."),Ei.add({name:n,type:Kn.RendererPlugin,ref:r})},t.__plugins={},t}(HR);Ei.handleByMap(Kn.RendererPlugin,pw.__plugins);function UR(e){return pw.create(e)}var oye=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;

varying vec2 vTextureCoord;

void main(void)
{
    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
    vTextureCoord = aTextureCoord;
}`,iye=`attribute vec2 aVertexPosition;

uniform mat3 projectionMatrix;

varying vec2 vTextureCoord;

uniform vec4 inputSize;
uniform vec4 outputFrame;

vec4 filterVertexPosition( void )
{
    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;

    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}

vec2 filterTextureCoord( void )
{
    return aVertexPosition * (outputFrame.zw * inputSize.zw);
}

void main(void)
{
    gl_Position = filterVertexPosition();
    vTextureCoord = filterTextureCoord();
}
`,VR=oye,vw=iye,sye=function(){function e(t){Sa("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}return e.prototype.destroy=function(){this.renderer=null},e}(),X0=function(){function e(){this.texArray=null,this.blend=0,this.type=co.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Y0=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;t<this.count;t++)this.elements[t]=null;this.count=0},e}(),J0=function(){function e(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(e.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),e.prototype.view=function(t){return this[t+"View"]},e.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},e.sizeOf=function(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(t+" isn't a valid view type")}},e}(),GR=function(e){ar(t,e);function t(n){var r=e.call(this,n)||this;return r.shaderGenerator=null,r.geometryClass=null,r.vertexSize=null,r.state=ol.for2d(),r.size=Nt.SPRITE_BATCH_SIZE*4,r._vertexCount=0,r._indexCount=0,r._bufferedElements=[],r._bufferedTextures=[],r._bufferSize=0,r._shader=null,r._packedGeometries=[],r._packedGeometryPoolSize=2,r._flushId=0,r._aBuffers={},r._iBuffers={},r.MAX_TEXTURES=1,r.renderer.on("prerender",r.onPrerender,r),n.runners.contextChange.add(r),r._dcIndex=0,r._aIndex=0,r._iIndex=0,r._attributeBuffer=null,r._indexBuffer=null,r._tempBoundTextures=[],r}return t.prototype.contextChange=function(){var n=this.renderer.gl;Nt.PREFER_ENV===bi.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),Nt.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=MR(this.MAX_TEXTURES,n)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var r=0;r<this._packedGeometryPoolSize;r++)this._packedGeometries[r]=new this.geometryClass;this.initFlushBuffers()},t.prototype.initFlushBuffers=function(){for(var n=t._drawCallPool,r=t._textureArrayPool,a=this.size/4,o=Math.floor(a/this.MAX_TEXTURES)+1;n.length<a;)n.push(new X0);for(;r.length<o;)r.push(new Y0);for(var s=0;s<this.MAX_TEXTURES;s++)this._tempBoundTextures[s]=null},t.prototype.onPrerender=function(){this._flushId=0},t.prototype.render=function(n){n._texture.valid&&(this._vertexCount+n.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=n.vertexData.length/2,this._indexCount+=n.indices.length,this._bufferedTextures[this._bufferSize]=n._texture.baseTexture,this._bufferedElements[this._bufferSize++]=n)},t.prototype.buildTexturesAndDrawCalls=function(){var n=this,r=n._bufferedTextures,a=n.MAX_TEXTURES,o=t._textureArrayPool,s=this.renderer.batch,l=this._tempBoundTextures,u=this.renderer.textureGC.count,c=++kn._globalBatch,f=0,d=o[0],p=0;s.copyBoundTextures(l,a);for(var g=0;g<this._bufferSize;++g){var y=r[g];r[g]=null,y._batchEnabled!==c&&(d.count>=a&&(s.boundArray(d,l,c,a),this.buildDrawCalls(d,p,g),p=g,d=o[++f],++c),y._batchEnabled=c,y.touched=u,d.elements[d.count++]=y)}d.count>0&&(s.boundArray(d,l,c,a),this.buildDrawCalls(d,p,this._bufferSize),++f,++c);for(var g=0;g<l.length;g++)l[g]=null;kn._globalBatch=c},t.prototype.buildDrawCalls=function(n,r,a){var o=this,s=o._bufferedElements,l=o._attributeBuffer,u=o._indexBuffer,c=o.vertexSize,f=t._drawCallPool,d=this._dcIndex,p=this._aIndex,g=this._iIndex,y=f[d];y.start=this._iIndex,y.texArray=n;for(var m=r;m<a;++m){var S=s[m],_=S._texture.baseTexture,P=V1[_.alphaMode?1:0][S.blendMode];s[m]=null,r<m&&y.blend!==P&&(y.size=g-y.start,r=m,y=f[++d],y.texArray=n,y.start=g),this.packInterleavedGeometry(S,l,u,p,g),p+=S.vertexData.length/2*c,g+=S.indices.length,y.blend=P}r<a&&(y.size=g-y.start,++d),this._dcIndex=d,this._aIndex=p,this._iIndex=g},t.prototype.bindAndClearTexArray=function(n){for(var r=this.renderer.texture,a=0;a<n.count;a++)r.bind(n.elements[a],n.ids[a]),n.elements[a]=null;n.count=0},t.prototype.updateGeometry=function(){var n=this,r=n._packedGeometries,a=n._attributeBuffer,o=n._indexBuffer;Nt.CAN_UPLOAD_SAME_BUFFER?(r[this._flushId]._buffer.update(a.rawBinaryData),r[this._flushId]._indexBuffer.update(o),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,r[this._flushId]=new this.geometryClass),r[this._flushId]._buffer.update(a.rawBinaryData),r[this._flushId]._indexBuffer.update(o),this.renderer.geometry.bind(r[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},t.prototype.drawBatches=function(){for(var n=this._dcIndex,r=this.renderer,a=r.gl,o=r.state,s=t._drawCallPool,l=null,u=0;u<n;u++){var c=s[u],f=c.texArray,d=c.type,p=c.size,g=c.start,y=c.blend;l!==f&&(l=f,this.bindAndClearTexArray(f)),this.state.blendMode=y,o.set(this.state),a.drawElements(d,p,a.UNSIGNED_SHORT,g*2)}},t.prototype.flush=function(){this._vertexCount!==0&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},t.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),Nt.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},t.prototype.stop=function(){this.flush()},t.prototype.destroy=function(){for(var n=0;n<this._packedGeometryPoolSize;n++)this._packedGeometries[n]&&this._packedGeometries[n].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),e.prototype.destroy.call(this)},t.prototype.getAttributeBuffer=function(n){var r=Uf(Math.ceil(n/8)),a=Oy(r),o=r*8;this._aBuffers.length<=a&&(this._iBuffers.length=a+1);var s=this._aBuffers[o];return s||(this._aBuffers[o]=s=new J0(o*this.vertexSize*4)),s},t.prototype.getIndexBuffer=function(n){var r=Uf(Math.ceil(n/12)),a=Oy(r),o=r*12;this._iBuffers.length<=a&&(this._iBuffers.length=a+1);var s=this._iBuffers[a];return s||(this._iBuffers[a]=s=new Uint16Array(o)),s},t.prototype.packInterleavedGeometry=function(n,r,a,o,s){for(var l=r.uint32View,u=r.float32View,c=o/this.vertexSize,f=n.uvs,d=n.indices,p=n.vertexData,g=n._texture.baseTexture._batchLocation,y=Math.min(n.worldAlpha,1),m=y<1&&n._texture.baseTexture.alphaMode?jv(n._tintRGB,y):n._tintRGB+(y*255<<24),S=0;S<p.length;S+=2)u[o++]=p[S],u[o++]=p[S+1],u[o++]=f[S],u[o++]=f[S+1],l[o++]=m,u[o++]=g;for(var S=0;S<d.length;S++)a[s++]=c+d[S]},t._drawCallPool=[],t._textureArrayPool=[],t}(wh),jR=function(){function e(t,n){if(this.vertexSrc=t,this.fragTemplate=n,this.programCache={},this.defaultGroupCache={},n.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(n.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}return e.prototype.generateShader=function(t){if(!this.programCache[t]){for(var n=new Int32Array(t),r=0;r<t;r++)n[r]=r;this.defaultGroupCache[t]=Ls.from({uSamplers:n},!0);var a=this.fragTemplate;a=a.replace(/%count%/gi,""+t),a=a.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new Jc(this.vertexSrc,a)}var o={tint:new Float32Array([1,1,1,1]),translationMatrix:new cr,default:this.defaultGroupCache[t]};return new Ui(this.programCache[t],o)},e.prototype.generateSampleSrc=function(t){var n="";n+=`
`,n+=`
`;for(var r=0;r<t;r++)r>0&&(n+=`
else `),r<t-1&&(n+="if(vTextureId < "+r+".5)"),n+=`
{`,n+=`
	color = texture2D(uSamplers[`+r+"], vTextureCoord);",n+=`
}`;return n+=`
`,n+=`
`,n},e}(),mw=function(e){ar(t,e);function t(n){n===void 0&&(n=!1);var r=e.call(this)||this;return r._buffer=new $r(null,n,!1),r._indexBuffer=new $r(null,n,!0),r.addAttribute("aVertexPosition",r._buffer,2,!1,an.FLOAT).addAttribute("aTextureCoord",r._buffer,2,!1,an.FLOAT).addAttribute("aColor",r._buffer,4,!0,an.UNSIGNED_BYTE).addAttribute("aTextureId",r._buffer,1,!0,an.FLOAT).addIndex(r._indexBuffer),r}return t}(Yc),h4=`precision highp float;
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute float aTextureId;

uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform vec4 tint;

varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;

void main(void){
    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = aTextureCoord;
    vTextureId = aTextureId;
    vColor = aColor * tint;
}
`,p4=`varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
uniform sampler2D uSamplers[%count%];

void main(void){
    vec4 color;
    %forloop%
    gl_FragColor = color * vColor;
}
`,zR=function(){function e(){}return e.create=function(t){var n=Object.assign({vertex:h4,fragment:p4,geometryClass:mw,vertexSize:6},t),r=n.vertex,a=n.fragment,o=n.vertexSize,s=n.geometryClass;return function(l){ar(u,l);function u(c){var f=l.call(this,c)||this;return f.shaderGenerator=new jR(r,a),f.geometryClass=s,f.vertexSize=o,f}return u}(GR)},Object.defineProperty(e,"defaultVertexSrc",{get:function(){return h4},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentTemplate",{get:function(){return p4},enumerable:!1,configurable:!0}),e}(),gw=zR.create();Object.assign(gw,{extension:{name:"batch",type:Kn.RendererPlugin}});var KR={},lye=function(e){Object.defineProperty(KR,e,{get:function(){return Sa("6.0.0","PIXI.systems."+e+" has moved to PIXI."+e),bR[e]}})};for(var yw in bR)lye(yw);var WR={},uye=function(e){Object.defineProperty(WR,e,{get:function(){return Sa("6.0.0","PIXI.resources."+e+" has moved to PIXI."+e),BR[e]}})};for(var yw in BR)uye(yw);var cye="6.5.10";/*!
 * @pixi/display - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/display is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */Nt.SORTABLE_CHILDREN=!1;var zf=function(){function e(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?$n.EMPTY:(t=t||new $n(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},e.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},e.prototype.addPointMatrix=function(t,n){var r=t.a,a=t.b,o=t.c,s=t.d,l=t.tx,u=t.ty,c=r*n.x+o*n.y+l,f=a*n.x+s*n.y+u;this.minX=Math.min(this.minX,c),this.maxX=Math.max(this.maxX,c),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)},e.prototype.addQuad=function(t){var n=this.minX,r=this.minY,a=this.maxX,o=this.maxY,s=t[0],l=t[1];n=s<n?s:n,r=l<r?l:r,a=s>a?s:a,o=l>o?l:o,s=t[2],l=t[3],n=s<n?s:n,r=l<r?l:r,a=s>a?s:a,o=l>o?l:o,s=t[4],l=t[5],n=s<n?s:n,r=l<r?l:r,a=s>a?s:a,o=l>o?l:o,s=t[6],l=t[7],n=s<n?s:n,r=l<r?l:r,a=s>a?s:a,o=l>o?l:o,this.minX=n,this.minY=r,this.maxX=a,this.maxY=o},e.prototype.addFrame=function(t,n,r,a,o){this.addFrameMatrix(t.worldTransform,n,r,a,o)},e.prototype.addFrameMatrix=function(t,n,r,a,o){var s=t.a,l=t.b,u=t.c,c=t.d,f=t.tx,d=t.ty,p=this.minX,g=this.minY,y=this.maxX,m=this.maxY,S=s*n+u*r+f,_=l*n+c*r+d;p=S<p?S:p,g=_<g?_:g,y=S>y?S:y,m=_>m?_:m,S=s*a+u*r+f,_=l*a+c*r+d,p=S<p?S:p,g=_<g?_:g,y=S>y?S:y,m=_>m?_:m,S=s*n+u*o+f,_=l*n+c*o+d,p=S<p?S:p,g=_<g?_:g,y=S>y?S:y,m=_>m?_:m,S=s*a+u*o+f,_=l*a+c*o+d,p=S<p?S:p,g=_<g?_:g,y=S>y?S:y,m=_>m?_:m,this.minX=p,this.minY=g,this.maxX=y,this.maxY=m},e.prototype.addVertexData=function(t,n,r){for(var a=this.minX,o=this.minY,s=this.maxX,l=this.maxY,u=n;u<r;u+=2){var c=t[u],f=t[u+1];a=c<a?c:a,o=f<o?f:o,s=c>s?c:s,l=f>l?f:l}this.minX=a,this.minY=o,this.maxX=s,this.maxY=l},e.prototype.addVertices=function(t,n,r,a){this.addVerticesMatrix(t.worldTransform,n,r,a)},e.prototype.addVerticesMatrix=function(t,n,r,a,o,s){o===void 0&&(o=0),s===void 0&&(s=o);for(var l=t.a,u=t.b,c=t.c,f=t.d,d=t.tx,p=t.ty,g=this.minX,y=this.minY,m=this.maxX,S=this.maxY,_=r;_<a;_+=2){var P=n[_],A=n[_+1],$=l*P+c*A+d,k=f*A+u*P+p;g=Math.min(g,$-o),m=Math.max(m,$+o),y=Math.min(y,k-s),S=Math.max(S,k+s)}this.minX=g,this.minY=y,this.maxX=m,this.maxY=S},e.prototype.addBounds=function(t){var n=this.minX,r=this.minY,a=this.maxX,o=this.maxY;this.minX=t.minX<n?t.minX:n,this.minY=t.minY<r?t.minY:r,this.maxX=t.maxX>a?t.maxX:a,this.maxY=t.maxY>o?t.maxY:o},e.prototype.addBoundsMask=function(t,n){var r=t.minX>n.minX?t.minX:n.minX,a=t.minY>n.minY?t.minY:n.minY,o=t.maxX<n.maxX?t.maxX:n.maxX,s=t.maxY<n.maxY?t.maxY:n.maxY;if(r<=o&&a<=s){var l=this.minX,u=this.minY,c=this.maxX,f=this.maxY;this.minX=r<l?r:l,this.minY=a<u?a:u,this.maxX=o>c?o:c,this.maxY=s>f?s:f}},e.prototype.addBoundsMatrix=function(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.addBoundsArea=function(t,n){var r=t.minX>n.x?t.minX:n.x,a=t.minY>n.y?t.minY:n.y,o=t.maxX<n.x+n.width?t.maxX:n.x+n.width,s=t.maxY<n.y+n.height?t.maxY:n.y+n.height;if(r<=o&&a<=s){var l=this.minX,u=this.minY,c=this.maxX,f=this.maxY;this.minX=r<l?r:l,this.minY=a<u?a:u,this.maxX=o>c?o:c,this.maxY=s>f?s:f}},e.prototype.pad=function(t,n){t===void 0&&(t=0),n===void 0&&(n=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)},e.prototype.addFramePad=function(t,n,r,a,o,s){t-=o,n-=s,r+=o,a+=s,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>r?this.maxX:r,this.minY=this.minY<n?this.minY:n,this.maxY=this.maxY>a?this.maxY:a},e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Fy=function(e,t){return Fy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},Fy(e,t)};function bw(e,t){Fy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var br=function(e){bw(t,e);function t(){var n=e.call(this)||this;return n.tempDisplayObjectParent=null,n.transform=new Kv,n.alpha=1,n.visible=!0,n.renderable=!0,n.cullable=!1,n.cullArea=null,n.parent=null,n.worldAlpha=1,n._lastSortedIndex=0,n._zIndex=0,n.filterArea=null,n.filters=null,n._enabledFilters=null,n._bounds=new zf,n._localBounds=null,n._boundsID=0,n._boundsRect=null,n._localBoundsRect=null,n._mask=null,n._maskRefCount=0,n._destroyed=!1,n.isSprite=!1,n.isMask=!1,n}return t.mixin=function(n){for(var r=Object.keys(n),a=0;a<r.length;++a){var o=r[a];Object.defineProperty(t.prototype,o,Object.getOwnPropertyDescriptor(n,o))}},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),t.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},t.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},t.prototype.getBounds=function(n,r){return n||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new $n),r=this._boundsRect),this._bounds.getRectangle(r)},t.prototype.getLocalBounds=function(n){n||(this._localBoundsRect||(this._localBoundsRect=new $n),n=this._localBoundsRect),this._localBounds||(this._localBounds=new zf);var r=this.transform,a=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var o=this._bounds,s=this._boundsID;this._bounds=this._localBounds;var l=this.getBounds(!1,n);return this.parent=a,this.transform=r,this._bounds=o,this._bounds.updateID+=this._boundsID-s,l},t.prototype.toGlobal=function(n,r,a){return a===void 0&&(a=!1),a||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(n,r)},t.prototype.toLocal=function(n,r,a,o){return r&&(n=r.toGlobal(n,a,o)),o||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(n,a)},t.prototype.setParent=function(n){if(!n||!n.addChild)throw new Error("setParent: Argument must be a Container");return n.addChild(this),n},t.prototype.setTransform=function(n,r,a,o,s,l,u,c,f){return n===void 0&&(n=0),r===void 0&&(r=0),a===void 0&&(a=1),o===void 0&&(o=1),s===void 0&&(s=0),l===void 0&&(l=0),u===void 0&&(u=0),c===void 0&&(c=0),f===void 0&&(f=0),this.position.x=n,this.position.y=r,this.scale.x=a||1,this.scale.y=o||1,this.rotation=s,this.skew.x=l,this.skew.y=u,this.pivot.x=c,this.pivot.y=f,this},t.prototype.destroy=function(n){this.parent&&this.parent.removeChild(this),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()},Object.defineProperty(t.prototype,"_tempDisplayObjectParent",{get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new _w),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),t.prototype.enableTempParent=function(){var n=this.parent;return this.parent=this._tempDisplayObjectParent,n},t.prototype.disableTempParent=function(n){this.parent=n},Object.defineProperty(t.prototype,"x",{get:function(){return this.position.x},set:function(n){this.transform.position.x=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.position.y},set:function(n){this.transform.position.y=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.transform.position},set:function(n){this.transform.position.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.transform.scale},set:function(n){this.transform.scale.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(n){this.transform.pivot.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"skew",{get:function(){return this.transform.skew},set:function(n){this.transform.skew.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(n){this.transform.rotation=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this.transform.rotation*fR},set:function(n){this.transform.rotation=n*hR},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zIndex",{get:function(){return this._zIndex},set:function(n){this._zIndex=n,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"worldVisible",{get:function(){var n=this;do{if(!n.visible)return!1;n=n.parent}while(n);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mask",{get:function(){return this._mask},set:function(n){if(this._mask!==n){if(this._mask){var r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=n,this._mask){var r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}},enumerable:!1,configurable:!0}),t}(as),_w=function(e){bw(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.sortDirty=null,n}return t}(br);br.prototype.displayObjectUpdateTransform=br.prototype.updateTransform;function dye(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}var Co=function(e){bw(t,e);function t(){var n=e.call(this)||this;return n.children=[],n.sortableChildren=Nt.SORTABLE_CHILDREN,n.sortDirty=!1,n}return t.prototype.onChildrenChange=function(n){},t.prototype.addChild=function(){for(var n=arguments,r=[],a=0;a<arguments.length;a++)r[a]=n[a];if(r.length>1)for(var o=0;o<r.length;o++)this.addChild(r[o]);else{var s=r[0];s.parent&&s.parent.removeChild(s),s.parent=this,this.sortDirty=!0,s.transform._parentID=-1,this.children.push(s),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",s,this,this.children.length-1),s.emit("added",this)}return r[0]},t.prototype.addChildAt=function(n,r){if(r<0||r>this.children.length)throw new Error(n+"addChildAt: The index "+r+" supplied is out of bounds "+this.children.length);return n.parent&&n.parent.removeChild(n),n.parent=this,this.sortDirty=!0,n.transform._parentID=-1,this.children.splice(r,0,n),this._boundsID++,this.onChildrenChange(r),n.emit("added",this),this.emit("childAdded",n,this,r),n},t.prototype.swapChildren=function(n,r){if(n!==r){var a=this.getChildIndex(n),o=this.getChildIndex(r);this.children[a]=r,this.children[o]=n,this.onChildrenChange(a<o?a:o)}},t.prototype.getChildIndex=function(n){var r=this.children.indexOf(n);if(r===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return r},t.prototype.setChildIndex=function(n,r){if(r<0||r>=this.children.length)throw new Error("The index "+r+" supplied is out of bounds "+this.children.length);var a=this.getChildIndex(n);Wl(this.children,a,1),this.children.splice(r,0,n),this.onChildrenChange(r)},t.prototype.getChildAt=function(n){if(n<0||n>=this.children.length)throw new Error("getChildAt: Index ("+n+") does not exist.");return this.children[n]},t.prototype.removeChild=function(){for(var n=arguments,r=[],a=0;a<arguments.length;a++)r[a]=n[a];if(r.length>1)for(var o=0;o<r.length;o++)this.removeChild(r[o]);else{var s=r[0],l=this.children.indexOf(s);if(l===-1)return null;s.parent=null,s.transform._parentID=-1,Wl(this.children,l,1),this._boundsID++,this.onChildrenChange(l),s.emit("removed",this),this.emit("childRemoved",s,this,l)}return r[0]},t.prototype.removeChildAt=function(n){var r=this.getChildAt(n);return r.parent=null,r.transform._parentID=-1,Wl(this.children,n,1),this._boundsID++,this.onChildrenChange(n),r.emit("removed",this),this.emit("childRemoved",r,this,n),r},t.prototype.removeChildren=function(n,r){n===void 0&&(n=0),r===void 0&&(r=this.children.length);var a=n,o=r,s=o-a,l;if(s>0&&s<=o){l=this.children.splice(a,s);for(var u=0;u<l.length;++u)l[u].parent=null,l[u].transform&&(l[u].transform._parentID=-1);this._boundsID++,this.onChildrenChange(n);for(var u=0;u<l.length;++u)l[u].emit("removed",this),this.emit("childRemoved",l[u],this,u);return l}else if(s===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.sortChildren=function(){for(var n=!1,r=0,a=this.children.length;r<a;++r){var o=this.children[r];o._lastSortedIndex=r,!n&&o.zIndex!==0&&(n=!0)}n&&this.children.length>1&&this.children.sort(dye),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var n=0,r=this.children.length;n<r;++n){var a=this.children[n];a.visible&&a.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var n=0;n<this.children.length;n++){var r=this.children[n];if(!(!r.visible||!r.renderable))if(r.calculateBounds(),r._mask){var a=r._mask.isMaskData?r._mask.maskObject:r._mask;a?(a.calculateBounds(),this._bounds.addBoundsMask(r._bounds,a._bounds)):this._bounds.addBounds(r._bounds)}else r.filterArea?this._bounds.addBoundsArea(r._bounds,r.filterArea):this._bounds.addBounds(r._bounds)}this._bounds.updateID=this._boundsID},t.prototype.getLocalBounds=function(n,r){r===void 0&&(r=!1);var a=e.prototype.getLocalBounds.call(this,n);if(!r)for(var o=0,s=this.children.length;o<s;++o){var l=this.children[o];l.visible&&l.updateTransform()}return a},t.prototype._calculateBounds=function(){},t.prototype._renderWithCulling=function(n){var r=n.renderTexture.sourceFrame;if(r.width>0&&r.height>0){var a,o;if(this.cullArea?(a=this.cullArea,o=this.worldTransform):this._render!==t.prototype._render&&(a=this.getBounds(!0)),a&&r.intersects(a,o))this._render(n);else if(this.cullArea)return;for(var s=0,l=this.children.length;s<l;++s){var u=this.children[s],c=u.cullable;u.cullable=c||!this.cullArea,u.render(n),u.cullable=c}}},t.prototype.render=function(n){if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(n);else if(this.cullable)this._renderWithCulling(n);else{this._render(n);for(var r=0,a=this.children.length;r<a;++r)this.children[r].render(n)}},t.prototype.renderAdvanced=function(n){var r=this.filters,a=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var o=0;o<r.length;o++)r[o].enabled&&this._enabledFilters.push(r[o])}var s=r&&this._enabledFilters&&this._enabledFilters.length||a&&(!a.isMaskData||a.enabled&&(a.autoDetect||a.type!==wr.NONE));if(s&&n.batch.flush(),r&&this._enabledFilters&&this._enabledFilters.length&&n.filter.push(this,this._enabledFilters),a&&n.mask.push(this,this._mask),this.cullable)this._renderWithCulling(n);else{this._render(n);for(var o=0,l=this.children.length;o<l;++o)this.children[o].render(n)}s&&n.batch.flush(),a&&n.mask.pop(this),r&&this._enabledFilters&&this._enabledFilters.length&&n.filter.pop()},t.prototype._render=function(n){},t.prototype.destroy=function(n){e.prototype.destroy.call(this),this.sortDirty=!1;var r=typeof n=="boolean"?n:n&&n.children,a=this.removeChildren(0,this.children.length);if(r)for(var o=0;o<a.length;++o)a[o].destroy(n)},Object.defineProperty(t.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(n){var r=this.getLocalBounds().width;r!==0?this.scale.x=n/r:this.scale.x=1,this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(n){var r=this.getLocalBounds().height;r!==0?this.scale.y=n/r:this.scale.y=1,this._height=n},enumerable:!1,configurable:!0}),t}(br);Co.prototype.containerUpdateTransform=Co.prototype.updateTransform;var pl=Math.pow,fr=(e,t,n)=>new Promise((r,a)=>{var o=u=>{try{l(n.next(u))}catch(c){a(c)}},s=u=>{try{l(n.throw(u))}catch(c){a(c)}},l=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);l((n=n.apply(e,t)).next())});const v4=2,m4=2;var Kf;(e=>{e.supportMoreMaskDivisions=!0,e.setOpacityFromMotion=!1})(Kf||(Kf={}));var Qr;(e=>{e.LOG_LEVEL_VERBOSE=0,e.LOG_LEVEL_WARNING=1,e.LOG_LEVEL_ERROR=2,e.LOG_LEVEL_NONE=999,e.logLevel=e.LOG_LEVEL_WARNING,e.sound=!0,e.motionSync=!0,e.motionFadingDuration=500,e.idleMotionFadingDuration=2e3,e.expressionFadingDuration=500,e.preserveExpressionOnMotion=!0,e.cubism4=Kf})(Qr||(Qr={}));const Qn={log(e,...t){Qr.logLevel<=Qr.LOG_LEVEL_VERBOSE&&console.log(`[${e}]`,...t)},warn(e,...t){Qr.logLevel<=Qr.LOG_LEVEL_WARNING&&console.warn(`[${e}]`,...t)},error(e,...t){Qr.logLevel<=Qr.LOG_LEVEL_ERROR&&console.error(`[${e}]`,...t)}};function q0(e,t,n){return e<t?t:e>n?n:e}function fye(e,t){return Math.random()*(t-e)+e}function vd(e,t,n,r,a){const o=t[r];o!==null&&typeof o===e&&(n[a]=o)}function md(e,t,n,r,a){const o=t[r];Array.isArray(o)&&(n[a]=o.filter(s=>s!==null&&typeof s===e))}function XR(e,t){t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(n.prototype,r))})})}function hye(e){let t=e.lastIndexOf("/");return t!=-1&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t!==-1&&(e=e.slice(t+1)),e}function pye(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}class ww extends as{constructor(t,n){super(),this.expressions=[],this.reserveExpressionIndex=-1,this.destroyed=!1,this.settings=t,this.tag=`ExpressionManager(${t.name})`}init(){this.defaultExpression=this.createExpression({},void 0),this.currentExpression=this.defaultExpression,this.stopAllExpressions()}loadExpression(t){return fr(this,null,function*(){if(!this.definitions[t]){Qn.warn(this.tag,`Undefined expression at [${t}]`);return}if(this.expressions[t]===null){Qn.warn(this.tag,`Cannot set expression at [${t}] because it's already failed in loading.`);return}if(this.expressions[t])return this.expressions[t];const n=yield this._loadExpression(t);return this.expressions[t]=n,n})}_loadExpression(t){throw new Error("Not implemented.")}setRandomExpression(){return fr(this,null,function*(){if(this.definitions.length){const t=[];for(let n=0;n<this.definitions.length;n++)this.expressions[n]!==null&&this.expressions[n]!==this.currentExpression&&n!==this.reserveExpressionIndex&&t.push(n);if(t.length){const n=Math.floor(Math.random()*t.length);return this.setExpression(n)}}return!1})}resetExpression(){this._setExpression(this.defaultExpression)}restoreExpression(){this._setExpression(this.currentExpression)}setExpression(t){return fr(this,null,function*(){if(typeof t!="number"&&(t=this.getExpressionIndex(t)),!(t>-1&&t<this.definitions.length)||t===this.expressions.indexOf(this.currentExpression))return!1;this.reserveExpressionIndex=t;const n=yield this.loadExpression(t);return!n||this.reserveExpressionIndex!==t?!1:(this.reserveExpressionIndex=-1,this.currentExpression=n,this._setExpression(n),!0)})}update(t,n){return this.isFinished()?!1:this.updateParameters(t,n)}destroy(){this.destroyed=!0,this.emit("destroy");const t=this;t.definitions=void 0,t.expressions=void 0}}const g4=.01,vye=40/7.5,mye=1/(.15*1e3);class gye{constructor(){this.targetX=0,this.targetY=0,this.x=0,this.y=0,this.vx=0,this.vy=0}focus(t,n,r=!1){this.targetX=q0(t,-1,1),this.targetY=q0(n,-1,1),r&&(this.x=this.targetX,this.y=this.targetY)}update(t){const n=this.targetX-this.x,r=this.targetY-this.y;if(Math.abs(n)<g4&&Math.abs(r)<g4)return;const a=Math.sqrt(pl(n,2)+pl(r,2)),o=vye/(1e3/t);let s=o*(n/a)-this.vx,l=o*(r/a)-this.vy;const u=Math.sqrt(pl(s,2)+pl(l,2)),c=o*mye*t;u>c&&(s*=c/u,l*=c/u),this.vx+=s,this.vy+=l;const f=Math.sqrt(pl(this.vx,2)+pl(this.vy,2)),d=.5*(Math.sqrt(pl(c,2)+8*c*a)-c);f>d&&(this.vx*=d/f,this.vy*=d/f),this.x+=this.vx,this.y+=this.vy}}class qv{constructor(t){this.json=t;let n=t.url;if(typeof n!="string")throw new TypeError("The `url` field in settings JSON must be defined as a string.");this.url=n,this.name=hye(this.url)}resolveURL(t){return fi.resolve(this.url,t)}replaceFiles(t){this.moc=t(this.moc,"moc"),this.pose!==void 0&&(this.pose=t(this.pose,"pose")),this.physics!==void 0&&(this.physics=t(this.physics,"physics"));for(let n=0;n<this.textures.length;n++)this.textures[n]=t(this.textures[n],`textures[${n}]`)}getDefinedFiles(){const t=[];return this.replaceFiles(n=>(t.push(n),n)),t}validateFiles(t){const n=(r,a)=>{const o=this.resolveURL(r);if(!t.includes(o)){if(a)throw new Error(`File "${r}" is defined in settings, but doesn't exist in given files`);return!1}return!0};return[this.moc,...this.textures].forEach(r=>n(r,!0)),this.getDefinedFiles().filter(r=>n(r,!1))}}var By=(e=>(e[e.NONE=0]="NONE",e[e.IDLE=1]="IDLE",e[e.NORMAL=2]="NORMAL",e[e.FORCE=3]="FORCE",e))(By||{});class yye{constructor(){this.debug=!1,this.currentPriority=0,this.reservePriority=0}reserve(t,n,r){if(r<=0)return Qn.log(this.tag,"Cannot start a motion with MotionPriority.NONE."),!1;if(t===this.currentGroup&&n===this.currentIndex)return Qn.log(this.tag,"Motion is already playing.",this.dump(t,n)),!1;if(t===this.reservedGroup&&n===this.reservedIndex||t===this.reservedIdleGroup&&n===this.reservedIdleIndex)return Qn.log(this.tag,"Motion is already reserved.",this.dump(t,n)),!1;if(r===1){if(this.currentPriority!==0)return Qn.log(this.tag,"Cannot start idle motion because another motion is playing.",this.dump(t,n)),!1;if(this.reservedIdleGroup!==void 0)return Qn.log(this.tag,"Cannot start idle motion because another idle motion has reserved.",this.dump(t,n)),!1;this.setReservedIdle(t,n)}else{if(r<3){if(r<=this.currentPriority)return Qn.log(this.tag,"Cannot start motion because another motion is playing as an equivalent or higher priority.",this.dump(t,n)),!1;if(r<=this.reservePriority)return Qn.log(this.tag,"Cannot start motion because another motion has reserved as an equivalent or higher priority.",this.dump(t,n)),!1}this.setReserved(t,n,r)}return!0}start(t,n,r,a){if(a===1){if(this.setReservedIdle(void 0,void 0),this.currentPriority!==0)return Qn.log(this.tag,"Cannot start idle motion because another motion is playing.",this.dump(n,r)),!1}else{if(n!==this.reservedGroup||r!==this.reservedIndex)return Qn.log(this.tag,"Cannot start motion because another motion has taken the place.",this.dump(n,r)),!1;this.setReserved(void 0,void 0,0)}return t?(this.setCurrent(n,r,a),!0):!1}complete(){this.setCurrent(void 0,void 0,0)}setCurrent(t,n,r){this.currentPriority=r,this.currentGroup=t,this.currentIndex=n}setReserved(t,n,r){this.reservePriority=r,this.reservedGroup=t,this.reservedIndex=n}setReservedIdle(t,n){this.reservedIdleGroup=t,this.reservedIdleIndex=n}isActive(t,n){return t===this.currentGroup&&n===this.currentIndex||t===this.reservedGroup&&n===this.reservedIndex||t===this.reservedIdleGroup&&n===this.reservedIdleIndex}reset(){this.setCurrent(void 0,void 0,0),this.setReserved(void 0,void 0,0),this.setReservedIdle(void 0,void 0)}shouldRequestIdleMotion(){return this.currentGroup===void 0&&this.reservedIdleGroup===void 0}shouldOverrideExpression(){return!Qr.preserveExpressionOnMotion&&this.currentPriority>1}dump(t,n){if(this.debug){const r=["currentPriority","reservePriority","currentGroup","currentIndex","reservedGroup","reservedIndex","reservedIdleGroup","reservedIdleIndex"];return`
<Requested> group = "${t}", index = ${n}
`+r.map(a=>"["+a+"] "+this[a]).join(`
`)}return""}}const bye="SoundManager",_ye=.5;class Cs{static get volume(){return this._volume}static set volume(t){this._volume=(t>1?1:t<0?0:t)||0,this.audios.forEach(n=>n.volume=this._volume)}static add(t,n,r){const a=new Audio(t);return a.volume=this._volume,a.preload="auto",a.addEventListener("ended",()=>{this.dispose(a),n==null||n()}),a.addEventListener("error",o=>{this.dispose(a),Qn.warn(bye,`Error occurred on "${t}"`,o.error),r==null||r(o.error)}),this.audios.push(a),a}static play(t){return new Promise((n,r)=>{var a;(a=t.play())==null||a.catch(o=>{t.dispatchEvent(new ErrorEvent("error",{error:o})),r(o)}),t.readyState===t.HAVE_ENOUGH_DATA?n():t.addEventListener("canplaythrough",n)})}static dispose(t){t.pause(),t.removeAttribute("src"),pye(this.audios,t)}static destroy(){for(let t=this.audios.length-1;t>=0;t--)this.dispose(this.audios[t])}}Cs.audios=[];Cs._volume=_ye;class Qv extends as{constructor(t,n){super(),this.motionGroups={},this.state=new yye,this.playing=!1,this.destroyed=!1,this.settings=t,this.tag=`MotionManager(${t.name})`,this.state.tag=this.tag}init(t){t!=null&&t.idleMotionGroup&&(this.groups.idle=t.idleMotionGroup),this.setupMotions(t),this.stopAllMotions()}setupMotions(t){for(const r of Object.keys(this.definitions))this.motionGroups[r]=[];let n;switch(t==null?void 0:t.motionPreload){case"NONE":return;case"ALL":n=Object.keys(this.definitions);break;case"IDLE":default:n=[this.groups.idle];break}for(const r of n)if(this.definitions[r])for(let a=0;a<this.definitions[r].length;a++)this.loadMotion(r,a).then()}loadMotion(t,n){return fr(this,null,function*(){var r;if(!((r=this.definitions[t])!=null&&r[n])){Qn.warn(this.tag,`Undefined motion at "${t}"[${n}]`);return}if(this.motionGroups[t][n]===null){Qn.warn(this.tag,`Cannot start motion at "${t}"[${n}] because it's already failed in loading.`);return}if(this.motionGroups[t][n])return this.motionGroups[t][n];const a=yield this._loadMotion(t,n);if(!this.destroyed)return this.motionGroups[t][n]=a??null,a})}_loadMotion(t,n){throw new Error("Not implemented.")}startMotion(t,n){return fr(this,arguments,function*(r,a,o=By.NORMAL){var s;if(!this.state.reserve(r,a,o))return!1;const l=(s=this.definitions[r])==null?void 0:s[a];if(!l)return!1;this.currentAudio&&Cs.dispose(this.currentAudio);let u;if(Qr.sound){const f=this.getSoundFile(l);if(f)try{u=Cs.add(this.settings.resolveURL(f),()=>this.currentAudio=void 0,()=>this.currentAudio=void 0),this.currentAudio=u}catch(d){Qn.warn(this.tag,"Failed to create audio",f,d)}}const c=yield this.loadMotion(r,a);if(u){const f=Cs.play(u).catch(d=>Qn.warn(this.tag,"Failed to play audio",u.src,d));Qr.motionSync&&(yield f)}return this.state.start(c,r,a,o)?(Qn.log(this.tag,"Start motion:",this.getMotionName(l)),this.emit("motionStart",r,a,u),this.state.shouldOverrideExpression()&&this.expressionManager&&this.expressionManager.resetExpression(),this.playing=!0,this._startMotion(c),!0):(u&&(Cs.dispose(u),this.currentAudio=void 0),!1)})}startRandomMotion(t,n){return fr(this,null,function*(){const r=this.definitions[t];if(r!=null&&r.length){const a=[];for(let o=0;o<r.length;o++)this.motionGroups[t][o]!==null&&!this.state.isActive(t,o)&&a.push(o);if(a.length){const o=Math.floor(Math.random()*a.length);return this.startMotion(t,a[o],n)}}return!1})}stopAllMotions(){this._stopAllMotions(),this.state.reset(),this.currentAudio&&(Cs.dispose(this.currentAudio),this.currentAudio=void 0)}update(t,n){var r;return this.isFinished()&&(this.playing&&(this.playing=!1,this.emit("motionFinish")),this.state.shouldOverrideExpression()&&((r=this.expressionManager)==null||r.restoreExpression()),this.state.complete(),this.state.shouldRequestIdleMotion()&&this.startRandomMotion(this.groups.idle,By.IDLE)),this.updateParameters(t,n)}destroy(){var t;this.destroyed=!0,this.emit("destroy"),this.stopAllMotions(),(t=this.expressionManager)==null||t.destroy();const n=this;n.definitions=void 0,n.motionGroups=void 0}}const wye={x:0,y:0,width:0,height:0};class YR extends as{constructor(){super(...arguments),this.focusController=new gye,this.originalWidth=0,this.originalHeight=0,this.width=0,this.height=0,this.localTransform=new cr,this.drawingMatrix=new cr,this.hitAreas={},this.textureFlipY=!1,this.viewport=[0,0,0,0],this.destroyed=!1}init(){this.setupLayout(),this.setupHitAreas()}setupLayout(){const t=this,n=this.getSize();t.originalWidth=n[0],t.originalHeight=n[1];const r=Object.assign({width:v4,height:m4},this.getLayout());this.localTransform.scale(r.width/v4,r.height/m4),t.width=this.originalWidth*this.localTransform.a,t.height=this.originalHeight*this.localTransform.d;const a=r.x!==void 0&&r.x-r.width/2||r.centerX!==void 0&&r.centerX||r.left!==void 0&&r.left-r.width/2||r.right!==void 0&&r.right+r.width/2||0,o=r.y!==void 0&&r.y-r.height/2||r.centerY!==void 0&&r.centerY||r.top!==void 0&&r.top-r.height/2||r.bottom!==void 0&&r.bottom+r.height/2||0;this.localTransform.translate(this.width*a,-this.height*o)}setupHitAreas(){const t=this.getHitAreaDefs().filter(n=>n.index>=0);for(const n of t)this.hitAreas[n.name]=n}hitTest(t,n){return Object.keys(this.hitAreas).filter(r=>this.isHit(r,t,n))}isHit(t,n,r){if(!this.hitAreas[t])return!1;const a=this.hitAreas[t].index,o=this.getDrawableBounds(a,wye);return o.x<=n&&n<=o.x+o.width&&o.y<=r&&r<=o.y+o.height}getDrawableBounds(t,n){const r=this.getDrawableVertices(t);let a=r[0],o=r[0],s=r[1],l=r[1];for(let u=0;u<r.length;u+=2){const c=r[u],f=r[u+1];a=Math.min(c,a),o=Math.max(c,o),s=Math.min(f,s),l=Math.max(f,l)}return n!=null||(n={}),n.x=a,n.y=s,n.width=o-a,n.height=l-s,n}updateTransform(t){this.drawingMatrix.copyFrom(t).append(this.localTransform)}update(t,n){this.focusController.update(t)}destroy(){this.destroyed=!0,this.emit("destroy"),this.motionManager.destroy(),this.motionManager=void 0}}const Sye="XHRLoader";class y4 extends Error{constructor(t,n,r,a=!1){super(t),this.url=n,this.status=r,this.aborted=a}}const ba=class{static createXHR(e,t,n,r,a){const o=new XMLHttpRequest;if(ba.allXhrSet.add(o),e){let s=ba.xhrMap.get(e);s?s.add(o):(s=new Set([o]),ba.xhrMap.set(e,s)),e.listeners("destroy").includes(ba.cancelXHRs)||e.once("destroy",ba.cancelXHRs)}return o.open("GET",t),o.responseType=n,o.onload=()=>{(o.status===200||o.status===0)&&o.response?r(o.response):o.onerror()},o.onerror=()=>{Qn.warn(Sye,`Failed to load resource as ${o.responseType} (Status ${o.status}): ${t}`),a(new y4("Network error.",t,o.status))},o.onabort=()=>a(new y4("Aborted.",t,o.status,!0)),o.onloadend=()=>{var s;ba.allXhrSet.delete(o),e&&((s=ba.xhrMap.get(e))==null||s.delete(o))},o}static cancelXHRs(){var e;(e=ba.xhrMap.get(this))==null||e.forEach(t=>{t.abort(),ba.allXhrSet.delete(t)}),ba.xhrMap.delete(this)}static release(){ba.allXhrSet.forEach(e=>e.abort()),ba.allXhrSet.clear(),ba.xhrMap=new WeakMap}};let Zv=ba;Zv.xhrMap=new WeakMap;Zv.allXhrSet=new Set;Zv.loader=(e,t)=>new Promise((n,r)=>{ba.createXHR(e.target,e.settings?e.settings.resolveURL(e.url):e.url,e.type,a=>{e.result=a,n()},r).send()});function JR(e,t){let n=-1;return r(0);function r(a,o){if(o)return Promise.reject(o);if(a<=n)return Promise.reject(new Error("next() called multiple times"));n=a;const s=e[a];if(!s)return Promise.resolve();try{return Promise.resolve(s(t,r.bind(null,a+1)))}catch(l){return Promise.reject(l)}}}class Xs{static load(t){return JR(this.middlewares,t).then(()=>t.result)}}Xs.middlewares=[Zv.loader];function Tye(e,t={}){const n={resourceOptions:{crossorigin:t.crossOrigin}};if(mn.fromURL)return mn.fromURL(e,n).catch(o=>{if(o instanceof Error)throw o;const s=new Error("Texture loading error");throw s.event=o,s});n.resourceOptions.autoLoad=!1;const r=mn.from(e,n);if(r.baseTexture.valid)return Promise.resolve(r);const a=r.baseTexture.resource;return a._live2d_load!=null||(a._live2d_load=new Promise((o,s)=>{const l=u=>{a.source.removeEventListener("error",l);const c=new Error("Texture loading error");c.event=u,s(c)};a.source.addEventListener("error",l),a.load().then(()=>o(r)).catch(l)})),a._live2d_load}const b4="Live2DFactory",qR=(e,t)=>fr(void 0,null,function*(){if(typeof e.source=="string"){const n=yield Xs.load({url:e.source,type:"json",target:e.live2dModel});n.url=e.source,e.source=n,e.live2dModel.emit("settingsJSONLoaded",n)}return t()}),QR=(e,t)=>fr(void 0,null,function*(){if(e.source instanceof qv)return e.settings=e.source,t();if(typeof e.source=="object"){const n=dr.findRuntime(e.source);if(n){const r=n.createModelSettings(e.source);return e.settings=r,e.live2dModel.emit("settingsLoaded",r),t()}}throw new TypeError("Unknown settings format.")}),ZR=(e,t)=>{if(e.settings){const n=dr.findRuntime(e.settings);if(n)return n.ready().then(t)}return t()},ek=(e,t)=>fr(void 0,null,function*(){yield t();const n=e.internalModel;if(n){const r=e.settings,a=dr.findRuntime(r);if(a){const o=[];r.pose&&o.push(Xs.load({settings:r,url:r.pose,type:"json",target:n}).then(s=>{n.pose=a.createPose(n.coreModel,s),e.live2dModel.emit("poseLoaded",n.pose)}).catch(s=>{e.live2dModel.emit("poseLoadError",s),Qn.warn(b4,"Failed to load pose.",s)})),r.physics&&o.push(Xs.load({settings:r,url:r.physics,type:"json",target:n}).then(s=>{n.physics=a.createPhysics(n.coreModel,s),e.live2dModel.emit("physicsLoaded",n.physics)}).catch(s=>{e.live2dModel.emit("physicsLoadError",s),Qn.warn(b4,"Failed to load physics.",s)})),o.length&&(yield Promise.all(o))}}}),tk=(e,t)=>fr(void 0,null,function*(){if(e.settings){const n=e.live2dModel,r=e.settings.textures.map(a=>{const o=e.settings.resolveURL(a);return Tye(o,{crossOrigin:e.options.crossOrigin})});if(yield t(),e.internalModel)n.internalModel=e.internalModel,n.emit("modelLoaded",e.internalModel);else throw new TypeError("Missing internal model.");n.textures=yield Promise.all(r),n.emit("textureLoaded",n.textures)}else throw new TypeError("Missing settings.")}),nk=(e,t)=>fr(void 0,null,function*(){const n=e.settings;if(n instanceof qv){const r=dr.findRuntime(n);if(!r)throw new TypeError("Unknown model settings.");const a=yield Xs.load({settings:n,url:n.moc,type:"arraybuffer",target:e.live2dModel});if(!r.isValidMoc(a))throw new Error("Invalid moc data");const o=r.createCoreModel(a);return e.internalModel=r.createInternalModel(o,n,e.options),t()}throw new TypeError("Missing settings.")}),qr=class{static registerRuntime(e){qr.runtimes.push(e),qr.runtimes.sort((t,n)=>n.version-t.version)}static findRuntime(e){for(const t of qr.runtimes)if(t.test(e))return t}static setupLive2DModel(e,t,n){return fr(this,null,function*(){const r=new Promise(s=>e.once("textureLoaded",s)),a=new Promise(s=>e.once("modelLoaded",s)),o=Promise.all([r,a]).then(()=>e.emit("ready"));yield JR(qr.live2DModelMiddlewares,{live2dModel:e,source:t,options:n||{}}),yield o,e.emit("load")})}static loadMotion(e,t,n){var r,a;const o=s=>e.emit("motionLoadError",t,n,s);try{const s=(r=e.definitions[t])==null?void 0:r[n];if(!s)return Promise.resolve(void 0);e.listeners("destroy").includes(qr.releaseTasks)||e.once("destroy",qr.releaseTasks);let l=qr.motionTasksMap.get(e);l||(l={},qr.motionTasksMap.set(e,l));let u=l[t];u||(u=[],l[t]=u);const c=e.getMotionFile(s);return(a=u[n])!=null||(u[n]=Xs.load({url:c,settings:e.settings,type:e.motionDataType,target:e}).then(f=>{var d;const p=(d=qr.motionTasksMap.get(e))==null?void 0:d[t];p&&delete p[n];const g=e.createMotion(f,t,s);return e.emit("motionLoaded",t,n,g),g}).catch(f=>{Qn.warn(e.tag,`Failed to load motion: ${c}
`,f),o(f)})),u[n]}catch(s){Qn.warn(e.tag,`Failed to load motion at "${t}"[${n}]
`,s),o(s)}return Promise.resolve(void 0)}static loadExpression(e,t){var n;const r=a=>e.emit("expressionLoadError",t,a);try{const a=e.definitions[t];if(!a)return Promise.resolve(void 0);e.listeners("destroy").includes(qr.releaseTasks)||e.once("destroy",qr.releaseTasks);let o=qr.expressionTasksMap.get(e);o||(o=[],qr.expressionTasksMap.set(e,o));const s=e.getExpressionFile(a);return(n=o[t])!=null||(o[t]=Xs.load({url:s,settings:e.settings,type:"json",target:e}).then(l=>{const u=qr.expressionTasksMap.get(e);u&&delete u[t];const c=e.createExpression(l,a);return e.emit("expressionLoaded",t,c),c}).catch(l=>{Qn.warn(e.tag,`Failed to load expression: ${s}
`,l),r(l)})),o[t]}catch(a){Qn.warn(e.tag,`Failed to load expression at [${t}]
`,a),r(a)}return Promise.resolve(void 0)}static releaseTasks(){this instanceof Qv?qr.motionTasksMap.delete(this):qr.expressionTasksMap.delete(this)}};let dr=qr;dr.runtimes=[];dr.urlToJSON=qR;dr.jsonToSettings=QR;dr.waitUntilReady=ZR;dr.setupOptionals=ek;dr.setupEssentials=tk;dr.createInternalModel=nk;dr.live2DModelMiddlewares=[qR,QR,ZR,ek,tk,nk];dr.motionTasksMap=new WeakMap;dr.expressionTasksMap=new WeakMap;Qv.prototype._loadMotion=function(e,t){return dr.loadMotion(this,e,t)};ww.prototype._loadExpression=function(e){return dr.loadExpression(this,e)};class Eye{constructor(){this._autoInteract=!1}get autoInteract(){return this._autoInteract}set autoInteract(t){t!==this._autoInteract&&(t?this.on("pointertap",_4,this):this.off("pointertap",_4,this),this._autoInteract=t)}registerInteraction(t){t!==this.interactionManager&&(this.unregisterInteraction(),this._autoInteract&&t&&(this.interactionManager=t,t.on("pointermove",w4,this)))}unregisterInteraction(){var t;this.interactionManager&&((t=this.interactionManager)==null||t.off("pointermove",w4,this),this.interactionManager=void 0)}}function _4(e){this.tap(e.data.global.x,e.data.global.y)}function w4(e){this.focus(e.data.global.x,e.data.global.y)}class Cye extends Kv{}const Za=new Zn,xye=new cr;let cs;class rk extends Co{constructor(t){super(),this.tag="Live2DModel(uninitialized)",this.textures=[],this.transform=new Cye,this.anchor=new Ps(this.onAnchorChange,this,0,0),this.glContextID=-1,this.elapsedTime=performance.now(),this.deltaTime=0,this._autoUpdate=!1,this.once("modelLoaded",()=>this.init(t))}static from(t,n){const r=new this(n);return dr.setupLive2DModel(r,t,n).then(()=>r)}static fromSync(t,n){const r=new this(n);return dr.setupLive2DModel(r,t,n).then(n==null?void 0:n.onLoad).catch(n==null?void 0:n.onError),r}static registerTicker(t){cs=t}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){var n;cs||(cs=(n=window.PIXI)==null?void 0:n.Ticker),t?this._destroyed||(cs?(cs.shared.add(this.onTickerUpdate,this),this._autoUpdate=!0):Qn.warn(this.tag,"No Ticker registered, please call Live2DModel.registerTicker(Ticker).")):(cs==null||cs.shared.remove(this.onTickerUpdate,this),this._autoUpdate=!1)}init(t){this.tag=`Live2DModel(${this.internalModel.settings.name})`;const n=Object.assign({autoUpdate:!0,autoInteract:!0},t);n.autoInteract&&(this.interactive=!0),this.autoInteract=n.autoInteract,this.autoUpdate=n.autoUpdate}onAnchorChange(){this.pivot.set(this.anchor.x*this.internalModel.width,this.anchor.y*this.internalModel.height)}motion(t,n,r){return n===void 0?this.internalModel.motionManager.startRandomMotion(t,r):this.internalModel.motionManager.startMotion(t,n,r)}expression(t){return this.internalModel.motionManager.expressionManager?t===void 0?this.internalModel.motionManager.expressionManager.setRandomExpression():this.internalModel.motionManager.expressionManager.setExpression(t):Promise.resolve(!1)}focus(t,n,r=!1){Za.x=t,Za.y=n,this.toModelPosition(Za,Za,!0);let a=Za.x/this.internalModel.originalWidth*2-1,o=Za.y/this.internalModel.originalHeight*2-1,s=Math.atan2(o,a);this.internalModel.focusController.focus(Math.cos(s),-Math.sin(s),r)}tap(t,n){const r=this.hitTest(t,n);r.length&&(Qn.log(this.tag,"Hit",r),this.emit("hit",r))}hitTest(t,n){return Za.x=t,Za.y=n,this.toModelPosition(Za,Za),this.internalModel.hitTest(Za.x,Za.y)}toModelPosition(t,n=t.clone(),r){return r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.transform.worldTransform.applyInverse(t,n),this.internalModel.localTransform.applyInverse(n,n),n}containsPoint(t){return this.getBounds(!0).contains(t.x,t.y)}_calculateBounds(){this._bounds.addFrame(this.transform,0,0,this.internalModel.width,this.internalModel.height)}onTickerUpdate(){this.update(cs.shared.deltaMS)}update(t){this.deltaTime+=t,this.elapsedTime+=t}_render(t){this.registerInteraction(t.plugins.interaction),t.batch.reset(),t.geometry.reset(),t.shader.reset(),t.state.reset();let n=!1;this.glContextID!==t.CONTEXT_UID&&(this.glContextID=t.CONTEXT_UID,this.internalModel.updateWebGLContext(t.gl,this.glContextID),n=!0);for(let o=0;o<this.textures.length;o++){const s=this.textures[o];s.valid&&((n||!s.baseTexture._glTextures[this.glContextID])&&(t.gl.pixelStorei(WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL,this.internalModel.textureFlipY),t.texture.bind(s.baseTexture,0)),this.internalModel.bindTexture(o,s.baseTexture._glTextures[this.glContextID].texture),s.baseTexture.touched=t.textureGC.count)}const r=t.framebuffer.viewport;this.internalModel.viewport=[r.x,r.y,r.width,r.height],this.deltaTime&&(this.internalModel.update(this.deltaTime,this.elapsedTime),this.deltaTime=0);const a=xye.copyFrom(t.globalUniforms.uniforms.projectionMatrix).append(this.worldTransform);this.internalModel.updateTransform(a),this.internalModel.draw(t.gl),t.state.reset(),t.texture.reset()}destroy(t){this.emit("destroy"),this.autoUpdate=!1,this.unregisterInteraction(),t!=null&&t.texture&&this.textures.forEach(n=>n.destroy(t.baseTexture)),this.internalModel.destroy(),super.destroy(t)}}XR(rk,[Eye]);const oi=class{static resolveURL(e,t){var n;const r=(n=oi.filesMap[e])==null?void 0:n[t];if(r===void 0)throw new Error("Cannot find this file from uploaded files: "+t);return r}static upload(e,t){return fr(this,null,function*(){const n={};for(const r of t.getDefinedFiles()){const a=decodeURI(fi.resolve(t.url,r)),o=e.find(s=>s.webkitRelativePath===a);o&&(n[r]=URL.createObjectURL(o))}oi.filesMap[t._objectURL]=n})}static createSettings(e){return fr(this,null,function*(){const t=e.find(s=>s.name.endsWith("model.json")||s.name.endsWith("model3.json"));if(!t)throw new TypeError("Settings file not found");const n=yield oi.readText(t),r=JSON.parse(n);r.url=t.webkitRelativePath;const a=dr.findRuntime(r);if(!a)throw new Error("Unknown settings JSON");const o=a.createModelSettings(r);return o._objectURL=URL.createObjectURL(t),o})}static readText(e){return fr(this,null,function*(){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsText(e,"utf8")})})}};let Sw=oi;Sw.filesMap={};Sw.factory=(e,t)=>fr(void 0,null,function*(){if(Array.isArray(e.source)&&e.source[0]instanceof File){const n=e.source;let r=n.settings;if(!r)r=yield oi.createSettings(n);else if(!r._objectURL)throw new Error('"_objectURL" must be specified in ModelSettings');r.validateFiles(n.map(a=>encodeURI(a.webkitRelativePath))),yield oi.upload(n,r),r.resolveURL=function(a){return oi.resolveURL(this._objectURL,a)},e.source=r,e.live2dModel.once("modelLoaded",a=>{a.once("destroy",function(){const o=this.settings._objectURL;if(URL.revokeObjectURL(o),oi.filesMap[o])for(const s of Object.values(oi.filesMap[o]))URL.revokeObjectURL(s);delete oi.filesMap[o]})})}return t()});dr.live2DModelMiddlewares.unshift(Sw.factory);const Ra=class{static unzip(e,t){return fr(this,null,function*(){const n=yield Ra.getFilePaths(e),r=[];for(const o of t.getDefinedFiles()){const s=decodeURI(fi.resolve(t.url,o));n.includes(s)&&r.push(s)}const a=yield Ra.getFiles(e,r);for(let o=0;o<a.length;o++){const s=r[o],l=a[o];Object.defineProperty(l,"webkitRelativePath",{value:s})}return a})}static createSettings(e){return fr(this,null,function*(){const t=(yield Ra.getFilePaths(e)).find(o=>o.endsWith("model.json")||o.endsWith("model3.json"));if(!t)throw new Error("Settings file not found");const n=yield Ra.readText(e,t);if(!n)throw new Error("Empty settings file: "+t);const r=JSON.parse(n);r.url=t;const a=dr.findRuntime(r);if(!a)throw new Error("Unknown settings JSON");return a.createModelSettings(r)})}static zipReader(e,t){return fr(this,null,function*(){throw new Error("Not implemented")})}static getFilePaths(e){return fr(this,null,function*(){throw new Error("Not implemented")})}static getFiles(e,t){return fr(this,null,function*(){throw new Error("Not implemented")})}static readText(e,t){return fr(this,null,function*(){throw new Error("Not implemented")})}static releaseReader(e){}};let em=Ra;em.ZIP_PROTOCOL="zip://";em.uid=0;em.factory=(e,t)=>fr(void 0,null,function*(){const n=e.source;let r,a,o;if(typeof n=="string"&&(n.endsWith(".zip")||n.startsWith(Ra.ZIP_PROTOCOL))?(n.startsWith(Ra.ZIP_PROTOCOL)?r=n.slice(Ra.ZIP_PROTOCOL.length):r=n,a=yield Xs.load({url:r,type:"blob",target:e.live2dModel})):Array.isArray(n)&&n.length===1&&n[0]instanceof File&&n[0].name.endsWith(".zip")&&(a=n[0],r=URL.createObjectURL(a),o=n.settings),a){if(!a.size)throw new Error("Empty zip file");const s=yield Ra.zipReader(a,r);o||(o=yield Ra.createSettings(s)),o._objectURL=Ra.ZIP_PROTOCOL+Ra.uid+"/"+o.url;const l=yield Ra.unzip(s,o);l.settings=o,e.source=l,r.startsWith("blob:")&&e.live2dModel.once("modelLoaded",u=>{u.once("destroy",function(){URL.revokeObjectURL(r)})}),Ra.releaseReader(s)}return t()});dr.live2DModelMiddlewares.unshift(em.factory);if(!window.Live2D)throw new Error("Could not find Cubism 2 runtime. This plugin requires live2d.min.js to be loaded.");const Iye=Live2DMotion.prototype.updateParam;Live2DMotion.prototype.updateParam=function(e,t){Iye.call(this,e,t),t.isFinished()&&this.onFinishHandler&&(this.onFinishHandler(this),delete this.onFinishHandler)};class Aye extends AMotion{constructor(t){super(),this.params=[],this.setFadeIn(t.fade_in>0?t.fade_in:Qr.expressionFadingDuration),this.setFadeOut(t.fade_out>0?t.fade_out:Qr.expressionFadingDuration),Array.isArray(t.params)&&t.params.forEach(n=>{const r=n.calc||"add";if(r==="add"){const a=n.def||0;n.val-=a}else if(r==="mult"){const a=n.def||1;n.val/=a}this.params.push({calc:r,val:n.val,id:n.id})})}updateParamExe(t,n,r,a){this.params.forEach(o=>{t.setParamFloat(o.id,o.val*r)})}}class Pye extends ww{constructor(t,n){var r;super(t,n),this.queueManager=new MotionQueueManager,this.definitions=(r=this.settings.expressions)!=null?r:[],this.init()}isFinished(){return this.queueManager.isFinished()}getExpressionIndex(t){return this.definitions.findIndex(n=>n.name===t)}getExpressionFile(t){return t.file}createExpression(t,n){return new Aye(t)}_setExpression(t){return this.queueManager.startMotion(t)}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(t,n){return this.queueManager.updateParam(t)}}class Mye extends Qv{constructor(t,n){super(t,n),this.groups={idle:"idle"},this.motionDataType="arraybuffer",this.queueManager=new MotionQueueManager,this.definitions=this.settings.motions,this.init(n)}init(t){super.init(t),this.settings.expressions&&(this.expressionManager=new Pye(this.settings,t))}isFinished(){return this.queueManager.isFinished()}createMotion(t,n,r){const a=Live2DMotion.loadMotion(t),o=n===this.groups.idle?Qr.idleMotionFadingDuration:Qr.motionFadingDuration;return a.setFadeIn(r.fade_in>0?r.fade_in:o),a.setFadeOut(r.fade_out>0?r.fade_out:o),a}getMotionFile(t){return t.file}getMotionName(t){return t.file}getSoundFile(t){return t.sound}_startMotion(t,n){return t.onFinishHandler=n,this.queueManager.stopAllMotions(),this.queueManager.startMotion(t)}_stopAllMotions(){this.queueManager.stopAllMotions()}updateParameters(t,n){return this.queueManager.updateParam(t)}destroy(){super.destroy(),this.queueManager=void 0}}class Oye{constructor(t){this.coreModel=t,this.blinkInterval=4e3,this.closingDuration=100,this.closedDuration=50,this.openingDuration=150,this.eyeState=0,this.eyeParamValue=1,this.closedTimer=0,this.nextBlinkTimeLeft=this.blinkInterval,this.leftParam=t.getParamIndex("PARAM_EYE_L_OPEN"),this.rightParam=t.getParamIndex("PARAM_EYE_R_OPEN")}setEyeParams(t){this.eyeParamValue=q0(t,0,1),this.coreModel.setParamFloat(this.leftParam,this.eyeParamValue),this.coreModel.setParamFloat(this.rightParam,this.eyeParamValue)}update(t){switch(this.eyeState){case 0:this.nextBlinkTimeLeft-=t,this.nextBlinkTimeLeft<0&&(this.eyeState=1,this.nextBlinkTimeLeft=this.blinkInterval+this.closingDuration+this.closedDuration+this.openingDuration+fye(0,2e3));break;case 1:this.setEyeParams(this.eyeParamValue+t/this.closingDuration),this.eyeParamValue<=0&&(this.eyeState=2,this.closedTimer=0);break;case 2:this.closedTimer+=t,this.closedTimer>=this.closedDuration&&(this.eyeState=3);break;case 3:this.setEyeParams(this.eyeParamValue+t/this.openingDuration),this.eyeParamValue>=1&&(this.eyeState=0)}}}const vl=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);class $ye extends YR{constructor(t,n,r){super(),this.textureFlipY=!0,this.drawDataCount=0,this.disableCulling=!1,this.coreModel=t,this.settings=n,this.motionManager=new Mye(n,r),this.eyeBlink=new Oye(t),this.eyeballXParamIndex=t.getParamIndex("PARAM_EYE_BALL_X"),this.eyeballYParamIndex=t.getParamIndex("PARAM_EYE_BALL_Y"),this.angleXParamIndex=t.getParamIndex("PARAM_ANGLE_X"),this.angleYParamIndex=t.getParamIndex("PARAM_ANGLE_Y"),this.angleZParamIndex=t.getParamIndex("PARAM_ANGLE_Z"),this.bodyAngleXParamIndex=t.getParamIndex("PARAM_BODY_ANGLE_X"),this.breathParamIndex=t.getParamIndex("PARAM_BREATH"),this.init()}init(){super.init(),this.settings.initParams&&this.settings.initParams.forEach(({id:o,value:s})=>this.coreModel.setParamFloat(o,s)),this.settings.initOpacities&&this.settings.initOpacities.forEach(({id:o,value:s})=>this.coreModel.setPartsOpacity(o,s)),this.coreModel.saveParam();const t=this.coreModel.getModelContext()._$aS;t!=null&&t.length&&(this.drawDataCount=t.length);let n=this.coreModel.drawParamWebGL.culling;Object.defineProperty(this.coreModel.drawParamWebGL,"culling",{set:o=>n=o,get:()=>this.disableCulling?!1:n});const r=this.coreModel.getModelContext().clipManager,a=r.setupClip;r.setupClip=(o,s)=>{a.call(r,o,s),s.gl.viewport(...this.viewport)}}getSize(){return[this.coreModel.getCanvasWidth(),this.coreModel.getCanvasHeight()]}getLayout(){const t={};if(this.settings.layout)for(const n of Object.keys(this.settings.layout)){let r=n;n==="center_x"?r="centerX":n==="center_y"&&(r="centerY"),t[r]=this.settings.layout[n]}return t}updateWebGLContext(t,n){const r=this.coreModel.drawParamWebGL;r.firstDraw=!0,r.setGL(t),r.glno=n;for(const s in r)r.hasOwnProperty(s)&&r[s]instanceof WebGLBuffer&&(r[s]=null);const a=this.coreModel.getModelContext().clipManager;a.curFrameNo=n;const o=t.getParameter(t.FRAMEBUFFER_BINDING);a.getMaskRenderTexture(),t.bindFramebuffer(t.FRAMEBUFFER,o)}bindTexture(t,n){this.coreModel.setTexture(t,n)}getHitAreaDefs(){var t;return((t=this.settings.hitAreas)==null?void 0:t.map(n=>({id:n.id,name:n.name,index:this.coreModel.getDrawDataIndex(n.id)})))||[]}getDrawableIDs(){const t=this.coreModel.getModelContext(),n=[];for(let r=0;r<this.drawDataCount;r++){const a=t.getDrawData(r);a&&n.push(a.getDrawDataID().id)}return n}getDrawableIndex(t){return this.coreModel.getDrawDataIndex(t)}getDrawableVertices(t){if(typeof t=="string"&&(t=this.coreModel.getDrawDataIndex(t),t===-1))throw new TypeError("Unable to find drawable ID: "+t);return this.coreModel.getTransformedPoints(t).slice()}update(t,n){var r,a,o,s;super.update(t,n);const l=this.coreModel;this.emit("beforeMotionUpdate");const u=this.motionManager.update(this.coreModel,n);this.emit("afterMotionUpdate"),l.saveParam(),(r=this.motionManager.expressionManager)==null||r.update(l,n),u||(a=this.eyeBlink)==null||a.update(t),this.updateFocus(),this.updateNaturalMovements(t,n),(o=this.physics)==null||o.update(n),(s=this.pose)==null||s.update(t),this.emit("beforeModelUpdate"),l.update(),l.loadParam()}updateFocus(){this.coreModel.addToParamFloat(this.eyeballXParamIndex,this.focusController.x),this.coreModel.addToParamFloat(this.eyeballYParamIndex,this.focusController.y),this.coreModel.addToParamFloat(this.angleXParamIndex,this.focusController.x*30),this.coreModel.addToParamFloat(this.angleYParamIndex,this.focusController.y*30),this.coreModel.addToParamFloat(this.angleZParamIndex,this.focusController.x*this.focusController.y*-30),this.coreModel.addToParamFloat(this.bodyAngleXParamIndex,this.focusController.x*10)}updateNaturalMovements(t,n){const r=n/1e3*2*Math.PI;this.coreModel.addToParamFloat(this.angleXParamIndex,15*Math.sin(r/6.5345)*.5),this.coreModel.addToParamFloat(this.angleYParamIndex,8*Math.sin(r/3.5345)*.5),this.coreModel.addToParamFloat(this.angleZParamIndex,10*Math.sin(r/5.5345)*.5),this.coreModel.addToParamFloat(this.bodyAngleXParamIndex,4*Math.sin(r/15.5345)*.5),this.coreModel.setParamFloat(this.breathParamIndex,.5+.5*Math.sin(r/3.2345))}draw(t){const n=this.disableCulling;t.getParameter(t.FRAMEBUFFER_BINDING)&&(this.disableCulling=!0);const r=this.drawingMatrix;vl[0]=r.a,vl[1]=r.b,vl[4]=r.c,vl[5]=r.d,vl[12]=r.tx,vl[13]=r.ty,this.coreModel.setMatrix(vl),this.coreModel.draw(),this.disableCulling=n}destroy(){super.destroy(),this.coreModel=void 0}}class nf extends qv{constructor(t){if(super(t),this.motions={},!nf.isValidJSON(t))throw new TypeError("Invalid JSON.");this.moc=t.model,md("string",t,this,"textures","textures"),this.copy(t)}static isValidJSON(t){var n;return!!t&&typeof t.model=="string"&&((n=t.textures)==null?void 0:n.length)>0&&t.textures.every(r=>typeof r=="string")}copy(t){vd("string",t,this,"name","name"),vd("string",t,this,"pose","pose"),vd("string",t,this,"physics","physics"),vd("object",t,this,"layout","layout"),vd("object",t,this,"motions","motions"),md("object",t,this,"hit_areas","hitAreas"),md("object",t,this,"expressions","expressions"),md("object",t,this,"init_params","initParams"),md("object",t,this,"init_opacities","initOpacities")}replaceFiles(t){super.replaceFiles(t);for(const[n,r]of Object.entries(this.motions))for(let a=0;a<r.length;a++)r[a].file=t(r[a].file,`motions.${n}[${a}].file`),r[a].sound!==void 0&&(r[a].sound=t(r[a].sound,`motions.${n}[${a}].sound`));if(this.expressions)for(let n=0;n<this.expressions.length;n++)this.expressions[n].file=t(this.expressions[n].file,`expressions[${n}].file`)}}const Rye={x:PhysicsHair.Src.SRC_TO_X,y:PhysicsHair.Src.SRC_TO_Y,angle:PhysicsHair.Src.SRC_TO_G_ANGLE},kye={x:PhysicsHair.Src.SRC_TO_X,y:PhysicsHair.Src.SRC_TO_Y,angle:PhysicsHair.Src.SRC_TO_G_ANGLE};class Lye{constructor(t,n){this.coreModel=t,this.physicsHairs=[],n.physics_hair&&(this.physicsHairs=n.physics_hair.map(r=>{const a=new PhysicsHair;return a.setup(r.setup.length,r.setup.regist,r.setup.mass),r.src.forEach(({id:o,ptype:s,scale:l,weight:u})=>{const c=Rye[s];c&&a.addSrcParam(c,o,l,u)}),r.targets.forEach(({id:o,ptype:s,scale:l,weight:u})=>{const c=kye[s];c&&a.addTargetParam(c,o,l,u)}),a}))}update(t){this.physicsHairs.forEach(n=>n.update(this.coreModel,t))}}class S4{constructor(t){this.id=t,this.paramIndex=-1,this.partsIndex=-1,this.link=[]}initIndex(t){this.paramIndex=t.getParamIndex("VISIBLE:"+this.id),this.partsIndex=t.getPartsDataIndex(PartsDataID.getID(this.id)),t.setParamFloat(this.paramIndex,1)}}class Nye{constructor(t,n){this.coreModel=t,this.opacityAnimDuration=500,this.partsGroups=[],n.parts_visible&&(this.partsGroups=n.parts_visible.map(({group:r})=>r.map(({id:a,link:o})=>{const s=new S4(a);return o&&(s.link=o.map(l=>new S4(l))),s})),this.init())}init(){this.partsGroups.forEach(t=>{t.forEach(n=>{if(n.initIndex(this.coreModel),n.paramIndex>=0){const r=this.coreModel.getParamFloat(n.paramIndex)!==0;this.coreModel.setPartsOpacity(n.partsIndex,r?1:0),this.coreModel.setParamFloat(n.paramIndex,r?1:0),n.link.length>0&&n.link.forEach(a=>a.initIndex(this.coreModel))}})})}normalizePartsOpacityGroup(t,n){const r=this.coreModel,a=.5,o=.15;let s=1,l=t.findIndex(({paramIndex:u,partsIndex:c})=>c>=0&&r.getParamFloat(u)!==0);if(l>=0){const u=r.getPartsOpacity(t[l].partsIndex);s=q0(u+n/this.opacityAnimDuration,0,1)}else l=0,s=1;t.forEach(({partsIndex:u},c)=>{if(u>=0)if(l==c)r.setPartsOpacity(u,s);else{let f=r.getPartsOpacity(u),d;s<a?d=s*(a-1)/a+1:d=(1-s)*a/(1-a),(1-d)*(1-s)>o&&(d=1-o/(1-s)),f>d&&(f=d),r.setPartsOpacity(u,f)}})}copyOpacity(t){const n=this.coreModel;t.forEach(({partsIndex:r,link:a})=>{if(r>=0&&a){const o=n.getPartsOpacity(r);a.forEach(({partsIndex:s})=>{s>=0&&n.setPartsOpacity(s,o)})}})}update(t){this.partsGroups.forEach(n=>{this.normalizePartsOpacityGroup(n,t),this.copyOpacity(n)})}}dr.registerRuntime({version:2,test(e){return e instanceof nf||nf.isValidJSON(e)},ready(){return Promise.resolve()},isValidMoc(e){if(e.byteLength<3)return!1;const t=new Int8Array(e,0,3);return String.fromCharCode(...t)==="moc"},createModelSettings(e){return new nf(e)},createCoreModel(e){const t=Live2DModelWebGL.loadModel(e),n=Live2D.getError();if(n)throw n;return t},createInternalModel(e,t,n){return new $ye(e,t,n)},createPose(e,t){return new Nye(e,t)},createPhysics(e,t){return new Lye(e,t)}});if(!window.Live2DCubismCore)throw new Error("Could not find Cubism 4 runtime. This plugin requires live2dcubismcore.js to be loaded.");class _n{constructor(t,n){this.x=t||0,this.y=n||0}add(t){const n=new _n(0,0);return n.x=this.x+t.x,n.y=this.y+t.y,n}substract(t){const n=new _n(0,0);return n.x=this.x-t.x,n.y=this.y-t.y,n}multiply(t){const n=new _n(0,0);return n.x=this.x*t.x,n.y=this.y*t.y,n}multiplyByScaler(t){return this.multiply(new _n(t,t))}division(t){const n=new _n(0,0);return n.x=this.x/t.x,n.y=this.y/t.y,n}divisionByScalar(t){return this.division(new _n(t,t))}getLength(){return Math.sqrt(this.x*this.x+this.y*this.y)}getDistanceWith(t){return Math.sqrt((this.x-t.x)*(this.x-t.x)+(this.y-t.y)*(this.y-t.y))}dot(t){return this.x*t.x+this.y*t.y}normalize(){const t=Math.pow(this.x*this.x+this.y*this.y,.5);this.x=this.x/t,this.y=this.y/t}isEqual(t){return this.x==t.x&&this.y==t.y}isNotEqual(t){return!this.isEqual(t)}}const s0=class{static range(e,t,n){return e<t?e=t:e>n&&(e=n),e}static sin(e){return Math.sin(e)}static cos(e){return Math.cos(e)}static abs(e){return Math.abs(e)}static sqrt(e){return Math.sqrt(e)}static cbrt(e){if(e===0)return e;let t=e;const n=t<0;n&&(t=-t);let r;return t===1/0?r=1/0:(r=Math.exp(Math.log(t)/3),r=(t/(r*r)+2*r)/3),n?-r:r}static getEasingSine(e){return e<0?0:e>1?1:.5-.5*this.cos(e*Math.PI)}static max(e,t){return e>t?e:t}static min(e,t){return e>t?t:e}static degreesToRadian(e){return e/180*Math.PI}static radianToDegrees(e){return e*180/Math.PI}static directionToRadian(e,t){const n=Math.atan2(t.y,t.x),r=Math.atan2(e.y,e.x);let a=n-r;for(;a<-Math.PI;)a+=Math.PI*2;for(;a>Math.PI;)a-=Math.PI*2;return a}static directionToDegrees(e,t){const n=this.directionToRadian(e,t);let r=this.radianToDegrees(n);return t.x-e.x>0&&(r=-r),r}static radianToDirection(e){const t=new _n;return t.x=this.sin(e),t.y=this.cos(e),t}static quadraticEquation(e,t,n){return this.abs(e)<s0.Epsilon?this.abs(t)<s0.Epsilon?-n:-n/t:-(t+this.sqrt(t*t-4*e*n))/(2*e)}static cardanoAlgorithmForBezier(e,t,n,r){if(this.sqrt(e)<s0.Epsilon)return this.range(this.quadraticEquation(t,n,r),0,1);const a=t/e,o=n/e,s=r/e,l=(3*o-a*a)/3,u=l/3,c=(2*a*a*a-9*a*o+27*s)/27,f=c/2,d=f*f+u*u*u,p=.5,g=p+.01;if(d<0){const P=-l/3,A=P*P*P,$=this.sqrt(A),k=-c/(2*$),L=this.range(k,-1,1),B=Math.acos(L),H=2*this.cbrt($),G=H*this.cos(B/3)-a/3;if(this.abs(G-p)<g)return this.range(G,0,1);const j=H*this.cos((B+2*Math.PI)/3)-a/3;if(this.abs(j-p)<g)return this.range(j,0,1);const W=H*this.cos((B+4*Math.PI)/3)-a/3;return this.range(W,0,1)}if(d==0){let P;f<0?P=this.cbrt(-f):P=-this.cbrt(f);const A=2*P-a/3;if(this.abs(A-p)<g)return this.range(A,0,1);const $=-P-a/3;return this.range($,0,1)}const y=this.sqrt(d),m=this.cbrt(y-f),S=this.cbrt(y+f),_=m-S-a/3;return this.range(_,0,1)}constructor(){}};let tr=s0;tr.Epsilon=1e-5;class ho{constructor(){this._tr=new Float32Array(16),this.loadIdentity()}static multiply(t,n,r){const a=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=4;for(let s=0;s<o;++s)for(let l=0;l<o;++l)for(let u=0;u<o;++u)a[l+s*4]+=t[u+s*4]*n[l+u*4];for(let s=0;s<16;++s)r[s]=a[s]}loadIdentity(){const t=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this.setMatrix(t)}setMatrix(t){for(let n=0;n<16;++n)this._tr[n]=t[n]}getArray(){return this._tr}getScaleX(){return this._tr[0]}getScaleY(){return this._tr[5]}getTranslateX(){return this._tr[12]}getTranslateY(){return this._tr[13]}transformX(t){return this._tr[0]*t+this._tr[12]}transformY(t){return this._tr[5]*t+this._tr[13]}invertTransformX(t){return(t-this._tr[12])/this._tr[0]}invertTransformY(t){return(t-this._tr[13])/this._tr[5]}translateRelative(t,n){const r=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,t,n,0,1]);ho.multiply(r,this._tr,this._tr)}translate(t,n){this._tr[12]=t,this._tr[13]=n}translateX(t){this._tr[12]=t}translateY(t){this._tr[13]=t}scaleRelative(t,n){const r=new Float32Array([t,0,0,0,0,n,0,0,0,0,1,0,0,0,0,1]);ho.multiply(r,this._tr,this._tr)}scale(t,n){this._tr[0]=t,this._tr[5]=n}multiplyByMatrix(t){ho.multiply(t.getArray(),this._tr,this._tr)}clone(){const t=new ho;for(let n=0;n<this._tr.length;n++)t._tr[n]=this._tr[n];return t}}class Tw{initialize(t){this._model=t}drawModel(){this.getModel()!=null&&this.doDrawModel()}setMvpMatrix(t){this._mvpMatrix4x4.setMatrix(t.getArray())}getMvpMatrix(){return this._mvpMatrix4x4}setModelColor(t,n,r,a){t<0?t=0:t>1&&(t=1),n<0?n=0:n>1&&(n=1),r<0?r=0:r>1&&(r=1),a<0?a=0:a>1&&(a=1),this._modelColor.R=t,this._modelColor.G=n,this._modelColor.B=r,this._modelColor.A=a}getModelColor(){return Object.assign({},this._modelColor)}setIsPremultipliedAlpha(t){this._isPremultipliedAlpha=t}isPremultipliedAlpha(){return this._isPremultipliedAlpha}setIsCulling(t){this._isCulling=t}isCulling(){return this._isCulling}setAnisotropy(t){this._anisortopy=t}getAnisotropy(){return this._anisortopy}getModel(){return this._model}constructor(){this._isCulling=!1,this._isPremultipliedAlpha=!1,this._anisortopy=0,this._modelColor=new Id,this._mvpMatrix4x4=new ho,this._mvpMatrix4x4.loadIdentity()}}var Ns=(e=>(e[e.CubismBlendMode_Normal=0]="CubismBlendMode_Normal",e[e.CubismBlendMode_Additive=1]="CubismBlendMode_Additive",e[e.CubismBlendMode_Multiplicative=2]="CubismBlendMode_Multiplicative",e))(Ns||{});class Id{constructor(){this.R=1,this.G=1,this.B=1,this.A=1}}let ti=!1,xu=!1,Iu;const Tg={vertexOffset:0,vertexStep:2};class Wf{static startUp(t){if(ti)return gd("CubismFramework.startUp() is already done."),ti;if(Live2DCubismCore._isStarted)return ti=!0,!0;if(Live2DCubismCore._isStarted=!0,Iu=t,Iu&&Live2DCubismCore.Logging.csmSetLogFunction(Iu.logFunction),ti=!0,ti){const n=Live2DCubismCore.Version.csmGetVersion(),r=(n&4278190080)>>24,a=(n&16711680)>>16,o=n&65535,s=n;gd("Live2D Cubism Core version: {0}.{1}.{2} ({3})",("00"+r).slice(-2),("00"+a).slice(-2),("0000"+o).slice(-4),s)}return gd("CubismFramework.startUp() is complete."),ti}static cleanUp(){ti=!1,xu=!1,Iu=void 0}static initialize(){if(!ti){Ad("CubismFramework is not started.");return}if(xu){Ad("CubismFramework.initialize() skipped, already initialized.");return}xu=!0,gd("CubismFramework.initialize() is complete.")}static dispose(){if(!ti){Ad("CubismFramework is not started.");return}if(!xu){Ad("CubismFramework.dispose() skipped, not initialized.");return}Tw.staticRelease(),xu=!1,gd("CubismFramework.dispose() is complete.")}static isStarted(){return ti}static isInitialized(){return xu}static coreLogFunction(t){Live2DCubismCore.Logging.csmGetLogFunction()&&Live2DCubismCore.Logging.csmGetLogFunction()(t)}static getLoggingLevel(){return Iu!=null?Iu.loggingLevel:vu.LogLevel_Off}constructor(){}}var vu=(e=>(e[e.LogLevel_Verbose=0]="LogLevel_Verbose",e[e.LogLevel_Debug=1]="LogLevel_Debug",e[e.LogLevel_Info=2]="LogLevel_Info",e[e.LogLevel_Warning=3]="LogLevel_Warning",e[e.LogLevel_Error=4]="LogLevel_Error",e[e.LogLevel_Off=5]="LogLevel_Off",e))(vu||{});const pp=()=>{};function T4(e,...t){tm.print(vu.LogLevel_Debug,"[CSM][D]"+e+`
`,t)}function gd(e,...t){tm.print(vu.LogLevel_Info,"[CSM][I]"+e+`
`,t)}function Ad(e,...t){tm.print(vu.LogLevel_Warning,"[CSM][W]"+e+`
`,t)}function Du(e,...t){tm.print(vu.LogLevel_Error,"[CSM][E]"+e+`
`,t)}class tm{static print(t,n,r){if(t<Wf.getLoggingLevel())return;const a=Wf.coreLogFunction;if(!a)return;const o=n.replace(/{(\d+)}/g,(s,l)=>r[l]);a(o)}static dumpBytes(t,n,r){for(let a=0;a<r;a++)a%16==0&&a>0?this.print(t,`
`):a%8==0&&a>0&&this.print(t,"  "),this.print(t,"{0} ",[n[a]&255]);this.print(t,`
`)}constructor(){}}class ak{constructor(){this._fadeInSeconds=-1,this._fadeOutSeconds=-1,this._weight=1,this._offsetSeconds=0,this._firedEventValues=[]}release(){this._weight=0}updateParameters(t,n,r){if(!n.isAvailable()||n.isFinished())return;if(!n.isStarted()){n.setIsStarted(!0),n.setStartTime(r-this._offsetSeconds),n.setFadeInStartTime(r);const l=this.getDuration();n.getEndTime()<0&&n.setEndTime(l<=0?-1:n.getStartTime()+l)}let a=this._weight;const o=this._fadeInSeconds==0?1:tr.getEasingSine((r-n.getFadeInStartTime())/this._fadeInSeconds),s=this._fadeOutSeconds==0||n.getEndTime()<0?1:tr.getEasingSine((n.getEndTime()-r)/this._fadeOutSeconds);a=a*o*s,n.setState(r,a),this.doUpdateParameters(t,r,a,n),n.getEndTime()>0&&n.getEndTime()<r&&n.setIsFinished(!0)}setFadeInTime(t){this._fadeInSeconds=t}setFadeOutTime(t){this._fadeOutSeconds=t}getFadeOutTime(){return this._fadeOutSeconds}getFadeInTime(){return this._fadeInSeconds}setWeight(t){this._weight=t}getWeight(){return this._weight}getDuration(){return-1}getLoopDuration(){return-1}setOffsetTime(t){this._offsetSeconds=t}getFiredEvent(t,n){return this._firedEventValues}setFinishedMotionHandler(t){this._onFinishedMotion=t}getFinishedMotionHandler(){return this._onFinishedMotion}}const E4=1;class Ew extends ak{constructor(){super(),this._parameters=[]}static create(t){const n=new Ew,r=t.FadeInTime,a=t.FadeOutTime;n.setFadeInTime(r!==void 0?r:E4),n.setFadeOutTime(a!==void 0?a:E4);const o=t.Parameters||[];for(let s=0;s<o.length;++s){const l=o[s],u=l.Id,c=l.Value;let f;switch(l.Blend){case"Multiply":f=Tl.ExpressionBlendType_Multiply;break;case"Overwrite":f=Tl.ExpressionBlendType_Overwrite;break;case"Add":default:f=Tl.ExpressionBlendType_Add;break}const d={parameterId:u,blendType:f,value:c};n._parameters.push(d)}return n}doUpdateParameters(t,n,r,a){for(let o=0;o<this._parameters.length;++o){const s=this._parameters[o];switch(s.blendType){case Tl.ExpressionBlendType_Add:{t.addParameterValueById(s.parameterId,s.value,r);break}case Tl.ExpressionBlendType_Multiply:{t.multiplyParameterValueById(s.parameterId,s.value,r);break}case Tl.ExpressionBlendType_Overwrite:{t.setParameterValueById(s.parameterId,s.value,r);break}}}}}var Tl=(e=>(e[e.ExpressionBlendType_Add=0]="ExpressionBlendType_Add",e[e.ExpressionBlendType_Multiply=1]="ExpressionBlendType_Multiply",e[e.ExpressionBlendType_Overwrite=2]="ExpressionBlendType_Overwrite",e))(Tl||{});class Dye{constructor(){this._autoDelete=!1,this._available=!0,this._finished=!1,this._started=!1,this._startTimeSeconds=-1,this._fadeInStartTimeSeconds=0,this._endTimeSeconds=-1,this._stateTimeSeconds=0,this._stateWeight=0,this._lastEventCheckSeconds=0,this._motionQueueEntryHandle=this,this._fadeOutSeconds=0,this._isTriggeredFadeOut=!1}release(){this._autoDelete&&this._motion&&this._motion.release()}setFadeOut(t){this._fadeOutSeconds=t,this._isTriggeredFadeOut=!0}startFadeOut(t,n){const r=n+t;this._isTriggeredFadeOut=!0,(this._endTimeSeconds<0||r<this._endTimeSeconds)&&(this._endTimeSeconds=r)}isFinished(){return this._finished}isStarted(){return this._started}getStartTime(){return this._startTimeSeconds}getFadeInStartTime(){return this._fadeInStartTimeSeconds}getEndTime(){return this._endTimeSeconds}setStartTime(t){this._startTimeSeconds=t}setFadeInStartTime(t){this._fadeInStartTimeSeconds=t}setEndTime(t){this._endTimeSeconds=t}setIsFinished(t){this._finished=t}setIsStarted(t){this._started=t}isAvailable(){return this._available}setIsAvailable(t){this._available=t}setState(t,n){this._stateTimeSeconds=t,this._stateWeight=n}getStateTime(){return this._stateTimeSeconds}getStateWeight(){return this._stateWeight}getLastCheckEventSeconds(){return this._lastEventCheckSeconds}setLastCheckEventSeconds(t){this._lastEventCheckSeconds=t}isTriggeredFadeOut(){return this._isTriggeredFadeOut}getFadeOutSeconds(){return this._fadeOutSeconds}}class ok{constructor(){this._userTimeSeconds=0,this._eventCustomData=null,this._motions=[]}release(){for(let t=0;t<this._motions.length;++t)this._motions[t]&&this._motions[t].release();this._motions=void 0}startMotion(t,n,r){if(t==null)return Fye;let a;for(let o=0;o<this._motions.length;++o)a=this._motions[o],a!=null&&a.setFadeOut(a._motion.getFadeOutTime());return a=new Dye,a._autoDelete=n,a._motion=t,this._motions.push(a),a._motionQueueEntryHandle}isFinished(){let t=0;for(;t<this._motions.length;){const n=this._motions[t];if(n==null){this._motions.splice(t,1);continue}if(n._motion==null){n.release(),this._motions.splice(t,1);continue}if(!n.isFinished())return!1;t++}return!0}isFinishedByHandle(t){for(let n=0;n<this._motions.length;n++){const r=this._motions[n];if(r!=null&&r._motionQueueEntryHandle==t&&!r.isFinished())return!1}return!0}stopAllMotions(){for(let t=0;t<this._motions.length;t++){const n=this._motions[t];n!=null&&n.release()}this._motions=[]}getCubismMotionQueueEntry(t){return this._motions.find(n=>n!=null&&n._motionQueueEntryHandle==t)}setEventCallback(t,n=null){this._eventCallBack=t,this._eventCustomData=n}doUpdateMotion(t,n){let r=!1,a=0;for(;a<this._motions.length;){const o=this._motions[a];if(o==null){this._motions.splice(a,1);continue}const s=o._motion;if(s==null){o.release(),this._motions.splice(a,1);continue}s.updateParameters(t,o,n),r=!0;const l=s.getFiredEvent(o.getLastCheckEventSeconds()-o.getStartTime(),n-o.getStartTime());for(let u=0;u<l.length;++u)this._eventCallBack(this,l[u],this._eventCustomData);o.setLastCheckEventSeconds(n),o.isFinished()?(o.release(),this._motions.splice(a,1)):(o.isTriggeredFadeOut()&&o.startFadeOut(o.getFadeOutSeconds(),n),a++)}return r}}const Fye=-1;class Bye extends ww{constructor(t,n){var r;super(t,n),this.queueManager=new ok,this.definitions=(r=t.expressions)!=null?r:[],this.init()}isFinished(){return this.queueManager.isFinished()}getExpressionIndex(t){return this.definitions.findIndex(n=>n.Name===t)}getExpressionFile(t){return t.File}createExpression(t,n){return Ew.create(t)}_setExpression(t){return this.queueManager.startMotion(t,!1,performance.now())}stopAllExpressions(){this.queueManager.stopAllMotions()}updateParameters(t,n){return this.queueManager.doUpdateMotion(t,n)}}class ik{constructor(t){this.groups=t.Groups,this.hitAreas=t.HitAreas,this.layout=t.Layout,this.moc=t.FileReferences.Moc,this.expressions=t.FileReferences.Expressions,this.motions=t.FileReferences.Motions,this.textures=t.FileReferences.Textures,this.physics=t.FileReferences.Physics,this.pose=t.FileReferences.Pose}getEyeBlinkParameters(){var t,n;return(n=(t=this.groups)==null?void 0:t.find(r=>r.Name==="EyeBlink"))==null?void 0:n.Ids}getLipSyncParameters(){var t,n;return(n=(t=this.groups)==null?void 0:t.find(r=>r.Name==="LipSync"))==null?void 0:n.Ids}}class tc extends qv{constructor(t){if(super(t),!tc.isValidJSON(t))throw new TypeError("Invalid JSON.");Object.assign(this,new ik(t))}static isValidJSON(t){var n;return!!(t!=null&&t.FileReferences)&&typeof t.FileReferences.Moc=="string"&&((n=t.FileReferences.Textures)==null?void 0:n.length)>0&&t.FileReferences.Textures.every(r=>typeof r=="string")}replaceFiles(t){if(super.replaceFiles(t),this.motions)for(const[n,r]of Object.entries(this.motions))for(let a=0;a<r.length;a++)r[a].File=t(r[a].File,`motions.${n}[${a}].File`),r[a].Sound!==void 0&&(r[a].Sound=t(r[a].Sound,`motions.${n}[${a}].Sound`));if(this.expressions)for(let n=0;n<this.expressions.length;n++)this.expressions[n].File=t(this.expressions[n].File,`expressions[${n}].File`)}}XR(tc,[ik]);var El=(e=>(e[e.CubismMotionCurveTarget_Model=0]="CubismMotionCurveTarget_Model",e[e.CubismMotionCurveTarget_Parameter=1]="CubismMotionCurveTarget_Parameter",e[e.CubismMotionCurveTarget_PartOpacity=2]="CubismMotionCurveTarget_PartOpacity",e))(El||{}),ni=(e=>(e[e.CubismMotionSegmentType_Linear=0]="CubismMotionSegmentType_Linear",e[e.CubismMotionSegmentType_Bezier=1]="CubismMotionSegmentType_Bezier",e[e.CubismMotionSegmentType_Stepped=2]="CubismMotionSegmentType_Stepped",e[e.CubismMotionSegmentType_InverseStepped=3]="CubismMotionSegmentType_InverseStepped",e))(ni||{});class ms{constructor(t=0,n=0){this.time=t,this.value=n}}class Hye{constructor(){this.basePointIndex=0,this.segmentType=0}}class Uye{constructor(){this.id="",this.type=0,this.segmentCount=0,this.baseSegmentIndex=0,this.fadeInTime=0,this.fadeOutTime=0}}class Vye{constructor(){this.fireTime=0,this.value=""}}class Gye{constructor(){this.duration=0,this.loop=!1,this.curveCount=0,this.eventCount=0,this.fps=0,this.curves=[],this.segments=[],this.points=[],this.events=[]}}class sk{constructor(t){this._json=t}release(){this._json=void 0}getMotionDuration(){return this._json.Meta.Duration}isMotionLoop(){return this._json.Meta.Loop||!1}getEvaluationOptionFlag(t){return Cw.EvaluationOptionFlag_AreBeziersRistricted==t?!!this._json.Meta.AreBeziersRestricted:!1}getMotionCurveCount(){return this._json.Meta.CurveCount}getMotionFps(){return this._json.Meta.Fps}getMotionTotalSegmentCount(){return this._json.Meta.TotalSegmentCount}getMotionTotalPointCount(){return this._json.Meta.TotalPointCount}getMotionFadeInTime(){return this._json.Meta.FadeInTime}getMotionFadeOutTime(){return this._json.Meta.FadeOutTime}getMotionCurveTarget(t){return this._json.Curves[t].Target}getMotionCurveId(t){return this._json.Curves[t].Id}getMotionCurveFadeInTime(t){return this._json.Curves[t].FadeInTime}getMotionCurveFadeOutTime(t){return this._json.Curves[t].FadeOutTime}getMotionCurveSegmentCount(t){return this._json.Curves[t].Segments.length}getMotionCurveSegment(t,n){return this._json.Curves[t].Segments[n]}getEventCount(){return this._json.Meta.UserDataCount||0}getTotalEventValueSize(){return this._json.Meta.TotalUserDataSize}getEventTime(t){return this._json.UserData[t].Time}getEventValue(t){return this._json.UserData[t].Value}}var Cw=(e=>(e[e.EvaluationOptionFlag_AreBeziersRistricted=0]="EvaluationOptionFlag_AreBeziersRistricted",e))(Cw||{});const jye="EyeBlink",zye="LipSync",Kye="Model",Wye="Parameter",Xye="PartOpacity",Yye=!1;function io(e,t,n){const r=new ms;return r.time=e.time+(t.time-e.time)*n,r.value=e.value+(t.value-e.value)*n,r}function Jye(e,t){let n=(t-e[0].time)/(e[1].time-e[0].time);return n<0&&(n=0),e[0].value+(e[1].value-e[0].value)*n}function qye(e,t){let n=(t-e[0].time)/(e[3].time-e[0].time);n<0&&(n=0);const r=io(e[0],e[1],n),a=io(e[1],e[2],n),o=io(e[2],e[3],n),s=io(r,a,n),l=io(a,o,n);return io(s,l,n).value}function Qye(e,t){const n=t,r=e[0].time,a=e[3].time,o=e[1].time,s=e[2].time,l=a-3*s+3*o-r,u=3*s-6*o+3*r,c=3*o-3*r,f=r-n,d=tr.cardanoAlgorithmForBezier(l,u,c,f),p=io(e[0],e[1],d),g=io(e[1],e[2],d),y=io(e[2],e[3],d),m=io(p,g,d),S=io(g,y,d);return io(m,S,d).value}function Zye(e,t){return e[0].value}function ebe(e,t){return e[1].value}function Eg(e,t,n){const r=e.curves[t];let a=-1;const o=r.baseSegmentIndex+r.segmentCount;let s=0;for(let u=r.baseSegmentIndex;u<o;++u)if(s=e.segments[u].basePointIndex+(e.segments[u].segmentType==ni.CubismMotionSegmentType_Bezier?3:1),e.points[s].time>n){a=u;break}if(a==-1)return e.points[s].value;const l=e.segments[a];return l.evaluate(e.points.slice(l.basePointIndex),n)}class xw extends ak{constructor(){super(),this._eyeBlinkParameterIds=[],this._lipSyncParameterIds=[],this._sourceFrameRate=30,this._loopDurationSeconds=-1,this._isLoop=!1,this._isLoopFadeIn=!0,this._lastWeight=0}static create(t,n){const r=new xw;return r.parse(t),r._sourceFrameRate=r._motionData.fps,r._loopDurationSeconds=r._motionData.duration,r._onFinishedMotion=n,r}doUpdateParameters(t,n,r,a){this._modelCurveIdEyeBlink==null&&(this._modelCurveIdEyeBlink=jye),this._modelCurveIdLipSync==null&&(this._modelCurveIdLipSync=zye);let o=n-a.getStartTime();o<0&&(o=0);let s=Number.MAX_VALUE,l=Number.MAX_VALUE;const u=64;let c=0,f=0;this._eyeBlinkParameterIds.length>u&&T4("too many eye blink targets : {0}",this._eyeBlinkParameterIds.length),this._lipSyncParameterIds.length>u&&T4("too many lip sync targets : {0}",this._lipSyncParameterIds.length);const d=this._fadeInSeconds<=0?1:tr.getEasingSine((n-a.getFadeInStartTime())/this._fadeInSeconds),p=this._fadeOutSeconds<=0||a.getEndTime()<0?1:tr.getEasingSine((a.getEndTime()-n)/this._fadeOutSeconds);let g,y,m,S=o;if(this._isLoop)for(;S>this._motionData.duration;)S-=this._motionData.duration;const _=this._motionData.curves;for(y=0;y<this._motionData.curveCount&&_[y].type==El.CubismMotionCurveTarget_Model;++y)g=Eg(this._motionData,y,S),_[y].id==this._modelCurveIdEyeBlink?l=g:_[y].id==this._modelCurveIdLipSync&&(s=g);for(;y<this._motionData.curveCount&&_[y].type==El.CubismMotionCurveTarget_Parameter;++y){if(m=t.getParameterIndex(_[y].id),m==-1)continue;const P=t.getParameterValueByIndex(m);if(g=Eg(this._motionData,y,S),l!=Number.MAX_VALUE){for(let $=0;$<this._eyeBlinkParameterIds.length&&$<u;++$)if(this._eyeBlinkParameterIds[$]==_[y].id){g*=l,f|=1<<$;break}}if(s!=Number.MAX_VALUE){for(let $=0;$<this._lipSyncParameterIds.length&&$<u;++$)if(this._lipSyncParameterIds[$]==_[y].id){g+=s,c|=1<<$;break}}let A;if(_[y].fadeInTime<0&&_[y].fadeOutTime<0)A=P+(g-P)*r;else{let $,k;_[y].fadeInTime<0?$=d:$=_[y].fadeInTime==0?1:tr.getEasingSine((n-a.getFadeInStartTime())/_[y].fadeInTime),_[y].fadeOutTime<0?k=p:k=_[y].fadeOutTime==0||a.getEndTime()<0?1:tr.getEasingSine((a.getEndTime()-n)/_[y].fadeOutTime);const L=this._weight*$*k;A=P+(g-P)*L}t.setParameterValueByIndex(m,A,1)}{if(l!=Number.MAX_VALUE)for(let P=0;P<this._eyeBlinkParameterIds.length&&P<u;++P){const A=t.getParameterValueById(this._eyeBlinkParameterIds[P]);if(f>>P&1)continue;const $=A+(l-A)*r;t.setParameterValueById(this._eyeBlinkParameterIds[P],$)}if(s!=Number.MAX_VALUE)for(let P=0;P<this._lipSyncParameterIds.length&&P<u;++P){const A=t.getParameterValueById(this._lipSyncParameterIds[P]);if(c>>P&1)continue;const $=A+(s-A)*r;t.setParameterValueById(this._lipSyncParameterIds[P],$)}}for(;y<this._motionData.curveCount&&_[y].type==El.CubismMotionCurveTarget_PartOpacity;++y)if(g=Eg(this._motionData,y,S),Kf.setOpacityFromMotion)t.setPartOpacityById(_[y].id,g);else{if(m=t.getParameterIndex(_[y].id),m==-1)continue;t.setParameterValueByIndex(m,g)}o>=this._motionData.duration&&(this._isLoop?(a.setStartTime(n),this._isLoopFadeIn&&a.setFadeInStartTime(n)):(this._onFinishedMotion&&this._onFinishedMotion(this),a.setIsFinished(!0))),this._lastWeight=r}setIsLoop(t){this._isLoop=t}isLoop(){return this._isLoop}setIsLoopFadeIn(t){this._isLoopFadeIn=t}isLoopFadeIn(){return this._isLoopFadeIn}getDuration(){return this._isLoop?-1:this._loopDurationSeconds}getLoopDuration(){return this._loopDurationSeconds}setParameterFadeInTime(t,n){const r=this._motionData.curves;for(let a=0;a<this._motionData.curveCount;++a)if(t==r[a].id){r[a].fadeInTime=n;return}}setParameterFadeOutTime(t,n){const r=this._motionData.curves;for(let a=0;a<this._motionData.curveCount;++a)if(t==r[a].id){r[a].fadeOutTime=n;return}}getParameterFadeInTime(t){const n=this._motionData.curves;for(let r=0;r<this._motionData.curveCount;++r)if(t==n[r].id)return n[r].fadeInTime;return-1}getParameterFadeOutTime(t){const n=this._motionData.curves;for(let r=0;r<this._motionData.curveCount;++r)if(t==n[r].id)return n[r].fadeOutTime;return-1}setEffectIds(t,n){this._eyeBlinkParameterIds=t,this._lipSyncParameterIds=n}release(){this._motionData=void 0}parse(t){this._motionData=new Gye;let n=new sk(t);this._motionData.duration=n.getMotionDuration(),this._motionData.loop=n.isMotionLoop(),this._motionData.curveCount=n.getMotionCurveCount(),this._motionData.fps=n.getMotionFps(),this._motionData.eventCount=n.getEventCount();const r=n.getEvaluationOptionFlag(Cw.EvaluationOptionFlag_AreBeziersRistricted),a=n.getMotionFadeInTime(),o=n.getMotionFadeOutTime();a!==void 0?this._fadeInSeconds=a<0?1:a:this._fadeInSeconds=1,o!==void 0?this._fadeOutSeconds=o<0?1:o:this._fadeOutSeconds=1,this._motionData.curves=Array.from({length:this._motionData.curveCount}).map(()=>new Uye),this._motionData.segments=Array.from({length:n.getMotionTotalSegmentCount()}).map(()=>new Hye),this._motionData.events=Array.from({length:this._motionData.eventCount}).map(()=>new Vye),this._motionData.points=[];let s=0,l=0;for(let u=0;u<this._motionData.curveCount;++u){const c=this._motionData.curves[u];switch(n.getMotionCurveTarget(u)){case Kye:c.type=El.CubismMotionCurveTarget_Model;break;case Wye:c.type=El.CubismMotionCurveTarget_Parameter;break;case Xye:c.type=El.CubismMotionCurveTarget_PartOpacity;break;default:Ad('Warning : Unable to get segment type from Curve! The number of "CurveCount" may be incorrect!')}c.id=n.getMotionCurveId(u),c.baseSegmentIndex=l;const f=n.getMotionCurveFadeInTime(u),d=n.getMotionCurveFadeOutTime(u);c.fadeInTime=f!==void 0?f:-1,c.fadeOutTime=d!==void 0?d:-1;for(let p=0;p<n.getMotionCurveSegmentCount(u);){switch(p==0?(this._motionData.segments[l].basePointIndex=s,this._motionData.points[s]=new ms(n.getMotionCurveSegment(u,p),n.getMotionCurveSegment(u,p+1)),s+=1,p+=2):this._motionData.segments[l].basePointIndex=s-1,n.getMotionCurveSegment(u,p)){case ni.CubismMotionSegmentType_Linear:{this._motionData.segments[l].segmentType=ni.CubismMotionSegmentType_Linear,this._motionData.segments[l].evaluate=Jye,this._motionData.points[s]=new ms(n.getMotionCurveSegment(u,p+1),n.getMotionCurveSegment(u,p+2)),s+=1,p+=3;break}case ni.CubismMotionSegmentType_Bezier:{this._motionData.segments[l].segmentType=ni.CubismMotionSegmentType_Bezier,r||Yye?this._motionData.segments[l].evaluate=qye:this._motionData.segments[l].evaluate=Qye,this._motionData.points[s]=new ms(n.getMotionCurveSegment(u,p+1),n.getMotionCurveSegment(u,p+2)),this._motionData.points[s+1]=new ms(n.getMotionCurveSegment(u,p+3),n.getMotionCurveSegment(u,p+4)),this._motionData.points[s+2]=new ms(n.getMotionCurveSegment(u,p+5),n.getMotionCurveSegment(u,p+6)),s+=3,p+=7;break}case ni.CubismMotionSegmentType_Stepped:{this._motionData.segments[l].segmentType=ni.CubismMotionSegmentType_Stepped,this._motionData.segments[l].evaluate=Zye,this._motionData.points[s]=new ms(n.getMotionCurveSegment(u,p+1),n.getMotionCurveSegment(u,p+2)),s+=1,p+=3;break}case ni.CubismMotionSegmentType_InverseStepped:{this._motionData.segments[l].segmentType=ni.CubismMotionSegmentType_InverseStepped,this._motionData.segments[l].evaluate=ebe,this._motionData.points[s]=new ms(n.getMotionCurveSegment(u,p+1),n.getMotionCurveSegment(u,p+2)),s+=1,p+=3;break}}++c.segmentCount,++l}this._motionData.curves.push(c)}for(let u=0;u<n.getEventCount();++u)this._motionData.events[u].fireTime=n.getEventTime(u),this._motionData.events[u].value=n.getEventValue(u);n.release()}getFiredEvent(t,n){this._firedEventValues.length=0;for(let r=0;r<this._motionData.eventCount;++r)this._motionData.events[r].fireTime>t&&this._motionData.events[r].fireTime<=n&&this._firedEventValues.push(this._motionData.events[r].value);return this._firedEventValues}}class tbe extends Qv{constructor(t,n){var r;super(t,n),this.groups={idle:"Idle"},this.motionDataType="json",this.queueManager=new ok,this.definitions=(r=t.motions)!=null?r:{},this.eyeBlinkIds=t.getEyeBlinkParameters()||[],this.lipSyncIds=t.getLipSyncParameters()||[],this.init(n)}init(t){super.init(t),this.settings.expressions&&(this.expressionManager=new Bye(this.settings,t)),this.queueManager.setEventCallback((n,r,a)=>{this.emit("motion:"+r)})}isFinished(){return this.queueManager.isFinished()}_startMotion(t,n){return t.setFinishedMotionHandler(n),this.queueManager.stopAllMotions(),this.queueManager.startMotion(t,!1,performance.now())}_stopAllMotions(){this.queueManager.stopAllMotions()}createMotion(t,n,r){const a=xw.create(t),o=new sk(t),s=(n===this.groups.idle?Qr.idleMotionFadingDuration:Qr.motionFadingDuration)/1e3;return o.getMotionFadeInTime()===void 0&&a.setFadeInTime(r.FadeInTime>0?r.FadeInTime:s),o.getMotionFadeOutTime()===void 0&&a.setFadeOutTime(r.FadeOutTime>0?r.FadeOutTime:s),a.setEffectIds(this.eyeBlinkIds,this.lipSyncIds),a}getMotionFile(t){return t.File}getMotionName(t){return t.File}getSoundFile(t){return t.Sound}updateParameters(t,n){return this.queueManager.doUpdateMotion(t,n)}destroy(){super.destroy(),this.queueManager.release(),this.queueManager=void 0}}const nbe="ParamAngleX",rbe="ParamAngleY",abe="ParamAngleZ",obe="ParamEyeBallX",ibe="ParamEyeBallY",sbe="ParamBodyAngleX",lbe="ParamBreath";class Iw{constructor(){this._breathParameters=[],this._currentTime=0}static create(){return new Iw}setParameters(t){this._breathParameters=t}getParameters(){return this._breathParameters}updateParameters(t,n){this._currentTime+=n;const r=this._currentTime*2*3.14159;for(let a=0;a<this._breathParameters.length;++a){const o=this._breathParameters[a];t.addParameterValueById(o.parameterId,o.offset+o.peak*Math.sin(r/o.cycle),o.weight)}}}class yd{constructor(t,n,r,a,o){this.parameterId=t??void 0,this.offset=n??0,this.peak=r??0,this.cycle=a??0,this.weight=o??0}}const Hy=class{static create(e){return new Hy(e)}setBlinkingInterval(e){this._blinkingIntervalSeconds=e}setBlinkingSetting(e,t,n){this._closingSeconds=e,this._closedSeconds=t,this._openingSeconds=n}setParameterIds(e){this._parameterIds=e}getParameterIds(){return this._parameterIds}updateParameters(e,t){this._userTimeSeconds+=t;let n,r=0;switch(this._blinkingState){case to.EyeState_Closing:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._closingSeconds,r>=1&&(r=1,this._blinkingState=to.EyeState_Closed,this._stateStartTimeSeconds=this._userTimeSeconds),n=1-r;break;case to.EyeState_Closed:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._closedSeconds,r>=1&&(this._blinkingState=to.EyeState_Opening,this._stateStartTimeSeconds=this._userTimeSeconds),n=0;break;case to.EyeState_Opening:r=(this._userTimeSeconds-this._stateStartTimeSeconds)/this._openingSeconds,r>=1&&(r=1,this._blinkingState=to.EyeState_Interval,this._nextBlinkingTime=this.determinNextBlinkingTiming()),n=r;break;case to.EyeState_Interval:this._nextBlinkingTime<this._userTimeSeconds&&(this._blinkingState=to.EyeState_Closing,this._stateStartTimeSeconds=this._userTimeSeconds),n=1;break;case to.EyeState_First:default:this._blinkingState=to.EyeState_Interval,this._nextBlinkingTime=this.determinNextBlinkingTiming(),n=1;break}Hy.CloseIfZero||(n=-n);for(let a=0;a<this._parameterIds.length;++a)e.setParameterValueById(this._parameterIds[a],n)}constructor(e){var t,n;this._blinkingState=to.EyeState_First,this._nextBlinkingTime=0,this._stateStartTimeSeconds=0,this._blinkingIntervalSeconds=4,this._closingSeconds=.1,this._closedSeconds=.05,this._openingSeconds=.15,this._userTimeSeconds=0,this._parameterIds=[],e!=null&&(this._parameterIds=(n=(t=e.getEyeBlinkParameters())==null?void 0:t.slice())!=null?n:this._parameterIds)}determinNextBlinkingTiming(){const e=Math.random();return this._userTimeSeconds+e*(2*this._blinkingIntervalSeconds-1)}};let lk=Hy;lk.CloseIfZero=!0;var to=(e=>(e[e.EyeState_First=0]="EyeState_First",e[e.EyeState_Interval=1]="EyeState_Interval",e[e.EyeState_Closing=2]="EyeState_Closing",e[e.EyeState_Closed=3]="EyeState_Closed",e[e.EyeState_Opening=4]="EyeState_Opening",e))(to||{});class Uy{constructor(t=0,n=0,r=0,a=0){this.x=t,this.y=n,this.width=r,this.height=a}getCenterX(){return this.x+.5*this.width}getCenterY(){return this.y+.5*this.height}getRight(){return this.x+this.width}getBottom(){return this.y+this.height}setRect(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height}expand(t,n){this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2}}const Cg=4,ube=10;let Au,Pd,Vy;class xg{getChannelFlagAsColor(t){return this._channelColors[t]}getMaskRenderTexture(){let t=0;if(this._maskTexture&&this._maskTexture.texture!=0&&(this._maskTexture.frameNo=this._currentFrameNo,t=this._maskTexture.texture),t==0){const n=this._clippingMaskBufferSize;this._colorBuffer=this.gl.createTexture(),this.gl.bindTexture(this.gl.TEXTURE_2D,this._colorBuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,n,n,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,null),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.bindTexture(this.gl.TEXTURE_2D,null),t=this.gl.createFramebuffer(),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,t),this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,this.gl.TEXTURE_2D,this._colorBuffer,0),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,Vy),this._maskTexture=new cbe(this._currentFrameNo,t)}return t}setGL(t){this.gl=t}calcClippedDrawTotalBounds(t,n){let r=Number.MAX_VALUE,a=Number.MAX_VALUE,o=Number.MIN_VALUE,s=Number.MIN_VALUE;const l=n._clippedDrawableIndexList.length;for(let u=0;u<l;u++){const c=n._clippedDrawableIndexList[u],f=t.getDrawableVertexCount(c),d=t.getDrawableVertices(c);let p=Number.MAX_VALUE,g=Number.MAX_VALUE,y=Number.MIN_VALUE,m=Number.MIN_VALUE;const S=f*Tg.vertexStep;for(let _=Tg.vertexOffset;_<S;_+=Tg.vertexStep){const P=d[_],A=d[_+1];P<p&&(p=P),P>y&&(y=P),A<g&&(g=A),A>m&&(m=A)}if(p!=Number.MAX_VALUE)if(p<r&&(r=p),g<a&&(a=g),y>o&&(o=y),m>s&&(s=m),r==Number.MAX_VALUE)n._allClippedDrawRect.x=0,n._allClippedDrawRect.y=0,n._allClippedDrawRect.width=0,n._allClippedDrawRect.height=0,n._isUsing=!1;else{n._isUsing=!0;const _=o-r,P=s-a;n._allClippedDrawRect.x=r,n._allClippedDrawRect.y=a,n._allClippedDrawRect.width=_,n._allClippedDrawRect.height=P}}}constructor(){this._maskRenderTexture=null,this._colorBuffer=null,this._currentFrameNo=0,this._clippingMaskBufferSize=256,this._clippingContextListForMask=[],this._clippingContextListForDraw=[],this._channelColors=[],this._tmpBoundsOnModel=new Uy,this._tmpMatrix=new ho,this._tmpMatrixForMask=new ho,this._tmpMatrixForDraw=new ho;let t=new Id;t.R=1,t.G=0,t.B=0,t.A=0,this._channelColors.push(t),t=new Id,t.R=0,t.G=1,t.B=0,t.A=0,this._channelColors.push(t),t=new Id,t.R=0,t.G=0,t.B=1,t.A=0,this._channelColors.push(t),t=new Id,t.R=0,t.G=0,t.B=0,t.A=1,this._channelColors.push(t)}release(){var t,n,r;const a=this;for(let o=0;o<this._clippingContextListForMask.length;o++)this._clippingContextListForMask[o]&&((t=this._clippingContextListForMask[o])==null||t.release());a._clippingContextListForMask=void 0,a._clippingContextListForDraw=void 0,this._maskTexture&&((n=this.gl)==null||n.deleteFramebuffer(this._maskTexture.texture),a._maskTexture=void 0),a._channelColors=void 0,(r=this.gl)==null||r.deleteTexture(this._colorBuffer),this._colorBuffer=null}initialize(t,n,r,a){for(let o=0;o<n;o++){if(a[o]<=0){this._clippingContextListForDraw.push(null);continue}let s=this.findSameClip(r[o],a[o]);s==null&&(s=new dbe(this,r[o],a[o]),this._clippingContextListForMask.push(s)),s.addClippedDrawable(o),this._clippingContextListForDraw.push(s)}}setupClippingContext(t,n){this._currentFrameNo++;let r=0;for(let a=0;a<this._clippingContextListForMask.length;a++){const o=this._clippingContextListForMask[a];this.calcClippedDrawTotalBounds(t,o),o._isUsing&&r++}if(r>0){this.gl.viewport(0,0,this._clippingMaskBufferSize,this._clippingMaskBufferSize),this._maskRenderTexture=this.getMaskRenderTexture(),n.getMvpMatrix(),n.preDraw(),this.setupLayoutBounds(r),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this._maskRenderTexture),this.gl.clearColor(1,1,1,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT);for(let a=0;a<this._clippingContextListForMask.length;a++){const o=this._clippingContextListForMask[a],s=o._allClippedDrawRect,l=o._layoutBounds,u=.05;this._tmpBoundsOnModel.setRect(s),this._tmpBoundsOnModel.expand(s.width*u,s.height*u);const c=l.width/this._tmpBoundsOnModel.width,f=l.height/this._tmpBoundsOnModel.height;this._tmpMatrix.loadIdentity(),this._tmpMatrix.translateRelative(-1,-1),this._tmpMatrix.scaleRelative(2,2),this._tmpMatrix.translateRelative(l.x,l.y),this._tmpMatrix.scaleRelative(c,f),this._tmpMatrix.translateRelative(-this._tmpBoundsOnModel.x,-this._tmpBoundsOnModel.y),this._tmpMatrixForMask.setMatrix(this._tmpMatrix.getArray()),this._tmpMatrix.loadIdentity(),this._tmpMatrix.translateRelative(l.x,l.y),this._tmpMatrix.scaleRelative(c,f),this._tmpMatrix.translateRelative(-this._tmpBoundsOnModel.x,-this._tmpBoundsOnModel.y),this._tmpMatrixForDraw.setMatrix(this._tmpMatrix.getArray()),o._matrixForMask.setMatrix(this._tmpMatrixForMask.getArray()),o._matrixForDraw.setMatrix(this._tmpMatrixForDraw.getArray());const d=o._clippingIdCount;for(let p=0;p<d;p++){const g=o._clippingIdList[p];t.getDrawableDynamicFlagVertexPositionsDidChange(g)&&(n.setIsCulling(t.getDrawableCulling(g)!=!1),n.setClippingContextBufferForMask(o),n.drawMesh(t.getDrawableTextureIndices(g),t.getDrawableVertexIndexCount(g),t.getDrawableVertexCount(g),t.getDrawableVertexIndices(g),t.getDrawableVertices(g),t.getDrawableVertexUvs(g),t.getDrawableOpacity(g),Ns.CubismBlendMode_Normal,!1))}}this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,Vy),n.setClippingContextBufferForMask(null),this.gl.viewport(Pd[0],Pd[1],Pd[2],Pd[3])}}findSameClip(t,n){for(let r=0;r<this._clippingContextListForMask.length;r++){const a=this._clippingContextListForMask[r],o=a._clippingIdCount;if(o!=n)continue;let s=0;for(let l=0;l<o;l++){const u=a._clippingIdList[l];for(let c=0;c<o;c++)if(t[c]==u){s++;break}}if(s==o)return a}return null}setupLayoutBounds(t){let n=t/Cg,r=t%Cg;n=~~n,r=~~r;let a=0;for(let o=0;o<Cg;o++){const s=n+(o<r?1:0);if(s!=0)if(s==1){const l=this._clippingContextListForMask[a++];l._layoutChannelNo=o,l._layoutBounds.x=0,l._layoutBounds.y=0,l._layoutBounds.width=1,l._layoutBounds.height=1}else if(s==2)for(let l=0;l<s;l++){let u=l%2;u=~~u;const c=this._clippingContextListForMask[a++];c._layoutChannelNo=o,c._layoutBounds.x=u*.5,c._layoutBounds.y=0,c._layoutBounds.width=.5,c._layoutBounds.height=1}else if(s<=4)for(let l=0;l<s;l++){let u=l%2,c=l/2;u=~~u,c=~~c;const f=this._clippingContextListForMask[a++];f._layoutChannelNo=o,f._layoutBounds.x=u*.5,f._layoutBounds.y=c*.5,f._layoutBounds.width=.5,f._layoutBounds.height=.5}else if(s<=9)for(let l=0;l<s;l++){let u=l%3,c=l/3;u=~~u,c=~~c;const f=this._clippingContextListForMask[a++];f._layoutChannelNo=o,f._layoutBounds.x=u/3,f._layoutBounds.y=c/3,f._layoutBounds.width=1/3,f._layoutBounds.height=1/3}else if(Kf.supportMoreMaskDivisions&&s<=16)for(let l=0;l<s;l++){let u=l%4,c=l/4;u=~~u,c=~~c;const f=this._clippingContextListForMask[a++];f._layoutChannelNo=o,f._layoutBounds.x=u/4,f._layoutBounds.y=c/4,f._layoutBounds.width=1/4,f._layoutBounds.height=1/4}else Du("not supported mask count : {0}",s)}}getColorBuffer(){return this._colorBuffer}getClippingContextListForDraw(){return this._clippingContextListForDraw}setClippingMaskBufferSize(t){this._clippingMaskBufferSize=t}getClippingMaskBufferSize(){return this._clippingMaskBufferSize}}class cbe{constructor(t,n){this.frameNo=t,this.texture=n}}class dbe{constructor(t,n,r){this._isUsing=!1,this._owner=t,this._clippingIdList=n,this._clippingIdCount=r,this._allClippedDrawRect=new Uy,this._layoutBounds=new Uy,this._clippedDrawableIndexList=[],this._matrixForMask=new ho,this._matrixForDraw=new ho}release(){const t=this;t._layoutBounds=void 0,t._allClippedDrawRect=void 0,t._clippedDrawableIndexList=void 0}addClippedDrawable(t){this._clippedDrawableIndexList.push(t)}getClippingManager(){return this._owner}setGl(t){this._owner.setGL(t)}}class nc{static getInstance(){return Au==null&&(Au=new nc),Au}static deleteInstance(){Au&&(Au.release(),Au=void 0)}constructor(){this._shaderSets=[]}release(){this.releaseShaderProgram()}setupShaderProgram(t,n,r,a,o,s,l,u,c,f,d,p,g){d||Du("NoPremultipliedAlpha is not allowed"),this._shaderSets.length==0&&this.generateShaders();let y,m,S,_;const P=t.getClippingContextBufferForMask();if(P!=null){const A=this._shaderSets[Md.ShaderNames_SetupMask];this.gl.useProgram(A.shaderProgram),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,n),this.gl.uniform1i(A.samplerTexture0Location,0),l.vertex==null&&(l.vertex=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,l.vertex),this.gl.bufferData(this.gl.ARRAY_BUFFER,a,this.gl.DYNAMIC_DRAW),this.gl.enableVertexAttribArray(A.attributePositionLocation),this.gl.vertexAttribPointer(A.attributePositionLocation,2,this.gl.FLOAT,!1,0,0),l.uv==null&&(l.uv=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,l.uv),this.gl.bufferData(this.gl.ARRAY_BUFFER,s,this.gl.DYNAMIC_DRAW),this.gl.enableVertexAttribArray(A.attributeTexCoordLocation),this.gl.vertexAttribPointer(A.attributeTexCoordLocation,2,this.gl.FLOAT,!1,0,0);const $=P._layoutChannelNo,k=P.getClippingManager().getChannelFlagAsColor($);this.gl.uniform4f(A.uniformChannelFlagLocation,k.R,k.G,k.B,k.A),this.gl.uniformMatrix4fv(A.uniformClipMatrixLocation,!1,P._matrixForMask.getArray());const L=P._layoutBounds;this.gl.uniform4f(A.uniformBaseColorLocation,L.x*2-1,L.y*2-1,L.getRight()*2-1,L.getBottom()*2-1),y=this.gl.ZERO,m=this.gl.ONE_MINUS_SRC_COLOR,S=this.gl.ZERO,_=this.gl.ONE_MINUS_SRC_ALPHA}else{const A=t.getClippingContextBufferForDraw(),$=A!=null?g?2:1:0;let k;switch(c){case Ns.CubismBlendMode_Normal:default:k=this._shaderSets[Md.ShaderNames_NormalPremultipliedAlpha+$],y=this.gl.ONE,m=this.gl.ONE_MINUS_SRC_ALPHA,S=this.gl.ONE,_=this.gl.ONE_MINUS_SRC_ALPHA;break;case Ns.CubismBlendMode_Additive:k=this._shaderSets[Md.ShaderNames_AddPremultipliedAlpha+$],y=this.gl.ONE,m=this.gl.ONE,S=this.gl.ZERO,_=this.gl.ONE;break;case Ns.CubismBlendMode_Multiplicative:k=this._shaderSets[Md.ShaderNames_MultPremultipliedAlpha+$],y=this.gl.DST_COLOR,m=this.gl.ONE_MINUS_SRC_ALPHA,S=this.gl.ZERO,_=this.gl.ONE;break}if(this.gl.useProgram(k.shaderProgram),l.vertex==null&&(l.vertex=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,l.vertex),this.gl.bufferData(this.gl.ARRAY_BUFFER,a,this.gl.DYNAMIC_DRAW),this.gl.enableVertexAttribArray(k.attributePositionLocation),this.gl.vertexAttribPointer(k.attributePositionLocation,2,this.gl.FLOAT,!1,0,0),l.uv==null&&(l.uv=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,l.uv),this.gl.bufferData(this.gl.ARRAY_BUFFER,s,this.gl.DYNAMIC_DRAW),this.gl.enableVertexAttribArray(k.attributeTexCoordLocation),this.gl.vertexAttribPointer(k.attributeTexCoordLocation,2,this.gl.FLOAT,!1,0,0),A!=null){this.gl.activeTexture(this.gl.TEXTURE1);const L=A.getClippingManager().getColorBuffer();this.gl.bindTexture(this.gl.TEXTURE_2D,L),this.gl.uniform1i(k.samplerTexture1Location,1),this.gl.uniformMatrix4fv(k.uniformClipMatrixLocation,!1,A._matrixForDraw.getArray());const B=A._layoutChannelNo,H=A.getClippingManager().getChannelFlagAsColor(B);this.gl.uniform4f(k.uniformChannelFlagLocation,H.R,H.G,H.B,H.A)}this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,n),this.gl.uniform1i(k.samplerTexture0Location,0),this.gl.uniformMatrix4fv(k.uniformMatrixLocation,!1,p.getArray()),this.gl.uniform4f(k.uniformBaseColorLocation,f.R,f.G,f.B,f.A)}l.index==null&&(l.index=this.gl.createBuffer()),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,l.index),this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER,o,this.gl.DYNAMIC_DRAW),this.gl.blendFuncSeparate(y,m,S,_)}releaseShaderProgram(){for(let t=0;t<this._shaderSets.length;t++)this.gl.deleteProgram(this._shaderSets[t].shaderProgram),this._shaderSets[t].shaderProgram=0;this._shaderSets=[]}generateShaders(){for(let t=0;t<ube;t++)this._shaderSets.push({});this._shaderSets[0].shaderProgram=this.loadShaderProgram(fbe,hbe),this._shaderSets[1].shaderProgram=this.loadShaderProgram(pbe,vbe),this._shaderSets[2].shaderProgram=this.loadShaderProgram(C4,mbe),this._shaderSets[3].shaderProgram=this.loadShaderProgram(C4,gbe),this._shaderSets[4].shaderProgram=this._shaderSets[1].shaderProgram,this._shaderSets[5].shaderProgram=this._shaderSets[2].shaderProgram,this._shaderSets[6].shaderProgram=this._shaderSets[3].shaderProgram,this._shaderSets[7].shaderProgram=this._shaderSets[1].shaderProgram,this._shaderSets[8].shaderProgram=this._shaderSets[2].shaderProgram,this._shaderSets[9].shaderProgram=this._shaderSets[3].shaderProgram,this._shaderSets[0].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[0].shaderProgram,"a_position"),this._shaderSets[0].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[0].shaderProgram,"a_texCoord"),this._shaderSets[0].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[0].shaderProgram,"s_texture0"),this._shaderSets[0].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[0].shaderProgram,"u_clipMatrix"),this._shaderSets[0].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[0].shaderProgram,"u_channelFlag"),this._shaderSets[0].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[0].shaderProgram,"u_baseColor"),this._shaderSets[1].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[1].shaderProgram,"a_position"),this._shaderSets[1].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[1].shaderProgram,"a_texCoord"),this._shaderSets[1].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[1].shaderProgram,"s_texture0"),this._shaderSets[1].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[1].shaderProgram,"u_matrix"),this._shaderSets[1].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[1].shaderProgram,"u_baseColor"),this._shaderSets[2].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[2].shaderProgram,"a_position"),this._shaderSets[2].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[2].shaderProgram,"a_texCoord"),this._shaderSets[2].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"s_texture0"),this._shaderSets[2].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"s_texture1"),this._shaderSets[2].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"u_matrix"),this._shaderSets[2].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"u_clipMatrix"),this._shaderSets[2].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"u_channelFlag"),this._shaderSets[2].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[2].shaderProgram,"u_baseColor"),this._shaderSets[3].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[3].shaderProgram,"a_position"),this._shaderSets[3].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[3].shaderProgram,"a_texCoord"),this._shaderSets[3].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"s_texture0"),this._shaderSets[3].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"s_texture1"),this._shaderSets[3].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"u_matrix"),this._shaderSets[3].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"u_clipMatrix"),this._shaderSets[3].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"u_channelFlag"),this._shaderSets[3].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[3].shaderProgram,"u_baseColor"),this._shaderSets[4].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[4].shaderProgram,"a_position"),this._shaderSets[4].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[4].shaderProgram,"a_texCoord"),this._shaderSets[4].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[4].shaderProgram,"s_texture0"),this._shaderSets[4].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[4].shaderProgram,"u_matrix"),this._shaderSets[4].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[4].shaderProgram,"u_baseColor"),this._shaderSets[5].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[5].shaderProgram,"a_position"),this._shaderSets[5].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[5].shaderProgram,"a_texCoord"),this._shaderSets[5].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"s_texture0"),this._shaderSets[5].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"s_texture1"),this._shaderSets[5].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"u_matrix"),this._shaderSets[5].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"u_clipMatrix"),this._shaderSets[5].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"u_channelFlag"),this._shaderSets[5].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[5].shaderProgram,"u_baseColor"),this._shaderSets[6].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[6].shaderProgram,"a_position"),this._shaderSets[6].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[6].shaderProgram,"a_texCoord"),this._shaderSets[6].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"s_texture0"),this._shaderSets[6].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"s_texture1"),this._shaderSets[6].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"u_matrix"),this._shaderSets[6].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"u_clipMatrix"),this._shaderSets[6].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"u_channelFlag"),this._shaderSets[6].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[6].shaderProgram,"u_baseColor"),this._shaderSets[7].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[7].shaderProgram,"a_position"),this._shaderSets[7].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[7].shaderProgram,"a_texCoord"),this._shaderSets[7].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[7].shaderProgram,"s_texture0"),this._shaderSets[7].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[7].shaderProgram,"u_matrix"),this._shaderSets[7].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[7].shaderProgram,"u_baseColor"),this._shaderSets[8].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[8].shaderProgram,"a_position"),this._shaderSets[8].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[8].shaderProgram,"a_texCoord"),this._shaderSets[8].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"s_texture0"),this._shaderSets[8].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"s_texture1"),this._shaderSets[8].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"u_matrix"),this._shaderSets[8].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"u_clipMatrix"),this._shaderSets[8].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"u_channelFlag"),this._shaderSets[8].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[8].shaderProgram,"u_baseColor"),this._shaderSets[9].attributePositionLocation=this.gl.getAttribLocation(this._shaderSets[9].shaderProgram,"a_position"),this._shaderSets[9].attributeTexCoordLocation=this.gl.getAttribLocation(this._shaderSets[9].shaderProgram,"a_texCoord"),this._shaderSets[9].samplerTexture0Location=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"s_texture0"),this._shaderSets[9].samplerTexture1Location=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"s_texture1"),this._shaderSets[9].uniformMatrixLocation=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"u_matrix"),this._shaderSets[9].uniformClipMatrixLocation=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"u_clipMatrix"),this._shaderSets[9].uniformChannelFlagLocation=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"u_channelFlag"),this._shaderSets[9].uniformBaseColorLocation=this.gl.getUniformLocation(this._shaderSets[9].shaderProgram,"u_baseColor")}loadShaderProgram(t,n){let r=this.gl.createProgram(),a=this.compileShaderSource(this.gl.VERTEX_SHADER,t);if(!a)return Du("Vertex shader compile error!"),0;let o=this.compileShaderSource(this.gl.FRAGMENT_SHADER,n);return o?(this.gl.attachShader(r,a),this.gl.attachShader(r,o),this.gl.linkProgram(r),this.gl.getProgramParameter(r,this.gl.LINK_STATUS)?(this.gl.deleteShader(a),this.gl.deleteShader(o),r):(Du("Failed to link program: {0}",r),this.gl.deleteShader(a),this.gl.deleteShader(o),r&&this.gl.deleteProgram(r),0)):(Du("Vertex shader compile error!"),0)}compileShaderSource(t,n){const r=n,a=this.gl.createShader(t);if(this.gl.shaderSource(a,r),this.gl.compileShader(a),!a){const o=this.gl.getShaderInfoLog(a);Du("Shader compile log: {0} ",o)}return this.gl.getShaderParameter(a,this.gl.COMPILE_STATUS)?a:(this.gl.deleteShader(a),null)}setGl(t){this.gl=t}}var Md=(e=>(e[e.ShaderNames_SetupMask=0]="ShaderNames_SetupMask",e[e.ShaderNames_NormalPremultipliedAlpha=1]="ShaderNames_NormalPremultipliedAlpha",e[e.ShaderNames_NormalMaskedPremultipliedAlpha=2]="ShaderNames_NormalMaskedPremultipliedAlpha",e[e.ShaderNames_NomralMaskedInvertedPremultipliedAlpha=3]="ShaderNames_NomralMaskedInvertedPremultipliedAlpha",e[e.ShaderNames_AddPremultipliedAlpha=4]="ShaderNames_AddPremultipliedAlpha",e[e.ShaderNames_AddMaskedPremultipliedAlpha=5]="ShaderNames_AddMaskedPremultipliedAlpha",e[e.ShaderNames_AddMaskedPremultipliedAlphaInverted=6]="ShaderNames_AddMaskedPremultipliedAlphaInverted",e[e.ShaderNames_MultPremultipliedAlpha=7]="ShaderNames_MultPremultipliedAlpha",e[e.ShaderNames_MultMaskedPremultipliedAlpha=8]="ShaderNames_MultMaskedPremultipliedAlpha",e[e.ShaderNames_MultMaskedPremultipliedAlphaInverted=9]="ShaderNames_MultMaskedPremultipliedAlphaInverted",e))(Md||{});const fbe="attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_myPos;uniform mat4       u_clipMatrix;void main(){   gl_Position = u_clipMatrix * a_position;   v_myPos = u_clipMatrix * a_position;   v_texCoord = a_texCoord;   v_texCoord.y = 1.0 - v_texCoord.y;}",hbe="precision mediump float;varying vec2       v_texCoord;varying vec4       v_myPos;uniform vec4       u_baseColor;uniform vec4       u_channelFlag;uniform sampler2D  s_texture0;void main(){   float isInside =        step(u_baseColor.x, v_myPos.x/v_myPos.w)       * step(u_baseColor.y, v_myPos.y/v_myPos.w)       * step(v_myPos.x/v_myPos.w, u_baseColor.z)       * step(v_myPos.y/v_myPos.w, u_baseColor.w);   gl_FragColor = u_channelFlag * texture2D(s_texture0, v_texCoord).a * isInside;}",pbe="attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;uniform mat4       u_matrix;void main(){   gl_Position = u_matrix * a_position;   v_texCoord = a_texCoord;   v_texCoord.y = 1.0 - v_texCoord.y;}",C4="attribute vec4     a_position;attribute vec2     a_texCoord;varying vec2       v_texCoord;varying vec4       v_clipPos;uniform mat4       u_matrix;uniform mat4       u_clipMatrix;void main(){   gl_Position = u_matrix * a_position;   v_clipPos = u_clipMatrix * a_position;   v_texCoord = a_texCoord;   v_texCoord.y = 1.0 - v_texCoord.y;}",vbe="precision mediump float;varying vec2       v_texCoord;uniform vec4       u_baseColor;uniform sampler2D  s_texture0;void main(){   gl_FragColor = texture2D(s_texture0 , v_texCoord) * u_baseColor;}",mbe="precision mediump float;varying vec2       v_texCoord;varying vec4       v_clipPos;uniform vec4       u_baseColor;uniform vec4       u_channelFlag;uniform sampler2D  s_texture0;uniform sampler2D  s_texture1;void main(){   vec4 col_formask = texture2D(s_texture0 , v_texCoord) * u_baseColor;   vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag;   float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;   col_formask = col_formask * maskVal;   gl_FragColor = col_formask;}",gbe="precision mediump float;varying vec2 v_texCoord;varying vec4 v_clipPos;uniform sampler2D s_texture0;uniform sampler2D s_texture1;uniform vec4 u_channelFlag;uniform vec4 u_baseColor;void main(){vec4 col_formask = texture2D(s_texture0, v_texCoord) * u_baseColor;vec4 clipMask = (1.0 - texture2D(s_texture1, v_clipPos.xy / v_clipPos.w)) * u_channelFlag;float maskVal = clipMask.r + clipMask.g + clipMask.b + clipMask.a;col_formask = col_formask * (1.0 - maskVal);gl_FragColor = col_formask;}";class uk extends Tw{constructor(){super(),this._clippingContextBufferForMask=null,this._clippingContextBufferForDraw=null,this._clippingManager=new xg,this.firstDraw=!0,this._textures={},this._sortedDrawableIndexList=[],this._bufferData={vertex:null,uv:null,index:null}}initialize(t){t.isUsingMasking()&&(this._clippingManager=new xg,this._clippingManager.initialize(t,t.getDrawableCount(),t.getDrawableMasks(),t.getDrawableMaskCounts()));for(let n=t.getDrawableCount()-1;n>=0;n--)this._sortedDrawableIndexList[n]=0;super.initialize(t)}bindTexture(t,n){this._textures[t]=n}getBindedTextures(){return this._textures}setClippingMaskBufferSize(t){this._clippingManager.release(),this._clippingManager=new xg,this._clippingManager.setClippingMaskBufferSize(t),this._clippingManager.initialize(this.getModel(),this.getModel().getDrawableCount(),this.getModel().getDrawableMasks(),this.getModel().getDrawableMaskCounts())}getClippingMaskBufferSize(){return this._clippingManager.getClippingMaskBufferSize()}release(){var t,n,r;const a=this;this._clippingManager.release(),a._clippingManager=void 0,(t=this.gl)==null||t.deleteBuffer(this._bufferData.vertex),this._bufferData.vertex=null,(n=this.gl)==null||n.deleteBuffer(this._bufferData.uv),this._bufferData.uv=null,(r=this.gl)==null||r.deleteBuffer(this._bufferData.index),this._bufferData.index=null,a._bufferData=void 0,a._textures=void 0}doDrawModel(){this.preDraw(),this._clippingManager!=null&&this._clippingManager.setupClippingContext(this.getModel(),this);const t=this.getModel().getDrawableCount(),n=this.getModel().getDrawableRenderOrders();for(let r=0;r<t;++r){const a=n[r];this._sortedDrawableIndexList[a]=r}for(let r=0;r<t;++r){const a=this._sortedDrawableIndexList[r];this.getModel().getDrawableDynamicFlagIsVisible(a)&&(this.setClippingContextBufferForDraw(this._clippingManager!=null?this._clippingManager.getClippingContextListForDraw()[a]:null),this.setIsCulling(this.getModel().getDrawableCulling(a)),this.drawMesh(this.getModel().getDrawableTextureIndices(a),this.getModel().getDrawableVertexIndexCount(a),this.getModel().getDrawableVertexCount(a),this.getModel().getDrawableVertexIndices(a),this.getModel().getDrawableVertices(a),this.getModel().getDrawableVertexUvs(a),this.getModel().getDrawableOpacity(a),this.getModel().getDrawableBlendMode(a),this.getModel().getDrawableInvertedMaskBit(a)))}}drawMesh(t,n,r,a,o,s,l,u,c){this.isCulling()?this.gl.enable(this.gl.CULL_FACE):this.gl.disable(this.gl.CULL_FACE),this.gl.frontFace(this.gl.CCW);const f=this.getModelColor();this.getClippingContextBufferForMask()==null&&(f.A*=l,this.isPremultipliedAlpha()&&(f.R*=f.A,f.G*=f.A,f.B*=f.A));let d=null;this._textures[t]!=null&&(d=this._textures[t]),nc.getInstance().setupShaderProgram(this,d,r,o,a,s,this._bufferData,l,u,f,this.isPremultipliedAlpha(),this.getMvpMatrix(),c),this.gl.drawElements(this.gl.TRIANGLES,n,this.gl.UNSIGNED_SHORT,0),this.gl.useProgram(null),this.setClippingContextBufferForDraw(null),this.setClippingContextBufferForMask(null)}static doStaticRelease(){nc.deleteInstance()}setRenderState(t,n){Vy=t,Pd=n}preDraw(){this.firstDraw&&(this.firstDraw=!1,this._anisortopy=this.gl.getExtension("EXT_texture_filter_anisotropic")||this.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||this.gl.getExtension("MOZ_EXT_texture_filter_anisotropic")),this.gl.disable(this.gl.SCISSOR_TEST),this.gl.disable(this.gl.STENCIL_TEST),this.gl.disable(this.gl.DEPTH_TEST),this.gl.frontFace(this.gl.CW),this.gl.enable(this.gl.BLEND),this.gl.colorMask(!0,!0,!0,!0),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,null),this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,null)}setClippingContextBufferForMask(t){this._clippingContextBufferForMask=t}getClippingContextBufferForMask(){return this._clippingContextBufferForMask}setClippingContextBufferForDraw(t){this._clippingContextBufferForDraw=t}getClippingContextBufferForDraw(){return this._clippingContextBufferForDraw}startUp(t){this.gl=t,this._clippingManager.setGL(t),nc.getInstance().setGl(t)}}Tw.staticRelease=()=>{uk.doStaticRelease()};const x4=new ho;class ybe extends YR{constructor(t,n,r){super(),this.lipSync=!0,this.breath=Iw.create(),this.renderer=new uk,this.idParamAngleX=nbe,this.idParamAngleY=rbe,this.idParamAngleZ=abe,this.idParamEyeBallX=obe,this.idParamEyeBallY=ibe,this.idParamBodyAngleX=sbe,this.idParamBreath=lbe,this.pixelsPerUnit=1,this.centeringTransform=new cr,this.coreModel=t,this.settings=n,this.motionManager=new tbe(n,r),this.init()}init(){var t;super.init(),((t=this.settings.getEyeBlinkParameters())==null?void 0:t.length)>0&&(this.eyeBlink=lk.create(this.settings)),this.breath.setParameters([new yd(this.idParamAngleX,0,15,6.5345,.5),new yd(this.idParamAngleY,0,8,3.5345,.5),new yd(this.idParamAngleZ,0,10,5.5345,.5),new yd(this.idParamBodyAngleX,0,4,15.5345,.5),new yd(this.idParamBreath,0,.5,3.2345,.5)]),this.renderer.initialize(this.coreModel),this.renderer.setIsPremultipliedAlpha(!0)}getSize(){return[this.coreModel.getModel().canvasinfo.CanvasWidth,this.coreModel.getModel().canvasinfo.CanvasHeight]}getLayout(){const t={};if(this.settings.layout)for(const n of Object.keys(this.settings.layout)){const r=n.charAt(0).toLowerCase()+n.slice(1);t[r]=this.settings.layout[n]}return t}setupLayout(){super.setupLayout(),this.pixelsPerUnit=this.coreModel.getModel().canvasinfo.PixelsPerUnit,this.centeringTransform.scale(this.pixelsPerUnit,this.pixelsPerUnit).translate(this.originalWidth/2,this.originalHeight/2)}updateWebGLContext(t,n){this.renderer.firstDraw=!0,this.renderer._bufferData={vertex:null,uv:null,index:null},this.renderer.startUp(t),this.renderer._clippingManager._currentFrameNo=n,this.renderer._clippingManager._maskTexture=void 0,nc.getInstance()._shaderSets=[]}bindTexture(t,n){this.renderer.bindTexture(t,n)}getHitAreaDefs(){var t,n;return(n=(t=this.settings.hitAreas)==null?void 0:t.map(r=>({id:r.Id,name:r.Name,index:this.coreModel.getDrawableIndex(r.Id)})))!=null?n:[]}getDrawableIDs(){return this.coreModel.getDrawableIds()}getDrawableIndex(t){return this.coreModel.getDrawableIndex(t)}getDrawableVertices(t){if(typeof t=="string"&&(t=this.coreModel.getDrawableIndex(t),t===-1))throw new TypeError("Unable to find drawable ID: "+t);const n=this.coreModel.getDrawableVertices(t).slice();for(let r=0;r<n.length;r+=2)n[r]=n[r]*this.pixelsPerUnit+this.originalWidth/2,n[r+1]=-n[r+1]*this.pixelsPerUnit+this.originalHeight/2;return n}updateTransform(t){this.drawingMatrix.copyFrom(this.centeringTransform).prepend(this.localTransform).prepend(t)}update(t,n){var r,a,o,s;super.update(t,n),t/=1e3,n/=1e3;const l=this.coreModel;this.emit("beforeMotionUpdate");const u=this.motionManager.update(this.coreModel,n);this.emit("afterMotionUpdate"),l.saveParameters(),(r=this.motionManager.expressionManager)==null||r.update(l,n),u||(a=this.eyeBlink)==null||a.updateParameters(l,t),this.updateFocus(),this.updateNaturalMovements(t*1e3,n*1e3),(o=this.physics)==null||o.evaluate(l,t),(s=this.pose)==null||s.updateParameters(l,t),this.emit("beforeModelUpdate"),l.update(),l.loadParameters()}updateFocus(){this.coreModel.addParameterValueById(this.idParamEyeBallX,this.focusController.x),this.coreModel.addParameterValueById(this.idParamEyeBallY,this.focusController.y),this.coreModel.addParameterValueById(this.idParamAngleX,this.focusController.x*30),this.coreModel.addParameterValueById(this.idParamAngleY,this.focusController.y*30),this.coreModel.addParameterValueById(this.idParamAngleZ,this.focusController.x*this.focusController.y*-30),this.coreModel.addParameterValueById(this.idParamBodyAngleX,this.focusController.x*10)}updateNaturalMovements(t,n){var r;(r=this.breath)==null||r.updateParameters(this.coreModel,t/1e3)}draw(t){const n=this.drawingMatrix,r=x4.getArray();r[0]=n.a,r[1]=n.b,r[4]=-n.c,r[5]=-n.d,r[12]=n.tx,r[13]=n.ty,this.renderer.setMvpMatrix(x4),this.renderer.setRenderState(t.getParameter(t.FRAMEBUFFER_BINDING),this.viewport),this.renderer.drawModel()}destroy(){super.destroy(),this.renderer.release(),this.coreModel.release(),this.renderer=void 0,this.coreModel=void 0}}let Ig,I4=20;function bbe(){return Wf.isStarted()?Promise.resolve():(Ig!=null||(Ig=new Promise((e,t)=>{function n(){try{_be(),e()}catch(r){if(I4--,I4<0){const a=new Error("Failed to start up Cubism 4 framework.");a.cause=r,t(a);return}Qn.log("Cubism4","Startup failed, retrying 10ms later..."),setTimeout(n,10)}}n()})),Ig)}function _be(e){e=Object.assign({logFunction:console.log,loggingLevel:vu.LogLevel_Verbose},e),Wf.startUp(e),Wf.initialize()}const wbe=.001,A4=.5;class Aw{static create(t){const n=new Aw;typeof t.FadeInTime=="number"&&(n._fadeTimeSeconds=t.FadeInTime,n._fadeTimeSeconds<=0&&(n._fadeTimeSeconds=A4));const r=t.Groups,a=r.length;for(let o=0;o<a;++o){const s=r[o],l=s.length;let u=0;for(let c=0;c<l;++c){const f=s[c],d=new Q0;d.partId=f.Id;const p=f.Link;if(p){const g=p.length;for(let y=0;y<g;++y){const m=new Q0;m.partId=p[y],d.link.push(m)}}n._partGroups.push(d),++u}n._partGroupCounts.push(u)}return n}updateParameters(t,n){t!=this._lastModel&&this.reset(t),this._lastModel=t,n<0&&(n=0);let r=0;for(let a=0;a<this._partGroupCounts.length;a++){const o=this._partGroupCounts[a];this.doFade(t,n,r,o),r+=o}this.copyPartOpacities(t)}reset(t){let n=0;for(let r=0;r<this._partGroupCounts.length;++r){const a=this._partGroupCounts[r];for(let o=n;o<n+a;++o){this._partGroups[o].initialize(t);const s=this._partGroups[o].partIndex,l=this._partGroups[o].parameterIndex;if(!(s<0)){t.setPartOpacityByIndex(s,o==n?1:0),t.setParameterValueByIndex(l,o==n?1:0);for(let u=0;u<this._partGroups[o].link.length;++u)this._partGroups[o].link[u].initialize(t)}}n+=a}}copyPartOpacities(t){for(let n=0;n<this._partGroups.length;++n){const r=this._partGroups[n];if(r.link.length==0)continue;const a=this._partGroups[n].partIndex,o=t.getPartOpacityByIndex(a);for(let s=0;s<r.link.length;++s){const l=r.link[s].partIndex;l<0||t.setPartOpacityByIndex(l,o)}}}doFade(t,n,r,a){let o=-1,s=1;const l=.5,u=.15;for(let c=r;c<r+a;++c){const f=this._partGroups[c].partIndex,d=this._partGroups[c].parameterIndex;if(t.getParameterValueByIndex(d)>wbe){if(o>=0)break;o=c,s=t.getPartOpacityByIndex(f),s+=n/this._fadeTimeSeconds,s>1&&(s=1)}}o<0&&(o=0,s=1);for(let c=r;c<r+a;++c){const f=this._partGroups[c].partIndex;if(o==c)t.setPartOpacityByIndex(f,s);else{let d=t.getPartOpacityByIndex(f),p;s<l?p=s*(l-1)/l+1:p=(1-s)*l/(1-l),(1-p)*(1-s)>u&&(p=1-u/(1-s)),d>p&&(d=p),t.setPartOpacityByIndex(f,d)}}}constructor(){this._fadeTimeSeconds=A4,this._lastModel=void 0,this._partGroups=[],this._partGroupCounts=[]}}class Q0{constructor(t){this.parameterIndex=0,this.partIndex=0,this.partId="",this.link=[],t!=null&&this.assignment(t)}assignment(t){return this.partId=t.partId,this.link=t.link.map(n=>n.clone()),this}initialize(t){this.parameterIndex=t.getParameterIndex(this.partId),this.partIndex=t.getPartIndex(this.partId),t.setParameterValueByIndex(this.parameterIndex,1)}clone(){const t=new Q0;return t.partId=this.partId,t.parameterIndex=this.parameterIndex,t.partIndex=this.partIndex,t.link=this.link.map(n=>n.clone()),t}}class Sbe{update(){this._model.update(),this._model.drawables.resetDynamicFlags()}getCanvasWidth(){return this._model==null?0:this._model.canvasinfo.CanvasWidth/this._model.canvasinfo.PixelsPerUnit}getCanvasHeight(){return this._model==null?0:this._model.canvasinfo.CanvasHeight/this._model.canvasinfo.PixelsPerUnit}saveParameters(){const t=this._model.parameters.count,n=this._savedParameters.length;for(let r=0;r<t;++r)r<n?this._savedParameters[r]=this._parameterValues[r]:this._savedParameters.push(this._parameterValues[r])}getModel(){return this._model}getPartIndex(t){let n;const r=this._model.parts.count;for(n=0;n<r;++n)if(t==this._partIds[n])return n;return t in this._notExistPartId?this._notExistPartId[t]:(n=r+this._notExistPartId.length,this._notExistPartId[t]=n,this._notExistPartOpacities[n]=0,n)}getPartCount(){return this._model.parts.count}setPartOpacityByIndex(t,n){if(t in this._notExistPartOpacities){this._notExistPartOpacities[t]=n;return}pp(0<=t&&t<this.getPartCount()),this._partOpacities[t]=n}setPartOpacityById(t,n){const r=this.getPartIndex(t);r<0||this.setPartOpacityByIndex(r,n)}getPartOpacityByIndex(t){return t in this._notExistPartOpacities?this._notExistPartOpacities[t]:(pp(0<=t&&t<this.getPartCount()),this._partOpacities[t])}getPartOpacityById(t){const n=this.getPartIndex(t);return n<0?0:this.getPartOpacityByIndex(n)}getParameterIndex(t){let n;const r=this._model.parameters.count;for(n=0;n<r;++n)if(t==this._parameterIds[n])return n;return t in this._notExistParameterId?this._notExistParameterId[t]:(n=this._model.parameters.count+Object.keys(this._notExistParameterId).length,this._notExistParameterId[t]=n,this._notExistParameterValues[n]=0,n)}getParameterCount(){return this._model.parameters.count}getParameterMaximumValue(t){return this._model.parameters.maximumValues[t]}getParameterMinimumValue(t){return this._model.parameters.minimumValues[t]}getParameterDefaultValue(t){return this._model.parameters.defaultValues[t]}getParameterValueByIndex(t){return t in this._notExistParameterValues?this._notExistParameterValues[t]:(pp(0<=t&&t<this.getParameterCount()),this._parameterValues[t])}getParameterValueById(t){const n=this.getParameterIndex(t);return this.getParameterValueByIndex(n)}setParameterValueByIndex(t,n,r=1){if(t in this._notExistParameterValues){this._notExistParameterValues[t]=r==1?n:this._notExistParameterValues[t]*(1-r)+n*r;return}pp(0<=t&&t<this.getParameterCount()),this._model.parameters.maximumValues[t]<n&&(n=this._model.parameters.maximumValues[t]),this._model.parameters.minimumValues[t]>n&&(n=this._model.parameters.minimumValues[t]),this._parameterValues[t]=r==1?n:this._parameterValues[t]=this._parameterValues[t]*(1-r)+n*r}setParameterValueById(t,n,r=1){const a=this.getParameterIndex(t);this.setParameterValueByIndex(a,n,r)}addParameterValueByIndex(t,n,r=1){this.setParameterValueByIndex(t,this.getParameterValueByIndex(t)+n*r)}addParameterValueById(t,n,r=1){const a=this.getParameterIndex(t);this.addParameterValueByIndex(a,n,r)}multiplyParameterValueById(t,n,r=1){const a=this.getParameterIndex(t);this.multiplyParameterValueByIndex(a,n,r)}multiplyParameterValueByIndex(t,n,r=1){this.setParameterValueByIndex(t,this.getParameterValueByIndex(t)*(1+(n-1)*r))}getDrawableIds(){return this._drawableIds.slice()}getDrawableIndex(t){const n=this._model.drawables.count;for(let r=0;r<n;++r)if(this._drawableIds[r]==t)return r;return-1}getDrawableCount(){return this._model.drawables.count}getDrawableId(t){return this._model.drawables.ids[t]}getDrawableRenderOrders(){return this._model.drawables.renderOrders}getDrawableTextureIndices(t){return this._model.drawables.textureIndices[t]}getDrawableDynamicFlagVertexPositionsDidChange(t){const n=this._model.drawables.dynamicFlags;return Live2DCubismCore.Utils.hasVertexPositionsDidChangeBit(n[t])}getDrawableVertexIndexCount(t){return this._model.drawables.indexCounts[t]}getDrawableVertexCount(t){return this._model.drawables.vertexCounts[t]}getDrawableVertices(t){return this.getDrawableVertexPositions(t)}getDrawableVertexIndices(t){return this._model.drawables.indices[t]}getDrawableVertexPositions(t){return this._model.drawables.vertexPositions[t]}getDrawableVertexUvs(t){return this._model.drawables.vertexUvs[t]}getDrawableOpacity(t){return this._model.drawables.opacities[t]}getDrawableCulling(t){const n=this._model.drawables.constantFlags;return!Live2DCubismCore.Utils.hasIsDoubleSidedBit(n[t])}getDrawableBlendMode(t){const n=this._model.drawables.constantFlags;return Live2DCubismCore.Utils.hasBlendAdditiveBit(n[t])?Ns.CubismBlendMode_Additive:Live2DCubismCore.Utils.hasBlendMultiplicativeBit(n[t])?Ns.CubismBlendMode_Multiplicative:Ns.CubismBlendMode_Normal}getDrawableInvertedMaskBit(t){const n=this._model.drawables.constantFlags;return Live2DCubismCore.Utils.hasIsInvertedMaskBit(n[t])}getDrawableMasks(){return this._model.drawables.masks}getDrawableMaskCounts(){return this._model.drawables.maskCounts}isUsingMasking(){for(let t=0;t<this._model.drawables.count;++t)if(!(this._model.drawables.maskCounts[t]<=0))return!0;return!1}getDrawableDynamicFlagIsVisible(t){const n=this._model.drawables.dynamicFlags;return Live2DCubismCore.Utils.hasIsVisibleBit(n[t])}getDrawableDynamicFlagVisibilityDidChange(t){const n=this._model.drawables.dynamicFlags;return Live2DCubismCore.Utils.hasVisibilityDidChangeBit(n[t])}getDrawableDynamicFlagOpacityDidChange(t){const n=this._model.drawables.dynamicFlags;return Live2DCubismCore.Utils.hasOpacityDidChangeBit(n[t])}getDrawableDynamicFlagRenderOrderDidChange(t){const n=this._model.drawables.dynamicFlags;return Live2DCubismCore.Utils.hasRenderOrderDidChangeBit(n[t])}loadParameters(){let t=this._model.parameters.count;const n=this._savedParameters.length;t>n&&(t=n);for(let r=0;r<t;++r)this._parameterValues[r]=this._savedParameters[r]}initialize(){this._parameterValues=this._model.parameters.values,this._partOpacities=this._model.parts.opacities,this._parameterMaximumValues=this._model.parameters.maximumValues,this._parameterMinimumValues=this._model.parameters.minimumValues;{const t=this._model.parameters.ids,n=this._model.parameters.count;for(let r=0;r<n;++r)this._parameterIds.push(t[r])}{const t=this._model.parts.ids,n=this._model.parts.count;for(let r=0;r<n;++r)this._partIds.push(t[r])}{const t=this._model.drawables.ids,n=this._model.drawables.count;for(let r=0;r<n;++r)this._drawableIds.push(t[r])}}constructor(t){this._model=t,this._savedParameters=[],this._parameterIds=[],this._drawableIds=[],this._partIds=[],this._notExistPartId={},this._notExistParameterId={},this._notExistParameterValues={},this._notExistPartOpacities={},this.initialize()}release(){this._model.release(),this._model=void 0}}class Pw{static create(t){const n=Live2DCubismCore.Moc.fromArrayBuffer(t);if(n)return new Pw(n);throw new Error("Unknown error")}createModel(){let t;const n=Live2DCubismCore.Model.fromMoc(this._moc);if(n)return t=new Sbe(n),++this._modelCount,t;throw new Error("Unknown error")}deleteModel(t){t!=null&&--this._modelCount}constructor(t){this._moc=t,this._modelCount=0}release(){this._moc._release(),this._moc=void 0}}var Gy=(e=>(e[e.CubismPhysicsTargetType_Parameter=0]="CubismPhysicsTargetType_Parameter",e))(Gy||{}),Cl=(e=>(e[e.CubismPhysicsSource_X=0]="CubismPhysicsSource_X",e[e.CubismPhysicsSource_Y=1]="CubismPhysicsSource_Y",e[e.CubismPhysicsSource_Angle=2]="CubismPhysicsSource_Angle",e))(Cl||{});class Tbe{constructor(){this.initialPosition=new _n(0,0),this.position=new _n(0,0),this.lastPosition=new _n(0,0),this.lastGravity=new _n(0,0),this.force=new _n(0,0),this.velocity=new _n(0,0)}}class Ebe{constructor(){this.normalizationPosition={},this.normalizationAngle={}}}class Cbe{constructor(){this.source={}}}class xbe{constructor(){this.destination={},this.translationScale=new _n(0,0)}}class Ibe{constructor(){this.settings=[],this.inputs=[],this.outputs=[],this.particles=[],this.gravity=new _n(0,0),this.wind=new _n(0,0)}}class Abe{constructor(t){this._json=t}release(){this._json=void 0}getGravity(){const t=new _n(0,0);return t.x=this._json.Meta.EffectiveForces.Gravity.X,t.y=this._json.Meta.EffectiveForces.Gravity.Y,t}getWind(){const t=new _n(0,0);return t.x=this._json.Meta.EffectiveForces.Wind.X,t.y=this._json.Meta.EffectiveForces.Wind.Y,t}getSubRigCount(){return this._json.Meta.PhysicsSettingCount}getTotalInputCount(){return this._json.Meta.TotalInputCount}getTotalOutputCount(){return this._json.Meta.TotalOutputCount}getVertexCount(){return this._json.Meta.VertexCount}getNormalizationPositionMinimumValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Minimum}getNormalizationPositionMaximumValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Maximum}getNormalizationPositionDefaultValue(t){return this._json.PhysicsSettings[t].Normalization.Position.Default}getNormalizationAngleMinimumValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Minimum}getNormalizationAngleMaximumValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Maximum}getNormalizationAngleDefaultValue(t){return this._json.PhysicsSettings[t].Normalization.Angle.Default}getInputCount(t){return this._json.PhysicsSettings[t].Input.length}getInputWeight(t,n){return this._json.PhysicsSettings[t].Input[n].Weight}getInputReflect(t,n){return this._json.PhysicsSettings[t].Input[n].Reflect}getInputType(t,n){return this._json.PhysicsSettings[t].Input[n].Type}getInputSourceId(t,n){return this._json.PhysicsSettings[t].Input[n].Source.Id}getOutputCount(t){return this._json.PhysicsSettings[t].Output.length}getOutputVertexIndex(t,n){return this._json.PhysicsSettings[t].Output[n].VertexIndex}getOutputAngleScale(t,n){return this._json.PhysicsSettings[t].Output[n].Scale}getOutputWeight(t,n){return this._json.PhysicsSettings[t].Output[n].Weight}getOutputDestinationId(t,n){return this._json.PhysicsSettings[t].Output[n].Destination.Id}getOutputType(t,n){return this._json.PhysicsSettings[t].Output[n].Type}getOutputReflect(t,n){return this._json.PhysicsSettings[t].Output[n].Reflect}getParticleCount(t){return this._json.PhysicsSettings[t].Vertices.length}getParticleMobility(t,n){return this._json.PhysicsSettings[t].Vertices[n].Mobility}getParticleDelay(t,n){return this._json.PhysicsSettings[t].Vertices[n].Delay}getParticleAcceleration(t,n){return this._json.PhysicsSettings[t].Vertices[n].Acceleration}getParticleRadius(t,n){return this._json.PhysicsSettings[t].Vertices[n].Radius}getParticlePosition(t,n){const r=new _n(0,0);return r.x=this._json.PhysicsSettings[t].Vertices[n].Position.X,r.y=this._json.PhysicsSettings[t].Vertices[n].Position.Y,r}}const P4="X",M4="Y",O4="Angle",Pbe=5,ck=100,Mbe=.001;class Mw{static create(t){const n=new Mw;return n.parse(t),n._physicsRig.gravity.y=0,n}evaluate(t,n){let r,a,o,s;const l=new _n;let u,c,f,d,p,g,y,m;p=t.getModel().parameters.values,g=t.getModel().parameters.maximumValues,y=t.getModel().parameters.minimumValues,m=t.getModel().parameters.defaultValues;for(let S=0;S<this._physicsRig.subRigCount;++S){r={angle:0},l.x=0,l.y=0,u=this._physicsRig.settings[S],c=this._physicsRig.inputs.slice(u.baseInputIndex),f=this._physicsRig.outputs.slice(u.baseOutputIndex),d=this._physicsRig.particles.slice(u.baseParticleIndex);for(let _=0;_<u.inputCount;++_)a=c[_].weight/ck,c[_].sourceParameterIndex==-1&&(c[_].sourceParameterIndex=t.getParameterIndex(c[_].source.id)),c[_].getNormalizedParameterValue(l,r,p[c[_].sourceParameterIndex],y[c[_].sourceParameterIndex],g[c[_].sourceParameterIndex],m[c[_].sourceParameterIndex],u.normalizationPosition,u.normalizationAngle,c[_].reflect,a);o=tr.degreesToRadian(-r.angle),l.x=l.x*tr.cos(o)-l.y*tr.sin(o),l.y=l.x*tr.sin(o)+l.y*tr.cos(o),Gbe(d,u.particleCount,l,r.angle,this._options.wind,Mbe*u.normalizationPosition.maximum,n,Pbe);for(let _=0;_<u.outputCount;++_){const P=f[_].vertexIndex;if(P<1||P>=u.particleCount)break;f[_].destinationParameterIndex==-1&&(f[_].destinationParameterIndex=t.getParameterIndex(f[_].destination.id));const A=new _n;A.x=d[P].position.x-d[P-1].position.x,A.y=d[P].position.y-d[P-1].position.y,s=f[_].getValue(A,d,P,f[_].reflect,this._options.gravity);const $=f[_].destinationParameterIndex,k=!Float32Array.prototype.slice&&"subarray"in Float32Array.prototype?JSON.parse(JSON.stringify(p.subarray($))):p.slice($);jbe(k,y[$],g[$],s,f[_]);for(let L=$,B=0;L<p.length;L++,B++)p[L]=k[B]}}}setOptions(t){this._options=t}getOption(){return this._options}constructor(){this._options=new Obe,this._options.gravity.y=-1,this._options.gravity.x=0,this._options.wind.x=0,this._options.wind.y=0}release(){this._physicsRig=void 0}parse(t){this._physicsRig=new Ibe;let n=new Abe(t);this._physicsRig.gravity=n.getGravity(),this._physicsRig.wind=n.getWind(),this._physicsRig.subRigCount=n.getSubRigCount();let r=0,a=0,o=0;for(let s=0;s<this._physicsRig.subRigCount;++s){const l=new Ebe;l.normalizationPosition.minimum=n.getNormalizationPositionMinimumValue(s),l.normalizationPosition.maximum=n.getNormalizationPositionMaximumValue(s),l.normalizationPosition.defalut=n.getNormalizationPositionDefaultValue(s),l.normalizationAngle.minimum=n.getNormalizationAngleMinimumValue(s),l.normalizationAngle.maximum=n.getNormalizationAngleMaximumValue(s),l.normalizationAngle.defalut=n.getNormalizationAngleDefaultValue(s),l.inputCount=n.getInputCount(s),l.baseInputIndex=r,r+=l.inputCount;for(let u=0;u<l.inputCount;++u){const c=new Cbe;switch(c.sourceParameterIndex=-1,c.weight=n.getInputWeight(s,u),c.reflect=n.getInputReflect(s,u),n.getInputType(s,u)){case P4:c.type=Cl.CubismPhysicsSource_X,c.getNormalizedParameterValue=$be;break;case M4:c.type=Cl.CubismPhysicsSource_Y,c.getNormalizedParameterValue=Rbe;break;case O4:c.type=Cl.CubismPhysicsSource_Angle,c.getNormalizedParameterValue=kbe;break}c.source.targetType=Gy.CubismPhysicsTargetType_Parameter,c.source.id=n.getInputSourceId(s,u),this._physicsRig.inputs.push(c)}l.outputCount=n.getOutputCount(s),l.baseOutputIndex=a,a+=l.outputCount;for(let u=0;u<l.outputCount;++u){const c=new xbe;switch(c.destinationParameterIndex=-1,c.vertexIndex=n.getOutputVertexIndex(s,u),c.angleScale=n.getOutputAngleScale(s,u),c.weight=n.getOutputWeight(s,u),c.destination.targetType=Gy.CubismPhysicsTargetType_Parameter,c.destination.id=n.getOutputDestinationId(s,u),n.getOutputType(s,u)){case P4:c.type=Cl.CubismPhysicsSource_X,c.getValue=Lbe,c.getScale=Hbe;break;case M4:c.type=Cl.CubismPhysicsSource_Y,c.getValue=Nbe,c.getScale=Ube;break;case O4:c.type=Cl.CubismPhysicsSource_Angle,c.getValue=Dbe,c.getScale=Vbe;break}c.reflect=n.getOutputReflect(s,u),this._physicsRig.outputs.push(c)}l.particleCount=n.getParticleCount(s),l.baseParticleIndex=o,o+=l.particleCount;for(let u=0;u<l.particleCount;++u){const c=new Tbe;c.mobility=n.getParticleMobility(s,u),c.delay=n.getParticleDelay(s,u),c.acceleration=n.getParticleAcceleration(s,u),c.radius=n.getParticleRadius(s,u),c.position=n.getParticlePosition(s,u),this._physicsRig.particles.push(c)}this._physicsRig.settings.push(l)}this.initialize(),n.release()}initialize(){let t,n,r;for(let a=0;a<this._physicsRig.subRigCount;++a){n=this._physicsRig.settings[a],t=this._physicsRig.particles.slice(n.baseParticleIndex),t[0].initialPosition=new _n(0,0),t[0].lastPosition=new _n(t[0].initialPosition.x,t[0].initialPosition.y),t[0].lastGravity=new _n(0,-1),t[0].lastGravity.y*=-1,t[0].velocity=new _n(0,0),t[0].force=new _n(0,0);for(let o=1;o<n.particleCount;++o)r=new _n(0,0),r.y=t[o].radius,t[o].initialPosition=new _n(t[o-1].initialPosition.x+r.x,t[o-1].initialPosition.y+r.y),t[o].position=new _n(t[o].initialPosition.x,t[o].initialPosition.y),t[o].lastPosition=new _n(t[o].initialPosition.x,t[o].initialPosition.y),t[o].lastGravity=new _n(0,-1),t[o].lastGravity.y*=-1,t[o].velocity=new _n(0,0),t[o].force=new _n(0,0)}}}class Obe{constructor(){this.gravity=new _n(0,0),this.wind=new _n(0,0)}}function $be(e,t,n,r,a,o,s,l,u,c){e.x+=Ow(n,r,a,o,s.minimum,s.maximum,s.defalut,u)*c}function Rbe(e,t,n,r,a,o,s,l,u,c){e.y+=Ow(n,r,a,o,s.minimum,s.maximum,s.defalut,u)*c}function kbe(e,t,n,r,a,o,s,l,u,c){t.angle+=Ow(n,r,a,o,l.minimum,l.maximum,l.defalut,u)*c}function Lbe(e,t,n,r,a){let o=e.x;return r&&(o*=-1),o}function Nbe(e,t,n,r,a){let o=e.y;return r&&(o*=-1),o}function Dbe(e,t,n,r,a){let o;return n>=2?a=t[n-1].position.substract(t[n-2].position):a=a.multiplyByScaler(-1),o=tr.directionToRadian(a,e),r&&(o*=-1),o}function Fbe(e,t){return Math.abs(Math.max(e,t)-Math.min(e,t))}function Bbe(e,t){return Math.min(e,t)+Fbe(e,t)/2}function Hbe(e,t){return e.x}function Ube(e,t){return e.y}function Vbe(e,t){return t}function Gbe(e,t,n,r,a,o,s,l){let u,c,f,d,p=new _n(0,0),g=new _n(0,0),y=new _n(0,0),m=new _n(0,0);e[0].position=new _n(n.x,n.y),u=tr.degreesToRadian(r),d=tr.radianToDirection(u),d.normalize();for(let S=1;S<t;++S)e[S].force=d.multiplyByScaler(e[S].acceleration).add(a),e[S].lastPosition=new _n(e[S].position.x,e[S].position.y),c=e[S].delay*s*30,p=e[S].position.substract(e[S-1].position),f=tr.directionToRadian(e[S].lastGravity,d)/l,p.x=tr.cos(f)*p.x-p.y*tr.sin(f),p.y=tr.sin(f)*p.x+p.y*tr.cos(f),e[S].position=e[S-1].position.add(p),g=e[S].velocity.multiplyByScaler(c),y=e[S].force.multiplyByScaler(c).multiplyByScaler(c),e[S].position=e[S].position.add(g).add(y),m=e[S].position.substract(e[S-1].position),m.normalize(),e[S].position=e[S-1].position.add(m.multiplyByScaler(e[S].radius)),tr.abs(e[S].position.x)<o&&(e[S].position.x=0),c!=0&&(e[S].velocity=e[S].position.substract(e[S].lastPosition),e[S].velocity=e[S].velocity.divisionByScalar(c),e[S].velocity=e[S].velocity.multiplyByScaler(e[S].mobility)),e[S].force=new _n(0,0),e[S].lastGravity=new _n(d.x,d.y)}function jbe(e,t,n,r,a){let o,s,l;o=a.getScale(a.translationScale,a.angleScale),s=r*o,s<t?(s<a.valueBelowMinimum&&(a.valueBelowMinimum=s),s=t):s>n&&(s>a.valueExceededMaximum&&(a.valueExceededMaximum=s),s=n),l=a.weight/ck,l>=1||(s=e[0]*(1-l)+s*l),e[0]=s}function Ow(e,t,n,r,a,o,s,l){let u=0;const c=tr.max(n,t);c<e&&(e=c);const f=tr.min(n,t);f>e&&(e=f);const d=tr.min(a,o),p=tr.max(a,o),g=s,y=Bbe(f,c),m=e-y;switch(Math.sign(m)){case 1:{const S=p-g,_=c-y;_!=0&&(u=m*(S/_),u+=g);break}case-1:{const S=d-g,_=f-y;_!=0&&(u=m*(S/_),u+=g);break}case 0:{u=g;break}}return l?u:u*-1}dr.registerRuntime({version:4,ready:bbe,test(e){return e instanceof tc||tc.isValidJSON(e)},isValidMoc(e){if(e.byteLength<4)return!1;const t=new Int8Array(e,0,4);return String.fromCharCode(...t)==="MOC3"},createModelSettings(e){return new tc(e)},createCoreModel(e){const t=Pw.create(e);try{const n=t.createModel();return n.__moc=t,n}catch(n){try{t.release()}catch{}throw n}},createInternalModel(e,t,n){const r=new ybe(e,t,n),a=e;return a.__moc&&(r.__moc=a.__moc,delete a.__moc,r.once("destroy",zbe)),r},createPhysics(e,t){return Mw.create(t)},createPose(e,t){return Aw.create(t)}});function zbe(){var e;(e=this.__moc)==null||e.release()}/*!
 * @pixi/graphics - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/graphics is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var li;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(li||(li={}));var Fi;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(Fi||(Fi={}));var Pc={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var n=Math.ceil(e/this.maxLength);return n<this.minSegments?n=this.minSegments:n>this.maxSegments&&(n=this.maxSegments),n}},$w=function(){function e(){this.color=16777215,this.alpha=1,this.texture=mn.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=mn.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var jy=function(e,t){return jy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},jy(e,t)};function Rw(e,t){jy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function $4(e,t){var n,r;t===void 0&&(t=!1);var a=e.length;if(!(a<6)){for(var o=0,s=0,l=e[a-2],u=e[a-1];s<a;s+=2){var c=e[s],f=e[s+1];o+=(c-l)*(f+u),l=c,u=f}if(!t&&o>0||t&&o<=0)for(var d=a/2,s=d+d%2;s<a;s+=2){var p=a-s-2,g=a-s-1,y=s,m=s+1;n=[e[y],e[p]],e[p]=n[0],e[y]=n[1],r=[e[m],e[g]],e[g]=r[0],e[m]=r[1]}}}var kw={build:function(e){e.points=e.shape.points.slice()},triangulate:function(e,t){var n=e.points,r=e.holes,a=t.points,o=t.indices;if(n.length>=6){$4(n,!1);for(var s=[],l=0;l<r.length;l++){var u=r[l];$4(u.points,!0),s.push(n.length/2),n=n.concat(u.points)}var c=$1(n,s,2);if(!c)return;for(var f=a.length/2,l=0;l<c.length;l+=3)o.push(c[l]+f),o.push(c[l+1]+f),o.push(c[l+2]+f);for(var l=0;l<n.length;l++)a.push(n[l])}}},Xf={build:function(e){var t=e.points,n,r,a,o,s,l;if(e.type===Nr.CIRC){var u=e.shape;n=u.x,r=u.y,s=l=u.radius,a=o=0}else if(e.type===Nr.ELIP){var c=e.shape;n=c.x,r=c.y,s=c.width,l=c.height,a=o=0}else{var f=e.shape,d=f.width/2,p=f.height/2;n=f.x+d,r=f.y+p,s=l=Math.max(0,Math.min(f.radius,Math.min(d,p))),a=d-s,o=p-l}if(!(s>=0&&l>=0&&a>=0&&o>=0)){t.length=0;return}var g=Math.ceil(2.3*Math.sqrt(s+l)),y=g*8+(a?4:0)+(o?4:0);if(t.length=y,y!==0){if(g===0){t.length=8,t[0]=t[6]=n+a,t[1]=t[3]=r+o,t[2]=t[4]=n-a,t[5]=t[7]=r-o;return}var m=0,S=g*4+(a?2:0)+2,_=S,P=y;{var A=a+s,$=o,k=n+A,L=n-A,B=r+$;if(t[m++]=k,t[m++]=B,t[--S]=B,t[--S]=L,o){var H=r-$;t[_++]=L,t[_++]=H,t[--P]=H,t[--P]=k}}for(var G=1;G<g;G++){var j=Math.PI/2*(G/g),A=a+Math.cos(j)*s,$=o+Math.sin(j)*l,k=n+A,L=n-A,B=r+$,H=r-$;t[m++]=k,t[m++]=B,t[--S]=B,t[--S]=L,t[_++]=L,t[_++]=H,t[--P]=H,t[--P]=k}{var A=a,$=o+l,k=n+A,L=n-A,B=r+$,H=r-$;t[m++]=k,t[m++]=B,t[--P]=H,t[--P]=k,a&&(t[m++]=L,t[m++]=B,t[--P]=H,t[--P]=L)}}},triangulate:function(e,t){var n=e.points,r=t.points,a=t.indices;if(n.length!==0){var o=r.length/2,s=o,l,u;if(e.type!==Nr.RREC){var c=e.shape;l=c.x,u=c.y}else{var f=e.shape;l=f.x+f.width/2,u=f.y+f.height/2}var d=e.matrix;r.push(e.matrix?d.a*l+d.c*u+d.tx:l,e.matrix?d.b*l+d.d*u+d.ty:u),o++,r.push(n[0],n[1]);for(var p=2;p<n.length;p+=2)r.push(n[p],n[p+1]),a.push(o++,s,o);a.push(s+1,s,o)}}},dk={build:function(e){var t=e.shape,n=t.x,r=t.y,a=t.width,o=t.height,s=e.points;s.length=0,s.push(n,r,n+a,r,n+a,r+o,n,r+o)},triangulate:function(e,t){var n=e.points,r=t.points,a=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(a,a+1,a+2,a+1,a+2,a+3)}};function Pu(e,t,n){var r=t-e;return e+r*n}function vp(e,t,n,r,a,o,s){s===void 0&&(s=[]);for(var l=20,u=s,c=0,f=0,d=0,p=0,g=0,y=0,m=0,S=0;m<=l;++m)S=m/l,c=Pu(e,n,S),f=Pu(t,r,S),d=Pu(n,a,S),p=Pu(r,o,S),g=Pu(c,d,S),y=Pu(f,p,S),!(m===0&&u[u.length-2]===g&&u[u.length-1]===y)&&u.push(g,y);return u}var fk={build:function(e){if(Mc.nextRoundedRectBehavior){Xf.build(e);return}var t=e.shape,n=e.points,r=t.x,a=t.y,o=t.width,s=t.height,l=Math.max(0,Math.min(t.radius,Math.min(o,s)/2));n.length=0,l?(vp(r,a+l,r,a,r+l,a,n),vp(r+o-l,a,r+o,a,r+o,a+l,n),vp(r+o,a+s-l,r+o,a+s,r+o-l,a+s,n),vp(r+l,a+s,r,a+s,r,a+s-l,n)):n.push(r,a,r+o,a,r+o,a+s,r,a+s)},triangulate:function(e,t){if(Mc.nextRoundedRectBehavior){Xf.triangulate(e,t);return}for(var n=e.points,r=t.points,a=t.indices,o=r.length/2,s=$1(n,null,2),l=0,u=s.length;l<u;l+=3)a.push(s[l]+o),a.push(s[l+1]+o),a.push(s[l+2]+o);for(var l=0,u=n.length;l<u;l++)r.push(n[l],n[++l])}};function R4(e,t,n,r,a,o,s,l){var u=e-n*a,c=t-r*a,f=e+n*o,d=t+r*o,p,g;s?(p=r,g=-n):(p=-r,g=n);var y=u+p,m=c+g,S=f+p,_=d+g;return l.push(y,m),l.push(S,_),2}function ml(e,t,n,r,a,o,s,l){var u=n-e,c=r-t,f=Math.atan2(u,c),d=Math.atan2(a-e,o-t);l&&f<d?f+=Math.PI*2:!l&&f>d&&(d+=Math.PI*2);var p=f,g=d-f,y=Math.abs(g),m=Math.sqrt(u*u+c*c),S=(15*y*Math.sqrt(m)/Math.PI>>0)+1,_=g/S;if(p+=_,l){s.push(e,t),s.push(n,r);for(var P=1,A=p;P<S;P++,A+=_)s.push(e,t),s.push(e+Math.sin(A)*m,t+Math.cos(A)*m);s.push(e,t),s.push(a,o)}else{s.push(n,r),s.push(e,t);for(var P=1,A=p;P<S;P++,A+=_)s.push(e+Math.sin(A)*m,t+Math.cos(A)*m),s.push(e,t);s.push(a,o),s.push(e,t)}return S*2}function Kbe(e,t){var n=e.shape,r=e.points||n.points.slice(),a=t.closePointEps;if(r.length!==0){var o=e.lineStyle,s=new Zn(r[0],r[1]),l=new Zn(r[r.length-2],r[r.length-1]),u=n.type!==Nr.POLY||n.closeStroke,c=Math.abs(s.x-l.x)<a&&Math.abs(s.y-l.y)<a;if(u){r=r.slice(),c&&(r.pop(),r.pop(),l.set(r[r.length-2],r[r.length-1]));var f=(s.x+l.x)*.5,d=(l.y+s.y)*.5;r.unshift(f,d),r.push(f,d)}var p=t.points,g=r.length/2,y=r.length,m=p.length/2,S=o.width/2,_=S*S,P=o.miterLimit*o.miterLimit,A=r[0],$=r[1],k=r[2],L=r[3],B=0,H=0,G=-($-L),j=A-k,W=0,Q=0,ue=Math.sqrt(G*G+j*j);G/=ue,j/=ue,G*=S,j*=S;var se=o.alignment,ne=(1-se)*2,J=se*2;u||(o.cap===Fi.ROUND?y+=ml(A-G*(ne-J)*.5,$-j*(ne-J)*.5,A-G*ne,$-j*ne,A+G*J,$+j*J,p,!0)+2:o.cap===Fi.SQUARE&&(y+=R4(A,$,G,j,ne,J,!0,p))),p.push(A-G*ne,$-j*ne),p.push(A+G*J,$+j*J);for(var X=1;X<g-1;++X){A=r[(X-1)*2],$=r[(X-1)*2+1],k=r[X*2],L=r[X*2+1],B=r[(X+1)*2],H=r[(X+1)*2+1],G=-($-L),j=A-k,ue=Math.sqrt(G*G+j*j),G/=ue,j/=ue,G*=S,j*=S,W=-(L-H),Q=k-B,ue=Math.sqrt(W*W+Q*Q),W/=ue,Q/=ue,W*=S,Q*=S;var te=k-A,Y=$-L,Z=k-B,ae=H-L,ve=te*Z+Y*ae,we=Y*Z-ae*te,Me=we<0;if(Math.abs(we)<.001*Math.abs(ve)){p.push(k-G*ne,L-j*ne),p.push(k+G*J,L+j*J),ve>=0&&(o.join===li.ROUND?y+=ml(k,L,k-G*ne,L-j*ne,k-W*ne,L-Q*ne,p,!1)+4:y+=2,p.push(k-W*J,L-Q*J),p.push(k+W*ne,L+Q*ne));continue}var Ge=(-G+A)*(-j+L)-(-G+k)*(-j+$),Ee=(-W+B)*(-Q+L)-(-W+k)*(-Q+H),pe=(te*Ee-Z*Ge)/we,_e=(ae*Ge-Y*Ee)/we,He=(pe-k)*(pe-k)+(_e-L)*(_e-L),Ae=k+(pe-k)*ne,ke=L+(_e-L)*ne,ze=k-(pe-k)*J,ce=L-(_e-L)*J,me=Math.min(te*te+Y*Y,Z*Z+ae*ae),Be=Me?ne:J,be=me+Be*Be*_,Oe=He<=be;Oe?o.join===li.BEVEL||He/_>P?(Me?(p.push(Ae,ke),p.push(k+G*J,L+j*J),p.push(Ae,ke),p.push(k+W*J,L+Q*J)):(p.push(k-G*ne,L-j*ne),p.push(ze,ce),p.push(k-W*ne,L-Q*ne),p.push(ze,ce)),y+=2):o.join===li.ROUND?Me?(p.push(Ae,ke),p.push(k+G*J,L+j*J),y+=ml(k,L,k+G*J,L+j*J,k+W*J,L+Q*J,p,!0)+4,p.push(Ae,ke),p.push(k+W*J,L+Q*J)):(p.push(k-G*ne,L-j*ne),p.push(ze,ce),y+=ml(k,L,k-G*ne,L-j*ne,k-W*ne,L-Q*ne,p,!1)+4,p.push(k-W*ne,L-Q*ne),p.push(ze,ce)):(p.push(Ae,ke),p.push(ze,ce)):(p.push(k-G*ne,L-j*ne),p.push(k+G*J,L+j*J),o.join===li.ROUND?Me?y+=ml(k,L,k+G*J,L+j*J,k+W*J,L+Q*J,p,!0)+2:y+=ml(k,L,k-G*ne,L-j*ne,k-W*ne,L-Q*ne,p,!1)+2:o.join===li.MITER&&He/_<=P&&(Me?(p.push(ze,ce),p.push(ze,ce)):(p.push(Ae,ke),p.push(Ae,ke)),y+=2),p.push(k-W*ne,L-Q*ne),p.push(k+W*J,L+Q*J),y+=2)}A=r[(g-2)*2],$=r[(g-2)*2+1],k=r[(g-1)*2],L=r[(g-1)*2+1],G=-($-L),j=A-k,ue=Math.sqrt(G*G+j*j),G/=ue,j/=ue,G*=S,j*=S,p.push(k-G*ne,L-j*ne),p.push(k+G*J,L+j*J),u||(o.cap===Fi.ROUND?y+=ml(k-G*(ne-J)*.5,L-j*(ne-J)*.5,k-G*ne,L-j*ne,k+G*J,L+j*J,p,!1)+2:o.cap===Fi.SQUARE&&(y+=R4(k,L,G,j,ne,J,!1,p)));for(var Ye=t.indices,qe=Pc.epsilon*Pc.epsilon,X=m;X<y+m-2;++X)A=p[X*2],$=p[X*2+1],k=p[(X+1)*2],L=p[(X+1)*2+1],B=p[(X+2)*2],H=p[(X+2)*2+1],!(Math.abs(A*(L-H)+k*(H-$)+B*($-L))<qe)&&Ye.push(X,X+1,X+2)}}function Wbe(e,t){var n=0,r=e.shape,a=e.points||r.points,o=r.type!==Nr.POLY||r.closeStroke;if(a.length!==0){var s=t.points,l=t.indices,u=a.length/2,c=s.length/2,f=c;for(s.push(a[0],a[1]),n=1;n<u;n++)s.push(a[n*2],a[n*2+1]),l.push(f,f+1),f++;o&&l.push(f,c)}}function zy(e,t){e.lineStyle.native?Wbe(e,t):Kbe(e,t)}var Ky=function(){function e(){}return e.curveTo=function(t,n,r,a,o,s){var l=s[s.length-2],u=s[s.length-1],c=u-n,f=l-t,d=a-n,p=r-t,g=Math.abs(c*p-f*d);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;var y=c*c+f*f,m=d*d+p*p,S=c*d+f*p,_=o*Math.sqrt(y)/g,P=o*Math.sqrt(m)/g,A=_*S/y,$=P*S/m,k=_*p+P*f,L=_*d+P*c,B=f*(P+A),H=c*(P+A),G=p*(_+$),j=d*(_+$),W=Math.atan2(H-L,B-k),Q=Math.atan2(j-L,G-k);return{cx:k+t,cy:L+n,radius:o,startAngle:W,endAngle:Q,anticlockwise:f*d>p*c}},e.arc=function(t,n,r,a,o,s,l,u,c){for(var f=l-s,d=Pc._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/Gf)*40),p=f/(d*2),g=p*2,y=Math.cos(p),m=Math.sin(p),S=d-1,_=S%1/S,P=0;P<=S;++P){var A=P+_*P,$=p+s+g*A,k=Math.cos($),L=-Math.sin($);c.push((y*k+m*L)*o+r,(y*-L+m*k)*o+a)}},e}(),hk=function(){function e(){}return e.curveLength=function(t,n,r,a,o,s,l,u){for(var c=10,f=0,d=0,p=0,g=0,y=0,m=0,S=0,_=0,P=0,A=0,$=0,k=t,L=n,B=1;B<=c;++B)d=B/c,p=d*d,g=p*d,y=1-d,m=y*y,S=m*y,_=S*t+3*m*d*r+3*y*p*o+g*l,P=S*n+3*m*d*a+3*y*p*s+g*u,A=k-_,$=L-P,k=_,L=P,f+=Math.sqrt(A*A+$*$);return f},e.curveTo=function(t,n,r,a,o,s,l){var u=l[l.length-2],c=l[l.length-1];l.length-=2;var f=Pc._segmentsCount(e.curveLength(u,c,t,n,r,a,o,s)),d=0,p=0,g=0,y=0,m=0;l.push(u,c);for(var S=1,_=0;S<=f;++S)_=S/f,d=1-_,p=d*d,g=p*d,y=_*_,m=y*_,l.push(g*u+3*p*_*t+3*d*y*r+m*o,g*c+3*p*_*n+3*d*y*a+m*s)},e}(),pk=function(){function e(){}return e.curveLength=function(t,n,r,a,o,s){var l=t-2*r+o,u=n-2*a+s,c=2*r-2*t,f=2*a-2*n,d=4*(l*l+u*u),p=4*(l*c+u*f),g=c*c+f*f,y=2*Math.sqrt(d+p+g),m=Math.sqrt(d),S=2*d*m,_=2*Math.sqrt(g),P=p/m;return(S*y+m*p*(y-_)+(4*g*d-p*p)*Math.log((2*m+P+y)/(P+_)))/(4*S)},e.curveTo=function(t,n,r,a,o){for(var s=o[o.length-2],l=o[o.length-1],u=Pc._segmentsCount(e.curveLength(s,l,t,n,r,a)),c=0,f=0,d=1;d<=u;++d){var p=d/u;c=s+(t-s)*p,f=l+(n-l)*p,o.push(c+(t+(r-t)*p-c)*p,f+(n+(a-n)*p-f)*p)}},e}(),vk=function(){function e(){this.reset()}return e.prototype.begin=function(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r},e.prototype.end=function(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),gl,l0=(gl={},gl[Nr.POLY]=kw,gl[Nr.CIRC]=Xf,gl[Nr.ELIP]=Xf,gl[Nr.RECT]=dk,gl[Nr.RREC]=fk,gl),Wy=[],Od=[],Xy=function(){function e(t,n,r,a){n===void 0&&(n=null),r===void 0&&(r=null),a===void 0&&(a=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=r,this.fillStyle=n,this.matrix=a,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),Mu=new Zn,mk=function(e){Rw(t,e);function t(){var n=e.call(this)||this;return n.closePointEps=1e-4,n.boundsPadding=0,n.uvsFloat32=null,n.indicesUint16=null,n.batchable=!1,n.points=[],n.colors=[],n.uvs=[],n.indices=[],n.textureIds=[],n.graphicsData=[],n.drawCalls=[],n.batchDirty=-1,n.batches=[],n.dirty=0,n.cacheDirty=-1,n.clearDirty=0,n.shapeIndex=0,n._bounds=new zf,n.boundsDirty=-1,n}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var n=0;n<this.drawCalls.length;n++)this.drawCalls[n].texArray.clear(),Od.push(this.drawCalls[n]);this.drawCalls.length=0;for(var n=0;n<this.batches.length;n++){var r=this.batches[n];r.reset(),Wy.push(r)}this.batches.length=0},t.prototype.clear=function(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(n,r,a,o){r===void 0&&(r=null),a===void 0&&(a=null),o===void 0&&(o=null);var s=new Xy(n,r,a,o);return this.graphicsData.push(s),this.dirty++,this},t.prototype.drawHole=function(n,r){if(r===void 0&&(r=null),!this.graphicsData.length)return null;var a=new Xy(n,null,null,r),o=this.graphicsData[this.graphicsData.length-1];return a.lineStyle=o.lineStyle,o.holes.push(a),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var n=0;n<this.graphicsData.length;++n)this.graphicsData[n].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},t.prototype.containsPoint=function(n){for(var r=this.graphicsData,a=0;a<r.length;++a){var o=r[a];if(o.fillStyle.visible&&o.shape&&(o.matrix?o.matrix.applyInverse(n,Mu):Mu.copyFrom(n),o.shape.contains(Mu.x,Mu.y))){var s=!1;if(o.holes)for(var l=0;l<o.holes.length;l++){var u=o.holes[l];if(u.shape.contains(Mu.x,Mu.y)){s=!0;break}}if(!s)return!0}}return!1},t.prototype.updateBatches=function(){if(!this.graphicsData.length){this.batchable=!0;return}if(this.validateBatching()){this.cacheDirty=this.dirty;var n=this.uvs,r=this.graphicsData,a=null,o=null;this.batches.length>0&&(a=this.batches[this.batches.length-1],o=a.style);for(var s=this.shapeIndex;s<r.length;s++){this.shapeIndex++;var l=r[s],u=l.fillStyle,c=l.lineStyle,f=l0[l.type];f.build(l),l.matrix&&this.transformPoints(l.points,l.matrix),(u.visible||c.visible)&&this.processHoles(l.holes);for(var d=0;d<2;d++){var p=d===0?u:c;if(p.visible){var g=p.texture.baseTexture,y=this.indices.length,m=this.points.length/2;g.wrapMode=Bo.REPEAT,d===0?this.processFill(l):this.processLine(l);var S=this.points.length/2-m;S!==0&&(a&&!this._compareStyles(o,p)&&(a.end(y,m),a=null),a||(a=Wy.pop()||new vk,a.begin(p,y,m),this.batches.push(a),o=p),this.addUvs(this.points,n,p.texture,m,S,p.matrix))}}}var _=this.indices.length,P=this.points.length/2;if(a&&a.end(_,P),this.batches.length===0){this.batchable=!0;return}var A=P>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&A===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=A?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(n,r){return!(!n||!r||n.texture.baseTexture!==r.texture.baseTexture||n.color+n.alpha!==r.color+r.alpha||!!n.native!=!!r.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var n=0,r=this.graphicsData.length;n<r;n++){var a=this.graphicsData[n],o=a.fillStyle,s=a.lineStyle;if(o&&!o.texture.baseTexture.valid||s&&!s.texture.baseTexture.valid)return!1}return!0},t.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var n=this.batches,r=0,a=n.length;r<a;r++)for(var o=n[r],s=0;s<o.size;s++){var l=o.start+s;this.indicesUint16[l]=this.indicesUint16[l]-o.attribStart}},t.prototype.isBatchable=function(){if(this.points.length>65535*2)return!1;for(var n=this.batches,r=0;r<n.length;r++)if(n[r].style.native)return!1;return this.points.length<t.BATCHABLE_SIZE*2},t.prototype.buildDrawCalls=function(){for(var n=++kn._globalBatch,r=0;r<this.drawCalls.length;r++)this.drawCalls[r].texArray.clear(),Od.push(this.drawCalls[r]);this.drawCalls.length=0;var a=this.colors,o=this.textureIds,s=Od.pop();s||(s=new X0,s.texArray=new Y0),s.texArray.count=0,s.start=0,s.size=0,s.type=co.TRIANGLES;var l=0,u=null,c=0,f=!1,d=co.TRIANGLES,p=0;this.drawCalls.push(s);for(var r=0;r<this.batches.length;r++){var g=this.batches[r],y=8,m=g.style,S=m.texture.baseTexture;f!==!!m.native&&(f=!!m.native,d=f?co.LINES:co.TRIANGLES,u=null,l=y,n++),u!==S&&(u=S,S._batchEnabled!==n&&(l===y&&(n++,l=0,s.size>0&&(s=Od.pop(),s||(s=new X0,s.texArray=new Y0),this.drawCalls.push(s)),s.start=p,s.size=0,s.texArray.count=0,s.type=d),S.touched=1,S._batchEnabled=n,S._batchLocation=l,S.wrapMode=Bo.REPEAT,s.texArray.elements[s.texArray.count++]=S,l++)),s.size+=g.size,p+=g.size,c=S._batchLocation,this.addColors(a,m.color,m.alpha,g.attribSize,g.attribStart),this.addTextureIds(o,c,g.attribSize,g.attribStart)}kn._globalBatch=n,this.packAttributes()},t.prototype.packAttributes=function(){for(var n=this.points,r=this.uvs,a=this.colors,o=this.textureIds,s=new ArrayBuffer(n.length*3*4),l=new Float32Array(s),u=new Uint32Array(s),c=0,f=0;f<n.length/2;f++)l[c++]=n[f*2],l[c++]=n[f*2+1],l[c++]=r[f*2],l[c++]=r[f*2+1],u[c++]=a[f],l[c++]=o[f];this._buffer.update(s),this._indexBuffer.update(this.indicesUint16)},t.prototype.processFill=function(n){if(n.holes.length)kw.triangulate(n,this);else{var r=l0[n.type];r.triangulate(n,this)}},t.prototype.processLine=function(n){zy(n,this);for(var r=0;r<n.holes.length;r++)zy(n.holes[r],this)},t.prototype.processHoles=function(n){for(var r=0;r<n.length;r++){var a=n[r],o=l0[a.type];o.build(a),a.matrix&&this.transformPoints(a.points,a.matrix)}},t.prototype.calculateBounds=function(){var n=this._bounds;n.clear(),n.addVertexData(this.points,0,this.points.length),n.pad(this.boundsPadding,this.boundsPadding)},t.prototype.transformPoints=function(n,r){for(var a=0;a<n.length/2;a++){var o=n[a*2],s=n[a*2+1];n[a*2]=r.a*o+r.c*s+r.tx,n[a*2+1]=r.b*o+r.d*s+r.ty}},t.prototype.addColors=function(n,r,a,o,s){s===void 0&&(s=0);var l=(r>>16)+(r&65280)+((r&255)<<16),u=jv(l,a);n.length=Math.max(n.length,s+o);for(var c=0;c<o;c++)n[s+c]=u},t.prototype.addTextureIds=function(n,r,a,o){o===void 0&&(o=0),n.length=Math.max(n.length,o+a);for(var s=0;s<a;s++)n[o+s]=r},t.prototype.addUvs=function(n,r,a,o,s,l){l===void 0&&(l=null);for(var u=0,c=r.length,f=a.frame;u<s;){var d=n[(o+u)*2],p=n[(o+u)*2+1];if(l){var g=l.a*d+l.c*p+l.tx;p=l.b*d+l.d*p+l.ty,d=g}u++,r.push(d/f.width,p/f.height)}var y=a.baseTexture;(f.width<y.width||f.height<y.height)&&this.adjustUvs(r,a,c,s)},t.prototype.adjustUvs=function(n,r,a,o){for(var s=r.baseTexture,l=1e-6,u=a+o*2,c=r.frame,f=c.width/s.width,d=c.height/s.height,p=c.x/c.width,g=c.y/c.height,y=Math.floor(n[a]+l),m=Math.floor(n[a+1]+l),S=a+2;S<u;S+=2)y=Math.min(y,Math.floor(n[S]+l)),m=Math.min(m,Math.floor(n[S+1]+l));p-=y,g-=m;for(var S=a;S<u;S+=2)n[S]=(n[S]+p)*f,n[S+1]=(n[S+1]+g)*d},t.BATCHABLE_SIZE=100,t}(mw),gk=function(e){Rw(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.width=0,n.alignment=.5,n.native=!1,n.cap=Fi.BUTT,n.join=li.MITER,n.miterLimit=10,n}return t.prototype.clone=function(){var n=new t;return n.color=this.color,n.alpha=this.alpha,n.texture=this.texture,n.matrix=this.matrix,n.visible=this.visible,n.width=this.width,n.alignment=this.alignment,n.native=this.native,n.cap=this.cap,n.join=this.join,n.miterLimit=this.miterLimit,n},t.prototype.reset=function(){e.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1},t}($w),Xbe=new Float32Array(3),Ag={},Mc=function(e){Rw(t,e);function t(n){n===void 0&&(n=null);var r=e.call(this)||this;return r.shader=null,r.pluginName="batch",r.currentPath=null,r.batches=[],r.batchTint=-1,r.batchDirty=-1,r.vertexData=null,r._fillStyle=new $w,r._lineStyle=new gk,r._matrix=null,r._holeMode=!1,r.state=ol.for2d(),r._geometry=n||new mk,r._geometry.refCount++,r._transformID=-1,r.tint=16777215,r.blendMode=on.NORMAL,r}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return this.finishPoly(),new t(this._geometry)},Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(n){this.state.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){this._tint=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),t.prototype.lineStyle=function(n,r,a,o,s){return n===void 0&&(n=null),r===void 0&&(r=0),a===void 0&&(a=1),o===void 0&&(o=.5),s===void 0&&(s=!1),typeof n=="number"&&(n={width:n,color:r,alpha:a,alignment:o,native:s}),this.lineTextureStyle(n)},t.prototype.lineTextureStyle=function(n){n=Object.assign({width:0,texture:mn.WHITE,color:n&&n.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:Fi.BUTT,join:li.MITER,miterLimit:10},n),this.currentPath&&this.startPoly();var r=n.width>0&&n.alpha>0;return r?(n.matrix&&(n.matrix=n.matrix.clone(),n.matrix.invert()),Object.assign(this._lineStyle,{visible:r},n)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var n=this.currentPath.points,r=this.currentPath.points.length;r>2&&(this.drawShape(this.currentPath),this.currentPath=new ef,this.currentPath.closeStroke=!1,this.currentPath.points.push(n[r-2],n[r-1]))}else this.currentPath=new ef,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(n,r){return this.startPoly(),this.currentPath.points[0]=n,this.currentPath.points[1]=r,this},t.prototype.lineTo=function(n,r){this.currentPath||this.moveTo(0,0);var a=this.currentPath.points,o=a[a.length-2],s=a[a.length-1];return(o!==n||s!==r)&&a.push(n,r),this},t.prototype._initCurve=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[n,r]):this.moveTo(n,r)},t.prototype.quadraticCurveTo=function(n,r,a,o){this._initCurve();var s=this.currentPath.points;return s.length===0&&this.moveTo(0,0),pk.curveTo(n,r,a,o,s),this},t.prototype.bezierCurveTo=function(n,r,a,o,s,l){return this._initCurve(),hk.curveTo(n,r,a,o,s,l,this.currentPath.points),this},t.prototype.arcTo=function(n,r,a,o,s){this._initCurve(n,r);var l=this.currentPath.points,u=Ky.curveTo(n,r,a,o,s,l);if(u){var c=u.cx,f=u.cy,d=u.radius,p=u.startAngle,g=u.endAngle,y=u.anticlockwise;this.arc(c,f,d,p,g,y)}return this},t.prototype.arc=function(n,r,a,o,s,l){if(l===void 0&&(l=!1),o===s)return this;!l&&s<=o?s+=Gf:l&&o<=s&&(o+=Gf);var u=s-o;if(u===0)return this;var c=n+Math.cos(o)*a,f=r+Math.sin(o)*a,d=this._geometry.closePointEps,p=this.currentPath?this.currentPath.points:null;if(p){var g=Math.abs(p[p.length-2]-c),y=Math.abs(p[p.length-1]-f);g<d&&y<d||p.push(c,f)}else this.moveTo(c,f),p=this.currentPath.points;return Ky.arc(c,f,n,r,a,o,s,l,p),this},t.prototype.beginFill=function(n,r){return n===void 0&&(n=0),r===void 0&&(r=1),this.beginTextureFill({texture:mn.WHITE,color:n,alpha:r})},t.prototype.beginTextureFill=function(n){n=Object.assign({texture:mn.WHITE,color:16777215,alpha:1,matrix:null},n),this.currentPath&&this.startPoly();var r=n.alpha>0;return r?(n.matrix&&(n.matrix=n.matrix.clone(),n.matrix.invert()),Object.assign(this._fillStyle,{visible:r},n)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(n,r,a,o){return this.drawShape(new $n(n,r,a,o))},t.prototype.drawRoundedRect=function(n,r,a,o,s){return this.drawShape(new mR(n,r,a,o,s))},t.prototype.drawCircle=function(n,r,a){return this.drawShape(new pR(n,r,a))},t.prototype.drawEllipse=function(n,r,a,o){return this.drawShape(new vR(n,r,a,o))},t.prototype.drawPolygon=function(){for(var n=arguments,r=[],a=0;a<arguments.length;a++)r[a]=n[a];var o,s=!0,l=r[0];l.points?(s=l.closeStroke,o=l.points):Array.isArray(r[0])?o=r[0]:o=r;var u=new ef(o);return u.closeStroke=s,this.drawShape(u),this},t.prototype.drawShape=function(n){return this._holeMode?this._geometry.drawHole(n,this._matrix):this._geometry.drawShape(n,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},t.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},t.prototype.isFastRect=function(){var n=this._geometry.graphicsData;return n.length===1&&n[0].shape.type===Nr.RECT&&!n[0].matrix&&!n[0].holes.length&&!(n[0].lineStyle.visible&&n[0].lineStyle.width)},t.prototype._render=function(n){this.finishPoly();var r=this._geometry;r.updateBatches(),r.batchable?(this.batchDirty!==r.batchDirty&&this._populateBatches(),this._renderBatched(n)):(n.batch.flush(),this._renderDirect(n))},t.prototype._populateBatches=function(){var n=this._geometry,r=this.blendMode,a=n.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=n.batchDirty,this.batches.length=a,this.vertexData=new Float32Array(n.points);for(var o=0;o<a;o++){var s=n.batches[o],l=s.style.color,u=new Float32Array(this.vertexData.buffer,s.attribStart*4*2,s.attribSize*2),c=new Float32Array(n.uvsFloat32.buffer,s.attribStart*4*2,s.attribSize*2),f=new Uint16Array(n.indicesUint16.buffer,s.start*2,s.size),d={vertexData:u,blendMode:r,indices:f,uvs:c,_batchRGB:iu(l),_tintRGB:l,_texture:s.style.texture,alpha:s.style.alpha,worldAlpha:1};this.batches[o]=d}},t.prototype._renderBatched=function(n){if(this.batches.length){n.batch.setObjectRenderer(n.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var r=0,a=this.batches.length;r<a;r++){var o=this.batches[r];o.worldAlpha=this.worldAlpha*o.alpha,n.plugins[this.pluginName].render(o)}}},t.prototype._renderDirect=function(n){var r=this._resolveDirectShader(n),a=this._geometry,o=this.tint,s=this.worldAlpha,l=r.uniforms,u=a.drawCalls;l.translationMatrix=this.transform.worldTransform,l.tint[0]=(o>>16&255)/255*s,l.tint[1]=(o>>8&255)/255*s,l.tint[2]=(o&255)/255*s,l.tint[3]=s,n.shader.bind(r),n.geometry.bind(a,r),n.state.set(this.state);for(var c=0,f=u.length;c<f;c++)this._renderDrawCallDirect(n,a.drawCalls[c])},t.prototype._renderDrawCallDirect=function(n,r){for(var a=r.texArray,o=r.type,s=r.size,l=r.start,u=a.count,c=0;c<u;c++)n.texture.bind(a.elements[c],c);n.geometry.draw(o,s,l)},t.prototype._resolveDirectShader=function(n){var r=this.shader,a=this.pluginName;if(!r){if(!Ag[a]){for(var o=n.plugins[a].MAX_TEXTURES,s=new Int32Array(o),l=0;l<o;l++)s[l]=l;var u={tint:new Float32Array([1,1,1,1]),translationMatrix:new cr,default:Ls.from({uSamplers:s},!0)},c=n.plugins[a]._shader.program;Ag[a]=new Ui(c,u)}r=Ag[a]}return r},t.prototype._calculateBounds=function(){this.finishPoly();var n=this._geometry;if(n.graphicsData.length){var r=n.bounds,a=r.minX,o=r.minY,s=r.maxX,l=r.maxY;this._bounds.addFrame(this.transform,a,o,s,l)}},t.prototype.containsPoint=function(n){return this.worldTransform.applyInverse(n,t._TEMP_POINT),this._geometry.containsPoint(t._TEMP_POINT)},t.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var n=iu(this.tint,Xbe),r=0;r<this.batches.length;r++){var a=this.batches[r],o=a._batchRGB,s=n[0]*o[0]*255,l=n[1]*o[1]*255,u=n[2]*o[2]*255,c=(s<<16)+(l<<8)+(u|0);a._tintRGB=(c>>16)+(c&65280)+((c&255)<<16)}}},t.prototype.calculateVertices=function(){var n=this.transform._worldID;if(this._transformID!==n){this._transformID=n;for(var r=this.transform.worldTransform,a=r.a,o=r.b,s=r.c,l=r.d,u=r.tx,c=r.ty,f=this._geometry.points,d=this.vertexData,p=0,g=0;g<f.length;g+=2){var y=f[g],m=f[g+1];d[p++]=a*y+s*m+u,d[p++]=l*m+o*y+c}}},t.prototype.closePath=function(){var n=this.currentPath;return n&&(n.closeStroke=!0,this.finishPoly()),this},t.prototype.setMatrix=function(n){return this._matrix=n,this},t.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},t.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},t.prototype.destroy=function(n){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,e.prototype.destroy.call(this,n)},t.nextRoundedRectBehavior=!1,t._TEMP_POINT=new Zn,t}(Co),Ybe={buildPoly:kw,buildCircle:Xf,buildRectangle:dk,buildRoundedRectangle:fk,buildLine:zy,ArcUtils:Ky,BezierUtils:hk,QuadraticUtils:pk,BatchPart:vk,FILL_COMMANDS:l0,BATCH_POOL:Wy,DRAW_CALL_POOL:Od};/*!
 * @pixi/sprite - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/sprite is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Yy=function(e,t){return Yy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},Yy(e,t)};function Jbe(e,t){Yy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bd=new Zn,qbe=new Uint16Array([0,1,2,0,2,3]),qc=function(e){Jbe(t,e);function t(n){var r=e.call(this)||this;return r._anchor=new Ps(r._onAnchorUpdate,r,n?n.defaultAnchor.x:0,n?n.defaultAnchor.y:0),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=on.NORMAL,r._cachedTint=16777215,r.uvs=null,r.texture=n||mn.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.indices=qbe,r.pluginName="batch",r.isSprite=!0,r._roundPixels=Nt.ROUND_PIXELS,r}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Fl(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Fl(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var n=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===n._updateID)){this._textureID!==n._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=n._updateID;var r=this.transform.worldTransform,a=r.a,o=r.b,s=r.c,l=r.d,u=r.tx,c=r.ty,f=this.vertexData,d=n.trim,p=n.orig,g=this._anchor,y=0,m=0,S=0,_=0;if(d?(m=d.x-g._x*p.width,y=m+d.width,_=d.y-g._y*p.height,S=_+d.height):(m=-g._x*p.width,y=m+p.width,_=-g._y*p.height,S=_+p.height),f[0]=a*m+s*_+u,f[1]=l*_+o*m+c,f[2]=a*y+s*_+u,f[3]=l*_+o*y+c,f[4]=a*y+s*S+u,f[5]=l*S+o*y+c,f[6]=a*m+s*S+u,f[7]=l*S+o*m+c,this._roundPixels)for(var P=Nt.RESOLUTION,A=0;A<f.length;++A)f[A]=Math.round((f[A]*P|0)/P)}},t.prototype.calculateTrimmedVertices=function(){if(!this.vertexTrimmedData)this.vertexTrimmedData=new Float32Array(8);else if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return;this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var n=this._texture,r=this.vertexTrimmedData,a=n.orig,o=this._anchor,s=this.transform.worldTransform,l=s.a,u=s.b,c=s.c,f=s.d,d=s.tx,p=s.ty,g=-o._x*a.width,y=g+a.width,m=-o._y*a.height,S=m+a.height;r[0]=l*g+c*m+d,r[1]=f*m+u*g+p,r[2]=l*y+c*m+d,r[3]=f*m+u*y+p,r[4]=l*y+c*S+d,r[5]=f*S+u*y+p,r[6]=l*g+c*S+d,r[7]=f*S+u*g+p},t.prototype._render=function(n){this.calculateVertices(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this)},t.prototype._calculateBounds=function(){var n=this._texture.trim,r=this._texture.orig;!n||n.width===r.width&&n.height===r.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},t.prototype.getLocalBounds=function(n){return this.children.length===0?(this._localBounds||(this._localBounds=new zf),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new $n),n=this._localBoundsRect),this._localBounds.getRectangle(n)):e.prototype.getLocalBounds.call(this,n)},t.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,bd);var r=this._texture.orig.width,a=this._texture.orig.height,o=-r*this.anchor.x,s=0;return bd.x>=o&&bd.x<o+r&&(s=-a*this.anchor.y,bd.y>=s&&bd.y<s+a)},t.prototype.destroy=function(n){e.prototype.destroy.call(this,n),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null;var r=typeof n=="boolean"?n:n&&n.texture;if(r){var a=typeof n=="boolean"?n:n&&n.baseTexture;this._texture.destroy(!!a)}this._texture=null},t.from=function(n,r){var a=n instanceof mn?n:mn.from(n,r);return new t(a)},Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(n){this._roundPixels!==n&&(this._transformID=-1),this._roundPixels=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(n){var r=Fl(this.scale.x)||1;this.scale.x=r*n/this._texture.orig.width,this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(n){var r=Fl(this.scale.y)||1;this.scale.y=r*n/this._texture.orig.height,this._height=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},set:function(n){this._anchor.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){this._tint=n,this._tintRGB=(n>>16)+(n&65280)+((n&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(n){this._texture!==n&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=n||mn.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,n&&(n.baseTexture.valid?this._onTextureUpdate():n.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(Co);/*!
 * @pixi/text - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/text is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Jy=function(e,t){return Jy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},Jy(e,t)};function Qbe(e,t){Jy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Oc;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(Oc||(Oc={}));var Pg={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Oc.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},Zbe=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Ys=function(){function e(t){this.styleID=0,this.reset(),Og(this,t,t)}return e.prototype.clone=function(){var t={};return Og(t,this,Pg),new e(t)},e.prototype.reset=function(){Og(this,Pg,Pg)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var n=Mg(t);this._dropShadowColor!==n&&(this._dropShadowColor=n,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var n=Mg(t);this._fill!==n&&(this._fill=n,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){e_e(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var n=Mg(t);this._stroke!==n&&(this._stroke=n,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,n=this.fontFamily;Array.isArray(this.fontFamily)||(n=this.fontFamily.split(","));for(var r=n.length-1;r>=0;r--){var a=n[r].trim();!/([\"\'])[^\'\"]+\1/.test(a)&&Zbe.indexOf(a)<0&&(a='"'+a+'"'),n[r]=a}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+n.join(",")},e}();function k4(e){return typeof e=="number"?H1(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function Mg(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=k4(e[t]);return e}else return k4(e)}function e_e(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}function Og(e,t,n){for(var r in n)Array.isArray(t[r])?e[r]=t[r].slice():e[r]=t[r]}var mp={willReadFrequently:!0},Yo=function(){function e(t,n,r,a,o,s,l,u,c){this.text=t,this.style=n,this.width=r,this.height=a,this.lines=o,this.lineWidths=s,this.lineHeight=l,this.maxLineWidth=u,this.fontProperties=c}return e.measureText=function(t,n,r,a){a===void 0&&(a=e._canvas),r=r??n.wordWrap;var o=n.toFontString(),s=e.measureFont(o);s.fontSize===0&&(s.fontSize=n.fontSize,s.ascent=n.fontSize);var l=a.getContext("2d",mp);l.font=o;for(var u=r?e.wordWrap(t,n,a):t,c=u.split(/(?:\r\n|\r|\n)/),f=new Array(c.length),d=0,p=0;p<c.length;p++){var g=l.measureText(c[p]).width+(c[p].length-1)*n.letterSpacing;f[p]=g,d=Math.max(d,g)}var y=d+n.strokeThickness;n.dropShadow&&(y+=n.dropShadowDistance);var m=n.lineHeight||s.fontSize+n.strokeThickness,S=Math.max(m,s.fontSize+n.strokeThickness)+(c.length-1)*(m+n.leading);return n.dropShadow&&(S+=n.dropShadowDistance),new e(t,n,y,S,c,f,m+n.leading,d,s)},e.wordWrap=function(t,n,r){r===void 0&&(r=e._canvas);for(var a=r.getContext("2d",mp),o=0,s="",l="",u=Object.create(null),c=n.letterSpacing,f=n.whiteSpace,d=e.collapseSpaces(f),p=e.collapseNewlines(f),g=!d,y=n.wordWrapWidth+c,m=e.tokenize(t),S=0;S<m.length;S++){var _=m[S];if(e.isNewline(_)){if(!p){l+=e.addLine(s),g=!d,s="",o=0;continue}_=" "}if(d){var P=e.isBreakingSpace(_),A=e.isBreakingSpace(s[s.length-1]);if(P&&A)continue}var $=e.getFromCache(_,c,u,a);if($>y)if(s!==""&&(l+=e.addLine(s),s="",o=0),e.canBreakWords(_,n.breakWords))for(var k=e.wordWrapSplit(_),L=0;L<k.length;L++){for(var B=k[L],H=1;k[L+H];){var G=k[L+H],j=B[B.length-1];if(!e.canBreakChars(j,G,_,L,n.breakWords))B+=G;else break;H++}L+=B.length-1;var W=e.getFromCache(B,c,u,a);W+o>y&&(l+=e.addLine(s),g=!1,s="",o=0),s+=B,o+=W}else{s.length>0&&(l+=e.addLine(s),s="",o=0);var Q=S===m.length-1;l+=e.addLine(_,!Q),g=!1,s="",o=0}else $+o>y&&(g=!1,l+=e.addLine(s),s="",o=0),(s.length>0||!e.isBreakingSpace(_)||g)&&(s+=_,o+=$)}return l+=e.addLine(s,!1),l},e.addLine=function(t,n){return n===void 0&&(n=!0),t=e.trimRight(t),t=n?t+`
`:t,t},e.getFromCache=function(t,n,r,a){var o=r[t];if(typeof o!="number"){var s=t.length*n;o=a.measureText(t).width+s,r[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var n=t.length-1;n>=0;n--){var r=t[n];if(!e.isBreakingSpace(r))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,n){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var n=[],r="";if(typeof t!="string")return n;for(var a=0;a<t.length;a++){var o=t[a],s=t[a+1];if(e.isBreakingSpace(o,s)||e.isNewline(o)){r!==""&&(n.push(r),r=""),n.push(o);continue}r+=o}return r!==""&&n.push(r),n},e.canBreakWords=function(t,n){return n},e.canBreakChars=function(t,n,r,a,o){return!0},e.wordWrapSplit=function(t){return t.split("")},e.measureFont=function(t){if(e._fonts[t])return e._fonts[t];var n={ascent:0,descent:0,fontSize:0},r=e._canvas,a=e._context;a.font=t;var o=e.METRICS_STRING+e.BASELINE_SYMBOL,s=Math.ceil(a.measureText(o).width),l=Math.ceil(a.measureText(e.BASELINE_SYMBOL).width),u=Math.ceil(e.HEIGHT_MULTIPLIER*l);l=l*e.BASELINE_MULTIPLIER|0,r.width=s,r.height=u,a.fillStyle="#f00",a.fillRect(0,0,s,u),a.font=t,a.textBaseline="alphabetic",a.fillStyle="#000",a.fillText(o,0,l);var c=a.getImageData(0,0,s,u).data,f=c.length,d=s*4,p=0,g=0,y=!1;for(p=0;p<l;++p){for(var m=0;m<d;m+=4)if(c[g+m]!==255){y=!0;break}if(!y)g+=d;else break}for(n.ascent=l-p,g=f-d,y=!1,p=u;p>l;--p){for(var m=0;m<d;m+=4)if(c[g+m]!==255){y=!0;break}if(!y)g-=d;else break}return n.descent=p-l,n.fontSize=n.ascent+n.descent,e._fonts[t]=n,n},e.clearMetrics=function(t){t===void 0&&(t=""),t?delete e._fonts[t]:e._fonts={}},Object.defineProperty(e,"_canvas",{get:function(){if(!e.__canvas){var t=void 0;try{var n=new OffscreenCanvas(0,0),r=n.getContext("2d",mp);if(r&&r.measureText)return e.__canvas=n,n;t=Nt.ADAPTER.createCanvas()}catch{t=Nt.ADAPTER.createCanvas()}t.width=t.height=10,e.__canvas=t}return e.__canvas},enumerable:!1,configurable:!0}),Object.defineProperty(e,"_context",{get:function(){return e.__context||(e.__context=e._canvas.getContext("2d",mp)),e.__context},enumerable:!1,configurable:!0}),e}();Yo._fonts={};Yo.METRICS_STRING="|ÉqÅ";Yo.BASELINE_SYMBOL="M";Yo.BASELINE_MULTIPLIER=1.4;Yo.HEIGHT_MULTIPLIER=2;Yo._newlines=[10,13];Yo._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var t_e={texture:!0,children:!1,baseTexture:!0},nm=function(e){Qbe(t,e);function t(n,r,a){var o=this,s=!1;a||(a=Nt.ADAPTER.createCanvas(),s=!0),a.width=3,a.height=3;var l=mn.from(a);return l.orig=new $n,l.trim=new $n,o=e.call(this,l)||this,o._ownCanvas=s,o.canvas=a,o.context=a.getContext("2d",{willReadFrequently:!0}),o._resolution=Nt.RESOLUTION,o._autoResolution=!0,o._text=null,o._style=null,o._styleListener=null,o._font="",o.text=n,o.style=r,o.localStyleID=-1,o}return t.prototype.updateText=function(n){var r=this._style;if(this.localStyleID!==r.styleID&&(this.dirty=!0,this.localStyleID=r.styleID),!(!this.dirty&&n)){this._font=this._style.toFontString();var a=this.context,o=Yo.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),s=o.width,l=o.height,u=o.lines,c=o.lineHeight,f=o.lineWidths,d=o.maxLineWidth,p=o.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,s)+r.padding*2)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,l)+r.padding*2)*this._resolution),a.scale(this._resolution,this._resolution),a.clearRect(0,0,this.canvas.width,this.canvas.height),a.font=this._font,a.lineWidth=r.strokeThickness,a.textBaseline=r.textBaseline,a.lineJoin=r.lineJoin,a.miterLimit=r.miterLimit;for(var g,y,m=r.dropShadow?2:1,S=0;S<m;++S){var _=r.dropShadow&&S===0,P=_?Math.ceil(Math.max(1,l)+r.padding*2):0,A=P*this._resolution;if(_){a.fillStyle="black",a.strokeStyle="black";var $=r.dropShadowColor,k=iu(typeof $=="number"?$:U1($)),L=r.dropShadowBlur*this._resolution,B=r.dropShadowDistance*this._resolution;a.shadowColor="rgba("+k[0]*255+","+k[1]*255+","+k[2]*255+","+r.dropShadowAlpha+")",a.shadowBlur=L,a.shadowOffsetX=Math.cos(r.dropShadowAngle)*B,a.shadowOffsetY=Math.sin(r.dropShadowAngle)*B+A}else a.fillStyle=this._generateFillStyle(r,u,o),a.strokeStyle=r.stroke,a.shadowColor="black",a.shadowBlur=0,a.shadowOffsetX=0,a.shadowOffsetY=0;var H=(c-p.fontSize)/2;(!t.nextLineHeightBehavior||c-p.fontSize<0)&&(H=0);for(var G=0;G<u.length;G++)g=r.strokeThickness/2,y=r.strokeThickness/2+G*c+p.ascent+H,r.align==="right"?g+=d-f[G]:r.align==="center"&&(g+=(d-f[G])/2),r.stroke&&r.strokeThickness&&this.drawLetterSpacing(u[G],g+r.padding,y+r.padding-P,!0),r.fill&&this.drawLetterSpacing(u[G],g+r.padding,y+r.padding-P)}this.updateTexture()}},t.prototype.drawLetterSpacing=function(n,r,a,o){o===void 0&&(o=!1);var s=this._style,l=s.letterSpacing,u=t.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(l===0||u){u&&(this.context.letterSpacing=l,this.context.textLetterSpacing=l),o?this.context.strokeText(n,r,a):this.context.fillText(n,r,a);return}for(var c=r,f=Array.from?Array.from(n):n.split(""),d=this.context.measureText(n).width,p=0,g=0;g<f.length;++g){var y=f[g];o?this.context.strokeText(y,c,a):this.context.fillText(y,c,a);for(var m="",S=g+1;S<f.length;++S)m+=f[S];p=this.context.measureText(m).width,c+=d-p+l,d=p}},t.prototype.updateTexture=function(){var n=this.canvas;if(this._style.trim){var r=uR(n);r.data&&(n.width=r.width,n.height=r.height,this.context.putImageData(r.data,0,0))}var a=this._texture,o=this._style,s=o.trim?0:o.padding,l=a.baseTexture;a.trim.width=a._frame.width=n.width/this._resolution,a.trim.height=a._frame.height=n.height/this._resolution,a.trim.x=-s,a.trim.y=-s,a.orig.width=a._frame.width-s*2,a.orig.height=a._frame.height-s*2,this._onTextureUpdate(),l.setRealSize(n.width,n.height,this._resolution),a.updateUvs(),this.dirty=!1},t.prototype._render=function(n){this._autoResolution&&this._resolution!==n.resolution&&(this._resolution=n.resolution,this.dirty=!0),this.updateText(!0),e.prototype._render.call(this,n)},t.prototype.updateTransform=function(){this.updateText(!0),e.prototype.updateTransform.call(this)},t.prototype.getBounds=function(n,r){return this.updateText(!0),this._textureID===-1&&(n=!1),e.prototype.getBounds.call(this,n,r)},t.prototype.getLocalBounds=function(n){return this.updateText(!0),e.prototype.getLocalBounds.call(this,n)},t.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)},t.prototype._generateFillStyle=function(n,r,a){var o=n.fill;if(Array.isArray(o)){if(o.length===1)return o[0]}else return o;var s,l=n.dropShadow?n.dropShadowDistance:0,u=n.padding||0,c=this.canvas.width/this._resolution-l-u*2,f=this.canvas.height/this._resolution-l-u*2,d=o.slice(),p=n.fillGradientStops.slice();if(!p.length)for(var g=d.length+1,y=1;y<g;++y)p.push(y/g);if(d.unshift(o[0]),p.unshift(0),d.push(o[o.length-1]),p.push(1),n.fillGradientType===Oc.LINEAR_VERTICAL){s=this.context.createLinearGradient(c/2,u,c/2,f+u);for(var m=a.fontProperties.fontSize+n.strokeThickness,y=0;y<r.length;y++){var S=a.lineHeight*(y-1)+m,_=a.lineHeight*y,P=_;y>0&&S>_&&(P=(_+S)/2);var A=_+m,$=a.lineHeight*(y+1),k=A;y+1<r.length&&$<A&&(k=(A+$)/2);for(var L=(k-P)/f,B=0;B<d.length;B++){var H=0;typeof p[B]=="number"?H=p[B]:H=B/d.length;var G=Math.min(1,Math.max(0,P/f+H*L));G=Number(G.toFixed(5)),s.addColorStop(G,d[B])}}}else{s=this.context.createLinearGradient(u,f/2,c+u,f/2);for(var j=d.length+1,W=1,y=0;y<d.length;y++){var Q=void 0;typeof p[y]=="number"?Q=p[y]:Q=W/j,s.addColorStop(Q,d[y]),W++}}return s},t.prototype.destroy=function(n){typeof n=="boolean"&&(n={children:n}),n=Object.assign({},t_e,n),e.prototype.destroy.call(this,n),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(n){this.updateText(!0);var r=Fl(this.scale.x)||1;this.scale.x=r*n/this._texture.orig.width,this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(n){this.updateText(!0);var r=Fl(this.scale.y)||1;this.scale.y=r*n/this._texture.orig.height,this._height=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},set:function(n){n=n||{},n instanceof Ys?this._style=n:this._style=new Ys(n),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(n){n=String(n??""),this._text!==n&&(this._text=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(n){this._autoResolution=!1,this._resolution!==n&&(this._resolution=n,this.dirty=!0)},enumerable:!1,configurable:!0}),t.nextLineHeightBehavior=!1,t.experimentalLetterSpacing=!1,t}(qc),L4=Math.pow;const n_e=new $n;class r_e extends Mc{constructor(){super(),this.initialized=!1,this.texts=[],this.strokeWidth=4,this.normalColor=14883354,this.activeColor=2017330,this.interactive=!0,this.on("added",this.init).on("pointermove",this.onPointerMove)}init(){const t=this.parent.internalModel,n=new Ys({fontSize:24,fill:"#ffffff",stroke:"#000000",strokeThickness:4});this.texts=Object.keys(t.hitAreas).map(r=>{const a=new nm(r,n);return a.visible=!1,this.addChild(a),a})}onPointerMove(t){const n=this.parent.hitTest(t.data.global.x,t.data.global.y);this.texts.forEach(r=>{r.visible=n.includes(r.text)})}_render(t){const n=this.parent.internalModel,r=1/Math.sqrt(L4(this.transform.worldTransform.a,2)+L4(this.transform.worldTransform.b,2));this.texts.forEach(a=>{this.lineStyle({width:this.strokeWidth*r,color:a.visible?this.activeColor:this.normalColor});const o=n.getDrawableBounds(n.hitAreas[a.text].index,n_e),s=n.localTransform;o.x=o.x*s.a+s.tx,o.y=o.y*s.d+s.ty,o.width=o.width*s.a,o.height=o.height*s.d,this.drawRect(o.x,o.y,o.width,o.height),a.x=o.x+this.strokeWidth*r,a.y=o.y+this.strokeWidth*r,a.scale.set(r)}),super._render(t),this.clear()}}class a_e{constructor(t,n){wn(this,"model"),wn(this,"currentModelIndex",0),wn(this,"currentClothesIndex",0),wn(this,"hitAreaFrames"),this.options=t,this.events=n,this.hitAreaFrames=new r_e}get modelIndex(){return this.currentModelIndex}set modelIndex(t){this.currentModelIndex=t}get modelClothesIndex(){return this.currentClothesIndex}set modelClothesIndex(t){this.currentClothesIndex=t}get currentModelOptions(){return this.options.models[this.modelIndex]}create(){return new Promise((t,n)=>{this.events.emit("load","loading");let r=this.currentModelOptions.path;Array.isArray(r)&&(r=this.currentModelOptions.path[this.modelClothesIndex]),this.model=rk.fromSync(r,{motionPreload:this.currentModelOptions.motionPreloadStrategy||$$.IDLE,onError:()=>{this.events.emit("load","fail"),n()}}),this.model.on("load",()=>{this.events.emit("load","success"),t()}),this.model.on("hit",a=>{this.events.emit("hit",a),this.playRandomMotion(a)})})}settingModel(){switch(Kc()){case ha.mobile:this.setPosition(...this.currentModelOptions.mobilePosition||[]),this.setScale(this.currentModelOptions.mobileScale);break;case ha.pc:this.setPosition(...this.currentModelOptions.position||[]),this.setScale(this.currentModelOptions.scale);break}this.currentModelOptions.showHitAreaFrames&&this.addHitAreaFrames(),U0(this.currentModelOptions.volume)&&(Cs.volume=this.currentModelOptions.volume),this.setAnchor(...this.currentModelOptions.anchor||[]),this.setRotation(this.currentModelOptions.rotation)}addHitAreaFrames(){var t;(t=this.model)==null||t.addChild(this.hitAreaFrames)}removeHitAreaFrames(){var t;(t=this.model)==null||t.removeChildren(0)}get modelSize(){var t,n;return{width:((t=this.model)==null?void 0:t.width)||0,height:((n=this.model)==null?void 0:n.height)||0}}setScale(t=.1){var n;(n=this.model)==null||n.scale.set(t,t)}setPosition(t=0,n=0){this.model.x=t,this.model.y=n}setRotation(t=0){this.model.rotation=Math.PI*t/180}setAnchor(t=0,n=0){this.model.anchor.set(t,n)}playMotion(t,n){var r;(r=this.model)==null||r.motion(t,n)}playRandomMotion(t){var n;const r=Object.keys(((n=this.model)==null?void 0:n.internalModel.motionManager.motionGroups)||{});let a=r.find(o=>t[0].includes(o.toLowerCase())||o.toLowerCase().includes(t[0]));a||(a=py(r)),this.playMotion(a||"")}}function o_e(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function i_e(e){var t=this;return new t(function(n,r){if(!(e&&typeof e.length<"u"))return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(a.length===0)return n([]);var o=a.length;function s(u,c){if(c&&(typeof c=="object"||typeof c=="function")){var f=c.then;if(typeof f=="function"){f.call(c,function(d){s(u,d)},function(d){a[u]={status:"rejected",reason:d},--o===0&&n(a)});return}}a[u]={status:"fulfilled",value:c},--o===0&&n(a)}for(var l=0;l<a.length;l++)s(l,a[l])})}function yk(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}yk.prototype=Error.prototype;function s_e(e){var t=this;return new t(function(n,r){if(!(e&&typeof e.length<"u"))return r(new TypeError("Promise.any accepts an array"));var a=Array.prototype.slice.call(e);if(a.length===0)return r();for(var o=[],s=0;s<a.length;s++)try{t.resolve(a[s]).then(n).catch(function(l){o.push(l),o.length===a.length&&r(new yk(o,"All promises were rejected"))})}catch(l){r(l)}})}var l_e=setTimeout;function bk(e){return!!(e&&typeof e.length<"u")}function u_e(){}function c_e(e,t){return function(){e.apply(t,arguments)}}function gr(e){if(!(this instanceof gr))throw new TypeError("Promises must be constructed via new");if(typeof e!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],wk(e,this)}function _k(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,gr._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null){(e._state===1?qy:Yf)(t.promise,e._value);return}var r;try{r=n(e._value)}catch(a){Yf(t.promise,a);return}qy(t.promise,r)})}function qy(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&(typeof t=="object"||typeof t=="function")){var n=t.then;if(t instanceof gr){e._state=3,e._value=t,Qy(e);return}else if(typeof n=="function"){wk(c_e(n,t),e);return}}e._state=1,e._value=t,Qy(e)}catch(r){Yf(e,r)}}function Yf(e,t){e._state=2,e._value=t,Qy(e)}function Qy(e){e._state===2&&e._deferreds.length===0&&gr._immediateFn(function(){e._handled||gr._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)_k(e,e._deferreds[t]);e._deferreds=null}function d_e(e,t,n){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.promise=n}function wk(e,t){var n=!1;try{e(function(r){n||(n=!0,qy(t,r))},function(r){n||(n=!0,Yf(t,r))})}catch(r){if(n)return;n=!0,Yf(t,r)}}gr.prototype.catch=function(e){return this.then(null,e)};gr.prototype.then=function(e,t){var n=new this.constructor(u_e);return _k(this,new d_e(e,t,n)),n};gr.prototype.finally=o_e;gr.all=function(e){return new gr(function(t,n){if(!bk(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var a=r.length;function o(l,u){try{if(u&&(typeof u=="object"||typeof u=="function")){var c=u.then;if(typeof c=="function"){c.call(u,function(f){o(l,f)},n);return}}r[l]=u,--a===0&&t(r)}catch(f){n(f)}}for(var s=0;s<r.length;s++)o(s,r[s])})};gr.any=s_e;gr.allSettled=i_e;gr.resolve=function(e){return e&&typeof e=="object"&&e.constructor===gr?e:new gr(function(t){t(e)})};gr.reject=function(e){return new gr(function(t,n){n(e)})};gr.race=function(e){return new gr(function(t,n){if(!bk(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,a=e.length;r<a;r++)gr.resolve(e[r]).then(t,n)})};gr._immediateFn=typeof setImmediate=="function"&&function(e){setImmediate(e)}||function(e){l_e(e,0)};gr._unhandledRejectionFn=function(e){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var N4=Object.getOwnPropertySymbols,f_e=Object.prototype.hasOwnProperty,h_e=Object.prototype.propertyIsEnumerable;function p_e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function v_e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var m_e=v_e()?Object.assign:function(e,t){for(var n,r=p_e(e),a,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)f_e.call(n,s)&&(r[s]=n[s]);if(N4){a=N4(n);for(var l=0;l<a.length;l++)h_e.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r};const g_e=M1(m_e);/*!
 * @pixi/polyfill - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/polyfill is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */typeof globalThis>"u"&&(typeof self<"u"?self.globalThis=self:typeof global<"u"&&(global.globalThis=global));globalThis.Promise||(globalThis.Promise=gr);Object.assign||(Object.assign=g_e);var y_e=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()});if(!(globalThis.performance&&globalThis.performance.now)){var b_e=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-b_e}}var $g=Date.now(),D4=["ms","moz","webkit","o"];for(var Rg=0;Rg<D4.length&&!globalThis.requestAnimationFrame;++Rg){var kg=D4[Rg];globalThis.requestAnimationFrame=globalThis[kg+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[kg+"CancelAnimationFrame"]||globalThis[kg+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(e){if(typeof e!="function")throw new TypeError(e+"is not a function");var t=Date.now(),n=y_e+$g-t;return n<0&&(n=0),$g=t,globalThis.self.setTimeout(function(){$g=Date.now(),e(performance.now())},n)});globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(e){return clearTimeout(e)});Math.sign||(Math.sign=function(e){return e=Number(e),e===0||isNaN(e)?e:e>0?1:-1});Number.isInteger||(Number.isInteger=function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);/*!
 * @pixi/accessibility - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/accessibility is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var Sk={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};br.mixin(Sk);var __e=9,gp=100,w_e=0,S_e=0,F4=2,B4=1,T_e=-1e3,E_e=-1e3,C_e=2,Tk=function(){function e(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(fo.tablet||fo.phone)&&this.createTouchHook();var n=document.createElement("div");n.style.width=gp+"px",n.style.height=gp+"px",n.style.position="absolute",n.style.top=w_e+"px",n.style.left=S_e+"px",n.style.zIndex=F4.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),e.prototype.createTouchHook=function(){var t=this,n=document.createElement("button");n.style.width=B4+"px",n.style.height=B4+"px",n.style.position="absolute",n.style.top=T_e+"px",n.style.left=E_e+"px",n.style.zIndex=C_e.toString(),n.style.backgroundColor="#FF0000",n.title="select to enable accessibility for this content",n.addEventListener("focus",function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()}),document.body.appendChild(n),this._hookDiv=n},e.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},e.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)===null||t===void 0||t.appendChild(this.div))},e.prototype.deactivate=function(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)===null||t===void 0||t.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(t){if(!(!t.visible||!t.accessibleChildren)){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var n=t.children;if(n)for(var r=0;r<n.length;r++)this.updateAccessibleObjects(n[r])}},e.prototype.update=function(){var t=performance.now();if(!(fo.android.device&&t<this.androidUpdateCount)&&(this.androidUpdateCount=t+this.androidUpdateFrequency,!!this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var n=this.renderer.view.getBoundingClientRect(),r=n.left,a=n.top,o=n.width,s=n.height,l=this.renderer,u=l.width,c=l.height,f=l.resolution,d=o/u*f,p=s/c*f,g=this.div;g.style.left=r+"px",g.style.top=a+"px",g.style.width=u+"px",g.style.height=c+"px";for(var y=0;y<this.children.length;y++){var m=this.children[y];if(m.renderId!==this.renderId)m._accessibleActive=!1,Wl(this.children,y,1),this.div.removeChild(m._accessibleDiv),this.pool.push(m._accessibleDiv),m._accessibleDiv=null,y--;else{g=m._accessibleDiv;var S=m.hitArea,_=m.worldTransform;m.hitArea?(g.style.left=(_.tx+S.x*_.a)*d+"px",g.style.top=(_.ty+S.y*_.d)*p+"px",g.style.width=S.width*_.a*d+"px",g.style.height=S.height*_.d*p+"px"):(S=m.getBounds(),this.capHitArea(S),g.style.left=S.x*d+"px",g.style.top=S.y*p+"px",g.style.width=S.width*d+"px",g.style.height=S.height*p+"px",g.title!==m.accessibleTitle&&m.accessibleTitle!==null&&(g.title=m.accessibleTitle),g.getAttribute("aria-label")!==m.accessibleHint&&m.accessibleHint!==null&&g.setAttribute("aria-label",m.accessibleHint)),(m.accessibleTitle!==g.title||m.tabIndex!==g.tabIndex)&&(g.title=m.accessibleTitle,g.tabIndex=m.tabIndex,this.debug&&this.updateDebugHTML(g))}}this.renderId++}},e.prototype.updateDebugHTML=function(t){t.innerHTML="type: "+t.type+"</br> title : "+t.title+"</br> tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var n=this.renderer,r=n.width,a=n.height;t.x+t.width>r&&(t.width=r-t.x),t.y+t.height>a&&(t.height=a-t.y)},e.prototype.addChild=function(t){var n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=gp+"px",n.style.height=gp+"px",n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=F4.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var n=this.renderer.plugins.interaction,r=t.target.displayObject,a=n.eventData;n.dispatchEvent(r,"click",a),n.dispatchEvent(r,"pointertap",a),n.dispatchEvent(r,"tap",a)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var n=this.renderer.plugins.interaction,r=t.target.displayObject,a=n.eventData;n.dispatchEvent(r,"mouseover",a)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var n=this.renderer.plugins.interaction,r=t.target.displayObject,a=n.eventData;n.dispatchEvent(r,"mouseout",a)},e.prototype._onKeyDown=function(t){t.keyCode===__e&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e.extension={name:"accessibility",type:[Kn.RendererPlugin,Kn.CanvasRendererPlugin]},e}();/*!
 * @pixi/interaction - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/interaction is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var Zy=function(){function e(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new Zn,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(e.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),e.prototype.getLocalPosition=function(t,n,r){return t.worldTransform.applyInverse(r||this.global,n)},e.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var n="buttons"in t&&t.buttons;this.buttons=Number.isInteger(n)?n:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},e}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var eb=function(e,t){return eb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},eb(e,t)};function x_e(e,t){eb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ek=function(){function e(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},e.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},e}(),u0=function(){function e(t){this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,n){n?this._flags=this._flags|t:this._flags=this._flags&~t},Object.defineProperty(e.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"none",{get:function(){return this._flags===e.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"over",{get:function(){return(this._flags&e.FLAGS.OVER)!==0},set:function(t){this._doSet(e.FLAGS.OVER,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightDown",{get:function(){return(this._flags&e.FLAGS.RIGHT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.RIGHT_DOWN,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftDown",{get:function(){return(this._flags&e.FLAGS.LEFT_DOWN)!==0},set:function(t){this._doSet(e.FLAGS.LEFT_DOWN,t)},enumerable:!1,configurable:!0}),e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),e}(),I_e=function(){function e(){this._tempPoint=new Zn}return e.prototype.recursiveFindHit=function(t,n,r,a,o){var s;if(!n||!n.visible)return!1;var l=t.data.global;o=n.interactive||o;var u=!1,c=o,f=!0;if(n.hitArea)a&&(n.worldTransform.applyInverse(l,this._tempPoint),n.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?u=!0:(a=!1,f=!1)),c=!1;else if(n._mask&&a){var d=n._mask.isMaskData?n._mask.maskObject:n._mask;d&&!(!((s=d.containsPoint)===null||s===void 0)&&s.call(d,l))&&(a=!1)}if(f&&n.interactiveChildren&&n.children)for(var p=n.children,g=p.length-1;g>=0;g--){var y=p[g],m=this.recursiveFindHit(t,y,r,a,c);if(m){if(!y.parent)continue;c=!1,m&&(t.target&&(a=!1),u=!0)}}return o&&(a&&!t.target&&!n.hitArea&&n.containsPoint&&n.containsPoint(l)&&(u=!0),n.interactive&&(u&&!t.target&&(t.target=n),r&&r(t,n,!!u))),u},e.prototype.findHit=function(t,n,r,a){this.recursiveFindHit(t,n,r,a,!1)},e}(),Ck={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};br.mixin(Ck);var yp=1,bp={target:null,data:{global:null}},xk=function(e){x_e(t,e);function t(n,r){var a=e.call(this)||this;return r=r||{},a.renderer=n,a.autoPreventDefault=r.autoPreventDefault!==void 0?r.autoPreventDefault:!0,a.interactionFrequency=r.interactionFrequency||10,a.mouse=new Zy,a.mouse.identifier=yp,a.mouse.global.set(-999999),a.activeInteractionData={},a.activeInteractionData[yp]=a.mouse,a.interactionDataPool=[],a.eventData=new Ek,a.interactionDOMElement=null,a.moveWhenInside=!1,a.eventsAdded=!1,a.tickerAdded=!1,a.mouseOverRenderer=!("PointerEvent"in globalThis),a.supportsTouchEvents="ontouchstart"in globalThis,a.supportsPointerEvents=!!globalThis.PointerEvent,a.onPointerUp=a.onPointerUp.bind(a),a.processPointerUp=a.processPointerUp.bind(a),a.onPointerCancel=a.onPointerCancel.bind(a),a.processPointerCancel=a.processPointerCancel.bind(a),a.onPointerDown=a.onPointerDown.bind(a),a.processPointerDown=a.processPointerDown.bind(a),a.onPointerMove=a.onPointerMove.bind(a),a.processPointerMove=a.processPointerMove.bind(a),a.onPointerOut=a.onPointerOut.bind(a),a.processPointerOverOut=a.processPointerOverOut.bind(a),a.onPointerOver=a.onPointerOver.bind(a),a.cursorStyles={default:"inherit",pointer:"pointer"},a.currentCursorMode=null,a.cursor=null,a.resolution=1,a.delayedEvents=[],a.search=new I_e,a._tempDisplayObject=new _w,a._eventListenerOptions={capture:!0,passive:!1},a._useSystemTicker=r.useSystemTicker!==void 0?r.useSystemTicker:!0,a.setTargetElement(a.renderer.view,a.renderer.resolution),a}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(n){this._useSystemTicker=n,n?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(n,r){return bp.target=null,bp.data.global=n,r||(r=this.lastObjectRendered),this.processInteractive(bp,r,null,!0),bp.target},t.prototype.setTargetElement=function(n,r){r===void 0&&(r=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=n,this.resolution=r,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(Kr.system.add(this.tickerUpdate,this,_i.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){this.tickerAdded&&(Kr.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var n=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(n.msContentZooming="none",n.msTouchAction="none"):this.supportsPointerEvents&&(n.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var n=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(n.msContentZooming="",n.msTouchAction=""):this.supportsPointerEvents&&(n.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(n){this._deltaTime+=n,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())},t.prototype.update=function(){if(this.interactionDOMElement){if(this._didMove){this._didMove=!1;return}this.cursor=null;for(var n in this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(n)){var r=this.activeInteractionData[n];if(r.originalEvent&&r.pointerType!=="touch"){var a=this.configureInteractionEventForDOMEvent(this.eventData,r.originalEvent,r);this.processInteractive(a,this.lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},t.prototype.setCursorMode=function(n){n=n||"default";var r=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(r=!1),this.currentCursorMode!==n){this.currentCursorMode=n;var a=this.cursorStyles[n];if(a)switch(typeof a){case"string":r&&(this.interactionDOMElement.style.cursor=a);break;case"function":a(n);break;case"object":r&&Object.assign(this.interactionDOMElement.style,a);break}else r&&typeof n=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,n)&&(this.interactionDOMElement.style.cursor=n)}},t.prototype.dispatchEvent=function(n,r,a){(!a.stopPropagationHint||n===a.stopsPropagatingAt)&&(a.currentTarget=n,a.type=r,n.emit(r,a),n[r]&&n[r](a))},t.prototype.delayDispatchEvent=function(n,r,a){this.delayedEvents.push({displayObject:n,eventString:r,eventData:a})},t.prototype.mapPositionToPoint=function(n,r,a){var o;this.interactionDOMElement.parentElement?o=this.interactionDOMElement.getBoundingClientRect():o={x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0};var s=1/this.resolution;n.x=(r-o.left)*(this.interactionDOMElement.width/o.width)*s,n.y=(a-o.top)*(this.interactionDOMElement.height/o.height)*s},t.prototype.processInteractive=function(n,r,a,o){var s=this.search.findHit(n,r,a,o),l=this.delayedEvents;if(!l.length)return s;n.stopPropagationHint=!1;var u=l.length;this.delayedEvents=[];for(var c=0;c<u;c++){var f=l[c],d=f.displayObject,p=f.eventString,g=f.eventData;g.stopsPropagatingAt===d&&(g.stopPropagationHint=!0),this.dispatchEvent(d,p,g)}return s},t.prototype.onPointerDown=function(n){if(!(this.supportsTouchEvents&&n.pointerType==="touch")){var r=this.normalizeToPointerData(n);if(this.autoPreventDefault&&r[0].isNormalized){var a=n.cancelable||!("cancelable"in n);a&&n.preventDefault()}for(var o=r.length,s=0;s<o;s++){var l=r[s],u=this.getInteractionDataForPointerId(l),c=this.configureInteractionEventForDOMEvent(this.eventData,l,u);if(c.data.originalEvent=n,this.processInteractive(c,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",c),l.pointerType==="touch")this.emit("touchstart",c);else if(l.pointerType==="mouse"||l.pointerType==="pen"){var f=l.button===2;this.emit(f?"rightdown":"mousedown",this.eventData)}}}},t.prototype.processPointerDown=function(n,r,a){var o=n.data,s=n.data.identifier;if(a){if(r.trackedPointers[s]||(r.trackedPointers[s]=new u0(s)),this.dispatchEvent(r,"pointerdown",n),o.pointerType==="touch")this.dispatchEvent(r,"touchstart",n);else if(o.pointerType==="mouse"||o.pointerType==="pen"){var l=o.button===2;l?r.trackedPointers[s].rightDown=!0:r.trackedPointers[s].leftDown=!0,this.dispatchEvent(r,l?"rightdown":"mousedown",n)}}},t.prototype.onPointerComplete=function(n,r,a){var o=this.normalizeToPointerData(n),s=o.length,l=n.target;n.composedPath&&n.composedPath().length>0&&(l=n.composedPath()[0]);for(var u=l!==this.interactionDOMElement?"outside":"",c=0;c<s;c++){var f=o[c],d=this.getInteractionDataForPointerId(f),p=this.configureInteractionEventForDOMEvent(this.eventData,f,d);if(p.data.originalEvent=n,this.processInteractive(p,this.lastObjectRendered,a,r||!u),this.emit(r?"pointercancel":"pointerup"+u,p),f.pointerType==="mouse"||f.pointerType==="pen"){var g=f.button===2;this.emit(g?"rightup"+u:"mouseup"+u,p)}else f.pointerType==="touch"&&(this.emit(r?"touchcancel":"touchend"+u,p),this.releaseInteractionDataForPointerId(f.pointerId))}},t.prototype.onPointerCancel=function(n){this.supportsTouchEvents&&n.pointerType==="touch"||this.onPointerComplete(n,!0,this.processPointerCancel)},t.prototype.processPointerCancel=function(n,r){var a=n.data,o=n.data.identifier;r.trackedPointers[o]!==void 0&&(delete r.trackedPointers[o],this.dispatchEvent(r,"pointercancel",n),a.pointerType==="touch"&&this.dispatchEvent(r,"touchcancel",n))},t.prototype.onPointerUp=function(n){this.supportsTouchEvents&&n.pointerType==="touch"||this.onPointerComplete(n,!1,this.processPointerUp)},t.prototype.processPointerUp=function(n,r,a){var o=n.data,s=n.data.identifier,l=r.trackedPointers[s],u=o.pointerType==="touch",c=o.pointerType==="mouse"||o.pointerType==="pen",f=!1;if(c){var d=o.button===2,p=u0.FLAGS,g=d?p.RIGHT_DOWN:p.LEFT_DOWN,y=l!==void 0&&l.flags&g;a?(this.dispatchEvent(r,d?"rightup":"mouseup",n),y&&(this.dispatchEvent(r,d?"rightclick":"click",n),f=!0)):y&&this.dispatchEvent(r,d?"rightupoutside":"mouseupoutside",n),l&&(d?l.rightDown=!1:l.leftDown=!1)}a?(this.dispatchEvent(r,"pointerup",n),u&&this.dispatchEvent(r,"touchend",n),l&&((!c||f)&&this.dispatchEvent(r,"pointertap",n),u&&(this.dispatchEvent(r,"tap",n),l.over=!1))):l&&(this.dispatchEvent(r,"pointerupoutside",n),u&&this.dispatchEvent(r,"touchendoutside",n)),l&&l.none&&delete r.trackedPointers[s]},t.prototype.onPointerMove=function(n){if(!(this.supportsTouchEvents&&n.pointerType==="touch")){var r=this.normalizeToPointerData(n);(r[0].pointerType==="mouse"||r[0].pointerType==="pen")&&(this._didMove=!0,this.cursor=null);for(var a=r.length,o=0;o<a;o++){var s=r[o],l=this.getInteractionDataForPointerId(s),u=this.configureInteractionEventForDOMEvent(this.eventData,s,l);u.data.originalEvent=n,this.processInteractive(u,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",u),s.pointerType==="touch"&&this.emit("touchmove",u),(s.pointerType==="mouse"||s.pointerType==="pen")&&this.emit("mousemove",u)}r[0].pointerType==="mouse"&&this.setCursorMode(this.cursor)}},t.prototype.processPointerMove=function(n,r,a){var o=n.data,s=o.pointerType==="touch",l=o.pointerType==="mouse"||o.pointerType==="pen";l&&this.processPointerOverOut(n,r,a),(!this.moveWhenInside||a)&&(this.dispatchEvent(r,"pointermove",n),s&&this.dispatchEvent(r,"touchmove",n),l&&this.dispatchEvent(r,"mousemove",n))},t.prototype.onPointerOut=function(n){if(!(this.supportsTouchEvents&&n.pointerType==="touch")){var r=this.normalizeToPointerData(n),a=r[0];a.pointerType==="mouse"&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var o=this.getInteractionDataForPointerId(a),s=this.configureInteractionEventForDOMEvent(this.eventData,a,o);s.data.originalEvent=a,this.processInteractive(s,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",s),a.pointerType==="mouse"||a.pointerType==="pen"?this.emit("mouseout",s):this.releaseInteractionDataForPointerId(o.identifier)}},t.prototype.processPointerOverOut=function(n,r,a){var o=n.data,s=n.data.identifier,l=o.pointerType==="mouse"||o.pointerType==="pen",u=r.trackedPointers[s];a&&!u&&(u=r.trackedPointers[s]=new u0(s)),u!==void 0&&(a&&this.mouseOverRenderer?(u.over||(u.over=!0,this.delayDispatchEvent(r,"pointerover",n),l&&this.delayDispatchEvent(r,"mouseover",n)),l&&this.cursor===null&&(this.cursor=r.cursor)):u.over&&(u.over=!1,this.dispatchEvent(r,"pointerout",this.eventData),l&&this.dispatchEvent(r,"mouseout",n),u.none&&delete r.trackedPointers[s]))},t.prototype.onPointerOver=function(n){if(!(this.supportsTouchEvents&&n.pointerType==="touch")){var r=this.normalizeToPointerData(n),a=r[0],o=this.getInteractionDataForPointerId(a),s=this.configureInteractionEventForDOMEvent(this.eventData,a,o);s.data.originalEvent=a,a.pointerType==="mouse"&&(this.mouseOverRenderer=!0),this.emit("pointerover",s),(a.pointerType==="mouse"||a.pointerType==="pen")&&this.emit("mouseover",s)}},t.prototype.getInteractionDataForPointerId=function(n){var r=n.pointerId,a;return r===yp||n.pointerType==="mouse"?a=this.mouse:this.activeInteractionData[r]?a=this.activeInteractionData[r]:(a=this.interactionDataPool.pop()||new Zy,a.identifier=r,this.activeInteractionData[r]=a),a.copyEvent(n),a},t.prototype.releaseInteractionDataForPointerId=function(n){var r=this.activeInteractionData[n];r&&(delete this.activeInteractionData[n],r.reset(),this.interactionDataPool.push(r))},t.prototype.configureInteractionEventForDOMEvent=function(n,r,a){return n.data=a,this.mapPositionToPoint(a.global,r.clientX,r.clientY),r.pointerType==="touch"&&(r.globalX=a.global.x,r.globalY=a.global.y),a.originalEvent=r,n.reset(),n},t.prototype.normalizeToPointerData=function(n){var r=[];if(this.supportsTouchEvents&&n instanceof TouchEvent)for(var a=0,o=n.changedTouches.length;a<o;a++){var s=n.changedTouches[a];typeof s.button>"u"&&(s.button=n.touches.length?1:0),typeof s.buttons>"u"&&(s.buttons=n.touches.length?1:0),typeof s.isPrimary>"u"&&(s.isPrimary=n.touches.length===1&&n.type==="touchstart"),typeof s.width>"u"&&(s.width=s.radiusX||1),typeof s.height>"u"&&(s.height=s.radiusY||1),typeof s.tiltX>"u"&&(s.tiltX=0),typeof s.tiltY>"u"&&(s.tiltY=0),typeof s.pointerType>"u"&&(s.pointerType="touch"),typeof s.pointerId>"u"&&(s.pointerId=s.identifier||0),typeof s.pressure>"u"&&(s.pressure=s.force||.5),typeof s.twist>"u"&&(s.twist=0),typeof s.tangentialPressure>"u"&&(s.tangentialPressure=0),typeof s.layerX>"u"&&(s.layerX=s.offsetX=s.clientX),typeof s.layerY>"u"&&(s.layerY=s.offsetY=s.clientY),s.isNormalized=!0,r.push(s)}else if(!globalThis.MouseEvent||n instanceof MouseEvent&&(!this.supportsPointerEvents||!(n instanceof globalThis.PointerEvent))){var l=n;typeof l.isPrimary>"u"&&(l.isPrimary=!0),typeof l.width>"u"&&(l.width=1),typeof l.height>"u"&&(l.height=1),typeof l.tiltX>"u"&&(l.tiltX=0),typeof l.tiltY>"u"&&(l.tiltY=0),typeof l.pointerType>"u"&&(l.pointerType="mouse"),typeof l.pointerId>"u"&&(l.pointerId=yp),typeof l.pressure>"u"&&(l.pressure=.5),typeof l.twist>"u"&&(l.twist=0),typeof l.tangentialPressure>"u"&&(l.tangentialPressure=0),l.isNormalized=!0,r.push(l)}else r.push(n);return r},t.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},t.extension={name:"interaction",type:[Kn.RendererPlugin,Kn.CanvasRendererPlugin]},t}(as);/*!
 * @pixi/extract - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/extract is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var A_e=new $n,P_e=4,Ik=function(){function e(t){this.renderer=t}return e.prototype.image=function(t,n,r){var a=new Image;return a.src=this.base64(t,n,r),a},e.prototype.base64=function(t,n,r){return this.canvas(t).toDataURL(n,r)},e.prototype.canvas=function(t,n){var r=this._rawPixels(t,n),a=r.pixels,o=r.width,s=r.height,l=r.flipY,u=new Ry(o,s,1),c=u.context.getImageData(0,0,o,s);if(e.arrayPostDivide(a,c.data),u.context.putImageData(c,0,0),l){var f=new Ry(u.width,u.height,1);f.context.scale(1,-1),f.context.drawImage(u.canvas,0,-s),u.destroy(),u=f}return u.canvas},e.prototype.pixels=function(t,n){var r=this._rawPixels(t,n).pixels;return e.arrayPostDivide(r,r),r},e.prototype._rawPixels=function(t,n){var r=this.renderer,a,o=!1,s,l=!1;if(t)if(t instanceof Ws)s=t;else{var u=r.context.webGLVersion>=2?r.multisample:sr.NONE;if(s=this.renderer.generateTexture(t,{multisample:u}),u!==sr.NONE){var c=Ws.create({width:s.width,height:s.height});r.framebuffer.bind(s.framebuffer),r.framebuffer.blit(c.framebuffer),r.framebuffer.bind(null),s.destroy(!0),s=c}l=!0}s?(a=s.baseTexture.resolution,n=n??s.frame,o=!1,r.renderTexture.bind(s)):(a=r.resolution,n||(n=A_e,n.width=r.width,n.height=r.height),o=!0,r.renderTexture.bind(null));var f=Math.round(n.width*a),d=Math.round(n.height*a),p=new Uint8Array(P_e*f*d),g=r.gl;return g.readPixels(Math.round(n.x*a),Math.round(n.y*a),f,d,g.RGBA,g.UNSIGNED_BYTE,p),l&&s.destroy(!0),{pixels:p,width:f,height:d,flipY:o}},e.prototype.destroy=function(){this.renderer=null},e.arrayPostDivide=function(t,n){for(var r=0;r<t.length;r+=4){var a=n[r+3]=t[r+3];a!==0?(n[r]=Math.round(Math.min(t[r]*255/a,255)),n[r+1]=Math.round(Math.min(t[r+1]*255/a,255)),n[r+2]=Math.round(Math.min(t[r+2]*255/a,255))):(n[r]=t[r],n[r+1]=t[r+1],n[r+2]=t[r+2])}},e.extension={name:"extract",type:Kn.RendererPlugin},e}();/*!
 * @pixi/loaders - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/loaders is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var _p=function(){function e(t,n,r){n===void 0&&(n=!1),this._fn=t,this._once=n,this._thisArg=r,this._next=this._prev=this._owner=null}return e.prototype.detach=function(){return this._owner===null?!1:(this._owner.detach(this),!0)},e}();function H4(e,t){return e._head?(e._tail._next=t,t._prev=e._tail,e._tail=t):(e._head=t,e._tail=t),t._owner=e,t}var Ni=function(){function e(){this._head=this._tail=void 0}return e.prototype.handlers=function(t){t===void 0&&(t=!1);var n=this._head;if(t)return!!n;for(var r=[];n;)r.push(n),n=n._next;return r},e.prototype.has=function(t){if(!(t instanceof _p))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return t._owner===this},e.prototype.dispatch=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];var a=this._head;if(!a)return!1;for(;a;)a._once&&this.detach(a),a._fn.apply(a._thisArg,n),a=a._next;return!0},e.prototype.add=function(t,n){if(n===void 0&&(n=null),typeof t!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return H4(this,new _p(t,!1,n))},e.prototype.once=function(t,n){if(n===void 0&&(n=null),typeof t!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return H4(this,new _p(t,!0,n))},e.prototype.detach=function(t){if(!(t instanceof _p))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return t._owner!==this?this:(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,t._next===null&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null,this)},e.prototype.detachAll=function(){var t=this._head;if(!t)return this;for(this._head=this._tail=null;t;)t._owner=null,t=t._next;return this},e}();function Ak(e,t){t=t||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=n.parser[t.strictMode?"strict":"loose"].exec(e),a={},o=14;o--;)a[n.key[o]]=r[o]||"";return a[n.q.name]={},a[n.key[12]].replace(n.q.parser,function(s,l,u){l&&(a[n.q.name][l]=u)}),a}var Lg,wp=null,M_e=0,U4=200,O_e=204,$_e=1223,R_e=2;function V4(){}function G4(e,t,n){t&&t.indexOf(".")===0&&(t=t.substring(1)),t&&(e[t]=n)}function Ng(e){return e.toString().replace("object ","")}var pr=function(){function e(t,n,r){if(this._dequeue=V4,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,typeof t!="string"||typeof n!="string")throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(e.STATUS_FLAGS.DATA_URL,n.indexOf("data:")===0),this.name=t,this.url=n,this.extension=this._getExtension(),this.data=null,this.crossOrigin=r.crossOrigin===!0?"anonymous":r.crossOrigin,this.timeout=r.timeout||0,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=e.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=V4,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new Ni,this.onProgress=new Ni,this.onComplete=new Ni,this.onAfterMiddleware=new Ni}return e.setExtensionLoadType=function(t,n){G4(e._loadTypeMap,t,n)},e.setExtensionXhrType=function(t,n){G4(e._xhrTypeMap,t,n)},Object.defineProperty(e.prototype,"isDataUrl",{get:function(){return this._hasFlag(e.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isComplete",{get:function(){return this._hasFlag(e.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this._hasFlag(e.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),e.prototype.complete=function(){this._clearEvents(),this._finish()},e.prototype.abort=function(t){if(!this.error){if(this.error=new Error(t),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=e.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},e.prototype.load=function(t){var n=this;if(!this.isLoading){if(this.isComplete){t&&setTimeout(function(){return t(n)},1);return}else t&&this.onComplete.once(t);switch(this._setFlag(e.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),(this.crossOrigin===!1||typeof this.crossOrigin!="string")&&(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case e.LOAD_TYPE.IMAGE:this.type=e.TYPE.IMAGE,this._loadElement("image");break;case e.LOAD_TYPE.AUDIO:this.type=e.TYPE.AUDIO,this._loadSourceElement("audio");break;case e.LOAD_TYPE.VIDEO:this.type=e.TYPE.VIDEO,this._loadSourceElement("video");break;case e.LOAD_TYPE.XHR:default:typeof Lg>"u"&&(Lg=!!(globalThis.XDomainRequest&&!("withCredentials"in new XMLHttpRequest))),Lg&&this.crossOrigin?this._loadXdr():this._loadXhr();break}}},e.prototype._hasFlag=function(t){return(this._flags&t)!==0},e.prototype._setFlag=function(t,n){this._flags=n?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:t==="image"&&typeof globalThis.Image<"u"?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:t==="audio"&&typeof globalThis.Audio<"u"?this.data=new Audio:this.data=document.createElement(t),this.data===null){this.abort("Unsupported element: "+t);return}if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var n=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(t,this.url[r],Array.isArray(n)?n[r]:n));else{var n=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(n)?n[0]:n))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadXhr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XMLHttpRequest;this.crossOrigin==="use-credentials"&&(t.withCredentials=!0),t.open("GET",this.url,!0),t.timeout=this.timeout,this.xhrType===e.XHR_RESPONSE_TYPE.JSON||this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT?t.responseType=e.XHR_RESPONSE_TYPE.TEXT:t.responseType=this.xhrType,t.addEventListener("error",this._boundXhrOnError,!1),t.addEventListener("timeout",this._boundXhrOnTimeout,!1),t.addEventListener("abort",this._boundXhrOnAbort,!1),t.addEventListener("progress",this._boundOnProgress,!1),t.addEventListener("load",this._boundXhrOnLoad,!1),t.send()},e.prototype._loadXdr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var t=this.xhr=new globalThis.XDomainRequest;t.timeout=this.timeout||5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXhrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout(function(){return t.send()},1)},e.prototype._createSource=function(t,n,r){r||(r=t+"/"+this._getExtension(n));var a=document.createElement("source");return a.src=n,a.type=r,a},e.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},e.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)},e.prototype._onTimeout=function(){this.abort("Load timed out.")},e.prototype._xhrOnError=function(){var t=this.xhr;this.abort(Ng(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},e.prototype._xhrOnTimeout=function(){var t=this.xhr;this.abort(Ng(t)+" Request timed out.")},e.prototype._xhrOnAbort=function(){var t=this.xhr;this.abort(Ng(t)+" Request was aborted by the user.")},e.prototype._xhrOnLoad=function(){var t=this.xhr,n="",r=typeof t.status>"u"?U4:t.status;(t.responseType===""||t.responseType==="text"||typeof t.responseType>"u")&&(n=t.responseText),r===M_e&&(n.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?r=U4:r===$_e&&(r=O_e);var a=r/100|0;if(a===R_e)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=n,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n),this.type=e.TYPE.JSON}catch(l){this.abort("Error trying to parse loaded json: "+l);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(n,"text/xml")}else{var s=document.createElement("div");s.innerHTML=n,this.data=s}this.type=e.TYPE.XML}catch(l){this.abort("Error trying to parse loaded xml: "+l);return}else this.data=t.response||n;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,n){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";n=n||globalThis.location,wp||(wp=document.createElement("a")),wp.href=t;var r=Ak(wp.href,{strictMode:!0}),a=!r.port&&n.port===""||r.port===n.port,o=r.protocol?r.protocol+":":"";return r.host!==n.hostname||!a||o!==n.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var n="";if(this.isDataUrl){var r=t.indexOf("/");n=t.substring(r+1,t.indexOf(";",r))}else{var a=t.indexOf("?"),o=t.indexOf("#"),s=Math.min(a>-1?a:t.length,o>-1?o:t.length);t=t.substring(0,s),n=t.substring(t.lastIndexOf(".")+1)}return n.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,avif:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,avif:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(pr||(pr={}));function yl(){}function k_e(e){return function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];if(e===null)throw new Error("Callback was already called.");var a=e;e=null,a.apply(this,n)}}var L_e=function(){function e(t,n){this.data=t,this.callback=n}return e}(),Dg=function(){function e(t,n){var r=this;if(n===void 0&&(n=1),this.workers=0,this.saturated=yl,this.unsaturated=yl,this.empty=yl,this.drain=yl,this.error=yl,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(a,o,s){if(s&&typeof s!="function")throw new Error("task callback must be a function");if(r.started=!0,a==null&&r.idle()){setTimeout(function(){return r.drain()},1);return}var l=new L_e(a,typeof s=="function"?s:yl);o?r._tasks.unshift(l):r._tasks.push(l),setTimeout(r.process,1)},this.process=function(){for(;!r.paused&&r.workers<r.concurrency&&r._tasks.length;){var a=r._tasks.shift();r._tasks.length===0&&r.empty(),r.workers+=1,r.workers===r.concurrency&&r.saturated(),r._worker(a.data,k_e(r._next(a)))}},this._worker=t,n===0)throw new Error("Concurrency must not be zero");this.concurrency=n,this.buffer=n/4}return e.prototype._next=function(t){var n=this;return function(){for(var r=arguments,a=[],o=0;o<arguments.length;o++)a[o]=r[o];n.workers-=1,t.callback.apply(t,a),a[0]!=null&&n.error(a[0],t.data),n.workers<=n.concurrency-n.buffer&&n.unsaturated(),n.idle()&&n.drain(),n.process()}},e.prototype.push=function(t,n){this._insert(t,!1,n)},e.prototype.kill=function(){this.workers=0,this.drain=yl,this.started=!1,this._tasks=[]},e.prototype.unshift=function(t,n){this._insert(t,!0,n)},e.prototype.length=function(){return this._tasks.length},e.prototype.running=function(){return this.workers},e.prototype.idle=function(){return this._tasks.length+this.workers===0},e.prototype.pause=function(){this.paused!==!0&&(this.paused=!0)},e.prototype.resume=function(){if(this.paused!==!1){this.paused=!1;for(var t=1;t<=this.concurrency;t++)this.process()}},e.eachSeries=function(t,n,r,a){var o=0,s=t.length;function l(u){if(u||o===s){r&&r(u);return}a?setTimeout(function(){n(t[o++],l)},1):n(t[o++],l)}l()},e.queue=function(t,n){return new e(t,n)},e}(),Fg=100,N_e=/(#[\w-]+)?$/,Jf=function(){function e(t,n){var r=this;t===void 0&&(t=""),n===void 0&&(n=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(u,c){return r._loadResource(u,c)},this.resources={},this.baseUrl=t,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(u,c){return r._loadResource(u,c)},this._queue=Dg.queue(this._boundLoadResource,n),this._queue.pause(),this.resources={},this.onProgress=new Ni,this.onError=new Ni,this.onLoad=new Ni,this.onStart=new Ni,this.onComplete=new Ni;for(var a=0;a<e._plugins.length;++a){var o=e._plugins[a],s=o.pre,l=o.use;s&&this.pre(s),l&&this.use(l)}this._protected=!1}return e.prototype._add=function(t,n,r,a){if(this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[t])throw new Error('Resource named "'+t+'" already exists.');if(n=this._prepareUrl(n),this.resources[t]=new pr(t,n,r),typeof a=="function"&&this.resources[t].onAfterMiddleware.once(a),this.loading){for(var o=r.parentResource,s=[],l=0;l<o.children.length;++l)o.children[l].isComplete||s.push(o.children[l]);var u=o.progressChunk*(s.length+1),c=u/(s.length+2);o.children.push(this.resources[t]),o.progressChunk=c;for(var l=0;l<s.length;++l)s[l].progressChunk=c;this.resources[t].progressChunk=c}return this._queue.push(this.resources[t]),this},e.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},e.prototype.use=function(t){return this._afterMiddleware.push(t),this},e.prototype.reset=function(){this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause();for(var t in this.resources){var n=this.resources[t];n._onLoadBinding&&n._onLoadBinding.detach(),n.isLoading&&n.abort("loader reset")}return this.resources={},this},e.prototype.load=function(t){if(Sa("6.5.0","@pixi/loaders is being replaced with @pixi/assets in the next major release."),typeof t=="function"&&this.onComplete.once(t),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var n=this._queue._tasks.length,r=Fg/n,a=0;a<this._queue._tasks.length;++a)this._queue._tasks[a].data.progressChunk=r;this._onStart(),this._queue.resume()}return this},Object.defineProperty(e.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(t){this._queue.concurrency=t},enumerable:!1,configurable:!0}),e.prototype._prepareUrl=function(t){var n=Ak(t,{strictMode:!0}),r;if(n.protocol||!n.path||t.indexOf("//")===0?r=t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&t.charAt(0)!=="/"?r=this.baseUrl+"/"+t:r=this.baseUrl+t,this.defaultQueryString){var a=N_e.exec(r)[0];r=r.slice(0,r.length-a.length),r.indexOf("?")!==-1?r+="&"+this.defaultQueryString:r+="?"+this.defaultQueryString,r+=a}return r},e.prototype._loadResource=function(t,n){var r=this;t._dequeue=n,Dg.eachSeries(this._beforeMiddleware,function(a,o){a.call(r,t,function(){o(t.isComplete?{}:null)})},function(){t.isComplete?r._onLoad(t):(t._onLoadBinding=t.onComplete.once(r._onLoad,r),t.load())},!0)},e.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},e.prototype._onComplete=function(){this.progress=Fg,this.loading=!1,this.onComplete.dispatch(this,this.resources)},e.prototype._onLoad=function(t){var n=this;t._onLoadBinding=null,this._resourcesParsing.push(t),t._dequeue(),Dg.eachSeries(this._afterMiddleware,function(r,a){r.call(n,t,a)},function(){t.onAfterMiddleware.dispatch(t),n.progress=Math.min(Fg,n.progress+t.progressChunk),n.onProgress.dispatch(n,t),t.error?n.onError.dispatch(t.error,n,t):n.onLoad.dispatch(n,t),n._resourcesParsing.splice(n._resourcesParsing.indexOf(t),1),n._queue.idle()&&n._resourcesParsing.length===0&&n._onComplete()},!0)},e.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(e,"shared",{get:function(){var t=e._shared;return t||(t=new e,t._protected=!0,e._shared=t),t},enumerable:!1,configurable:!0}),e.registerPlugin=function(t){return Sa("6.5.0","Loader.registerPlugin() is deprecated, use extensions.add() instead."),Ei.add({type:Kn.Loader,ref:t}),e},e._plugins=[],e}();Ei.handleByList(Kn.Loader,Jf._plugins);Jf.prototype.add=function(e,t,n,r){if(Array.isArray(e)){for(var a=0;a<e.length;++a)this.add(e[a]);return this}if(typeof e=="object"&&(n=e,r=t||n.callback||n.onComplete,t=n.url,e=n.name||n.key||n.url),typeof t!="string"&&(r=n,n=t,t=e),typeof t!="string")throw new Error("No url passed to add resource to loader.");return typeof n=="function"&&(r=n,n=null),this._add(e,t,n,r)};var Pk=function(){function e(){}return e.init=function(t){t=Object.assign({sharedLoader:!1},t),this.loader=t.sharedLoader?Jf.shared:new Jf},e.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},e.extension=Kn.Application,e}(),Mk=function(){function e(){}return e.add=function(){pr.setExtensionLoadType("svg",pr.LOAD_TYPE.XHR),pr.setExtensionXhrType("svg",pr.XHR_RESPONSE_TYPE.TEXT)},e.use=function(t,n){if(t.data&&(t.type===pr.TYPE.IMAGE||t.extension==="svg")){var r=t.data,a=t.url,o=t.name,s=t.metadata;mn.fromLoader(r,a,o,s).then(function(l){t.texture=l,n()}).catch(n)}else n()},e.extension=Kn.Loader,e}(),D_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function F_e(e){for(var t="",n=0;n<e.length;){for(var r=[0,0,0],a=[0,0,0,0],o=0;o<r.length;++o)n<e.length?r[o]=e.charCodeAt(n++)&255:r[o]=0;a[0]=r[0]>>2,a[1]=(r[0]&3)<<4|r[1]>>4,a[2]=(r[1]&15)<<2|r[2]>>6,a[3]=r[2]&63;var s=n-(e.length-1);switch(s){case 2:a[3]=64,a[2]=64;break;case 1:a[3]=64;break}for(var o=0;o<a.length;++o)t+=D_e.charAt(a[o])}return t}function B_e(e,t){if(!e.data){t();return}if(e.xhr&&e.xhrType===pr.XHR_RESPONSE_TYPE.BLOB){if(!self.Blob||typeof e.data=="string"){var n=e.xhr.getResponseHeader("content-type");if(n&&n.indexOf("image")===0){e.data=new Image,e.data.src="data:"+n+";base64,"+F_e(e.xhr.responseText),e.type=pr.TYPE.IMAGE,e.data.onload=function(){e.data.onload=null,t()};return}}else if(e.data.type.indexOf("image")===0){var r=globalThis.URL||globalThis.webkitURL,a=r.createObjectURL(e.data);e.blob=e.data,e.data=new Image,e.data.src=a,e.type=pr.TYPE.IMAGE,e.data.onload=function(){r.revokeObjectURL(a),e.data.onload=null,t()};return}}t()}var H_e=function(){function e(){}return e.extension=Kn.Loader,e.use=B_e,e}();Ei.add(Mk,H_e);/*!
 * @pixi/compressed-textures - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/compressed-textures is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var Gn,Tn;(function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR"})(Tn||(Tn={}));var qf=(Gn={},Gn[Tn.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,Gn[Tn.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,Gn[Tn.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,Gn[Tn.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,Gn[Tn.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,Gn[Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,Gn[Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,Gn[Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,Gn[Tn.COMPRESSED_R11_EAC]=.5,Gn[Tn.COMPRESSED_SIGNED_R11_EAC]=.5,Gn[Tn.COMPRESSED_RG11_EAC]=1,Gn[Tn.COMPRESSED_SIGNED_RG11_EAC]=1,Gn[Tn.COMPRESSED_RGB8_ETC2]=.5,Gn[Tn.COMPRESSED_RGBA8_ETC2_EAC]=1,Gn[Tn.COMPRESSED_SRGB8_ETC2]=.5,Gn[Tn.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,Gn[Tn.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Gn[Tn.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,Gn[Tn.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,Gn[Tn.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,Gn[Tn.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,Gn[Tn.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,Gn[Tn.COMPRESSED_RGB_ETC1_WEBGL]=.5,Gn[Tn.COMPRESSED_RGB_ATC_WEBGL]=.5,Gn[Tn.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,Gn[Tn.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,Gn[Tn.COMPRESSED_RGBA_ASTC_4x4_KHR]=1,Gn);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var tb=function(e,t){return tb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},tb(e,t)};function Ok(e,t){tb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function U_e(e,t,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(f){try{c(r.next(f))}catch(d){s(d)}}function u(f){try{c(r.throw(f))}catch(d){s(d)}}function c(f){f.done?o(f.value):a(f.value).then(l,u)}c((r=r.apply(e,[])).next())})}function V_e(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(f){return u([c,f])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],a=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var $k=function(e){Ok(t,e);function t(n,r){r===void 0&&(r={width:1,height:1,autoLoad:!0});var a=this,o,s;return typeof n=="string"?(o=n,s=new Uint8Array):(o=null,s=n),a=e.call(this,s,r)||this,a.origin=o,a.buffer=s?new J0(s):null,a.origin&&r.autoLoad!==!1&&a.load(),s&&s.length&&(a.loaded=!0,a.onBlobLoaded(a.buffer.rawBinaryData)),a}return t.prototype.onBlobLoaded=function(n){},t.prototype.load=function(){return U_e(this,void 0,Promise,function(){var n,r,a;return V_e(this,function(o){switch(o.label){case 0:return[4,fetch(this.origin)];case 1:return n=o.sent(),[4,n.blob()];case 2:return r=o.sent(),[4,r.arrayBuffer()];case 3:return a=o.sent(),this.data=new Uint32Array(a),this.buffer=new J0(a),this.loaded=!0,this.onBlobLoaded(a),this.update(),[2,this]}})})},t}(pu),Z0=function(e){Ok(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.format=r.format,a.levels=r.levels||1,a._width=r.width,a._height=r.height,a._extension=t._formatToExtension(a.format),(r.levelBuffers||a.buffer)&&(a._levelBuffers=r.levelBuffers||t._createLevelBuffers(n instanceof Uint8Array?n:a.buffer.uint8View,a.format,a.levels,4,4,a.width,a.height)),a}return t.prototype.upload=function(n,r,a){var o=n.gl,s=n.context.extensions[this._extension];if(!s)throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var l=0,u=this.levels;l<u;l++){var c=this._levelBuffers[l],f=c.levelID,d=c.levelWidth,p=c.levelHeight,g=c.levelBuffer;o.compressedTexImage2D(o.TEXTURE_2D,f,this.format,d,p,0,g)}return!0},t.prototype.onBlobLoaded=function(){this._levelBuffers=t._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},t._formatToExtension=function(n){if(n>=33776&&n<=33779)return"s3tc";if(n>=37488&&n<=37497)return"etc";if(n>=35840&&n<=35843)return"pvrtc";if(n>=36196)return"etc1";if(n>=35986&&n<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(n,r,a,o,s,l,u){for(var c=new Array(a),f=n.byteOffset,d=l,p=u,g=d+o-1&~(o-1),y=p+s-1&~(s-1),m=g*y*qf[r],S=0;S<a;S++)c[S]={levelID:S,levelWidth:a>1?d:g,levelHeight:a>1?p:y,levelBuffer:new Uint8Array(n.buffer,f,m)},f+=m,d=d>>1||1,p=p>>1||1,g=d+o-1&~(o-1),y=p+s-1&~(s-1),m=g*y*qf[r];return c},t}($k),Rk=function(){function e(){}return e.use=function(t,n){var r=t.data,a=this;if(t.type===pr.TYPE.JSON&&r&&r.cacheID&&r.textures){for(var o=r.textures,s=void 0,l=void 0,u=0,c=o.length;u<c;u++){var f=o[u],d=f.src,p=f.format;if(p||(l=d),e.textureFormats[p]){s=d;break}}if(s=s||l,!s){n(new Error("Cannot load compressed-textures in "+t.url+", make sure you provide a fallback"));return}if(s===t.url){n(new Error("URL of compressed texture cannot be the same as the manifest's URL"));return}var g={crossOrigin:t.crossOrigin,metadata:t.metadata.imageMetadata,parentResource:t},y=fi.resolve(t.url.replace(a.baseUrl,""),s),m=r.cacheID;a.add(m,y,g,function(S){if(S.error){n(S.error);return}var _=S.texture,P=_===void 0?null:_,A=S.textures,$=A===void 0?{}:A;Object.assign(t,{texture:P,textures:$}),n()})}else n()},Object.defineProperty(e,"textureExtensions",{get:function(){if(!e._textureExtensions){var t=Nt.ADAPTER.createCanvas(),n=t.getContext("webgl");if(!n)return console.warn("WebGL not available for compressed textures. Silently failing."),{};var r={s3tc:n.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:n.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:n.getExtension("WEBGL_compressed_texture_etc"),etc1:n.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:n.getExtension("WEBGL_compressed_texture_atc"),astc:n.getExtension("WEBGL_compressed_texture_astc")};e._textureExtensions=r}return e._textureExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"textureFormats",{get:function(){if(!e._textureFormats){var t=e.textureExtensions;e._textureFormats={};for(var n in t){var r=t[n];r&&Object.assign(e._textureFormats,Object.getPrototypeOf(r))}}return e._textureFormats},enumerable:!1,configurable:!0}),e.extension=Kn.Loader,e}();function kk(e,t,n){var r={textures:{},texture:null};if(!t)return r;var a=t.map(function(o){return new mn(new kn(o,Object.assign({mipmap:To.OFF,alphaMode:Eo.NO_PREMULTIPLIED_ALPHA},n)))});return a.forEach(function(o,s){var l=o.baseTexture,u=e+"-"+(s+1);kn.addToCache(l,u),mn.addToCache(o,u),s===0&&(kn.addToCache(l,e),mn.addToCache(o,e),r.texture=o),r.textures[u]=o}),r}var _d,Mo,Bg=4,Sp=124,G_e=32,j4=20,j_e=542327876,Tp={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},z_e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},Ep={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},Ro;(function(e){e[e.DXGI_FORMAT_UNKNOWN=0]="DXGI_FORMAT_UNKNOWN",e[e.DXGI_FORMAT_R32G32B32A32_TYPELESS=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",e[e.DXGI_FORMAT_R32G32B32A32_FLOAT=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",e[e.DXGI_FORMAT_R32G32B32A32_UINT=3]="DXGI_FORMAT_R32G32B32A32_UINT",e[e.DXGI_FORMAT_R32G32B32A32_SINT=4]="DXGI_FORMAT_R32G32B32A32_SINT",e[e.DXGI_FORMAT_R32G32B32_TYPELESS=5]="DXGI_FORMAT_R32G32B32_TYPELESS",e[e.DXGI_FORMAT_R32G32B32_FLOAT=6]="DXGI_FORMAT_R32G32B32_FLOAT",e[e.DXGI_FORMAT_R32G32B32_UINT=7]="DXGI_FORMAT_R32G32B32_UINT",e[e.DXGI_FORMAT_R32G32B32_SINT=8]="DXGI_FORMAT_R32G32B32_SINT",e[e.DXGI_FORMAT_R16G16B16A16_TYPELESS=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",e[e.DXGI_FORMAT_R16G16B16A16_FLOAT=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",e[e.DXGI_FORMAT_R16G16B16A16_UNORM=11]="DXGI_FORMAT_R16G16B16A16_UNORM",e[e.DXGI_FORMAT_R16G16B16A16_UINT=12]="DXGI_FORMAT_R16G16B16A16_UINT",e[e.DXGI_FORMAT_R16G16B16A16_SNORM=13]="DXGI_FORMAT_R16G16B16A16_SNORM",e[e.DXGI_FORMAT_R16G16B16A16_SINT=14]="DXGI_FORMAT_R16G16B16A16_SINT",e[e.DXGI_FORMAT_R32G32_TYPELESS=15]="DXGI_FORMAT_R32G32_TYPELESS",e[e.DXGI_FORMAT_R32G32_FLOAT=16]="DXGI_FORMAT_R32G32_FLOAT",e[e.DXGI_FORMAT_R32G32_UINT=17]="DXGI_FORMAT_R32G32_UINT",e[e.DXGI_FORMAT_R32G32_SINT=18]="DXGI_FORMAT_R32G32_SINT",e[e.DXGI_FORMAT_R32G8X24_TYPELESS=19]="DXGI_FORMAT_R32G8X24_TYPELESS",e[e.DXGI_FORMAT_D32_FLOAT_S8X24_UINT=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",e[e.DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",e[e.DXGI_FORMAT_X32_TYPELESS_G8X24_UINT=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",e[e.DXGI_FORMAT_R10G10B10A2_TYPELESS=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",e[e.DXGI_FORMAT_R10G10B10A2_UNORM=24]="DXGI_FORMAT_R10G10B10A2_UNORM",e[e.DXGI_FORMAT_R10G10B10A2_UINT=25]="DXGI_FORMAT_R10G10B10A2_UINT",e[e.DXGI_FORMAT_R11G11B10_FLOAT=26]="DXGI_FORMAT_R11G11B10_FLOAT",e[e.DXGI_FORMAT_R8G8B8A8_TYPELESS=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",e[e.DXGI_FORMAT_R8G8B8A8_UNORM=28]="DXGI_FORMAT_R8G8B8A8_UNORM",e[e.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",e[e.DXGI_FORMAT_R8G8B8A8_UINT=30]="DXGI_FORMAT_R8G8B8A8_UINT",e[e.DXGI_FORMAT_R8G8B8A8_SNORM=31]="DXGI_FORMAT_R8G8B8A8_SNORM",e[e.DXGI_FORMAT_R8G8B8A8_SINT=32]="DXGI_FORMAT_R8G8B8A8_SINT",e[e.DXGI_FORMAT_R16G16_TYPELESS=33]="DXGI_FORMAT_R16G16_TYPELESS",e[e.DXGI_FORMAT_R16G16_FLOAT=34]="DXGI_FORMAT_R16G16_FLOAT",e[e.DXGI_FORMAT_R16G16_UNORM=35]="DXGI_FORMAT_R16G16_UNORM",e[e.DXGI_FORMAT_R16G16_UINT=36]="DXGI_FORMAT_R16G16_UINT",e[e.DXGI_FORMAT_R16G16_SNORM=37]="DXGI_FORMAT_R16G16_SNORM",e[e.DXGI_FORMAT_R16G16_SINT=38]="DXGI_FORMAT_R16G16_SINT",e[e.DXGI_FORMAT_R32_TYPELESS=39]="DXGI_FORMAT_R32_TYPELESS",e[e.DXGI_FORMAT_D32_FLOAT=40]="DXGI_FORMAT_D32_FLOAT",e[e.DXGI_FORMAT_R32_FLOAT=41]="DXGI_FORMAT_R32_FLOAT",e[e.DXGI_FORMAT_R32_UINT=42]="DXGI_FORMAT_R32_UINT",e[e.DXGI_FORMAT_R32_SINT=43]="DXGI_FORMAT_R32_SINT",e[e.DXGI_FORMAT_R24G8_TYPELESS=44]="DXGI_FORMAT_R24G8_TYPELESS",e[e.DXGI_FORMAT_D24_UNORM_S8_UINT=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",e[e.DXGI_FORMAT_R24_UNORM_X8_TYPELESS=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",e[e.DXGI_FORMAT_X24_TYPELESS_G8_UINT=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",e[e.DXGI_FORMAT_R8G8_TYPELESS=48]="DXGI_FORMAT_R8G8_TYPELESS",e[e.DXGI_FORMAT_R8G8_UNORM=49]="DXGI_FORMAT_R8G8_UNORM",e[e.DXGI_FORMAT_R8G8_UINT=50]="DXGI_FORMAT_R8G8_UINT",e[e.DXGI_FORMAT_R8G8_SNORM=51]="DXGI_FORMAT_R8G8_SNORM",e[e.DXGI_FORMAT_R8G8_SINT=52]="DXGI_FORMAT_R8G8_SINT",e[e.DXGI_FORMAT_R16_TYPELESS=53]="DXGI_FORMAT_R16_TYPELESS",e[e.DXGI_FORMAT_R16_FLOAT=54]="DXGI_FORMAT_R16_FLOAT",e[e.DXGI_FORMAT_D16_UNORM=55]="DXGI_FORMAT_D16_UNORM",e[e.DXGI_FORMAT_R16_UNORM=56]="DXGI_FORMAT_R16_UNORM",e[e.DXGI_FORMAT_R16_UINT=57]="DXGI_FORMAT_R16_UINT",e[e.DXGI_FORMAT_R16_SNORM=58]="DXGI_FORMAT_R16_SNORM",e[e.DXGI_FORMAT_R16_SINT=59]="DXGI_FORMAT_R16_SINT",e[e.DXGI_FORMAT_R8_TYPELESS=60]="DXGI_FORMAT_R8_TYPELESS",e[e.DXGI_FORMAT_R8_UNORM=61]="DXGI_FORMAT_R8_UNORM",e[e.DXGI_FORMAT_R8_UINT=62]="DXGI_FORMAT_R8_UINT",e[e.DXGI_FORMAT_R8_SNORM=63]="DXGI_FORMAT_R8_SNORM",e[e.DXGI_FORMAT_R8_SINT=64]="DXGI_FORMAT_R8_SINT",e[e.DXGI_FORMAT_A8_UNORM=65]="DXGI_FORMAT_A8_UNORM",e[e.DXGI_FORMAT_R1_UNORM=66]="DXGI_FORMAT_R1_UNORM",e[e.DXGI_FORMAT_R9G9B9E5_SHAREDEXP=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",e[e.DXGI_FORMAT_R8G8_B8G8_UNORM=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",e[e.DXGI_FORMAT_G8R8_G8B8_UNORM=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",e[e.DXGI_FORMAT_BC1_TYPELESS=70]="DXGI_FORMAT_BC1_TYPELESS",e[e.DXGI_FORMAT_BC1_UNORM=71]="DXGI_FORMAT_BC1_UNORM",e[e.DXGI_FORMAT_BC1_UNORM_SRGB=72]="DXGI_FORMAT_BC1_UNORM_SRGB",e[e.DXGI_FORMAT_BC2_TYPELESS=73]="DXGI_FORMAT_BC2_TYPELESS",e[e.DXGI_FORMAT_BC2_UNORM=74]="DXGI_FORMAT_BC2_UNORM",e[e.DXGI_FORMAT_BC2_UNORM_SRGB=75]="DXGI_FORMAT_BC2_UNORM_SRGB",e[e.DXGI_FORMAT_BC3_TYPELESS=76]="DXGI_FORMAT_BC3_TYPELESS",e[e.DXGI_FORMAT_BC3_UNORM=77]="DXGI_FORMAT_BC3_UNORM",e[e.DXGI_FORMAT_BC3_UNORM_SRGB=78]="DXGI_FORMAT_BC3_UNORM_SRGB",e[e.DXGI_FORMAT_BC4_TYPELESS=79]="DXGI_FORMAT_BC4_TYPELESS",e[e.DXGI_FORMAT_BC4_UNORM=80]="DXGI_FORMAT_BC4_UNORM",e[e.DXGI_FORMAT_BC4_SNORM=81]="DXGI_FORMAT_BC4_SNORM",e[e.DXGI_FORMAT_BC5_TYPELESS=82]="DXGI_FORMAT_BC5_TYPELESS",e[e.DXGI_FORMAT_BC5_UNORM=83]="DXGI_FORMAT_BC5_UNORM",e[e.DXGI_FORMAT_BC5_SNORM=84]="DXGI_FORMAT_BC5_SNORM",e[e.DXGI_FORMAT_B5G6R5_UNORM=85]="DXGI_FORMAT_B5G6R5_UNORM",e[e.DXGI_FORMAT_B5G5R5A1_UNORM=86]="DXGI_FORMAT_B5G5R5A1_UNORM",e[e.DXGI_FORMAT_B8G8R8A8_UNORM=87]="DXGI_FORMAT_B8G8R8A8_UNORM",e[e.DXGI_FORMAT_B8G8R8X8_UNORM=88]="DXGI_FORMAT_B8G8R8X8_UNORM",e[e.DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",e[e.DXGI_FORMAT_B8G8R8A8_TYPELESS=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",e[e.DXGI_FORMAT_B8G8R8A8_UNORM_SRGB=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",e[e.DXGI_FORMAT_B8G8R8X8_TYPELESS=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",e[e.DXGI_FORMAT_B8G8R8X8_UNORM_SRGB=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",e[e.DXGI_FORMAT_BC6H_TYPELESS=94]="DXGI_FORMAT_BC6H_TYPELESS",e[e.DXGI_FORMAT_BC6H_UF16=95]="DXGI_FORMAT_BC6H_UF16",e[e.DXGI_FORMAT_BC6H_SF16=96]="DXGI_FORMAT_BC6H_SF16",e[e.DXGI_FORMAT_BC7_TYPELESS=97]="DXGI_FORMAT_BC7_TYPELESS",e[e.DXGI_FORMAT_BC7_UNORM=98]="DXGI_FORMAT_BC7_UNORM",e[e.DXGI_FORMAT_BC7_UNORM_SRGB=99]="DXGI_FORMAT_BC7_UNORM_SRGB",e[e.DXGI_FORMAT_AYUV=100]="DXGI_FORMAT_AYUV",e[e.DXGI_FORMAT_Y410=101]="DXGI_FORMAT_Y410",e[e.DXGI_FORMAT_Y416=102]="DXGI_FORMAT_Y416",e[e.DXGI_FORMAT_NV12=103]="DXGI_FORMAT_NV12",e[e.DXGI_FORMAT_P010=104]="DXGI_FORMAT_P010",e[e.DXGI_FORMAT_P016=105]="DXGI_FORMAT_P016",e[e.DXGI_FORMAT_420_OPAQUE=106]="DXGI_FORMAT_420_OPAQUE",e[e.DXGI_FORMAT_YUY2=107]="DXGI_FORMAT_YUY2",e[e.DXGI_FORMAT_Y210=108]="DXGI_FORMAT_Y210",e[e.DXGI_FORMAT_Y216=109]="DXGI_FORMAT_Y216",e[e.DXGI_FORMAT_NV11=110]="DXGI_FORMAT_NV11",e[e.DXGI_FORMAT_AI44=111]="DXGI_FORMAT_AI44",e[e.DXGI_FORMAT_IA44=112]="DXGI_FORMAT_IA44",e[e.DXGI_FORMAT_P8=113]="DXGI_FORMAT_P8",e[e.DXGI_FORMAT_A8P8=114]="DXGI_FORMAT_A8P8",e[e.DXGI_FORMAT_B4G4R4A4_UNORM=115]="DXGI_FORMAT_B4G4R4A4_UNORM",e[e.DXGI_FORMAT_P208=116]="DXGI_FORMAT_P208",e[e.DXGI_FORMAT_V208=117]="DXGI_FORMAT_V208",e[e.DXGI_FORMAT_V408=118]="DXGI_FORMAT_V408",e[e.DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",e[e.DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",e[e.DXGI_FORMAT_FORCE_UINT=121]="DXGI_FORMAT_FORCE_UINT"})(Ro||(Ro={}));var nb;(function(e){e[e.DDS_DIMENSION_TEXTURE1D=2]="DDS_DIMENSION_TEXTURE1D",e[e.DDS_DIMENSION_TEXTURE2D=3]="DDS_DIMENSION_TEXTURE2D",e[e.DDS_DIMENSION_TEXTURE3D=6]="DDS_DIMENSION_TEXTURE3D"})(nb||(nb={}));var K_e=1,W_e=2,X_e=4,Y_e=64,J_e=512,q_e=131072,Q_e=827611204,Z_e=861165636,e1e=894720068,t1e=808540228,n1e=4,r1e=(_d={},_d[Q_e]=Tn.COMPRESSED_RGBA_S3TC_DXT1_EXT,_d[Z_e]=Tn.COMPRESSED_RGBA_S3TC_DXT3_EXT,_d[e1e]=Tn.COMPRESSED_RGBA_S3TC_DXT5_EXT,_d),a1e=(Mo={},Mo[Ro.DXGI_FORMAT_BC1_TYPELESS]=Tn.COMPRESSED_RGBA_S3TC_DXT1_EXT,Mo[Ro.DXGI_FORMAT_BC1_UNORM]=Tn.COMPRESSED_RGBA_S3TC_DXT1_EXT,Mo[Ro.DXGI_FORMAT_BC2_TYPELESS]=Tn.COMPRESSED_RGBA_S3TC_DXT3_EXT,Mo[Ro.DXGI_FORMAT_BC2_UNORM]=Tn.COMPRESSED_RGBA_S3TC_DXT3_EXT,Mo[Ro.DXGI_FORMAT_BC3_TYPELESS]=Tn.COMPRESSED_RGBA_S3TC_DXT5_EXT,Mo[Ro.DXGI_FORMAT_BC3_UNORM]=Tn.COMPRESSED_RGBA_S3TC_DXT5_EXT,Mo[Ro.DXGI_FORMAT_BC1_UNORM_SRGB]=Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,Mo[Ro.DXGI_FORMAT_BC2_UNORM_SRGB]=Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,Mo[Ro.DXGI_FORMAT_BC3_UNORM_SRGB]=Tn.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,Mo);function Lk(e){var t=new Uint32Array(e),n=t[0];if(n!==j_e)throw new Error("Invalid DDS file magic word");var r=new Uint32Array(e,0,Sp/Uint32Array.BYTES_PER_ELEMENT),a=r[Tp.HEIGHT],o=r[Tp.WIDTH],s=r[Tp.MIPMAP_COUNT],l=new Uint32Array(e,Tp.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,G_e/Uint32Array.BYTES_PER_ELEMENT),u=l[K_e];if(u&X_e){var c=l[z_e.FOURCC];if(c!==t1e){var f=r1e[c],d=Bg+Sp,p=new Uint8Array(e,d),g=new Z0(p,{format:f,width:o,height:a,levels:s});return[g]}var y=Bg+Sp,m=new Uint32Array(t.buffer,y,j4/Uint32Array.BYTES_PER_ELEMENT),S=m[Ep.DXGI_FORMAT],_=m[Ep.RESOURCE_DIMENSION],P=m[Ep.MISC_FLAG],A=m[Ep.ARRAY_SIZE],$=a1e[S];if($===void 0)throw new Error("DDSParser cannot parse texture data with DXGI format "+S);if(P===n1e)throw new Error("DDSParser does not support cubemap textures");if(_===nb.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSParser does not supported 3D texture data");var k=new Array,L=Bg+Sp+j4;if(A===1)k.push(new Uint8Array(e,L));else{for(var B=qf[$],H=0,G=o,j=a,W=0;W<s;W++){var Q=Math.max(1,G+3&-4),ue=Math.max(1,j+3&-4),se=Q*ue*B;H+=se,G=G>>>1,j=j>>>1}for(var ne=L,W=0;W<A;W++)k.push(new Uint8Array(e,ne,H)),ne+=H}return k.map(function(J){return new Z0(J,{format:$,width:o,height:a,levels:s})})}throw u&Y_e?new Error("DDSParser does not support uncompressed texture data."):u&J_e?new Error("DDSParser does not supported YUV uncompressed texture data."):u&q_e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):u&W_e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}var ds,Mi,wd,z4=[171,75,84,88,32,49,49,187,13,10,26,10],o1e=67305985,Oo={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},rb=64,ab=(ds={},ds[an.UNSIGNED_BYTE]=1,ds[an.UNSIGNED_SHORT]=2,ds[an.INT]=4,ds[an.UNSIGNED_INT]=4,ds[an.FLOAT]=4,ds[an.HALF_FLOAT]=8,ds),Nk=(Mi={},Mi[$t.RGBA]=4,Mi[$t.RGB]=3,Mi[$t.RG]=2,Mi[$t.RED]=1,Mi[$t.LUMINANCE]=1,Mi[$t.LUMINANCE_ALPHA]=2,Mi[$t.ALPHA]=1,Mi),Dk=(wd={},wd[an.UNSIGNED_SHORT_4_4_4_4]=2,wd[an.UNSIGNED_SHORT_5_5_5_1]=2,wd[an.UNSIGNED_SHORT_5_6_5]=2,wd);function Fk(e,t,n){n===void 0&&(n=!1);var r=new DataView(t);if(!i1e(e,r))return null;var a=r.getUint32(Oo.ENDIANNESS,!0)===o1e,o=r.getUint32(Oo.GL_TYPE,a),s=r.getUint32(Oo.GL_FORMAT,a),l=r.getUint32(Oo.GL_INTERNAL_FORMAT,a),u=r.getUint32(Oo.PIXEL_WIDTH,a),c=r.getUint32(Oo.PIXEL_HEIGHT,a)||1,f=r.getUint32(Oo.PIXEL_DEPTH,a)||1,d=r.getUint32(Oo.NUMBER_OF_ARRAY_ELEMENTS,a)||1,p=r.getUint32(Oo.NUMBER_OF_FACES,a),g=r.getUint32(Oo.NUMBER_OF_MIPMAP_LEVELS,a),y=r.getUint32(Oo.BYTES_OF_KEY_VALUE_DATA,a);if(c===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(d!==1)throw new Error("WebGL does not support array textures");var m=4,S=4,_=u+3&-4,P=c+3&-4,A=new Array(d),$=u*c;o===0&&($=_*P);var k;if(o!==0?ab[o]?k=ab[o]*Nk[s]:k=Dk[o]:k=qf[l],k===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var L=n?l1e(r,y,a):null,B=$*k,H=B,G=u,j=c,W=_,Q=P,ue=rb+y,se=0;se<g;se++){for(var ne=r.getUint32(ue,a),J=ue+4,X=0;X<d;X++){var te=A[X];te||(te=A[X]=new Array(g)),te[se]={levelID:se,levelWidth:g>1||o!==0?G:W,levelHeight:g>1||o!==0?j:Q,levelBuffer:new Uint8Array(t,J,H)},J+=H}ue+=ne+4,ue=ue%4!==0?ue+4-ue%4:ue,G=G>>1||1,j=j>>1||1,W=G+m-1&~(m-1),Q=j+S-1&~(S-1),H=W*Q*k}return o!==0?{uncompressed:A.map(function(Y){var Z=Y[0].levelBuffer,ae=!1;return o===an.FLOAT?Z=new Float32Array(Y[0].levelBuffer.buffer,Y[0].levelBuffer.byteOffset,Y[0].levelBuffer.byteLength/4):o===an.UNSIGNED_INT?(ae=!0,Z=new Uint32Array(Y[0].levelBuffer.buffer,Y[0].levelBuffer.byteOffset,Y[0].levelBuffer.byteLength/4)):o===an.INT&&(ae=!0,Z=new Int32Array(Y[0].levelBuffer.buffer,Y[0].levelBuffer.byteOffset,Y[0].levelBuffer.byteLength/4)),{resource:new pu(Z,{width:Y[0].levelWidth,height:Y[0].levelHeight}),type:o,format:ae?s1e(s):s}}),kvData:L}:{compressed:A.map(function(Y){return new Z0(null,{format:l,width:u,height:c,levels:g,levelBuffers:Y})}),kvData:L}}function i1e(e,t){for(var n=0;n<z4.length;n++)if(t.getUint8(n)!==z4[n])return console.error(e+" is not a valid *.ktx file!"),!1;return!0}function s1e(e){switch(e){case $t.RGBA:return $t.RGBA_INTEGER;case $t.RGB:return $t.RGB_INTEGER;case $t.RG:return $t.RG_INTEGER;case $t.RED:return $t.RED_INTEGER;default:return e}}function l1e(e,t,n){for(var r=new Map,a=0;a<t;){var o=e.getUint32(rb+a,n),s=rb+a+4,l=3-(o+3)%4;if(o===0||o>t-a){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}for(var u=0;u<o&&e.getUint8(s+u)!==0;u++);if(u===-1){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}var c=new TextDecoder().decode(new Uint8Array(e.buffer,s,u)),f=new DataView(e.buffer,s+u+1,o-u-1);r.set(c,f),a+=4+o+l}return r}pr.setExtensionXhrType("dds",pr.XHR_RESPONSE_TYPE.BUFFER);var Bk=function(){function e(){}return e.use=function(t,n){if(t.extension==="dds"&&t.data)try{Object.assign(t,kk(t.name||t.url,Lk(t.data),t.metadata))}catch(r){n(r);return}n()},e.extension=Kn.Loader,e}();pr.setExtensionXhrType("ktx",pr.XHR_RESPONSE_TYPE.BUFFER);var Hk=function(){function e(){}return e.use=function(t,n){if(t.extension==="ktx"&&t.data)try{var r=t.name||t.url,a=Fk(r,t.data,this.loadKeyValueData),o=a.compressed,s=a.uncompressed,l=a.kvData;if(o){var u=kk(r,o,t.metadata);if(l&&u.textures)for(var c in u.textures)u.textures[c].baseTexture.ktxKeyValueData=l;Object.assign(t,u)}else if(s){var f={};s.forEach(function(d,p){var g=new mn(new kn(d.resource,{mipmap:To.OFF,alphaMode:Eo.NO_PREMULTIPLIED_ALPHA,type:d.type,format:d.format})),y=r+"-"+(p+1);l&&(g.baseTexture.ktxKeyValueData=l),kn.addToCache(g.baseTexture,y),mn.addToCache(g,y),p===0&&(f[r]=g,kn.addToCache(g.baseTexture,r),mn.addToCache(g,r)),f[y]=g}),Object.assign(t,{textures:f})}}catch(d){n(d);return}n()},e.extension=Kn.Loader,e.loadKeyValueData=!1,e}();/*!
 * @pixi/particle-container - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/particle-container is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ob=function(e,t){return ob=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},ob(e,t)};function Uk(e,t){ob(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var u1e=function(e){Uk(t,e);function t(n,r,a,o){n===void 0&&(n=1500),a===void 0&&(a=16384),o===void 0&&(o=!1);var s=e.call(this)||this,l=16384;return a>l&&(a=l),s._properties=[!1,!0,!1,!1,!1],s._maxSize=n,s._batchSize=a,s._buffers=null,s._bufferUpdateIDs=[],s._updateID=0,s.interactiveChildren=!1,s.blendMode=on.NORMAL,s.autoResize=o,s.roundPixels=!0,s.baseTexture=null,s.setProperties(r),s._tint=0,s.tintRgb=new Float32Array(4),s.tint=16777215,s}return t.prototype.setProperties=function(n){n&&(this._properties[0]="vertices"in n||"scale"in n?!!n.vertices||!!n.scale:this._properties[0],this._properties[1]="position"in n?!!n.position:this._properties[1],this._properties[2]="rotation"in n?!!n.rotation:this._properties[2],this._properties[3]="uvs"in n?!!n.uvs:this._properties[3],this._properties[4]="tint"in n||"alpha"in n?!!n.tint||!!n.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){this._tint=n,iu(n,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(n){var r=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return r.onChildrenChange(0)})),n.batch.setObjectRenderer(n.plugins.particle),n.plugins.particle.render(this))},t.prototype.onChildrenChange=function(n){for(var r=Math.floor(n/this._batchSize);this._bufferUpdateIDs.length<r;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[r]=++this._updateID},t.prototype.dispose=function(){if(this._buffers){for(var n=0;n<this._buffers.length;++n)this._buffers[n].destroy();this._buffers=null}},t.prototype.destroy=function(n){e.prototype.destroy.call(this,n),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},t}(Co),K4=function(){function e(t,n,r){this.geometry=new Yc,this.indexBuffer=null,this.size=r,this.dynamicProperties=[],this.staticProperties=[];for(var a=0;a<t.length;++a){var o=t[a];o={attributeName:o.attributeName,size:o.size,uploadFunction:o.uploadFunction,type:o.type||an.FLOAT,offset:o.offset},n[a]?this.dynamicProperties.push(o):this.staticProperties.push(o)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return e.prototype.initBuffers=function(){var t=this.geometry,n=0;this.indexBuffer=new $r(lR(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(var r=0;r<this.dynamicProperties.length;++r){var a=this.dynamicProperties[r];a.offset=n,n+=a.size,this.dynamicStride+=a.size}var o=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(o),this.dynamicDataUint32=new Uint32Array(o),this.dynamicBuffer=new $r(this.dynamicData,!1,!1);var s=0;this.staticStride=0;for(var r=0;r<this.staticProperties.length;++r){var a=this.staticProperties[r];a.offset=s,s+=a.size,this.staticStride+=a.size}var l=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(l),this.staticDataUint32=new Uint32Array(l),this.staticBuffer=new $r(this.staticData,!0,!1);for(var r=0;r<this.dynamicProperties.length;++r){var a=this.dynamicProperties[r];t.addAttribute(a.attributeName,this.dynamicBuffer,0,a.type===an.UNSIGNED_BYTE,a.type,this.dynamicStride*4,a.offset*4)}for(var r=0;r<this.staticProperties.length;++r){var a=this.staticProperties[r];t.addAttribute(a.attributeName,this.staticBuffer,0,a.type===an.UNSIGNED_BYTE,a.type,this.staticStride*4,a.offset*4)}},e.prototype.uploadDynamic=function(t,n,r){for(var a=0;a<this.dynamicProperties.length;a++){var o=this.dynamicProperties[a];o.uploadFunction(t,n,r,o.type===an.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,o.offset)}this.dynamicBuffer._updateID++},e.prototype.uploadStatic=function(t,n,r){for(var a=0;a<this.staticProperties.length;a++){var o=this.staticProperties[a];o.uploadFunction(t,n,r,o.type===an.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,o.offset)}this.staticBuffer._updateID++},e.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()},e}(),c1e=`varying vec2 vTextureCoord;
varying vec4 vColor;

uniform sampler2D uSampler;

void main(void){
    vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
    gl_FragColor = color;
}`,d1e=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
attribute vec4 aColor;

attribute vec2 aPositionCoord;
attribute float aRotation;

uniform mat3 translationMatrix;
uniform vec4 uColor;

varying vec2 vTextureCoord;
varying vec4 vColor;

void main(void){
    float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);
    float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);

    vec2 v = vec2(x, y);
    v = v + aPositionCoord;

    gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = aTextureCoord;
    vColor = aColor * uColor;
}
`,Vk=function(e){Uk(t,e);function t(n){var r=e.call(this,n)||this;return r.shader=null,r.properties=null,r.tempMatrix=new cr,r.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:r.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:r.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:r.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:r.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:an.UNSIGNED_BYTE,uploadFunction:r.uploadTint,offset:0}],r.shader=Ui.from(d1e,c1e,{}),r.state=ol.for2d(),r}return t.prototype.render=function(n){var r=n.children,a=n._maxSize,o=n._batchSize,s=this.renderer,l=r.length;if(l!==0){l>a&&!n.autoResize&&(l=a);var u=n._buffers;u||(u=n._buffers=this.generateBuffers(n));var c=r[0]._texture.baseTexture,f=c.alphaMode>0;this.state.blendMode=G1(n.blendMode,f),s.state.set(this.state);var d=s.gl,p=n.worldTransform.copyTo(this.tempMatrix);p.prepend(s.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=p.toArray(!0),this.shader.uniforms.uColor=sR(n.tintRgb,n.worldAlpha,this.shader.uniforms.uColor,f),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);for(var g=!1,y=0,m=0;y<l;y+=o,m+=1){var S=l-y;S>o&&(S=o),m>=u.length&&u.push(this._generateOneMoreBuffer(n));var _=u[m];_.uploadDynamic(r,y,S);var P=n._bufferUpdateIDs[m]||0;g=g||_._updateID<P,g&&(_._updateID=n._updateID,_.uploadStatic(r,y,S)),s.geometry.bind(_.geometry),d.drawElements(d.TRIANGLES,S*6,d.UNSIGNED_SHORT,0)}}},t.prototype.generateBuffers=function(n){for(var r=[],a=n._maxSize,o=n._batchSize,s=n._properties,l=0;l<a;l+=o)r.push(new K4(this.properties,s,o));return r},t.prototype._generateOneMoreBuffer=function(n){var r=n._batchSize,a=n._properties;return new K4(this.properties,a,r)},t.prototype.uploadVertices=function(n,r,a,o,s,l){for(var u=0,c=0,f=0,d=0,p=0;p<a;++p){var g=n[r+p],y=g._texture,m=g.scale.x,S=g.scale.y,_=y.trim,P=y.orig;_?(c=_.x-g.anchor.x*P.width,u=c+_.width,d=_.y-g.anchor.y*P.height,f=d+_.height):(u=P.width*(1-g.anchor.x),c=P.width*-g.anchor.x,f=P.height*(1-g.anchor.y),d=P.height*-g.anchor.y),o[l]=c*m,o[l+1]=d*S,o[l+s]=u*m,o[l+s+1]=d*S,o[l+s*2]=u*m,o[l+s*2+1]=f*S,o[l+s*3]=c*m,o[l+s*3+1]=f*S,l+=s*4}},t.prototype.uploadPosition=function(n,r,a,o,s,l){for(var u=0;u<a;u++){var c=n[r+u].position;o[l]=c.x,o[l+1]=c.y,o[l+s]=c.x,o[l+s+1]=c.y,o[l+s*2]=c.x,o[l+s*2+1]=c.y,o[l+s*3]=c.x,o[l+s*3+1]=c.y,l+=s*4}},t.prototype.uploadRotation=function(n,r,a,o,s,l){for(var u=0;u<a;u++){var c=n[r+u].rotation;o[l]=c,o[l+s]=c,o[l+s*2]=c,o[l+s*3]=c,l+=s*4}},t.prototype.uploadUvs=function(n,r,a,o,s,l){for(var u=0;u<a;++u){var c=n[r+u]._texture._uvs;c?(o[l]=c.x0,o[l+1]=c.y0,o[l+s]=c.x1,o[l+s+1]=c.y1,o[l+s*2]=c.x2,o[l+s*2+1]=c.y2,o[l+s*3]=c.x3,o[l+s*3+1]=c.y3,l+=s*4):(o[l]=0,o[l+1]=0,o[l+s]=0,o[l+s+1]=0,o[l+s*2]=0,o[l+s*2+1]=0,o[l+s*3]=0,o[l+s*3+1]=0,l+=s*4)}},t.prototype.uploadTint=function(n,r,a,o,s,l){for(var u=0;u<a;++u){var c=n[r+u],f=c._texture.baseTexture.alphaMode>0,d=c.alpha,p=d<1&&f?jv(c._tintRGB,d):c._tintRGB+(d*255<<24);o[l]=p,o[l+s]=p,o[l+s*2]=p,o[l+s*3]=p,l+=s*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t.extension={name:"particle",type:Kn.RendererPlugin},t}(wh);/*!
 * @pixi/prepare - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/prepare is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */Nt.UPLOADS_PER_FRAME=4;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ib=function(e,t){return ib=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},ib(e,t)};function f1e(e,t){ib(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Gk=function(){function e(t){this.maxItemsPerFrame=t,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();function h1e(e,t){var n=!1;if(e&&e._textures&&e._textures.length){for(var r=0;r<e._textures.length;r++)if(e._textures[r]instanceof mn){var a=e._textures[r].baseTexture;t.indexOf(a)===-1&&(t.push(a),n=!0)}}return n}function p1e(e,t){if(e.baseTexture instanceof kn){var n=e.baseTexture;return t.indexOf(n)===-1&&t.push(n),!0}return!1}function v1e(e,t){if(e._texture&&e._texture instanceof mn){var n=e._texture.baseTexture;return t.indexOf(n)===-1&&t.push(n),!0}return!1}function m1e(e,t){return t instanceof nm?(t.updateText(!0),!0):!1}function g1e(e,t){if(t instanceof Ys){var n=t.toFontString();return Yo.measureFont(n),!0}return!1}function y1e(e,t){if(e instanceof nm){t.indexOf(e.style)===-1&&t.push(e.style),t.indexOf(e)===-1&&t.push(e);var n=e._texture.baseTexture;return t.indexOf(n)===-1&&t.push(n),!0}return!1}function b1e(e,t){return e instanceof Ys?(t.indexOf(e)===-1&&t.push(e),!0):!1}var jk=function(){function e(t){var n=this;this.limiter=new Gk(Nt.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){n.queue&&n.prepareItems()},this.registerFindHook(y1e),this.registerFindHook(b1e),this.registerFindHook(h1e),this.registerFindHook(p1e),this.registerFindHook(v1e),this.registerUploadHook(m1e),this.registerUploadHook(g1e)}return e.prototype.upload=function(t,n){var r=this;return typeof t=="function"&&(n=t,t=null),n&&Sa("6.5.0","BasePrepare.upload callback is deprecated, use the return Promise instead."),new Promise(function(a){t&&r.add(t);var o=function(){n==null||n(),a()};r.queue.length?(r.completes.push(o),r.ticking||(r.ticking=!0,Kr.system.addOnce(r.tick,r,_i.UTILITY))):o()})},e.prototype.tick=function(){setTimeout(this.delayedTick,0)},e.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var t=this.queue[0],n=!1;if(t&&!t._destroyed){for(var r=0,a=this.uploadHooks.length;r<a;r++)if(this.uploadHooks[r](this.uploadHookHelper,t)){this.queue.shift(),n=!0;break}}n||this.queue.shift()}if(this.queue.length)Kr.system.addOnce(this.tick,this,_i.UTILITY);else{this.ticking=!1;var o=this.completes.slice(0);this.completes.length=0;for(var r=0,a=o.length;r<a;r++)o[r]()}},e.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},e.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},e.prototype.add=function(t){for(var n=0,r=this.addHooks.length;n<r&&!this.addHooks[n](t,this.queue);n++);if(t instanceof Co)for(var n=t.children.length-1;n>=0;n--)this.add(t.children[n]);return this},e.prototype.destroy=function(){this.ticking&&Kr.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function zk(e,t){return t instanceof kn?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function _1e(e,t){if(!(t instanceof Mc))return!1;var n=t.geometry;t.finishPoly(),n.updateBatches();for(var r=n.batches,a=0;a<r.length;a++){var o=r[a].style.texture;o&&zk(e,o.baseTexture)}return n.batchable||e.geometry.bind(n,t._resolveDirectShader(e)),!0}function w1e(e,t){return e instanceof Mc?(t.push(e),!0):!1}var Kk=function(e){f1e(t,e);function t(n){var r=e.call(this,n)||this;return r.uploadHookHelper=r.renderer,r.registerFindHook(w1e),r.registerUploadHook(zk),r.registerUploadHook(_1e),r}return t.extension={name:"prepare",type:Kn.RendererPlugin},t}(jk),S1e=function(){function e(t){this.maxMilliseconds=t,this.frameStart=0}return e.prototype.beginFrame=function(){this.frameStart=Date.now()},e.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},e}();/*!
 * @pixi/spritesheet - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/spritesheet is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var Wk=function(){function e(t,n,r){r===void 0&&(r=null),this.linkedSheets=[],this._texture=t instanceof mn?t:null,this.baseTexture=t instanceof kn?t:this._texture.baseTexture,this.textures={},this.animations={},this.data=n;var a=this.baseTexture.resource;this.resolution=this._updateResolution(r||(a?a.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return e.prototype._updateResolution=function(t){t===void 0&&(t=null);var n=this.data.meta.scale,r=Vf(t,null);return r===null&&(r=n!==void 0?parseFloat(n):1),r!==1&&this.baseTexture.setResolution(r),r},e.prototype.parse=function(t){var n=this;return t&&Sa("6.5.0","Spritesheet.parse callback is deprecated, use the return Promise instead."),new Promise(function(r){n._callback=function(a){t==null||t(a),r(a)},n._batchIndex=0,n._frameKeys.length<=e.BATCH_SIZE?(n._processFrames(0),n._processAnimations(),n._parseComplete()):n._nextBatch()})},e.prototype._processFrames=function(t){for(var n=t,r=e.BATCH_SIZE;n-t<r&&n<this._frameKeys.length;){var a=this._frameKeys[n],o=this._frames[a],s=o.frame;if(s){var l=null,u=null,c=o.trimmed!==!1&&o.sourceSize?o.sourceSize:o.frame,f=new $n(0,0,Math.floor(c.w)/this.resolution,Math.floor(c.h)/this.resolution);o.rotated?l=new $n(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.h)/this.resolution,Math.floor(s.w)/this.resolution):l=new $n(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution),o.trimmed!==!1&&o.spriteSourceSize&&(u=new $n(Math.floor(o.spriteSourceSize.x)/this.resolution,Math.floor(o.spriteSourceSize.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution)),this.textures[a]=new mn(this.baseTexture,l,f,u,o.rotated?2:0,o.anchor),mn.addToCache(this.textures[a],a)}n++}},e.prototype._processAnimations=function(){var t=this.data.animations||{};for(var n in t){this.animations[n]=[];for(var r=0;r<t[n].length;r++){var a=t[n][r];this.animations[n].push(this.textures[a])}}},e.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},e.prototype._nextBatch=function(){var t=this;this._processFrames(this._batchIndex*e.BATCH_SIZE),this._batchIndex++,setTimeout(function(){t._batchIndex*e.BATCH_SIZE<t._frameKeys.length?t._nextBatch():(t._processAnimations(),t._parseComplete())},0)},e.prototype.destroy=function(t){var n;t===void 0&&(t=!1);for(var r in this.textures)this.textures[r].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&((n=this._texture)===null||n===void 0||n.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]},e.BATCH_SIZE=1e3,e}(),Xk=function(){function e(){}return e.use=function(t,n){var r,a,o=this,s=t.name+"_image";if(!t.data||t.type!==pr.TYPE.JSON||!t.data.frames||o.resources[s]){n();return}var l=(a=(r=t.data)===null||r===void 0?void 0:r.meta)===null||a===void 0?void 0:a.related_multi_packs;if(Array.isArray(l))for(var u=function(y){if(typeof y!="string")return"continue";var m=y.replace(".json",""),S=fi.resolve(t.url.replace(o.baseUrl,""),y);if(o.resources[m]||Object.values(o.resources).some(function(P){return fi.format(fi.parse(P.url))===S}))return"continue";var _={crossOrigin:t.crossOrigin,loadType:pr.LOAD_TYPE.XHR,xhrType:pr.XHR_RESPONSE_TYPE.JSON,parentResource:t,metadata:t.metadata};o.add(m,S,_)},c=0,f=l;c<f.length;c++){var d=f[c];u(d)}var p={crossOrigin:t.crossOrigin,metadata:t.metadata.imageMetadata,parentResource:t},g=e.getResourcePath(t,o.baseUrl);o.add(s,g,p,function(y){if(y.error){n(y.error);return}var m=new Wk(y.texture,t.data,t.url);m.parse().then(function(){t.spritesheet=m,t.textures=m.textures,n()})})},e.getResourcePath=function(t,n){return t.isDataUrl?t.data.meta.image:fi.resolve(t.url.replace(n,""),t.data.meta.image)},e.extension=Kn.Loader,e}();/*!
 * @pixi/sprite-tiling - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/sprite-tiling is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var sb=function(e,t){return sb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},sb(e,t)};function Yk(e,t){sb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sd=new Zn,T1e=function(e){Yk(t,e);function t(n,r,a){r===void 0&&(r=100),a===void 0&&(a=100);var o=e.call(this,n)||this;return o.tileTransform=new Kv,o._width=r,o._height=a,o.uvMatrix=o.texture.uvMatrix||new Jv(n),o.pluginName="tilingSprite",o.uvRespectAnchor=!1,o}return Object.defineProperty(t.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(n){this.uvMatrix.clampMargin=n,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(n){this.tileTransform.scale.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(n){this.tileTransform.position.copyFrom(n)},enumerable:!1,configurable:!0}),t.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},t.prototype._render=function(n){var r=this._texture;!r||!r.valid||(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),n.batch.setObjectRenderer(n.plugins[this.pluginName]),n.plugins[this.pluginName].render(this))},t.prototype._calculateBounds=function(){var n=this._width*-this._anchor._x,r=this._height*-this._anchor._y,a=this._width*(1-this._anchor._x),o=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,n,r,a,o)},t.prototype.getLocalBounds=function(n){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),n||(this._localBoundsRect||(this._localBoundsRect=new $n),n=this._localBoundsRect),this._bounds.getRectangle(n)):e.prototype.getLocalBounds.call(this,n)},t.prototype.containsPoint=function(n){this.worldTransform.applyInverse(n,Sd);var r=this._width,a=this._height,o=-r*this.anchor._x;if(Sd.x>=o&&Sd.x<o+r){var s=-a*this.anchor._y;if(Sd.y>=s&&Sd.y<s+a)return!0}return!1},t.prototype.destroy=function(n){e.prototype.destroy.call(this,n),this.tileTransform=null,this.uvMatrix=null},t.from=function(n,r){var a=n instanceof mn?n:mn.from(n,r);return new t(a,r.width,r.height)},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(n){this._width=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(n){this._height=n},enumerable:!1,configurable:!0}),t}(qc),E1e=`#version 100
#define SHADER_NAME Tiling-Sprite-Simple-100

precision lowp float;

varying vec2 vTextureCoord;

uniform sampler2D uSampler;
uniform vec4 uColor;

void main(void)
{
    vec4 texSample = texture2D(uSampler, vTextureCoord);
    gl_FragColor = texSample * uColor;
}
`,W4=`#version 100
#define SHADER_NAME Tiling-Sprite-100

precision lowp float;

attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;

varying vec2 vTextureCoord;

void main(void)
{
    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,C1e=`#version 100
#ifdef GL_EXT_shader_texture_lod
    #extension GL_EXT_shader_texture_lod : enable
#endif
#define SHADER_NAME Tiling-Sprite-100

precision lowp float;

varying vec2 vTextureCoord;

uniform sampler2D uSampler;
uniform vec4 uColor;
uniform mat3 uMapCoord;
uniform vec4 uClampFrame;
uniform vec2 uClampOffset;

void main(void)
{
    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
    coord = (uMapCoord * vec3(coord, 1.0)).xy;
    vec2 unclamped = coord;
    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);

    #ifdef GL_EXT_shader_texture_lod
        vec4 texSample = unclamped == coord
            ? texture2D(uSampler, coord) 
            : texture2DLodEXT(uSampler, coord, 0);
    #else
        vec4 texSample = texture2D(uSampler, coord);
    #endif

    gl_FragColor = texSample * uColor;
}
`,x1e=`#version 300 es
#define SHADER_NAME Tiling-Sprite-300

precision lowp float;

in vec2 aVertexPosition;
in vec2 aTextureCoord;

uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;

out vec2 vTextureCoord;

void main(void)
{
    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,I1e=`#version 300 es
#define SHADER_NAME Tiling-Sprite-100

precision lowp float;

in vec2 vTextureCoord;

out vec4 fragmentColor;

uniform sampler2D uSampler;
uniform vec4 uColor;
uniform mat3 uMapCoord;
uniform vec4 uClampFrame;
uniform vec2 uClampOffset;

void main(void)
{
    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);
    coord = (uMapCoord * vec3(coord, 1.0)).xy;
    vec2 unclamped = coord;
    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);

    vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0

    fragmentColor = texSample * uColor;
}
`,Cp=new cr,Jk=function(e){Yk(t,e);function t(n){var r=e.call(this,n)||this;return n.runners.contextChange.add(r),r.quad=new Z1,r.state=ol.for2d(),r}return t.prototype.contextChange=function(){var n=this.renderer,r={globals:n.globalUniforms};this.simpleShader=Ui.from(W4,E1e,r),this.shader=n.context.webGLVersion>1?Ui.from(x1e,I1e,r):Ui.from(W4,C1e,r)},t.prototype.render=function(n){var r=this.renderer,a=this.quad,o=a.vertices;o[0]=o[6]=n._width*-n.anchor.x,o[1]=o[3]=n._height*-n.anchor.y,o[2]=o[4]=n._width*(1-n.anchor.x),o[5]=o[7]=n._height*(1-n.anchor.y);var s=n.uvRespectAnchor?n.anchor.x:0,l=n.uvRespectAnchor?n.anchor.y:0;o=a.uvs,o[0]=o[6]=-s,o[1]=o[3]=-l,o[2]=o[4]=1-s,o[5]=o[7]=1-l,a.invalidate();var u=n._texture,c=u.baseTexture,f=c.alphaMode>0,d=n.tileTransform.localTransform,p=n.uvMatrix,g=c.isPowerOfTwo&&u.frame.width===c.width&&u.frame.height===c.height;g&&(c._glTextures[r.CONTEXT_UID]?g=c.wrapMode!==Bo.CLAMP:c.wrapMode===Bo.CLAMP&&(c.wrapMode=Bo.REPEAT));var y=g?this.simpleShader:this.shader,m=u.width,S=u.height,_=n._width,P=n._height;Cp.set(d.a*m/_,d.b*m/P,d.c*S/_,d.d*S/P,d.tx/_,d.ty/P),Cp.invert(),g?Cp.prepend(p.mapCoord):(y.uniforms.uMapCoord=p.mapCoord.toArray(!0),y.uniforms.uClampFrame=p.uClampFrame,y.uniforms.uClampOffset=p.uClampOffset),y.uniforms.uTransform=Cp.toArray(!0),y.uniforms.uColor=j1(n.tint,n.worldAlpha,y.uniforms.uColor,f),y.uniforms.translationMatrix=n.transform.worldTransform.toArray(!0),y.uniforms.uSampler=u,r.shader.bind(y),r.geometry.bind(a),this.state.blendMode=G1(n.blendMode,f),r.state.set(this.state),r.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t.extension={name:"tilingSprite",type:Kn.RendererPlugin},t}(wh);/*!
 * @pixi/mesh - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/mesh is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var lb=function(e,t){return lb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},lb(e,t)};function Lw(e,t){lb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qk=function(){function e(t,n){this.uvBuffer=t,this.uvMatrix=n,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var n=this.uvBuffer.data;(!this.data||this.data.length!==n.length)&&(this.data=new Float32Array(n.length)),this.uvMatrix.multiplyUvs(n,this.data),this._updateID++}},e}(),Hg=new Zn,X4=new ef,$c=function(e){Lw(t,e);function t(n,r,a,o){o===void 0&&(o=co.TRIANGLES);var s=e.call(this)||this;return s.geometry=n,s.shader=r,s.state=a||ol.for2d(),s.drawMode=o,s.start=0,s.size=0,s.uvs=null,s.indices=null,s.vertexData=new Float32Array(1),s.vertexDirty=-1,s._transformID=-1,s._roundPixels=Nt.ROUND_PIXELS,s.batchUvs=null,s}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(n){this._geometry!==n&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=n,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(n){this.shader=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(n){this.state.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(n){this._roundPixels!==n&&(this._transformID=-1),this._roundPixels=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(n){this.shader.tint=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(n){this.shader.texture=n},enumerable:!1,configurable:!0}),t.prototype._render=function(n){var r=this.geometry.buffers[0].data,a=this.shader;a.batchable&&this.drawMode===co.TRIANGLES&&r.length<t.BATCHABLE_SIZE*2?this._renderToBatch(n):this._renderDefault(n)},t.prototype._renderDefault=function(n){var r=this.shader;r.alpha=this.worldAlpha,r.update&&r.update(),n.batch.flush(),r.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),n.shader.bind(r),n.state.set(this.state),n.geometry.bind(this.geometry,r),n.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},t.prototype._renderToBatch=function(n){var r=this.geometry,a=this.shader;a.uvMatrix&&(a.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=r.indexBuffer.data,this._tintRGB=a._tintRGB,this._texture=a.texture;var o=this.material.pluginName;n.batch.setObjectRenderer(n.plugins[o]),n.plugins[o].render(this)},t.prototype.calculateVertices=function(){var n=this.geometry,r=n.buffers[0],a=r.data,o=r._updateID;if(!(o===this.vertexDirty&&this._transformID===this.transform._worldID)){this._transformID=this.transform._worldID,this.vertexData.length!==a.length&&(this.vertexData=new Float32Array(a.length));for(var s=this.transform.worldTransform,l=s.a,u=s.b,c=s.c,f=s.d,d=s.tx,p=s.ty,g=this.vertexData,y=0;y<g.length/2;y++){var m=a[y*2],S=a[y*2+1];g[y*2]=l*m+c*S+d,g[y*2+1]=u*m+f*S+p}if(this._roundPixels)for(var _=Nt.RESOLUTION,y=0;y<g.length;++y)g[y]=Math.round((g[y]*_|0)/_);this.vertexDirty=o}},t.prototype.calculateUvs=function(){var n=this.geometry.buffers[1],r=this.shader;r.uvMatrix.isSimple?this.uvs=n.data:(this.batchUvs||(this.batchUvs=new qk(n,r.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},t.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},t.prototype.containsPoint=function(n){if(!this.getBounds().contains(n.x,n.y))return!1;this.worldTransform.applyInverse(n,Hg);for(var r=this.geometry.getBuffer("aVertexPosition").data,a=X4.points,o=this.geometry.getIndex().data,s=o.length,l=this.drawMode===4?3:1,u=0;u+2<s;u+=l){var c=o[u]*2,f=o[u+1]*2,d=o[u+2]*2;if(a[0]=r[c],a[1]=r[c+1],a[2]=r[f],a[3]=r[f+1],a[4]=r[d],a[5]=r[d+1],X4.contains(Hg.x,Hg.y))return!0}return!1},t.prototype.destroy=function(n){e.prototype.destroy.call(this,n),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},t.BATCHABLE_SIZE=100,t}(Co),A1e=`varying vec2 vTextureCoord;
uniform vec4 uColor;

uniform sampler2D uSampler;

void main(void)
{
    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
}
`,P1e=`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;

uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTextureMatrix;

varying vec2 vTextureCoord;

void main(void)
{
    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);

    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
}
`,Rc=function(e){Lw(t,e);function t(n,r){var a=this,o={uSampler:n,alpha:1,uTextureMatrix:cr.IDENTITY,uColor:new Float32Array([1,1,1,1])};return r=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},r),r.uniforms&&Object.assign(o,r.uniforms),a=e.call(this,r.program||Jc.from(P1e,A1e),o)||this,a._colorDirty=!1,a.uvMatrix=new Jv(n),a.batchable=r.program===void 0,a.pluginName=r.pluginName,a.tint=r.tint,a.alpha=r.alpha,a}return Object.defineProperty(t.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(n){this.uniforms.uSampler!==n&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!n.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=n,this.uvMatrix.texture=n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(n){n!==this._alpha&&(this._alpha=n,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){n!==this._tint&&(this._tint=n,this._tintRGB=(n>>16)+(n&65280)+((n&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var n=this.texture.baseTexture;j1(this._tint,this._alpha,this.uniforms.uColor,n.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(Ui),Sh=function(e){Lw(t,e);function t(n,r,a){var o=e.call(this)||this,s=new $r(n),l=new $r(r,!0),u=new $r(a,!0,!0);return o.addAttribute("aVertexPosition",s,2,!1,an.FLOAT).addAttribute("aTextureCoord",l,2,!1,an.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}(Yc);/*!
 * @pixi/text-bitmap - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/text-bitmap is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ub=function(e,t){return ub=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},ub(e,t)};function M1e(e,t){ub(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Qf=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),Qk=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var a in n){var o=n[a].match(/^[a-z]+/gm)[0],s=n[a].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),l={};for(var u in s){var c=s[u].split("="),f=c[0],d=c[1].replace(/"/gm,""),p=parseFloat(d),g=isNaN(p)?d:p;l[f]=g}r[o].push(l)}var y=new Qf;return r.info.forEach(function(m){return y.info.push({face:m.face,size:parseInt(m.size,10)})}),r.common.forEach(function(m){return y.common.push({lineHeight:parseInt(m.lineHeight,10)})}),r.page.forEach(function(m){return y.page.push({id:parseInt(m.id,10),file:m.file})}),r.char.forEach(function(m){return y.char.push({id:parseInt(m.id,10),page:parseInt(m.page,10),x:parseInt(m.x,10),y:parseInt(m.y,10),width:parseInt(m.width,10),height:parseInt(m.height,10),xoffset:parseInt(m.xoffset,10),yoffset:parseInt(m.yoffset,10),xadvance:parseInt(m.xadvance,10)})}),r.kerning.forEach(function(m){return y.kerning.push({first:parseInt(m.first,10),second:parseInt(m.second,10),amount:parseInt(m.amount,10)})}),r.distanceField.forEach(function(m){return y.distanceField.push({distanceRange:parseInt(m.distanceRange,10),fieldType:m.fieldType})}),y},e}(),ev=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var n=new Qf,r=t.getElementsByTagName("info"),a=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),l=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),c=0;c<r.length;c++)n.info.push({face:r[c].getAttribute("face"),size:parseInt(r[c].getAttribute("size"),10)});for(var c=0;c<a.length;c++)n.common.push({lineHeight:parseInt(a[c].getAttribute("lineHeight"),10)});for(var c=0;c<o.length;c++)n.page.push({id:parseInt(o[c].getAttribute("id"),10)||0,file:o[c].getAttribute("file")});for(var c=0;c<s.length;c++){var f=s[c];n.char.push({id:parseInt(f.getAttribute("id"),10),page:parseInt(f.getAttribute("page"),10)||0,x:parseInt(f.getAttribute("x"),10),y:parseInt(f.getAttribute("y"),10),width:parseInt(f.getAttribute("width"),10),height:parseInt(f.getAttribute("height"),10),xoffset:parseInt(f.getAttribute("xoffset"),10),yoffset:parseInt(f.getAttribute("yoffset"),10),xadvance:parseInt(f.getAttribute("xadvance"),10)})}for(var c=0;c<l.length;c++)n.kerning.push({first:parseInt(l[c].getAttribute("first"),10),second:parseInt(l[c].getAttribute("second"),10),amount:parseInt(l[c].getAttribute("amount"),10)});for(var c=0;c<u.length;c++)n.distanceField.push({fieldType:u[c].getAttribute("fieldType"),distanceRange:parseInt(u[c].getAttribute("distanceRange"),10)});return n},e}(),Zk=function(){function e(){}return e.test=function(t){if(typeof t=="string"&&t.indexOf("<font>")>-1){var n=new globalThis.DOMParser().parseFromString(t,"text/xml");return ev.test(n)}return!1},e.parse=function(t){var n=new globalThis.DOMParser().parseFromString(t,"text/xml");return ev.parse(n)},e}(),Ug=[Qk,ev,Zk];function Nw(e){for(var t=0;t<Ug.length;t++)if(Ug[t].test(e))return Ug[t];return null}function O1e(e,t,n,r,a,o){var s=n.fill;if(Array.isArray(s)){if(s.length===1)return s[0]}else return s;var l,u=n.dropShadow?n.dropShadowDistance:0,c=n.padding||0,f=e.width/r-u-c*2,d=e.height/r-u-c*2,p=s.slice(),g=n.fillGradientStops.slice();if(!g.length)for(var y=p.length+1,m=1;m<y;++m)g.push(m/y);if(p.unshift(s[0]),g.unshift(0),p.push(s[s.length-1]),g.push(1),n.fillGradientType===Oc.LINEAR_VERTICAL){l=t.createLinearGradient(f/2,c,f/2,d+c);for(var S=0,_=o.fontProperties.fontSize+n.strokeThickness,P=_/d,m=0;m<a.length;m++)for(var A=o.lineHeight*m,$=0;$<p.length;$++){var k=0;typeof g[$]=="number"?k=g[$]:k=$/p.length;var L=A/d+k*P,B=Math.max(S,L);B=Math.min(B,1),l.addColorStop(B,p[$]),S=B}}else{l=t.createLinearGradient(c,d/2,f+c,d/2);for(var H=p.length+1,G=1,m=0;m<p.length;m++){var j=void 0;typeof g[m]=="number"?j=g[m]:j=G/H,l.addColorStop(j,p[m]),G++}}return l}function $1e(e,t,n,r,a,o,s){var l=n.text,u=n.fontProperties;t.translate(r,a),t.scale(o,o);var c=s.strokeThickness/2,f=-(s.strokeThickness/2);if(t.font=s.toFontString(),t.lineWidth=s.strokeThickness,t.textBaseline=s.textBaseline,t.lineJoin=s.lineJoin,t.miterLimit=s.miterLimit,t.fillStyle=O1e(e,t,s,o,[l],n),t.strokeStyle=s.stroke,s.dropShadow){var d=s.dropShadowColor,p=iu(typeof d=="number"?d:U1(d)),g=s.dropShadowBlur*o,y=s.dropShadowDistance*o;t.shadowColor="rgba("+p[0]*255+","+p[1]*255+","+p[2]*255+","+s.dropShadowAlpha+")",t.shadowBlur=g,t.shadowOffsetX=Math.cos(s.dropShadowAngle)*y,t.shadowOffsetY=Math.sin(s.dropShadowAngle)*y}else t.shadowColor="black",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0;s.stroke&&s.strokeThickness&&t.strokeText(l,c,f+n.lineHeight-u.descent),s.fill&&t.fillText(l,c,f+n.lineHeight-u.descent),t.setTransform(1,0,0,1,0,0),t.fillStyle="rgba(0, 0, 0, 0)"}function e8(e){return Array.from?Array.from(e):e.split("")}function R1e(e){typeof e=="string"&&(e=[e]);for(var t=[],n=0,r=e.length;n<r;n++){var a=e[n];if(Array.isArray(a)){if(a.length!==2)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+a.length+".");var o=a[0].charCodeAt(0),s=a[1].charCodeAt(0);if(s<o)throw new Error("[BitmapFont]: Invalid character range.");for(var l=o,u=s;l<=u;l++)t.push(String.fromCharCode(l))}else t.push.apply(t,e8(a))}if(t.length===0)throw new Error("[BitmapFont]: Empty set when resolving characters.");return t}function c0(e){return e.codePointAt?e.codePointAt(0):e.charCodeAt(0)}var $i=function(){function e(t,n,r){var a,o,s=t.info[0],l=t.common[0],u=t.page[0],c=t.distanceField[0],f=Vf(u.file),d={};this._ownsTextures=r,this.font=s.face,this.size=s.size,this.lineHeight=l.lineHeight/f,this.chars={},this.pageTextures=d;for(var p=0;p<t.page.length;p++){var g=t.page[p],y=g.id,m=g.file;d[y]=n instanceof Array?n[p]:n[m],c!=null&&c.fieldType&&c.fieldType!=="none"&&(d[y].baseTexture.alphaMode=Eo.NO_PREMULTIPLIED_ALPHA,d[y].baseTexture.mipmap=To.OFF)}for(var p=0;p<t.char.length;p++){var S=t.char[p],y=S.id,_=S.page,P=t.char[p],A=P.x,$=P.y,k=P.width,L=P.height,B=P.xoffset,H=P.yoffset,G=P.xadvance;A/=f,$/=f,k/=f,L/=f,B/=f,H/=f,G/=f;var j=new $n(A+d[_].frame.x/f,$+d[_].frame.y/f,k,L);this.chars[y]={xOffset:B,yOffset:H,xAdvance:G,kerning:{},texture:new mn(d[_].baseTexture,j),page:_}}for(var p=0;p<t.kerning.length;p++){var W=t.kerning[p],Q=W.first,ue=W.second,se=W.amount;Q/=f,ue/=f,se/=f,this.chars[ue]&&(this.chars[ue].kerning[Q]=se)}this.distanceFieldRange=c==null?void 0:c.distanceRange,this.distanceFieldType=(o=(a=c==null?void 0:c.fieldType)===null||a===void 0?void 0:a.toLowerCase())!==null&&o!==void 0?o:"none"}return e.prototype.destroy=function(){for(var t in this.chars)this.chars[t].texture.destroy(),this.chars[t].texture=null;for(var t in this.pageTextures)this._ownsTextures&&this.pageTextures[t].destroy(!0),this.pageTextures[t]=null;this.chars=null,this.pageTextures=null},e.install=function(t,n,r){var a;if(t instanceof Qf)a=t;else{var o=Nw(t);if(!o)throw new Error("Unrecognized data format for font.");a=o.parse(t)}n instanceof mn&&(n=[n]);var s=new e(a,n,r);return e.available[s.font]=s,s},e.uninstall=function(t){var n=e.available[t];if(!n)throw new Error("No font found named '"+t+"'");n.destroy(),delete e.available[t]},e.from=function(t,n,r){if(!t)throw new Error("[BitmapFont] Property `name` is required.");var a=Object.assign({},e.defaultOptions,r),o=a.chars,s=a.padding,l=a.resolution,u=a.textureWidth,c=a.textureHeight,f=R1e(o),d=n instanceof Ys?n:new Ys(n),p=u,g=new Qf;g.info[0]={face:d.fontFamily,size:d.fontSize},g.common[0]={lineHeight:d.fontSize};for(var y=0,m=0,S,_,P,A=0,$=[],k=0;k<f.length;k++){S||(S=Nt.ADAPTER.createCanvas(),S.width=u,S.height=c,_=S.getContext("2d"),P=new kn(S,{resolution:l}),$.push(new mn(P)),g.page.push({id:$.length-1,file:""}));var L=f[k],B=Yo.measureText(L,d,!1,S),H=B.width,G=Math.ceil(B.height),j=Math.ceil((d.fontStyle==="italic"?2:1)*H);if(m>=c-G*l){if(m===0)throw new Error("[BitmapFont] textureHeight "+c+"px is too small "+("(fontFamily: '"+d.fontFamily+"', fontSize: "+d.fontSize+"px, char: '"+L+"')"));--k,S=null,_=null,P=null,m=0,y=0,A=0;continue}if(A=Math.max(G+B.fontProperties.descent,A),j*l+y>=p){if(y===0)throw new Error("[BitmapFont] textureWidth "+u+"px is too small "+("(fontFamily: '"+d.fontFamily+"', fontSize: "+d.fontSize+"px, char: '"+L+"')"));--k,m+=A*l,m=Math.ceil(m),y=0,A=0;continue}$1e(S,_,B,y,m,l,d);var W=c0(B.text);g.char.push({id:W,page:$.length-1,x:y/l,y:m/l,width:j,height:G,xoffset:0,yoffset:0,xadvance:Math.ceil(H-(d.dropShadow?d.dropShadowDistance:0)-(d.stroke?d.strokeThickness:0))}),y+=(j+2*s)*l,y=Math.ceil(y)}if(!(r!=null&&r.skipKerning))for(var k=0,Q=f.length;k<Q;k++)for(var ue=f[k],se=0;se<Q;se++){var ne=f[se],J=_.measureText(ue).width,X=_.measureText(ne).width,te=_.measureText(ue+ne).width,Y=te-(J+X);Y&&g.kerning.push({first:c0(ue),second:c0(ne),amount:Y})}var Z=new e(g,$,!0);return e.available[t]!==void 0&&e.uninstall(t),e.available[t]=Z,Z},e.ALPHA=[["a","z"],["A","Z"]," "],e.NUMERIC=[["0","9"]],e.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],e.ASCII=[[" ","~"]],e.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:e.ALPHANUMERIC},e.available={},e}(),k1e=`// Pixi texture info\r
varying vec2 vTextureCoord;\r
uniform sampler2D uSampler;\r
\r
// Tint\r
uniform vec4 uColor;\r
\r
// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r
uniform float uFWidth;\r
\r
void main(void) {\r
\r
  // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r
  vec4 texColor = texture2D(uSampler, vTextureCoord);\r
\r
  // MSDF\r
  float median = texColor.r + texColor.g + texColor.b -\r
                  min(texColor.r, min(texColor.g, texColor.b)) -\r
                  max(texColor.r, max(texColor.g, texColor.b));\r
  // SDF\r
  median = min(median, texColor.a);\r
\r
  float screenPxDistance = uFWidth * (median - 0.5);\r
  float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r
  if (median < 0.01) {\r
    alpha = 0.0;\r
  } else if (median > 0.99) {\r
    alpha = 1.0;\r
  }\r
\r
  // NPM Textures, NPM outputs\r
  gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r
\r
}\r
`,L1e=`// Mesh material default fragment\r
attribute vec2 aVertexPosition;\r
attribute vec2 aTextureCoord;\r
\r
uniform mat3 projectionMatrix;\r
uniform mat3 translationMatrix;\r
uniform mat3 uTextureMatrix;\r
\r
varying vec2 vTextureCoord;\r
\r
void main(void)\r
{\r
    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r
\r
    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r
}\r
`,Y4=[],J4=[],q4=[],N1e=function(e){M1e(t,e);function t(n,r){r===void 0&&(r={});var a=e.call(this)||this;a._tint=16777215;var o=Object.assign({},t.styleDefaults,r),s=o.align,l=o.tint,u=o.maxWidth,c=o.letterSpacing,f=o.fontName,d=o.fontSize;if(!$i.available[f])throw new Error('Missing BitmapFont "'+f+'"');return a._activePagesMeshData=[],a._textWidth=0,a._textHeight=0,a._align=s,a._tint=l,a._font=void 0,a._fontName=f,a._fontSize=d,a.text=n,a._maxWidth=u,a._maxLineHeight=0,a._letterSpacing=c,a._anchor=new Ps(function(){a.dirty=!0},a,0,0),a._roundPixels=Nt.ROUND_PIXELS,a.dirty=!0,a._resolution=Nt.RESOLUTION,a._autoResolution=!0,a._textureCache={},a}return t.prototype.updateText=function(){for(var n,r=$i.available[this._fontName],a=this.fontSize,o=a/r.size,s=new Zn,l=[],u=[],c=[],f=this._text.replace(/(?:\r\n|\r)/g,`
`)||" ",d=e8(f),p=this._maxWidth*r.size/a,g=r.distanceFieldType==="none"?Y4:J4,y=null,m=0,S=0,_=0,P=-1,A=0,$=0,k=0,L=0,B=0;B<d.length;B++){var H=d[B],G=c0(H);if(/(?:\s)/.test(H)&&(P=B,A=m,L++),H==="\r"||H===`
`){u.push(m),c.push(-1),S=Math.max(S,m),++_,++$,s.x=0,s.y+=r.lineHeight,y=null,L=0;continue}var j=r.chars[G];if(j){y&&j.kerning[y]&&(s.x+=j.kerning[y]);var W=q4.pop()||{texture:mn.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Zn};W.texture=j.texture,W.line=_,W.charCode=G,W.position.x=s.x+j.xOffset+this._letterSpacing/2,W.position.y=s.y+j.yOffset,W.prevSpaces=L,l.push(W),m=W.position.x+Math.max(j.xAdvance-j.xOffset,j.texture.orig.width),s.x+=j.xAdvance+this._letterSpacing,k=Math.max(k,j.yOffset+j.texture.height),y=G,P!==-1&&p>0&&s.x>p&&(++$,Wl(l,1+P-$,1+B-P),B=P,P=-1,u.push(A),c.push(l.length>0?l[l.length-1].prevSpaces:0),S=Math.max(S,A),_++,s.x=0,s.y+=r.lineHeight,y=null,L=0)}}var Q=d[d.length-1];Q!=="\r"&&Q!==`
`&&(/(?:\s)/.test(Q)&&(m=A),u.push(m),S=Math.max(S,m),c.push(-1));for(var ue=[],B=0;B<=_;B++){var se=0;this._align==="right"?se=S-u[B]:this._align==="center"?se=(S-u[B])/2:this._align==="justify"&&(se=c[B]<0?0:(S-u[B])/c[B]),ue.push(se)}var ne=l.length,J={},X=[],te=this._activePagesMeshData;g.push.apply(g,te);for(var B=0;B<ne;B++){var Y=l[B].texture,Z=Y.baseTexture.uid;if(!J[Z]){var ae=g.pop();if(!ae){var ve=new Sh,we=void 0,Me=void 0;r.distanceFieldType==="none"?(we=new Rc(mn.EMPTY),Me=on.NORMAL):(we=new Rc(mn.EMPTY,{program:Jc.from(L1e,k1e),uniforms:{uFWidth:0}}),Me=on.NORMAL_NPM);var Ge=new $c(ve,we);Ge.blendMode=Me,ae={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:Ge,vertices:null,uvs:null,indices:null}}ae.index=0,ae.indexCount=0,ae.vertexCount=0,ae.uvsCount=0,ae.total=0;var Ee=this._textureCache;Ee[Z]=Ee[Z]||new mn(Y.baseTexture),ae.mesh.texture=Ee[Z],ae.mesh.tint=this._tint,X.push(ae),J[Z]=ae}J[Z].total++}for(var B=0;B<te.length;B++)X.indexOf(te[B])===-1&&this.removeChild(te[B].mesh);for(var B=0;B<X.length;B++)X[B].mesh.parent!==this&&this.addChild(X[B].mesh);this._activePagesMeshData=X;for(var B in J){var ae=J[B],pe=ae.total;if(!(((n=ae.indices)===null||n===void 0?void 0:n.length)>6*pe)||ae.vertices.length<$c.BATCHABLE_SIZE*2)ae.vertices=new Float32Array(4*2*pe),ae.uvs=new Float32Array(4*2*pe),ae.indices=new Uint16Array(6*pe);else for(var _e=ae.total,He=ae.vertices,Ae=_e*4*2;Ae<He.length;Ae++)He[Ae]=0;ae.mesh.size=6*pe}for(var B=0;B<ne;B++){var H=l[B],ke=H.position.x+ue[H.line]*(this._align==="justify"?H.prevSpaces:1);this._roundPixels&&(ke=Math.round(ke));var ze=ke*o,ce=H.position.y*o,Y=H.texture,me=J[Y.baseTexture.uid],Be=Y.frame,be=Y._uvs,Oe=me.index++;me.indices[Oe*6+0]=0+Oe*4,me.indices[Oe*6+1]=1+Oe*4,me.indices[Oe*6+2]=2+Oe*4,me.indices[Oe*6+3]=0+Oe*4,me.indices[Oe*6+4]=2+Oe*4,me.indices[Oe*6+5]=3+Oe*4,me.vertices[Oe*8+0]=ze,me.vertices[Oe*8+1]=ce,me.vertices[Oe*8+2]=ze+Be.width*o,me.vertices[Oe*8+3]=ce,me.vertices[Oe*8+4]=ze+Be.width*o,me.vertices[Oe*8+5]=ce+Be.height*o,me.vertices[Oe*8+6]=ze,me.vertices[Oe*8+7]=ce+Be.height*o,me.uvs[Oe*8+0]=be.x0,me.uvs[Oe*8+1]=be.y0,me.uvs[Oe*8+2]=be.x1,me.uvs[Oe*8+3]=be.y1,me.uvs[Oe*8+4]=be.x2,me.uvs[Oe*8+5]=be.y2,me.uvs[Oe*8+6]=be.x3,me.uvs[Oe*8+7]=be.y3}this._textWidth=S*o,this._textHeight=(s.y+r.lineHeight)*o;for(var B in J){var ae=J[B];if(this.anchor.x!==0||this.anchor.y!==0)for(var Ye=0,qe=this._textWidth*this.anchor.x,Qe=this._textHeight*this.anchor.y,et=0;et<ae.total;et++)ae.vertices[Ye++]-=qe,ae.vertices[Ye++]-=Qe,ae.vertices[Ye++]-=qe,ae.vertices[Ye++]-=Qe,ae.vertices[Ye++]-=qe,ae.vertices[Ye++]-=Qe,ae.vertices[Ye++]-=qe,ae.vertices[Ye++]-=Qe;this._maxLineHeight=k*o;var je=ae.mesh.geometry.getBuffer("aVertexPosition"),lt=ae.mesh.geometry.getBuffer("aTextureCoord"),ut=ae.mesh.geometry.getIndex();je.data=ae.vertices,lt.data=ae.uvs,ut.data=ae.indices,je.update(),lt.update(),ut.update()}for(var B=0;B<l.length;B++)q4.push(l[B]);this._font=r,this.dirty=!1},t.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},t.prototype._render=function(n){this._autoResolution&&this._resolution!==n.resolution&&(this._resolution=n.resolution,this.dirty=!0);var r=$i.available[this._fontName],a=r.distanceFieldRange,o=r.distanceFieldType,s=r.size;if(o!=="none")for(var l=this.worldTransform,u=l.a,c=l.b,f=l.c,d=l.d,p=Math.sqrt(u*u+c*c),g=Math.sqrt(f*f+d*d),y=(Math.abs(p)+Math.abs(g))/2,m=this.fontSize/s,S=0,_=this._activePagesMeshData;S<_.length;S++){var P=_[S];P.mesh.shader.uniforms.uFWidth=y*a*m*this._resolution}e.prototype._render.call(this,n)},t.prototype.getLocalBounds=function(){return this.validate(),e.prototype.getLocalBounds.call(this)},t.prototype.validate=function(){var n=$i.available[this._fontName];if(!n)throw new Error('Missing BitmapFont "'+this._fontName+'"');this._font!==n&&(this.dirty=!0),this.dirty&&this.updateText()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(n){if(this._tint!==n){this._tint=n;for(var r=0;r<this._activePagesMeshData.length;r++)this._activePagesMeshData[r].mesh.tint=n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(n){this._align!==n&&(this._align=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontName",{get:function(){return this._fontName},set:function(n){if(!$i.available[n])throw new Error('Missing BitmapFont "'+n+'"');this._fontName!==n&&(this._fontName=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){var n;return(n=this._fontSize)!==null&&n!==void 0?n:$i.available[this._fontName].size},set:function(n){this._fontSize!==n&&(this._fontSize=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},set:function(n){typeof n=="number"?this._anchor.set(n):this._anchor.copyFrom(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(n){n=String(n??""),this._text!==n&&(this._text=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(n){this._maxWidth!==n&&(this._maxWidth=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(n){this._letterSpacing!==n&&(this._letterSpacing=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(n){n!==this._roundPixels&&(this._roundPixels=n,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolution",{get:function(){return this._resolution},set:function(n){this._autoResolution=!1,this._resolution!==n&&(this._resolution=n,this.dirty=!0)},enumerable:!1,configurable:!0}),t.prototype.destroy=function(n){var r=this._textureCache,a=$i.available[this._fontName],o=a.distanceFieldType==="none"?Y4:J4;o.push.apply(o,this._activePagesMeshData);for(var s=0,l=this._activePagesMeshData;s<l.length;s++){var u=l[s];this.removeChild(u.mesh)}this._activePagesMeshData=[],o.filter(function(d){return r[d.mesh.texture.baseTexture.uid]}).forEach(function(d){d.mesh.texture=mn.EMPTY});for(var c in r){var f=r[c];f.destroy(),delete r[c]}this._font=null,this._textureCache=null,e.prototype.destroy.call(this,n)},t.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0},t}(Co),t8=function(){function e(){}return e.add=function(){pr.setExtensionXhrType("fnt",pr.XHR_RESPONSE_TYPE.TEXT)},e.use=function(t,n){var r=Nw(t.data);if(!r){n();return}for(var a=e.getBaseUrl(this,t),o=r.parse(t.data),s={},l=function(m){s[m.metadata.pageFile]=m.texture,Object.keys(s).length===o.page.length&&(t.bitmapFont=$i.install(o,s,!0),n())},u=0;u<o.page.length;++u){var c=o.page[u].file,f=a+c,d=!1;for(var p in this.resources){var g=this.resources[p];if(g.url===f){g.metadata.pageFile=c,g.texture?l(g):g.onAfterMiddleware.add(l),d=!0;break}}if(!d){var y={crossOrigin:t.crossOrigin,loadType:pr.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:c},t.metadata.imageMetadata),parentResource:t};this.add(f,y,l)}}},e.getBaseUrl=function(t,n){var r=n.isDataUrl?"":e.dirname(n.url);return n.isDataUrl&&(r==="."&&(r=""),t.baseUrl&&r&&t.baseUrl.charAt(t.baseUrl.length-1)==="/"&&(r+="/")),r=r.replace(t.baseUrl,""),r&&r.charAt(r.length-1)!=="/"&&(r+="/"),r},e.dirname=function(t){var n=t.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return n===t?".":n===""?"/":n},e.extension=Kn.Loader,e}();/*!
 * @pixi/filter-alpha - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-alpha is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var cb=function(e,t){return cb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},cb(e,t)};function D1e(e,t){cb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var F1e=`varying vec2 vTextureCoord;

uniform sampler2D uSampler;
uniform float uAlpha;

void main(void)
{
   gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
}
`,B1e=function(e){D1e(t,e);function t(n){n===void 0&&(n=1);var r=e.call(this,VR,F1e,{uAlpha:1})||this;return r.alpha=n,r}return Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(n){this.uniforms.uAlpha=n},enumerable:!1,configurable:!0}),t}(os);/*!
 * @pixi/filter-blur - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-blur is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var db=function(e,t){return db=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},db(e,t)};function n8(e,t){db(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var H1e=`
    attribute vec2 aVertexPosition;

    uniform mat3 projectionMatrix;

    uniform float strength;

    varying vec2 vBlurTexCoords[%size%];

    uniform vec4 inputSize;
    uniform vec4 outputFrame;

    vec4 filterVertexPosition( void )
    {
        vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;

        return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
    }

    vec2 filterTextureCoord( void )
    {
        return aVertexPosition * (outputFrame.zw * inputSize.zw);
    }

    void main(void)
    {
        gl_Position = filterVertexPosition();

        vec2 textureCoord = filterTextureCoord();
        %blur%
    }`;function U1e(e,t){var n=Math.ceil(e/2),r=H1e,a="",o;t?o="vBlurTexCoords[%index%] =  textureCoord + vec2(%sampleIndex% * strength, 0.0);":o="vBlurTexCoords[%index%] =  textureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<e;s++){var l=o.replace("%index%",s.toString());l=l.replace("%sampleIndex%",s-(n-1)+".0"),a+=l,a+=`
`}return r=r.replace("%blur%",a),r=r.replace("%size%",e.toString()),r}var V1e={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},G1e=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join(`
`);function j1e(e){for(var t=V1e[e],n=t.length,r=G1e,a="",o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",s,l=0;l<e;l++){var u=o.replace("%index%",l.toString());s=l,l>=n&&(s=e-l-1),u=u.replace("%value%",t[s].toString()),a+=u,a+=`
`}return r=r.replace("%blur%",a),r=r.replace("%size%",e.toString()),r}var fb=function(e){n8(t,e);function t(n,r,a,o,s){r===void 0&&(r=8),a===void 0&&(a=4),o===void 0&&(o=Nt.FILTER_RESOLUTION),s===void 0&&(s=5);var l=this,u=U1e(s,n),c=j1e(s);return l=e.call(this,u,c)||this,l.horizontal=n,l.resolution=o,l._quality=0,l.quality=a,l.blur=r,l}return t.prototype.apply=function(n,r,a,o){if(a?this.horizontal?this.uniforms.strength=1/a.width*(a.width/r.width):this.uniforms.strength=1/a.height*(a.height/r.height):this.horizontal?this.uniforms.strength=1/n.renderer.width*(n.renderer.width/r.width):this.uniforms.strength=1/n.renderer.height*(n.renderer.height/r.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)n.applyFilter(this,r,a,o);else{var s=n.getFilterTexture(),l=n.renderer,u=r,c=s;this.state.blend=!1,n.applyFilter(this,u,c,oo.CLEAR);for(var f=1;f<this.passes-1;f++){n.bindAndClear(u,oo.BLIT),this.uniforms.uSampler=c;var d=c;c=u,u=d,l.shader.bind(this),l.geometry.draw(5)}this.state.blend=!0,n.applyFilter(this,c,a,o),n.returnFilterTexture(s)}},Object.defineProperty(t.prototype,"blur",{get:function(){return this.strength},set:function(n){this.padding=1+Math.abs(n)*2,this.strength=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this._quality},set:function(n){this._quality=n,this.passes=n},enumerable:!1,configurable:!0}),t}(os),z1e=function(e){n8(t,e);function t(n,r,a,o){n===void 0&&(n=8),r===void 0&&(r=4),a===void 0&&(a=Nt.FILTER_RESOLUTION),o===void 0&&(o=5);var s=e.call(this)||this;return s.blurXFilter=new fb(!0,n,r,a,o),s.blurYFilter=new fb(!1,n,r,a,o),s.resolution=a,s.quality=r,s.blur=n,s.repeatEdgePixels=!1,s}return t.prototype.apply=function(n,r,a,o){var s=Math.abs(this.blurXFilter.strength),l=Math.abs(this.blurYFilter.strength);if(s&&l){var u=n.getFilterTexture();this.blurXFilter.apply(n,r,u,oo.CLEAR),this.blurYFilter.apply(n,u,a,o),n.returnFilterTexture(u)}else l?this.blurYFilter.apply(n,r,a,o):this.blurXFilter.apply(n,r,a,o)},t.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))*2},Object.defineProperty(t.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(n){this.blurXFilter.blur=this.blurYFilter.blur=n,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(n){this.blurXFilter.quality=this.blurYFilter.quality=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(n){this.blurXFilter.blur=n,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(n){this.blurYFilter.blur=n,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(n){this.blurYFilter.blendMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(n){this._repeatEdgePixels=n,this.updatePadding()},enumerable:!1,configurable:!0}),t}(os);/*!
 * @pixi/filter-color-matrix - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-color-matrix is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var hb=function(e,t){return hb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},hb(e,t)};function K1e(e,t){hb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var W1e=`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
uniform float uAlpha;

void main(void)
{
    vec4 c = texture2D(uSampler, vTextureCoord);

    if (uAlpha == 0.0) {
        gl_FragColor = c;
        return;
    }

    // Un-premultiply alpha before applying the color matrix. See issue #3539.
    if (c.a > 0.0) {
      c.rgb /= c.a;
    }

    vec4 result;

    result.r = (m[0] * c.r);
        result.r += (m[1] * c.g);
        result.r += (m[2] * c.b);
        result.r += (m[3] * c.a);
        result.r += m[4];

    result.g = (m[5] * c.r);
        result.g += (m[6] * c.g);
        result.g += (m[7] * c.b);
        result.g += (m[8] * c.a);
        result.g += m[9];

    result.b = (m[10] * c.r);
       result.b += (m[11] * c.g);
       result.b += (m[12] * c.b);
       result.b += (m[13] * c.a);
       result.b += m[14];

    result.a = (m[15] * c.r);
       result.a += (m[16] * c.g);
       result.a += (m[17] * c.b);
       result.a += (m[18] * c.a);
       result.a += m[19];

    vec3 rgb = mix(c.rgb, result.rgb, uAlpha);

    // Premultiply alpha again.
    rgb *= result.a;

    gl_FragColor = vec4(rgb, result.a);
}
`,pb=function(e){K1e(t,e);function t(){var n=this,r={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return n=e.call(this,vw,W1e,r)||this,n.alpha=1,n}return t.prototype._loadMatrix=function(n,r){r===void 0&&(r=!1);var a=n;r&&(this._multiply(a,this.uniforms.m,n),a=this._colorMatrix(a)),this.uniforms.m=a},t.prototype._multiply=function(n,r,a){return n[0]=r[0]*a[0]+r[1]*a[5]+r[2]*a[10]+r[3]*a[15],n[1]=r[0]*a[1]+r[1]*a[6]+r[2]*a[11]+r[3]*a[16],n[2]=r[0]*a[2]+r[1]*a[7]+r[2]*a[12]+r[3]*a[17],n[3]=r[0]*a[3]+r[1]*a[8]+r[2]*a[13]+r[3]*a[18],n[4]=r[0]*a[4]+r[1]*a[9]+r[2]*a[14]+r[3]*a[19]+r[4],n[5]=r[5]*a[0]+r[6]*a[5]+r[7]*a[10]+r[8]*a[15],n[6]=r[5]*a[1]+r[6]*a[6]+r[7]*a[11]+r[8]*a[16],n[7]=r[5]*a[2]+r[6]*a[7]+r[7]*a[12]+r[8]*a[17],n[8]=r[5]*a[3]+r[6]*a[8]+r[7]*a[13]+r[8]*a[18],n[9]=r[5]*a[4]+r[6]*a[9]+r[7]*a[14]+r[8]*a[19]+r[9],n[10]=r[10]*a[0]+r[11]*a[5]+r[12]*a[10]+r[13]*a[15],n[11]=r[10]*a[1]+r[11]*a[6]+r[12]*a[11]+r[13]*a[16],n[12]=r[10]*a[2]+r[11]*a[7]+r[12]*a[12]+r[13]*a[17],n[13]=r[10]*a[3]+r[11]*a[8]+r[12]*a[13]+r[13]*a[18],n[14]=r[10]*a[4]+r[11]*a[9]+r[12]*a[14]+r[13]*a[19]+r[14],n[15]=r[15]*a[0]+r[16]*a[5]+r[17]*a[10]+r[18]*a[15],n[16]=r[15]*a[1]+r[16]*a[6]+r[17]*a[11]+r[18]*a[16],n[17]=r[15]*a[2]+r[16]*a[7]+r[17]*a[12]+r[18]*a[17],n[18]=r[15]*a[3]+r[16]*a[8]+r[17]*a[13]+r[18]*a[18],n[19]=r[15]*a[4]+r[16]*a[9]+r[17]*a[14]+r[18]*a[19]+r[19],n},t.prototype._colorMatrix=function(n){var r=new Float32Array(n);return r[4]/=255,r[9]/=255,r[14]/=255,r[19]/=255,r},t.prototype.brightness=function(n,r){var a=[n,0,0,0,0,0,n,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(a,r)},t.prototype.tint=function(n,r){var a=n>>16&255,o=n>>8&255,s=n&255,l=[a/255,0,0,0,0,0,o/255,0,0,0,0,0,s/255,0,0,0,0,0,1,0];this._loadMatrix(l,r)},t.prototype.greyscale=function(n,r){var a=[n,n,n,0,0,n,n,n,0,0,n,n,n,0,0,0,0,0,1,0];this._loadMatrix(a,r)},t.prototype.blackAndWhite=function(n){var r=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.hue=function(n,r){n=(n||0)/180*Math.PI;var a=Math.cos(n),o=Math.sin(n),s=Math.sqrt,l=1/3,u=s(l),c=a+(1-a)*l,f=l*(1-a)-u*o,d=l*(1-a)+u*o,p=l*(1-a)+u*o,g=a+l*(1-a),y=l*(1-a)-u*o,m=l*(1-a)-u*o,S=l*(1-a)+u*o,_=a+l*(1-a),P=[c,f,d,0,0,p,g,y,0,0,m,S,_,0,0,0,0,0,1,0];this._loadMatrix(P,r)},t.prototype.contrast=function(n,r){var a=(n||0)+1,o=-.5*(a-1),s=[a,0,0,0,o,0,a,0,0,o,0,0,a,0,o,0,0,0,1,0];this._loadMatrix(s,r)},t.prototype.saturate=function(n,r){n===void 0&&(n=0);var a=n*2/3+1,o=(a-1)*-.5,s=[a,o,o,0,0,o,a,o,0,0,o,o,a,0,0,0,0,0,1,0];this._loadMatrix(s,r)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(n){var r=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.sepia=function(n){var r=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.technicolor=function(n){var r=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.polaroid=function(n){var r=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.toBGR=function(n){var r=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.kodachrome=function(n){var r=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.browni=function(n){var r=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.vintage=function(n){var r=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.colorTone=function(n,r,a,o,s){n=n||.2,r=r||.15,a=a||16770432,o=o||3375104;var l=(a>>16&255)/255,u=(a>>8&255)/255,c=(a&255)/255,f=(o>>16&255)/255,d=(o>>8&255)/255,p=(o&255)/255,g=[.3,.59,.11,0,0,l,u,c,n,0,f,d,p,r,0,l-f,u-d,c-p,0,0];this._loadMatrix(g,s)},t.prototype.night=function(n,r){n=n||.1;var a=[n*-2,-n,0,0,0,-n,0,n,0,0,0,n,n*2,0,0,0,0,0,1,0];this._loadMatrix(a,r)},t.prototype.predator=function(n,r){var a=[11.224130630493164*n,-4.794486999511719*n,-2.8746118545532227*n,0*n,.40342438220977783*n,-3.6330697536468506*n,9.193157196044922*n,-2.951810836791992*n,0*n,-1.316135048866272*n,-3.2184197902679443*n,-4.2375030517578125*n,7.476448059082031*n,0*n,.8044459223747253*n,0,0,0,1,0];this._loadMatrix(a,r)},t.prototype.lsd=function(n){var r=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.reset=function(){var n=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(n,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(n){this.uniforms.m=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(n){this.uniforms.uAlpha=n},enumerable:!1,configurable:!0}),t}(os);pb.prototype.grayscale=pb.prototype.greyscale;/*!
 * @pixi/filter-displacement - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-displacement is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var vb=function(e,t){return vb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},vb(e,t)};function X1e(e,t){vb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Y1e=`varying vec2 vFilterCoord;
varying vec2 vTextureCoord;

uniform vec2 scale;
uniform mat2 rotation;
uniform sampler2D uSampler;
uniform sampler2D mapSampler;

uniform highp vec4 inputSize;
uniform vec4 inputClamp;

void main(void)
{
  vec4 map =  texture2D(mapSampler, vFilterCoord);

  map -= 0.5;
  map.xy = scale * inputSize.zw * (rotation * map.xy);

  gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
}
`,J1e=`attribute vec2 aVertexPosition;

uniform mat3 projectionMatrix;
uniform mat3 filterMatrix;

varying vec2 vTextureCoord;
varying vec2 vFilterCoord;

uniform vec4 inputSize;
uniform vec4 outputFrame;

vec4 filterVertexPosition( void )
{
    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;

    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}

vec2 filterTextureCoord( void )
{
    return aVertexPosition * (outputFrame.zw * inputSize.zw);
}

void main(void)
{
	gl_Position = filterVertexPosition();
	vTextureCoord = filterTextureCoord();
	vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0)  ).xy;
}
`,q1e=function(e){X1e(t,e);function t(n,r){var a=this,o=new cr;return n.renderable=!1,a=e.call(this,J1e,Y1e,{mapSampler:n._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,a.maskSprite=n,a.maskMatrix=o,r==null&&(r=20),a.scale=new Zn(r,r),a}return t.prototype.apply=function(n,r,a,o){this.uniforms.filterMatrix=n.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var s=this.maskSprite.worldTransform,l=Math.sqrt(s.a*s.a+s.b*s.b),u=Math.sqrt(s.c*s.c+s.d*s.d);l!==0&&u!==0&&(this.uniforms.rotation[0]=s.a/l,this.uniforms.rotation[1]=s.b/l,this.uniforms.rotation[2]=s.c/u,this.uniforms.rotation[3]=s.d/u),n.applyFilter(this,r,a,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(n){this.uniforms.mapSampler=n},enumerable:!1,configurable:!0}),t}(os);/*!
 * @pixi/filter-fxaa - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-fxaa is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var mb=function(e,t){return mb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},mb(e,t)};function Q1e(e,t){mb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Z1e=`
attribute vec2 aVertexPosition;

uniform mat3 projectionMatrix;

varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
varying vec2 v_rgbM;

varying vec2 vFragCoord;

uniform vec4 inputSize;
uniform vec4 outputFrame;

vec4 filterVertexPosition( void )
{
    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;

    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
}

void texcoords(vec2 fragCoord, vec2 inverseVP,
               out vec2 v_rgbNW, out vec2 v_rgbNE,
               out vec2 v_rgbSW, out vec2 v_rgbSE,
               out vec2 v_rgbM) {
    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;
    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;
    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;
    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;
    v_rgbM = vec2(fragCoord * inverseVP);
}

void main(void) {

   gl_Position = filterVertexPosition();

   vFragCoord = aVertexPosition * outputFrame.zw;

   texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
}
`,ewe=`varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
varying vec2 v_rgbM;

varying vec2 vFragCoord;
uniform sampler2D uSampler;
uniform highp vec4 inputSize;


/**
 Basic FXAA implementation based on the code on geeks3d.com with the
 modification that the texture2DLod stuff was removed since it's
 unsupported by WebGL.

 --

 From:
 https://github.com/mitsuhiko/webgl-meincraft

 Copyright (c) 2011 by Armin Ronacher.

 Some rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
 met:

 * Redistributions of source code must retain the above copyright
 notice, this list of conditions and the following disclaimer.

 * Redistributions in binary form must reproduce the above
 copyright notice, this list of conditions and the following
 disclaimer in the documentation and/or other materials provided
 with the distribution.

 * The names of the contributors may not be used to endorse or
 promote products derived from this software without specific
 prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef FXAA_REDUCE_MIN
#define FXAA_REDUCE_MIN   (1.0/ 128.0)
#endif
#ifndef FXAA_REDUCE_MUL
#define FXAA_REDUCE_MUL   (1.0 / 8.0)
#endif
#ifndef FXAA_SPAN_MAX
#define FXAA_SPAN_MAX     8.0
#endif

//optimized version for mobile, where dependent
//texture reads can be a bottleneck
vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,
          vec2 v_rgbNW, vec2 v_rgbNE,
          vec2 v_rgbSW, vec2 v_rgbSE,
          vec2 v_rgbM) {
    vec4 color;
    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;
    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;
    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;
    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;
    vec4 texColor = texture2D(tex, v_rgbM);
    vec3 rgbM  = texColor.xyz;
    vec3 luma = vec3(0.299, 0.587, 0.114);
    float lumaNW = dot(rgbNW, luma);
    float lumaNE = dot(rgbNE, luma);
    float lumaSW = dot(rgbSW, luma);
    float lumaSE = dot(rgbSE, luma);
    float lumaM  = dot(rgbM,  luma);
    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));
    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));

    mediump vec2 dir;
    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));

    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *
                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);

    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);
    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),
              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
                  dir * rcpDirMin)) * inverseVP;

    vec3 rgbA = 0.5 * (
                       texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
                       texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
    vec3 rgbB = rgbA * 0.5 + 0.25 * (
                                     texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +
                                     texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);

    float lumaB = dot(rgbB, luma);
    if ((lumaB < lumaMin) || (lumaB > lumaMax))
        color = vec4(rgbA, texColor.a);
    else
        color = vec4(rgbB, texColor.a);
    return color;
}

void main() {

      vec4 color;

      color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);

      gl_FragColor = color;
}
`,twe=function(e){Q1e(t,e);function t(){return e.call(this,Z1e,ewe)||this}return t}(os);/*!
 * @pixi/filter-noise - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/filter-noise is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var gb=function(e,t){return gb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},gb(e,t)};function nwe(e,t){gb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rwe=`precision highp float;

varying vec2 vTextureCoord;
varying vec4 vColor;

uniform float uNoise;
uniform float uSeed;
uniform sampler2D uSampler;

float rand(vec2 co)
{
    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
}

void main()
{
    vec4 color = texture2D(uSampler, vTextureCoord);
    float randomValue = rand(gl_FragCoord.xy * uSeed);
    float diff = (randomValue - 0.5) * uNoise;

    // Un-premultiply alpha before applying the color matrix. See issue #3539.
    if (color.a > 0.0) {
        color.rgb /= color.a;
    }

    color.r += diff;
    color.g += diff;
    color.b += diff;

    // Premultiply alpha again.
    color.rgb *= color.a;

    gl_FragColor = color;
}
`,awe=function(e){nwe(t,e);function t(n,r){n===void 0&&(n=.5),r===void 0&&(r=Math.random());var a=e.call(this,vw,rwe,{uNoise:0,uSeed:0})||this;return a.noise=n,a.seed=r,a}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(n){this.uniforms.uNoise=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(n){this.uniforms.uSeed=n},enumerable:!1,configurable:!0}),t}(os);/*!
 * @pixi/mixin-cache-as-bitmap - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var r8=new cr;br.prototype._cacheAsBitmap=!1;br.prototype._cacheData=null;br.prototype._cacheAsBitmapResolution=null;br.prototype._cacheAsBitmapMultisample=sr.NONE;var owe=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(br.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new owe),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});br.prototype._renderCached=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(e))};br.prototype._initCachedDisplayObject=function(e){var t;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,e.batch.flush();var r=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var a=this.filters[0].padding;r.pad(a)}r.ceil(Nt.RESOLUTION);var o=e.renderTexture.current,s=e.renderTexture.sourceFrame.clone(),l=e.renderTexture.destinationFrame.clone(),u=e.projection.transform,c=Ws.create({width:r.width,height:r.height,resolution:this.cacheAsBitmapResolution||e.resolution,multisample:(t=this.cacheAsBitmapMultisample)!==null&&t!==void 0?t:e.multisample}),f="cacheAsBitmap_"+Ks();this._cacheData.textureCacheId=f,kn.addToCache(c.baseTexture,f),mn.addToCache(c,f);var d=this.transform.localTransform.copyTo(r8).invert().translate(-r.x,-r.y);this.render=this._cacheData.originalRender,e.render(this,{renderTexture:c,clear:!0,transform:d,skipUpdateTransform:!1}),e.framebuffer.blit(),e.projection.transform=u,e.renderTexture.bind(o,s,l),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var p=new qc(c);p.transform.worldTransform=this.transform.worldTransform,p.anchor.x=-(r.x/r.width),p.anchor.y=-(r.y/r.height),p.alpha=n,p._bounds=this._bounds,this._cacheData.sprite=p,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=p.containsPoint.bind(p)}};br.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))};br.prototype._initCachedDisplayObjectCanvas=function(e){if(!(this._cacheData&&this._cacheData.sprite)){var t=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var r=e.context,a=e._projTransform;t.ceil(Nt.RESOLUTION);var o=Ws.create({width:t.width,height:t.height}),s="cacheAsBitmap_"+Ks();this._cacheData.textureCacheId=s,kn.addToCache(o.baseTexture,s),mn.addToCache(o,s);var l=r8;this.transform.localTransform.copyTo(l),l.invert(),l.tx-=t.x,l.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,{renderTexture:o,clear:!0,transform:l,skipUpdateTransform:!1}),e.context=r,e._projTransform=a,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var u=new qc(o);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-(t.x/t.width),u.anchor.y=-(t.y/t.height),u.alpha=n,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}};br.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};br.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};br.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,kn.removeFromCache(this._cacheData.textureCacheId),mn.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};br.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)};/*!
 * @pixi/mixin-get-child-by-name - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/mixin-get-child-by-name is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */br.prototype.name=null;Co.prototype.getChildByName=function(e,t){for(var n=0,r=this.children.length;n<r;n++)if(this.children[n].name===e)return this.children[n];if(t)for(var n=0,r=this.children.length;n<r;n++){var a=this.children[n];if(a.getChildByName){var o=a.getChildByName(e,!0);if(o)return o}}return null};/*!
 * @pixi/mixin-get-global-position - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/mixin-get-global-position is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */br.prototype.getGlobalPosition=function(e,t){return e===void 0&&(e=new Zn),t===void 0&&(t=!1),this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e};/*!
 * @pixi/app - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/app is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */var a8=function(){function e(){}return e.init=function(t){var n=this;Object.defineProperty(this,"resizeTo",{set:function(r){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=r,r&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){n._resizeTo&&(n.cancelResize(),n._resizeId=requestAnimationFrame(function(){return n.resize()}))},this.cancelResize=function(){n._resizeId&&(cancelAnimationFrame(n._resizeId),n._resizeId=null)},this.resize=function(){if(n._resizeTo){n.cancelResize();var r,a;if(n._resizeTo===globalThis.window)r=globalThis.innerWidth,a=globalThis.innerHeight;else{var o=n._resizeTo,s=o.clientWidth,l=o.clientHeight;r=s,a=l}n.renderer.resize(r,a)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},e.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},e.extension=Kn.Application,e}(),Dw=function(){function e(t){var n=this;this.stage=new Co,t=Object.assign({forceCanvas:!1},t),this.renderer=UR(t),e._plugins.forEach(function(r){r.init.call(n,t)})}return e.registerPlugin=function(t){Sa("6.5.0","Application.registerPlugin() is deprecated, use extensions.add()"),Ei.add({type:Kn.Application,ref:t})},e.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(e.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),e.prototype.destroy=function(t,n){var r=this,a=e._plugins.slice(0);a.reverse(),a.forEach(function(o){o.destroy.call(r)}),this.stage.destroy(n),this.stage=null,this.renderer.destroy(t),this.renderer=null},e._plugins=[],e}();Ei.handleByList(Kn.Application,Dw._plugins);Ei.add(a8);/*!
 * @pixi/mesh-extras - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/mesh-extras is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var yb=function(e,t){return yb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},yb(e,t)};function Qc(e,t){yb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var o8=function(e){Qc(t,e);function t(n,r,a,o){n===void 0&&(n=100),r===void 0&&(r=100),a===void 0&&(a=10),o===void 0&&(o=10);var s=e.call(this)||this;return s.segWidth=a,s.segHeight=o,s.width=n,s.height=r,s.build(),s}return t.prototype.build=function(){for(var n=this.segWidth*this.segHeight,r=[],a=[],o=[],s=this.segWidth-1,l=this.segHeight-1,u=this.width/s,c=this.height/l,f=0;f<n;f++){var d=f%this.segWidth,p=f/this.segWidth|0;r.push(d*u,p*c),a.push(d/s,p/l)}for(var g=s*l,f=0;f<g;f++){var y=f%s,m=f/s|0,S=m*this.segWidth+y,_=m*this.segWidth+y+1,P=(m+1)*this.segWidth+y,A=(m+1)*this.segWidth+y+1;o.push(S,_,P,_,A,P)}this.buffers[0].data=new Float32Array(r),this.buffers[1].data=new Float32Array(a),this.indexBuffer.data=new Uint16Array(o),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()},t}(Sh),i8=function(e){Qc(t,e);function t(n,r,a){n===void 0&&(n=200),a===void 0&&(a=0);var o=e.call(this,new Float32Array(r.length*4),new Float32Array(r.length*4),new Uint16Array((r.length-1)*6))||this;return o.points=r,o._width=n,o.textureScale=a,o.build(),o}return Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),t.prototype.build=function(){var n=this.points;if(n){var r=this.getBuffer("aVertexPosition"),a=this.getBuffer("aTextureCoord"),o=this.getIndex();if(!(n.length<1)){r.data.length/4!==n.length&&(r.data=new Float32Array(n.length*4),a.data=new Float32Array(n.length*4),o.data=new Uint16Array((n.length-1)*6));var s=a.data,l=o.data;s[0]=0,s[1]=0,s[2]=0,s[3]=1;for(var u=0,c=n[0],f=this._width*this.textureScale,d=n.length,p=0;p<d;p++){var g=p*4;if(this.textureScale>0){var y=c.x-n[p].x,m=c.y-n[p].y,S=Math.sqrt(y*y+m*m);c=n[p],u+=S/f}else u=p/(d-1);s[g]=u,s[g+1]=0,s[g+2]=u,s[g+3]=1}for(var _=0,p=0;p<d-1;p++){var g=p*2;l[_++]=g,l[_++]=g+1,l[_++]=g+2,l[_++]=g+2,l[_++]=g+1,l[_++]=g+3}a.update(),o.update(),this.updateVertices()}}},t.prototype.updateVertices=function(){var n=this.points;if(!(n.length<1)){for(var r=n[0],a,o=0,s=0,l=this.buffers[0].data,u=n.length,c=0;c<u;c++){var f=n[c],d=c*4;c<n.length-1?a=n[c+1]:a=f,s=-(a.x-r.x),o=a.y-r.y;var p=Math.sqrt(o*o+s*s),g=this.textureScale>0?this.textureScale*this._width/2:this._width/2;o/=p,s/=p,o*=g,s*=g,l[d]=f.x+o,l[d+1]=f.y+s,l[d+2]=f.x-o,l[d+3]=f.y-s,r=f}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(Sh),iwe=function(e){Qc(t,e);function t(n,r,a){a===void 0&&(a=0);var o=this,s=new i8(n.height,r,a),l=new Rc(n);return a>0&&(n.baseTexture.wrapMode=Bo.REPEAT),o=e.call(this,s,l)||this,o.autoUpdate=!0,o}return t.prototype._render=function(n){var r=this.geometry;(this.autoUpdate||r._width!==this.shader.texture.height)&&(r._width=this.shader.texture.height,r.update()),e.prototype._render.call(this,n)},t}($c),s8=function(e){Qc(t,e);function t(n,r,a){var o=this,s=new o8(n.width,n.height,r,a),l=new Rc(mn.WHITE);return o=e.call(this,s,l)||this,o.texture=n,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var n=this.geometry,r=this.shader.texture,a=r.width,o=r.height;this.autoResize&&(n.width!==a||n.height!==o)&&(n.width=this.shader.texture.width,n.height=this.shader.texture.height,n.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(n){this.shader.texture!==n&&(this.shader.texture=n,this._textureID=-1,n.baseTexture.valid?this.textureUpdated():n.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(n){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,n)},t.prototype.destroy=function(n){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,n)},t}($c),swe=function(e){Qc(t,e);function t(n,r,a,o,s){n===void 0&&(n=mn.EMPTY);var l=this,u=new Sh(r,a,o);u.getBuffer("aVertexPosition").static=!1;var c=new Rc(n);return l=e.call(this,u,c,null,s)||this,l.autoUpdate=!0,l}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(n){this.geometry.getBuffer("aVertexPosition").data=n},enumerable:!1,configurable:!0}),t.prototype._render=function(n){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,n)},t}($c),xp=10,lwe=function(e){Qc(t,e);function t(n,r,a,o,s){r===void 0&&(r=xp),a===void 0&&(a=xp),o===void 0&&(o=xp),s===void 0&&(s=xp);var l=e.call(this,mn.WHITE,4,4)||this;return l._origWidth=n.orig.width,l._origHeight=n.orig.height,l._width=l._origWidth,l._height=l._origHeight,l._leftWidth=r,l._rightWidth=o,l._topHeight=a,l._bottomHeight=s,l.texture=n,l}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(n){this.geometry.getBuffer("aVertexPosition").data=n},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var n=this.vertices,r=this._getMinScale();n[9]=n[11]=n[13]=n[15]=this._topHeight*r,n[17]=n[19]=n[21]=n[23]=this._height-this._bottomHeight*r,n[25]=n[27]=n[29]=n[31]=this._height},t.prototype.updateVerticalVertices=function(){var n=this.vertices,r=this._getMinScale();n[2]=n[10]=n[18]=n[26]=this._leftWidth*r,n[4]=n[12]=n[20]=n[28]=this._width-this._rightWidth*r,n[6]=n[14]=n[22]=n[30]=this._width},t.prototype._getMinScale=function(){var n=this._leftWidth+this._rightWidth,r=this._width>n?1:this._width/n,a=this._topHeight+this._bottomHeight,o=this._height>a?1:this._height/a,s=Math.min(r,o);return s},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(n){this._width=n,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(n){this._height=n,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(n){this._leftWidth=n,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(n){this._rightWidth=n,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(n){this._topHeight=n,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(n){this._bottomHeight=n,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var n=this.texture,r=this.geometry.buffers[1].data;this._origWidth=n.orig.width,this._origHeight=n.orig.height;var a=1/this._origWidth,o=1/this._origHeight;r[0]=r[8]=r[16]=r[24]=0,r[1]=r[3]=r[5]=r[7]=0,r[6]=r[14]=r[22]=r[30]=1,r[25]=r[27]=r[29]=r[31]=1,r[2]=r[10]=r[18]=r[26]=a*this._leftWidth,r[4]=r[12]=r[20]=r[28]=1-a*this._rightWidth,r[9]=r[11]=r[13]=r[15]=o*this._topHeight,r[17]=r[19]=r[21]=r[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t}(s8);/*!
 * @pixi/sprite-animated - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * @pixi/sprite-animated is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var bb=function(e,t){return bb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},bb(e,t)};function uwe(e,t){bb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var cwe=function(e){uwe(t,e);function t(n,r){r===void 0&&(r=!0);var a=e.call(this,n[0]instanceof mn?n[0]:n[0].texture)||this;return a._textures=null,a._durations=null,a._autoUpdate=r,a._isConnectedToTicker=!1,a.animationSpeed=1,a.loop=!0,a.updateAnchor=!1,a.onComplete=null,a.onFrameChange=null,a.onLoop=null,a._currentTime=0,a._playing=!1,a._previousFrame=null,a.textures=n,a}return t.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Kr.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Kr.shared.add(this.update,this,_i.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(n){this.stop();var r=this.currentFrame;this._currentTime=n,r!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(n){var r=this.currentFrame;this._currentTime=n,r!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(n){if(this._playing){var r=this.animationSpeed*n,a=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=r/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var s=Math.sign(this.animationSpeed*n);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*s,this._currentTime+=s;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=r;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):a!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<a?this.onLoop():this.animationSpeed<0&&this.currentFrame>a&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var n=this.currentFrame;this._previousFrame!==n&&(this._previousFrame=n,this._texture=this._textures[n],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(n){this.stop(),e.prototype.destroy.call(this,n),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(n){for(var r=[],a=0;a<n.length;++a)r.push(mn.from(n[a]));return new t(r)},t.fromImages=function(n){for(var r=[],a=0;a<n.length;++a)r.push(mn.from(n[a]));return new t(r)},Object.defineProperty(t.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textures",{get:function(){return this._textures},set:function(n){if(n[0]instanceof mn)this._textures=n,this._durations=null;else{this._textures=[],this._durations=[];for(var r=0;r<n.length;r++)this._textures.push(n[r].texture),this._durations.push(n[r].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentFrame",{get:function(){var n=Math.floor(this._currentTime)%this._textures.length;return n<0&&(n+=this._textures.length),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(n){n!==this._autoUpdate&&(this._autoUpdate=n,!this._autoUpdate&&this._isConnectedToTicker?(Kr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(Kr.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),t}(qc);/*!
 * pixi.js - v6.5.10
 * Compiled Thu, 06 Jul 2023 15:25:11 UTC
 *
 * pixi.js is licensed under the MIT License.
 * http://www.opensource.org/licenses/mit-license
 */Ei.add(Tk,Ik,xk,Vk,Kk,gw,Jk,t8,Rk,Bk,Hk,Xk,yR,Pk);var dwe={AlphaFilter:B1e,BlurFilter:z1e,BlurFilterPass:fb,ColorMatrixFilter:pb,DisplacementFilter:q1e,FXAAFilter:twe,NoiseFilter:awe};const fwe=Object.freeze(Object.defineProperty({__proto__:null,get ALPHA_MODES(){return Eo},AbstractBatchRenderer:GR,AbstractMultiResource:Xv,AbstractRenderer:HR,AccessibilityManager:Tk,AnimatedSprite:cwe,AppLoaderPlugin:Pk,Application:Dw,ArrayResource:z1,Attribute:Dy,get BLEND_MODES(){return on},get BUFFER_BITS(){return Lf},get BUFFER_TYPE(){return Ho},BaseImageResource:wi,BasePrepare:jk,BaseRenderTexture:q1,BaseTexture:kn,BatchDrawCall:X0,BatchGeometry:mw,BatchPluginFactory:zR,BatchRenderer:gw,BatchShaderGenerator:jR,BatchSystem:tw,BatchTextureArray:Y0,BitmapFont:$i,BitmapFontData:Qf,BitmapFontLoader:t8,BitmapText:N1e,BlobResource:$k,Bounds:zf,BrowserAdapter:k$,Buffer:$r,BufferResource:pu,get CLEAR_MODES(){return oo},get COLOR_MASK_BITS(){return vy},CanvasResource:K1,Circle:pR,CompressedTextureLoader:Rk,CompressedTextureResource:Z0,Container:Co,ContextSystem:nw,CountLimiter:Gk,CubeResource:W1,DDSLoader:Bk,DEG_TO_RAD:hR,get DRAW_MODES(){return co},DisplayObject:br,get ENV(){return bi},Ellipse:vR,get ExtensionType(){return Kn},Extract:Ik,get FORMATS(){return $t},FORMATS_TO_COMPONENTS:Nk,FillStyle:$w,Filter:os,FilterState:SR,FilterSystem:ew,Framebuffer:W0,FramebufferSystem:rw,get GC_MODES(){return Df},GLFramebuffer:TR,GLProgram:DR,GLTexture:i0,GRAPHICS_CURVES:Pc,Geometry:Yc,GeometrySystem:aw,Graphics:Mc,GraphicsData:Xy,GraphicsGeometry:mk,IGLUniformData:z2e,INSTALLED:jf,get INTERNAL_FORMATS(){return Tn},INTERNAL_FORMAT_TO_BYTES_PER_PIXEL:qf,ImageBitmapResource:J1,ImageResource:Yv,InteractionData:Zy,InteractionEvent:Ek,InteractionManager:xk,InteractionTrackingData:u0,KTXLoader:Hk,get LINE_CAP(){return Fi},get LINE_JOIN(){return li},LineStyle:gk,Loader:Jf,get LoaderResource(){return pr},get MASK_TYPES(){return wr},get MIPMAP_MODES(){return To},get MSAA_QUALITY(){return sr},MaskData:ER,MaskSystem:ow,Matrix:cr,Mesh:$c,MeshBatchUvs:qk,MeshGeometry:Sh,MeshMaterial:Rc,NineSlicePlane:lwe,ObjectRenderer:wh,ObservablePoint:Ps,PI_2:Gf,get PRECISION(){return Na},ParticleContainer:u1e,ParticleRenderer:Vk,PlaneGeometry:o8,Point:Zn,Polygon:ef,Prepare:Kk,Program:Jc,ProjectionSystem:lw,Quad:wR,QuadUv:Z1,RAD_TO_DEG:fR,get RENDERER_TYPE(){return Cc},Rectangle:$n,RenderTexture:Ws,RenderTexturePool:_R,RenderTextureSystem:uw,Renderer:pw,ResizePlugin:a8,Resource:su,RopeGeometry:i8,RoundedRectangle:mR,Runner:zr,get SAMPLER_TYPES(){return Nf},get SCALE_MODES(){return Do},get SHAPES(){return Nr},SVGResource:X1,ScissorSystem:iw,Shader:Ui,ShaderSystem:cw,SimpleMesh:swe,SimplePlane:s8,SimpleRope:iwe,Sprite:qc,SpriteMaskFilter:OR,Spritesheet:Wk,SpritesheetLoader:Xk,State:ol,StateSystem:dw,StencilSystem:sw,System:sye,get TARGETS(){return ks},get TEXT_GRADIENT(){return Oc},get TYPES(){return an},TYPES_TO_BYTES_PER_COMPONENT:ab,TYPES_TO_BYTES_PER_PIXEL:Dk,TemporaryDisplayObject:_w,Text:nm,TextFormat:Qk,TextMetrics:Yo,TextStyle:Ys,Texture:mn,TextureGCSystem:fw,TextureLoader:Mk,TextureMatrix:Jv,TextureSystem:hw,TextureUvs:Q1,Ticker:Kr,TickerPlugin:yR,TilingSprite:T1e,TilingSpriteRenderer:Jk,TimeLimiter:S1e,Transform:Kv,get UPDATE_PRIORITY(){return _i},UniformGroup:Ls,VERSION:cye,VideoResource:Y1,ViewableBuffer:J0,get WRAP_MODES(){return Bo},XMLFormat:ev,XMLStringFormat:Zk,accessibleTarget:Sk,autoDetectFormat:Nw,autoDetectRenderer:UR,autoDetectResource:Wv,checkMaxIfStatementsInShader:MR,createUBOElements:kR,defaultFilterVertex:vw,defaultVertex:VR,extensions:Ei,filters:dwe,generateProgram:FR,generateUniformBufferSync:NR,getTestContext:IR,getUBOData:LR,graphicsUtils:Ybe,groupD8:ur,interactiveTarget:Ck,isMobile:fo,parseDDS:Lk,parseKTX:Fk,resources:KR,settings:Nt,systems:WR,uniformParsers:Xl,utils:v2e},Symbol.toStringTag,{value:"Module"}));class hwe{constructor(t){wn(this,"app"),this.stage=t,window.PIXI=fwe,window.PIXI.utils.skipHello(),this.app=new Dw({view:this.stage.canvasElement,resolution:2,autoStart:!0,autoDensity:!0,backgroundAlpha:0,resizeTo:this.stage.element})}mount(t){t?(this.clearAppStage(),this.app.stage.addChild(t)):console.error("挂载模型失败")}unMount(){this.clearAppStage()}clearAppStage(){var t;(((t=this.app)==null?void 0:t.stage.children.length)||0)>0&&this.app.stage.removeChildren(0)}resize(){var t;(t=this.app)==null||t.resize()}}const _b=e=>{localStorage.setItem("OML2D_STATUS",e)},Q4=()=>localStorage.getItem("OML2D_STATUS"),pwe=e=>{localStorage.setItem("OML2D_MODEL_INDEX",e.toString())},vwe=()=>Number(localStorage.getItem("OML2D_MODEL_INDEX")),mwe=e=>{localStorage.setItem("OML2D_MODEL_CLOTHES_INDEX",e.toString())},gwe=()=>Number(localStorage.getItem("OML2D_MODEL_CLOTHES_INDEX"));class ywe{constructor(t,n){wn(this,"element"),wn(this,"canvasElement"),wn(this,"status",!1),wn(this,"style",{}),wn(this,"canvasStyle",{}),wn(this,"currentModelIndex",0),this.options=t,this.events=n}create(){this.element=Xi({id:Wi.stage,tagName:"div"}),this.canvasElement=Xi({id:Wi.canvas,tagName:"canvas"})}set modelIndex(t){this.currentModelIndex=t}get modelIndex(){return this.currentModelIndex}mount(){this.element&&this.canvasElement&&(this.element.append(this.canvasElement),this.options.parentElement.append(this.element))}reloadStyle(t={}){var n,r,a,o;switch(t=Or(t,this.options.stageStyle),t=Or(t,kf(this.options.dockedPosition)),Kc()){case ha.mobile:t=Or(t,((r=(n=this.options.models)==null?void 0:n[this.modelIndex])==null?void 0:r.mobileStageStyle)||{});break;case ha.pc:t=Or(t,((o=(a=this.options.models)==null?void 0:a[this.modelIndex])==null?void 0:o.stageStyle)||{});break}this.setStyle(di(Or(qfe,t)))}unMount(){var t;(t=this.element)==null||t.remove()}reMount(){this.unMount(),this.mount()}setStyle(t,n){this.element&&(this.style={},this.style=Or(this.style,t),au(this.style,this.element),this.setCanvasStyle({width:"100%",height:"100%",zIndex:"9998",position:"relative"}),n==null||n())}setCanvasStyle(t){this.canvasElement&&(this.canvasStyle=Or(this.canvasStyle,t),au(this.canvasStyle,this.canvasElement))}get transitionTime(){return this.options.transitionTime}slideIn(){return this.setStyle({animationName:"oml2d-stage-slide-in",animationDuration:`${this.transitionTime}ms`,animationFillMode:"forwards"}),new Promise(t=>{setTimeout(()=>{this.status=!0,this.events.emit("stageSlideIn"),_b("active"),t()},this.transitionTime)})}slideOut(){return new Promise(t=>{this.status?(this.setStyle({animationName:"oml2d-stage-slide-out",animationDuration:`${this.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!1,this.events.emit("stageSlideOut"),_b("sleep"),t()},this.transitionTime)):t()})}}class bwe{constructor(t){wn(this,"element"),wn(this,"style",{}),wn(this,"timer",0),wn(this,"status",!1),this.options=t}get statusBarOptions(){return this.options.statusBar}create(){this.options.statusBar.disable||(this.element=Xi({id:Wi.statusBar,tagName:"div",innerText:""}))}mount(){this.element&&this.options.parentElement.append(this.element)}reloadStyle(){switch(this.style={},Kc()){case ha.pc:this.setStyle(di(Or(kf(this.options.dockedPosition),this.options.statusBar.style||{})));break;case ha.mobile:this.setStyle(di(Or(kf(this.options.dockedPosition),this.options.statusBar.mobileStyle||{})));break}}initializeStyle(){this.setColor(this.options.primaryColor),this.reloadStyle()}unMount(){var t;(t=this.element)==null||t.remove()}reMounte(){this.unMount(),this.mount()}setStyle(t){this.element&&(this.style=Or(this.style,t),au(t,this.element))}slideIn(){return new Promise(t=>{this.status&&t(),this.setStyle({animationName:`oml2d-status-bar-${this.options.dockedPosition}-slide-in`,animationDuration:`${this.statusBarOptions.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!0,t()},this.statusBarOptions.transitionTime)})}slideOut(){return new Promise(t=>{this.status?(this.setStyle({animationName:`oml2d-status-bar-${this.options.dockedPosition}-slide-out`,animationDuration:`${this.statusBarOptions.transitionTime}ms`,animationFillMode:"forwards"}),setTimeout(()=>{this.status=!0,t()},this.statusBarOptions.transitionTime)):t()})}showLoading(){this.open(`
      <div style="margin-bottom:3px;">${this.statusBarOptions.loadingMessage}</div>
      <svg class="oml2d-icon oml2d-loading" aria-hidden="true">
        <use xlink:href=#${this.statusBarOptions.loadingIcon}></use>
      </svg>
    `)}hideLoading(){this.popup(this.statusBarOptions.loadSuccessMessage,1e3)}setHoverEvent(t){this.element&&(this.element.onmouseover=(t==null?void 0:t.onIn)||null,this.element.onmouseout=(t==null?void 0:t.onOut)||null)}setClickEvent(t){this.element&&(this.element.onclick=t)}clearHoverEvent(){this.element&&(this.element.onmouseover=null,this.element.onmouseout=null)}clearClickEvent(){this.element&&(this.element.onclick=null)}rest(){this.popup(this.statusBarOptions.restMessage,this.statusBarOptions.restMessageDuration)}loadingError(t){this.setHoverEvent({onIn:()=>{this.setContent(this.statusBarOptions.reloadMessage)},onOut:()=>{this.setContent(this.statusBarOptions.loadFailMessage)}}),this.setClickEvent(()=>{t()}),this.open(this.statusBarOptions.loadFailMessage,this.options.statusBar.errorColor)}get stateColor(){return{info:this.options.primaryColor,error:this.options.statusBar.errorColor}}setColor(t){t&&this.setStyle({backgroundColor:t})}open(t,n=this.options.primaryColor){this.popup(t,!1,n)}close(t,n=this.options.primaryColor,r=0){this.popup(t,r,n)}popup(t,n=0,r=this.options.primaryColor){clearTimeout(this.timer),this.setColor(r),t&&this.setContent(t),this.slideIn(),U0(n)&&(this.timer=setTimeout(()=>{this.slideOut()},n+this.statusBarOptions.transitionTime))}setContent(t){this.element&&(this.element.innerHTML=t)}}class _we{constructor(t,n){wn(this,"idlePlayer"),wn(this,"element"),wn(this,"contentElement"),wn(this,"closeTimer",0),wn(this,"transitionTime",1e3),wn(this,"style",{}),wn(this,"priority",0),wn(this,"contentStyle",{}),wn(this,"_tipsOptions",Qu.tips),this.options=t,this.oml2d=n}reload(t){this.clear(),this.unmount(),this.create(),this.reloadStyle(),this.mount(t)}get tipsOptions(){return this._tipsOptions}set tipsOptions(t){let n;Jd(t)?n=Or(Qu.tips,t(this.options.models[this.oml2d.modelIndex||0],this.oml2d.modelIndex||0)):n=t,this._tipsOptions=n}create(){this.tipsOptions=this.options.tips,this.idlePlayer=this.createIdleMessagePlayer(),this.element=Xi({id:Wi.tips,tagName:"div"}),this.contentElement=Xi({id:"oml2d-tips-content",tagName:"div"})}mount(t){this.element&&this.contentElement&&(this.element.append(this.contentElement),t.append(this.element))}unmount(){var t,n;(t=this.element)==null||t.remove(),(n=this.contentElement)==null||n.remove()}get primaryColor(){return this.options.primaryColor}reloadStyle(){switch(this.style={},this.setContentStyle({wordBreak:"break-all",display:"-webkit-box",textOverflow:"ellipsis",WebkitBoxOrient:"vertical",WebkitLineClamp:this.tipsOptions.messageLine,overflow:"hidden"}),Kc()){case ha.pc:this.setStyle(di(this.tipsOptions.style||{}));break;case ha.mobile:this.setStyle(di(this.tipsOptions.mobileStyle||{}));break}}setStyle(t={}){var n;this.element&&(this.style=Or(this.style,t),(n=this.style).backgroundColor||(n.backgroundColor=this.options.primaryColor),au(this.style,this.element))}setContentStyle(t){this.contentElement&&(this.contentStyle=Or(this.contentStyle,t),au(this.contentStyle,this.contentElement))}setContent(t){this.contentElement&&(this.contentElement.innerHTML=t)}showMessage(t,n=3e3,r=0){r<this.priority||(this.priority=r,this.closeTimer&&clearTimeout(this.closeTimer),this.setContent(t),this.setStyle({animationName:"oml2d-display-tips,oml2d-shake-tips"}),this.closeTimer=setTimeout(()=>{this.setStyle({animationName:"oml2d-hidden-tips,oml2d-shake-tips"}),this.priority=0},n))}clear(){var t;this.setStyle({animationName:"oml2d-hidden-tips,oml2d-shake-tips"}),(t=this.idlePlayer)==null||t.stop(),clearTimeout(this.closeTimer),this.priority=0}notification(t,n=3e3,r=3){var a;(a=this.idlePlayer)==null||a.stop(),this.showMessage(t,n,r),setTimeout(()=>{var o;(o=this.idlePlayer)==null||o.start()},n+this.transitionTime)}welcome(){const t=ihe(this.tipsOptions.welcomeTips||{}),{duration:n,priority:r}=this.tipsOptions.welcomeTips;this.notification(t,n,r)}copy(){if(this.tipsOptions.copyTips.message.length){const t=py(this.tipsOptions.copyTips.message)||"";this.notification(t,this.tipsOptions.copyTips.duration,this.tipsOptions.copyTips.priority)}}createIdleMessagePlayer(){let t="";const n=Xfe(()=>$a(this,null,function*(){this.tipsOptions.idleTips.wordTheDay?Jd(this.tipsOptions.idleTips.wordTheDay)?t=yield hx(this.tipsOptions.idleTips.wordTheDay):t=yield hx():Jd(this.tipsOptions.idleTips.message)?t=yield this.tipsOptions.idleTips.message():t=py(this.tipsOptions.idleTips.message||[])||"",t?(this.showMessage(t,this.tipsOptions.idleTips.duration,this.tipsOptions.idleTips.priority),yield lhe(this.tipsOptions.idleTips.duration)):n.stop()}),this.tipsOptions.idleTips.interval);return n}}class wwe{constructor(t){wn(this,"globalStyle"),wn(this,"stage"),wn(this,"statusBar"),wn(this,"tips"),wn(this,"menus"),wn(this,"models"),wn(this,"pixiApp"),wn(this,"_modelIndex",0),wn(this,"_modelClothesIndex",0),wn(this,"version","0.19.3"),wn(this,"options"),wn(this,"events"),this.events=new Yfe,this.options=dhe(Qu,t),this.globalStyle=new hhe(this.options),this.stage=new ywe(this.options,this.events),this.statusBar=new bwe(this.options),this.tips=new _we(this.options,this),this.menus=new phe(this.options,this),this.models=new a_e(this.options,this.events),this.modelIndex=vwe(),this.modelClothesIndex=gwe(),this.initialize()}set modelIndex(t){t>this.options.models.length-1&&(t=0),this._modelIndex=t,this.stage.modelIndex=t,this.models.modelIndex=t,pwe(t)}get modelIndex(){return this._modelIndex}set modelClothesIndex(t){this._modelClothesIndex=t,this.models.modelClothesIndex=t,mwe(t)}get modelClothesIndex(){return this._modelClothesIndex}showModelHitAreaFrames(){this.models.removeHitAreaFrames()}hideModelHitAreaFrames(){this.models.addHitAreaFrames()}setModelScale(t){this.models.setScale(t)}stopTipsIdle(){var t;(t=this.tips.idlePlayer)==null||t.stop()}startTipsIdle(){var t;(t=this.tips.idlePlayer)==null||t.start()}statusBarPopup(t,n,r){this.statusBar.popup(t,n,r)}setStatusBarHoverEvent(t){this.statusBar.setHoverEvent(t)}tipsMessage(t,n,r){this.tips.notification(t,n,r)}setStageStyle(t){this.stage.setStyle(di(t))}setModelPosition(t){const{x:n=0,y:r=0}=t;this.models.setPosition(n,r)}get mobileHidden(){return!this.options.mobileDisplay&&Kc()===ha.mobile}create(){this.stage.create(),this.pixiApp=new hwe(this.stage),this.statusBar.create(),this.statusBar.initializeStyle()}mount(){this.stage.mount(),this.statusBar.mount()}loadModel(){return $a(this,null,function*(){if(this.tips.clear(),yield this.stage.slideOut(),!(!this.options.models||!this.options.models.length)){if(this.mobileHidden){this.statusBar.rest();return}return this.statusBar.showLoading(),this.models.create().catch(()=>{this.statusBar.loadingError(()=>void this.reloadModel())}).then(()=>{var t,n;(t=this.pixiApp)==null||t.mount(this.models.model),this.menus.reload(this.stage.element),this.tips.reload(this.stage.element),this.models.settingModel(),this.stage.reloadStyle(this.models.modelSize),(n=this.pixiApp)==null||n.resize(),this.statusBar.hideLoading()})}})}reloadModel(){return $a(this,null,function*(){var t;yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadRandomModel(){return $a(this,null,function*(){var t;this.modelIndex=fhe(this.options.models.length,this.modelIndex),this.modelClothesIndex=0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadNextModel(){return $a(this,null,function*(){var t;++this.modelIndex>=this.options.models.length&&(this.modelIndex=0),this.modelClothesIndex=0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(t=this.tips.idlePlayer)==null||t.start()})}loadModelByIndex(t,n){return $a(this,null,function*(){var r;t>=0&&t<this.options.models.length&&(this.modelIndex=t,this.modelClothesIndex=n||0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(r=this.tips.idlePlayer)==null||r.start())})}loadModelByName(t,n){return $a(this,null,function*(){var r;const a=this.options.models.findIndex(o=>o.name===t);a>0&&(this.modelIndex=a,this.modelClothesIndex=n||0,this.statusBar.open(this.options.statusBar.switchingMessage),yield this.loadModel(),yield this.stage.slideIn(),(r=this.tips.idlePlayer)==null||r.start())})}loadNextModelClothes(){return $a(this,null,function*(){const t=this.options.models[this.modelIndex].path;M$(this.options.models[this.modelIndex].path)&&this.options.models.length?(++this.modelClothesIndex>=t.length&&(this.modelClothesIndex=0),yield this.loadModel(),yield this.stage.slideIn()):this.tips.notification("该模型没有其他衣服~",5e3,3)})}setModelRotation(t){this.models.setRotation(t)}setModelAnchor(t){const{x:n,y:r}=t;this.models.setAnchor(n,r)}initialize(){uhe(),this.options.sayHello&&she(),this.registerGlobalEvent(),this.globalStyle.initialize(),this.create(),this.mount(),this.loadModel().then(()=>{const t=Q4()||this.options.initialStatus;Q4()||_b(this.options.initialStatus),t==="sleep"?(this.tips.clear(),this.statusBar.open(this.options.statusBar.restMessage),this.statusBar.setClickEvent(()=>{var n;this.stage.slideIn(),(n=this.tips.idlePlayer)==null||n.start(),this.statusBar.close(),this.statusBar.clearHoverEvent(),this.statusBar.clearClickEvent()})):this.stage.slideIn()})}stageSlideIn(){return $a(this,null,function*(){yield this.stage.slideIn()})}stageSlideOut(){return $a(this,null,function*(){yield this.stage.slideOut()})}statusBarOpen(t,n){this.statusBar.open(t,n)}clearTips(){this.tips.clear()}setStatusBarClickEvent(t){this.statusBar.setClickEvent(t)}statusBarClose(t,n,r){this.statusBar.close(t,r,n)}statusBarClearEvents(){this.statusBar.clearClickEvent(),this.statusBar.clearHoverEvent()}onStageSlideIn(t){this.events.add("stageSlideIn",t)}onStageSlideOut(t){this.events.add("stageSlideOut",t)}onLoad(t){this.events.add("load",t)}registerGlobalEvent(){che(()=>{this.reloadModel()}),this.onStageSlideIn(()=>{this.tips.welcome()}),window.document.oncopy=()=>{this.tips.copy()}}}const Swe=e=>new wwe(e),Fw=gA(RN);Fw.use(DN);Fw.use(Vfe);Fw.mount("#app");const Z4=Swe({mobileDisplay:!0,menus:{items:[{id:"Rest",icon:"icon-rest",title:"休息",onClick(e){var t;e.statusBarOpen((t=e.options.statusBar)==null?void 0:t.restMessage),e.clearTips(),e.setStatusBarClickEvent(()=>{e.statusBarClose(),e.stageSlideIn(),e.statusBarClearEvents()}),e.stageSlideOut()}},{id:"SwitchModel",icon:"icon-switch",title:"切换模型",onClick(e){e.loadNextModel()}}]},models:[{path:"https://model.oml2d.com/HK416-2-normal/model.json",position:[0,60],mobilePosition:[0,0],scale:.08,mobileScale:.04,stageStyle:{height:450},mobileStageStyle:{height:200,width:150}},{path:"https://model.oml2d.com/HK416-1-normal/model.json",position:[0,60],mobilePosition:[0,0],scale:.08,mobileScale:.04,stageStyle:{height:450},mobileStageStyle:{height:200,width:150}}]});Z4.onStageSlideIn(()=>{Z4.tipsMessage("欢迎使用<br/>ICU服务器导航",4e3,10)});export{hfe as E,mt as F,de as a,ye as b,ie as c,he as d,Xt as e,V as f,dn as g,Ewe as h,Ht as o,Twe as p,ee as r,ot as t,h as u,Ce as w};
