diff --git a/docs/assets/index-fb91eb82.js b/docs/assets/index-b7d17c9e.js similarity index 96% rename from docs/assets/index-fb91eb82.js rename to docs/assets/index-b7d17c9e.js index 5f4402c..88800a6 100644 --- a/docs/assets/index-fb91eb82.js +++ b/docs/assets/index-b7d17c9e.js @@ -1,4 +1,4 @@ -var qne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eht=qne((ff,hf)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function aN(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Ds(e){if(Yt(e)){const t={};for(let n=0;n{if(n){const i=n.split(Yne);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function st(e){let t="";if(_i(e))t=e;else if(Yt(e))for(let n=0;nRv(n,t))}const Pr=e=>_i(e)?e:e==null?"":Yt(e)||Di(e)&&(e.toString===I6||!En(e.toString))?JSON.stringify(e,v6,2):String(e),v6=(e,t)=>t&&t.__v_isRef?v6(e,t.value):Oy(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:Mv(t)?{[`Set(${t.size})`]:[...t.values()]}:Di(t)&&!Yt(t)&&!P6(t)?String(t):t,Eo={},Py=[],Bi=()=>{},eie=()=>!1,tie=/^on[^a-z]/,Nv=e=>tie.test(e),cN=e=>e.startsWith("onUpdate:"),gs=Object.assign,lN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nie=Object.prototype.hasOwnProperty,oi=(e,t)=>nie.call(e,t),Yt=Array.isArray,Oy=e=>rT(e)==="[object Map]",Mv=e=>rT(e)==="[object Set]",jF=e=>rT(e)==="[object Date]",En=e=>typeof e=="function",_i=e=>typeof e=="string",eC=e=>typeof e=="symbol",Di=e=>e!==null&&typeof e=="object",D6=e=>Di(e)&&En(e.then)&&En(e.catch),I6=Object.prototype.toString,rT=e=>I6.call(e),iie=e=>rT(e).slice(8,-1),P6=e=>rT(e)==="[object Object]",uN=e=>_i(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xw=aN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oie=/-(\w)/g,lu=Fv(e=>e.replace(oie,(t,n)=>n?n.toUpperCase():"")),rie=/\B([A-Z])/g,G_=Fv(e=>e.replace(rie,"-$1").toLowerCase()),zv=Fv(e=>e.charAt(0).toUpperCase()+e.slice(1)),PI=Fv(e=>e?`on${zv(e)}`:""),tC=(e,t)=>!Object.is(e,t),ww=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},dN=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qF;const sie=()=>qF||(qF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let ec;class O6{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ec,!t&&ec&&(this.index=(ec.scopes||(ec.scopes=[])).push(this)-1)}run(t){if(this.active){const n=ec;try{return ec=this,t()}finally{ec=n}}}on(){ec=this}off(){ec=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},B6=e=>(e.w&Tp)>0,R6=e=>(e.n&Tp)>0,uie=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(d==="length"||d>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Yt(e)?uN(n)&&a.push(s.get("length")):(a.push(s.get(a_)),Oy(e)&&a.push(s.get(DL)));break;case"delete":Yt(e)||(a.push(s.get(a_)),Oy(e)&&a.push(s.get(DL)));break;case"set":Oy(e)&&a.push(s.get(a_));break}if(a.length===1)a[0]&&IL(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);IL(fN(c))}}function IL(e,t){const n=Yt(e)?e:[...e];for(const i of n)i.computed&&YF(i);for(const i of n)i.computed||YF(i)}function YF(e,t){(e!==ql||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const fie=aN("__proto__,__v_isRef,__isVue"),F6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(eC)),hie=pN(),pie=pN(!1,!0),mie=pN(!0),XF=_ie();function _ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ci(this);for(let r=0,s=this.length;r{e[t]=function(...n){w0();const i=Ci(this)[t].apply(this,n);return S0(),i}}),e}function pN(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?Lie:k6:t?V6:H6).get(i))return i;const s=Yt(i);if(!e&&s&&oi(XF,o))return Reflect.get(XF,o,r);const a=Reflect.get(i,o,r);return(eC(o)?F6.has(o):fie(o))||(e||Ac(i,"get",o),t)?a:So(a)?s&&uN(o)?a:a.value:Di(a)?e?W6(a):W_(a):a}}const gie=z6(),yie=z6(!0);function z6(e=!1){return function(n,i,o,r){let s=n[i];if(e0(s)&&So(s)&&!So(o))return!1;if(!e&&(!CS(o)&&!e0(o)&&(s=Ci(s),o=Ci(o)),!Yt(n)&&So(s)&&!So(o)))return s.value=o,!0;const a=Yt(n)&&uN(i)?Number(i)e,Uv=e=>Reflect.getPrototypeOf(e);function rE(e,t,n=!1,i=!1){e=e.__v_raw;const o=Ci(e),r=Ci(t);n||(t!==r&&Ac(o,"get",t),Ac(o,"get",r));const{has:s}=Uv(o),a=i?mN:n?AN:nC;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function sE(e,t=!1){const n=this.__v_raw,i=Ci(n),o=Ci(e);return t||(e!==o&&Ac(i,"has",e),Ac(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function aE(e,t=!1){return e=e.__v_raw,!t&&Ac(Ci(e),"iterate",a_),Reflect.get(e,"size",e)}function KF(e){e=Ci(e);const t=Ci(this);return Uv(t).has.call(t,e)||(t.add(e),vf(t,"add",e,e)),this}function JF(e,t){t=Ci(t);const n=Ci(this),{has:i,get:o}=Uv(n);let r=i.call(n,e);r||(e=Ci(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?tC(t,s)&&vf(n,"set",e,t):vf(n,"add",e,t),this}function QF(e){const t=Ci(this),{has:n,get:i}=Uv(t);let o=n.call(t,e);o||(e=Ci(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&vf(t,"delete",e,void 0),r}function ZF(){const e=Ci(this),t=e.size!==0,n=e.clear();return t&&vf(e,"clear",void 0,void 0),n}function cE(e,t){return function(i,o){const r=this,s=r.__v_raw,a=Ci(s),c=t?mN:e?AN:nC;return!e&&Ac(a,"iterate",a_),s.forEach((u,d)=>i.call(o,c(u),c(d),r))}}function lE(e,t,n){return function(...i){const o=this.__v_raw,r=Ci(o),s=Oy(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),d=n?mN:t?AN:nC;return!t&&Ac(r,"iterate",c?DL:a_),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:a?[d(h[0]),d(h[1])]:d(h),done:m}},[Symbol.iterator](){return this}}}}function dh(e){return function(...t){return e==="delete"?!1:this}}function xie(){const e={get(r){return rE(this,r)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!1)},t={get(r){return rE(this,r,!1,!0)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!0)},n={get(r){return rE(this,r,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!1)},i={get(r){return rE(this,r,!0,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=lE(r,!1,!1),n[r]=lE(r,!0,!1),t[r]=lE(r,!1,!0),i[r]=lE(r,!0,!0)}),[e,n,t,i]}const[wie,Sie,vie,Die]=xie();function _N(e,t){const n=t?e?Die:vie:e?Sie:wie;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(oi(n,o)&&o in i?n:i,o,r)}const Iie={get:_N(!1,!1)},Pie={get:_N(!1,!0)},Oie={get:_N(!0,!1)},H6=new WeakMap,V6=new WeakMap,k6=new WeakMap,Lie=new WeakMap;function Bie(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rie(e){return e.__v_skip||!Object.isExtensible(e)?0:Bie(iie(e))}function W_(e){return e0(e)?e:gN(e,!1,U6,Iie,H6)}function G6(e){return gN(e,!1,Eie,Pie,V6)}function W6(e){return gN(e,!0,Tie,Oie,k6)}function gN(e,t,n,i,o){if(!Di(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=Rie(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function Ly(e){return e0(e)?Ly(e.__v_raw):!!(e&&e.__v_isReactive)}function e0(e){return!!(e&&e.__v_isReadonly)}function CS(e){return!!(e&&e.__v_isShallow)}function j6(e){return Ly(e)||e0(e)}function Ci(e){const t=e&&e.__v_raw;return t?Ci(t):e}function yN(e){return bS(e,"__v_skip",!0),e}const nC=e=>Di(e)?W_(e):e,AN=e=>Di(e)?W6(e):e;function q6(e){sp&&ql&&(e=Ci(e),M6(e.dep||(e.dep=fN())))}function $6(e,t){e=Ci(e),e.dep&&IL(e.dep)}function So(e){return!!(e&&e.__v_isRef===!0)}function bn(e){return Y6(e,!1)}function c_(e){return Y6(e,!0)}function Y6(e,t){return So(e)?e:new Nie(e,t)}class Nie{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ci(t),this._value=n?t:nC(t)}get value(){return q6(this),this._value}set value(t){const n=this.__v_isShallow||CS(t)||e0(t);t=n?t:Ci(t),tC(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nC(t),$6(this))}}function pe(e){return So(e)?e.value:e}const Mie={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return So(o)&&!So(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function X6(e){return Ly(e)?e:new Proxy(e,Mie)}function K6(e){const t=Yt(e)?new Array(e.length):{};for(const n in e)t[n]=t0(e,n);return t}class Fie{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,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}}function t0(e,t,n){const i=e[t];return So(i)?i:new Fie(e,t,n)}var J6;class zie{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[J6]=!1,this._dirty=!0,this.effect=new hN(t,()=>{this._dirty||(this._dirty=!0,$6(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=Ci(this);return q6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}J6="__v_isReadonly";function Q6(e,t,n=!1){let i,o;const r=En(e);return r?(i=e,o=Bi):(i=e.get,o=e.set),new zie(i,o,r||!o,n)}function Uie(e,...t){}function ap(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){Hv(r,t,n)}return o}function al(e,t,n,i){if(En(e)){const r=ap(e,t,n,i);return r&&D6(r)&&r.catch(s=>{Hv(s,t,n)}),r}const o=[];for(let r=0;r>>1;oC(Qs[i])Ku&&Qs.splice(t,1)}function Gie(e){Yt(e)?By.push(...e):(!Kd||!Kd.includes(e,e.allowRecurse?Gm+1:Gm))&&By.push(e),e9()}function e3(e,t=iC?Ku+1:0){for(;toC(n)-oC(i)),Gm=0;Gme.id==null?1/0:e.id,Wie=(e,t)=>{const n=oC(e)-oC(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function n9(e){PL=!1,iC=!0,Qs.sort(Wie);const t=Bi;try{for(Ku=0;Ku_i(g)?g.trim():g)),h&&(o=n.map(dN))}let a,c=i[a=PI(t)]||i[a=PI(lu(t))];!c&&r&&(c=i[a=PI(G_(t))]),c&&al(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,al(u,e,6,o)}}function i9(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!En(e)){const c=u=>{const d=i9(u,t,!0);d&&(a=!0,gs(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(Di(e)&&i.set(e,null),null):(Yt(r)?r.forEach(c=>s[c]=null):gs(s,r),Di(e)&&i.set(e,s),s)}function Vv(e,t){return!e||!Nv(t)?!1:(t=t.slice(2).replace(/Once$/,""),oi(e,t[0].toLowerCase()+t.slice(1))||oi(e,G_(t))||oi(e,t))}let Os=null,o9=null;function TS(e){const t=Os;return Os=e,o9=e&&e.type.__scopeId||null,t}function an(e,t=Os,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&f3(-1);const r=TS(t);let s;try{s=e(...o)}finally{TS(r),i._d&&f3(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function OI(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:d,renderCache:h,data:m,setupState:g,ctx:p,inheritAttrs:y}=e;let b,C;const E=TS(e);try{if(n.shapeFlag&4){const S=o||i;b=ju(d.call(S,S,h,r,g,m,p)),C=c}else{const S=t;b=ju(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),C=t.props?c:qie(c)}}catch(S){Db.length=0,Hv(S,e,1),b=fn(cl)}let w=b;if(C&&y!==!1){const S=Object.keys(C),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(cN)&&(C=$ie(C,s)),w=xp(w,C))}return n.dirs&&(w=xp(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,TS(E),b}const qie=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nv(n))&&((t||(t={}))[n]=e[n]);return t},$ie=(e,t)=>{const n={};for(const i in e)(!cN(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Yie(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?t3(i,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Jie(e,t){t&&t.pendingBranch?Yt(e)?t.effects.push(...e):t.effects.push(e):Gie(e)}function nd(e,t){if(ds){let n=ds.provides;const i=ds.parent&&ds.parent.provides;i===n&&(n=ds.provides=Object.create(i)),n[e]=t}}function er(e,t,n=!1){const i=ds||Os;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&En(t)?t.call(i.proxy):t}}function Qie(e,t){return TN(e,null,t)}const uE={};function to(e,t,n){return TN(e,t,n)}function TN(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=Eo){const a=ds;let c,u=!1,d=!1;if(So(e)?(c=()=>e.value,u=CS(e)):Ly(e)?(c=()=>e,i=!0):Yt(e)?(d=!0,u=e.some(w=>Ly(w)||CS(w)),c=()=>e.map(w=>{if(So(w))return w.value;if(Ly(w))return Qm(w);if(En(w))return ap(w,a,2)})):En(e)?t?c=()=>ap(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),al(e,a,3,[m])}:c=Bi,t&&i){const w=c;c=()=>Qm(w())}let h,m=w=>{h=C.onStop=()=>{ap(w,a,4)}},g;if(cC)if(m=Bi,t?n&&al(t,a,3,[c(),d?[]:void 0,m]):c(),o==="sync"){const w=Goe();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Bi;let p=d?new Array(e.length).fill(uE):uE;const y=()=>{if(C.active)if(t){const w=C.run();(i||u||(d?w.some((S,P)=>tC(S,p[P])):tC(w,p)))&&(h&&h(),al(t,a,3,[w,p===uE?void 0:d&&p[0]===uE?[]:p,m]),p=w)}else C.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Wa(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>CN(y));const C=new hN(c,b);t?n?y():p=C.run():o==="post"?Wa(C.run.bind(C),a&&a.suspense):C.run();const E=()=>{C.stop(),a&&a.scope&&lN(a.scope.effects,C)};return g&&g.push(E),E}function Zie(e,t,n){const i=this.proxy,o=_i(e)?e.includes(".")?r9(i,e):()=>i[e]:e.bind(i,i);let r;En(t)?r=t:(r=t.handler,n=t);const s=ds;n0(this);const a=TN(o,r.bind(i),n);return s?n0(s):l_(),a}function r9(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{Qm(n,t)});else if(P6(e))for(const n in e)Qm(e[n],t);return e}function s9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pc(()=>{e.isMounted=!0}),Wp(()=>{e.isUnmounting=!0}),e}const Fc=[Function,Array],eoe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Fc,onEnter:Fc,onAfterEnter:Fc,onEnterCancelled:Fc,onBeforeLeave:Fc,onLeave:Fc,onAfterLeave:Fc,onLeaveCancelled:Fc,onBeforeAppear:Fc,onAppear:Fc,onAfterAppear:Fc,onAppearCancelled:Fc},setup(e,{slots:t}){const n=Oc(),i=s9();let o;return()=>{const r=t.default&&EN(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const y of r)if(y.type!==cl){s=y;break}}const a=Ci(e),{mode:c}=a;if(i.isLeaving)return LI(s);const u=n3(s);if(!u)return LI(s);const d=rC(u,a,i,n);sC(u,d);const h=n.subTree,m=h&&n3(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const y=p();o===void 0?o=y:y!==o&&(o=y,g=!0)}if(m&&m.type!==cl&&(!Wm(u,m)||g)){const y=rC(m,a,i,n);if(sC(m,y),c==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},LI(s);c==="in-out"&&u.type!==cl&&(y.delayLeave=(b,C,E)=>{const w=c9(i,m);w[String(m.key)]=m,b._leaveCb=()=>{C(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=E})}return s}}},a9=eoe;function c9(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function rC(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:y,onAppear:b,onAfterAppear:C,onAppearCancelled:E}=t,w=String(e.key),S=c9(n,e),P=(R,F)=>{R&&al(R,i,9,F)},L=(R,F)=>{const U=F[1];P(R,F),Yt(R)?R.every(D=>D.length<=1)&&U():R.length<=1&&U()},z={mode:r,persisted:s,beforeEnter(R){let F=a;if(!n.isMounted)if(o)F=y||a;else return;R._leaveCb&&R._leaveCb(!0);const U=S[w];U&&Wm(e,U)&&U.el._leaveCb&&U.el._leaveCb(),P(F,[R])},enter(R){let F=c,U=u,D=d;if(!n.isMounted)if(o)F=b||c,U=C||u,D=E||d;else return;let I=!1;const _=R._enterCb=v=>{I||(I=!0,v?P(D,[R]):P(U,[R]),z.delayedLeave&&z.delayedLeave(),R._enterCb=void 0)};F?L(F,[R,_]):_()},leave(R,F){const U=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return F();P(h,[R]);let D=!1;const I=R._leaveCb=_=>{D||(D=!0,F(),_?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,m?L(m,[R,I]):I()},clone(R){return rC(R,t,n,i)}};return z}function LI(e){if(kv(e))return e=xp(e),e.children=null,e}function n3(e){return kv(e)?e.children?e.children[0]:void 0:e}function sC(e,t){e.shapeFlag&6&&e.component?sC(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 EN(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,kv=e=>e.type.__isKeepAlive;function toe(e,t){l9(e,"a",t)}function noe(e,t){l9(e,"da",t)}function l9(e,t,n=ds){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Gv(t,i,n),n){let o=n.parent;for(;o&&o.parent;)kv(o.parent.vnode)&&ioe(i,t,n,o),o=o.parent}}function ioe(e,t,n,i){const o=Gv(t,e,i,!0);xN(()=>{lN(i[t],o)},n)}function Gv(e,t,n=ds,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;w0(),n0(n);const a=al(t,n,e,s);return l_(),S0(),a});return i?o.unshift(r):o.push(r),r}}const Hf=e=>(t,n=ds)=>(!cC||e==="sp")&&Gv(e,(...i)=>t(...i),n),ooe=Hf("bm"),Pc=Hf("m"),roe=Hf("bu"),u9=Hf("u"),Wp=Hf("bum"),xN=Hf("um"),soe=Hf("sp"),aoe=Hf("rtg"),coe=Hf("rtc");function loe(e,t=ds){Gv("ec",e,t)}function eu(e,t){const n=Os;if(n===null)return e;const i=jv(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rt(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,c=s.length;a{const r=i.fn(...o);return r&&(r.key=i.key),r}:i.fn)}return e}function Zn(e,t,n={},i,o){if(Os.isCE||Os.parent&&wb(Os.parent)&&Os.parent.isCE)return t!=="default"&&(n.name=t),fn("slot",n,i&&i());let r=e[t];r&&r._c&&(r._d=!1),qe();const s=r&&p9(r(n)),a=Dn(Jo,{key:n.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function p9(e){return e.some(t=>Ep(t)?!(t.type===cl||t.type===Jo&&!p9(t.children)):!0)?e:null}const OL=e=>e?w9(e)?jv(e)||e.proxy:OL(e.parent):null,Sb=gs(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=>OL(e.parent),$root:e=>OL(e.root),$emit:e=>e.emit,$options:e=>SN(e),$forceUpdate:e=>e.f||(e.f=()=>CN(e.update)),$nextTick:e=>e.n||(e.n=us.bind(e.proxy)),$watch:e=>Zie.bind(e)}),BI=(e,t)=>e!==Eo&&!e.__isScriptSetup&&oi(e,t),uoe={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(BI(i,t))return s[t]=1,i[t];if(o!==Eo&&oi(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&oi(u,t))return s[t]=3,r[t];if(n!==Eo&&oi(n,t))return s[t]=4,n[t];LL&&(s[t]=0)}}const d=Sb[t];let h,m;if(d)return t==="$attrs"&&Ac(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Eo&&oi(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,oi(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return BI(o,t)?(o[t]=n,!0):i!==Eo&&oi(i,t)?(i[t]=n,!0):oi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==Eo&&oi(e,s)||BI(t,s)||(a=r[0])&&oi(a,s)||oi(i,s)||oi(Sb,s)||oi(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let LL=!0;function doe(e){const t=SN(e),n=e.proxy,i=e.ctx;LL=!1,t.beforeCreate&&r3(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:d,beforeMount:h,mounted:m,beforeUpdate:g,updated:p,activated:y,deactivated:b,beforeDestroy:C,beforeUnmount:E,destroyed:w,unmounted:S,render:P,renderTracked:L,renderTriggered:z,errorCaptured:R,serverPrefetch:F,expose:U,inheritAttrs:D,components:I,directives:_,filters:v}=t;if(u&&foe(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];En(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);Di(V)&&(e.data=W_(V))}if(LL=!0,r)for(const V in r){const k=r[V],G=En(k)?k.bind(n,n):En(k.get)?k.get.bind(n,n):Bi,W=!En(k)&&En(k.set)?k.set.bind(n):Bi,K=tt({get:G,set:W});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)m9(a[V],i,n,V);if(c){const V=En(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{nd(k,V[k])})}d&&r3(d,e,"c");function N(V,k){Yt(k)?k.forEach(G=>V(G.bind(n))):k&&V(k.bind(n))}if(N(ooe,h),N(Pc,m),N(roe,g),N(u9,p),N(toe,y),N(noe,b),N(loe,R),N(coe,L),N(aoe,z),N(Wp,E),N(xN,S),N(soe,F),Yt(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:G=>n[k]=G})})}else e.exposed||(e.exposed={});P&&e.render===Bi&&(e.render=P),D!=null&&(e.inheritAttrs=D),I&&(e.components=I),_&&(e.directives=_)}function foe(e,t,n=Bi,i=!1){Yt(e)&&(e=BL(e));for(const o in e){const r=e[o];let s;Di(r)?"default"in r?s=er(r.from||o,r.default,!0):s=er(r.from||o):s=er(r),So(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function r3(e,t,n){al(Yt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function m9(e,t,n,i){const o=i.includes(".")?r9(n,i):()=>n[i];if(_i(e)){const r=t[e];En(r)&&to(o,r)}else if(En(e))to(o,e.bind(n));else if(Di(e))if(Yt(e))e.forEach(r=>m9(r,t,n,i));else{const r=En(e.handler)?e.handler.bind(n):t[e.handler];En(r)&&to(o,r,e)}}function SN(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>ES(c,u,s,!0)),ES(c,t,s)),Di(t)&&r.set(t,c),c}function ES(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&ES(e,r,n,!0),o&&o.forEach(s=>ES(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=hoe[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const hoe={data:s3,props:Um,emits:Um,methods:Um,computed:Um,beforeCreate:Ea,created:Ea,beforeMount:Ea,mounted:Ea,beforeUpdate:Ea,updated:Ea,beforeDestroy:Ea,beforeUnmount:Ea,destroyed:Ea,unmounted:Ea,activated:Ea,deactivated:Ea,errorCaptured:Ea,serverPrefetch:Ea,components:Um,directives:Um,watch:moe,provide:s3,inject:poe};function s3(e,t){return t?e?function(){return gs(En(e)?e.call(this,this):e,En(t)?t.call(this,this):t)}:t:e}function poe(e,t){return Um(BL(e),BL(t))}function BL(e){if(Yt(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,g]=g9(h,t,!0);gs(s,m),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!c)return Di(e)&&i.set(e,Py),Py;if(Yt(r))for(let d=0;d-1,g[1]=y<0||p-1||oi(g,"default"))&&a.push(h)}}}const u=[s,a];return Di(e)&&i.set(e,u),u}function a3(e){return e[0]!=="$"}function c3(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function l3(e,t){return c3(e)===c3(t)}function u3(e,t){return Yt(t)?t.findIndex(n=>l3(n,e)):En(t)&&l3(t,e)?0:-1}const y9=e=>e[0]==="_"||e==="$stable",vN=e=>Yt(e)?e.map(ju):[ju(e)],yoe=(e,t,n)=>{if(t._n)return t;const i=an((...o)=>vN(t(...o)),n);return i._c=!1,i},A9=(e,t,n)=>{const i=e._ctx;for(const o in e){if(y9(o))continue;const r=e[o];if(En(r))t[o]=yoe(o,r,i);else if(r!=null){const s=vN(r);t[o]=()=>s}}},b9=(e,t)=>{const n=vN(t);e.slots.default=()=>n},Aoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ci(t),bS(t,"_",n)):A9(t,e.slots={})}else e.slots={},t&&b9(e,t);bS(e.slots,Wv,1)},boe=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=Eo;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(gs(o,t),!n&&a===1&&delete o._):(r=!t.$stable,A9(t,o)),s=t}else t&&(b9(e,t),s={default:1});if(r)for(const a in o)!y9(a)&&!(a in s)&&delete o[a]};function C9(){return{app:null,config:{isNativeTag:eie,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 Coe=0;function Toe(e,t){return function(i,o=null){En(i)||(i=Object.assign({},i)),o!=null&&!Di(o)&&(o=null);const r=C9(),s=new Set;let a=!1;const c=r.app={_uid:Coe++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Woe,get config(){return r.config},set config(u){},use(u,...d){return s.has(u)||(u&&En(u.install)?(s.add(u),u.install(c,...d)):En(u)&&(s.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,h){if(!a){const m=fn(i,o);return m.appContext=r,d&&t?t(m,u):e(m,u,h),a=!0,c._container=u,u.__vue_app__=c,jv(m.component)||m.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c}};return c}}function NL(e,t,n,i,o=!1){if(Yt(e)){e.forEach((m,g)=>NL(m,t&&(Yt(t)?t[g]:t),n,i,o));return}if(wb(i)&&!o)return;const r=i.shapeFlag&4?jv(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,d=a.refs===Eo?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(_i(u)?(d[u]=null,oi(h,u)&&(h[u]=null)):So(u)&&(u.value=null)),En(c))ap(c,a,12,[s,d]);else{const m=_i(c),g=So(c);if(m||g){const p=()=>{if(e.f){const y=m?oi(h,c)?h[c]:d[c]:c.value;o?Yt(y)&&lN(y,r):Yt(y)?y.includes(r)||y.push(r):m?(d[c]=[r],oi(h,c)&&(h[c]=d[c])):(c.value=[r],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,oi(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(d[e.k]=s))};s?(p.id=-1,Wa(p,n)):p()}}}const Wa=Jie;function Eoe(e){return xoe(e)}function xoe(e,t){const n=sie();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:m,setScopeId:g=Bi,insertStaticContent:p}=e,y=(Q,ne,de,_e=null,Se=null,ve=null,Le=!1,Ee=null,Be=!!ne.dynamicChildren)=>{if(Q===ne)return;Q&&!Wm(Q,ne)&&(_e=se(Q),q(Q,Se,ve,!0),Q=null),ne.patchFlag===-2&&(Be=!1,ne.dynamicChildren=null);const{type:Pe,ref:Ae,shapeFlag:xe}=ne;switch(Pe){case sT:b(Q,ne,de,_e);break;case cl:C(Q,ne,de,_e);break;case RI:Q==null&&E(ne,de,_e,Le);break;case Jo:I(Q,ne,de,_e,Se,ve,Le,Ee,Be);break;default:xe&1?P(Q,ne,de,_e,Se,ve,Le,Ee,Be):xe&6?_(Q,ne,de,_e,Se,ve,Le,Ee,Be):(xe&64||xe&128)&&Pe.process(Q,ne,de,_e,Se,ve,Le,Ee,Be,re)}Ae!=null&&Se&&NL(Ae,Q&&Q.ref,ve,ne||Q,!ne)},b=(Q,ne,de,_e)=>{if(Q==null)i(ne.el=a(ne.children),de,_e);else{const Se=ne.el=Q.el;ne.children!==Q.children&&u(Se,ne.children)}},C=(Q,ne,de,_e)=>{Q==null?i(ne.el=c(ne.children||""),de,_e):ne.el=Q.el},E=(Q,ne,de,_e)=>{[Q.el,Q.anchor]=p(Q.children,ne,de,_e,Q.el,Q.anchor)},w=({el:Q,anchor:ne},de,_e)=>{let Se;for(;Q&&Q!==ne;)Se=m(Q),i(Q,de,_e),Q=Se;i(ne,de,_e)},S=({el:Q,anchor:ne})=>{let de;for(;Q&&Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},P=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Le=Le||ne.type==="svg",Q==null?L(ne,de,_e,Se,ve,Le,Ee,Be):F(Q,ne,Se,ve,Le,Ee,Be)},L=(Q,ne,de,_e,Se,ve,Le,Ee)=>{let Be,Pe;const{type:Ae,props:xe,shapeFlag:Oe,transition:Ve,dirs:Re}=Q;if(Be=Q.el=s(Q.type,ve,xe&&xe.is,xe),Oe&8?d(Be,Q.children):Oe&16&&R(Q.children,Be,null,_e,Se,ve&&Ae!=="foreignObject",Le,Ee),Re&&um(Q,null,_e,"created"),xe){for(const xt in xe)xt!=="value"&&!xw(xt)&&r(Be,xt,null,xe[xt],ve,Q.children,_e,Se,$);"value"in xe&&r(Be,"value",null,xe.value),(Pe=xe.onVnodeBeforeMount)&&Nu(Pe,_e,Q)}z(Be,Q,Q.scopeId,Le,_e),Re&&um(Q,null,_e,"beforeMount");const At=(!Se||Se&&!Se.pendingBranch)&&Ve&&!Ve.persisted;At&&Ve.beforeEnter(Be),i(Be,ne,de),((Pe=xe&&xe.onVnodeMounted)||At||Re)&&Wa(()=>{Pe&&Nu(Pe,_e,Q),At&&Ve.enter(Be),Re&&um(Q,null,_e,"mounted")},Se)},z=(Q,ne,de,_e,Se)=>{if(de&&g(Q,de),_e)for(let ve=0;ve<_e.length;ve++)g(Q,_e[ve]);if(Se){let ve=Se.subTree;if(ne===ve){const Le=Se.vnode;z(Q,Le,Le.scopeId,Le.slotScopeIds,Se.parent)}}},R=(Q,ne,de,_e,Se,ve,Le,Ee,Be=0)=>{for(let Pe=Be;Pe{const Ee=ne.el=Q.el;let{patchFlag:Be,dynamicChildren:Pe,dirs:Ae}=ne;Be|=Q.patchFlag&16;const xe=Q.props||Eo,Oe=ne.props||Eo;let Ve;de&&dm(de,!1),(Ve=Oe.onVnodeBeforeUpdate)&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"beforeUpdate"),de&&dm(de,!0);const Re=Se&&ne.type!=="foreignObject";if(Pe?U(Q.dynamicChildren,Pe,Ee,de,_e,Re,ve):Le||k(Q,ne,Ee,null,de,_e,Re,ve,!1),Be>0){if(Be&16)D(Ee,ne,xe,Oe,de,_e,Se);else if(Be&2&&xe.class!==Oe.class&&r(Ee,"class",null,Oe.class,Se),Be&4&&r(Ee,"style",xe.style,Oe.style,Se),Be&8){const At=ne.dynamicProps;for(let xt=0;xt{Ve&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"updated")},_e)},U=(Q,ne,de,_e,Se,ve,Le)=>{for(let Ee=0;Ee{if(de!==_e){if(de!==Eo)for(const Ee in de)!xw(Ee)&&!(Ee in _e)&&r(Q,Ee,de[Ee],null,Le,ne.children,Se,ve,$);for(const Ee in _e){if(xw(Ee))continue;const Be=_e[Ee],Pe=de[Ee];Be!==Pe&&Ee!=="value"&&r(Q,Ee,Pe,Be,Le,ne.children,Se,ve,$)}"value"in _e&&r(Q,"value",de.value,_e.value)}},I=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{const Pe=ne.el=Q?Q.el:a(""),Ae=ne.anchor=Q?Q.anchor:a("");let{patchFlag:xe,dynamicChildren:Oe,slotScopeIds:Ve}=ne;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),Q==null?(i(Pe,de,_e),i(Ae,de,_e),R(ne.children,de,Ae,Se,ve,Le,Ee,Be)):xe>0&&xe&64&&Oe&&Q.dynamicChildren?(U(Q.dynamicChildren,Oe,de,Se,ve,Le,Ee),(ne.key!=null||Se&&ne===Se.subTree)&&DN(Q,ne,!0)):k(Q,ne,de,Ae,Se,ve,Le,Ee,Be)},_=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{ne.slotScopeIds=Ee,Q==null?ne.shapeFlag&512?Se.ctx.activate(ne,de,_e,Le,Be):v(ne,de,_e,Se,ve,Le,Be):O(Q,ne,Be)},v=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=Q.component=Noe(Q,_e,Se);if(kv(Q)&&(Ee.ctx.renderer=re),Moe(Ee),Ee.asyncDep){if(Se&&Se.registerDep(Ee,N),!Q.el){const Be=Ee.subTree=fn(cl);C(null,Be,ne,de)}return}N(Ee,Q,ne,de,Se,ve,Le)},O=(Q,ne,de)=>{const _e=ne.component=Q.component;if(Yie(Q,ne,de))if(_e.asyncDep&&!_e.asyncResolved){V(_e,ne,de);return}else _e.next=ne,kie(_e.update),_e.update();else ne.el=Q.el,_e.vnode=ne},N=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=()=>{if(Q.isMounted){let{next:Ae,bu:xe,u:Oe,parent:Ve,vnode:Re}=Q,At=Ae,xt;dm(Q,!1),Ae?(Ae.el=Re.el,V(Q,Ae,Le)):Ae=Re,xe&&ww(xe),(xt=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Nu(xt,Ve,Ae,Re),dm(Q,!0);const Nt=OI(Q),On=Q.subTree;Q.subTree=Nt,y(On,Nt,h(On.el),se(On),Q,Se,ve),Ae.el=Nt.el,At===null&&Xie(Q,Nt.el),Oe&&Wa(Oe,Se),(xt=Ae.props&&Ae.props.onVnodeUpdated)&&Wa(()=>Nu(xt,Ve,Ae,Re),Se)}else{let Ae;const{el:xe,props:Oe}=ne,{bm:Ve,m:Re,parent:At}=Q,xt=wb(ne);if(dm(Q,!1),Ve&&ww(Ve),!xt&&(Ae=Oe&&Oe.onVnodeBeforeMount)&&Nu(Ae,At,ne),dm(Q,!0),xe&&ce){const Nt=()=>{Q.subTree=OI(Q),ce(xe,Q.subTree,Q,Se,null)};xt?ne.type.__asyncLoader().then(()=>!Q.isUnmounted&&Nt()):Nt()}else{const Nt=Q.subTree=OI(Q);y(null,Nt,de,_e,Q,Se,ve),ne.el=Nt.el}if(Re&&Wa(Re,Se),!xt&&(Ae=Oe&&Oe.onVnodeMounted)){const Nt=ne;Wa(()=>Nu(Ae,At,Nt),Se)}(ne.shapeFlag&256||At&&wb(At.vnode)&&At.vnode.shapeFlag&256)&&Q.a&&Wa(Q.a,Se),Q.isMounted=!0,ne=de=_e=null}},Be=Q.effect=new hN(Ee,()=>CN(Pe),Q.scope),Pe=Q.update=()=>Be.run();Pe.id=Q.uid,dm(Q,!0),Pe()},V=(Q,ne,de)=>{ne.component=Q;const _e=Q.vnode.props;Q.vnode=ne,Q.next=null,goe(Q,ne.props,_e,de),boe(Q,ne.children,de),w0(),e3(),S0()},k=(Q,ne,de,_e,Se,ve,Le,Ee,Be=!1)=>{const Pe=Q&&Q.children,Ae=Q?Q.shapeFlag:0,xe=ne.children,{patchFlag:Oe,shapeFlag:Ve}=ne;if(Oe>0){if(Oe&128){W(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}else if(Oe&256){G(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}}Ve&8?(Ae&16&&$(Pe,Se,ve),xe!==Pe&&d(de,xe)):Ae&16?Ve&16?W(Pe,xe,de,_e,Se,ve,Le,Ee,Be):$(Pe,Se,ve,!0):(Ae&8&&d(de,""),Ve&16&&R(xe,de,_e,Se,ve,Le,Ee,Be))},G=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Q=Q||Py,ne=ne||Py;const Pe=Q.length,Ae=ne.length,xe=Math.min(Pe,Ae);let Oe;for(Oe=0;OeAe?$(Q,Se,ve,!0,!1,xe):R(ne,de,_e,Se,ve,Le,Ee,Be,xe)},W=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{let Pe=0;const Ae=ne.length;let xe=Q.length-1,Oe=Ae-1;for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[Pe],Re=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;Pe++}for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[xe],Re=ne[Oe]=Be?Gh(ne[Oe]):ju(ne[Oe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;xe--,Oe--}if(Pe>xe){if(Pe<=Oe){const Ve=Oe+1,Re=VeOe)for(;Pe<=xe;)q(Q[Pe],Se,ve,!0),Pe++;else{const Ve=Pe,Re=Pe,At=new Map;for(Pe=Re;Pe<=Oe;Pe++){const vn=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);vn.key!=null&&At.set(vn.key,Pe)}let xt,Nt=0;const On=Oe-Re+1;let Nn=!1,Sn=0;const un=new Array(On);for(Pe=0;Pe=On){q(vn,Se,ve,!0);continue}let Pn;if(vn.key!=null)Pn=At.get(vn.key);else for(xt=Re;xt<=Oe;xt++)if(un[xt-Re]===0&&Wm(vn,ne[xt])){Pn=xt;break}Pn===void 0?q(vn,Se,ve,!0):(un[Pn-Re]=Pe+1,Pn>=Sn?Sn=Pn:Nn=!0,y(vn,ne[Pn],de,null,Se,ve,Le,Ee,Be),Nt++)}const Ht=Nn?woe(un):Py;for(xt=Ht.length-1,Pe=On-1;Pe>=0;Pe--){const vn=Re+Pe,Pn=ne[vn],qt=vn+1{const{el:ve,type:Le,transition:Ee,children:Be,shapeFlag:Pe}=Q;if(Pe&6){K(Q.component.subTree,ne,de,_e);return}if(Pe&128){Q.suspense.move(ne,de,_e);return}if(Pe&64){Le.move(Q,ne,de,re);return}if(Le===Jo){i(ve,ne,de);for(let xe=0;xeEe.enter(ve),Se);else{const{leave:xe,delayLeave:Oe,afterLeave:Ve}=Ee,Re=()=>i(ve,ne,de),At=()=>{xe(ve,()=>{Re(),Ve&&Ve()})};Oe?Oe(ve,Re,At):At()}else i(ve,ne,de)},q=(Q,ne,de,_e=!1,Se=!1)=>{const{type:ve,props:Le,ref:Ee,children:Be,dynamicChildren:Pe,shapeFlag:Ae,patchFlag:xe,dirs:Oe}=Q;if(Ee!=null&&NL(Ee,null,de,Q,!0),Ae&256){ne.ctx.deactivate(Q);return}const Ve=Ae&1&&Oe,Re=!wb(Q);let At;if(Re&&(At=Le&&Le.onVnodeBeforeUnmount)&&Nu(At,ne,Q),Ae&6)X(Q.component,de,_e);else{if(Ae&128){Q.suspense.unmount(de,_e);return}Ve&&um(Q,null,ne,"beforeUnmount"),Ae&64?Q.type.remove(Q,ne,de,Se,re,_e):Pe&&(ve!==Jo||xe>0&&xe&64)?$(Pe,ne,de,!1,!0):(ve===Jo&&xe&384||!Se&&Ae&16)&&$(Be,ne,de),_e&&te(Q)}(Re&&(At=Le&&Le.onVnodeUnmounted)||Ve)&&Wa(()=>{At&&Nu(At,ne,Q),Ve&&um(Q,null,ne,"unmounted")},de)},te=Q=>{const{type:ne,el:de,anchor:_e,transition:Se}=Q;if(ne===Jo){Y(de,_e);return}if(ne===RI){S(Q);return}const ve=()=>{o(de),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(Q.shapeFlag&1&&Se&&!Se.persisted){const{leave:Le,delayLeave:Ee}=Se,Be=()=>Le(de,ve);Ee?Ee(Q.el,ve,Be):Be()}else ve()},Y=(Q,ne)=>{let de;for(;Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},X=(Q,ne,de)=>{const{bum:_e,scope:Se,update:ve,subTree:Le,um:Ee}=Q;_e&&ww(_e),Se.stop(),ve&&(ve.active=!1,q(Le,Q,ne,de)),Ee&&Wa(Ee,ne),Wa(()=>{Q.isUnmounted=!0},ne),ne&&ne.pendingBranch&&!ne.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ne.pendingId&&(ne.deps--,ne.deps===0&&ne.resolve())},$=(Q,ne,de,_e=!1,Se=!1,ve=0)=>{for(let Le=ve;LeQ.shapeFlag&6?se(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():m(Q.anchor||Q.el),ue=(Q,ne,de)=>{Q==null?ne._vnode&&q(ne._vnode,null,null,!0):y(ne._vnode||null,Q,ne,null,null,null,de),e3(),t9(),ne._vnode=Q},re={p:y,um:q,m:K,r:te,mt:v,mc:R,pc:k,pbc:U,n:se,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:Toe(ue,he)}}function dm({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function DN(e,t,n=!1){const i=e.children,o=t.children;if(Yt(i)&&Yt(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Soe=e=>e.__isTeleport,vb=e=>e&&(e.disabled||e.disabled===""),d3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ML=(e,t)=>{const n=e&&e.to;return _i(n)?t?t(n):null:n},voe={__isTeleport:!0,process(e,t,n,i,o,r,s,a,c,u){const{mc:d,pc:h,pbc:m,o:{insert:g,querySelector:p,createText:y,createComment:b}}=u,C=vb(t.props);let{shapeFlag:E,children:w,dynamicChildren:S}=t;if(e==null){const P=t.el=y(""),L=t.anchor=y("");g(P,n,i),g(L,n,i);const z=t.target=ML(t.props,p),R=t.targetAnchor=y("");z&&(g(R,z),s=s||d3(z));const F=(U,D)=>{E&16&&d(w,U,D,o,r,s,a,c)};C?F(n,L):z&&F(z,R)}else{t.el=e.el;const P=t.anchor=e.anchor,L=t.target=e.target,z=t.targetAnchor=e.targetAnchor,R=vb(e.props),F=R?n:L,U=R?P:z;if(s=s||d3(L),S?(m(e.dynamicChildren,S,F,o,r,s,a),DN(e,t,!0)):c||h(e,t,F,U,o,r,s,a,!1),C)R||dE(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ML(t.props,p);D&&dE(t,D,null,u,0)}else R&&dE(t,L,z,u,1)}T9(t)},remove(e,t,n,i,{um:o,o:{remove:r}},s){const{shapeFlag:a,children:c,anchor:u,targetAnchor:d,target:h,props:m}=e;if(h&&r(d),(s||!vb(m))&&(r(u),a&16))for(let g=0;g0?Yl||Py:null,Poe(),aC>0&&Yl&&Yl.push(e),e}function Dt(e,t,n,i,o,r){return E9(Vt(e,t,n,i,o,r,!0))}function Dn(e,t,n,i,o){return E9(fn(e,t,n,i,o,!0))}function Ep(e){return e?e.__v_isVNode===!0:!1}function Wm(e,t){return e.type===t.type&&e.key===t.key}const Wv="__vInternal",x9=({key:e})=>e??null,Sw=({ref:e,ref_key:t,ref_for:n})=>e!=null?_i(e)||So(e)||En(e)?{i:Os,r:e,k:t,f:!!n}:e:null;function Vt(e,t=null,n=null,i=0,o=null,r=e===Jo?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&x9(t),ref:t&&Sw(t),scopeId:o9,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:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Os};return a?(IN(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=_i(n)?8:16),aC>0&&!s&&Yl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Yl.push(c),c}const fn=Ooe;function Ooe(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===d9)&&(e=cl),Ep(e)){const a=xp(e,t,!0);return n&&IN(a,n),aC>0&&!r&&Yl&&(a.shapeFlag&6?Yl[Yl.indexOf(e)]=a:Yl.push(a)),a.patchFlag|=-2,a}if(Hoe(e)&&(e=e.__vccOpts),t){t=Loe(t);let{class:a,style:c}=t;a&&!_i(a)&&(t.class=st(a)),Di(c)&&(j6(c)&&!Yt(c)&&(c=gs({},c)),t.style=Ds(c))}const s=_i(e)?1:Kie(e)?128:Soe(e)?64:Di(e)?4:En(e)?2:0;return Vt(e,t,n,i,o,s,r,!0)}function Loe(e){return e?j6(e)||Wv in e?gs({},e):e:null}function xp(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?cp(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&x9(a),ref:t&&t.ref?n&&o?Yt(o)?o.concat(Sw(t)):[o,Sw(t)]:Sw(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jo?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xp(e.ssContent),ssFallback:e.ssFallback&&xp(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function $l(e=" ",t=0){return fn(sT,null,e,t)}function Mt(e="",t=!1){return t?(qe(),Dn(cl,null,e)):fn(cl,null,e)}function ju(e){return e==null||typeof e=="boolean"?fn(cl):Yt(e)?fn(Jo,null,e.slice()):typeof e=="object"?Gh(e):fn(sT,null,String(e))}function Gh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xp(e)}function IN(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Yt(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),IN(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Wv in t)?t._ctx=Os:o===3&&Os&&(Os.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else En(t)?(t={default:t,_ctx:Os},n=32):(t=String(t),i&64?(n=16,t=[$l(t)]):n=8);e.children=t,e.shapeFlag|=n}function cp(...e){const t={};for(let n=0;nds||Os,n0=e=>{ds=e,e.scope.on()},l_=()=>{ds&&ds.scope.off(),ds=null};function w9(e){return e.vnode.shapeFlag&4}let cC=!1;function Moe(e,t=!1){cC=t;const{props:n,children:i}=e.vnode,o=w9(e);_oe(e,n,o,t),Aoe(e,i);const r=o?Foe(e,t):void 0;return cC=!1,r}function Foe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yN(new Proxy(e.ctx,uoe));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?v9(e):null;n0(e),w0();const r=ap(i,e,0,[e.props,o]);if(S0(),l_(),D6(r)){if(r.then(l_,l_),t)return r.then(s=>{h3(e,s,t)}).catch(s=>{Hv(s,e,0)});e.asyncDep=r}else h3(e,r,t)}else S9(e,t)}function h3(e,t,n){En(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Di(t)&&(e.setupState=X6(t)),S9(e,n)}let p3;function S9(e,t,n){const i=e.type;if(!e.render){if(!t&&p3&&!i.render){const o=i.template||SN(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=gs(gs({isCustomElement:r,delimiters:a},s),c);i.render=p3(o,u)}}e.render=i.render||Bi}n0(e),w0(),doe(e),S0(),l_()}function zoe(e){return new Proxy(e.attrs,{get(t,n){return Ac(e,"get","$attrs"),t[n]}})}function v9(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=zoe(e))},slots:e.slots,emit:e.emit,expose:t}}function jv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(X6(yN(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sb)return Sb[n](e)},has(t,n){return n in t||n in Sb}}))}function Uoe(e,t=!0){return En(e)?e.displayName||e.name:e.name||t&&e.__name}function Hoe(e){return En(e)&&"__vccOpts"in e}const tt=(e,t)=>Q6(e,t,cC);function aT(){return D9().slots}function Voe(){return D9().attrs}function D9(){const e=Oc();return e.setupContext||(e.setupContext=v9(e))}function qv(e,t,n){const i=arguments.length;return i===2?Di(t)&&!Yt(t)?Ep(t)?fn(e,null,[t]):fn(e,t):fn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ep(n)&&(n=[n]),fn(e,t,n))}const koe=Symbol(""),Goe=()=>er(koe),Woe="3.2.45",joe="http://www.w3.org/2000/svg",jm=typeof document<"u"?document:null,m3=jm&&jm.createElement("template"),qoe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?jm.createElementNS(joe,e):jm.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>jm.createTextNode(e),createComment:e=>jm.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jm.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{m3.innerHTML=i?`${e}`:e;const a=m3.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function $oe(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Yoe(e,t,n){const i=e.style,o=_i(n);if(n&&!o){for(const r in n)FL(i,r,n[r]);if(t&&!_i(t))for(const r in t)n[r]==null&&FL(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const _3=/\s*!important$/;function FL(e,t,n){if(Yt(n))n.forEach(i=>FL(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Xoe(e,t);_3.test(n)?e.setProperty(G_(i),n.replace(_3,""),"important"):e[i]=n}}const g3=["Webkit","Moz","ms"],NI={};function Xoe(e,t){const n=NI[t];if(n)return n;let i=lu(t);if(i!=="filter"&&i in e)return NI[t]=i;i=zv(i);for(let o=0;oMI||(tre.then(()=>MI=0),MI=Date.now());function ire(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;al(ore(i,n.value),t,5,[i])};return n.value=e,n.attached=nre(),n}function ore(e,t){if(Yt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const b3=/^on[a-z]/,rre=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?$oe(e,i,o):t==="style"?Yoe(e,n,i):Nv(t)?cN(t)||Zoe(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sre(e,t,i,o))?Joe(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Koe(e,t,i,o))};function sre(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&b3.test(t)&&En(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||b3.test(t)&&_i(n)?!1:t in e}const fh="transition",eA="animation",v0=(e,{slots:t})=>qv(a9,O9(e),t);v0.displayName="Transition";const P9={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},are=v0.props=gs({},a9.props,P9),fm=(e,t=[])=>{Yt(e)?e.forEach(n=>n(...t)):e&&e(...t)},C3=e=>e?Yt(e)?e.some(t=>t.length>1):e.length>1:!1;function O9(e){const t={};for(const I in e)I in P9||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=cre(o),y=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:L=C,onAppear:z=E,onAppearCancelled:R=w}=t,F=(I,_,v)=>{Mh(I,_?d:a),Mh(I,_?u:s),v&&v()},U=(I,_)=>{I._isLeaving=!1,Mh(I,h),Mh(I,g),Mh(I,m),_&&_()},D=I=>(_,v)=>{const O=I?z:E,N=()=>F(_,I,v);fm(O,[_,N]),T3(()=>{Mh(_,I?c:r),Xd(_,I?d:a),C3(O)||E3(_,i,y,N)})};return gs(t,{onBeforeEnter(I){fm(C,[I]),Xd(I,r),Xd(I,s)},onBeforeAppear(I){fm(L,[I]),Xd(I,c),Xd(I,u)},onEnter:D(!1),onAppear:D(!0),onLeave(I,_){I._isLeaving=!0;const v=()=>U(I,_);Xd(I,h),B9(),Xd(I,m),T3(()=>{I._isLeaving&&(Mh(I,h),Xd(I,g),C3(S)||E3(I,i,b,v))}),fm(S,[I,v])},onEnterCancelled(I){F(I,!1),fm(w,[I])},onAppearCancelled(I){F(I,!0),fm(R,[I])},onLeaveCancelled(I){U(I),fm(P,[I])}})}function cre(e){if(e==null)return null;if(Di(e))return[FI(e.enter),FI(e.leave)];{const t=FI(e);return[t,t]}}function FI(e){return dN(e)}function Xd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Mh(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function T3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lre=0;function E3(e,t,n,i){const o=e._endId=++lre,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=L9(e,t);if(!s)return i();const u=s+"end";let d=0;const h=()=>{e.removeEventListener(u,m),r()},m=g=>{g.target===e&&++d>=c&&h()};setTimeout(()=>{d(n[p]||"").split(", "),o=i(`${fh}Delay`),r=i(`${fh}Duration`),s=x3(o,r),a=i(`${eA}Delay`),c=i(`${eA}Duration`),u=x3(a,c);let d=null,h=0,m=0;t===fh?s>0&&(d=fh,h=s,m=r.length):t===eA?u>0&&(d=eA,h=u,m=c.length):(h=Math.max(s,u),d=h>0?s>u?fh:eA:null,m=d?d===fh?r.length:c.length:0);const g=d===fh&&/\b(transform|all)(,|$)/.test(i(`${fh}Property`).toString());return{type:d,timeout:h,propCount:m,hasTransform:g}}function x3(e,t){for(;e.lengthw3(n)+w3(e[i])))}function w3(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function B9(){return document.body.offsetHeight}const R9=new WeakMap,N9=new WeakMap,ure={name:"TransitionGroup",props:gs({},are,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Oc(),i=s9();let o,r;return u9(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!mre(o[0].el,n.vnode.el,s))return;o.forEach(fre),o.forEach(hre);const a=o.filter(pre);B9(),a.forEach(c=>{const u=c.el,d=u.style;Xd(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=m=>{m&&m.target!==u||(!m||/transform$/.test(m.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,Mh(u,s))};u.addEventListener("transitionend",h)})}),()=>{const s=Ci(e),a=O9(s);let c=s.tag||Jo;o=r,r=t.default?EN(t.default()):[];for(let u=0;u{s.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(i);const{hasTransform:r}=L9(i);return o.removeChild(i),r}const S3=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Yt(t)?n=>ww(t,n):t},xS={deep:!0,created(e,t,n){e._assign=S3(n),I9(e,"change",()=>{const i=e._modelValue,o=_re(e),r=e.checked,s=e._assign;if(Yt(i)){const a=S6(i,o),c=a!==-1;if(r&&!c)s(i.concat(o));else if(!r&&c){const u=[...i];u.splice(a,1),s(u)}}else if(Mv(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(M9(e,r))})},mounted:v3,beforeUpdate(e,t,n){e._assign=S3(n),v3(e,t,n)}};function v3(e,{value:t,oldValue:n},i){e._modelValue=t,Yt(t)?e.checked=S6(t,i.props.value)>-1:Mv(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Rv(t,M9(e,!0)))}function _re(e){return"_value"in e?e._value:e.value}function M9(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gre=["ctrl","shift","alt","meta"],yre={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)=>gre.some(n=>e[`${n}Key`]&&!t.includes(n))},ac=(e,t)=>(n,...i)=>{for(let o=0;on=>{if(!("key"in n))return;const i=G_(n.key);if(t.some(o=>o===i||Are[o]===i))return e(n)},u_={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tA(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),tA(e,!0),i.enter(e)):i.leave(e,()=>{tA(e,!1)}):tA(e,t))},beforeUnmount(e,{value:t}){tA(e,t)}};function tA(e,t){e.style.display=t?e._vod:"none"}const bre=gs({patchProp:rre},qoe);let D3;function F9(){return D3||(D3=Eoe(bre))}const wS=(...e)=>{F9().render(...e)},Cre=(...e)=>{const t=F9().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Tre(i);if(!o)return;const r=t._component;!En(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Tre(e){return _i(e)?document.querySelector(e):e}var Ere=!1;/*! +var qne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eht=qne((ff,hf)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function aN(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Ds(e){if(Yt(e)){const t={};for(let n=0;n{if(n){const i=n.split(Yne);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function st(e){let t="";if(_i(e))t=e;else if(Yt(e))for(let n=0;nRv(n,t))}const Pr=e=>_i(e)?e:e==null?"":Yt(e)||Di(e)&&(e.toString===I6||!En(e.toString))?JSON.stringify(e,v6,2):String(e),v6=(e,t)=>t&&t.__v_isRef?v6(e,t.value):Py(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:Mv(t)?{[`Set(${t.size})`]:[...t.values()]}:Di(t)&&!Yt(t)&&!P6(t)?String(t):t,Eo={},Iy=[],Bi=()=>{},eie=()=>!1,tie=/^on[^a-z]/,Nv=e=>tie.test(e),cN=e=>e.startsWith("onUpdate:"),gs=Object.assign,lN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nie=Object.prototype.hasOwnProperty,oi=(e,t)=>nie.call(e,t),Yt=Array.isArray,Py=e=>rT(e)==="[object Map]",Mv=e=>rT(e)==="[object Set]",jF=e=>rT(e)==="[object Date]",En=e=>typeof e=="function",_i=e=>typeof e=="string",eC=e=>typeof e=="symbol",Di=e=>e!==null&&typeof e=="object",D6=e=>Di(e)&&En(e.then)&&En(e.catch),I6=Object.prototype.toString,rT=e=>I6.call(e),iie=e=>rT(e).slice(8,-1),P6=e=>rT(e)==="[object Object]",uN=e=>_i(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xw=aN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oie=/-(\w)/g,lu=Fv(e=>e.replace(oie,(t,n)=>n?n.toUpperCase():"")),rie=/\B([A-Z])/g,G_=Fv(e=>e.replace(rie,"-$1").toLowerCase()),zv=Fv(e=>e.charAt(0).toUpperCase()+e.slice(1)),PI=Fv(e=>e?`on${zv(e)}`:""),tC=(e,t)=>!Object.is(e,t),ww=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},dN=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qF;const sie=()=>qF||(qF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let tc;class O6{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=tc,!t&&tc&&(this.index=(tc.scopes||(tc.scopes=[])).push(this)-1)}run(t){if(this.active){const n=tc;try{return tc=this,t()}finally{tc=n}}}on(){tc=this}off(){tc=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},B6=e=>(e.w&Tp)>0,R6=e=>(e.n&Tp)>0,uie=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(d==="length"||d>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Yt(e)?uN(n)&&a.push(s.get("length")):(a.push(s.get(a_)),Py(e)&&a.push(s.get(DL)));break;case"delete":Yt(e)||(a.push(s.get(a_)),Py(e)&&a.push(s.get(DL)));break;case"set":Py(e)&&a.push(s.get(a_));break}if(a.length===1)a[0]&&IL(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);IL(fN(c))}}function IL(e,t){const n=Yt(e)?e:[...e];for(const i of n)i.computed&&YF(i);for(const i of n)i.computed||YF(i)}function YF(e,t){(e!==ql||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const fie=aN("__proto__,__v_isRef,__isVue"),F6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(eC)),hie=pN(),pie=pN(!1,!0),mie=pN(!0),XF=_ie();function _ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ci(this);for(let r=0,s=this.length;r{e[t]=function(...n){x0();const i=Ci(this)[t].apply(this,n);return w0(),i}}),e}function pN(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?Lie:k6:t?V6:H6).get(i))return i;const s=Yt(i);if(!e&&s&&oi(XF,o))return Reflect.get(XF,o,r);const a=Reflect.get(i,o,r);return(eC(o)?F6.has(o):fie(o))||(e||bc(i,"get",o),t)?a:So(a)?s&&uN(o)?a:a.value:Di(a)?e?W6(a):W_(a):a}}const gie=z6(),yie=z6(!0);function z6(e=!1){return function(n,i,o,r){let s=n[i];if(Zy(s)&&So(s)&&!So(o))return!1;if(!e&&(!CS(o)&&!Zy(o)&&(s=Ci(s),o=Ci(o)),!Yt(n)&&So(s)&&!So(o)))return s.value=o,!0;const a=Yt(n)&&uN(i)?Number(i)e,Uv=e=>Reflect.getPrototypeOf(e);function rE(e,t,n=!1,i=!1){e=e.__v_raw;const o=Ci(e),r=Ci(t);n||(t!==r&&bc(o,"get",t),bc(o,"get",r));const{has:s}=Uv(o),a=i?mN:n?AN:nC;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function sE(e,t=!1){const n=this.__v_raw,i=Ci(n),o=Ci(e);return t||(e!==o&&bc(i,"has",e),bc(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function aE(e,t=!1){return e=e.__v_raw,!t&&bc(Ci(e),"iterate",a_),Reflect.get(e,"size",e)}function KF(e){e=Ci(e);const t=Ci(this);return Uv(t).has.call(t,e)||(t.add(e),vf(t,"add",e,e)),this}function JF(e,t){t=Ci(t);const n=Ci(this),{has:i,get:o}=Uv(n);let r=i.call(n,e);r||(e=Ci(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?tC(t,s)&&vf(n,"set",e,t):vf(n,"add",e,t),this}function QF(e){const t=Ci(this),{has:n,get:i}=Uv(t);let o=n.call(t,e);o||(e=Ci(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&vf(t,"delete",e,void 0),r}function ZF(){const e=Ci(this),t=e.size!==0,n=e.clear();return t&&vf(e,"clear",void 0,void 0),n}function cE(e,t){return function(i,o){const r=this,s=r.__v_raw,a=Ci(s),c=t?mN:e?AN:nC;return!e&&bc(a,"iterate",a_),s.forEach((u,d)=>i.call(o,c(u),c(d),r))}}function lE(e,t,n){return function(...i){const o=this.__v_raw,r=Ci(o),s=Py(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),d=n?mN:t?AN:nC;return!t&&bc(r,"iterate",c?DL:a_),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:a?[d(h[0]),d(h[1])]:d(h),done:m}},[Symbol.iterator](){return this}}}}function dh(e){return function(...t){return e==="delete"?!1:this}}function xie(){const e={get(r){return rE(this,r)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!1)},t={get(r){return rE(this,r,!1,!0)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!0)},n={get(r){return rE(this,r,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!1)},i={get(r){return rE(this,r,!0,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=lE(r,!1,!1),n[r]=lE(r,!0,!1),t[r]=lE(r,!1,!0),i[r]=lE(r,!0,!0)}),[e,n,t,i]}const[wie,Sie,vie,Die]=xie();function _N(e,t){const n=t?e?Die:vie:e?Sie:wie;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(oi(n,o)&&o in i?n:i,o,r)}const Iie={get:_N(!1,!1)},Pie={get:_N(!1,!0)},Oie={get:_N(!0,!1)},H6=new WeakMap,V6=new WeakMap,k6=new WeakMap,Lie=new WeakMap;function Bie(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rie(e){return e.__v_skip||!Object.isExtensible(e)?0:Bie(iie(e))}function W_(e){return Zy(e)?e:gN(e,!1,U6,Iie,H6)}function G6(e){return gN(e,!1,Eie,Pie,V6)}function W6(e){return gN(e,!0,Tie,Oie,k6)}function gN(e,t,n,i,o){if(!Di(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=Rie(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function Oy(e){return Zy(e)?Oy(e.__v_raw):!!(e&&e.__v_isReactive)}function Zy(e){return!!(e&&e.__v_isReadonly)}function CS(e){return!!(e&&e.__v_isShallow)}function j6(e){return Oy(e)||Zy(e)}function Ci(e){const t=e&&e.__v_raw;return t?Ci(t):e}function yN(e){return bS(e,"__v_skip",!0),e}const nC=e=>Di(e)?W_(e):e,AN=e=>Di(e)?W6(e):e;function q6(e){sp&&ql&&(e=Ci(e),M6(e.dep||(e.dep=fN())))}function $6(e,t){e=Ci(e),e.dep&&IL(e.dep)}function So(e){return!!(e&&e.__v_isRef===!0)}function bn(e){return Y6(e,!1)}function c_(e){return Y6(e,!0)}function Y6(e,t){return So(e)?e:new Nie(e,t)}class Nie{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ci(t),this._value=n?t:nC(t)}get value(){return q6(this),this._value}set value(t){const n=this.__v_isShallow||CS(t)||Zy(t);t=n?t:Ci(t),tC(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nC(t),$6(this))}}function pe(e){return So(e)?e.value:e}const Mie={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return So(o)&&!So(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function X6(e){return Oy(e)?e:new Proxy(e,Mie)}function K6(e){const t=Yt(e)?new Array(e.length):{};for(const n in e)t[n]=e0(e,n);return t}class Fie{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,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}}function e0(e,t,n){const i=e[t];return So(i)?i:new Fie(e,t,n)}var J6;class zie{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[J6]=!1,this._dirty=!0,this.effect=new hN(t,()=>{this._dirty||(this._dirty=!0,$6(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=Ci(this);return q6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}J6="__v_isReadonly";function Q6(e,t,n=!1){let i,o;const r=En(e);return r?(i=e,o=Bi):(i=e.get,o=e.set),new zie(i,o,r||!o,n)}function Uie(e,...t){}function ap(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){Hv(r,t,n)}return o}function cl(e,t,n,i){if(En(e)){const r=ap(e,t,n,i);return r&&D6(r)&&r.catch(s=>{Hv(s,t,n)}),r}const o=[];for(let r=0;r>>1;oC(Qs[i])Ku&&Qs.splice(t,1)}function Gie(e){Yt(e)?Ly.push(...e):(!Kd||!Kd.includes(e,e.allowRecurse?Gm+1:Gm))&&Ly.push(e),e9()}function e3(e,t=iC?Ku+1:0){for(;toC(n)-oC(i)),Gm=0;Gme.id==null?1/0:e.id,Wie=(e,t)=>{const n=oC(e)-oC(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function n9(e){PL=!1,iC=!0,Qs.sort(Wie);const t=Bi;try{for(Ku=0;Ku_i(g)?g.trim():g)),h&&(o=n.map(dN))}let a,c=i[a=PI(t)]||i[a=PI(lu(t))];!c&&r&&(c=i[a=PI(G_(t))]),c&&cl(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,cl(u,e,6,o)}}function i9(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!En(e)){const c=u=>{const d=i9(u,t,!0);d&&(a=!0,gs(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(Di(e)&&i.set(e,null),null):(Yt(r)?r.forEach(c=>s[c]=null):gs(s,r),Di(e)&&i.set(e,s),s)}function Vv(e,t){return!e||!Nv(t)?!1:(t=t.slice(2).replace(/Once$/,""),oi(e,t[0].toLowerCase()+t.slice(1))||oi(e,G_(t))||oi(e,t))}let Os=null,o9=null;function TS(e){const t=Os;return Os=e,o9=e&&e.type.__scopeId||null,t}function an(e,t=Os,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&f3(-1);const r=TS(t);let s;try{s=e(...o)}finally{TS(r),i._d&&f3(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function OI(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:d,renderCache:h,data:m,setupState:g,ctx:p,inheritAttrs:y}=e;let b,C;const E=TS(e);try{if(n.shapeFlag&4){const S=o||i;b=ju(d.call(S,S,h,r,g,m,p)),C=c}else{const S=t;b=ju(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),C=t.props?c:qie(c)}}catch(S){Db.length=0,Hv(S,e,1),b=fn(ll)}let w=b;if(C&&y!==!1){const S=Object.keys(C),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(cN)&&(C=$ie(C,s)),w=xp(w,C))}return n.dirs&&(w=xp(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,TS(E),b}const qie=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nv(n))&&((t||(t={}))[n]=e[n]);return t},$ie=(e,t)=>{const n={};for(const i in e)(!cN(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Yie(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?t3(i,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Jie(e,t){t&&t.pendingBranch?Yt(e)?t.effects.push(...e):t.effects.push(e):Gie(e)}function nd(e,t){if(ds){let n=ds.provides;const i=ds.parent&&ds.parent.provides;i===n&&(n=ds.provides=Object.create(i)),n[e]=t}}function er(e,t,n=!1){const i=ds||Os;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&En(t)?t.call(i.proxy):t}}function Qie(e,t){return TN(e,null,t)}const uE={};function to(e,t,n){return TN(e,t,n)}function TN(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=Eo){const a=ds;let c,u=!1,d=!1;if(So(e)?(c=()=>e.value,u=CS(e)):Oy(e)?(c=()=>e,i=!0):Yt(e)?(d=!0,u=e.some(w=>Oy(w)||CS(w)),c=()=>e.map(w=>{if(So(w))return w.value;if(Oy(w))return Qm(w);if(En(w))return ap(w,a,2)})):En(e)?t?c=()=>ap(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),cl(e,a,3,[m])}:c=Bi,t&&i){const w=c;c=()=>Qm(w())}let h,m=w=>{h=C.onStop=()=>{ap(w,a,4)}},g;if(cC)if(m=Bi,t?n&&cl(t,a,3,[c(),d?[]:void 0,m]):c(),o==="sync"){const w=Goe();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Bi;let p=d?new Array(e.length).fill(uE):uE;const y=()=>{if(C.active)if(t){const w=C.run();(i||u||(d?w.some((S,P)=>tC(S,p[P])):tC(w,p)))&&(h&&h(),cl(t,a,3,[w,p===uE?void 0:d&&p[0]===uE?[]:p,m]),p=w)}else C.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Wa(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>CN(y));const C=new hN(c,b);t?n?y():p=C.run():o==="post"?Wa(C.run.bind(C),a&&a.suspense):C.run();const E=()=>{C.stop(),a&&a.scope&&lN(a.scope.effects,C)};return g&&g.push(E),E}function Zie(e,t,n){const i=this.proxy,o=_i(e)?e.includes(".")?r9(i,e):()=>i[e]:e.bind(i,i);let r;En(t)?r=t:(r=t.handler,n=t);const s=ds;t0(this);const a=TN(o,r.bind(i),n);return s?t0(s):l_(),a}function r9(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{Qm(n,t)});else if(P6(e))for(const n in e)Qm(e[n],t);return e}function s9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Oc(()=>{e.isMounted=!0}),Wp(()=>{e.isUnmounting=!0}),e}const zc=[Function,Array],eoe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zc,onEnter:zc,onAfterEnter:zc,onEnterCancelled:zc,onBeforeLeave:zc,onLeave:zc,onAfterLeave:zc,onLeaveCancelled:zc,onBeforeAppear:zc,onAppear:zc,onAfterAppear:zc,onAppearCancelled:zc},setup(e,{slots:t}){const n=Lc(),i=s9();let o;return()=>{const r=t.default&&EN(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const y of r)if(y.type!==ll){s=y;break}}const a=Ci(e),{mode:c}=a;if(i.isLeaving)return LI(s);const u=n3(s);if(!u)return LI(s);const d=rC(u,a,i,n);sC(u,d);const h=n.subTree,m=h&&n3(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const y=p();o===void 0?o=y:y!==o&&(o=y,g=!0)}if(m&&m.type!==ll&&(!Wm(u,m)||g)){const y=rC(m,a,i,n);if(sC(m,y),c==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},LI(s);c==="in-out"&&u.type!==ll&&(y.delayLeave=(b,C,E)=>{const w=c9(i,m);w[String(m.key)]=m,b._leaveCb=()=>{C(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=E})}return s}}},a9=eoe;function c9(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function rC(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:y,onAppear:b,onAfterAppear:C,onAppearCancelled:E}=t,w=String(e.key),S=c9(n,e),P=(R,F)=>{R&&cl(R,i,9,F)},L=(R,F)=>{const U=F[1];P(R,F),Yt(R)?R.every(D=>D.length<=1)&&U():R.length<=1&&U()},z={mode:r,persisted:s,beforeEnter(R){let F=a;if(!n.isMounted)if(o)F=y||a;else return;R._leaveCb&&R._leaveCb(!0);const U=S[w];U&&Wm(e,U)&&U.el._leaveCb&&U.el._leaveCb(),P(F,[R])},enter(R){let F=c,U=u,D=d;if(!n.isMounted)if(o)F=b||c,U=C||u,D=E||d;else return;let I=!1;const _=R._enterCb=v=>{I||(I=!0,v?P(D,[R]):P(U,[R]),z.delayedLeave&&z.delayedLeave(),R._enterCb=void 0)};F?L(F,[R,_]):_()},leave(R,F){const U=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return F();P(h,[R]);let D=!1;const I=R._leaveCb=_=>{D||(D=!0,F(),_?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,m?L(m,[R,I]):I()},clone(R){return rC(R,t,n,i)}};return z}function LI(e){if(kv(e))return e=xp(e),e.children=null,e}function n3(e){return kv(e)?e.children?e.children[0]:void 0:e}function sC(e,t){e.shapeFlag&6&&e.component?sC(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 EN(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,kv=e=>e.type.__isKeepAlive;function toe(e,t){l9(e,"a",t)}function noe(e,t){l9(e,"da",t)}function l9(e,t,n=ds){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Gv(t,i,n),n){let o=n.parent;for(;o&&o.parent;)kv(o.parent.vnode)&&ioe(i,t,n,o),o=o.parent}}function ioe(e,t,n,i){const o=Gv(t,e,i,!0);xN(()=>{lN(i[t],o)},n)}function Gv(e,t,n=ds,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;x0(),t0(n);const a=cl(t,n,e,s);return l_(),w0(),a});return i?o.unshift(r):o.push(r),r}}const Hf=e=>(t,n=ds)=>(!cC||e==="sp")&&Gv(e,(...i)=>t(...i),n),ooe=Hf("bm"),Oc=Hf("m"),roe=Hf("bu"),u9=Hf("u"),Wp=Hf("bum"),xN=Hf("um"),soe=Hf("sp"),aoe=Hf("rtg"),coe=Hf("rtc");function loe(e,t=ds){Gv("ec",e,t)}function eu(e,t){const n=Os;if(n===null)return e;const i=jv(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rt(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,c=s.length;a{const r=i.fn(...o);return r&&(r.key=i.key),r}:i.fn)}return e}function Zn(e,t,n={},i,o){if(Os.isCE||Os.parent&&wb(Os.parent)&&Os.parent.isCE)return t!=="default"&&(n.name=t),fn("slot",n,i&&i());let r=e[t];r&&r._c&&(r._d=!1),qe();const s=r&&p9(r(n)),a=Dn(Jo,{key:n.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function p9(e){return e.some(t=>Ep(t)?!(t.type===ll||t.type===Jo&&!p9(t.children)):!0)?e:null}const OL=e=>e?w9(e)?jv(e)||e.proxy:OL(e.parent):null,Sb=gs(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=>OL(e.parent),$root:e=>OL(e.root),$emit:e=>e.emit,$options:e=>SN(e),$forceUpdate:e=>e.f||(e.f=()=>CN(e.update)),$nextTick:e=>e.n||(e.n=us.bind(e.proxy)),$watch:e=>Zie.bind(e)}),BI=(e,t)=>e!==Eo&&!e.__isScriptSetup&&oi(e,t),uoe={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(BI(i,t))return s[t]=1,i[t];if(o!==Eo&&oi(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&oi(u,t))return s[t]=3,r[t];if(n!==Eo&&oi(n,t))return s[t]=4,n[t];LL&&(s[t]=0)}}const d=Sb[t];let h,m;if(d)return t==="$attrs"&&bc(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Eo&&oi(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,oi(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return BI(o,t)?(o[t]=n,!0):i!==Eo&&oi(i,t)?(i[t]=n,!0):oi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==Eo&&oi(e,s)||BI(t,s)||(a=r[0])&&oi(a,s)||oi(i,s)||oi(Sb,s)||oi(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let LL=!0;function doe(e){const t=SN(e),n=e.proxy,i=e.ctx;LL=!1,t.beforeCreate&&r3(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:d,beforeMount:h,mounted:m,beforeUpdate:g,updated:p,activated:y,deactivated:b,beforeDestroy:C,beforeUnmount:E,destroyed:w,unmounted:S,render:P,renderTracked:L,renderTriggered:z,errorCaptured:R,serverPrefetch:F,expose:U,inheritAttrs:D,components:I,directives:_,filters:v}=t;if(u&&foe(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];En(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);Di(V)&&(e.data=W_(V))}if(LL=!0,r)for(const V in r){const k=r[V],G=En(k)?k.bind(n,n):En(k.get)?k.get.bind(n,n):Bi,W=!En(k)&&En(k.set)?k.set.bind(n):Bi,K=tt({get:G,set:W});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)m9(a[V],i,n,V);if(c){const V=En(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{nd(k,V[k])})}d&&r3(d,e,"c");function N(V,k){Yt(k)?k.forEach(G=>V(G.bind(n))):k&&V(k.bind(n))}if(N(ooe,h),N(Oc,m),N(roe,g),N(u9,p),N(toe,y),N(noe,b),N(loe,R),N(coe,L),N(aoe,z),N(Wp,E),N(xN,S),N(soe,F),Yt(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:G=>n[k]=G})})}else e.exposed||(e.exposed={});P&&e.render===Bi&&(e.render=P),D!=null&&(e.inheritAttrs=D),I&&(e.components=I),_&&(e.directives=_)}function foe(e,t,n=Bi,i=!1){Yt(e)&&(e=BL(e));for(const o in e){const r=e[o];let s;Di(r)?"default"in r?s=er(r.from||o,r.default,!0):s=er(r.from||o):s=er(r),So(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function r3(e,t,n){cl(Yt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function m9(e,t,n,i){const o=i.includes(".")?r9(n,i):()=>n[i];if(_i(e)){const r=t[e];En(r)&&to(o,r)}else if(En(e))to(o,e.bind(n));else if(Di(e))if(Yt(e))e.forEach(r=>m9(r,t,n,i));else{const r=En(e.handler)?e.handler.bind(n):t[e.handler];En(r)&&to(o,r,e)}}function SN(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>ES(c,u,s,!0)),ES(c,t,s)),Di(t)&&r.set(t,c),c}function ES(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&ES(e,r,n,!0),o&&o.forEach(s=>ES(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=hoe[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const hoe={data:s3,props:Um,emits:Um,methods:Um,computed:Um,beforeCreate:Ea,created:Ea,beforeMount:Ea,mounted:Ea,beforeUpdate:Ea,updated:Ea,beforeDestroy:Ea,beforeUnmount:Ea,destroyed:Ea,unmounted:Ea,activated:Ea,deactivated:Ea,errorCaptured:Ea,serverPrefetch:Ea,components:Um,directives:Um,watch:moe,provide:s3,inject:poe};function s3(e,t){return t?e?function(){return gs(En(e)?e.call(this,this):e,En(t)?t.call(this,this):t)}:t:e}function poe(e,t){return Um(BL(e),BL(t))}function BL(e){if(Yt(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,g]=g9(h,t,!0);gs(s,m),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!c)return Di(e)&&i.set(e,Iy),Iy;if(Yt(r))for(let d=0;d-1,g[1]=y<0||p-1||oi(g,"default"))&&a.push(h)}}}const u=[s,a];return Di(e)&&i.set(e,u),u}function a3(e){return e[0]!=="$"}function c3(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function l3(e,t){return c3(e)===c3(t)}function u3(e,t){return Yt(t)?t.findIndex(n=>l3(n,e)):En(t)&&l3(t,e)?0:-1}const y9=e=>e[0]==="_"||e==="$stable",vN=e=>Yt(e)?e.map(ju):[ju(e)],yoe=(e,t,n)=>{if(t._n)return t;const i=an((...o)=>vN(t(...o)),n);return i._c=!1,i},A9=(e,t,n)=>{const i=e._ctx;for(const o in e){if(y9(o))continue;const r=e[o];if(En(r))t[o]=yoe(o,r,i);else if(r!=null){const s=vN(r);t[o]=()=>s}}},b9=(e,t)=>{const n=vN(t);e.slots.default=()=>n},Aoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ci(t),bS(t,"_",n)):A9(t,e.slots={})}else e.slots={},t&&b9(e,t);bS(e.slots,Wv,1)},boe=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=Eo;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(gs(o,t),!n&&a===1&&delete o._):(r=!t.$stable,A9(t,o)),s=t}else t&&(b9(e,t),s={default:1});if(r)for(const a in o)!y9(a)&&!(a in s)&&delete o[a]};function C9(){return{app:null,config:{isNativeTag:eie,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 Coe=0;function Toe(e,t){return function(i,o=null){En(i)||(i=Object.assign({},i)),o!=null&&!Di(o)&&(o=null);const r=C9(),s=new Set;let a=!1;const c=r.app={_uid:Coe++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Woe,get config(){return r.config},set config(u){},use(u,...d){return s.has(u)||(u&&En(u.install)?(s.add(u),u.install(c,...d)):En(u)&&(s.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,h){if(!a){const m=fn(i,o);return m.appContext=r,d&&t?t(m,u):e(m,u,h),a=!0,c._container=u,u.__vue_app__=c,jv(m.component)||m.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c}};return c}}function NL(e,t,n,i,o=!1){if(Yt(e)){e.forEach((m,g)=>NL(m,t&&(Yt(t)?t[g]:t),n,i,o));return}if(wb(i)&&!o)return;const r=i.shapeFlag&4?jv(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,d=a.refs===Eo?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(_i(u)?(d[u]=null,oi(h,u)&&(h[u]=null)):So(u)&&(u.value=null)),En(c))ap(c,a,12,[s,d]);else{const m=_i(c),g=So(c);if(m||g){const p=()=>{if(e.f){const y=m?oi(h,c)?h[c]:d[c]:c.value;o?Yt(y)&&lN(y,r):Yt(y)?y.includes(r)||y.push(r):m?(d[c]=[r],oi(h,c)&&(h[c]=d[c])):(c.value=[r],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,oi(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(d[e.k]=s))};s?(p.id=-1,Wa(p,n)):p()}}}const Wa=Jie;function Eoe(e){return xoe(e)}function xoe(e,t){const n=sie();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:m,setScopeId:g=Bi,insertStaticContent:p}=e,y=(Q,ne,de,_e=null,Se=null,ve=null,Le=!1,Ee=null,Be=!!ne.dynamicChildren)=>{if(Q===ne)return;Q&&!Wm(Q,ne)&&(_e=se(Q),q(Q,Se,ve,!0),Q=null),ne.patchFlag===-2&&(Be=!1,ne.dynamicChildren=null);const{type:Pe,ref:Ae,shapeFlag:xe}=ne;switch(Pe){case sT:b(Q,ne,de,_e);break;case ll:C(Q,ne,de,_e);break;case RI:Q==null&&E(ne,de,_e,Le);break;case Jo:I(Q,ne,de,_e,Se,ve,Le,Ee,Be);break;default:xe&1?P(Q,ne,de,_e,Se,ve,Le,Ee,Be):xe&6?_(Q,ne,de,_e,Se,ve,Le,Ee,Be):(xe&64||xe&128)&&Pe.process(Q,ne,de,_e,Se,ve,Le,Ee,Be,re)}Ae!=null&&Se&&NL(Ae,Q&&Q.ref,ve,ne||Q,!ne)},b=(Q,ne,de,_e)=>{if(Q==null)i(ne.el=a(ne.children),de,_e);else{const Se=ne.el=Q.el;ne.children!==Q.children&&u(Se,ne.children)}},C=(Q,ne,de,_e)=>{Q==null?i(ne.el=c(ne.children||""),de,_e):ne.el=Q.el},E=(Q,ne,de,_e)=>{[Q.el,Q.anchor]=p(Q.children,ne,de,_e,Q.el,Q.anchor)},w=({el:Q,anchor:ne},de,_e)=>{let Se;for(;Q&&Q!==ne;)Se=m(Q),i(Q,de,_e),Q=Se;i(ne,de,_e)},S=({el:Q,anchor:ne})=>{let de;for(;Q&&Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},P=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Le=Le||ne.type==="svg",Q==null?L(ne,de,_e,Se,ve,Le,Ee,Be):F(Q,ne,Se,ve,Le,Ee,Be)},L=(Q,ne,de,_e,Se,ve,Le,Ee)=>{let Be,Pe;const{type:Ae,props:xe,shapeFlag:Oe,transition:Ve,dirs:Re}=Q;if(Be=Q.el=s(Q.type,ve,xe&&xe.is,xe),Oe&8?d(Be,Q.children):Oe&16&&R(Q.children,Be,null,_e,Se,ve&&Ae!=="foreignObject",Le,Ee),Re&&um(Q,null,_e,"created"),xe){for(const xt in xe)xt!=="value"&&!xw(xt)&&r(Be,xt,null,xe[xt],ve,Q.children,_e,Se,$);"value"in xe&&r(Be,"value",null,xe.value),(Pe=xe.onVnodeBeforeMount)&&Nu(Pe,_e,Q)}z(Be,Q,Q.scopeId,Le,_e),Re&&um(Q,null,_e,"beforeMount");const At=(!Se||Se&&!Se.pendingBranch)&&Ve&&!Ve.persisted;At&&Ve.beforeEnter(Be),i(Be,ne,de),((Pe=xe&&xe.onVnodeMounted)||At||Re)&&Wa(()=>{Pe&&Nu(Pe,_e,Q),At&&Ve.enter(Be),Re&&um(Q,null,_e,"mounted")},Se)},z=(Q,ne,de,_e,Se)=>{if(de&&g(Q,de),_e)for(let ve=0;ve<_e.length;ve++)g(Q,_e[ve]);if(Se){let ve=Se.subTree;if(ne===ve){const Le=Se.vnode;z(Q,Le,Le.scopeId,Le.slotScopeIds,Se.parent)}}},R=(Q,ne,de,_e,Se,ve,Le,Ee,Be=0)=>{for(let Pe=Be;Pe{const Ee=ne.el=Q.el;let{patchFlag:Be,dynamicChildren:Pe,dirs:Ae}=ne;Be|=Q.patchFlag&16;const xe=Q.props||Eo,Oe=ne.props||Eo;let Ve;de&&dm(de,!1),(Ve=Oe.onVnodeBeforeUpdate)&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"beforeUpdate"),de&&dm(de,!0);const Re=Se&&ne.type!=="foreignObject";if(Pe?U(Q.dynamicChildren,Pe,Ee,de,_e,Re,ve):Le||k(Q,ne,Ee,null,de,_e,Re,ve,!1),Be>0){if(Be&16)D(Ee,ne,xe,Oe,de,_e,Se);else if(Be&2&&xe.class!==Oe.class&&r(Ee,"class",null,Oe.class,Se),Be&4&&r(Ee,"style",xe.style,Oe.style,Se),Be&8){const At=ne.dynamicProps;for(let xt=0;xt{Ve&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"updated")},_e)},U=(Q,ne,de,_e,Se,ve,Le)=>{for(let Ee=0;Ee{if(de!==_e){if(de!==Eo)for(const Ee in de)!xw(Ee)&&!(Ee in _e)&&r(Q,Ee,de[Ee],null,Le,ne.children,Se,ve,$);for(const Ee in _e){if(xw(Ee))continue;const Be=_e[Ee],Pe=de[Ee];Be!==Pe&&Ee!=="value"&&r(Q,Ee,Pe,Be,Le,ne.children,Se,ve,$)}"value"in _e&&r(Q,"value",de.value,_e.value)}},I=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{const Pe=ne.el=Q?Q.el:a(""),Ae=ne.anchor=Q?Q.anchor:a("");let{patchFlag:xe,dynamicChildren:Oe,slotScopeIds:Ve}=ne;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),Q==null?(i(Pe,de,_e),i(Ae,de,_e),R(ne.children,de,Ae,Se,ve,Le,Ee,Be)):xe>0&&xe&64&&Oe&&Q.dynamicChildren?(U(Q.dynamicChildren,Oe,de,Se,ve,Le,Ee),(ne.key!=null||Se&&ne===Se.subTree)&&DN(Q,ne,!0)):k(Q,ne,de,Ae,Se,ve,Le,Ee,Be)},_=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{ne.slotScopeIds=Ee,Q==null?ne.shapeFlag&512?Se.ctx.activate(ne,de,_e,Le,Be):v(ne,de,_e,Se,ve,Le,Be):O(Q,ne,Be)},v=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=Q.component=Noe(Q,_e,Se);if(kv(Q)&&(Ee.ctx.renderer=re),Moe(Ee),Ee.asyncDep){if(Se&&Se.registerDep(Ee,N),!Q.el){const Be=Ee.subTree=fn(ll);C(null,Be,ne,de)}return}N(Ee,Q,ne,de,Se,ve,Le)},O=(Q,ne,de)=>{const _e=ne.component=Q.component;if(Yie(Q,ne,de))if(_e.asyncDep&&!_e.asyncResolved){V(_e,ne,de);return}else _e.next=ne,kie(_e.update),_e.update();else ne.el=Q.el,_e.vnode=ne},N=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=()=>{if(Q.isMounted){let{next:Ae,bu:xe,u:Oe,parent:Ve,vnode:Re}=Q,At=Ae,xt;dm(Q,!1),Ae?(Ae.el=Re.el,V(Q,Ae,Le)):Ae=Re,xe&&ww(xe),(xt=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Nu(xt,Ve,Ae,Re),dm(Q,!0);const Nt=OI(Q),On=Q.subTree;Q.subTree=Nt,y(On,Nt,h(On.el),se(On),Q,Se,ve),Ae.el=Nt.el,At===null&&Xie(Q,Nt.el),Oe&&Wa(Oe,Se),(xt=Ae.props&&Ae.props.onVnodeUpdated)&&Wa(()=>Nu(xt,Ve,Ae,Re),Se)}else{let Ae;const{el:xe,props:Oe}=ne,{bm:Ve,m:Re,parent:At}=Q,xt=wb(ne);if(dm(Q,!1),Ve&&ww(Ve),!xt&&(Ae=Oe&&Oe.onVnodeBeforeMount)&&Nu(Ae,At,ne),dm(Q,!0),xe&&ce){const Nt=()=>{Q.subTree=OI(Q),ce(xe,Q.subTree,Q,Se,null)};xt?ne.type.__asyncLoader().then(()=>!Q.isUnmounted&&Nt()):Nt()}else{const Nt=Q.subTree=OI(Q);y(null,Nt,de,_e,Q,Se,ve),ne.el=Nt.el}if(Re&&Wa(Re,Se),!xt&&(Ae=Oe&&Oe.onVnodeMounted)){const Nt=ne;Wa(()=>Nu(Ae,At,Nt),Se)}(ne.shapeFlag&256||At&&wb(At.vnode)&&At.vnode.shapeFlag&256)&&Q.a&&Wa(Q.a,Se),Q.isMounted=!0,ne=de=_e=null}},Be=Q.effect=new hN(Ee,()=>CN(Pe),Q.scope),Pe=Q.update=()=>Be.run();Pe.id=Q.uid,dm(Q,!0),Pe()},V=(Q,ne,de)=>{ne.component=Q;const _e=Q.vnode.props;Q.vnode=ne,Q.next=null,goe(Q,ne.props,_e,de),boe(Q,ne.children,de),x0(),e3(),w0()},k=(Q,ne,de,_e,Se,ve,Le,Ee,Be=!1)=>{const Pe=Q&&Q.children,Ae=Q?Q.shapeFlag:0,xe=ne.children,{patchFlag:Oe,shapeFlag:Ve}=ne;if(Oe>0){if(Oe&128){W(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}else if(Oe&256){G(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}}Ve&8?(Ae&16&&$(Pe,Se,ve),xe!==Pe&&d(de,xe)):Ae&16?Ve&16?W(Pe,xe,de,_e,Se,ve,Le,Ee,Be):$(Pe,Se,ve,!0):(Ae&8&&d(de,""),Ve&16&&R(xe,de,_e,Se,ve,Le,Ee,Be))},G=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Q=Q||Iy,ne=ne||Iy;const Pe=Q.length,Ae=ne.length,xe=Math.min(Pe,Ae);let Oe;for(Oe=0;OeAe?$(Q,Se,ve,!0,!1,xe):R(ne,de,_e,Se,ve,Le,Ee,Be,xe)},W=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{let Pe=0;const Ae=ne.length;let xe=Q.length-1,Oe=Ae-1;for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[Pe],Re=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;Pe++}for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[xe],Re=ne[Oe]=Be?Gh(ne[Oe]):ju(ne[Oe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;xe--,Oe--}if(Pe>xe){if(Pe<=Oe){const Ve=Oe+1,Re=VeOe)for(;Pe<=xe;)q(Q[Pe],Se,ve,!0),Pe++;else{const Ve=Pe,Re=Pe,At=new Map;for(Pe=Re;Pe<=Oe;Pe++){const vn=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);vn.key!=null&&At.set(vn.key,Pe)}let xt,Nt=0;const On=Oe-Re+1;let Nn=!1,Sn=0;const un=new Array(On);for(Pe=0;Pe=On){q(vn,Se,ve,!0);continue}let Pn;if(vn.key!=null)Pn=At.get(vn.key);else for(xt=Re;xt<=Oe;xt++)if(un[xt-Re]===0&&Wm(vn,ne[xt])){Pn=xt;break}Pn===void 0?q(vn,Se,ve,!0):(un[Pn-Re]=Pe+1,Pn>=Sn?Sn=Pn:Nn=!0,y(vn,ne[Pn],de,null,Se,ve,Le,Ee,Be),Nt++)}const Ht=Nn?woe(un):Iy;for(xt=Ht.length-1,Pe=On-1;Pe>=0;Pe--){const vn=Re+Pe,Pn=ne[vn],qt=vn+1{const{el:ve,type:Le,transition:Ee,children:Be,shapeFlag:Pe}=Q;if(Pe&6){K(Q.component.subTree,ne,de,_e);return}if(Pe&128){Q.suspense.move(ne,de,_e);return}if(Pe&64){Le.move(Q,ne,de,re);return}if(Le===Jo){i(ve,ne,de);for(let xe=0;xeEe.enter(ve),Se);else{const{leave:xe,delayLeave:Oe,afterLeave:Ve}=Ee,Re=()=>i(ve,ne,de),At=()=>{xe(ve,()=>{Re(),Ve&&Ve()})};Oe?Oe(ve,Re,At):At()}else i(ve,ne,de)},q=(Q,ne,de,_e=!1,Se=!1)=>{const{type:ve,props:Le,ref:Ee,children:Be,dynamicChildren:Pe,shapeFlag:Ae,patchFlag:xe,dirs:Oe}=Q;if(Ee!=null&&NL(Ee,null,de,Q,!0),Ae&256){ne.ctx.deactivate(Q);return}const Ve=Ae&1&&Oe,Re=!wb(Q);let At;if(Re&&(At=Le&&Le.onVnodeBeforeUnmount)&&Nu(At,ne,Q),Ae&6)X(Q.component,de,_e);else{if(Ae&128){Q.suspense.unmount(de,_e);return}Ve&&um(Q,null,ne,"beforeUnmount"),Ae&64?Q.type.remove(Q,ne,de,Se,re,_e):Pe&&(ve!==Jo||xe>0&&xe&64)?$(Pe,ne,de,!1,!0):(ve===Jo&&xe&384||!Se&&Ae&16)&&$(Be,ne,de),_e&&te(Q)}(Re&&(At=Le&&Le.onVnodeUnmounted)||Ve)&&Wa(()=>{At&&Nu(At,ne,Q),Ve&&um(Q,null,ne,"unmounted")},de)},te=Q=>{const{type:ne,el:de,anchor:_e,transition:Se}=Q;if(ne===Jo){Y(de,_e);return}if(ne===RI){S(Q);return}const ve=()=>{o(de),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(Q.shapeFlag&1&&Se&&!Se.persisted){const{leave:Le,delayLeave:Ee}=Se,Be=()=>Le(de,ve);Ee?Ee(Q.el,ve,Be):Be()}else ve()},Y=(Q,ne)=>{let de;for(;Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},X=(Q,ne,de)=>{const{bum:_e,scope:Se,update:ve,subTree:Le,um:Ee}=Q;_e&&ww(_e),Se.stop(),ve&&(ve.active=!1,q(Le,Q,ne,de)),Ee&&Wa(Ee,ne),Wa(()=>{Q.isUnmounted=!0},ne),ne&&ne.pendingBranch&&!ne.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ne.pendingId&&(ne.deps--,ne.deps===0&&ne.resolve())},$=(Q,ne,de,_e=!1,Se=!1,ve=0)=>{for(let Le=ve;LeQ.shapeFlag&6?se(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():m(Q.anchor||Q.el),ue=(Q,ne,de)=>{Q==null?ne._vnode&&q(ne._vnode,null,null,!0):y(ne._vnode||null,Q,ne,null,null,null,de),e3(),t9(),ne._vnode=Q},re={p:y,um:q,m:K,r:te,mt:v,mc:R,pc:k,pbc:U,n:se,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:Toe(ue,he)}}function dm({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function DN(e,t,n=!1){const i=e.children,o=t.children;if(Yt(i)&&Yt(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Soe=e=>e.__isTeleport,vb=e=>e&&(e.disabled||e.disabled===""),d3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ML=(e,t)=>{const n=e&&e.to;return _i(n)?t?t(n):null:n},voe={__isTeleport:!0,process(e,t,n,i,o,r,s,a,c,u){const{mc:d,pc:h,pbc:m,o:{insert:g,querySelector:p,createText:y,createComment:b}}=u,C=vb(t.props);let{shapeFlag:E,children:w,dynamicChildren:S}=t;if(e==null){const P=t.el=y(""),L=t.anchor=y("");g(P,n,i),g(L,n,i);const z=t.target=ML(t.props,p),R=t.targetAnchor=y("");z&&(g(R,z),s=s||d3(z));const F=(U,D)=>{E&16&&d(w,U,D,o,r,s,a,c)};C?F(n,L):z&&F(z,R)}else{t.el=e.el;const P=t.anchor=e.anchor,L=t.target=e.target,z=t.targetAnchor=e.targetAnchor,R=vb(e.props),F=R?n:L,U=R?P:z;if(s=s||d3(L),S?(m(e.dynamicChildren,S,F,o,r,s,a),DN(e,t,!0)):c||h(e,t,F,U,o,r,s,a,!1),C)R||dE(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ML(t.props,p);D&&dE(t,D,null,u,0)}else R&&dE(t,L,z,u,1)}T9(t)},remove(e,t,n,i,{um:o,o:{remove:r}},s){const{shapeFlag:a,children:c,anchor:u,targetAnchor:d,target:h,props:m}=e;if(h&&r(d),(s||!vb(m))&&(r(u),a&16))for(let g=0;g0?Yl||Iy:null,Poe(),aC>0&&Yl&&Yl.push(e),e}function Dt(e,t,n,i,o,r){return E9(Vt(e,t,n,i,o,r,!0))}function Dn(e,t,n,i,o){return E9(fn(e,t,n,i,o,!0))}function Ep(e){return e?e.__v_isVNode===!0:!1}function Wm(e,t){return e.type===t.type&&e.key===t.key}const Wv="__vInternal",x9=({key:e})=>e??null,Sw=({ref:e,ref_key:t,ref_for:n})=>e!=null?_i(e)||So(e)||En(e)?{i:Os,r:e,k:t,f:!!n}:e:null;function Vt(e,t=null,n=null,i=0,o=null,r=e===Jo?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&x9(t),ref:t&&Sw(t),scopeId:o9,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:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Os};return a?(IN(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=_i(n)?8:16),aC>0&&!s&&Yl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Yl.push(c),c}const fn=Ooe;function Ooe(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===d9)&&(e=ll),Ep(e)){const a=xp(e,t,!0);return n&&IN(a,n),aC>0&&!r&&Yl&&(a.shapeFlag&6?Yl[Yl.indexOf(e)]=a:Yl.push(a)),a.patchFlag|=-2,a}if(Hoe(e)&&(e=e.__vccOpts),t){t=Loe(t);let{class:a,style:c}=t;a&&!_i(a)&&(t.class=st(a)),Di(c)&&(j6(c)&&!Yt(c)&&(c=gs({},c)),t.style=Ds(c))}const s=_i(e)?1:Kie(e)?128:Soe(e)?64:Di(e)?4:En(e)?2:0;return Vt(e,t,n,i,o,s,r,!0)}function Loe(e){return e?j6(e)||Wv in e?gs({},e):e:null}function xp(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?cp(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&x9(a),ref:t&&t.ref?n&&o?Yt(o)?o.concat(Sw(t)):[o,Sw(t)]:Sw(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jo?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xp(e.ssContent),ssFallback:e.ssFallback&&xp(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function $l(e=" ",t=0){return fn(sT,null,e,t)}function Mt(e="",t=!1){return t?(qe(),Dn(ll,null,e)):fn(ll,null,e)}function ju(e){return e==null||typeof e=="boolean"?fn(ll):Yt(e)?fn(Jo,null,e.slice()):typeof e=="object"?Gh(e):fn(sT,null,String(e))}function Gh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xp(e)}function IN(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Yt(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),IN(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Wv in t)?t._ctx=Os:o===3&&Os&&(Os.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else En(t)?(t={default:t,_ctx:Os},n=32):(t=String(t),i&64?(n=16,t=[$l(t)]):n=8);e.children=t,e.shapeFlag|=n}function cp(...e){const t={};for(let n=0;nds||Os,t0=e=>{ds=e,e.scope.on()},l_=()=>{ds&&ds.scope.off(),ds=null};function w9(e){return e.vnode.shapeFlag&4}let cC=!1;function Moe(e,t=!1){cC=t;const{props:n,children:i}=e.vnode,o=w9(e);_oe(e,n,o,t),Aoe(e,i);const r=o?Foe(e,t):void 0;return cC=!1,r}function Foe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yN(new Proxy(e.ctx,uoe));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?v9(e):null;t0(e),x0();const r=ap(i,e,0,[e.props,o]);if(w0(),l_(),D6(r)){if(r.then(l_,l_),t)return r.then(s=>{h3(e,s,t)}).catch(s=>{Hv(s,e,0)});e.asyncDep=r}else h3(e,r,t)}else S9(e,t)}function h3(e,t,n){En(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Di(t)&&(e.setupState=X6(t)),S9(e,n)}let p3;function S9(e,t,n){const i=e.type;if(!e.render){if(!t&&p3&&!i.render){const o=i.template||SN(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=gs(gs({isCustomElement:r,delimiters:a},s),c);i.render=p3(o,u)}}e.render=i.render||Bi}t0(e),x0(),doe(e),w0(),l_()}function zoe(e){return new Proxy(e.attrs,{get(t,n){return bc(e,"get","$attrs"),t[n]}})}function v9(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=zoe(e))},slots:e.slots,emit:e.emit,expose:t}}function jv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(X6(yN(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sb)return Sb[n](e)},has(t,n){return n in t||n in Sb}}))}function Uoe(e,t=!0){return En(e)?e.displayName||e.name:e.name||t&&e.__name}function Hoe(e){return En(e)&&"__vccOpts"in e}const tt=(e,t)=>Q6(e,t,cC);function aT(){return D9().slots}function Voe(){return D9().attrs}function D9(){const e=Lc();return e.setupContext||(e.setupContext=v9(e))}function qv(e,t,n){const i=arguments.length;return i===2?Di(t)&&!Yt(t)?Ep(t)?fn(e,null,[t]):fn(e,t):fn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ep(n)&&(n=[n]),fn(e,t,n))}const koe=Symbol(""),Goe=()=>er(koe),Woe="3.2.45",joe="http://www.w3.org/2000/svg",jm=typeof document<"u"?document:null,m3=jm&&jm.createElement("template"),qoe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?jm.createElementNS(joe,e):jm.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>jm.createTextNode(e),createComment:e=>jm.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jm.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{m3.innerHTML=i?`${e}`:e;const a=m3.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function $oe(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Yoe(e,t,n){const i=e.style,o=_i(n);if(n&&!o){for(const r in n)FL(i,r,n[r]);if(t&&!_i(t))for(const r in t)n[r]==null&&FL(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const _3=/\s*!important$/;function FL(e,t,n){if(Yt(n))n.forEach(i=>FL(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Xoe(e,t);_3.test(n)?e.setProperty(G_(i),n.replace(_3,""),"important"):e[i]=n}}const g3=["Webkit","Moz","ms"],NI={};function Xoe(e,t){const n=NI[t];if(n)return n;let i=lu(t);if(i!=="filter"&&i in e)return NI[t]=i;i=zv(i);for(let o=0;oMI||(tre.then(()=>MI=0),MI=Date.now());function ire(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;cl(ore(i,n.value),t,5,[i])};return n.value=e,n.attached=nre(),n}function ore(e,t){if(Yt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const b3=/^on[a-z]/,rre=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?$oe(e,i,o):t==="style"?Yoe(e,n,i):Nv(t)?cN(t)||Zoe(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sre(e,t,i,o))?Joe(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Koe(e,t,i,o))};function sre(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&b3.test(t)&&En(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||b3.test(t)&&_i(n)?!1:t in e}const fh="transition",eA="animation",S0=(e,{slots:t})=>qv(a9,O9(e),t);S0.displayName="Transition";const P9={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},are=S0.props=gs({},a9.props,P9),fm=(e,t=[])=>{Yt(e)?e.forEach(n=>n(...t)):e&&e(...t)},C3=e=>e?Yt(e)?e.some(t=>t.length>1):e.length>1:!1;function O9(e){const t={};for(const I in e)I in P9||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=cre(o),y=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:L=C,onAppear:z=E,onAppearCancelled:R=w}=t,F=(I,_,v)=>{Mh(I,_?d:a),Mh(I,_?u:s),v&&v()},U=(I,_)=>{I._isLeaving=!1,Mh(I,h),Mh(I,g),Mh(I,m),_&&_()},D=I=>(_,v)=>{const O=I?z:E,N=()=>F(_,I,v);fm(O,[_,N]),T3(()=>{Mh(_,I?c:r),Xd(_,I?d:a),C3(O)||E3(_,i,y,N)})};return gs(t,{onBeforeEnter(I){fm(C,[I]),Xd(I,r),Xd(I,s)},onBeforeAppear(I){fm(L,[I]),Xd(I,c),Xd(I,u)},onEnter:D(!1),onAppear:D(!0),onLeave(I,_){I._isLeaving=!0;const v=()=>U(I,_);Xd(I,h),B9(),Xd(I,m),T3(()=>{I._isLeaving&&(Mh(I,h),Xd(I,g),C3(S)||E3(I,i,b,v))}),fm(S,[I,v])},onEnterCancelled(I){F(I,!1),fm(w,[I])},onAppearCancelled(I){F(I,!0),fm(R,[I])},onLeaveCancelled(I){U(I),fm(P,[I])}})}function cre(e){if(e==null)return null;if(Di(e))return[FI(e.enter),FI(e.leave)];{const t=FI(e);return[t,t]}}function FI(e){return dN(e)}function Xd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Mh(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function T3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lre=0;function E3(e,t,n,i){const o=e._endId=++lre,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=L9(e,t);if(!s)return i();const u=s+"end";let d=0;const h=()=>{e.removeEventListener(u,m),r()},m=g=>{g.target===e&&++d>=c&&h()};setTimeout(()=>{d(n[p]||"").split(", "),o=i(`${fh}Delay`),r=i(`${fh}Duration`),s=x3(o,r),a=i(`${eA}Delay`),c=i(`${eA}Duration`),u=x3(a,c);let d=null,h=0,m=0;t===fh?s>0&&(d=fh,h=s,m=r.length):t===eA?u>0&&(d=eA,h=u,m=c.length):(h=Math.max(s,u),d=h>0?s>u?fh:eA:null,m=d?d===fh?r.length:c.length:0);const g=d===fh&&/\b(transform|all)(,|$)/.test(i(`${fh}Property`).toString());return{type:d,timeout:h,propCount:m,hasTransform:g}}function x3(e,t){for(;e.lengthw3(n)+w3(e[i])))}function w3(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function B9(){return document.body.offsetHeight}const R9=new WeakMap,N9=new WeakMap,ure={name:"TransitionGroup",props:gs({},are,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Lc(),i=s9();let o,r;return u9(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!mre(o[0].el,n.vnode.el,s))return;o.forEach(fre),o.forEach(hre);const a=o.filter(pre);B9(),a.forEach(c=>{const u=c.el,d=u.style;Xd(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=m=>{m&&m.target!==u||(!m||/transform$/.test(m.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,Mh(u,s))};u.addEventListener("transitionend",h)})}),()=>{const s=Ci(e),a=O9(s);let c=s.tag||Jo;o=r,r=t.default?EN(t.default()):[];for(let u=0;u{s.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(i);const{hasTransform:r}=L9(i);return o.removeChild(i),r}const S3=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Yt(t)?n=>ww(t,n):t},xS={deep:!0,created(e,t,n){e._assign=S3(n),I9(e,"change",()=>{const i=e._modelValue,o=_re(e),r=e.checked,s=e._assign;if(Yt(i)){const a=S6(i,o),c=a!==-1;if(r&&!c)s(i.concat(o));else if(!r&&c){const u=[...i];u.splice(a,1),s(u)}}else if(Mv(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(M9(e,r))})},mounted:v3,beforeUpdate(e,t,n){e._assign=S3(n),v3(e,t,n)}};function v3(e,{value:t,oldValue:n},i){e._modelValue=t,Yt(t)?e.checked=S6(t,i.props.value)>-1:Mv(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Rv(t,M9(e,!0)))}function _re(e){return"_value"in e?e._value:e.value}function M9(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gre=["ctrl","shift","alt","meta"],yre={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)=>gre.some(n=>e[`${n}Key`]&&!t.includes(n))},cc=(e,t)=>(n,...i)=>{for(let o=0;on=>{if(!("key"in n))return;const i=G_(n.key);if(t.some(o=>o===i||Are[o]===i))return e(n)},u_={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tA(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),tA(e,!0),i.enter(e)):i.leave(e,()=>{tA(e,!1)}):tA(e,t))},beforeUnmount(e,{value:t}){tA(e,t)}};function tA(e,t){e.style.display=t?e._vod:"none"}const bre=gs({patchProp:rre},qoe);let D3;function F9(){return D3||(D3=Eoe(bre))}const wS=(...e)=>{F9().render(...e)},Cre=(...e)=>{const t=F9().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Tre(i);if(!o)return;const r=t._component;!En(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Tre(e){return _i(e)?document.querySelector(e):e}var Ere=!1;/*! * pinia v2.0.28 * (c) 2022 Eduardo San Martin Morote * @license MIT @@ -6,7 +6,7 @@ var qne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eht=qne((ff, * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const oy=typeof window<"u";function Sre(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const eo=Object.assign;function zI(e,t){const n={};for(const i in t){const o=t[i];n[i]=uu(o)?o.map(e):e(o)}return n}const Ib=()=>{},uu=Array.isArray,vre=/\/$/,Dre=e=>e.replace(vre,"");function UI(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=Lre(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function Ire(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function P3(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pre(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&i0(t.matched[i],n.matched[o])&&z9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function i0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function z9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ore(e[n],t[n]))return!1;return!0}function Ore(e,t){return uu(e)?O3(e,t):uu(t)?O3(t,e):e===t}function O3(e,t){return uu(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Lre(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var lC;(function(e){e.pop="pop",e.push="push"})(lC||(lC={}));var Pb;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pb||(Pb={}));function Bre(e){if(!e)if(oy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dre(e)}const Rre=/^[^#]+#/;function Nre(e,t){return e.replace(Rre,"#")+t}function Mre(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const $v=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fre(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Mre(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function L3(e,t){return(history.state?history.state.position-t:-1)+e}const zL=new Map;function zre(e,t){zL.set(e,t)}function Ure(e){const t=zL.get(e);return zL.delete(e),t}let Hre=()=>location.protocol+"//"+location.host;function U9(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),P3(c,"")}return P3(n,e)+i+o}function Vre(e,t,n,i){let o=[],r=[],s=null;const a=({state:m})=>{const g=U9(e,location),p=n.value,y=t.value;let b=0;if(m){if(n.value=g,t.value=m,s&&s===p){s=null;return}b=y?m.position-y.position:0}else i(g);o.forEach(C=>{C(n.value,p,{delta:b,type:lC.pop,direction:b?b>0?Pb.forward:Pb.back:Pb.unknown})})};function c(){s=n.value}function u(m){o.push(m);const g=()=>{const p=o.indexOf(m);p>-1&&o.splice(p,1)};return r.push(g),g}function d(){const{history:m}=window;m.state&&m.replaceState(eo({},m.state,{scroll:$v()}),"")}function h(){for(const m of r)m();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:h}}function B3(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?$v():null}}function kre(e){const{history:t,location:n}=window,i={value:U9(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Hre()+e+c;try{t[d?"replaceState":"pushState"](u,"",m),o.value=u}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function s(c,u){const d=eo({},t.state,B3(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,d,!0),i.value=c}function a(c,u){const d=eo({},o.value,t.state,{forward:c,scroll:$v()});r(d.current,d,!0);const h=eo({},B3(i.value,c,null),{position:d.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function Gre(e){e=Bre(e);const t=kre(e),n=Vre(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=eo({location:"",base:e,go:i,createHref:Nre.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Wre(e){return typeof e=="string"||e&&typeof e=="object"}function H9(e){return typeof e=="string"||typeof e=="symbol"}const hh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V9=Symbol("");var R3;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(R3||(R3={}));function o0(e,t){return eo(new Error,{type:e,[V9]:!0},t)}function zd(e,t){return e instanceof Error&&V9 in e&&(t==null||!!(e.type&t))}const N3="[^/]+?",jre={sensitive:!1,strict:!1,start:!0,end:!0},qre=/[.+*?^${}()[\]/\\]/g;function $re(e,t){const n=eo({},jre,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Xre(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Kre={type:0,value:""},Jre=/[a-zA-Z0-9_]/;function Qre(e){if(!e)return[[]];if(e==="/")return[[Kre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",d="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function m(){u+=c}for(;a{s(E)}:Ib}function s(d){if(H9(d)){const h=i.get(d);h&&(i.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function c(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!k9(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!z3(d)&&i.set(d.record.name,d)}function u(d,h){let m,g={},p,y;if("name"in d&&d.name){if(m=i.get(d.name),!m)throw o0(1,{location:d});y=m.record.name,g=eo(F3(h.params,m.keys.filter(E=>!E.optional).map(E=>E.name)),d.params&&F3(d.params,m.keys.map(E=>E.name))),p=m.stringify(g)}else if("path"in d)p=d.path,m=n.find(E=>E.re.test(p)),m&&(g=m.parse(p),y=m.record.name);else{if(m=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!m)throw o0(1,{location:d,currentLocation:h});y=m.record.name,g=eo({},h.params,d.params),p=m.stringify(g)}const b=[];let C=m;for(;C;)b.unshift(C.record),C=C.parent;return{name:y,path:p,params:g,matched:b,meta:ise(b)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function F3(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function tse(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nse(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 nse(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function z3(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ise(e){return e.reduce((t,n)=>eo(t,n.meta),{})}function U3(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function k9(e,t){return t.children.some(n=>n===e||k9(e,n))}const G9=/#/g,ose=/&/g,rse=/\//g,sse=/=/g,ase=/\?/g,W9=/\+/g,cse=/%5B/g,lse=/%5D/g,j9=/%5E/g,use=/%60/g,q9=/%7B/g,dse=/%7C/g,$9=/%7D/g,fse=/%20/g;function PN(e){return encodeURI(""+e).replace(dse,"|").replace(cse,"[").replace(lse,"]")}function hse(e){return PN(e).replace(q9,"{").replace($9,"}").replace(j9,"^")}function UL(e){return PN(e).replace(W9,"%2B").replace(fse,"+").replace(G9,"%23").replace(ose,"%26").replace(use,"`").replace(q9,"{").replace($9,"}").replace(j9,"^")}function pse(e){return UL(e).replace(sse,"%3D")}function mse(e){return PN(e).replace(G9,"%23").replace(ase,"%3F")}function _se(e){return e==null?"":mse(e).replace(rse,"%2F")}function SS(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function gse(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&UL(r)):[i&&UL(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function yse(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=uu(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const Ase=Symbol(""),V3=Symbol(""),ON=Symbol(""),Y9=Symbol(""),HL=Symbol("");function nA(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(o0(4,{from:n,to:t})):h instanceof Error?a(h):Wre(h)?a(o0(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>a(h))})}function HI(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(bse(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Wh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const d=Sre(u)?u.default:u;r.components[s]=d;const m=(d.__vccOpts||d)[t];return m&&Wh(m,n,i,r,s)()}))}}return o}function bse(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function k3(e){const t=er(ON),n=er(Y9),i=tt(()=>t.resolve(pe(e.to))),o=tt(()=>{const{matched:c}=i.value,{length:u}=c,d=c[u-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(i0.bind(null,d));if(m>-1)return m;const g=G3(c[u-2]);return u>1&&G3(d)===g&&h[h.length-1].path!==g?h.findIndex(i0.bind(null,c[u-2])):m}),r=tt(()=>o.value>-1&&xse(n.params,i.value.params)),s=tt(()=>o.value>-1&&o.value===n.matched.length-1&&z9(n.params,i.value.params));function a(c={}){return Ese(c)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(Ib):Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const Cse=ci({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:k3,setup(e,{slots:t}){const n=W_(k3(e)),{options:i}=er(ON),o=tt(()=>({[W3(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[W3(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:qv("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Tse=Cse;function Ese(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 xse(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!uu(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function G3(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const W3=(e,t,n)=>e??t??n,wse=ci({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=er(HL),o=tt(()=>e.route||i.value),r=er(V3,0),s=tt(()=>{let u=pe(r);const{matched:d}=o.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),a=tt(()=>o.value.matched[s.value]);nd(V3,tt(()=>s.value+1)),nd(Ase,a),nd(HL,o);const c=bn();return to(()=>[c.value,a.value,e.name],([u,d,h],[m,g,p])=>{d&&(d.instances[h]=u,g&&g!==d&&u&&u===m&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!i0(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,h=a.value,m=h&&h.components[d];if(!m)return j3(n.default,{Component:m,route:u});const g=h.props[d],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=qv(m,eo({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return j3(n.default,{Component:b,route:u})||b}}});function j3(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const X9=wse;function Sse(e){const t=ese(e.routes,e),n=e.parseQuery||gse,i=e.stringifyQuery||H3,o=e.history,r=nA(),s=nA(),a=nA(),c=c_(hh);let u=hh;oy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=zI.bind(null,X=>""+X),h=zI.bind(null,_se),m=zI.bind(null,SS);function g(X,$){let se,ue;return H9(X)?(se=t.getRecordMatcher(X),ue=$):ue=X,t.addRoute(ue,se)}function p(X){const $=t.getRecordMatcher(X);$&&t.removeRoute($)}function y(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function C(X,$){if($=eo({},$||c.value),typeof X=="string"){const Q=UI(n,X,$.path),ne=t.resolve({path:Q.path},$),de=o.createHref(Q.fullPath);return eo(Q,ne,{params:m(ne.params),hash:SS(Q.hash),redirectedFrom:void 0,href:de})}let se;if("path"in X)se=eo({},X,{path:UI(n,X.path,$.path).path});else{const Q=eo({},X.params);for(const ne in Q)Q[ne]==null&&delete Q[ne];se=eo({},X,{params:h(X.params)}),$.params=h($.params)}const ue=t.resolve(se,$),re=X.hash||"";ue.params=d(m(ue.params));const he=Ire(i,eo({},X,{hash:hse(re),path:ue.path})),ce=o.createHref(he);return eo({fullPath:he,hash:re,query:i===H3?yse(X.query):X.query||{}},ue,{redirectedFrom:void 0,href:ce})}function E(X){return typeof X=="string"?UI(n,X,c.value.path):eo({},X)}function w(X,$){if(u!==X)return o0(8,{from:$,to:X})}function S(X){return z(X)}function P(X){return S(eo(E(X),{replace:!0}))}function L(X){const $=X.matched[X.matched.length-1];if($&&$.redirect){const{redirect:se}=$;let ue=typeof se=="function"?se(X):se;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=E(ue):{path:ue},ue.params={}),eo({query:X.query,hash:X.hash,params:"path"in ue?{}:X.params},ue)}}function z(X,$){const se=u=C(X),ue=c.value,re=X.state,he=X.force,ce=X.replace===!0,Q=L(se);if(Q)return z(eo(E(Q),{state:typeof Q=="object"?eo({},re,Q.state):re,force:he,replace:ce}),$||se);const ne=se;ne.redirectedFrom=$;let de;return!he&&Pre(i,ue,se)&&(de=o0(16,{to:ne,from:ue}),W(ue,ue,!0,!1)),(de?Promise.resolve(de):F(ne,ue)).catch(_e=>zd(_e)?zd(_e,2)?_e:G(_e):V(_e,ne,ue)).then(_e=>{if(_e){if(zd(_e,2))return z(eo({replace:ce},E(_e.to),{state:typeof _e.to=="object"?eo({},re,_e.to.state):re,force:he}),$||ne)}else _e=D(ne,ue,!0,ce,re);return U(ne,ue,_e),_e})}function R(X,$){const se=w(X,$);return se?Promise.reject(se):Promise.resolve()}function F(X,$){let se;const[ue,re,he]=vse(X,$);se=HI(ue.reverse(),"beforeRouteLeave",X,$);for(const Q of ue)Q.leaveGuards.forEach(ne=>{se.push(Wh(ne,X,$))});const ce=R.bind(null,X,$);return se.push(ce),Tg(se).then(()=>{se=[];for(const Q of r.list())se.push(Wh(Q,X,$));return se.push(ce),Tg(se)}).then(()=>{se=HI(re,"beforeRouteUpdate",X,$);for(const Q of re)Q.updateGuards.forEach(ne=>{se.push(Wh(ne,X,$))});return se.push(ce),Tg(se)}).then(()=>{se=[];for(const Q of X.matched)if(Q.beforeEnter&&!$.matched.includes(Q))if(uu(Q.beforeEnter))for(const ne of Q.beforeEnter)se.push(Wh(ne,X,$));else se.push(Wh(Q.beforeEnter,X,$));return se.push(ce),Tg(se)}).then(()=>(X.matched.forEach(Q=>Q.enterCallbacks={}),se=HI(he,"beforeRouteEnter",X,$),se.push(ce),Tg(se))).then(()=>{se=[];for(const Q of s.list())se.push(Wh(Q,X,$));return se.push(ce),Tg(se)}).catch(Q=>zd(Q,8)?Q:Promise.reject(Q))}function U(X,$,se){for(const ue of a.list())ue(X,$,se)}function D(X,$,se,ue,re){const he=w(X,$);if(he)return he;const ce=$===hh,Q=oy?history.state:{};se&&(ue||ce?o.replace(X.fullPath,eo({scroll:ce&&Q&&Q.scroll},re)):o.push(X.fullPath,re)),c.value=X,W(X,$,se,ce),G()}let I;function _(){I||(I=o.listen((X,$,se)=>{if(!Y.listening)return;const ue=C(X),re=L(ue);if(re){z(eo(re,{replace:!0}),ue).catch(Ib);return}u=ue;const he=c.value;oy&&zre(L3(he.fullPath,se.delta),$v()),F(ue,he).catch(ce=>zd(ce,12)?ce:zd(ce,2)?(z(ce.to,ue).then(Q=>{zd(Q,20)&&!se.delta&&se.type===lC.pop&&o.go(-1,!1)}).catch(Ib),Promise.reject()):(se.delta&&o.go(-se.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||D(ue,he,!1),ce&&(se.delta&&!zd(ce,8)?o.go(-se.delta,!1):se.type===lC.pop&&zd(ce,20)&&o.go(-1,!1)),U(ue,he,ce)}).catch(Ib)}))}let v=nA(),O=nA(),N;function V(X,$,se){G(X);const ue=O.list();return ue.length?ue.forEach(re=>re(X,$,se)):console.error(X),Promise.reject(X)}function k(){return N&&c.value!==hh?Promise.resolve():new Promise((X,$)=>{v.add([X,$])})}function G(X){return N||(N=!X,_(),v.list().forEach(([$,se])=>X?se(X):$()),v.reset()),X}function W(X,$,se,ue){const{scrollBehavior:re}=e;if(!oy||!re)return Promise.resolve();const he=!se&&Ure(L3(X.fullPath,0))||(ue||!se)&&history.state&&history.state.scroll||null;return us().then(()=>re(X,$,he)).then(ce=>ce&&Fre(ce)).catch(ce=>V(ce,X,$))}const K=X=>o.go(X);let q;const te=new Set,Y={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:b,getRoutes:y,resolve:C,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:k,install(X){const $=this;X.component("RouterLink",Tse),X.component("RouterView",X9),X.config.globalProperties.$router=$,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(c)}),oy&&!q&&c.value===hh&&(q=!0,S(o.location).catch(re=>{}));const se={};for(const re in hh)se[re]=tt(()=>c.value[re]);X.provide(ON,$),X.provide(Y9,W_(se)),X.provide(HL,c);const ue=X.unmount;te.add(X),X.unmount=function(){te.delete(X),te.size<1&&(u=hh,I&&I(),I=null,c.value=hh,q=!1,N=!1),ue()}}};return Y}function Tg(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function vse(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;si0(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>i0(u,c))||o.push(c))}return[n,i,o]}const Dse=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Ise={__name:"App",setup(e){return(t,n)=>(qe(),Dn(pe(X9)))}},Pse=Dse(Ise,[["__scopeId","data-v-0969e94e"]]);var Ose=typeof global=="object"&&global&&global.Object===Object&&global;const K9=Ose;var Lse=typeof self=="object"&&self&&self.Object===Object&&self,Bse=K9||Lse||Function("return this")();const Vf=Bse;var Rse=Vf.Symbol;const ld=Rse;var J9=Object.prototype,Nse=J9.hasOwnProperty,Mse=J9.toString,iA=ld?ld.toStringTag:void 0;function Fse(e){var t=Nse.call(e,iA),n=e[iA];try{e[iA]=void 0;var i=!0}catch{}var o=Mse.call(e);return i&&(t?e[iA]=n:delete e[iA]),o}var zse=Object.prototype,Use=zse.toString;function Hse(e){return Use.call(e)}var Vse="[object Null]",kse="[object Undefined]",q3=ld?ld.toStringTag:void 0;function D0(e){return e==null?e===void 0?kse:Vse:q3&&q3 in Object(e)?Fse(e):Hse(e)}function r0(e){return e!=null&&typeof e=="object"}var Gse="[object Symbol]";function LN(e){return typeof e=="symbol"||r0(e)&&D0(e)==Gse}function Wse(e,t){for(var n=-1,i=e==null?0:e.length,o=Array(i);++n0){if(++t>=hae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function gae(e){return function(){return e}}var yae=function(){try{var e=q_(Object,"defineProperty");return e({},"",{}),e}catch{}}();const DS=yae;var Aae=DS?function(e,t){return DS(e,"toString",{configurable:!0,enumerable:!1,value:gae(t),writable:!0})}:$se;const bae=Aae;var Cae=_ae(bae);const Tae=Cae;var Eae=9007199254740991,xae=/^(?:0|[1-9]\d*)$/;function BN(e,t){var n=typeof e;return t=t??Eae,!!t&&(n=="number"||n!="symbol"&&xae.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Pae}function Oae(e){return e!=null&&NN(e.length)&&!Z9(e)}var Lae=Object.prototype;function Bae(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lae;return e===n}function Rae(e,t){for(var n=-1,i=Array(e);++n-1}function Xce(e,t){var n=this.__data__,i=Yv(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function kf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?sW(a,t-1,n,i,o):rW(o,a):i||(o[o.length]=a)}return o}function ple(e){var t=e==null?0:e.length;return t?sW(e,1):[]}function mle(e){return Tae(Iae(e,void 0,ple),e+"")}function _le(){this.__data__=new kf,this.size=0}function gle(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yle(e){return this.__data__.get(e)}function Ale(e){return this.__data__.has(e)}var ble=200;function Cle(e,t){var n=this.__data__;if(n instanceof kf){var i=n.__data__;if(!dC||i.lengtha))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var h=-1,m=!0,g=n&jle?new IS:void 0;for(r.set(e,t),r.set(t,e);++hgetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,_z=e=>Array.from(e.querySelectorAll(xue)).filter(t=>Sue(t)&&wue(t)),Sue=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}};var gz;const bc=typeof window<"u",vue=e=>typeof e<"u",PS=e=>typeof e=="boolean",Due=e=>typeof e=="function",wp=e=>typeof e=="number",Iue=e=>typeof e=="string",Pue=()=>{};bc&&((gz=window==null?void 0:window.navigator)!=null&&gz.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uW(e){return typeof e=="function"?e():pe(e)}function Oue(e){return e}function UN(e){return lie()?(L6(e),!0):!1}function Lue(e,t=!0){Oc()?Pc(e):t?e():us(e)}function qL(e,t,n={}){const{immediate:i=!0}=n,o=bn(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function a(){o.value=!1,s()}function c(...u){s(),o.value=!0,r=setTimeout(()=>{o.value=!1,r=null,e(...u)},uW(t))}return i&&(o.value=!0,bc&&c()),UN(a),{isPending:o,start:c,stop:a}}function dW(e){var t;const n=uW(e);return(t=n==null?void 0:n.$el)!=null?t:n}const fW=bc?window:void 0;function Bue(...e){let t,n,i,o;if(Iue(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=fW):[t,n,i,o]=e,!t)return Pue;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,m)=>(d.addEventListener(h,m,o),()=>d.removeEventListener(h,m,o)),c=to(()=>dW(t),d=>{s(),d&&r.push(...n.flatMap(h=>i.map(m=>a(d,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return UN(u),u}function Rue(e,t=!1){const n=bn(),i=()=>n.value=Boolean(e());return i(),Lue(i,t),n}function Nue(e){return JSON.parse(JSON.stringify(e))}const $L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YL="__vueuse_ssr_handlers__";$L[YL]=$L[YL]||{};$L[YL];var yz=Object.getOwnPropertySymbols,Mue=Object.prototype.hasOwnProperty,Fue=Object.prototype.propertyIsEnumerable,zue=(e,t)=>{var n={};for(var i in e)Mue.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&yz)for(var i of yz(e))t.indexOf(i)<0&&Fue.call(e,i)&&(n[i]=e[i]);return n};function hW(e,t,n={}){const i=n,{window:o=fW}=i,r=zue(i,["window"]);let s;const a=Rue(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},u=to(()=>dW(e),h=>{c(),a.value&&o&&h&&(s=new ResizeObserver(t),s.observe(h,r))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return UN(d),{isSupported:a,stop:d}}var Az;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Az||(Az={}));var Uue=Object.defineProperty,bz=Object.getOwnPropertySymbols,Hue=Object.prototype.hasOwnProperty,Vue=Object.prototype.propertyIsEnumerable,Cz=(e,t,n)=>t in e?Uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kue=(e,t)=>{for(var n in t||(t={}))Hue.call(t,n)&&Cz(e,n,t[n]);if(bz)for(var n of bz(t))Vue.call(t,n)&&Cz(e,n,t[n]);return e};const Gue={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]};kue({linear:Oue},Gue);function Wue(e,t,n,i={}){var o,r,s;const{clone:a=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:h}=i,m=Oc(),g=n||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((s=(r=m==null?void 0:m.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let p=u;t||(t="modelValue"),p=u||p||`update:${t.toString()}`;const y=C=>a?Due(a)?a(C):Nue(C):C,b=()=>vue(e[t])?y(e[t]):h;if(c){const C=b(),E=bn(C);return to(()=>e[t],w=>E.value=y(w)),to(E,w=>{(w!==e[t]||d)&&g(p,w)},{deep:d}),E}else return tt({get(){return b()},set(C){g(p,C)}})}const fC=e=>e===void 0,XL=e=>typeof Element>"u"?!1:e instanceof Element,jue=e=>_i(e)?!Number.isNaN(Number(e)):!1,Tz=e=>Object.keys(e),que=e=>Object.entries(e);class $ue extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Qv(e,t){throw new $ue(`[${e}] ${t}`)}const pW=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ez=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Yue=(e,t)=>{!e||!t.trim()||e.classList.add(...pW(t))},Xue=(e,t)=>{!e||!t.trim()||e.classList.remove(...pW(t))},Kue=(e,t)=>{var n;if(!bc||!e||!t)return"";let i=lu(t);i==="float"&&(i="cssFloat");try{const o=e.style[i];if(o)return o;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function hC(e,t="px"){if(!e)return"";if(wp(e)||jue(e))return`${e}${t}`;if(_i(e))return e}let hE;const Jue=e=>{var t;if(!bc)return 0;if(hE!==void 0)return hE;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 i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const r=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),hE=i-r,hE};/*! Element Plus Icons Vue v2.0.10 */var Xa=(e,t)=>{let n=e.__vccOpts||e;for(let[i,o]of t)n[i]=o;return n},Que={name:"Check"},Zue={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ede=Vt("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"},null,-1),tde=[ede];function nde(e,t,n,i,o,r){return qe(),Dt("svg",Zue,tde)}var mW=Xa(Que,[["render",nde],["__file","check.vue"]]),ide={name:"CircleCheck"},ode={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sde=Vt("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"},null,-1),ade=[rde,sde];function cde(e,t,n,i,o,r){return qe(),Dt("svg",ode,ade)}var HN=Xa(ide,[["render",cde],["__file","circle-check.vue"]]),lde={name:"CircleCloseFilled"},ude={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),fde=[dde];function hde(e,t,n,i,o,r){return qe(),Dt("svg",ude,fde)}var _W=Xa(lde,[["render",hde],["__file","circle-close-filled.vue"]]),pde={name:"CircleClose"},mde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_de=Vt("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.248L466.752 512z"},null,-1),gde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),yde=[_de,gde];function Ade(e,t,n,i,o,r){return qe(),Dt("svg",mde,yde)}var VN=Xa(pde,[["render",Ade],["__file","circle-close.vue"]]),bde={name:"Close"},Cde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tde=Vt("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"},null,-1),Ede=[Tde];function xde(e,t,n,i,o,r){return qe(),Dt("svg",Cde,Ede)}var Zv=Xa(bde,[["render",xde],["__file","close.vue"]]),wde={name:"Delete"},Sde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vde=Vt("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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Dde=[vde];function Ide(e,t,n,i,o,r){return qe(),Dt("svg",Sde,Dde)}var Pde=Xa(wde,[["render",Ide],["__file","delete.vue"]]),Ode={name:"Document"},Lde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bde=Vt("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Rde=[Bde];function Nde(e,t,n,i,o,r){return qe(),Dt("svg",Lde,Rde)}var Mde=Xa(Ode,[["render",Nde],["__file","document.vue"]]),Fde={name:"Hide"},zde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ude=Vt("path",{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.2L371.2 588.8ZM889.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",fill:"currentColor"},null,-1),Hde=Vt("path",{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",fill:"currentColor"},null,-1),Vde=[Ude,Hde];function kde(e,t,n,i,o,r){return qe(),Dt("svg",zde,Vde)}var Gde=Xa(Fde,[["render",kde],["__file","hide.vue"]]),Wde={name:"InfoFilled"},jde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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"},null,-1),$de=[qde];function Yde(e,t,n,i,o,r){return qe(),Dt("svg",jde,$de)}var gW=Xa(Wde,[["render",Yde],["__file","info-filled.vue"]]),Xde={name:"Loading"},Kde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Jde=Vt("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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 0zm-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"},null,-1),Qde=[Jde];function Zde(e,t,n,i,o,r){return qe(),Dt("svg",Kde,Qde)}var yW=Xa(Xde,[["render",Zde],["__file","loading.vue"]]),efe={name:"SuccessFilled"},tfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-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.336L456.192 600.384z"},null,-1),ife=[nfe];function ofe(e,t,n,i,o,r){return qe(),Dt("svg",tfe,ife)}var AW=Xa(efe,[["render",ofe],["__file","success-filled.vue"]]),rfe={name:"View"},sfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},afe=Vt("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),cfe=[afe];function lfe(e,t,n,i,o,r){return qe(),Dt("svg",sfe,cfe)}var ufe=Xa(rfe,[["render",lfe],["__file","view.vue"]]),dfe={name:"WarningFilled"},ffe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),pfe=[hfe];function mfe(e,t,n,i,o,r){return qe(),Dt("svg",ffe,pfe)}var kN=Xa(dfe,[["render",mfe],["__file","warning-filled.vue"]]),_fe={name:"ZoomIn"},gfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yfe=Vt("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 704zm-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-64h96z"},null,-1),Afe=[yfe];function bfe(e,t,n,i,o,r){return qe(),Dt("svg",gfe,Afe)}var Cfe=Xa(_fe,[["render",bfe],["__file","zoom-in.vue"]]);const bW="__epPropKey",Qn=e=>e,Tfe=e=>Di(e)&&!!e[bW],CW=(e,t)=>{if(!Di(e)||Tfe(e))return e;const{values:n,required:i,default:o,type:r,validator:s}=e,c={type:r,required:!!i,validator:n||s?u=>{let d=!1,h=[];if(n&&(h=Array.from(n),oi(e,"default")&&h.push(o),d||(d=h.includes(u))),s&&(d||(d=s(u))),!d&&h.length>0){const m=[...new Set(h)].map(g=>JSON.stringify(g)).join(", ");Uie(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[bW]:!0};return oi(e,"default")&&(c.default=o),c},bs=e=>lW(Object.entries(e).map(([t,n])=>[t,CW(n,t)])),s0=Qn([String,Object,Function]),TW={Close:Zv,SuccessFilled:AW,InfoFilled:gW,WarningFilled:kN,CircleCloseFilled:_W},OS={success:AW,warning:kN,error:_W,info:gW},Efe={validating:yW,success:HN,error:VN},Wf=(e,t)=>{if(e.install=n=>{for(const i of[e,...Object.values(t??{})])n.component(i.name,i)},t)for(const[n,i]of Object.entries(t))e[n]=i;return e},xfe=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),GN=e=>(e.install=Bi,e),eD={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"},If="update:modelValue",EW=["","default","small","large"],wfe=e=>["",...EW].includes(e);var vw=(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))(vw||{});const Sfe=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),pC=e=>e,vfe=["class","style"],Dfe=/^on[A-Z]/,Ife=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,i=tt(()=>((n==null?void 0:n.value)||[]).concat(vfe)),o=Oc();return tt(o?()=>{var r;return lW(Object.entries((r=o.proxy)==null?void 0:r.$attrs).filter(([s])=>!i.value.includes(s)&&!(t&&Dfe.test(s))))}:()=>({}))},xW=Symbol("buttonGroupContextKey"),I0=Symbol("checkboxGroupContextKey"),wW=Symbol(),WN=Symbol("formContextKey"),SW=Symbol("formItemContextKey"),Pfe=Symbol("rowContextKey"),vW=Symbol("uploadContextKey"),DW=e=>{const t=Oc();return tt(()=>{var n,i;return(i=((n=t.proxy)==null?void 0:n.$props)[e])!=null?i:void 0})},LS=bn();function jp(e,t=void 0){const n=Oc()?er(wW,LS):LS;return e?tt(()=>{var i,o;return(o=(i=n.value)==null?void 0:i[e])!=null?o:t}):n}const Ofe=(e,t,n=!1)=>{var i;const o=!!Oc(),r=o?jp():void 0,s=(i=t==null?void 0:t.provide)!=null?i:o?nd:void 0;if(!s)return;const a=tt(()=>{const c=pe(e);return r!=null&&r.value?Lfe(r.value,c):c});return s(wW,a),(n||!LS.value)&&(LS.value=a.value),a},Lfe=(e,t)=>{var n;const i=[...new Set([...Tz(e),...Tz(t)])],o={};for(const r of i)o[r]=(n=t[r])!=null?n:e[r];return o},cT=CW({type:String,values:EW,required:!1}),mC=(e,t={})=>{const n=bn(void 0),i=t.prop?n:DW("size"),o=t.global?n:jp("size"),r=t.form?{size:void 0}:er(WN,void 0),s=t.formItem?{size:void 0}:er(SW,void 0);return tt(()=>i.value||pe(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||o.value||"")},qp=e=>{const t=DW("disabled"),n=er(WN,void 0);return tt(()=>t.value||pe(e)||(n==null?void 0:n.disabled)||!1)},KL=({from:e,replacement:t,scope:n,version:i,ref:o,type:r="API"},s)=>{to(()=>pe(s),a=>{},{immediate:!0})},Bfe=(e,t,n)=>{let i={offsetX:0,offsetY:0};const o=a=>{const c=a.clientX,u=a.clientY,{offsetX:d,offsetY:h}=i,m=e.value.getBoundingClientRect(),g=m.left,p=m.top,y=m.width,b=m.height,C=document.documentElement.clientWidth,E=document.documentElement.clientHeight,w=-g+d,S=-p+h,P=C-g-y+d,L=E-p-b+h,z=F=>{const U=Math.min(Math.max(d+F.clientX-c,w),P),D=Math.min(Math.max(h+F.clientY-u,S),L);i={offsetX:U,offsetY:D},e.value.style.transform=`translate(${hC(U)}, ${hC(D)})`},R=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",R)},r=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Pc(()=>{Qie(()=>{n.value?r():s()})}),Wp(()=>{s()})},jN="el",Rfe="is-",hm=(e,t,n,i,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),i&&(r+=`__${i}`),o&&(r+=`--${o}`),r},dr=e=>{const t=jp("namespace",jN);return{namespace:t,b:(p="")=>hm(t.value,e,p,"",""),e:p=>p?hm(t.value,e,"",p,""):"",m:p=>p?hm(t.value,e,"","",p):"",be:(p,y)=>p&&y?hm(t.value,e,p,y,""):"",em:(p,y)=>p&&y?hm(t.value,e,"",p,y):"",bm:(p,y)=>p&&y?hm(t.value,e,p,"",y):"",bem:(p,y,b)=>p&&y&&b?hm(t.value,e,p,y,b):"",is:(p,...y)=>{const b=y.length>=1?y[0]:!0;return p&&b?`${Rfe}${p}`:""},cssVar:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${b}`]=p[b]);return y},cssVarName:p=>`--${t.value}-${p}`,cssVarBlock:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${e}-${b}`]=p[b]);return y},cssVarBlockName:p=>`--${t.value}-${e}-${p}`}},xz={prefix:Math.floor(Math.random()*1e4),current:0},Nfe=Symbol("elIdInjection"),Mfe=()=>Oc()?er(Nfe,xz):xz,_C=e=>{const t=Mfe(),n=jp("namespace",jN);return tt(()=>pe(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},lT=()=>{const e=er(WN,void 0),t=er(SW,void 0);return{form:e,formItem:t}},qN=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:i})=>{n||(n=bn(!1)),i||(i=bn(!1));const o=bn();let r;const s=tt(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Pc(()=>{r=to([t0(e,"id"),n],([a,c])=>{const u=a??(c?void 0:_C().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(i!=null&&i.value)&&!c&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),xN(()=>{r&&r(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var Ffe={name:"en",el:{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:"",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"},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"}}};const zfe=e=>(t,n)=>Ufe(t,n,pe(e)),Ufe=(e,t,n)=>fle(n,e,e).replace(/\{(\w+)\}/g,(i,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),Hfe=e=>{const t=tt(()=>pe(e).name),n=So(e)?e:bn(e);return{lang:t,locale:n,t:zfe(e)}},$N=()=>{const e=jp("locale");return Hfe(tt(()=>e.value||Ffe))},IW=e=>{So(e)||Qv("[useLockscreen]","You need to pass a ref param to this function");const t=dr("popup"),n=Q6(()=>t.bm("parent","hidden"));if(!bc||Ez(document.body,n.value))return;let i=0,o=!1,r="0";const s=()=>{setTimeout(()=>{Xue(document.body,n.value),o&&(document.body.style.width=r)},200)};to(e,a=>{if(!a){s();return}o=!Ez(document.body,n.value),o&&(r=document.body.style.width),i=Jue(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),Yue(document.body,n.value)}),L6(()=>s())},Vfe=(e,t)=>{let n;to(()=>e.value,i=>{var o,r;i?(n=document.activeElement,So(t)&&((r=(o=t.value).focus)==null||r.call(o))):n.focus()})},PW=e=>{if(!e)return{onClick:Bi,onMousedown:Bi,onMouseup:Bi};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}}};let ry=[];const wz=e=>{const t=e;t.key===eD.esc&&ry.forEach(n=>n(t))},kfe=e=>{Pc(()=>{ry.length===0&&document.addEventListener("keydown",wz),bc&&ry.push(e)}),Wp(()=>{ry=ry.filter(t=>t!==e),ry.length===0&&bc&&document.removeEventListener("keydown",wz)})},Sz=bn(0),YN=()=>{const e=jp("zIndex",2e3),t=tt(()=>e.value+Sz.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Sz.value++,t.value)}};function Gfe(e){const t=bn();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;if(o==null||r==null)return;const a=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,r));t.value={selectionStart:o,selectionEnd:r,value:s,beforeTxt:a,afterTxt:c}}function i(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:a}=t.value;if(r==null||s==null||a==null)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(r))c=r.length;else{const u=r[a-1],d=o.indexOf(u,a-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,i]}var Cs=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const Wfe=bs({size:{type:Qn([Number,String])},color:{type:String}}),jfe=ci({name:"ElIcon",inheritAttrs:!1}),qfe=ci({...jfe,props:Wfe,setup(e){const t=e,n=dr("icon"),i=tt(()=>{const{size:o,color:r}=t;return!o&&!r?{}:{fontSize:fC(o)?void 0:hC(o),"--color":r}});return(o,r)=>(qe(),Dt("i",cp({class:pe(n).b(),style:pe(i)},o.$attrs),[Zn(o.$slots,"default")],16))}});var $fe=Cs(qfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ss=Wf($fe);let Pl;const Yfe=` + */const iy=typeof window<"u";function Sre(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const eo=Object.assign;function zI(e,t){const n={};for(const i in t){const o=t[i];n[i]=uu(o)?o.map(e):e(o)}return n}const Ib=()=>{},uu=Array.isArray,vre=/\/$/,Dre=e=>e.replace(vre,"");function UI(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=Lre(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function Ire(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function P3(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pre(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&n0(t.matched[i],n.matched[o])&&z9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function n0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function z9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ore(e[n],t[n]))return!1;return!0}function Ore(e,t){return uu(e)?O3(e,t):uu(t)?O3(t,e):e===t}function O3(e,t){return uu(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Lre(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var lC;(function(e){e.pop="pop",e.push="push"})(lC||(lC={}));var Pb;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pb||(Pb={}));function Bre(e){if(!e)if(iy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dre(e)}const Rre=/^[^#]+#/;function Nre(e,t){return e.replace(Rre,"#")+t}function Mre(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const $v=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fre(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Mre(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function L3(e,t){return(history.state?history.state.position-t:-1)+e}const zL=new Map;function zre(e,t){zL.set(e,t)}function Ure(e){const t=zL.get(e);return zL.delete(e),t}let Hre=()=>location.protocol+"//"+location.host;function U9(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),P3(c,"")}return P3(n,e)+i+o}function Vre(e,t,n,i){let o=[],r=[],s=null;const a=({state:m})=>{const g=U9(e,location),p=n.value,y=t.value;let b=0;if(m){if(n.value=g,t.value=m,s&&s===p){s=null;return}b=y?m.position-y.position:0}else i(g);o.forEach(C=>{C(n.value,p,{delta:b,type:lC.pop,direction:b?b>0?Pb.forward:Pb.back:Pb.unknown})})};function c(){s=n.value}function u(m){o.push(m);const g=()=>{const p=o.indexOf(m);p>-1&&o.splice(p,1)};return r.push(g),g}function d(){const{history:m}=window;m.state&&m.replaceState(eo({},m.state,{scroll:$v()}),"")}function h(){for(const m of r)m();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:h}}function B3(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?$v():null}}function kre(e){const{history:t,location:n}=window,i={value:U9(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Hre()+e+c;try{t[d?"replaceState":"pushState"](u,"",m),o.value=u}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function s(c,u){const d=eo({},t.state,B3(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,d,!0),i.value=c}function a(c,u){const d=eo({},o.value,t.state,{forward:c,scroll:$v()});r(d.current,d,!0);const h=eo({},B3(i.value,c,null),{position:d.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function Gre(e){e=Bre(e);const t=kre(e),n=Vre(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=eo({location:"",base:e,go:i,createHref:Nre.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Wre(e){return typeof e=="string"||e&&typeof e=="object"}function H9(e){return typeof e=="string"||typeof e=="symbol"}const hh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V9=Symbol("");var R3;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(R3||(R3={}));function i0(e,t){return eo(new Error,{type:e,[V9]:!0},t)}function zd(e,t){return e instanceof Error&&V9 in e&&(t==null||!!(e.type&t))}const N3="[^/]+?",jre={sensitive:!1,strict:!1,start:!0,end:!0},qre=/[.+*?^${}()[\]/\\]/g;function $re(e,t){const n=eo({},jre,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Xre(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Kre={type:0,value:""},Jre=/[a-zA-Z0-9_]/;function Qre(e){if(!e)return[[]];if(e==="/")return[[Kre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",d="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function m(){u+=c}for(;a{s(E)}:Ib}function s(d){if(H9(d)){const h=i.get(d);h&&(i.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function c(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!k9(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!z3(d)&&i.set(d.record.name,d)}function u(d,h){let m,g={},p,y;if("name"in d&&d.name){if(m=i.get(d.name),!m)throw i0(1,{location:d});y=m.record.name,g=eo(F3(h.params,m.keys.filter(E=>!E.optional).map(E=>E.name)),d.params&&F3(d.params,m.keys.map(E=>E.name))),p=m.stringify(g)}else if("path"in d)p=d.path,m=n.find(E=>E.re.test(p)),m&&(g=m.parse(p),y=m.record.name);else{if(m=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!m)throw i0(1,{location:d,currentLocation:h});y=m.record.name,g=eo({},h.params,d.params),p=m.stringify(g)}const b=[];let C=m;for(;C;)b.unshift(C.record),C=C.parent;return{name:y,path:p,params:g,matched:b,meta:ise(b)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function F3(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function tse(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nse(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 nse(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function z3(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ise(e){return e.reduce((t,n)=>eo(t,n.meta),{})}function U3(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function k9(e,t){return t.children.some(n=>n===e||k9(e,n))}const G9=/#/g,ose=/&/g,rse=/\//g,sse=/=/g,ase=/\?/g,W9=/\+/g,cse=/%5B/g,lse=/%5D/g,j9=/%5E/g,use=/%60/g,q9=/%7B/g,dse=/%7C/g,$9=/%7D/g,fse=/%20/g;function PN(e){return encodeURI(""+e).replace(dse,"|").replace(cse,"[").replace(lse,"]")}function hse(e){return PN(e).replace(q9,"{").replace($9,"}").replace(j9,"^")}function UL(e){return PN(e).replace(W9,"%2B").replace(fse,"+").replace(G9,"%23").replace(ose,"%26").replace(use,"`").replace(q9,"{").replace($9,"}").replace(j9,"^")}function pse(e){return UL(e).replace(sse,"%3D")}function mse(e){return PN(e).replace(G9,"%23").replace(ase,"%3F")}function _se(e){return e==null?"":mse(e).replace(rse,"%2F")}function SS(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function gse(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&UL(r)):[i&&UL(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function yse(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=uu(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const Ase=Symbol(""),V3=Symbol(""),ON=Symbol(""),Y9=Symbol(""),HL=Symbol("");function nA(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(i0(4,{from:n,to:t})):h instanceof Error?a(h):Wre(h)?a(i0(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>a(h))})}function HI(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(bse(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Wh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const d=Sre(u)?u.default:u;r.components[s]=d;const m=(d.__vccOpts||d)[t];return m&&Wh(m,n,i,r,s)()}))}}return o}function bse(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function k3(e){const t=er(ON),n=er(Y9),i=tt(()=>t.resolve(pe(e.to))),o=tt(()=>{const{matched:c}=i.value,{length:u}=c,d=c[u-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(n0.bind(null,d));if(m>-1)return m;const g=G3(c[u-2]);return u>1&&G3(d)===g&&h[h.length-1].path!==g?h.findIndex(n0.bind(null,c[u-2])):m}),r=tt(()=>o.value>-1&&xse(n.params,i.value.params)),s=tt(()=>o.value>-1&&o.value===n.matched.length-1&&z9(n.params,i.value.params));function a(c={}){return Ese(c)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(Ib):Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const Cse=ci({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:k3,setup(e,{slots:t}){const n=W_(k3(e)),{options:i}=er(ON),o=tt(()=>({[W3(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[W3(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:qv("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Tse=Cse;function Ese(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 xse(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!uu(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function G3(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const W3=(e,t,n)=>e??t??n,wse=ci({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=er(HL),o=tt(()=>e.route||i.value),r=er(V3,0),s=tt(()=>{let u=pe(r);const{matched:d}=o.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),a=tt(()=>o.value.matched[s.value]);nd(V3,tt(()=>s.value+1)),nd(Ase,a),nd(HL,o);const c=bn();return to(()=>[c.value,a.value,e.name],([u,d,h],[m,g,p])=>{d&&(d.instances[h]=u,g&&g!==d&&u&&u===m&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!n0(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,h=a.value,m=h&&h.components[d];if(!m)return j3(n.default,{Component:m,route:u});const g=h.props[d],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=qv(m,eo({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return j3(n.default,{Component:b,route:u})||b}}});function j3(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const X9=wse;function Sse(e){const t=ese(e.routes,e),n=e.parseQuery||gse,i=e.stringifyQuery||H3,o=e.history,r=nA(),s=nA(),a=nA(),c=c_(hh);let u=hh;iy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=zI.bind(null,X=>""+X),h=zI.bind(null,_se),m=zI.bind(null,SS);function g(X,$){let se,ue;return H9(X)?(se=t.getRecordMatcher(X),ue=$):ue=X,t.addRoute(ue,se)}function p(X){const $=t.getRecordMatcher(X);$&&t.removeRoute($)}function y(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function C(X,$){if($=eo({},$||c.value),typeof X=="string"){const Q=UI(n,X,$.path),ne=t.resolve({path:Q.path},$),de=o.createHref(Q.fullPath);return eo(Q,ne,{params:m(ne.params),hash:SS(Q.hash),redirectedFrom:void 0,href:de})}let se;if("path"in X)se=eo({},X,{path:UI(n,X.path,$.path).path});else{const Q=eo({},X.params);for(const ne in Q)Q[ne]==null&&delete Q[ne];se=eo({},X,{params:h(X.params)}),$.params=h($.params)}const ue=t.resolve(se,$),re=X.hash||"";ue.params=d(m(ue.params));const he=Ire(i,eo({},X,{hash:hse(re),path:ue.path})),ce=o.createHref(he);return eo({fullPath:he,hash:re,query:i===H3?yse(X.query):X.query||{}},ue,{redirectedFrom:void 0,href:ce})}function E(X){return typeof X=="string"?UI(n,X,c.value.path):eo({},X)}function w(X,$){if(u!==X)return i0(8,{from:$,to:X})}function S(X){return z(X)}function P(X){return S(eo(E(X),{replace:!0}))}function L(X){const $=X.matched[X.matched.length-1];if($&&$.redirect){const{redirect:se}=$;let ue=typeof se=="function"?se(X):se;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=E(ue):{path:ue},ue.params={}),eo({query:X.query,hash:X.hash,params:"path"in ue?{}:X.params},ue)}}function z(X,$){const se=u=C(X),ue=c.value,re=X.state,he=X.force,ce=X.replace===!0,Q=L(se);if(Q)return z(eo(E(Q),{state:typeof Q=="object"?eo({},re,Q.state):re,force:he,replace:ce}),$||se);const ne=se;ne.redirectedFrom=$;let de;return!he&&Pre(i,ue,se)&&(de=i0(16,{to:ne,from:ue}),W(ue,ue,!0,!1)),(de?Promise.resolve(de):F(ne,ue)).catch(_e=>zd(_e)?zd(_e,2)?_e:G(_e):V(_e,ne,ue)).then(_e=>{if(_e){if(zd(_e,2))return z(eo({replace:ce},E(_e.to),{state:typeof _e.to=="object"?eo({},re,_e.to.state):re,force:he}),$||ne)}else _e=D(ne,ue,!0,ce,re);return U(ne,ue,_e),_e})}function R(X,$){const se=w(X,$);return se?Promise.reject(se):Promise.resolve()}function F(X,$){let se;const[ue,re,he]=vse(X,$);se=HI(ue.reverse(),"beforeRouteLeave",X,$);for(const Q of ue)Q.leaveGuards.forEach(ne=>{se.push(Wh(ne,X,$))});const ce=R.bind(null,X,$);return se.push(ce),Cg(se).then(()=>{se=[];for(const Q of r.list())se.push(Wh(Q,X,$));return se.push(ce),Cg(se)}).then(()=>{se=HI(re,"beforeRouteUpdate",X,$);for(const Q of re)Q.updateGuards.forEach(ne=>{se.push(Wh(ne,X,$))});return se.push(ce),Cg(se)}).then(()=>{se=[];for(const Q of X.matched)if(Q.beforeEnter&&!$.matched.includes(Q))if(uu(Q.beforeEnter))for(const ne of Q.beforeEnter)se.push(Wh(ne,X,$));else se.push(Wh(Q.beforeEnter,X,$));return se.push(ce),Cg(se)}).then(()=>(X.matched.forEach(Q=>Q.enterCallbacks={}),se=HI(he,"beforeRouteEnter",X,$),se.push(ce),Cg(se))).then(()=>{se=[];for(const Q of s.list())se.push(Wh(Q,X,$));return se.push(ce),Cg(se)}).catch(Q=>zd(Q,8)?Q:Promise.reject(Q))}function U(X,$,se){for(const ue of a.list())ue(X,$,se)}function D(X,$,se,ue,re){const he=w(X,$);if(he)return he;const ce=$===hh,Q=iy?history.state:{};se&&(ue||ce?o.replace(X.fullPath,eo({scroll:ce&&Q&&Q.scroll},re)):o.push(X.fullPath,re)),c.value=X,W(X,$,se,ce),G()}let I;function _(){I||(I=o.listen((X,$,se)=>{if(!Y.listening)return;const ue=C(X),re=L(ue);if(re){z(eo(re,{replace:!0}),ue).catch(Ib);return}u=ue;const he=c.value;iy&&zre(L3(he.fullPath,se.delta),$v()),F(ue,he).catch(ce=>zd(ce,12)?ce:zd(ce,2)?(z(ce.to,ue).then(Q=>{zd(Q,20)&&!se.delta&&se.type===lC.pop&&o.go(-1,!1)}).catch(Ib),Promise.reject()):(se.delta&&o.go(-se.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||D(ue,he,!1),ce&&(se.delta&&!zd(ce,8)?o.go(-se.delta,!1):se.type===lC.pop&&zd(ce,20)&&o.go(-1,!1)),U(ue,he,ce)}).catch(Ib)}))}let v=nA(),O=nA(),N;function V(X,$,se){G(X);const ue=O.list();return ue.length?ue.forEach(re=>re(X,$,se)):console.error(X),Promise.reject(X)}function k(){return N&&c.value!==hh?Promise.resolve():new Promise((X,$)=>{v.add([X,$])})}function G(X){return N||(N=!X,_(),v.list().forEach(([$,se])=>X?se(X):$()),v.reset()),X}function W(X,$,se,ue){const{scrollBehavior:re}=e;if(!iy||!re)return Promise.resolve();const he=!se&&Ure(L3(X.fullPath,0))||(ue||!se)&&history.state&&history.state.scroll||null;return us().then(()=>re(X,$,he)).then(ce=>ce&&Fre(ce)).catch(ce=>V(ce,X,$))}const K=X=>o.go(X);let q;const te=new Set,Y={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:b,getRoutes:y,resolve:C,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:k,install(X){const $=this;X.component("RouterLink",Tse),X.component("RouterView",X9),X.config.globalProperties.$router=$,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(c)}),iy&&!q&&c.value===hh&&(q=!0,S(o.location).catch(re=>{}));const se={};for(const re in hh)se[re]=tt(()=>c.value[re]);X.provide(ON,$),X.provide(Y9,W_(se)),X.provide(HL,c);const ue=X.unmount;te.add(X),X.unmount=function(){te.delete(X),te.size<1&&(u=hh,I&&I(),I=null,c.value=hh,q=!1,N=!1),ue()}}};return Y}function Cg(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function vse(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sn0(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>n0(u,c))||o.push(c))}return[n,i,o]}const Dse=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Ise={__name:"App",setup(e){return(t,n)=>(qe(),Dn(pe(X9)))}},Pse=Dse(Ise,[["__scopeId","data-v-0969e94e"]]);var Ose=typeof global=="object"&&global&&global.Object===Object&&global;const K9=Ose;var Lse=typeof self=="object"&&self&&self.Object===Object&&self,Bse=K9||Lse||Function("return this")();const Vf=Bse;var Rse=Vf.Symbol;const ld=Rse;var J9=Object.prototype,Nse=J9.hasOwnProperty,Mse=J9.toString,iA=ld?ld.toStringTag:void 0;function Fse(e){var t=Nse.call(e,iA),n=e[iA];try{e[iA]=void 0;var i=!0}catch{}var o=Mse.call(e);return i&&(t?e[iA]=n:delete e[iA]),o}var zse=Object.prototype,Use=zse.toString;function Hse(e){return Use.call(e)}var Vse="[object Null]",kse="[object Undefined]",q3=ld?ld.toStringTag:void 0;function v0(e){return e==null?e===void 0?kse:Vse:q3&&q3 in Object(e)?Fse(e):Hse(e)}function o0(e){return e!=null&&typeof e=="object"}var Gse="[object Symbol]";function LN(e){return typeof e=="symbol"||o0(e)&&v0(e)==Gse}function Wse(e,t){for(var n=-1,i=e==null?0:e.length,o=Array(i);++n0){if(++t>=hae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function gae(e){return function(){return e}}var yae=function(){try{var e=q_(Object,"defineProperty");return e({},"",{}),e}catch{}}();const DS=yae;var Aae=DS?function(e,t){return DS(e,"toString",{configurable:!0,enumerable:!1,value:gae(t),writable:!0})}:$se;const bae=Aae;var Cae=_ae(bae);const Tae=Cae;var Eae=9007199254740991,xae=/^(?:0|[1-9]\d*)$/;function BN(e,t){var n=typeof e;return t=t??Eae,!!t&&(n=="number"||n!="symbol"&&xae.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Pae}function Oae(e){return e!=null&&NN(e.length)&&!Z9(e)}var Lae=Object.prototype;function Bae(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lae;return e===n}function Rae(e,t){for(var n=-1,i=Array(e);++n-1}function Xce(e,t){var n=this.__data__,i=Yv(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function kf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?sW(a,t-1,n,i,o):rW(o,a):i||(o[o.length]=a)}return o}function ple(e){var t=e==null?0:e.length;return t?sW(e,1):[]}function mle(e){return Tae(Iae(e,void 0,ple),e+"")}function _le(){this.__data__=new kf,this.size=0}function gle(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yle(e){return this.__data__.get(e)}function Ale(e){return this.__data__.has(e)}var ble=200;function Cle(e,t){var n=this.__data__;if(n instanceof kf){var i=n.__data__;if(!dC||i.lengtha))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var h=-1,m=!0,g=n&jle?new IS:void 0;for(r.set(e,t),r.set(t,e);++hgetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,_z=e=>Array.from(e.querySelectorAll(xue)).filter(t=>Sue(t)&&wue(t)),Sue=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}};var gz;const Cc=typeof window<"u",vue=e=>typeof e<"u",PS=e=>typeof e=="boolean",Due=e=>typeof e=="function",wp=e=>typeof e=="number",Iue=e=>typeof e=="string",Pue=()=>{};Cc&&((gz=window==null?void 0:window.navigator)!=null&&gz.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uW(e){return typeof e=="function"?e():pe(e)}function Oue(e){return e}function UN(e){return lie()?(L6(e),!0):!1}function Lue(e,t=!0){Lc()?Oc(e):t?e():us(e)}function qL(e,t,n={}){const{immediate:i=!0}=n,o=bn(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function a(){o.value=!1,s()}function c(...u){s(),o.value=!0,r=setTimeout(()=>{o.value=!1,r=null,e(...u)},uW(t))}return i&&(o.value=!0,Cc&&c()),UN(a),{isPending:o,start:c,stop:a}}function dW(e){var t;const n=uW(e);return(t=n==null?void 0:n.$el)!=null?t:n}const fW=Cc?window:void 0;function Bue(...e){let t,n,i,o;if(Iue(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=fW):[t,n,i,o]=e,!t)return Pue;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,m)=>(d.addEventListener(h,m,o),()=>d.removeEventListener(h,m,o)),c=to(()=>dW(t),d=>{s(),d&&r.push(...n.flatMap(h=>i.map(m=>a(d,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return UN(u),u}function Rue(e,t=!1){const n=bn(),i=()=>n.value=Boolean(e());return i(),Lue(i,t),n}function Nue(e){return JSON.parse(JSON.stringify(e))}const $L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YL="__vueuse_ssr_handlers__";$L[YL]=$L[YL]||{};$L[YL];var yz=Object.getOwnPropertySymbols,Mue=Object.prototype.hasOwnProperty,Fue=Object.prototype.propertyIsEnumerable,zue=(e,t)=>{var n={};for(var i in e)Mue.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&yz)for(var i of yz(e))t.indexOf(i)<0&&Fue.call(e,i)&&(n[i]=e[i]);return n};function hW(e,t,n={}){const i=n,{window:o=fW}=i,r=zue(i,["window"]);let s;const a=Rue(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},u=to(()=>dW(e),h=>{c(),a.value&&o&&h&&(s=new ResizeObserver(t),s.observe(h,r))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return UN(d),{isSupported:a,stop:d}}var Az;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Az||(Az={}));var Uue=Object.defineProperty,bz=Object.getOwnPropertySymbols,Hue=Object.prototype.hasOwnProperty,Vue=Object.prototype.propertyIsEnumerable,Cz=(e,t,n)=>t in e?Uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kue=(e,t)=>{for(var n in t||(t={}))Hue.call(t,n)&&Cz(e,n,t[n]);if(bz)for(var n of bz(t))Vue.call(t,n)&&Cz(e,n,t[n]);return e};const Gue={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]};kue({linear:Oue},Gue);function Wue(e,t,n,i={}){var o,r,s;const{clone:a=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:h}=i,m=Lc(),g=n||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((s=(r=m==null?void 0:m.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let p=u;t||(t="modelValue"),p=u||p||`update:${t.toString()}`;const y=C=>a?Due(a)?a(C):Nue(C):C,b=()=>vue(e[t])?y(e[t]):h;if(c){const C=b(),E=bn(C);return to(()=>e[t],w=>E.value=y(w)),to(E,w=>{(w!==e[t]||d)&&g(p,w)},{deep:d}),E}else return tt({get(){return b()},set(C){g(p,C)}})}const fC=e=>e===void 0,XL=e=>typeof Element>"u"?!1:e instanceof Element,jue=e=>_i(e)?!Number.isNaN(Number(e)):!1,Tz=e=>Object.keys(e),que=e=>Object.entries(e);class $ue extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Qv(e,t){throw new $ue(`[${e}] ${t}`)}const pW=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ez=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Yue=(e,t)=>{!e||!t.trim()||e.classList.add(...pW(t))},Xue=(e,t)=>{!e||!t.trim()||e.classList.remove(...pW(t))},Kue=(e,t)=>{var n;if(!Cc||!e||!t)return"";let i=lu(t);i==="float"&&(i="cssFloat");try{const o=e.style[i];if(o)return o;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function hC(e,t="px"){if(!e)return"";if(wp(e)||jue(e))return`${e}${t}`;if(_i(e))return e}let hE;const Jue=e=>{var t;if(!Cc)return 0;if(hE!==void 0)return hE;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 i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const r=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),hE=i-r,hE};/*! Element Plus Icons Vue v2.0.10 */var Ka=(e,t)=>{let n=e.__vccOpts||e;for(let[i,o]of t)n[i]=o;return n},Que={name:"Check"},Zue={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ede=Vt("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"},null,-1),tde=[ede];function nde(e,t,n,i,o,r){return qe(),Dt("svg",Zue,tde)}var mW=Ka(Que,[["render",nde],["__file","check.vue"]]),ide={name:"CircleCheck"},ode={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sde=Vt("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"},null,-1),ade=[rde,sde];function cde(e,t,n,i,o,r){return qe(),Dt("svg",ode,ade)}var HN=Ka(ide,[["render",cde],["__file","circle-check.vue"]]),lde={name:"CircleCloseFilled"},ude={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),fde=[dde];function hde(e,t,n,i,o,r){return qe(),Dt("svg",ude,fde)}var _W=Ka(lde,[["render",hde],["__file","circle-close-filled.vue"]]),pde={name:"CircleClose"},mde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_de=Vt("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.248L466.752 512z"},null,-1),gde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),yde=[_de,gde];function Ade(e,t,n,i,o,r){return qe(),Dt("svg",mde,yde)}var VN=Ka(pde,[["render",Ade],["__file","circle-close.vue"]]),bde={name:"Close"},Cde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tde=Vt("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"},null,-1),Ede=[Tde];function xde(e,t,n,i,o,r){return qe(),Dt("svg",Cde,Ede)}var Zv=Ka(bde,[["render",xde],["__file","close.vue"]]),wde={name:"Delete"},Sde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vde=Vt("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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Dde=[vde];function Ide(e,t,n,i,o,r){return qe(),Dt("svg",Sde,Dde)}var Pde=Ka(wde,[["render",Ide],["__file","delete.vue"]]),Ode={name:"Document"},Lde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bde=Vt("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Rde=[Bde];function Nde(e,t,n,i,o,r){return qe(),Dt("svg",Lde,Rde)}var Mde=Ka(Ode,[["render",Nde],["__file","document.vue"]]),Fde={name:"Hide"},zde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ude=Vt("path",{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.2L371.2 588.8ZM889.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",fill:"currentColor"},null,-1),Hde=Vt("path",{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",fill:"currentColor"},null,-1),Vde=[Ude,Hde];function kde(e,t,n,i,o,r){return qe(),Dt("svg",zde,Vde)}var Gde=Ka(Fde,[["render",kde],["__file","hide.vue"]]),Wde={name:"InfoFilled"},jde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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"},null,-1),$de=[qde];function Yde(e,t,n,i,o,r){return qe(),Dt("svg",jde,$de)}var gW=Ka(Wde,[["render",Yde],["__file","info-filled.vue"]]),Xde={name:"Loading"},Kde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Jde=Vt("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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 0zm-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"},null,-1),Qde=[Jde];function Zde(e,t,n,i,o,r){return qe(),Dt("svg",Kde,Qde)}var yW=Ka(Xde,[["render",Zde],["__file","loading.vue"]]),efe={name:"SuccessFilled"},tfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-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.336L456.192 600.384z"},null,-1),ife=[nfe];function ofe(e,t,n,i,o,r){return qe(),Dt("svg",tfe,ife)}var AW=Ka(efe,[["render",ofe],["__file","success-filled.vue"]]),rfe={name:"View"},sfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},afe=Vt("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),cfe=[afe];function lfe(e,t,n,i,o,r){return qe(),Dt("svg",sfe,cfe)}var ufe=Ka(rfe,[["render",lfe],["__file","view.vue"]]),dfe={name:"WarningFilled"},ffe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),pfe=[hfe];function mfe(e,t,n,i,o,r){return qe(),Dt("svg",ffe,pfe)}var kN=Ka(dfe,[["render",mfe],["__file","warning-filled.vue"]]),_fe={name:"ZoomIn"},gfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yfe=Vt("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 704zm-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-64h96z"},null,-1),Afe=[yfe];function bfe(e,t,n,i,o,r){return qe(),Dt("svg",gfe,Afe)}var Cfe=Ka(_fe,[["render",bfe],["__file","zoom-in.vue"]]);const bW="__epPropKey",Qn=e=>e,Tfe=e=>Di(e)&&!!e[bW],CW=(e,t)=>{if(!Di(e)||Tfe(e))return e;const{values:n,required:i,default:o,type:r,validator:s}=e,c={type:r,required:!!i,validator:n||s?u=>{let d=!1,h=[];if(n&&(h=Array.from(n),oi(e,"default")&&h.push(o),d||(d=h.includes(u))),s&&(d||(d=s(u))),!d&&h.length>0){const m=[...new Set(h)].map(g=>JSON.stringify(g)).join(", ");Uie(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[bW]:!0};return oi(e,"default")&&(c.default=o),c},bs=e=>lW(Object.entries(e).map(([t,n])=>[t,CW(n,t)])),r0=Qn([String,Object,Function]),TW={Close:Zv,SuccessFilled:AW,InfoFilled:gW,WarningFilled:kN,CircleCloseFilled:_W},OS={success:AW,warning:kN,error:_W,info:gW},Efe={validating:yW,success:HN,error:VN},Wf=(e,t)=>{if(e.install=n=>{for(const i of[e,...Object.values(t??{})])n.component(i.name,i)},t)for(const[n,i]of Object.entries(t))e[n]=i;return e},xfe=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),GN=e=>(e.install=Bi,e),eD={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"},If="update:modelValue",EW=["","default","small","large"],wfe=e=>["",...EW].includes(e);var vw=(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))(vw||{});const Sfe=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),pC=e=>e,vfe=["class","style"],Dfe=/^on[A-Z]/,Ife=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,i=tt(()=>((n==null?void 0:n.value)||[]).concat(vfe)),o=Lc();return tt(o?()=>{var r;return lW(Object.entries((r=o.proxy)==null?void 0:r.$attrs).filter(([s])=>!i.value.includes(s)&&!(t&&Dfe.test(s))))}:()=>({}))},xW=Symbol("buttonGroupContextKey"),D0=Symbol("checkboxGroupContextKey"),wW=Symbol(),WN=Symbol("formContextKey"),SW=Symbol("formItemContextKey"),Pfe=Symbol("rowContextKey"),vW=Symbol("uploadContextKey"),DW=e=>{const t=Lc();return tt(()=>{var n,i;return(i=((n=t.proxy)==null?void 0:n.$props)[e])!=null?i:void 0})},LS=bn();function jp(e,t=void 0){const n=Lc()?er(wW,LS):LS;return e?tt(()=>{var i,o;return(o=(i=n.value)==null?void 0:i[e])!=null?o:t}):n}const Ofe=(e,t,n=!1)=>{var i;const o=!!Lc(),r=o?jp():void 0,s=(i=t==null?void 0:t.provide)!=null?i:o?nd:void 0;if(!s)return;const a=tt(()=>{const c=pe(e);return r!=null&&r.value?Lfe(r.value,c):c});return s(wW,a),(n||!LS.value)&&(LS.value=a.value),a},Lfe=(e,t)=>{var n;const i=[...new Set([...Tz(e),...Tz(t)])],o={};for(const r of i)o[r]=(n=t[r])!=null?n:e[r];return o},cT=CW({type:String,values:EW,required:!1}),mC=(e,t={})=>{const n=bn(void 0),i=t.prop?n:DW("size"),o=t.global?n:jp("size"),r=t.form?{size:void 0}:er(WN,void 0),s=t.formItem?{size:void 0}:er(SW,void 0);return tt(()=>i.value||pe(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||o.value||"")},qp=e=>{const t=DW("disabled"),n=er(WN,void 0);return tt(()=>t.value||pe(e)||(n==null?void 0:n.disabled)||!1)},KL=({from:e,replacement:t,scope:n,version:i,ref:o,type:r="API"},s)=>{to(()=>pe(s),a=>{},{immediate:!0})},Bfe=(e,t,n)=>{let i={offsetX:0,offsetY:0};const o=a=>{const c=a.clientX,u=a.clientY,{offsetX:d,offsetY:h}=i,m=e.value.getBoundingClientRect(),g=m.left,p=m.top,y=m.width,b=m.height,C=document.documentElement.clientWidth,E=document.documentElement.clientHeight,w=-g+d,S=-p+h,P=C-g-y+d,L=E-p-b+h,z=F=>{const U=Math.min(Math.max(d+F.clientX-c,w),P),D=Math.min(Math.max(h+F.clientY-u,S),L);i={offsetX:U,offsetY:D},e.value.style.transform=`translate(${hC(U)}, ${hC(D)})`},R=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",R)},r=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Oc(()=>{Qie(()=>{n.value?r():s()})}),Wp(()=>{s()})},jN="el",Rfe="is-",hm=(e,t,n,i,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),i&&(r+=`__${i}`),o&&(r+=`--${o}`),r},dr=e=>{const t=jp("namespace",jN);return{namespace:t,b:(p="")=>hm(t.value,e,p,"",""),e:p=>p?hm(t.value,e,"",p,""):"",m:p=>p?hm(t.value,e,"","",p):"",be:(p,y)=>p&&y?hm(t.value,e,p,y,""):"",em:(p,y)=>p&&y?hm(t.value,e,"",p,y):"",bm:(p,y)=>p&&y?hm(t.value,e,p,"",y):"",bem:(p,y,b)=>p&&y&&b?hm(t.value,e,p,y,b):"",is:(p,...y)=>{const b=y.length>=1?y[0]:!0;return p&&b?`${Rfe}${p}`:""},cssVar:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${b}`]=p[b]);return y},cssVarName:p=>`--${t.value}-${p}`,cssVarBlock:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${e}-${b}`]=p[b]);return y},cssVarBlockName:p=>`--${t.value}-${e}-${p}`}},xz={prefix:Math.floor(Math.random()*1e4),current:0},Nfe=Symbol("elIdInjection"),Mfe=()=>Lc()?er(Nfe,xz):xz,_C=e=>{const t=Mfe(),n=jp("namespace",jN);return tt(()=>pe(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},lT=()=>{const e=er(WN,void 0),t=er(SW,void 0);return{form:e,formItem:t}},qN=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:i})=>{n||(n=bn(!1)),i||(i=bn(!1));const o=bn();let r;const s=tt(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Oc(()=>{r=to([e0(e,"id"),n],([a,c])=>{const u=a??(c?void 0:_C().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(i!=null&&i.value)&&!c&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),xN(()=>{r&&r(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var Ffe={name:"en",el:{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:"",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"},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"}}};const zfe=e=>(t,n)=>Ufe(t,n,pe(e)),Ufe=(e,t,n)=>fle(n,e,e).replace(/\{(\w+)\}/g,(i,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),Hfe=e=>{const t=tt(()=>pe(e).name),n=So(e)?e:bn(e);return{lang:t,locale:n,t:zfe(e)}},$N=()=>{const e=jp("locale");return Hfe(tt(()=>e.value||Ffe))},IW=e=>{So(e)||Qv("[useLockscreen]","You need to pass a ref param to this function");const t=dr("popup"),n=Q6(()=>t.bm("parent","hidden"));if(!Cc||Ez(document.body,n.value))return;let i=0,o=!1,r="0";const s=()=>{setTimeout(()=>{Xue(document.body,n.value),o&&(document.body.style.width=r)},200)};to(e,a=>{if(!a){s();return}o=!Ez(document.body,n.value),o&&(r=document.body.style.width),i=Jue(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),Yue(document.body,n.value)}),L6(()=>s())},Vfe=(e,t)=>{let n;to(()=>e.value,i=>{var o,r;i?(n=document.activeElement,So(t)&&((r=(o=t.value).focus)==null||r.call(o))):n.focus()})},PW=e=>{if(!e)return{onClick:Bi,onMousedown:Bi,onMouseup:Bi};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}}};let oy=[];const wz=e=>{const t=e;t.key===eD.esc&&oy.forEach(n=>n(t))},kfe=e=>{Oc(()=>{oy.length===0&&document.addEventListener("keydown",wz),Cc&&oy.push(e)}),Wp(()=>{oy=oy.filter(t=>t!==e),oy.length===0&&Cc&&document.removeEventListener("keydown",wz)})},Sz=bn(0),YN=()=>{const e=jp("zIndex",2e3),t=tt(()=>e.value+Sz.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Sz.value++,t.value)}};function Gfe(e){const t=bn();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;if(o==null||r==null)return;const a=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,r));t.value={selectionStart:o,selectionEnd:r,value:s,beforeTxt:a,afterTxt:c}}function i(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:a}=t.value;if(r==null||s==null||a==null)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(r))c=r.length;else{const u=r[a-1],d=o.indexOf(u,a-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,i]}var Cs=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const Wfe=bs({size:{type:Qn([Number,String])},color:{type:String}}),jfe=ci({name:"ElIcon",inheritAttrs:!1}),qfe=ci({...jfe,props:Wfe,setup(e){const t=e,n=dr("icon"),i=tt(()=>{const{size:o,color:r}=t;return!o&&!r?{}:{fontSize:fC(o)?void 0:hC(o),"--color":r}});return(o,r)=>(qe(),Dt("i",cp({class:pe(n).b(),style:pe(i)},o.$attrs),[Zn(o.$slots,"default")],16))}});var $fe=Cs(qfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ss=Wf($fe);let Pl;const Yfe=` height:0 !important; visibility:hidden !important; overflow:hidden !important; @@ -14,19 +14,19 @@ var qne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eht=qne((ff, z-index:-1000 !important; top:0 !important; right:0 !important; -`,Xfe=["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 Kfe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Xfe.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:i,borderSize:o,boxSizing:n}}function vz(e,t=1,n){var i;Pl||(Pl=document.createElement("textarea"),document.body.appendChild(Pl));const{paddingSize:o,borderSize:r,boxSizing:s,contextStyle:a}=Kfe(e);Pl.setAttribute("style",`${a};${Yfe}`),Pl.value=e.value||e.placeholder||"";let c=Pl.scrollHeight;const u={};s==="border-box"?c=c+r:s==="content-box"&&(c=c-o),Pl.value="";const d=Pl.scrollHeight-o;if(wp(t)){let h=d*t;s==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(wp(n)){let h=d*n;s==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(i=Pl.parentNode)==null||i.removeChild(Pl),Pl=void 0,u}const Jfe=bs({id:{type:String,default:void 0},size:cT,disabled:Boolean,modelValue:{type:Qn([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Qn([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:s0},prefixIcon:{type:s0},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:Qn([Object,Array,String]),default:()=>pC({})}}),Qfe={[If]:e=>_i(e),input:e=>_i(e),change:e=>_i(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},Zfe=["role"],ehe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],the=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],nhe=ci({name:"ElInput",inheritAttrs:!1}),ihe=ci({...nhe,props:Jfe,emits:Qfe,setup(e,{expose:t,emit:n}){const i=e,o=Voe(),r=aT(),s=tt(()=>{const Ae={};return i.containerRole==="combobox"&&(Ae["aria-haspopup"]=o["aria-haspopup"],Ae["aria-owns"]=o["aria-owns"],Ae["aria-expanded"]=o["aria-expanded"]),Ae}),a=tt(()=>[i.type==="textarea"?b.b():y.b(),y.m(g.value),y.is("disabled",p.value),y.is("exceed",K.value),{[y.b("group")]:r.prepend||r.append,[y.bm("group","append")]:r.append,[y.bm("group","prepend")]:r.prepend,[y.m("prefix")]:r.prefix||i.prefixIcon,[y.m("suffix")]:r.suffix||i.suffixIcon||i.clearable||i.showPassword,[y.bm("suffix","password-clear")]:V.value&&k.value},o.class]),c=tt(()=>[y.e("wrapper"),y.is("focus",w.value)]),u=Ife({excludeKeys:tt(()=>Object.keys(s.value))}),{form:d,formItem:h}=lT(),{inputId:m}=qN(i,{formItemContext:h}),g=mC(),p=qp(),y=dr("input"),b=dr("textarea"),C=c_(),E=c_(),w=bn(!1),S=bn(!1),P=bn(!1),L=bn(!1),z=bn(),R=c_(i.inputStyle),F=tt(()=>C.value||E.value),U=tt(()=>{var Ae;return(Ae=d==null?void 0:d.statusIcon)!=null?Ae:!1}),D=tt(()=>(h==null?void 0:h.validateState)||""),I=tt(()=>D.value&&Efe[D.value]),_=tt(()=>L.value?ufe:Gde),v=tt(()=>[o.style,i.inputStyle]),O=tt(()=>[i.inputStyle,R.value,{resize:i.resize}]),N=tt(()=>Jv(i.modelValue)?"":String(i.modelValue)),V=tt(()=>i.clearable&&!p.value&&!i.readonly&&!!N.value&&(w.value||S.value)),k=tt(()=>i.showPassword&&!p.value&&!i.readonly&&!!N.value&&(!!N.value||w.value)),G=tt(()=>i.showWordLimit&&!!u.value.maxlength&&(i.type==="text"||i.type==="textarea")&&!p.value&&!i.readonly&&!i.showPassword),W=tt(()=>Array.from(N.value).length),K=tt(()=>!!G.value&&W.value>Number(u.value.maxlength)),q=tt(()=>!!r.suffix||!!i.suffixIcon||V.value||i.showPassword||G.value||!!D.value&&U.value),[te,Y]=Gfe(C);hW(E,Ae=>{if(!G.value||i.resize!=="both")return;const xe=Ae[0],{width:Oe}=xe.contentRect;z.value={right:`calc(100% - ${Oe+15+6}px)`}});const X=()=>{const{type:Ae,autosize:xe}=i;if(!(!bc||Ae!=="textarea"))if(xe){const Oe=Di(xe)?xe.minRows:void 0,Ve=Di(xe)?xe.maxRows:void 0;R.value={...vz(E.value,Oe,Ve)}}else R.value={minHeight:vz(E.value).minHeight}},$=()=>{const Ae=F.value;!Ae||Ae.value===N.value||(Ae.value=N.value)},se=async Ae=>{te();let{value:xe}=Ae.target;if(i.formatter&&(xe=i.parser?i.parser(xe):xe,xe=i.formatter(xe)),!P.value){if(xe===N.value){$();return}n(If,xe),n("input",xe),await us(),$(),Y()}},ue=Ae=>{n("change",Ae.target.value)},re=Ae=>{n("compositionstart",Ae),P.value=!0},he=Ae=>{var xe;n("compositionupdate",Ae);const Oe=(xe=Ae.target)==null?void 0:xe.value,Ve=Oe[Oe.length-1]||"";P.value=!Sfe(Ve)},ce=Ae=>{n("compositionend",Ae),P.value&&(P.value=!1,se(Ae))},Q=()=>{L.value=!L.value,ne()},ne=async()=>{var Ae;await us(),(Ae=F.value)==null||Ae.focus()},de=()=>{var Ae;return(Ae=F.value)==null?void 0:Ae.blur()},_e=Ae=>{w.value=!0,n("focus",Ae)},Se=Ae=>{var xe;w.value=!1,n("blur",Ae),i.validateEvent&&((xe=h==null?void 0:h.validate)==null||xe.call(h,"blur").catch(Oe=>void 0))},ve=Ae=>{S.value=!1,n("mouseleave",Ae)},Le=Ae=>{S.value=!0,n("mouseenter",Ae)},Ee=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=F.value)==null||Ae.select()},Pe=()=>{n(If,""),n("change",""),n("clear"),n("input","")};return to(()=>i.modelValue,()=>{var Ae;us(()=>X()),i.validateEvent&&((Ae=h==null?void 0:h.validate)==null||Ae.call(h,"change").catch(xe=>void 0))}),to(N,()=>$()),to(()=>i.type,async()=>{await us(),$(),X()}),Pc(()=>{!i.formatter&&i.parser,$(),us(X)}),t({input:C,textarea:E,ref:F,textareaStyle:O,autosize:t0(i,"autosize"),focus:ne,blur:de,select:Be,clear:Pe,resizeTextarea:X}),(Ae,xe)=>eu((qe(),Dt("div",cp(pe(s),{class:pe(a),style:pe(v),role:Ae.containerRole,onMouseenter:Le,onMouseleave:ve}),[Mt(" input "),Ae.type!=="textarea"?(qe(),Dt(Jo,{key:0},[Mt(" prepend slot "),Ae.$slots.prepend?(qe(),Dt("div",{key:0,class:st(pe(y).be("group","prepend"))},[Zn(Ae.$slots,"prepend")],2)):Mt("v-if",!0),Vt("div",{class:st(pe(c))},[Mt(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(qe(),Dt("span",{key:0,class:st(pe(y).e("prefix"))},[Vt("span",{class:st(pe(y).e("prefix-inner")),onClick:ne},[Zn(Ae.$slots,"prefix"),Ae.prefixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.prefixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0),Vt("input",cp({id:pe(m),ref_key:"input",ref:C,class:pe(y).e("inner")},pe(u),{type:Ae.showPassword?L.value?"text":"password":Ae.type,disabled:pe(p),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,ehe),Mt(" suffix slot "),pe(q)?(qe(),Dt("span",{key:1,class:st(pe(y).e("suffix"))},[Vt("span",{class:st(pe(y).e("suffix-inner")),onClick:ne},[!pe(V)||!pe(k)||!pe(G)?(qe(),Dt(Jo,{key:0},[Zn(Ae.$slots,"suffix"),Ae.suffixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.suffixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],64)):Mt("v-if",!0),pe(V)?(qe(),Dn(pe(ss),{key:1,class:st([pe(y).e("icon"),pe(y).e("clear")]),onMousedown:ac(pe(Bi),["prevent"]),onClick:Pe},{default:an(()=>[fn(pe(VN))]),_:1},8,["class","onMousedown"])):Mt("v-if",!0),pe(k)?(qe(),Dn(pe(ss),{key:2,class:st([pe(y).e("icon"),pe(y).e("password")]),onClick:Q},{default:an(()=>[(qe(),Dn(Ia(pe(_))))]),_:1},8,["class"])):Mt("v-if",!0),pe(G)?(qe(),Dt("span",{key:3,class:st(pe(y).e("count"))},[Vt("span",{class:st(pe(y).e("count-inner"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),3)],2)):Mt("v-if",!0),pe(D)&&pe(I)&&pe(U)?(qe(),Dn(pe(ss),{key:4,class:st([pe(y).e("icon"),pe(y).e("validateIcon"),pe(y).is("loading",pe(D)==="validating")])},{default:an(()=>[(qe(),Dn(Ia(pe(I))))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0)],2),Mt(" append slot "),Ae.$slots.append?(qe(),Dt("div",{key:1,class:st(pe(y).be("group","append"))},[Zn(Ae.$slots,"append")],2)):Mt("v-if",!0)],64)):(qe(),Dt(Jo,{key:1},[Mt(" textarea "),Vt("textarea",cp({id:pe(m),ref_key:"textarea",ref:E,class:pe(b).e("inner")},pe(u),{tabindex:Ae.tabindex,disabled:pe(p),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:pe(O),"aria-label":Ae.label,placeholder:Ae.placeholder,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,the),pe(G)?(qe(),Dt("span",{key:0,style:Ds(z.value),class:st(pe(y).e("count"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),7)):Mt("v-if",!0)],64))],16,Zfe)),[[u_,Ae.type!=="hidden"]])}});var ohe=Cs(ihe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const OW=Wf(ohe),WI="focus-trap.focus-after-trapped",jI="focus-trap.focus-after-released",rhe="focus-trap.focusout-prevented",Dz={cancelable:!0,bubbles:!1},she={cancelable:!0,bubbles:!1},Iz="focusAfterTrapped",Pz="focusAfterReleased",ahe=Symbol("elFocusTrap"),XN=bn(),tD=bn(0),KN=bn(0);let pE=0;const LW=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Oz=(e,t)=>{for(const n of e)if(!che(n,t))return n},che=(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},lhe=e=>{const t=LW(e),n=Oz(t,e),i=Oz(t.reverse(),e);return[n,i]},uhe=e=>e instanceof HTMLInputElement&&"select"in e,Fh=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),KN.value=window.performance.now(),e!==n&&uhe(e)&&t&&e.select()}};function Lz(e,t){const n=[...e],i=e.indexOf(t);return i!==-1&&n.splice(i,1),n}const dhe=()=>{let e=[];return{push:i=>{const o=e[0];o&&i!==o&&o.pause(),e=Lz(e,i),e.unshift(i)},remove:i=>{var o,r;e=Lz(e,i),(r=(o=e[0])==null?void 0:o.resume)==null||r.call(o)}}},fhe=(e,t=!1)=>{const n=document.activeElement;for(const i of e)if(Fh(i,t),document.activeElement!==n)return},Bz=dhe(),hhe=()=>tD.value>KN.value,mE=()=>{XN.value="pointer",tD.value=window.performance.now()},Rz=()=>{XN.value="keyboard",tD.value=window.performance.now()},phe=()=>(Pc(()=>{pE===0&&(document.addEventListener("mousedown",mE),document.addEventListener("touchstart",mE),document.addEventListener("keydown",Rz)),pE++}),Wp(()=>{pE--,pE<=0&&(document.removeEventListener("mousedown",mE),document.removeEventListener("touchstart",mE),document.removeEventListener("keydown",Rz))}),{focusReason:XN,lastUserFocusTimestamp:tD,lastAutomatedFocusTimestamp:KN}),_E=e=>new CustomEvent(rhe,{...she,detail:e}),mhe=ci({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Iz,Pz,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=bn();let i,o;const{focusReason:r}=phe();kfe(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:y,altKey:b,ctrlKey:C,metaKey:E,currentTarget:w,shiftKey:S}=p,{loop:P}=e,L=y===eD.tab&&!b&&!C&&!E,z=document.activeElement;if(L&&z){const R=w,[F,U]=lhe(R);if(F&&U){if(!S&&z===U){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(F,!0))}else if(S&&[F,R].includes(z)){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(U,!0))}}else if(z===R){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};nd(ahe,{focusTrapRef:n,onKeydown:a}),to(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),to([n],([p],[y])=>{p&&(p.addEventListener("keydown",a),p.addEventListener("focusin",d),p.addEventListener("focusout",h)),y&&(y.removeEventListener("keydown",a),y.removeEventListener("focusin",d),y.removeEventListener("focusout",h))});const c=p=>{t(Iz,p)},u=p=>t(Pz,p),d=p=>{const y=pe(n);if(!y)return;const b=p.target,C=p.relatedTarget,E=b&&y.contains(b);e.trapped||C&&y.contains(C)||(i=C),E&&t("focusin",p),!s.paused&&e.trapped&&(E?o=b:Fh(o,!0))},h=p=>{const y=pe(n);if(!(s.paused||!y))if(e.trapped){const b=p.relatedTarget;!Jv(b)&&!y.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const C=_E({focusReason:r.value});t("focusout-prevented",C),C.defaultPrevented||Fh(o,!0)}},0)}else{const b=p.target;b&&y.contains(b)||t("focusout",p)}};async function m(){await us();const p=pe(n);if(p){Bz.push(s);const y=p.contains(document.activeElement)?i:document.activeElement;if(i=y,!p.contains(y)){const C=new Event(WI,Dz);p.addEventListener(WI,c),p.dispatchEvent(C),C.defaultPrevented||us(()=>{let E=e.focusStartEl;_i(E)||(Fh(E),document.activeElement!==E&&(E="first")),E==="first"&&fhe(LW(p),!0),(document.activeElement===y||E==="container")&&Fh(p)})}}}function g(){const p=pe(n);if(p){p.removeEventListener(WI,c);const y=new CustomEvent(jI,{...Dz,detail:{focusReason:r.value}});p.addEventListener(jI,u),p.dispatchEvent(y),!y.defaultPrevented&&(r.value=="keyboard"||!hhe())&&Fh(i??document.body),p.removeEventListener(jI,c),Bz.remove(s)}}return Pc(()=>{e.trapped&&m(),to(()=>e.trapped,p=>{p?m():g()})}),Wp(()=>{e.trapped&&g()}),{onKeydown:a}}});function _he(e,t,n,i,o,r){return Zn(e.$slots,"default",{handleKeydown:e.onKeydown})}var BW=Cs(mhe,[["render",_he],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ghe=bs({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"}}),yhe=["textContent"],Ahe=ci({name:"ElBadge"}),bhe=ci({...Ahe,props:ghe,setup(e,{expose:t}){const n=e,i=dr("badge"),o=tt(()=>n.isDot?"":wp(n.value)&&wp(n.max)?n.max(qe(),Dt("div",{class:st(pe(i).b())},[Zn(r.$slots,"default"),fn(v0,{name:`${pe(i).namespace.value}-zoom-in-center`,persisted:""},{default:an(()=>[eu(Vt("sup",{class:st([pe(i).e("content"),pe(i).em("content",r.type),pe(i).is("fixed",!!r.$slots.default),pe(i).is("dot",r.isDot)]),textContent:Pr(pe(o))},null,10,yhe),[[u_,!r.hidden&&(pe(o)||r.isDot)]])]),_:1},8,["name"])],2))}});var Che=Cs(bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const The=Wf(Che),Ehe=(e,t)=>{KL({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},tt(()=>e.type==="text"));const n=er(xW,void 0),i=jp("button"),{form:o}=lT(),r=mC(tt(()=>n==null?void 0:n.size)),s=qp(),a=bn(),c=aT(),u=tt(()=>e.type||(n==null?void 0:n.type)||""),d=tt(()=>{var g,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(g=i.value)==null?void 0:g.autoInsertSpace)!=null?y:!1}),h=tt(()=>{var g;const p=(g=c.default)==null?void 0:g.call(c);if(d.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===sT){const b=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(b.trim())}}return!1});return{_disabled:s,_size:r,_type:u,_ref:a,shouldAddSpace:h,handleClick:g=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",g)}}},xhe=["default","primary","success","warning","info","danger","text",""],whe=["button","submit","reset"],JL=bs({size:cT,disabled:Boolean,type:{type:String,values:xhe,default:""},icon:{type:s0},nativeType:{type:String,values:whe,default:"button"},loading:Boolean,loadingIcon:{type:s0,default:()=>yW},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),She={click:e=>e instanceof MouseEvent};function Ls(e,t){vhe(e)&&(e="100%");var n=Dhe(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 gE(e){return Math.min(1,Math.max(0,e))}function vhe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dhe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function RW(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yE(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zm(e){return e.length===1?"0"+e:String(e)}function Ihe(e,t,n){return{r:Ls(e,255)*255,g:Ls(t,255)*255,b:Ls(n,255)*255}}function Nz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=0,a=(i+o)/2;if(i===o)s=0,r=0;else{var c=i-o;switch(s=a>.5?c/(2-i-o):c/(i+o),i){case e:r=(t-n)/c+(t1&&(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 Phe(e,t,n){var i,o,r;if(e=Ls(e,360),t=Ls(t,100),n=Ls(n,100),t===0)o=n,r=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;i=qI(a,s,e+1/3),o=qI(a,s,e),r=qI(a,s,e-1/3)}return{r:i*255,g:o*255,b:r*255}}function Mz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=i,a=i-o,c=i===0?0:a/i;if(i===o)r=0;else{switch(i){case e:r=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var QL={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 Nhe(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,r=null,s=!1,a=!1;return typeof e=="string"&&(e=zhe(e)),typeof e=="object"&&(Ud(e.r)&&Ud(e.g)&&Ud(e.b)?(t=Ihe(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ud(e.h)&&Ud(e.s)&&Ud(e.v)?(i=yE(e.s),o=yE(e.v),t=Ohe(e.h,i,o),s=!0,a="hsv"):Ud(e.h)&&Ud(e.s)&&Ud(e.l)&&(i=yE(e.s),r=yE(e.l),t=Phe(e.h,i,r),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=RW(n),{ok:s,format:e.format||a,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 Mhe="[-\\+]?\\d+%?",Fhe="[-\\+]?\\d*\\.\\d+%?",Kh="(?:".concat(Fhe,")|(?:").concat(Mhe,")"),$I="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),YI="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),zl={CSS_UNIT:new RegExp(Kh),rgb:new RegExp("rgb"+$I),rgba:new RegExp("rgba"+YI),hsl:new RegExp("hsl"+$I),hsla:new RegExp("hsla"+YI),hsv:new RegExp("hsv"+$I),hsva:new RegExp("hsva"+YI),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 zhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(QL[e])e=QL[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zl.hex8.exec(e),n?{r:Za(n[1]),g:Za(n[2]),b:Za(n[3]),a:zz(n[4]),format:t?"name":"hex8"}:(n=zl.hex6.exec(e),n?{r:Za(n[1]),g:Za(n[2]),b:Za(n[3]),format:t?"name":"hex"}:(n=zl.hex4.exec(e),n?{r:Za(n[1]+n[1]),g:Za(n[2]+n[2]),b:Za(n[3]+n[3]),a:zz(n[4]+n[4]),format:t?"name":"hex8"}:(n=zl.hex3.exec(e),n?{r:Za(n[1]+n[1]),g:Za(n[2]+n[2]),b:Za(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ud(e){return Boolean(zl.CSS_UNIT.exec(String(e)))}var Uhe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=Rhe(t)),this.originalInput=t;var o=Nhe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.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=o.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,i,o,r=t.r/255,s=t.g/255,a=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=RW(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=Mz(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=Mz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nz(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=Nz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fz(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),Lhe(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.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),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ls(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(Ls(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="#"+Fz(this.r,this.g,this.b,!1),n=0,i=Object.entries(QL);n=0,r=!n&&o&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||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=gE(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=gE(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=gE(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=gE(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),r=n/100,s={r:(o.r-i.r)*r+i.r,g:(o.g-i.g)*r+i.g,b:(o.b-i.b)*r+i.b,a:(o.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,r=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,r.push(new e(i));return r},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(),i=n.h,o=n.s,r=n.v,s=[],a=1/t;t--;)s.push(new e({h:i,s:o,v:r})),r=(r+a)%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(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.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(),i=n.h,o=[this],r=360/t,s=1;s{let i={};const o=e.color;if(o){const r=new Uhe(o),s=e.dark?r.tint(20).toString():ph(r,20);if(e.plain)i=n.cssVarBlock({"bg-color":e.dark?ph(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?ph(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(i[n.cssVarBlockName("disabled-bg-color")]=e.dark?ph(r,90):r.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=e.dark?ph(r,50):r.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=e.dark?ph(r,80):r.tint(80).toString());else{const a=e.dark?ph(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?ph(r,50):r.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=u,i[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=u}}}return i})}const Vhe=["aria-disabled","disabled","autofocus","type"],khe=ci({name:"ElButton"}),Ghe=ci({...khe,props:JL,emits:She,setup(e,{expose:t,emit:n}){const i=e,o=Hhe(i),r=dr("button"),{_ref:s,_size:a,_type:c,_disabled:u,shouldAddSpace:d,handleClick:h}=Ehe(i,n);return t({ref:s,size:a,type:c,disabled:u,shouldAddSpace:d}),(m,g)=>(qe(),Dt("button",{ref_key:"_ref",ref:s,class:st([pe(r).b(),pe(r).m(pe(c)),pe(r).m(pe(a)),pe(r).is("disabled",pe(u)),pe(r).is("loading",m.loading),pe(r).is("plain",m.plain),pe(r).is("round",m.round),pe(r).is("circle",m.circle),pe(r).is("text",m.text),pe(r).is("link",m.link),pe(r).is("has-bg",m.bg)]),"aria-disabled":pe(u)||m.loading,disabled:pe(u)||m.loading,autofocus:m.autofocus,type:m.nativeType,style:Ds(pe(o)),onClick:g[0]||(g[0]=(...p)=>pe(h)&&pe(h)(...p))},[m.loading?(qe(),Dt(Jo,{key:0},[m.$slots.loading?Zn(m.$slots,"loading",{key:0}):(qe(),Dn(pe(ss),{key:1,class:st(pe(r).is("loading"))},{default:an(()=>[(qe(),Dn(Ia(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[m.icon?(qe(),Dn(Ia(m.icon),{key:0})):Zn(m.$slots,"icon",{key:1})]),_:3})):Mt("v-if",!0),m.$slots.default?(qe(),Dt("span",{key:2,class:st({[pe(r).em("text","expand")]:pe(d)})},[Zn(m.$slots,"default")],2)):Mt("v-if",!0)],14,Vhe))}});var Whe=Cs(Ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const jhe={size:JL.size,type:JL.type},qhe=ci({name:"ElButtonGroup"}),$he=ci({...qhe,props:jhe,setup(e){const t=e;nd(xW,W_({size:t0(t,"size"),type:t0(t,"type")}));const n=dr("button");return(i,o)=>(qe(),Dt("div",{class:st(`${pe(n).b("group")}`)},[Zn(i.$slots,"default")],2))}});var NW=Cs($he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const MW=Wf(Whe,{ButtonGroup:NW});GN(NW);var Ry=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const ZL="_trap-focus-children",e_=[],Uz=e=>{if(e_.length===0)return;const t=e_[e_.length-1][ZL];if(t.length>0&&e.code===eD.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,i=e.target===t[0],o=e.target===t[t.length-1];i&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},Yhe={beforeMount(e){e[ZL]=_z(e),e_.push(e),e_.length<=1&&document.addEventListener("keydown",Uz)},updated(e){us(()=>{e[ZL]=_z(e)})},unmounted(){e_.shift(),e_.length===0&&document.removeEventListener("keydown",Uz)}},FW={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,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:cT,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},zW={[If]:e=>_i(e)||wp(e)||PS(e),change:e=>_i(e)||wp(e)||PS(e)},Xhe=({model:e,isChecked:t})=>{const n=er(I0,void 0),i=tt(()=>{var r,s;const a=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(s=n==null?void 0:n.min)==null?void 0:s.value;return!fC(a)&&e.value.length>=a&&!t.value||!fC(c)&&e.value.length<=c&&t.value});return{isDisabled:qp(tt(()=>(n==null?void 0:n.disabled.value)||i.value)),isLimitDisabled:i}},Khe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:i,isDisabled:o,isLabeledByFormItem:r})=>{const s=er(I0,void 0),{formItem:a}=lT(),{emit:c}=Oc();function u(p){var y,b;return p===e.trueLabel||p===!0?(y=e.trueLabel)!=null?y:!0:(b=e.falseLabel)!=null?b:!1}function d(p,y){c("change",u(p),y)}function h(p){if(n.value)return;const y=p.target;c("change",u(y.checked),p)}async function m(p){n.value||!i.value&&!o.value&&r.value&&(p.composedPath().some(C=>C.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await us(),d(t.value,p)))}const g=tt(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return to(()=>e.modelValue,()=>{g.value&&(a==null||a.validate("change").catch(p=>void 0))}),{handleChange:h,onClickRoot:m}},Jhe=e=>{const t=bn(!1),{emit:n}=Oc(),i=er(I0,void 0),o=tt(()=>fC(i)===!1),r=bn(!1);return{model:tt({get(){var a,c;return o.value?(a=i==null?void 0:i.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c,u;o.value&&Yt(a)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&a.length>(i==null?void 0:i.max.value),r.value===!1&&((u=i==null?void 0:i.changeEvent)==null||u.call(i,a))):(n(If,a),t.value=a)}}),isGroup:o,isLimitExceeded:r}},Qhe=(e,t,{model:n})=>{const i=er(I0,void 0),o=bn(!1),r=tt(()=>{const u=n.value;return PS(u)?u:Yt(u)?Di(e.label)?u.map(Ci).some(d=>yue(d,e.label)):u.map(Ci).includes(e.label):u!=null?u===e.trueLabel:!!u}),s=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value}),{prop:!0}),a=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value})),c=tt(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:r,isFocused:o,checkboxSize:a,hasOwnLabel:c}},Zhe=(e,{model:t})=>{function n(){Yt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},UW=(e,t)=>{const{formItem:n}=lT(),{model:i,isGroup:o,isLimitExceeded:r}=Jhe(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=Qhe(e,t,{model:i}),{isDisabled:h}=Xhe({model:i,isChecked:a}),{inputId:m,isLabeledByFormItem:g}=qN(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:p,onClickRoot:y}=Khe(e,{model:i,isLimitExceeded:r,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:g});return Zhe(e,{model:i}),{inputId:m,isLabeledByFormItem:g,isChecked:a,isDisabled:h,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:i,handleChange:p,onClickRoot:y}},epe=["tabindex","role","aria-checked"],tpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],npe=["id","aria-hidden","disabled","value","name","tabindex"],ipe=ci({name:"ElCheckbox"}),ope=ci({...ipe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{inputId:i,isLabeledByFormItem:o,isChecked:r,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:h,onClickRoot:m}=UW(t,n),g=dr("checkbox"),p=tt(()=>[g.b(),g.m(c.value),g.is("disabled",s.value),g.is("bordered",t.border),g.is("checked",r.value)]),y=tt(()=>[g.e("input"),g.is("disabled",s.value),g.is("checked",r.value),g.is("indeterminate",t.indeterminate),g.is("focus",a.value)]);return(b,C)=>(qe(),Dn(Ia(!pe(u)&&pe(o)?"span":"label"),{class:st(pe(p)),"aria-controls":b.indeterminate?b.controls:null,onClick:pe(m)},{default:an(()=>[Vt("span",{class:st(pe(y)),tabindex:b.indeterminate?0:void 0,role:b.indeterminate?"checkbox":void 0,"aria-checked":b.indeterminate?"mixed":void 0},[b.trueLabel||b.falseLabel?eu((qe(),Dt("input",{key:0,id:pe(i),"onUpdate:modelValue":C[0]||(C[0]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",name:b.name,tabindex:b.tabindex,disabled:pe(s),"true-value":b.trueLabel,"false-value":b.falseLabel,onChange:C[1]||(C[1]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[2]||(C[2]=E=>a.value=!0),onBlur:C[3]||(C[3]=E=>a.value=!1)},null,42,tpe)),[[xS,pe(d)]]):eu((qe(),Dt("input",{key:1,id:pe(i),"onUpdate:modelValue":C[4]||(C[4]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",disabled:pe(s),value:b.label,name:b.name,tabindex:b.tabindex,onChange:C[5]||(C[5]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[6]||(C[6]=E=>a.value=!0),onBlur:C[7]||(C[7]=E=>a.value=!1)},null,42,npe)),[[xS,pe(d)]]),Vt("span",{class:st(pe(g).e("inner"))},null,2)],10,epe),pe(u)?(qe(),Dt("span",{key:0,class:st(pe(g).e("label"))},[Zn(b.$slots,"default"),b.$slots.default?Mt("v-if",!0):(qe(),Dt(Jo,{key:0},[$l(Pr(b.label),1)],64))],2)):Mt("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var rpe=Cs(ope,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const spe=["name","tabindex","disabled","true-value","false-value"],ape=["name","tabindex","disabled","value"],cpe=ci({name:"ElCheckboxButton"}),lpe=ci({...cpe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{isFocused:i,isChecked:o,isDisabled:r,checkboxButtonSize:s,model:a,handleChange:c}=UW(t,n),u=er(I0,void 0),d=dr("checkbox"),h=tt(()=>{var g,p,y,b;const C=(p=(g=u==null?void 0:u.fill)==null?void 0:g.value)!=null?p:"";return{backgroundColor:C,borderColor:C,color:(b=(y=u==null?void 0:u.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),m=tt(()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",r.value),d.is("checked",o.value),d.is("focus",i.value)]);return(g,p)=>(qe(),Dt("label",{class:st(pe(m))},[g.trueLabel||g.falseLabel?eu((qe(),Dt("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:p[1]||(p[1]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[2]||(p[2]=y=>i.value=!0),onBlur:p[3]||(p[3]=y=>i.value=!1)},null,42,spe)),[[xS,pe(a)]]):eu((qe(),Dt("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),value:g.label,onChange:p[5]||(p[5]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[6]||(p[6]=y=>i.value=!0),onBlur:p[7]||(p[7]=y=>i.value=!1)},null,42,ape)),[[xS,pe(a)]]),g.$slots.default||g.label?(qe(),Dt("span",{key:2,class:st(pe(d).be("button","inner")),style:Ds(pe(o)?pe(h):void 0)},[Zn(g.$slots,"default",{},()=>[$l(Pr(g.label),1)])],6)):Mt("v-if",!0)],2))}});var HW=Cs(lpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const upe=bs({modelValue:{type:Qn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:cT,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),dpe={[If]:e=>Yt(e),change:e=>Yt(e)},fpe=ci({name:"ElCheckboxGroup"}),hpe=ci({...fpe,props:upe,emits:dpe,setup(e,{emit:t}){const n=e,i=dr("checkbox"),{formItem:o}=lT(),{inputId:r,isLabeledByFormItem:s}=qN(n,{formItemContext:o}),a=async u=>{t(If,u),await us(),t("change",u)},c=tt({get(){return n.modelValue},set(u){a(u)}});return nd(I0,{...Eue(K6(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),to(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var h;return qe(),Dn(Ia(u.tag),{id:pe(r),class:st(pe(i).b("group")),role:"group","aria-label":pe(s)?void 0:u.label||"checkbox-group","aria-labelledby":pe(s)?(h=pe(o))==null?void 0:h.labelId:void 0},{default:an(()=>[Zn(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var VW=Cs(hpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ppe=Wf(rpe,{CheckboxButton:HW,CheckboxGroup:VW});GN(HW);const mpe=GN(VW),eB={},_pe=bs({a11y:{type:Boolean,default:!0},locale:{type:Qn(Object)},size:cT,button:{type:Qn(Object)},experimentalFeatures:{type:Qn(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Qn(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ci({name:"ElConfigProvider",props:_pe,setup(e,{slots:t}){to(()=>e.message,i=>{Object.assign(eB,i??{})},{immediate:!0,deep:!0});const n=Ofe(e);return()=>Zn(t,"default",{config:n==null?void 0:n.value})}});const gpe=bs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Qn([String,Array,Object])},zIndex:{type:Qn([String,Number])}}),ype={click:e=>e instanceof MouseEvent};var Ape=ci({name:"ElOverlay",props:gpe,emits:ype,setup(e,{slots:t,emit:n}){const i=dr("overlay"),o=c=>{n("click",c)},{onClick:r,onMousedown:s,onMouseup:a}=PW(e.customMaskEvent?void 0:o);return()=>e.mask?fn("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:a},[Zn(t,"default")],vw.STYLE|vw.CLASS|vw.PROPS,["onClick","onMouseup","onMousedown"]):qv("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Zn(t,"default")])}});const kW=Ape,bpe=bs({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:s0},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Cpe=bs({...bpe,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Qn(Function)},destroyOnClose:{type:Boolean,default:!1},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:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Tpe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[If]:e=>PS(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Epe=(e,t)=>{const i=Oc().emit,{nextZIndex:o}=YN();let r="";const s=_C(),a=_C(),c=bn(!1),u=bn(!1),d=bn(!1),h=bn(e.zIndex||o());let m,g;const p=jp("namespace",jN),y=tt(()=>{const v={},O=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(v[`${O}-margin-top`]=e.top),e.width&&(v[`${O}-width`]=hC(e.width))),v}),b=tt(()=>e.alignCenter?{display:"flex"}:{});function C(){i("opened")}function E(){i("closed"),i(If,!1),e.destroyOnClose&&(d.value=!1)}function w(){i("close")}function S(){g==null||g(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=qL(()=>R(),e.openDelay):R()}function P(){m==null||m(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=qL(()=>F(),e.closeDelay):F()}function L(){function v(O){O||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(v):P()}function z(){e.closeOnClickModal&&L()}function R(){bc&&(c.value=!0)}function F(){c.value=!1}function U(){i("openAutoFocus")}function D(){i("closeAutoFocus")}function I(v){var O;((O=v.detail)==null?void 0:O.focusReason)==="pointer"&&v.preventDefault()}e.lockScroll&&IW(c);function _(){e.closeOnPressEscape&&L()}return to(()=>e.modelValue,v=>{v?(u.value=!1,S(),d.value=!0,h.value=e.zIndex?h.value++:o(),us(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):c.value&&P()}),to(()=>e.fullscreen,v=>{t.value&&(v?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),Pc(()=>{e.modelValue&&(c.value=!0,d.value=!0,S())}),{afterEnter:C,afterLeave:E,beforeLeave:w,handleClose:L,onModalClick:z,close:P,doClose:F,onOpenAutoFocus:U,onCloseAutoFocus:D,onCloseRequested:_,onFocusoutPrevented:I,titleId:s,bodyId:a,closed:u,style:y,overlayDialogStyle:b,rendered:d,visible:c,zIndex:h}},xpe=bs({...Cpe,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}}),wpe=Tpe,Spe=ci({name:"ElDrawer",components:{ElOverlay:kW,ElFocusTrap:BW,ElIcon:ss,Close:Zv},inheritAttrs:!1,props:xpe,emits:wpe,setup(e,{slots:t}){KL({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"},tt(()=>!!t.title)),KL({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},tt(()=>!!e.customClass));const n=bn(),i=bn(),o=dr("drawer"),{t:r}=$N(),s=tt(()=>e.direction==="rtl"||e.direction==="ltr"),a=tt(()=>hC(e.size));return{...Epe(e,n),drawerRef:n,focusStartRef:i,isHorizontal:s,drawerSize:a,ns:o,t:r}}}),vpe=["aria-label","aria-labelledby","aria-describedby"],Dpe=["id"],Ipe=["aria-label"],Ppe=["id"];function Ope(e,t,n,i,o,r){const s=Wu("close"),a=Wu("el-icon"),c=Wu("el-focus-trap"),u=Wu("el-overlay");return qe(),Dn(Ioe,{to:"body",disabled:!e.appendToBody},[fn(v0,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:an(()=>[eu(fn(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:an(()=>[fn(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",cp({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=ac(()=>{},["stop"]))}),[Vt("span",{ref:"focusStartRef",class:st(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(qe(),Dt("header",{key:0,class:st(e.ns.e("header"))},[e.$slots.title?Zn(e.$slots,"title",{key:1},()=>[Mt(" DEPRECATED SLOT ")]):Zn(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Mt("v-if",!0):(qe(),Dt("span",{key:0,id:e.titleId,role:"heading",class:st(e.ns.e("title"))},Pr(e.title),11,Dpe))]),e.showClose?(qe(),Dt("button",{key:2,"aria-label":e.t("el.drawer.close"),class:st(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[fn(a,{class:st(e.ns.e("close"))},{default:an(()=>[fn(s)]),_:1},8,["class"])],10,Ipe)):Mt("v-if",!0)],2)):Mt("v-if",!0),e.rendered?(qe(),Dt("div",{key:1,id:e.bodyId,class:st(e.ns.e("body"))},[Zn(e.$slots,"default")],10,Ppe)):Mt("v-if",!0),e.$slots.footer?(qe(),Dt("div",{key:2,class:st(e.ns.e("footer"))},[Zn(e.$slots,"footer")],2)):Mt("v-if",!0)],16,vpe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[u_,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Lpe=Cs(Spe,[["render",Ope],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Bpe=Wf(Lpe),Rpe=bs({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:Qn(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Qn([String,Array,Function]),default:""},format:{type:Qn(Function),default:e=>`${e}%`}}),Npe=["aria-valuenow"],Mpe={viewBox:"0 0 100 100"},Fpe=["d","stroke","stroke-width"],zpe=["d","stroke","opacity","stroke-linecap","stroke-width"],Upe={key:0},Hpe=ci({name:"ElProgress"}),Vpe=ci({...Hpe,props:Rpe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=dr("progress"),o=tt(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:E(t.percentage)})),r=tt(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=tt(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),a=tt(()=>{const w=s.value,S=t.type==="dashboard";return` +`,Xfe=["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 Kfe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Xfe.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:i,borderSize:o,boxSizing:n}}function vz(e,t=1,n){var i;Pl||(Pl=document.createElement("textarea"),document.body.appendChild(Pl));const{paddingSize:o,borderSize:r,boxSizing:s,contextStyle:a}=Kfe(e);Pl.setAttribute("style",`${a};${Yfe}`),Pl.value=e.value||e.placeholder||"";let c=Pl.scrollHeight;const u={};s==="border-box"?c=c+r:s==="content-box"&&(c=c-o),Pl.value="";const d=Pl.scrollHeight-o;if(wp(t)){let h=d*t;s==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(wp(n)){let h=d*n;s==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(i=Pl.parentNode)==null||i.removeChild(Pl),Pl=void 0,u}const Jfe=bs({id:{type:String,default:void 0},size:cT,disabled:Boolean,modelValue:{type:Qn([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Qn([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:r0},prefixIcon:{type:r0},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:Qn([Object,Array,String]),default:()=>pC({})}}),Qfe={[If]:e=>_i(e),input:e=>_i(e),change:e=>_i(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},Zfe=["role"],ehe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],the=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],nhe=ci({name:"ElInput",inheritAttrs:!1}),ihe=ci({...nhe,props:Jfe,emits:Qfe,setup(e,{expose:t,emit:n}){const i=e,o=Voe(),r=aT(),s=tt(()=>{const Ae={};return i.containerRole==="combobox"&&(Ae["aria-haspopup"]=o["aria-haspopup"],Ae["aria-owns"]=o["aria-owns"],Ae["aria-expanded"]=o["aria-expanded"]),Ae}),a=tt(()=>[i.type==="textarea"?b.b():y.b(),y.m(g.value),y.is("disabled",p.value),y.is("exceed",K.value),{[y.b("group")]:r.prepend||r.append,[y.bm("group","append")]:r.append,[y.bm("group","prepend")]:r.prepend,[y.m("prefix")]:r.prefix||i.prefixIcon,[y.m("suffix")]:r.suffix||i.suffixIcon||i.clearable||i.showPassword,[y.bm("suffix","password-clear")]:V.value&&k.value},o.class]),c=tt(()=>[y.e("wrapper"),y.is("focus",w.value)]),u=Ife({excludeKeys:tt(()=>Object.keys(s.value))}),{form:d,formItem:h}=lT(),{inputId:m}=qN(i,{formItemContext:h}),g=mC(),p=qp(),y=dr("input"),b=dr("textarea"),C=c_(),E=c_(),w=bn(!1),S=bn(!1),P=bn(!1),L=bn(!1),z=bn(),R=c_(i.inputStyle),F=tt(()=>C.value||E.value),U=tt(()=>{var Ae;return(Ae=d==null?void 0:d.statusIcon)!=null?Ae:!1}),D=tt(()=>(h==null?void 0:h.validateState)||""),I=tt(()=>D.value&&Efe[D.value]),_=tt(()=>L.value?ufe:Gde),v=tt(()=>[o.style,i.inputStyle]),O=tt(()=>[i.inputStyle,R.value,{resize:i.resize}]),N=tt(()=>Jv(i.modelValue)?"":String(i.modelValue)),V=tt(()=>i.clearable&&!p.value&&!i.readonly&&!!N.value&&(w.value||S.value)),k=tt(()=>i.showPassword&&!p.value&&!i.readonly&&!!N.value&&(!!N.value||w.value)),G=tt(()=>i.showWordLimit&&!!u.value.maxlength&&(i.type==="text"||i.type==="textarea")&&!p.value&&!i.readonly&&!i.showPassword),W=tt(()=>Array.from(N.value).length),K=tt(()=>!!G.value&&W.value>Number(u.value.maxlength)),q=tt(()=>!!r.suffix||!!i.suffixIcon||V.value||i.showPassword||G.value||!!D.value&&U.value),[te,Y]=Gfe(C);hW(E,Ae=>{if(!G.value||i.resize!=="both")return;const xe=Ae[0],{width:Oe}=xe.contentRect;z.value={right:`calc(100% - ${Oe+15+6}px)`}});const X=()=>{const{type:Ae,autosize:xe}=i;if(!(!Cc||Ae!=="textarea"))if(xe){const Oe=Di(xe)?xe.minRows:void 0,Ve=Di(xe)?xe.maxRows:void 0;R.value={...vz(E.value,Oe,Ve)}}else R.value={minHeight:vz(E.value).minHeight}},$=()=>{const Ae=F.value;!Ae||Ae.value===N.value||(Ae.value=N.value)},se=async Ae=>{te();let{value:xe}=Ae.target;if(i.formatter&&(xe=i.parser?i.parser(xe):xe,xe=i.formatter(xe)),!P.value){if(xe===N.value){$();return}n(If,xe),n("input",xe),await us(),$(),Y()}},ue=Ae=>{n("change",Ae.target.value)},re=Ae=>{n("compositionstart",Ae),P.value=!0},he=Ae=>{var xe;n("compositionupdate",Ae);const Oe=(xe=Ae.target)==null?void 0:xe.value,Ve=Oe[Oe.length-1]||"";P.value=!Sfe(Ve)},ce=Ae=>{n("compositionend",Ae),P.value&&(P.value=!1,se(Ae))},Q=()=>{L.value=!L.value,ne()},ne=async()=>{var Ae;await us(),(Ae=F.value)==null||Ae.focus()},de=()=>{var Ae;return(Ae=F.value)==null?void 0:Ae.blur()},_e=Ae=>{w.value=!0,n("focus",Ae)},Se=Ae=>{var xe;w.value=!1,n("blur",Ae),i.validateEvent&&((xe=h==null?void 0:h.validate)==null||xe.call(h,"blur").catch(Oe=>void 0))},ve=Ae=>{S.value=!1,n("mouseleave",Ae)},Le=Ae=>{S.value=!0,n("mouseenter",Ae)},Ee=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=F.value)==null||Ae.select()},Pe=()=>{n(If,""),n("change",""),n("clear"),n("input","")};return to(()=>i.modelValue,()=>{var Ae;us(()=>X()),i.validateEvent&&((Ae=h==null?void 0:h.validate)==null||Ae.call(h,"change").catch(xe=>void 0))}),to(N,()=>$()),to(()=>i.type,async()=>{await us(),$(),X()}),Oc(()=>{!i.formatter&&i.parser,$(),us(X)}),t({input:C,textarea:E,ref:F,textareaStyle:O,autosize:e0(i,"autosize"),focus:ne,blur:de,select:Be,clear:Pe,resizeTextarea:X}),(Ae,xe)=>eu((qe(),Dt("div",cp(pe(s),{class:pe(a),style:pe(v),role:Ae.containerRole,onMouseenter:Le,onMouseleave:ve}),[Mt(" input "),Ae.type!=="textarea"?(qe(),Dt(Jo,{key:0},[Mt(" prepend slot "),Ae.$slots.prepend?(qe(),Dt("div",{key:0,class:st(pe(y).be("group","prepend"))},[Zn(Ae.$slots,"prepend")],2)):Mt("v-if",!0),Vt("div",{class:st(pe(c))},[Mt(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(qe(),Dt("span",{key:0,class:st(pe(y).e("prefix"))},[Vt("span",{class:st(pe(y).e("prefix-inner")),onClick:ne},[Zn(Ae.$slots,"prefix"),Ae.prefixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.prefixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0),Vt("input",cp({id:pe(m),ref_key:"input",ref:C,class:pe(y).e("inner")},pe(u),{type:Ae.showPassword?L.value?"text":"password":Ae.type,disabled:pe(p),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,ehe),Mt(" suffix slot "),pe(q)?(qe(),Dt("span",{key:1,class:st(pe(y).e("suffix"))},[Vt("span",{class:st(pe(y).e("suffix-inner")),onClick:ne},[!pe(V)||!pe(k)||!pe(G)?(qe(),Dt(Jo,{key:0},[Zn(Ae.$slots,"suffix"),Ae.suffixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.suffixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],64)):Mt("v-if",!0),pe(V)?(qe(),Dn(pe(ss),{key:1,class:st([pe(y).e("icon"),pe(y).e("clear")]),onMousedown:cc(pe(Bi),["prevent"]),onClick:Pe},{default:an(()=>[fn(pe(VN))]),_:1},8,["class","onMousedown"])):Mt("v-if",!0),pe(k)?(qe(),Dn(pe(ss),{key:2,class:st([pe(y).e("icon"),pe(y).e("password")]),onClick:Q},{default:an(()=>[(qe(),Dn(Ia(pe(_))))]),_:1},8,["class"])):Mt("v-if",!0),pe(G)?(qe(),Dt("span",{key:3,class:st(pe(y).e("count"))},[Vt("span",{class:st(pe(y).e("count-inner"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),3)],2)):Mt("v-if",!0),pe(D)&&pe(I)&&pe(U)?(qe(),Dn(pe(ss),{key:4,class:st([pe(y).e("icon"),pe(y).e("validateIcon"),pe(y).is("loading",pe(D)==="validating")])},{default:an(()=>[(qe(),Dn(Ia(pe(I))))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0)],2),Mt(" append slot "),Ae.$slots.append?(qe(),Dt("div",{key:1,class:st(pe(y).be("group","append"))},[Zn(Ae.$slots,"append")],2)):Mt("v-if",!0)],64)):(qe(),Dt(Jo,{key:1},[Mt(" textarea "),Vt("textarea",cp({id:pe(m),ref_key:"textarea",ref:E,class:pe(b).e("inner")},pe(u),{tabindex:Ae.tabindex,disabled:pe(p),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:pe(O),"aria-label":Ae.label,placeholder:Ae.placeholder,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,the),pe(G)?(qe(),Dt("span",{key:0,style:Ds(z.value),class:st(pe(y).e("count"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),7)):Mt("v-if",!0)],64))],16,Zfe)),[[u_,Ae.type!=="hidden"]])}});var ohe=Cs(ihe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const OW=Wf(ohe),WI="focus-trap.focus-after-trapped",jI="focus-trap.focus-after-released",rhe="focus-trap.focusout-prevented",Dz={cancelable:!0,bubbles:!1},she={cancelable:!0,bubbles:!1},Iz="focusAfterTrapped",Pz="focusAfterReleased",ahe=Symbol("elFocusTrap"),XN=bn(),tD=bn(0),KN=bn(0);let pE=0;const LW=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Oz=(e,t)=>{for(const n of e)if(!che(n,t))return n},che=(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},lhe=e=>{const t=LW(e),n=Oz(t,e),i=Oz(t.reverse(),e);return[n,i]},uhe=e=>e instanceof HTMLInputElement&&"select"in e,Fh=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),KN.value=window.performance.now(),e!==n&&uhe(e)&&t&&e.select()}};function Lz(e,t){const n=[...e],i=e.indexOf(t);return i!==-1&&n.splice(i,1),n}const dhe=()=>{let e=[];return{push:i=>{const o=e[0];o&&i!==o&&o.pause(),e=Lz(e,i),e.unshift(i)},remove:i=>{var o,r;e=Lz(e,i),(r=(o=e[0])==null?void 0:o.resume)==null||r.call(o)}}},fhe=(e,t=!1)=>{const n=document.activeElement;for(const i of e)if(Fh(i,t),document.activeElement!==n)return},Bz=dhe(),hhe=()=>tD.value>KN.value,mE=()=>{XN.value="pointer",tD.value=window.performance.now()},Rz=()=>{XN.value="keyboard",tD.value=window.performance.now()},phe=()=>(Oc(()=>{pE===0&&(document.addEventListener("mousedown",mE),document.addEventListener("touchstart",mE),document.addEventListener("keydown",Rz)),pE++}),Wp(()=>{pE--,pE<=0&&(document.removeEventListener("mousedown",mE),document.removeEventListener("touchstart",mE),document.removeEventListener("keydown",Rz))}),{focusReason:XN,lastUserFocusTimestamp:tD,lastAutomatedFocusTimestamp:KN}),_E=e=>new CustomEvent(rhe,{...she,detail:e}),mhe=ci({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Iz,Pz,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=bn();let i,o;const{focusReason:r}=phe();kfe(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:y,altKey:b,ctrlKey:C,metaKey:E,currentTarget:w,shiftKey:S}=p,{loop:P}=e,L=y===eD.tab&&!b&&!C&&!E,z=document.activeElement;if(L&&z){const R=w,[F,U]=lhe(R);if(F&&U){if(!S&&z===U){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(F,!0))}else if(S&&[F,R].includes(z)){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(U,!0))}}else if(z===R){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};nd(ahe,{focusTrapRef:n,onKeydown:a}),to(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),to([n],([p],[y])=>{p&&(p.addEventListener("keydown",a),p.addEventListener("focusin",d),p.addEventListener("focusout",h)),y&&(y.removeEventListener("keydown",a),y.removeEventListener("focusin",d),y.removeEventListener("focusout",h))});const c=p=>{t(Iz,p)},u=p=>t(Pz,p),d=p=>{const y=pe(n);if(!y)return;const b=p.target,C=p.relatedTarget,E=b&&y.contains(b);e.trapped||C&&y.contains(C)||(i=C),E&&t("focusin",p),!s.paused&&e.trapped&&(E?o=b:Fh(o,!0))},h=p=>{const y=pe(n);if(!(s.paused||!y))if(e.trapped){const b=p.relatedTarget;!Jv(b)&&!y.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const C=_E({focusReason:r.value});t("focusout-prevented",C),C.defaultPrevented||Fh(o,!0)}},0)}else{const b=p.target;b&&y.contains(b)||t("focusout",p)}};async function m(){await us();const p=pe(n);if(p){Bz.push(s);const y=p.contains(document.activeElement)?i:document.activeElement;if(i=y,!p.contains(y)){const C=new Event(WI,Dz);p.addEventListener(WI,c),p.dispatchEvent(C),C.defaultPrevented||us(()=>{let E=e.focusStartEl;_i(E)||(Fh(E),document.activeElement!==E&&(E="first")),E==="first"&&fhe(LW(p),!0),(document.activeElement===y||E==="container")&&Fh(p)})}}}function g(){const p=pe(n);if(p){p.removeEventListener(WI,c);const y=new CustomEvent(jI,{...Dz,detail:{focusReason:r.value}});p.addEventListener(jI,u),p.dispatchEvent(y),!y.defaultPrevented&&(r.value=="keyboard"||!hhe())&&Fh(i??document.body),p.removeEventListener(jI,c),Bz.remove(s)}}return Oc(()=>{e.trapped&&m(),to(()=>e.trapped,p=>{p?m():g()})}),Wp(()=>{e.trapped&&g()}),{onKeydown:a}}});function _he(e,t,n,i,o,r){return Zn(e.$slots,"default",{handleKeydown:e.onKeydown})}var BW=Cs(mhe,[["render",_he],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ghe=bs({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"}}),yhe=["textContent"],Ahe=ci({name:"ElBadge"}),bhe=ci({...Ahe,props:ghe,setup(e,{expose:t}){const n=e,i=dr("badge"),o=tt(()=>n.isDot?"":wp(n.value)&&wp(n.max)?n.max(qe(),Dt("div",{class:st(pe(i).b())},[Zn(r.$slots,"default"),fn(S0,{name:`${pe(i).namespace.value}-zoom-in-center`,persisted:""},{default:an(()=>[eu(Vt("sup",{class:st([pe(i).e("content"),pe(i).em("content",r.type),pe(i).is("fixed",!!r.$slots.default),pe(i).is("dot",r.isDot)]),textContent:Pr(pe(o))},null,10,yhe),[[u_,!r.hidden&&(pe(o)||r.isDot)]])]),_:1},8,["name"])],2))}});var Che=Cs(bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const The=Wf(Che),Ehe=(e,t)=>{KL({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},tt(()=>e.type==="text"));const n=er(xW,void 0),i=jp("button"),{form:o}=lT(),r=mC(tt(()=>n==null?void 0:n.size)),s=qp(),a=bn(),c=aT(),u=tt(()=>e.type||(n==null?void 0:n.type)||""),d=tt(()=>{var g,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(g=i.value)==null?void 0:g.autoInsertSpace)!=null?y:!1}),h=tt(()=>{var g;const p=(g=c.default)==null?void 0:g.call(c);if(d.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===sT){const b=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(b.trim())}}return!1});return{_disabled:s,_size:r,_type:u,_ref:a,shouldAddSpace:h,handleClick:g=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",g)}}},xhe=["default","primary","success","warning","info","danger","text",""],whe=["button","submit","reset"],JL=bs({size:cT,disabled:Boolean,type:{type:String,values:xhe,default:""},icon:{type:r0},nativeType:{type:String,values:whe,default:"button"},loading:Boolean,loadingIcon:{type:r0,default:()=>yW},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),She={click:e=>e instanceof MouseEvent};function Ls(e,t){vhe(e)&&(e="100%");var n=Dhe(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 gE(e){return Math.min(1,Math.max(0,e))}function vhe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dhe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function RW(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yE(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zm(e){return e.length===1?"0"+e:String(e)}function Ihe(e,t,n){return{r:Ls(e,255)*255,g:Ls(t,255)*255,b:Ls(n,255)*255}}function Nz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=0,a=(i+o)/2;if(i===o)s=0,r=0;else{var c=i-o;switch(s=a>.5?c/(2-i-o):c/(i+o),i){case e:r=(t-n)/c+(t1&&(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 Phe(e,t,n){var i,o,r;if(e=Ls(e,360),t=Ls(t,100),n=Ls(n,100),t===0)o=n,r=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;i=qI(a,s,e+1/3),o=qI(a,s,e),r=qI(a,s,e-1/3)}return{r:i*255,g:o*255,b:r*255}}function Mz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=i,a=i-o,c=i===0?0:a/i;if(i===o)r=0;else{switch(i){case e:r=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var QL={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 Nhe(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,r=null,s=!1,a=!1;return typeof e=="string"&&(e=zhe(e)),typeof e=="object"&&(Ud(e.r)&&Ud(e.g)&&Ud(e.b)?(t=Ihe(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ud(e.h)&&Ud(e.s)&&Ud(e.v)?(i=yE(e.s),o=yE(e.v),t=Ohe(e.h,i,o),s=!0,a="hsv"):Ud(e.h)&&Ud(e.s)&&Ud(e.l)&&(i=yE(e.s),r=yE(e.l),t=Phe(e.h,i,r),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=RW(n),{ok:s,format:e.format||a,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 Mhe="[-\\+]?\\d+%?",Fhe="[-\\+]?\\d*\\.\\d+%?",Kh="(?:".concat(Fhe,")|(?:").concat(Mhe,")"),$I="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),YI="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),zl={CSS_UNIT:new RegExp(Kh),rgb:new RegExp("rgb"+$I),rgba:new RegExp("rgba"+YI),hsl:new RegExp("hsl"+$I),hsla:new RegExp("hsla"+YI),hsv:new RegExp("hsv"+$I),hsva:new RegExp("hsva"+YI),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 zhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(QL[e])e=QL[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zl.hex8.exec(e),n?{r:ec(n[1]),g:ec(n[2]),b:ec(n[3]),a:zz(n[4]),format:t?"name":"hex8"}:(n=zl.hex6.exec(e),n?{r:ec(n[1]),g:ec(n[2]),b:ec(n[3]),format:t?"name":"hex"}:(n=zl.hex4.exec(e),n?{r:ec(n[1]+n[1]),g:ec(n[2]+n[2]),b:ec(n[3]+n[3]),a:zz(n[4]+n[4]),format:t?"name":"hex8"}:(n=zl.hex3.exec(e),n?{r:ec(n[1]+n[1]),g:ec(n[2]+n[2]),b:ec(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ud(e){return Boolean(zl.CSS_UNIT.exec(String(e)))}var Uhe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=Rhe(t)),this.originalInput=t;var o=Nhe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.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=o.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,i,o,r=t.r/255,s=t.g/255,a=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=RW(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=Mz(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=Mz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nz(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=Nz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fz(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),Lhe(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.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),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ls(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(Ls(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="#"+Fz(this.r,this.g,this.b,!1),n=0,i=Object.entries(QL);n=0,r=!n&&o&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||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=gE(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=gE(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=gE(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=gE(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),r=n/100,s={r:(o.r-i.r)*r+i.r,g:(o.g-i.g)*r+i.g,b:(o.b-i.b)*r+i.b,a:(o.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,r=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,r.push(new e(i));return r},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(),i=n.h,o=n.s,r=n.v,s=[],a=1/t;t--;)s.push(new e({h:i,s:o,v:r})),r=(r+a)%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(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.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(),i=n.h,o=[this],r=360/t,s=1;s{let i={};const o=e.color;if(o){const r=new Uhe(o),s=e.dark?r.tint(20).toString():ph(r,20);if(e.plain)i=n.cssVarBlock({"bg-color":e.dark?ph(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?ph(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(i[n.cssVarBlockName("disabled-bg-color")]=e.dark?ph(r,90):r.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=e.dark?ph(r,50):r.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=e.dark?ph(r,80):r.tint(80).toString());else{const a=e.dark?ph(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?ph(r,50):r.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=u,i[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=u}}}return i})}const Vhe=["aria-disabled","disabled","autofocus","type"],khe=ci({name:"ElButton"}),Ghe=ci({...khe,props:JL,emits:She,setup(e,{expose:t,emit:n}){const i=e,o=Hhe(i),r=dr("button"),{_ref:s,_size:a,_type:c,_disabled:u,shouldAddSpace:d,handleClick:h}=Ehe(i,n);return t({ref:s,size:a,type:c,disabled:u,shouldAddSpace:d}),(m,g)=>(qe(),Dt("button",{ref_key:"_ref",ref:s,class:st([pe(r).b(),pe(r).m(pe(c)),pe(r).m(pe(a)),pe(r).is("disabled",pe(u)),pe(r).is("loading",m.loading),pe(r).is("plain",m.plain),pe(r).is("round",m.round),pe(r).is("circle",m.circle),pe(r).is("text",m.text),pe(r).is("link",m.link),pe(r).is("has-bg",m.bg)]),"aria-disabled":pe(u)||m.loading,disabled:pe(u)||m.loading,autofocus:m.autofocus,type:m.nativeType,style:Ds(pe(o)),onClick:g[0]||(g[0]=(...p)=>pe(h)&&pe(h)(...p))},[m.loading?(qe(),Dt(Jo,{key:0},[m.$slots.loading?Zn(m.$slots,"loading",{key:0}):(qe(),Dn(pe(ss),{key:1,class:st(pe(r).is("loading"))},{default:an(()=>[(qe(),Dn(Ia(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[m.icon?(qe(),Dn(Ia(m.icon),{key:0})):Zn(m.$slots,"icon",{key:1})]),_:3})):Mt("v-if",!0),m.$slots.default?(qe(),Dt("span",{key:2,class:st({[pe(r).em("text","expand")]:pe(d)})},[Zn(m.$slots,"default")],2)):Mt("v-if",!0)],14,Vhe))}});var Whe=Cs(Ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const jhe={size:JL.size,type:JL.type},qhe=ci({name:"ElButtonGroup"}),$he=ci({...qhe,props:jhe,setup(e){const t=e;nd(xW,W_({size:e0(t,"size"),type:e0(t,"type")}));const n=dr("button");return(i,o)=>(qe(),Dt("div",{class:st(`${pe(n).b("group")}`)},[Zn(i.$slots,"default")],2))}});var NW=Cs($he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const MW=Wf(Whe,{ButtonGroup:NW});GN(NW);var By=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const ZL="_trap-focus-children",e_=[],Uz=e=>{if(e_.length===0)return;const t=e_[e_.length-1][ZL];if(t.length>0&&e.code===eD.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,i=e.target===t[0],o=e.target===t[t.length-1];i&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},Yhe={beforeMount(e){e[ZL]=_z(e),e_.push(e),e_.length<=1&&document.addEventListener("keydown",Uz)},updated(e){us(()=>{e[ZL]=_z(e)})},unmounted(){e_.shift(),e_.length===0&&document.removeEventListener("keydown",Uz)}},FW={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,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:cT,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},zW={[If]:e=>_i(e)||wp(e)||PS(e),change:e=>_i(e)||wp(e)||PS(e)},Xhe=({model:e,isChecked:t})=>{const n=er(D0,void 0),i=tt(()=>{var r,s;const a=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(s=n==null?void 0:n.min)==null?void 0:s.value;return!fC(a)&&e.value.length>=a&&!t.value||!fC(c)&&e.value.length<=c&&t.value});return{isDisabled:qp(tt(()=>(n==null?void 0:n.disabled.value)||i.value)),isLimitDisabled:i}},Khe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:i,isDisabled:o,isLabeledByFormItem:r})=>{const s=er(D0,void 0),{formItem:a}=lT(),{emit:c}=Lc();function u(p){var y,b;return p===e.trueLabel||p===!0?(y=e.trueLabel)!=null?y:!0:(b=e.falseLabel)!=null?b:!1}function d(p,y){c("change",u(p),y)}function h(p){if(n.value)return;const y=p.target;c("change",u(y.checked),p)}async function m(p){n.value||!i.value&&!o.value&&r.value&&(p.composedPath().some(C=>C.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await us(),d(t.value,p)))}const g=tt(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return to(()=>e.modelValue,()=>{g.value&&(a==null||a.validate("change").catch(p=>void 0))}),{handleChange:h,onClickRoot:m}},Jhe=e=>{const t=bn(!1),{emit:n}=Lc(),i=er(D0,void 0),o=tt(()=>fC(i)===!1),r=bn(!1);return{model:tt({get(){var a,c;return o.value?(a=i==null?void 0:i.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c,u;o.value&&Yt(a)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&a.length>(i==null?void 0:i.max.value),r.value===!1&&((u=i==null?void 0:i.changeEvent)==null||u.call(i,a))):(n(If,a),t.value=a)}}),isGroup:o,isLimitExceeded:r}},Qhe=(e,t,{model:n})=>{const i=er(D0,void 0),o=bn(!1),r=tt(()=>{const u=n.value;return PS(u)?u:Yt(u)?Di(e.label)?u.map(Ci).some(d=>yue(d,e.label)):u.map(Ci).includes(e.label):u!=null?u===e.trueLabel:!!u}),s=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value}),{prop:!0}),a=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value})),c=tt(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:r,isFocused:o,checkboxSize:a,hasOwnLabel:c}},Zhe=(e,{model:t})=>{function n(){Yt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},UW=(e,t)=>{const{formItem:n}=lT(),{model:i,isGroup:o,isLimitExceeded:r}=Jhe(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=Qhe(e,t,{model:i}),{isDisabled:h}=Xhe({model:i,isChecked:a}),{inputId:m,isLabeledByFormItem:g}=qN(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:p,onClickRoot:y}=Khe(e,{model:i,isLimitExceeded:r,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:g});return Zhe(e,{model:i}),{inputId:m,isLabeledByFormItem:g,isChecked:a,isDisabled:h,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:i,handleChange:p,onClickRoot:y}},epe=["tabindex","role","aria-checked"],tpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],npe=["id","aria-hidden","disabled","value","name","tabindex"],ipe=ci({name:"ElCheckbox"}),ope=ci({...ipe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{inputId:i,isLabeledByFormItem:o,isChecked:r,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:h,onClickRoot:m}=UW(t,n),g=dr("checkbox"),p=tt(()=>[g.b(),g.m(c.value),g.is("disabled",s.value),g.is("bordered",t.border),g.is("checked",r.value)]),y=tt(()=>[g.e("input"),g.is("disabled",s.value),g.is("checked",r.value),g.is("indeterminate",t.indeterminate),g.is("focus",a.value)]);return(b,C)=>(qe(),Dn(Ia(!pe(u)&&pe(o)?"span":"label"),{class:st(pe(p)),"aria-controls":b.indeterminate?b.controls:null,onClick:pe(m)},{default:an(()=>[Vt("span",{class:st(pe(y)),tabindex:b.indeterminate?0:void 0,role:b.indeterminate?"checkbox":void 0,"aria-checked":b.indeterminate?"mixed":void 0},[b.trueLabel||b.falseLabel?eu((qe(),Dt("input",{key:0,id:pe(i),"onUpdate:modelValue":C[0]||(C[0]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",name:b.name,tabindex:b.tabindex,disabled:pe(s),"true-value":b.trueLabel,"false-value":b.falseLabel,onChange:C[1]||(C[1]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[2]||(C[2]=E=>a.value=!0),onBlur:C[3]||(C[3]=E=>a.value=!1)},null,42,tpe)),[[xS,pe(d)]]):eu((qe(),Dt("input",{key:1,id:pe(i),"onUpdate:modelValue":C[4]||(C[4]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",disabled:pe(s),value:b.label,name:b.name,tabindex:b.tabindex,onChange:C[5]||(C[5]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[6]||(C[6]=E=>a.value=!0),onBlur:C[7]||(C[7]=E=>a.value=!1)},null,42,npe)),[[xS,pe(d)]]),Vt("span",{class:st(pe(g).e("inner"))},null,2)],10,epe),pe(u)?(qe(),Dt("span",{key:0,class:st(pe(g).e("label"))},[Zn(b.$slots,"default"),b.$slots.default?Mt("v-if",!0):(qe(),Dt(Jo,{key:0},[$l(Pr(b.label),1)],64))],2)):Mt("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var rpe=Cs(ope,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const spe=["name","tabindex","disabled","true-value","false-value"],ape=["name","tabindex","disabled","value"],cpe=ci({name:"ElCheckboxButton"}),lpe=ci({...cpe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{isFocused:i,isChecked:o,isDisabled:r,checkboxButtonSize:s,model:a,handleChange:c}=UW(t,n),u=er(D0,void 0),d=dr("checkbox"),h=tt(()=>{var g,p,y,b;const C=(p=(g=u==null?void 0:u.fill)==null?void 0:g.value)!=null?p:"";return{backgroundColor:C,borderColor:C,color:(b=(y=u==null?void 0:u.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),m=tt(()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",r.value),d.is("checked",o.value),d.is("focus",i.value)]);return(g,p)=>(qe(),Dt("label",{class:st(pe(m))},[g.trueLabel||g.falseLabel?eu((qe(),Dt("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:p[1]||(p[1]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[2]||(p[2]=y=>i.value=!0),onBlur:p[3]||(p[3]=y=>i.value=!1)},null,42,spe)),[[xS,pe(a)]]):eu((qe(),Dt("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),value:g.label,onChange:p[5]||(p[5]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[6]||(p[6]=y=>i.value=!0),onBlur:p[7]||(p[7]=y=>i.value=!1)},null,42,ape)),[[xS,pe(a)]]),g.$slots.default||g.label?(qe(),Dt("span",{key:2,class:st(pe(d).be("button","inner")),style:Ds(pe(o)?pe(h):void 0)},[Zn(g.$slots,"default",{},()=>[$l(Pr(g.label),1)])],6)):Mt("v-if",!0)],2))}});var HW=Cs(lpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const upe=bs({modelValue:{type:Qn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:cT,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),dpe={[If]:e=>Yt(e),change:e=>Yt(e)},fpe=ci({name:"ElCheckboxGroup"}),hpe=ci({...fpe,props:upe,emits:dpe,setup(e,{emit:t}){const n=e,i=dr("checkbox"),{formItem:o}=lT(),{inputId:r,isLabeledByFormItem:s}=qN(n,{formItemContext:o}),a=async u=>{t(If,u),await us(),t("change",u)},c=tt({get(){return n.modelValue},set(u){a(u)}});return nd(D0,{...Eue(K6(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),to(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var h;return qe(),Dn(Ia(u.tag),{id:pe(r),class:st(pe(i).b("group")),role:"group","aria-label":pe(s)?void 0:u.label||"checkbox-group","aria-labelledby":pe(s)?(h=pe(o))==null?void 0:h.labelId:void 0},{default:an(()=>[Zn(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var VW=Cs(hpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ppe=Wf(rpe,{CheckboxButton:HW,CheckboxGroup:VW});GN(HW);const mpe=GN(VW),eB={},_pe=bs({a11y:{type:Boolean,default:!0},locale:{type:Qn(Object)},size:cT,button:{type:Qn(Object)},experimentalFeatures:{type:Qn(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Qn(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ci({name:"ElConfigProvider",props:_pe,setup(e,{slots:t}){to(()=>e.message,i=>{Object.assign(eB,i??{})},{immediate:!0,deep:!0});const n=Ofe(e);return()=>Zn(t,"default",{config:n==null?void 0:n.value})}});const gpe=bs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Qn([String,Array,Object])},zIndex:{type:Qn([String,Number])}}),ype={click:e=>e instanceof MouseEvent};var Ape=ci({name:"ElOverlay",props:gpe,emits:ype,setup(e,{slots:t,emit:n}){const i=dr("overlay"),o=c=>{n("click",c)},{onClick:r,onMousedown:s,onMouseup:a}=PW(e.customMaskEvent?void 0:o);return()=>e.mask?fn("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:a},[Zn(t,"default")],vw.STYLE|vw.CLASS|vw.PROPS,["onClick","onMouseup","onMousedown"]):qv("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Zn(t,"default")])}});const kW=Ape,bpe=bs({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:r0},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Cpe=bs({...bpe,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Qn(Function)},destroyOnClose:{type:Boolean,default:!1},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:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Tpe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[If]:e=>PS(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Epe=(e,t)=>{const i=Lc().emit,{nextZIndex:o}=YN();let r="";const s=_C(),a=_C(),c=bn(!1),u=bn(!1),d=bn(!1),h=bn(e.zIndex||o());let m,g;const p=jp("namespace",jN),y=tt(()=>{const v={},O=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(v[`${O}-margin-top`]=e.top),e.width&&(v[`${O}-width`]=hC(e.width))),v}),b=tt(()=>e.alignCenter?{display:"flex"}:{});function C(){i("opened")}function E(){i("closed"),i(If,!1),e.destroyOnClose&&(d.value=!1)}function w(){i("close")}function S(){g==null||g(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=qL(()=>R(),e.openDelay):R()}function P(){m==null||m(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=qL(()=>F(),e.closeDelay):F()}function L(){function v(O){O||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(v):P()}function z(){e.closeOnClickModal&&L()}function R(){Cc&&(c.value=!0)}function F(){c.value=!1}function U(){i("openAutoFocus")}function D(){i("closeAutoFocus")}function I(v){var O;((O=v.detail)==null?void 0:O.focusReason)==="pointer"&&v.preventDefault()}e.lockScroll&&IW(c);function _(){e.closeOnPressEscape&&L()}return to(()=>e.modelValue,v=>{v?(u.value=!1,S(),d.value=!0,h.value=e.zIndex?h.value++:o(),us(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):c.value&&P()}),to(()=>e.fullscreen,v=>{t.value&&(v?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),Oc(()=>{e.modelValue&&(c.value=!0,d.value=!0,S())}),{afterEnter:C,afterLeave:E,beforeLeave:w,handleClose:L,onModalClick:z,close:P,doClose:F,onOpenAutoFocus:U,onCloseAutoFocus:D,onCloseRequested:_,onFocusoutPrevented:I,titleId:s,bodyId:a,closed:u,style:y,overlayDialogStyle:b,rendered:d,visible:c,zIndex:h}},xpe=bs({...Cpe,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}}),wpe=Tpe,Spe=ci({name:"ElDrawer",components:{ElOverlay:kW,ElFocusTrap:BW,ElIcon:ss,Close:Zv},inheritAttrs:!1,props:xpe,emits:wpe,setup(e,{slots:t}){KL({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"},tt(()=>!!t.title)),KL({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},tt(()=>!!e.customClass));const n=bn(),i=bn(),o=dr("drawer"),{t:r}=$N(),s=tt(()=>e.direction==="rtl"||e.direction==="ltr"),a=tt(()=>hC(e.size));return{...Epe(e,n),drawerRef:n,focusStartRef:i,isHorizontal:s,drawerSize:a,ns:o,t:r}}}),vpe=["aria-label","aria-labelledby","aria-describedby"],Dpe=["id"],Ipe=["aria-label"],Ppe=["id"];function Ope(e,t,n,i,o,r){const s=Wu("close"),a=Wu("el-icon"),c=Wu("el-focus-trap"),u=Wu("el-overlay");return qe(),Dn(Ioe,{to:"body",disabled:!e.appendToBody},[fn(S0,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:an(()=>[eu(fn(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:an(()=>[fn(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",cp({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=cc(()=>{},["stop"]))}),[Vt("span",{ref:"focusStartRef",class:st(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(qe(),Dt("header",{key:0,class:st(e.ns.e("header"))},[e.$slots.title?Zn(e.$slots,"title",{key:1},()=>[Mt(" DEPRECATED SLOT ")]):Zn(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Mt("v-if",!0):(qe(),Dt("span",{key:0,id:e.titleId,role:"heading",class:st(e.ns.e("title"))},Pr(e.title),11,Dpe))]),e.showClose?(qe(),Dt("button",{key:2,"aria-label":e.t("el.drawer.close"),class:st(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[fn(a,{class:st(e.ns.e("close"))},{default:an(()=>[fn(s)]),_:1},8,["class"])],10,Ipe)):Mt("v-if",!0)],2)):Mt("v-if",!0),e.rendered?(qe(),Dt("div",{key:1,id:e.bodyId,class:st(e.ns.e("body"))},[Zn(e.$slots,"default")],10,Ppe)):Mt("v-if",!0),e.$slots.footer?(qe(),Dt("div",{key:2,class:st(e.ns.e("footer"))},[Zn(e.$slots,"footer")],2)):Mt("v-if",!0)],16,vpe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[u_,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Lpe=Cs(Spe,[["render",Ope],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Bpe=Wf(Lpe),Rpe=bs({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:Qn(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Qn([String,Array,Function]),default:""},format:{type:Qn(Function),default:e=>`${e}%`}}),Npe=["aria-valuenow"],Mpe={viewBox:"0 0 100 100"},Fpe=["d","stroke","stroke-width"],zpe=["d","stroke","opacity","stroke-linecap","stroke-width"],Upe={key:0},Hpe=ci({name:"ElProgress"}),Vpe=ci({...Hpe,props:Rpe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=dr("progress"),o=tt(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:E(t.percentage)})),r=tt(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=tt(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),a=tt(()=>{const w=s.value,S=t.type==="dashboard";return` M 50 50 m 0 ${S?"":"-"}${w} a ${w} ${w} 0 1 1 0 ${S?"-":""}${w*2} a ${w} ${w} 0 1 1 0 ${S?"":"-"}${w*2} - `}),c=tt(()=>2*Math.PI*s.value),u=tt(()=>t.type==="dashboard"?.75:1),d=tt(()=>`${-1*c.value*(1-u.value)/2}px`),h=tt(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),m=tt(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=tt(()=>{let w;return t.color?w=E(t.percentage):w=n[t.status]||n.default,w}),p=tt(()=>t.status==="warning"?kN:t.type==="line"?t.status==="success"?HN:VN:t.status==="success"?mW:Zv),y=tt(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=tt(()=>t.format(t.percentage));function C(w){const S=100/w.length;return w.map((L,z)=>_i(L)?{color:L,percentage:(z+1)*S}:L).sort((L,z)=>L.percentage-z.percentage)}const E=w=>{var S;const{color:P}=t;if(En(P))return P(w);if(_i(P))return P;{const L=C(P);for(const z of L)if(z.percentage>w)return z.color;return(S=L[L.length-1])==null?void 0:S.color}};return(w,S)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(w.type),pe(i).is(w.status),{[pe(i).m("without-text")]:!w.showText,[pe(i).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(qe(),Dt("div",{key:0,class:st(pe(i).b("bar"))},[Vt("div",{class:st(pe(i).be("bar","outer")),style:Ds({height:`${w.strokeWidth}px`})},[Vt("div",{class:st([pe(i).be("bar","inner"),{[pe(i).bem("bar","inner","indeterminate")]:w.indeterminate}]),style:Ds(pe(o))},[(w.showText||w.$slots.default)&&w.textInside?(qe(),Dt("div",{key:0,class:st(pe(i).be("bar","innerText"))},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[Vt("span",null,Pr(pe(b)),1)])],2)):Mt("v-if",!0)],6)],6)],2)):(qe(),Dt("div",{key:1,class:st(pe(i).b("circle")),style:Ds({height:`${w.width}px`,width:`${w.width}px`})},[(qe(),Dt("svg",Mpe,[Vt("path",{class:st(pe(i).be("circle","track")),d:pe(a),stroke:`var(${pe(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":pe(r),fill:"none",style:Ds(pe(h))},null,14,Fpe),Vt("path",{class:st(pe(i).be("circle","path")),d:pe(a),stroke:pe(g),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":pe(r),style:Ds(pe(m))},null,14,zpe)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(qe(),Dt("div",{key:2,class:st(pe(i).e("text")),style:Ds({fontSize:`${pe(y)}px`})},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[(qe(),Dn(Ia(pe(p))))]),_:1})):(qe(),Dt("span",Upe,Pr(pe(b)),1))])],6)):Mt("v-if",!0)],10,Npe))}});var kpe=Cs(Vpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Gpe=Wf(kpe),Wpe=["start","center","end","space-around","space-between","space-evenly"],jpe=["top","middle","bottom"],qpe=bs({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Wpe,default:"start"},align:{type:String,values:jpe,default:"top"}}),$pe=ci({name:"ElRow"}),Ype=ci({...$pe,props:qpe,setup(e){const t=e,n=dr("row"),i=tt(()=>t.gutter);nd(Pfe,{gutter:i});const o=tt(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=tt(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(s,a)=>(qe(),Dn(Ia(s.tag),{class:st(pe(r)),style:Ds(pe(o))},{default:an(()=>[Zn(s.$slots,"default")]),_:3},8,["class","style"]))}});var Xpe=Cs(Ype,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Kpe=Wf(Xpe),Jpe="ElUpload";class Qpe extends Error{constructor(t,n,i,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=i,this.url=o}}function Hz(e,t,n){let i;return n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to ${t.method} ${e} ${n.status}`,new Qpe(i,n.status,t.method,e)}function Zpe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const eme=e=>{typeof XMLHttpRequest>"u"&&Qv(Jpe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const i=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))Array.isArray(s)?i.append(r,...s):i.append(r,s);i.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Hz(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Hz(n,e,t));e.onSuccess(Zpe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(o))Jv(s)||t.setRequestHeader(r,String(s));return t.send(i),t},GW=["text","picture","picture-card"];let tme=1;const tB=()=>Date.now()+tme++,WW=bs({action:{type:String,default:"#"},headers:{type:Qn(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>pC({})},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:""},type:{type:String,default:"select"},fileList:{type:Qn(Array),default:()=>pC([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:GW,default:"text"},httpRequest:{type:Qn(Function),default:eme},disabled:Boolean,limit:Number}),nme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},beforeRemove:{type:Qn(Function)},onRemove:{type:Qn(Function),default:Bi},onChange:{type:Qn(Function),default:Bi},onPreview:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),ime=bs({files:{type:Qn(Array),default:()=>pC([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Qn(Function),default:Bi},listType:{type:String,values:GW,default:"text"}}),ome={remove:e=>!!e},rme=["onKeydown"],sme=["src"],ame=["onClick"],cme=["onClick"],lme=["onClick"],ume=ci({name:"ElUploadList"}),dme=ci({...ume,props:ime,emits:ome,setup(e,{emit:t}){const{t:n}=$N(),i=dr("upload"),o=dr("icon"),r=dr("list"),s=qp(),a=bn(!1),c=u=>{t("remove",u)};return(u,d)=>(qe(),Dn(dre,{tag:"ul",class:st([pe(i).b("list"),pe(i).bm("list",u.listType),pe(i).is("disabled",pe(s))]),name:pe(r).b()},{default:an(()=>[(qe(!0),Dt(Jo,null,h9(u.files,h=>(qe(),Dt("li",{key:h.uid||h.name,class:st([pe(i).be("list","item"),pe(i).is(h.status),{focusing:a.value}]),tabindex:"0",onKeydown:Cy(m=>!pe(s)&&c(h),["delete"]),onFocus:d[0]||(d[0]=m=>a.value=!0),onBlur:d[1]||(d[1]=m=>a.value=!1),onClick:d[2]||(d[2]=m=>a.value=!1)},[Zn(u.$slots,"default",{file:h},()=>[u.listType==="picture"||h.status!=="uploading"&&u.listType==="picture-card"?(qe(),Dt("img",{key:0,class:st(pe(i).be("list","item-thumbnail")),src:h.url,alt:""},null,10,sme)):Mt("v-if",!0),h.status==="uploading"||u.listType!=="picture-card"?(qe(),Dt("div",{key:1,class:st(pe(i).be("list","item-info"))},[Vt("a",{class:st(pe(i).be("list","item-name")),onClick:ac(m=>u.handlePreview(h),["prevent"])},[fn(pe(ss),{class:st(pe(o).m("document"))},{default:an(()=>[fn(pe(Mde))]),_:1},8,["class"]),Vt("span",{class:st(pe(i).be("list","item-file-name"))},Pr(h.name),3)],10,ame),h.status==="uploading"?(qe(),Dn(pe(Gpe),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Ds(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("label",{class:st(pe(i).be("list","item-status-label"))},[u.listType==="text"?(qe(),Dn(pe(ss),{key:0,class:st([pe(o).m("upload-success"),pe(o).m("circle-check")])},{default:an(()=>[fn(pe(HN))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).m("upload-success"),pe(o).m("check")])},{default:an(()=>[fn(pe(mW))]),_:1},8,["class"])):Mt("v-if",!0)],2),pe(s)?Mt("v-if",!0):(qe(),Dn(pe(ss),{key:2,class:st(pe(o).m("close")),onClick:m=>c(h)},{default:an(()=>[fn(pe(Zv))]),_:2},1032,["class","onClick"])),Mt(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Mt(" This is a bug which needs to be fixed "),Mt(" TODO: Fix the incorrect navigation interaction "),pe(s)?Mt("v-if",!0):(qe(),Dt("i",{key:3,class:st(pe(o).m("close-tip"))},Pr(pe(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(qe(),Dt("span",{key:4,class:st(pe(i).be("list","item-actions"))},[Vt("span",{class:st(pe(i).be("list","item-preview")),onClick:m=>u.handlePreview(h)},[fn(pe(ss),{class:st(pe(o).m("zoom-in"))},{default:an(()=>[fn(pe(Cfe))]),_:1},8,["class"])],10,cme),pe(s)?Mt("v-if",!0):(qe(),Dt("span",{key:0,class:st(pe(i).be("list","item-delete")),onClick:m=>c(h)},[fn(pe(ss),{class:st(pe(o).m("delete"))},{default:an(()=>[fn(pe(Pde))]),_:1},8,["class"])],10,lme))],2)):Mt("v-if",!0)])],42,rme))),128)),Zn(u.$slots,"append")]),_:3},8,["class","name"]))}});var Vz=Cs(dme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const fme=bs({disabled:{type:Boolean,default:!1}}),hme={file:e=>Yt(e)},pme=["onDrop","onDragover"],jW="ElUploadDrag",mme=ci({name:jW}),_me=ci({...mme,props:fme,emits:hme,setup(e,{emit:t}){const n=er(vW);n||Qv(jW,"usage: ");const i=dr("upload"),o=bn(!1),r=qp(),s=c=>{if(r.value)return;o.value=!1;const u=Array.from(c.dataTransfer.files),d=n.accept.value;if(!d){t("file",u);return}const h=u.filter(m=>{const{type:g,name:p}=m,y=p.includes(".")?`.${p.split(".").pop()}`:"",b=g.replace(/\/.*$/,"");return d.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?y===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?g===C:!1)});t("file",h)},a=()=>{r.value||(o.value=!0)};return(c,u)=>(qe(),Dt("div",{class:st([pe(i).b("dragger"),pe(i).is("dragover",o.value)]),onDrop:ac(s,["prevent"]),onDragover:ac(a,["prevent"]),onDragleave:u[0]||(u[0]=ac(d=>o.value=!1,["prevent"]))},[Zn(c.$slots,"default")],42,pme))}});var gme=Cs(_me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const yme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},onRemove:{type:Qn(Function),default:Bi},onStart:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),Ame=["onKeydown"],bme=["name","multiple","accept"],Cme=ci({name:"ElUploadContent",inheritAttrs:!1}),Tme=ci({...Cme,props:yme,setup(e,{expose:t}){const n=e,i=dr("upload"),o=qp(),r=c_({}),s=c_(),a=p=>{if(p.length===0)return;const{autoUpload:y,limit:b,fileList:C,multiple:E,onStart:w,onExceed:S}=n;if(b&&C.length+p.length>b){S(p,C);return}E||(p=p.slice(0,1));for(const P of p){const L=P;L.uid=tB(),w(L),y&&c(L)}},c=async p=>{if(s.value.value="",!n.beforeUpload)return u(p);let y;try{y=await n.beforeUpload(p)}catch{y=!1}if(y===!1){n.onRemove(p);return}let b=p;y instanceof Blob&&(y instanceof File?b=y:b=new File([y],p.name,{type:p.type})),u(Object.assign(b,{uid:p.uid}))},u=p=>{const{headers:y,data:b,method:C,withCredentials:E,name:w,action:S,onProgress:P,onSuccess:L,onError:z,httpRequest:R}=n,{uid:F}=p,U={headers:y||{},withCredentials:E,file:p,data:b,method:C,filename:w,action:S,onProgress:I=>{P(I,p)},onSuccess:I=>{L(I,p),delete r.value[F]},onError:I=>{z(I,p),delete r.value[F]}},D=R(U);r.value[F]=D,D instanceof Promise&&D.then(U.onSuccess,U.onError)},d=p=>{const y=p.target.files;y&&a(Array.from(y))},h=()=>{o.value||(s.value.value="",s.value.click())},m=()=>{h()};return t({abort:p=>{que(r.value).filter(p?([b])=>String(p.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete r.value[b]})},upload:c}),(p,y)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(p.listType),pe(i).is("drag",p.drag)]),tabindex:"0",onClick:h,onKeydown:Cy(ac(m,["self"]),["enter","space"])},[p.drag?(qe(),Dn(gme,{key:0,disabled:pe(o),onFile:a},{default:an(()=>[Zn(p.$slots,"default")]),_:3},8,["disabled"])):Zn(p.$slots,"default",{key:1}),Vt("input",{ref_key:"inputRef",ref:s,class:st(pe(i).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:d,onClick:y[0]||(y[0]=ac(()=>{},["stop"]))},null,42,bme)],42,Ame))}});var kz=Cs(Tme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Gz="ElUpload",Eme=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xme=(e,t)=>{const n=Wue(e,"fileList",void 0,{passive:!0}),i=m=>n.value.find(g=>g.uid===m.uid);function o(m){var g;(g=t.value)==null||g.abort(m)}function r(m=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!m.includes(g.status))}const s=(m,g)=>{const p=i(g);p&&(console.error(m),p.status="fail",n.value.splice(n.value.indexOf(p),1),e.onError(m,p,n.value),e.onChange(p,n.value))},a=(m,g)=>{const p=i(g);p&&(e.onProgress(m,p,n.value),p.status="uploading",p.percentage=Math.round(m.percent))},c=(m,g)=>{const p=i(g);p&&(p.status="success",p.response=m,e.onSuccess(m,p,n.value),e.onChange(p,n.value))},u=m=>{Jv(m.uid)&&(m.uid=tB());const g={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(m)}catch(p){p.message,e.onError(p,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},d=async m=>{const g=m instanceof File?i(m):m;g||Qv(Gz,"file to be removed not found");const p=y=>{o(y);const b=n.value;b.splice(b.indexOf(y),1),e.onRemove(y,b),Eme(y)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&p(g):p(g)};function h(){n.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var g;return m&&((g=t.value)==null?void 0:g.upload(m))})}return to(()=>e.listType,m=>{m!=="picture-card"&&m!=="picture"||(n.value=n.value.map(g=>{const{raw:p,url:y}=g;if(!y&&p)try{g.url=URL.createObjectURL(p)}catch(b){e.onError(b,g,n.value)}return g}))}),to(n,m=>{for(const g of m)g.uid||(g.uid=tB()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:r,handleError:s,handleProgress:a,handleStart:u,handleSuccess:c,handleRemove:d,submit:h}},wme=ci({name:"ElUpload"}),Sme=ci({...wme,props:nme,setup(e,{expose:t}){const n=e,i=aT(),o=qp(),r=c_(),{abort:s,submit:a,clearFiles:c,uploadFiles:u,handleStart:d,handleError:h,handleRemove:m,handleSuccess:g,handleProgress:p}=xme(n,r),y=tt(()=>n.listType==="picture-card"),b=tt(()=>({...n,fileList:u.value,onStart:d,onProgress:p,onSuccess:g,onError:h,onRemove:m}));return Wp(()=>{u.value.forEach(({url:C})=>{C!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(C)})}),nd(vW,{accept:t0(n,"accept")}),t({abort:s,submit:a,clearFiles:c,handleStart:d,handleRemove:m}),(C,E)=>(qe(),Dt("div",null,[pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:0,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({append:an(()=>[fn(kz,cp({ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0),!pe(y)||pe(y)&&!C.showFileList?(qe(),Dn(kz,cp({key:1,ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)):Mt("v-if",!0),C.$slots.trigger?Zn(C.$slots,"default",{key:2}):Mt("v-if",!0),Zn(C.$slots,"tip"),!pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:3,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0)]))}});var vme=Cs(Sme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Dme=Wf(vme),qW=["success","info","warning","error"],Va=pC({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:bc?document.body:void 0}),Ime=bs({customClass:{type:String,default:Va.customClass},center:{type:Boolean,default:Va.center},dangerouslyUseHTMLString:{type:Boolean,default:Va.dangerouslyUseHTMLString},duration:{type:Number,default:Va.duration},icon:{type:s0,default:Va.icon},id:{type:String,default:Va.id},message:{type:Qn([String,Object,Function]),default:Va.message},onClose:{type:Qn(Function),required:!1},showClose:{type:Boolean,default:Va.showClose},type:{type:String,values:qW,default:Va.type},offset:{type:Number,default:Va.offset},zIndex:{type:Number,default:Va.zIndex},grouping:{type:Boolean,default:Va.grouping},repeatNum:{type:Number,default:Va.repeatNum}}),Pme={destroy:()=>!0},Qu=G6([]),Ome=e=>{const t=Qu.findIndex(o=>o.id===e),n=Qu[t];let i;return t>0&&(i=Qu[t-1]),{current:n,prev:i}},Lme=e=>{const{prev:t}=Ome(e);return t?t.vm.exposed.bottom.value:0},Bme=["id"],Rme=["innerHTML"],Nme=ci({name:"ElMessage"}),Mme=ci({...Nme,props:Ime,emits:Pme,setup(e,{expose:t}){const n=e,{Close:i}=TW,o=dr("message"),r=bn(),s=bn(!1),a=bn(0);let c;const u=tt(()=>n.type?n.type==="error"?"danger":n.type:"info"),d=tt(()=>{const S=n.type;return{[o.bm("icon",S)]:S&&OS[S]}}),h=tt(()=>n.icon||OS[n.type]||""),m=tt(()=>Lme(n.id)),g=tt(()=>n.offset+m.value),p=tt(()=>a.value+g.value),y=tt(()=>({top:`${g.value}px`,zIndex:n.zIndex}));function b(){n.duration!==0&&({stop:c}=qL(()=>{E()},n.duration))}function C(){c==null||c()}function E(){s.value=!1}function w({code:S}){S===eD.esc&&E()}return Pc(()=>{b(),s.value=!0}),to(()=>n.repeatNum,()=>{C(),b()}),Bue(document,"keydown",w),hW(r,()=>{a.value=r.value.getBoundingClientRect().height}),t({visible:s,bottom:p,close:E}),(S,P)=>(qe(),Dn(v0,{name:pe(o).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:P[0]||(P[0]=L=>S.$emit("destroy")),persisted:""},{default:an(()=>[eu(Vt("div",{id:S.id,ref_key:"messageRef",ref:r,class:st([pe(o).b(),{[pe(o).m(S.type)]:S.type&&!S.icon},pe(o).is("center",S.center),pe(o).is("closable",S.showClose),S.customClass]),style:Ds(pe(y)),role:"alert",onMouseenter:C,onMouseleave:b},[S.repeatNum>1?(qe(),Dn(pe(The),{key:0,value:S.repeatNum,type:pe(u),class:st(pe(o).e("badge"))},null,8,["value","type","class"])):Mt("v-if",!0),pe(h)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).e("icon"),pe(d)])},{default:an(()=>[(qe(),Dn(Ia(pe(h))))]),_:1},8,["class"])):Mt("v-if",!0),Zn(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(qe(),Dt(Jo,{key:1},[Mt(" Caution here, message could've been compromised, never use user's input as message "),Vt("p",{class:st(pe(o).e("content")),innerHTML:S.message},null,10,Rme)],2112)):(qe(),Dt("p",{key:0,class:st(pe(o).e("content"))},Pr(S.message),3))]),S.showClose?(qe(),Dn(pe(ss),{key:2,class:st(pe(o).e("closeBtn")),onClick:ac(E,["stop"])},{default:an(()=>[fn(pe(i))]),_:1},8,["class","onClick"])):Mt("v-if",!0)],46,Bme),[[u_,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Fme=Cs(Mme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let zme=1;const $W=e=>{const t=!e||_i(e)||Ep(e)||En(e)?{message:e}:e,n={...Va,...t};if(!n.appendTo)n.appendTo=document.body;else if(_i(n.appendTo)){let i=document.querySelector(n.appendTo);XL(i)||(i=document.body),n.appendTo=i}return n},Ume=e=>{const t=Qu.indexOf(e);if(t===-1)return;Qu.splice(t,1);const{handler:n}=e;n.close()},Hme=({appendTo:e,...t},n)=>{const{nextZIndex:i}=YN(),o=`message_${zme++}`,r=t.onClose,s=document.createElement("div"),a={...t,zIndex:i()+t.zIndex,id:o,onClose:()=>{r==null||r(),Ume(h)},onDestroy:()=>{wS(null,s)}},c=fn(Fme,a,En(a.message)||Ep(a.message)?{default:En(a.message)?a.message:()=>a.message}:null);c.appContext=n||a0._context,wS(c,s),e.appendChild(s.firstElementChild);const u=c.component,h={id:o,vnode:c,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:c.component.props};return h},a0=(e={},t)=>{if(!bc)return{close:()=>{}};if(wp(eB.max)&&Qu.length>=eB.max)return{close:()=>{}};const n=$W(e);if(n.grouping&&Qu.length){const o=Qu.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const i=Hme(n,t);return Qu.push(i),i.handler};qW.forEach(e=>{a0[e]=(t={},n)=>{const i=$W(t);return a0({...i,type:e},n)}});function Vme(e){for(const t of Qu)(!e||e===t.props.type)&&t.handler.close()}a0.closeAll=Vme;a0._context=null;const Lb=xfe(a0,"$message"),kme=ci({name:"ElMessageBox",directives:{TrapFocus:Yhe},components:{ElButton:MW,ElFocusTrap:BW,ElInput:OW,ElOverlay:kW,ElIcon:ss,...TW},inheritAttrs:!1,props:{buttonSize:{type:String,validator:wfe},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=$N(),i=dr("message-box"),o=bn(!1),{nextZIndex:r}=YN(),s=W_({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:r()}),a=tt(()=>{const _=s.type;return{[i.bm("icon",_)]:_&&OS[_]}}),c=_C(),u=_C(),d=mC(tt(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=tt(()=>s.icon||OS[s.type]||""),m=tt(()=>!!s.message),g=bn(),p=bn(),y=bn(),b=bn(),C=bn(),E=tt(()=>s.confirmButtonClass);to(()=>s.inputValue,async _=>{await us(),e.boxType==="prompt"&&_!==null&&F()},{immediate:!0}),to(()=>o.value,_=>{var v,O;_&&(e.boxType!=="prompt"&&(s.autofocus?y.value=(O=(v=C.value)==null?void 0:v.$el)!=null?O:g.value:y.value=g.value),s.zIndex=r()),e.boxType==="prompt"&&(_?us().then(()=>{var N;b.value&&b.value.$el&&(s.autofocus?y.value=(N=U())!=null?N:g.value:y.value=g.value)}):(s.editorErrorMessage="",s.validateError=!1))});const w=tt(()=>e.draggable);Bfe(g,p,w),Pc(async()=>{await us(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),Wp(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){o.value&&(o.value=!1,us(()=>{s.action&&t("action",s.action)}))}const P=()=>{e.closeOnClickModal&&R(s.distinguishCancelAndClose?"close":"cancel")},L=PW(P),z=_=>{if(s.inputType!=="textarea")return _.preventDefault(),R("confirm")},R=_=>{var v;e.boxType==="prompt"&&_==="confirm"&&!F()||(s.action=_,s.beforeClose?(v=s.beforeClose)==null||v.call(s,_,s,S):S())},F=()=>{if(e.boxType==="prompt"){const _=s.inputPattern;if(_&&!_.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;const v=s.inputValidator;if(typeof v=="function"){const O=v(s.inputValue);if(O===!1)return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;if(typeof O=="string")return s.editorErrorMessage=O,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},U=()=>{const _=b.value.$refs;return _.input||_.textarea},D=()=>{R("close")},I=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&IW(o),Vfe(o),{...K6(s),ns:i,overlayEvent:L,visible:o,hasMessage:m,typeClass:a,contentId:c,inputId:u,btnSize:d,iconComponent:h,confirmButtonClasses:E,rootRef:g,focusStartRef:y,headerRef:p,inputRef:b,confirmRef:C,doClose:S,handleClose:D,onCloseRequested:I,handleWrapperClick:P,handleInputEnter:z,handleAction:R,t:n}}}),Gme=["aria-label","aria-describedby"],Wme=["aria-label"],jme=["id"];function qme(e,t,n,i,o,r){const s=Wu("el-icon"),a=Wu("close"),c=Wu("el-input"),u=Wu("el-button"),d=Wu("el-focus-trap"),h=Wu("el-overlay");return qe(),Dn(v0,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=m=>e.$emit("vanish")),persisted:""},{default:an(()=>[eu(fn(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:an(()=>[Vt("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:st(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...m)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...m)),onMousedown:t[9]||(t[9]=(...m)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...m)),onMouseup:t[10]||(t[10]=(...m)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...m))},[fn(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",{ref:"rootRef",class:st([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ds(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=ac(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(qe(),Dt("div",{key:0,ref:"headerRef",class:st(e.ns.e("header"))},[Vt("div",{class:st(e.ns.e("title"))},[e.iconComponent&&e.center?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),Vt("span",null,Pr(e.title),1)],2),e.showClose?(qe(),Dt("button",{key:0,type:"button",class:st(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Cy(ac(m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[fn(s,{class:st(e.ns.e("close"))},{default:an(()=>[fn(a)]),_:1},8,["class"])],42,Wme)):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("div",{id:e.contentId,class:st(e.ns.e("content"))},[Vt("div",{class:st(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),e.hasMessage?(qe(),Dt("div",{key:1,class:st(e.ns.e("message"))},[Zn(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(qe(),Dn(Ia(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(qe(),Dn(Ia(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:an(()=>[$l(Pr(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Mt("v-if",!0)],2),eu(Vt("div",{class:st(e.ns.e("input"))},[fn(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>e.inputValue=m),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:st({invalid:e.validateError}),onKeydown:Cy(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Vt("div",{class:st(e.ns.e("errormsg")),style:Ds({visibility:e.editorErrorMessage?"visible":"hidden"})},Pr(e.editorErrorMessage),7)],2),[[u_,e.showInput]])],10,jme),Vt("div",{class:st(e.ns.e("btns"))},[e.showCancelButton?(qe(),Dn(u,{key:0,loading:e.cancelButtonLoading,class:st([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=m=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Cy(ac(m=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Mt("v-if",!0),eu(fn(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:st([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=m=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Cy(ac(m=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[u_,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Gme)]),_:3},8,["z-index","overlay-class","mask"]),[[u_,e.visible]])]),_:3})}var $me=Cs(kme,[["render",qme],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const gC=new Map,Yme=e=>{let t=document.body;return e.appendTo&&(_i(e.appendTo)&&(t=document.querySelector(e.appendTo)),XL(e.appendTo)&&(t=e.appendTo),XL(t)||(t=document.body)),t},Xme=(e,t,n=null)=>{const i=fn($me,e,En(e.message)||Ep(e.message)?{default:En(e.message)?e.message:()=>e.message}:null);return i.appContext=n,wS(i,t),Yme(e).appendChild(t.firstElementChild),i.component},Kme=()=>document.createElement("div"),Jme=(e,t)=>{const n=Kme();e.onVanish=()=>{wS(null,n),gC.delete(o)},e.onAction=r=>{const s=gC.get(o);let a;e.showInput?a={value:o.inputValue,action:r}:a=r,e.callback?e.callback(a,i.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const i=Xme(e,n,t),o=i.proxy;for(const r in e)oi(e,r)&&!oi(o.$props,r)&&(o[r]=e[r]);return o.visible=!0,o};function P0(e,t=null){if(!bc)return Promise.reject();let n;return _i(e)||Ep(e)?e={message:e}:n=e.callback,new Promise((i,o)=>{const r=Jme(e,t??P0._context);gC.set(r,{options:e,callback:n,resolve:i,reject:o})})}const Qme=["alert","confirm","prompt"],Zme={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Qme.forEach(e=>{P0[e]=e_e(e)});function e_e(e){return(t,n,i,o)=>{let r="";return Di(n)?(i=n,r=""):fC(n)?r="":r=n,P0(Object.assign({title:r,message:t,type:"",...Zme[e]},i,{boxType:e}),o)}}P0.close=()=>{gC.forEach((e,t)=>{t.doClose()}),gC.clear()};P0._context=null;const zh=P0;zh.install=e=>{zh._context=e._context,e.config.globalProperties.$msgbox=zh,e.config.globalProperties.$messageBox=zh,e.config.globalProperties.$alert=zh.alert,e.config.globalProperties.$confirm=zh.confirm,e.config.globalProperties.$prompt=zh.prompt};const t_e=zh,n_e="/satellite-track/assets/menu-a8f9cd83.svg",i_e="/satellite-track/assets/import-5c494d28.svg",o_e="/satellite-track/assets/clean-2b8d49bf.svg",r_e="/satellite-track/assets/hide-96ff822e.svg";function l(e){return e!=null}function x(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(x.prototype=Object.create(Error.prototype),x.prototype.constructor=x);x.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` -${this.stack.toString()}`),e};x.throwInstantiationError=function(){throw new x("This function defines an interface and should not be called directly.")};const Br={};Br.typeOf={};function s_e(e){return`${e} is required, actual value was undefined`}function O0(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}Br.defined=function(e,t){if(!l(t))throw new x(s_e(e))};Br.typeOf.func=function(e,t){if(typeof t!="function")throw new x(O0(typeof t,"function",e))};Br.typeOf.string=function(e,t){if(typeof t!="string")throw new x(O0(typeof t,"string",e))};Br.typeOf.number=function(e,t){if(typeof t!="number")throw new x(O0(typeof t,"number",e))};Br.typeOf.number.lessThan=function(e,t,n){if(Br.typeOf.number(e,t),t>=n)throw new x(`Expected ${e} to be less than ${n}, actual value was ${t}`)};Br.typeOf.number.lessThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>n)throw new x(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThan=function(e,t,n){if(Br.typeOf.number(e,t),t<=n)throw new x(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};jf.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};jf.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};jf.prototype.random_int31=function(){return this.random_int()>>>1};jf.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};jf.prototype.random=function(){return this.random_int()*(1/4294967296)};jf.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};jf.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var nD=jf;const Xe={};Xe.EPSILON1=.1;Xe.EPSILON2=.01;Xe.EPSILON3=.001;Xe.EPSILON4=1e-4;Xe.EPSILON5=1e-5;Xe.EPSILON6=1e-6;Xe.EPSILON7=1e-7;Xe.EPSILON8=1e-8;Xe.EPSILON9=1e-9;Xe.EPSILON10=1e-10;Xe.EPSILON11=1e-11;Xe.EPSILON12=1e-12;Xe.EPSILON13=1e-13;Xe.EPSILON14=1e-14;Xe.EPSILON15=1e-15;Xe.EPSILON16=1e-16;Xe.EPSILON17=1e-17;Xe.EPSILON18=1e-18;Xe.EPSILON19=1e-19;Xe.EPSILON20=1e-20;Xe.EPSILON21=1e-21;Xe.GRAVITATIONALPARAMETER=3986004418e5;Xe.SOLAR_RADIUS=6955e5;Xe.LUNAR_RADIUS=1737400;Xe.SIXTY_FOUR_KILOBYTES=64*1024;Xe.FOUR_GIGABYTES=4*1024*1024*1024;Xe.sign=A(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Xe.signNotZero=function(e){return e<0?-1:1};Xe.toSNorm=function(e,t){return t=A(t,255),Math.round((Xe.clamp(e,-1,1)*.5+.5)*t)};Xe.fromSNorm=function(e,t){return t=A(t,255),Xe.clamp(e,0,t)/t*2-1};Xe.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Xe.clamp((e-t)/n,0,1)};Xe.sinh=A(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Xe.cosh=A(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Xe.lerp=function(e,t,n){return(1-n)*e+n*t};Xe.PI=Math.PI;Xe.ONE_OVER_PI=1/Math.PI;Xe.PI_OVER_TWO=Math.PI/2;Xe.PI_OVER_THREE=Math.PI/3;Xe.PI_OVER_FOUR=Math.PI/4;Xe.PI_OVER_SIX=Math.PI/6;Xe.THREE_PI_OVER_TWO=3*Math.PI/2;Xe.TWO_PI=2*Math.PI;Xe.ONE_OVER_TWO_PI=1/(2*Math.PI);Xe.RADIANS_PER_DEGREE=Math.PI/180;Xe.DEGREES_PER_RADIAN=180/Math.PI;Xe.RADIANS_PER_ARCSECOND=Xe.RADIANS_PER_DEGREE/3600;Xe.toRadians=function(e){if(!l(e))throw new x("degrees is required.");return e*Xe.RADIANS_PER_DEGREE};Xe.toDegrees=function(e){if(!l(e))throw new x("radians is required.");return e*Xe.DEGREES_PER_RADIAN};Xe.convertLongitudeRange=function(e){if(!l(e))throw new x("angle is required.");const t=Xe.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Xe.clampToLatitudeRange=function(e){if(!l(e))throw new x("angle is required.");return Xe.clamp(e,-1*Xe.PI_OVER_TWO,Xe.PI_OVER_TWO)};Xe.negativePiToPi=function(e){if(!l(e))throw new x("angle is required.");return e>=-Xe.PI&&e<=Xe.PI?e:Xe.zeroToTwoPi(e+Xe.PI)-Xe.PI};Xe.zeroToTwoPi=function(e){if(!l(e))throw new x("angle is required.");if(e>=0&&e<=Xe.TWO_PI)return e;const t=Xe.mod(e,Xe.TWO_PI);return Math.abs(t)Xe.EPSILON14?Xe.TWO_PI:t};Xe.mod=function(e,t){if(!l(e))throw new x("m is required.");if(!l(t))throw new x("n is required.");if(t===0)throw new x("divisor cannot be 0.");return Xe.sign(e)===Xe.sign(t)&&Math.abs(e)n};Xe.greaterThanOrEquals=function(e,t,n){if(!l(e))throw new x("first is required.");if(!l(t))throw new x("second is required.");if(!l(n))throw new x("absoluteEpsilon is required.");return e-t>-n};const AE=[1];Xe.factorial=function(e){if(typeof e!="number"||e<0)throw new x("A number greater than or equal to 0 is required.");const t=AE.length;if(e>=t){let n=AE[t-1];for(let i=t;i<=e;i++){const o=n*i;AE.push(o),n=o}}return AE[e]};Xe.incrementWrap=function(e,t,n){if(n=A(n,0),!l(e))throw new x("n is required.");if(t<=n)throw new x("maximumValue must be greater than minimumValue.");return++e,e>t&&(e=n),e};Xe.isPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e!==0&&(e&e-1)===0};Xe.nextPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>2147483648)throw new x("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Xe.previousPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Xe.clamp=function(e,t,n){return T.typeOf.number("value",e),T.typeOf.number("min",t),T.typeOf.number("max",n),en?n:e};let YW=new nD;Xe.setRandomNumberSeed=function(e){if(!l(e))throw new x("seed is required.");YW=new nD(e)};Xe.nextRandomNumber=function(){return YW.random()};Xe.randomBetween=function(e,t){return Xe.nextRandomNumber()*(t-e)+e};Xe.acosClamped=function(e){if(!l(e))throw new x("value is required.");return Math.acos(Xe.clamp(e,-1,1))};Xe.asinClamped=function(e){if(!l(e))throw new x("value is required.");return Math.asin(Xe.clamp(e,-1,1))};Xe.chordLength=function(e,t){if(!l(e))throw new x("angle is required.");if(!l(t))throw new x("radius is required.");return 2*t*Math.sin(e*.5)};Xe.logBase=function(e,t){if(!l(e))throw new x("number is required.");if(!l(t))throw new x("base is required.");return Math.log(e)/Math.log(t)};Xe.cbrt=A(Math.cbrt,function(t){const n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Xe.log2=A(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Xe.fog=function(e,t){const n=e*t;return 1-Math.exp(-(n*n))};Xe.fastApproximateAtan=function(e){return T.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Xe.fastApproximateAtan2=function(e,t){T.typeOf.number("x",e),T.typeOf.number("y",t);let n,i=Math.abs(e);n=Math.abs(t);const o=Math.max(i,n);n=Math.min(i,n);const r=n/o;if(isNaN(r))throw new x("either x or y must be nonzero");return i=Xe.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Xe.PI_OVER_TWO-i:i,i=e<0?Xe.PI-i:i,i=t<0?-i:i,i};const M=Xe;function f(e,t,n){this.x=A(e,0),this.y=A(t,0),this.z=A(n,0)}f.fromSpherical=function(e,t){T.typeOf.object("spherical",e),l(t)||(t=new f);const n=e.clock,i=e.cone,o=A(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};f.fromElements=function(e,t,n,i){return l(i)?(i.x=e,i.y=t,i.z=n,i):new f(e,t,n)};f.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new f(e.x,e.y,e.z)};f.fromCartesian4=f.clone;f.packedLength=3;f.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};f.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new f),n.x=e[t++],n.y=e[t++],n.z=e[t],n};f.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*3;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==i&&(t.length=i)}for(let o=0;oi&&(o=u,i=d)}let r=1,s=0;const a=nB[o],c=iB[o];if(Math.abs(e[J.getElementIndex(c,a)])>n){const u=e[J.getElementIndex(c,c)],d=e[J.getElementIndex(a,a)],h=e[J.getElementIndex(c,a)],m=(u-d)/2/h;let g;m<0?g=-1/(-m+Math.sqrt(1+m*m)):g=1/(m+Math.sqrt(1+m*m)),r=1/Math.sqrt(1+g*g),s=g*r}return t=J.clone(J.IDENTITY,t),t[J.getElementIndex(a,a)]=t[J.getElementIndex(c,c)]=r,t[J.getElementIndex(c,a)]=s,t[J.getElementIndex(a,c)]=-s,t}const CE=new J,$z=new J;J.computeEigenDecomposition=function(e,t){T.typeOf.object("matrix",e);const n=M.EPSILON20,i=10;let o=0,r=0;l(t)||(t={});const s=t.unitary=J.clone(J.IDENTITY,t.unitary),a=t.diagonal=J.clone(e,t.diagonal),c=n*__e(a);for(;rc;)y_e(a,CE),J.transpose(CE,$z),J.multiply(a,CE,a),J.multiply($z,a,a),J.multiply(s,CE,s),++o>2&&(++r,o=0);return t};J.abs=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};J.determinant=function(e){T.typeOf.object("matrix",e);const t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],u=e[8];return t*(r*u-c*s)+o*(c*i-n*u)+a*(n*s-r*i)};J.inverse=function(e,t){T.typeOf.object("matrix",e),T.typeOf.object("result",t);const n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=J.determinant(e);if(Math.abs(h)<=M.EPSILON15)throw new x("matrix is not invertible");t[0]=s*d-u*a,t[1]=u*o-i*d,t[2]=i*a-s*o,t[3]=c*a-r*d,t[4]=n*d-c*o,t[5]=r*o-n*a,t[6]=r*u-c*s,t[7]=c*i-n*u,t[8]=n*s-r*i;const m=1/h;return J.multiplyByScalar(t,m,t)};const A_e=new J;J.inverseTranspose=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),J.inverse(J.transpose(e,A_e),t)};J.equals=function(e,t){return e===t||l(e)&&l(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};J.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};J.IDENTITY=Object.freeze(new J(1,0,0,0,1,0,0,0,1));J.ZERO=Object.freeze(new J(0,0,0,0,0,0,0,0,0));J.COLUMN0ROW0=0;J.COLUMN0ROW1=1;J.COLUMN0ROW2=2;J.COLUMN1ROW0=3;J.COLUMN1ROW1=4;J.COLUMN1ROW2=5;J.COLUMN2ROW0=6;J.COLUMN2ROW1=7;J.COLUMN2ROW2=8;Object.defineProperties(J.prototype,{length:{get:function(){return J.packedLength}}});J.prototype.clone=function(e){return J.clone(this,e)};J.prototype.equals=function(e){return J.equals(this,e)};J.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};J.prototype.equalsEpsilon=function(e,t){return J.equalsEpsilon(this,e,t)};J.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]}) + `}),c=tt(()=>2*Math.PI*s.value),u=tt(()=>t.type==="dashboard"?.75:1),d=tt(()=>`${-1*c.value*(1-u.value)/2}px`),h=tt(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),m=tt(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=tt(()=>{let w;return t.color?w=E(t.percentage):w=n[t.status]||n.default,w}),p=tt(()=>t.status==="warning"?kN:t.type==="line"?t.status==="success"?HN:VN:t.status==="success"?mW:Zv),y=tt(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=tt(()=>t.format(t.percentage));function C(w){const S=100/w.length;return w.map((L,z)=>_i(L)?{color:L,percentage:(z+1)*S}:L).sort((L,z)=>L.percentage-z.percentage)}const E=w=>{var S;const{color:P}=t;if(En(P))return P(w);if(_i(P))return P;{const L=C(P);for(const z of L)if(z.percentage>w)return z.color;return(S=L[L.length-1])==null?void 0:S.color}};return(w,S)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(w.type),pe(i).is(w.status),{[pe(i).m("without-text")]:!w.showText,[pe(i).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(qe(),Dt("div",{key:0,class:st(pe(i).b("bar"))},[Vt("div",{class:st(pe(i).be("bar","outer")),style:Ds({height:`${w.strokeWidth}px`})},[Vt("div",{class:st([pe(i).be("bar","inner"),{[pe(i).bem("bar","inner","indeterminate")]:w.indeterminate}]),style:Ds(pe(o))},[(w.showText||w.$slots.default)&&w.textInside?(qe(),Dt("div",{key:0,class:st(pe(i).be("bar","innerText"))},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[Vt("span",null,Pr(pe(b)),1)])],2)):Mt("v-if",!0)],6)],6)],2)):(qe(),Dt("div",{key:1,class:st(pe(i).b("circle")),style:Ds({height:`${w.width}px`,width:`${w.width}px`})},[(qe(),Dt("svg",Mpe,[Vt("path",{class:st(pe(i).be("circle","track")),d:pe(a),stroke:`var(${pe(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":pe(r),fill:"none",style:Ds(pe(h))},null,14,Fpe),Vt("path",{class:st(pe(i).be("circle","path")),d:pe(a),stroke:pe(g),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":pe(r),style:Ds(pe(m))},null,14,zpe)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(qe(),Dt("div",{key:2,class:st(pe(i).e("text")),style:Ds({fontSize:`${pe(y)}px`})},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[(qe(),Dn(Ia(pe(p))))]),_:1})):(qe(),Dt("span",Upe,Pr(pe(b)),1))])],6)):Mt("v-if",!0)],10,Npe))}});var kpe=Cs(Vpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Gpe=Wf(kpe),Wpe=["start","center","end","space-around","space-between","space-evenly"],jpe=["top","middle","bottom"],qpe=bs({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Wpe,default:"start"},align:{type:String,values:jpe,default:"top"}}),$pe=ci({name:"ElRow"}),Ype=ci({...$pe,props:qpe,setup(e){const t=e,n=dr("row"),i=tt(()=>t.gutter);nd(Pfe,{gutter:i});const o=tt(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=tt(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(s,a)=>(qe(),Dn(Ia(s.tag),{class:st(pe(r)),style:Ds(pe(o))},{default:an(()=>[Zn(s.$slots,"default")]),_:3},8,["class","style"]))}});var Xpe=Cs(Ype,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Kpe=Wf(Xpe),Jpe="ElUpload";class Qpe extends Error{constructor(t,n,i,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=i,this.url=o}}function Hz(e,t,n){let i;return n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to ${t.method} ${e} ${n.status}`,new Qpe(i,n.status,t.method,e)}function Zpe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const eme=e=>{typeof XMLHttpRequest>"u"&&Qv(Jpe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const i=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))Array.isArray(s)?i.append(r,...s):i.append(r,s);i.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Hz(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Hz(n,e,t));e.onSuccess(Zpe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(o))Jv(s)||t.setRequestHeader(r,String(s));return t.send(i),t},GW=["text","picture","picture-card"];let tme=1;const tB=()=>Date.now()+tme++,WW=bs({action:{type:String,default:"#"},headers:{type:Qn(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>pC({})},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:""},type:{type:String,default:"select"},fileList:{type:Qn(Array),default:()=>pC([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:GW,default:"text"},httpRequest:{type:Qn(Function),default:eme},disabled:Boolean,limit:Number}),nme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},beforeRemove:{type:Qn(Function)},onRemove:{type:Qn(Function),default:Bi},onChange:{type:Qn(Function),default:Bi},onPreview:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),ime=bs({files:{type:Qn(Array),default:()=>pC([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Qn(Function),default:Bi},listType:{type:String,values:GW,default:"text"}}),ome={remove:e=>!!e},rme=["onKeydown"],sme=["src"],ame=["onClick"],cme=["onClick"],lme=["onClick"],ume=ci({name:"ElUploadList"}),dme=ci({...ume,props:ime,emits:ome,setup(e,{emit:t}){const{t:n}=$N(),i=dr("upload"),o=dr("icon"),r=dr("list"),s=qp(),a=bn(!1),c=u=>{t("remove",u)};return(u,d)=>(qe(),Dn(dre,{tag:"ul",class:st([pe(i).b("list"),pe(i).bm("list",u.listType),pe(i).is("disabled",pe(s))]),name:pe(r).b()},{default:an(()=>[(qe(!0),Dt(Jo,null,h9(u.files,h=>(qe(),Dt("li",{key:h.uid||h.name,class:st([pe(i).be("list","item"),pe(i).is(h.status),{focusing:a.value}]),tabindex:"0",onKeydown:by(m=>!pe(s)&&c(h),["delete"]),onFocus:d[0]||(d[0]=m=>a.value=!0),onBlur:d[1]||(d[1]=m=>a.value=!1),onClick:d[2]||(d[2]=m=>a.value=!1)},[Zn(u.$slots,"default",{file:h},()=>[u.listType==="picture"||h.status!=="uploading"&&u.listType==="picture-card"?(qe(),Dt("img",{key:0,class:st(pe(i).be("list","item-thumbnail")),src:h.url,alt:""},null,10,sme)):Mt("v-if",!0),h.status==="uploading"||u.listType!=="picture-card"?(qe(),Dt("div",{key:1,class:st(pe(i).be("list","item-info"))},[Vt("a",{class:st(pe(i).be("list","item-name")),onClick:cc(m=>u.handlePreview(h),["prevent"])},[fn(pe(ss),{class:st(pe(o).m("document"))},{default:an(()=>[fn(pe(Mde))]),_:1},8,["class"]),Vt("span",{class:st(pe(i).be("list","item-file-name"))},Pr(h.name),3)],10,ame),h.status==="uploading"?(qe(),Dn(pe(Gpe),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Ds(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("label",{class:st(pe(i).be("list","item-status-label"))},[u.listType==="text"?(qe(),Dn(pe(ss),{key:0,class:st([pe(o).m("upload-success"),pe(o).m("circle-check")])},{default:an(()=>[fn(pe(HN))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).m("upload-success"),pe(o).m("check")])},{default:an(()=>[fn(pe(mW))]),_:1},8,["class"])):Mt("v-if",!0)],2),pe(s)?Mt("v-if",!0):(qe(),Dn(pe(ss),{key:2,class:st(pe(o).m("close")),onClick:m=>c(h)},{default:an(()=>[fn(pe(Zv))]),_:2},1032,["class","onClick"])),Mt(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Mt(" This is a bug which needs to be fixed "),Mt(" TODO: Fix the incorrect navigation interaction "),pe(s)?Mt("v-if",!0):(qe(),Dt("i",{key:3,class:st(pe(o).m("close-tip"))},Pr(pe(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(qe(),Dt("span",{key:4,class:st(pe(i).be("list","item-actions"))},[Vt("span",{class:st(pe(i).be("list","item-preview")),onClick:m=>u.handlePreview(h)},[fn(pe(ss),{class:st(pe(o).m("zoom-in"))},{default:an(()=>[fn(pe(Cfe))]),_:1},8,["class"])],10,cme),pe(s)?Mt("v-if",!0):(qe(),Dt("span",{key:0,class:st(pe(i).be("list","item-delete")),onClick:m=>c(h)},[fn(pe(ss),{class:st(pe(o).m("delete"))},{default:an(()=>[fn(pe(Pde))]),_:1},8,["class"])],10,lme))],2)):Mt("v-if",!0)])],42,rme))),128)),Zn(u.$slots,"append")]),_:3},8,["class","name"]))}});var Vz=Cs(dme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const fme=bs({disabled:{type:Boolean,default:!1}}),hme={file:e=>Yt(e)},pme=["onDrop","onDragover"],jW="ElUploadDrag",mme=ci({name:jW}),_me=ci({...mme,props:fme,emits:hme,setup(e,{emit:t}){const n=er(vW);n||Qv(jW,"usage: ");const i=dr("upload"),o=bn(!1),r=qp(),s=c=>{if(r.value)return;o.value=!1;const u=Array.from(c.dataTransfer.files),d=n.accept.value;if(!d){t("file",u);return}const h=u.filter(m=>{const{type:g,name:p}=m,y=p.includes(".")?`.${p.split(".").pop()}`:"",b=g.replace(/\/.*$/,"");return d.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?y===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?g===C:!1)});t("file",h)},a=()=>{r.value||(o.value=!0)};return(c,u)=>(qe(),Dt("div",{class:st([pe(i).b("dragger"),pe(i).is("dragover",o.value)]),onDrop:cc(s,["prevent"]),onDragover:cc(a,["prevent"]),onDragleave:u[0]||(u[0]=cc(d=>o.value=!1,["prevent"]))},[Zn(c.$slots,"default")],42,pme))}});var gme=Cs(_me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const yme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},onRemove:{type:Qn(Function),default:Bi},onStart:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),Ame=["onKeydown"],bme=["name","multiple","accept"],Cme=ci({name:"ElUploadContent",inheritAttrs:!1}),Tme=ci({...Cme,props:yme,setup(e,{expose:t}){const n=e,i=dr("upload"),o=qp(),r=c_({}),s=c_(),a=p=>{if(p.length===0)return;const{autoUpload:y,limit:b,fileList:C,multiple:E,onStart:w,onExceed:S}=n;if(b&&C.length+p.length>b){S(p,C);return}E||(p=p.slice(0,1));for(const P of p){const L=P;L.uid=tB(),w(L),y&&c(L)}},c=async p=>{if(s.value.value="",!n.beforeUpload)return u(p);let y;try{y=await n.beforeUpload(p)}catch{y=!1}if(y===!1){n.onRemove(p);return}let b=p;y instanceof Blob&&(y instanceof File?b=y:b=new File([y],p.name,{type:p.type})),u(Object.assign(b,{uid:p.uid}))},u=p=>{const{headers:y,data:b,method:C,withCredentials:E,name:w,action:S,onProgress:P,onSuccess:L,onError:z,httpRequest:R}=n,{uid:F}=p,U={headers:y||{},withCredentials:E,file:p,data:b,method:C,filename:w,action:S,onProgress:I=>{P(I,p)},onSuccess:I=>{L(I,p),delete r.value[F]},onError:I=>{z(I,p),delete r.value[F]}},D=R(U);r.value[F]=D,D instanceof Promise&&D.then(U.onSuccess,U.onError)},d=p=>{const y=p.target.files;y&&a(Array.from(y))},h=()=>{o.value||(s.value.value="",s.value.click())},m=()=>{h()};return t({abort:p=>{que(r.value).filter(p?([b])=>String(p.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete r.value[b]})},upload:c}),(p,y)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(p.listType),pe(i).is("drag",p.drag)]),tabindex:"0",onClick:h,onKeydown:by(cc(m,["self"]),["enter","space"])},[p.drag?(qe(),Dn(gme,{key:0,disabled:pe(o),onFile:a},{default:an(()=>[Zn(p.$slots,"default")]),_:3},8,["disabled"])):Zn(p.$slots,"default",{key:1}),Vt("input",{ref_key:"inputRef",ref:s,class:st(pe(i).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:d,onClick:y[0]||(y[0]=cc(()=>{},["stop"]))},null,42,bme)],42,Ame))}});var kz=Cs(Tme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Gz="ElUpload",Eme=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xme=(e,t)=>{const n=Wue(e,"fileList",void 0,{passive:!0}),i=m=>n.value.find(g=>g.uid===m.uid);function o(m){var g;(g=t.value)==null||g.abort(m)}function r(m=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!m.includes(g.status))}const s=(m,g)=>{const p=i(g);p&&(console.error(m),p.status="fail",n.value.splice(n.value.indexOf(p),1),e.onError(m,p,n.value),e.onChange(p,n.value))},a=(m,g)=>{const p=i(g);p&&(e.onProgress(m,p,n.value),p.status="uploading",p.percentage=Math.round(m.percent))},c=(m,g)=>{const p=i(g);p&&(p.status="success",p.response=m,e.onSuccess(m,p,n.value),e.onChange(p,n.value))},u=m=>{Jv(m.uid)&&(m.uid=tB());const g={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(m)}catch(p){p.message,e.onError(p,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},d=async m=>{const g=m instanceof File?i(m):m;g||Qv(Gz,"file to be removed not found");const p=y=>{o(y);const b=n.value;b.splice(b.indexOf(y),1),e.onRemove(y,b),Eme(y)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&p(g):p(g)};function h(){n.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var g;return m&&((g=t.value)==null?void 0:g.upload(m))})}return to(()=>e.listType,m=>{m!=="picture-card"&&m!=="picture"||(n.value=n.value.map(g=>{const{raw:p,url:y}=g;if(!y&&p)try{g.url=URL.createObjectURL(p)}catch(b){e.onError(b,g,n.value)}return g}))}),to(n,m=>{for(const g of m)g.uid||(g.uid=tB()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:r,handleError:s,handleProgress:a,handleStart:u,handleSuccess:c,handleRemove:d,submit:h}},wme=ci({name:"ElUpload"}),Sme=ci({...wme,props:nme,setup(e,{expose:t}){const n=e,i=aT(),o=qp(),r=c_(),{abort:s,submit:a,clearFiles:c,uploadFiles:u,handleStart:d,handleError:h,handleRemove:m,handleSuccess:g,handleProgress:p}=xme(n,r),y=tt(()=>n.listType==="picture-card"),b=tt(()=>({...n,fileList:u.value,onStart:d,onProgress:p,onSuccess:g,onError:h,onRemove:m}));return Wp(()=>{u.value.forEach(({url:C})=>{C!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(C)})}),nd(vW,{accept:e0(n,"accept")}),t({abort:s,submit:a,clearFiles:c,handleStart:d,handleRemove:m}),(C,E)=>(qe(),Dt("div",null,[pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:0,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({append:an(()=>[fn(kz,cp({ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0),!pe(y)||pe(y)&&!C.showFileList?(qe(),Dn(kz,cp({key:1,ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)):Mt("v-if",!0),C.$slots.trigger?Zn(C.$slots,"default",{key:2}):Mt("v-if",!0),Zn(C.$slots,"tip"),!pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:3,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0)]))}});var vme=Cs(Sme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Dme=Wf(vme),qW=["success","info","warning","error"],Va=pC({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Cc?document.body:void 0}),Ime=bs({customClass:{type:String,default:Va.customClass},center:{type:Boolean,default:Va.center},dangerouslyUseHTMLString:{type:Boolean,default:Va.dangerouslyUseHTMLString},duration:{type:Number,default:Va.duration},icon:{type:r0,default:Va.icon},id:{type:String,default:Va.id},message:{type:Qn([String,Object,Function]),default:Va.message},onClose:{type:Qn(Function),required:!1},showClose:{type:Boolean,default:Va.showClose},type:{type:String,values:qW,default:Va.type},offset:{type:Number,default:Va.offset},zIndex:{type:Number,default:Va.zIndex},grouping:{type:Boolean,default:Va.grouping},repeatNum:{type:Number,default:Va.repeatNum}}),Pme={destroy:()=>!0},Qu=G6([]),Ome=e=>{const t=Qu.findIndex(o=>o.id===e),n=Qu[t];let i;return t>0&&(i=Qu[t-1]),{current:n,prev:i}},Lme=e=>{const{prev:t}=Ome(e);return t?t.vm.exposed.bottom.value:0},Bme=["id"],Rme=["innerHTML"],Nme=ci({name:"ElMessage"}),Mme=ci({...Nme,props:Ime,emits:Pme,setup(e,{expose:t}){const n=e,{Close:i}=TW,o=dr("message"),r=bn(),s=bn(!1),a=bn(0);let c;const u=tt(()=>n.type?n.type==="error"?"danger":n.type:"info"),d=tt(()=>{const S=n.type;return{[o.bm("icon",S)]:S&&OS[S]}}),h=tt(()=>n.icon||OS[n.type]||""),m=tt(()=>Lme(n.id)),g=tt(()=>n.offset+m.value),p=tt(()=>a.value+g.value),y=tt(()=>({top:`${g.value}px`,zIndex:n.zIndex}));function b(){n.duration!==0&&({stop:c}=qL(()=>{E()},n.duration))}function C(){c==null||c()}function E(){s.value=!1}function w({code:S}){S===eD.esc&&E()}return Oc(()=>{b(),s.value=!0}),to(()=>n.repeatNum,()=>{C(),b()}),Bue(document,"keydown",w),hW(r,()=>{a.value=r.value.getBoundingClientRect().height}),t({visible:s,bottom:p,close:E}),(S,P)=>(qe(),Dn(S0,{name:pe(o).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:P[0]||(P[0]=L=>S.$emit("destroy")),persisted:""},{default:an(()=>[eu(Vt("div",{id:S.id,ref_key:"messageRef",ref:r,class:st([pe(o).b(),{[pe(o).m(S.type)]:S.type&&!S.icon},pe(o).is("center",S.center),pe(o).is("closable",S.showClose),S.customClass]),style:Ds(pe(y)),role:"alert",onMouseenter:C,onMouseleave:b},[S.repeatNum>1?(qe(),Dn(pe(The),{key:0,value:S.repeatNum,type:pe(u),class:st(pe(o).e("badge"))},null,8,["value","type","class"])):Mt("v-if",!0),pe(h)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).e("icon"),pe(d)])},{default:an(()=>[(qe(),Dn(Ia(pe(h))))]),_:1},8,["class"])):Mt("v-if",!0),Zn(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(qe(),Dt(Jo,{key:1},[Mt(" Caution here, message could've been compromised, never use user's input as message "),Vt("p",{class:st(pe(o).e("content")),innerHTML:S.message},null,10,Rme)],2112)):(qe(),Dt("p",{key:0,class:st(pe(o).e("content"))},Pr(S.message),3))]),S.showClose?(qe(),Dn(pe(ss),{key:2,class:st(pe(o).e("closeBtn")),onClick:cc(E,["stop"])},{default:an(()=>[fn(pe(i))]),_:1},8,["class","onClick"])):Mt("v-if",!0)],46,Bme),[[u_,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Fme=Cs(Mme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let zme=1;const $W=e=>{const t=!e||_i(e)||Ep(e)||En(e)?{message:e}:e,n={...Va,...t};if(!n.appendTo)n.appendTo=document.body;else if(_i(n.appendTo)){let i=document.querySelector(n.appendTo);XL(i)||(i=document.body),n.appendTo=i}return n},Ume=e=>{const t=Qu.indexOf(e);if(t===-1)return;Qu.splice(t,1);const{handler:n}=e;n.close()},Hme=({appendTo:e,...t},n)=>{const{nextZIndex:i}=YN(),o=`message_${zme++}`,r=t.onClose,s=document.createElement("div"),a={...t,zIndex:i()+t.zIndex,id:o,onClose:()=>{r==null||r(),Ume(h)},onDestroy:()=>{wS(null,s)}},c=fn(Fme,a,En(a.message)||Ep(a.message)?{default:En(a.message)?a.message:()=>a.message}:null);c.appContext=n||s0._context,wS(c,s),e.appendChild(s.firstElementChild);const u=c.component,h={id:o,vnode:c,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:c.component.props};return h},s0=(e={},t)=>{if(!Cc)return{close:()=>{}};if(wp(eB.max)&&Qu.length>=eB.max)return{close:()=>{}};const n=$W(e);if(n.grouping&&Qu.length){const o=Qu.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const i=Hme(n,t);return Qu.push(i),i.handler};qW.forEach(e=>{s0[e]=(t={},n)=>{const i=$W(t);return s0({...i,type:e},n)}});function Vme(e){for(const t of Qu)(!e||e===t.props.type)&&t.handler.close()}s0.closeAll=Vme;s0._context=null;const Lb=xfe(s0,"$message"),kme=ci({name:"ElMessageBox",directives:{TrapFocus:Yhe},components:{ElButton:MW,ElFocusTrap:BW,ElInput:OW,ElOverlay:kW,ElIcon:ss,...TW},inheritAttrs:!1,props:{buttonSize:{type:String,validator:wfe},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=$N(),i=dr("message-box"),o=bn(!1),{nextZIndex:r}=YN(),s=W_({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:r()}),a=tt(()=>{const _=s.type;return{[i.bm("icon",_)]:_&&OS[_]}}),c=_C(),u=_C(),d=mC(tt(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=tt(()=>s.icon||OS[s.type]||""),m=tt(()=>!!s.message),g=bn(),p=bn(),y=bn(),b=bn(),C=bn(),E=tt(()=>s.confirmButtonClass);to(()=>s.inputValue,async _=>{await us(),e.boxType==="prompt"&&_!==null&&F()},{immediate:!0}),to(()=>o.value,_=>{var v,O;_&&(e.boxType!=="prompt"&&(s.autofocus?y.value=(O=(v=C.value)==null?void 0:v.$el)!=null?O:g.value:y.value=g.value),s.zIndex=r()),e.boxType==="prompt"&&(_?us().then(()=>{var N;b.value&&b.value.$el&&(s.autofocus?y.value=(N=U())!=null?N:g.value:y.value=g.value)}):(s.editorErrorMessage="",s.validateError=!1))});const w=tt(()=>e.draggable);Bfe(g,p,w),Oc(async()=>{await us(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),Wp(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){o.value&&(o.value=!1,us(()=>{s.action&&t("action",s.action)}))}const P=()=>{e.closeOnClickModal&&R(s.distinguishCancelAndClose?"close":"cancel")},L=PW(P),z=_=>{if(s.inputType!=="textarea")return _.preventDefault(),R("confirm")},R=_=>{var v;e.boxType==="prompt"&&_==="confirm"&&!F()||(s.action=_,s.beforeClose?(v=s.beforeClose)==null||v.call(s,_,s,S):S())},F=()=>{if(e.boxType==="prompt"){const _=s.inputPattern;if(_&&!_.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;const v=s.inputValidator;if(typeof v=="function"){const O=v(s.inputValue);if(O===!1)return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;if(typeof O=="string")return s.editorErrorMessage=O,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},U=()=>{const _=b.value.$refs;return _.input||_.textarea},D=()=>{R("close")},I=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&IW(o),Vfe(o),{...K6(s),ns:i,overlayEvent:L,visible:o,hasMessage:m,typeClass:a,contentId:c,inputId:u,btnSize:d,iconComponent:h,confirmButtonClasses:E,rootRef:g,focusStartRef:y,headerRef:p,inputRef:b,confirmRef:C,doClose:S,handleClose:D,onCloseRequested:I,handleWrapperClick:P,handleInputEnter:z,handleAction:R,t:n}}}),Gme=["aria-label","aria-describedby"],Wme=["aria-label"],jme=["id"];function qme(e,t,n,i,o,r){const s=Wu("el-icon"),a=Wu("close"),c=Wu("el-input"),u=Wu("el-button"),d=Wu("el-focus-trap"),h=Wu("el-overlay");return qe(),Dn(S0,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=m=>e.$emit("vanish")),persisted:""},{default:an(()=>[eu(fn(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:an(()=>[Vt("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:st(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...m)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...m)),onMousedown:t[9]||(t[9]=(...m)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...m)),onMouseup:t[10]||(t[10]=(...m)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...m))},[fn(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",{ref:"rootRef",class:st([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ds(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=cc(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(qe(),Dt("div",{key:0,ref:"headerRef",class:st(e.ns.e("header"))},[Vt("div",{class:st(e.ns.e("title"))},[e.iconComponent&&e.center?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),Vt("span",null,Pr(e.title),1)],2),e.showClose?(qe(),Dt("button",{key:0,type:"button",class:st(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=by(cc(m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[fn(s,{class:st(e.ns.e("close"))},{default:an(()=>[fn(a)]),_:1},8,["class"])],42,Wme)):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("div",{id:e.contentId,class:st(e.ns.e("content"))},[Vt("div",{class:st(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),e.hasMessage?(qe(),Dt("div",{key:1,class:st(e.ns.e("message"))},[Zn(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(qe(),Dn(Ia(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(qe(),Dn(Ia(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:an(()=>[$l(Pr(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Mt("v-if",!0)],2),eu(Vt("div",{class:st(e.ns.e("input"))},[fn(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>e.inputValue=m),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:st({invalid:e.validateError}),onKeydown:by(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Vt("div",{class:st(e.ns.e("errormsg")),style:Ds({visibility:e.editorErrorMessage?"visible":"hidden"})},Pr(e.editorErrorMessage),7)],2),[[u_,e.showInput]])],10,jme),Vt("div",{class:st(e.ns.e("btns"))},[e.showCancelButton?(qe(),Dn(u,{key:0,loading:e.cancelButtonLoading,class:st([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=m=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=by(cc(m=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Mt("v-if",!0),eu(fn(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:st([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=m=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=by(cc(m=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[u_,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Gme)]),_:3},8,["z-index","overlay-class","mask"]),[[u_,e.visible]])]),_:3})}var $me=Cs(kme,[["render",qme],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const gC=new Map,Yme=e=>{let t=document.body;return e.appendTo&&(_i(e.appendTo)&&(t=document.querySelector(e.appendTo)),XL(e.appendTo)&&(t=e.appendTo),XL(t)||(t=document.body)),t},Xme=(e,t,n=null)=>{const i=fn($me,e,En(e.message)||Ep(e.message)?{default:En(e.message)?e.message:()=>e.message}:null);return i.appContext=n,wS(i,t),Yme(e).appendChild(t.firstElementChild),i.component},Kme=()=>document.createElement("div"),Jme=(e,t)=>{const n=Kme();e.onVanish=()=>{wS(null,n),gC.delete(o)},e.onAction=r=>{const s=gC.get(o);let a;e.showInput?a={value:o.inputValue,action:r}:a=r,e.callback?e.callback(a,i.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const i=Xme(e,n,t),o=i.proxy;for(const r in e)oi(e,r)&&!oi(o.$props,r)&&(o[r]=e[r]);return o.visible=!0,o};function I0(e,t=null){if(!Cc)return Promise.reject();let n;return _i(e)||Ep(e)?e={message:e}:n=e.callback,new Promise((i,o)=>{const r=Jme(e,t??I0._context);gC.set(r,{options:e,callback:n,resolve:i,reject:o})})}const Qme=["alert","confirm","prompt"],Zme={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Qme.forEach(e=>{I0[e]=e_e(e)});function e_e(e){return(t,n,i,o)=>{let r="";return Di(n)?(i=n,r=""):fC(n)?r="":r=n,I0(Object.assign({title:r,message:t,type:"",...Zme[e]},i,{boxType:e}),o)}}I0.close=()=>{gC.forEach((e,t)=>{t.doClose()}),gC.clear()};I0._context=null;const zh=I0;zh.install=e=>{zh._context=e._context,e.config.globalProperties.$msgbox=zh,e.config.globalProperties.$messageBox=zh,e.config.globalProperties.$alert=zh.alert,e.config.globalProperties.$confirm=zh.confirm,e.config.globalProperties.$prompt=zh.prompt};const t_e=zh,n_e="/satellite-track/assets/menu-a8f9cd83.svg",i_e="/satellite-track/assets/import-5c494d28.svg",o_e="/satellite-track/assets/clean-2b8d49bf.svg",r_e="/satellite-track/assets/hide-96ff822e.svg";function l(e){return e!=null}function x(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(x.prototype=Object.create(Error.prototype),x.prototype.constructor=x);x.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` +${this.stack.toString()}`),e};x.throwInstantiationError=function(){throw new x("This function defines an interface and should not be called directly.")};const Br={};Br.typeOf={};function s_e(e){return`${e} is required, actual value was undefined`}function P0(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}Br.defined=function(e,t){if(!l(t))throw new x(s_e(e))};Br.typeOf.func=function(e,t){if(typeof t!="function")throw new x(P0(typeof t,"function",e))};Br.typeOf.string=function(e,t){if(typeof t!="string")throw new x(P0(typeof t,"string",e))};Br.typeOf.number=function(e,t){if(typeof t!="number")throw new x(P0(typeof t,"number",e))};Br.typeOf.number.lessThan=function(e,t,n){if(Br.typeOf.number(e,t),t>=n)throw new x(`Expected ${e} to be less than ${n}, actual value was ${t}`)};Br.typeOf.number.lessThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>n)throw new x(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThan=function(e,t,n){if(Br.typeOf.number(e,t),t<=n)throw new x(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};jf.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};jf.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};jf.prototype.random_int31=function(){return this.random_int()>>>1};jf.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};jf.prototype.random=function(){return this.random_int()*(1/4294967296)};jf.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};jf.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var nD=jf;const Xe={};Xe.EPSILON1=.1;Xe.EPSILON2=.01;Xe.EPSILON3=.001;Xe.EPSILON4=1e-4;Xe.EPSILON5=1e-5;Xe.EPSILON6=1e-6;Xe.EPSILON7=1e-7;Xe.EPSILON8=1e-8;Xe.EPSILON9=1e-9;Xe.EPSILON10=1e-10;Xe.EPSILON11=1e-11;Xe.EPSILON12=1e-12;Xe.EPSILON13=1e-13;Xe.EPSILON14=1e-14;Xe.EPSILON15=1e-15;Xe.EPSILON16=1e-16;Xe.EPSILON17=1e-17;Xe.EPSILON18=1e-18;Xe.EPSILON19=1e-19;Xe.EPSILON20=1e-20;Xe.EPSILON21=1e-21;Xe.GRAVITATIONALPARAMETER=3986004418e5;Xe.SOLAR_RADIUS=6955e5;Xe.LUNAR_RADIUS=1737400;Xe.SIXTY_FOUR_KILOBYTES=64*1024;Xe.FOUR_GIGABYTES=4*1024*1024*1024;Xe.sign=A(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Xe.signNotZero=function(e){return e<0?-1:1};Xe.toSNorm=function(e,t){return t=A(t,255),Math.round((Xe.clamp(e,-1,1)*.5+.5)*t)};Xe.fromSNorm=function(e,t){return t=A(t,255),Xe.clamp(e,0,t)/t*2-1};Xe.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Xe.clamp((e-t)/n,0,1)};Xe.sinh=A(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Xe.cosh=A(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Xe.lerp=function(e,t,n){return(1-n)*e+n*t};Xe.PI=Math.PI;Xe.ONE_OVER_PI=1/Math.PI;Xe.PI_OVER_TWO=Math.PI/2;Xe.PI_OVER_THREE=Math.PI/3;Xe.PI_OVER_FOUR=Math.PI/4;Xe.PI_OVER_SIX=Math.PI/6;Xe.THREE_PI_OVER_TWO=3*Math.PI/2;Xe.TWO_PI=2*Math.PI;Xe.ONE_OVER_TWO_PI=1/(2*Math.PI);Xe.RADIANS_PER_DEGREE=Math.PI/180;Xe.DEGREES_PER_RADIAN=180/Math.PI;Xe.RADIANS_PER_ARCSECOND=Xe.RADIANS_PER_DEGREE/3600;Xe.toRadians=function(e){if(!l(e))throw new x("degrees is required.");return e*Xe.RADIANS_PER_DEGREE};Xe.toDegrees=function(e){if(!l(e))throw new x("radians is required.");return e*Xe.DEGREES_PER_RADIAN};Xe.convertLongitudeRange=function(e){if(!l(e))throw new x("angle is required.");const t=Xe.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Xe.clampToLatitudeRange=function(e){if(!l(e))throw new x("angle is required.");return Xe.clamp(e,-1*Xe.PI_OVER_TWO,Xe.PI_OVER_TWO)};Xe.negativePiToPi=function(e){if(!l(e))throw new x("angle is required.");return e>=-Xe.PI&&e<=Xe.PI?e:Xe.zeroToTwoPi(e+Xe.PI)-Xe.PI};Xe.zeroToTwoPi=function(e){if(!l(e))throw new x("angle is required.");if(e>=0&&e<=Xe.TWO_PI)return e;const t=Xe.mod(e,Xe.TWO_PI);return Math.abs(t)Xe.EPSILON14?Xe.TWO_PI:t};Xe.mod=function(e,t){if(!l(e))throw new x("m is required.");if(!l(t))throw new x("n is required.");if(t===0)throw new x("divisor cannot be 0.");return Xe.sign(e)===Xe.sign(t)&&Math.abs(e)n};Xe.greaterThanOrEquals=function(e,t,n){if(!l(e))throw new x("first is required.");if(!l(t))throw new x("second is required.");if(!l(n))throw new x("absoluteEpsilon is required.");return e-t>-n};const AE=[1];Xe.factorial=function(e){if(typeof e!="number"||e<0)throw new x("A number greater than or equal to 0 is required.");const t=AE.length;if(e>=t){let n=AE[t-1];for(let i=t;i<=e;i++){const o=n*i;AE.push(o),n=o}}return AE[e]};Xe.incrementWrap=function(e,t,n){if(n=A(n,0),!l(e))throw new x("n is required.");if(t<=n)throw new x("maximumValue must be greater than minimumValue.");return++e,e>t&&(e=n),e};Xe.isPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e!==0&&(e&e-1)===0};Xe.nextPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>2147483648)throw new x("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Xe.previousPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Xe.clamp=function(e,t,n){return T.typeOf.number("value",e),T.typeOf.number("min",t),T.typeOf.number("max",n),en?n:e};let YW=new nD;Xe.setRandomNumberSeed=function(e){if(!l(e))throw new x("seed is required.");YW=new nD(e)};Xe.nextRandomNumber=function(){return YW.random()};Xe.randomBetween=function(e,t){return Xe.nextRandomNumber()*(t-e)+e};Xe.acosClamped=function(e){if(!l(e))throw new x("value is required.");return Math.acos(Xe.clamp(e,-1,1))};Xe.asinClamped=function(e){if(!l(e))throw new x("value is required.");return Math.asin(Xe.clamp(e,-1,1))};Xe.chordLength=function(e,t){if(!l(e))throw new x("angle is required.");if(!l(t))throw new x("radius is required.");return 2*t*Math.sin(e*.5)};Xe.logBase=function(e,t){if(!l(e))throw new x("number is required.");if(!l(t))throw new x("base is required.");return Math.log(e)/Math.log(t)};Xe.cbrt=A(Math.cbrt,function(t){const n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Xe.log2=A(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Xe.fog=function(e,t){const n=e*t;return 1-Math.exp(-(n*n))};Xe.fastApproximateAtan=function(e){return T.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Xe.fastApproximateAtan2=function(e,t){T.typeOf.number("x",e),T.typeOf.number("y",t);let n,i=Math.abs(e);n=Math.abs(t);const o=Math.max(i,n);n=Math.min(i,n);const r=n/o;if(isNaN(r))throw new x("either x or y must be nonzero");return i=Xe.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Xe.PI_OVER_TWO-i:i,i=e<0?Xe.PI-i:i,i=t<0?-i:i,i};const M=Xe;function f(e,t,n){this.x=A(e,0),this.y=A(t,0),this.z=A(n,0)}f.fromSpherical=function(e,t){T.typeOf.object("spherical",e),l(t)||(t=new f);const n=e.clock,i=e.cone,o=A(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};f.fromElements=function(e,t,n,i){return l(i)?(i.x=e,i.y=t,i.z=n,i):new f(e,t,n)};f.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new f(e.x,e.y,e.z)};f.fromCartesian4=f.clone;f.packedLength=3;f.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};f.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new f),n.x=e[t++],n.y=e[t++],n.z=e[t],n};f.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*3;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==i&&(t.length=i)}for(let o=0;oi&&(o=u,i=d)}let r=1,s=0;const a=nB[o],c=iB[o];if(Math.abs(e[J.getElementIndex(c,a)])>n){const u=e[J.getElementIndex(c,c)],d=e[J.getElementIndex(a,a)],h=e[J.getElementIndex(c,a)],m=(u-d)/2/h;let g;m<0?g=-1/(-m+Math.sqrt(1+m*m)):g=1/(m+Math.sqrt(1+m*m)),r=1/Math.sqrt(1+g*g),s=g*r}return t=J.clone(J.IDENTITY,t),t[J.getElementIndex(a,a)]=t[J.getElementIndex(c,c)]=r,t[J.getElementIndex(c,a)]=s,t[J.getElementIndex(a,c)]=-s,t}const CE=new J,$z=new J;J.computeEigenDecomposition=function(e,t){T.typeOf.object("matrix",e);const n=M.EPSILON20,i=10;let o=0,r=0;l(t)||(t={});const s=t.unitary=J.clone(J.IDENTITY,t.unitary),a=t.diagonal=J.clone(e,t.diagonal),c=n*__e(a);for(;rc;)y_e(a,CE),J.transpose(CE,$z),J.multiply(a,CE,a),J.multiply($z,a,a),J.multiply(s,CE,s),++o>2&&(++r,o=0);return t};J.abs=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};J.determinant=function(e){T.typeOf.object("matrix",e);const t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],u=e[8];return t*(r*u-c*s)+o*(c*i-n*u)+a*(n*s-r*i)};J.inverse=function(e,t){T.typeOf.object("matrix",e),T.typeOf.object("result",t);const n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=J.determinant(e);if(Math.abs(h)<=M.EPSILON15)throw new x("matrix is not invertible");t[0]=s*d-u*a,t[1]=u*o-i*d,t[2]=i*a-s*o,t[3]=c*a-r*d,t[4]=n*d-c*o,t[5]=r*o-n*a,t[6]=r*u-c*s,t[7]=c*i-n*u,t[8]=n*s-r*i;const m=1/h;return J.multiplyByScalar(t,m,t)};const A_e=new J;J.inverseTranspose=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),J.inverse(J.transpose(e,A_e),t)};J.equals=function(e,t){return e===t||l(e)&&l(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};J.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};J.IDENTITY=Object.freeze(new J(1,0,0,0,1,0,0,0,1));J.ZERO=Object.freeze(new J(0,0,0,0,0,0,0,0,0));J.COLUMN0ROW0=0;J.COLUMN0ROW1=1;J.COLUMN0ROW2=2;J.COLUMN1ROW0=3;J.COLUMN1ROW1=4;J.COLUMN1ROW2=5;J.COLUMN2ROW0=6;J.COLUMN2ROW1=7;J.COLUMN2ROW2=8;Object.defineProperties(J.prototype,{length:{get:function(){return J.packedLength}}});J.prototype.clone=function(e){return J.clone(this,e)};J.prototype.equals=function(e){return J.equals(this,e)};J.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};J.prototype.equalsEpsilon=function(e,t){return J.equalsEpsilon(this,e,t)};J.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]}) (${this[1]}, ${this[4]}, ${this[7]}) (${this[2]}, ${this[5]}, ${this[8]})`};function Ie(e){this.name="RuntimeError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(Ie.prototype=Object.create(Error.prototype),Ie.prototype.constructor=Ie);Ie.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` -${this.stack.toString()}`),e};function B(e,t,n,i,o,r,s,a,c,u,d,h,m,g,p,y){this[0]=A(e,0),this[1]=A(o,0),this[2]=A(c,0),this[3]=A(m,0),this[4]=A(t,0),this[5]=A(r,0),this[6]=A(u,0),this[7]=A(g,0),this[8]=A(n,0),this[9]=A(s,0),this[10]=A(d,0),this[11]=A(p,0),this[12]=A(i,0),this[13]=A(a,0),this[14]=A(h,0),this[15]=A(y,0)}B.packedLength=16;B.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t[n++]=e[9],t[n++]=e[10],t[n++]=e[11],t[n++]=e[12],t[n++]=e[13],t[n++]=e[14],t[n]=e[15],t};B.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new B),n[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n[9]=e[t++],n[10]=e[t++],n[11]=e[t++],n[12]=e[t++],n[13]=e[t++],n[14]=e[t++],n[15]=e[t],n};B.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*16;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 16 elements");t.length!==i&&(t.length=i)}for(let o=0;o=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};jr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new x("numberOfVertices is required.");if(!l(t))throw new x("sourceArray is required.");if(!l(n))throw new x("byteOffset is required.");return e>=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};jr.fromTypedArray=function(e){if(e instanceof Uint8Array)return jr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return jr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return jr.UNSIGNED_INT;throw new x("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const at=Object.freeze(jr),Iw={STREAM_DRAW:ae.STREAM_DRAW,STATIC_DRAW:ae.STATIC_DRAW,DYNAMIC_DRAW:ae.DYNAMIC_DRAW,validate:function(e){return e===Iw.STREAM_DRAW||e===Iw.STATIC_DRAW||e===Iw.DYNAMIC_DRAW}},nt=Object.freeze(Iw);function Tt(e){if(e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new x("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new x("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(T.typeOf.object("options.typedArray",e.typedArray),T.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!nt.validate(e.usage))throw new x("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),T.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=Ms(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}Tt.createVertexBuffer=function(e){return T.defined("options.context",e.context),new Tt({context:e.context,bufferTarget:ae.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};Tt.createIndexBuffer=function(e){if(T.defined("options.context",e.context),!at.validate(e.indexDatatype))throw new x("Invalid indexDatatype.");if(e.indexDatatype===at.UNSIGNED_INT&&!e.context.elementIndexUint)throw new x("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=at.getSizeInBytes(n),o=new Tt({context:t,bufferTarget:ae.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(Tt.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});Tt.prototype._getBuffer=function(){return this._buffer};Tt.prototype.copyFromArrayView=function(e,t){t=A(t,0),T.defined("arrayView",e),T.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};Tt.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new x("A WebGL 2 context is required.");if(!l(e))throw new x("readBuffer must be defined.");if(!l(i)||i<=0)throw new x("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new x("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new x("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new x("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new x("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new x("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new x("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=ae.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};Tt.prototype.isDestroyed=function(){return!1};Tt.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),He(this)};let mh;const Xo={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},ja={};Object.defineProperties(ja,{element:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenElement]}},changeEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenchange}},errorEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenerror}},enabled:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenEnabled]}},fullscreen:{get:function(){if(ja.supportsFullscreen())return ja.element!==null}}});ja.supportsFullscreen=function(){if(l(mh))return mh;mh=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Xo.requestFullscreen="requestFullscreen",Xo.exitFullscreen="exitFullscreen",Xo.fullscreenEnabled="fullscreenEnabled",Xo.fullscreenElement="fullscreenElement",Xo.fullscreenchange="fullscreenchange",Xo.fullscreenerror="fullscreenerror",mh=!0,mh;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){qs._result=t.width>0&&t.height>0,e(qs._result)},t.onerror=function(){qs._result=!1,e(qs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),qs._promise};Object.defineProperties(qs,{initialized:{get:function(){return l(qs._result)}}});const sy=[];typeof ArrayBuffer<"u"&&(sy.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&sy.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&sy.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&sy.push(BigInt64Array),typeof BigUint64Array<"u"&&sy.push(BigUint64Array));const ud={isChrome:QN,chromeVersion:B_e,isSafari:QW,safariVersion:R_e,isWebkit:ZW,webkitVersion:N_e,isInternetExplorer:ej,internetExplorerVersion:M_e,isEdge:iD,edgeVersion:F_e,isFirefox:ZN,firefoxVersion:H_e,isWindows:z_e,isIPadOrIOS:U_e,hardwareConcurrency:A(ia.hardwareConcurrency,3),supportsPointerEvents:V_e,supportsImageRenderingPixelated:oj,supportsWebP:qs,imageRenderingValue:k_e,typedArrayTypes:sy};ud.supportsBasis=function(e){return ud.supportsWebAssembly()&&e.context.supportsBasis};ud.supportsFullscreen=function(){return os.supportsFullscreen()};ud.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};ud.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};ud.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};ud.supportsBigInt=function(){return typeof BigInt<"u"};ud.supportsWebWorkers=function(){return typeof Worker<"u"};ud.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const gn=ud;function t1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function H(e,t,n,i){this.red=A(e,1),this.green=A(t,1),this.blue=A(n,1),this.alpha=A(i,1)}H.fromCartesian4=function(e,t){return T.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new H(e.x,e.y,e.z,e.w)};H.fromBytes=function(e,t,n,i,o){return e=H.byteToFloat(A(e,255)),t=H.byteToFloat(A(t,255)),n=H.byteToFloat(A(n,255)),i=H.byteToFloat(A(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new H(e,t,n,i)};H.fromAlpha=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new H(e.red,e.green,e.blue,t)};let n1,eM,sf;gn.supportsTypedArrays()&&(n1=new ArrayBuffer(4),eM=new Uint32Array(n1),sf=new Uint8Array(n1));H.fromRgba=function(e,t){return eM[0]=e,H.fromBytes(sf[0],sf[1],sf[2],sf[3],t)};H.fromHsl=function(e,t,n,i,o){e=A(e,0)%1,t=A(t,0),n=A(n,0),i=A(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=t1(u,c,e+1/3),s=t1(u,c,e),a=t1(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new H(r,s,a,i)};H.fromRandom=function(e,t){e=A(e,A.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=A(e.minimumRed,0),a=A(e.maximumRed,1);T.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+M.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=A(e.minimumGreen,0),a=A(e.maximumGreen,1);T.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+M.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=A(e.minimumBlue,0),a=A(e.maximumBlue,1);T.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+M.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=A(e.minimumAlpha,0),a=A(e.maximumAlpha,1);T.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+M.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new H(n,i,o,r)};const G_e=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,W_e=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,j_e=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,q_e=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;H.fromCssColorString=function(e,t){T.typeOf.string("color",e),l(t)||(t=new H),e=e.replace(/\s/g,"");const n=H[e.toUpperCase()];if(l(n))return H.clone(n,t),t;let i=G_e.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(A(i[4],"f"),16)/15,t):(i=W_e.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(A(i[4],"ff"),16)/255,t):(i=j_e.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(A(i[4],"1.0")),t):(i=q_e.exec(e),i!==null?H.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(A(i[4],"1.0")),t):(t=void 0,t))))};H.packedLength=4;H.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};H.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new H),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};H.byteToFloat=function(e){return e/255};H.floatToByte=function(e){return e===1?255:e*256|0};H.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new H(e.red,e.green,e.blue,e.alpha)};H.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};H.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};H.prototype.clone=function(e){return H.clone(this,e)};H.prototype.equals=function(e){return H.equals(this,e)};H.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};H.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};H.prototype.toCssColorString=function(){const e=H.floatToByte(this.red),t=H.floatToByte(this.green),n=H.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};H.prototype.toCssHexString=function(){let e=H.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=H.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=H.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=H.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};H.prototype.toBytes=function(e){const t=H.floatToByte(this.red),n=H.floatToByte(this.green),i=H.floatToByte(this.blue),o=H.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};H.prototype.toRgba=function(){return sf[0]=H.floatToByte(this.red),sf[1]=H.floatToByte(this.green),sf[2]=H.floatToByte(this.blue),sf[3]=H.floatToByte(this.alpha),eM[0]};H.prototype.brighten=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};H.prototype.darken=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};H.prototype.withAlpha=function(e,t){return H.fromAlpha(this,e,t)};H.add=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};H.subtract=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};H.multiply=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};H.divide=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};H.mod=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};H.lerp=function(e,t,n,i){return T.typeOf.object("start",e),T.typeOf.object("end",t),T.typeOf.number("t",n),T.typeOf.object("result",i),i.red=M.lerp(e.red,t.red,n),i.green=M.lerp(e.green,t.green,n),i.blue=M.lerp(e.blue,t.blue,n),i.alpha=M.lerp(e.alpha,t.alpha,n),i};H.multiplyByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};H.divideByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};H.ALICEBLUE=Object.freeze(H.fromCssColorString("#F0F8FF"));H.ANTIQUEWHITE=Object.freeze(H.fromCssColorString("#FAEBD7"));H.AQUA=Object.freeze(H.fromCssColorString("#00FFFF"));H.AQUAMARINE=Object.freeze(H.fromCssColorString("#7FFFD4"));H.AZURE=Object.freeze(H.fromCssColorString("#F0FFFF"));H.BEIGE=Object.freeze(H.fromCssColorString("#F5F5DC"));H.BISQUE=Object.freeze(H.fromCssColorString("#FFE4C4"));H.BLACK=Object.freeze(H.fromCssColorString("#000000"));H.BLANCHEDALMOND=Object.freeze(H.fromCssColorString("#FFEBCD"));H.BLUE=Object.freeze(H.fromCssColorString("#0000FF"));H.BLUEVIOLET=Object.freeze(H.fromCssColorString("#8A2BE2"));H.BROWN=Object.freeze(H.fromCssColorString("#A52A2A"));H.BURLYWOOD=Object.freeze(H.fromCssColorString("#DEB887"));H.CADETBLUE=Object.freeze(H.fromCssColorString("#5F9EA0"));H.CHARTREUSE=Object.freeze(H.fromCssColorString("#7FFF00"));H.CHOCOLATE=Object.freeze(H.fromCssColorString("#D2691E"));H.CORAL=Object.freeze(H.fromCssColorString("#FF7F50"));H.CORNFLOWERBLUE=Object.freeze(H.fromCssColorString("#6495ED"));H.CORNSILK=Object.freeze(H.fromCssColorString("#FFF8DC"));H.CRIMSON=Object.freeze(H.fromCssColorString("#DC143C"));H.CYAN=Object.freeze(H.fromCssColorString("#00FFFF"));H.DARKBLUE=Object.freeze(H.fromCssColorString("#00008B"));H.DARKCYAN=Object.freeze(H.fromCssColorString("#008B8B"));H.DARKGOLDENROD=Object.freeze(H.fromCssColorString("#B8860B"));H.DARKGRAY=Object.freeze(H.fromCssColorString("#A9A9A9"));H.DARKGREEN=Object.freeze(H.fromCssColorString("#006400"));H.DARKGREY=H.DARKGRAY;H.DARKKHAKI=Object.freeze(H.fromCssColorString("#BDB76B"));H.DARKMAGENTA=Object.freeze(H.fromCssColorString("#8B008B"));H.DARKOLIVEGREEN=Object.freeze(H.fromCssColorString("#556B2F"));H.DARKORANGE=Object.freeze(H.fromCssColorString("#FF8C00"));H.DARKORCHID=Object.freeze(H.fromCssColorString("#9932CC"));H.DARKRED=Object.freeze(H.fromCssColorString("#8B0000"));H.DARKSALMON=Object.freeze(H.fromCssColorString("#E9967A"));H.DARKSEAGREEN=Object.freeze(H.fromCssColorString("#8FBC8F"));H.DARKSLATEBLUE=Object.freeze(H.fromCssColorString("#483D8B"));H.DARKSLATEGRAY=Object.freeze(H.fromCssColorString("#2F4F4F"));H.DARKSLATEGREY=H.DARKSLATEGRAY;H.DARKTURQUOISE=Object.freeze(H.fromCssColorString("#00CED1"));H.DARKVIOLET=Object.freeze(H.fromCssColorString("#9400D3"));H.DEEPPINK=Object.freeze(H.fromCssColorString("#FF1493"));H.DEEPSKYBLUE=Object.freeze(H.fromCssColorString("#00BFFF"));H.DIMGRAY=Object.freeze(H.fromCssColorString("#696969"));H.DIMGREY=H.DIMGRAY;H.DODGERBLUE=Object.freeze(H.fromCssColorString("#1E90FF"));H.FIREBRICK=Object.freeze(H.fromCssColorString("#B22222"));H.FLORALWHITE=Object.freeze(H.fromCssColorString("#FFFAF0"));H.FORESTGREEN=Object.freeze(H.fromCssColorString("#228B22"));H.FUCHSIA=Object.freeze(H.fromCssColorString("#FF00FF"));H.GAINSBORO=Object.freeze(H.fromCssColorString("#DCDCDC"));H.GHOSTWHITE=Object.freeze(H.fromCssColorString("#F8F8FF"));H.GOLD=Object.freeze(H.fromCssColorString("#FFD700"));H.GOLDENROD=Object.freeze(H.fromCssColorString("#DAA520"));H.GRAY=Object.freeze(H.fromCssColorString("#808080"));H.GREEN=Object.freeze(H.fromCssColorString("#008000"));H.GREENYELLOW=Object.freeze(H.fromCssColorString("#ADFF2F"));H.GREY=H.GRAY;H.HONEYDEW=Object.freeze(H.fromCssColorString("#F0FFF0"));H.HOTPINK=Object.freeze(H.fromCssColorString("#FF69B4"));H.INDIANRED=Object.freeze(H.fromCssColorString("#CD5C5C"));H.INDIGO=Object.freeze(H.fromCssColorString("#4B0082"));H.IVORY=Object.freeze(H.fromCssColorString("#FFFFF0"));H.KHAKI=Object.freeze(H.fromCssColorString("#F0E68C"));H.LAVENDER=Object.freeze(H.fromCssColorString("#E6E6FA"));H.LAVENDAR_BLUSH=Object.freeze(H.fromCssColorString("#FFF0F5"));H.LAWNGREEN=Object.freeze(H.fromCssColorString("#7CFC00"));H.LEMONCHIFFON=Object.freeze(H.fromCssColorString("#FFFACD"));H.LIGHTBLUE=Object.freeze(H.fromCssColorString("#ADD8E6"));H.LIGHTCORAL=Object.freeze(H.fromCssColorString("#F08080"));H.LIGHTCYAN=Object.freeze(H.fromCssColorString("#E0FFFF"));H.LIGHTGOLDENRODYELLOW=Object.freeze(H.fromCssColorString("#FAFAD2"));H.LIGHTGRAY=Object.freeze(H.fromCssColorString("#D3D3D3"));H.LIGHTGREEN=Object.freeze(H.fromCssColorString("#90EE90"));H.LIGHTGREY=H.LIGHTGRAY;H.LIGHTPINK=Object.freeze(H.fromCssColorString("#FFB6C1"));H.LIGHTSEAGREEN=Object.freeze(H.fromCssColorString("#20B2AA"));H.LIGHTSKYBLUE=Object.freeze(H.fromCssColorString("#87CEFA"));H.LIGHTSLATEGRAY=Object.freeze(H.fromCssColorString("#778899"));H.LIGHTSLATEGREY=H.LIGHTSLATEGRAY;H.LIGHTSTEELBLUE=Object.freeze(H.fromCssColorString("#B0C4DE"));H.LIGHTYELLOW=Object.freeze(H.fromCssColorString("#FFFFE0"));H.LIME=Object.freeze(H.fromCssColorString("#00FF00"));H.LIMEGREEN=Object.freeze(H.fromCssColorString("#32CD32"));H.LINEN=Object.freeze(H.fromCssColorString("#FAF0E6"));H.MAGENTA=Object.freeze(H.fromCssColorString("#FF00FF"));H.MAROON=Object.freeze(H.fromCssColorString("#800000"));H.MEDIUMAQUAMARINE=Object.freeze(H.fromCssColorString("#66CDAA"));H.MEDIUMBLUE=Object.freeze(H.fromCssColorString("#0000CD"));H.MEDIUMORCHID=Object.freeze(H.fromCssColorString("#BA55D3"));H.MEDIUMPURPLE=Object.freeze(H.fromCssColorString("#9370DB"));H.MEDIUMSEAGREEN=Object.freeze(H.fromCssColorString("#3CB371"));H.MEDIUMSLATEBLUE=Object.freeze(H.fromCssColorString("#7B68EE"));H.MEDIUMSPRINGGREEN=Object.freeze(H.fromCssColorString("#00FA9A"));H.MEDIUMTURQUOISE=Object.freeze(H.fromCssColorString("#48D1CC"));H.MEDIUMVIOLETRED=Object.freeze(H.fromCssColorString("#C71585"));H.MIDNIGHTBLUE=Object.freeze(H.fromCssColorString("#191970"));H.MINTCREAM=Object.freeze(H.fromCssColorString("#F5FFFA"));H.MISTYROSE=Object.freeze(H.fromCssColorString("#FFE4E1"));H.MOCCASIN=Object.freeze(H.fromCssColorString("#FFE4B5"));H.NAVAJOWHITE=Object.freeze(H.fromCssColorString("#FFDEAD"));H.NAVY=Object.freeze(H.fromCssColorString("#000080"));H.OLDLACE=Object.freeze(H.fromCssColorString("#FDF5E6"));H.OLIVE=Object.freeze(H.fromCssColorString("#808000"));H.OLIVEDRAB=Object.freeze(H.fromCssColorString("#6B8E23"));H.ORANGE=Object.freeze(H.fromCssColorString("#FFA500"));H.ORANGERED=Object.freeze(H.fromCssColorString("#FF4500"));H.ORCHID=Object.freeze(H.fromCssColorString("#DA70D6"));H.PALEGOLDENROD=Object.freeze(H.fromCssColorString("#EEE8AA"));H.PALEGREEN=Object.freeze(H.fromCssColorString("#98FB98"));H.PALETURQUOISE=Object.freeze(H.fromCssColorString("#AFEEEE"));H.PALEVIOLETRED=Object.freeze(H.fromCssColorString("#DB7093"));H.PAPAYAWHIP=Object.freeze(H.fromCssColorString("#FFEFD5"));H.PEACHPUFF=Object.freeze(H.fromCssColorString("#FFDAB9"));H.PERU=Object.freeze(H.fromCssColorString("#CD853F"));H.PINK=Object.freeze(H.fromCssColorString("#FFC0CB"));H.PLUM=Object.freeze(H.fromCssColorString("#DDA0DD"));H.POWDERBLUE=Object.freeze(H.fromCssColorString("#B0E0E6"));H.PURPLE=Object.freeze(H.fromCssColorString("#800080"));H.RED=Object.freeze(H.fromCssColorString("#FF0000"));H.ROSYBROWN=Object.freeze(H.fromCssColorString("#BC8F8F"));H.ROYALBLUE=Object.freeze(H.fromCssColorString("#4169E1"));H.SADDLEBROWN=Object.freeze(H.fromCssColorString("#8B4513"));H.SALMON=Object.freeze(H.fromCssColorString("#FA8072"));H.SANDYBROWN=Object.freeze(H.fromCssColorString("#F4A460"));H.SEAGREEN=Object.freeze(H.fromCssColorString("#2E8B57"));H.SEASHELL=Object.freeze(H.fromCssColorString("#FFF5EE"));H.SIENNA=Object.freeze(H.fromCssColorString("#A0522D"));H.SILVER=Object.freeze(H.fromCssColorString("#C0C0C0"));H.SKYBLUE=Object.freeze(H.fromCssColorString("#87CEEB"));H.SLATEBLUE=Object.freeze(H.fromCssColorString("#6A5ACD"));H.SLATEGRAY=Object.freeze(H.fromCssColorString("#708090"));H.SLATEGREY=H.SLATEGRAY;H.SNOW=Object.freeze(H.fromCssColorString("#FFFAFA"));H.SPRINGGREEN=Object.freeze(H.fromCssColorString("#00FF7F"));H.STEELBLUE=Object.freeze(H.fromCssColorString("#4682B4"));H.TAN=Object.freeze(H.fromCssColorString("#D2B48C"));H.TEAL=Object.freeze(H.fromCssColorString("#008080"));H.THISTLE=Object.freeze(H.fromCssColorString("#D8BFD8"));H.TOMATO=Object.freeze(H.fromCssColorString("#FF6347"));H.TURQUOISE=Object.freeze(H.fromCssColorString("#40E0D0"));H.VIOLET=Object.freeze(H.fromCssColorString("#EE82EE"));H.WHEAT=Object.freeze(H.fromCssColorString("#F5DEB3"));H.WHITE=Object.freeze(H.fromCssColorString("#FFFFFF"));H.WHITESMOKE=Object.freeze(H.fromCssColorString("#F5F5F5"));H.YELLOW=Object.freeze(H.fromCssColorString("#FFFF00"));H.YELLOWGREEN=Object.freeze(H.fromCssColorString("#9ACD32"));H.TRANSPARENT=Object.freeze(new H(0,0,0,0));function co(e){e=A(e,A.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}co.ALL=Object.freeze(new co({color:new H(0,0,0,0),depth:1,stencil:0}));co.prototype.execute=function(e,t){e.clear(this,t)};const $_e={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Ne=Object.freeze($_e);function yC(e){e=A(e,A.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=A(e.persists,!1),this.pass=Ne.COMPUTE,this.owner=e.owner}yC.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=A(e,0),this.y=A(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n]=e.y,t};j.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oM.EPSILON12);return l(o)?(o.x=r*F,o.y=s*U,o.z=a*D,o):new f(r*F,s*U,a*D)}function Ce(e,t,n){this.longitude=A(e,0),this.latitude=A(t,0),this.height=A(n,0)}Ce.fromRadians=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),n=A(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ce(e,t,n)};Ce.fromDegrees=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),e=M.toRadians(e),t=M.toRadians(t),Ce.fromRadians(e,t,n,i)};const J_e=new f,Q_e=new f,Z_e=new f,ege=new f(1/6378137,1/6378137,1/6356752314245179e-9),tge=new f(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),nge=M.EPSILON1;Ce.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:ege,o=l(t)?t.oneOverRadiiSquared:tge,r=l(t)?t._centerToleranceSquared:nge,s=rj(e,i,o,r,Q_e);if(!l(s))return;let a=f.multiplyComponents(s,o,J_e);a=f.normalize(a,a);const c=f.subtract(e,s,Z_e),u=Math.atan2(a.y,a.x),d=Math.asin(a.z),h=M.sign(f.dot(c,e))*f.magnitude(c);return l(n)?(n.longitude=u,n.latitude=d,n.height=h,n):new Ce(u,d,h)};Ce.toCartesian=function(e,t,n){return T.defined("cartographic",e),f.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ce.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ce(e.longitude,e.latitude,e.height)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ce.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function sj(e,t,n,i){t=A(t,0),n=A(n,0),i=A(i,0),T.typeOf.number.greaterThanOrEquals("x",t,0),T.typeOf.number.greaterThanOrEquals("y",n,0),T.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new f(t,n,i),e._radiiSquared=new f(t*t,n*n,i*i),e._radiiToTheFourth=new f(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new f(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new f(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=M.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function me(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,sj(this,e,t,n)}Object.defineProperties(me.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});me.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(f.clone(n,t._radii),f.clone(e._radiiSquared,t._radiiSquared),f.clone(e._radiiToTheFourth,t._radiiToTheFourth),f.clone(e._oneOverRadii,t._oneOverRadii),f.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new me(n.x,n.y,n.z)};me.fromCartesian3=function(e,t){return l(t)||(t=new me),l(e)&&sj(t,e.x,e.y,e.z),t};me.WGS84=Object.freeze(new me(6378137,6378137,6356752314245179e-9));me.UNIT_SPHERE=Object.freeze(new me(1,1,1));me.MOON=Object.freeze(new me(M.LUNAR_RADIUS,M.LUNAR_RADIUS,M.LUNAR_RADIUS));me.prototype.clone=function(e){return me.clone(this,e)};me.packedLength=f.packedLength;me.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),f.pack(e._radii,t,n),t};me.unpack=function(e,t,n){T.defined("array",e),t=A(t,0);const i=f.unpack(e,t);return me.fromCartesian3(i,n)};me.prototype.geocentricSurfaceNormal=f.normalize;me.prototype.geodeticSurfaceNormalCartographic=function(e,t){T.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new f),t.x=r,t.y=s,t.z=a,f.normalize(t,t)};me.prototype.geodeticSurfaceNormal=function(e,t){if(!f.equalsEpsilon(e,f.ZERO,M.EPSILON14))return l(t)||(t=new f),t=f.multiplyComponents(e,this._oneOverRadiiSquared,t),f.normalize(t,t)};const ige=new f,oge=new f;me.prototype.cartographicToCartesian=function(e,t){const n=ige,i=oge;this.geodeticSurfaceNormalCartographic(e,n),f.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(f.dot(n,i));return f.divideByScalar(i,o,i),f.multiplyByScalar(n,e.height,n),l(t)||(t=new f),f.add(i,n,t)};me.prototype.cartographicArrayToCartesianArray=function(e,t){T.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const cge=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],lge=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Qz(e,t,n){T.typeOf.number("a",e),T.typeOf.number("b",t),T.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*cge[s];r+=lge[s]*(n(i+a)+n(i-a))}return r*=o,r}me.prototype.surfaceArea=function(e){T.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?d.longitude:d.longitude+M.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>M.PI&&(i=i-M.TWO_PI),n>M.PI&&(n=n-M.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new ge(n,s,i,a)};ge.fromCartesianArray=function(e,t,n){T.defined("cartesians",e),t=A(t,me.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,d=e.length;u=0?h.longitude:h.longitude+M.TWO_PI;r=Math.min(r,m),s=Math.max(s,m)}return o-i>s-r&&(i=r,o=s,o>M.PI&&(o=o-M.TWO_PI),i>M.PI&&(i=i-M.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new ge(i,a,o,c)};ge.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new ge(e.west,e.south,e.east,e.north)};ge.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};ge.prototype.clone=function(e){return ge.clone(this,e)};ge.prototype.equals=function(e){return ge.equals(this,e)};ge.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};ge.prototype.equalsEpsilon=function(e,t){return ge.equalsEpsilon(this,e,t)};ge.validate=function(e){T.typeOf.object("rectangle",e);const t=e.north;T.typeOf.number.greaterThanOrEquals("north",t,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("north",t,M.PI_OVER_TWO);const n=e.south;T.typeOf.number.greaterThanOrEquals("south",n,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("south",n,M.PI_OVER_TWO);const i=e.west;T.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),T.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;T.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),T.typeOf.number.lessThanOrEquals("east",o,Math.PI)};ge.southwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ce(e.west,e.south)};ge.northwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ce(e.west,e.north)};ge.northeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ce(e.east,e.north)};ge.southeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ce(e.east,e.south)};ge.center=function(e,t){T.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),i=d))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=d,n):new ge(a,u,c,d)};ge.simpleIntersection=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new ge(i,o,r,s)};ge.union=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t),l(n)||(n=new ge);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),io||M.equalsEpsilon(n,o,M.EPSILON14))&&(n=e.south&&i<=e.north};const dge=new Ce;ge.subsample=function(e,t,n,i){T.typeOf.object("rectangle",e),t=A(t,me.WGS84),n=A(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=dge;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let d=1;d<8;++d)u.longitude=-Math.PI+d*M.PI_OVER_TWO,ge.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};ge.subsection=function(e,t,n,i,o,r){if(T.typeOf.object("rectangle",e),T.typeOf.number.greaterThanOrEquals("westLerp",t,0),T.typeOf.number.lessThanOrEquals("westLerp",t,1),T.typeOf.number.greaterThanOrEquals("southLerp",n,0),T.typeOf.number.lessThanOrEquals("southLerp",n,1),T.typeOf.number.greaterThanOrEquals("eastLerp",i,0),T.typeOf.number.lessThanOrEquals("eastLerp",i,1),T.typeOf.number.greaterThanOrEquals("northLerp",o,0),T.typeOf.number.lessThanOrEquals("northLerp",o,1),T.typeOf.number.lessThanOrEquals("westLerp",t,i),T.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new ge),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=M.TWO_PI+e.east-e.west;r.west=M.negativePiToPi(e.west+t*a),r.east=M.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};ge.MAX_VALUE=Object.freeze(new ge(-Math.PI,-M.PI_OVER_TWO,Math.PI,M.PI_OVER_TWO));function Ye(e,t,n,i){this.x=A(e,0),this.y=A(t,0),this.width=A(n,0),this.height=A(i,0)}Ye.packedLength=4;Ye.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.width,t[n]=e.height,t};Ye.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Ye),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};Ye.fromPoints=function(e,t){if(l(t)||(t=new Ye),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};Ye.intersect=function(e,t){T.typeOf.object("left",e),T.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?xn.OUTSIDE:xn.INTERSECTING};Ye.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};Ye.prototype.clone=function(e){return Ye.clone(this,e)};Ye.prototype.intersect=function(e){return Ye.intersect(this,e)};Ye.prototype.equals=function(e){return Ye.equals(this,e)};const Ss={POINTS:ae.POINTS,LINES:ae.LINES,LINE_LOOP:ae.LINE_LOOP,LINE_STRIP:ae.LINE_STRIP,TRIANGLES:ae.TRIANGLES,TRIANGLE_STRIP:ae.TRIANGLE_STRIP,TRIANGLE_FAN:ae.TRIANGLE_FAN};Ss.isLines=function(e){return e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP};Ss.isTriangles=function(e){return e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};Ss.validate=function(e){return e===Ss.POINTS||e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP||e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};const Ze=Object.freeze(Ss),aj=`attribute vec4 position; +(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};const I_e={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047},ae=Object.freeze(I_e),P_e=new f;function Et(e){this._size=e.size,this._datatype=e.datatype,this.getValue=e.getValue}const Ts={};Ts[ae.FLOAT]="float";Ts[ae.FLOAT_VEC2]="vec2";Ts[ae.FLOAT_VEC3]="vec3";Ts[ae.FLOAT_VEC4]="vec4";Ts[ae.INT]="int";Ts[ae.INT_VEC2]="ivec2";Ts[ae.INT_VEC3]="ivec3";Ts[ae.INT_VEC4]="ivec4";Ts[ae.BOOL]="bool";Ts[ae.BOOL_VEC2]="bvec2";Ts[ae.BOOL_VEC3]="bvec3";Ts[ae.BOOL_VEC4]="bvec4";Ts[ae.FLOAT_MAT2]="mat2";Ts[ae.FLOAT_MAT3]="mat3";Ts[ae.FLOAT_MAT4]="mat4";Ts[ae.SAMPLER_2D]="sampler2D";Ts[ae.SAMPLER_CUBE]="samplerCube";Et.prototype.getDeclaration=function(e){let t=`uniform ${Ts[this._datatype]} ${e}`;const n=this._size;return n===1?t+=";":t+=`[${n.toString()}];`,t};const O_e={czm_viewport:new Et({size:1,datatype:ae.FLOAT_VEC4,getValue:function(e){return e.viewportCartesian4}}),czm_viewportOrthographic:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.viewportOrthographic}}),czm_viewportTransformation:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.viewportTransformation}}),czm_globeDepthTexture:new Et({size:1,datatype:ae.SAMPLER_2D,getValue:function(e){return e.globeDepthTexture}}),czm_model:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.model}}),czm_inverseModel:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseModel}}),czm_view:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.view}}),czm_view3D:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.view3D}}),czm_viewRotation:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.viewRotation}}),czm_viewRotation3D:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.viewRotation3D}}),czm_inverseView:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseView}}),czm_inverseView3D:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseView3D}}),czm_inverseViewRotation:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation}}),czm_inverseViewRotation3D:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation3D}}),czm_projection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.projection}}),czm_inverseProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseProjection}}),czm_infiniteProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.infiniteProjection}}),czm_modelView:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelView}}),czm_modelView3D:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelView3D}}),czm_modelViewRelativeToEye:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelViewRelativeToEye}}),czm_inverseModelView:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseModelView}}),czm_inverseModelView3D:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseModelView3D}}),czm_viewProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.viewProjection}}),czm_inverseViewProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseViewProjection}}),czm_modelViewProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelViewProjection}}),czm_inverseModelViewProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.inverseModelViewProjection}}),czm_modelViewProjectionRelativeToEye:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelViewProjectionRelativeToEye}}),czm_modelViewInfiniteProjection:new Et({size:1,datatype:ae.FLOAT_MAT4,getValue:function(e){return e.modelViewInfiniteProjection}}),czm_orthographicIn3D:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.orthographicIn3D?1:0}}),czm_normal:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.normal}}),czm_normal3D:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.normal3D}}),czm_inverseNormal:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.inverseNormal}}),czm_inverseNormal3D:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.inverseNormal3D}}),czm_eyeHeight:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.eyeHeight}}),czm_eyeHeight2D:new Et({size:1,datatype:ae.FLOAT_VEC2,getValue:function(e){return e.eyeHeight2D}}),czm_entireFrustum:new Et({size:1,datatype:ae.FLOAT_VEC2,getValue:function(e){return e.entireFrustum}}),czm_currentFrustum:new Et({size:1,datatype:ae.FLOAT_VEC2,getValue:function(e){return e.currentFrustum}}),czm_frustumPlanes:new Et({size:1,datatype:ae.FLOAT_VEC4,getValue:function(e){return e.frustumPlanes}}),czm_farDepthFromNearPlusOne:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.farDepthFromNearPlusOne}}),czm_log2FarDepthFromNearPlusOne:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.log2FarDepthFromNearPlusOne}}),czm_oneOverLog2FarDepthFromNearPlusOne:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.oneOverLog2FarDepthFromNearPlusOne}}),czm_sunPositionWC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.sunPositionWC}}),czm_sunPositionColumbusView:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.sunPositionColumbusView}}),czm_sunDirectionEC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.sunDirectionEC}}),czm_sunDirectionWC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.sunDirectionWC}}),czm_moonDirectionEC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.moonDirectionEC}}),czm_lightDirectionEC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.lightDirectionEC}}),czm_lightDirectionWC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.lightDirectionWC}}),czm_lightColor:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.lightColor}}),czm_lightColorHdr:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.lightColorHdr}}),czm_encodedCameraPositionMCHigh:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCHigh}}),czm_encodedCameraPositionMCLow:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCLow}}),czm_viewerPositionWC:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return B.getTranslation(e.inverseView,P_e)}}),czm_frameNumber:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.frameState.frameNumber}}),czm_morphTime:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.frameState.morphTime}}),czm_sceneMode:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.frameState.mode}}),czm_pass:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.pass}}),czm_backgroundColor:new Et({size:1,datatype:ae.FLOAT_VEC4,getValue:function(e){return e.backgroundColor}}),czm_brdfLut:new Et({size:1,datatype:ae.SAMPLER_2D,getValue:function(e){return e.brdfLut}}),czm_environmentMap:new Et({size:1,datatype:ae.SAMPLER_CUBE,getValue:function(e){return e.environmentMap}}),czm_specularEnvironmentMaps:new Et({size:1,datatype:ae.SAMPLER_2D,getValue:function(e){return e.specularEnvironmentMaps}}),czm_specularEnvironmentMapSize:new Et({size:1,datatype:ae.FLOAT_VEC2,getValue:function(e){return e.specularEnvironmentMapsDimensions}}),czm_specularEnvironmentMapsMaximumLOD:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.specularEnvironmentMapsMaximumLOD}}),czm_sphericalHarmonicCoefficients:new Et({size:9,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.sphericalHarmonicCoefficients}}),czm_temeToPseudoFixed:new Et({size:1,datatype:ae.FLOAT_MAT3,getValue:function(e){return e.temeToPseudoFixedMatrix}}),czm_pixelRatio:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.pixelRatio}}),czm_fogDensity:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.fogDensity}}),czm_splitPosition:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.splitPosition}}),czm_geometricToleranceOverMeter:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.geometricToleranceOverMeter}}),czm_minimumDisableDepthTestDistance:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.minimumDisableDepthTestDistance}}),czm_invertClassificationColor:new Et({size:1,datatype:ae.FLOAT_VEC4,getValue:function(e){return e.invertClassificationColor}}),czm_gamma:new Et({size:1,datatype:ae.FLOAT,getValue:function(e){return e.gamma}}),czm_ellipsoidRadii:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.radii}}),czm_ellipsoidInverseRadii:new Et({size:1,datatype:ae.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.oneOverRadii}})},Dw=O_e;function Ms(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function L_e(){return!0}function He(e,t){t=A(t,"This object was destroyed, i.e., destroy() was called.");function n(){throw new x(t)}for(const i in e)typeof e[i]=="function"&&(e[i]=n);e.isDestroyed=L_e}const jr={UNSIGNED_BYTE:ae.UNSIGNED_BYTE,UNSIGNED_SHORT:ae.UNSIGNED_SHORT,UNSIGNED_INT:ae.UNSIGNED_INT};jr.getSizeInBytes=function(e){switch(e){case jr.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case jr.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case jr.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new x("indexDatatype is required and must be a valid IndexDatatype constant.")};jr.fromSizeInBytes=function(e){switch(e){case 2:return jr.UNSIGNED_SHORT;case 4:return jr.UNSIGNED_INT;case 1:return jr.UNSIGNED_BYTE;default:throw new x("Size in bytes cannot be mapped to an IndexDatatype")}};jr.validate=function(e){return l(e)&&(e===jr.UNSIGNED_BYTE||e===jr.UNSIGNED_SHORT||e===jr.UNSIGNED_INT)};jr.createTypedArray=function(e,t){if(!l(e))throw new x("numberOfVertices is required.");return e>=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};jr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new x("numberOfVertices is required.");if(!l(t))throw new x("sourceArray is required.");if(!l(n))throw new x("byteOffset is required.");return e>=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};jr.fromTypedArray=function(e){if(e instanceof Uint8Array)return jr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return jr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return jr.UNSIGNED_INT;throw new x("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const at=Object.freeze(jr),Iw={STREAM_DRAW:ae.STREAM_DRAW,STATIC_DRAW:ae.STATIC_DRAW,DYNAMIC_DRAW:ae.DYNAMIC_DRAW,validate:function(e){return e===Iw.STREAM_DRAW||e===Iw.STATIC_DRAW||e===Iw.DYNAMIC_DRAW}},nt=Object.freeze(Iw);function Tt(e){if(e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new x("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new x("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(T.typeOf.object("options.typedArray",e.typedArray),T.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!nt.validate(e.usage))throw new x("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),T.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=Ms(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}Tt.createVertexBuffer=function(e){return T.defined("options.context",e.context),new Tt({context:e.context,bufferTarget:ae.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};Tt.createIndexBuffer=function(e){if(T.defined("options.context",e.context),!at.validate(e.indexDatatype))throw new x("Invalid indexDatatype.");if(e.indexDatatype===at.UNSIGNED_INT&&!e.context.elementIndexUint)throw new x("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=at.getSizeInBytes(n),o=new Tt({context:t,bufferTarget:ae.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(Tt.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});Tt.prototype._getBuffer=function(){return this._buffer};Tt.prototype.copyFromArrayView=function(e,t){t=A(t,0),T.defined("arrayView",e),T.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};Tt.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new x("A WebGL 2 context is required.");if(!l(e))throw new x("readBuffer must be defined.");if(!l(i)||i<=0)throw new x("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new x("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new x("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new x("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new x("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new x("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new x("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=ae.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};Tt.prototype.isDestroyed=function(){return!1};Tt.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),He(this)};let mh;const Xo={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},ja={};Object.defineProperties(ja,{element:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenElement]}},changeEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenchange}},errorEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenerror}},enabled:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenEnabled]}},fullscreen:{get:function(){if(ja.supportsFullscreen())return ja.element!==null}}});ja.supportsFullscreen=function(){if(l(mh))return mh;mh=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Xo.requestFullscreen="requestFullscreen",Xo.exitFullscreen="exitFullscreen",Xo.fullscreenEnabled="fullscreenEnabled",Xo.fullscreenElement="fullscreenElement",Xo.fullscreenchange="fullscreenchange",Xo.fullscreenerror="fullscreenerror",mh=!0,mh;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){qs._result=t.width>0&&t.height>0,e(qs._result)},t.onerror=function(){qs._result=!1,e(qs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),qs._promise};Object.defineProperties(qs,{initialized:{get:function(){return l(qs._result)}}});const ry=[];typeof ArrayBuffer<"u"&&(ry.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&ry.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&ry.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&ry.push(BigInt64Array),typeof BigUint64Array<"u"&&ry.push(BigUint64Array));const ud={isChrome:QN,chromeVersion:B_e,isSafari:QW,safariVersion:R_e,isWebkit:ZW,webkitVersion:N_e,isInternetExplorer:ej,internetExplorerVersion:M_e,isEdge:iD,edgeVersion:F_e,isFirefox:ZN,firefoxVersion:H_e,isWindows:z_e,isIPadOrIOS:U_e,hardwareConcurrency:A(ia.hardwareConcurrency,3),supportsPointerEvents:V_e,supportsImageRenderingPixelated:oj,supportsWebP:qs,imageRenderingValue:k_e,typedArrayTypes:ry};ud.supportsBasis=function(e){return ud.supportsWebAssembly()&&e.context.supportsBasis};ud.supportsFullscreen=function(){return os.supportsFullscreen()};ud.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};ud.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};ud.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};ud.supportsBigInt=function(){return typeof BigInt<"u"};ud.supportsWebWorkers=function(){return typeof Worker<"u"};ud.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const gn=ud;function t1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function H(e,t,n,i){this.red=A(e,1),this.green=A(t,1),this.blue=A(n,1),this.alpha=A(i,1)}H.fromCartesian4=function(e,t){return T.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new H(e.x,e.y,e.z,e.w)};H.fromBytes=function(e,t,n,i,o){return e=H.byteToFloat(A(e,255)),t=H.byteToFloat(A(t,255)),n=H.byteToFloat(A(n,255)),i=H.byteToFloat(A(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new H(e,t,n,i)};H.fromAlpha=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new H(e.red,e.green,e.blue,t)};let n1,eM,sf;gn.supportsTypedArrays()&&(n1=new ArrayBuffer(4),eM=new Uint32Array(n1),sf=new Uint8Array(n1));H.fromRgba=function(e,t){return eM[0]=e,H.fromBytes(sf[0],sf[1],sf[2],sf[3],t)};H.fromHsl=function(e,t,n,i,o){e=A(e,0)%1,t=A(t,0),n=A(n,0),i=A(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=t1(u,c,e+1/3),s=t1(u,c,e),a=t1(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new H(r,s,a,i)};H.fromRandom=function(e,t){e=A(e,A.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=A(e.minimumRed,0),a=A(e.maximumRed,1);T.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+M.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=A(e.minimumGreen,0),a=A(e.maximumGreen,1);T.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+M.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=A(e.minimumBlue,0),a=A(e.maximumBlue,1);T.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+M.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=A(e.minimumAlpha,0),a=A(e.maximumAlpha,1);T.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+M.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new H(n,i,o,r)};const G_e=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,W_e=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,j_e=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,q_e=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;H.fromCssColorString=function(e,t){T.typeOf.string("color",e),l(t)||(t=new H),e=e.replace(/\s/g,"");const n=H[e.toUpperCase()];if(l(n))return H.clone(n,t),t;let i=G_e.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(A(i[4],"f"),16)/15,t):(i=W_e.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(A(i[4],"ff"),16)/255,t):(i=j_e.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(A(i[4],"1.0")),t):(i=q_e.exec(e),i!==null?H.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(A(i[4],"1.0")),t):(t=void 0,t))))};H.packedLength=4;H.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};H.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new H),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};H.byteToFloat=function(e){return e/255};H.floatToByte=function(e){return e===1?255:e*256|0};H.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new H(e.red,e.green,e.blue,e.alpha)};H.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};H.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};H.prototype.clone=function(e){return H.clone(this,e)};H.prototype.equals=function(e){return H.equals(this,e)};H.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};H.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};H.prototype.toCssColorString=function(){const e=H.floatToByte(this.red),t=H.floatToByte(this.green),n=H.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};H.prototype.toCssHexString=function(){let e=H.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=H.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=H.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=H.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};H.prototype.toBytes=function(e){const t=H.floatToByte(this.red),n=H.floatToByte(this.green),i=H.floatToByte(this.blue),o=H.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};H.prototype.toRgba=function(){return sf[0]=H.floatToByte(this.red),sf[1]=H.floatToByte(this.green),sf[2]=H.floatToByte(this.blue),sf[3]=H.floatToByte(this.alpha),eM[0]};H.prototype.brighten=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};H.prototype.darken=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};H.prototype.withAlpha=function(e,t){return H.fromAlpha(this,e,t)};H.add=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};H.subtract=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};H.multiply=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};H.divide=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};H.mod=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};H.lerp=function(e,t,n,i){return T.typeOf.object("start",e),T.typeOf.object("end",t),T.typeOf.number("t",n),T.typeOf.object("result",i),i.red=M.lerp(e.red,t.red,n),i.green=M.lerp(e.green,t.green,n),i.blue=M.lerp(e.blue,t.blue,n),i.alpha=M.lerp(e.alpha,t.alpha,n),i};H.multiplyByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};H.divideByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};H.ALICEBLUE=Object.freeze(H.fromCssColorString("#F0F8FF"));H.ANTIQUEWHITE=Object.freeze(H.fromCssColorString("#FAEBD7"));H.AQUA=Object.freeze(H.fromCssColorString("#00FFFF"));H.AQUAMARINE=Object.freeze(H.fromCssColorString("#7FFFD4"));H.AZURE=Object.freeze(H.fromCssColorString("#F0FFFF"));H.BEIGE=Object.freeze(H.fromCssColorString("#F5F5DC"));H.BISQUE=Object.freeze(H.fromCssColorString("#FFE4C4"));H.BLACK=Object.freeze(H.fromCssColorString("#000000"));H.BLANCHEDALMOND=Object.freeze(H.fromCssColorString("#FFEBCD"));H.BLUE=Object.freeze(H.fromCssColorString("#0000FF"));H.BLUEVIOLET=Object.freeze(H.fromCssColorString("#8A2BE2"));H.BROWN=Object.freeze(H.fromCssColorString("#A52A2A"));H.BURLYWOOD=Object.freeze(H.fromCssColorString("#DEB887"));H.CADETBLUE=Object.freeze(H.fromCssColorString("#5F9EA0"));H.CHARTREUSE=Object.freeze(H.fromCssColorString("#7FFF00"));H.CHOCOLATE=Object.freeze(H.fromCssColorString("#D2691E"));H.CORAL=Object.freeze(H.fromCssColorString("#FF7F50"));H.CORNFLOWERBLUE=Object.freeze(H.fromCssColorString("#6495ED"));H.CORNSILK=Object.freeze(H.fromCssColorString("#FFF8DC"));H.CRIMSON=Object.freeze(H.fromCssColorString("#DC143C"));H.CYAN=Object.freeze(H.fromCssColorString("#00FFFF"));H.DARKBLUE=Object.freeze(H.fromCssColorString("#00008B"));H.DARKCYAN=Object.freeze(H.fromCssColorString("#008B8B"));H.DARKGOLDENROD=Object.freeze(H.fromCssColorString("#B8860B"));H.DARKGRAY=Object.freeze(H.fromCssColorString("#A9A9A9"));H.DARKGREEN=Object.freeze(H.fromCssColorString("#006400"));H.DARKGREY=H.DARKGRAY;H.DARKKHAKI=Object.freeze(H.fromCssColorString("#BDB76B"));H.DARKMAGENTA=Object.freeze(H.fromCssColorString("#8B008B"));H.DARKOLIVEGREEN=Object.freeze(H.fromCssColorString("#556B2F"));H.DARKORANGE=Object.freeze(H.fromCssColorString("#FF8C00"));H.DARKORCHID=Object.freeze(H.fromCssColorString("#9932CC"));H.DARKRED=Object.freeze(H.fromCssColorString("#8B0000"));H.DARKSALMON=Object.freeze(H.fromCssColorString("#E9967A"));H.DARKSEAGREEN=Object.freeze(H.fromCssColorString("#8FBC8F"));H.DARKSLATEBLUE=Object.freeze(H.fromCssColorString("#483D8B"));H.DARKSLATEGRAY=Object.freeze(H.fromCssColorString("#2F4F4F"));H.DARKSLATEGREY=H.DARKSLATEGRAY;H.DARKTURQUOISE=Object.freeze(H.fromCssColorString("#00CED1"));H.DARKVIOLET=Object.freeze(H.fromCssColorString("#9400D3"));H.DEEPPINK=Object.freeze(H.fromCssColorString("#FF1493"));H.DEEPSKYBLUE=Object.freeze(H.fromCssColorString("#00BFFF"));H.DIMGRAY=Object.freeze(H.fromCssColorString("#696969"));H.DIMGREY=H.DIMGRAY;H.DODGERBLUE=Object.freeze(H.fromCssColorString("#1E90FF"));H.FIREBRICK=Object.freeze(H.fromCssColorString("#B22222"));H.FLORALWHITE=Object.freeze(H.fromCssColorString("#FFFAF0"));H.FORESTGREEN=Object.freeze(H.fromCssColorString("#228B22"));H.FUCHSIA=Object.freeze(H.fromCssColorString("#FF00FF"));H.GAINSBORO=Object.freeze(H.fromCssColorString("#DCDCDC"));H.GHOSTWHITE=Object.freeze(H.fromCssColorString("#F8F8FF"));H.GOLD=Object.freeze(H.fromCssColorString("#FFD700"));H.GOLDENROD=Object.freeze(H.fromCssColorString("#DAA520"));H.GRAY=Object.freeze(H.fromCssColorString("#808080"));H.GREEN=Object.freeze(H.fromCssColorString("#008000"));H.GREENYELLOW=Object.freeze(H.fromCssColorString("#ADFF2F"));H.GREY=H.GRAY;H.HONEYDEW=Object.freeze(H.fromCssColorString("#F0FFF0"));H.HOTPINK=Object.freeze(H.fromCssColorString("#FF69B4"));H.INDIANRED=Object.freeze(H.fromCssColorString("#CD5C5C"));H.INDIGO=Object.freeze(H.fromCssColorString("#4B0082"));H.IVORY=Object.freeze(H.fromCssColorString("#FFFFF0"));H.KHAKI=Object.freeze(H.fromCssColorString("#F0E68C"));H.LAVENDER=Object.freeze(H.fromCssColorString("#E6E6FA"));H.LAVENDAR_BLUSH=Object.freeze(H.fromCssColorString("#FFF0F5"));H.LAWNGREEN=Object.freeze(H.fromCssColorString("#7CFC00"));H.LEMONCHIFFON=Object.freeze(H.fromCssColorString("#FFFACD"));H.LIGHTBLUE=Object.freeze(H.fromCssColorString("#ADD8E6"));H.LIGHTCORAL=Object.freeze(H.fromCssColorString("#F08080"));H.LIGHTCYAN=Object.freeze(H.fromCssColorString("#E0FFFF"));H.LIGHTGOLDENRODYELLOW=Object.freeze(H.fromCssColorString("#FAFAD2"));H.LIGHTGRAY=Object.freeze(H.fromCssColorString("#D3D3D3"));H.LIGHTGREEN=Object.freeze(H.fromCssColorString("#90EE90"));H.LIGHTGREY=H.LIGHTGRAY;H.LIGHTPINK=Object.freeze(H.fromCssColorString("#FFB6C1"));H.LIGHTSEAGREEN=Object.freeze(H.fromCssColorString("#20B2AA"));H.LIGHTSKYBLUE=Object.freeze(H.fromCssColorString("#87CEFA"));H.LIGHTSLATEGRAY=Object.freeze(H.fromCssColorString("#778899"));H.LIGHTSLATEGREY=H.LIGHTSLATEGRAY;H.LIGHTSTEELBLUE=Object.freeze(H.fromCssColorString("#B0C4DE"));H.LIGHTYELLOW=Object.freeze(H.fromCssColorString("#FFFFE0"));H.LIME=Object.freeze(H.fromCssColorString("#00FF00"));H.LIMEGREEN=Object.freeze(H.fromCssColorString("#32CD32"));H.LINEN=Object.freeze(H.fromCssColorString("#FAF0E6"));H.MAGENTA=Object.freeze(H.fromCssColorString("#FF00FF"));H.MAROON=Object.freeze(H.fromCssColorString("#800000"));H.MEDIUMAQUAMARINE=Object.freeze(H.fromCssColorString("#66CDAA"));H.MEDIUMBLUE=Object.freeze(H.fromCssColorString("#0000CD"));H.MEDIUMORCHID=Object.freeze(H.fromCssColorString("#BA55D3"));H.MEDIUMPURPLE=Object.freeze(H.fromCssColorString("#9370DB"));H.MEDIUMSEAGREEN=Object.freeze(H.fromCssColorString("#3CB371"));H.MEDIUMSLATEBLUE=Object.freeze(H.fromCssColorString("#7B68EE"));H.MEDIUMSPRINGGREEN=Object.freeze(H.fromCssColorString("#00FA9A"));H.MEDIUMTURQUOISE=Object.freeze(H.fromCssColorString("#48D1CC"));H.MEDIUMVIOLETRED=Object.freeze(H.fromCssColorString("#C71585"));H.MIDNIGHTBLUE=Object.freeze(H.fromCssColorString("#191970"));H.MINTCREAM=Object.freeze(H.fromCssColorString("#F5FFFA"));H.MISTYROSE=Object.freeze(H.fromCssColorString("#FFE4E1"));H.MOCCASIN=Object.freeze(H.fromCssColorString("#FFE4B5"));H.NAVAJOWHITE=Object.freeze(H.fromCssColorString("#FFDEAD"));H.NAVY=Object.freeze(H.fromCssColorString("#000080"));H.OLDLACE=Object.freeze(H.fromCssColorString("#FDF5E6"));H.OLIVE=Object.freeze(H.fromCssColorString("#808000"));H.OLIVEDRAB=Object.freeze(H.fromCssColorString("#6B8E23"));H.ORANGE=Object.freeze(H.fromCssColorString("#FFA500"));H.ORANGERED=Object.freeze(H.fromCssColorString("#FF4500"));H.ORCHID=Object.freeze(H.fromCssColorString("#DA70D6"));H.PALEGOLDENROD=Object.freeze(H.fromCssColorString("#EEE8AA"));H.PALEGREEN=Object.freeze(H.fromCssColorString("#98FB98"));H.PALETURQUOISE=Object.freeze(H.fromCssColorString("#AFEEEE"));H.PALEVIOLETRED=Object.freeze(H.fromCssColorString("#DB7093"));H.PAPAYAWHIP=Object.freeze(H.fromCssColorString("#FFEFD5"));H.PEACHPUFF=Object.freeze(H.fromCssColorString("#FFDAB9"));H.PERU=Object.freeze(H.fromCssColorString("#CD853F"));H.PINK=Object.freeze(H.fromCssColorString("#FFC0CB"));H.PLUM=Object.freeze(H.fromCssColorString("#DDA0DD"));H.POWDERBLUE=Object.freeze(H.fromCssColorString("#B0E0E6"));H.PURPLE=Object.freeze(H.fromCssColorString("#800080"));H.RED=Object.freeze(H.fromCssColorString("#FF0000"));H.ROSYBROWN=Object.freeze(H.fromCssColorString("#BC8F8F"));H.ROYALBLUE=Object.freeze(H.fromCssColorString("#4169E1"));H.SADDLEBROWN=Object.freeze(H.fromCssColorString("#8B4513"));H.SALMON=Object.freeze(H.fromCssColorString("#FA8072"));H.SANDYBROWN=Object.freeze(H.fromCssColorString("#F4A460"));H.SEAGREEN=Object.freeze(H.fromCssColorString("#2E8B57"));H.SEASHELL=Object.freeze(H.fromCssColorString("#FFF5EE"));H.SIENNA=Object.freeze(H.fromCssColorString("#A0522D"));H.SILVER=Object.freeze(H.fromCssColorString("#C0C0C0"));H.SKYBLUE=Object.freeze(H.fromCssColorString("#87CEEB"));H.SLATEBLUE=Object.freeze(H.fromCssColorString("#6A5ACD"));H.SLATEGRAY=Object.freeze(H.fromCssColorString("#708090"));H.SLATEGREY=H.SLATEGRAY;H.SNOW=Object.freeze(H.fromCssColorString("#FFFAFA"));H.SPRINGGREEN=Object.freeze(H.fromCssColorString("#00FF7F"));H.STEELBLUE=Object.freeze(H.fromCssColorString("#4682B4"));H.TAN=Object.freeze(H.fromCssColorString("#D2B48C"));H.TEAL=Object.freeze(H.fromCssColorString("#008080"));H.THISTLE=Object.freeze(H.fromCssColorString("#D8BFD8"));H.TOMATO=Object.freeze(H.fromCssColorString("#FF6347"));H.TURQUOISE=Object.freeze(H.fromCssColorString("#40E0D0"));H.VIOLET=Object.freeze(H.fromCssColorString("#EE82EE"));H.WHEAT=Object.freeze(H.fromCssColorString("#F5DEB3"));H.WHITE=Object.freeze(H.fromCssColorString("#FFFFFF"));H.WHITESMOKE=Object.freeze(H.fromCssColorString("#F5F5F5"));H.YELLOW=Object.freeze(H.fromCssColorString("#FFFF00"));H.YELLOWGREEN=Object.freeze(H.fromCssColorString("#9ACD32"));H.TRANSPARENT=Object.freeze(new H(0,0,0,0));function co(e){e=A(e,A.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}co.ALL=Object.freeze(new co({color:new H(0,0,0,0),depth:1,stencil:0}));co.prototype.execute=function(e,t){e.clear(this,t)};const $_e={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Ne=Object.freeze($_e);function yC(e){e=A(e,A.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=A(e.persists,!1),this.pass=Ne.COMPUTE,this.owner=e.owner}yC.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=A(e,0),this.y=A(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n]=e.y,t};j.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oM.EPSILON12);return l(o)?(o.x=r*F,o.y=s*U,o.z=a*D,o):new f(r*F,s*U,a*D)}function Ce(e,t,n){this.longitude=A(e,0),this.latitude=A(t,0),this.height=A(n,0)}Ce.fromRadians=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),n=A(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ce(e,t,n)};Ce.fromDegrees=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),e=M.toRadians(e),t=M.toRadians(t),Ce.fromRadians(e,t,n,i)};const J_e=new f,Q_e=new f,Z_e=new f,ege=new f(1/6378137,1/6378137,1/6356752314245179e-9),tge=new f(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),nge=M.EPSILON1;Ce.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:ege,o=l(t)?t.oneOverRadiiSquared:tge,r=l(t)?t._centerToleranceSquared:nge,s=rj(e,i,o,r,Q_e);if(!l(s))return;let a=f.multiplyComponents(s,o,J_e);a=f.normalize(a,a);const c=f.subtract(e,s,Z_e),u=Math.atan2(a.y,a.x),d=Math.asin(a.z),h=M.sign(f.dot(c,e))*f.magnitude(c);return l(n)?(n.longitude=u,n.latitude=d,n.height=h,n):new Ce(u,d,h)};Ce.toCartesian=function(e,t,n){return T.defined("cartographic",e),f.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ce.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ce(e.longitude,e.latitude,e.height)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ce.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function sj(e,t,n,i){t=A(t,0),n=A(n,0),i=A(i,0),T.typeOf.number.greaterThanOrEquals("x",t,0),T.typeOf.number.greaterThanOrEquals("y",n,0),T.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new f(t,n,i),e._radiiSquared=new f(t*t,n*n,i*i),e._radiiToTheFourth=new f(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new f(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new f(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=M.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function me(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,sj(this,e,t,n)}Object.defineProperties(me.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});me.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(f.clone(n,t._radii),f.clone(e._radiiSquared,t._radiiSquared),f.clone(e._radiiToTheFourth,t._radiiToTheFourth),f.clone(e._oneOverRadii,t._oneOverRadii),f.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new me(n.x,n.y,n.z)};me.fromCartesian3=function(e,t){return l(t)||(t=new me),l(e)&&sj(t,e.x,e.y,e.z),t};me.WGS84=Object.freeze(new me(6378137,6378137,6356752314245179e-9));me.UNIT_SPHERE=Object.freeze(new me(1,1,1));me.MOON=Object.freeze(new me(M.LUNAR_RADIUS,M.LUNAR_RADIUS,M.LUNAR_RADIUS));me.prototype.clone=function(e){return me.clone(this,e)};me.packedLength=f.packedLength;me.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),f.pack(e._radii,t,n),t};me.unpack=function(e,t,n){T.defined("array",e),t=A(t,0);const i=f.unpack(e,t);return me.fromCartesian3(i,n)};me.prototype.geocentricSurfaceNormal=f.normalize;me.prototype.geodeticSurfaceNormalCartographic=function(e,t){T.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new f),t.x=r,t.y=s,t.z=a,f.normalize(t,t)};me.prototype.geodeticSurfaceNormal=function(e,t){if(!f.equalsEpsilon(e,f.ZERO,M.EPSILON14))return l(t)||(t=new f),t=f.multiplyComponents(e,this._oneOverRadiiSquared,t),f.normalize(t,t)};const ige=new f,oge=new f;me.prototype.cartographicToCartesian=function(e,t){const n=ige,i=oge;this.geodeticSurfaceNormalCartographic(e,n),f.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(f.dot(n,i));return f.divideByScalar(i,o,i),f.multiplyByScalar(n,e.height,n),l(t)||(t=new f),f.add(i,n,t)};me.prototype.cartographicArrayToCartesianArray=function(e,t){T.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const cge=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],lge=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Qz(e,t,n){T.typeOf.number("a",e),T.typeOf.number("b",t),T.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*cge[s];r+=lge[s]*(n(i+a)+n(i-a))}return r*=o,r}me.prototype.surfaceArea=function(e){T.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?d.longitude:d.longitude+M.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>M.PI&&(i=i-M.TWO_PI),n>M.PI&&(n=n-M.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new ge(n,s,i,a)};ge.fromCartesianArray=function(e,t,n){T.defined("cartesians",e),t=A(t,me.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,d=e.length;u=0?h.longitude:h.longitude+M.TWO_PI;r=Math.min(r,m),s=Math.max(s,m)}return o-i>s-r&&(i=r,o=s,o>M.PI&&(o=o-M.TWO_PI),i>M.PI&&(i=i-M.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new ge(i,a,o,c)};ge.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new ge(e.west,e.south,e.east,e.north)};ge.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};ge.prototype.clone=function(e){return ge.clone(this,e)};ge.prototype.equals=function(e){return ge.equals(this,e)};ge.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};ge.prototype.equalsEpsilon=function(e,t){return ge.equalsEpsilon(this,e,t)};ge.validate=function(e){T.typeOf.object("rectangle",e);const t=e.north;T.typeOf.number.greaterThanOrEquals("north",t,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("north",t,M.PI_OVER_TWO);const n=e.south;T.typeOf.number.greaterThanOrEquals("south",n,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("south",n,M.PI_OVER_TWO);const i=e.west;T.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),T.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;T.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),T.typeOf.number.lessThanOrEquals("east",o,Math.PI)};ge.southwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ce(e.west,e.south)};ge.northwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ce(e.west,e.north)};ge.northeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ce(e.east,e.north)};ge.southeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ce(e.east,e.south)};ge.center=function(e,t){T.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),i=d))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=d,n):new ge(a,u,c,d)};ge.simpleIntersection=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new ge(i,o,r,s)};ge.union=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t),l(n)||(n=new ge);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),io||M.equalsEpsilon(n,o,M.EPSILON14))&&(n=e.south&&i<=e.north};const dge=new Ce;ge.subsample=function(e,t,n,i){T.typeOf.object("rectangle",e),t=A(t,me.WGS84),n=A(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=dge;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let d=1;d<8;++d)u.longitude=-Math.PI+d*M.PI_OVER_TWO,ge.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};ge.subsection=function(e,t,n,i,o,r){if(T.typeOf.object("rectangle",e),T.typeOf.number.greaterThanOrEquals("westLerp",t,0),T.typeOf.number.lessThanOrEquals("westLerp",t,1),T.typeOf.number.greaterThanOrEquals("southLerp",n,0),T.typeOf.number.lessThanOrEquals("southLerp",n,1),T.typeOf.number.greaterThanOrEquals("eastLerp",i,0),T.typeOf.number.lessThanOrEquals("eastLerp",i,1),T.typeOf.number.greaterThanOrEquals("northLerp",o,0),T.typeOf.number.lessThanOrEquals("northLerp",o,1),T.typeOf.number.lessThanOrEquals("westLerp",t,i),T.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new ge),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=M.TWO_PI+e.east-e.west;r.west=M.negativePiToPi(e.west+t*a),r.east=M.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};ge.MAX_VALUE=Object.freeze(new ge(-Math.PI,-M.PI_OVER_TWO,Math.PI,M.PI_OVER_TWO));function Ye(e,t,n,i){this.x=A(e,0),this.y=A(t,0),this.width=A(n,0),this.height=A(i,0)}Ye.packedLength=4;Ye.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.width,t[n]=e.height,t};Ye.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Ye),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};Ye.fromPoints=function(e,t){if(l(t)||(t=new Ye),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};Ye.intersect=function(e,t){T.typeOf.object("left",e),T.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?xn.OUTSIDE:xn.INTERSECTING};Ye.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};Ye.prototype.clone=function(e){return Ye.clone(this,e)};Ye.prototype.intersect=function(e){return Ye.intersect(this,e)};Ye.prototype.equals=function(e){return Ye.equals(this,e)};const Ss={POINTS:ae.POINTS,LINES:ae.LINES,LINE_LOOP:ae.LINE_LOOP,LINE_STRIP:ae.LINE_STRIP,TRIANGLES:ae.TRIANGLES,TRIANGLE_STRIP:ae.TRIANGLE_STRIP,TRIANGLE_FAN:ae.TRIANGLE_FAN};Ss.isLines=function(e){return e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP};Ss.isTriangles=function(e){return e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};Ss.validate=function(e){return e===Ss.POINTS||e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP||e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};const Ze=Object.freeze(Ss),aj=`attribute vec4 position; attribute vec2 textureCoordinates; varying vec2 v_textureCoordinates; @@ -36,11 +36,11 @@ void main() gl_Position = position; v_textureCoordinates = textureCoordinates; } -`,Ro={CULL:1,OCCLUDE:2,EXECUTE_IN_CLOSEST_FRUSTUM:4,DEBUG_SHOW_BOUNDING_VOLUME:8,CAST_SHADOWS:16,RECEIVE_SHADOWS:32,PICK_ONLY:64,DEPTH_FOR_TRANSLUCENT_CLASSIFICATION:128};function mt(e){e=A(e,A.EMPTY_OBJECT),this._boundingVolume=e.boundingVolume,this._orientedBoundingBox=e.orientedBoundingBox,this._modelMatrix=e.modelMatrix,this._primitiveType=A(e.primitiveType,Ze.TRIANGLES),this._vertexArray=e.vertexArray,this._count=e.count,this._offset=A(e.offset,0),this._instanceCount=A(e.instanceCount,0),this._shaderProgram=e.shaderProgram,this._uniformMap=e.uniformMap,this._renderState=e.renderState,this._framebuffer=e.framebuffer,this._pass=e.pass,this._owner=e.owner,this._debugOverlappingFrustums=0,this._pickId=e.pickId,this._flags=0,this.cull=A(e.cull,!0),this.occlude=A(e.occlude,!0),this.executeInClosestFrustum=A(e.executeInClosestFrustum,!1),this.debugShowBoundingVolume=A(e.debugShowBoundingVolume,!1),this.castShadows=A(e.castShadows,!1),this.receiveShadows=A(e.receiveShadows,!1),this.pickOnly=A(e.pickOnly,!1),this.depthForTranslucentClassification=A(e.depthForTranslucentClassification,!1),this.dirty=!0,this.lastDirtyTime=0,this.derivedCommands={}}function Us(e,t){return(e._flags&t)===t}function _h(e,t,n){n?e._flags|=t:e._flags&=~t}Object.defineProperties(mt.prototype,{boundingVolume:{get:function(){return this._boundingVolume},set:function(e){this._boundingVolume!==e&&(this._boundingVolume=e,this.dirty=!0)}},orientedBoundingBox:{get:function(){return this._orientedBoundingBox},set:function(e){this._orientedBoundingBox!==e&&(this._orientedBoundingBox=e,this.dirty=!0)}},cull:{get:function(){return Us(this,Ro.CULL)},set:function(e){Us(this,Ro.CULL)!==e&&(_h(this,Ro.CULL,e),this.dirty=!0)}},occlude:{get:function(){return Us(this,Ro.OCCLUDE)},set:function(e){Us(this,Ro.OCCLUDE)!==e&&(_h(this,Ro.OCCLUDE,e),this.dirty=!0)}},modelMatrix:{get:function(){return this._modelMatrix},set:function(e){this._modelMatrix!==e&&(this._modelMatrix=e,this.dirty=!0)}},primitiveType:{get:function(){return this._primitiveType},set:function(e){this._primitiveType!==e&&(this._primitiveType=e,this.dirty=!0)}},vertexArray:{get:function(){return this._vertexArray},set:function(e){this._vertexArray!==e&&(this._vertexArray=e,this.dirty=!0)}},count:{get:function(){return this._count},set:function(e){this._count!==e&&(this._count=e,this.dirty=!0)}},offset:{get:function(){return this._offset},set:function(e){this._offset!==e&&(this._offset=e,this.dirty=!0)}},instanceCount:{get:function(){return this._instanceCount},set:function(e){this._instanceCount!==e&&(this._instanceCount=e,this.dirty=!0)}},shaderProgram:{get:function(){return this._shaderProgram},set:function(e){this._shaderProgram!==e&&(this._shaderProgram=e,this.dirty=!0)}},castShadows:{get:function(){return Us(this,Ro.CAST_SHADOWS)},set:function(e){Us(this,Ro.CAST_SHADOWS)!==e&&(_h(this,Ro.CAST_SHADOWS,e),this.dirty=!0)}},receiveShadows:{get:function(){return Us(this,Ro.RECEIVE_SHADOWS)},set:function(e){Us(this,Ro.RECEIVE_SHADOWS)!==e&&(_h(this,Ro.RECEIVE_SHADOWS,e),this.dirty=!0)}},uniformMap:{get:function(){return this._uniformMap},set:function(e){this._uniformMap!==e&&(this._uniformMap=e,this.dirty=!0)}},renderState:{get:function(){return this._renderState},set:function(e){this._renderState!==e&&(this._renderState=e,this.dirty=!0)}},framebuffer:{get:function(){return this._framebuffer},set:function(e){this._framebuffer!==e&&(this._framebuffer=e,this.dirty=!0)}},pass:{get:function(){return this._pass},set:function(e){this._pass!==e&&(this._pass=e,this.dirty=!0)}},executeInClosestFrustum:{get:function(){return Us(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM)},set:function(e){Us(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM)!==e&&(_h(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM,e),this.dirty=!0)}},owner:{get:function(){return this._owner},set:function(e){this._owner!==e&&(this._owner=e,this.dirty=!0)}},debugShowBoundingVolume:{get:function(){return Us(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME)},set:function(e){Us(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME)!==e&&(_h(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME,e),this.dirty=!0)}},debugOverlappingFrustums:{get:function(){return this._debugOverlappingFrustums},set:function(e){this._debugOverlappingFrustums!==e&&(this._debugOverlappingFrustums=e,this.dirty=!0)}},pickId:{get:function(){return this._pickId},set:function(e){this._pickId!==e&&(this._pickId=e,this.dirty=!0)}},pickOnly:{get:function(){return Us(this,Ro.PICK_ONLY)},set:function(e){Us(this,Ro.PICK_ONLY)!==e&&(_h(this,Ro.PICK_ONLY,e),this.dirty=!0)}},depthForTranslucentClassification:{get:function(){return Us(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION)},set:function(e){Us(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION)!==e&&(_h(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION,e),this.dirty=!0)}}});mt.shallowClone=function(e,t){if(l(e))return l(t)||(t=new mt),t._boundingVolume=e._boundingVolume,t._orientedBoundingBox=e._orientedBoundingBox,t._modelMatrix=e._modelMatrix,t._primitiveType=e._primitiveType,t._vertexArray=e._vertexArray,t._count=e._count,t._offset=e._offset,t._instanceCount=e._instanceCount,t._shaderProgram=e._shaderProgram,t._uniformMap=e._uniformMap,t._renderState=e._renderState,t._framebuffer=e._framebuffer,t._pass=e._pass,t._owner=e._owner,t._debugOverlappingFrustums=e._debugOverlappingFrustums,t._pickId=e._pickId,t._flags=e._flags,t.dirty=!0,t.lastDirtyTime=0,t};mt.prototype.execute=function(e,t){e.draw(this,t)};const si={UNSIGNED_BYTE:ae.UNSIGNED_BYTE,UNSIGNED_SHORT:ae.UNSIGNED_SHORT,UNSIGNED_INT:ae.UNSIGNED_INT,FLOAT:ae.FLOAT,HALF_FLOAT:ae.HALF_FLOAT_OES,UNSIGNED_INT_24_8:ae.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:ae.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:ae.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:ae.UNSIGNED_SHORT_5_6_5};si.toWebGLConstant=function(e,t){switch(e){case si.UNSIGNED_BYTE:return ae.UNSIGNED_BYTE;case si.UNSIGNED_SHORT:return ae.UNSIGNED_SHORT;case si.UNSIGNED_INT:return ae.UNSIGNED_INT;case si.FLOAT:return ae.FLOAT;case si.HALF_FLOAT:return t.webgl2?ae.HALF_FLOAT:ae.HALF_FLOAT_OES;case si.UNSIGNED_INT_24_8:return ae.UNSIGNED_INT_24_8;case si.UNSIGNED_SHORT_4_4_4_4:return ae.UNSIGNED_SHORT_4_4_4_4;case si.UNSIGNED_SHORT_5_5_5_1:return ae.UNSIGNED_SHORT_5_5_5_1;case si.UNSIGNED_SHORT_5_6_5:return si.UNSIGNED_SHORT_5_6_5}};si.isPacked=function(e){return e===si.UNSIGNED_INT_24_8||e===si.UNSIGNED_SHORT_4_4_4_4||e===si.UNSIGNED_SHORT_5_5_5_1||e===si.UNSIGNED_SHORT_5_6_5};si.sizeInBytes=function(e){switch(e){case si.UNSIGNED_BYTE:return 1;case si.UNSIGNED_SHORT:case si.UNSIGNED_SHORT_4_4_4_4:case si.UNSIGNED_SHORT_5_5_5_1:case si.UNSIGNED_SHORT_5_6_5:case si.HALF_FLOAT:return 2;case si.UNSIGNED_INT:case si.FLOAT:case si.UNSIGNED_INT_24_8:return 4}};si.validate=function(e){return e===si.UNSIGNED_BYTE||e===si.UNSIGNED_SHORT||e===si.UNSIGNED_INT||e===si.FLOAT||e===si.HALF_FLOAT||e===si.UNSIGNED_INT_24_8||e===si.UNSIGNED_SHORT_4_4_4_4||e===si.UNSIGNED_SHORT_5_5_5_1||e===si.UNSIGNED_SHORT_5_6_5};const Qe=Object.freeze(si),Je={DEPTH_COMPONENT:ae.DEPTH_COMPONENT,DEPTH_STENCIL:ae.DEPTH_STENCIL,ALPHA:ae.ALPHA,RGB:ae.RGB,RGBA:ae.RGBA,LUMINANCE:ae.LUMINANCE,LUMINANCE_ALPHA:ae.LUMINANCE_ALPHA,RGB_DXT1:ae.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:ae.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:ae.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:ae.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:ae.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:ae.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:ae.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:ae.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:ae.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:ae.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:ae.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:ae.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:ae.COMPRESSED_RGBA_BPTC_UNORM};Je.componentsLength=function(e){switch(e){case Je.RGB:return 3;case Je.RGBA:return 4;case Je.LUMINANCE_ALPHA:return 2;case Je.ALPHA:case Je.LUMINANCE:return 1;default:return 1}};Je.validate=function(e){return e===Je.DEPTH_COMPONENT||e===Je.DEPTH_STENCIL||e===Je.ALPHA||e===Je.RGB||e===Je.RGBA||e===Je.LUMINANCE||e===Je.LUMINANCE_ALPHA||e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5||e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1||e===Je.RGBA_ASTC||e===Je.RGB_ETC1||e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC||e===Je.RGBA_BC7};Je.isColorFormat=function(e){return e===Je.ALPHA||e===Je.RGB||e===Je.RGBA||e===Je.LUMINANCE||e===Je.LUMINANCE_ALPHA};Je.isDepthFormat=function(e){return e===Je.DEPTH_COMPONENT||e===Je.DEPTH_STENCIL};Je.isCompressedFormat=function(e){return e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5||e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1||e===Je.RGBA_ASTC||e===Je.RGB_ETC1||e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC||e===Je.RGBA_BC7};Je.isDXTFormat=function(e){return e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5};Je.isPVRTCFormat=function(e){return e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1};Je.isASTCFormat=function(e){return e===Je.RGBA_ASTC};Je.isETC1Format=function(e){return e===Je.RGB_ETC1};Je.isETC2Format=function(e){return e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC};Je.isBC7Format=function(e){return e===Je.RGBA_BC7};Je.compressedTextureSizeInBytes=function(e,t,n){switch(e){case Je.RGB_DXT1:case Je.RGBA_DXT1:case Je.RGB_ETC1:case Je.RGB8_ETC2:return Math.floor((t+3)/4)*Math.floor((n+3)/4)*8;case Je.RGBA_DXT3:case Je.RGBA_DXT5:case Je.RGBA_ASTC:case Je.RGBA8_ETC2_EAC:return Math.floor((t+3)/4)*Math.floor((n+3)/4)*16;case Je.RGB_PVRTC_4BPPV1:case Je.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(t,8)*Math.max(n,8)*4+7)/8);case Je.RGB_PVRTC_2BPPV1:case Je.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(t,16)*Math.max(n,8)*2+7)/8);case Je.RGBA_BC7:return Math.ceil(t/4)*Math.ceil(n/4)*16;default:return 0}};Je.textureSizeInBytes=function(e,t,n,i){let o=Je.componentsLength(e);return Qe.isPacked(t)&&(o=1),o*Qe.sizeInBytes(t)*n*i};Je.alignmentInBytes=function(e,t,n){const i=Je.textureSizeInBytes(e,t,n,1)%4;return i===0?4:i===2?2:1};Je.createTypedArray=function(e,t,n,i){let o;const r=Qe.sizeInBytes(t);r===Uint8Array.BYTES_PER_ELEMENT?o=Uint8Array:r===Uint16Array.BYTES_PER_ELEMENT?o=Uint16Array:r===Float32Array.BYTES_PER_ELEMENT&&t===Qe.FLOAT?o=Float32Array:o=Uint32Array;const s=Je.componentsLength(e)*n*i;return new o(s)};Je.flipY=function(e,t,n,i,o){if(o===1)return e;const r=Je.createTypedArray(t,n,i,o),s=Je.componentsLength(t),a=i*s;for(let c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;c=this._colorTextures.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorTextures[e]};Yr.prototype.getColorRenderbuffer=function(e){if(!l(e)||e<0||e>=this._colorRenderbuffers.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorRenderbuffers[e]};Yr.prototype.isDestroyed=function(){return!1};Yr.prototype.destroy=function(){if(this.destroyAttachments){let e=0;const t=this._colorTextures;let n=t.length;for(;eIt.maximumAliasedLineWidth)throw new x("renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth.");if(!pl.validate(this.frontFace))throw new x("Invalid renderState.frontFace.");if(!mge(this.cull.face))throw new x("Invalid renderState.cull.face.");if(this.scissorTest.rectangle.width<0||this.scissorTest.rectangle.height<0)throw new x("renderState.scissorTest.rectangle.width and renderState.scissorTest.rectangle.height must be greater than or equal to zero.");if(this.depthRange.near>this.depthRange.far)throw new x("renderState.depthRange.near can not be greater than renderState.depthRange.far.");if(this.depthRange.near<0)throw new x("renderState.depthRange.near must be greater than or equal to zero.");if(this.depthRange.far>1)throw new x("renderState.depthRange.far must be less than or equal to one.");if(!_ge(this.depthTest.func))throw new x("Invalid renderState.depthTest.func.");if(this.blending.color.red<0||this.blending.color.red>1||this.blending.color.green<0||this.blending.color.green>1||this.blending.color.blue<0||this.blending.color.blue>1||this.blending.color.alpha<0||this.blending.color.alpha>1)throw new x("renderState.blending.color components must be greater than or equal to zero and less than or equal to one.");if(!Zz(this.blending.equationRgb))throw new x("Invalid renderState.blending.equationRgb.");if(!Zz(this.blending.equationAlpha))throw new x("Invalid renderState.blending.equationAlpha.");if(!IE(this.blending.functionSourceRgb))throw new x("Invalid renderState.blending.functionSourceRgb.");if(!IE(this.blending.functionSourceAlpha))throw new x("Invalid renderState.blending.functionSourceAlpha.");if(!IE(this.blending.functionDestinationRgb))throw new x("Invalid renderState.blending.functionDestinationRgb.");if(!IE(this.blending.functionDestinationAlpha))throw new x("Invalid renderState.blending.functionDestinationAlpha.");if(!eU(this.stencilTest.frontFunction))throw new x("Invalid renderState.stencilTest.frontFunction.");if(!eU(this.stencilTest.backFunction))throw new x("Invalid renderState.stencilTest.backFunction.");if(!Sg(this.stencilTest.frontOperation.fail))throw new x("Invalid renderState.stencilTest.frontOperation.fail.");if(!Sg(this.stencilTest.frontOperation.zFail))throw new x("Invalid renderState.stencilTest.frontOperation.zFail.");if(!Sg(this.stencilTest.frontOperation.zPass))throw new x("Invalid renderState.stencilTest.frontOperation.zPass.");if(!Sg(this.stencilTest.backOperation.fail))throw new x("Invalid renderState.stencilTest.backOperation.fail.");if(!Sg(this.stencilTest.backOperation.zFail))throw new x("Invalid renderState.stencilTest.backOperation.zFail.");if(!Sg(this.stencilTest.backOperation.zPass))throw new x("Invalid renderState.stencilTest.backOperation.zPass.");if(l(this.viewport)){if(this.viewport.width<0)throw new x("renderState.viewport.width must be greater than or equal to zero.");if(this.viewport.height<0)throw new x("renderState.viewport.height must be greater than or equal to zero.");if(this.viewport.width>It.maximumViewportWidth)throw new x(`renderState.viewport.width must be less than or equal to the maximum viewport width (${It.maximumViewportWidth.toString()}). Check maximumViewportWidth.`);if(this.viewport.height>It.maximumViewportHeight)throw new x(`renderState.viewport.height must be less than or equal to the maximum viewport height (${It.maximumViewportHeight.toString()}). Check maximumViewportHeight.`)}this.id=0,this._applyFunctions=[]}let gge=0,Zu={};et.fromCache=function(e){const t=JSON.stringify(e);let n=Zu[t];if(l(n))return++n.referenceCount,n.state;let i=new et(e);const o=JSON.stringify(i);return n=Zu[o],l(n)||(i.id=gge++,i=cj(i),n={referenceCount:0,state:i},Zu[o]=n),++n.referenceCount,Zu[t]={referenceCount:1,state:n.state},n.state};et.removeFromCache=function(e){const t=new et(e),n=JSON.stringify(t),i=Zu[n],o=JSON.stringify(e),r=Zu[o];l(r)&&(--r.referenceCount,r.referenceCount===0&&(delete Zu[o],l(i)&&--i.referenceCount)),l(i)&&i.referenceCount===0&&delete Zu[n]};et.getCache=function(){return Zu};et.clearCache=function(){Zu={}};function $_(e,t,n){n?e.enable(t):e.disable(t)}function lj(e,t){e.frontFace(t.frontFace)}function uj(e,t){const n=t.cull,i=n.enabled;$_(e,e.CULL_FACE,i),i&&e.cullFace(n.face)}function dj(e,t){e.lineWidth(t.lineWidth)}function fj(e,t){const n=t.polygonOffset,i=n.enabled;$_(e,e.POLYGON_OFFSET_FILL,i),i&&e.polygonOffset(n.factor,n.units)}function hj(e,t,n){const i=t.scissorTest,o=l(n.scissorTest)?n.scissorTest.enabled:i.enabled;if($_(e,e.SCISSOR_TEST,o),o){const r=l(n.scissorTest)?n.scissorTest.rectangle:i.rectangle;e.scissor(r.x,r.y,r.width,r.height)}}function pj(e,t){const n=t.depthRange;e.depthRange(n.near,n.far)}function mj(e,t){const n=t.depthTest,i=n.enabled;$_(e,e.DEPTH_TEST,i),i&&e.depthFunc(n.func)}function _j(e,t){const n=t.colorMask;e.colorMask(n.red,n.green,n.blue,n.alpha)}function gj(e,t){e.depthMask(t.depthMask)}function yj(e,t){e.stencilMask(t.stencilMask)}function yge(e,t){e.blendColor(t.red,t.green,t.blue,t.alpha)}function Aj(e,t,n){const i=t.blending,o=l(n.blendingEnabled)?n.blendingEnabled:i.enabled;$_(e,e.BLEND,o),o&&(yge(e,i.color),e.blendEquationSeparate(i.equationRgb,i.equationAlpha),e.blendFuncSeparate(i.functionSourceRgb,i.functionDestinationRgb,i.functionSourceAlpha,i.functionDestinationAlpha))}function bj(e,t){const n=t.stencilTest,i=n.enabled;if($_(e,e.STENCIL_TEST,i),i){const o=n.frontFunction,r=n.backFunction,s=n.reference,a=n.mask;e.stencilFunc(o,s,a),e.stencilFuncSeparate(e.BACK,r,s,a),e.stencilFuncSeparate(e.FRONT,o,s,a);const c=n.frontOperation,u=c.fail,d=c.zFail,h=c.zPass;e.stencilOpSeparate(e.FRONT,u,d,h);const m=n.backOperation,g=m.fail,p=m.zFail,y=m.zPass;e.stencilOpSeparate(e.BACK,g,p,y)}}function Cj(e,t){const n=t.sampleCoverage,i=n.enabled;$_(e,e.SAMPLE_COVERAGE,i),i&&e.sampleCoverage(n.value,n.invert)}const Age=new Ye;function Tj(e,t,n){let i=A(t.viewport,n.viewport);l(i)||(i=Age,i.width=n.context.drawingBufferWidth,i.height=n.context.drawingBufferHeight),n.context.uniformState.viewport=i,e.viewport(i.x,i.y,i.width,i.height)}et.apply=function(e,t,n){lj(e,t),uj(e,t),dj(e,t),fj(e,t),pj(e,t),mj(e,t),_j(e,t),gj(e,t),yj(e,t),bj(e,t),Cj(e,t),hj(e,t,n),Aj(e,t,n),Tj(e,t,n)};function bge(e,t){const n=[];return e.frontFace!==t.frontFace&&n.push(lj),(e.cull.enabled!==t.cull.enabled||e.cull.face!==t.cull.face)&&n.push(uj),e.lineWidth!==t.lineWidth&&n.push(dj),(e.polygonOffset.enabled!==t.polygonOffset.enabled||e.polygonOffset.factor!==t.polygonOffset.factor||e.polygonOffset.units!==t.polygonOffset.units)&&n.push(fj),(e.depthRange.near!==t.depthRange.near||e.depthRange.far!==t.depthRange.far)&&n.push(pj),(e.depthTest.enabled!==t.depthTest.enabled||e.depthTest.func!==t.depthTest.func)&&n.push(mj),(e.colorMask.red!==t.colorMask.red||e.colorMask.green!==t.colorMask.green||e.colorMask.blue!==t.colorMask.blue||e.colorMask.alpha!==t.colorMask.alpha)&&n.push(_j),e.depthMask!==t.depthMask&&n.push(gj),e.stencilMask!==t.stencilMask&&n.push(yj),(e.stencilTest.enabled!==t.stencilTest.enabled||e.stencilTest.frontFunction!==t.stencilTest.frontFunction||e.stencilTest.backFunction!==t.stencilTest.backFunction||e.stencilTest.reference!==t.stencilTest.reference||e.stencilTest.mask!==t.stencilTest.mask||e.stencilTest.frontOperation.fail!==t.stencilTest.frontOperation.fail||e.stencilTest.frontOperation.zFail!==t.stencilTest.frontOperation.zFail||e.stencilTest.backOperation.fail!==t.stencilTest.backOperation.fail||e.stencilTest.backOperation.zFail!==t.stencilTest.backOperation.zFail||e.stencilTest.backOperation.zPass!==t.stencilTest.backOperation.zPass)&&n.push(bj),(e.sampleCoverage.enabled!==t.sampleCoverage.enabled||e.sampleCoverage.value!==t.sampleCoverage.value||e.sampleCoverage.invert!==t.sampleCoverage.invert)&&n.push(Cj),n}et.partialApply=function(e,t,n,i,o,r){if(t!==n){let d=n._applyFunctions[t.id];l(d)||(d=bge(t,n),n._applyFunctions[t.id]=d);const h=d.length;for(let m=0;mi)throw new x("The number of color attachments exceeds the number supported.");for(c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;c=this._colorTextures.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorTextures[e]};Yr.prototype.getColorRenderbuffer=function(e){if(!l(e)||e<0||e>=this._colorRenderbuffers.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorRenderbuffers[e]};Yr.prototype.isDestroyed=function(){return!1};Yr.prototype.destroy=function(){if(this.destroyAttachments){let e=0;const t=this._colorTextures;let n=t.length;for(;eIt.maximumAliasedLineWidth)throw new x("renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth.");if(!ml.validate(this.frontFace))throw new x("Invalid renderState.frontFace.");if(!mge(this.cull.face))throw new x("Invalid renderState.cull.face.");if(this.scissorTest.rectangle.width<0||this.scissorTest.rectangle.height<0)throw new x("renderState.scissorTest.rectangle.width and renderState.scissorTest.rectangle.height must be greater than or equal to zero.");if(this.depthRange.near>this.depthRange.far)throw new x("renderState.depthRange.near can not be greater than renderState.depthRange.far.");if(this.depthRange.near<0)throw new x("renderState.depthRange.near must be greater than or equal to zero.");if(this.depthRange.far>1)throw new x("renderState.depthRange.far must be less than or equal to one.");if(!_ge(this.depthTest.func))throw new x("Invalid renderState.depthTest.func.");if(this.blending.color.red<0||this.blending.color.red>1||this.blending.color.green<0||this.blending.color.green>1||this.blending.color.blue<0||this.blending.color.blue>1||this.blending.color.alpha<0||this.blending.color.alpha>1)throw new x("renderState.blending.color components must be greater than or equal to zero and less than or equal to one.");if(!Zz(this.blending.equationRgb))throw new x("Invalid renderState.blending.equationRgb.");if(!Zz(this.blending.equationAlpha))throw new x("Invalid renderState.blending.equationAlpha.");if(!IE(this.blending.functionSourceRgb))throw new x("Invalid renderState.blending.functionSourceRgb.");if(!IE(this.blending.functionSourceAlpha))throw new x("Invalid renderState.blending.functionSourceAlpha.");if(!IE(this.blending.functionDestinationRgb))throw new x("Invalid renderState.blending.functionDestinationRgb.");if(!IE(this.blending.functionDestinationAlpha))throw new x("Invalid renderState.blending.functionDestinationAlpha.");if(!eU(this.stencilTest.frontFunction))throw new x("Invalid renderState.stencilTest.frontFunction.");if(!eU(this.stencilTest.backFunction))throw new x("Invalid renderState.stencilTest.backFunction.");if(!wg(this.stencilTest.frontOperation.fail))throw new x("Invalid renderState.stencilTest.frontOperation.fail.");if(!wg(this.stencilTest.frontOperation.zFail))throw new x("Invalid renderState.stencilTest.frontOperation.zFail.");if(!wg(this.stencilTest.frontOperation.zPass))throw new x("Invalid renderState.stencilTest.frontOperation.zPass.");if(!wg(this.stencilTest.backOperation.fail))throw new x("Invalid renderState.stencilTest.backOperation.fail.");if(!wg(this.stencilTest.backOperation.zFail))throw new x("Invalid renderState.stencilTest.backOperation.zFail.");if(!wg(this.stencilTest.backOperation.zPass))throw new x("Invalid renderState.stencilTest.backOperation.zPass.");if(l(this.viewport)){if(this.viewport.width<0)throw new x("renderState.viewport.width must be greater than or equal to zero.");if(this.viewport.height<0)throw new x("renderState.viewport.height must be greater than or equal to zero.");if(this.viewport.width>It.maximumViewportWidth)throw new x(`renderState.viewport.width must be less than or equal to the maximum viewport width (${It.maximumViewportWidth.toString()}). Check maximumViewportWidth.`);if(this.viewport.height>It.maximumViewportHeight)throw new x(`renderState.viewport.height must be less than or equal to the maximum viewport height (${It.maximumViewportHeight.toString()}). Check maximumViewportHeight.`)}this.id=0,this._applyFunctions=[]}let gge=0,Zu={};et.fromCache=function(e){const t=JSON.stringify(e);let n=Zu[t];if(l(n))return++n.referenceCount,n.state;let i=new et(e);const o=JSON.stringify(i);return n=Zu[o],l(n)||(i.id=gge++,i=cj(i),n={referenceCount:0,state:i},Zu[o]=n),++n.referenceCount,Zu[t]={referenceCount:1,state:n.state},n.state};et.removeFromCache=function(e){const t=new et(e),n=JSON.stringify(t),i=Zu[n],o=JSON.stringify(e),r=Zu[o];l(r)&&(--r.referenceCount,r.referenceCount===0&&(delete Zu[o],l(i)&&--i.referenceCount)),l(i)&&i.referenceCount===0&&delete Zu[n]};et.getCache=function(){return Zu};et.clearCache=function(){Zu={}};function $_(e,t,n){n?e.enable(t):e.disable(t)}function lj(e,t){e.frontFace(t.frontFace)}function uj(e,t){const n=t.cull,i=n.enabled;$_(e,e.CULL_FACE,i),i&&e.cullFace(n.face)}function dj(e,t){e.lineWidth(t.lineWidth)}function fj(e,t){const n=t.polygonOffset,i=n.enabled;$_(e,e.POLYGON_OFFSET_FILL,i),i&&e.polygonOffset(n.factor,n.units)}function hj(e,t,n){const i=t.scissorTest,o=l(n.scissorTest)?n.scissorTest.enabled:i.enabled;if($_(e,e.SCISSOR_TEST,o),o){const r=l(n.scissorTest)?n.scissorTest.rectangle:i.rectangle;e.scissor(r.x,r.y,r.width,r.height)}}function pj(e,t){const n=t.depthRange;e.depthRange(n.near,n.far)}function mj(e,t){const n=t.depthTest,i=n.enabled;$_(e,e.DEPTH_TEST,i),i&&e.depthFunc(n.func)}function _j(e,t){const n=t.colorMask;e.colorMask(n.red,n.green,n.blue,n.alpha)}function gj(e,t){e.depthMask(t.depthMask)}function yj(e,t){e.stencilMask(t.stencilMask)}function yge(e,t){e.blendColor(t.red,t.green,t.blue,t.alpha)}function Aj(e,t,n){const i=t.blending,o=l(n.blendingEnabled)?n.blendingEnabled:i.enabled;$_(e,e.BLEND,o),o&&(yge(e,i.color),e.blendEquationSeparate(i.equationRgb,i.equationAlpha),e.blendFuncSeparate(i.functionSourceRgb,i.functionDestinationRgb,i.functionSourceAlpha,i.functionDestinationAlpha))}function bj(e,t){const n=t.stencilTest,i=n.enabled;if($_(e,e.STENCIL_TEST,i),i){const o=n.frontFunction,r=n.backFunction,s=n.reference,a=n.mask;e.stencilFunc(o,s,a),e.stencilFuncSeparate(e.BACK,r,s,a),e.stencilFuncSeparate(e.FRONT,o,s,a);const c=n.frontOperation,u=c.fail,d=c.zFail,h=c.zPass;e.stencilOpSeparate(e.FRONT,u,d,h);const m=n.backOperation,g=m.fail,p=m.zFail,y=m.zPass;e.stencilOpSeparate(e.BACK,g,p,y)}}function Cj(e,t){const n=t.sampleCoverage,i=n.enabled;$_(e,e.SAMPLE_COVERAGE,i),i&&e.sampleCoverage(n.value,n.invert)}const Age=new Ye;function Tj(e,t,n){let i=A(t.viewport,n.viewport);l(i)||(i=Age,i.width=n.context.drawingBufferWidth,i.height=n.context.drawingBufferHeight),n.context.uniformState.viewport=i,e.viewport(i.x,i.y,i.width,i.height)}et.apply=function(e,t,n){lj(e,t),uj(e,t),dj(e,t),fj(e,t),pj(e,t),mj(e,t),_j(e,t),gj(e,t),yj(e,t),bj(e,t),Cj(e,t),hj(e,t,n),Aj(e,t,n),Tj(e,t,n)};function bge(e,t){const n=[];return e.frontFace!==t.frontFace&&n.push(lj),(e.cull.enabled!==t.cull.enabled||e.cull.face!==t.cull.face)&&n.push(uj),e.lineWidth!==t.lineWidth&&n.push(dj),(e.polygonOffset.enabled!==t.polygonOffset.enabled||e.polygonOffset.factor!==t.polygonOffset.factor||e.polygonOffset.units!==t.polygonOffset.units)&&n.push(fj),(e.depthRange.near!==t.depthRange.near||e.depthRange.far!==t.depthRange.far)&&n.push(pj),(e.depthTest.enabled!==t.depthTest.enabled||e.depthTest.func!==t.depthTest.func)&&n.push(mj),(e.colorMask.red!==t.colorMask.red||e.colorMask.green!==t.colorMask.green||e.colorMask.blue!==t.colorMask.blue||e.colorMask.alpha!==t.colorMask.alpha)&&n.push(_j),e.depthMask!==t.depthMask&&n.push(gj),e.stencilMask!==t.stencilMask&&n.push(yj),(e.stencilTest.enabled!==t.stencilTest.enabled||e.stencilTest.frontFunction!==t.stencilTest.frontFunction||e.stencilTest.backFunction!==t.stencilTest.backFunction||e.stencilTest.reference!==t.stencilTest.reference||e.stencilTest.mask!==t.stencilTest.mask||e.stencilTest.frontOperation.fail!==t.stencilTest.frontOperation.fail||e.stencilTest.frontOperation.zFail!==t.stencilTest.frontOperation.zFail||e.stencilTest.backOperation.fail!==t.stencilTest.backOperation.fail||e.stencilTest.backOperation.zFail!==t.stencilTest.backOperation.zFail||e.stencilTest.backOperation.zPass!==t.stencilTest.backOperation.zPass)&&n.push(bj),(e.sampleCoverage.enabled!==t.sampleCoverage.enabled||e.sampleCoverage.value!==t.sampleCoverage.value||e.sampleCoverage.invert!==t.sampleCoverage.invert)&&n.push(Cj),n}et.partialApply=function(e,t,n,i,o,r){if(t!==n){let d=n._applyFunctions[t.id];l(d)||(d=bge(t,n),n._applyFunctions[t.id]=d);const h=d.length;for(let m=0;m0&&console.log(`${Mu}Vertex shader compile log: ${c}`),c=e.getShaderInfoLog(r),l(c)&&c.length>0&&console.log(`${Mu}Fragment shader compile log: ${c}`),c=e.getProgramInfoLog(s),l(c)&&c.length>0&&console.log(`${Mu}Shader program link log: ${c}`)),e.deleteShader(o),e.deleteShader(r),s;let u;const d=t._debugShaders;throw e.getShaderParameter(r,e.COMPILE_STATUS)?e.getShaderParameter(o,e.COMPILE_STATUS)?(c=e.getProgramInfoLog(s),console.error(`${Mu}Shader program link log: ${c}`),h(o,"vertex"),h(r,"fragment"),u=`Program failed to link. Link log: ${c}`):(c=e.getShaderInfoLog(o),console.error(`${Mu}Vertex shader compile log: ${c}`),console.error(`${Mu} Vertex shader source: ${n}`),u=`Vertex shader failed to compile. Compile log: ${c}`):(c=e.getShaderInfoLog(r),console.error(`${Mu}Fragment shader compile log: ${c}`),console.error(`${Mu} Fragment shader source: ${i}`),u=`Fragment shader failed to compile. Compile log: ${c}`),e.deleteShader(o),e.deleteShader(r),e.deleteProgram(s),new Ie(u);function h(m,g){if(!l(d))return;const p=d.getTranslatedShaderSource(m);if(p===""){console.error(`${Mu}${g} shader translation failed.`);return}console.error(`${Mu}Translated ${g} shaderSource: -${p}`)}}function Bge(e,t,n){const i={};for(let o=0;o=0){if(d=n[u.slice(0,p)],!l(d))continue;h=d._locations,h.length<=1&&(m=d.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),m.push(e.getUniform(t,g))))}else{h=[];for(let y=0;y0)n=Math.sqrt(d+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=Gge;let m=0;c>a&&(m=1),u>a&&u>c&&(m=2);const g=h[m],p=h[g];n=Math.sqrt(e[J.getElementIndex(m,m)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const y=Wge;y[m]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,y[g]=(e[J.getElementIndex(g,m)]+e[J.getElementIndex(m,g)])*n,y[p]=(e[J.getElementIndex(p,m)]+e[J.getElementIndex(m,p)])*n,i=-y[0],o=-y[1],r=-y[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Te(i,o,r,s)};const rU=new Te;let sU=new Te,o1=new Te,aU=new Te;Te.fromHeadingPitchRoll=function(e,t){return T.typeOf.object("headingPitchRoll",e),aU=Te.fromAxisAngle(f.UNIT_X,e.roll,rU),o1=Te.fromAxisAngle(f.UNIT_Y,-e.pitch,t),t=Te.multiply(o1,aU,o1),sU=Te.fromAxisAngle(f.UNIT_Z,-e.heading,rU),Te.multiply(sU,t,t)};const PE=new f,r1=new f,kl=new Te,cU=new Te,OE=new Te;Te.packedLength=4;Te.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Te.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Te),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Te.packedInterpolationLength=3;Te.convertPackedArrayForInterpolation=function(e,t,n,i){Te.unpack(e,n*4,OE),Te.conjugate(OE,OE);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)Hd[g]=(MS[g]*c-FS[g])*s,Vd[g]=(MS[g]*u-FS[g])*s;const d=r*n*(1+Hd[0]*(1+Hd[1]*(1+Hd[2]*(1+Hd[3]*(1+Hd[4]*(1+Hd[5]*(1+Hd[6]*(1+Hd[7])))))))),h=a*(1+Vd[0]*(1+Vd[1]*(1+Vd[2]*(1+Vd[3]*(1+Vd[4]*(1+Vd[5]*(1+Vd[6]*(1+Vd[7])))))))),m=Te.multiplyByScalar(e,h,$ge);return Te.multiplyByScalar(t,d,i),Te.add(m,i,i)};Te.fastSquad=function(e,t,n,i,o,r){T.typeOf.object("q0",e),T.typeOf.object("q1",t),T.typeOf.object("s0",n),T.typeOf.object("s1",i),T.typeOf.number("t",o),T.typeOf.object("result",r);const s=Te.fastSlerp(e,t,o,Bb),a=Te.fastSlerp(n,i,o,Ey);return Te.fastSlerp(s,a,2*o*(1-o),r)};Te.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Te.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Te.ZERO=Object.freeze(new Te(0,0,0,0));Te.IDENTITY=Object.freeze(new Te(0,0,0,1));Te.prototype.clone=function(e){return Te.clone(this,e)};Te.prototype.equals=function(e){return Te.equals(this,e)};Te.prototype.equalsEpsilon=function(e,t){return Te.equalsEpsilon(this,e,t)};Te.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function Bs(e,t,n){T.defined("array",e),T.defined("itemToFind",t),T.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function iM(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function uT(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function zS(e){if(e===null||isNaN(e))throw new x("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function $i(e,t){this.julianDate=e,this.offset=t}const Yge={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},Ni=Object.freeze(Yge),Xge={UTC:0,TAI:1},$n=Object.freeze(Xge),$j=new uT,LE=[31,28,31,30,31,30,31,31,30,31,30,31],BE=29;function oM(e,t){return ie.compare(e.julianDate,t.julianDate)}const c0=new $i;function rD(e){c0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,c0,oM);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ie.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ie.addSeconds(e,i,e)}function uU(e,t){c0.julianDate=e;const n=ie.leapSeconds;let i=Bs(n,c0,oM);if(i<0&&(i=~i),i===0)return ie.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ie.addSeconds(e,-n[i-1].offset,t);const o=ie.secondsDifference(n[i].julianDate,e);if(o===0)return ie.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ie.addSeconds(e,-n[--i].offset,t)}function Yp(e,t,n){const i=t/Ni.SECONDS_PER_DAY|0;return e+=i,t-=Ni.SECONDS_PER_DAY*i,t<0&&(e--,t+=Ni.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function rM(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const d=r+(i*Ni.SECONDS_PER_HOUR+o*Ni.SECONDS_PER_MINUTE+s*Ni.SECONDS_PER_MILLISECOND);return d>=43200&&(u-=1),[u,d]}const Kge=/^(\d{4})$/,Jge=/^(\d{4})-(\d{2})$/,Qge=/^(\d{4})-?(\d{3})$/,Zge=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,eye=/^(\d{4})-?(\d{2})-?(\d{2})$/,sM=/([Z+\-])?(\d{2})?:?(\d{2})?$/,tye=/^(\d{2})(\.\d+)?/.source+sM.source,nye=/^(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,iye=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,Ol="Invalid ISO 8601 date.";function ie(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=A(e,0),t=A(t,0),n=A(n,$n.UTC);const i=e|0;t=t+(e-i)*Ni.SECONDS_PER_DAY,Yp(i,t,this),n===$n.UTC&&rD(this)}ie.fromGregorianDate=function(e,t){if(!(e instanceof uT))throw new x("date must be a valid GregorianDate.");const n=rM(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new x("date must be a valid JavaScript Date.");const n=rM(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromIso8601=function(e,t){if(typeof e!="string")throw new x(Ol);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const d=n[0],h=n[1];let m,g;if(!l(d))throw new x(Ol);let p;if(n=d.match(eye),n!==null){if(p=d.split("-").length-1,p>0&&p!==2)throw new x(Ol);i=+n[1],o=+n[2],r=+n[3]}else if(n=d.match(Jge),n!==null)i=+n[1],o=+n[2];else if(n=d.match(Kge),n!==null)i=+n[1];else{let E;if(n=d.match(Qge),n!==null){if(i=+n[1],E=+n[2],g=zS(i),E<1||g&&E>366||!g&&E>365)throw new x(Ol)}else if(n=d.match(Zge),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=d.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new x(Ol);const P=new Date(Date.UTC(i,0,4));E=w*7+S-P.getUTCDay()-3}else throw new x(Ol);m=new Date(Date.UTC(i,0,1)),m.setUTCDate(E),o=m.getUTCMonth()+1,r=m.getUTCDate()}if(g=zS(i),o<1||o>12||r<1||(o!==2||!g)&&r>LE[o-1]||g&&o===2&&r>BE)throw new x(Ol);let y;if(l(h)){if(n=h.match(iye),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new x(Ol);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,y=5}else if(n=h.match(nye),n!==null){if(p=h.split(":").length-1,p>2)throw new x(Ol);s=+n[1],a=+n[2],c=+(n[3]||0)*60,y=4}else if(n=h.match(tye),n!==null)s=+n[1],a=+(n[2]||0)*60,y=3;else throw new x(Ol);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new x(Ol);const E=n[y],w=+n[y+1],S=+(n[y+2]||0);switch(E){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const b=c===60;for(b&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(m=g&&o===2?BE:LE[o-1];r>m;)r-=m,o++,o>12&&(o-=12,i++),m=g&&o===2?BE:LE[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),m=g&&o===2?BE:LE[o-1],r+=m;const C=rM(i,o,r,s,a,c,u);return l(t)?(Yp(C[0],C[1],t),rD(t)):t=new ie(C[0],C[1],$n.UTC),b&&ie.addSeconds(t,1,t),t};ie.now=function(e){return ie.fromDate(new Date,e)};const RE=new ie(0,0,$n.TAI);ie.toGregorianDate=function(e,t){if(!l(e))throw new x("julianDate is required.");let n=!1,i=uU(e,RE);l(i)||(ie.addSeconds(e,-1,RE),i=uU(RE,RE),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,d=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,m=100*(a-49)+c+s|0;let g=r/Ni.SECONDS_PER_HOUR|0,p=r-g*Ni.SECONDS_PER_HOUR;const y=p/Ni.SECONDS_PER_MINUTE|0;p=p-y*Ni.SECONDS_PER_MINUTE;let b=p|0;const C=(p-b)/Ni.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(b+=1),l(t)?(t.year=m,t.month=h,t.day=d,t.hour=g,t.minute=y,t.second=b,t.millisecond=C,t.isLeapSecond=n,t):new uT(m,h,d,g,y,b,C,n)};ie.toDate=function(e){if(!l(e))throw new x("julianDate is required.");const t=ie.toGregorianDate(e,$j);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ie.toIso8601=function(e,t){if(!l(e))throw new x("julianDate is required.");const n=ie.toGregorianDate(e,$j);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let d;return!l(t)&&u!==0?(d=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(d=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`)};ie.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ie(e.dayNumber,e.secondsOfDay,$n.TAI)};ie.compare=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ie.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ie.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(ie.secondsDifference(e,t))<=n};ie.totalDays=function(e){if(!l(e))throw new x("julianDate is required.");return e.dayNumber+e.secondsOfDay/Ni.SECONDS_PER_DAY};ie.secondsDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");return(e.dayNumber-t.dayNumber)*Ni.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ie.daysDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/Ni.SECONDS_PER_DAY;return n+i};ie.computeTaiMinusUtc=function(e){c0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,c0,oM);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ie.addSeconds=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("seconds is required.");if(!l(n))throw new x("result is required.");return Yp(e.dayNumber,e.secondsOfDay+t,n)};ie.addMinutes=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("minutes is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_MINUTE;return Yp(e.dayNumber,i,n)};ie.addHours=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("hours is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_HOUR;return Yp(e.dayNumber,i,n)};ie.addDays=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("days is required.");if(!l(n))throw new x("result is required.");const i=e.dayNumber+t;return Yp(i,e.secondsOfDay,n)};ie.lessThan=function(e,t){return ie.compare(e,t)<0};ie.lessThanOrEquals=function(e,t){return ie.compare(e,t)<=0};ie.greaterThan=function(e,t){return ie.compare(e,t)>0};ie.greaterThanOrEquals=function(e,t){return ie.compare(e,t)>=0};ie.prototype.clone=function(e){return ie.clone(this,e)};ie.prototype.equals=function(e){return ie.equals(this,e)};ie.prototype.equalsEpsilon=function(e,t){return ie.equalsEpsilon(this,e,t)};ie.prototype.toString=function(){return ie.toIso8601(this)};ie.leapSeconds=[new $i(new ie(2441317,43210,$n.TAI),10),new $i(new ie(2441499,43211,$n.TAI),11),new $i(new ie(2441683,43212,$n.TAI),12),new $i(new ie(2442048,43213,$n.TAI),13),new $i(new ie(2442413,43214,$n.TAI),14),new $i(new ie(2442778,43215,$n.TAI),15),new $i(new ie(2443144,43216,$n.TAI),16),new $i(new ie(2443509,43217,$n.TAI),17),new $i(new ie(2443874,43218,$n.TAI),18),new $i(new ie(2444239,43219,$n.TAI),19),new $i(new ie(2444786,43220,$n.TAI),20),new $i(new ie(2445151,43221,$n.TAI),21),new $i(new ie(2445516,43222,$n.TAI),22),new $i(new ie(2446247,43223,$n.TAI),23),new $i(new ie(2447161,43224,$n.TAI),24),new $i(new ie(2447892,43225,$n.TAI),25),new $i(new ie(2448257,43226,$n.TAI),26),new $i(new ie(2448804,43227,$n.TAI),27),new $i(new ie(2449169,43228,$n.TAI),28),new $i(new ie(2449534,43229,$n.TAI),29),new $i(new ie(2450083,43230,$n.TAI),30),new $i(new ie(2450630,43231,$n.TAI),31),new $i(new ie(2451179,43232,$n.TAI),32),new $i(new ie(2453736,43233,$n.TAI),33),new $i(new ie(2454832,43234,$n.TAI),34),new $i(new ie(2456109,43235,$n.TAI),35),new $i(new ie(2457204,43236,$n.TAI),36),new $i(new ie(2457754,43237,$n.TAI),37)];const oye="modulepreload",rye=function(e){return"/satellite-track/"+e},dU={},NE=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=rye(r),r in dU)return;dU[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":oye,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var sB={},sye={get exports(){return sB},set exports(e){sB=e}},Rb={},aye={get exports(){return Rb},set exports(e){Rb=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var fU;function cye(){return fU||(fU=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof Ry=="object"&&Ry;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,d=26,h=38,m=700,g=72,p=128,y="-",b=/^xn--/,C=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,L=String.fromCharCode,z;function R(W){throw new RangeError(w[W])}function F(W,K){for(var q=W.length,te=[];q--;)te[q]=K(W[q]);return te}function U(W,K){var q=W.split("@"),te="";q.length>1&&(te=q[0]+"@",W=q[1]),W=W.replace(E,".");var Y=W.split("."),X=F(Y,K).join(".");return te+X}function D(W){for(var K=[],q=0,te=W.length,Y,X;q=55296&&Y<=56319&&q65535&&(K-=65536,q+=L(K>>>10&1023|55296),K=56320|K&1023),q+=L(K),q}).join("")}function _(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:c}function v(W,K){return W+22+75*(W<26)-((K!=0)<<5)}function O(W,K,q){var te=0;for(W=q?P(W/m):W>>1,W+=P(W/K);W>S*d>>1;te+=c)W=P(W/S);return P(te+(S+1)*W/(W+h))}function N(W){var K=[],q=W.length,te,Y=0,X=p,$=g,se,ue,re,he,ce,Q,ne,de,_e;for(se=W.lastIndexOf(y),se<0&&(se=0),ue=0;ue=128&&R("not-basic"),K.push(W.charCodeAt(ue));for(re=se>0?se+1:0;re=q&&R("invalid-input"),ne=_(W.charCodeAt(re++)),(ne>=c||ne>P((a-Y)/ce))&&R("overflow"),Y+=ne*ce,de=Q<=$?u:Q>=$+d?d:Q-$,!(neP(a/_e)&&R("overflow"),ce*=_e;te=K.length+1,$=O(Y-he,te,he==0),P(Y/te)>a-X&&R("overflow"),X+=P(Y/te),Y%=te,K.splice(Y++,0,X)}return I(K)}function V(W){var K,q,te,Y,X,$,se,ue,re,he,ce,Q=[],ne,de,_e,Se;for(W=D(W),ne=W.length,K=p,q=0,X=g,$=0;$=K&&ceP((a-q)/de)&&R("overflow"),q+=(se-K)*de,K=se,$=0;$a&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=X?u:re>=X+d?d:re-X,!(ue=0){if(d=n[u.slice(0,p)],!l(d))continue;h=d._locations,h.length<=1&&(m=d.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),m.push(e.getUniform(t,g))))}else{h=[];for(let y=0;y0)n=Math.sqrt(d+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=Gge;let m=0;c>a&&(m=1),u>a&&u>c&&(m=2);const g=h[m],p=h[g];n=Math.sqrt(e[J.getElementIndex(m,m)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const y=Wge;y[m]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,y[g]=(e[J.getElementIndex(g,m)]+e[J.getElementIndex(m,g)])*n,y[p]=(e[J.getElementIndex(p,m)]+e[J.getElementIndex(m,p)])*n,i=-y[0],o=-y[1],r=-y[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Te(i,o,r,s)};const rU=new Te;let sU=new Te,o1=new Te,aU=new Te;Te.fromHeadingPitchRoll=function(e,t){return T.typeOf.object("headingPitchRoll",e),aU=Te.fromAxisAngle(f.UNIT_X,e.roll,rU),o1=Te.fromAxisAngle(f.UNIT_Y,-e.pitch,t),t=Te.multiply(o1,aU,o1),sU=Te.fromAxisAngle(f.UNIT_Z,-e.heading,rU),Te.multiply(sU,t,t)};const PE=new f,r1=new f,kl=new Te,cU=new Te,OE=new Te;Te.packedLength=4;Te.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Te.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Te),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Te.packedInterpolationLength=3;Te.convertPackedArrayForInterpolation=function(e,t,n,i){Te.unpack(e,n*4,OE),Te.conjugate(OE,OE);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)Hd[g]=(MS[g]*c-FS[g])*s,Vd[g]=(MS[g]*u-FS[g])*s;const d=r*n*(1+Hd[0]*(1+Hd[1]*(1+Hd[2]*(1+Hd[3]*(1+Hd[4]*(1+Hd[5]*(1+Hd[6]*(1+Hd[7])))))))),h=a*(1+Vd[0]*(1+Vd[1]*(1+Vd[2]*(1+Vd[3]*(1+Vd[4]*(1+Vd[5]*(1+Vd[6]*(1+Vd[7])))))))),m=Te.multiplyByScalar(e,h,$ge);return Te.multiplyByScalar(t,d,i),Te.add(m,i,i)};Te.fastSquad=function(e,t,n,i,o,r){T.typeOf.object("q0",e),T.typeOf.object("q1",t),T.typeOf.object("s0",n),T.typeOf.object("s1",i),T.typeOf.number("t",o),T.typeOf.object("result",r);const s=Te.fastSlerp(e,t,o,Bb),a=Te.fastSlerp(n,i,o,Ty);return Te.fastSlerp(s,a,2*o*(1-o),r)};Te.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Te.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Te.ZERO=Object.freeze(new Te(0,0,0,0));Te.IDENTITY=Object.freeze(new Te(0,0,0,1));Te.prototype.clone=function(e){return Te.clone(this,e)};Te.prototype.equals=function(e){return Te.equals(this,e)};Te.prototype.equalsEpsilon=function(e,t){return Te.equalsEpsilon(this,e,t)};Te.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function Bs(e,t,n){T.defined("array",e),T.defined("itemToFind",t),T.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function iM(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function uT(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function zS(e){if(e===null||isNaN(e))throw new x("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function $i(e,t){this.julianDate=e,this.offset=t}const Yge={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},Ni=Object.freeze(Yge),Xge={UTC:0,TAI:1},$n=Object.freeze(Xge),$j=new uT,LE=[31,28,31,30,31,30,31,31,30,31,30,31],BE=29;function oM(e,t){return ie.compare(e.julianDate,t.julianDate)}const a0=new $i;function rD(e){a0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,a0,oM);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ie.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ie.addSeconds(e,i,e)}function uU(e,t){a0.julianDate=e;const n=ie.leapSeconds;let i=Bs(n,a0,oM);if(i<0&&(i=~i),i===0)return ie.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ie.addSeconds(e,-n[i-1].offset,t);const o=ie.secondsDifference(n[i].julianDate,e);if(o===0)return ie.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ie.addSeconds(e,-n[--i].offset,t)}function Yp(e,t,n){const i=t/Ni.SECONDS_PER_DAY|0;return e+=i,t-=Ni.SECONDS_PER_DAY*i,t<0&&(e--,t+=Ni.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function rM(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const d=r+(i*Ni.SECONDS_PER_HOUR+o*Ni.SECONDS_PER_MINUTE+s*Ni.SECONDS_PER_MILLISECOND);return d>=43200&&(u-=1),[u,d]}const Kge=/^(\d{4})$/,Jge=/^(\d{4})-(\d{2})$/,Qge=/^(\d{4})-?(\d{3})$/,Zge=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,eye=/^(\d{4})-?(\d{2})-?(\d{2})$/,sM=/([Z+\-])?(\d{2})?:?(\d{2})?$/,tye=/^(\d{2})(\.\d+)?/.source+sM.source,nye=/^(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,iye=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,Ol="Invalid ISO 8601 date.";function ie(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=A(e,0),t=A(t,0),n=A(n,$n.UTC);const i=e|0;t=t+(e-i)*Ni.SECONDS_PER_DAY,Yp(i,t,this),n===$n.UTC&&rD(this)}ie.fromGregorianDate=function(e,t){if(!(e instanceof uT))throw new x("date must be a valid GregorianDate.");const n=rM(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new x("date must be a valid JavaScript Date.");const n=rM(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromIso8601=function(e,t){if(typeof e!="string")throw new x(Ol);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const d=n[0],h=n[1];let m,g;if(!l(d))throw new x(Ol);let p;if(n=d.match(eye),n!==null){if(p=d.split("-").length-1,p>0&&p!==2)throw new x(Ol);i=+n[1],o=+n[2],r=+n[3]}else if(n=d.match(Jge),n!==null)i=+n[1],o=+n[2];else if(n=d.match(Kge),n!==null)i=+n[1];else{let E;if(n=d.match(Qge),n!==null){if(i=+n[1],E=+n[2],g=zS(i),E<1||g&&E>366||!g&&E>365)throw new x(Ol)}else if(n=d.match(Zge),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=d.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new x(Ol);const P=new Date(Date.UTC(i,0,4));E=w*7+S-P.getUTCDay()-3}else throw new x(Ol);m=new Date(Date.UTC(i,0,1)),m.setUTCDate(E),o=m.getUTCMonth()+1,r=m.getUTCDate()}if(g=zS(i),o<1||o>12||r<1||(o!==2||!g)&&r>LE[o-1]||g&&o===2&&r>BE)throw new x(Ol);let y;if(l(h)){if(n=h.match(iye),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new x(Ol);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,y=5}else if(n=h.match(nye),n!==null){if(p=h.split(":").length-1,p>2)throw new x(Ol);s=+n[1],a=+n[2],c=+(n[3]||0)*60,y=4}else if(n=h.match(tye),n!==null)s=+n[1],a=+(n[2]||0)*60,y=3;else throw new x(Ol);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new x(Ol);const E=n[y],w=+n[y+1],S=+(n[y+2]||0);switch(E){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const b=c===60;for(b&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(m=g&&o===2?BE:LE[o-1];r>m;)r-=m,o++,o>12&&(o-=12,i++),m=g&&o===2?BE:LE[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),m=g&&o===2?BE:LE[o-1],r+=m;const C=rM(i,o,r,s,a,c,u);return l(t)?(Yp(C[0],C[1],t),rD(t)):t=new ie(C[0],C[1],$n.UTC),b&&ie.addSeconds(t,1,t),t};ie.now=function(e){return ie.fromDate(new Date,e)};const RE=new ie(0,0,$n.TAI);ie.toGregorianDate=function(e,t){if(!l(e))throw new x("julianDate is required.");let n=!1,i=uU(e,RE);l(i)||(ie.addSeconds(e,-1,RE),i=uU(RE,RE),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,d=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,m=100*(a-49)+c+s|0;let g=r/Ni.SECONDS_PER_HOUR|0,p=r-g*Ni.SECONDS_PER_HOUR;const y=p/Ni.SECONDS_PER_MINUTE|0;p=p-y*Ni.SECONDS_PER_MINUTE;let b=p|0;const C=(p-b)/Ni.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(b+=1),l(t)?(t.year=m,t.month=h,t.day=d,t.hour=g,t.minute=y,t.second=b,t.millisecond=C,t.isLeapSecond=n,t):new uT(m,h,d,g,y,b,C,n)};ie.toDate=function(e){if(!l(e))throw new x("julianDate is required.");const t=ie.toGregorianDate(e,$j);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ie.toIso8601=function(e,t){if(!l(e))throw new x("julianDate is required.");const n=ie.toGregorianDate(e,$j);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let d;return!l(t)&&u!==0?(d=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(d=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`)};ie.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ie(e.dayNumber,e.secondsOfDay,$n.TAI)};ie.compare=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ie.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ie.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(ie.secondsDifference(e,t))<=n};ie.totalDays=function(e){if(!l(e))throw new x("julianDate is required.");return e.dayNumber+e.secondsOfDay/Ni.SECONDS_PER_DAY};ie.secondsDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");return(e.dayNumber-t.dayNumber)*Ni.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ie.daysDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/Ni.SECONDS_PER_DAY;return n+i};ie.computeTaiMinusUtc=function(e){a0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,a0,oM);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ie.addSeconds=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("seconds is required.");if(!l(n))throw new x("result is required.");return Yp(e.dayNumber,e.secondsOfDay+t,n)};ie.addMinutes=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("minutes is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_MINUTE;return Yp(e.dayNumber,i,n)};ie.addHours=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("hours is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_HOUR;return Yp(e.dayNumber,i,n)};ie.addDays=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("days is required.");if(!l(n))throw new x("result is required.");const i=e.dayNumber+t;return Yp(i,e.secondsOfDay,n)};ie.lessThan=function(e,t){return ie.compare(e,t)<0};ie.lessThanOrEquals=function(e,t){return ie.compare(e,t)<=0};ie.greaterThan=function(e,t){return ie.compare(e,t)>0};ie.greaterThanOrEquals=function(e,t){return ie.compare(e,t)>=0};ie.prototype.clone=function(e){return ie.clone(this,e)};ie.prototype.equals=function(e){return ie.equals(this,e)};ie.prototype.equalsEpsilon=function(e,t){return ie.equalsEpsilon(this,e,t)};ie.prototype.toString=function(){return ie.toIso8601(this)};ie.leapSeconds=[new $i(new ie(2441317,43210,$n.TAI),10),new $i(new ie(2441499,43211,$n.TAI),11),new $i(new ie(2441683,43212,$n.TAI),12),new $i(new ie(2442048,43213,$n.TAI),13),new $i(new ie(2442413,43214,$n.TAI),14),new $i(new ie(2442778,43215,$n.TAI),15),new $i(new ie(2443144,43216,$n.TAI),16),new $i(new ie(2443509,43217,$n.TAI),17),new $i(new ie(2443874,43218,$n.TAI),18),new $i(new ie(2444239,43219,$n.TAI),19),new $i(new ie(2444786,43220,$n.TAI),20),new $i(new ie(2445151,43221,$n.TAI),21),new $i(new ie(2445516,43222,$n.TAI),22),new $i(new ie(2446247,43223,$n.TAI),23),new $i(new ie(2447161,43224,$n.TAI),24),new $i(new ie(2447892,43225,$n.TAI),25),new $i(new ie(2448257,43226,$n.TAI),26),new $i(new ie(2448804,43227,$n.TAI),27),new $i(new ie(2449169,43228,$n.TAI),28),new $i(new ie(2449534,43229,$n.TAI),29),new $i(new ie(2450083,43230,$n.TAI),30),new $i(new ie(2450630,43231,$n.TAI),31),new $i(new ie(2451179,43232,$n.TAI),32),new $i(new ie(2453736,43233,$n.TAI),33),new $i(new ie(2454832,43234,$n.TAI),34),new $i(new ie(2456109,43235,$n.TAI),35),new $i(new ie(2457204,43236,$n.TAI),36),new $i(new ie(2457754,43237,$n.TAI),37)];const oye="modulepreload",rye=function(e){return"/satellite-track/"+e},dU={},NE=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=rye(r),r in dU)return;dU[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":oye,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var sB={},sye={get exports(){return sB},set exports(e){sB=e}},Rb={},aye={get exports(){return Rb},set exports(e){Rb=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var fU;function cye(){return fU||(fU=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof By=="object"&&By;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,d=26,h=38,m=700,g=72,p=128,y="-",b=/^xn--/,C=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,L=String.fromCharCode,z;function R(W){throw new RangeError(w[W])}function F(W,K){for(var q=W.length,te=[];q--;)te[q]=K(W[q]);return te}function U(W,K){var q=W.split("@"),te="";q.length>1&&(te=q[0]+"@",W=q[1]),W=W.replace(E,".");var Y=W.split("."),X=F(Y,K).join(".");return te+X}function D(W){for(var K=[],q=0,te=W.length,Y,X;q=55296&&Y<=56319&&q65535&&(K-=65536,q+=L(K>>>10&1023|55296),K=56320|K&1023),q+=L(K),q}).join("")}function _(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:c}function v(W,K){return W+22+75*(W<26)-((K!=0)<<5)}function O(W,K,q){var te=0;for(W=q?P(W/m):W>>1,W+=P(W/K);W>S*d>>1;te+=c)W=P(W/S);return P(te+(S+1)*W/(W+h))}function N(W){var K=[],q=W.length,te,Y=0,X=p,$=g,se,ue,re,he,ce,Q,ne,de,_e;for(se=W.lastIndexOf(y),se<0&&(se=0),ue=0;ue=128&&R("not-basic"),K.push(W.charCodeAt(ue));for(re=se>0?se+1:0;re=q&&R("invalid-input"),ne=_(W.charCodeAt(re++)),(ne>=c||ne>P((a-Y)/ce))&&R("overflow"),Y+=ne*ce,de=Q<=$?u:Q>=$+d?d:Q-$,!(neP(a/_e)&&R("overflow"),ce*=_e;te=K.length+1,$=O(Y-he,te,he==0),P(Y/te)>a-X&&R("overflow"),X+=P(Y/te),Y%=te,K.splice(Y++,0,X)}return I(K)}function V(W){var K,q,te,Y,X,$,se,ue,re,he,ce,Q=[],ne,de,_e,Se;for(W=D(W),ne=W.length,K=p,q=0,X=g,$=0;$=K&&ceP((a-q)/de)&&R("overflow"),q+=(se-K)*de,K=se,$=0;$a&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=X?u:re>=X+d?d:re-X,!(ue1);g++)h.splice(0,1);a[m]=h.join("")}var p=-1,y=0,b=0,C=-1,E=!1;for(m=0;my&&(p=C,y=b)):a[m]==="0"&&(E=!0,C=m,b=1);b>y&&(p=C,y=b),y>1&&a.splice(p,y,""),c=a.length;var w="";for(a[0]===""&&(w=":"),m=0;m1);g++)h.splice(0,1);a[m]=h.join("")}var p=-1,y=0,b=0,C=-1,E=!1;for(m=0;my&&(p=C,y=b)):a[m]==="0"&&(E=!0,C=m,b=1);b>y&&(p=C,y=b),y>1&&a.splice(p,y,""),c=a.length;var w="";for(a[0]===""&&(w=":"),m=0;m=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(s+1,r)+" ")>=0:!1},is:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s>=0)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(0,r)+" ")>=0:!1},get:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return null;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return null;var a=i.list[o.slice(r+1)];return!a||a.indexOf(" "+o.slice(s+1,r)+" ")<0?null:o.slice(s+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=n),this}};return i})}(dye)),HS}/*! + */var pU;function fye(){return pU||(pU=1,function(e){(function(t,n){e.exports?e.exports=n():t.SecondLevelDomains=n(t)})(By,function(t){var n=t&&t.SecondLevelDomains,i={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(s+1,r)+" ")>=0:!1},is:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s>=0)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(0,r)+" ")>=0:!1},get:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return null;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return null;var a=i.list[o.slice(r+1)];return!a||a.indexOf(" "+o.slice(s+1,r)+" ")<0?null:o.slice(s+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=n),this}};return i})}(dye)),HS}/*! * URI.js - Mutating URLs * * Version: 1.19.11 @@ -75,8 +75,8 @@ ${p}`)}}function Bge(e,t,n){const i={};for(let o=0;o=1,N=arguments.length>=2;if(!(this instanceof s))return O?N?new s(_,v):new s(_):new s;if(_===void 0){if(O)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?_=location.href+"":_=""}if(_===null&&O)throw new TypeError("null is not a valid argument for URI");return this.href(_),v!==void 0?this.absoluteTo(v):this}function a(_){return/^[0-9]+$/.test(_)}s.version="1.19.11";var c=s.prototype,u=Object.prototype.hasOwnProperty;function d(_){return _.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(_){return _===void 0?"Undefined":String(Object.prototype.toString.call(_)).slice(8,-1)}function m(_){return h(_)==="Array"}function g(_,v){var O={},N,V;if(h(v)==="RegExp")O=null;else if(m(v))for(N=0,V=v.length;N]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(_){if(!(!_||!_.nodeName)){var v=_.nodeName.toLowerCase();if(!(v==="input"&&_.type!=="image"))return s.domAttributes[v]}};function C(_){return escape(_)}function E(_){return encodeURIComponent(_).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}s.encode=E,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=E,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(_,v){var O=s.encode(_+"");return v===void 0&&(v=s.escapeQuerySpace),v?O.replace(/%20/g,"+"):O},s.decodeQuery=function(_,v){_+="",v===void 0&&(v=s.escapeQuerySpace);try{return s.decode(v?_.replace(/\+/g,"%20"):_)}catch{return _}};var w={encode:"encode",decode:"decode"},S,P=function(_,v){return function(O){try{return s[v](O+"").replace(s.characters[_][v].expression,function(N){return s.characters[_][v].map[N]})}catch{return O}}};for(S in w)s[S+"PathSegment"]=P("pathname",w[S]),s[S+"UrnPathSegment"]=P("urnpath",w[S]);var L=function(_,v,O){return function(N){var V;O?V=function(K){return s[v](s[O](K))}:V=s[v];for(var k=(N+"").split(_),G=0,W=k.length;G-1&&(v.fragment=_.substring(O+1)||null,_=_.substring(0,O)),O=_.indexOf("?"),O>-1&&(v.query=_.substring(O+1)||null,_=_.substring(0,O)),_=_.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),_=_.replace(/^[/\\]{2,}/i,"//"),_.substring(0,2)==="//"?(v.protocol=null,_=_.substring(2),_=s.parseAuthority(_,v)):(O=_.indexOf(":"),O>-1&&(v.protocol=_.substring(0,O)||null,v.protocol&&!v.protocol.match(s.protocol_expression)?v.protocol=void 0:_.substring(O+1,O+3).replace(/\\/g,"/")==="//"?(_=_.substring(O+3),_=s.parseAuthority(_,v)):(_=_.substring(O+1),v.urn=!0))),v.path=_,v},s.parseHost=function(_,v){_||(_=""),_=_.replace(/\\/g,"/");var O=_.indexOf("/"),N,V;if(O===-1&&(O=_.length),_.charAt(0)==="[")N=_.indexOf("]"),v.hostname=_.substring(1,N)||null,v.port=_.substring(N+2,O)||null,v.port==="/"&&(v.port=null);else{var k=_.indexOf(":"),G=_.indexOf("/"),W=_.indexOf(":",k+1);W!==-1&&(G===-1||W-1?V:_.length-1),G;return k>-1&&(V===-1||k-1?X=X.slice(0,$)+X.slice($).replace(k,""):X=X.replace(k,""),!(X.length<=K[0].length)&&!(O.ignore&&O.ignore.test(X))){Y=q+X.length;var re=v(X,q,Y,_);if(re===void 0){N.lastIndex=Y;continue}re=String(re),_=_.slice(0,q)+re+_.slice(Y),N.lastIndex=q+re.length}}return N.lastIndex=0,_},s.ensureValidHostname=function(_,v){var O=!!_,N=!!v,V=!1;if(N&&(V=p(s.hostProtocols,v)),V&&!O)throw new TypeError("Hostname cannot be empty, if protocol is "+v);if(_&&_.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(_).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(_){if(_){var v=Number(_);if(!(a(v)&&v>0&&v<65536))throw new TypeError('Port "'+_+'" is not a valid port')}},s.noConflict=function(_){if(_){var v={URI:this.noConflict()};return o.URITemplate&&typeof o.URITemplate.noConflict=="function"&&(v.URITemplate=o.URITemplate.noConflict()),o.IPv6&&typeof o.IPv6.noConflict=="function"&&(v.IPv6=o.IPv6.noConflict()),o.SecondLevelDomains&&typeof o.SecondLevelDomains.noConflict=="function"&&(v.SecondLevelDomains=o.SecondLevelDomains.noConflict()),v}else o.URI===this&&(o.URI=r);return this},c.build=function(_){return _===!0?this._deferred_build=!0:(_===void 0||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new s(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function z(_){return function(v,O){return v===void 0?this._parts[_]||"":(this._parts[_]=v||null,this.build(!O),this)}}function R(_,v){return function(O,N){return O===void 0?this._parts[_]||"":(O!==null&&(O=O+"",O.charAt(0)===v&&(O=O.substring(1))),this._parts[_]=O,this.build(!N),this)}}c.protocol=z("protocol"),c.username=z("username"),c.password=z("password"),c.hostname=z("hostname"),c.port=z("port"),c.query=R("query","?"),c.fragment=R("fragment","#"),c.search=function(_,v){var O=this.query(_,v);return typeof O=="string"&&O.length?"?"+O:O},c.hash=function(_,v){var O=this.fragment(_,v);return typeof O=="string"&&O.length?"#"+O:O},c.pathname=function(_,v){if(_===void 0||_===!0){var O=this._parts.path||(this._parts.hostname?"/":"");return _?(this._parts.urn?s.decodeUrnPath:s.decodePath)(O):O}else return this._parts.urn?this._parts.path=_?s.recodeUrnPath(_):"":this._parts.path=_?s.recodePath(_):"/",this.build(!v),this},c.path=c.pathname,c.href=function(_,v){var O;if(_===void 0)return this.toString();this._string="",this._parts=s._parts();var N=_ instanceof s,V=typeof _=="object"&&(_.hostname||_.path||_.pathname);if(_.nodeName){var k=s.getDomAttribute(_);_=_[k]||"",V=!1}if(!N&&V&&_.pathname!==void 0&&(_=_.toString()),typeof _=="string"||_ instanceof String)this._parts=s.parse(String(_),this._parts);else if(N||V){var G=N?_._parts:_;for(O in G)O!=="query"&&u.call(this._parts,O)&&(this._parts[O]=G[O]);G.query&&this.query(G.query,!1)}else throw new TypeError("invalid input");return this.build(!v),this},c.is=function(_){var v=!1,O=!1,N=!1,V=!1,k=!1,G=!1,W=!1,K=!this._parts.urn;switch(this._parts.hostname&&(K=!1,O=s.ip4_expression.test(this._parts.hostname),N=s.ip6_expression.test(this._parts.hostname),v=O||N,V=!v,k=V&&i&&i.has(this._parts.hostname),G=V&&s.idn_expression.test(this._parts.hostname),W=V&&s.punycode_expression.test(this._parts.hostname)),_.toLowerCase()){case"relative":return K;case"absolute":return!K;case"domain":case"name":return V;case"sld":return k;case"ip":return v;case"ip4":case"ipv4":case"inet4":return O;case"ip6":case"ipv6":case"inet6":return N;case"idn":return G;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return W}return null};var F=c.protocol,U=c.port,D=c.hostname;c.protocol=function(_,v){if(_&&(_=_.replace(/:(\/\/)?$/,""),!_.match(s.protocol_expression)))throw new TypeError('Protocol "'+_+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return F.call(this,_,v)},c.scheme=c.protocol,c.port=function(_,v){return this._parts.urn?_===void 0?"":this:(_!==void 0&&(_===0&&(_=null),_&&(_+="",_.charAt(0)===":"&&(_=_.substring(1)),s.ensureValidPort(_))),U.call(this,_,v))},c.hostname=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_!==void 0){var O={preventInvalidHostname:this._parts.preventInvalidHostname},N=s.parseHost(_,O);if(N!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');_=O.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(_,this._parts.protocol)}return D.call(this,_,v)},c.origin=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=this.protocol(),N=this.authority();return N?(O?O+"://":"")+this.authority():""}else{var V=s(_);return this.protocol(V.protocol()).authority(V.authority()).build(!v),this}},c.host=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildHost(this._parts):"";var O=s.parseHost(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.authority=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildAuthority(this._parts):"";var O=s.parseAuthority(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.userinfo=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=s.buildUserinfo(this._parts);return O&&O.substring(0,O.length-1)}else return _[_.length-1]!=="@"&&(_+="@"),s.parseUserinfo(_,this._parts),this.build(!v),this},c.resource=function(_,v){var O;return _===void 0?this.path()+this.search()+this.hash():(O=s.parse(_),this._parts.path=O.path,this._parts.query=O.query,this._parts.fragment=O.fragment,this.build(!v),this)},c.subdomain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,O)||""}else{var N=this._parts.hostname.length-this.domain().length,V=this._parts.hostname.substring(0,N),k=new RegExp("^"+d(V));if(_&&_.charAt(_.length-1)!=="."&&(_+="."),_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return _&&s.ensureValidHostname(_,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,_),this.build(!v),this}},c.domain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.match(/\./g);if(O&&O.length<2)return this._parts.hostname;var N=this._parts.hostname.length-this.tld(v).length-1;return N=this._parts.hostname.lastIndexOf(".",N-1)+1,this._parts.hostname.substring(N)||""}else{if(!_)throw new TypeError("cannot set domain empty");if(_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(_,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=_;else{var V=new RegExp(d(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(V,_)}return this.build(!v),this}},c.tld=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.lastIndexOf("."),N=this._parts.hostname.substring(O+1);return v!==!0&&i&&i.list[N.toLowerCase()]&&i.get(this._parts.hostname)||N}else{var V;if(_)if(_.match(/[^a-zA-Z0-9-]/))if(i&&i.is(_))V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_);else throw new TypeError('TLD "'+_+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_)}else throw new TypeError("cannot set TLD empty");return this.build(!v),this}},c.directory=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var O=this._parts.path.length-this.filename().length-1,N=this._parts.path.substring(0,O)||(this._parts.hostname?"/":"");return _?s.decodePath(N):N}else{var V=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,V),G=new RegExp("^"+d(k));return this.is("relative")||(_||(_="/"),_.charAt(0)!=="/"&&(_="/"+_)),_&&_.charAt(_.length-1)!=="/"&&(_+="/"),_=s.recodePath(_),this._parts.path=this._parts.path.replace(G,_),this.build(!v),this}},c.filename=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _!="string"){if(!this._parts.path||this._parts.path==="/")return"";var O=this._parts.path.lastIndexOf("/"),N=this._parts.path.substring(O+1);return _?s.decodePathSegment(N):N}else{var V=!1;_.charAt(0)==="/"&&(_=_.substring(1)),_.match(/\.?\//)&&(V=!0);var k=new RegExp(d(this.filename())+"$");return _=s.recodePath(_),this._parts.path=this._parts.path.replace(k,_),V?this.normalizePath(v):this.build(!v),this}},c.suffix=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path||this._parts.path==="/")return"";var O=this.filename(),N=O.lastIndexOf("."),V,k;return N===-1?"":(V=O.substring(N+1),k=/^[a-z0-9%]+$/i.test(V)?V:"",_?s.decodePathSegment(k):k)}else{_.charAt(0)==="."&&(_=_.substring(1));var G=this.suffix(),W;if(G)_?W=new RegExp(d(G)+"$"):W=new RegExp(d("."+G)+"$");else{if(!_)return this;this._parts.path+="."+s.recodePath(_)}return W&&(_=s.recodePath(_),this._parts.path=this._parts.path.replace(W,_)),this.build(!v),this}},c.segment=function(_,v,O){var N=this._parts.urn?":":"/",V=this.path(),k=V.substring(0,1)==="/",G=V.split(N);if(_!==void 0&&typeof _!="number"&&(O=v,v=_,_=void 0),_!==void 0&&typeof _!="number")throw new Error('Bad segment "'+_+'", must be 0-based integer');if(k&&G.shift(),_<0&&(_=Math.max(G.length+_,0)),v===void 0)return _===void 0?G:G[_];if(_===null||G[_]===void 0)if(m(v)){G=[];for(var W=0,K=v.length;W"u")return e;t=A(n.baseURI,n.location.href)}const i=new Rs(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};function pye(e,t){if(!l(e))throw new x("uri is required.");let n="";const i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new Rs(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}function mye(e){if(!l(e))throw new x("uri is required.");const t=new Rs(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}const mU={};function VS(e,t,n){l(t)||(t=e.width),l(n)||(n=e.height);let i=mU[t];l(i)||(i={},mU[t]=i);let o=i[n];if(!l(o)){const r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d"),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}const _ye=/^blob:/i;function Yj(e){return T.typeOf.string("uri",e),_ye.test(e)}let Fu;function Xj(e){l(Fu)||(Fu=document.createElement("a")),Fu.href=window.location.href;const t=Fu.host,n=Fu.protocol;return Fu.href=e,Fu.href=Fu.href,n!==Fu.protocol||t!==Fu.host}const gye=/^data:/i;function aM(e){return T.typeOf.string("uri",e),gye.test(e)}function yye(e){const t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");const o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}function Aye(e){if(!l(e))throw new x("obj is required.");let t="";for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function l0(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Eye(this.responseHeaders))}l0.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function Ke(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(Ke.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});Ke.prototype.addEventListener=function(e,t){T.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};Ke.prototype.removeEventListener=function(e,t){T.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(xye),e=0;e=0;--t)this.heapify(t)};X_.prototype.insert=function(e){T.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};X_.prototype.pop=function(e){if(e=A(e,0),this._length===0)return;T.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return cM(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function wye(e,t){return e.priority-t.priority}const wi={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Ny=20;const Zs=new X_({comparator:wye});Zs.maximumLength=Ny;Zs.reserve(Ny);const Ju=[];let Pf={};const Sye=typeof document<"u"?new Rs(document.location.href):new Rs,sD=new Ke;function bi(){}bi.maximumRequests=50;bi.maximumRequestsPerServer=6;bi.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};bi.throttleRequests=!0;bi.debugShowStatistics=!1;bi.requestCompletedEvent=sD;Object.defineProperties(bi,{statistics:{get:function(){return wi}},priorityHeapLength:{get:function(){return Ny},set:function(e){if(ee;){const t=Zs.pop();d_(t)}Ny=e,Zs.maximumLength=e,Zs.reserve(e)}}});function Kj(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}bi.serverHasOpenSlots=function(e,t){t=A(t,1);const n=A(bi.requestsByServer[e],bi.maximumRequestsPerServer);return Pf[e]+t<=n};bi.heapHasOpenSlots=function(e){return Zs.length+e<=Ny};function Jj(e){return e.state===Do.UNISSUED&&(e.state=Do.ISSUED,e.deferred=Xp()),e.deferred.promise}function vye(e){return function(t){if(e.state===Do.CANCELLED)return;const n=e.deferred;--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(),e.state=Do.RECEIVED,e.deferred=void 0,n.resolve(t)}}function Dye(e){return function(t){e.state!==Do.CANCELLED&&(++wi.numberOfFailedRequests,--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(t),e.state=Do.FAILED,e.deferred.reject(t))}}function Qj(e){const t=Jj(e);return e.state=Do.ACTIVE,Ju.push(e),++wi.numberOfActiveRequests,++wi.numberOfActiveRequestsEver,++Pf[e.serverKey],e.requestFunction().then(vye(e)).catch(Dye(e)),t}function d_(e){const t=e.state===Do.ACTIVE;if(e.state=Do.CANCELLED,++wi.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--wi.numberOfActiveRequests,--Pf[e.serverKey],++wi.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}bi.update=function(){let e,t,n=0;const i=Ju.length;for(e=0;e0&&(Ju[e-n]=t)}Ju.length-=n;const o=Zs.internalArray,r=Zs.length;for(e=0;e0;){if(t=Zs.pop(),t.cancelled){d_(t);continue}if(t.throttleByServer&&!bi.serverHasOpenSlots(t.serverKey)){d_(t);continue}Qj(t),++a}Iye()};bi.getServerKey=function(e){T.typeOf.string("url",e);let t=new Rs(e);t.scheme()===""&&(t=new Rs(e).absoluteTo(Sye),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=Pf[n];return l(i)||(Pf[n]=0),n};bi.request=function(e){if(T.typeOf.object("request",e),T.typeOf.string("request.url",e.url),T.typeOf.func("request.requestFunction",e.requestFunction),aM(e.url)||Yj(e.url))return sD.raiseEvent(),e.state=Do.RECEIVED,e.requestFunction();if(++wi.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=bi.getServerKey(e.url)),bi.throttleRequests&&e.throttleByServer&&!bi.serverHasOpenSlots(e.serverKey))return;if(!bi.throttleRequests||!e.throttle)return Qj(e);if(Ju.length>=bi.maximumRequests)return;Kj(e);const t=Zs.insert(e);if(l(t)){if(t===e)return;d_(t)}return Jj(e)};function Iye(){bi.debugShowStatistics&&(wi.numberOfActiveRequests===0&&wi.lastNumberOfActiveRequests>0&&(wi.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${wi.numberOfAttemptedRequests}`),wi.numberOfAttemptedRequests=0),wi.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${wi.numberOfCancelledRequests}`),wi.numberOfCancelledRequests=0),wi.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${wi.numberOfCancelledActiveRequests}`),wi.numberOfCancelledActiveRequests=0),wi.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${wi.numberOfFailedRequests}`),wi.numberOfFailedRequests=0)),wi.lastNumberOfActiveRequests=wi.numberOfActiveRequests)}bi.clearForSpecs=function(){for(;Zs.length>0;){const t=Zs.pop();d_(t)}const e=Ju.length;for(let t=0;t0}}});Me.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Me.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new Rs(this._url);e&&Oye(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Me.prototype.setQueryParameters=function(e,t){t?this._queryParameters=kS(this._queryParameters,e,!1):this._queryParameters=kS(e,this._queryParameters,!1)};Me.prototype.appendQueryParameters=function(e){this._queryParameters=kS(e,this._queryParameters,!0)};Me.prototype.setTemplateValues=function(e,t){t?this._templateValues=hn(this._templateValues,e):this._templateValues=hn(e,this._templateValues)};Me.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new Rs(e.url),i=A(e.preserveQueryParameters,!1);lM(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new Rs(dT(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=hn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=hn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=hn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Me.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Me.prototype.clone=function(e){return l(e)||(e=new Me({url:this._url})),e._url=this._url,e._queryParameters=ht(this._queryParameters),e._templateValues=ht(this._templateValues),e.headers=ht(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Me.prototype.getBaseUri=function(e){return pye(this.getUrlComponent(e),e)};Me.prototype.appendForwardSlash=function(){this._url=hye(this._url)};Me.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Me.fetchArrayBuffer=function(e){return new Me(e).fetchArrayBuffer()};Me.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Me.fetchBlob=function(e){return new Me(e).fetchBlob()};Me.prototype.fetchImage=function(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.preferImageBitmap,!1),n=A(e.preferBlob,!1),i=A(e.flipY,!1),o=A(e.skipColorSpaceConversion,!1);if(uM(this.request),!eq||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return aB({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Me.supportsImageBitmapOptions().then(function(d){return s=d,a=s&&t,r}).then(function(d){if(!l(d))return;if(u=d,a)return Me.createImageBitmapFromBlob(d,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(d);return c=new Me({url:h}),aB({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(d){if(l(d))return d.blob=u,a||window.URL.revokeObjectURL(c.url),d}).catch(function(d){return l(c)&&window.URL.revokeObjectURL(c.url),d.blob=u,Promise.reject(d)})};function aB(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=Xp();return Me._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=bi.request(r);if(l(s))return s.catch(function(a){return r.state!==Do.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=Do.UNISSUED,r.deferred=void 0,aB({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Me.fetchImage=function(e){return new Me(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Me.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Me.fetchText=function(e){return new Me(e).fetchText()};Me.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Me.fetchJson=function(e){return new Me(e).fetchJson()};Me.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Me.fetchXML=function(e){return new Me(e).fetchXML()};Me.prototype.fetchJsonp=function(e){e=A(e,"callback"),uM(this.request);let t;do t=`loadJsonp${M.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return tq(this,e,t)};function tq(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=Xp();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Me._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=bi.request(o);if(l(r))return r.catch(function(s){return o.state!==Do.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=Do.UNISSUED,o.deferred=void 0,tq(e,t,n)):Promise.reject(s)})})}Me.fetchJsonp=function(e){return new Me(e).fetchJsonp(e.callbackParameterName)};Me.prototype._makeRequest=function(e){const t=this;uM(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=hn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=Xp(),d=Me._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(d)&&l(d.abort)&&(n.cancelFunction=function(){d.abort()}),u.promise};const i=bi.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==Do.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=Do.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const Lye=/^data:(.*?)(;base64)?,(.*)$/;function Lw(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function _U(e,t){const n=Lw(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),NE(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,d])=>(a=u.parse(e),c=d,a.protocol==="https:"?NE(()=>import("./__vite-browser-external-b25bb000.js"),[]):NE(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const d={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(d).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new l0(h.statusCode,h,h.headers));return}const m=[];h.on("data",function(g){m.push(g)}),h.on("end",function(){const g=Buffer.concat(m);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,y){p?r.reject(new Ie("Error decompressing response.")):r.resolve(gU(y,t))}):r.resolve(gU(g,t))})}).on("error",function(h){r.reject(new l0)}).end()})}const Nye=typeof XMLHttpRequest>"u";Me._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=Lye.exec(e);if(a!==null){r.resolve(Bye(a,t));return}if(Nye){Rye(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(Zj.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const d in o)o.hasOwnProperty(d)&&c.setRequestHeader(d,o[d]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new l0(c.status,c.response,c.getAllResponseHeaders()));return}const d=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(y){const b=y.split(": "),C=b.shift();p[C]=b.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(d)&&(!l(t)||h===t))r.resolve(d);else if(t==="json"&&typeof d=="string")try{r.resolve(JSON.parse(d))}catch(m){r.reject(m)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Ie("Invalid XMLHttpRequest response type."))},c.onerror=function(d){r.reject(new l0)},c.send(i),c};Me._Implementations.loadAndExecuteScript=function(e,t,n){return yye(e).catch(function(i){n.reject(i)})};Me._DefaultImplementations={};Me._DefaultImplementations.createImage=Me._Implementations.createImage;Me._DefaultImplementations.loadWithXhr=Me._Implementations.loadWithXhr;Me._DefaultImplementations.loadAndExecuteScript=Me._Implementations.loadAndExecuteScript;Me.DEFAULT=Object.freeze(new Me({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function AC(e){e=A(e,A.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=A(e.addNewLeapSeconds,!0),l(e.data)?yU(this,e.data):yU(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}AC.fromUrl=async function(e,t){T.defined("url",e),t=A(t,A.EMPTY_OBJECT);const n=Me.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Ie(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new AC({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};AC.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new iM(0,0,0,0,0),t}});AC.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new iM(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ie.lessThanOrEquals(a,e),d=!l(c),h=d||ie.greaterThanOrEquals(c,e);if(u&&h)return o=i,!d&&c.equals(e)&&++o,r=o+1,bU(this,n,this._samples,e,o,r,t),t}let s=Bs(n,e,ie.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return AU(e,n,o,a,s),s;if(i.equals(u))return AU(e,n,r,a,s),s;const d=ie.secondsDifference(i,c)/ie.secondsDifference(u,c),h=o*a,m=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[m+e._ut1MinusUtcSecondsColumn];const y=p-g;if(y>.5||y<-.5){const b=n[h+e._taiMinusUtcSecondsColumn],C=n[m+e._taiMinusUtcSecondsColumn];b!==C&&(u.equals(i)?g=p:p-=C-b)}return s.xPoleWander=cA(d,n[h+e._xPoleWanderRadiansColumn],n[m+e._xPoleWanderRadiansColumn]),s.yPoleWander=cA(d,n[h+e._yPoleWanderRadiansColumn],n[m+e._yPoleWanderRadiansColumn]),s.xPoleOffset=cA(d,n[h+e._xCelestialPoleOffsetRadiansColumn],n[m+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=cA(d,n[h+e._yCelestialPoleOffsetRadiansColumn],n[m+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=cA(d,g,p),s}function Xr(e,t,n){this.heading=A(e,0),this.pitch=A(t,0),this.roll=A(n,0)}Xr.fromQuaternion=function(e,t){if(!l(e))throw new x("quaternion is required");l(t)||(t=new Xr);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-M.asinClamped(n),t};Xr.fromDegrees=function(e,t,n,i){if(!l(e))throw new x("heading is required");if(!l(t))throw new x("pitch is required");if(!l(n))throw new x("roll is required");return l(i)||(i=new Xr),i.heading=e*M.RADIANS_PER_DEGREE,i.pitch=t*M.RADIANS_PER_DEGREE,i.roll=n*M.RADIANS_PER_DEGREE,i};Xr.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Xr(e.heading,e.pitch,e.roll)};Xr.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Xr.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&M.equalsEpsilon(e.heading,t.heading,n,i)&&M.equalsEpsilon(e.pitch,t.pitch,n,i)&&M.equalsEpsilon(e.roll,t.roll,n,i)};Xr.prototype.clone=function(e){return Xr.clone(this,e)};Xr.prototype.equals=function(e){return Xr.equals(this,e)};Xr.prototype.equalsEpsilon=function(e,t,n){return Xr.equalsEpsilon(this,e,t,n)};Xr.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const nq=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function Fye(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(Dg)||(Dg=document.createElement("a")),Dg.href=e,Dg.href=Dg.href,Dg.href)}let qm;function oq(){if(l(qm))return qm;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=dT("..",An("Core/buildModuleUrl.js")):e=Fye(),!l(e))throw new x("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return qm=new Me({url:iq(e)}),qm.appendForwardSlash(),qm}function zye(e){return iq(require.toUrl(`../${e}`))}function rq(e){return oq().getDerivedResource({url:e}).url}let ME;function An(e){return l(ME)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?ME=zye:ME=rq),ME(e)}An._cesiumScriptRegex=nq;An._buildModuleUrlFromBaseUrl=rq;An._clearBaseResource=function(){qm=void 0};An.setBaseUrl=function(e){qm=Me.DEFAULT.getDerivedResource({url:e})};An.getCesiumBaseUrl=oq;function sq(e,t,n){this.x=e,this.y=t,this.s=n}function dM(e){e=A(e,A.EMPTY_OBJECT),this._xysFileUrlTemplate=Me.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=A(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=A(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ie(this._sampleZeroJulianEphemerisDate,0,$n.TAI),this._stepSizeDays=A(e.stepSizeDays,1),this._samplesPerXysFile=A(e.samplesPerXysFile,1e3),this._totalSamples=A(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Uye=new ie(0,0,$n.TAI);function cB(e,t,n){const i=Uye;return i.dayNumber=t,i.secondsOfDay=n,ie.daysDifference(i,e._sampleZeroDateTT)}dM.prototype.preload=function(e,t,n,i){const o=cB(this,e,t),r=cB(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,d=[];for(let h=c;h<=u;++h)d.push(lB(this,h));return Promise.all(d)};dM.prototype.computeXysRadians=function(e,t,n){const i=cB(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(lB(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(lB(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new sq(0,0,0);const d=i-s*this._stepSizeDays,h=this._work,m=this._denominators,g=this._coef,p=this._xTable;let y,b;for(y=0;y<=r;++y)h[y]=d-p[y];for(y=0;y<=r;++y){for(g[y]=1,b=0;b<=r;++b)b!==y&&(g[y]*=h[b]);g[y]*=m[y];let C=(s+y)*3;n.x+=g[y]*u[C++],n.y+=g[y]*u[C++],n.s+=g[y]*u[C]}return n};function lB(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Me({url:An(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,d=a.length;u=43200?o=(r+.5)/Ni.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/Ni.DAYS_PER_JULIAN_CENTURY;const a=(Kye+o*(Jye+o*(Qye+o*Zye)))*n0e%M.TWO_PI,c=t0e+e0e*(n-24515455e-1),u=(i+Ni.SECONDS_PER_DAY*.5)%Ni.SECONDS_PER_DAY,d=a+c*u,h=Math.cos(d),m=Math.sin(d);return l(t)?(t[0]=h,t[1]=-m,t[2]=0,t[3]=m,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,m,0,-m,h,0,0,0,1)};Ti.iau2006XysData=new dM;Ti.earthOrientationParameters=AC.NONE;const uB=32.184,i0e=2451545;Ti.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+uB,i=e.stop.dayNumber,o=e.stop.secondsOfDay+uB;return Ti.iau2006XysData.preload(t,n,i,o)};Ti.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const o0e=new sq(0,0,0),r0e=new iM(0,0,0,0,0),d1=new J,f1=new J;Ti.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.earthOrientationParameters.compute(e,r0e);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+uB,r=Ti.iau2006XysData.computeXysRadians(i,o,o0e);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=d1;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const d=J.fromRotationZ(-r.s,f1),h=J.multiply(u,d,d1),m=e.dayNumber,g=e.secondsOfDay-ie.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=m-2451545,y=g/Ni.SECONDS_PER_DAY;let b=.779057273264+y+.00273781191135448*(p+y);b=b%1*M.TWO_PI;const C=J.fromRotationZ(b,f1),E=J.multiply(h,C,d1),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),L=Math.sin(n.yPoleWander);let z=i-i0e+o/Ni.SECONDS_PER_DAY;z/=36525;const R=-47e-6*z*M.RADIANS_PER_DEGREE/3600,F=Math.cos(R),U=Math.sin(R),D=f1;return D[0]=w*F,D[1]=w*U,D[2]=P,D[3]=-S*U+L*P*F,D[4]=S*F+L*P*U,D[5]=-L*w,D[6]=-L*U-S*P*F,D[7]=L*F-S*P*U,D[8]=S*w,J.multiply(E,D,t)};const s0e=new oe;Ti.pointToWindowCoordinates=function(e,t,n,i){return i=Ti.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};Ti.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new x("modelViewProjectionMatrix is required.");if(!l(t))throw new x("viewportTransformation is required.");if(!l(n))throw new x("point is required.");l(i)||(i=new j);const o=s0e;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const a0e=new f,c0e=new f,l0e=new f;Ti.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("velocity is required.");const o=A(n,me.WGS84).geodeticSurfaceNormal(e,a0e);let r=f.cross(t,o,c0e);f.equalsEpsilon(r,f.ZERO,M.EPSILON6)&&(r=f.clone(f.UNIT_X,r));const s=f.cross(r,t,l0e);return f.normalize(s,s),f.cross(t,s,r),f.negate(r,r),f.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const aq=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),cq=new Ce,lq=new f,u0e=new f,d0e=new J,dB=new B,uq=new B;Ti.basisTo2D=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("matrix is required.");if(!l(n))throw new x("result is required.");const i=B.getTranslation(t,u0e),o=e.ellipsoid,r=o.cartesianToCartographic(i,cq),s=e.project(r,lq);f.fromElements(s.z,s.x,s.y,s);const a=Ti.eastNorthUpToFixedFrame(i,o,dB),c=B.inverseTransformation(a,uq),u=B.getMatrix3(t,d0e),d=B.multiplyByMatrix3(c,u,n);return B.multiply(aq,d,n),B.setTranslation(n,s,n),n};Ti.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("center is required.");if(!l(n))throw new x("result is required.");const i=e.ellipsoid,o=Ti.eastNorthUpToFixedFrame(t,i,dB),r=B.inverseTransformation(o,uq),s=i.cartesianToCartographic(t,cq),a=e.project(s,lq);f.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,dB);return B.multiply(aq,r,n),B.multiply(c,n,n),n};const cn=Ti;function Lt(e){e=A(e,A.EMPTY_OBJECT),T.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=A(e.primitiveType,Ze.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=A(e.geometryType,Ty.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}Lt.computeNumberOfVertices=function(e){T.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new x("All attribute lists must have the same number of attributes.");t=o}return t};const f0e=new Ce,h0e=new f,TU=new B,p0e=[new Ce,new Ce,new Ce],m0e=[new j,new j,new j],_0e=[new j,new j,new j],g0e=new f,y0e=new Te,A0e=new B,b0e=new dt;Lt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=ge.center(i,f0e),s=Ce.toCartesian(r,n,h0e),a=cn.eastNorthUpToFixedFrame(s,n,TU),c=B.inverse(a,TU),u=m0e,d=p0e;d[0].longitude=i.west,d[0].latitude=i.south,d[1].longitude=i.west,d[1].latitude=i.north,d[2].longitude=i.east,d[2].latitude=i.south;let h=g0e;for(o=0;o<3;o++)Ce.toCartesian(d[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const m=Te.fromAxisAngle(f.UNIT_Z,-t,y0e),g=J.fromQuaternion(m,A0e),p=e.length;let y=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new x("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new x("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=A(e.normalize,!1),this.values=e.values}function d0(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(d0.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});d0.clone=function(e){if(l(e))return new d0(e._format,e._datatype,e._width,e._height,e._buffer)};d0.prototype.clone=function(){return d0.clone(this)};function dq(){if(!l(Vi._canTransferArrayBuffer)){const e=new Worker(hq("Workers/transferTypedArrayTest.js"));e.postMessage=A(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return Vi._canTransferArrayBuffer=!1,Vi._canTransferArrayBuffer}const i=Xp();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),Vi._canTransferArrayBuffer=s},Vi._canTransferArrayBuffer=i.promise}return Vi._canTransferArrayBuffer}const fB=new Ke;function fq(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Ie(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new x(t.error.message),r.stack=t.error.stack),fB.raiseEvent(r),o.reject(r)}else fB.raiseEvent(),o.resolve(t.result);delete i[n]}function hq(e){let t=An(e);if(Xj(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let h1;function C0e(){return l(h1)||(h1=hq("Workers/cesiumWorkerBootstrapper.js")),h1}function pq(e){const t=new Worker(C0e());t.postMessage=A(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:An("Workers")},baseUrl:An.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){fq(e,i.data)},t}function T0e(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!gn.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Ie(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=An(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=An(t.modulePath),n.wasmBinaryFile=An(t.wasmBinaryFile),Me.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function Vi(e,t){const n=new Rs(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:Vi._workerModulePrefix+e,this._maximumActiveTasks=A(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const E0e=[];Vi.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=pq(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(dq()).then(function(i){l(t)?i||(t.length=0):t=E0e;const o=n._nextID++,r=Xp();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};Vi.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=pq(this));const t=Xp(),n=this,i=this._worker;return T0e(this,e).then(function(o){return Promise.resolve(dq()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){fq(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};Vi.prototype.isDestroyed=function(){return!1};Vi.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),He(this)};Vi.taskCompletedEvent=fB;Vi._defaultWorkerModulePrefix="Workers/";Vi._workerModulePrefix=Vi._defaultWorkerModulePrefix;Vi._canTransferArrayBuffer=void 0;function pf(){}pf._transcodeTaskProcessor=new Vi("transcodeKTX2",Number.POSITIVE_INFINITY);pf._readyPromise=void 0;function x0e(){const e=pf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return pf._transcodeTaskProcessor});pf._readyPromise=e}pf.transcode=function(e,t){return T.defined("supportedTargetFormats",t),l(pf._readyPromise)||x0e(),pf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new x("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new x("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._size,h=this._pixelFormat,m=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,y=this._flipY,b=A(e.skipColorSpaceConversion,!1);let C=4;l(u)&&(C=rt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,C),b?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let E=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===d)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,d,d)),o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texImage2D(s,0,m,h,Qe.toWebGLConstant(g,this._context),i)),E=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=rt.createTypedArray(h,g,d,d);o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),w)}this._initialized=!0}E||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texSubImage2D(s,0,t,n,h,Qe.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Zd.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._size),r=A(r,this._size),T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new x("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new x("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const Bw={DONT_CARE:ae.DONT_CARE,FASTEST:ae.FASTEST,NICEST:ae.NICEST,validate:function(e){return e===Bw.DONT_CARE||e===Bw.FASTEST||e===Bw.NICEST}},f0=Object.freeze(Bw),Rw={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR};Rw.validate=function(e){return e===Rw.NEAREST||e===Rw.LINEAR};const Kr=Object.freeze(Rw),Uh={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR,NEAREST_MIPMAP_NEAREST:ae.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:ae.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:ae.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:ae.LINEAR_MIPMAP_LINEAR};Uh.validate=function(e){return e===Uh.NEAREST||e===Uh.LINEAR||e===Uh.NEAREST_MIPMAP_NEAREST||e===Uh.LINEAR_MIPMAP_NEAREST||e===Uh.NEAREST_MIPMAP_LINEAR||e===Uh.LINEAR_MIPMAP_LINEAR};const In=Object.freeze(Uh),Nw={CLAMP_TO_EDGE:ae.CLAMP_TO_EDGE,REPEAT:ae.REPEAT,MIRRORED_REPEAT:ae.MIRRORED_REPEAT,validate:function(e){return e===Nw.CLAMP_TO_EDGE||e===Nw.REPEAT||e===Nw.MIRRORED_REPEAT}},Fi=Object.freeze(Nw);function ii(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.wrapS,Fi.CLAMP_TO_EDGE),n=A(e.wrapT,Fi.CLAMP_TO_EDGE),i=A(e.minificationFilter,In.LINEAR),o=A(e.magnificationFilter,Kr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Fi.validate(t))throw new x("Invalid sampler.wrapS.");if(!Fi.validate(n))throw new x("Invalid sampler.wrapT.");if(!In.validate(i))throw new x("Invalid sampler.minificationFilter.");if(!Kr.validate(o))throw new x("Invalid sampler.magnificationFilter.");T.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(ii.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});ii.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};ii.NEAREST=Object.freeze(new ii({wrapS:Fi.CLAMP_TO_EDGE,wrapT:Fi.CLAMP_TO_EDGE,minificationFilter:In.NEAREST,magnificationFilter:Kr.NEAREST}));function bu(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const E=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!E[0]||!E[1]||!E[2]||!E[3]||!E[4]||!E[5])throw new x("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=E[0].width,o=E[0].height;for(let w=1;w<6;++w)if(Number(E[w].width)!==i||Number(E[w].height)!==o)throw new x("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=A(e.pixelDatatype,Qe.UNSIGNED_BYTE),a=A(e.pixelFormat,rt.RGBA),c=rt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new x("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new x("Width must equal height.");if(r<=0)throw new x("Width and height must be greater than zero.");if(r>It.maximumCubeMapSize)throw new x(`Width and height must be less than or equal to the maximum cube map size (${It.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!rt.validate(a))throw new x("Invalid options.pixelFormat.");if(rt.isDepthFormat(a))throw new x("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=rt.textureSizeInBytes(a,s,r,r)*6,d=e.preMultiplyAlpha||a===rt.RGB||a===rt.LUMINANCE,h=A(e.flipY,!0),m=A(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);function b(E,w,S,P,L){let z=w.arrayBufferView;l(z)||(z=w.bufferView);let R=4;l(z)&&(R=rt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),L?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(z)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(z=rt.flipY(z,a,s,r,r)),g.texImage2D(E,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),z)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(E,0,c,a,Qe.toWebGLConstant(s,t),w))}l(n)?(b(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,d,h,m)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=y,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=d,this._flipY=h,this._sampler=void 0;const C=l(n);this._positiveX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,d,h,C),this._negativeX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,d,h,C),this._positiveY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,d,h,C),this._negativeY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,d,h,C),this._positiveZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,d,h,C),this._negativeZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,d,h,C),this.sampler=l(e.sampler)?e.sampler:new ii}Object.defineProperties(bu.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Qe.FLOAT&&!o.textureFloatLinear||r===Qe.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});bu.prototype.generateMipmap=function(e){if(e=A(e,f0.DONT_CARE),this._size>1&&!M.isPowerOfTwo(this._size))throw new x("width and height must be a power of two to call generateMipmap().");if(!f0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};bu.prototype.isDestroyed=function(){return!1};bu.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=He(this._positiveX),this._negativeX=He(this._negativeX),this._positiveY=He(this._positiveY),this._negativeY=He(this._negativeY),this._positiveZ=He(this._positiveZ),this._negativeZ=He(this._negativeZ),He(this)};function J_(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function w0e(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` + */(function(e){(function(t,n){e.exports?e.exports=n(cye(),uye(),fye()):t.URI=n(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(By,function(t,n,i,o){var r=o&&o.URI;function s(_,v){var O=arguments.length>=1,N=arguments.length>=2;if(!(this instanceof s))return O?N?new s(_,v):new s(_):new s;if(_===void 0){if(O)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?_=location.href+"":_=""}if(_===null&&O)throw new TypeError("null is not a valid argument for URI");return this.href(_),v!==void 0?this.absoluteTo(v):this}function a(_){return/^[0-9]+$/.test(_)}s.version="1.19.11";var c=s.prototype,u=Object.prototype.hasOwnProperty;function d(_){return _.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(_){return _===void 0?"Undefined":String(Object.prototype.toString.call(_)).slice(8,-1)}function m(_){return h(_)==="Array"}function g(_,v){var O={},N,V;if(h(v)==="RegExp")O=null;else if(m(v))for(N=0,V=v.length;N]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(_){if(!(!_||!_.nodeName)){var v=_.nodeName.toLowerCase();if(!(v==="input"&&_.type!=="image"))return s.domAttributes[v]}};function C(_){return escape(_)}function E(_){return encodeURIComponent(_).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}s.encode=E,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=E,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(_,v){var O=s.encode(_+"");return v===void 0&&(v=s.escapeQuerySpace),v?O.replace(/%20/g,"+"):O},s.decodeQuery=function(_,v){_+="",v===void 0&&(v=s.escapeQuerySpace);try{return s.decode(v?_.replace(/\+/g,"%20"):_)}catch{return _}};var w={encode:"encode",decode:"decode"},S,P=function(_,v){return function(O){try{return s[v](O+"").replace(s.characters[_][v].expression,function(N){return s.characters[_][v].map[N]})}catch{return O}}};for(S in w)s[S+"PathSegment"]=P("pathname",w[S]),s[S+"UrnPathSegment"]=P("urnpath",w[S]);var L=function(_,v,O){return function(N){var V;O?V=function(K){return s[v](s[O](K))}:V=s[v];for(var k=(N+"").split(_),G=0,W=k.length;G-1&&(v.fragment=_.substring(O+1)||null,_=_.substring(0,O)),O=_.indexOf("?"),O>-1&&(v.query=_.substring(O+1)||null,_=_.substring(0,O)),_=_.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),_=_.replace(/^[/\\]{2,}/i,"//"),_.substring(0,2)==="//"?(v.protocol=null,_=_.substring(2),_=s.parseAuthority(_,v)):(O=_.indexOf(":"),O>-1&&(v.protocol=_.substring(0,O)||null,v.protocol&&!v.protocol.match(s.protocol_expression)?v.protocol=void 0:_.substring(O+1,O+3).replace(/\\/g,"/")==="//"?(_=_.substring(O+3),_=s.parseAuthority(_,v)):(_=_.substring(O+1),v.urn=!0))),v.path=_,v},s.parseHost=function(_,v){_||(_=""),_=_.replace(/\\/g,"/");var O=_.indexOf("/"),N,V;if(O===-1&&(O=_.length),_.charAt(0)==="[")N=_.indexOf("]"),v.hostname=_.substring(1,N)||null,v.port=_.substring(N+2,O)||null,v.port==="/"&&(v.port=null);else{var k=_.indexOf(":"),G=_.indexOf("/"),W=_.indexOf(":",k+1);W!==-1&&(G===-1||W-1?V:_.length-1),G;return k>-1&&(V===-1||k-1?X=X.slice(0,$)+X.slice($).replace(k,""):X=X.replace(k,""),!(X.length<=K[0].length)&&!(O.ignore&&O.ignore.test(X))){Y=q+X.length;var re=v(X,q,Y,_);if(re===void 0){N.lastIndex=Y;continue}re=String(re),_=_.slice(0,q)+re+_.slice(Y),N.lastIndex=q+re.length}}return N.lastIndex=0,_},s.ensureValidHostname=function(_,v){var O=!!_,N=!!v,V=!1;if(N&&(V=p(s.hostProtocols,v)),V&&!O)throw new TypeError("Hostname cannot be empty, if protocol is "+v);if(_&&_.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(_).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(_){if(_){var v=Number(_);if(!(a(v)&&v>0&&v<65536))throw new TypeError('Port "'+_+'" is not a valid port')}},s.noConflict=function(_){if(_){var v={URI:this.noConflict()};return o.URITemplate&&typeof o.URITemplate.noConflict=="function"&&(v.URITemplate=o.URITemplate.noConflict()),o.IPv6&&typeof o.IPv6.noConflict=="function"&&(v.IPv6=o.IPv6.noConflict()),o.SecondLevelDomains&&typeof o.SecondLevelDomains.noConflict=="function"&&(v.SecondLevelDomains=o.SecondLevelDomains.noConflict()),v}else o.URI===this&&(o.URI=r);return this},c.build=function(_){return _===!0?this._deferred_build=!0:(_===void 0||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new s(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function z(_){return function(v,O){return v===void 0?this._parts[_]||"":(this._parts[_]=v||null,this.build(!O),this)}}function R(_,v){return function(O,N){return O===void 0?this._parts[_]||"":(O!==null&&(O=O+"",O.charAt(0)===v&&(O=O.substring(1))),this._parts[_]=O,this.build(!N),this)}}c.protocol=z("protocol"),c.username=z("username"),c.password=z("password"),c.hostname=z("hostname"),c.port=z("port"),c.query=R("query","?"),c.fragment=R("fragment","#"),c.search=function(_,v){var O=this.query(_,v);return typeof O=="string"&&O.length?"?"+O:O},c.hash=function(_,v){var O=this.fragment(_,v);return typeof O=="string"&&O.length?"#"+O:O},c.pathname=function(_,v){if(_===void 0||_===!0){var O=this._parts.path||(this._parts.hostname?"/":"");return _?(this._parts.urn?s.decodeUrnPath:s.decodePath)(O):O}else return this._parts.urn?this._parts.path=_?s.recodeUrnPath(_):"":this._parts.path=_?s.recodePath(_):"/",this.build(!v),this},c.path=c.pathname,c.href=function(_,v){var O;if(_===void 0)return this.toString();this._string="",this._parts=s._parts();var N=_ instanceof s,V=typeof _=="object"&&(_.hostname||_.path||_.pathname);if(_.nodeName){var k=s.getDomAttribute(_);_=_[k]||"",V=!1}if(!N&&V&&_.pathname!==void 0&&(_=_.toString()),typeof _=="string"||_ instanceof String)this._parts=s.parse(String(_),this._parts);else if(N||V){var G=N?_._parts:_;for(O in G)O!=="query"&&u.call(this._parts,O)&&(this._parts[O]=G[O]);G.query&&this.query(G.query,!1)}else throw new TypeError("invalid input");return this.build(!v),this},c.is=function(_){var v=!1,O=!1,N=!1,V=!1,k=!1,G=!1,W=!1,K=!this._parts.urn;switch(this._parts.hostname&&(K=!1,O=s.ip4_expression.test(this._parts.hostname),N=s.ip6_expression.test(this._parts.hostname),v=O||N,V=!v,k=V&&i&&i.has(this._parts.hostname),G=V&&s.idn_expression.test(this._parts.hostname),W=V&&s.punycode_expression.test(this._parts.hostname)),_.toLowerCase()){case"relative":return K;case"absolute":return!K;case"domain":case"name":return V;case"sld":return k;case"ip":return v;case"ip4":case"ipv4":case"inet4":return O;case"ip6":case"ipv6":case"inet6":return N;case"idn":return G;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return W}return null};var F=c.protocol,U=c.port,D=c.hostname;c.protocol=function(_,v){if(_&&(_=_.replace(/:(\/\/)?$/,""),!_.match(s.protocol_expression)))throw new TypeError('Protocol "'+_+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return F.call(this,_,v)},c.scheme=c.protocol,c.port=function(_,v){return this._parts.urn?_===void 0?"":this:(_!==void 0&&(_===0&&(_=null),_&&(_+="",_.charAt(0)===":"&&(_=_.substring(1)),s.ensureValidPort(_))),U.call(this,_,v))},c.hostname=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_!==void 0){var O={preventInvalidHostname:this._parts.preventInvalidHostname},N=s.parseHost(_,O);if(N!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');_=O.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(_,this._parts.protocol)}return D.call(this,_,v)},c.origin=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=this.protocol(),N=this.authority();return N?(O?O+"://":"")+this.authority():""}else{var V=s(_);return this.protocol(V.protocol()).authority(V.authority()).build(!v),this}},c.host=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildHost(this._parts):"";var O=s.parseHost(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.authority=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildAuthority(this._parts):"";var O=s.parseAuthority(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.userinfo=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=s.buildUserinfo(this._parts);return O&&O.substring(0,O.length-1)}else return _[_.length-1]!=="@"&&(_+="@"),s.parseUserinfo(_,this._parts),this.build(!v),this},c.resource=function(_,v){var O;return _===void 0?this.path()+this.search()+this.hash():(O=s.parse(_),this._parts.path=O.path,this._parts.query=O.query,this._parts.fragment=O.fragment,this.build(!v),this)},c.subdomain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,O)||""}else{var N=this._parts.hostname.length-this.domain().length,V=this._parts.hostname.substring(0,N),k=new RegExp("^"+d(V));if(_&&_.charAt(_.length-1)!=="."&&(_+="."),_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return _&&s.ensureValidHostname(_,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,_),this.build(!v),this}},c.domain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.match(/\./g);if(O&&O.length<2)return this._parts.hostname;var N=this._parts.hostname.length-this.tld(v).length-1;return N=this._parts.hostname.lastIndexOf(".",N-1)+1,this._parts.hostname.substring(N)||""}else{if(!_)throw new TypeError("cannot set domain empty");if(_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(_,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=_;else{var V=new RegExp(d(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(V,_)}return this.build(!v),this}},c.tld=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.lastIndexOf("."),N=this._parts.hostname.substring(O+1);return v!==!0&&i&&i.list[N.toLowerCase()]&&i.get(this._parts.hostname)||N}else{var V;if(_)if(_.match(/[^a-zA-Z0-9-]/))if(i&&i.is(_))V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_);else throw new TypeError('TLD "'+_+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_)}else throw new TypeError("cannot set TLD empty");return this.build(!v),this}},c.directory=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var O=this._parts.path.length-this.filename().length-1,N=this._parts.path.substring(0,O)||(this._parts.hostname?"/":"");return _?s.decodePath(N):N}else{var V=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,V),G=new RegExp("^"+d(k));return this.is("relative")||(_||(_="/"),_.charAt(0)!=="/"&&(_="/"+_)),_&&_.charAt(_.length-1)!=="/"&&(_+="/"),_=s.recodePath(_),this._parts.path=this._parts.path.replace(G,_),this.build(!v),this}},c.filename=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _!="string"){if(!this._parts.path||this._parts.path==="/")return"";var O=this._parts.path.lastIndexOf("/"),N=this._parts.path.substring(O+1);return _?s.decodePathSegment(N):N}else{var V=!1;_.charAt(0)==="/"&&(_=_.substring(1)),_.match(/\.?\//)&&(V=!0);var k=new RegExp(d(this.filename())+"$");return _=s.recodePath(_),this._parts.path=this._parts.path.replace(k,_),V?this.normalizePath(v):this.build(!v),this}},c.suffix=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path||this._parts.path==="/")return"";var O=this.filename(),N=O.lastIndexOf("."),V,k;return N===-1?"":(V=O.substring(N+1),k=/^[a-z0-9%]+$/i.test(V)?V:"",_?s.decodePathSegment(k):k)}else{_.charAt(0)==="."&&(_=_.substring(1));var G=this.suffix(),W;if(G)_?W=new RegExp(d(G)+"$"):W=new RegExp(d("."+G)+"$");else{if(!_)return this;this._parts.path+="."+s.recodePath(_)}return W&&(_=s.recodePath(_),this._parts.path=this._parts.path.replace(W,_)),this.build(!v),this}},c.segment=function(_,v,O){var N=this._parts.urn?":":"/",V=this.path(),k=V.substring(0,1)==="/",G=V.split(N);if(_!==void 0&&typeof _!="number"&&(O=v,v=_,_=void 0),_!==void 0&&typeof _!="number")throw new Error('Bad segment "'+_+'", must be 0-based integer');if(k&&G.shift(),_<0&&(_=Math.max(G.length+_,0)),v===void 0)return _===void 0?G:G[_];if(_===null||G[_]===void 0)if(m(v)){G=[];for(var W=0,K=v.length;W"u")return e;t=A(n.baseURI,n.location.href)}const i=new Rs(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};function pye(e,t){if(!l(e))throw new x("uri is required.");let n="";const i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new Rs(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}function mye(e){if(!l(e))throw new x("uri is required.");const t=new Rs(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}const mU={};function VS(e,t,n){l(t)||(t=e.width),l(n)||(n=e.height);let i=mU[t];l(i)||(i={},mU[t]=i);let o=i[n];if(!l(o)){const r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d"),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}const _ye=/^blob:/i;function Yj(e){return T.typeOf.string("uri",e),_ye.test(e)}let Fu;function Xj(e){l(Fu)||(Fu=document.createElement("a")),Fu.href=window.location.href;const t=Fu.host,n=Fu.protocol;return Fu.href=e,Fu.href=Fu.href,n!==Fu.protocol||t!==Fu.host}const gye=/^data:/i;function aM(e){return T.typeOf.string("uri",e),gye.test(e)}function yye(e){const t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");const o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}function Aye(e){if(!l(e))throw new x("obj is required.");let t="";for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function c0(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Eye(this.responseHeaders))}c0.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function Ke(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(Ke.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});Ke.prototype.addEventListener=function(e,t){T.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};Ke.prototype.removeEventListener=function(e,t){T.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(xye),e=0;e=0;--t)this.heapify(t)};X_.prototype.insert=function(e){T.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};X_.prototype.pop=function(e){if(e=A(e,0),this._length===0)return;T.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return cM(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function wye(e,t){return e.priority-t.priority}const wi={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Ry=20;const Zs=new X_({comparator:wye});Zs.maximumLength=Ry;Zs.reserve(Ry);const Ju=[];let Pf={};const Sye=typeof document<"u"?new Rs(document.location.href):new Rs,sD=new Ke;function bi(){}bi.maximumRequests=50;bi.maximumRequestsPerServer=6;bi.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};bi.throttleRequests=!0;bi.debugShowStatistics=!1;bi.requestCompletedEvent=sD;Object.defineProperties(bi,{statistics:{get:function(){return wi}},priorityHeapLength:{get:function(){return Ry},set:function(e){if(ee;){const t=Zs.pop();d_(t)}Ry=e,Zs.maximumLength=e,Zs.reserve(e)}}});function Kj(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}bi.serverHasOpenSlots=function(e,t){t=A(t,1);const n=A(bi.requestsByServer[e],bi.maximumRequestsPerServer);return Pf[e]+t<=n};bi.heapHasOpenSlots=function(e){return Zs.length+e<=Ry};function Jj(e){return e.state===Do.UNISSUED&&(e.state=Do.ISSUED,e.deferred=Xp()),e.deferred.promise}function vye(e){return function(t){if(e.state===Do.CANCELLED)return;const n=e.deferred;--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(),e.state=Do.RECEIVED,e.deferred=void 0,n.resolve(t)}}function Dye(e){return function(t){e.state!==Do.CANCELLED&&(++wi.numberOfFailedRequests,--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(t),e.state=Do.FAILED,e.deferred.reject(t))}}function Qj(e){const t=Jj(e);return e.state=Do.ACTIVE,Ju.push(e),++wi.numberOfActiveRequests,++wi.numberOfActiveRequestsEver,++Pf[e.serverKey],e.requestFunction().then(vye(e)).catch(Dye(e)),t}function d_(e){const t=e.state===Do.ACTIVE;if(e.state=Do.CANCELLED,++wi.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--wi.numberOfActiveRequests,--Pf[e.serverKey],++wi.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}bi.update=function(){let e,t,n=0;const i=Ju.length;for(e=0;e0&&(Ju[e-n]=t)}Ju.length-=n;const o=Zs.internalArray,r=Zs.length;for(e=0;e0;){if(t=Zs.pop(),t.cancelled){d_(t);continue}if(t.throttleByServer&&!bi.serverHasOpenSlots(t.serverKey)){d_(t);continue}Qj(t),++a}Iye()};bi.getServerKey=function(e){T.typeOf.string("url",e);let t=new Rs(e);t.scheme()===""&&(t=new Rs(e).absoluteTo(Sye),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=Pf[n];return l(i)||(Pf[n]=0),n};bi.request=function(e){if(T.typeOf.object("request",e),T.typeOf.string("request.url",e.url),T.typeOf.func("request.requestFunction",e.requestFunction),aM(e.url)||Yj(e.url))return sD.raiseEvent(),e.state=Do.RECEIVED,e.requestFunction();if(++wi.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=bi.getServerKey(e.url)),bi.throttleRequests&&e.throttleByServer&&!bi.serverHasOpenSlots(e.serverKey))return;if(!bi.throttleRequests||!e.throttle)return Qj(e);if(Ju.length>=bi.maximumRequests)return;Kj(e);const t=Zs.insert(e);if(l(t)){if(t===e)return;d_(t)}return Jj(e)};function Iye(){bi.debugShowStatistics&&(wi.numberOfActiveRequests===0&&wi.lastNumberOfActiveRequests>0&&(wi.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${wi.numberOfAttemptedRequests}`),wi.numberOfAttemptedRequests=0),wi.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${wi.numberOfCancelledRequests}`),wi.numberOfCancelledRequests=0),wi.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${wi.numberOfCancelledActiveRequests}`),wi.numberOfCancelledActiveRequests=0),wi.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${wi.numberOfFailedRequests}`),wi.numberOfFailedRequests=0)),wi.lastNumberOfActiveRequests=wi.numberOfActiveRequests)}bi.clearForSpecs=function(){for(;Zs.length>0;){const t=Zs.pop();d_(t)}const e=Ju.length;for(let t=0;t0}}});Me.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Me.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new Rs(this._url);e&&Oye(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Me.prototype.setQueryParameters=function(e,t){t?this._queryParameters=kS(this._queryParameters,e,!1):this._queryParameters=kS(e,this._queryParameters,!1)};Me.prototype.appendQueryParameters=function(e){this._queryParameters=kS(e,this._queryParameters,!0)};Me.prototype.setTemplateValues=function(e,t){t?this._templateValues=hn(this._templateValues,e):this._templateValues=hn(e,this._templateValues)};Me.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new Rs(e.url),i=A(e.preserveQueryParameters,!1);lM(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new Rs(dT(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=hn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=hn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=hn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Me.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Me.prototype.clone=function(e){return l(e)||(e=new Me({url:this._url})),e._url=this._url,e._queryParameters=ht(this._queryParameters),e._templateValues=ht(this._templateValues),e.headers=ht(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Me.prototype.getBaseUri=function(e){return pye(this.getUrlComponent(e),e)};Me.prototype.appendForwardSlash=function(){this._url=hye(this._url)};Me.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Me.fetchArrayBuffer=function(e){return new Me(e).fetchArrayBuffer()};Me.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Me.fetchBlob=function(e){return new Me(e).fetchBlob()};Me.prototype.fetchImage=function(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.preferImageBitmap,!1),n=A(e.preferBlob,!1),i=A(e.flipY,!1),o=A(e.skipColorSpaceConversion,!1);if(uM(this.request),!eq||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return aB({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Me.supportsImageBitmapOptions().then(function(d){return s=d,a=s&&t,r}).then(function(d){if(!l(d))return;if(u=d,a)return Me.createImageBitmapFromBlob(d,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(d);return c=new Me({url:h}),aB({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(d){if(l(d))return d.blob=u,a||window.URL.revokeObjectURL(c.url),d}).catch(function(d){return l(c)&&window.URL.revokeObjectURL(c.url),d.blob=u,Promise.reject(d)})};function aB(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=Xp();return Me._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=bi.request(r);if(l(s))return s.catch(function(a){return r.state!==Do.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=Do.UNISSUED,r.deferred=void 0,aB({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Me.fetchImage=function(e){return new Me(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Me.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Me.fetchText=function(e){return new Me(e).fetchText()};Me.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Me.fetchJson=function(e){return new Me(e).fetchJson()};Me.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Me.fetchXML=function(e){return new Me(e).fetchXML()};Me.prototype.fetchJsonp=function(e){e=A(e,"callback"),uM(this.request);let t;do t=`loadJsonp${M.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return tq(this,e,t)};function tq(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=Xp();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Me._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=bi.request(o);if(l(r))return r.catch(function(s){return o.state!==Do.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=Do.UNISSUED,o.deferred=void 0,tq(e,t,n)):Promise.reject(s)})})}Me.fetchJsonp=function(e){return new Me(e).fetchJsonp(e.callbackParameterName)};Me.prototype._makeRequest=function(e){const t=this;uM(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=hn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=Xp(),d=Me._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(d)&&l(d.abort)&&(n.cancelFunction=function(){d.abort()}),u.promise};const i=bi.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==Do.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=Do.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const Lye=/^data:(.*?)(;base64)?,(.*)$/;function Lw(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function _U(e,t){const n=Lw(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),NE(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,d])=>(a=u.parse(e),c=d,a.protocol==="https:"?NE(()=>import("./__vite-browser-external-b25bb000.js"),[]):NE(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const d={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(d).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new c0(h.statusCode,h,h.headers));return}const m=[];h.on("data",function(g){m.push(g)}),h.on("end",function(){const g=Buffer.concat(m);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,y){p?r.reject(new Ie("Error decompressing response.")):r.resolve(gU(y,t))}):r.resolve(gU(g,t))})}).on("error",function(h){r.reject(new c0)}).end()})}const Nye=typeof XMLHttpRequest>"u";Me._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=Lye.exec(e);if(a!==null){r.resolve(Bye(a,t));return}if(Nye){Rye(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(Zj.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const d in o)o.hasOwnProperty(d)&&c.setRequestHeader(d,o[d]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new c0(c.status,c.response,c.getAllResponseHeaders()));return}const d=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(y){const b=y.split(": "),C=b.shift();p[C]=b.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(d)&&(!l(t)||h===t))r.resolve(d);else if(t==="json"&&typeof d=="string")try{r.resolve(JSON.parse(d))}catch(m){r.reject(m)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Ie("Invalid XMLHttpRequest response type."))},c.onerror=function(d){r.reject(new c0)},c.send(i),c};Me._Implementations.loadAndExecuteScript=function(e,t,n){return yye(e).catch(function(i){n.reject(i)})};Me._DefaultImplementations={};Me._DefaultImplementations.createImage=Me._Implementations.createImage;Me._DefaultImplementations.loadWithXhr=Me._Implementations.loadWithXhr;Me._DefaultImplementations.loadAndExecuteScript=Me._Implementations.loadAndExecuteScript;Me.DEFAULT=Object.freeze(new Me({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function AC(e){e=A(e,A.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=A(e.addNewLeapSeconds,!0),l(e.data)?yU(this,e.data):yU(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}AC.fromUrl=async function(e,t){T.defined("url",e),t=A(t,A.EMPTY_OBJECT);const n=Me.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Ie(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new AC({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};AC.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new iM(0,0,0,0,0),t}});AC.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new iM(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ie.lessThanOrEquals(a,e),d=!l(c),h=d||ie.greaterThanOrEquals(c,e);if(u&&h)return o=i,!d&&c.equals(e)&&++o,r=o+1,bU(this,n,this._samples,e,o,r,t),t}let s=Bs(n,e,ie.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return AU(e,n,o,a,s),s;if(i.equals(u))return AU(e,n,r,a,s),s;const d=ie.secondsDifference(i,c)/ie.secondsDifference(u,c),h=o*a,m=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[m+e._ut1MinusUtcSecondsColumn];const y=p-g;if(y>.5||y<-.5){const b=n[h+e._taiMinusUtcSecondsColumn],C=n[m+e._taiMinusUtcSecondsColumn];b!==C&&(u.equals(i)?g=p:p-=C-b)}return s.xPoleWander=cA(d,n[h+e._xPoleWanderRadiansColumn],n[m+e._xPoleWanderRadiansColumn]),s.yPoleWander=cA(d,n[h+e._yPoleWanderRadiansColumn],n[m+e._yPoleWanderRadiansColumn]),s.xPoleOffset=cA(d,n[h+e._xCelestialPoleOffsetRadiansColumn],n[m+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=cA(d,n[h+e._yCelestialPoleOffsetRadiansColumn],n[m+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=cA(d,g,p),s}function Xr(e,t,n){this.heading=A(e,0),this.pitch=A(t,0),this.roll=A(n,0)}Xr.fromQuaternion=function(e,t){if(!l(e))throw new x("quaternion is required");l(t)||(t=new Xr);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-M.asinClamped(n),t};Xr.fromDegrees=function(e,t,n,i){if(!l(e))throw new x("heading is required");if(!l(t))throw new x("pitch is required");if(!l(n))throw new x("roll is required");return l(i)||(i=new Xr),i.heading=e*M.RADIANS_PER_DEGREE,i.pitch=t*M.RADIANS_PER_DEGREE,i.roll=n*M.RADIANS_PER_DEGREE,i};Xr.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Xr(e.heading,e.pitch,e.roll)};Xr.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Xr.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&M.equalsEpsilon(e.heading,t.heading,n,i)&&M.equalsEpsilon(e.pitch,t.pitch,n,i)&&M.equalsEpsilon(e.roll,t.roll,n,i)};Xr.prototype.clone=function(e){return Xr.clone(this,e)};Xr.prototype.equals=function(e){return Xr.equals(this,e)};Xr.prototype.equalsEpsilon=function(e,t,n){return Xr.equalsEpsilon(this,e,t,n)};Xr.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const nq=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function Fye(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(vg)||(vg=document.createElement("a")),vg.href=e,vg.href=vg.href,vg.href)}let qm;function oq(){if(l(qm))return qm;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=dT("..",An("Core/buildModuleUrl.js")):e=Fye(),!l(e))throw new x("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return qm=new Me({url:iq(e)}),qm.appendForwardSlash(),qm}function zye(e){return iq(require.toUrl(`../${e}`))}function rq(e){return oq().getDerivedResource({url:e}).url}let ME;function An(e){return l(ME)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?ME=zye:ME=rq),ME(e)}An._cesiumScriptRegex=nq;An._buildModuleUrlFromBaseUrl=rq;An._clearBaseResource=function(){qm=void 0};An.setBaseUrl=function(e){qm=Me.DEFAULT.getDerivedResource({url:e})};An.getCesiumBaseUrl=oq;function sq(e,t,n){this.x=e,this.y=t,this.s=n}function dM(e){e=A(e,A.EMPTY_OBJECT),this._xysFileUrlTemplate=Me.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=A(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=A(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ie(this._sampleZeroJulianEphemerisDate,0,$n.TAI),this._stepSizeDays=A(e.stepSizeDays,1),this._samplesPerXysFile=A(e.samplesPerXysFile,1e3),this._totalSamples=A(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Uye=new ie(0,0,$n.TAI);function cB(e,t,n){const i=Uye;return i.dayNumber=t,i.secondsOfDay=n,ie.daysDifference(i,e._sampleZeroDateTT)}dM.prototype.preload=function(e,t,n,i){const o=cB(this,e,t),r=cB(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,d=[];for(let h=c;h<=u;++h)d.push(lB(this,h));return Promise.all(d)};dM.prototype.computeXysRadians=function(e,t,n){const i=cB(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(lB(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(lB(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new sq(0,0,0);const d=i-s*this._stepSizeDays,h=this._work,m=this._denominators,g=this._coef,p=this._xTable;let y,b;for(y=0;y<=r;++y)h[y]=d-p[y];for(y=0;y<=r;++y){for(g[y]=1,b=0;b<=r;++b)b!==y&&(g[y]*=h[b]);g[y]*=m[y];let C=(s+y)*3;n.x+=g[y]*u[C++],n.y+=g[y]*u[C++],n.s+=g[y]*u[C]}return n};function lB(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Me({url:An(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,d=a.length;u=43200?o=(r+.5)/Ni.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/Ni.DAYS_PER_JULIAN_CENTURY;const a=(Kye+o*(Jye+o*(Qye+o*Zye)))*n0e%M.TWO_PI,c=t0e+e0e*(n-24515455e-1),u=(i+Ni.SECONDS_PER_DAY*.5)%Ni.SECONDS_PER_DAY,d=a+c*u,h=Math.cos(d),m=Math.sin(d);return l(t)?(t[0]=h,t[1]=-m,t[2]=0,t[3]=m,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,m,0,-m,h,0,0,0,1)};Ti.iau2006XysData=new dM;Ti.earthOrientationParameters=AC.NONE;const uB=32.184,i0e=2451545;Ti.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+uB,i=e.stop.dayNumber,o=e.stop.secondsOfDay+uB;return Ti.iau2006XysData.preload(t,n,i,o)};Ti.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const o0e=new sq(0,0,0),r0e=new iM(0,0,0,0,0),d1=new J,f1=new J;Ti.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.earthOrientationParameters.compute(e,r0e);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+uB,r=Ti.iau2006XysData.computeXysRadians(i,o,o0e);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=d1;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const d=J.fromRotationZ(-r.s,f1),h=J.multiply(u,d,d1),m=e.dayNumber,g=e.secondsOfDay-ie.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=m-2451545,y=g/Ni.SECONDS_PER_DAY;let b=.779057273264+y+.00273781191135448*(p+y);b=b%1*M.TWO_PI;const C=J.fromRotationZ(b,f1),E=J.multiply(h,C,d1),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),L=Math.sin(n.yPoleWander);let z=i-i0e+o/Ni.SECONDS_PER_DAY;z/=36525;const R=-47e-6*z*M.RADIANS_PER_DEGREE/3600,F=Math.cos(R),U=Math.sin(R),D=f1;return D[0]=w*F,D[1]=w*U,D[2]=P,D[3]=-S*U+L*P*F,D[4]=S*F+L*P*U,D[5]=-L*w,D[6]=-L*U-S*P*F,D[7]=L*F-S*P*U,D[8]=S*w,J.multiply(E,D,t)};const s0e=new oe;Ti.pointToWindowCoordinates=function(e,t,n,i){return i=Ti.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};Ti.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new x("modelViewProjectionMatrix is required.");if(!l(t))throw new x("viewportTransformation is required.");if(!l(n))throw new x("point is required.");l(i)||(i=new j);const o=s0e;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const a0e=new f,c0e=new f,l0e=new f;Ti.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("velocity is required.");const o=A(n,me.WGS84).geodeticSurfaceNormal(e,a0e);let r=f.cross(t,o,c0e);f.equalsEpsilon(r,f.ZERO,M.EPSILON6)&&(r=f.clone(f.UNIT_X,r));const s=f.cross(r,t,l0e);return f.normalize(s,s),f.cross(t,s,r),f.negate(r,r),f.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const aq=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),cq=new Ce,lq=new f,u0e=new f,d0e=new J,dB=new B,uq=new B;Ti.basisTo2D=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("matrix is required.");if(!l(n))throw new x("result is required.");const i=B.getTranslation(t,u0e),o=e.ellipsoid,r=o.cartesianToCartographic(i,cq),s=e.project(r,lq);f.fromElements(s.z,s.x,s.y,s);const a=Ti.eastNorthUpToFixedFrame(i,o,dB),c=B.inverseTransformation(a,uq),u=B.getMatrix3(t,d0e),d=B.multiplyByMatrix3(c,u,n);return B.multiply(aq,d,n),B.setTranslation(n,s,n),n};Ti.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("center is required.");if(!l(n))throw new x("result is required.");const i=e.ellipsoid,o=Ti.eastNorthUpToFixedFrame(t,i,dB),r=B.inverseTransformation(o,uq),s=i.cartesianToCartographic(t,cq),a=e.project(s,lq);f.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,dB);return B.multiply(aq,r,n),B.multiply(c,n,n),n};const cn=Ti;function Lt(e){e=A(e,A.EMPTY_OBJECT),T.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=A(e.primitiveType,Ze.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=A(e.geometryType,Cy.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}Lt.computeNumberOfVertices=function(e){T.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new x("All attribute lists must have the same number of attributes.");t=o}return t};const f0e=new Ce,h0e=new f,TU=new B,p0e=[new Ce,new Ce,new Ce],m0e=[new j,new j,new j],_0e=[new j,new j,new j],g0e=new f,y0e=new Te,A0e=new B,b0e=new dt;Lt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=ge.center(i,f0e),s=Ce.toCartesian(r,n,h0e),a=cn.eastNorthUpToFixedFrame(s,n,TU),c=B.inverse(a,TU),u=m0e,d=p0e;d[0].longitude=i.west,d[0].latitude=i.south,d[1].longitude=i.west,d[1].latitude=i.north,d[2].longitude=i.east,d[2].latitude=i.south;let h=g0e;for(o=0;o<3;o++)Ce.toCartesian(d[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const m=Te.fromAxisAngle(f.UNIT_Z,-t,y0e),g=J.fromQuaternion(m,A0e),p=e.length;let y=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new x("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new x("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=A(e.normalize,!1),this.values=e.values}function u0(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(u0.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});u0.clone=function(e){if(l(e))return new u0(e._format,e._datatype,e._width,e._height,e._buffer)};u0.prototype.clone=function(){return u0.clone(this)};function dq(){if(!l(Vi._canTransferArrayBuffer)){const e=new Worker(hq("Workers/transferTypedArrayTest.js"));e.postMessage=A(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return Vi._canTransferArrayBuffer=!1,Vi._canTransferArrayBuffer}const i=Xp();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),Vi._canTransferArrayBuffer=s},Vi._canTransferArrayBuffer=i.promise}return Vi._canTransferArrayBuffer}const fB=new Ke;function fq(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Ie(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new x(t.error.message),r.stack=t.error.stack),fB.raiseEvent(r),o.reject(r)}else fB.raiseEvent(),o.resolve(t.result);delete i[n]}function hq(e){let t=An(e);if(Xj(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let h1;function C0e(){return l(h1)||(h1=hq("Workers/cesiumWorkerBootstrapper.js")),h1}function pq(e){const t=new Worker(C0e());t.postMessage=A(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:An("Workers")},baseUrl:An.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){fq(e,i.data)},t}function T0e(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!gn.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Ie(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=An(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=An(t.modulePath),n.wasmBinaryFile=An(t.wasmBinaryFile),Me.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function Vi(e,t){const n=new Rs(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:Vi._workerModulePrefix+e,this._maximumActiveTasks=A(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const E0e=[];Vi.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=pq(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(dq()).then(function(i){l(t)?i||(t.length=0):t=E0e;const o=n._nextID++,r=Xp();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};Vi.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=pq(this));const t=Xp(),n=this,i=this._worker;return T0e(this,e).then(function(o){return Promise.resolve(dq()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){fq(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};Vi.prototype.isDestroyed=function(){return!1};Vi.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),He(this)};Vi.taskCompletedEvent=fB;Vi._defaultWorkerModulePrefix="Workers/";Vi._workerModulePrefix=Vi._defaultWorkerModulePrefix;Vi._canTransferArrayBuffer=void 0;function pf(){}pf._transcodeTaskProcessor=new Vi("transcodeKTX2",Number.POSITIVE_INFINITY);pf._readyPromise=void 0;function x0e(){const e=pf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return pf._transcodeTaskProcessor});pf._readyPromise=e}pf.transcode=function(e,t){return T.defined("supportedTargetFormats",t),l(pf._readyPromise)||x0e(),pf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new x("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new x("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._size,h=this._pixelFormat,m=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,y=this._flipY,b=A(e.skipColorSpaceConversion,!1);let C=4;l(u)&&(C=rt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,C),b?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let E=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===d)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,d,d)),o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texImage2D(s,0,m,h,Qe.toWebGLConstant(g,this._context),i)),E=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=rt.createTypedArray(h,g,d,d);o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),w)}this._initialized=!0}E||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texSubImage2D(s,0,t,n,h,Qe.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Zd.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._size),r=A(r,this._size),T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new x("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new x("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const Bw={DONT_CARE:ae.DONT_CARE,FASTEST:ae.FASTEST,NICEST:ae.NICEST,validate:function(e){return e===Bw.DONT_CARE||e===Bw.FASTEST||e===Bw.NICEST}},d0=Object.freeze(Bw),Rw={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR};Rw.validate=function(e){return e===Rw.NEAREST||e===Rw.LINEAR};const Kr=Object.freeze(Rw),Uh={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR,NEAREST_MIPMAP_NEAREST:ae.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:ae.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:ae.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:ae.LINEAR_MIPMAP_LINEAR};Uh.validate=function(e){return e===Uh.NEAREST||e===Uh.LINEAR||e===Uh.NEAREST_MIPMAP_NEAREST||e===Uh.LINEAR_MIPMAP_NEAREST||e===Uh.NEAREST_MIPMAP_LINEAR||e===Uh.LINEAR_MIPMAP_LINEAR};const In=Object.freeze(Uh),Nw={CLAMP_TO_EDGE:ae.CLAMP_TO_EDGE,REPEAT:ae.REPEAT,MIRRORED_REPEAT:ae.MIRRORED_REPEAT,validate:function(e){return e===Nw.CLAMP_TO_EDGE||e===Nw.REPEAT||e===Nw.MIRRORED_REPEAT}},Fi=Object.freeze(Nw);function ii(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.wrapS,Fi.CLAMP_TO_EDGE),n=A(e.wrapT,Fi.CLAMP_TO_EDGE),i=A(e.minificationFilter,In.LINEAR),o=A(e.magnificationFilter,Kr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Fi.validate(t))throw new x("Invalid sampler.wrapS.");if(!Fi.validate(n))throw new x("Invalid sampler.wrapT.");if(!In.validate(i))throw new x("Invalid sampler.minificationFilter.");if(!Kr.validate(o))throw new x("Invalid sampler.magnificationFilter.");T.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(ii.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});ii.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};ii.NEAREST=Object.freeze(new ii({wrapS:Fi.CLAMP_TO_EDGE,wrapT:Fi.CLAMP_TO_EDGE,minificationFilter:In.NEAREST,magnificationFilter:Kr.NEAREST}));function bu(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const E=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!E[0]||!E[1]||!E[2]||!E[3]||!E[4]||!E[5])throw new x("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=E[0].width,o=E[0].height;for(let w=1;w<6;++w)if(Number(E[w].width)!==i||Number(E[w].height)!==o)throw new x("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=A(e.pixelDatatype,Qe.UNSIGNED_BYTE),a=A(e.pixelFormat,rt.RGBA),c=rt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new x("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new x("Width must equal height.");if(r<=0)throw new x("Width and height must be greater than zero.");if(r>It.maximumCubeMapSize)throw new x(`Width and height must be less than or equal to the maximum cube map size (${It.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!rt.validate(a))throw new x("Invalid options.pixelFormat.");if(rt.isDepthFormat(a))throw new x("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=rt.textureSizeInBytes(a,s,r,r)*6,d=e.preMultiplyAlpha||a===rt.RGB||a===rt.LUMINANCE,h=A(e.flipY,!0),m=A(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);function b(E,w,S,P,L){let z=w.arrayBufferView;l(z)||(z=w.bufferView);let R=4;l(z)&&(R=rt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),L?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(z)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(z=rt.flipY(z,a,s,r,r)),g.texImage2D(E,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),z)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(E,0,c,a,Qe.toWebGLConstant(s,t),w))}l(n)?(b(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,d,h,m)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=y,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=d,this._flipY=h,this._sampler=void 0;const C=l(n);this._positiveX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,d,h,C),this._negativeX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,d,h,C),this._positiveY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,d,h,C),this._negativeY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,d,h,C),this._positiveZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,d,h,C),this._negativeZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,d,h,C),this.sampler=l(e.sampler)?e.sampler:new ii}Object.defineProperties(bu.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Qe.FLOAT&&!o.textureFloatLinear||r===Qe.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});bu.prototype.generateMipmap=function(e){if(e=A(e,d0.DONT_CARE),this._size>1&&!M.isPowerOfTwo(this._size))throw new x("width and height must be a power of two to call generateMipmap().");if(!d0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};bu.prototype.isDestroyed=function(){return!1};bu.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=He(this._positiveX),this._negativeX=He(this._negativeX),this._positiveY=He(this._positiveY),this._negativeY=He(this._negativeY),this._positiveZ=He(this._positiveZ),this._negativeZ=He(this._negativeZ),He(this)};function J_(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function w0e(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` `);if(/#version 300 es/g.test(e))return e;let o=-1,r,s;for(r=0;r=0;S--)i.splice(C,0,`#endif //${E[S]}`)}const h="WEBGL_2",m=`#define ${h}`,g="#version 300 es";let p=!1;for(r=0;r=0}):n[h]=o.slice())}}return n}function p1(e,t,n){const i=`#extension\\s+GL_${e}\\s+:\\s+[a-zA-Z0-9]+\\s*$`;S0e(new RegExp(i,"g"),"",n),Vu(`GL_${e}`,t,n)}const P0e=`/** * A built-in GLSL floating-point constant for converting radians to degrees. @@ -3526,7 +3526,7 @@ void main() } gl_FragColor = czm_pickColor; }`;return`${n} -${i}`};function eCe(e,t){const n=e.defines,i=n.length;for(let o=0;o-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};Cu.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};Cu.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new We({sources:[r]})),typeof s=="string"&&(s=new We({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),d=s.createCombinedFragmentShader(c),h=new Cn({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:d,attributeLocations:a}),m={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=m,this._shaders[o]=m,h};function fM(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;oIt.maximumTextureSize)throw new x(`Width must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(T.typeOf.number.greaterThan("height",i,0),i>It.maximumTextureSize)throw new x(`Height must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(!rt.validate(r))throw new x("Invalid options.pixelFormat.");if(!c&&!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(r===rt.DEPTH_COMPONENT&&s!==Qe.UNSIGNED_SHORT&&s!==Qe.UNSIGNED_INT)throw new x("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===rt.DEPTH_STENCIL&&s!==Qe.UNSIGNED_INT_24_8)throw new x("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(rt.isDepthFormat(r)){if(l(o))throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new x("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(rt.isDXTFormat(a)&&!t.s3tc)throw new x("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(rt.isPVRTCFormat(a)&&!t.pvrtc)throw new x("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(rt.isASTCFormat(a)&&!t.astc)throw new x("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(rt.isETC2Format(a)&&!t.etc)throw new x("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(rt.isETC1Format(a)&&!t.etc1)throw new x("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(rt.isBC7Format(a)&&!t.bc7)throw new x("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(rt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new x("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===rt.RGB||r===rt.LUMINANCE,d=A(e.flipY,!0),h=A(e.skipColorSpaceConversion,!1);let m=!0;const g=t._gl,p=g.TEXTURE_2D,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);let b=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(b=rt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,b),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let E=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,E),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new x("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new x("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new Wt({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(Wt.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR;(r===Qe.FLOAT&&!i.textureFloatLinear||r===Qe.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST),i.webgl2&&rt.isDepthFormat(o)&&(t=In.NEAREST,n=Kr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});Wt.prototype.copyFrom=function(e){T.defined("options",e);const t=A(e.xOffset,0),n=A(e.yOffset,0);if(T.defined("options.source",e.source),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",t,0),T.typeOf.number.greaterThanOrEquals("yOffset",n,0),T.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),T.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._width,h=this._height,m=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,y=this._preMultiplyAlpha,b=this._flipY,C=A(e.skipColorSpaceConversion,!1);let E=4;l(u)&&(E=rt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,E),C?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,d,h)),r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texImage2D(s,0,m,g,Qe.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=rt.createTypedArray(g,p,d,h);r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texSubImage2D(s,0,t,n,g,Qe.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};Wt.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._width),r=A(r,this._height),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),T.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),T.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};Wt.prototype.generateMipmap=function(e){if(e=A(e,f0.DONT_CARE),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!M.isPowerOfTwo(this._width))throw new x("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!M.isPowerOfTwo(this._height))throw new x("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!f0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};Wt.prototype.isDestroyed=function(){return!1};Wt.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),He(this)};function Q_(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(Q_.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});Q_.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};Q_.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};Q_.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};Q_.prototype.isDestroyed=function(){return!1};Q_.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return He(this)};function Rn(){this.high=f.clone(f.ZERO),this.low=f.clone(f.ZERO)}Rn.encode=function(e,t){T.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const kd={high:0,low:0};Rn.fromCartesian=function(e,t){T.typeOf.object("cartesian",e),l(t)||(t=new Rn);const n=t.high,i=t.low;return Rn.encode(e.x,kd),n.x=kd.high,i.x=kd.low,Rn.encode(e.y,kd),n.y=kd.high,i.y=kd.low,Rn.encode(e.z,kd),n.z=kd.high,i.z=kd.low,t};const _1=new Rn;Rn.writeElements=function(e,t,n){T.defined("cartesianArray",t),T.typeOf.number("index",n),T.typeOf.number.greaterThanOrEquals("index",n,0),Rn.fromCartesian(e,_1);const i=_1.high,o=_1.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function Pt(e,t){if(T.typeOf.object("normal",e),!M.equalsEpsilon(f.magnitude(e),1,M.EPSILON6))throw new x("normal must be normalized.");T.typeOf.number("distance",t),this.normal=f.clone(e),this.distance=t}Pt.fromPointNormal=function(e,t,n){if(T.typeOf.object("point",e),T.typeOf.object("normal",t),!M.equalsEpsilon(f.magnitude(t),1,M.EPSILON6))throw new x("normal must be normalized.");const i=-f.dot(t,e);return l(n)?(f.clone(t,n.normal),n.distance=i,n):new Pt(t,i)};const oCe=new f;Pt.fromCartesian4=function(e,t){T.typeOf.object("coefficients",e);const n=f.fromCartesian4(e,oCe),i=e.w;if(!M.equalsEpsilon(f.magnitude(n),1,M.EPSILON6))throw new x("normal must be normalized.");return l(t)?(f.clone(n,t.normal),t.distance=i,t):new Pt(n,i)};Pt.getPointDistance=function(e,t){return T.typeOf.object("plane",e),T.typeOf.object("point",t),f.dot(e.normal,t)+e.distance};const rCe=new f;Pt.projectPointOntoPlane=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("point",t),l(n)||(n=new f);const i=Pt.getPointDistance(e,t),o=f.multiplyByScalar(e.normal,i,rCe);return f.subtract(t,o,n)};const sCe=new B,aCe=new oe,cCe=new f;Pt.transform=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,sCe);let s=oe.fromElements(i.x,i.y,i.z,o,aCe);s=B.multiplyByVector(r,s,s);const a=f.fromCartesian4(s,cCe);return s=oe.divideByScalar(s,f.magnitude(a),s),Pt.fromCartesian4(s,n)};Pt.clone=function(e,t){return T.typeOf.object("plane",e),l(t)?(f.clone(e.normal,t.normal),t.distance=e.distance,t):new Pt(e.normal,e.distance)};Pt.equals=function(e,t){return T.typeOf.object("left",e),T.typeOf.object("right",t),e.distance===t.distance&&f.equals(e.normal,t.normal)};Pt.ORIGIN_XY_PLANE=Object.freeze(new Pt(f.UNIT_Z,0));Pt.ORIGIN_YZ_PLANE=Object.freeze(new Pt(f.UNIT_X,0));Pt.ORIGIN_ZX_PLANE=Object.freeze(new Pt(f.UNIT_Y,0));function ar(e){this.planes=A(e,[])}const bC=[new f,new f,new f];f.clone(f.UNIT_X,bC[0]);f.clone(f.UNIT_Y,bC[1]);f.clone(f.UNIT_Z,bC[2]);const bh=new f,lCe=new f,Tq=new Pt(new f(1,0,0),0);ar.fromBoundingSphere=function(e,t){if(!l(e))throw new x("boundingSphere is required.");l(t)||(t=new ar);const n=bC.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new x("right must be greater than left.");if(e.bottom>e.top)throw new x("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(Wo.prototype,{projectionMatrix:{get:function(){return Eq(this),this._orthographicMatrix}}});const uCe=new f,dCe=new f,fCe=new f,g1=new f;Wo.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("direction is required.");if(!l(n))throw new x("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,d=f.cross(t,n,uCe);f.normalize(d,d);const h=dCe;f.multiplyByScalar(t,c,h),f.add(e,h,h);const m=fCe;f.multiplyByScalar(d,a,m),f.add(h,m,m);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=d.x,g.y=d.y,g.z=d.z,g.w=-f.dot(d,m),f.multiplyByScalar(d,s,m),f.add(h,m,m),g=i[1],l(g)||(g=i[1]=new oe),g.x=-d.x,g.y=-d.y,g.z=-d.z,g.w=-f.dot(f.negate(d,g1),m),f.multiplyByScalar(n,r,m),f.add(h,m,m),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-f.dot(n,m),f.multiplyByScalar(n,o,m),f.add(h,m,m),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-f.dot(f.negate(n,g1),m),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-f.dot(t,h),f.multiplyByScalar(t,u,m),f.add(e,m,m),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-f.dot(f.negate(t,g1),m),this._cullingVolume};Wo.prototype.getPixelDimensions=function(e,t,n,i,o){if(Eq(this),!l(e)||!l(t))throw new x("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new x("drawingBufferWidth must be greater than zero.");if(t<=0)throw new x("drawingBufferHeight must be greater than zero.");if(!l(n))throw new x("distance is required.");if(!l(i))throw new x("pixelRatio is required.");if(i<=0)throw new x("pixelRatio must be greater than zero.");if(!l(o))throw new x("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};Wo.prototype.clone=function(e){return l(e)||(e=new Wo),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};Wo.prototype.equals=function(e){return l(e)&&e instanceof Wo&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};Wo.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof Wo&&M.equalsEpsilon(this.right,e.right,t,n)&&M.equalsEpsilon(this.left,e.left,t,n)&&M.equalsEpsilon(this.top,e.top,t,n)&&M.equalsEpsilon(this.bottom,e.bottom,t,n)&&M.equalsEpsilon(this.near,e.near,t,n)&&M.equalsEpsilon(this.far,e.far,t,n)};function Gt(e){e=A(e,A.EMPTY_OBJECT),this._offCenterFrustum=new Wo,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=A(e.near,1),this._near=this.near,this.far=A(e.far,5e8),this._far=this.far}Gt.packedLength=4;Gt.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Gt.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Gt),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function E_(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new x("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new x("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Gt.prototype,{projectionMatrix:{get:function(){return E_(this),this._offCenterFrustum.projectionMatrix}}});Gt.prototype.computeCullingVolume=function(e,t,n){return E_(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Gt.prototype.getPixelDimensions=function(e,t,n,i,o){return E_(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Gt.prototype.clone=function(e){return l(e)||(e=new Gt),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Gt.prototype.equals=function(e){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Gt.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),M.equalsEpsilon(this.width,e.width,t,n)&&M.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const hM={};function hCe(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const pCe=32.184,mCe=2451545;function xq(e,t){t=ie.addSeconds(e,pCe,t);const n=ie.totalDays(t)-mCe;return t=ie.addSeconds(t,hCe(n),t),t}const GS=new ie(2451545,0,$n.TAI),_Ce=1e3,$c=M.RADIANS_PER_DEGREE,tc=M.RADIANS_PER_ARCSECOND,Fs=14959787e4,xU=new J;function wq(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=M.PI),n<0||n>M.PI)throw new x("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,d=yCe(r-i,t);if(gCe(t,0)==="Hyperbolic"&&Math.abs(M.negativePiToPi(d))>=Math.acos(-1/t))throw new x("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");TCe(c,n,u,xU);const m=a*(1+t),g=Math.cos(d),p=Math.sin(d),y=1+t*g;if(y<=M.Epsilon10)throw new x("elements cannot be converted to cartesian");const b=m/y;return l(s)?(s.x=b*g,s.y=b*p,s.z=0):s=new f(b*g,b*p,0),J.multiplyByVector(xU,s,s)}function gCe(e,t){if(e<0)throw new x("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function yCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=bCe(e,t);return CCe(n,t)}const wU=50,ACe=M.EPSILON8;function bCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rACe;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=wU)throw new x("Kepler equation did not converge");return o=i+n*M.TWO_PI,o}function CCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=M.zeroToTwoPi(r),e<0&&(r-=M.TWO_PI),r+=n*M.TWO_PI,r}function TCe(e,t,n,i){if(t<0||t>M.PI)throw new x("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const ECe=1.0000010178*Fs,xCe=100.46645683*$c,wCe=129597742283429e-5*tc,SU=16002,vU=21863,DU=32004,IU=10931,PU=14529,OU=16368,LU=15318,BU=32794,SCe=64*1e-7*Fs,vCe=-152*1e-7*Fs,DCe=62*1e-7*Fs,ICe=-8*1e-7*Fs,PCe=32*1e-7*Fs,OCe=-41*1e-7*Fs,LCe=19*1e-7*Fs,BCe=-11*1e-7*Fs,RCe=-150*1e-7*Fs,NCe=-46*1e-7*Fs,MCe=68*1e-7*Fs,FCe=54*1e-7*Fs,zCe=14*1e-7*Fs,UCe=24*1e-7*Fs,HCe=-28*1e-7*Fs,VCe=22*1e-7*Fs,RU=10,NU=16002,MU=21863,FU=10931,zU=1473,UU=32004,HU=4387,VU=73,kCe=-325*1e-7,GCe=-322*1e-7,WCe=-79*1e-7,jCe=232*1e-7,qCe=-52*1e-7,$Ce=97*1e-7,YCe=55*1e-7,XCe=-41*1e-7,KCe=-105*1e-7,JCe=-137*1e-7,QCe=258*1e-7,ZCe=35*1e-7,eTe=-116*1e-7,tTe=-88*1e-7,nTe=-112*1e-7,iTe=-80*1e-7,My=new ie(0,0,$n.TAI);function oTe(e,t){xq(e,My);const i=(My.dayNumber-GS.dayNumber+(My.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/(Ni.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=ECe+SCe*Math.cos(SU*o)+RCe*Math.sin(SU*o)+vCe*Math.cos(vU*o)+NCe*Math.sin(vU*o)+DCe*Math.cos(DU*o)+MCe*Math.sin(DU*o)+ICe*Math.cos(IU*o)+FCe*Math.sin(IU*o)+PCe*Math.cos(PU*o)+zCe*Math.sin(PU*o)+OCe*Math.cos(OU*o)+UCe*Math.sin(OU*o)+LCe*Math.cos(LU*o)+HCe*Math.sin(LU*o)+BCe*Math.cos(BU*o)+VCe*Math.sin(BU*o),s=xCe+wCe*i+kCe*Math.cos(RU*o)+KCe*Math.sin(RU*o)+GCe*Math.cos(NU*o)+JCe*Math.sin(NU*o)+WCe*Math.cos(MU*o)+QCe*Math.sin(MU*o)+jCe*Math.cos(FU*o)+ZCe*Math.sin(FU*o)+qCe*Math.cos(zU*o)+eTe*Math.sin(zU*o)+$Ce*Math.cos(UU*o)+tTe*Math.sin(UU*o)+YCe*Math.cos(HU*o)+nTe*Math.sin(HU*o)+XCe*Math.cos(VU*o)+iTe*Math.sin(VU*o),a=.0167086342-.0004203654*i,c=102.93734808*$c+11612.3529*tc*i,u=469.97289*tc*i,d=174.87317577*$c-8679.27034*tc*i;return wq(r,a,u,c,d,s,t)}function Sq(e,t){xq(e,My);const i=(My.dayNumber-GS.dayNumber+(My.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/Ni.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*$c;let d=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*$c;let m=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*$c;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const y=218.31664563*$c;let b=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const C=297.85019547*$c+tc*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),E=93.27209062*$c+tc*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*$c+tc*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*$c+tc*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*$c-tc*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),L=2*C,z=4*C,R=6*C,F=2*w,U=3*w,D=4*w,I=2*E;a+=3400.4*Math.cos(L)-635.6*Math.cos(L-w)-235.6*Math.cos(w)+218.1*Math.cos(L-S)+181*Math.cos(L+w),c+=.014216*Math.cos(L-w)+.008551*Math.cos(L-F)-.001383*Math.cos(w)+.001356*Math.cos(L+w)-.001147*Math.cos(z-U)-914e-6*Math.cos(z-F)+869e-6*Math.cos(L-S-w)-627e-6*Math.cos(L)-394e-6*Math.cos(z-D)+282e-6*Math.cos(L-S-F)-279e-6*Math.cos(C-w)-236e-6*Math.cos(F)+231e-6*Math.cos(z)+229e-6*Math.cos(R-D)-201e-6*Math.cos(F-I),d+=486.26*Math.cos(L-I)-40.13*Math.cos(L)+37.51*Math.cos(I)+25.73*Math.cos(F-I)+19.97*Math.cos(L-S-I),m+=-55609*Math.sin(L-w)-34711*Math.sin(L-F)-9792*Math.sin(w)+9385*Math.sin(z-U)+7505*Math.sin(z-F)+5318*Math.sin(L+w)+3484*Math.sin(z-D)-3417*Math.sin(L-S-w)-2530*Math.sin(R-D)-2376*Math.sin(L)-2075*Math.sin(L-U)-1883*Math.sin(F)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-U),p+=-5392*Math.sin(L-I)-540*Math.sin(S)-441*Math.sin(L)+423*Math.sin(I)-288*Math.sin(F-I),b+=-3332.9*Math.sin(L)+1197.4*Math.sin(L-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(L-S);const _=2*P,v=3*P;d+=46.997*Math.cos(P)*i-.614*Math.cos(L-I+P)*i+.614*Math.cos(L-I-P)*i-.0297*Math.cos(_)*o-.0335*Math.cos(P)*o+.0012*Math.cos(L-I+_)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(v)*r+4e-5*Math.cos(_)*r;const O=2.116*Math.sin(P)*i-.111*Math.sin(L-I-P)*i-.0015*Math.sin(P)*o;m+=O,b+=O,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(L-I+P)*i+1.12*Math.sin(L-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(_)*o+.371*Math.sin(P)*o-.035*Math.sin(L-I+_)*o-.015*Math.sin(L-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(v)*r-9e-4*Math.sin(_)*r,a*=_Ce;const N=u+d*tc,V=h+m*tc,k=y+b*tc,G=g+p*tc;return wq(a,c,N,V,G,k,t)}const kU=.012300034,rTe=kU/(kU+1)*-1;function sTe(e,t){return t=Sq(e,t),f.multiplyByScalar(t,rTe,t)}const vq=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let lA=new f;hM.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),l(t)||(t=new f),lA=oTe(e,lA),t=f.negate(lA,t),sTe(e,lA),f.subtract(t,lA,t),J.multiplyByVector(vq,t,t),t};hM.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),t=Sq(e,t),J.multiplyByVector(vq,t,t),t};const hB=hM,Mw={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};Mw.getMorphTime=function(e){return e===Mw.SCENE3D?1:e===Mw.MORPHING?void 0:0};const le=Object.freeze(Mw);function aD(e){e=A(e,A.EMPTY_OBJECT),this.color=H.clone(A(e.color,H.WHITE)),this.intensity=A(e.intensity,2)}function L0(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new Ye,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new Rn,this._cameraPosition=new f,this._sunPositionWC=new f,this._sunPositionColumbusView=new f,this._sunDirectionWC=new f,this._sunDirectionEC=new f,this._moonDirectionEC=new f,this._lightDirectionWC=new f,this._lightDirectionEC=new f,this._lightColor=new f,this._lightColorHdr=new f,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new f,this._cameraRight=new f,this._cameraUp=new f,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new H,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(L0.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!Ye.equals(e,this._viewport)){Ye.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return GU(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return GU(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return y1(this),this._view3D}},viewRotation:{get:function(){return y1(this),this._viewRotation}},viewRotation3D:{get:function(){return y1(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return qU(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return qU(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return _Te(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return gTe(this),this._modelView}},modelView3D:{get:function(){return yTe(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return xTe(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return ATe(this),this._inverseModelView}},inverseModelView3D:{get:function(){return bTe(this),this._inverseModelView3D}},viewProjection:{get:function(){return CTe(this),this._viewProjection}},inverseViewProjection:{get:function(){return TTe(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return ETe(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return wTe(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return STe(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return vTe(this),this._modelViewInfiniteProjection}},normal:{get:function(){return DTe(this),this._normal}},normal3D:{get:function(){return ITe(this),this._normal3D}},inverseNormal:{get:function(){return PTe(this),this._inverseNormal}},inverseNormal3D:{get:function(){return OTe(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return jU(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return jU(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return A(this._ellipsoid,me.WGS84)}}});function aTe(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function cTe(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function lTe(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function uTe(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function dTe(e,t){f.clone(t.positionWC,e._cameraPosition),f.clone(t.directionWC,e._cameraDirection),f.clone(t.rightWC,e._cameraRight),f.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let uA=new J;const fTe=new Ce;function hTe(e,t){l(cn.computeIcrfToFixedMatrix(t.time,uA))||(uA=cn.computeTemeToPseudoFixedMatrix(t.time,uA));let n=hB.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(uA,n,n),f.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),f.normalize(n,n),n=hB.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(uA,n,n),J.multiplyByVector(e.viewRotation3D,n,n),f.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,fTe);i.project(r,e._sunPositionColumbusView)}L0.prototype.updateCamera=function(e){aTe(this,e.viewMatrix),cTe(this,e.inverseViewMatrix),dTe(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Gt};L0.prototype.updateFrustum=function(e){lTe(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&uTe(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=M.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};L0.prototype.updatePass=function(e){this._pass=e};const pTe=[],mTe=new aD;L0.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),hTe(this,e);const n=A(e.light,mTe);n instanceof aD?(this._lightDirectionWC=f.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=f.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=f.normalize(f.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=f.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=f.multiplyByScalar(o,n.intensity,o);const r=f.maximumComponent(o);r>1?f.divideByScalar(o,r,this._lightColor):f.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=A(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=A(e.sphericalHarmonicCoefficients,pTe),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=cn.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let d;l(c)?u.height>u.width?d=Math.tan(.5*c)*2/u.height:d=Math.tan(.5*c)*2/u.width:d=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=d*e.maximumScreenSpaceError,H.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function GU(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function _Te(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function gTe(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function yTe(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function ATe(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function bTe(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function CTe(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function TTe(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function ETe(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function xTe(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function wTe(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function STe(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function vTe(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function DTe(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function ITe(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function PTe(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function OTe(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const WU=new f;function jU(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,WU),Rn.fromCartesian(WU,e._encodedCameraPositionMC))}const LTe=new f,BTe=new f,RTe=new f,NTe=new f,MTe=new Ce,FTe=new f,zTe=new B;function UTe(e,t,n,i,o,r,s,a){const c=LTe;c.x=e.y,c.y=e.z,c.z=e.x;const u=BTe;u.x=n.y,u.y=n.z,u.z=n.x;const d=RTe;d.x=i.y,d.y=i.z,d.z=i.x;const h=NTe;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const m=s.unproject(c,MTe);m.longitude=M.clamp(m.longitude,-Math.PI,Math.PI),m.latitude=M.clamp(m.latitude,-M.PI_OVER_TWO,M.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(m,FTe),y=cn.eastNorthUpToFixedFrame(p,g,zTe);return B.multiplyByPointAsVector(y,u,u),B.multiplyByPointAsVector(y,d,d),B.multiplyByPointAsVector(y,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=d.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=d.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=d.z,a[10]=-h.z,a[11]=0,a[12]=-f.dot(u,p),a[13]=-f.dot(d,p),a[14]=f.dot(h,p),a[15]=1,a}function y1(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):UTe(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function qU(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function HTe(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new x("attribute must have a vertexBuffer or a value.");if(o&&r)throw new x("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new x("attribute.value.length must be in the range [1, 4]."):new x("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new x("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new x("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new x("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new x("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new x("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new x("attribute zero cannot have an instanceDivisor greater than 0");const a={index:A(t.index,n),enabled:A(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:A(t.componentDatatype,ee.FLOAT),normalize:A(t.normalize,!1),offsetInBytes:A(t.offsetInBytes,0),strideInBytes:A(t.strideInBytes,0),instanceDivisor:A(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function Dq(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=$U(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),d=a%u;d!==0&&(a+=u-d);const h=r*a,m=new ArrayBuffer(h),g={};for(t=0;t=M.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?m=Tt.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:at.UNSIGNED_INT}):m=Tt.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:at.UNSIGNED_SHORT})),new ho({context:t,attributes:d,indexBuffer:m})};Object.defineProperties(ho.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});ho.prototype.getAttribute=function(e){return T.defined("index",e),this._attributes[e]};function GTe(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=It.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function WTe(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Ie("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Ie("The browser supports WebGL, but initialization failed.");return r}function qTe(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function $Te(e,t,n,i){let o=`${qTe(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=KTe(this._originalGLContext,e?YTe:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new Wt({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new bu({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return JTe}}});function QTe(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new x(i)}}}function Iq(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,et.partialApply(e._gl,o,t,r,n,i)}let pM;typeof WebGLRenderingContext<"u"&&(pM=[ae.BACK]);function mM(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=pM;if(l(t))t._bind(),QTe(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const ZTe=new co;Ka.prototype.clear=function(e,t){e=A(e,ZTe),t=A(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(H.equals(this._clearColor,o)||(H.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=A(e.renderState,this._defaultRenderState);Iq(this,a,t,!0);const c=A(e.framebuffer,t.framebuffer);mM(this,c),n.clear(i)};function eEe(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new x("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");mM(e,t),Iq(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function tEe(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Ze.validate(o))throw new x("drawCommand.primitiveType is required and must be valid.");if(T.defined("drawCommand.vertexArray",r),T.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&T.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),T.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new x("Instanced arrays extension is not supported");e._us.model=A(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=A(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=A(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}Ka.prototype.draw=function(e,t,n,i){T.defined("drawCommand",e),T.defined("drawCommand.shaderProgram",e._shaderProgram),t=A(t,this._defaultPassState);const o=A(e._framebuffer,t.framebuffer),r=A(e._renderState,this._defaultRenderState);n=A(n,e._shaderProgram),i=A(i,e._uniformMap),eEe(this,o,t,n,r),tEe(this,e,n,i)};Ka.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=pM;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=rt.createTypedArray(rt.RGBA,a,o,r);return mM(this,s),t.readPixels(n,i,o,r,rt.RGBA,Qe.toWebGLConstant(a,this),c),c};const Pq={position:0,textureCoordinates:1};Ka.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new Lt({attributes:{position:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Ze.TRIANGLES});e=ho.fromGeometry({context:this,geometry:t,attributeLocations:Pq,bufferUsage:nt.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};Ka.prototype.createViewportQuadCommand=function(e,t){return t=A(t,A.EMPTY_OBJECT),new mt({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Ze.TRIANGLES,renderState:t.renderState,shaderProgram:Cn.fromCache({context:this,vertexShaderSource:aj,fragmentShaderSource:e,attributeLocations:Pq}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};Ka.prototype.getObjectByPickColor=function(e){return T.defined("pickColor",e),this._pickObjects[e.toRgba()]};function _M(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(_M.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});_M.prototype.destroy=function(){delete this._pickObjects[this.key]};Ka.prototype.createPickId=function(e){T.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Ie("Out of unique Pick IDs.");return this._pickObjects[t]=e,new _M(this._pickObjects,t,H.fromRgba(t))};Ka.prototype.isDestroyed=function(){return!1};Ka.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),He(this)};Ka._deprecationWarning=$p;function B0(e){e=A(e,A.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;T.defined("options.context",t),T.defined("options.width",n),T.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new x("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new x("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Yr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new Yr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}B0.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};B0.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};B0.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};B0.prototype.isDestroyed=function(){return!1};B0.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),He(this)};const ka={RGBA4:ae.RGBA4,RGBA8:ae.RGBA8,RGBA16F:ae.RGBA16F,RGBA32F:ae.RGBA32F,RGB5_A1:ae.RGB5_A1,RGB565:ae.RGB565,DEPTH_COMPONENT16:ae.DEPTH_COMPONENT16,STENCIL_INDEX8:ae.STENCIL_INDEX8,DEPTH_STENCIL:ae.DEPTH_STENCIL,DEPTH24_STENCIL8:ae.DEPTH24_STENCIL8,validate:function(e){return e===ka.RGBA4||e===ka.RGBA8||e===ka.RGBA16F||e===ka.RGBA32F||e===ka.RGB5_A1||e===ka.RGB565||e===ka.DEPTH_COMPONENT16||e===ka.STENCIL_INDEX8||e===ka.DEPTH_STENCIL||e===ka.DEPTH24_STENCIL8},getColorFormat:function(e){return e===ae.FLOAT?ka.RGBA32F:e===ae.HALF_FLOAT_OES?ka.RGBA16F:ka.RGBA8}},af=Object.freeze(ka);function Xl(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const n=e.context._gl,i=It.maximumRenderbufferSize,o=A(e.format,af.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=A(e.numSamples,1);if(!af.validate(o))throw new x("Invalid format.");if(T.typeOf.number.greaterThan("width",r,0),r>i)throw new x(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(T.typeOf.number.greaterThan("height",s,0),s>i)throw new x(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(Xl.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});Xl.prototype._getRenderbuffer=function(){return this._renderbuffer};Xl.prototype.isDestroyed=function(){return!1};Xl.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),He(this)};function Ln(e){if(e=A(e,A.EMPTY_OBJECT),this._numSamples=A(e.numSamples,1),this._colorAttachmentsLength=A(e.colorAttachmentsLength,1),this._color=A(e.color,!0),this._depth=A(e.depth,!1),this._depthStencil=A(e.depthStencil,!1),this._supportsDepthTexture=A(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new x("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new x("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=A(e.createColorAttachments,!0),this._createDepthAttachments=A(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Ln.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Ln.prototype.isDirty=function(e,t,n,i,o){n=A(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};Ln.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new x("width and height must be defined.");if(i=e.msaa?A(i,1):1,o=A(o,this._color?A(this._pixelDatatype,Qe.UNSIGNED_BYTE):void 0),r=A(r,this._color?A(this._pixelFormat,rt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=af.getColorFormat(o);this._colorRenderbuffers[s]=new Xl({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_STENCIL,pixelDatatype:Qe.UNSIGNED_INT_24_8,sampler:ii.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_COMPONENT,pixelDatatype:Qe.UNSIGNED_INT,sampler:ii.NEAREST}):this._depthRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new B0({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Yr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Ln.prototype.getColorTexture=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorTextures[e]};Ln.prototype.setColorTexture=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Ln.prototype.getColorRenderbuffer=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};Ln.prototype.setColorRenderbuffer=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Ln.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Ln.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Ln.prototype.getDepthTexture=function(){return this._depthTexture};Ln.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Ln.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Ln.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Ln.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Ln.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Ln.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Ln.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Ln.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Ln.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};Cu.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};Cu.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new We({sources:[r]})),typeof s=="string"&&(s=new We({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),d=s.createCombinedFragmentShader(c),h=new Cn({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:d,attributeLocations:a}),m={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=m,this._shaders[o]=m,h};function fM(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;oIt.maximumTextureSize)throw new x(`Width must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(T.typeOf.number.greaterThan("height",i,0),i>It.maximumTextureSize)throw new x(`Height must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(!rt.validate(r))throw new x("Invalid options.pixelFormat.");if(!c&&!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(r===rt.DEPTH_COMPONENT&&s!==Qe.UNSIGNED_SHORT&&s!==Qe.UNSIGNED_INT)throw new x("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===rt.DEPTH_STENCIL&&s!==Qe.UNSIGNED_INT_24_8)throw new x("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(rt.isDepthFormat(r)){if(l(o))throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new x("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(rt.isDXTFormat(a)&&!t.s3tc)throw new x("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(rt.isPVRTCFormat(a)&&!t.pvrtc)throw new x("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(rt.isASTCFormat(a)&&!t.astc)throw new x("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(rt.isETC2Format(a)&&!t.etc)throw new x("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(rt.isETC1Format(a)&&!t.etc1)throw new x("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(rt.isBC7Format(a)&&!t.bc7)throw new x("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(rt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new x("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===rt.RGB||r===rt.LUMINANCE,d=A(e.flipY,!0),h=A(e.skipColorSpaceConversion,!1);let m=!0;const g=t._gl,p=g.TEXTURE_2D,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);let b=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(b=rt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,b),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let E=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,E),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new x("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new x("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new Wt({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(Wt.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR;(r===Qe.FLOAT&&!i.textureFloatLinear||r===Qe.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST),i.webgl2&&rt.isDepthFormat(o)&&(t=In.NEAREST,n=Kr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});Wt.prototype.copyFrom=function(e){T.defined("options",e);const t=A(e.xOffset,0),n=A(e.yOffset,0);if(T.defined("options.source",e.source),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",t,0),T.typeOf.number.greaterThanOrEquals("yOffset",n,0),T.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),T.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._width,h=this._height,m=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,y=this._preMultiplyAlpha,b=this._flipY,C=A(e.skipColorSpaceConversion,!1);let E=4;l(u)&&(E=rt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,E),C?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,d,h)),r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texImage2D(s,0,m,g,Qe.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=rt.createTypedArray(g,p,d,h);r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texSubImage2D(s,0,t,n,g,Qe.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};Wt.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._width),r=A(r,this._height),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),T.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),T.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};Wt.prototype.generateMipmap=function(e){if(e=A(e,d0.DONT_CARE),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!M.isPowerOfTwo(this._width))throw new x("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!M.isPowerOfTwo(this._height))throw new x("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!d0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};Wt.prototype.isDestroyed=function(){return!1};Wt.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),He(this)};function Q_(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(Q_.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});Q_.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};Q_.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};Q_.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};Q_.prototype.isDestroyed=function(){return!1};Q_.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return He(this)};function Rn(){this.high=f.clone(f.ZERO),this.low=f.clone(f.ZERO)}Rn.encode=function(e,t){T.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const kd={high:0,low:0};Rn.fromCartesian=function(e,t){T.typeOf.object("cartesian",e),l(t)||(t=new Rn);const n=t.high,i=t.low;return Rn.encode(e.x,kd),n.x=kd.high,i.x=kd.low,Rn.encode(e.y,kd),n.y=kd.high,i.y=kd.low,Rn.encode(e.z,kd),n.z=kd.high,i.z=kd.low,t};const _1=new Rn;Rn.writeElements=function(e,t,n){T.defined("cartesianArray",t),T.typeOf.number("index",n),T.typeOf.number.greaterThanOrEquals("index",n,0),Rn.fromCartesian(e,_1);const i=_1.high,o=_1.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function Pt(e,t){if(T.typeOf.object("normal",e),!M.equalsEpsilon(f.magnitude(e),1,M.EPSILON6))throw new x("normal must be normalized.");T.typeOf.number("distance",t),this.normal=f.clone(e),this.distance=t}Pt.fromPointNormal=function(e,t,n){if(T.typeOf.object("point",e),T.typeOf.object("normal",t),!M.equalsEpsilon(f.magnitude(t),1,M.EPSILON6))throw new x("normal must be normalized.");const i=-f.dot(t,e);return l(n)?(f.clone(t,n.normal),n.distance=i,n):new Pt(t,i)};const oCe=new f;Pt.fromCartesian4=function(e,t){T.typeOf.object("coefficients",e);const n=f.fromCartesian4(e,oCe),i=e.w;if(!M.equalsEpsilon(f.magnitude(n),1,M.EPSILON6))throw new x("normal must be normalized.");return l(t)?(f.clone(n,t.normal),t.distance=i,t):new Pt(n,i)};Pt.getPointDistance=function(e,t){return T.typeOf.object("plane",e),T.typeOf.object("point",t),f.dot(e.normal,t)+e.distance};const rCe=new f;Pt.projectPointOntoPlane=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("point",t),l(n)||(n=new f);const i=Pt.getPointDistance(e,t),o=f.multiplyByScalar(e.normal,i,rCe);return f.subtract(t,o,n)};const sCe=new B,aCe=new oe,cCe=new f;Pt.transform=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,sCe);let s=oe.fromElements(i.x,i.y,i.z,o,aCe);s=B.multiplyByVector(r,s,s);const a=f.fromCartesian4(s,cCe);return s=oe.divideByScalar(s,f.magnitude(a),s),Pt.fromCartesian4(s,n)};Pt.clone=function(e,t){return T.typeOf.object("plane",e),l(t)?(f.clone(e.normal,t.normal),t.distance=e.distance,t):new Pt(e.normal,e.distance)};Pt.equals=function(e,t){return T.typeOf.object("left",e),T.typeOf.object("right",t),e.distance===t.distance&&f.equals(e.normal,t.normal)};Pt.ORIGIN_XY_PLANE=Object.freeze(new Pt(f.UNIT_Z,0));Pt.ORIGIN_YZ_PLANE=Object.freeze(new Pt(f.UNIT_X,0));Pt.ORIGIN_ZX_PLANE=Object.freeze(new Pt(f.UNIT_Y,0));function ar(e){this.planes=A(e,[])}const bC=[new f,new f,new f];f.clone(f.UNIT_X,bC[0]);f.clone(f.UNIT_Y,bC[1]);f.clone(f.UNIT_Z,bC[2]);const bh=new f,lCe=new f,Tq=new Pt(new f(1,0,0),0);ar.fromBoundingSphere=function(e,t){if(!l(e))throw new x("boundingSphere is required.");l(t)||(t=new ar);const n=bC.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new x("right must be greater than left.");if(e.bottom>e.top)throw new x("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(Wo.prototype,{projectionMatrix:{get:function(){return Eq(this),this._orthographicMatrix}}});const uCe=new f,dCe=new f,fCe=new f,g1=new f;Wo.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("direction is required.");if(!l(n))throw new x("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,d=f.cross(t,n,uCe);f.normalize(d,d);const h=dCe;f.multiplyByScalar(t,c,h),f.add(e,h,h);const m=fCe;f.multiplyByScalar(d,a,m),f.add(h,m,m);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=d.x,g.y=d.y,g.z=d.z,g.w=-f.dot(d,m),f.multiplyByScalar(d,s,m),f.add(h,m,m),g=i[1],l(g)||(g=i[1]=new oe),g.x=-d.x,g.y=-d.y,g.z=-d.z,g.w=-f.dot(f.negate(d,g1),m),f.multiplyByScalar(n,r,m),f.add(h,m,m),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-f.dot(n,m),f.multiplyByScalar(n,o,m),f.add(h,m,m),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-f.dot(f.negate(n,g1),m),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-f.dot(t,h),f.multiplyByScalar(t,u,m),f.add(e,m,m),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-f.dot(f.negate(t,g1),m),this._cullingVolume};Wo.prototype.getPixelDimensions=function(e,t,n,i,o){if(Eq(this),!l(e)||!l(t))throw new x("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new x("drawingBufferWidth must be greater than zero.");if(t<=0)throw new x("drawingBufferHeight must be greater than zero.");if(!l(n))throw new x("distance is required.");if(!l(i))throw new x("pixelRatio is required.");if(i<=0)throw new x("pixelRatio must be greater than zero.");if(!l(o))throw new x("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};Wo.prototype.clone=function(e){return l(e)||(e=new Wo),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};Wo.prototype.equals=function(e){return l(e)&&e instanceof Wo&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};Wo.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof Wo&&M.equalsEpsilon(this.right,e.right,t,n)&&M.equalsEpsilon(this.left,e.left,t,n)&&M.equalsEpsilon(this.top,e.top,t,n)&&M.equalsEpsilon(this.bottom,e.bottom,t,n)&&M.equalsEpsilon(this.near,e.near,t,n)&&M.equalsEpsilon(this.far,e.far,t,n)};function Gt(e){e=A(e,A.EMPTY_OBJECT),this._offCenterFrustum=new Wo,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=A(e.near,1),this._near=this.near,this.far=A(e.far,5e8),this._far=this.far}Gt.packedLength=4;Gt.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Gt.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Gt),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function E_(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new x("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new x("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Gt.prototype,{projectionMatrix:{get:function(){return E_(this),this._offCenterFrustum.projectionMatrix}}});Gt.prototype.computeCullingVolume=function(e,t,n){return E_(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Gt.prototype.getPixelDimensions=function(e,t,n,i,o){return E_(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Gt.prototype.clone=function(e){return l(e)||(e=new Gt),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Gt.prototype.equals=function(e){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Gt.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),M.equalsEpsilon(this.width,e.width,t,n)&&M.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const hM={};function hCe(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const pCe=32.184,mCe=2451545;function xq(e,t){t=ie.addSeconds(e,pCe,t);const n=ie.totalDays(t)-mCe;return t=ie.addSeconds(t,hCe(n),t),t}const GS=new ie(2451545,0,$n.TAI),_Ce=1e3,Yc=M.RADIANS_PER_DEGREE,nc=M.RADIANS_PER_ARCSECOND,Fs=14959787e4,xU=new J;function wq(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=M.PI),n<0||n>M.PI)throw new x("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,d=yCe(r-i,t);if(gCe(t,0)==="Hyperbolic"&&Math.abs(M.negativePiToPi(d))>=Math.acos(-1/t))throw new x("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");TCe(c,n,u,xU);const m=a*(1+t),g=Math.cos(d),p=Math.sin(d),y=1+t*g;if(y<=M.Epsilon10)throw new x("elements cannot be converted to cartesian");const b=m/y;return l(s)?(s.x=b*g,s.y=b*p,s.z=0):s=new f(b*g,b*p,0),J.multiplyByVector(xU,s,s)}function gCe(e,t){if(e<0)throw new x("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function yCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=bCe(e,t);return CCe(n,t)}const wU=50,ACe=M.EPSILON8;function bCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rACe;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=wU)throw new x("Kepler equation did not converge");return o=i+n*M.TWO_PI,o}function CCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=M.zeroToTwoPi(r),e<0&&(r-=M.TWO_PI),r+=n*M.TWO_PI,r}function TCe(e,t,n,i){if(t<0||t>M.PI)throw new x("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const ECe=1.0000010178*Fs,xCe=100.46645683*Yc,wCe=129597742283429e-5*nc,SU=16002,vU=21863,DU=32004,IU=10931,PU=14529,OU=16368,LU=15318,BU=32794,SCe=64*1e-7*Fs,vCe=-152*1e-7*Fs,DCe=62*1e-7*Fs,ICe=-8*1e-7*Fs,PCe=32*1e-7*Fs,OCe=-41*1e-7*Fs,LCe=19*1e-7*Fs,BCe=-11*1e-7*Fs,RCe=-150*1e-7*Fs,NCe=-46*1e-7*Fs,MCe=68*1e-7*Fs,FCe=54*1e-7*Fs,zCe=14*1e-7*Fs,UCe=24*1e-7*Fs,HCe=-28*1e-7*Fs,VCe=22*1e-7*Fs,RU=10,NU=16002,MU=21863,FU=10931,zU=1473,UU=32004,HU=4387,VU=73,kCe=-325*1e-7,GCe=-322*1e-7,WCe=-79*1e-7,jCe=232*1e-7,qCe=-52*1e-7,$Ce=97*1e-7,YCe=55*1e-7,XCe=-41*1e-7,KCe=-105*1e-7,JCe=-137*1e-7,QCe=258*1e-7,ZCe=35*1e-7,eTe=-116*1e-7,tTe=-88*1e-7,nTe=-112*1e-7,iTe=-80*1e-7,Ny=new ie(0,0,$n.TAI);function oTe(e,t){xq(e,Ny);const i=(Ny.dayNumber-GS.dayNumber+(Ny.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/(Ni.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=ECe+SCe*Math.cos(SU*o)+RCe*Math.sin(SU*o)+vCe*Math.cos(vU*o)+NCe*Math.sin(vU*o)+DCe*Math.cos(DU*o)+MCe*Math.sin(DU*o)+ICe*Math.cos(IU*o)+FCe*Math.sin(IU*o)+PCe*Math.cos(PU*o)+zCe*Math.sin(PU*o)+OCe*Math.cos(OU*o)+UCe*Math.sin(OU*o)+LCe*Math.cos(LU*o)+HCe*Math.sin(LU*o)+BCe*Math.cos(BU*o)+VCe*Math.sin(BU*o),s=xCe+wCe*i+kCe*Math.cos(RU*o)+KCe*Math.sin(RU*o)+GCe*Math.cos(NU*o)+JCe*Math.sin(NU*o)+WCe*Math.cos(MU*o)+QCe*Math.sin(MU*o)+jCe*Math.cos(FU*o)+ZCe*Math.sin(FU*o)+qCe*Math.cos(zU*o)+eTe*Math.sin(zU*o)+$Ce*Math.cos(UU*o)+tTe*Math.sin(UU*o)+YCe*Math.cos(HU*o)+nTe*Math.sin(HU*o)+XCe*Math.cos(VU*o)+iTe*Math.sin(VU*o),a=.0167086342-.0004203654*i,c=102.93734808*Yc+11612.3529*nc*i,u=469.97289*nc*i,d=174.87317577*Yc-8679.27034*nc*i;return wq(r,a,u,c,d,s,t)}function Sq(e,t){xq(e,Ny);const i=(Ny.dayNumber-GS.dayNumber+(Ny.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/Ni.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*Yc;let d=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*Yc;let m=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*Yc;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const y=218.31664563*Yc;let b=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const C=297.85019547*Yc+nc*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),E=93.27209062*Yc+nc*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*Yc+nc*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*Yc+nc*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*Yc-nc*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),L=2*C,z=4*C,R=6*C,F=2*w,U=3*w,D=4*w,I=2*E;a+=3400.4*Math.cos(L)-635.6*Math.cos(L-w)-235.6*Math.cos(w)+218.1*Math.cos(L-S)+181*Math.cos(L+w),c+=.014216*Math.cos(L-w)+.008551*Math.cos(L-F)-.001383*Math.cos(w)+.001356*Math.cos(L+w)-.001147*Math.cos(z-U)-914e-6*Math.cos(z-F)+869e-6*Math.cos(L-S-w)-627e-6*Math.cos(L)-394e-6*Math.cos(z-D)+282e-6*Math.cos(L-S-F)-279e-6*Math.cos(C-w)-236e-6*Math.cos(F)+231e-6*Math.cos(z)+229e-6*Math.cos(R-D)-201e-6*Math.cos(F-I),d+=486.26*Math.cos(L-I)-40.13*Math.cos(L)+37.51*Math.cos(I)+25.73*Math.cos(F-I)+19.97*Math.cos(L-S-I),m+=-55609*Math.sin(L-w)-34711*Math.sin(L-F)-9792*Math.sin(w)+9385*Math.sin(z-U)+7505*Math.sin(z-F)+5318*Math.sin(L+w)+3484*Math.sin(z-D)-3417*Math.sin(L-S-w)-2530*Math.sin(R-D)-2376*Math.sin(L)-2075*Math.sin(L-U)-1883*Math.sin(F)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-U),p+=-5392*Math.sin(L-I)-540*Math.sin(S)-441*Math.sin(L)+423*Math.sin(I)-288*Math.sin(F-I),b+=-3332.9*Math.sin(L)+1197.4*Math.sin(L-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(L-S);const _=2*P,v=3*P;d+=46.997*Math.cos(P)*i-.614*Math.cos(L-I+P)*i+.614*Math.cos(L-I-P)*i-.0297*Math.cos(_)*o-.0335*Math.cos(P)*o+.0012*Math.cos(L-I+_)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(v)*r+4e-5*Math.cos(_)*r;const O=2.116*Math.sin(P)*i-.111*Math.sin(L-I-P)*i-.0015*Math.sin(P)*o;m+=O,b+=O,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(L-I+P)*i+1.12*Math.sin(L-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(_)*o+.371*Math.sin(P)*o-.035*Math.sin(L-I+_)*o-.015*Math.sin(L-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(v)*r-9e-4*Math.sin(_)*r,a*=_Ce;const N=u+d*nc,V=h+m*nc,k=y+b*nc,G=g+p*nc;return wq(a,c,N,V,G,k,t)}const kU=.012300034,rTe=kU/(kU+1)*-1;function sTe(e,t){return t=Sq(e,t),f.multiplyByScalar(t,rTe,t)}const vq=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let lA=new f;hM.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),l(t)||(t=new f),lA=oTe(e,lA),t=f.negate(lA,t),sTe(e,lA),f.subtract(t,lA,t),J.multiplyByVector(vq,t,t),t};hM.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),t=Sq(e,t),J.multiplyByVector(vq,t,t),t};const hB=hM,Mw={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};Mw.getMorphTime=function(e){return e===Mw.SCENE3D?1:e===Mw.MORPHING?void 0:0};const le=Object.freeze(Mw);function aD(e){e=A(e,A.EMPTY_OBJECT),this.color=H.clone(A(e.color,H.WHITE)),this.intensity=A(e.intensity,2)}function O0(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new Ye,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new Rn,this._cameraPosition=new f,this._sunPositionWC=new f,this._sunPositionColumbusView=new f,this._sunDirectionWC=new f,this._sunDirectionEC=new f,this._moonDirectionEC=new f,this._lightDirectionWC=new f,this._lightDirectionEC=new f,this._lightColor=new f,this._lightColorHdr=new f,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new f,this._cameraRight=new f,this._cameraUp=new f,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new H,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(O0.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!Ye.equals(e,this._viewport)){Ye.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return GU(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return GU(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return y1(this),this._view3D}},viewRotation:{get:function(){return y1(this),this._viewRotation}},viewRotation3D:{get:function(){return y1(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return qU(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return qU(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return _Te(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return gTe(this),this._modelView}},modelView3D:{get:function(){return yTe(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return xTe(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return ATe(this),this._inverseModelView}},inverseModelView3D:{get:function(){return bTe(this),this._inverseModelView3D}},viewProjection:{get:function(){return CTe(this),this._viewProjection}},inverseViewProjection:{get:function(){return TTe(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return ETe(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return wTe(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return STe(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return vTe(this),this._modelViewInfiniteProjection}},normal:{get:function(){return DTe(this),this._normal}},normal3D:{get:function(){return ITe(this),this._normal3D}},inverseNormal:{get:function(){return PTe(this),this._inverseNormal}},inverseNormal3D:{get:function(){return OTe(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return jU(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return jU(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return A(this._ellipsoid,me.WGS84)}}});function aTe(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function cTe(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function lTe(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function uTe(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function dTe(e,t){f.clone(t.positionWC,e._cameraPosition),f.clone(t.directionWC,e._cameraDirection),f.clone(t.rightWC,e._cameraRight),f.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let uA=new J;const fTe=new Ce;function hTe(e,t){l(cn.computeIcrfToFixedMatrix(t.time,uA))||(uA=cn.computeTemeToPseudoFixedMatrix(t.time,uA));let n=hB.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(uA,n,n),f.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),f.normalize(n,n),n=hB.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(uA,n,n),J.multiplyByVector(e.viewRotation3D,n,n),f.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,fTe);i.project(r,e._sunPositionColumbusView)}O0.prototype.updateCamera=function(e){aTe(this,e.viewMatrix),cTe(this,e.inverseViewMatrix),dTe(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Gt};O0.prototype.updateFrustum=function(e){lTe(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&uTe(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=M.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};O0.prototype.updatePass=function(e){this._pass=e};const pTe=[],mTe=new aD;O0.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),hTe(this,e);const n=A(e.light,mTe);n instanceof aD?(this._lightDirectionWC=f.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=f.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=f.normalize(f.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=f.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=f.multiplyByScalar(o,n.intensity,o);const r=f.maximumComponent(o);r>1?f.divideByScalar(o,r,this._lightColor):f.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=A(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=A(e.sphericalHarmonicCoefficients,pTe),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=cn.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let d;l(c)?u.height>u.width?d=Math.tan(.5*c)*2/u.height:d=Math.tan(.5*c)*2/u.width:d=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=d*e.maximumScreenSpaceError,H.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function GU(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function _Te(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function gTe(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function yTe(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function ATe(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function bTe(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function CTe(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function TTe(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function ETe(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function xTe(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function wTe(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function STe(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function vTe(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function DTe(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function ITe(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function PTe(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function OTe(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const WU=new f;function jU(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,WU),Rn.fromCartesian(WU,e._encodedCameraPositionMC))}const LTe=new f,BTe=new f,RTe=new f,NTe=new f,MTe=new Ce,FTe=new f,zTe=new B;function UTe(e,t,n,i,o,r,s,a){const c=LTe;c.x=e.y,c.y=e.z,c.z=e.x;const u=BTe;u.x=n.y,u.y=n.z,u.z=n.x;const d=RTe;d.x=i.y,d.y=i.z,d.z=i.x;const h=NTe;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const m=s.unproject(c,MTe);m.longitude=M.clamp(m.longitude,-Math.PI,Math.PI),m.latitude=M.clamp(m.latitude,-M.PI_OVER_TWO,M.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(m,FTe),y=cn.eastNorthUpToFixedFrame(p,g,zTe);return B.multiplyByPointAsVector(y,u,u),B.multiplyByPointAsVector(y,d,d),B.multiplyByPointAsVector(y,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=d.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=d.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=d.z,a[10]=-h.z,a[11]=0,a[12]=-f.dot(u,p),a[13]=-f.dot(d,p),a[14]=f.dot(h,p),a[15]=1,a}function y1(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):UTe(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function qU(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function HTe(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new x("attribute must have a vertexBuffer or a value.");if(o&&r)throw new x("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new x("attribute.value.length must be in the range [1, 4]."):new x("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new x("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new x("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new x("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new x("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new x("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new x("attribute zero cannot have an instanceDivisor greater than 0");const a={index:A(t.index,n),enabled:A(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:A(t.componentDatatype,ee.FLOAT),normalize:A(t.normalize,!1),offsetInBytes:A(t.offsetInBytes,0),strideInBytes:A(t.strideInBytes,0),instanceDivisor:A(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function Dq(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=$U(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),d=a%u;d!==0&&(a+=u-d);const h=r*a,m=new ArrayBuffer(h),g={};for(t=0;t=M.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?m=Tt.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:at.UNSIGNED_INT}):m=Tt.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:at.UNSIGNED_SHORT})),new ho({context:t,attributes:d,indexBuffer:m})};Object.defineProperties(ho.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});ho.prototype.getAttribute=function(e){return T.defined("index",e),this._attributes[e]};function GTe(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=It.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function WTe(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Ie("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Ie("The browser supports WebGL, but initialization failed.");return r}function qTe(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function $Te(e,t,n,i){let o=`${qTe(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=KTe(this._originalGLContext,e?YTe:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new Wt({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new bu({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return JTe}}});function QTe(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new x(i)}}}function Iq(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,et.partialApply(e._gl,o,t,r,n,i)}let pM;typeof WebGLRenderingContext<"u"&&(pM=[ae.BACK]);function mM(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=pM;if(l(t))t._bind(),QTe(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const ZTe=new co;Ja.prototype.clear=function(e,t){e=A(e,ZTe),t=A(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(H.equals(this._clearColor,o)||(H.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=A(e.renderState,this._defaultRenderState);Iq(this,a,t,!0);const c=A(e.framebuffer,t.framebuffer);mM(this,c),n.clear(i)};function eEe(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new x("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");mM(e,t),Iq(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function tEe(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Ze.validate(o))throw new x("drawCommand.primitiveType is required and must be valid.");if(T.defined("drawCommand.vertexArray",r),T.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&T.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),T.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new x("Instanced arrays extension is not supported");e._us.model=A(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=A(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=A(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}Ja.prototype.draw=function(e,t,n,i){T.defined("drawCommand",e),T.defined("drawCommand.shaderProgram",e._shaderProgram),t=A(t,this._defaultPassState);const o=A(e._framebuffer,t.framebuffer),r=A(e._renderState,this._defaultRenderState);n=A(n,e._shaderProgram),i=A(i,e._uniformMap),eEe(this,o,t,n,r),tEe(this,e,n,i)};Ja.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=pM;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=rt.createTypedArray(rt.RGBA,a,o,r);return mM(this,s),t.readPixels(n,i,o,r,rt.RGBA,Qe.toWebGLConstant(a,this),c),c};const Pq={position:0,textureCoordinates:1};Ja.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new Lt({attributes:{position:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Ze.TRIANGLES});e=ho.fromGeometry({context:this,geometry:t,attributeLocations:Pq,bufferUsage:nt.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};Ja.prototype.createViewportQuadCommand=function(e,t){return t=A(t,A.EMPTY_OBJECT),new mt({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Ze.TRIANGLES,renderState:t.renderState,shaderProgram:Cn.fromCache({context:this,vertexShaderSource:aj,fragmentShaderSource:e,attributeLocations:Pq}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};Ja.prototype.getObjectByPickColor=function(e){return T.defined("pickColor",e),this._pickObjects[e.toRgba()]};function _M(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(_M.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});_M.prototype.destroy=function(){delete this._pickObjects[this.key]};Ja.prototype.createPickId=function(e){T.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Ie("Out of unique Pick IDs.");return this._pickObjects[t]=e,new _M(this._pickObjects,t,H.fromRgba(t))};Ja.prototype.isDestroyed=function(){return!1};Ja.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),He(this)};Ja._deprecationWarning=$p;function L0(e){e=A(e,A.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;T.defined("options.context",t),T.defined("options.width",n),T.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new x("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new x("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Yr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new Yr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}L0.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};L0.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};L0.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};L0.prototype.isDestroyed=function(){return!1};L0.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),He(this)};const ka={RGBA4:ae.RGBA4,RGBA8:ae.RGBA8,RGBA16F:ae.RGBA16F,RGBA32F:ae.RGBA32F,RGB5_A1:ae.RGB5_A1,RGB565:ae.RGB565,DEPTH_COMPONENT16:ae.DEPTH_COMPONENT16,STENCIL_INDEX8:ae.STENCIL_INDEX8,DEPTH_STENCIL:ae.DEPTH_STENCIL,DEPTH24_STENCIL8:ae.DEPTH24_STENCIL8,validate:function(e){return e===ka.RGBA4||e===ka.RGBA8||e===ka.RGBA16F||e===ka.RGBA32F||e===ka.RGB5_A1||e===ka.RGB565||e===ka.DEPTH_COMPONENT16||e===ka.STENCIL_INDEX8||e===ka.DEPTH_STENCIL||e===ka.DEPTH24_STENCIL8},getColorFormat:function(e){return e===ae.FLOAT?ka.RGBA32F:e===ae.HALF_FLOAT_OES?ka.RGBA16F:ka.RGBA8}},af=Object.freeze(ka);function Xl(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const n=e.context._gl,i=It.maximumRenderbufferSize,o=A(e.format,af.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=A(e.numSamples,1);if(!af.validate(o))throw new x("Invalid format.");if(T.typeOf.number.greaterThan("width",r,0),r>i)throw new x(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(T.typeOf.number.greaterThan("height",s,0),s>i)throw new x(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(Xl.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});Xl.prototype._getRenderbuffer=function(){return this._renderbuffer};Xl.prototype.isDestroyed=function(){return!1};Xl.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),He(this)};function Ln(e){if(e=A(e,A.EMPTY_OBJECT),this._numSamples=A(e.numSamples,1),this._colorAttachmentsLength=A(e.colorAttachmentsLength,1),this._color=A(e.color,!0),this._depth=A(e.depth,!1),this._depthStencil=A(e.depthStencil,!1),this._supportsDepthTexture=A(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new x("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new x("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=A(e.createColorAttachments,!0),this._createDepthAttachments=A(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Ln.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Ln.prototype.isDirty=function(e,t,n,i,o){n=A(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};Ln.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new x("width and height must be defined.");if(i=e.msaa?A(i,1):1,o=A(o,this._color?A(this._pixelDatatype,Qe.UNSIGNED_BYTE):void 0),r=A(r,this._color?A(this._pixelFormat,rt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=af.getColorFormat(o);this._colorRenderbuffers[s]=new Xl({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_STENCIL,pixelDatatype:Qe.UNSIGNED_INT_24_8,sampler:ii.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_COMPONENT,pixelDatatype:Qe.UNSIGNED_INT,sampler:ii.NEAREST}):this._depthRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new L0({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Yr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Ln.prototype.getColorTexture=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorTextures[e]};Ln.prototype.setColorTexture=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Ln.prototype.getColorRenderbuffer=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};Ln.prototype.setColorRenderbuffer=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Ln.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Ln.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Ln.prototype.getDepthTexture=function(){return this._depthTexture};Ln.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Ln.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Ln.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Ln.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Ln.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Ln.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Ln.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Ln.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Ln.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e0?ee.getSizeInBytes(e[0].componentDatatype):0,o=i>0?t%i:0,r=o===0?0:i-o;return t+=r,t};Rr._createArrayViews=function(e,t){const n=[];let i=0;const o=e.length;for(let r=0;r0){const n=new ArrayBuffer(t*e.vertexSizeInBytes);if(l(e.arrayBuffer)){const r=new Uint8Array(n),s=new Uint8Array(e.arrayBuffer),a=s.length;for(let c=0;c0){t.needsCommit=!1;const n=t.vertexBuffer,i=e._size*t.vertexSizeInBytes,o=l(n);if(!o||n.sizeInBytes=this._size)throw new x("offsetInVertices must be greater than or equal to zero and less than the vertex array size.");if(e+t>this._size)throw new x("offsetInVertices + lengthInVertices cannot exceed the vertex array size.");const n=this._allBuffers;for(let i=0,o=n.length;i0){const i=e.vertexSizeInBytes*t,o=e.vertexSizeInBytes*n;e.vertexBuffer.copyFromArrayView(new Uint8Array(e.arrayBuffer,i,o),i)}}Rr.prototype.endSubCommits=function(){const e=this._allBuffers;for(let t=0,n=e.length;t"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 Fw(e,t,n){return VEe()?Fw=Reflect.construct:Fw=function(o,r,s){var a=[null];a.push.apply(a,r);var c=Function.bind.apply(o,a),u=new c;return s&&mB(u,s.prototype),u},Fw.apply(null,arguments)}function Ul(e){return kEe(e)||GEe(e)||WEe(e)||jEe()}function kEe(e){if(Array.isArray(e))return _B(e)}function GEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WEe(e,t){if(e){if(typeof e=="string")return _B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _B(e,t)}}function _B(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),o=1;o/gm),sxe=du(/\${[\w\W]*}/gm),axe=du(/^data-[\-\w.\u00B7-\uFFFF]/),cxe=du(/^aria-[\-\w]+$/),lxe=du(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uxe=du(/^(?:\w+script|data):/i),dxe=du(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fxe=du(/^html$/i),hxe=function(){return typeof window>"u"?null:window},pxe=function(t,n){if(Yh(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function Rq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hxe(),t=function(we){return Rq(we)};if(t.version="2.4.1",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,i=e.document,o=e.DocumentFragment,r=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,h=e.HTMLFormElement,m=e.DOMParser,g=e.trustedTypes,p=a.prototype,y=UE(p,"cloneNode"),b=UE(p,"nextSibling"),C=UE(p,"childNodes"),E=UE(p,"parentNode");if(typeof r=="function"){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var S=pxe(g,n),P=S?S.createHTML(""):"",L=i,z=L.implementation,R=L.createNodeIterator,F=L.createDocumentFragment,U=L.getElementsByTagName,D=n.importNode,I={};try{I=pm(i).documentMode?i.documentMode:{}}catch{}var _={};t.isSupported=typeof E=="function"&&z&&typeof z.createHTMLDocument<"u"&&I!==9;var v=oxe,O=rxe,N=sxe,V=axe,k=cxe,G=uxe,W=dxe,K=lxe,q=null,te=qn({},[].concat(Ul(n4),Ul(C1),Ul(T1),Ul(E1),Ul(i4))),Y=null,X=qn({},[].concat(Ul(o4),Ul(x1),Ul(r4),Ul(HE))),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,ue=null,re=!0,he=!0,ce=!1,Q=!1,ne=!1,de=!1,_e=!1,Se=!1,ve=!1,Le=!1,Ee=!0,Be=!1,Pe="user-content-",Ae=!0,xe=!1,Oe={},Ve=null,Re=qn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),At=null,xt=qn({},["audio","video","img","source","image","track"]),Nt=null,On=qn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",un="http://www.w3.org/1999/xhtml",Ht=un,vn=!1,Pn=null,qt=qn({},[Nn,Sn,un],A1),tn,jn=["application/xhtml+xml","text/html"],hi="text/html",sn,zi=null,oo=i.createElement("form"),Wi=function(we){return we instanceof RegExp||we instanceof Function},li=function(we){zi&&zi===we||((!we||Yh(we)!=="object")&&(we={}),we=pm(we),tn=jn.indexOf(we.PARSER_MEDIA_TYPE)===-1?tn=hi:tn=we.PARSER_MEDIA_TYPE,sn=tn==="application/xhtml+xml"?A1:zw,q="ALLOWED_TAGS"in we?qn({},we.ALLOWED_TAGS,sn):te,Y="ALLOWED_ATTR"in we?qn({},we.ALLOWED_ATTR,sn):X,Pn="ALLOWED_NAMESPACES"in we?qn({},we.ALLOWED_NAMESPACES,A1):qt,Nt="ADD_URI_SAFE_ATTR"in we?qn(pm(On),we.ADD_URI_SAFE_ATTR,sn):On,At="ADD_DATA_URI_TAGS"in we?qn(pm(xt),we.ADD_DATA_URI_TAGS,sn):xt,Ve="FORBID_CONTENTS"in we?qn({},we.FORBID_CONTENTS,sn):Re,se="FORBID_TAGS"in we?qn({},we.FORBID_TAGS,sn):{},ue="FORBID_ATTR"in we?qn({},we.FORBID_ATTR,sn):{},Oe="USE_PROFILES"in we?we.USE_PROFILES:!1,re=we.ALLOW_ARIA_ATTR!==!1,he=we.ALLOW_DATA_ATTR!==!1,ce=we.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=we.SAFE_FOR_TEMPLATES||!1,ne=we.WHOLE_DOCUMENT||!1,Se=we.RETURN_DOM||!1,ve=we.RETURN_DOM_FRAGMENT||!1,Le=we.RETURN_TRUSTED_TYPE||!1,_e=we.FORCE_BODY||!1,Ee=we.SANITIZE_DOM!==!1,Be=we.SANITIZE_NAMED_PROPS||!1,Ae=we.KEEP_CONTENT!==!1,xe=we.IN_PLACE||!1,K=we.ALLOWED_URI_REGEXP||K,Ht=we.NAMESPACE||un,we.CUSTOM_ELEMENT_HANDLING&&Wi(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=we.CUSTOM_ELEMENT_HANDLING.tagNameCheck),we.CUSTOM_ELEMENT_HANDLING&&Wi(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),we.CUSTOM_ELEMENT_HANDLING&&typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(he=!1),ve&&(Se=!0),Oe&&(q=qn({},Ul(i4)),Y=[],Oe.html===!0&&(qn(q,n4),qn(Y,o4)),Oe.svg===!0&&(qn(q,C1),qn(Y,x1),qn(Y,HE)),Oe.svgFilters===!0&&(qn(q,T1),qn(Y,x1),qn(Y,HE)),Oe.mathMl===!0&&(qn(q,E1),qn(Y,r4),qn(Y,HE))),we.ADD_TAGS&&(q===te&&(q=pm(q)),qn(q,we.ADD_TAGS,sn)),we.ADD_ATTR&&(Y===X&&(Y=pm(Y)),qn(Y,we.ADD_ATTR,sn)),we.ADD_URI_SAFE_ATTR&&qn(Nt,we.ADD_URI_SAFE_ATTR,sn),we.FORBID_CONTENTS&&(Ve===Re&&(Ve=pm(Ve)),qn(Ve,we.FORBID_CONTENTS,sn)),Ae&&(q["#text"]=!0),ne&&qn(q,["html","head","body"]),q.table&&(qn(q,["tbody"]),delete se.tbody),Oa&&Oa(we),zi=we)},mn=qn({},["mi","mo","mn","ms","mtext"]),Kn=qn({},["foreignobject","desc","title","annotation-xml"]),Hn=qn({},["title","style","font","a","script"]),dn=qn({},C1);qn(dn,T1),qn(dn,nxe);var bt=qn({},E1);qn(bt,ixe);var Ge=function(we){var $e=E(we);(!$e||!$e.tagName)&&($e={namespaceURI:Ht,tagName:"template"});var ot=zw(we.tagName),Jn=zw($e.tagName);return Pn[we.namespaceURI]?we.namespaceURI===Sn?$e.namespaceURI===un?ot==="svg":$e.namespaceURI===Nn?ot==="svg"&&(Jn==="annotation-xml"||mn[Jn]):Boolean(dn[ot]):we.namespaceURI===Nn?$e.namespaceURI===un?ot==="math":$e.namespaceURI===Sn?ot==="math"&&Kn[Jn]:Boolean(bt[ot]):we.namespaceURI===un?$e.namespaceURI===Sn&&!Kn[Jn]||$e.namespaceURI===Nn&&!mn[Jn]?!1:!bt[ot]&&(Hn[ot]||!dn[ot]):!!(tn==="application/xhtml+xml"&&Pn[we.namespaceURI]):!1},Mn=function(we){dA(t.removed,{element:we});try{we.parentNode.removeChild(we)}catch{try{we.outerHTML=P}catch{we.remove()}}},Tn=function(we,$e){try{dA(t.removed,{attribute:$e.getAttributeNode(we),from:$e})}catch{dA(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(we),we==="is"&&!Y[we])if(Se||ve)try{Mn($e)}catch{}else try{$e.setAttribute(we,"")}catch{}},Qi=function(we){var $e,ot;if(_e)we=""+we;else{var Jn=QEe(we,/^[\r\n\t ]+/);ot=Jn&&Jn[0]}tn==="application/xhtml+xml"&&Ht===un&&(we=''+we+"");var Zr=S?S.createHTML(we):we;if(Ht===un)try{$e=new m().parseFromString(Zr,tn)}catch{}if(!$e||!$e.documentElement){$e=z.createDocument(Ht,"template",null);try{$e.documentElement.innerHTML=vn?"":Zr}catch{}}var xr=$e.body||$e.documentElement;return we&&ot&&xr.insertBefore(i.createTextNode(ot),xr.childNodes[0]||null),Ht===un?U.call($e,ne?"html":"body")[0]:ne?$e.documentElement:xr},Fn=function(we){return R.call(we.ownerDocument||we,we,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ji=function(we){return we instanceof h&&(typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof d)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"||typeof we.hasChildNodes!="function")},Lo=function(we){return Yh(s)==="object"?we instanceof s:we&&Yh(we)==="object"&&typeof we.nodeType=="number"&&typeof we.nodeName=="string"},po=function(we,$e,ot){_[we]&&JEe(_[we],function(Jn){Jn.call(t,$e,ot,zi)})},Ur=function(we){var $e;if(po("beforeSanitizeElements",we,null),ji(we)||Ca(/[\u0080-\uFFFF]/,we.nodeName))return Mn(we),!0;var ot=sn(we.nodeName);if(po("uponSanitizeElement",we,{tagName:ot,allowedTags:q}),we.hasChildNodes()&&!Lo(we.firstElementChild)&&(!Lo(we.content)||!Lo(we.content.firstElementChild))&&Ca(/<[/\w]/g,we.innerHTML)&&Ca(/<[/\w]/g,we.textContent)||ot==="select"&&Ca(/