var fP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var B0e=fP((fr,hr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.4.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Rb(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const Tn={},Xl=[],jt=()=>{},hP=()=>!1,$p=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Pb=e=>e.startsWith("onUpdate:"),eo=Object.assign,Db=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pP=Object.prototype.hasOwnProperty,zt=(e,t)=>pP.call(e,t),Oe=Array.isArray,Zl=e=>Dd(e)==="[object Map]",Up=e=>Dd(e)==="[object Set]",ea=e=>Dd(e)==="[object Date]",it=e=>typeof e=="function",et=e=>typeof e=="string",is=e=>typeof e=="symbol",Ct=e=>e!==null&&typeof e=="object",Qa=e=>(Ct(e)||it(e))&&it(e.then)&&it(e.catch),PC=Object.prototype.toString,Dd=e=>PC.call(e),mP=e=>Dd(e).slice(8,-1),Gc=e=>Dd(e)==="[object Object]",Ib=e=>et(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cc=Rb(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zp=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vP=/-(\w)/g,mr=zp(e=>e.replace(vP,(t,n)=>n?n.toUpperCase():"")),gP=/\B([A-Z])/g,fa=zp(e=>e.replace(gP,"-$1").toLowerCase()),Id=zp(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ec=zp(e=>e?`on${Id(e)}`:""),ta=(e,t)=>!Object.is(e,t),ph=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},bP=e=>{const t=et(e)?Number(e):NaN;return isNaN(t)?e:t};let m_;const IC=()=>m_||(m_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rt(e){if(Oe(e)){const t={};for(let n=0;n{if(n){const o=n.split(_P);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function L(e){let t="";if(et(e))t=e;else if(Oe(e))for(let n=0;nfu(n,t))}const ze=e=>et(e)?e:e==null?"":Oe(e)||Ct(e)&&(e.toString===PC||!it(e.toString))?JSON.stringify(e,OC,2):String(e),OC=(e,t)=>t&&t.__v_isRef?OC(e,t.value):Zl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[V0(o,i)+" =>"]=r,n),{})}:Up(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>V0(n))}:is(t)?V0(t):Ct(t)&&!Oe(t)&&!Gc(t)?String(t):t,V0=(e,t="")=>{var n;return is(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let lr;class FC{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=lr,!t&&lr&&(this.index=(lr.scopes||(lr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=lr;try{return lr=this,t()}finally{lr=n}}}on(){lr=this}off(){lr=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pa()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=js,n=qa;try{return js=!0,qa=this,this._runnings++,v_(this),this.fn()}finally{g_(this),this._runnings--,qa=n,js=t}}stop(){var t;this.active&&(v_(this),g_(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function AP(e){return e.value}function v_(e){e._trackId++,e._depsLength=0}function g_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},qh=new WeakMap,ja=Symbol(""),bv=Symbol("");function Qo(e,t,n){if(js&&qa){let o=qh.get(e);o||qh.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=WC(()=>o.delete(n))),VC(qa,r)}}function es(e,t,n,o,r,i){const s=qh.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&Oe(e)){const l=Number(o);s.forEach((u,d)=>{(d==="length"||!is(d)&&d>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Oe(e)?Ib(n)&&a.push(s.get("length")):(a.push(s.get(ja)),Zl(e)&&a.push(s.get(bv)));break;case"delete":Oe(e)||(a.push(s.get(ja)),Zl(e)&&a.push(s.get(bv)));break;case"set":Zl(e)&&a.push(s.get(ja));break}Nb();for(const l of a)l&&HC(l,4);Ob()}function kP(e,t){var n;return(n=qh.get(e))==null?void 0:n.get(t)}const RP=Rb("__proto__,__v_isRef,__isVue"),GC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(is)),b_=PP();function PP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=sn(this);for(let i=0,s=this.length;i{e[t]=function(...n){ha(),Nb();const o=sn(this)[t].apply(this,n);return Ob(),pa(),o}}),e}function DP(e){is(e)||(e=String(e));const t=sn(this);return Qo(t,"has",e),t.hasOwnProperty(e)}class KC{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?GP:XC:i?YC:jC).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=Oe(t);if(!r){if(s&&zt(b_,n))return Reflect.get(b_,n,o);if(n==="hasOwnProperty")return DP}const a=Reflect.get(t,n,o);return(is(n)?GC.has(n):RP(n))||(r||Qo(t,"get",n),i)?a:hn(a)?s&&Ib(n)?a:a.value:Ct(a)?r?zu(a):Gt(a):a}}class qC extends KC{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const l=Kc(i);if(!jh(o)&&!Kc(o)&&(i=sn(i),o=sn(o)),!Oe(t)&&hn(i)&&!hn(o))return l?!1:(i.value=o,!0)}const s=Oe(t)&&Ib(n)?Number(n)e,Vp=e=>Reflect.getPrototypeOf(e);function lf(e,t,n=!1,o=!1){e=e.__v_raw;const r=sn(e),i=sn(t);n||(ta(t,i)&&Qo(r,"get",t),Qo(r,"get",i));const{has:s}=Vp(r),a=o?Fb:n?Ub:qc;if(s.call(r,t))return a(e.get(t));if(s.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function uf(e,t=!1){const n=this.__v_raw,o=sn(n),r=sn(e);return t||(ta(e,r)&&Qo(o,"has",e),Qo(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function cf(e,t=!1){return e=e.__v_raw,!t&&Qo(sn(e),"iterate",ja),Reflect.get(e,"size",e)}function y_(e){e=sn(e);const t=sn(this);return Vp(t).has.call(t,e)||(t.add(e),es(t,"add",e,e)),this}function __(e,t){t=sn(t);const n=sn(this),{has:o,get:r}=Vp(n);let i=o.call(n,e);i||(e=sn(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?ta(t,s)&&es(n,"set",e,t):es(n,"add",e,t),this}function x_(e){const t=sn(this),{has:n,get:o}=Vp(t);let r=n.call(t,e);r||(e=sn(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&es(t,"delete",e,void 0),i}function S_(){const e=sn(this),t=e.size!==0,n=e.clear();return t&&es(e,"clear",void 0,void 0),n}function df(e,t){return function(o,r){const i=this,s=i.__v_raw,a=sn(s),l=t?Fb:e?Ub:qc;return!e&&Qo(a,"iterate",ja),s.forEach((u,d)=>o.call(r,l(u),l(d),i))}}function ff(e,t,n){return function(...o){const r=this.__v_raw,i=sn(r),s=Zl(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=r[e](...o),d=n?Fb:t?Ub:qc;return!t&&Qo(i,"iterate",l?bv:ja),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[d(f[0]),d(f[1])]:d(f),done:p}},[Symbol.iterator](){return this}}}}function ws(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function FP(){const e={get(i){return lf(this,i)},get size(){return cf(this)},has:uf,add:y_,set:__,delete:x_,clear:S_,forEach:df(!1,!1)},t={get(i){return lf(this,i,!1,!0)},get size(){return cf(this)},has:uf,add:y_,set:__,delete:x_,clear:S_,forEach:df(!1,!0)},n={get(i){return lf(this,i,!0)},get size(){return cf(this,!0)},has(i){return uf.call(this,i,!0)},add:ws("add"),set:ws("set"),delete:ws("delete"),clear:ws("clear"),forEach:df(!0,!1)},o={get(i){return lf(this,i,!0,!0)},get size(){return cf(this,!0)},has(i){return uf.call(this,i,!0)},add:ws("add"),set:ws("set"),delete:ws("delete"),clear:ws("clear"),forEach:df(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ff(i,!1,!1),n[i]=ff(i,!0,!1),t[i]=ff(i,!1,!0),o[i]=ff(i,!0,!0)}),[e,n,t,o]}const[BP,$P,UP,zP]=FP();function Bb(e,t){const n=t?e?zP:UP:e?$P:BP;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(zt(n,r)&&r in o?n:o,r,i)}const VP={get:Bb(!1,!1)},HP={get:Bb(!1,!0)},WP={get:Bb(!0,!1)},jC=new WeakMap,YC=new WeakMap,XC=new WeakMap,GP=new WeakMap;function KP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qP(e){return e.__v_skip||!Object.isExtensible(e)?0:KP(mP(e))}function Gt(e){return Kc(e)?e:$b(e,!1,LP,VP,jC)}function ZC(e){return $b(e,!1,OP,HP,YC)}function zu(e){return $b(e,!0,NP,WP,XC)}function $b(e,t,n,o,r){if(!Ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=qP(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return r.set(e,a),a}function Mc(e){return Kc(e)?Mc(e.__v_raw):!!(e&&e.__v_isReactive)}function Kc(e){return!!(e&&e.__v_isReadonly)}function jh(e){return!!(e&&e.__v_isShallow)}function JC(e){return e?!!e.__v_raw:!1}function sn(e){const t=e&&e.__v_raw;return t?sn(t):e}function ts(e){return Object.isExtensible(e)&&DC(e,"__v_skip",!0),e}const qc=e=>Ct(e)?Gt(e):e,Ub=e=>Ct(e)?zu(e):e;class QC{constructor(t,n,o,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Lb(()=>t(this._value),()=>Tc(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const t=sn(this);return(!t._cacheable||t.effect.dirty)&&ta(t._value,t._value=t.effect.run())&&Tc(t,4),zb(t),t.effect._dirtyLevel>=2&&Tc(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function jP(e,t,n=!1){let o,r;const i=it(e);return i?(o=e,r=jt):(o=e.get,r=e.set),new QC(o,r,i||!r,n)}function zb(e){var t;js&&qa&&(e=sn(e),VC(qa,(t=e.dep)!=null?t:e.dep=WC(()=>e.dep=void 0,e instanceof QC?e:void 0)))}function Tc(e,t=4,n){e=sn(e);const o=e.dep;o&&HC(o,t)}function hn(e){return!!(e&&e.__v_isRef===!0)}function F(e){return eE(e,!1)}function fn(e){return eE(e,!0)}function eE(e,t){return hn(e)?e:new YP(e,t)}class YP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:sn(t),this._value=n?t:qc(t)}get value(){return zb(this),this._value}set value(t){const n=this.__v_isShallow||jh(t)||Kc(t);t=n?t:sn(t),ta(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:qc(t),Tc(this,4))}}function c(e){return hn(e)?e.value:e}const XP={get:(e,t,n)=>c(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return hn(r)&&!hn(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function tE(e){return Mc(e)?e:new Proxy(e,XP)}class ZP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>zb(this),()=>Tc(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function JP(e){return new ZP(e)}function jn(e){const t=Oe(e)?new Array(e.length):{};for(const n in e)t[n]=nE(e,n);return t}class QP{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return kP(sn(this._object),this._key)}}class e4{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Kt(e,t,n){return hn(e)?e:it(e)?new e4(e):Ct(e)&&arguments.length>1?nE(e,t,n):F(e)}function nE(e,t,n){const o=e[t];return hn(o)?o:new QP(e,t,n)}/** * @vue/runtime-core v3.4.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ys(e,t,n,o){try{return o?e(...o):e()}catch(r){Hp(r,t,n)}}function Rr(e,t,n,o){if(it(e)){const r=Ys(e,t,n,o);return r&&Qa(r)&&r.catch(i=>{Hp(i,t,n)}),r}if(Oe(e)){const r=[];for(let i=0;i>>1,r=Co[o],i=Yc(r);ifi&&Co.splice(t,1)}function r4(e){Oe(e)?Jl.push(...e):(!Ns||!Ns.includes(e,e.allowRecurse?Ra+1:Ra))&&Jl.push(e),rE()}function w_(e,t,n=jc?fi+1:0){for(;nYc(n)-Yc(o));if(Jl.length=0,Ns){Ns.push(...t);return}for(Ns=t,Ra=0;Rae.id==null?1/0:e.id,i4=(e,t)=>{const n=Yc(e)-Yc(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function sE(e){yv=!1,jc=!0,Co.sort(i4);try{for(fi=0;fiet(h)?h.trim():h)),f&&(r=n.map(mv))}let a,l=o[a=Ec(t)]||o[a=Ec(mr(t))];!l&&i&&(l=o[a=Ec(fa(t))]),l&&Rr(l,e,6,r);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Rr(u,e,6,r)}}function aE(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},a=!1;if(!it(e)){const l=u=>{const d=aE(u,t,!0);d&&(a=!0,eo(s,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ct(e)&&o.set(e,null),null):(Oe(i)?i.forEach(l=>s[l]=null):eo(s,i),Ct(e)&&o.set(e,s),s)}function Wp(e,t){return!e||!$p(t)?!1:(t=t.slice(2).replace(/Once$/,""),zt(e,t[0].toLowerCase()+t.slice(1))||zt(e,fa(t))||zt(e,t))}let Xn=null,Gp=null;function Yh(e){const t=Xn;return Xn=e,Gp=e&&e.type.__scopeId||null,t}function Kp(e){Gp=e}function qp(){Gp=null}function se(e,t=Xn,n){if(!t||e._n)return e;const o=(...r)=>{o._d&&B_(-1);const i=Yh(t);let s;try{s=e(...r)}finally{Yh(i),o._d&&B_(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function C_(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:a,emit:l,render:u,renderCache:d,props:f,data:p,setupState:h,ctx:m,inheritAttrs:v}=e,b=Yh(e);let g,x;try{if(n.shapeFlag&4){const _=r||o,w=_;g=ci(u.call(w,_,d,f,h,p,m)),x=a}else{const _=t;g=ci(_.length>1?_(f,{attrs:a,slots:s,emit:l}):_(f,null)),x=t.props?a:a4(a)}}catch(_){Dc.length=0,Hp(_,e,1),g=J(Jn)}let y=g;if(x&&v!==!1){const _=Object.keys(x),{shapeFlag:w}=y;_.length&&w&7&&(i&&_.some(Pb)&&(x=l4(x,i)),y=ss(y,x))}return n.dirs&&(y=ss(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Yh(b),g}const a4=e=>{let t;for(const n in e)(n==="class"||n==="style"||$p(n))&&((t||(t={}))[n]=e[n]);return t},l4=(e,t)=>{const n={};for(const o in e)(!Pb(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function u4(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?E_(o,s,u):!!s;if(l&8){const d=t.dynamicProps;for(let f=0;fe.__isSuspense;function h4(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):r4(e)}const p4=Symbol.for("v-scx"),m4=()=>je(p4);function co(e,t){return Kb(e,null,t)}const hf={};function Te(e,t,n){return Kb(e,t,n)}function Kb(e,t,{immediate:n,deep:o,flush:r,once:i,onTrack:s,onTrigger:a}=Tn){if(t&&i){const S=t;t=(...M)=>{S(...M),w()}}const l=go,u=S=>o===!0?S:Fa(S,o===!1?1:void 0);let d,f=!1,p=!1;if(hn(e)?(d=()=>e.value,f=jh(e)):Mc(e)?(d=()=>u(e),f=!0):Oe(e)?(p=!0,f=e.some(S=>Mc(S)||jh(S)),d=()=>e.map(S=>{if(hn(S))return S.value;if(Mc(S))return u(S);if(it(S))return Ys(S,l,2)})):it(e)?t?d=()=>Ys(e,l,2):d=()=>(h&&h(),Rr(e,l,3,[m])):d=jt,t&&o){const S=d;d=()=>Fa(S())}let h,m=S=>{h=y.onStop=()=>{Ys(S,l,4),h=y.onStop=void 0}},v;if(Qp)if(m=jt,t?n&&Rr(t,l,3,[d(),p?[]:void 0,m]):d(),r==="sync"){const S=m4();v=S.__watcherHandles||(S.__watcherHandles=[])}else return jt;let b=p?new Array(e.length).fill(hf):hf;const g=()=>{if(!(!y.active||!y.dirty))if(t){const S=y.run();(o||f||(p?S.some((M,T)=>ta(M,b[T])):ta(S,b)))&&(h&&h(),Rr(t,l,3,[S,b===hf?void 0:p&&b[0]===hf?[]:b,m]),b=S)}else y.run()};g.allowRecurse=!!t;let x;r==="sync"?x=g:r==="post"?x=()=>Go(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),x=()=>Hb(g));const y=new Lb(d,jt,x),_=BC(),w=()=>{y.stop(),_&&Db(_.effects,y)};return t?n?g():b=y.run():r==="post"?Go(y.run.bind(y),l&&l.suspense):y.run(),v&&v.push(w),w}function v4(e,t,n){const o=this.proxy,r=et(e)?e.includes(".")?uE(o,e):()=>o[e]:e.bind(o,o);let i;it(t)?i=t:(i=t.handler,n=t);const s=Ld(this),a=Kb(r,i.bind(o),n);return s(),a}function uE(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;r0){if(n>=t)return e;n++}if(o=o||new Set,o.has(e))return e;if(o.add(e),hn(e))Fa(e.value,t,n,o);else if(Oe(e))for(let r=0;r{Fa(r,t,n,o)});else if(Gc(e))for(const r in e)Fa(e[r],t,n,o);return e}function _t(e,t){if(Xn===null)return e;const n=e0(Xn)||Xn.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r{e.isMounted=!0}),Qt(()=>{e.isUnmounting=!0}),e}const xr=[Function,Array],dE={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xr,onEnter:xr,onAfterEnter:xr,onEnterCancelled:xr,onBeforeLeave:xr,onLeave:xr,onAfterLeave:xr,onLeaveCancelled:xr,onBeforeAppear:xr,onAppear:xr,onAfterAppear:xr,onAppearCancelled:xr},g4={name:"BaseTransition",props:dE,setup(e,{slots:t}){const n=Pt(),o=cE();return()=>{const r=t.default&&qb(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const p of r)if(p.type!==Jn){i=p;break}}const s=sn(e),{mode:a}=s;if(o.isLeaving)return H0(i);const l=T_(i);if(!l)return H0(i);const u=Xc(l,s,o,n);Zc(l,u);const d=n.subTree,f=d&&T_(d);if(f&&f.type!==Jn&&!Pa(l,f)){const p=Xc(f,s,o,n);if(Zc(f,p),a==="out-in")return o.isLeaving=!0,p.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},H0(i);a==="in-out"&&l.type!==Jn&&(p.delayLeave=(h,m,v)=>{const b=fE(o,f);b[String(f.key)]=f,h[Os]=()=>{m(),h[Os]=void 0,delete u.delayedLeave},u.delayedLeave=v})}return i}}},b4=g4;function fE(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xc(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:v,onAppear:b,onAfterAppear:g,onAppearCancelled:x}=t,y=String(e.key),_=fE(n,e),w=(T,E)=>{T&&Rr(T,o,9,E)},S=(T,E)=>{const C=E[1];w(T,E),Oe(T)?T.every(k=>k.length<=1)&&C():T.length<=1&&C()},M={mode:i,persisted:s,beforeEnter(T){let E=a;if(!n.isMounted)if(r)E=v||a;else return;T[Os]&&T[Os](!0);const C=_[y];C&&Pa(e,C)&&C.el[Os]&&C.el[Os](),w(E,[T])},enter(T){let E=l,C=u,k=d;if(!n.isMounted)if(r)E=b||l,C=g||u,k=x||d;else return;let R=!1;const B=T[pf]=H=>{R||(R=!0,H?w(k,[T]):w(C,[T]),M.delayedLeave&&M.delayedLeave(),T[pf]=void 0)};E?S(E,[T,B]):B()},leave(T,E){const C=String(e.key);if(T[pf]&&T[pf](!0),n.isUnmounting)return E();w(f,[T]);let k=!1;const R=T[Os]=B=>{k||(k=!0,E(),B?w(m,[T]):w(h,[T]),T[Os]=void 0,_[C]===e&&delete _[C])};_[C]=e,p?S(p,[T,R]):R()},clone(T){return Xc(T,t,n,o)}};return M}function H0(e){if(Yp(e))return e=ss(e),e.children=null,e}function T_(e){if(!Yp(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&it(n.default))return n.default()}}function Zc(e,t){e.shapeFlag&6&&e.component?Zc(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 qb(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Yp=e=>e.type.__isKeepAlive;function Xp(e,t){pE(e,"a",t)}function hE(e,t){pE(e,"da",t)}function pE(e,t,n=go){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zp(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Yp(r.parent.vnode)&&y4(o,t,n,r),r=r.parent}}function y4(e,t,n,o){const r=Zp(t,e,o,!0);fs(()=>{Db(o[t],r)},n)}function Zp(e,t,n=go,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;ha();const a=Ld(n),l=Rr(t,n,e,s);return a(),pa(),l});return o?r.unshift(i):r.push(i),i}}const ds=e=>(t,n=go)=>(!Qp||e==="sp")&&Zp(e,(...o)=>t(...o),n),Jp=ds("bm"),xt=ds("m"),mE=ds("bu"),ei=ds("u"),Qt=ds("bum"),fs=ds("um"),_4=ds("sp"),x4=ds("rtg"),S4=ds("rtc");function w4(e,t=go){Zp("ec",e,t)}function Nt(e,t,n,o){let r;const i=n;if(Oe(e)||et(e)){r=new Array(e.length);for(let s=0,a=e.length;st(s,a,void 0,i));else{const s=Object.keys(e);r=new Array(s.length);for(let a=0,l=s.length;a{const i=o.fn(...r);return i&&(i.key=o.key),i}:o.fn)}return e}function de(e,t,n={},o,r){if(Xn.isCE||Xn.parent&&Ac(Xn.parent)&&Xn.parent.isCE)return t!=="default"&&(n.name=t),J("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),D();const s=i&&vE(i(n)),a=_e(tt,{key:n.key||s&&s.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function vE(e){return e.some(t=>ln(t)?!(t.type===Jn||t.type===tt&&!vE(t.children)):!0)?e:null}function C4(e,t){const n={};for(const o in e)n[Ec(o)]=e[o];return n}const _v=e=>e?IE(e)?e0(e)||e.proxy:_v(e.parent):null,kc=eo(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=>_v(e.parent),$root:e=>_v(e.root),$emit:e=>e.emit,$options:e=>yE(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Hb(e.update)}),$nextTick:e=>e.n||(e.n=Qe.bind(e.proxy)),$watch:e=>v4.bind(e)}),W0=(e,t)=>e!==Tn&&!e.__isScriptSetup&&zt(e,t),E4={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(W0(o,t))return s[t]=1,o[t];if(r!==Tn&&zt(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&zt(u,t))return s[t]=3,i[t];if(n!==Tn&&zt(n,t))return s[t]=4,n[t];xv&&(s[t]=0)}}const d=kc[t];let f,p;if(d)return t==="$attrs"&&Qo(e.attrs,"get",""),d(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Tn&&zt(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,zt(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return W0(r,t)?(r[t]=n,!0):o!==Tn&&zt(o,t)?(o[t]=n,!0):zt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==Tn&&zt(e,s)||W0(t,s)||(a=i[0])&&zt(a,s)||zt(o,s)||zt(kc,s)||zt(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:zt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Wn(){return gE().slots}function hs(){return gE().attrs}function gE(){const e=Pt();return e.setupContext||(e.setupContext=NE(e))}function A_(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let xv=!0;function M4(e){const t=yE(e),n=e.proxy,o=e.ctx;xv=!1,t.beforeCreate&&k_(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:h,updated:m,activated:v,deactivated:b,beforeDestroy:g,beforeUnmount:x,destroyed:y,unmounted:_,render:w,renderTracked:S,renderTriggered:M,errorCaptured:T,serverPrefetch:E,expose:C,inheritAttrs:k,components:R,directives:B,filters:H}=t;if(u&&T4(u,o,null),s)for(const U in s){const I=s[U];it(I)&&(o[U]=I.bind(n))}if(r){const U=r.call(n,n);Ct(U)&&(e.data=Gt(U))}if(xv=!0,i)for(const U in i){const I=i[U],O=it(I)?I.bind(n,n):it(I.get)?I.get.bind(n,n):jt,q=!it(I)&&it(I.set)?I.set.bind(n):jt,K=A({get:O,set:q});Object.defineProperty(o,U,{enumerable:!0,configurable:!0,get:()=>K.value,set:oe=>K.value=oe})}if(a)for(const U in a)bE(a[U],o,n,U);if(l){const U=it(l)?l.call(n):l;Reflect.ownKeys(U).forEach(I=>{Lt(I,U[I])})}d&&k_(d,e,"c");function P(U,I){Oe(I)?I.forEach(O=>U(O.bind(n))):I&&U(I.bind(n))}if(P(Jp,f),P(xt,p),P(mE,h),P(ei,m),P(Xp,v),P(hE,b),P(w4,T),P(S4,S),P(x4,M),P(Qt,x),P(fs,_),P(_4,E),Oe(C))if(C.length){const U=e.exposed||(e.exposed={});C.forEach(I=>{Object.defineProperty(U,I,{get:()=>n[I],set:O=>n[I]=O})})}else e.exposed||(e.exposed={});w&&e.render===jt&&(e.render=w),k!=null&&(e.inheritAttrs=k),R&&(e.components=R),B&&(e.directives=B)}function T4(e,t,n=jt){Oe(e)&&(e=Sv(e));for(const o in e){const r=e[o];let i;Ct(r)?"default"in r?i=je(r.from||o,r.default,!0):i=je(r.from||o):i=je(r),hn(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function k_(e,t,n){Rr(Oe(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function bE(e,t,n,o){const r=o.includes(".")?uE(n,o):()=>n[o];if(et(e)){const i=t[e];it(i)&&Te(r,i)}else if(it(e))Te(r,e.bind(n));else if(Ct(e))if(Oe(e))e.forEach(i=>bE(i,t,n,o));else{const i=it(e.handler)?e.handler.bind(n):t[e.handler];it(i)&&Te(r,i,e)}}function yE(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!o?l=t:(l={},r.length&&r.forEach(u=>Xh(l,u,s,!0)),Xh(l,t,s)),Ct(t)&&i.set(t,l),l}function Xh(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Xh(e,i,n,!0),r&&r.forEach(s=>Xh(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=A4[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const A4={data:R_,props:P_,emits:P_,methods:bc,computed:bc,beforeCreate:Io,created:Io,beforeMount:Io,mounted:Io,beforeUpdate:Io,updated:Io,beforeDestroy:Io,beforeUnmount:Io,destroyed:Io,unmounted:Io,activated:Io,deactivated:Io,errorCaptured:Io,serverPrefetch:Io,components:bc,directives:bc,watch:R4,provide:R_,inject:k4};function R_(e,t){return t?e?function(){return eo(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function k4(e,t){return bc(Sv(e),Sv(t))}function Sv(e){if(Oe(e)){const t={};for(let n=0;n1)return n&&it(t)?t.call(o&&o.proxy):t}}const xE={},SE=()=>Object.create(xE),wE=e=>Object.getPrototypeOf(e)===xE;function I4(e,t,n,o=!1){const r={},i=SE();e.propsDefaults=Object.create(null),CE(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:ZC(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function L4(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=sn(r),[l]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,h]=EE(f,t,!0);eo(s,p),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!l)return Ct(e)&&o.set(e,Xl),Xl;if(Oe(i))for(let d=0;d-1,h[1]=v<0||m-1||zt(h,"default"))&&a.push(f)}}}const u=[s,a];return Ct(e)&&o.set(e,u),u}function D_(e){return e[0]!=="$"&&!Cc(e)}function I_(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function L_(e,t){return I_(e)===I_(t)}function N_(e,t){return Oe(t)?t.findIndex(n=>L_(n,e)):it(t)&&L_(t,e)?0:-1}const ME=e=>e[0]==="_"||e==="$stable",jb=e=>Oe(e)?e.map(ci):[ci(e)],N4=(e,t,n)=>{if(t._n)return t;const o=se((...r)=>jb(t(...r)),n);return o._c=!1,o},TE=(e,t,n)=>{const o=e._ctx;for(const r in e){if(ME(r))continue;const i=e[r];if(it(i))t[r]=N4(r,i,o);else if(i!=null){const s=jb(i);t[r]=()=>s}}},AE=(e,t)=>{const n=jb(t);e.slots.default=()=>n},O4=(e,t)=>{const n=e.slots=SE();if(e.vnode.shapeFlag&32){const o=t._;o?(eo(n,t),DC(n,"_",o)):TE(t,n)}else t&&AE(e,t)},F4=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=Tn;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(eo(r,t),!n&&a===1&&delete r._):(i=!t.$stable,TE(t,r)),s=t}else t&&(AE(e,t),s={default:1});if(i)for(const a in r)!ME(a)&&s[a]==null&&delete r[a]};function Cv(e,t,n,o,r=!1){if(Oe(e)){e.forEach((p,h)=>Cv(p,t&&(Oe(t)?t[h]:t),n,o,r));return}if(Ac(o)&&!r)return;const i=o.shapeFlag&4?e0(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,u=t&&t.r,d=a.refs===Tn?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(et(u)?(d[u]=null,zt(f,u)&&(f[u]=null)):hn(u)&&(u.value=null)),it(l))Ys(l,a,12,[s,d]);else{const p=et(l),h=hn(l);if(p||h){const m=()=>{if(e.f){const v=p?zt(f,l)?f[l]:d[l]:l.value;r?Oe(v)&&Db(v,i):Oe(v)?v.includes(i)||v.push(i):p?(d[l]=[i],zt(f,l)&&(f[l]=d[l])):(l.value=[i],e.k&&(d[e.k]=l.value))}else p?(d[l]=s,zt(f,l)&&(f[l]=s)):h&&(l.value=s,e.k&&(d[e.k]=s))};s?(m.id=-1,Go(m,n)):m()}}}const Go=h4;function B4(e){return $4(e)}function $4(e,t){const n=IC();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:d,parentNode:f,nextSibling:p,setScopeId:h=jt,insertStaticContent:m}=e,v=(V,ee,z,ve=null,ce=null,me=null,ue=void 0,ge=null,xe=!!ee.dynamicChildren)=>{if(V===ee)return;V&&!Pa(V,ee)&&(ve=re(V),oe(V,ce,me,!0),V=null),ee.patchFlag===-2&&(xe=!1,ee.dynamicChildren=null);const{type:Ce,ref:Fe,shapeFlag:Z}=ee;switch(Ce){case Vu:b(V,ee,z,ve);break;case Jn:g(V,ee,z,ve);break;case K0:V==null&&x(ee,z,ve,ue);break;case tt:R(V,ee,z,ve,ce,me,ue,ge,xe);break;default:Z&1?w(V,ee,z,ve,ce,me,ue,ge,xe):Z&6?B(V,ee,z,ve,ce,me,ue,ge,xe):(Z&64||Z&128)&&Ce.process(V,ee,z,ve,ce,me,ue,ge,xe,De)}Fe!=null&&ce&&Cv(Fe,V&&V.ref,me,ee||V,!ee)},b=(V,ee,z,ve)=>{if(V==null)o(ee.el=a(ee.children),z,ve);else{const ce=ee.el=V.el;ee.children!==V.children&&u(ce,ee.children)}},g=(V,ee,z,ve)=>{V==null?o(ee.el=l(ee.children||""),z,ve):ee.el=V.el},x=(V,ee,z,ve)=>{[V.el,V.anchor]=m(V.children,ee,z,ve,V.el,V.anchor)},y=({el:V,anchor:ee},z,ve)=>{let ce;for(;V&&V!==ee;)ce=p(V),o(V,z,ve),V=ce;o(ee,z,ve)},_=({el:V,anchor:ee})=>{let z;for(;V&&V!==ee;)z=p(V),r(V),V=z;r(ee)},w=(V,ee,z,ve,ce,me,ue,ge,xe)=>{ee.type==="svg"?ue="svg":ee.type==="math"&&(ue="mathml"),V==null?S(ee,z,ve,ce,me,ue,ge,xe):E(V,ee,ce,me,ue,ge,xe)},S=(V,ee,z,ve,ce,me,ue,ge)=>{let xe,Ce;const{props:Fe,shapeFlag:Z,transition:$,dirs:he}=V;if(xe=V.el=s(V.type,me,Fe&&Fe.is,Fe),Z&8?d(xe,V.children):Z&16&&T(V.children,xe,null,ve,ce,G0(V,me),ue,ge),he&&ya(V,null,ve,"created"),M(xe,V,V.scopeId,ue,ve),Fe){for(const Be in Fe)Be!=="value"&&!Cc(Be)&&i(xe,Be,null,Fe[Be],me,V.children,ve,ce,ae);"value"in Fe&&i(xe,"value",null,Fe.value,me),(Ce=Fe.onVnodeBeforeMount)&&ui(Ce,ve,V)}he&&ya(V,null,ve,"beforeMount");const Me=U4(ce,$);Me&&$.beforeEnter(xe),o(xe,ee,z),((Ce=Fe&&Fe.onVnodeMounted)||Me||he)&&Go(()=>{Ce&&ui(Ce,ve,V),Me&&$.enter(xe),he&&ya(V,null,ve,"mounted")},ce)},M=(V,ee,z,ve,ce)=>{if(z&&h(V,z),ve)for(let me=0;me{for(let Ce=xe;Ce{const ge=ee.el=V.el;let{patchFlag:xe,dynamicChildren:Ce,dirs:Fe}=ee;xe|=V.patchFlag&16;const Z=V.props||Tn,$=ee.props||Tn;let he;if(z&&_a(z,!1),(he=$.onVnodeBeforeUpdate)&&ui(he,z,ee,V),Fe&&ya(ee,V,z,"beforeUpdate"),z&&_a(z,!0),Ce?C(V.dynamicChildren,Ce,ge,z,ve,G0(ee,ce),me):ue||I(V,ee,ge,null,z,ve,G0(ee,ce),me,!1),xe>0){if(xe&16)k(ge,ee,Z,$,z,ve,ce);else if(xe&2&&Z.class!==$.class&&i(ge,"class",null,$.class,ce),xe&4&&i(ge,"style",Z.style,$.style,ce),xe&8){const Me=ee.dynamicProps;for(let Be=0;Be{he&&ui(he,z,ee,V),Fe&&ya(ee,V,z,"updated")},ve)},C=(V,ee,z,ve,ce,me,ue)=>{for(let ge=0;ge{if(z!==ve){if(z!==Tn)for(const ge in z)!Cc(ge)&&!(ge in ve)&&i(V,ge,z[ge],null,ue,ee.children,ce,me,ae);for(const ge in ve){if(Cc(ge))continue;const xe=ve[ge],Ce=z[ge];xe!==Ce&&ge!=="value"&&i(V,ge,Ce,xe,ue,ee.children,ce,me,ae)}"value"in ve&&i(V,"value",z.value,ve.value,ue)}},R=(V,ee,z,ve,ce,me,ue,ge,xe)=>{const Ce=ee.el=V?V.el:a(""),Fe=ee.anchor=V?V.anchor:a("");let{patchFlag:Z,dynamicChildren:$,slotScopeIds:he}=ee;he&&(ge=ge?ge.concat(he):he),V==null?(o(Ce,z,ve),o(Fe,z,ve),T(ee.children||[],z,Fe,ce,me,ue,ge,xe)):Z>0&&Z&64&&$&&V.dynamicChildren?(C(V.dynamicChildren,$,z,ce,me,ue,ge),(ee.key!=null||ce&&ee===ce.subTree)&&Yb(V,ee,!0)):I(V,ee,z,Fe,ce,me,ue,ge,xe)},B=(V,ee,z,ve,ce,me,ue,ge,xe)=>{ee.slotScopeIds=ge,V==null?ee.shapeFlag&512?ce.ctx.activate(ee,z,ve,ue,xe):H(ee,z,ve,ce,me,ue,xe):N(V,ee,xe)},H=(V,ee,z,ve,ce,me,ue)=>{const ge=V.component=X4(V,ve,ce);if(Yp(V)&&(ge.ctx.renderer=De),Z4(ge),ge.asyncDep){if(ce&&ce.registerDep(ge,P),!V.el){const xe=ge.subTree=J(Jn);g(null,xe,ee,z)}}else P(ge,V,ee,z,ce,me,ue)},N=(V,ee,z)=>{const ve=ee.component=V.component;if(u4(V,ee,z))if(ve.asyncDep&&!ve.asyncResolved){U(ve,ee,z);return}else ve.next=ee,o4(ve.update),ve.effect.dirty=!0,ve.update();else ee.el=V.el,ve.vnode=ee},P=(V,ee,z,ve,ce,me,ue)=>{const ge=()=>{if(V.isMounted){let{next:Fe,bu:Z,u:$,parent:he,vnode:Me}=V;{const ht=kE(V);if(ht){Fe&&(Fe.el=Me.el,U(V,Fe,ue)),ht.asyncDep.then(()=>{V.isUnmounted||ge()});return}}let Be=Fe,Ne;_a(V,!1),Fe?(Fe.el=Me.el,U(V,Fe,ue)):Fe=Me,Z&&ph(Z),(Ne=Fe.props&&Fe.props.onVnodeBeforeUpdate)&&ui(Ne,he,Fe,Me),_a(V,!0);const nt=C_(V),qe=V.subTree;V.subTree=nt,v(qe,nt,f(qe.el),re(qe),V,ce,me),Fe.el=nt.el,Be===null&&c4(V,nt.el),$&&Go($,ce),(Ne=Fe.props&&Fe.props.onVnodeUpdated)&&Go(()=>ui(Ne,he,Fe,Me),ce)}else{let Fe;const{el:Z,props:$}=ee,{bm:he,m:Me,parent:Be}=V,Ne=Ac(ee);_a(V,!1),he&&ph(he),!Ne&&(Fe=$&&$.onVnodeBeforeMount)&&ui(Fe,Be,ee),_a(V,!0);{const nt=V.subTree=C_(V);v(null,nt,z,ve,V,ce,me),ee.el=nt.el}if(Me&&Go(Me,ce),!Ne&&(Fe=$&&$.onVnodeMounted)){const nt=ee;Go(()=>ui(Fe,Be,nt),ce)}(ee.shapeFlag&256||Be&&Ac(Be.vnode)&&Be.vnode.shapeFlag&256)&&V.a&&Go(V.a,ce),V.isMounted=!0,ee=z=ve=null}},xe=V.effect=new Lb(ge,jt,()=>Hb(Ce),V.scope),Ce=V.update=()=>{xe.dirty&&xe.run()};Ce.id=V.uid,_a(V,!0),Ce()},U=(V,ee,z)=>{ee.component=V;const ve=V.vnode.props;V.vnode=ee,V.next=null,L4(V,ee.props,ve,z),F4(V,ee.children,z),ha(),w_(V),pa()},I=(V,ee,z,ve,ce,me,ue,ge,xe=!1)=>{const Ce=V&&V.children,Fe=V?V.shapeFlag:0,Z=ee.children,{patchFlag:$,shapeFlag:he}=ee;if($>0){if($&128){q(Ce,Z,z,ve,ce,me,ue,ge,xe);return}else if($&256){O(Ce,Z,z,ve,ce,me,ue,ge,xe);return}}he&8?(Fe&16&&ae(Ce,ce,me),Z!==Ce&&d(z,Z)):Fe&16?he&16?q(Ce,Z,z,ve,ce,me,ue,ge,xe):ae(Ce,ce,me,!0):(Fe&8&&d(z,""),he&16&&T(Z,z,ve,ce,me,ue,ge,xe))},O=(V,ee,z,ve,ce,me,ue,ge,xe)=>{V=V||Xl,ee=ee||Xl;const Ce=V.length,Fe=ee.length,Z=Math.min(Ce,Fe);let $;for($=0;$Fe?ae(V,ce,me,!0,!1,Z):T(ee,z,ve,ce,me,ue,ge,xe,Z)},q=(V,ee,z,ve,ce,me,ue,ge,xe)=>{let Ce=0;const Fe=ee.length;let Z=V.length-1,$=Fe-1;for(;Ce<=Z&&Ce<=$;){const he=V[Ce],Me=ee[Ce]=xe?Fs(ee[Ce]):ci(ee[Ce]);if(Pa(he,Me))v(he,Me,z,null,ce,me,ue,ge,xe);else break;Ce++}for(;Ce<=Z&&Ce<=$;){const he=V[Z],Me=ee[$]=xe?Fs(ee[$]):ci(ee[$]);if(Pa(he,Me))v(he,Me,z,null,ce,me,ue,ge,xe);else break;Z--,$--}if(Ce>Z){if(Ce<=$){const he=$+1,Me=he$)for(;Ce<=Z;)oe(V[Ce],ce,me,!0),Ce++;else{const he=Ce,Me=Ce,Be=new Map;for(Ce=Me;Ce<=$;Ce++){const we=ee[Ce]=xe?Fs(ee[Ce]):ci(ee[Ce]);we.key!=null&&Be.set(we.key,Ce)}let Ne,nt=0;const qe=$-Me+1;let ht=!1,He=0;const $e=new Array(qe);for(Ce=0;Ce=qe){oe(we,ce,me,!0);continue}let te;if(we.key!=null)te=Be.get(we.key);else for(Ne=Me;Ne<=$;Ne++)if($e[Ne-Me]===0&&Pa(we,ee[Ne])){te=Ne;break}te===void 0?oe(we,ce,me,!0):($e[te-Me]=Ce+1,te>=He?He=te:ht=!0,v(we,ee[te],z,null,ce,me,ue,ge,xe),nt++)}const ne=ht?z4($e):Xl;for(Ne=ne.length-1,Ce=qe-1;Ce>=0;Ce--){const we=Me+Ce,te=ee[we],Ee=we+1{const{el:me,type:ue,transition:ge,children:xe,shapeFlag:Ce}=V;if(Ce&6){K(V.component.subTree,ee,z,ve);return}if(Ce&128){V.suspense.move(ee,z,ve);return}if(Ce&64){ue.move(V,ee,z,De);return}if(ue===tt){o(me,ee,z);for(let Z=0;Zge.enter(me),ce);else{const{leave:Z,delayLeave:$,afterLeave:he}=ge,Me=()=>o(me,ee,z),Be=()=>{Z(me,()=>{Me(),he&&he()})};$?$(me,Me,Be):Be()}else o(me,ee,z)},oe=(V,ee,z,ve=!1,ce=!1)=>{const{type:me,props:ue,ref:ge,children:xe,dynamicChildren:Ce,shapeFlag:Fe,patchFlag:Z,dirs:$}=V;if(ge!=null&&Cv(ge,null,z,V,!0),Fe&256){ee.ctx.deactivate(V);return}const he=Fe&1&&$,Me=!Ac(V);let Be;if(Me&&(Be=ue&&ue.onVnodeBeforeUnmount)&&ui(Be,ee,V),Fe&6)ie(V.component,z,ve);else{if(Fe&128){V.suspense.unmount(z,ve);return}he&&ya(V,null,ee,"beforeUnmount"),Fe&64?V.type.remove(V,ee,z,ce,De,ve):Ce&&(me!==tt||Z>0&&Z&64)?ae(Ce,ee,z,!1,!0):(me===tt&&Z&384||!ce&&Fe&16)&&ae(xe,ee,z),ve&&X(V)}(Me&&(Be=ue&&ue.onVnodeUnmounted)||he)&&Go(()=>{Be&&ui(Be,ee,V),he&&ya(V,null,ee,"unmounted")},z)},X=V=>{const{type:ee,el:z,anchor:ve,transition:ce}=V;if(ee===tt){Y(z,ve);return}if(ee===K0){_(V);return}const me=()=>{r(z),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if(V.shapeFlag&1&&ce&&!ce.persisted){const{leave:ue,delayLeave:ge}=ce,xe=()=>ue(z,me);ge?ge(V.el,me,xe):xe()}else me()},Y=(V,ee)=>{let z;for(;V!==ee;)z=p(V),r(V),V=z;r(ee)},ie=(V,ee,z)=>{const{bum:ve,scope:ce,update:me,subTree:ue,um:ge}=V;ve&&ph(ve),ce.stop(),me&&(me.active=!1,oe(ue,V,ee,z)),ge&&Go(ge,ee),Go(()=>{V.isUnmounted=!0},ee),ee&&ee.pendingBranch&&!ee.isUnmounted&&V.asyncDep&&!V.asyncResolved&&V.suspenseId===ee.pendingId&&(ee.deps--,ee.deps===0&&ee.resolve())},ae=(V,ee,z,ve=!1,ce=!1,me=0)=>{for(let ue=me;ueV.shapeFlag&6?re(V.component.subTree):V.shapeFlag&128?V.suspense.next():p(V.anchor||V.el);let fe=!1;const be=(V,ee,z)=>{V==null?ee._vnode&&oe(ee._vnode,null,null,!0):v(ee._vnode||null,V,ee,null,null,null,z),fe||(fe=!0,w_(),iE(),fe=!1),ee._vnode=V},De={p:v,um:oe,m:K,r:X,mt:H,mc:T,pc:I,pbc:C,n:re,o:e};return{render:be,hydrate:void 0,createApp:D4(be)}}function G0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _a({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function U4(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yb(e,t,n=!1){const o=e.children,r=t.children;if(Oe(o)&&Oe(r))for(let i=0;i>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function kE(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kE(t)}const V4=e=>e.__isTeleport,Pc=e=>e&&(e.disabled||e.disabled===""),O_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,F_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ev=(e,t)=>{const n=e&&e.to;return et(n)?t?t(n):null:n},H4={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,u){const{mc:d,pc:f,pbc:p,o:{insert:h,querySelector:m,createText:v,createComment:b}}=u,g=Pc(t.props);let{shapeFlag:x,children:y,dynamicChildren:_}=t;if(e==null){const w=t.el=v(""),S=t.anchor=v("");h(w,n,o),h(S,n,o);const M=t.target=Ev(t.props,m),T=t.targetAnchor=v("");M&&(h(T,M),s==="svg"||O_(M)?s="svg":(s==="mathml"||F_(M))&&(s="mathml"));const E=(C,k)=>{x&16&&d(y,C,k,r,i,s,a,l)};g?E(n,S):M&&E(M,T)}else{t.el=e.el;const w=t.anchor=e.anchor,S=t.target=e.target,M=t.targetAnchor=e.targetAnchor,T=Pc(e.props),E=T?n:S,C=T?w:M;if(s==="svg"||O_(S)?s="svg":(s==="mathml"||F_(S))&&(s="mathml"),_?(p(e.dynamicChildren,_,E,r,i,s,a),Yb(e,t,!0)):l||f(e,t,E,C,r,i,s,a,!1),g)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):mf(t,n,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=Ev(t.props,m);k&&mf(t,k,null,u,0)}else T&&mf(t,S,M,u,1)}RE(t)},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:u,targetAnchor:d,target:f,props:p}=e;if(f&&i(d),s&&i(u),a&16){const h=s||!Pc(p);for(let m=0;m0?Kr||Xl:null,K4(),Jc>0&&Kr&&Kr.push(e),e}function G(e,t,n,o,r,i){return PE(j(e,t,n,o,r,i,!0))}function _e(e,t,n,o,r){return PE(J(e,t,n,o,r,!0))}function ln(e){return e?e.__v_isVNode===!0:!1}function Pa(e,t){return e.type===t.type&&e.key===t.key}const DE=({key:e})=>e??null,mh=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?et(e)||hn(e)||it(e)?{i:Xn,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,o=0,r=null,i=e===tt?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&DE(t),ref:t&&mh(t),scopeId:Gp,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:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xn};return a?(Xb(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=et(n)?8:16),Jc>0&&!s&&Kr&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Kr.push(l),l}const J=q4;function q4(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===lE)&&(e=Jn),ln(e)){const a=ss(e,t,!0);return n&&Xb(a,n),Jc>0&&!i&&Kr&&(a.shapeFlag&6?Kr[Kr.indexOf(e)]=a:Kr.push(a)),a.patchFlag|=-2,a}if(tD(e)&&(e=e.__vccOpts),t){t=wi(t);let{class:a,style:l}=t;a&&!et(a)&&(t.class=L(a)),Ct(l)&&(JC(l)&&!Oe(l)&&(l=eo({},l)),t.style=rt(l))}const s=et(e)?1:f4(e)?128:V4(e)?64:Ct(e)?4:it(e)?2:0;return j(e,t,n,o,r,s,i,!0)}function wi(e){return e?JC(e)||wE(e)?eo({},e):e:null}function ss(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?Dt(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&DE(a),ref:t&&t.ref?n&&r?Oe(r)?r.concat(mh(t)):[r,mh(t)]:mh(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ss(e.ssContent),ssFallback:e.ssFallback&&ss(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Tt(e=" ",t=0){return J(Vu,null,e,t)}function pe(e="",t=!1){return t?(D(),_e(Jn,null,e)):J(Jn,null,e)}function ci(e){return e==null||typeof e=="boolean"?J(Jn):Oe(e)?J(tt,null,e.slice()):typeof e=="object"?Fs(e):J(Vu,null,String(e))}function Fs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ss(e)}function Xb(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Oe(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Xb(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!wE(t)?t._ctx=Xn:r===3&&Xn&&(Xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:Xn},n=32):(t=String(t),o&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dt(...e){const t={};for(let n=0;ngo||Xn;let Zh,Mv;{const e=IC(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};Zh=t("__VUE_INSTANCE_SETTERS__",n=>go=n),Mv=t("__VUE_SSR_SETTERS__",n=>Qp=n)}const Ld=e=>{const t=go;return Zh(e),e.scope.on(),()=>{e.scope.off(),Zh(t)}},$_=()=>{go&&go.scope.off(),Zh(null)};function IE(e){return e.vnode.shapeFlag&4}let Qp=!1;function Z4(e,t=!1){t&&Mv(t);const{props:n,children:o}=e.vnode,r=IE(e);I4(e,n,r,t),O4(e,o);const i=r?J4(e,t):void 0;return t&&Mv(!1),i}function J4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,E4);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?NE(e):null,i=Ld(e);ha();const s=Ys(o,e,0,[e.props,r]);if(pa(),i(),Qa(s)){if(s.then($_,$_),t)return s.then(a=>{U_(e,a)}).catch(a=>{Hp(a,e,0)});e.asyncDep=s}else U_(e,s)}else LE(e)}function U_(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ct(t)&&(e.setupState=tE(t)),LE(e)}function LE(e,t,n){const o=e.type;e.render||(e.render=o.render||jt);{const r=Ld(e);ha();try{M4(e)}finally{pa(),r()}}}const Q4={get(e,t){return Qo(e,"get",""),e[t]}};function NE(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Q4),slots:e.slots,emit:e.emit,expose:t}}function e0(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tE(ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kc)return kc[n](e)},has(t,n){return n in t||n in kc}}))}function eD(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function tD(e){return it(e)&&"__vccOpts"in e}const A=(e,t)=>jP(e,t,Qp);function ut(e,t,n){const o=arguments.length;return o===2?Ct(t)&&!Oe(t)?ln(t)?J(e,null,[t]):J(e,t):J(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ln(n)&&(n=[n]),J(e,t,n))}const nD="3.4.25",oD=jt;/** * @vue/runtime-dom v3.4.25 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const rD="http://www.w3.org/2000/svg",iD="http://www.w3.org/1998/Math/MathML",Bs=typeof document<"u"?document:null,z_=Bs&&Bs.createElement("template"),sD={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Bs.createElementNS(rD,e):t==="mathml"?Bs.createElementNS(iD,e):Bs.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Bs.createTextNode(e),createComment:e=>Bs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{z_.innerHTML=o==="svg"?`${e}`:o==="mathml"?`${e}`:e;const a=z_.content;if(o==="svg"||o==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cs="transition",sc="animation",hu=Symbol("_vtc"),Hn=(e,{slots:t})=>ut(b4,FE(e),t);Hn.displayName="Transition";const OE={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},aD=Hn.props=eo({},dE,OE),xa=(e,t=[])=>{Oe(e)?e.forEach(n=>n(...t)):e&&e(...t)},V_=e=>e?Oe(e)?e.some(t=>t.length>1):e.length>1:!1;function FE(e){const t={};for(const R in e)R in OE||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,m=lD(r),v=m&&m[0],b=m&&m[1],{onBeforeEnter:g,onEnter:x,onEnterCancelled:y,onLeave:_,onLeaveCancelled:w,onBeforeAppear:S=g,onAppear:M=x,onAppearCancelled:T=y}=t,E=(R,B,H)=>{Ds(R,B?d:a),Ds(R,B?u:s),H&&H()},C=(R,B)=>{R._isLeaving=!1,Ds(R,f),Ds(R,h),Ds(R,p),B&&B()},k=R=>(B,H)=>{const N=R?M:x,P=()=>E(B,R,H);xa(N,[B,P]),H_(()=>{Ds(B,R?l:i),Ki(B,R?d:a),V_(N)||W_(B,o,v,P)})};return eo(t,{onBeforeEnter(R){xa(g,[R]),Ki(R,i),Ki(R,s)},onBeforeAppear(R){xa(S,[R]),Ki(R,l),Ki(R,u)},onEnter:k(!1),onAppear:k(!0),onLeave(R,B){R._isLeaving=!0;const H=()=>C(R,B);Ki(R,f),Ki(R,p),$E(),H_(()=>{R._isLeaving&&(Ds(R,f),Ki(R,h),V_(_)||W_(R,o,b,H))}),xa(_,[R,H])},onEnterCancelled(R){E(R,!1),xa(y,[R])},onAppearCancelled(R){E(R,!0),xa(T,[R])},onLeaveCancelled(R){C(R),xa(w,[R])}})}function lD(e){if(e==null)return null;if(Ct(e))return[q0(e.enter),q0(e.leave)];{const t=q0(e);return[t,t]}}function q0(e){return bP(e)}function Ki(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hu]||(e[hu]=new Set)).add(t)}function Ds(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[hu];n&&(n.delete(t),n.size||(e[hu]=void 0))}function H_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let uD=0;function W_(e,t,n,o){const r=e._endId=++uD,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=BE(e,t);if(!s)return o();const u=s+"end";let d=0;const f=()=>{e.removeEventListener(u,p),i()},p=h=>{h.target===e&&++d>=l&&f()};setTimeout(()=>{d(n[m]||"").split(", "),r=o(`${Cs}Delay`),i=o(`${Cs}Duration`),s=G_(r,i),a=o(`${sc}Delay`),l=o(`${sc}Duration`),u=G_(a,l);let d=null,f=0,p=0;t===Cs?s>0&&(d=Cs,f=s,p=i.length):t===sc?u>0&&(d=sc,f=u,p=l.length):(f=Math.max(s,u),d=f>0?s>u?Cs:sc:null,p=d?d===Cs?i.length:l.length:0);const h=d===Cs&&/\b(transform|all)(,|$)/.test(o(`${Cs}Property`).toString());return{type:d,timeout:f,propCount:p,hasTransform:h}}function G_(e,t){for(;e.lengthK_(n)+K_(e[o])))}function K_(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $E(){return document.body.offsetHeight}function cD(e,t,n){const o=e[hu];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Jh=Symbol("_vod"),UE=Symbol("_vsh"),Vt={beforeMount(e,{value:t},{transition:n}){e[Jh]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ac(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ac(e,!0),o.enter(e)):o.leave(e,()=>{ac(e,!1)}):ac(e,t))},beforeUnmount(e,{value:t}){ac(e,t)}};function ac(e,t){e.style.display=t?e[Jh]:"none",e[UE]=!t}const dD=Symbol(""),fD=/(^|;)\s*display\s*:/;function hD(e,t,n){const o=e.style,r=et(n);let i=!1;if(n&&!r){if(t)if(et(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&vh(o,a,"")}else for(const s in t)n[s]==null&&vh(o,s,"");for(const s in n)s==="display"&&(i=!0),vh(o,s,n[s])}else if(r){if(t!==n){const s=o[dD];s&&(n+=";"+s),o.cssText=n,i=fD.test(n)}}else t&&e.removeAttribute("style");Jh in e&&(e[Jh]=i?o.display:"",e[UE]&&(o.display="none"))}const q_=/\s*!important$/;function vh(e,t,n){if(Oe(n))n.forEach(o=>vh(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=pD(e,t);q_.test(n)?e.setProperty(fa(o),n.replace(q_,""),"important"):e[o]=n}}const j_=["Webkit","Moz","ms"],j0={};function pD(e,t){const n=j0[t];if(n)return n;let o=mr(t);if(o!=="filter"&&o in e)return j0[t]=o;o=Id(o);for(let r=0;rY0||(_D.then(()=>Y0=0),Y0=Date.now());function SD(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Rr(wD(o,n.value),t,5,[o])};return n.value=e,n.attached=xD(),n}function wD(e,t){if(Oe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const J_=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,CD=(e,t,n,o,r,i,s,a,l)=>{const u=r==="svg";t==="class"?cD(e,o,u):t==="style"?hD(e,n,o):$p(t)?Pb(t)||bD(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ED(e,t,o,u))?vD(e,t,o,i,s,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),mD(e,t,o,u))};function ED(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&J_(t)&&it(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return J_(t)&&et(n)?!1:t in e}const zE=new WeakMap,VE=new WeakMap,Qh=Symbol("_moveCb"),Q_=Symbol("_enterCb"),HE={name:"TransitionGroup",props:eo({},aD,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Pt(),o=cE();let r,i;return ei(()=>{if(!r.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!RD(r[0].el,n.vnode.el,s))return;r.forEach(TD),r.forEach(AD);const a=r.filter(kD);$E(),a.forEach(l=>{const u=l.el,d=u.style;Ki(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[Qh]=p=>{p&&p.target!==u||(!p||/transform$/.test(p.propertyName))&&(u.removeEventListener("transitionend",f),u[Qh]=null,Ds(u,s))};u.addEventListener("transitionend",f)})}),()=>{const s=sn(e),a=FE(s);let l=s.tag||tt;if(r=[],i)for(let u=0;udelete e.mode;HE.props;const WE=HE;function TD(e){const t=e.el;t[Qh]&&t[Qh](),t[Q_]&&t[Q_]()}function AD(e){VE.set(e,e.el.getBoundingClientRect())}function kD(e){const t=zE.get(e),n=VE.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${r}px)`,i.transitionDuration="0s",e}}function RD(e,t,n){const o=e.cloneNode(),r=e[hu];r&&r.forEach(a=>{a.split(/\s+/).forEach(l=>l&&o.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:s}=BE(o);return i.removeChild(o),s}const pu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Oe(t)?n=>ph(t,n):t};function PD(e){e.target.composing=!0}function e2(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ns=Symbol("_assign"),Nd={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[ns]=pu(r);const i=o||r.props&&r.props.type==="number";zs(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=mv(a)),e[ns](a)}),n&&zs(e,"change",()=>{e.value=e.value.trim()}),t||(zs(e,"compositionstart",PD),zs(e,"compositionend",e2),zs(e,"change",e2))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e[ns]=pu(i),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?mv(e.value):e.value,a=t??"";s!==a&&(document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===a)||(e.value=a))}},ep={deep:!0,created(e,t,n){e[ns]=pu(n),zs(e,"change",()=>{const o=e._modelValue,r=KE(e),i=e.checked,s=e[ns];if(Oe(o)){const a=NC(o,r),l=a!==-1;if(i&&!l)s(o.concat(r));else if(!i&&l){const u=[...o];u.splice(a,1),s(u)}}else if(Up(o)){const a=new Set(o);i?a.add(r):a.delete(r),s(a)}else s(qE(e,i))})},mounted:t2,beforeUpdate(e,t,n){e[ns]=pu(n),t2(e,t,n)}};function t2(e,{value:t,oldValue:n},o){e._modelValue=t,Oe(t)?e.checked=NC(t,o.props.value)>-1:Up(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=fu(t,qE(e,!0)))}const GE={created(e,{value:t},n){e.checked=fu(t,n.props.value),e[ns]=pu(n),zs(e,"change",()=>{e[ns](KE(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[ns]=pu(o),t!==n&&(e.checked=fu(t,o.props.value))}};function KE(e){return"_value"in e?e._value:e.value}function qE(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const DD=["ctrl","shift","alt","meta"],ID={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)=>DD.some(n=>e[`${n}Key`]&&!t.includes(n))},dt=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=fa(r.key);if(t.some(s=>s===i||LD[s]===i))return e(r)})},ND=eo({patchProp:CD},sD);let n2;function jE(){return n2||(n2=B4(ND))}const na=(...e)=>{jE().render(...e)},YE=(...e)=>{const t=jE().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=FD(o);if(!r)return;const i=t._component;!it(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,OD(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function OD(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function FD(e){return et(e)?document.querySelector(e):e}const BD="2.10.1",o2=Symbol("INSTALLED_KEY"),XE=Symbol(),Ic="el",$D="is-",Sa=(e,t,n,o,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),o&&(i+=`__${o}`),r&&(i+=`--${r}`),i},ZE=Symbol("namespaceContextKey"),Zb=e=>{const t=e||(Pt()?je(ZE,F(Ic)):F(Ic));return A(()=>c(t)||Ic)},Pe=(e,t)=>{const n=Zb(t);return{namespace:n,b:(v="")=>Sa(n.value,e,v,"",""),e:v=>v?Sa(n.value,e,"",v,""):"",m:v=>v?Sa(n.value,e,"","",v):"",be:(v,b)=>v&&b?Sa(n.value,e,v,b,""):"",em:(v,b)=>v&&b?Sa(n.value,e,"",v,b):"",bm:(v,b)=>v&&b?Sa(n.value,e,v,"",b):"",bem:(v,b,g)=>v&&b&&g?Sa(n.value,e,v,b,g):"",is:(v,...b)=>{const g=b.length>=1?b[0]:!0;return v&&g?`${$D}${v}`:""},cssVar:v=>{const b={};for(const g in v)v[g]&&(b[`--${n.value}-${g}`]=v[g]);return b},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const b={};for(const g in v)v[g]&&(b[`--${n.value}-${e}-${g}`]=v[g]);return b},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};var JE=typeof global=="object"&&global&&global.Object===Object&&global,UD=typeof self=="object"&&self&&self.Object===Object&&self,ti=JE||UD||Function("return this")(),Dr=ti.Symbol,QE=Object.prototype,zD=QE.hasOwnProperty,VD=QE.toString,lc=Dr?Dr.toStringTag:void 0;function HD(e){var t=zD.call(e,lc),n=e[lc];try{e[lc]=void 0;var o=!0}catch{}var r=VD.call(e);return o&&(t?e[lc]=n:delete e[lc]),r}var WD=Object.prototype,GD=WD.toString;function KD(e){return GD.call(e)}var qD="[object Null]",jD="[object Undefined]",r2=Dr?Dr.toStringTag:void 0;function dl(e){return e==null?e===void 0?jD:qD:r2&&r2 in Object(e)?HD(e):KD(e)}function Ci(e){return e!=null&&typeof e=="object"}var YD="[object Symbol]";function t0(e){return typeof e=="symbol"||Ci(e)&&dl(e)==YD}function Jb(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=wI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function TI(e){return function(){return e}}var tp=function(){try{var e=hl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),AI=tp?function(e,t){return tp(e,"toString",{configurable:!0,enumerable:!1,value:TI(t),writable:!0})}:Qb,nM=MI(AI);function kI(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}var LI=9007199254740991,NI=/^(?:0|[1-9]\d*)$/;function n0(e,t){var n=typeof e;return t=t??LI,!!t&&(n=="number"||n!="symbol"&&NI.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=BI}function Wu(e){return e!=null&&oy(e.length)&&!ey(e)}function $I(e,t,n){if(!$o(n))return!1;var o=typeof t;return(o=="number"?Wu(n)&&n0(t,n.length):o=="string"&&t in n)?Od(n[t],e):!1}function UI(e){return iM(function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,s&&$I(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function X6(e,t){var n=this.__data__,o=o0(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function ps(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?$d(a,t-1,n,o,r):ly(r,a):o||(r[r.length]=a)}return r}function dM(e){var t=e==null?0:e.length;return t?$d(e,1):[]}function fM(e){return nM(rM(e,void 0,dM),e+"")}var uy=cM(Object.getPrototypeOf,Object),dL="[object Object]",fL=Function.prototype,hL=Object.prototype,hM=fL.toString,pL=hL.hasOwnProperty,mL=hM.call(Object);function pM(e){if(!Ci(e)||dl(e)!=dL)return!1;var t=uy(e);if(t===null)return!0;var n=pL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hM.call(n)==mL}function vL(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++oa))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=n&ZN?new od:void 0;for(i.set(e,t),i.set(t,e);++f=t||M<0||f&&T>=i}function g(){var S=Q0();if(b(S))return x(S);a=setTimeout(g,v(S))}function x(S){return a=void 0,p&&o?h(S):(o=r=void 0,s)}function y(){a!==void 0&&clearTimeout(a),u=0,o=l=r=a=void 0}function _(){return a===void 0?s:x(Q0())}function w(){var S=Q0(),M=b(S);if(o=arguments,r=this,l=S,M){if(a===void 0)return m(l);if(f)return clearTimeout(a),a=setTimeout(g,t),h(l)}return a===void 0&&(a=setTimeout(g,t)),s}return w.cancel=y,w.flush=_,w}function Pv(e,t,n){(n!==void 0&&!Od(e[t],n)||n===void 0&&!(t in e))&&ty(e,t,n)}function IM(e){return Ci(e)&&Wu(e)}function Dv(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function UO(e){return Hu(e,Bd(e))}function zO(e,t,n,o,r,i,s){var a=Dv(e,n),l=Dv(t,n),u=s.get(l);if(u){Pv(e,n,u);return}var d=i?i(a,l,n+"",e,t,s):void 0,f=d===void 0;if(f){var p=Bo(l),h=!p&&ed(l),m=!p&&!h&&sy(l);d=l,p||h||m?Bo(a)?d=a:IM(a)?d=tM(a):h?(f=!1,d=vM(l,!0)):m?(f=!1,d=xM(l,!0)):d=[]:pM(l)||Qc(l)?(d=a,Qc(a)?d=UO(a):(!$o(a)||ey(a))&&(d=SM(l))):f=!1}f&&(s.set(l,d),r(d,l,o,i,s),s.delete(l)),Pv(e,n,d)}function LM(e,t,n,o,r){e!==t&&DM(t,function(i,s){if(r||(r=new Xr),$o(i))zO(e,t,s,n,LM,o,r);else{var a=o?o(Dv(e,s),i,s+"",e,t,r):void 0;a===void 0&&(a=i),Pv(e,s,a)}},Bd)}function VO(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function NM(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=o-1;return oM(e,PM(t),r,!0)}function HO(e,t){var n=-1,o=Wu(e)?Array(e.length):[];return OO(e,function(r,i,s){o[++n]=t(r,i,s)}),o}function WO(e,t){var n=Bo(e)?Jb:HO;return n(e,PM(t))}function GO(e,t){return $d(WO(e,t),1)}var KO=1/0;function qO(e){var t=e==null?0:e.length;return t?$d(e,KO):[]}function rd(e){for(var t=-1,n=e==null?0:e.length,o={};++t1),i}),Hu(e,_M(e),n),o&&(n=eu(n,JO|QO|e8,ZO));for(var r=t.length;r--;)XO(n,t[r]);return n});function FM(e,t,n,o){if(!$o(e))return e;t=Gu(t,e);for(var r=-1,i=t.length,s=i-1,a=e;a!=null&&++r=l8){var u=a8(e);if(u)return fy(u);s=!1,r=MM,l=new od}else l=a;e:for(;++oe===void 0,Jt=e=>typeof e=="boolean",st=e=>typeof e=="number",ur=e=>!e&&e!==0||Oe(e)&&e.length===0||Ct(e)&&!Object.keys(e).length,Fo=e=>typeof Element>"u"?!1:e instanceof Element,jo=e=>qn(e),c8=e=>et(e)?!Number.isNaN(Number(e)):!1,l0=e=>e===window;var d8=Object.defineProperty,f8=Object.defineProperties,h8=Object.getOwnPropertyDescriptors,N2=Object.getOwnPropertySymbols,p8=Object.prototype.hasOwnProperty,m8=Object.prototype.propertyIsEnumerable,O2=(e,t,n)=>t in e?d8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v8=(e,t)=>{for(var n in t||(t={}))p8.call(t,n)&&O2(e,n,t[n]);if(N2)for(var n of N2(t))m8.call(t,n)&&O2(e,n,t[n]);return e},g8=(e,t)=>f8(e,h8(t));function rp(e,t){var n;const o=fn();return co(()=>{o.value=e()},g8(v8({},t),{flush:(n=void 0)!=null?n:"sync"})),zu(o)}var F2;const Ft=typeof window<"u",b8=e=>typeof e<"u",Iv=e=>typeof e=="function",y8=e=>typeof e=="string",vu=()=>{},ip=Ft&&((F2=window==null?void 0:window.navigator)==null?void 0:F2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oa(e){return typeof e=="function"?e():c(e)}function BM(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function _8(e,t={}){let n,o,r=vu;const i=a=>{clearTimeout(a),r(),r=vu};return a=>{const l=oa(e),u=oa(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(o&&(i(o),o=null),Promise.resolve(a())):new Promise((d,f)=>{r=t.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,d(a())},u)),n=setTimeout(()=>{o&&i(o),o=null,d(a())},l)})}}function x8(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,a=vu,l;const u=()=>{i&&(clearTimeout(i),i=void 0,a(),a=vu)};return f=>{const p=oa(e),h=Date.now()-r,m=()=>l=f();return u(),p<=0?(r=Date.now(),m()):(h>p&&(n||!s)?(r=Date.now(),m()):t&&(l=new Promise((v,b)=>{a=o?b:v,i=setTimeout(()=>{r=Date.now(),s=!0,v(m()),u()},Math.max(0,p-h))})),!n&&!i&&(i=setTimeout(()=>s=!0,p)),s=!1,l)}}function S8(e){return e}function w8(e,t){let n,o,r;const i=F(!0),s=()=>{i.value=!0,r()};Te(e,s,{flush:"sync"});const a=Iv(t)?t:t.get,l=Iv(t)?void 0:t.set,u=JP((d,f)=>(o=d,r=f,{get(){return i.value&&(n=a(),i.value=!1),o(),n},set(p){l==null||l(p)}}));return Object.isExtensible(u)&&(u.trigger=s),u}function zd(e){return BC()?($C(e),!0):!1}function C8(e,t=200,n={}){return BM(_8(t,n),e)}function E8(e,t=200,n={}){const o=F(e.value),r=C8(()=>{o.value=e.value},t,n);return Te(e,()=>r()),o}function $M(e,t=200,n=!1,o=!0,r=!1){return BM(x8(t,n,o,r),e)}function hy(e,t=!0){Pt()?xt(e):t?e():Qe(e)}function tl(e,t,n={}){const{immediate:o=!0}=n,r=F(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){r.value=!1,s()}function l(...u){s(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...u)},oa(t))}return o&&(r.value=!0,Ft&&l()),zd(a),{isPending:zu(r),start:l,stop:a}}function lo(e){var t;const n=oa(e);return(t=n==null?void 0:n.$el)!=null?t:n}const vs=Ft?window:void 0,M8=Ft?window.document:void 0;function on(...e){let t,n,o,r;if(y8(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=vs):[t,n,o,r]=e,!t)return vu;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},a=(d,f,p,h)=>(d.addEventListener(f,p,h),()=>d.removeEventListener(f,p,h)),l=Te(()=>[lo(t),oa(r)],([d,f])=>{s(),d&&i.push(...n.flatMap(p=>o.map(h=>a(d,p,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return zd(u),u}let B2=!1;function py(e,t,n={}){const{window:o=vs,ignore:r=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return;ip&&!B2&&(B2=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",vu)));let a=!0;const l=p=>r.some(h=>{if(typeof h=="string")return Array.from(o.document.querySelectorAll(h)).some(m=>m===p.target||p.composedPath().includes(m));{const m=lo(h);return m&&(p.target===m||p.composedPath().includes(m))}}),d=[on(o,"click",p=>{const h=lo(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(a=!l(p)),!a){a=!0;return}t(p)}},{passive:!0,capture:i}),on(o,"pointerdown",p=>{const h=lo(e);h&&(a=!p.composedPath().includes(h)&&!l(p))},{passive:!0}),s&&on(o,"blur",p=>{var h;const m=lo(e);((h=o.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(m!=null&&m.contains(o.document.activeElement))&&t(p)})].filter(Boolean);return()=>d.forEach(p=>p())}function T8(e={}){var t;const{window:n=vs}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=w8(()=>null,()=>o==null?void 0:o.activeElement);return n&&(on(n,"blur",i=>{i.relatedTarget===null&&r.trigger()},!0),on(n,"focus",r.trigger,!0)),r}function UM(e,t=!1){const n=F(),o=()=>n.value=!!e();return o(),hy(o,t),n}function A8(e){return JSON.parse(JSON.stringify(e))}const $2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U2="__vueuse_ssr_handlers__";$2[U2]=$2[U2]||{};function k8(e,t,{window:n=vs,initialValue:o=""}={}){const r=F(o),i=A(()=>{var s;return lo(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return Te([i,()=>oa(e)],([s,a])=>{var l;if(s&&n){const u=(l=n.getComputedStyle(s).getPropertyValue(a))==null?void 0:l.trim();r.value=u||o}},{immediate:!0}),Te(r,s=>{var a;(a=i.value)!=null&&a.style&&i.value.style.setProperty(oa(e),s)}),r}function R8({document:e=M8}={}){if(!e)return F("visible");const t=F(e.visibilityState);return on(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var z2=Object.getOwnPropertySymbols,P8=Object.prototype.hasOwnProperty,D8=Object.prototype.propertyIsEnumerable,I8=(e,t)=>{var n={};for(var o in e)P8.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&z2)for(var o of z2(e))t.indexOf(o)<0&&D8.call(e,o)&&(n[o]=e[o]);return n};function vn(e,t,n={}){const o=n,{window:r=vs}=o,i=I8(o,["window"]);let s;const a=UM(()=>r&&"ResizeObserver"in r),l=()=>{s&&(s.disconnect(),s=void 0)},u=Te(()=>lo(e),f=>{l(),a.value&&r&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return zd(d),{isSupported:a,stop:d}}function V2(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:r=!0,immediate:i=!0}=t,s=F(0),a=F(0),l=F(0),u=F(0),d=F(0),f=F(0),p=F(0),h=F(0);function m(){const v=lo(e);if(!v){n&&(s.value=0,a.value=0,l.value=0,u.value=0,d.value=0,f.value=0,p.value=0,h.value=0);return}const b=v.getBoundingClientRect();s.value=b.height,a.value=b.bottom,l.value=b.left,u.value=b.right,d.value=b.top,f.value=b.width,p.value=b.x,h.value=b.y}return vn(e,m),Te(()=>lo(e),v=>!v&&m()),r&&on("scroll",m,{capture:!0,passive:!0}),o&&on("resize",m,{passive:!0}),hy(()=>{i&&m()}),{height:s,bottom:a,left:l,right:u,top:d,width:f,x:p,y:h,update:m}}function L8(e,t={width:0,height:0},n={}){const{window:o=vs,box:r="content-box"}=n,i=A(()=>{var l,u;return(u=(l=lo(e))==null?void 0:l.namespaceURI)==null?void 0:u.includes("svg")}),s=F(t.width),a=F(t.height);return vn(e,([l])=>{const u=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(o&&i.value){const d=lo(e);if(d){const f=o.getComputedStyle(d);s.value=parseFloat(f.width),a.value=parseFloat(f.height)}}else if(u){const d=Array.isArray(u)?u:[u];s.value=d.reduce((f,{inlineSize:p})=>f+p,0),a.value=d.reduce((f,{blockSize:p})=>f+p,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},n),Te(()=>lo(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}var H2=Object.getOwnPropertySymbols,N8=Object.prototype.hasOwnProperty,O8=Object.prototype.propertyIsEnumerable,F8=(e,t)=>{var n={};for(var o in e)N8.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&H2)for(var o of H2(e))t.indexOf(o)<0&&O8.call(e,o)&&(n[o]=e[o]);return n};function zM(e,t,n={}){const o=n,{window:r=vs}=o,i=F8(o,["window"]);let s;const a=UM(()=>r&&"MutationObserver"in r),l=()=>{s&&(s.disconnect(),s=void 0)},u=Te(()=>lo(e),f=>{l(),a.value&&r&&f&&(s=new MutationObserver(t),s.observe(f,i))},{immediate:!0}),d=()=>{l(),u()};return zd(d),{isSupported:a,stop:d}}var W2;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(W2||(W2={}));var B8=Object.defineProperty,G2=Object.getOwnPropertySymbols,$8=Object.prototype.hasOwnProperty,U8=Object.prototype.propertyIsEnumerable,K2=(e,t,n)=>t in e?B8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z8=(e,t)=>{for(var n in t||(t={}))$8.call(t,n)&&K2(e,n,t[n]);if(G2)for(var n of G2(t))U8.call(t,n)&&K2(e,n,t[n]);return e};const V8={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]};z8({linear:S8},V8);function VM(e,t,n,o={}){var r,i,s;const{clone:a=!1,passive:l=!1,eventName:u,deep:d=!1,defaultValue:f}=o,p=Pt(),h=n||(p==null?void 0:p.emit)||((r=p==null?void 0:p.$emit)==null?void 0:r.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let m=u;t||(t="modelValue"),m=u||m||`update:${t.toString()}`;const v=g=>a?Iv(a)?a(g):A8(g):g,b=()=>b8(e[t])?v(e[t]):f;if(l){const g=b(),x=F(g);return Te(()=>e[t],y=>x.value=v(y)),Te(x,y=>{(y!==e[t]||d)&&h(m,y)},{deep:d}),x}else return A({get(){return b()},set(g){h(m,g)}})}function H8({window:e=vs}={}){if(!e)return F(!1);const t=F(e.document.hasFocus());return on(e,"blur",()=>{t.value=!1}),on(e,"focus",()=>{t.value=!0}),t}function W8(e={}){const{window:t=vs,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=F(n),a=F(o),l=()=>{t&&(i?(s.value=t.innerWidth,a.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),hy(l),on("resize",l,{passive:!0}),r&&on("orientationchange",l,{passive:!0}),{width:s,height:a}}class G8 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ln(e,t){throw new G8(`[${e}] ${t}`)}const q2={current:0},j2=F(0),HM=2e3,Y2=Symbol("elZIndexContextKey"),WM=Symbol("zIndexContextKey"),qu=e=>{const t=Pt()?je(Y2,q2):q2,n=e||(Pt()?je(WM,void 0):void 0),o=A(()=>{const s=c(n);return st(s)?s:HM}),r=A(()=>o.value+j2.value),i=()=>(t.current++,j2.value=t.current,r.value);return!Ft&&je(Y2),{initialZIndex:o,currentZIndex:r,nextZIndex:i}};var K8={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const q8=e=>(t,n)=>j8(t,n,c(e)),j8=(e,t,n)=>Dn(n,e,e).replace(/\{(\w+)\}/g,(o,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),Y8=e=>{const t=A(()=>c(e).name),n=hn(e)?e:F(e);return{lang:t,locale:n,t:q8(e)}},GM=Symbol("localeContextKey"),$t=e=>{const t=e||je(GM,F());return Y8(A(()=>t.value||K8))},KM="__epPropKey",le=e=>e,X8=e=>Ct(e)&&!!e[KM],ni=(e,t)=>{if(!Ct(e)||X8(e))return e;const{values:n,required:o,default:r,type:i,validator:s}=e,l={type:i,required:!!o,validator:n||s?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),zt(e,"default")&&f.push(r),d||(d=f.includes(u))),s&&(d||(d=s(u))),!d&&f.length>0){const p=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");oD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[KM]:!0};return zt(e,"default")&&(l.default=r),l},Ue=e=>rd(Object.entries(e).map(([t,n])=>[t,ni(n,t)])),Pi=["","default","small","large"],Vn=ni({type:String,values:Pi,required:!1}),qM=Symbol("size"),jM=()=>{const e=je(qM,{});return A(()=>c(e.size)||"")},YM=Symbol("emptyValuesContextKey"),Z8=["",void 0,null],J8=void 0,ju=Ue({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>it(e)?!e():!e}}),u0=(e,t)=>{const n=Pt()?je(YM,F({})):F({}),o=A(()=>e.emptyValues||n.value.emptyValues||Z8),r=A(()=>it(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:it(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:J8),i=s=>o.value.includes(s);return o.value.includes(r.value),{emptyValues:o,valueOnClear:r,isEmptyValue:i}},gu=e=>Object.keys(e),XM=e=>Object.entries(e),Nc=(e,t,n)=>({get value(){return Dn(e,t,n)},set value(o){r8(e,t,o)}}),sp=F();function Vd(e,t=void 0){const n=Pt()?je(XE,sp):sp;return e?A(()=>{var o,r;return(r=(o=n.value)==null?void 0:o[e])!=null?r:t}):n}function c0(e,t){const n=Vd(),o=Pe(e,A(()=>{var a;return((a=n.value)==null?void 0:a.namespace)||Ic})),r=$t(A(()=>{var a;return(a=n.value)==null?void 0:a.locale})),i=qu(A(()=>{var a;return((a=n.value)==null?void 0:a.zIndex)||HM})),s=A(()=>{var a;return c(t)||((a=n.value)==null?void 0:a.size)||""});return my(A(()=>c(n)||{})),{ns:o,locale:r,zIndex:i,size:s}}const my=(e,t,n=!1)=>{var o;const r=!!Pt(),i=r?Vd():void 0,s=(o=t==null?void 0:t.provide)!=null?o:r?Lt:void 0;if(!s)return;const a=A(()=>{const l=c(e);return i!=null&&i.value?Q8(i.value,l):l});return s(XE,a),s(GM,A(()=>a.value.locale)),s(ZE,A(()=>a.value.namespace)),s(WM,A(()=>a.value.zIndex)),s(qM,{size:A(()=>a.value.size||"")}),s(YM,A(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(n||!sp.value)&&(sp.value=a.value),a},Q8=(e,t)=>{const n=[...new Set([...gu(e),...gu(t)])],o={};for(const r of n)o[r]=t[r]!==void 0?t[r]:e[r];return o},eF=(e=[])=>({version:BD,install:(n,o)=>{n[o2]||(n[o2]=!0,e.forEach(r=>n.use(r)),o&&my(o,n,!0))}}),vt="update:modelValue",It="change",zn="input",tF=Ue({zIndex:{type:le([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),nF={scroll:({scrollTop:e,fixed:t})=>st(e)&&Jt(t),[It]:e=>Jt(e)};var Ve=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function oF(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}const ra=e=>Ft?window.requestAnimationFrame(e):setTimeout(e,16),nl=e=>Ft?window.cancelAnimationFrame(e):clearTimeout(e),ZM=(e="")=>e.split(" ").filter(t=>!!t.trim()),qo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ar=(e,t)=>{!e||!t.trim()||e.classList.add(...ZM(t))},Ao=(e,t)=>{!e||!t.trim()||e.classList.remove(...ZM(t))},Xi=(e,t)=>{var n;if(!Ft||!e||!t)return"";let o=mr(t);o==="float"&&(o="cssFloat");try{const r=e.style[o];if(r)return r;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[o]:""}catch{return e.style[o]}},JM=(e,t,n)=>{if(!(!e||!t))if(Ct(t))XM(t).forEach(([o,r])=>JM(e,o,r));else{const o=mr(t);e.style[o]=n}};function Sn(e,t="px"){if(!e)return"";if(st(e)||c8(e))return`${e}${t}`;if(et(e))return e}const rF=(e,t)=>{if(!Ft)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=Xi(e,n);return["scroll","auto","overlay"].some(r=>o.includes(r))},vy=(e,t)=>{if(!Ft)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(rF(n,t))return n;n=n.parentNode}return n};let gf;const QM=e=>{var t;if(!Ft)return 0;if(gf!==void 0)return gf;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 o=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const i=r.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),gf=o-i,gf};function gy(e,t){if(!Ft)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const r=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=r+t.offsetHeight,s=e.scrollTop,a=s+e.clientHeight;ra&&(e.scrollTop=i-e.clientHeight)}function iF(e,t,n,o,r){const i=Date.now();let s;const a=()=>{const u=Date.now()-i,d=oF(u>o?o:u,t,n,o);l0(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,u{s&&nl(s)}}const X2=(e,t)=>l0(t)?e.ownerDocument.documentElement:t,Z2=e=>l0(e)?window.scrollY:e.scrollTop,e3="ElAffix",sF=Q({name:e3}),aF=Q({...sF,props:tF,emits:nF,setup(e,{expose:t,emit:n}){const o=e,r=Pe("affix"),i=fn(),s=fn(),a=fn(),{height:l}=W8(),{height:u,width:d,top:f,bottom:p,update:h}=V2(s,{windowScroll:!1}),m=V2(i),v=F(!1),b=F(0),g=F(0),x=A(()=>({height:v.value?`${u.value}px`:"",width:v.value?`${d.value}px`:""})),y=A(()=>{if(!v.value)return{};const S=o.offset?Sn(o.offset):0;return{height:`${u.value}px`,width:`${d.value}px`,top:o.position==="top"?S:"",bottom:o.position==="bottom"?S:"",transform:g.value?`translateY(${g.value}px)`:"",zIndex:o.zIndex}}),_=()=>{if(!a.value)return;b.value=a.value instanceof Window?document.documentElement.scrollTop:a.value.scrollTop||0;const{position:S,target:M,offset:T}=o,E=T+u.value;if(S==="top")if(M){const C=m.bottom.value-E;v.value=T>f.value&&m.bottom.value>0,g.value=C<0?C:0}else v.value=T>f.value;else if(M){const C=l.value-m.top.value-E;v.value=l.value-Tm.top.value,g.value=C<0?-C:0}else v.value=l.value-T{h(),await Qe(),n("scroll",{scrollTop:b.value,fixed:v.value})};return Te(v,S=>n(It,S)),xt(()=>{var S;o.target?(i.value=(S=document.querySelector(o.target))!=null?S:void 0,i.value||Ln(e3,`Target does not exist: ${o.target}`)):i.value=document.documentElement,a.value=vy(s.value,!0),h()}),on(a,"scroll",w),co(_),t({update:_,updateRoot:h}),(S,M)=>(D(),G("div",{ref_key:"root",ref:s,class:L(c(r).b()),style:rt(c(x))},[j("div",{class:L({[c(r).m("fixed")]:v.value}),style:rt(c(y))},[de(S.$slots,"default")],6)],6))}});var lF=Ve(aF,[["__file","affix.vue"]]);const yt=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},t3=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),uF=(e,t)=>(e.install=n=>{n.directive(t,e)},e),gn=e=>(e.install=jt,e),cF=yt(lF),dF=Ue({size:{type:le([Number,String])},color:{type:String}}),fF=Q({name:"ElIcon",inheritAttrs:!1}),hF=Q({...fF,props:dF,setup(e){const t=e,n=Pe("icon"),o=A(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:Bt(r)?void 0:Sn(r),"--color":i}});return(r,i)=>(D(),G("i",Dt({class:c(n).b(),style:c(o)},r.$attrs),[de(r.$slots,"default")],16))}});var pF=Ve(hF,[["__file","icon.vue"]]);const Je=yt(pF);function J2(){let e;const t=(o,r)=>{n(),e=window.setTimeout(o,r)},n=()=>window.clearTimeout(e);return zd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const n3=Ue({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),o3=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:r})=>{const{registerTimeout:i}=J2(),{registerTimeout:s,cancelTimeout:a}=J2();return{onOpen:d=>{i(()=>{o(d);const f=c(n);st(f)&&f>0&&s(()=>{r(d)},f)},c(e))},onClose:d=>{a(),i(()=>{r(d)},c(t))}}};/*! Element Plus Icons Vue v2.3.1 */var mF=Q({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),Di=mF,vF=Q({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),as=vF,gF=Q({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),ko=gF,bF=Q({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),d0=bF,yF=Q({name:"Back",__name:"back",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),j("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),_F=yF,xF=Q({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),SF=xF,wF=Q({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),r3=wF,CF=Q({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),EF=CF,MF=Q({name:"Check",__name:"check",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("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"})]))}}),Hd=MF,TF=Q({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),AF=TF,kF=Q({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),j("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"})]))}}),by=kF,RF=Q({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),yy=RF,PF=Q({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),j("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),gs=PF,DF=Q({name:"Clock",__name:"clock",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),j("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),j("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),i3=DF,IF=Q({name:"Close",__name:"close",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("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"})]))}}),Ir=IF,LF=Q({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),ia=LF,NF=Q({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),sa=NF,OF=Q({name:"Delete",__name:"delete",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),FF=OF,BF=Q({name:"Document",__name:"document",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),$F=BF,UF=Q({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),zF=UF,VF=Q({name:"Hide",__name:"hide",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),j("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),HF=VF,WF=Q({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),id=WF,GF=Q({name:"Loading",__name:"loading",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Ei=GF,KF=Q({name:"Minus",__name:"minus",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),qF=KF,jF=Q({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Q2=jF,YF=Q({name:"More",__name:"more",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),XF=YF,ZF=Q({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),JF=ZF,QF=Q({name:"Plus",__name:"plus",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),s3=QF,e5=Q({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),t5=e5,n5=Q({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),o5=n5,r5=Q({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),i5=r5,s5=Q({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),a5=s5,l5=Q({name:"Search",__name:"search",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),u5=l5,c5=Q({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),d5=c5,f5=Q({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),h5=f5,p5=Q({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),bf=p5,m5=Q({name:"Star",__name:"star",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),v5=m5,g5=Q({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),a3=g5,b5=Q({name:"View",__name:"view",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),y5=b5,_5=Q({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),f0=_5,x5=Q({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),l3=x5,S5=Q({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(D(),G("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[j("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),w5=S5;const tn=le([String,Object,Function]),u3={Close:Ir},_y={Close:Ir,SuccessFilled:a3,InfoFilled:id,WarningFilled:f0,CircleCloseFilled:yy},aa={primary:id,success:a3,warning:f0,error:yy,info:id},h0={validating:Ei,success:by,error:gs},C5=["light","dark"],E5=Ue({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:gu(aa),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:C5,default:"light"},...n3}),M5={open:()=>!0,close:e=>Bt(e)||e instanceof Event},T5=Q({name:"ElAlert"}),A5=Q({...T5,props:E5,emits:M5,setup(e,{emit:t}){const n=e,{Close:o}=_y,r=Wn(),i=Pe("alert"),s=F(!1),a=A(()=>aa[n.type]),l=A(()=>!!(n.description||r.default)),u=()=>{s.value=!0,t("open")},d=h=>{s.value=!1,t("close",h)},{onOpen:f,onClose:p}=o3({showAfter:Kt(n,"showAfter"),hideAfter:Kt(n,"hideAfter"),autoClose:Kt(n,"autoClose"),open:u,close:d});return Ft&&f(),(h,m)=>(D(),_e(Hn,{name:c(i).b("fade"),persisted:""},{default:se(()=>[_t(j("div",{class:L([c(i).b(),c(i).m(h.type),c(i).is("center",h.center),c(i).is(h.effect)]),role:"alert"},[h.showIcon&&(h.$slots.icon||c(a))?(D(),_e(c(Je),{key:0,class:L([c(i).e("icon"),{[c(i).is("big")]:c(l)}])},{default:se(()=>[de(h.$slots,"icon",{},()=>[(D(),_e(Rt(c(a))))])]),_:3},8,["class"])):pe("v-if",!0),j("div",{class:L(c(i).e("content"))},[h.title||h.$slots.title?(D(),G("span",{key:0,class:L([c(i).e("title"),{"with-description":c(l)}])},[de(h.$slots,"title",{},()=>[Tt(ze(h.title),1)])],2)):pe("v-if",!0),c(l)?(D(),G("p",{key:1,class:L(c(i).e("description"))},[de(h.$slots,"default",{},()=>[Tt(ze(h.description),1)])],2)):pe("v-if",!0),h.closable?(D(),G(tt,{key:2},[h.closeText?(D(),G("div",{key:0,class:L([c(i).e("close-btn"),c(i).is("customed")]),onClick:d},ze(h.closeText),3)):(D(),_e(c(Je),{key:1,class:L(c(i).e("close-btn")),onClick:c(p)},{default:se(()=>[J(c(o))]),_:1},8,["class","onClick"]))],64)):pe("v-if",!0)],2)],2),[[Vt,s.value]])]),_:3},8,["name"]))}});var k5=Ve(A5,[["__file","alert.vue"]]);const R5=yt(k5),xy=()=>Ft&&/firefox/i.test(window.navigator.userAgent);let zo;const P5={height:"0",visibility:"hidden",overflow:xy()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},D5=["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 I5(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:D5.map(s=>[s,t.getPropertyValue(s)]),paddingSize:o,borderSize:r,boxSizing:n}}function ex(e,t=1,n){var o;zo||(zo=document.createElement("textarea"),document.body.appendChild(zo));const{paddingSize:r,borderSize:i,boxSizing:s,contextStyle:a}=I5(e);a.forEach(([f,p])=>zo==null?void 0:zo.style.setProperty(f,p)),Object.entries(P5).forEach(([f,p])=>zo==null?void 0:zo.style.setProperty(f,p,"important")),zo.value=e.value||e.placeholder||"";let l=zo.scrollHeight;const u={};s==="border-box"?l=l+i:s==="content-box"&&(l=l-r),zo.value="";const d=zo.scrollHeight-r;if(st(t)){let f=d*t;s==="border-box"&&(f=f+r+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(st(n)){let f=d*n;s==="border-box"&&(f=f+r+i),l=Math.min(f,l)}return u.height=`${l}px`,(o=zo.parentNode)==null||o.removeChild(zo),zo=void 0,u}const _n=e=>e,L5=Ue({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ho=e=>qr(L5,e),Sy=Ue({id:{type:String,default:void 0},size:Vn,disabled:Boolean,modelValue:{type:le([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:le([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:tn},prefixIcon:{type:tn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:le([Object,Array,String]),default:()=>_n({})},autofocus:Boolean,rows:{type:Number,default:2},...ho(["ariaLabel"])}),N5={[vt]:e=>et(e),input:e=>et(e),change:e=>et(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},O5=["class","style"],F5=/^on[A-Z]/,Wd=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=A(()=>((n==null?void 0:n.value)||[]).concat(O5)),r=Pt();return A(r?()=>{var i;return rd(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([s])=>!o.value.includes(s)&&!(t&&F5.test(s))))}:()=>({}))},tx={prefix:Math.floor(Math.random()*1e4),current:0},B5=Symbol("elIdInjection"),wy=()=>Pt()?je(B5,tx):tx,fo=e=>{const t=wy(),n=Zb();return rp(()=>c(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},pl=Symbol("formContextKey"),Mi=Symbol("formItemContextKey"),xo=()=>{const e=je(pl,void 0),t=je(Mi,void 0);return{form:e,formItem:t}},Br=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=F(!1)),o||(o=F(!1));const r=F();let i;const s=A(()=>{var a;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return xt(()=>{i=Te([Kt(e,"id"),n],([a,l])=>{const u=a??(l?void 0:fo().value);u!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(o!=null&&o.value)&&!l&&u&&t.addInputId(u)),r.value=u)},{immediate:!0})}),fs(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:s,inputId:r}},c3=e=>{const t=Pt();return A(()=>{var n,o;return(o=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:o[e]})},Fn=(e,t={})=>{const n=F(void 0),o=t.prop?n:c3("size"),r=t.global?n:jM(),i=t.form?{size:void 0}:je(pl,void 0),s=t.formItem?{size:void 0}:je(Mi,void 0);return A(()=>o.value||c(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||r.value||"")},po=e=>{const t=c3("disabled"),n=je(pl,void 0);return A(()=>t.value||c(e)||(n==null?void 0:n.disabled)||!1)};function ma(e,{beforeFocus:t,afterFocus:n,beforeBlur:o,afterBlur:r}={}){const i=Pt(),{emit:s}=i,a=fn(),l=po(),u=F(!1),d=h=>{it(t)&&t(h)||u.value||(u.value=!0,s("focus",h),n==null||n())},f=h=>{var m;it(o)&&o(h)||h.relatedTarget&&((m=a.value)!=null&&m.contains(h.relatedTarget))||(u.value=!1,s("blur",h),r==null||r())},p=()=>{var h,m;(h=a.value)!=null&&h.contains(document.activeElement)&&a.value!==document.activeElement||l.value||(m=e.value)==null||m.focus()};return Te([a,l],([h,m])=>{h&&(m?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),on(a,"focus",d,!0),on(a,"blur",f,!0),on(a,"click",p,!0),{isFocused:u,wrapperRef:a,handleFocus:d,handleBlur:f}}const $5=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function Gd({afterComposition:e,emit:t}){const n=F(!1),o=a=>{t==null||t("compositionstart",a),n.value=!0},r=a=>{var l;t==null||t("compositionupdate",a);const u=(l=a.target)==null?void 0:l.value,d=u[u.length-1]||"";n.value=!$5(d)},i=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,Qe(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?i(a):r(a)},handleCompositionStart:o,handleCompositionUpdate:r,handleCompositionEnd:i}}function U5(e){let t;function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:i,value:s}=e.value;if(r==null||i==null)return;const a=s.slice(0,Math.max(0,r)),l=s.slice(Math.max(0,i));t={selectionStart:r,selectionEnd:i,value:s,beforeTxt:a,afterTxt:l}}function o(){if(e.value==null||t==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:a}=t;if(i==null||s==null||a==null)return;let l=r.length;if(r.endsWith(s))l=r.length-s.length;else if(r.startsWith(i))l=i.length;else{const u=i[a-1],d=r.indexOf(u,a-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[n,o]}const z5="ElInput",V5=Q({name:z5,inheritAttrs:!1}),H5=Q({...V5,props:Sy,emits:N5,setup(e,{expose:t,emit:n}){const o=e,r=hs(),i=Wd(),s=Wn(),a=A(()=>[o.type==="textarea"?v.b():m.b(),m.m(p.value),m.is("disabled",h.value),m.is("exceed",oe.value),{[m.b("group")]:s.prepend||s.append,[m.m("prefix")]:s.prefix||o.prefixIcon,[m.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:I.value&&O.value,[m.b("hidden")]:o.type==="hidden"},r.class]),l=A(()=>[m.e("wrapper"),m.is("focus",T.value)]),{form:u,formItem:d}=xo(),{inputId:f}=Br(o,{formItemContext:d}),p=Fn(),h=po(),m=Pe("input"),v=Pe("textarea"),b=fn(),g=fn(),x=F(!1),y=F(!1),_=F(),w=fn(o.inputStyle),S=A(()=>b.value||g.value),{wrapperRef:M,isFocused:T,handleFocus:E,handleBlur:C}=ma(S,{beforeFocus(){return h.value},afterBlur(){var $;o.validateEvent&&(($=d==null?void 0:d.validate)==null||$.call(d,"blur").catch(he=>void 0))}}),k=A(()=>{var $;return($=u==null?void 0:u.statusIcon)!=null?$:!1}),R=A(()=>(d==null?void 0:d.validateState)||""),B=A(()=>R.value&&h0[R.value]),H=A(()=>y.value?y5:HF),N=A(()=>[r.style]),P=A(()=>[o.inputStyle,w.value,{resize:o.resize}]),U=A(()=>qn(o.modelValue)?"":String(o.modelValue)),I=A(()=>o.clearable&&!h.value&&!o.readonly&&!!U.value&&(T.value||x.value)),O=A(()=>o.showPassword&&!h.value&&!!U.value),q=A(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!h.value&&!o.readonly&&!o.showPassword),K=A(()=>U.value.length),oe=A(()=>!!q.value&&K.value>Number(o.maxlength)),X=A(()=>!!s.suffix||!!o.suffixIcon||I.value||o.showPassword||q.value||!!R.value&&k.value),[Y,ie]=U5(b);vn(g,$=>{if(fe(),!q.value||o.resize!=="both")return;const he=$[0],{width:Me}=he.contentRect;_.value={right:`calc(100% - ${Me+15+6}px)`}});const ae=()=>{const{type:$,autosize:he}=o;if(!(!Ft||$!=="textarea"||!g.value))if(he){const Me=Ct(he)?he.minRows:void 0,Be=Ct(he)?he.maxRows:void 0,Ne=ex(g.value,Me,Be);w.value={overflowY:"hidden",...Ne},Qe(()=>{g.value.offsetHeight,w.value=Ne})}else w.value={minHeight:ex(g.value).minHeight}},fe=($=>{let he=!1;return()=>{var Me;if(he||!o.autosize)return;((Me=g.value)==null?void 0:Me.offsetParent)===null||($(),he=!0)}})(ae),be=()=>{const $=S.value,he=o.formatter?o.formatter(U.value):U.value;!$||$.value===he||($.value=he)},De=async $=>{Y();let{value:he}=$.target;if(o.formatter&&o.parser&&(he=o.parser(he)),!V.value){if(he===U.value){be();return}n(vt,he),n(zn,he),await Qe(),be(),ie()}},Re=$=>{let{value:he}=$.target;o.formatter&&o.parser&&(he=o.parser(he)),n(It,he)},{isComposing:V,handleCompositionStart:ee,handleCompositionUpdate:z,handleCompositionEnd:ve}=Gd({emit:n,afterComposition:De}),ce=()=>{Y(),y.value=!y.value,setTimeout(ie)},me=()=>{var $;return($=S.value)==null?void 0:$.focus()},ue=()=>{var $;return($=S.value)==null?void 0:$.blur()},ge=$=>{x.value=!1,n("mouseleave",$)},xe=$=>{x.value=!0,n("mouseenter",$)},Ce=$=>{n("keydown",$)},Fe=()=>{var $;($=S.value)==null||$.select()},Z=()=>{n(vt,""),n(It,""),n("clear"),n(zn,"")};return Te(()=>o.modelValue,()=>{var $;Qe(()=>ae()),o.validateEvent&&(($=d==null?void 0:d.validate)==null||$.call(d,"change").catch(he=>void 0))}),Te(U,()=>be()),Te(()=>o.type,async()=>{await Qe(),be(),ae()}),xt(()=>{!o.formatter&&o.parser,be(),Qe(ae)}),t({input:b,textarea:g,ref:S,textareaStyle:P,autosize:Kt(o,"autosize"),isComposing:V,focus:me,blur:ue,select:Fe,clear:Z,resizeTextarea:ae}),($,he)=>(D(),G("div",{class:L([c(a),{[c(m).bm("group","append")]:$.$slots.append,[c(m).bm("group","prepend")]:$.$slots.prepend}]),style:rt(c(N)),onMouseenter:xe,onMouseleave:ge},[pe(" input "),$.type!=="textarea"?(D(),G(tt,{key:0},[pe(" prepend slot "),$.$slots.prepend?(D(),G("div",{key:0,class:L(c(m).be("group","prepend"))},[de($.$slots,"prepend")],2)):pe("v-if",!0),j("div",{ref_key:"wrapperRef",ref:M,class:L(c(l))},[pe(" prefix slot "),$.$slots.prefix||$.prefixIcon?(D(),G("span",{key:0,class:L(c(m).e("prefix"))},[j("span",{class:L(c(m).e("prefix-inner"))},[de($.$slots,"prefix"),$.prefixIcon?(D(),_e(c(Je),{key:0,class:L(c(m).e("icon"))},{default:se(()=>[(D(),_e(Rt($.prefixIcon)))]),_:1},8,["class"])):pe("v-if",!0)],2)],2)):pe("v-if",!0),j("input",Dt({id:c(f),ref_key:"input",ref:b,class:c(m).e("inner")},c(i),{minlength:$.minlength,maxlength:$.maxlength,type:$.showPassword?y.value?"text":"password":$.type,disabled:c(h),readonly:$.readonly,autocomplete:$.autocomplete,tabindex:$.tabindex,"aria-label":$.ariaLabel,placeholder:$.placeholder,style:$.inputStyle,form:$.form,autofocus:$.autofocus,role:$.containerRole,onCompositionstart:c(ee),onCompositionupdate:c(z),onCompositionend:c(ve),onInput:De,onChange:Re,onKeydown:Ce}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),pe(" suffix slot "),c(X)?(D(),G("span",{key:1,class:L(c(m).e("suffix"))},[j("span",{class:L(c(m).e("suffix-inner"))},[!c(I)||!c(O)||!c(q)?(D(),G(tt,{key:0},[de($.$slots,"suffix"),$.suffixIcon?(D(),_e(c(Je),{key:0,class:L(c(m).e("icon"))},{default:se(()=>[(D(),_e(Rt($.suffixIcon)))]),_:1},8,["class"])):pe("v-if",!0)],64)):pe("v-if",!0),c(I)?(D(),_e(c(Je),{key:1,class:L([c(m).e("icon"),c(m).e("clear")]),onMousedown:dt(c(jt),["prevent"]),onClick:Z},{default:se(()=>[J(c(gs))]),_:1},8,["class","onMousedown"])):pe("v-if",!0),c(O)?(D(),_e(c(Je),{key:2,class:L([c(m).e("icon"),c(m).e("password")]),onClick:ce},{default:se(()=>[(D(),_e(Rt(c(H))))]),_:1},8,["class"])):pe("v-if",!0),c(q)?(D(),G("span",{key:3,class:L(c(m).e("count"))},[j("span",{class:L(c(m).e("count-inner"))},ze(c(K))+" / "+ze($.maxlength),3)],2)):pe("v-if",!0),c(R)&&c(B)&&c(k)?(D(),_e(c(Je),{key:4,class:L([c(m).e("icon"),c(m).e("validateIcon"),c(m).is("loading",c(R)==="validating")])},{default:se(()=>[(D(),_e(Rt(c(B))))]),_:1},8,["class"])):pe("v-if",!0)],2)],2)):pe("v-if",!0)],2),pe(" append slot "),$.$slots.append?(D(),G("div",{key:1,class:L(c(m).be("group","append"))},[de($.$slots,"append")],2)):pe("v-if",!0)],64)):(D(),G(tt,{key:1},[pe(" textarea "),j("textarea",Dt({id:c(f),ref_key:"textarea",ref:g,class:[c(v).e("inner"),c(m).is("focus",c(T))]},c(i),{minlength:$.minlength,maxlength:$.maxlength,tabindex:$.tabindex,disabled:c(h),readonly:$.readonly,autocomplete:$.autocomplete,style:c(P),"aria-label":$.ariaLabel,placeholder:$.placeholder,form:$.form,autofocus:$.autofocus,rows:$.rows,role:$.containerRole,onCompositionstart:c(ee),onCompositionupdate:c(z),onCompositionend:c(ve),onInput:De,onFocus:c(E),onBlur:c(C),onChange:Re,onKeydown:Ce}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),c(q)?(D(),G("span",{key:0,style:rt(_.value),class:L(c(m).e("count"))},ze(c(K))+" / "+ze($.maxlength),7)):pe("v-if",!0)],64))],38))}});var W5=Ve(H5,[["__file","input.vue"]]);const To=yt(W5),yl=4,d3={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},G5=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Cy=Symbol("scrollbarContextKey"),K5=Ue({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),q5="Thumb",j5=Q({__name:"thumb",props:K5,setup(e){const t=e,n=je(Cy),o=Pe("scrollbar");n||Ln(q5,"can not inject scrollbar context");const r=F(),i=F(),s=F({}),a=F(!1);let l=!1,u=!1,d=0,f=Ft?document.onselectstart:null;const p=A(()=>d3[t.vertical?"vertical":"horizontal"]),h=A(()=>G5({size:t.size,move:t.move,bar:p.value})),m=A(()=>r.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/i.value[p.value.offset]),v=M=>{var T;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(T=window.getSelection())==null||T.removeAllRanges(),g(M);const E=M.currentTarget;E&&(s.value[p.value.axis]=E[p.value.offset]-(M[p.value.client]-E.getBoundingClientRect()[p.value.direction]))},b=M=>{if(!i.value||!r.value||!n.wrapElement)return;const T=Math.abs(M.target.getBoundingClientRect()[p.value.direction]-M[p.value.client]),E=i.value[p.value.offset]/2,C=(T-E)*100*m.value/r.value[p.value.offset];n.wrapElement[p.value.scroll]=C*n.wrapElement[p.value.scrollSize]/100},g=M=>{M.stopImmediatePropagation(),l=!0,d=n.wrapElement.scrollHeight,document.addEventListener("mousemove",x),document.addEventListener("mouseup",y),f=document.onselectstart,document.onselectstart=()=>!1},x=M=>{if(!r.value||!i.value||l===!1)return;const T=s.value[p.value.axis];if(!T)return;const E=(r.value.getBoundingClientRect()[p.value.direction]-M[p.value.client])*-1,C=i.value[p.value.offset]-T,k=(E-C)*100*m.value/r.value[p.value.offset];n.wrapElement[p.value.scroll]=k*d/100},y=()=>{l=!1,s.value[p.value.axis]=0,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",y),S(),u&&(a.value=!1)},_=()=>{u=!1,a.value=!!t.size},w=()=>{u=!0,a.value=l};Qt(()=>{S(),document.removeEventListener("mouseup",y)});const S=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return on(Kt(n,"scrollbarElement"),"mousemove",_),on(Kt(n,"scrollbarElement"),"mouseleave",w),(M,T)=>(D(),_e(Hn,{name:c(o).b("fade"),persisted:""},{default:se(()=>[_t(j("div",{ref_key:"instance",ref:r,class:L([c(o).e("bar"),c(o).is(c(p).key)]),onMousedown:b,onClick:dt(()=>{},["stop"])},[j("div",{ref_key:"thumb",ref:i,class:L(c(o).e("thumb")),style:rt(c(h)),onMousedown:v},null,38)],42,["onClick"]),[[Vt,M.always||a.value]])]),_:1},8,["name"]))}});var nx=Ve(j5,[["__file","thumb.vue"]]);const Y5=Ue({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),X5=Q({__name:"bar",props:Y5,setup(e,{expose:t}){const n=e,o=je(Cy),r=F(0),i=F(0),s=F(""),a=F(""),l=F(1),u=F(1);return t({handleScroll:p=>{if(p){const h=p.offsetHeight-yl,m=p.offsetWidth-yl;i.value=p.scrollTop*100/h*l.value,r.value=p.scrollLeft*100/m*u.value}},update:()=>{const p=o==null?void 0:o.wrapElement;if(!p)return;const h=p.offsetHeight-yl,m=p.offsetWidth-yl,v=h**2/p.scrollHeight,b=m**2/p.scrollWidth,g=Math.max(v,n.minSize),x=Math.max(b,n.minSize);l.value=v/(h-v)/(g/(h-g)),u.value=b/(m-b)/(x/(m-x)),a.value=g+yl(D(),G(tt,null,[J(nx,{move:r.value,ratio:u.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),J(nx,{move:i.value,ratio:l.value,size:a.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}});var Z5=Ve(X5,[["__file","bar.vue"]]);const J5=Ue({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:le([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...ho(["ariaLabel","ariaOrientation"])}),f3={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(st)},Q5="ElScrollbar",eB=Q({name:Q5}),tB=Q({...eB,props:J5,emits:f3,setup(e,{expose:t,emit:n}){const o=e,r=Pe("scrollbar");let i,s,a=0,l=0,u="";const d=F(),f=F(),p=F(),h=F(),m=A(()=>{const S={};return o.height&&(S.height=Sn(o.height)),o.maxHeight&&(S.maxHeight=Sn(o.maxHeight)),[o.wrapStyle,S]}),v=A(()=>[o.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!o.native}]),b=A(()=>[r.e("view"),o.viewClass]),g=()=>{var S;if(f.value){(S=h.value)==null||S.handleScroll(f.value);const M=a,T=l;a=f.value.scrollTop,l=f.value.scrollLeft;const E={bottom:a+f.value.clientHeight>=f.value.scrollHeight,top:a<=0&&M!==0,right:l+f.value.clientWidth>=f.value.scrollWidth&&T!==l,left:l<=0&&T!==0};M!==a&&(u=a>M?"bottom":"top"),T!==l&&(u=l>T?"right":"left"),n("scroll",{scrollTop:a,scrollLeft:l}),E[u]&&n("end-reached",u)}};function x(S,M){Ct(S)?f.value.scrollTo(S):st(S)&&st(M)&&f.value.scrollTo(S,M)}const y=S=>{st(S)&&(f.value.scrollTop=S)},_=S=>{st(S)&&(f.value.scrollLeft=S)},w=()=>{var S;(S=h.value)==null||S.update()};return Te(()=>o.noresize,S=>{S?(i==null||i(),s==null||s()):({stop:i}=vn(p,w),s=on("resize",w))},{immediate:!0}),Te(()=>[o.maxHeight,o.height],()=>{o.native||Qe(()=>{var S;w(),f.value&&((S=h.value)==null||S.handleScroll(f.value))})}),Lt(Cy,Gt({scrollbarElement:d,wrapElement:f})),Xp(()=>{f.value&&(f.value.scrollTop=a,f.value.scrollLeft=l)}),xt(()=>{o.native||Qe(()=>{w()})}),ei(()=>w()),t({wrapRef:f,update:w,scrollTo:x,setScrollTop:y,setScrollLeft:_,handleScroll:g}),(S,M)=>(D(),G("div",{ref_key:"scrollbarRef",ref:d,class:L(c(r).b())},[j("div",{ref_key:"wrapRef",ref:f,class:L(c(v)),style:rt(c(m)),tabindex:S.tabindex,onScroll:g},[(D(),_e(Rt(S.tag),{id:S.id,ref_key:"resizeRef",ref:p,class:L(c(b)),style:rt(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:se(()=>[de(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),S.native?pe("v-if",!0):(D(),_e(Z5,{key:0,ref_key:"barRef",ref:h,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var nB=Ve(tB,[["__file","scrollbar.vue"]]);const Ii=yt(nB),Ey=Symbol("popper"),h3=Symbol("popperContent"),p3=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],m3=Ue({role:{type:String,values:p3,default:"tooltip"}}),oB=Q({name:"ElPopper",inheritAttrs:!1}),rB=Q({...oB,props:m3,setup(e,{expose:t}){const n=e,o=F(),r=F(),i=F(),s=F(),a=A(()=>n.role),l={triggerRef:o,popperInstanceRef:r,contentRef:i,referenceRef:s,role:a};return t(l),Lt(Ey,l),(u,d)=>de(u.$slots,"default")}});var iB=Ve(rB,[["__file","popper.vue"]]);const sB=Q({name:"ElPopperArrow",inheritAttrs:!1}),aB=Q({...sB,setup(e,{expose:t}){const n=Pe("popper"),{arrowRef:o,arrowStyle:r}=je(h3,void 0);return Qt(()=>{o.value=void 0}),t({arrowRef:o}),(i,s)=>(D(),G("span",{ref_key:"arrowRef",ref:o,class:L(c(n).e("arrow")),style:rt(c(r)),"data-popper-arrow":""},null,6))}});var lB=Ve(aB,[["__file","arrow.vue"]]);const v3=Ue({virtualRef:{type:le(Object)},virtualTriggering:Boolean,onMouseenter:{type:le(Function)},onMouseleave:{type:le(Function)},onClick:{type:le(Function)},onKeydown:{type:le(Function)},onFocus:{type:le(Function)},onBlur:{type:le(Function)},onContextmenu:{type:le(Function)},id:String,open:Boolean}),g3=Symbol("elForwardRef"),uB=e=>{Lt(g3,{setForwardRef:n=>{e.value=n}})},cB=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),dB='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',fB=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,ox=e=>Array.from(e.querySelectorAll(dB)).filter(t=>ap(t)&&fB(t)),ap=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")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}},gh=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const r=document.createEvent(o);return r.initEvent(t,...n),e.dispatchEvent(r),e},b3=e=>!e.getAttribute("aria-owns"),y3=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const r=o.querySelectorAll(n),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null},bh=e=>{e&&(e.focus(),!b3(e)&&e.click())},hB="ElOnlyChild",_3=Q({name:hB,setup(e,{slots:t,attrs:n}){var o;const r=je(g3),i=cB((o=r==null?void 0:r.setForwardRef)!=null?o:jt);return()=>{var s;const a=(s=t.default)==null?void 0:s.call(t,n);if(!a||a.length>1)return null;const l=x3(a);return l?_t(ss(l,n),[[i]]):null}}});function x3(e){if(!e)return null;const t=e;for(const n of t){if(Ct(n))switch(n.type){case Jn:continue;case Vu:case"svg":return rx(n);case tt:return x3(n.children);default:return n}return rx(n)}return null}function rx(e){const t=Pe("only-child");return J("span",{class:t.e("content")},[e])}const pB=Q({name:"ElPopperTrigger",inheritAttrs:!1}),mB=Q({...pB,props:v3,setup(e,{expose:t}){const n=e,{role:o,triggerRef:r}=je(Ey,void 0);uB(r);const i=A(()=>a.value?n.id:void 0),s=A(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=A(()=>{if(o&&o.value!=="tooltip")return o.value}),l=A(()=>a.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return xt(()=>{Te(()=>n.virtualRef,f=>{f&&(r.value=lo(f))},{immediate:!0}),Te(r,(f,p)=>{u==null||u(),u=void 0,Fo(f)&&(d.forEach(h=>{var m;const v=n[h];v&&(f.addEventListener(h.slice(2).toLowerCase(),v),(m=p==null?void 0:p.removeEventListener)==null||m.call(p,h.slice(2).toLowerCase(),v))}),ap(f)&&(u=Te([i,s,a,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,v)=>{qn(h[v])?f.removeAttribute(m):f.setAttribute(m,h[v])})},{immediate:!0}))),Fo(p)&&ap(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>p.removeAttribute(h))},{immediate:!0})}),Qt(()=>{if(u==null||u(),u=void 0,r.value&&Fo(r.value)){const f=r.value;d.forEach(p=>{const h=n[p];h&&f.removeEventListener(p.slice(2).toLowerCase(),h)}),r.value=void 0}}),t({triggerRef:r}),(f,p)=>f.virtualTriggering?pe("v-if",!0):(D(),_e(c(_3),Dt({key:0},f.$attrs,{"aria-controls":c(i),"aria-describedby":c(s),"aria-expanded":c(l),"aria-haspopup":c(a)}),{default:se(()=>[de(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vB=Ve(mB,[["__file","trigger.vue"]]);const tm="focus-trap.focus-after-trapped",nm="focus-trap.focus-after-released",gB="focus-trap.focusout-prevented",ix={cancelable:!0,bubbles:!1},bB={cancelable:!0,bubbles:!1},sx="focusAfterTrapped",ax="focusAfterReleased",My=Symbol("elFocusTrap"),Ty=F(),p0=F(0),Ay=F(0);let yf=0;const S3=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},lx=(e,t)=>{for(const n of e)if(!yB(n,t))return n},yB=(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},_B=e=>{const t=S3(e),n=lx(t,e),o=lx(t.reverse(),e);return[n,o]},xB=e=>e instanceof HTMLInputElement&&"select"in e,ji=(e,t)=>{if(e&&e.focus){const n=document.activeElement;let o=!1;Fo(e)&&!ap(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),o=!0),e.focus({preventScroll:!0}),Ay.value=window.performance.now(),e!==n&&xB(e)&&t&&e.select(),Fo(e)&&o&&e.removeAttribute("tabindex")}};function ux(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const SB=()=>{let e=[];return{push:o=>{const r=e[0];r&&o!==r&&r.pause(),e=ux(e,o),e.unshift(o)},remove:o=>{var r,i;e=ux(e,o),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},wB=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(ji(o,t),document.activeElement!==n)return},cx=SB(),CB=()=>p0.value>Ay.value,_f=()=>{Ty.value="pointer",p0.value=window.performance.now()},dx=()=>{Ty.value="keyboard",p0.value=window.performance.now()},EB=()=>(xt(()=>{yf===0&&(document.addEventListener("mousedown",_f),document.addEventListener("touchstart",_f),document.addEventListener("keydown",dx)),yf++}),Qt(()=>{yf--,yf<=0&&(document.removeEventListener("mousedown",_f),document.removeEventListener("touchstart",_f),document.removeEventListener("keydown",dx))}),{focusReason:Ty,lastUserFocusTimestamp:p0,lastAutomatedFocusTimestamp:Ay}),xf=e=>new CustomEvent(gB,{...bB,detail:e}),Ke={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"};let Ul=[];const fx=e=>{e.code===Ke.esc&&Ul.forEach(t=>t(e))},MB=e=>{xt(()=>{Ul.length===0&&document.addEventListener("keydown",fx),Ft&&Ul.push(e)}),Qt(()=>{Ul=Ul.filter(t=>t!==e),Ul.length===0&&Ft&&document.removeEventListener("keydown",fx)})},TB=Q({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[sx,ax,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=F();let o,r;const{focusReason:i}=EB();MB(m=>{e.trapped&&!s.paused&&t("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=m=>{if(!e.loop&&!e.trapped||s.paused)return;const{code:v,altKey:b,ctrlKey:g,metaKey:x,currentTarget:y,shiftKey:_}=m,{loop:w}=e,S=v===Ke.tab&&!b&&!g&&!x,M=document.activeElement;if(S&&M){const T=y,[E,C]=_B(T);if(E&&C){if(!_&&M===C){const R=xf({focusReason:i.value});t("focusout-prevented",R),R.defaultPrevented||(m.preventDefault(),w&&ji(E,!0))}else if(_&&[E,T].includes(M)){const R=xf({focusReason:i.value});t("focusout-prevented",R),R.defaultPrevented||(m.preventDefault(),w&&ji(C,!0))}}else if(M===T){const R=xf({focusReason:i.value});t("focusout-prevented",R),R.defaultPrevented||m.preventDefault()}}};Lt(My,{focusTrapRef:n,onKeydown:a}),Te(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),Te([n],([m],[v])=>{m&&(m.addEventListener("keydown",a),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const l=m=>{t(sx,m)},u=m=>t(ax,m),d=m=>{const v=c(n);if(!v)return;const b=m.target,g=m.relatedTarget,x=b&&v.contains(b);e.trapped||g&&v.contains(g)||(o=g),x&&t("focusin",m),!s.paused&&e.trapped&&(x?r=b:ji(r,!0))},f=m=>{const v=c(n);if(!(s.paused||!v))if(e.trapped){const b=m.relatedTarget;!qn(b)&&!v.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const g=xf({focusReason:i.value});t("focusout-prevented",g),g.defaultPrevented||ji(r,!0)}},0)}else{const b=m.target;b&&v.contains(b)||t("focusout",m)}};async function p(){await Qe();const m=c(n);if(m){cx.push(s);const v=m.contains(document.activeElement)?o:document.activeElement;if(o=v,!m.contains(v)){const g=new Event(tm,ix);m.addEventListener(tm,l),m.dispatchEvent(g),g.defaultPrevented||Qe(()=>{let x=e.focusStartEl;et(x)||(ji(x),document.activeElement!==x&&(x="first")),x==="first"&&wB(S3(m),!0),(document.activeElement===v||x==="container")&&ji(m)})}}}function h(){const m=c(n);if(m){m.removeEventListener(tm,l);const v=new CustomEvent(nm,{...ix,detail:{focusReason:i.value}});m.addEventListener(nm,u),m.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!CB()||m.contains(document.activeElement))&&ji(o??document.body),m.removeEventListener(nm,u),cx.remove(s)}}return xt(()=>{e.trapped&&p(),Te(()=>e.trapped,m=>{m?p():h()})}),Qt(()=>{e.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:a}}});function AB(e,t,n,o,r,i){return de(e.$slots,"default",{handleKeydown:e.onKeydown})}var Yu=Ve(TB,[["render",AB],["__file","focus-trap.vue"]]),Yo="top",Lr="bottom",Nr="right",Xo="left",ky="auto",Kd=[Yo,Lr,Nr,Xo],bu="start",sd="end",kB="clippingParents",w3="viewport",uc="popper",RB="reference",hx=Kd.reduce(function(e,t){return e.concat([t+"-"+bu,t+"-"+sd])},[]),bs=[].concat(Kd,[ky]).reduce(function(e,t){return e.concat([t,t+"-"+bu,t+"-"+sd])},[]),PB="beforeRead",DB="read",IB="afterRead",LB="beforeMain",NB="main",OB="afterMain",FB="beforeWrite",BB="write",$B="afterWrite",UB=[PB,DB,IB,LB,NB,OB,FB,BB,$B];function Ti(e){return e?(e.nodeName||"").toLowerCase():null}function oi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yu(e){var t=oi(e).Element;return e instanceof t||e instanceof Element}function Pr(e){var t=oi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ry(e){if(typeof ShadowRoot>"u")return!1;var t=oi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function zB(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Pr(i)||!Ti(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function VB(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},s=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),a=s.reduce(function(l,u){return l[u]="",l},{});!Pr(r)||!Ti(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var C3={name:"applyStyles",enabled:!0,phase:"write",fn:zB,effect:VB,requires:["computeStyles"]};function _i(e){return e.split("-")[0]}var Xa=Math.max,lp=Math.min,_u=Math.round;function xu(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(Pr(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(o=_u(n.width)/s||1),i>0&&(r=_u(n.height)/i||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function Py(e){var t=xu(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function E3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ry(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ls(e){return oi(e).getComputedStyle(e)}function HB(e){return["table","td","th"].indexOf(Ti(e))>=0}function va(e){return((yu(e)?e.ownerDocument:e.document)||window.document).documentElement}function m0(e){return Ti(e)==="html"?e:e.assignedSlot||e.parentNode||(Ry(e)?e.host:null)||va(e)}function px(e){return!Pr(e)||ls(e).position==="fixed"?null:e.offsetParent}function WB(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Pr(e)){var o=ls(e);if(o.position==="fixed")return null}var r=m0(e);for(Ry(r)&&(r=r.host);Pr(r)&&["html","body"].indexOf(Ti(r))<0;){var i=ls(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function qd(e){for(var t=oi(e),n=px(e);n&&HB(n)&&ls(n).position==="static";)n=px(n);return n&&(Ti(n)==="html"||Ti(n)==="body"&&ls(n).position==="static")?t:n||WB(e)||t}function Dy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oc(e,t,n){return Xa(e,lp(t,n))}function GB(e,t,n){var o=Oc(e,t,n);return o>n?n:o}function M3(){return{top:0,right:0,bottom:0,left:0}}function T3(e){return Object.assign({},M3(),e)}function A3(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var KB=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,T3(typeof e!="number"?e:A3(e,Kd))};function qB(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=_i(n.placement),l=Dy(a),u=[Xo,Nr].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!s)){var f=KB(r.padding,n),p=Py(i),h=l==="y"?Yo:Xo,m=l==="y"?Lr:Nr,v=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],b=s[l]-n.rects.reference[l],g=qd(i),x=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,y=v/2-b/2,_=f[h],w=x-p[d]-f[m],S=x/2-p[d]/2+y,M=Oc(_,S,w),T=l;n.modifiersData[o]=(t={},t[T]=M,t.centerOffset=M-S,t)}}function jB(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!E3(t.elements.popper,r)||(t.elements.arrow=r))}var YB={name:"arrow",enabled:!0,phase:"main",fn:qB,effect:jB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Su(e){return e.split("-")[1]}var XB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZB(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:_u(t*r)/r||0,y:_u(n*r)/r||0}}function mx(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,h=p===void 0?0:p,m=s.y,v=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var g=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),y=Xo,_=Yo,w=window;if(u){var S=qd(n),M="clientHeight",T="clientWidth";if(S===oi(n)&&(S=va(n),ls(S).position!=="static"&&a==="absolute"&&(M="scrollHeight",T="scrollWidth")),S=S,r===Yo||(r===Xo||r===Nr)&&i===sd){_=Lr;var E=f&&S===w&&w.visualViewport?w.visualViewport.height:S[M];v-=E-o.height,v*=l?1:-1}if(r===Xo||(r===Yo||r===Lr)&&i===sd){y=Nr;var C=f&&S===w&&w.visualViewport?w.visualViewport.width:S[T];h-=C-o.width,h*=l?1:-1}}var k=Object.assign({position:a},u&&XB),R=d===!0?ZB({x:h,y:v}):{x:h,y:v};if(h=R.x,v=R.y,l){var B;return Object.assign({},k,(B={},B[_]=x?"0":"",B[y]=g?"0":"",B.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",B))}return Object.assign({},k,(t={},t[_]=x?v+"px":"",t[y]=g?h+"px":"",t.transform="",t))}function JB(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:_i(t.placement),variation:Su(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var k3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:JB,data:{}},Sf={passive:!0};function QB(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,a=s===void 0?!0:s,l=oi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Sf)}),a&&l.addEventListener("resize",n.update,Sf),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Sf)}),a&&l.removeEventListener("resize",n.update,Sf)}}var R3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:QB,data:{}},e$={left:"right",right:"left",bottom:"top",top:"bottom"};function yh(e){return e.replace(/left|right|bottom|top/g,function(t){return e$[t]})}var t$={start:"end",end:"start"};function vx(e){return e.replace(/start|end/g,function(t){return t$[t]})}function Iy(e){var t=oi(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Ly(e){return xu(va(e)).left+Iy(e).scrollLeft}function n$(e){var t=oi(e),n=va(e),o=t.visualViewport,r=n.clientWidth,i=n.clientHeight,s=0,a=0;return o&&(r=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=o.offsetLeft,a=o.offsetTop)),{width:r,height:i,x:s+Ly(e),y:a}}function o$(e){var t,n=va(e),o=Iy(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Xa(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Xa(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Ly(e),l=-o.scrollTop;return ls(r||n).direction==="rtl"&&(a+=Xa(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ny(e){var t=ls(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function P3(e){return["html","body","#document"].indexOf(Ti(e))>=0?e.ownerDocument.body:Pr(e)&&Ny(e)?e:P3(m0(e))}function Fc(e,t){var n;t===void 0&&(t=[]);var o=P3(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=oi(o),s=r?[i].concat(i.visualViewport||[],Ny(o)?o:[]):o,a=t.concat(s);return r?a:a.concat(Fc(m0(s)))}function Lv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r$(e){var t=xu(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function gx(e,t){return t===w3?Lv(n$(e)):yu(t)?r$(t):Lv(o$(va(e)))}function i$(e){var t=Fc(m0(e)),n=["absolute","fixed"].indexOf(ls(e).position)>=0,o=n&&Pr(e)?qd(e):e;return yu(o)?t.filter(function(r){return yu(r)&&E3(r,o)&&Ti(r)!=="body"}):[]}function s$(e,t,n){var o=t==="clippingParents"?i$(e):[].concat(t),r=[].concat(o,[n]),i=r[0],s=r.reduce(function(a,l){var u=gx(e,l);return a.top=Xa(u.top,a.top),a.right=lp(u.right,a.right),a.bottom=lp(u.bottom,a.bottom),a.left=Xa(u.left,a.left),a},gx(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function D3(e){var t=e.reference,n=e.element,o=e.placement,r=o?_i(o):null,i=o?Su(o):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(r){case Yo:l={x:s,y:t.y-n.height};break;case Lr:l={x:s,y:t.y+t.height};break;case Nr:l={x:t.x+t.width,y:a};break;case Xo:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=r?Dy(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case bu:l[u]=l[u]-(t[d]/2-n[d]/2);break;case sd:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function ad(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.boundary,s=i===void 0?kB:i,a=n.rootBoundary,l=a===void 0?w3:a,u=n.elementContext,d=u===void 0?uc:u,f=n.altBoundary,p=f===void 0?!1:f,h=n.padding,m=h===void 0?0:h,v=T3(typeof m!="number"?m:A3(m,Kd)),b=d===uc?RB:uc,g=e.rects.popper,x=e.elements[p?b:d],y=s$(yu(x)?x:x.contextElement||va(e.elements.popper),s,l),_=xu(e.elements.reference),w=D3({reference:_,element:g,placement:r}),S=Lv(Object.assign({},g,w)),M=d===uc?S:_,T={top:y.top-M.top+v.top,bottom:M.bottom-y.bottom+v.bottom,left:y.left-M.left+v.left,right:M.right-y.right+v.right},E=e.modifiersData.offset;if(d===uc&&E){var C=E[r];Object.keys(T).forEach(function(k){var R=[Nr,Lr].indexOf(k)>=0?1:-1,B=[Yo,Lr].indexOf(k)>=0?"y":"x";T[k]+=C[B]*R})}return T}function a$(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?bs:l,d=Su(o),f=d?a?hx:hx.filter(function(m){return Su(m)===d}):Kd,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,v){return m[v]=ad(e,{placement:v,boundary:r,rootBoundary:i,padding:s})[_i(v)],m},{});return Object.keys(h).sort(function(m,v){return h[m]-h[v]})}function l$(e){if(_i(e)===ky)return[];var t=yh(e);return[vx(e),t,vx(t)]}function u$(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,v=n.allowedAutoPlacements,b=t.options.placement,g=_i(b),x=g===b,y=l||(x||!m?[yh(b)]:l$(b)),_=[b].concat(y).reduce(function(Y,ie){return Y.concat(_i(ie)===ky?a$(t,{placement:ie,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:v}):ie)},[]),w=t.rects.reference,S=t.rects.popper,M=new Map,T=!0,E=_[0],C=0;C<_.length;C++){var k=_[C],R=_i(k),B=Su(k)===bu,H=[Yo,Lr].indexOf(R)>=0,N=H?"width":"height",P=ad(t,{placement:k,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),U=H?B?Nr:Xo:B?Lr:Yo;w[N]>S[N]&&(U=yh(U));var I=yh(U),O=[];if(i&&O.push(P[R]<=0),a&&O.push(P[U]<=0,P[I]<=0),O.every(function(Y){return Y})){E=k,T=!1;break}M.set(k,O)}if(T)for(var q=m?3:1,K=function(Y){var ie=_.find(function(ae){var re=M.get(ae);if(re)return re.slice(0,Y).every(function(fe){return fe})});if(ie)return E=ie,"break"},oe=q;oe>0;oe--){var X=K(oe);if(X==="break")break}t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}}var c$={name:"flip",enabled:!0,phase:"main",fn:u$,requiresIfExists:["offset"],data:{_skip:!1}};function bx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yx(e){return[Yo,Nr,Lr,Xo].some(function(t){return e[t]>=0})}function d$(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,s=ad(t,{elementContext:"reference"}),a=ad(t,{altBoundary:!0}),l=bx(s,o),u=bx(a,r,i),d=yx(l),f=yx(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var f$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d$};function h$(e,t,n){var o=_i(e),r=[Xo,Yo].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Xo,Nr].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function p$(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,s=bs.reduce(function(d,f){return d[f]=h$(f,t.rects,i),d},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=s}var m$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p$};function v$(e){var t=e.state,n=e.name;t.modifiersData[n]=D3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var I3={name:"popperOffsets",enabled:!0,phase:"read",fn:v$,data:{}};function g$(e){return e==="x"?"y":"x"}function b$(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,v=m===void 0?0:m,b=ad(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),g=_i(t.placement),x=Su(t.placement),y=!x,_=Dy(g),w=g$(_),S=t.modifiersData.popperOffsets,M=t.rects.reference,T=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,C=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(S){if(i){var B,H=_==="y"?Yo:Xo,N=_==="y"?Lr:Nr,P=_==="y"?"height":"width",U=S[_],I=U+b[H],O=U-b[N],q=h?-T[P]/2:0,K=x===bu?M[P]:T[P],oe=x===bu?-T[P]:-M[P],X=t.elements.arrow,Y=h&&X?Py(X):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:M3(),ae=ie[H],re=ie[N],fe=Oc(0,M[P],Y[P]),be=y?M[P]/2-q-fe-ae-C.mainAxis:K-fe-ae-C.mainAxis,De=y?-M[P]/2+q+fe+re+C.mainAxis:oe+fe+re+C.mainAxis,Re=t.elements.arrow&&qd(t.elements.arrow),V=Re?_==="y"?Re.clientTop||0:Re.clientLeft||0:0,ee=(B=k==null?void 0:k[_])!=null?B:0,z=U+be-ee-V,ve=U+De-ee,ce=Oc(h?lp(I,z):I,U,h?Xa(O,ve):O);S[_]=ce,R[_]=ce-U}if(a){var me,ue=_==="x"?Yo:Xo,ge=_==="x"?Lr:Nr,xe=S[w],Ce=w==="y"?"height":"width",Fe=xe+b[ue],Z=xe-b[ge],$=[Yo,Xo].indexOf(g)!==-1,he=(me=k==null?void 0:k[w])!=null?me:0,Me=$?Fe:xe-M[Ce]-T[Ce]-he+C.altAxis,Be=$?xe+M[Ce]+T[Ce]-he-C.altAxis:Z,Ne=h&&$?GB(Me,xe,Be):Oc(h?Me:Fe,xe,h?Be:Z);S[w]=Ne,R[w]=Ne-xe}t.modifiersData[o]=R}}var y$={name:"preventOverflow",enabled:!0,phase:"main",fn:b$,requiresIfExists:["offset"]};function _$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function x$(e){return e===oi(e)||!Pr(e)?Iy(e):_$(e)}function S$(e){var t=e.getBoundingClientRect(),n=_u(t.width)/e.offsetWidth||1,o=_u(t.height)/e.offsetHeight||1;return n!==1||o!==1}function w$(e,t,n){n===void 0&&(n=!1);var o=Pr(t),r=Pr(t)&&S$(t),i=va(t),s=xu(e,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Ti(t)!=="body"||Ny(i))&&(a=x$(t)),Pr(t)?(l=xu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ly(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function C$(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function E$(e){var t=C$(e);return UB.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function M$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function T$(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var _x={placement:"bottom",modifiers:[],strategy:"absolute"};function xx(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:P$,default:"absolute"}}),N3=Ue({...D$,...L3,id:String,style:{type:le([String,Array,Object])},className:{type:le([String,Array,Object])},effect:{type:le(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:le([String,Array,Object])},popperStyle:{type:le([String,Array,Object])},referenceEl:{type:le(Object)},triggerTargetEl:{type:le(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ho(["ariaLabel"])}),I$={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},L$=(e,t)=>{const n=F(!1),o=F();return{focusStartRef:o,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(o.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},N$=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:r}=e,i={placement:n,strategy:o,...r,modifiers:[...F$(e),...t]};return B$(i,r==null?void 0:r.modifiers),i},O$=e=>{if(Ft)return lo(e)};function F$(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function B$(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const $$=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=U$(l);Object.assign(s.value,u)},requires:["computeStyles"]},r=A(()=>{const{onFirstUpdate:l,placement:u,strategy:d,modifiers:f}=c(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),i=fn(),s=F({styles:{popper:{position:c(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Te(r,l=>{const u=c(i);u&&u.setOptions(l)},{deep:!0}),Te([e,t],([l,u])=>{a(),!(!l||!u)&&(i.value=R$(l,u,c(r)))}),Qt(()=>{a()}),{state:A(()=>{var l;return{...((l=c(i))==null?void 0:l.state)||{}}}),styles:A(()=>c(s).styles),attributes:A(()=>c(s).attributes),update:()=>{var l;return(l=c(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=c(i))==null?void 0:l.forceUpdate()},instanceRef:A(()=>c(i))}};function U$(e){const t=Object.keys(e.elements),n=rd(t.map(r=>[r,e.styles[r]||{}])),o=rd(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:o}}const z$=0,V$=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:r}=je(Ey,void 0),i=F(),s=A(()=>e.arrowOffset),a=A(()=>({name:"eventListeners",enabled:!!e.visible})),l=A(()=>{var g;const x=c(i),y=(g=c(s))!=null?g:z$;return{name:"arrow",enabled:!YO(x),options:{element:x,padding:y}}}),u=A(()=>({onFirstUpdate:()=>{m()},...N$(e,[c(l),c(a)])})),d=A(()=>O$(e.referenceEl)||c(o)),{attributes:f,state:p,styles:h,update:m,forceUpdate:v,instanceRef:b}=$$(d,n,u);return Te(b,g=>t.value=g,{flush:"sync"}),xt(()=>{Te(()=>{var g;return(g=c(d))==null?void 0:g.getBoundingClientRect()},()=>{m()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:b,state:p,styles:h,role:r,forceUpdate:v,update:m}},H$=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:r}=qu(),i=Pe("popper"),s=A(()=>c(t).popper),a=F(st(e.zIndex)?e.zIndex:r()),l=A(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=A(()=>[{zIndex:c(a)},c(n).popper,e.popperStyle||{}]),d=A(()=>o.value==="dialog"?"false":void 0),f=A(()=>c(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:s,contentClass:l,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=st(e.zIndex)?e.zIndex:r()}}},W$=Q({name:"ElPopperContent"}),G$=Q({...W$,props:N3,emits:I$,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:d}=L$(o,n),{attributes:f,arrowRef:p,contentRef:h,styles:m,instanceRef:v,role:b,update:g}=V$(o),{ariaModal:x,arrowStyle:y,contentAttrs:_,contentClass:w,contentStyle:S,updateZIndex:M}=H$(o,{styles:m,attributes:f,role:b}),T=je(Mi,void 0);Lt(h3,{arrowStyle:y,arrowRef:p}),T&&Lt(Mi,{...T,addInputId:jt,removeInputId:jt});let E;const C=(R=!0)=>{g(),R&&M()},k=()=>{C(!1),o.visible&&o.focusOnShow?i.value=!0:o.visible===!1&&(i.value=!1)};return xt(()=>{Te(()=>o.triggerTargetEl,(R,B)=>{E==null||E(),E=void 0;const H=c(R||h.value),N=c(B||h.value);Fo(H)&&(E=Te([b,()=>o.ariaLabel,x,()=>o.id],P=>{["role","aria-label","aria-modal","id"].forEach((U,I)=>{qn(P[I])?H.removeAttribute(U):H.setAttribute(U,P[I])})},{immediate:!0})),N!==H&&Fo(N)&&["role","aria-label","aria-modal","id"].forEach(P=>{N.removeAttribute(P)})},{immediate:!0}),Te(()=>o.visible,k,{immediate:!0})}),Qt(()=>{E==null||E(),E=void 0}),t({popperContentRef:h,popperInstanceRef:v,updatePopper:C,contentStyle:S}),(R,B)=>(D(),G("div",Dt({ref_key:"contentRef",ref:h},c(_),{style:c(S),class:c(w),tabindex:"-1",onMouseenter:H=>R.$emit("mouseenter",H),onMouseleave:H=>R.$emit("mouseleave",H)}),[J(c(Yu),{trapped:c(i),"trap-on-focus-in":!0,"focus-trap-el":c(h),"focus-start-el":c(r),onFocusAfterTrapped:c(a),onFocusAfterReleased:c(s),onFocusin:c(l),onFocusoutPrevented:c(u),onReleaseRequested:c(d)},{default:se(()=>[de(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var K$=Ve(G$,[["__file","content.vue"]]);const O3=yt(iB),v0=Symbol("elTooltip"),g0=Ue({to:{type:le([String,Object]),required:!0},disabled:Boolean}),Pn=Ue({...n3,...N3,appendTo:{type:g0.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:le(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ho(["ariaLabel"])}),tu=Ue({...v3,disabled:Boolean,trigger:{type:le([String,Array]),default:"hover"},triggerKeys:{type:le(Array),default:()=>[Ke.enter,Ke.numpadEnter,Ke.space]}}),q$=ni({type:le(Boolean),default:null}),j$=ni({type:le(Function)}),Y$=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],r={[e]:q$,[n]:j$};return{useModelToggle:({indicator:s,toggleReason:a,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:d,onHide:f})=>{const p=Pt(),{emit:h}=p,m=p.props,v=A(()=>it(m[n])),b=A(()=>m[e]===null),g=M=>{s.value!==!0&&(s.value=!0,a&&(a.value=M),it(d)&&d(M))},x=M=>{s.value!==!1&&(s.value=!1,a&&(a.value=M),it(f)&&f(M))},y=M=>{if(m.disabled===!0||it(u)&&!u())return;const T=v.value&&Ft;T&&h(t,!0),(b.value||!T)&&g(M)},_=M=>{if(m.disabled===!0||!Ft)return;const T=v.value&&Ft;T&&h(t,!1),(b.value||!T)&&x(M)},w=M=>{Jt(M)&&(m.disabled&&M?v.value&&h(t,!1):s.value!==M&&(M?g():x()))},S=()=>{s.value?_():y()};return Te(()=>m[e],w),l&&p.appContext.config.globalProperties.$route!==void 0&&Te(()=>({...p.proxy.$route}),()=>{l.value&&s.value&&_()}),xt(()=>{w(m[e])}),{hide:_,show:y,toggle:S,hasUpdateHandler:v}},useModelToggleProps:r,useModelToggleEmits:o}},{useModelToggleProps:X$,useModelToggleEmits:Z$,useModelToggle:J$}=Y$("visible"),Q$=Ue({...m3,...X$,...Pn,...tu,...L3,showArrow:{type:Boolean,default:!0}}),eU=[...Z$,"before-show","before-hide","show","hide","open","close"],tU=(e,t)=>Oe(e)?e.includes(t):e===t,_l=(e,t,n)=>o=>{tU(c(e),t)&&n(o)},Cn=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=e==null?void 0:e(r);if(n===!1||!i)return t==null?void 0:t(r)},Sx=e=>t=>t.pointerType==="mouse"?e(t):void 0,nU=Q({name:"ElTooltipTrigger"}),oU=Q({...nU,props:tu,setup(e,{expose:t}){const n=e,o=Pe("tooltip"),{controlled:r,id:i,open:s,onOpen:a,onClose:l,onToggle:u}=je(v0,void 0),d=F(null),f=()=>{if(c(r)||n.disabled)return!0},p=Kt(n,"trigger"),h=Cn(f,_l(p,"hover",a)),m=Cn(f,_l(p,"hover",l)),v=Cn(f,_l(p,"click",_=>{_.button===0&&u(_)})),b=Cn(f,_l(p,"focus",a)),g=Cn(f,_l(p,"focus",l)),x=Cn(f,_l(p,"contextmenu",_=>{_.preventDefault(),u(_)})),y=Cn(f,_=>{const{code:w}=_;n.triggerKeys.includes(w)&&(_.preventDefault(),u(_))});return t({triggerRef:d}),(_,w)=>(D(),_e(c(vB),{id:c(i),"virtual-ref":_.virtualRef,open:c(s),"virtual-triggering":_.virtualTriggering,class:L(c(o).e("trigger")),onBlur:c(g),onClick:c(v),onContextmenu:c(x),onFocus:c(b),onMouseenter:c(h),onMouseleave:c(m),onKeydown:c(y)},{default:se(()=>[de(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var rU=Ve(oU,[["__file","trigger.vue"]]);const iU=Q({__name:"teleport",props:g0,setup(e){return(t,n)=>t.disabled?de(t.$slots,"default",{key:0}):(D(),_e(G4,{key:1,to:t.to},[de(t.$slots,"default")],8,["to"]))}});var sU=Ve(iU,[["__file","teleport.vue"]]);const Xu=yt(sU),F3=()=>{const e=Zb(),t=wy(),n=A(()=>`${e.value}-popper-container-${t.prefix}`),o=A(()=>`#${n.value}`);return{id:n,selector:o}},aU=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},lU=()=>{const{id:e,selector:t}=F3();return Jp(()=>{Ft&&(document.body.querySelector(t.value)||aU(e.value))}),{id:e,selector:t}},uU=Q({name:"ElTooltipContent",inheritAttrs:!1}),cU=Q({...uU,props:Pn,setup(e,{expose:t}){const n=e,{selector:o}=F3(),r=Pe("tooltip"),i=F(),s=rp(()=>{var I;return(I=i.value)==null?void 0:I.popperContentRef});let a;const{controlled:l,id:u,open:d,trigger:f,onClose:p,onOpen:h,onShow:m,onHide:v,onBeforeShow:b,onBeforeHide:g}=je(v0,void 0),x=A(()=>n.transition||`${r.namespace.value}-fade-in-linear`),y=A(()=>n.persistent);Qt(()=>{a==null||a()});const _=A(()=>c(y)?!0:c(d)),w=A(()=>n.disabled?!1:c(d)),S=A(()=>n.appendTo||o.value),M=A(()=>{var I;return(I=n.style)!=null?I:{}}),T=F(!0),E=()=>{v(),U()&&ji(document.body),T.value=!0},C=()=>{if(c(l))return!0},k=Cn(C,()=>{n.enterable&&c(f)==="hover"&&h()}),R=Cn(C,()=>{c(f)==="hover"&&p()}),B=()=>{var I,O;(O=(I=i.value)==null?void 0:I.updatePopper)==null||O.call(I),b==null||b()},H=()=>{g==null||g()},N=()=>{m()},P=()=>{n.virtualTriggering||p()},U=I=>{var O;const q=(O=i.value)==null?void 0:O.popperContentRef,K=(I==null?void 0:I.relatedTarget)||document.activeElement;return q==null?void 0:q.contains(K)};return Te(()=>c(d),I=>{I?(T.value=!1,a=py(s,()=>{if(c(l))return;c(f)!=="hover"&&p()})):a==null||a()},{flush:"post"}),Te(()=>n.content,()=>{var I,O;(O=(I=i.value)==null?void 0:I.updatePopper)==null||O.call(I)}),t({contentRef:i,isFocusInsideContent:U}),(I,O)=>(D(),_e(c(Xu),{disabled:!I.teleported,to:c(S)},{default:se(()=>[J(Hn,{name:c(x),onAfterLeave:E,onBeforeEnter:B,onAfterEnter:N,onBeforeLeave:H},{default:se(()=>[c(_)?_t((D(),_e(c(K$),Dt({key:0,id:c(u),ref_key:"contentRef",ref:i},I.$attrs,{"aria-label":I.ariaLabel,"aria-hidden":T.value,"boundaries-padding":I.boundariesPadding,"fallback-placements":I.fallbackPlacements,"gpu-acceleration":I.gpuAcceleration,offset:I.offset,placement:I.placement,"popper-options":I.popperOptions,"arrow-offset":I.arrowOffset,strategy:I.strategy,effect:I.effect,enterable:I.enterable,pure:I.pure,"popper-class":I.popperClass,"popper-style":[I.popperStyle,c(M)],"reference-el":I.referenceEl,"trigger-target-el":I.triggerTargetEl,visible:c(w),"z-index":I.zIndex,onMouseenter:c(k),onMouseleave:c(R),onBlur:P,onClose:c(p)}),{default:se(()=>[de(I.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Vt,c(w)]]):pe("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var dU=Ve(cU,[["__file","content.vue"]]);const fU=Q({name:"ElTooltip"}),hU=Q({...fU,props:Q$,emits:eU,setup(e,{expose:t,emit:n}){const o=e;lU();const r=Pe("tooltip"),i=fo(),s=F(),a=F(),l=()=>{var y;const _=c(s);_&&((y=_.popperInstanceRef)==null||y.update())},u=F(!1),d=F(),{show:f,hide:p,hasUpdateHandler:h}=J$({indicator:u,toggleReason:d}),{onOpen:m,onClose:v}=o3({showAfter:Kt(o,"showAfter"),hideAfter:Kt(o,"hideAfter"),autoClose:Kt(o,"autoClose"),open:f,close:p}),b=A(()=>Jt(o.visible)&&!h.value),g=A(()=>[r.b(),o.popperClass]);Lt(v0,{controlled:b,id:i,open:zu(u),trigger:Kt(o,"trigger"),onOpen:y=>{m(y)},onClose:y=>{v(y)},onToggle:y=>{c(u)?v(y):m(y)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:l}),Te(()=>o.disabled,y=>{y&&u.value&&(u.value=!1)});const x=y=>{var _;return(_=a.value)==null?void 0:_.isFocusInsideContent(y)};return hE(()=>u.value&&p()),t({popperRef:s,contentRef:a,isFocusInsideContent:x,updatePopper:l,onOpen:m,onClose:v,hide:p}),(y,_)=>(D(),_e(c(O3),{ref_key:"popperRef",ref:s,role:y.role},{default:se(()=>[J(rU,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:se(()=>[y.$slots.default?de(y.$slots,"default",{key:0}):pe("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),J(dU,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":c(g),"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,"arrow-offset":y.arrowOffset,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:se(()=>[de(y.$slots,"content",{},()=>[y.rawContent?(D(),G("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(D(),G("span",{key:1},ze(y.content),1))]),y.showArrow?(D(),_e(c(lB),{key:0})):pe("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var pU=Ve(hU,[["__file","tooltip.vue"]]);const _o=yt(pU),mU=Ue({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:le(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:le([Function,Array]),default:jt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Pn.teleported,appendTo:Pn.appendTo,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...ho(["ariaLabel"])}),vU={[vt]:e=>et(e),[zn]:e=>et(e),[It]:e=>et(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Ct(e)},B3="ElAutocomplete",gU=Q({name:B3,inheritAttrs:!1}),bU=Q({...gU,props:mU,emits:vU,setup(e,{expose:t,emit:n}){const o=e,r=Wd(),i=hs(),s=po(),a=Pe("autocomplete"),l=F(),u=F(),d=F(),f=F();let p=!1,h=!1;const m=F([]),v=F(-1),b=F(""),g=F(!1),x=F(!1),y=F(!1),_=fo(),w=A(()=>i.style),S=A(()=>(m.value.length>0||y.value)&&g.value),M=A(()=>!o.hideLoading&&y.value),T=A(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),E=()=>{S.value&&(b.value=`${l.value.$el.offsetWidth}px`)},C=()=>{v.value=-1},k=async re=>{if(x.value)return;const fe=be=>{y.value=!1,!x.value&&(Oe(be)?(m.value=be,v.value=o.highlightFirstItem?0:-1):Ln(B3,"autocomplete suggestions must be an array"))};if(y.value=!0,Oe(o.fetchSuggestions))fe(o.fetchSuggestions);else{const be=await o.fetchSuggestions(re,fe);Oe(be)&&fe(be)}},R=tr(k,o.debounce),B=re=>{const fe=!!re;if(n(zn,re),n(vt,re),x.value=!1,g.value||(g.value=fe),!o.triggerOnFocus&&!re){x.value=!0,m.value=[];return}R(re)},H=re=>{var fe;s.value||(((fe=re.target)==null?void 0:fe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(g.value=!0)},N=re=>{n(It,re)},P=re=>{var fe;if(h)h=!1;else{g.value=!0,n("focus",re);const be=(fe=o.modelValue)!=null?fe:"";o.triggerOnFocus&&!p&&R(String(be))}},U=re=>{setTimeout(()=>{var fe;if((fe=d.value)!=null&&fe.isFocusInsideContent()){h=!0;return}g.value&&K(),n("blur",re)})},I=()=>{g.value=!1,n(vt,""),n("clear")},O=async()=>{S.value&&v.value>=0&&v.value{S.value&&(re.preventDefault(),re.stopPropagation(),K())},K=()=>{g.value=!1},oe=()=>{var re;(re=l.value)==null||re.focus()},X=()=>{var re;(re=l.value)==null||re.blur()},Y=async re=>{n(zn,re[o.valueKey]),n(vt,re[o.valueKey]),n("select",re),m.value=[],v.value=-1},ie=re=>{if(!S.value||y.value)return;if(re<0){v.value=-1;return}re>=m.value.length&&(re=m.value.length-1);const fe=u.value.querySelector(`.${a.be("suggestion","wrap")}`),De=fe.querySelectorAll(`.${a.be("suggestion","list")} li`)[re],Re=fe.scrollTop,{offsetTop:V,scrollHeight:ee}=De;V+ee>Re+fe.clientHeight&&(fe.scrollTop+=ee),V{var re;(re=d.value)!=null&&re.isFocusInsideContent()||S.value&&K()});return Qt(()=>{ae==null||ae()}),xt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${_.value}-item-${v.value}`),p=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:v,activated:g,loading:y,inputRef:l,popperRef:d,suggestions:m,handleSelect:Y,handleKeyEnter:O,focus:oe,blur:X,close:K,highlight:ie,getData:k}),(re,fe)=>(D(),_e(c(_o),{ref_key:"popperRef",ref:d,visible:c(S),placement:re.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[c(a).e("popper"),re.popperClass],teleported:re.teleported,"append-to":re.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${c(a).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:E,onHide:C},{content:se(()=>[j("div",{ref_key:"regionRef",ref:u,class:L([c(a).b("suggestion"),c(a).is("loading",c(M))]),style:rt({[re.fitInputWidth?"width":"minWidth"]:b.value,outline:"none"}),role:"region"},[J(c(Ii),{id:c(_),tag:"ul","wrap-class":c(a).be("suggestion","wrap"),"view-class":c(a).be("suggestion","list"),role:"listbox"},{default:se(()=>[c(M)?(D(),G("li",{key:0},[de(re.$slots,"loading",{},()=>[J(c(Je),{class:L(c(a).is("loading"))},{default:se(()=>[J(c(Ei))]),_:1},8,["class"])])])):(D(!0),G(tt,{key:1},Nt(m.value,(be,De)=>(D(),G("li",{id:`${c(_)}-item-${De}`,key:De,class:L({highlighted:v.value===De}),role:"option","aria-selected":v.value===De,onClick:Re=>Y(be)},[de(re.$slots,"default",{item:be},()=>[Tt(ze(be[re.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:se(()=>[j("div",{ref_key:"listboxRef",ref:f,class:L([c(a).b(),re.$attrs.class]),style:rt(c(w)),role:"combobox","aria-haspopup":"listbox","aria-expanded":c(S),"aria-owns":c(_)},[J(c(To),Dt({ref_key:"inputRef",ref:l},c(r),{clearable:re.clearable,disabled:c(s),name:re.name,"model-value":re.modelValue,"aria-label":re.ariaLabel,onInput:B,onChange:N,onFocus:P,onBlur:U,onClear:I,onKeydown:[Zt(dt(be=>ie(v.value-1),["prevent"]),["up"]),Zt(dt(be=>ie(v.value+1),["prevent"]),["down"]),Zt(O,["enter"]),Zt(K,["tab"]),Zt(q,["esc"])],onMousedown:H}),er({_:2},[re.$slots.prepend?{name:"prepend",fn:se(()=>[de(re.$slots,"prepend")])}:void 0,re.$slots.append?{name:"append",fn:se(()=>[de(re.$slots,"append")])}:void 0,re.$slots.prefix?{name:"prefix",fn:se(()=>[de(re.$slots,"prefix")])}:void 0,re.$slots.suffix?{name:"suffix",fn:se(()=>[de(re.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var yU=Ve(bU,[["__file","autocomplete.vue"]]);const _U=yt(yU),xU=Ue({size:{type:[Number,String],values:Pi,default:"",validator:e=>st(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:tn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:le(String),default:"cover"}}),SU={error:e=>e instanceof Event},wU=Q({name:"ElAvatar"}),CU=Q({...wU,props:xU,emits:SU,setup(e,{emit:t}){const n=e,o=Pe("avatar"),r=F(!1),i=A(()=>{const{size:u,icon:d,shape:f}=n,p=[o.b()];return et(u)&&p.push(o.m(u)),d&&p.push(o.m("icon")),f&&p.push(o.m(f)),p}),s=A(()=>{const{size:u}=n;return st(u)?o.cssVarBlock({size:Sn(u)||""}):void 0}),a=A(()=>({objectFit:n.fit}));Te(()=>n.src,()=>r.value=!1);function l(u){r.value=!0,t("error",u)}return(u,d)=>(D(),G("span",{class:L(c(i)),style:rt(c(s))},[(u.src||u.srcSet)&&!r.value?(D(),G("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:rt(c(a)),onError:l},null,44,["src","alt","srcset"])):u.icon?(D(),_e(c(Je),{key:1},{default:se(()=>[(D(),_e(Rt(u.icon)))]),_:1})):de(u.$slots,"default",{key:2})],6))}});var EU=Ve(CU,[["__file","avatar.vue"]]);const MU=yt(EU),TU={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},AU={click:e=>e instanceof MouseEvent},kU=(e,t,n)=>{const o=fn(),r=fn(),i=F(!1),s=()=>{o.value&&(i.value=o.value.scrollTop>=e.visibilityHeight)},a=u=>{var d;(d=o.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=$M(s,300,!0);return on(r,"scroll",l),xt(()=>{var u;r.value=document,o.value=document.documentElement,e.target&&(o.value=(u=document.querySelector(e.target))!=null?u:void 0,o.value||Ln(n,`target does not exist: ${e.target}`),r.value=o.value),s()}),{visible:i,handleClick:a}},$3="ElBacktop",RU=Q({name:$3}),PU=Q({...RU,props:TU,emits:AU,setup(e,{emit:t}){const n=e,o=Pe("backtop"),{handleClick:r,visible:i}=kU(n,t,$3),s=A(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(a,l)=>(D(),_e(Hn,{name:`${c(o).namespace.value}-fade-in`},{default:se(()=>[c(i)?(D(),G("div",{key:0,style:rt(c(s)),class:L(c(o).b()),onClick:dt(c(r),["stop"])},[de(a.$slots,"default",{},()=>[J(c(Je),{class:L(c(o).e("icon"))},{default:se(()=>[J(c(EF))]),_:1},8,["class"])])],14,["onClick"])):pe("v-if",!0)]),_:3},8,["name"]))}});var DU=Ve(PU,[["__file","backtop.vue"]]);const IU=yt(DU),LU=Ue({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:le([String,Object,Array])},offset:{type:le(Array),default:[0,0]},badgeClass:{type:String}}),NU=Q({name:"ElBadge"}),OU=Q({...NU,props:LU,setup(e,{expose:t}){const n=e,o=Pe("badge"),r=A(()=>n.isDot?"":st(n.value)&&st(n.max)?n.max{var s,a,l,u,d;return[{backgroundColor:n.color,marginRight:Sn(-((a=(s=n.offset)==null?void 0:s[0])!=null?a:0)),marginTop:Sn((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:r}),(s,a)=>(D(),G("div",{class:L(c(o).b())},[de(s.$slots,"default"),J(Hn,{name:`${c(o).namespace.value}-zoom-in-center`,persisted:""},{default:se(()=>[_t(j("sup",{class:L([c(o).e("content"),c(o).em("content",s.type),c(o).is("fixed",!!s.$slots.default),c(o).is("dot",s.isDot),c(o).is("hide-zero",!s.showZero&&n.value===0),s.badgeClass]),style:rt(c(i))},[de(s.$slots,"content",{value:c(r)},()=>[Tt(ze(c(r)),1)])],6),[[Vt,!s.hidden&&(c(r)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}});var FU=Ve(OU,[["__file","badge.vue"]]);const U3=yt(FU),z3=Symbol("breadcrumbKey"),BU=Ue({separator:{type:String,default:"/"},separatorIcon:{type:tn}}),$U=Q({name:"ElBreadcrumb"}),UU=Q({...$U,props:BU,setup(e){const t=e,{t:n}=$t(),o=Pe("breadcrumb"),r=F();return Lt(z3,t),xt(()=>{const i=r.value.querySelectorAll(`.${o.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,s)=>(D(),G("div",{ref_key:"breadcrumb",ref:r,class:L(c(o).b()),"aria-label":c(n)("el.breadcrumb.label"),role:"navigation"},[de(i.$slots,"default")],10,["aria-label"]))}});var zU=Ve(UU,[["__file","breadcrumb.vue"]]);const VU=Ue({to:{type:le([String,Object]),default:""},replace:Boolean}),HU=Q({name:"ElBreadcrumbItem"}),WU=Q({...HU,props:VU,setup(e){const t=e,n=Pt(),o=je(z3,void 0),r=Pe("breadcrumb"),i=n.appContext.config.globalProperties.$router,s=F(),a=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var d,f;return D(),G("span",{class:L(c(r).e("item"))},[j("span",{ref_key:"link",ref:s,class:L([c(r).e("inner"),c(r).is("link",!!l.to)]),role:"link",onClick:a},[de(l.$slots,"default")],2),(d=c(o))!=null&&d.separatorIcon?(D(),_e(c(Je),{key:0,class:L(c(r).e("separator"))},{default:se(()=>[(D(),_e(Rt(c(o).separatorIcon)))]),_:1},8,["class"])):(D(),G("span",{key:1,class:L(c(r).e("separator")),role:"presentation"},ze((f=c(o))==null?void 0:f.separator),3))],2)}}});var V3=Ve(WU,[["__file","breadcrumb-item.vue"]]);const GU=yt(zU,{BreadcrumbItem:V3}),KU=gn(V3),H3=Symbol("buttonGroupContextKey"),os=({from:e,replacement:t,scope:n,version:o,ref:r,type:i="API"},s)=>{Te(()=>c(s),a=>{},{immediate:!0})},qU=(e,t)=>{os({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},A(()=>e.type==="text"));const n=je(H3,void 0),o=Vd("button"),{form:r}=xo(),i=Fn(A(()=>n==null?void 0:n.size)),s=po(),a=F(),l=Wn(),u=A(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=o.value)==null?void 0:b.type)||""}),d=A(()=>{var b,g,x;return(x=(g=e.autoInsertSpace)!=null?g:(b=o.value)==null?void 0:b.autoInsertSpace)!=null?x:!1}),f=A(()=>{var b,g,x;return(x=(g=e.plain)!=null?g:(b=o.value)==null?void 0:b.plain)!=null?x:!1}),p=A(()=>{var b,g,x;return(x=(g=e.round)!=null?g:(b=o.value)==null?void 0:b.round)!=null?x:!1}),h=A(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=A(()=>{var b;const g=(b=l.default)==null?void 0:b.call(l);if(d.value&&(g==null?void 0:g.length)===1){const x=g[0];if((x==null?void 0:x.type)===Vu){const y=x.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:i,_type:u,_ref:a,_props:h,_plain:f,_round:p,shouldAddSpace:m,handleClick:b=>{if(s.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",b)}}},Nv=["default","primary","success","warning","info","danger","text",""],jU=["button","submit","reset"],Ov=Ue({size:Vn,disabled:Boolean,type:{type:String,values:Nv,default:""},icon:{type:tn},nativeType:{type:String,values:jU,default:"button"},loading:Boolean,loadingIcon:{type:tn,default:()=>Ei},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:le([String,Object]),default:"button"}}),YU={click:e=>e instanceof MouseEvent};function bo(e,t){XU(e)&&(e="100%");var n=ZU(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 wf(e){return Math.min(1,Math.max(0,e))}function XU(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ZU(e){return typeof e=="string"&&e.indexOf("%")!==-1}function W3(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ba(e){return e.length===1?"0"+e:String(e)}function JU(e,t,n){return{r:bo(e,255)*255,g:bo(t,255)*255,b:bo(n,255)*255}}function wx(e,t,n){e=bo(e,255),t=bo(t,255),n=bo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,s=0,a=(o+r)/2;if(o===r)s=0,i=0;else{var l=o-r;switch(s=a>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(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 QU(e,t,n){var o,r,i;if(e=bo(e,360),t=bo(t,100),n=bo(n,100),t===0)r=n,i=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;o=om(a,s,e+1/3),r=om(a,s,e),i=om(a,s,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function Cx(e,t,n){e=bo(e,255),t=bo(t,255),n=bo(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,s=o,a=o-r,l=o===0?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Fv={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 rz(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,s=!1,a=!1;return typeof e=="string"&&(e=az(e)),typeof e=="object"&&($i(e.r)&&$i(e.g)&&$i(e.b)?(t=JU(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$i(e.h)&&$i(e.s)&&$i(e.v)?(o=Cf(e.s),r=Cf(e.v),t=ez(e.h,o,r),s=!0,a="hsv"):$i(e.h)&&$i(e.s)&&$i(e.l)&&(o=Cf(e.s),i=Cf(e.l),t=QU(e.h,o,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=W3(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 iz="[-\\+]?\\d+%?",sz="[-\\+]?\\d*\\.\\d+%?",Ws="(?:".concat(sz,")|(?:").concat(iz,")"),rm="[\\s|\\(]+(".concat(Ws,")[,|\\s]+(").concat(Ws,")[,|\\s]+(").concat(Ws,")\\s*\\)?"),im="[\\s|\\(]+(".concat(Ws,")[,|\\s]+(").concat(Ws,")[,|\\s]+(").concat(Ws,")[,|\\s]+(").concat(Ws,")\\s*\\)?"),Wr={CSS_UNIT:new RegExp(Ws),rgb:new RegExp("rgb"+rm),rgba:new RegExp("rgba"+im),hsl:new RegExp("hsl"+rm),hsla:new RegExp("hsla"+im),hsv:new RegExp("hsv"+rm),hsva:new RegExp("hsva"+im),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 az(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fv[e])e=Fv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Wr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Wr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Wr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Wr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Wr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Wr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Wr.hex8.exec(e),n?{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),a:Mx(n[4]),format:t?"name":"hex8"}:(n=Wr.hex6.exec(e),n?{r:sr(n[1]),g:sr(n[2]),b:sr(n[3]),format:t?"name":"hex"}:(n=Wr.hex4.exec(e),n?{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),a:Mx(n[4]+n[4]),format:t?"name":"hex8"}:(n=Wr.hex3.exec(e),n?{r:sr(n[1]+n[1]),g:sr(n[2]+n[2]),b:sr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function $i(e){return!!Wr.CSS_UNIT.exec(String(e))}var Gl=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=oz(t)),this.originalInput=t;var r=rz(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.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=r.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,o,r,i=t.r/255,s=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=W3(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=Cx(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=Cx(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=wx(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=wx(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ex(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),tz(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(bo(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(bo(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="#"+Ex(this.r,this.g,this.b,!1),n=0,o=Object.entries(Fv);n=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||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=wf(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=wf(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=wf(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=wf(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100,s={r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));return i},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(),o=n.h,r=n.s,i=n.v,s=[],a=1/t;t--;)s.push(new e({h:o,s:r,v:i})),i=(i+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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,s=1;s{let o={},r=e.color;if(r){const i=r.match(/var\((.*?)\)/);i&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new Gl(r),a=e.dark?s.tint(20).toString():Es(s,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Es(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?Es(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Es(s,90):s.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Es(s,50):s.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Es(s,80):s.tint(80).toString());else{const l=e.dark?Es(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const d=e.dark?Es(s,50):s.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=d,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=d}}}return o})}const uz=Q({name:"ElButton"}),cz=Q({...uz,props:Ov,emits:YU,setup(e,{expose:t,emit:n}){const o=e,r=lz(o),i=Pe("button"),{_ref:s,_size:a,_type:l,_disabled:u,_props:d,_plain:f,_round:p,shouldAddSpace:h,handleClick:m}=qU(o,n),v=A(()=>[i.b(),i.m(l.value),i.m(a.value),i.is("disabled",u.value),i.is("loading",o.loading),i.is("plain",f.value),i.is("round",p.value),i.is("circle",o.circle),i.is("text",o.text),i.is("link",o.link),i.is("has-bg",o.bg)]);return t({ref:s,size:a,type:l,disabled:u,shouldAddSpace:h}),(b,g)=>(D(),_e(Rt(b.tag),Dt({ref_key:"_ref",ref:s},c(d),{class:c(v),style:c(r),onClick:c(m)}),{default:se(()=>[b.loading?(D(),G(tt,{key:0},[b.$slots.loading?de(b.$slots,"loading",{key:0}):(D(),_e(c(Je),{key:1,class:L(c(i).is("loading"))},{default:se(()=>[(D(),_e(Rt(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(D(),_e(c(Je),{key:1},{default:se(()=>[b.icon?(D(),_e(Rt(b.icon),{key:0})):de(b.$slots,"icon",{key:1})]),_:3})):pe("v-if",!0),b.$slots.default?(D(),G("span",{key:2,class:L({[c(i).em("text","expand")]:c(h)})},[de(b.$slots,"default")],2)):pe("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var dz=Ve(cz,[["__file","button.vue"]]);const fz={size:Ov.size,type:Ov.type},hz=Q({name:"ElButtonGroup"}),pz=Q({...hz,props:fz,setup(e){const t=e;Lt(H3,Gt({size:Kt(t,"size"),type:Kt(t,"type")}));const n=Pe("button");return(o,r)=>(D(),G("div",{class:L(c(n).b("group"))},[de(o.$slots,"default")],2))}});var G3=Ve(pz,[["__file","button-group.vue"]]);const Qn=yt(dz,{ButtonGroup:G3}),K3=gn(G3);function ys(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _h={exports:{}},mz=_h.exports,Tx;function vz(){return Tx||(Tx=1,function(e,t){(function(n,o){e.exports=o()})(mz,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",d="week",f="month",p="quarter",h="year",m="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var N=["th","st","nd","rd"],P=H%100;return"["+H+(N[(P-20)%10]||N[P]||N[0])+"]"}},y=function(H,N,P){var U=String(H);return!U||U.length>=N?H:""+Array(N+1-U.length).join(P)+H},_={s:y,z:function(H){var N=-H.utcOffset(),P=Math.abs(N),U=Math.floor(P/60),I=P%60;return(N<=0?"+":"-")+y(U,2,"0")+":"+y(I,2,"0")},m:function H(N,P){if(N.date()1)return H(q[0])}else{var K=N.name;S[K]=N,I=K}return!U&&I&&(w=I),I||!U&&w},C=function(H,N){if(T(H))return H.clone();var P=typeof N=="object"?N:{};return P.date=H,P.args=arguments,new R(P)},k=_;k.l=E,k.i=T,k.w=function(H,N){return C(H,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var R=function(){function H(P){this.$L=E(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[M]=!0}var N=H.prototype;return N.parse=function(P){this.$d=function(U){var I=U.date,O=U.utc;if(I===null)return new Date(NaN);if(k.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var q=I.match(b);if(q){var K=q[2]-1||0,oe=(q[7]||"0").substring(0,3);return O?new Date(Date.UTC(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,oe)):new Date(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,oe)}}return new Date(I)}(P),this.init()},N.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},N.$utils=function(){return k},N.isValid=function(){return this.$d.toString()!==v},N.isSame=function(P,U){var I=C(P);return this.startOf(U)<=I&&I<=this.endOf(U)},N.isAfter=function(P,U){return C(P)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),q3=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),j3=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Ax=function(e,t){const n=ea(e),o=ea(t);return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},kx=function(e,t){const n=Oe(e),o=Oe(t);return n&&o?e.length!==t.length?!1:e.every((r,i)=>Ax(r,t[i])):!n&&!o?Ax(e,t):!1},Rx=function(e,t,n){const o=ur(t)||t==="x"?gt(e).locale(n):gt(e,t).locale(n);return o.isValid()?o:void 0},Px=function(e,t,n){return ur(t)?e:t==="x"?+e:gt(e).locale(n).format(t)},am=(e,t)=>{var n;const o=[],r=t==null?void 0:t();for(let i=0;iOe(e)?e.map(t=>t.toDate()):e.toDate(),bz=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Xs(t).map((o,r)=>n-(t-r-1))},yz=e=>{const t=e.daysInMonth();return Xs(t).map((n,o)=>o+1)},_z=e=>Xs(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),xz=Ue({selectedDay:{type:le(Object)},range:{type:le(Array)},date:{type:le(Object),required:!0},hideHeader:{type:Boolean}}),Sz={pick:e=>Ct(e)};var xh={exports:{}},wz=xh.exports,Dx;function Cz(){return Dx||(Dx=1,function(e,t){(function(n,o){e.exports=o()})(wz,function(){return function(n,o,r){var i=o.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},a=function(f,p,h,m,v){var b=f.name?f:f.$locale(),g=s(b[p]),x=s(b[h]),y=g||x.map(function(w){return w.slice(0,m)});if(!v)return y;var _=b.weekStart;return y.map(function(w,S){return y[(S+(_||0))%7]})},l=function(){return r.Ls[r.locale()]},u=function(f,p){return f.formats[p]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,v,b){return v||b.slice(1)})}(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):a(f,"months")},monthsShort:function(p){return p?p.format("MMM"):a(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):a(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):a(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):a(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},r.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return u(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return a(l(),"months")},r.monthsShort=function(){return a(l(),"monthsShort","months",3)},r.weekdays=function(f){return a(l(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return a(l(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return a(l(),"weekdaysMin","weekdays",2,f)}}})}(xh)),xh.exports}var Ez=Cz();const Y3=ys(Ez),Mz=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],lm=["sun","mon","tue","wed","thu","fri","sat"],Tz=(e,t)=>{gt.extend(Y3);const n=gt.localeData().firstDayOfWeek(),{t:o,lang:r}=$t(),i=gt().locale(r.value),s=A(()=>!!e.range&&!!e.range.length),a=A(()=>{let p=[];if(s.value){const[h,m]=e.range,v=Xs(m.date()-h.date()+1).map(x=>({text:h.date()+x,type:"current"}));let b=v.length%7;b=b===0?0:7-b;const g=Xs(b).map((x,y)=>({text:y+1,type:"next"}));p=v.concat(g)}else{const h=e.date.startOf("month").day(),m=bz(e.date,(h-n+7)%7).map(x=>({text:x,type:"prev"})),v=yz(e.date).map(x=>({text:x,type:"current"}));p=[...m,...v];const b=7-(p.length%7||7),g=Xs(b).map((x,y)=>({text:y+1,type:"next"}));p=p.concat(g)}return _z(p)}),l=A(()=>{const p=n;return p===0?lm.map(h=>o(`el.datepicker.weeks.${h}`)):lm.slice(p).concat(lm.slice(0,p)).map(h=>o(`el.datepicker.weeks.${h}`))}),u=(p,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(p);case"next":return e.date.startOf("month").add(1,"month").date(p);case"current":return e.date.date(p)}};return{now:i,isInRange:s,rows:a,weekDays:l,getFormattedDate:u,handlePickDay:({text:p,type:h})=>{const m=u(p,h);t("pick",m)},getSlotData:({text:p,type:h})=>{const m=u(p,h);return{isSelected:m.isSame(e.selectedDay),type:`${h}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},Az=Q({name:"DateTable"}),kz=Q({...Az,props:xz,emits:Sz,setup(e,{expose:t,emit:n}){const o=e,{isInRange:r,now:i,rows:s,weekDays:a,getFormattedDate:l,handlePickDay:u,getSlotData:d}=Tz(o,n),f=Pe("calendar-table"),p=Pe("calendar-day"),h=({text:m,type:v})=>{const b=[v];if(v==="current"){const g=l(m,v);g.isSame(o.selectedDay,"day")&&b.push(p.is("selected")),g.isSame(i,"day")&&b.push(p.is("today"))}return b};return t({getFormattedDate:l}),(m,v)=>(D(),G("table",{class:L([c(f).b(),c(f).is("range",c(r))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?pe("v-if",!0):(D(),G("thead",{key:0},[j("tr",null,[(D(!0),G(tt,null,Nt(c(a),b=>(D(),G("th",{key:b,scope:"col"},ze(b),1))),128))])])),j("tbody",null,[(D(!0),G(tt,null,Nt(c(s),(b,g)=>(D(),G("tr",{key:g,class:L({[c(f).e("row")]:!0,[c(f).em("row","hide-border")]:g===0&&m.hideHeader})},[(D(!0),G(tt,null,Nt(b,(x,y)=>(D(),G("td",{key:y,class:L(h(x)),onClick:_=>c(u)(x)},[j("div",{class:L(c(p).b())},[de(m.$slots,"date-cell",{data:c(d)(x)},()=>[j("span",null,ze(x.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var Ix=Ve(kz,[["__file","date-table.vue"]]);const Rz=(e,t)=>{const n=e.endOf("month"),o=t.startOf("month"),i=n.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[i.startOf("week"),t]]},Pz=(e,t)=>{const n=e.endOf("month"),o=e.add(1,"month").startOf("month"),r=n.isSame(o,"week")?o.add(1,"week"):o,i=r.endOf("month"),s=t.startOf("month"),a=i.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[r.startOf("week"),i],[a.startOf("week"),t]]},Dz=(e,t,n)=>{const{lang:o}=$t(),r=F(),i=gt().locale(o.value),s=A({get(){return e.modelValue?l.value:r.value},set(b){if(!b)return;r.value=b;const g=b.toDate();t(zn,g),t(vt,g)}}),a=A(()=>{if(!e.range||!Oe(e.range)||e.range.length!==2||e.range.some(y=>!ea(y)))return[];const b=e.range.map(y=>gt(y).locale(o.value)),[g,x]=b;return g.isAfter(x)?[]:g.isSame(x,"month")?h(g,x):g.add(1,"month").month()!==x.month()?[]:h(g,x)}),l=A(()=>e.modelValue?gt(e.modelValue).locale(o.value):s.value||(a.value.length?a.value[0][0]:i)),u=A(()=>l.value.subtract(1,"month").date(1)),d=A(()=>l.value.add(1,"month").date(1)),f=A(()=>l.value.subtract(1,"year").date(1)),p=A(()=>l.value.add(1,"year").date(1)),h=(b,g)=>{const x=b.startOf("week"),y=g.endOf("week"),_=x.get("month"),w=y.get("month");return _===w?[[x,y]]:(_+1)%12===w?Rz(x,y):_+2===w||(_+1)%11===w?Pz(x,y):[]},m=b=>{s.value=b};return{calculateValidatedDateRange:h,date:l,realSelectedDay:s,pickDay:m,selectDate:b=>{const x={"prev-month":u.value,"next-month":d.value,"prev-year":f.value,"next-year":p.value,today:i}[b];x.isSame(l.value,"day")||m(x)},validatedRange:a}},Iz=e=>Oe(e)&&e.length===2&&e.every(t=>ea(t)),Lz=Ue({modelValue:{type:Date},range:{type:le(Array),validator:Iz}}),Nz={[vt]:e=>ea(e),[zn]:e=>ea(e)},Oz="ElCalendar",Fz=Q({name:Oz}),Bz=Q({...Fz,props:Lz,emits:Nz,setup(e,{expose:t,emit:n}){const o=e,r=Pe("calendar"),{calculateValidatedDateRange:i,date:s,pickDay:a,realSelectedDay:l,selectDate:u,validatedRange:d}=Dz(o,n),{t:f}=$t(),p=A(()=>{const h=`el.datepicker.month${s.value.format("M")}`;return`${s.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:a,selectDate:u,calculateValidatedDateRange:i}),(h,m)=>(D(),G("div",{class:L(c(r).b())},[j("div",{class:L(c(r).e("header"))},[de(h.$slots,"header",{date:c(p)},()=>[j("div",{class:L(c(r).e("title"))},ze(c(p)),3),c(d).length===0?(D(),G("div",{key:0,class:L(c(r).e("button-group"))},[J(c(K3),null,{default:se(()=>[J(c(Qn),{size:"small",onClick:v=>c(u)("prev-month")},{default:se(()=>[Tt(ze(c(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),J(c(Qn),{size:"small",onClick:v=>c(u)("today")},{default:se(()=>[Tt(ze(c(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),J(c(Qn),{size:"small",onClick:v=>c(u)("next-month")},{default:se(()=>[Tt(ze(c(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):pe("v-if",!0)])],2),c(d).length===0?(D(),G("div",{key:0,class:L(c(r).e("body"))},[J(Ix,{date:c(s),"selected-day":c(l),onPick:c(a)},er({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:se(v=>[de(h.$slots,"date-cell",cr(wi(v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(D(),G("div",{key:1,class:L(c(r).e("body"))},[(D(!0),G(tt,null,Nt(c(d),(v,b)=>(D(),_e(Ix,{key:b,date:v[0],"selected-day":c(l),range:v,"hide-header":b!==0,onPick:c(a)},er({_:2},[h.$slots["date-cell"]?{name:"date-cell",fn:se(g=>[de(h.$slots,"date-cell",cr(wi(g)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var $z=Ve(Bz,[["__file","calendar.vue"]]);const Uz=yt($z),zz=Ue({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:le([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Vz=Q({name:"ElCard"}),Hz=Q({...Vz,props:zz,setup(e){const t=Pe("card");return(n,o)=>(D(),G("div",{class:L([c(t).b(),c(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(D(),G("div",{key:0,class:L([c(t).e("header"),n.headerClass])},[de(n.$slots,"header",{},()=>[Tt(ze(n.header),1)])],2)):pe("v-if",!0),j("div",{class:L([c(t).e("body"),n.bodyClass]),style:rt(n.bodyStyle)},[de(n.$slots,"default")],6),n.$slots.footer||n.footer?(D(),G("div",{key:1,class:L([c(t).e("footer"),n.footerClass])},[de(n.$slots,"footer",{},()=>[Tt(ze(n.footer),1)])],2)):pe("v-if",!0)],2))}});var Wz=Ve(Hz,[["__file","card.vue"]]);const Gz=yt(Wz),Kz=Ue({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),qz={change:(e,t)=>[e,t].every(st)},X3=Symbol("carouselContextKey"),Bv="ElCarouselItem";var wr=(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))(wr||{});function $v(e){return ln(e)&&e.type===tt}function jz(e){return ln(e)&&e.type===Jn}function Yz(e){return ln(e)&&!$v(e)&&!jz(e)}const Xz=e=>{if(!ln(e))return{};const t=e.props||{},n=(ln(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(r=>{zt(n[r],"default")&&(o[r]=n[r].default)}),Object.keys(t).forEach(r=>{o[mr(r)]=t[r]}),o},Zz=e=>{if(!Oe(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},mi=e=>{const t=Oe(e)?e:[e],n=[];return t.forEach(o=>{var r;Oe(o)?n.push(...mi(o)):ln(o)&&((r=o.component)!=null&&r.subTree)?n.push(o,...mi(o.component.subTree)):ln(o)&&Oe(o.children)?n.push(...mi(o.children)):ln(o)&&o.shapeFlag===2?n.push(...mi(o.type())):n.push(o)}),n},Jz=(e,t,n)=>mi(e.subTree).filter(i=>{var s;return ln(i)&&((s=i.type)==null?void 0:s.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),b0=(e,t)=>{const n={},o=fn([]);return{children:o,addChild:s=>{n[s.uid]=s,o.value=Jz(e,t,n)},removeChild:s=>{delete n[s],o.value=o.value.filter(a=>a.uid!==s)}}},Lx=300,Qz=(e,t,n)=>{const{children:o,addChild:r,removeChild:i}=b0(Pt(),Bv),s=Wn(),a=F(-1),l=F(null),u=F(!1),d=F(),f=F(0),p=F(!0),h=A(()=>e.arrow!=="never"&&!c(b)),m=A(()=>o.value.some(X=>X.props.label.toString().length>0)),v=A(()=>e.type==="card"),b=A(()=>e.direction==="vertical"),g=A(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),x=Ya(X=>{T(X)},Lx,{trailing:!0}),y=Ya(X=>{P(X)},Lx),_=X=>p.value?a.value<=1?X<=1:X>1:!0;function w(){l.value&&(clearInterval(l.value),l.value=null)}function S(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>M(),e.interval))}const M=()=>{a.valuere.props.name===X);ae.length>0&&(X=o.value.indexOf(ae[0]))}if(X=Number(X),Number.isNaN(X)||X!==Math.floor(X))return;const Y=o.value.length,ie=a.value;X<0?a.value=e.loop?Y-1:0:X>=Y?a.value=e.loop?0:Y-1:a.value=X,ie===a.value&&E(ie),O()}function E(X){o.value.forEach((Y,ie)=>{Y.translateItem(ie,a.value,X)})}function C(X,Y){var ie,ae,re,fe;const be=c(o),De=be.length;if(De===0||!X.states.inStage)return!1;const Re=Y+1,V=Y-1,ee=De-1,z=be[ee].states.active,ve=be[0].states.active,ce=(ae=(ie=be[Re])==null?void 0:ie.states)==null?void 0:ae.active,me=(fe=(re=be[V])==null?void 0:re.states)==null?void 0:fe.active;return Y===ee&&ve||ce?"left":Y===0&&z||me?"right":!1}function k(){u.value=!0,e.pauseOnHover&&w()}function R(){u.value=!1,S()}function B(X){c(b)||o.value.forEach((Y,ie)=>{X===C(Y,ie)&&(Y.states.hover=!0)})}function H(){c(b)||o.value.forEach(X=>{X.states.hover=!1})}function N(X){a.value=X}function P(X){e.trigger==="hover"&&X!==a.value&&(a.value=X)}function U(){T(a.value-1)}function I(){T(a.value+1)}function O(){w(),e.pauseOnHover||S()}function q(X){e.height==="auto"&&(f.value=X)}function K(){var X;const Y=(X=s.default)==null?void 0:X.call(s);if(!Y)return null;const ae=mi(Y).filter(re=>ln(re)&&re.type.name===Bv);return(ae==null?void 0:ae.length)===2&&e.loop&&!v.value?(p.value=!0,ae):(p.value=!1,null)}Te(()=>a.value,(X,Y)=>{E(Y),p.value&&(X=X%2,Y=Y%2),Y>-1&&t(It,X,Y)}),Te(()=>e.autoplay,X=>{X?S():w()}),Te(()=>e.loop,()=>{T(a.value)}),Te(()=>e.interval,()=>{O()});const oe=fn();return xt(()=>{Te(()=>o.value,()=>{o.value.length>0&&T(e.initialIndex)},{immediate:!0}),oe.value=vn(d.value,()=>{E()}),S()}),Qt(()=>{w(),d.value&&oe.value&&oe.value.stop()}),Lt(X3,{root:d,isCardType:v,isVertical:b,items:o,loop:e.loop,cardScale:e.cardScale,addItem:r,removeItem:i,setActiveItem:T,setContainerHeight:q}),{root:d,activeIndex:a,arrowDisplay:h,hasLabel:m,hover:u,isCardType:v,items:o,isVertical:b,containerStyle:g,isItemsTwoLength:p,handleButtonEnter:B,handleButtonLeave:H,handleIndicatorClick:N,handleMouseEnter:k,handleMouseLeave:R,setActiveItem:T,prev:U,next:I,PlaceholderItem:K,isTwoLengthShow:_,throttledArrowClick:x,throttledIndicatorHover:y}},e9="ElCarousel",t9=Q({name:e9}),n9=Q({...t9,props:Kz,emits:qz,setup(e,{expose:t,emit:n}){const o=e,{root:r,activeIndex:i,arrowDisplay:s,hasLabel:a,hover:l,isCardType:u,items:d,isVertical:f,containerStyle:p,handleButtonEnter:h,handleButtonLeave:m,handleIndicatorClick:v,handleMouseEnter:b,handleMouseLeave:g,setActiveItem:x,prev:y,next:_,PlaceholderItem:w,isTwoLengthShow:S,throttledArrowClick:M,throttledIndicatorHover:T}=Qz(o,n),E=Pe("carousel"),{t:C}=$t(),k=A(()=>{const N=[E.b(),E.m(o.direction)];return c(u)&&N.push(E.m("card")),N}),R=A(()=>{const N=[E.e("indicators"),E.em("indicators",o.direction)];return c(a)&&N.push(E.em("indicators","labels")),o.indicatorPosition==="outside"&&N.push(E.em("indicators","outside")),c(f)&&N.push(E.em("indicators","right")),N});function B(N){if(!o.motionBlur)return;const P=c(f)?`${E.namespace.value}-transitioning-vertical`:`${E.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function H(N){if(!o.motionBlur)return;const P=c(f)?`${E.namespace.value}-transitioning-vertical`:`${E.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:i,setActiveItem:x,prev:y,next:_}),(N,P)=>(D(),G("div",{ref_key:"root",ref:r,class:L(c(k)),onMouseenter:dt(c(b),["stop"]),onMouseleave:dt(c(g),["stop"])},[c(s)?(D(),_e(Hn,{key:0,name:"carousel-arrow-left",persisted:""},{default:se(()=>[_t(j("button",{type:"button",class:L([c(E).e("arrow"),c(E).em("arrow","left")]),"aria-label":c(C)("el.carousel.leftArrow"),onMouseenter:U=>c(h)("left"),onMouseleave:c(m),onClick:dt(U=>c(M)(c(i)-1),["stop"])},[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Vt,(N.arrow==="always"||c(l))&&(o.loop||c(i)>0)]])]),_:1})):pe("v-if",!0),c(s)?(D(),_e(Hn,{key:1,name:"carousel-arrow-right",persisted:""},{default:se(()=>[_t(j("button",{type:"button",class:L([c(E).e("arrow"),c(E).em("arrow","right")]),"aria-label":c(C)("el.carousel.rightArrow"),onMouseenter:U=>c(h)("right"),onMouseleave:c(m),onClick:dt(U=>c(M)(c(i)+1),["stop"])},[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Vt,(N.arrow==="always"||c(l))&&(o.loop||c(i)_t((D(),G("li",{key:I,class:L([c(E).e("indicator"),c(E).em("indicator",N.direction),c(E).is("active",I===c(i))]),onMouseenter:O=>c(T)(I),onClick:dt(O=>c(v)(I),["stop"])},[j("button",{class:L(c(E).e("button")),"aria-label":c(C)("el.carousel.indicator",{index:I+1})},[c(a)?(D(),G("span",{key:0},ze(U.props.label),1)):pe("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[Vt,c(S)(I)]])),128))],2)):pe("v-if",!0),o.motionBlur?(D(),G("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[j("defs",null,[j("filter",{id:"elCarouselHorizontal"},[j("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),j("filter",{id:"elCarouselVertical"},[j("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):pe("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var o9=Ve(n9,[["__file","carousel.vue"]]);const r9=Ue({name:{type:String,default:""},label:{type:[String,Number],default:""}}),i9=e=>{const t=je(X3),n=Pt(),o=F(),r=F(!1),i=F(0),s=F(1),a=F(!1),l=F(!1),u=F(!1),d=F(!1),{isCardType:f,isVertical:p,cardScale:h}=t;function m(y,_,w){const S=w-1,M=_-1,T=_+1,E=w/2;return _===0&&y===S?-1:_===S&&y===0?w:y=E?w+1:y>T&&y-_>=E?-2:y}function v(y,_){var w,S;const M=c(p)?((w=t.root.value)==null?void 0:w.offsetHeight)||0:((S=t.root.value)==null?void 0:S.offsetWidth)||0;return u.value?M*((2-h)*(y-_)+1)/4:y<_?-(1+h)*M/4:(3+h)*M/4}function b(y,_,w){const S=t.root.value;return S?((w?S.offsetHeight:S.offsetWidth)||0)*(y-_):0}const g=(y,_,w)=>{var S;const M=c(f),T=(S=t.items.value.length)!=null?S:Number.NaN,E=y===_;!M&&!Bt(w)&&(d.value=E||y===w),!E&&T>2&&t.loop&&(y=m(y,_,T));const C=c(p);a.value=E,M?(u.value=Math.round(Math.abs(y-_))<=1,i.value=v(y,_),s.value=c(a)?1:h):i.value=b(y,_,C),l.value=!0,E&&o.value&&t.setContainerHeight(o.value.offsetHeight)};function x(){if(t&&c(f)){const y=t.items.value.findIndex(({uid:_})=>_===n.uid);t.setActiveItem(y)}}return xt(()=>{t.addItem({props:e,states:Gt({hover:r,translate:i,scale:s,active:a,ready:l,inStage:u,animating:d}),uid:n.uid,translateItem:g})}),fs(()=>{t.removeItem(n.uid)}),{carouselItemRef:o,active:a,animating:d,hover:r,inStage:u,isVertical:p,translate:i,isCardType:f,scale:s,ready:l,handleItemClick:x}},s9=Q({name:Bv}),a9=Q({...s9,props:r9,setup(e){const t=e,n=Pe("carousel"),{carouselItemRef:o,active:r,animating:i,hover:s,inStage:a,isVertical:l,translate:u,isCardType:d,scale:f,ready:p,handleItemClick:h}=i9(t),m=A(()=>[n.e("item"),n.is("active",r.value),n.is("in-stage",a.value),n.is("hover",s.value),n.is("animating",i.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&l.value}]),v=A(()=>{const g=`${`translate${c(l)?"Y":"X"}`}(${c(u)}px)`,x=`scale(${c(f)})`;return{transform:[g,x].join(" ")}});return(b,g)=>_t((D(),G("div",{ref_key:"carouselItemRef",ref:o,class:L(c(m)),style:rt(c(v)),onClick:c(h)},[c(d)?_t((D(),G("div",{key:0,class:L(c(n).e("mask"))},null,2)),[[Vt,!c(r)]]):pe("v-if",!0),de(b.$slots,"default")],14,["onClick"])),[[Vt,c(p)]])}});var Z3=Ve(a9,[["__file","carousel-item.vue"]]);const l9=yt(o9,{CarouselItem:Z3}),u9=gn(Z3),J3={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Vn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...ho(["ariaControls"])},Q3={[vt]:e=>et(e)||st(e)||Jt(e),change:e=>et(e)||st(e)||Jt(e)},Zu=Symbol("checkboxGroupContextKey"),c9=({model:e,isChecked:t})=>{const n=je(Zu,void 0),o=A(()=>{var i,s;const a=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(s=n==null?void 0:n.min)==null?void 0:s.value;return!Bt(a)&&e.value.length>=a&&!t.value||!Bt(l)&&e.value.length<=l&&t.value});return{isDisabled:po(A(()=>(n==null?void 0:n.disabled.value)||o.value)),isLimitDisabled:o}},d9=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:r,isLabeledByFormItem:i})=>{const s=je(Zu,void 0),{formItem:a}=xo(),{emit:l}=Pt();function u(m){var v,b,g,x;return[!0,e.trueValue,e.trueLabel].includes(m)?(b=(v=e.trueValue)!=null?v:e.trueLabel)!=null?b:!0:(x=(g=e.falseValue)!=null?g:e.falseLabel)!=null?x:!1}function d(m,v){l(It,u(m),v)}function f(m){if(n.value)return;const v=m.target;l(It,u(v.checked),m)}async function p(m){n.value||!o.value&&!r.value&&i.value&&(m.composedPath().some(g=>g.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await Qe(),d(t.value,m)))}const h=A(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return Te(()=>e.modelValue,()=>{h.value&&(a==null||a.validate("change").catch(m=>void 0))}),{handleChange:f,onClickRoot:p}},f9=e=>{const t=F(!1),{emit:n}=Pt(),o=je(Zu,void 0),r=A(()=>Bt(o)===!1),i=F(!1),s=A({get(){var a,l;return r.value?(a=o==null?void 0:o.modelValue)==null?void 0:a.value:(l=e.modelValue)!=null?l:t.value},set(a){var l,u;r.value&&Oe(a)?(i.value=((l=o==null?void 0:o.max)==null?void 0:l.value)!==void 0&&a.length>(o==null?void 0:o.max.value)&&a.length>s.value.length,i.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,a))):(n(vt,a),t.value=a)}});return{model:s,isGroup:r,isLimitExceeded:i}},h9=(e,t,{model:n})=>{const o=je(Zu,void 0),r=F(!1),i=A(()=>jo(e.value)?e.label:e.value),s=A(()=>{const d=n.value;return Jt(d)?d:Oe(d)?Ct(i.value)?d.map(sn).some(f=>Zn(f,i.value)):d.map(sn).includes(i.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),a=Fn(A(()=>{var d;return(d=o==null?void 0:o.size)==null?void 0:d.value}),{prop:!0}),l=Fn(A(()=>{var d;return(d=o==null?void 0:o.size)==null?void 0:d.value})),u=A(()=>!!t.default||!jo(i.value));return{checkboxButtonSize:a,isChecked:s,isFocused:r,checkboxSize:l,hasOwnLabel:u,actualValue:i}},eT=(e,t)=>{const{formItem:n}=xo(),{model:o,isGroup:r,isLimitExceeded:i}=f9(e),{isFocused:s,isChecked:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,actualValue:f}=h9(e,t,{model:o}),{isDisabled:p}=c9({model:o,isChecked:a}),{inputId:h,isLabeledByFormItem:m}=Br(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:r}),{handleChange:v,onClickRoot:b}=d9(e,{model:o,isLimitExceeded:i,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:m});return(()=>{function x(){var y,_;Oe(o.value)&&!o.value.includes(f.value)?o.value.push(f.value):o.value=(_=(y=e.trueValue)!=null?y:e.trueLabel)!=null?_:!0}e.checked&&x()})(),os({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},A(()=>r.value&&jo(e.value))),os({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},A(()=>!!e.trueLabel)),os({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},A(()=>!!e.falseLabel)),{inputId:h,isLabeledByFormItem:m,isChecked:a,isDisabled:p,isFocused:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:d,model:o,actualValue:f,handleChange:v,onClickRoot:b}},p9=Q({name:"ElCheckbox"}),m9=Q({...p9,props:J3,emits:Q3,setup(e){const t=e,n=Wn(),{inputId:o,isLabeledByFormItem:r,isChecked:i,isDisabled:s,isFocused:a,checkboxSize:l,hasOwnLabel:u,model:d,actualValue:f,handleChange:p,onClickRoot:h}=eT(t,n),m=Pe("checkbox"),v=A(()=>[m.b(),m.m(l.value),m.is("disabled",s.value),m.is("bordered",t.border),m.is("checked",i.value)]),b=A(()=>[m.e("input"),m.is("disabled",s.value),m.is("checked",i.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]);return(g,x)=>(D(),_e(Rt(!c(u)&&c(r)?"span":"label"),{class:L(c(v)),"aria-controls":g.indeterminate?g.ariaControls:null,onClick:c(h)},{default:se(()=>{var y,_,w,S;return[j("span",{class:L(c(b))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?_t((D(),G("input",{key:0,id:c(o),"onUpdate:modelValue":M=>hn(d)?d.value=M:null,class:L(c(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,name:g.name,tabindex:g.tabindex,disabled:c(s),"true-value":(_=(y=g.trueValue)!=null?y:g.trueLabel)!=null?_:!0,"false-value":(S=(w=g.falseValue)!=null?w:g.falseLabel)!=null?S:!1,onChange:c(p),onFocus:M=>a.value=!0,onBlur:M=>a.value=!1,onClick:dt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[ep,c(d)]]):_t((D(),G("input",{key:1,id:c(o),"onUpdate:modelValue":M=>hn(d)?d.value=M:null,class:L(c(m).e("original")),type:"checkbox",indeterminate:g.indeterminate,disabled:c(s),value:c(f),name:g.name,tabindex:g.tabindex,onChange:c(p),onFocus:M=>a.value=!0,onBlur:M=>a.value=!1,onClick:dt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[ep,c(d)]]),j("span",{class:L(c(m).e("inner"))},null,2)],2),c(u)?(D(),G("span",{key:0,class:L(c(m).e("label"))},[de(g.$slots,"default"),g.$slots.default?pe("v-if",!0):(D(),G(tt,{key:0},[Tt(ze(g.label),1)],64))],2)):pe("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var v9=Ve(m9,[["__file","checkbox.vue"]]);const g9=Q({name:"ElCheckboxButton"}),b9=Q({...g9,props:J3,emits:Q3,setup(e){const t=e,n=Wn(),{isFocused:o,isChecked:r,isDisabled:i,checkboxButtonSize:s,model:a,actualValue:l,handleChange:u}=eT(t,n),d=je(Zu,void 0),f=Pe("checkbox"),p=A(()=>{var m,v,b,g;const x=(v=(m=d==null?void 0:d.fill)==null?void 0:m.value)!=null?v:"";return{backgroundColor:x,borderColor:x,color:(g=(b=d==null?void 0:d.textColor)==null?void 0:b.value)!=null?g:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),h=A(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",i.value),f.is("checked",r.value),f.is("focus",o.value)]);return(m,v)=>{var b,g,x,y;return D(),G("label",{class:L(c(h))},[m.trueValue||m.falseValue||m.trueLabel||m.falseLabel?_t((D(),G("input",{key:0,"onUpdate:modelValue":_=>hn(a)?a.value=_:null,class:L(c(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c(i),"true-value":(g=(b=m.trueValue)!=null?b:m.trueLabel)!=null?g:!0,"false-value":(y=(x=m.falseValue)!=null?x:m.falseLabel)!=null?y:!1,onChange:c(u),onFocus:_=>o.value=!0,onBlur:_=>o.value=!1,onClick:dt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[ep,c(a)]]):_t((D(),G("input",{key:1,"onUpdate:modelValue":_=>hn(a)?a.value=_:null,class:L(c(f).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:c(i),value:c(l),onChange:c(u),onFocus:_=>o.value=!0,onBlur:_=>o.value=!1,onClick:dt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[ep,c(a)]]),m.$slots.default||m.label?(D(),G("span",{key:2,class:L(c(f).be("button","inner")),style:rt(c(r)?c(p):void 0)},[de(m.$slots,"default",{},()=>[Tt(ze(m.label),1)])],6)):pe("v-if",!0)],2)}}});var tT=Ve(b9,[["__file","checkbox-button.vue"]]);const y9=Ue({modelValue:{type:le(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Vn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...ho(["ariaLabel"])}),_9={[vt]:e=>Oe(e),change:e=>Oe(e)},x9=Q({name:"ElCheckboxGroup"}),S9=Q({...x9,props:y9,emits:_9,setup(e,{emit:t}){const n=e,o=Pe("checkbox"),{formItem:r}=xo(),{inputId:i,isLabeledByFormItem:s}=Br(n,{formItemContext:r}),a=async u=>{t(vt,u),await Qe(),t(It,u)},l=A({get(){return n.modelValue},set(u){a(u)}});return Lt(Zu,{...qr(jn(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),Te(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return D(),_e(Rt(u.tag),{id:c(i),class:L(c(o).b("group")),role:"group","aria-label":c(s)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":c(s)?(f=c(r))==null?void 0:f.labelId:void 0},{default:se(()=>[de(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var nT=Ve(S9,[["__file","checkbox-group.vue"]]);const Or=yt(v9,{CheckboxButton:tT,CheckboxGroup:nT}),w9=gn(tT),oT=gn(nT),rT=Ue({modelValue:{type:[String,Number,Boolean],default:void 0},size:Vn,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),C9=Ue({...rT,border:Boolean}),iT={[vt]:e=>et(e)||st(e)||Jt(e),[It]:e=>et(e)||st(e)||Jt(e)},sT=Symbol("radioGroupKey"),aT=(e,t)=>{const n=F(),o=je(sT,void 0),r=A(()=>!!o),i=A(()=>jo(e.value)?e.label:e.value),s=A({get(){return r.value?o.modelValue:e.modelValue},set(f){r.value?o.changeEvent(f):t&&t(vt,f),n.value.checked=e.modelValue===i.value}}),a=Fn(A(()=>o==null?void 0:o.size)),l=po(A(()=>o==null?void 0:o.disabled)),u=F(!1),d=A(()=>l.value||r.value&&s.value!==i.value?-1:0);return os({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},A(()=>r.value&&jo(e.value))),{radioRef:n,isGroup:r,radioGroup:o,focus:u,size:a,disabled:l,tabIndex:d,modelValue:s,actualValue:i}},E9=Q({name:"ElRadio"}),M9=Q({...E9,props:C9,emits:iT,setup(e,{emit:t}){const n=e,o=Pe("radio"),{radioRef:r,radioGroup:i,focus:s,size:a,disabled:l,modelValue:u,actualValue:d}=aT(n,t);function f(){Qe(()=>t(It,u.value))}return(p,h)=>{var m;return D(),G("label",{class:L([c(o).b(),c(o).is("disabled",c(l)),c(o).is("focus",c(s)),c(o).is("bordered",p.border),c(o).is("checked",c(u)===c(d)),c(o).m(c(a))])},[j("span",{class:L([c(o).e("input"),c(o).is("disabled",c(l)),c(o).is("checked",c(u)===c(d))])},[_t(j("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":v=>hn(u)?u.value=v:null,class:L(c(o).e("original")),value:c(d),name:p.name||((m=c(i))==null?void 0:m.name),disabled:c(l),checked:c(u)===c(d),type:"radio",onFocus:v=>s.value=!0,onBlur:v=>s.value=!1,onChange:f,onClick:dt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[GE,c(u)]]),j("span",{class:L(c(o).e("inner"))},null,2)],2),j("span",{class:L(c(o).e("label")),onKeydown:dt(()=>{},["stop"])},[de(p.$slots,"default",{},()=>[Tt(ze(p.label),1)])],42,["onKeydown"])],2)}}});var T9=Ve(M9,[["__file","radio.vue"]]);const A9=Ue({...rT}),k9=Q({name:"ElRadioButton"}),R9=Q({...k9,props:A9,setup(e){const t=e,n=Pe("radio"),{radioRef:o,focus:r,size:i,disabled:s,modelValue:a,radioGroup:l,actualValue:u}=aT(t),d=A(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,p)=>{var h;return D(),G("label",{class:L([c(n).b("button"),c(n).is("active",c(a)===c(u)),c(n).is("disabled",c(s)),c(n).is("focus",c(r)),c(n).bm("button",c(i))])},[_t(j("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":m=>hn(a)?a.value=m:null,class:L(c(n).be("button","original-radio")),value:c(u),type:"radio",name:f.name||((h=c(l))==null?void 0:h.name),disabled:c(s),onFocus:m=>r.value=!0,onBlur:m=>r.value=!1,onClick:dt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[GE,c(a)]]),j("span",{class:L(c(n).be("button","inner")),style:rt(c(a)===c(u)?c(d):{}),onKeydown:dt(()=>{},["stop"])},[de(f.$slots,"default",{},()=>[Tt(ze(f.label),1)])],46,["onKeydown"])],2)}}});var lT=Ve(R9,[["__file","radio-button.vue"]]);const P9=Ue({id:{type:String,default:void 0},size:Vn,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ho(["ariaLabel"])}),D9=iT,I9=Q({name:"ElRadioGroup"}),L9=Q({...I9,props:P9,emits:D9,setup(e,{emit:t}){const n=e,o=Pe("radio"),r=fo(),i=F(),{formItem:s}=xo(),{inputId:a,isLabeledByFormItem:l}=Br(n,{formItemContext:s}),u=f=>{t(vt,f),Qe(()=>t(It,f))};xt(()=>{const f=i.value.querySelectorAll("[type=radio]"),p=f[0];!Array.from(f).some(h=>h.checked)&&p&&(p.tabIndex=0)});const d=A(()=>n.name||r.value);return Lt(sT,Gt({...jn(n),changeEvent:u,name:d})),Te(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(f=>void 0))}),(f,p)=>(D(),G("div",{id:c(a),ref_key:"radioGroupRef",ref:i,class:L(c(o).b("group")),role:"radiogroup","aria-label":c(l)?void 0:f.ariaLabel||"radio-group","aria-labelledby":c(l)?c(s).labelId:void 0},[de(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var uT=Ve(L9,[["__file","radio-group.vue"]]);const cT=yt(T9,{RadioButton:lT,RadioGroup:uT}),N9=gn(uT),O9=gn(lT);function F9(e){return!!(e!=null&&e.every(t=>t.type===Jn))}var B9=Q({name:"NodeContent",setup(){return{ns:Pe("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:o,label:r}=t,{renderLabelFn:i}=n,s=()=>{let a=i==null?void 0:i({node:t,data:o});return F9(a)&&(a=r),a??r};return ut("span",{class:e.e("label")},s())}});const Fy=Symbol(),$9=Q({name:"ElCascaderNode",components:{ElCheckbox:Or,ElRadio:cT,NodeContent:B9,ElIcon:Je,Check:Hd,Loading:Ei,ArrowRight:ko},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=je(Fy),o=Pe("cascader-node"),r=A(()=>n.isHoverMenu),i=A(()=>n.config.multiple),s=A(()=>n.config.checkStrictly),a=A(()=>{var S;return(S=n.checkedNodes[0])==null?void 0:S.uid}),l=A(()=>e.node.isDisabled),u=A(()=>e.node.isLeaf),d=A(()=>s.value&&!u.value||!l.value),f=A(()=>h(n.expandingNode)),p=A(()=>s.value&&n.checkedNodes.some(h)),h=S=>{var M;const{level:T,uid:E}=e.node;return((M=S==null?void 0:S.pathNodes[T-1])==null?void 0:M.uid)===E},m=()=>{f.value||n.expandNode(e.node)},v=S=>{const{node:M}=e;S!==M.checked&&n.handleCheckChange(M,S)},b=()=>{n.lazyLoad(e.node,()=>{u.value||m()})},g=S=>{r.value&&(x(),!u.value&&t("expand",S))},x=()=>{const{node:S}=e;!d.value||S.loading||(S.loaded?m():b())},y=()=>{r.value&&!u.value||(u.value&&!l.value&&!s.value&&!i.value?w(!0):x())},_=S=>{s.value?(v(S),e.node.loaded&&m()):w(S)},w=S=>{e.node.loaded?(v(S),!s.value&&m()):b()};return{panel:n,isHoverMenu:r,multiple:i,checkStrictly:s,checkedNodeId:a,isDisabled:l,isLeaf:u,expandable:d,inExpandingPath:f,inCheckedPath:p,ns:o,handleHoverExpand:g,handleExpand:x,handleClick:y,handleCheck:w,handleSelectCheck:_}}});function U9(e,t,n,o,r,i){const s=Mt("el-checkbox"),a=Mt("el-radio"),l=Mt("check"),u=Mt("el-icon"),d=Mt("node-content"),f=Mt("loading"),p=Mt("arrow-right");return D(),G("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?void 0:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:L([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[pe(" prefix "),e.multiple?(D(),_e(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:dt(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(D(),_e(a,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:dt(()=>{},["stop"])},{default:se(()=>[pe(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),j("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(D(),_e(u,{key:2,class:L(e.ns.e("prefix"))},{default:se(()=>[J(l)]),_:1},8,["class"])):pe("v-if",!0),pe(" content "),J(d),pe(" postfix "),e.isLeaf?pe("v-if",!0):(D(),G(tt,{key:3},[e.node.loading?(D(),_e(u,{key:0,class:L([e.ns.is("loading"),e.ns.e("postfix")])},{default:se(()=>[J(f)]),_:1},8,["class"])):(D(),_e(u,{key:1,class:L(["arrow-right",e.ns.e("postfix")])},{default:se(()=>[J(p)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var z9=Ve($9,[["render",U9],["__file","node.vue"]]);const V9=Q({name:"ElCascaderMenu",components:{Loading:Ei,ElIcon:Je,ElScrollbar:Ii,ElCascaderNode:z9},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Pt(),n=Pe("cascader-menu"),{t:o}=$t(),r=fo();let i=null,s=null;const a=je(Fy),l=F(null),u=A(()=>!e.nodes.length),d=A(()=>!a.initialLoaded),f=A(()=>`${r.value}-${e.index}`),p=b=>{i=b.target},h=b=>{if(!(!a.isHoverMenu||!i||!l.value))if(i.contains(b.target)){m();const g=t.vnode.el,{left:x}=g.getBoundingClientRect(),{offsetWidth:y,offsetHeight:_}=g,w=b.clientX-x,S=i.offsetTop,M=S+i.offsetHeight;l.value.innerHTML=` `}else s||(s=window.setTimeout(v,a.config.hoverThreshold))},m=()=>{s&&(clearTimeout(s),s=null)},v=()=>{l.value&&(l.value.innerHTML="",m())};return{ns:n,panel:a,hoverZone:l,isEmpty:u,isLoading:d,menuId:f,t:o,handleExpand:p,handleMouseMove:h,clearHoverZone:v}}});function H9(e,t,n,o,r,i){const s=Mt("el-cascader-node"),a=Mt("loading"),l=Mt("el-icon"),u=Mt("el-scrollbar");return D(),_e(u,{key:e.menuId,tag:"ul",role:"menu",class:L(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:se(()=>{var d;return[(D(!0),G(tt,null,Nt(e.nodes,f=>(D(),_e(s,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(D(),G("div",{key:0,class:L(e.ns.e("empty-text"))},[J(l,{size:"14",class:L(e.ns.is("loading"))},{default:se(()=>[J(a)]),_:1},8,["class"]),Tt(" "+ze(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(D(),G("div",{key:1,class:L(e.ns.e("empty-text"))},[de(e.$slots,"empty",{},()=>[Tt(ze(e.t("el.cascader.noData")),1)])],2)):(d=e.panel)!=null&&d.isHoverMenu?(D(),G(tt,{key:2},[pe(" eslint-disable-next-line vue/html-self-closing "),(D(),G("svg",{ref:"hoverZone",class:L(e.ns.e("hover-zone"))},null,2))],2112)):pe("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var W9=Ve(V9,[["render",H9],["__file","menu.vue"]]);const By=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),hi=e=>Id(e);let G9=0;const K9=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let Uv=class zv{constructor(t,n,o,r=!1){this.data=t,this.config=n,this.parent=o,this.root=r,this.uid=G9++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:s,children:a}=n,l=t[a],u=K9(this);this.level=r?0:o?o.level+1:1,this.value=t[i],this.label=t[s],this.pathNodes=u,this.pathValues=u.map(d=>d.value),this.pathLabels=u.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new zv(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ur(l)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:r,checkStrictly:i}=o;return(it(r)?r(t,this):!!t[r])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:r}=this,{lazy:i,leaf:s}=n,a=it(s)?s(t,this):t[s];return Bt(a)?i&&!r?!1:!(Oe(o)&&o.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,r=new zv(t,this.config,this);return Oe(n)?n.push(t):this.childrenData=[t],o.push(r),r}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${hi(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[o]&&r[o](...n))})}emit(t,...n){const{parent:o}=this,r=`onChild${hi(t)}`;o&&(o[r]&&o[r](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(r=>!r.isDisabled),o=n.length?n.every(r=>r.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((r,i)=>{const s=i.checked?1:i.indeterminate?.5:0;return r+s},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Vv=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(Vv(o.children,t))),n),[]);class Nx{constructor(t,n){this.config=n;const o=(t||[]).map(r=>new Uv(r,this.config));this.nodes=o,this.allNodes=Vv(o,!1),this.leafNodes=Vv(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new Uv(t,this.config);n||this.nodes.push(o),this.appendAllNodesAndLeafNodes(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}appendAllNodesAndLeafNodes(t){this.allNodes.push(t),t.isLeaf&&this.leafNodes.push(t),t.children&&t.children.forEach(n=>{this.appendAllNodesAndLeafNodes(n)})}getNodeByValue(t,n=!1){return jo(t)?null:this.getFlattedNodes(n).find(r=>Zn(r.value,t)||Zn(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:o,level:r})=>Zn(t.value,o)&&t.level===r)||null}}const dT=Ue({modelValue:{type:le([Number,String,Array])},options:{type:le(Array),default:()=>[]},props:{type:le(Object),default:()=>({})}}),q9={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:jt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},j9=e=>A(()=>({...q9,...e.props})),Ox=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Y9=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():b3(e)&&e.click()},X9=(e,t)=>{const n=t.slice(0),o=n.map(i=>i.uid),r=e.reduce((i,s)=>{const a=o.indexOf(s.uid);return a>-1&&(i.push(s),n.splice(a,1),o.splice(a,1)),i},[]);return r.push(...n),r},Fx=e=>[...new Set(e)],Oo=e=>!e&&e!==0?[]:Oe(e)?e:[e],Z9=Q({name:"ElCascaderPanel",components:{ElCascaderMenu:W9},props:{...dT,border:{type:Boolean,default:!0},renderLabel:Function},emits:[vt,It,"close","expand-change"],setup(e,{emit:t,slots:n}){let o=!1;const r=Pe("cascader"),i=j9(e);let s=null;const a=F(!0),l=F([]),u=F(null),d=F([]),f=F(null),p=F([]),h=A(()=>i.value.expandTrigger==="hover"),m=A(()=>e.renderLabel||n.default),v=()=>{const{options:R}=e,B=i.value;o=!1,s=new Nx(R,B),d.value=[s.getNodes()],B.lazy&&ur(e.options)?(a.value=!1,b(void 0,H=>{H&&(s=new Nx(H,B),d.value=[s.getNodes()]),a.value=!0,T(!1,!0)})):T(!1,!0)},b=(R,B)=>{const H=i.value;R=R||new Uv({},H,void 0,!0),R.loading=!0;const N=P=>{const U=R,I=U.root?null:U;P&&(s==null||s.appendNodes(P,I)),U.loading=!1,U.loaded=!0,U.childrenData=U.childrenData||[],B&&B(P)};H.lazyLoad(R,N)},g=(R,B)=>{var H;const{level:N}=R,P=d.value.slice(0,N);let U;R.isLeaf?U=R.pathNodes[N-2]:(U=R,P.push(R.children)),((H=f.value)==null?void 0:H.uid)!==(U==null?void 0:U.uid)&&(f.value=R,d.value=P,!B&&t("expand-change",(R==null?void 0:R.pathValues)||[]))},x=(R,B,H=!0)=>{const{checkStrictly:N,multiple:P}=i.value,U=p.value[0];o=!0,!P&&(U==null||U.doCheck(!1)),R.doCheck(B),M(),H&&!P&&!N&&t("close"),!H&&!P&&!N&&y(R)},y=R=>{R&&(R=R.parent,y(R),R&&g(R))},_=R=>s==null?void 0:s.getFlattedNodes(R),w=R=>{var B;return(B=_(R))==null?void 0:B.filter(H=>H.checked!==!1)},S=()=>{p.value.forEach(R=>R.doCheck(!1)),M(),d.value=d.value.slice(0,1),f.value=null,t("expand-change",[])},M=()=>{var R;const{checkStrictly:B,multiple:H}=i.value,N=p.value,P=w(!B),U=X9(N,P),I=U.map(O=>O.valueByOption);p.value=U,u.value=H?I:(R=I[0])!=null?R:null},T=(R=!1,B=!1)=>{const{modelValue:H}=e,{lazy:N,multiple:P,checkStrictly:U}=i.value,I=!U;if(!(!a.value||o||!B&&Zn(H,u.value)))if(N&&!R){const q=Fx(qO(Oo(H))).map(K=>s==null?void 0:s.getNodeByValue(K)).filter(K=>!!K&&!K.loaded&&!K.loading);q.length?q.forEach(K=>{b(K,()=>T(!1,B))}):T(!0,B)}else{const O=P?Oo(H):[H],q=Fx(O.map(K=>s==null?void 0:s.getNodeByValue(K,I)));E(q,B),u.value=op(H)}},E=(R,B=!0)=>{const{checkStrictly:H}=i.value,N=p.value,P=R.filter(O=>!!O&&(H||O.isLeaf)),U=s==null?void 0:s.getSameNode(f.value),I=B&&U||P[0];I?I.pathNodes.forEach(O=>g(O,!0)):f.value=null,N.forEach(O=>O.doCheck(!1)),Gt(P).forEach(O=>O.doCheck(!0)),p.value=P,Qe(C)},C=()=>{Ft&&l.value.forEach(R=>{const B=R==null?void 0:R.$el;if(B){const H=B.querySelector(`.${r.namespace.value}-scrollbar__wrap`),N=B.querySelector(`.${r.b("node")}.${r.is("active")}:last-child`)||B.querySelector(`.${r.b("node")}.in-active-path`);gy(H,N)}})},k=R=>{const B=R.target,{code:H}=R;switch(H){case Ke.up:case Ke.down:{R.preventDefault();const N=H===Ke.up?-1:1;bh(y3(B,N,`.${r.b("node")}[tabindex="-1"]`));break}case Ke.left:{R.preventDefault();const N=l.value[Ox(B)-1],P=N==null?void 0:N.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);bh(P);break}case Ke.right:{R.preventDefault();const N=l.value[Ox(B)+1],P=N==null?void 0:N.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);bh(P);break}case Ke.enter:case Ke.numpadEnter:Y9(B);break}};return Lt(Fy,Gt({config:i,expandingNode:f,checkedNodes:p,isHoverMenu:h,initialLoaded:a,renderLabelFn:m,lazyLoad:b,expandNode:g,handleCheckChange:x})),Te([i,()=>e.options],v,{deep:!0,immediate:!0}),Te(()=>e.modelValue,()=>{o=!1,T()},{deep:!0}),Te(()=>u.value,R=>{Zn(R,e.modelValue)||(t(vt,R),t(It,R))}),mE(()=>l.value=[]),xt(()=>!ur(e.modelValue)&&T()),{ns:r,menuList:l,menus:d,checkedNodes:p,handleKeyDown:k,handleCheckChange:x,getFlattedNodes:_,getCheckedNodes:w,clearCheckedNodes:S,calculateCheckedValue:M,scrollToExpandingNode:C}}});function J9(e,t,n,o,r,i){const s=Mt("el-cascader-menu");return D(),G("div",{class:L([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(D(!0),G(tt,null,Nt(e.menus,(a,l)=>(D(),_e(s,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...a]},{empty:se(()=>[de(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var Q9=Ve(Z9,[["render",J9],["__file","index.vue"]]);const fT=yt(Q9),us=Ue({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Pi},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),eV={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},tV=Q({name:"ElTag"}),nV=Q({...tV,props:us,emits:eV,setup(e,{emit:t}){const n=e,o=Fn(),r=Pe("tag"),i=A(()=>{const{type:u,hit:d,effect:f,closable:p,round:h}=n;return[r.b(),r.is("closable",p),r.m(u||"primary"),r.m(o.value),r.m(f),r.is("hit",d),r.is("round",h)]}),s=u=>{t("close",u)},a=u=>{t("click",u)},l=u=>{var d,f,p;(p=(f=(d=u==null?void 0:u.component)==null?void 0:d.subTree)==null?void 0:f.component)!=null&&p.bum&&(u.component.subTree.component.bum=null)};return(u,d)=>u.disableTransitions?(D(),G("span",{key:0,class:L(c(i)),style:rt({backgroundColor:u.color}),onClick:a},[j("span",{class:L(c(r).e("content"))},[de(u.$slots,"default")],2),u.closable?(D(),_e(c(Je),{key:0,class:L(c(r).e("close")),onClick:dt(s,["stop"])},{default:se(()=>[J(c(Ir))]),_:1},8,["class","onClick"])):pe("v-if",!0)],6)):(D(),_e(Hn,{key:1,name:`${c(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:se(()=>[j("span",{class:L(c(i)),style:rt({backgroundColor:u.color}),onClick:a},[j("span",{class:L(c(r).e("content"))},[de(u.$slots,"default")],2),u.closable?(D(),_e(c(Je),{key:0,class:L(c(r).e("close")),onClick:dt(s,["stop"])},{default:se(()=>[J(c(Ir))]),_:1},8,["class","onClick"])):pe("v-if",!0)],6)]),_:3},8,["name"]))}});var oV=Ve(nV,[["__file","tag.vue"]]);const wu=yt(oV),rV=Ue({...dT,size:Vn,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:le(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:le(Function),default:()=>!0},placement:{type:le(String),values:bs,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:Pn.teleported,tagType:{...us.type,default:"info"},tagEffect:{...us.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ju}),iV={[vt]:e=>!0,[It]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Jt(e),expandChange:e=>!!e,removeTag:e=>!!e},Is=new Map;if(Ft){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Is.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function Bx(e,t){let n=[];return Oe(t.arg)?n=t.arg:Fo(t.arg)&&n.push(t.arg),function(o,r){const i=t.instance.popperRef,s=o.target,a=r==null?void 0:r.target,l=!t||!t.instance,u=!s||!a,d=e.contains(s)||e.contains(a),f=e===s,p=n.length&&n.some(m=>m==null?void 0:m.contains(s))||n.length&&n.includes(a),h=i&&(i.contains(s)||i.contains(a));l||u||d||f||p||h||t.value(o,r)}}const cs={beforeMount(e,t){Is.has(e)||Is.set(e,[]),Is.get(e).push({documentHandler:Bx(e,t),bindingFn:t.value})},updated(e,t){Is.has(e)||Is.set(e,[]);const n=Is.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:Bx(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted(e){Is.delete(e)}},sV="ElCascader",aV=Q({name:sV}),lV=Q({...aV,props:rV,emits:iV,setup(e,{expose:t,emit:n}){const o=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ne})=>{const{modifiersData:we,placement:te}=ne;["right","left","bottom","top"].includes(te)||we.arrow&&(we.arrow.x=35)},requires:["arrow"]}]},i=hs();let s=0,a=0;const l=Pe("cascader"),u=Pe("input"),{t:d}=$t(),{form:f,formItem:p}=xo(),{valueOnClear:h}=u0(o),{isComposing:m,handleComposition:v}=Gd({afterComposition(ne){var we;const te=(we=ne.target)==null?void 0:we.value;He(te)}}),b=F(null),g=F(null),x=F(null),y=F(null),_=F(null),w=F(!1),S=F(!1),M=F(!1),T=F(!1),E=F(""),C=F(""),k=F([]),R=F([]),B=F([]),H=A(()=>i.style),N=A(()=>o.disabled||(f==null?void 0:f.disabled)),P=A(()=>{var ne;return(ne=o.placeholder)!=null?ne:d("el.cascader.placeholder")}),U=A(()=>C.value||k.value.length>0||m.value?"":P.value),I=Fn(),O=A(()=>I.value==="small"?"small":"default"),q=A(()=>!!o.props.multiple),K=A(()=>!o.filterable||q.value),oe=A(()=>q.value?C.value:E.value),X=A(()=>{var ne;return((ne=y.value)==null?void 0:ne.checkedNodes)||[]}),Y=A(()=>!o.clearable||N.value||M.value||!S.value?!1:!!X.value.length),ie=A(()=>{const{showAllLevels:ne,separator:we}=o,te=X.value;return te.length?q.value?"":te[0].calcText(ne,we):""}),ae=A(()=>(p==null?void 0:p.validateState)||""),re=A({get(){return op(o.modelValue)},set(ne){const we=ne??h.value;n(vt,we),n(It,we),o.validateEvent&&(p==null||p.validate("change").catch(te=>void 0))}}),fe=A(()=>[l.b(),l.m(I.value),l.is("disabled",N.value),i.class]),be=A(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",w.value)]),De=A(()=>l.is("focus",w.value||T.value)),Re=A(()=>{var ne,we;return(we=(ne=b.value)==null?void 0:ne.popperRef)==null?void 0:we.contentRef}),V=ne=>{var we,te,Ee;N.value||(ne=ne??!w.value,ne!==w.value&&(w.value=ne,(te=(we=g.value)==null?void 0:we.input)==null||te.setAttribute("aria-expanded",`${ne}`),ne?(ee(),Qe((Ee=y.value)==null?void 0:Ee.scrollToExpandingNode)):o.filterable&&he(),n("visibleChange",ne)))},ee=()=>{Qe(()=>{var ne;(ne=b.value)==null||ne.updatePopper()})},z=()=>{M.value=!1},ve=ne=>{const{showAllLevels:we,separator:te}=o;return{node:ne,key:ne.uid,text:ne.calcText(we,te),hitState:!1,closable:!N.value&&!ne.isDisabled,isCollapseTag:!1}},ce=ne=>{var we;const te=ne.node;te.doCheck(!1),(we=y.value)==null||we.calculateCheckedValue(),n("removeTag",te.valueByOption)},me=()=>{if(!q.value)return;const ne=X.value,we=[],te=[];if(ne.forEach(Ee=>te.push(ve(Ee))),R.value=te,ne.length){ne.slice(0,o.maxCollapseTags).forEach(Se=>we.push(ve(Se)));const Ee=ne.slice(o.maxCollapseTags),Ye=Ee.length;Ye&&(o.collapseTags?we.push({key:-1,text:`+ ${Ye}`,closable:!1,isCollapseTag:!0}):Ee.forEach(Se=>we.push(ve(Se))))}k.value=we},ue=()=>{var ne,we;const{filterMethod:te,showAllLevels:Ee,separator:Ye}=o,Se=(we=(ne=y.value)==null?void 0:ne.getFlattedNodes(!o.props.checkStrictly))==null?void 0:we.filter(ot=>ot.isDisabled?!1:(ot.calcText(Ee,Ye),te(ot,oe.value)));q.value&&(k.value.forEach(ot=>{ot.hitState=!1}),R.value.forEach(ot=>{ot.hitState=!1})),M.value=!0,B.value=Se,ee()},ge=()=>{var ne;let we;M.value&&_.value?we=_.value.$el.querySelector(`.${l.e("suggestion-item")}`):we=(ne=y.value)==null?void 0:ne.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),we&&(we.focus(),!M.value&&we.click())},xe=()=>{var ne,we;const te=(ne=g.value)==null?void 0:ne.input,Ee=x.value,Ye=(we=_.value)==null?void 0:we.$el;if(!(!Ft||!te)){if(Ye){const Se=Ye.querySelector(`.${l.e("suggestion-list")}`);Se.style.minWidth=`${te.offsetWidth}px`}if(Ee){const{offsetHeight:Se}=Ee,ot=k.value.length>0?`${Math.max(Se,s)-2}px`:`${s}px`;te.style.height=ot,ee()}}},Ce=ne=>{var we;return(we=y.value)==null?void 0:we.getCheckedNodes(ne)},Fe=ne=>{ee(),n("expandChange",ne)},Z=ne=>{if(!m.value)switch(ne.code){case Ke.enter:case Ke.numpadEnter:V();break;case Ke.down:V(!0),Qe(ge),ne.preventDefault();break;case Ke.esc:w.value===!0&&(ne.preventDefault(),ne.stopPropagation(),V(!1));break;case Ke.tab:V(!1);break}},$=()=>{var ne;(ne=y.value)==null||ne.clearCheckedNodes(),!w.value&&o.filterable&&he(),V(!1),n("clear")},he=()=>{const{value:ne}=ie;E.value=ne,C.value=ne},Me=ne=>{var we,te;const{checked:Ee}=ne;q.value?(we=y.value)==null||we.handleCheckChange(ne,!Ee,!1):(!Ee&&((te=y.value)==null||te.handleCheckChange(ne,!0,!1)),V(!1))},Be=ne=>{const we=ne.target,{code:te}=ne;switch(te){case Ke.up:case Ke.down:{ne.preventDefault();const Ee=te===Ke.up?-1:1;bh(y3(we,Ee,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Ke.enter:case Ke.numpadEnter:we.click();break}},Ne=()=>{const ne=k.value,we=ne[ne.length-1];a=C.value?0:a+1,!(!we||!a||o.collapseTags&&ne.length>1)&&(we.hitState?ce(we):we.hitState=!0)},nt=ne=>{const we=ne.target,te=l.e("search-input");we.className===te&&(T.value=!0),n("focus",ne)},qe=ne=>{T.value=!1,n("blur",ne)},ht=tr(()=>{const{value:ne}=oe;if(!ne)return;const we=o.beforeFilter(ne);Qa(we)?we.then(ue).catch(()=>{}):we!==!1?ue():z()},o.debounce),He=(ne,we)=>{!w.value&&V(!0),!(we!=null&&we.isComposing)&&(ne?ht():z())},$e=ne=>Number.parseFloat(k8(u.cssVarName("input-height"),ne).value)-2;return Te(M,ee),Te([X,N,()=>o.collapseTags],me),Te(k,()=>{Qe(()=>xe())}),Te(I,async()=>{await Qe();const ne=g.value.input;s=$e(ne)||s,xe()}),Te(ie,he,{immediate:!0}),xt(()=>{const ne=g.value.input,we=$e(ne);s=ne.offsetHeight||we,vn(ne,xe)}),t({getCheckedNodes:Ce,cascaderPanelRef:y,togglePopperVisible:V,contentRef:Re,presentText:ie}),(ne,we)=>(D(),_e(c(_o),{ref_key:"tooltipRef",ref:b,visible:w.value,teleported:ne.teleported,"popper-class":[c(l).e("dropdown"),ne.popperClass],"popper-options":r,"fallback-placements":ne.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:ne.placement,transition:`${c(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:ne.persistent,onHide:z},{default:se(()=>[_t((D(),G("div",{class:L(c(fe)),style:rt(c(H)),onClick:()=>V(c(K)?void 0:!0),onKeydown:Z,onMouseenter:te=>S.value=!0,onMouseleave:te=>S.value=!1},[J(c(To),{ref_key:"input",ref:g,modelValue:E.value,"onUpdate:modelValue":te=>E.value=te,placeholder:c(U),readonly:c(K),disabled:c(N),"validate-event":!1,size:c(I),class:L(c(De)),tabindex:c(q)&&ne.filterable&&!c(N)?-1:void 0,onCompositionstart:c(v),onCompositionupdate:c(v),onCompositionend:c(v),onFocus:nt,onBlur:qe,onInput:He},er({suffix:se(()=>[c(Y)?(D(),_e(c(Je),{key:"clear",class:L([c(u).e("icon"),"icon-circle-close"]),onClick:dt($,["stop"])},{default:se(()=>[J(c(gs))]),_:1},8,["class","onClick"])):(D(),_e(c(Je),{key:"arrow-down",class:L(c(be)),onClick:dt(te=>V(),["stop"])},{default:se(()=>[J(c(Di))]),_:1},8,["class","onClick"]))]),_:2},[ne.$slots.prefix?{name:"prefix",fn:se(()=>[de(ne.$slots,"prefix")])}:void 0]),1032,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),c(q)?(D(),G("div",{key:0,ref_key:"tagWrapper",ref:x,class:L([c(l).e("tags"),c(l).is("validate",!!c(ae))])},[(D(!0),G(tt,null,Nt(k.value,te=>(D(),_e(c(wu),{key:te.key,type:ne.tagType,size:c(O),effect:ne.tagEffect,hit:te.hitState,closable:te.closable,"disable-transitions":"",onClose:Ee=>ce(te)},{default:se(()=>[te.isCollapseTag===!1?(D(),G("span",{key:0},ze(te.text),1)):(D(),_e(c(_o),{key:1,disabled:w.value||!ne.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:se(()=>[j("span",null,ze(te.text),1)]),content:se(()=>[j("div",{class:L(c(l).e("collapse-tags"))},[(D(!0),G(tt,null,Nt(R.value.slice(ne.maxCollapseTags),(Ee,Ye)=>(D(),G("div",{key:Ye,class:L(c(l).e("collapse-tag"))},[(D(),_e(c(wu),{key:Ee.key,class:"in-tooltip",type:ne.tagType,size:c(O),effect:ne.tagEffect,hit:Ee.hitState,closable:Ee.closable,"disable-transitions":"",onClose:Se=>ce(Ee)},{default:se(()=>[j("span",null,ze(Ee.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),ne.filterable&&!c(N)?_t((D(),G("input",{key:0,"onUpdate:modelValue":te=>C.value=te,type:"text",class:L(c(l).e("search-input")),placeholder:c(ie)?"":c(P),onInput:te=>He(C.value,te),onClick:dt(te=>V(!0),["stop"]),onKeydown:Zt(Ne,["delete"]),onCompositionstart:c(v),onCompositionupdate:c(v),onCompositionend:c(v),onFocus:nt,onBlur:qe},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[Nd,C.value]]):pe("v-if",!0)],2)):pe("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[c(cs),()=>V(!1),c(Re)]])]),content:se(()=>[_t(J(c(fT),{ref_key:"cascaderPanelRef",ref:y,modelValue:c(re),"onUpdate:modelValue":te=>hn(re)?re.value=te:null,options:ne.options,props:o.props,border:!1,"render-label":ne.$slots.default,onExpandChange:Fe,onClose:te=>ne.$nextTick(()=>V(!1))},{empty:se(()=>[de(ne.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[Vt,!M.value]]),ne.filterable?_t((D(),_e(c(Ii),{key:0,ref_key:"suggestionPanel",ref:_,tag:"ul",class:L(c(l).e("suggestion-panel")),"view-class":c(l).e("suggestion-list"),onKeydown:Be},{default:se(()=>[B.value.length?(D(!0),G(tt,{key:0},Nt(B.value,te=>(D(),G("li",{key:te.uid,class:L([c(l).e("suggestion-item"),c(l).is("checked",te.checked)]),tabindex:-1,onClick:Ee=>Me(te)},[de(ne.$slots,"suggestion-item",{item:te},()=>[j("span",null,ze(te.text),1),te.checked?(D(),_e(c(Je),{key:0},{default:se(()=>[J(c(Hd))]),_:1})):pe("v-if",!0)])],10,["onClick"]))),128)):de(ne.$slots,"empty",{key:1},()=>[j("li",{class:L(c(l).e("empty-text"))},ze(c(d)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Vt,M.value]]):pe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var uV=Ve(lV,[["__file","cascader.vue"]]);const cV=yt(uV),dV=Ue({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),fV={"update:checked":e=>Jt(e),[It]:e=>Jt(e)},hV=Q({name:"ElCheckTag"}),pV=Q({...hV,props:dV,emits:fV,setup(e,{emit:t}){const n=e,o=Pe("check-tag"),r=A(()=>n.disabled),i=A(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",r.value),o.m(n.type||"primary")]),s=()=>{if(r.value)return;const a=!n.checked;t(It,a),t("update:checked",a)};return(a,l)=>(D(),G("span",{class:L(c(i)),onClick:s},[de(a.$slots,"default")],2))}});var mV=Ve(pV,[["__file","check-tag.vue"]]);const vV=yt(mV),gV=Ue({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:le([Number,Object]),default:()=>_n({})},sm:{type:le([Number,Object]),default:()=>_n({})},md:{type:le([Number,Object]),default:()=>_n({})},lg:{type:le([Number,Object]),default:()=>_n({})},xl:{type:le([Number,Object]),default:()=>_n({})}}),hT=Symbol("rowContextKey"),bV=Q({name:"ElCol"}),yV=Q({...bV,props:gV,setup(e){const t=e,{gutter:n}=je(hT,{gutter:A(()=>0)}),o=Pe("col"),r=A(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),i=A(()=>{const s=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];st(d)&&(u==="span"?s.push(o.b(`${t[u]}`)):d>0&&s.push(o.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{st(t[u])?s.push(o.b(`${u}-${t[u]}`)):Ct(t[u])&&Object.entries(t[u]).forEach(([d,f])=>{s.push(d!=="span"?o.b(`${u}-${d}-${f}`):o.b(`${u}-${f}`))})}),n.value&&s.push(o.is("guttered")),[o.b(),s]});return(s,a)=>(D(),_e(Rt(s.tag),{class:L(c(i)),style:rt(c(r))},{default:se(()=>[de(s.$slots,"default")]),_:3},8,["class","style"]))}});var _V=Ve(yV,[["__file","col.vue"]]);const xV=yt(_V),$x=e=>st(e)||et(e)||Oe(e),SV=Ue({accordion:Boolean,modelValue:{type:le([Array,String,Number]),default:()=>_n([])},expandIconPosition:{type:le([String]),default:"right"},beforeCollapse:{type:le(Function)}}),wV={[vt]:$x,[It]:$x},pT=Symbol("collapseContextKey"),CV="ElCollapse",EV=(e,t)=>{const n=F(Eo(e.modelValue)),o=s=>{n.value=s;const a=e.accordion?n.value[0]:n.value;t(vt,a),t(It,a)},r=s=>{if(e.accordion)o([n.value[0]===s?"":s]);else{const a=[...n.value],l=a.indexOf(s);l>-1?a.splice(l,1):a.push(s),o(a)}},i=async s=>{const{beforeCollapse:a}=e;if(!a){r(s);return}const l=a(s);[Qa(l),Jt(l)].includes(!0)||Ln(CV,"beforeCollapse must return type `Promise` or `boolean`"),Qa(l)?l.then(d=>{d!==!1&&r(s)}).catch(d=>{}):l&&r(s)};return Te(()=>e.modelValue,()=>n.value=Eo(e.modelValue),{deep:!0}),Lt(pT,{activeNames:n,handleItemClick:i}),{activeNames:n,setActiveNames:o}},MV=e=>{const t=Pe("collapse");return{rootKls:A(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}},TV=Q({name:"ElCollapse"}),AV=Q({...TV,props:SV,emits:wV,setup(e,{expose:t,emit:n}){const o=e,{activeNames:r,setActiveNames:i}=EV(o,n),{rootKls:s}=MV(o);return t({activeNames:r,setActiveNames:i}),(a,l)=>(D(),G("div",{class:L(c(s))},[de(a.$slots,"default")],2))}});var kV=Ve(AV,[["__file","collapse.vue"]]);const RV=Q({name:"ElCollapseTransition"}),PV=Q({...RV,setup(e){const t=Pe("collapse-transition"),n=r=>{r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom},o={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.height&&(r.dataset.elExistsHeight=r.style.height),r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){requestAnimationFrame(()=>{r.dataset.oldOverflow=r.style.overflow,r.dataset.elExistsHeight?r.style.maxHeight=r.dataset.elExistsHeight:r.scrollHeight!==0?r.style.maxHeight=`${r.scrollHeight}px`:r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom,r.style.overflow="hidden"})},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},enterCancelled(r){n(r)},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){n(r)},leaveCancelled(r){n(r)}};return(r,i)=>(D(),_e(Hn,Dt({name:c(t).b()},C4(o)),{default:se(()=>[de(r.$slots,"default")]),_:3},16,["name"]))}});var DV=Ve(PV,[["__file","collapse-transition.vue"]]);const y0=yt(DV),IV=Ue({title:{type:String,default:""},name:{type:le([String,Number]),default:void 0},icon:{type:tn,default:ko},disabled:Boolean}),LV=e=>{const t=je(pT),{namespace:n}=Pe("collapse"),o=F(!1),r=F(!1),i=wy(),s=A(()=>i.current++),a=A(()=>{var p;return(p=e.name)!=null?p:`${n.value}-id-${i.prefix}-${c(s)}`}),l=A(()=>t==null?void 0:t.activeNames.value.includes(c(a)));return{focusing:o,id:s,isActive:l,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:o.value=!0},50)},handleHeaderClick:p=>{if(e.disabled)return;const h=p.target;h!=null&&h.closest("input, textarea, select")||(t==null||t.handleItemClick(c(a)),o.value=!1,r.value=!0)},handleEnterClick:p=>{const h=p.target;h!=null&&h.closest("input, textarea, select")||(p.preventDefault(),t==null||t.handleItemClick(c(a)))}}},NV=(e,{focusing:t,isActive:n,id:o})=>{const r=Pe("collapse"),i=A(()=>[r.b("item"),r.is("active",c(n)),r.is("disabled",e.disabled)]),s=A(()=>[r.be("item","header"),r.is("active",c(n)),{focusing:c(t)&&!e.disabled}]),a=A(()=>[r.be("item","arrow"),r.is("active",c(n))]),l=A(()=>[r.be("item","title")]),u=A(()=>r.be("item","wrap")),d=A(()=>r.be("item","content")),f=A(()=>r.b(`content-${c(o)}`)),p=A(()=>r.b(`head-${c(o)}`));return{itemTitleKls:l,arrowKls:a,headKls:s,rootKls:i,itemWrapperKls:u,itemContentKls:d,scopedContentId:f,scopedHeadId:p}},OV=Q({name:"ElCollapseItem"}),FV=Q({...OV,props:IV,setup(e,{expose:t}){const n=e,{focusing:o,id:r,isActive:i,handleFocus:s,handleHeaderClick:a,handleEnterClick:l}=LV(n),{arrowKls:u,headKls:d,rootKls:f,itemTitleKls:p,itemWrapperKls:h,itemContentKls:m,scopedContentId:v,scopedHeadId:b}=NV(n,{focusing:o,isActive:i,id:r});return t({isActive:i}),(g,x)=>(D(),G("div",{class:L(c(f))},[j("div",{id:c(b),class:L(c(d)),"aria-expanded":c(i),"aria-controls":c(v),"aria-describedby":c(v),tabindex:g.disabled?-1:0,role:"button",onClick:c(a),onKeydown:Zt(dt(c(l),["stop"]),["space","enter"]),onFocus:c(s),onBlur:y=>o.value=!1},[j("span",{class:L(c(p))},[de(g.$slots,"title",{isActive:c(i)},()=>[Tt(ze(g.title),1)])],2),de(g.$slots,"icon",{isActive:c(i)},()=>[J(c(Je),{class:L(c(u))},{default:se(()=>[(D(),_e(Rt(g.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),J(c(y0),null,{default:se(()=>[_t(j("div",{id:c(v),role:"region",class:L(c(h)),"aria-hidden":!c(i),"aria-labelledby":c(b)},[j("div",{class:L(c(m))},[de(g.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[Vt,c(i)]])]),_:3})],2))}});var mT=Ve(FV,[["__file","collapse-item.vue"]]);const BV=yt(kV,{CollapseItem:mT}),$V=gn(mT),UV=Ue({color:{type:le(Object),required:!0},vertical:{type:Boolean,default:!1}});let um=!1;function ld(e,t){if(!Ft)return;const n=function(i){var s;(s=t.drag)==null||s.call(t,i)},o=function(i){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,um=!1,(s=t.end)==null||s.call(t,i)},r=function(i){var s;um||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",o),document.addEventListener("touchmove",n),document.addEventListener("touchend",o),um=!0,(s=t.start)==null||s.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r,{passive:!1})}const zV=(e,t)=>{if(!Ft||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.left{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Hv=(e,t)=>Math.abs(Ux(e)-Ux(t)),$y=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},VV=e=>{const t=Pt(),{t:n}=$t(),o=fn(),r=fn(),i=A(()=>e.color.get("alpha")),s=A(()=>n("el.colorpicker.alphaLabel"));function a(f){var p;f.target!==o.value&&l(f),(p=o.value)==null||p.focus()}function l(f){if(!r.value||!o.value)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:v}=$y(f);if(e.vertical){let b=v-h.top;b=Math.max(o.value.offsetHeight/2,b),b=Math.min(b,h.height-o.value.offsetHeight/2),e.color.set("alpha",Math.round((b-o.value.offsetHeight/2)/(h.height-o.value.offsetHeight)*100))}else{let b=m-h.left;b=Math.max(o.value.offsetWidth/2,b),b=Math.min(b,h.width-o.value.offsetWidth/2),e.color.set("alpha",Math.round((b-o.value.offsetWidth/2)/(h.width-o.value.offsetWidth)*100))}}function u(f){const{code:p,shiftKey:h}=f,m=h?10:1;switch(p){case Ke.left:case Ke.down:f.preventDefault(),f.stopPropagation(),d(-m);break;case Ke.right:case Ke.up:f.preventDefault(),f.stopPropagation(),d(m);break}}function d(f){let p=i.value+f;p=p<0?0:p>100?100:p,e.color.set("alpha",p)}return{thumb:o,bar:r,alpha:i,alphaLabel:s,handleDrag:l,handleClick:a,handleKeydown:u}},HV=(e,{bar:t,thumb:n,handleDrag:o})=>{const r=Pt(),i=Pe("color-alpha-slider"),s=F(0),a=F(0),l=F();function u(){if(!n.value||e.vertical)return 0;const x=r.vnode.el,y=e.color.get("alpha");return x?Math.round(y*(x.offsetWidth-n.value.offsetWidth/2)/100):0}function d(){if(!n.value)return 0;const x=r.vnode.el;if(!e.vertical)return 0;const y=e.color.get("alpha");return x?Math.round(y*(x.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:x,g:y,b:_}=e.color.toRgb();return`linear-gradient(to right, rgba(${x}, ${y}, ${_}, 0) 0%, rgba(${x}, ${y}, ${_}, 1) 100%)`}return""}function p(){s.value=u(),a.value=d(),l.value=f()}xt(()=>{if(!t.value||!n.value)return;const x={drag:y=>{o(y)},end:y=>{o(y)}};ld(t.value,x),ld(n.value,x),p()}),Te(()=>e.color.get("alpha"),()=>p()),Te(()=>e.color.value,()=>p());const h=A(()=>[i.b(),i.is("vertical",e.vertical)]),m=A(()=>i.e("bar")),v=A(()=>i.e("thumb")),b=A(()=>({background:l.value})),g=A(()=>({left:Sn(s.value),top:Sn(a.value)}));return{rootKls:h,barKls:m,barStyle:b,thumbKls:v,thumbStyle:g,update:p}},WV="ElColorAlphaSlider",GV=Q({name:WV}),KV=Q({...GV,props:UV,setup(e,{expose:t}){const n=e,{alpha:o,alphaLabel:r,bar:i,thumb:s,handleDrag:a,handleClick:l,handleKeydown:u}=VV(n),{rootKls:d,barKls:f,barStyle:p,thumbKls:h,thumbStyle:m,update:v}=HV(n,{bar:i,thumb:s,handleDrag:a});return t({update:v,bar:i,thumb:s}),(b,g)=>(D(),G("div",{class:L(c(d))},[j("div",{ref_key:"bar",ref:i,class:L(c(f)),style:rt(c(p)),onClick:c(l)},null,14,["onClick"]),j("div",{ref_key:"thumb",ref:s,class:L(c(h)),style:rt(c(m)),"aria-label":c(r),"aria-valuenow":c(o),"aria-orientation":b.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:c(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var qV=Ve(KV,[["__file","alpha-slider.vue"]]);const jV=Q({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Pe("color-hue-slider"),n=Pt(),o=F(),r=F(),i=F(0),s=F(0),a=A(()=>e.color.get("hue"));Te(()=>a.value,()=>{p()});function l(h){h.target!==o.value&&u(h)}function u(h){if(!r.value||!o.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:b,clientY:g}=$y(h);let x;if(e.vertical){let y=g-v.top;y=Math.min(y,v.height-o.value.offsetHeight/2),y=Math.max(o.value.offsetHeight/2,y),x=Math.round((y-o.value.offsetHeight/2)/(v.height-o.value.offsetHeight)*360)}else{let y=b-v.left;y=Math.min(y,v.width-o.value.offsetWidth/2),y=Math.max(o.value.offsetWidth/2,y),x=Math.round((y-o.value.offsetWidth/2)/(v.width-o.value.offsetWidth)*360)}e.color.set("hue",x)}function d(){if(!o.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetWidth-o.value.offsetWidth/2)/360):0}function f(){if(!o.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const m=e.color.get("hue");return h?Math.round(m*(h.offsetHeight-o.value.offsetHeight/2)/360):0}function p(){i.value=d(),s.value=f()}return xt(()=>{if(!r.value||!o.value)return;const h={drag:m=>{u(m)},end:m=>{u(m)}};ld(r.value,h),ld(o.value,h),p()}),{bar:r,thumb:o,thumbLeft:i,thumbTop:s,hueValue:a,handleClick:l,update:p,ns:t}}});function YV(e,t,n,o,r,i){return D(),G("div",{class:L([e.ns.b(),e.ns.is("vertical",e.vertical)])},[j("div",{ref:"bar",class:L(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),j("div",{ref:"thumb",class:L(e.ns.e("thumb")),style:rt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var XV=Ve(jV,[["render",YV],["__file","hue-slider.vue"]]);const ZV=Ue({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Vn,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Pn.teleported,predefine:{type:le(Array)},validateEvent:{type:Boolean,default:!0},...ho(["ariaLabel"])}),JV={[vt]:e=>et(e)||qn(e),[It]:e=>et(e)||qn(e),activeChange:e=>et(e)||qn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},vT=Symbol("colorPickerContextKey");let up=class{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new Gl,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const n in t)zt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)zt(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new Gl(t);if(this._isValid=n.isValid,n.isValid){const{h:o,s:r,v:i,a:s}=n.toHsv();this._hue=o,this._saturation=r*100,this._value=i*100,this._alpha=s*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}compare(t){const n=new Gl({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:r,format:i,enableAlpha:s}=this;let a=i||(s?"rgb":"hex");i==="hex"&&s&&(a="hex8"),this._tiny=new Gl({h:t,s:n/100,v:o/100,a:r/100}),this.value=this._isValid?this._tiny.toString(a):""}};const QV=Q({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Pe("color-predefine"),{currentColor:n}=je(vT),o=F(i(e.colors,e.color));Te(()=>n.value,s=>{const a=new up({value:s});o.value.forEach(l=>{l.selected=a.compare(l)})}),co(()=>{o.value=i(e.colors,e.color)});function r(s){e.color.fromString(e.colors[s])}function i(s,a){return s.map(l=>{const u=new up({value:l});return u.selected=u.compare(a),u})}return{rgbaColors:o,handleSelect:r,ns:t}}});function e7(e,t,n,o,r,i){return D(),G("div",{class:L(e.ns.b())},[j("div",{class:L(e.ns.e("colors"))},[(D(!0),G(tt,null,Nt(e.rgbaColors,(s,a)=>(D(),G("div",{key:e.colors[a],class:L([e.ns.e("color-selector"),e.ns.is("alpha",s.get("alpha")<100),{selected:s.selected}]),onClick:l=>e.handleSelect(a)},[j("div",{style:rt({backgroundColor:s.value})},null,4)],10,["onClick"]))),128))],2)],2)}var t7=Ve(QV,[["render",e7],["__file","predefine.vue"]]);const n7=Q({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Pe("color-svpanel"),n=Pt(),o=F(0),r=F(0),i=F("hsl(0, 100%, 50%)"),s=A(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function a(){const u=e.color.get("saturation"),d=e.color.get("value"),f=n.vnode.el,{clientWidth:p,clientHeight:h}=f;r.value=u*p/100,o.value=(100-d)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:p,clientY:h}=$y(u);let m=p-f.left,v=h-f.top;m=Math.max(0,m),m=Math.min(m,f.width),v=Math.max(0,v),v=Math.min(v,f.height),r.value=m,o.value=v,e.color.set({saturation:m/f.width*100,value:100-v/f.height*100})}return Te(()=>s.value,()=>{a()}),xt(()=>{ld(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),a()}),{cursorTop:o,cursorLeft:r,background:i,colorValue:s,handleDrag:l,update:a,ns:t}}});function o7(e,t,n,o,r,i){return D(),G("div",{class:L(e.ns.b()),style:rt({backgroundColor:e.background})},[j("div",{class:L(e.ns.e("white"))},null,2),j("div",{class:L(e.ns.e("black"))},null,2),j("div",{class:L(e.ns.e("cursor")),style:rt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[j("div")],6)],6)}var r7=Ve(n7,[["render",o7],["__file","sv-panel.vue"]]);const i7=Q({name:"ElColorPicker"}),s7=Q({...i7,props:ZV,emits:JV,setup(e,{expose:t,emit:n}){const o=e,{t:r}=$t(),i=Pe("color"),{formItem:s}=xo(),a=Fn(),l=po(),{inputId:u,isLabeledByFormItem:d}=Br(o,{formItemContext:s}),f=F(),p=F(),h=F(),m=F(),v=F(),b=F(),{isFocused:g,handleFocus:x,handleBlur:y}=ma(v,{beforeFocus(){return l.value},beforeBlur(be){var De;return(De=m.value)==null?void 0:De.isFocusInsideContent(be)},afterBlur(){N(!1),O()}});let _=!0;const w=Gt(new up({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),S=F(!1),M=F(!1),T=F(""),E=A(()=>!o.modelValue&&!M.value?"transparent":H(w,o.showAlpha)),C=A(()=>!o.modelValue&&!M.value?"":w.value),k=A(()=>d.value?void 0:o.ariaLabel||r("el.colorpicker.defaultLabel")),R=A(()=>d.value?s==null?void 0:s.labelId:void 0),B=A(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",a.value),i.is("focused",g.value)]);function H(be,De){const{r:Re,g:V,b:ee,a:z}=be.toRgb();return De?`rgba(${Re}, ${V}, ${ee}, ${z})`:`rgb(${Re}, ${V}, ${ee})`}function N(be){S.value=be}const P=tr(N,100,{leading:!0});function U(){l.value||N(!0)}function I(){P(!1),O()}function O(){Qe(()=>{o.modelValue?w.fromString(o.modelValue):(w.value="",!C.value&&T.value&&(T.value=""),Qe(()=>{M.value=!1}))})}function q(){l.value||(S.value&&O(),P(!S.value))}function K(){w.fromString(T.value),w.value!==T.value&&(T.value=w.value)}function oe(){const be=w.value;n(vt,be),n(It,be),o.validateEvent&&(s==null||s.validate("change").catch(De=>void 0)),P(!1),Qe(()=>{const De=new up({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});w.compare(De)||O()})}function X(){P(!1),n(vt,null),n(It,null),o.modelValue!==null&&o.validateEvent&&(s==null||s.validate("change").catch(be=>void 0)),O()}function Y(){S.value&&(I(),g.value&&re())}function ie(be){be.preventDefault(),be.stopPropagation(),N(!1),O()}function ae(be){switch(be.code){case Ke.enter:case Ke.numpadEnter:case Ke.space:be.preventDefault(),be.stopPropagation(),U(),b.value.focus();break;case Ke.esc:ie(be);break}}function re(){v.value.focus()}function fe(){v.value.blur()}return xt(()=>{o.modelValue&&(T.value=C.value)}),Te(()=>o.modelValue,be=>{be?be&&be!==w.value&&(_=!1,w.fromString(be)):M.value=!1}),Te(()=>[o.colorFormat,o.showAlpha],()=>{w.enableAlpha=o.showAlpha,w.format=o.colorFormat||w.format,w.doOnChange(),n(vt,w.value)}),Te(()=>C.value,be=>{T.value=be,_&&n("activeChange",be),_=!0}),Te(()=>w.value,()=>{!o.modelValue&&!M.value&&(M.value=!0)}),Te(()=>S.value,()=>{Qe(()=>{var be,De,Re;(be=f.value)==null||be.update(),(De=p.value)==null||De.update(),(Re=h.value)==null||Re.update()})}),Lt(vT,{currentColor:C}),t({color:w,show:U,hide:I,focus:re,blur:fe}),(be,De)=>(D(),_e(c(_o),{ref_key:"popper",ref:m,visible:S.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[c(i).be("picker","panel"),c(i).b("dropdown"),be.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:be.teleported,transition:`${c(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Re=>N(!1)},{content:se(()=>[_t((D(),G("div",{onKeydown:Zt(ie,["esc"])},[j("div",{class:L(c(i).be("dropdown","main-wrapper"))},[J(XV,{ref_key:"hue",ref:f,class:"hue-slider",color:c(w),vertical:""},null,8,["color"]),J(r7,{ref_key:"sv",ref:p,color:c(w)},null,8,["color"])],2),be.showAlpha?(D(),_e(qV,{key:0,ref_key:"alpha",ref:h,color:c(w)},null,8,["color"])):pe("v-if",!0),be.predefine?(D(),_e(t7,{key:1,ref:"predefine","enable-alpha":be.showAlpha,color:c(w),colors:be.predefine},null,8,["enable-alpha","color","colors"])):pe("v-if",!0),j("div",{class:L(c(i).be("dropdown","btns"))},[j("span",{class:L(c(i).be("dropdown","value"))},[J(c(To),{ref_key:"inputRef",ref:b,modelValue:T.value,"onUpdate:modelValue":Re=>T.value=Re,"validate-event":!1,size:"small",onChange:K},null,8,["modelValue","onUpdate:modelValue"])],2),J(c(Qn),{class:L(c(i).be("dropdown","link-btn")),text:"",size:"small",onClick:X},{default:se(()=>[Tt(ze(c(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),J(c(Qn),{plain:"",size:"small",class:L(c(i).be("dropdown","btn")),onClick:oe},{default:se(()=>[Tt(ze(c(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[c(cs),Y,v.value]])]),default:se(()=>[j("div",Dt({id:c(u),ref_key:"triggerRef",ref:v},be.$attrs,{class:c(B),role:"button","aria-label":c(k),"aria-labelledby":c(R),"aria-description":c(r)("el.colorpicker.description",{color:be.modelValue||""}),"aria-disabled":c(l),tabindex:c(l)?void 0:be.tabindex,onKeydown:ae,onFocus:c(x),onBlur:c(y)}),[j("div",{class:L(c(i).be("picker","trigger")),onClick:q},[j("span",{class:L([c(i).be("picker","color"),c(i).is("alpha",be.showAlpha)])},[j("span",{class:L(c(i).be("picker","color-inner")),style:rt({backgroundColor:c(E)})},[_t(J(c(Je),{class:L([c(i).be("picker","icon"),c(i).is("icon-arrow-down")])},{default:se(()=>[J(c(Di))]),_:1},8,["class"]),[[Vt,be.modelValue||M.value]]),_t(J(c(Je),{class:L([c(i).be("picker","empty"),c(i).is("icon-close")])},{default:se(()=>[J(c(Ir))]),_:1},8,["class"]),[[Vt,!be.modelValue&&!M.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var a7=Ve(s7,[["__file","color-picker.vue"]]);const l7=yt(a7),u7=Ue({a11y:{type:Boolean,default:!0},locale:{type:le(Object)},size:Vn,button:{type:le(Object)},link:{type:le(Object)},experimentalFeatures:{type:le(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:le(Object)},zIndex:Number,namespace:{type:String,default:"el"},...ju}),ar={},c7=Q({name:"ElConfigProvider",props:u7,setup(e,{slots:t}){const n=my(e);return Te(()=>e.message,o=>{var r,i;Object.assign(ar,(i=(r=n==null?void 0:n.value)==null?void 0:r.message)!=null?i:{},o??{})},{immediate:!0,deep:!0}),()=>de(t,"default",{config:n==null?void 0:n.value})}}),d7=yt(c7),f7=Q({name:"ElContainer"}),h7=Q({...f7,props:{direction:{type:String}},setup(e){const t=e,n=Wn(),o=Pe("container"),r=A(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const a=s.type.name;return a==="ElHeader"||a==="ElFooter"}):!1);return(i,s)=>(D(),G("section",{class:L([c(o).b(),c(o).is("vertical",c(r))])},[de(i.$slots,"default")],2))}});var p7=Ve(h7,[["__file","container.vue"]]);const m7=Q({name:"ElAside"}),v7=Q({...m7,props:{width:{type:String,default:null}},setup(e){const t=e,n=Pe("aside"),o=A(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(D(),G("aside",{class:L(c(n).b()),style:rt(c(o))},[de(r.$slots,"default")],6))}});var gT=Ve(v7,[["__file","aside.vue"]]);const g7=Q({name:"ElFooter"}),b7=Q({...g7,props:{height:{type:String,default:null}},setup(e){const t=e,n=Pe("footer"),o=A(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(D(),G("footer",{class:L(c(n).b()),style:rt(c(o))},[de(r.$slots,"default")],6))}});var bT=Ve(b7,[["__file","footer.vue"]]);const y7=Q({name:"ElHeader"}),_7=Q({...y7,props:{height:{type:String,default:null}},setup(e){const t=e,n=Pe("header"),o=A(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(D(),G("header",{class:L(c(n).b()),style:rt(c(o))},[de(r.$slots,"default")],6))}});var yT=Ve(_7,[["__file","header.vue"]]);const x7=Q({name:"ElMain"}),S7=Q({...x7,setup(e){const t=Pe("main");return(n,o)=>(D(),G("main",{class:L(c(t).b())},[de(n.$slots,"default")],2))}});var _T=Ve(S7,[["__file","main.vue"]]);const w7=yt(p7,{Aside:gT,Footer:bT,Header:yT,Main:_T}),C7=gn(gT),E7=gn(bT),M7=gn(yT),T7=gn(_T);var Sh={exports:{}},A7=Sh.exports,zx;function k7(){return zx||(zx=1,function(e,t){(function(n,o){e.exports=o()})(A7,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(g){this[b]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var x=g.match(/([+-]|\d\d)/g),y=60*x[1]+(+x[2]||0);return y===0?0:x[0]==="+"?-y:y}(b)}],p=function(b){var g=l[b];return g&&(g.indexOf?g:g.s.concat(g.f))},h=function(b,g){var x,y=l.meridiem;if(y){for(var _=1;_<=24;_+=1)if(b.indexOf(y(_,0,g))>-1){x=_>12;break}}else x=b===(g?"pm":"PM");return x},m={A:[a,function(b){this.afternoon=h(b,!1)}],a:[a,function(b){this.afternoon=h(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[i,d("day")],Do:[a,function(b){var g=l.ordinal,x=b.match(/\d+/);if(this.day=x[0],g)for(var y=1;y<=31;y+=1)g(y).replace(/\[|\]/g,"")===b&&(this.day=y)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[a,function(b){var g=p("months"),x=(p("monthsShort")||g.map(function(y){return y.slice(0,3)})).indexOf(b)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[a,function(b){var g=p("months").indexOf(b)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(b){var g,x;g=b,x=l&&l.formats;for(var y=(b=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,k,R){var B=R&&R.toUpperCase();return k||x[R]||n[R]||x[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,N,P){return N||P.slice(1)})})).match(o),_=y.length,w=0;w<_;w+=1){var S=y[w],M=m[S],T=M&&M[0],E=M&&M[1];y[w]=E?{regex:T,parser:E}:S.replace(/^\[|\]$/g,"")}return function(C){for(var k={},R=0,B=0;R<_;R+=1){var H=y[R];if(typeof H=="string")B+=H.length;else{var N=H.regex,P=H.parser,U=C.slice(B),I=N.exec(U)[0];P.call(k,I),C=C.replace(I,"")}}return function(O){var q=O.afternoon;if(q!==void 0){var K=O.hours;q?K<12&&(O.hours+=12):K===12&&(O.hours=0),delete O.afternoon}}(k),k}}return function(b,g,x){x.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(u=b.parseTwoDigitYear);var y=g.prototype,_=y.parse;y.parse=function(w){var S=w.date,M=w.utc,T=w.args;this.$u=M;var E=T[1];if(typeof E=="string"){var C=T[2]===!0,k=T[3]===!0,R=C||k,B=T[2];k&&(B=T[2]),l=this.$locale(),!C&&B&&(l=x.Ls[B]),this.$d=function(U,I,O,q){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*U);var K=v(I)(U),oe=K.year,X=K.month,Y=K.day,ie=K.hours,ae=K.minutes,re=K.seconds,fe=K.milliseconds,be=K.zone,De=K.week,Re=new Date,V=Y||(oe||X?1:Re.getDate()),ee=oe||Re.getFullYear(),z=0;oe&&!X||(z=X>0?X-1:Re.getMonth());var ve,ce=ie||0,me=ae||0,ue=re||0,ge=fe||0;return be?new Date(Date.UTC(ee,z,V,ce,me,ue,ge+60*be.offset*1e3)):O?new Date(Date.UTC(ee,z,V,ce,me,ue,ge)):(ve=new Date(ee,z,V,ce,me,ue,ge),De&&(ve=q(ve).week(De).toDate()),ve)}catch{return new Date("")}}(S,E,M,x),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),R&&S!=this.format(E)&&(this.$d=new Date("")),l={}}else if(E instanceof Array)for(var H=E.length,N=1;N<=H;N+=1){T[1]=E[N-1];var P=x.apply(this,T);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}N===H&&(this.$d=new Date(""))}else _.call(this,w)}}})}(Sh)),Sh.exports}var R7=k7();const Uy=ys(R7);var wh={exports:{}},P7=wh.exports,Vx;function D7(){return Vx||(Vx=1,function(e,t){(function(n,o){e.exports=o()})(P7,function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),f==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})}(wh)),wh.exports}var I7=D7();const L7=ys(I7);var Ch={exports:{}},N7=Ch.exports,Hx;function O7(){return Hx||(Hx=1,function(e,t){(function(n,o){e.exports=o()})(N7,function(){var n="week",o="year";return function(r,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(o).add(1,o).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var p=s(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})}(Ch)),Ch.exports}var F7=O7();const B7=ys(F7);var Eh={exports:{}},$7=Eh.exports,Wx;function U7(){return Wx||(Wx=1,function(e,t){(function(n,o){e.exports=o()})($7,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),i=this.week(),s=this.year();return i===1&&r===11?s+1:r===0&&i>=52?s-1:s}}})}(Eh)),Eh.exports}var z7=U7();const V7=ys(z7);var Mh={exports:{}},H7=Mh.exports,Gx;function W7(){return Gx||(Gx=1,function(e,t){(function(n,o){e.exports=o()})(H7,function(){return function(n,o,r){o.prototype.dayOfYear=function(i){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?s:this.add(i-s,"day")}}})}(Mh)),Mh.exports}var G7=W7();const K7=ys(G7);var Th={exports:{}},q7=Th.exports,Kx;function j7(){return Kx||(Kx=1,function(e,t){(function(n,o){e.exports=o()})(q7,function(){return function(n,o){o.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})}(Th)),Th.exports}var Y7=j7();const X7=ys(Y7);var Ah={exports:{}},Z7=Ah.exports,qx;function J7(){return qx||(qx=1,function(e,t){(function(n,o){e.exports=o()})(Z7,function(){return function(n,o){o.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})}(Ah)),Ah.exports}var Q7=J7();const eH=ys(Q7),jx=["hours","minutes","seconds"],_s="EP_PICKER_BASE",zy="ElPopperOptions",cp="HH:mm:ss",zl="YYYY-MM-DD",tH={date:zl,dates:zl,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${zl} ${cp}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:zl,datetimerange:`${zl} ${cp}`},xT=Ue({disabledHours:{type:le(Function)},disabledMinutes:{type:le(Function)},disabledSeconds:{type:le(Function)}}),ST=Ue({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Vy=Ue({id:{type:le([Array,String])},name:{type:le([Array,String])},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:le([String,Object]),default:gs},editable:{type:Boolean,default:!0},prefixIcon:{type:le([String,Object]),default:""},size:Vn,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},modelValue:{type:le([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:le([Date,Array])},defaultTime:{type:le([Date,Array])},isRange:Boolean,...xT,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:le([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:le(String),values:bs,default:"bottom"},fallbackPlacements:{type:le(Array),default:["bottom","top","right","left"]},...ju,...ho(["ariaLabel"]),showNow:{type:Boolean,default:!0}}),nH=Ue({id:{type:le(Array)},name:{type:le(Array)},modelValue:{type:le([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),oH=Q({name:"PickerRangeTrigger",inheritAttrs:!1}),rH=Q({...oH,props:nH,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const o=Wd(),r=Pe("date"),i=Pe("range"),s=F(),a=F(),{wrapperRef:l,isFocused:u}=ma(s),d=_=>{n("click",_)},f=_=>{n("mouseenter",_)},p=_=>{n("mouseleave",_)},h=_=>{n("mouseenter",_)},m=_=>{n("startInput",_)},v=_=>{n("endInput",_)},b=_=>{n("startChange",_)},g=_=>{n("endChange",_)};return t({focus:()=>{var _;(_=s.value)==null||_.focus()},blur:()=>{var _,w;(_=s.value)==null||_.blur(),(w=a.value)==null||w.blur()}}),(_,w)=>(D(),G("div",{ref_key:"wrapperRef",ref:l,class:L([c(r).is("active",c(u)),_.$attrs.class]),style:rt(_.$attrs.style),onClick:d,onMouseenter:f,onMouseleave:p,onTouchstartPassive:h},[de(_.$slots,"prefix"),j("input",Dt(c(o),{id:_.id&&_.id[0],ref_key:"inputRef",ref:s,name:_.name&&_.name[0],placeholder:_.startPlaceholder,value:_.modelValue&&_.modelValue[0],class:c(i).b("input"),disabled:_.disabled,onInput:m,onChange:b}),null,16,["id","name","placeholder","value","disabled"]),de(_.$slots,"range-separator"),j("input",Dt(c(o),{id:_.id&&_.id[1],ref_key:"endInputRef",ref:a,name:_.name&&_.name[1],placeholder:_.endPlaceholder,value:_.modelValue&&_.modelValue[1],class:c(i).b("input"),disabled:_.disabled,onInput:v,onChange:g}),null,16,["id","name","placeholder","value","disabled"]),de(_.$slots,"suffix")],38))}});var iH=Ve(rH,[["__file","picker-range-trigger.vue"]]);const sH=Q({name:"Picker"}),aH=Q({...sH,props:Vy,emits:[vt,It,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const o=e,r=hs(),{lang:i}=$t(),s=Pe("date"),a=Pe("input"),l=Pe("range"),{form:u,formItem:d}=xo(),f=je(zy,{}),{valueOnClear:p}=u0(o,null),h=F(),m=F(),v=F(!1),b=F(!1),g=F(null);let x=!1;const{isFocused:y,handleFocus:_,handleBlur:w}=ma(m,{beforeFocus(){return o.readonly||O.value},afterFocus(){v.value=!0},beforeBlur(te){var Ee;return!x&&((Ee=h.value)==null?void 0:Ee.isFocusInsideContent(te))},afterBlur(){xe(),v.value=!1,x=!1,o.validateEvent&&(d==null||d.validate("blur").catch(te=>void 0))}}),S=A(()=>[s.b("editor"),s.bm("editor",o.type),a.e("wrapper"),s.is("disabled",O.value),s.is("active",v.value),l.b("editor"),ce?l.bm("editor",ce.value):"",r.class]),M=A(()=>[a.e("icon"),l.e("close-icon"),fe.value?"":l.e("close-icon--hidden")]);Te(v,te=>{te?Qe(()=>{te&&(g.value=o.modelValue)}):(ge.value=null,Qe(()=>{T(o.modelValue)}))});const T=(te,Ee)=>{(Ee||!kx(te,g.value))&&(n(It,te),Ee&&(g.value=te),o.validateEvent&&(d==null||d.validate("change").catch(Ye=>void 0)))},E=te=>{if(!kx(o.modelValue,te)){let Ee;Oe(te)?Ee=te.map(Ye=>Px(Ye,o.valueFormat,i.value)):te&&(Ee=Px(te,o.valueFormat,i.value)),n(vt,te&&Ee,i.value)}},C=te=>{n("keydown",te)},k=A(()=>m.value?Array.from(m.value.$el.querySelectorAll("input")):[]),R=(te,Ee,Ye)=>{const Se=k.value;Se.length&&(!Ye||Ye==="min"?(Se[0].setSelectionRange(te,Ee),Se[0].focus()):Ye==="max"&&(Se[1].setSelectionRange(te,Ee),Se[1].focus()))},B=(te="",Ee=!1)=>{v.value=Ee;let Ye;Oe(te)?Ye=te.map(Se=>Se.toDate()):Ye=te&&te.toDate(),ge.value=null,E(Ye)},H=()=>{b.value=!0},N=()=>{n("visible-change",!0)},P=()=>{b.value=!1,v.value=!1,n("visible-change",!1)},U=()=>{v.value=!0},I=()=>{v.value=!1},O=A(()=>o.disabled||(u==null?void 0:u.disabled)),q=A(()=>{let te;if(De.value?qe.value.getDefaultValue&&(te=qe.value.getDefaultValue()):Oe(o.modelValue)?te=o.modelValue.map(Ee=>Rx(Ee,o.valueFormat,i.value)):te=Rx(o.modelValue,o.valueFormat,i.value),qe.value.getRangeAvailableTime){const Ee=qe.value.getRangeAvailableTime(te);Zn(Ee,te)||(te=Ee,De.value||E(Ef(te)))}return Oe(te)&&te.some(Ee=>!Ee)&&(te=[]),te}),K=A(()=>{if(!qe.value.panelReady)return"";const te=Fe(q.value);return Oe(ge.value)?[ge.value[0]||te&&te[0]||"",ge.value[1]||te&&te[1]||""]:ge.value!==null?ge.value:!X.value&&De.value||!v.value&&De.value?"":te?Y.value||ie.value||ae.value?te.join(", "):te:""}),oe=A(()=>o.type.includes("time")),X=A(()=>o.type.startsWith("time")),Y=A(()=>o.type==="dates"),ie=A(()=>o.type==="months"),ae=A(()=>o.type==="years"),re=A(()=>o.prefixIcon||(oe.value?i3:SF)),fe=F(!1),be=te=>{o.readonly||O.value||(fe.value&&(te.stopPropagation(),qe.value.handleClear?qe.value.handleClear():E(p.value),T(p.value,!0),fe.value=!1,P()),n("clear"))},De=A(()=>{const{modelValue:te}=o;return!te||Oe(te)&&!te.filter(Boolean).length}),Re=async te=>{var Ee;o.readonly||O.value||(((Ee=te.target)==null?void 0:Ee.tagName)!=="INPUT"||y.value)&&(v.value=!0)},V=()=>{o.readonly||O.value||!De.value&&o.clearable&&(fe.value=!0)},ee=()=>{fe.value=!1},z=te=>{var Ee;o.readonly||O.value||(((Ee=te.touches[0].target)==null?void 0:Ee.tagName)!=="INPUT"||y.value)&&(v.value=!0)},ve=A(()=>o.type.includes("range")),ce=Fn(),me=A(()=>{var te,Ee;return(Ee=(te=c(h))==null?void 0:te.popperRef)==null?void 0:Ee.contentRef}),ue=py(m,te=>{const Ee=c(me),Ye=lo(m);Ee&&(te.target===Ee||te.composedPath().includes(Ee))||te.target===Ye||Ye&&te.composedPath().includes(Ye)||(v.value=!1)});Qt(()=>{ue==null||ue()});const ge=F(null),xe=()=>{if(ge.value){const te=Ce(K.value);te&&Z(te)&&(E(Ef(te)),ge.value=null)}ge.value===""&&(E(p.value),T(p.value,!0),ge.value=null)},Ce=te=>te?qe.value.parseUserInput(te):null,Fe=te=>te?qe.value.formatToString(te):null,Z=te=>qe.value.isValidValue(te),$=async te=>{if(o.readonly||O.value)return;const{code:Ee}=te;if(C(te),Ee===Ke.esc){v.value===!0&&(v.value=!1,te.preventDefault(),te.stopPropagation());return}if(Ee===Ke.down&&(qe.value.handleFocusPicker&&(te.preventDefault(),te.stopPropagation()),v.value===!1&&(v.value=!0,await Qe()),qe.value.handleFocusPicker)){qe.value.handleFocusPicker();return}if(Ee===Ke.tab){x=!0;return}if(Ee===Ke.enter||Ee===Ke.numpadEnter){(ge.value===null||ge.value===""||Z(Ce(K.value)))&&(xe(),v.value=!1),te.stopPropagation();return}if(ge.value){te.stopPropagation();return}qe.value.handleKeydownInput&&qe.value.handleKeydownInput(te)},he=te=>{ge.value=te,v.value||(v.value=!0)},Me=te=>{const Ee=te.target;ge.value?ge.value=[Ee.value,ge.value[1]]:ge.value=[Ee.value,null]},Be=te=>{const Ee=te.target;ge.value?ge.value=[ge.value[0],Ee.value]:ge.value=[null,Ee.value]},Ne=()=>{var te;const Ee=ge.value,Ye=Ce(Ee&&Ee[0]),Se=c(q);if(Ye&&Ye.isValid()){ge.value=[Fe(Ye),((te=K.value)==null?void 0:te[1])||null];const ot=[Ye,Se&&(Se[1]||null)];Z(ot)&&(E(Ef(ot)),ge.value=null)}},nt=()=>{var te;const Ee=c(ge),Ye=Ce(Ee&&Ee[1]),Se=c(q);if(Ye&&Ye.isValid()){ge.value=[((te=c(K))==null?void 0:te[0])||null,Fe(Ye)];const ot=[Se&&Se[0],Ye];Z(ot)&&(E(Ef(ot)),ge.value=null)}},qe=F({}),ht=te=>{qe.value[te[0]]=te[1],qe.value.panelReady=!0},He=te=>{n("calendar-change",te)},$e=(te,Ee,Ye)=>{n("panel-change",te,Ee,Ye)},ne=()=>{var te;(te=m.value)==null||te.focus()},we=()=>{var te;(te=m.value)==null||te.blur()};return Lt(_s,{props:o}),t({focus:ne,blur:we,handleOpen:U,handleClose:I,onPick:B}),(te,Ee)=>(D(),_e(c(_o),Dt({ref_key:"refPopper",ref:h,visible:v.value,effect:"light",pure:"",trigger:"click"},te.$attrs,{role:"dialog",teleported:"",transition:`${c(s).namespace.value}-zoom-in-top`,"popper-class":[`${c(s).namespace.value}-picker__popper`,te.popperClass],"popper-options":c(f),"fallback-placements":te.fallbackPlacements,"gpu-acceleration":!1,placement:te.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:H,onShow:N,onHide:P}),{default:se(()=>[c(ve)?(D(),_e(iH,{key:1,id:te.id,ref_key:"inputRef",ref:m,"model-value":c(K),name:te.name,disabled:c(O),readonly:!te.editable||te.readonly,"start-placeholder":te.startPlaceholder,"end-placeholder":te.endPlaceholder,class:L(c(S)),style:rt(te.$attrs.style),"aria-label":te.ariaLabel,tabindex:te.tabindex,autocomplete:"off",role:"combobox",onClick:Re,onFocus:c(_),onBlur:c(w),onStartInput:Me,onStartChange:Ne,onEndInput:Be,onEndChange:nt,onMousedown:Re,onMouseenter:V,onMouseleave:ee,onTouchstartPassive:z,onKeydown:$},{prefix:se(()=>[c(re)?(D(),_e(c(Je),{key:0,class:L([c(a).e("icon"),c(l).e("icon")])},{default:se(()=>[(D(),_e(Rt(c(re))))]),_:1},8,["class"])):pe("v-if",!0)]),"range-separator":se(()=>[de(te.$slots,"range-separator",{},()=>[j("span",{class:L(c(l).b("separator"))},ze(te.rangeSeparator),3)])]),suffix:se(()=>[te.clearIcon?(D(),_e(c(Je),{key:0,class:L(c(M)),onMousedown:dt(c(jt),["prevent"]),onClick:be},{default:se(()=>[(D(),_e(Rt(te.clearIcon)))]),_:1},8,["class","onMousedown"])):pe("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(D(),_e(c(To),{key:0,id:te.id,ref_key:"inputRef",ref:m,"container-role":"combobox","model-value":c(K),name:te.name,size:c(ce),disabled:c(O),placeholder:te.placeholder,class:L([c(s).b("editor"),c(s).bm("editor",te.type),te.$attrs.class]),style:rt(te.$attrs.style),readonly:!te.editable||te.readonly||c(Y)||c(ie)||c(ae)||te.type==="week","aria-label":te.ariaLabel,tabindex:te.tabindex,"validate-event":!1,onInput:he,onFocus:c(_),onBlur:c(w),onKeydown:$,onChange:xe,onMousedown:Re,onMouseenter:V,onMouseleave:ee,onTouchstartPassive:z,onClick:dt(()=>{},["stop"])},{prefix:se(()=>[c(re)?(D(),_e(c(Je),{key:0,class:L(c(a).e("icon")),onMousedown:dt(Re,["prevent"]),onTouchstartPassive:z},{default:se(()=>[(D(),_e(Rt(c(re))))]),_:1},8,["class","onMousedown"])):pe("v-if",!0)]),suffix:se(()=>[fe.value&&te.clearIcon?(D(),_e(c(Je),{key:0,class:L(`${c(a).e("icon")} clear-icon`),onMousedown:dt(c(jt),["prevent"]),onClick:be},{default:se(()=>[(D(),_e(Rt(te.clearIcon)))]),_:1},8,["class","onMousedown"])):pe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur","onClick"]))]),content:se(()=>[de(te.$slots,"default",{visible:v.value,actualVisible:b.value,parsedValue:c(q),format:te.format,dateFormat:te.dateFormat,timeFormat:te.timeFormat,unlinkPanels:te.unlinkPanels,type:te.type,defaultValue:te.defaultValue,showNow:te.showNow,onPick:B,onSelectRange:R,onSetPickerOption:ht,onCalendarChange:He,onPanelChange:$e,onMousedown:dt(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var wT=Ve(aH,[["__file","picker.vue"]]);const lH=Ue({...ST,datetimeRole:String,parsedValue:{type:le(Object)}}),CT=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const o=(s,a,l,u)=>{const d={hour:e,minute:t,second:n};let f=s;return["hour","minute","second"].forEach(p=>{if(d[p]){let h;const m=d[p];switch(p){case"minute":{h=m(f.hour(),a,u);break}case"second":{h=m(f.hour(),f.minute(),a,u);break}default:{h=m(a,u);break}}if(h!=null&&h.length&&!h.includes(f[p]())){const v=l?0:h.length-1;f=f[p](h[v])}}}),f},r={};return{timePickerOptions:r,getAvailableTime:o,onSetOption:([s,a])=>{r[s]=a}}},cm=e=>{const t=(o,r)=>o||r,n=o=>o!==!0;return e.map(t).filter(n)},ET=(e,t,n)=>({getHoursList:(s,a)=>am(24,e&&(()=>e==null?void 0:e(s,a))),getMinutesList:(s,a,l)=>am(60,t&&(()=>t==null?void 0:t(s,a,l))),getSecondsList:(s,a,l,u)=>am(60,n&&(()=>n==null?void 0:n(s,a,l,u)))}),MT=(e,t,n)=>{const{getHoursList:o,getMinutesList:r,getSecondsList:i}=ET(e,t,n);return{getAvailableHours:(u,d)=>cm(o(u,d)),getAvailableMinutes:(u,d,f)=>cm(r(u,d,f)),getAvailableSeconds:(u,d,f,p)=>cm(i(u,d,f,p))}},TT=e=>{const t=F(e.parsedValue);return Te(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},uH=Ue({role:{type:String,required:!0},spinnerDate:{type:le(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:le(String),default:""},...xT}),cH=100,dH=600,dp={beforeMount(e,t){const n=t.value,{interval:o=cH,delay:r=dH}=it(n)?{}:n;let i,s;const a=()=>it(n)?n():n.handler(),l=()=>{s&&(clearTimeout(s),s=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),a(),document.addEventListener("mouseup",()=>l(),{once:!0}),s=setTimeout(()=>{i=setInterval(()=>{a()},o)},r))})}},fH=Q({__name:"basic-time-spinner",props:uH,emits:[It,"select-range","set-option"],setup(e,{emit:t}){const n=e,o=je(_s),{isRange:r,format:i}=o.props,s=Pe("time"),{getHoursList:a,getMinutesList:l,getSecondsList:u}=ET(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let d=!1;const f=F(),p=F(),h=F(),m=F(),v={hours:p,minutes:h,seconds:m},b=A(()=>n.showSeconds?jx:jx.slice(0,2)),g=A(()=>{const{spinnerDate:oe}=n,X=oe.hour(),Y=oe.minute(),ie=oe.second();return{hours:X,minutes:Y,seconds:ie}}),x=A(()=>{const{hours:oe,minutes:X}=c(g),{role:Y,spinnerDate:ie}=n,ae=r?void 0:ie;return{hours:a(Y,ae),minutes:l(oe,Y,ae),seconds:u(oe,X,Y,ae)}}),y=A(()=>{const{hours:oe,minutes:X,seconds:Y}=c(g);return{hours:sm(oe,23),minutes:sm(X,59),seconds:sm(Y,59)}}),_=tr(oe=>{d=!1,M(oe)},200),w=oe=>{if(!!!n.amPmMode)return"";const Y=n.amPmMode==="A";let ie=oe<12?" am":" pm";return Y&&(ie=ie.toUpperCase()),ie},S=oe=>{let X=[0,0];if(!i||i===cp)switch(oe){case"hours":X=[0,2];break;case"minutes":X=[3,5];break;case"seconds":X=[6,8];break}const[Y,ie]=X;t("select-range",Y,ie),f.value=oe},M=oe=>{C(oe,c(g)[oe])},T=()=>{M("hours"),M("minutes"),M("seconds")},E=oe=>oe.querySelector(`.${s.namespace.value}-scrollbar__wrap`),C=(oe,X)=>{if(n.arrowControl)return;const Y=c(v[oe]);Y&&Y.$el&&(E(Y.$el).scrollTop=Math.max(0,X*k(oe)))},k=oe=>{const X=c(v[oe]),Y=X==null?void 0:X.$el.querySelector("li");return Y&&Number.parseFloat(Xi(Y,"height"))||0},R=()=>{H(1)},B=()=>{H(-1)},H=oe=>{f.value||S("hours");const X=f.value,Y=c(g)[X],ie=f.value==="hours"?24:60,ae=N(X,Y,oe,ie);P(X,ae),C(X,ae),Qe(()=>S(X))},N=(oe,X,Y,ie)=>{let ae=(X+Y+ie)%ie;const re=c(x)[oe];for(;re[ae]&&ae!==X;)ae=(ae+Y+ie)%ie;return ae},P=(oe,X)=>{if(c(x)[oe][X])return;const{hours:ae,minutes:re,seconds:fe}=c(g);let be;switch(oe){case"hours":be=n.spinnerDate.hour(X).minute(re).second(fe);break;case"minutes":be=n.spinnerDate.hour(ae).minute(X).second(fe);break;case"seconds":be=n.spinnerDate.hour(ae).minute(re).second(X);break}t(It,be)},U=(oe,{value:X,disabled:Y})=>{Y||(P(oe,X),S(oe),C(oe,X))},I=oe=>{const X=c(v[oe]);if(!X)return;d=!0,_(oe);const Y=Math.min(Math.round((E(X.$el).scrollTop-(O(oe)*.5-10)/k(oe)+3)/k(oe)),oe==="hours"?23:59);P(oe,Y)},O=oe=>c(v[oe]).$el.offsetHeight,q=()=>{const oe=X=>{const Y=c(v[X]);Y&&Y.$el&&(E(Y.$el).onscroll=()=>{I(X)})};oe("hours"),oe("minutes"),oe("seconds")};xt(()=>{Qe(()=>{!n.arrowControl&&q(),T(),n.role==="start"&&S("hours")})});const K=(oe,X)=>{v[X].value=oe??void 0};return t("set-option",[`${n.role}_scrollDown`,H]),t("set-option",[`${n.role}_emitSelectRange`,S]),Te(()=>n.spinnerDate,()=>{d||T()}),(oe,X)=>(D(),G("div",{class:L([c(s).b("spinner"),{"has-seconds":oe.showSeconds}])},[oe.arrowControl?pe("v-if",!0):(D(!0),G(tt,{key:0},Nt(c(b),Y=>(D(),_e(c(Ii),{key:Y,ref_for:!0,ref:ie=>K(ie,Y),class:L(c(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":c(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ie=>S(Y),onMousemove:ie=>M(Y)},{default:se(()=>[(D(!0),G(tt,null,Nt(c(x)[Y],(ie,ae)=>(D(),G("li",{key:ae,class:L([c(s).be("spinner","item"),c(s).is("active",ae===c(g)[Y]),c(s).is("disabled",ie)]),onClick:re=>U(Y,{value:ae,disabled:ie})},[Y==="hours"?(D(),G(tt,{key:0},[Tt(ze(("0"+(oe.amPmMode?ae%12||12:ae)).slice(-2))+ze(w(ae)),1)],64)):(D(),G(tt,{key:1},[Tt(ze(("0"+ae).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),oe.arrowControl?(D(!0),G(tt,{key:1},Nt(c(b),Y=>(D(),G("div",{key:Y,class:L([c(s).be("spinner","wrapper"),c(s).is("arrow")]),onMouseenter:ie=>S(Y)},[_t((D(),_e(c(Je),{class:L(["arrow-up",c(s).be("spinner","arrow")])},{default:se(()=>[J(c(d0))]),_:1},8,["class"])),[[c(dp),B]]),_t((D(),_e(c(Je),{class:L(["arrow-down",c(s).be("spinner","arrow")])},{default:se(()=>[J(c(Di))]),_:1},8,["class"])),[[c(dp),R]]),j("ul",{class:L(c(s).be("spinner","list"))},[(D(!0),G(tt,null,Nt(c(y)[Y],(ie,ae)=>(D(),G("li",{key:ae,class:L([c(s).be("spinner","item"),c(s).is("active",ie===c(g)[Y]),c(s).is("disabled",c(x)[Y][ie])])},[c(st)(ie)?(D(),G(tt,{key:0},[Y==="hours"?(D(),G(tt,{key:0},[Tt(ze(("0"+(oe.amPmMode?ie%12||12:ie)).slice(-2))+ze(w(ie)),1)],64)):(D(),G(tt,{key:1},[Tt(ze(("0"+ie).slice(-2)),1)],64))],64)):pe("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):pe("v-if",!0)],2))}});var Wv=Ve(fH,[["__file","basic-time-spinner.vue"]]);const hH=Q({__name:"panel-time-pick",props:lH,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=je(_s),{arrowControl:r,disabledHours:i,disabledMinutes:s,disabledSeconds:a,defaultValue:l}=o.props,{getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:f}=MT(i,s,a),p=Pe("time"),{t:h,lang:m}=$t(),v=F([0,2]),b=TT(n),g=A(()=>Bt(n.actualVisible)?`${p.namespace.value}-zoom-in-top`:""),x=A(()=>n.format.includes("ss")),y=A(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),_=I=>{const O=gt(I).locale(m.value),q=H(O);return O.isSame(q)},w=()=>{t("pick",b.value,!1)},S=(I=!1,O=!1)=>{O||t("pick",n.parsedValue,I)},M=I=>{if(!n.visible)return;const O=H(I).millisecond(0);t("pick",O,!0)},T=(I,O)=>{t("select-range",I,O),v.value=[I,O]},E=I=>{const O=[0,3].concat(x.value?[6]:[]),q=["hours","minutes"].concat(x.value?["seconds"]:[]),oe=(O.indexOf(v.value[0])+I+O.length)%O.length;k.start_emitSelectRange(q[oe])},C=I=>{const O=I.code,{left:q,right:K,up:oe,down:X}=Ke;if([q,K].includes(O)){E(O===q?-1:1),I.preventDefault();return}if([oe,X].includes(O)){const Y=O===oe?-1:1;k.start_scrollDown(Y),I.preventDefault();return}},{timePickerOptions:k,onSetOption:R,getAvailableTime:B}=CT({getAvailableHours:u,getAvailableMinutes:d,getAvailableSeconds:f}),H=I=>B(I,n.datetimeRole||"",!0),N=I=>I?gt(I,n.format).locale(m.value):null,P=I=>I?I.format(n.format):null,U=()=>gt(l).locale(m.value);return t("set-picker-option",["isValidValue",_]),t("set-picker-option",["formatToString",P]),t("set-picker-option",["parseUserInput",N]),t("set-picker-option",["handleKeydownInput",C]),t("set-picker-option",["getRangeAvailableTime",H]),t("set-picker-option",["getDefaultValue",U]),(I,O)=>(D(),_e(Hn,{name:c(g)},{default:se(()=>[I.actualVisible||I.visible?(D(),G("div",{key:0,class:L(c(p).b("panel"))},[j("div",{class:L([c(p).be("panel","content"),{"has-seconds":c(x)}])},[J(Wv,{ref:"spinner",role:I.datetimeRole||"start","arrow-control":c(r),"show-seconds":c(x),"am-pm-mode":c(y),"spinner-date":I.parsedValue,"disabled-hours":c(i),"disabled-minutes":c(s),"disabled-seconds":c(a),onChange:M,onSetOption:c(R),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),j("div",{class:L(c(p).be("panel","footer"))},[j("button",{type:"button",class:L([c(p).be("panel","btn"),"cancel"]),onClick:w},ze(c(h)("el.datepicker.cancel")),3),j("button",{type:"button",class:L([c(p).be("panel","btn"),"confirm"]),onClick:q=>S()},ze(c(h)("el.datepicker.confirm")),11,["onClick"])],2)],2)):pe("v-if",!0)]),_:1},8,["name"]))}});var fp=Ve(hH,[["__file","panel-time-pick.vue"]]);const pH=Ue({...ST,parsedValue:{type:le(Array)}}),mH=Q({__name:"panel-time-range",props:pH,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,o=(Re,V)=>{const ee=[];for(let z=Re;z<=V;z++)ee.push(z);return ee},{t:r,lang:i}=$t(),s=Pe("time"),a=Pe("picker"),l=je(_s),{arrowControl:u,disabledHours:d,disabledMinutes:f,disabledSeconds:p,defaultValue:h}=l.props,m=A(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",u),_.value?"has-seconds":""]),v=A(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",u),_.value?"has-seconds":""]),b=A(()=>n.parsedValue[0]),g=A(()=>n.parsedValue[1]),x=TT(n),y=()=>{t("pick",x.value,!1)},_=A(()=>n.format.includes("ss")),w=A(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(Re=!1)=>{t("pick",[b.value,g.value],Re)},M=Re=>{C(Re.millisecond(0),g.value)},T=Re=>{C(b.value,Re.millisecond(0))},E=Re=>{const V=Re.map(z=>gt(z).locale(i.value)),ee=K(V);return V[0].isSame(ee[0])&&V[1].isSame(ee[1])},C=(Re,V)=>{n.visible&&t("pick",[Re,V],!0)},k=A(()=>b.value>g.value),R=F([0,2]),B=(Re,V)=>{t("select-range",Re,V,"min"),R.value=[Re,V]},H=A(()=>_.value?11:8),N=(Re,V)=>{t("select-range",Re,V,"max");const ee=c(H);R.value=[Re+ee,V+ee]},P=Re=>{const V=_.value?[0,3,6,11,14,17]:[0,3,8,11],ee=["hours","minutes"].concat(_.value?["seconds"]:[]),ve=(V.indexOf(R.value[0])+Re+V.length)%V.length,ce=V.length/2;ve{const V=Re.code,{left:ee,right:z,up:ve,down:ce}=Ke;if([ee,z].includes(V)){P(V===ee?-1:1),Re.preventDefault();return}if([ve,ce].includes(V)){const me=V===ve?-1:1,ue=R.value[0]{const ee=d?d(Re):[],z=Re==="start",ce=(V||(z?g.value:b.value)).hour(),me=z?o(ce+1,23):o(0,ce-1);return em(ee,me)},O=(Re,V,ee)=>{const z=f?f(Re,V):[],ve=V==="start",ce=ee||(ve?g.value:b.value),me=ce.hour();if(Re!==me)return z;const ue=ce.minute(),ge=ve?o(ue+1,59):o(0,ue-1);return em(z,ge)},q=(Re,V,ee,z)=>{const ve=p?p(Re,V,ee):[],ce=ee==="start",me=z||(ce?g.value:b.value),ue=me.hour(),ge=me.minute();if(Re!==ue||V!==ge)return ve;const xe=me.second(),Ce=ce?o(xe+1,59):o(0,xe-1);return em(ve,Ce)},K=([Re,V])=>[ae(Re,"start",!0,V),ae(V,"end",!1,Re)],{getAvailableHours:oe,getAvailableMinutes:X,getAvailableSeconds:Y}=MT(I,O,q),{timePickerOptions:ie,getAvailableTime:ae,onSetOption:re}=CT({getAvailableHours:oe,getAvailableMinutes:X,getAvailableSeconds:Y}),fe=Re=>Re?Oe(Re)?Re.map(V=>gt(V,n.format).locale(i.value)):gt(Re,n.format).locale(i.value):null,be=Re=>Re?Oe(Re)?Re.map(V=>V.format(n.format)):Re.format(n.format):null,De=()=>{if(Oe(h))return h.map(V=>gt(V).locale(i.value));const Re=gt(h).locale(i.value);return[Re,Re.add(60,"m")]};return t("set-picker-option",["formatToString",be]),t("set-picker-option",["parseUserInput",fe]),t("set-picker-option",["isValidValue",E]),t("set-picker-option",["handleKeydownInput",U]),t("set-picker-option",["getDefaultValue",De]),t("set-picker-option",["getRangeAvailableTime",K]),(Re,V)=>Re.actualVisible?(D(),G("div",{key:0,class:L([c(s).b("range-picker"),c(a).b("panel")])},[j("div",{class:L(c(s).be("range-picker","content"))},[j("div",{class:L(c(s).be("range-picker","cell"))},[j("div",{class:L(c(s).be("range-picker","header"))},ze(c(r)("el.datepicker.startTime")),3),j("div",{class:L(c(m))},[J(Wv,{ref:"minSpinner",role:"start","show-seconds":c(_),"am-pm-mode":c(w),"arrow-control":c(u),"spinner-date":c(b),"disabled-hours":I,"disabled-minutes":O,"disabled-seconds":q,onChange:M,onSetOption:c(re),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),j("div",{class:L(c(s).be("range-picker","cell"))},[j("div",{class:L(c(s).be("range-picker","header"))},ze(c(r)("el.datepicker.endTime")),3),j("div",{class:L(c(v))},[J(Wv,{ref:"maxSpinner",role:"end","show-seconds":c(_),"am-pm-mode":c(w),"arrow-control":c(u),"spinner-date":c(g),"disabled-hours":I,"disabled-minutes":O,"disabled-seconds":q,onChange:T,onSetOption:c(re),onSelectRange:N},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),j("div",{class:L(c(s).be("panel","footer"))},[j("button",{type:"button",class:L([c(s).be("panel","btn"),"cancel"]),onClick:ee=>y()},ze(c(r)("el.datepicker.cancel")),11,["onClick"]),j("button",{type:"button",class:L([c(s).be("panel","btn"),"confirm"]),disabled:c(k),onClick:ee=>S()},ze(c(r)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):pe("v-if",!0)}});var vH=Ve(mH,[["__file","panel-time-range.vue"]]);gt.extend(Uy);var gH=Q({name:"ElTimePicker",install:null,props:{...Vy,isRange:{type:Boolean,default:!1}},emits:[vt],setup(e,t){const n=F(),[o,r]=e.isRange?["timerange",vH]:["time",fp],i=s=>t.emit(vt,s);return Lt(zy,e.popperOptions),t.expose({focus:()=>{var s;(s=n.value)==null||s.focus()},blur:()=>{var s;(s=n.value)==null||s.blur()},handleOpen:()=>{var s;(s=n.value)==null||s.handleOpen()},handleClose:()=>{var s;(s=n.value)==null||s.handleClose()}}),()=>{var s;const a=(s=e.format)!=null?s:cp;return J(wT,Dt(e,{ref:n,type:o,format:a,"onUpdate:modelValue":i}),{default:l=>J(r,l,null)})}}});const bH=yt(gH),_0=Symbol(),jd="ElIsDefaultFormat",yH=Ue({...Vy,type:{type:le(String),default:"date"}}),_H=["date","dates","year","years","month","months","week","range"],Hy=Ue({disabledDate:{type:le(Function)},date:{type:le(Object),required:!0},minDate:{type:le(Object)},maxDate:{type:le(Object)},parsedValue:{type:le([Object,Array])},rangeState:{type:le(Object),default:()=>({endDate:null,selecting:!1})}}),AT=Ue({type:{type:le(String),required:!0,values:Mz},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0}}),Wy=Ue({unlinkPanels:Boolean,parsedValue:{type:le(Array)}}),Gy=e=>({type:String,values:_H,default:e}),xH=Ue({...AT,parsedValue:{type:le([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Cu=e=>{if(!Oe(e))return!1;const[t,n]=e;return gt.isDayjs(t)&>.isDayjs(n)&>(t).isValid()&>(n).isValid()&&t.isSameOrBefore(n)},Ky=(e,{lang:t,unit:n,unlinkPanels:o})=>{let r;if(Oe(e)){let[i,s]=e.map(a=>gt(a).locale(t));return o||(s=i.add(1,n)),[i,s]}else e?r=gt(e):r=gt();return r=r.locale(t),[r,r.add(1,n)]},SH=(e,t,{columnIndexOffset:n,startDate:o,nextEndDate:r,now:i,unit:s,relativeDateGetter:a,setCellMetadata:l,setRowMetadata:u})=>{for(let d=0;d{const r=gt(e).locale(o).month(n).year(t),i=r.daysInMonth();return Xs(i).map(s=>r.add(s,"day").toDate())},Eu=(e,t,n,o,r)=>{const i=gt(e).year(t).month(n),s=hp(e,t,n,o).find(a=>!(r!=null&&r(a)));return s?gt(s).locale(o):i.locale(o)},pp=(e,t,n)=>{const o=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const r=e.month();if(!hp(e,o,r,t).every(n))return Eu(e,o,r,t,n);for(let i=0;i<12;i++)if(!hp(e,o,i,t).every(n))return Eu(e,o,i,t,n);return e},Mu=(e,t,n,o)=>{if(Oe(e))return e.map(r=>Mu(r,t,n,o));if(et(e)){const r=o.value?gt(e):gt(e,t);if(!r.isValid())return r}return gt(e,t).locale(n)},wH=Ue({...Hy,cellClassName:{type:le(Function)},showWeekNumber:Boolean,selectionMode:Gy("date")}),CH=["changerange","pick","select"],Gv=(e="")=>["normal","today"].includes(e),EH=(e,t)=>{const{lang:n}=$t(),o=F(),r=F(),i=F(),s=F(),a=F([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(O=>O.toLowerCase()),f=A(()=>u>3?7-u:-u),p=A(()=>{const O=e.date.startOf("month");return O.subtract(O.day()||7,"day")}),h=A(()=>d.concat(d).slice(u,u+7)),m=A(()=>dM(c(_)).some(O=>O.isCurrent)),v=A(()=>{const O=e.date.startOf("month"),q=O.day()||7,K=O.daysInMonth(),oe=O.subtract(1,"month").daysInMonth();return{startOfMonthDay:q,dateCountOfMonth:K,dateCountOfLastMonth:oe}}),b=A(()=>e.selectionMode==="dates"?Oo(e.parsedValue):[]),g=(O,{count:q,rowIndex:K,columnIndex:oe})=>{const{startOfMonthDay:X,dateCountOfMonth:Y,dateCountOfLastMonth:ie}=c(v),ae=c(f);if(K>=0&&K<=1){const re=X+ae<0?7+X+ae:X+ae;if(oe+K*7>=re)return O.text=q,!0;O.text=ie-(re-oe%7)+1+K*7,O.type="prev-month"}else return q<=Y?O.text=q:(O.text=q-Y,O.type="next-month"),!0;return!1},x=(O,{columnIndex:q,rowIndex:K},oe)=>{const{disabledDate:X,cellClassName:Y}=e,ie=c(b),ae=g(O,{count:oe,rowIndex:K,columnIndex:q}),re=O.dayjs.toDate();return O.selected=ie.find(fe=>fe.isSame(O.dayjs,"day")),O.isSelected=!!O.selected,O.isCurrent=S(O),O.disabled=X==null?void 0:X(re),O.customClass=Y==null?void 0:Y(re),ae},y=O=>{if(e.selectionMode==="week"){const[q,K]=e.showWeekNumber?[1,7]:[0,6],oe=I(O[q+1]);O[q].inRange=oe,O[q].start=oe,O[K].inRange=oe,O[K].end=oe}},_=A(()=>{const{minDate:O,maxDate:q,rangeState:K,showWeekNumber:oe}=e,X=c(f),Y=c(a),ie="day";let ae=1;if(oe)for(let re=0;re<6;re++)Y[re][0]||(Y[re][0]={type:"week",text:c(p).add(re*7+1,ie).week()});return SH({row:6,column:7},Y,{startDate:O,columnIndexOffset:oe?1:0,nextEndDate:K.endDate||q||K.selecting&&O||null,now:gt().locale(c(n)).startOf(ie),unit:ie,relativeDateGetter:re=>c(p).add(re-X,ie),setCellMetadata:(...re)=>{x(...re,ae)&&(ae+=1)},setRowMetadata:y}),Y});Te(()=>e.date,async()=>{var O;(O=c(o))!=null&&O.contains(document.activeElement)&&(await Qe(),await w())});const w=async()=>{var O;return(O=c(r))==null?void 0:O.focus()},S=O=>e.selectionMode==="date"&&Gv(O.type)&&M(O,e.parsedValue),M=(O,q)=>q?gt(q).locale(c(n)).isSame(e.date.date(Number(O.text)),"day"):!1,T=(O,q)=>{const K=O*7+(q-(e.showWeekNumber?1:0))-c(f);return c(p).add(K,"day")},E=O=>{var q;if(!e.rangeState.selecting)return;let K=O.target;if(K.tagName==="SPAN"&&(K=(q=K.parentNode)==null?void 0:q.parentNode),K.tagName==="DIV"&&(K=K.parentNode),K.tagName!=="TD")return;const oe=K.parentNode.rowIndex-1,X=K.cellIndex;c(_)[oe][X].disabled||(oe!==c(i)||X!==c(s))&&(i.value=oe,s.value=X,t("changerange",{selecting:!0,endDate:T(oe,X)}))},C=O=>!c(m)&&(O==null?void 0:O.text)===1&&O.type==="normal"||O.isCurrent,k=O=>{l||c(m)||e.selectionMode!=="date"||U(O,!0)},R=O=>{O.target.closest("td")&&(l=!0)},B=O=>{O.target.closest("td")&&(l=!1)},H=O=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:O,maxDate:null}),t("select",!0)):(O>=e.minDate?t("pick",{minDate:e.minDate,maxDate:O}):t("pick",{minDate:O,maxDate:e.minDate}),t("select",!1))},N=O=>{const q=O.week(),K=`${O.year()}w${q}`;t("pick",{year:O.year(),week:q,value:K,date:O.startOf("week")})},P=(O,q)=>{const K=q?Oo(e.parsedValue).filter(oe=>(oe==null?void 0:oe.valueOf())!==O.valueOf()):Oo(e.parsedValue).concat([O]);t("pick",K)},U=(O,q=!1)=>{const K=O.target.closest("td");if(!K)return;const oe=K.parentNode.rowIndex-1,X=K.cellIndex,Y=c(_)[oe][X];if(Y.disabled||Y.type==="week")return;const ie=T(oe,X);switch(e.selectionMode){case"range":{H(ie);break}case"date":{t("pick",ie,q);break}case"week":{N(ie);break}case"dates":{P(ie,!!Y.selected);break}}},I=O=>{if(e.selectionMode!=="week")return!1;let q=e.date.startOf("day");if(O.type==="prev-month"&&(q=q.subtract(1,"month")),O.type==="next-month"&&(q=q.add(1,"month")),q=q.date(Number.parseInt(O.text,10)),e.parsedValue&&!Oe(e.parsedValue)){const K=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(K,"day").isSame(q,"day")}return!1};return{WEEKS:h,rows:_,tbodyRef:o,currentCellRef:r,focus:w,isCurrent:S,isWeekActive:I,isSelectedCell:C,handlePickDate:U,handleMouseUp:B,handleMouseDown:R,handleMouseMove:E,handleFocus:k}},MH=(e,{isCurrent:t,isWeekActive:n})=>{const o=Pe("date-table"),{t:r}=$t(),i=A(()=>[o.b(),{"is-week-mode":e.selectionMode==="week"}]),s=A(()=>r("el.datepicker.dateTablePrompt")),a=A(()=>r("el.datepicker.week"));return{tableKls:i,tableLabel:s,weekLabel:a,getCellClasses:d=>{const f=[];return Gv(d.type)&&!d.disabled?(f.push("available"),d.type==="today"&&f.push("today")):f.push(d.type),t(d)&&f.push("current"),d.inRange&&(Gv(d.type)||e.selectionMode==="week")&&(f.push("in-range"),d.start&&f.push("start-date"),d.end&&f.push("end-date")),d.disabled&&f.push("disabled"),d.selected&&f.push("selected"),d.customClass&&f.push(d.customClass),f.join(" ")},getRowKls:d=>[o.e("row"),{current:n(d)}],t:r}},TH=Ue({cell:{type:le(Object)}});var qy=Q({name:"ElDatePickerCell",props:TH,setup(e){const t=Pe("date-table-cell"),{slots:n}=je(_0);return()=>{const{cell:o}=e;return de(n,"default",{...o},()=>{var r;return[J("div",{class:t.b()},[J("span",{class:t.e("text")},[(r=o==null?void 0:o.renderText)!=null?r:o==null?void 0:o.text])])]})}}});const AH=Q({__name:"basic-date-table",props:wH,emits:CH,setup(e,{expose:t,emit:n}){const o=e,{WEEKS:r,rows:i,tbodyRef:s,currentCellRef:a,focus:l,isCurrent:u,isWeekActive:d,isSelectedCell:f,handlePickDate:p,handleMouseUp:h,handleMouseDown:m,handleMouseMove:v,handleFocus:b}=EH(o,n),{tableLabel:g,tableKls:x,weekLabel:y,getCellClasses:_,getRowKls:w,t:S}=MH(o,{isCurrent:u,isWeekActive:d});let M=!1;return Qt(()=>{M=!0}),t({focus:l}),(T,E)=>(D(),G("table",{"aria-label":c(g),class:L(c(x)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:c(p),onMousemove:c(v),onMousedown:dt(c(m),["prevent"]),onMouseup:c(h)},[j("tbody",{ref_key:"tbodyRef",ref:s},[j("tr",null,[T.showWeekNumber?(D(),G("th",{key:0,scope:"col"},ze(c(y)),1)):pe("v-if",!0),(D(!0),G(tt,null,Nt(c(r),(C,k)=>(D(),G("th",{key:k,"aria-label":c(S)("el.datepicker.weeksFull."+C),scope:"col"},ze(c(S)("el.datepicker.weeks."+C)),9,["aria-label"]))),128))]),(D(!0),G(tt,null,Nt(c(i),(C,k)=>(D(),G("tr",{key:k,class:L(c(w)(C[1]))},[(D(!0),G(tt,null,Nt(C,(R,B)=>(D(),G("td",{key:`${k}.${B}`,ref_for:!0,ref:H=>!c(M)&&c(f)(R)&&(a.value=H),class:L(c(_)(R)),"aria-current":R.isCurrent?"date":void 0,"aria-selected":R.isCurrent,tabindex:c(f)(R)?0:-1,onFocus:c(b)},[J(c(qy),{cell:R},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var Kv=Ve(AH,[["__file","basic-date-table.vue"]]);const kH=Ue({...Hy,selectionMode:Gy("month")}),RH=Q({__name:"basic-month-table",props:kH,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,r=Pe("month-table"),{t:i,lang:s}=$t(),a=F(),l=F(),u=F(o.date.locale("en").localeData().monthsShort().map(y=>y.toLowerCase())),d=F([[],[],[]]),f=F(),p=F(),h=A(()=>{var y,_;const w=d.value,S=gt().locale(s.value).startOf("month");for(let M=0;M<3;M++){const T=w[M];for(let E=0;E<4;E++){const C=T[E]||(T[E]={row:M,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});C.type="normal";const k=M*4+E,R=o.date.startOf("year").month(k),B=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;C.inRange=!!(o.minDate&&R.isSameOrAfter(o.minDate,"month")&&B&&R.isSameOrBefore(B,"month"))||!!(o.minDate&&R.isSameOrBefore(o.minDate,"month")&&B&&R.isSameOrAfter(B,"month")),(y=o.minDate)!=null&&y.isSameOrAfter(B)?(C.start=!!(B&&R.isSame(B,"month")),C.end=o.minDate&&R.isSame(o.minDate,"month")):(C.start=!!(o.minDate&&R.isSame(o.minDate,"month")),C.end=!!(B&&R.isSame(B,"month"))),S.isSame(R)&&(C.type="today"),C.text=k,C.disabled=((_=o.disabledDate)==null?void 0:_.call(o,R.toDate()))||!1}}return w}),m=()=>{var y;(y=l.value)==null||y.focus()},v=y=>{const _={},w=o.date.year(),S=new Date,M=y.text;return _.disabled=o.disabledDate?hp(o.date,w,M,s.value).every(o.disabledDate):!1,_.current=Oo(o.parsedValue).findIndex(T=>gt.isDayjs(T)&&T.year()===w&&T.month()===M)>=0,_.today=S.getFullYear()===w&&S.getMonth()===M,y.inRange&&(_["in-range"]=!0,y.start&&(_["start-date"]=!0),y.end&&(_["end-date"]=!0)),_},b=y=>{const _=o.date.year(),w=y.text;return Oo(o.date).findIndex(S=>S.year()===_&&S.month()===w)>=0},g=y=>{var _;if(!o.rangeState.selecting)return;let w=y.target;if(w.tagName==="SPAN"&&(w=(_=w.parentNode)==null?void 0:_.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD")return;const S=w.parentNode.rowIndex,M=w.cellIndex;h.value[S][M].disabled||(S!==f.value||M!==p.value)&&(f.value=S,p.value=M,n("changerange",{selecting:!0,endDate:o.date.startOf("year").month(S*4+M)}))},x=y=>{var _;const w=(_=y.target)==null?void 0:_.closest("td");if((w==null?void 0:w.tagName)!=="TD"||qo(w,"disabled"))return;const S=w.cellIndex,T=w.parentNode.rowIndex*4+S,E=o.date.startOf("year").month(T);if(o.selectionMode==="months"){if(y.type==="keydown"){n("pick",Oo(o.parsedValue),!1);return}const C=Eu(o.date,o.date.year(),T,s.value,o.disabledDate),k=qo(w,"current")?Oo(o.parsedValue).filter(R=>(R==null?void 0:R.year())!==C.year()||(R==null?void 0:R.month())!==C.month()):Oo(o.parsedValue).concat([gt(C)]);n("pick",k)}else o.selectionMode==="range"?o.rangeState.selecting?(o.minDate&&E>=o.minDate?n("pick",{minDate:o.minDate,maxDate:E}):n("pick",{minDate:E,maxDate:o.minDate}),n("select",!1)):(n("pick",{minDate:E,maxDate:null}),n("select",!0)):n("pick",T)};return Te(()=>o.date,async()=>{var y,_;(y=a.value)!=null&&y.contains(document.activeElement)&&(await Qe(),(_=l.value)==null||_.focus())}),t({focus:m}),(y,_)=>(D(),G("table",{role:"grid","aria-label":c(i)("el.datepicker.monthTablePrompt"),class:L(c(r).b()),onClick:x,onMousemove:g},[j("tbody",{ref_key:"tbodyRef",ref:a},[(D(!0),G(tt,null,Nt(c(h),(w,S)=>(D(),G("tr",{key:S},[(D(!0),G(tt,null,Nt(w,(M,T)=>(D(),G("td",{key:T,ref_for:!0,ref:E=>b(M)&&(l.value=E),class:L(v(M)),"aria-selected":`${b(M)}`,"aria-label":c(i)(`el.datepicker.month${+M.text+1}`),tabindex:b(M)?0:-1,onKeydown:[Zt(dt(x,["prevent","stop"]),["space"]),Zt(dt(x,["prevent","stop"]),["enter"])]},[J(c(qy),{cell:{...M,renderText:c(i)("el.datepicker.months."+u.value[M.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var ud=Ve(RH,[["__file","basic-month-table.vue"]]);const PH=Ue({...Hy,selectionMode:Gy("year")}),DH=Q({__name:"basic-year-table",props:PH,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const o=e,r=(_,w)=>{const S=gt(String(_)).locale(w).startOf("year"),T=S.endOf("year").dayOfYear();return Xs(T).map(E=>S.add(E,"day").toDate())},i=Pe("year-table"),{t:s,lang:a}=$t(),l=F(),u=F(),d=A(()=>Math.floor(o.date.year()/10)*10),f=F([[],[],[]]),p=F(),h=F(),m=A(()=>{var _;const w=f.value,S=gt().locale(a.value).startOf("year");for(let M=0;M<3;M++){const T=w[M];for(let E=0;E<4&&!(M*4+E>=10);E++){let C=T[E];C||(C={row:M,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),C.type="normal";const k=M*4+E+d.value,R=gt().year(k),B=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;C.inRange=!!(o.minDate&&R.isSameOrAfter(o.minDate,"year")&&B&&R.isSameOrBefore(B,"year"))||!!(o.minDate&&R.isSameOrBefore(o.minDate,"year")&&B&&R.isSameOrAfter(B,"year")),(_=o.minDate)!=null&&_.isSameOrAfter(B)?(C.start=!!(B&&R.isSame(B,"year")),C.end=!!(o.minDate&&R.isSame(o.minDate,"year"))):(C.start=!!(o.minDate&&R.isSame(o.minDate,"year")),C.end=!!(B&&R.isSame(B,"year"))),S.isSame(R)&&(C.type="today"),C.text=k;const N=R.toDate();C.disabled=o.disabledDate&&o.disabledDate(N)||!1,T[E]=C}}return w}),v=()=>{var _;(_=u.value)==null||_.focus()},b=_=>{const w={},S=gt().locale(a.value),M=_.text;return w.disabled=o.disabledDate?r(M,a.value).every(o.disabledDate):!1,w.today=S.year()===M,w.current=Oo(o.parsedValue).findIndex(T=>T.year()===M)>=0,_.inRange&&(w["in-range"]=!0,_.start&&(w["start-date"]=!0),_.end&&(w["end-date"]=!0)),w},g=_=>{const w=_.text;return Oo(o.date).findIndex(S=>S.year()===w)>=0},x=_=>{var w;const S=(w=_.target)==null?void 0:w.closest("td");if(!S||!S.textContent||qo(S,"disabled"))return;const M=S.cellIndex,E=S.parentNode.rowIndex*4+M+d.value,C=gt().year(E);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&C>=o.minDate?n("pick",{minDate:o.minDate,maxDate:C}):n("pick",{minDate:C,maxDate:o.minDate}),n("select",!1)):(n("pick",{minDate:C,maxDate:null}),n("select",!0));else if(o.selectionMode==="years"){if(_.type==="keydown"){n("pick",Oo(o.parsedValue),!1);return}const k=pp(C.startOf("year"),a.value,o.disabledDate),R=qo(S,"current")?Oo(o.parsedValue).filter(B=>(B==null?void 0:B.year())!==E):Oo(o.parsedValue).concat([k]);n("pick",R)}else n("pick",E)},y=_=>{var w;if(!o.rangeState.selecting)return;const S=(w=_.target)==null?void 0:w.closest("td");if(!S)return;const M=S.parentNode.rowIndex,T=S.cellIndex;m.value[M][T].disabled||(M!==p.value||T!==h.value)&&(p.value=M,h.value=T,n("changerange",{selecting:!0,endDate:gt().year(d.value).add(M*4+T,"year")}))};return Te(()=>o.date,async()=>{var _,w;(_=l.value)!=null&&_.contains(document.activeElement)&&(await Qe(),(w=u.value)==null||w.focus())}),t({focus:v}),(_,w)=>(D(),G("table",{role:"grid","aria-label":c(s)("el.datepicker.yearTablePrompt"),class:L(c(i).b()),onClick:x,onMousemove:y},[j("tbody",{ref_key:"tbodyRef",ref:l},[(D(!0),G(tt,null,Nt(c(m),(S,M)=>(D(),G("tr",{key:M},[(D(!0),G(tt,null,Nt(S,(T,E)=>(D(),G("td",{key:`${M}_${E}`,ref_for:!0,ref:C=>g(T)&&(u.value=C),class:L(["available",b(T)]),"aria-selected":g(T),"aria-label":String(T.text),tabindex:g(T)?0:-1,onKeydown:[Zt(dt(x,["prevent","stop"]),["space"]),Zt(dt(x,["prevent","stop"]),["enter"])]},[J(c(qy),{cell:T},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var cd=Ve(DH,[["__file","basic-year-table.vue"]]);const IH=Q({__name:"panel-date-pick",props:xH,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,o=(ne,we,te)=>!0,r=Pe("picker-panel"),i=Pe("date-picker"),s=hs(),a=Wn(),{t:l,lang:u}=$t(),d=je(_s),f=je(jd),p=je(v0),{shortcuts:h,disabledDate:m,cellClassName:v,defaultTime:b}=d.props,g=Kt(d.props,"defaultValue"),x=F(),y=F(gt().locale(u.value)),_=F(!1);let w=!1;const S=A(()=>gt(b).locale(u.value)),M=A(()=>y.value.month()),T=A(()=>y.value.year()),E=F([]),C=F(null),k=F(null),R=ne=>E.value.length>0?o(ne,E.value,n.format||"HH:mm:ss"):!0,B=ne=>b&&!ce.value&&!_.value&&!w?S.value.year(ne.year()).month(ne.month()).date(ne.date()):fe.value?ne.millisecond(0):ne.startOf("day"),H=(ne,...we)=>{if(!ne)t("pick",ne,...we);else if(Oe(ne)){const te=ne.map(B);t("pick",te,...we)}else t("pick",B(ne),...we);C.value=null,k.value=null,_.value=!1,w=!1},N=async(ne,we)=>{if(K.value==="date"){ne=ne;let te=n.parsedValue?n.parsedValue.year(ne.year()).month(ne.month()).date(ne.date()):ne;R(te)||(te=E.value[0][0].year(ne.year()).month(ne.month()).date(ne.date())),y.value=te,H(te,fe.value||we),n.type==="datetime"&&(await Qe(),nt())}else K.value==="week"?H(ne.date):K.value==="dates"&&H(ne,!0)},P=ne=>{const we=ne?"add":"subtract";y.value=y.value[we](1,"month"),$e("month")},U=ne=>{const we=y.value,te=ne?"add":"subtract";y.value=I.value==="year"?we[te](10,"year"):we[te](1,"year"),$e("year")},I=F("date"),O=A(()=>{const ne=l("el.datepicker.year");if(I.value==="year"){const we=Math.floor(T.value/10)*10;return ne?`${we} ${ne} - ${we+9} ${ne}`:`${we} - ${we+9}`}return`${T.value} ${ne}`}),q=ne=>{const we=it(ne.value)?ne.value():ne.value;if(we){w=!0,H(gt(we).locale(u.value));return}ne.onClick&&ne.onClick({attrs:s,slots:a,emit:t})},K=A(()=>{const{type:ne}=n;return["week","month","months","year","years","dates"].includes(ne)?ne:"date"}),oe=A(()=>K.value==="dates"||K.value==="months"||K.value==="years"),X=A(()=>K.value==="date"?I.value:K.value),Y=A(()=>!!h.length),ie=async(ne,we)=>{K.value==="month"?(y.value=Eu(y.value,y.value.year(),ne,u.value,m),H(y.value,!1)):K.value==="months"?H(ne,we??!0):(y.value=Eu(y.value,y.value.year(),ne,u.value,m),I.value="date",["month","year","date","week"].includes(K.value)&&(H(y.value,!0),await Qe(),nt())),$e("month")},ae=async(ne,we)=>{if(K.value==="year"){const te=y.value.startOf("year").year(ne);y.value=pp(te,u.value,m),H(y.value,!1)}else if(K.value==="years")H(ne,we??!0);else{const te=y.value.year(ne);y.value=pp(te,u.value,m),I.value="month",["month","year","date","week"].includes(K.value)&&(H(y.value,!0),await Qe(),nt())}$e("year")},re=async ne=>{I.value=ne,await Qe(),nt()},fe=A(()=>n.type==="datetime"||n.type==="datetimerange"),be=A(()=>{const ne=fe.value||K.value==="dates",we=K.value==="years",te=K.value==="months",Ee=I.value==="date",Ye=I.value==="year",Se=I.value==="month";return ne&&Ee||we&&Ye||te&&Se}),De=A(()=>m?n.parsedValue?Oe(n.parsedValue)?m(n.parsedValue[0].toDate()):m(n.parsedValue.toDate()):!0:!1),Re=()=>{if(oe.value)H(n.parsedValue);else{let ne=n.parsedValue;if(!ne){const we=gt(b).locale(u.value),te=Ne();ne=we.year(te.year()).month(te.month()).date(te.date())}y.value=ne,H(ne)}},V=A(()=>m?m(gt().locale(u.value).toDate()):!1),ee=()=>{const we=gt().locale(u.value).toDate();_.value=!0,(!m||!m(we))&&R(we)&&(y.value=gt().locale(u.value),H(y.value))},z=A(()=>n.timeFormat||j3(n.format)),ve=A(()=>n.dateFormat||q3(n.format)),ce=A(()=>{if(k.value)return k.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||y.value).format(z.value)}),me=A(()=>{if(C.value)return C.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||y.value).format(ve.value)}),ue=F(!1),ge=()=>{ue.value=!0},xe=()=>{ue.value=!1},Ce=ne=>({hour:ne.hour(),minute:ne.minute(),second:ne.second(),year:ne.year(),month:ne.month(),date:ne.date()}),Fe=(ne,we,te)=>{const{hour:Ee,minute:Ye,second:Se}=Ce(ne),ot=n.parsedValue?n.parsedValue.hour(Ee).minute(Ye).second(Se):ne;y.value=ot,H(y.value,!0),te||(ue.value=we)},Z=ne=>{const we=gt(ne,z.value).locale(u.value);if(we.isValid()&&R(we)){const{year:te,month:Ee,date:Ye}=Ce(y.value);y.value=we.year(te).month(Ee).date(Ye),k.value=null,ue.value=!1,H(y.value,!0)}},$=ne=>{const we=Mu(ne,ve.value,u.value,f);if(we.isValid()){if(m&&m(we.toDate()))return;const{hour:te,minute:Ee,second:Ye}=Ce(y.value);y.value=we.hour(te).minute(Ee).second(Ye),C.value=null,H(y.value,!0)}},he=ne=>gt.isDayjs(ne)&&ne.isValid()&&(m?!m(ne.toDate()):!0),Me=ne=>Oe(ne)?ne.map(we=>we.format(n.format)):ne.format(n.format),Be=ne=>Mu(ne,n.format,u.value,f),Ne=()=>{const ne=gt(g.value).locale(u.value);if(!g.value){const we=S.value;return gt().hour(we.hour()).minute(we.minute()).second(we.second()).locale(u.value)}return ne},nt=()=>{var ne;["week","month","year","date"].includes(K.value)&&((ne=x.value)==null||ne.focus())},qe=()=>{nt(),K.value==="week"&&He(Ke.down)},ht=ne=>{const{code:we}=ne;[Ke.up,Ke.down,Ke.left,Ke.right,Ke.home,Ke.end,Ke.pageUp,Ke.pageDown].includes(we)&&(He(we),ne.stopPropagation(),ne.preventDefault()),[Ke.enter,Ke.space,Ke.numpadEnter].includes(we)&&C.value===null&&k.value===null&&(ne.preventDefault(),H(y.value,!1))},He=ne=>{var we;const{up:te,down:Ee,left:Ye,right:Se,home:ot,end:Ze,pageUp:ft,pageDown:lt}=Ke,Xe={year:{[te]:-4,[Ee]:4,[Ye]:-1,[Se]:1,offset:(Ge,St)=>Ge.setFullYear(Ge.getFullYear()+St)},month:{[te]:-4,[Ee]:4,[Ye]:-1,[Se]:1,offset:(Ge,St)=>Ge.setMonth(Ge.getMonth()+St)},week:{[te]:-1,[Ee]:1,[Ye]:-1,[Se]:1,offset:(Ge,St)=>Ge.setDate(Ge.getDate()+St*7)},date:{[te]:-7,[Ee]:7,[Ye]:-1,[Se]:1,[ot]:Ge=>-Ge.getDay(),[Ze]:Ge=>-Ge.getDay()+6,[ft]:Ge=>-new Date(Ge.getFullYear(),Ge.getMonth(),0).getDate(),[lt]:Ge=>new Date(Ge.getFullYear(),Ge.getMonth()+1,0).getDate(),offset:(Ge,St)=>Ge.setDate(Ge.getDate()+St)}},Et=y.value.toDate();for(;Math.abs(y.value.diff(Et,"year",!0))<1;){const Ge=Xe[X.value];if(!Ge)return;if(Ge.offset(Et,it(Ge[ne])?Ge[ne](Et):(we=Ge[ne])!=null?we:0),m&&m(Et))break;const St=gt(Et).locale(u.value);y.value=St,t("pick",St,!0);break}},$e=ne=>{t("panel-change",y.value.toDate(),ne,I.value)};return Te(()=>K.value,ne=>{if(["month","year"].includes(ne)){I.value=ne;return}else if(ne==="years"){I.value="year";return}else if(ne==="months"){I.value="month";return}I.value="date"},{immediate:!0}),Te(()=>I.value,()=>{p==null||p.updatePopper()}),Te(()=>g.value,ne=>{ne&&(y.value=Ne())},{immediate:!0}),Te(()=>n.parsedValue,ne=>{if(ne){if(oe.value||Oe(ne))return;y.value=ne}else y.value=Ne()},{immediate:!0}),t("set-picker-option",["isValidValue",he]),t("set-picker-option",["formatToString",Me]),t("set-picker-option",["parseUserInput",Be]),t("set-picker-option",["handleFocusPicker",qe]),(ne,we)=>(D(),G("div",{class:L([c(r).b(),c(i).b(),{"has-sidebar":ne.$slots.sidebar||c(Y),"has-time":c(fe)}])},[j("div",{class:L(c(r).e("body-wrapper"))},[de(ne.$slots,"sidebar",{class:L(c(r).e("sidebar"))}),c(Y)?(D(),G("div",{key:0,class:L(c(r).e("sidebar"))},[(D(!0),G(tt,null,Nt(c(h),(te,Ee)=>(D(),G("button",{key:Ee,type:"button",class:L(c(r).e("shortcut")),onClick:Ye=>q(te)},ze(te.text),11,["onClick"]))),128))],2)):pe("v-if",!0),j("div",{class:L(c(r).e("body"))},[c(fe)?(D(),G("div",{key:0,class:L(c(i).e("time-header"))},[j("span",{class:L(c(i).e("editor-wrap"))},[J(c(To),{placeholder:c(l)("el.datepicker.selectDate"),"model-value":c(me),size:"small","validate-event":!1,onInput:te=>C.value=te,onChange:$},null,8,["placeholder","model-value","onInput"])],2),_t((D(),G("span",{class:L(c(i).e("editor-wrap"))},[J(c(To),{placeholder:c(l)("el.datepicker.selectTime"),"model-value":c(ce),size:"small","validate-event":!1,onFocus:ge,onInput:te=>k.value=te,onChange:Z},null,8,["placeholder","model-value","onInput"]),J(c(fp),{visible:ue.value,format:c(z),"parsed-value":y.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[c(cs),xe]])],2)):pe("v-if",!0),_t(j("div",{class:L([c(i).e("header"),(I.value==="year"||I.value==="month")&&c(i).e("header--bordered")])},[j("span",{class:L(c(i).e("prev-btn"))},[j("button",{type:"button","aria-label":c(l)("el.datepicker.prevYear"),class:L(["d-arrow-left",c(r).e("icon-btn")]),onClick:te=>U(!1)},[de(ne.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["aria-label","onClick"]),_t(j("button",{type:"button","aria-label":c(l)("el.datepicker.prevMonth"),class:L([c(r).e("icon-btn"),"arrow-left"]),onClick:te=>P(!1)},[de(ne.$slots,"prev-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1})])],10,["aria-label","onClick"]),[[Vt,I.value==="date"]])],2),j("span",{role:"button",class:L(c(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Zt(te=>re("year"),["enter"]),onClick:te=>re("year")},ze(c(O)),43,["onKeydown","onClick"]),_t(j("span",{role:"button","aria-live":"polite",tabindex:"0",class:L([c(i).e("header-label"),{active:I.value==="month"}]),onKeydown:Zt(te=>re("month"),["enter"]),onClick:te=>re("month")},ze(c(l)(`el.datepicker.month${c(M)+1}`)),43,["onKeydown","onClick"]),[[Vt,I.value==="date"]]),j("span",{class:L(c(i).e("next-btn"))},[_t(j("button",{type:"button","aria-label":c(l)("el.datepicker.nextMonth"),class:L([c(r).e("icon-btn"),"arrow-right"]),onClick:te=>P(!0)},[de(ne.$slots,"next-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})])],10,["aria-label","onClick"]),[[Vt,I.value==="date"]]),j("button",{type:"button","aria-label":c(l)("el.datepicker.nextYear"),class:L([c(r).e("icon-btn"),"d-arrow-right"]),onClick:te=>U(!0)},[de(ne.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[Vt,I.value!=="time"]]),j("div",{class:L(c(r).e("content")),onKeydown:ht},[I.value==="date"?(D(),_e(Kv,{key:0,ref_key:"currentViewRef",ref:x,"selection-mode":c(K),date:y.value,"parsed-value":ne.parsedValue,"disabled-date":c(m),"cell-class-name":c(v),onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):pe("v-if",!0),I.value==="year"?(D(),_e(cd,{key:1,ref_key:"currentViewRef",ref:x,"selection-mode":c(K),date:y.value,"disabled-date":c(m),"parsed-value":ne.parsedValue,onPick:ae},null,8,["selection-mode","date","disabled-date","parsed-value"])):pe("v-if",!0),I.value==="month"?(D(),_e(ud,{key:2,ref_key:"currentViewRef",ref:x,"selection-mode":c(K),date:y.value,"parsed-value":ne.parsedValue,"disabled-date":c(m),onPick:ie},null,8,["selection-mode","date","parsed-value","disabled-date"])):pe("v-if",!0)],34)],2)],2),_t(j("div",{class:L(c(r).e("footer"))},[_t(J(c(Qn),{text:"",size:"small",class:L(c(r).e("link-btn")),disabled:c(V),onClick:ee},{default:se(()=>[Tt(ze(c(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Vt,!c(oe)&&ne.showNow]]),J(c(Qn),{plain:"",size:"small",class:L(c(r).e("link-btn")),disabled:c(De),onClick:Re},{default:se(()=>[Tt(ze(c(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Vt,c(be)]])],2))}});var LH=Ve(IH,[["__file","panel-date-pick.vue"]]);const NH=Ue({...AT,...Wy,visible:Boolean}),kT=e=>{const{emit:t}=Pt(),n=hs(),o=Wn();return i=>{const s=it(i.value)?i.value():i.value;if(s){t("pick",[gt(s[0]).locale(e.value),gt(s[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:o,emit:t})}},RT=(e,{defaultValue:t,defaultTime:n,leftDate:o,rightDate:r,unit:i,onParsedValueChanged:s})=>{const{emit:a}=Pt(),{pickerNs:l}=je(_0),u=Pe("date-range-picker"),{t:d,lang:f}=$t(),p=kT(f),h=F(),m=F(),v=F({endDate:null,selecting:!1}),b=w=>{v.value=w},g=(w=!1)=>{const S=c(h),M=c(m);Cu([S,M])&&a("pick",[S,M],w)},x=w=>{v.value.selecting=w,w||(v.value.endDate=null)},y=w=>{if(Oe(w)&&w.length===2){const[S,M]=w;h.value=S,o.value=S,m.value=M,s(c(h),c(m))}else _()},_=()=>{let[w,S]=Ky(c(t),{lang:c(f),unit:i,unlinkPanels:e.unlinkPanels});const M=E=>E.diff(E.startOf("d"),"ms"),T=c(n);if(T){let E=0,C=0;if(Oe(T)){const[k,R]=T.map(gt);E=M(k),C=M(R)}else{const k=M(gt(T));E=k,C=k}w=w.startOf("d").add(E,"ms"),S=S.startOf("d").add(C,"ms")}h.value=void 0,m.value=void 0,o.value=w,r.value=S};return Te(t,w=>{w&&_()},{immediate:!0}),Te(()=>e.parsedValue,y,{immediate:!0}),{minDate:h,maxDate:m,rangeState:v,lang:f,ppNs:l,drpNs:u,handleChangeRange:b,handleRangeConfirm:g,handleShortcutClick:p,onSelect:x,onReset:y,t:d}},OH=(e,t,n,o)=>{const r=F("date"),i=F(),s=F("date"),a=F(),l=je(_s),{disabledDate:u}=l.props,{t:d,lang:f}=$t(),p=A(()=>n.value.year()),h=A(()=>n.value.month()),m=A(()=>o.value.year()),v=A(()=>o.value.month());function b(S,M){const T=d("el.datepicker.year");if(S.value==="year"){const E=Math.floor(M.value/10)*10;return T?`${E} ${T} - ${E+9} ${T}`:`${E} - ${E+9}`}return`${M.value} ${T}`}function g(S){S==null||S.focus()}async function x(S,M){const T=S==="left"?r:s,E=S==="left"?i:a;T.value=M,await Qe(),g(E.value)}async function y(S,M,T){const E=M==="left",C=E?n:o,k=E?o:n,R=E?r:s,B=E?i:a;if(S==="year"){const H=C.value.year(T);C.value=pp(H,f.value,u)}S==="month"&&(C.value=Eu(C.value,C.value.year(),T,f.value,u)),e.unlinkPanels||(k.value=M==="left"?C.value.add(1,"month"):C.value.subtract(1,"month")),R.value=S==="year"?"month":"date",await Qe(),g(B.value),_(S)}function _(S){t("panel-change",[n.value.toDate(),o.value.toDate()],S)}function w(S,M,T){const E=T?"add":"subtract";return S==="year"?M[E](10,"year"):M[E](1,"year")}return{leftCurrentView:r,rightCurrentView:s,leftCurrentViewRef:i,rightCurrentViewRef:a,leftYear:p,rightYear:m,leftMonth:h,rightMonth:v,leftYearLabel:A(()=>b(r,p)),rightYearLabel:A(()=>b(s,m)),showLeftPicker:S=>x("left",S),showRightPicker:S=>x("right",S),handleLeftYearPick:S=>y("year","left",S),handleRightYearPick:S=>y("year","right",S),handleLeftMonthPick:S=>y("month","left",S),handleRightMonthPick:S=>y("month","right",S),handlePanelChange:_,adjustDateByView:w}},Mf="month",FH=Q({__name:"panel-date-range",props:NH,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,o=je(_s),r=je(jd),{disabledDate:i,cellClassName:s,defaultTime:a,clearable:l}=o.props,u=Kt(o.props,"format"),d=Kt(o.props,"shortcuts"),f=Kt(o.props,"defaultValue"),{lang:p}=$t(),h=F(gt().locale(p.value)),m=F(gt().locale(p.value).add(1,Mf)),{minDate:v,maxDate:b,rangeState:g,ppNs:x,drpNs:y,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:S,onSelect:M,onReset:T,t:E}=RT(n,{defaultValue:f,defaultTime:a,leftDate:h,rightDate:m,unit:Mf,onParsedValueChanged:Et});Te(()=>n.visible,Ge=>{!Ge&&g.value.selecting&&(T(n.parsedValue),M(!1))});const C=F({min:null,max:null}),k=F({min:null,max:null}),{leftCurrentView:R,rightCurrentView:B,leftCurrentViewRef:H,rightCurrentViewRef:N,leftYear:P,rightYear:U,leftMonth:I,rightMonth:O,leftYearLabel:q,rightYearLabel:K,showLeftPicker:oe,showRightPicker:X,handleLeftYearPick:Y,handleRightYearPick:ie,handleLeftMonthPick:ae,handleRightMonthPick:re,handlePanelChange:fe,adjustDateByView:be}=OH(n,t,h,m),De=A(()=>!!d.value.length),Re=A(()=>C.value.min!==null?C.value.min:v.value?v.value.format(ce.value):""),V=A(()=>C.value.max!==null?C.value.max:b.value||v.value?(b.value||v.value).format(ce.value):""),ee=A(()=>k.value.min!==null?k.value.min:v.value?v.value.format(ve.value):""),z=A(()=>k.value.max!==null?k.value.max:b.value||v.value?(b.value||v.value).format(ve.value):""),ve=A(()=>n.timeFormat||j3(u.value)),ce=A(()=>n.dateFormat||q3(u.value)),me=Ge=>Cu(Ge)&&(i?!i(Ge[0].toDate())&&!i(Ge[1].toDate()):!0),ue=()=>{h.value=be(R.value,h.value,!1),n.unlinkPanels||(m.value=h.value.add(1,"month")),fe("year")},ge=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(m.value=h.value.add(1,"month")),fe("month")},xe=()=>{n.unlinkPanels?m.value=be(B.value,m.value,!0):(h.value=be(B.value,h.value,!0),m.value=h.value.add(1,"month")),fe("year")},Ce=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(h.value=h.value.add(1,"month"),m.value=h.value.add(1,"month")),fe("month")},Fe=()=>{h.value=be(R.value,h.value,!0),fe("year")},Z=()=>{h.value=h.value.add(1,"month"),fe("month")},$=()=>{m.value=be(B.value,m.value,!1),fe("year")},he=()=>{m.value=m.value.subtract(1,"month"),fe("month")},Me=A(()=>{const Ge=(I.value+1)%12,St=I.value+1>=12?1:0;return n.unlinkPanels&&new Date(P.value+St,Ge)n.unlinkPanels&&U.value*12+O.value-(P.value*12+I.value+1)>=12),Ne=A(()=>!(v.value&&b.value&&!g.value.selecting&&Cu([v.value,b.value]))),nt=A(()=>n.type==="datetime"||n.type==="datetimerange"),qe=(Ge,St)=>{if(Ge)return a?gt(a[St]||a).locale(p.value).year(Ge.year()).month(Ge.month()).date(Ge.date()):Ge},ht=(Ge,St=!0)=>{const ct=Ge.minDate,xn=Ge.maxDate,Gn=qe(ct,0),$r=qe(xn,1);b.value===$r&&v.value===Gn||(t("calendar-change",[ct.toDate(),xn&&xn.toDate()]),b.value=$r,v.value=Gn,!(!St||nt.value)&&w())},He=F(!1),$e=F(!1),ne=()=>{He.value=!1},we=()=>{$e.value=!1},te=(Ge,St)=>{C.value[St]=Ge;const ct=gt(Ge,ce.value).locale(p.value);if(ct.isValid()){if(i&&i(ct.toDate()))return;St==="min"?(h.value=ct,v.value=(v.value||h.value).year(ct.year()).month(ct.month()).date(ct.date()),!n.unlinkPanels&&(!b.value||b.value.isBefore(v.value))&&(m.value=ct.add(1,"month"),b.value=v.value.add(1,"month"))):(m.value=ct,b.value=(b.value||m.value).year(ct.year()).month(ct.month()).date(ct.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(b.value))&&(h.value=ct.subtract(1,"month"),v.value=b.value.subtract(1,"month")))}},Ee=(Ge,St)=>{C.value[St]=null},Ye=(Ge,St)=>{k.value[St]=Ge;const ct=gt(Ge,ve.value).locale(p.value);ct.isValid()&&(St==="min"?(He.value=!0,v.value=(v.value||h.value).hour(ct.hour()).minute(ct.minute()).second(ct.second())):($e.value=!0,b.value=(b.value||m.value).hour(ct.hour()).minute(ct.minute()).second(ct.second()),m.value=b.value))},Se=(Ge,St)=>{k.value[St]=null,St==="min"?(h.value=v.value,He.value=!1,(!b.value||b.value.isBefore(v.value))&&(b.value=v.value)):(m.value=b.value,$e.value=!1,b.value&&b.value.isBefore(v.value)&&(v.value=b.value))},ot=(Ge,St,ct)=>{k.value.min||(Ge&&(h.value=Ge,v.value=(v.value||h.value).hour(Ge.hour()).minute(Ge.minute()).second(Ge.second())),ct||(He.value=St),(!b.value||b.value.isBefore(v.value))&&(b.value=v.value,m.value=Ge))},Ze=(Ge,St,ct)=>{k.value.max||(Ge&&(m.value=Ge,b.value=(b.value||m.value).hour(Ge.hour()).minute(Ge.minute()).second(Ge.second())),ct||($e.value=St),b.value&&b.value.isBefore(v.value)&&(v.value=b.value))},ft=()=>{h.value=Ky(c(f),{lang:c(p),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=h.value.add(1,"month"),b.value=void 0,v.value=void 0,t("pick",null)},lt=Ge=>Oe(Ge)?Ge.map(St=>St.format(u.value)):Ge.format(u.value),Xe=Ge=>Mu(Ge,u.value,p.value,r);function Et(Ge,St){if(n.unlinkPanels&&St){const ct=(Ge==null?void 0:Ge.year())||0,xn=(Ge==null?void 0:Ge.month())||0,Gn=St.year(),$r=St.month();m.value=ct===Gn&&xn===$r?St.add(1,Mf):St}else m.value=h.value.add(1,Mf),St&&(m.value=m.value.hour(St.hour()).minute(St.minute()).second(St.second()))}return t("set-picker-option",["isValidValue",me]),t("set-picker-option",["parseUserInput",Xe]),t("set-picker-option",["formatToString",lt]),t("set-picker-option",["handleClear",ft]),(Ge,St)=>(D(),G("div",{class:L([c(x).b(),c(y).b(),{"has-sidebar":Ge.$slots.sidebar||c(De),"has-time":c(nt)}])},[j("div",{class:L(c(x).e("body-wrapper"))},[de(Ge.$slots,"sidebar",{class:L(c(x).e("sidebar"))}),c(De)?(D(),G("div",{key:0,class:L(c(x).e("sidebar"))},[(D(!0),G(tt,null,Nt(c(d),(ct,xn)=>(D(),G("button",{key:xn,type:"button",class:L(c(x).e("shortcut")),onClick:Gn=>c(S)(ct)},ze(ct.text),11,["onClick"]))),128))],2)):pe("v-if",!0),j("div",{class:L(c(x).e("body"))},[c(nt)?(D(),G("div",{key:0,class:L(c(y).e("time-header"))},[j("span",{class:L(c(y).e("editors-wrap"))},[j("span",{class:L(c(y).e("time-picker-wrap"))},[J(c(To),{size:"small",disabled:c(g).selecting,placeholder:c(E)("el.datepicker.startDate"),class:L(c(y).e("editor")),"model-value":c(Re),"validate-event":!1,onInput:ct=>te(ct,"min"),onChange:ct=>Ee(ct,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),_t((D(),G("span",{class:L(c(y).e("time-picker-wrap"))},[J(c(To),{size:"small",class:L(c(y).e("editor")),disabled:c(g).selecting,placeholder:c(E)("el.datepicker.startTime"),"model-value":c(ee),"validate-event":!1,onFocus:ct=>He.value=!0,onInput:ct=>Ye(ct,"min"),onChange:ct=>Se(ct,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),J(c(fp),{visible:He.value,format:c(ve),"datetime-role":"start","parsed-value":h.value,onPick:ot},null,8,["visible","format","parsed-value"])],2)),[[c(cs),ne]])],2),j("span",null,[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})]),j("span",{class:L([c(y).e("editors-wrap"),"is-right"])},[j("span",{class:L(c(y).e("time-picker-wrap"))},[J(c(To),{size:"small",class:L(c(y).e("editor")),disabled:c(g).selecting,placeholder:c(E)("el.datepicker.endDate"),"model-value":c(V),readonly:!c(v),"validate-event":!1,onInput:ct=>te(ct,"max"),onChange:ct=>Ee(ct,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),_t((D(),G("span",{class:L(c(y).e("time-picker-wrap"))},[J(c(To),{size:"small",class:L(c(y).e("editor")),disabled:c(g).selecting,placeholder:c(E)("el.datepicker.endTime"),"model-value":c(z),readonly:!c(v),"validate-event":!1,onFocus:ct=>c(v)&&($e.value=!0),onInput:ct=>Ye(ct,"max"),onChange:ct=>Se(ct,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),J(c(fp),{"datetime-role":"end",visible:$e.value,format:c(ve),"parsed-value":m.value,onPick:Ze},null,8,["visible","format","parsed-value"])],2)),[[c(cs),we]])],2)],2)):pe("v-if",!0),j("div",{class:L([[c(x).e("content"),c(y).e("content")],"is-left"])},[j("div",{class:L(c(y).e("header"))},[j("button",{type:"button",class:L([c(x).e("icon-btn"),"d-arrow-left"]),"aria-label":c(E)("el.datepicker.prevYear"),onClick:ue},[de(Ge.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["aria-label"]),_t(j("button",{type:"button",class:L([c(x).e("icon-btn"),"arrow-left"]),"aria-label":c(E)("el.datepicker.prevMonth"),onClick:ge},[de(Ge.$slots,"prev-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1})])],10,["aria-label"]),[[Vt,c(R)==="date"]]),Ge.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(Be),class:L([[c(x).e("icon-btn"),{"is-disabled":!c(Be)}],"d-arrow-right"]),"aria-label":c(E)("el.datepicker.nextYear"),onClick:Fe},[de(Ge.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["disabled","aria-label"])):pe("v-if",!0),Ge.unlinkPanels&&c(R)==="date"?(D(),G("button",{key:1,type:"button",disabled:!c(Me),class:L([[c(x).e("icon-btn"),{"is-disabled":!c(Me)}],"arrow-right"]),"aria-label":c(E)("el.datepicker.nextMonth"),onClick:Z},[de(Ge.$slots,"next-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})])],10,["disabled","aria-label"])):pe("v-if",!0),j("div",null,[j("span",{role:"button",class:L(c(y).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Zt(ct=>c(oe)("year"),["enter"]),onClick:ct=>c(oe)("year")},ze(c(q)),43,["onKeydown","onClick"]),_t(j("span",{role:"button","aria-live":"polite",tabindex:"0",class:L([c(y).e("header-label"),{active:c(R)==="month"}]),onKeydown:Zt(ct=>c(oe)("month"),["enter"]),onClick:ct=>c(oe)("month")},ze(c(E)(`el.datepicker.month${h.value.month()+1}`)),43,["onKeydown","onClick"]),[[Vt,c(R)==="date"]])])],2),c(R)==="date"?(D(),_e(Kv,{key:0,ref_key:"leftCurrentViewRef",ref:H,"selection-mode":"range",date:h.value,"min-date":c(v),"max-date":c(b),"range-state":c(g),"disabled-date":c(i),"cell-class-name":c(s),onChangerange:c(_),onPick:ht,onSelect:c(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])):pe("v-if",!0),c(R)==="year"?(D(),_e(cd,{key:1,ref_key:"leftCurrentViewRef",ref:H,"selection-mode":"year",date:h.value,"disabled-date":c(i),"parsed-value":Ge.parsedValue,onPick:c(Y)},null,8,["date","disabled-date","parsed-value","onPick"])):pe("v-if",!0),c(R)==="month"?(D(),_e(ud,{key:2,ref_key:"leftCurrentViewRef",ref:H,"selection-mode":"month",date:h.value,"parsed-value":Ge.parsedValue,"disabled-date":c(i),onPick:c(ae)},null,8,["date","parsed-value","disabled-date","onPick"])):pe("v-if",!0)],2),j("div",{class:L([[c(x).e("content"),c(y).e("content")],"is-right"])},[j("div",{class:L(c(y).e("header"))},[Ge.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(Be),class:L([[c(x).e("icon-btn"),{"is-disabled":!c(Be)}],"d-arrow-left"]),"aria-label":c(E)("el.datepicker.prevYear"),onClick:$},[de(Ge.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["disabled","aria-label"])):pe("v-if",!0),Ge.unlinkPanels&&c(B)==="date"?(D(),G("button",{key:1,type:"button",disabled:!c(Me),class:L([[c(x).e("icon-btn"),{"is-disabled":!c(Me)}],"arrow-left"]),"aria-label":c(E)("el.datepicker.prevMonth"),onClick:he},[de(Ge.$slots,"prev-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1})])],10,["disabled","aria-label"])):pe("v-if",!0),j("button",{type:"button","aria-label":c(E)("el.datepicker.nextYear"),class:L([c(x).e("icon-btn"),"d-arrow-right"]),onClick:xe},[de(Ge.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["aria-label"]),_t(j("button",{type:"button",class:L([c(x).e("icon-btn"),"arrow-right"]),"aria-label":c(E)("el.datepicker.nextMonth"),onClick:Ce},[de(Ge.$slots,"next-month",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})])],10,["aria-label"]),[[Vt,c(B)==="date"]]),j("div",null,[j("span",{role:"button",class:L(c(y).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Zt(ct=>c(X)("year"),["enter"]),onClick:ct=>c(X)("year")},ze(c(K)),43,["onKeydown","onClick"]),_t(j("span",{role:"button","aria-live":"polite",tabindex:"0",class:L([c(y).e("header-label"),{active:c(B)==="month"}]),onKeydown:Zt(ct=>c(X)("month"),["enter"]),onClick:ct=>c(X)("month")},ze(c(E)(`el.datepicker.month${m.value.month()+1}`)),43,["onKeydown","onClick"]),[[Vt,c(B)==="date"]])])],2),c(B)==="date"?(D(),_e(Kv,{key:0,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"range",date:m.value,"min-date":c(v),"max-date":c(b),"range-state":c(g),"disabled-date":c(i),"cell-class-name":c(s),onChangerange:c(_),onPick:ht,onSelect:c(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])):pe("v-if",!0),c(B)==="year"?(D(),_e(cd,{key:1,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"year",date:m.value,"disabled-date":c(i),"parsed-value":Ge.parsedValue,onPick:c(ie)},null,8,["date","disabled-date","parsed-value","onPick"])):pe("v-if",!0),c(B)==="month"?(D(),_e(ud,{key:2,ref_key:"rightCurrentViewRef",ref:N,"selection-mode":"month",date:m.value,"parsed-value":Ge.parsedValue,"disabled-date":c(i),onPick:c(re)},null,8,["date","parsed-value","disabled-date","onPick"])):pe("v-if",!0)],2)],2)],2),c(nt)?(D(),G("div",{key:0,class:L(c(x).e("footer"))},[c(l)?(D(),_e(c(Qn),{key:0,text:"",size:"small",class:L(c(x).e("link-btn")),onClick:ft},{default:se(()=>[Tt(ze(c(E)("el.datepicker.clear")),1)]),_:1},8,["class"])):pe("v-if",!0),J(c(Qn),{plain:"",size:"small",class:L(c(x).e("link-btn")),disabled:c(Ne),onClick:ct=>c(w)(!1)},{default:se(()=>[Tt(ze(c(E)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):pe("v-if",!0)],2))}});var BH=Ve(FH,[["__file","panel-date-range.vue"]]);const $H=Ue({...Wy}),UH=["pick","set-picker-option","calendar-change"],zH=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:o}=$t(),r=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},s=()=>{t.value=t.value.add(1,"year")},a=()=>{n.value=n.value.subtract(1,"year")},l=A(()=>`${t.value.year()} ${o("el.datepicker.year")}`),u=A(()=>`${n.value.year()} ${o("el.datepicker.year")}`),d=A(()=>t.value.year()),f=A(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:r,rightNextYear:i,leftNextYear:s,rightPrevYear:a,leftLabel:l,rightLabel:u,leftYear:d,rightYear:f}},Tf="year",VH=Q({name:"DatePickerMonthRange"}),HH=Q({...VH,props:$H,emits:UH,setup(e,{emit:t}){const n=e,{lang:o}=$t(),r=je(_s),i=je(jd),{shortcuts:s,disabledDate:a}=r.props,l=Kt(r.props,"format"),u=Kt(r.props,"defaultValue"),d=F(gt().locale(o.value)),f=F(gt().locale(o.value).add(1,Tf)),{minDate:p,maxDate:h,rangeState:m,ppNs:v,drpNs:b,handleChangeRange:g,handleRangeConfirm:x,handleShortcutClick:y,onSelect:_}=RT(n,{defaultValue:u,leftDate:d,rightDate:f,unit:Tf,onParsedValueChanged:O}),w=A(()=>!!s.length),{leftPrevYear:S,rightNextYear:M,leftNextYear:T,rightPrevYear:E,leftLabel:C,rightLabel:k,leftYear:R,rightYear:B}=zH({unlinkPanels:Kt(n,"unlinkPanels"),leftDate:d,rightDate:f}),H=A(()=>n.unlinkPanels&&B.value>R.value+1),N=(q,K=!0)=>{const oe=q.minDate,X=q.maxDate;h.value===X&&p.value===oe||(t("calendar-change",[oe.toDate(),X&&X.toDate()]),h.value=X,p.value=oe,K&&x())},P=()=>{d.value=Ky(c(u),{lang:c(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],f.value=d.value.add(1,"year"),t("pick",null)},U=q=>Oe(q)?q.map(K=>K.format(l.value)):q.format(l.value),I=q=>Mu(q,l.value,o.value,i);function O(q,K){if(n.unlinkPanels&&K){const oe=(q==null?void 0:q.year())||0,X=K.year();f.value=oe===X?K.add(1,Tf):K}else f.value=d.value.add(1,Tf)}return t("set-picker-option",["isValidValue",Cu]),t("set-picker-option",["formatToString",U]),t("set-picker-option",["parseUserInput",I]),t("set-picker-option",["handleClear",P]),(q,K)=>(D(),G("div",{class:L([c(v).b(),c(b).b(),{"has-sidebar":!!q.$slots.sidebar||c(w)}])},[j("div",{class:L(c(v).e("body-wrapper"))},[de(q.$slots,"sidebar",{class:L(c(v).e("sidebar"))}),c(w)?(D(),G("div",{key:0,class:L(c(v).e("sidebar"))},[(D(!0),G(tt,null,Nt(c(s),(oe,X)=>(D(),G("button",{key:X,type:"button",class:L(c(v).e("shortcut")),onClick:Y=>c(y)(oe)},ze(oe.text),11,["onClick"]))),128))],2)):pe("v-if",!0),j("div",{class:L(c(v).e("body"))},[j("div",{class:L([[c(v).e("content"),c(b).e("content")],"is-left"])},[j("div",{class:L(c(b).e("header"))},[j("button",{type:"button",class:L([c(v).e("icon-btn"),"d-arrow-left"]),onClick:c(S)},[de(q.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["onClick"]),q.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(H),class:L([[c(v).e("icon-btn"),{[c(v).is("disabled")]:!c(H)}],"d-arrow-right"]),onClick:c(T)},[de(q.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["disabled","onClick"])):pe("v-if",!0),j("div",null,ze(c(C)),1)],2),J(ud,{"selection-mode":"range",date:d.value,"min-date":c(p),"max-date":c(h),"range-state":c(m),"disabled-date":c(a),onChangerange:c(g),onPick:N,onSelect:c(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),j("div",{class:L([[c(v).e("content"),c(b).e("content")],"is-right"])},[j("div",{class:L(c(b).e("header"))},[q.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(H),class:L([[c(v).e("icon-btn"),{"is-disabled":!c(H)}],"d-arrow-left"]),onClick:c(E)},[de(q.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["disabled","onClick"])):pe("v-if",!0),j("button",{type:"button",class:L([c(v).e("icon-btn"),"d-arrow-right"]),onClick:c(M)},[de(q.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["onClick"]),j("div",null,ze(c(k)),1)],2),J(ud,{"selection-mode":"range",date:f.value,"min-date":c(p),"max-date":c(h),"range-state":c(m),"disabled-date":c(a),onChangerange:c(g),onPick:N,onSelect:c(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var WH=Ve(HH,[["__file","panel-month-range.vue"]]);const GH=Ue({...Wy}),KH=["pick","set-picker-option","calendar-change"],qH=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const o=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},r=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},s=()=>{n.value=n.value.subtract(10,"year")},a=A(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),l=A(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),u=A(()=>Math.floor(t.value.year()/10)*10+9),d=A(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:o,rightNextYear:r,leftNextYear:i,rightPrevYear:s,leftLabel:a,rightLabel:l,leftYear:u,rightYear:d}},Yx="year",jH=Q({name:"DatePickerYearRange"}),YH=Q({...jH,props:GH,emits:KH,setup(e,{emit:t}){const n=e,{lang:o}=$t(),r=F(gt().locale(o.value)),i=F(r.value.add(10,"year")),{pickerNs:s}=je(_0),a=Pe("date-range-picker"),l=je(jd),u=A(()=>!!N.length),d=A(()=>[s.b(),a.b(),{"has-sidebar":!!Wn().sidebar||u.value}]),f=A(()=>({content:[s.e("content"),a.e("content"),"is-left"],arrowLeftBtn:[s.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),{[s.is("disabled")]:!S.value},"d-arrow-right"]})),p=A(()=>({content:[s.e("content"),a.e("content"),"is-right"],arrowLeftBtn:[s.e("icon-btn"),{"is-disabled":!S.value},"d-arrow-left"],arrowRightBtn:[s.e("icon-btn"),"d-arrow-right"]})),h=kT(o),{leftPrevYear:m,rightNextYear:v,leftNextYear:b,rightPrevYear:g,leftLabel:x,rightLabel:y,leftYear:_,rightYear:w}=qH({unlinkPanels:Kt(n,"unlinkPanels"),leftDate:r,rightDate:i}),S=A(()=>n.unlinkPanels&&w.value>_.value+1),M=F(),T=F(),E=F({endDate:null,selecting:!1}),C=Y=>{E.value=Y},k=(Y,ie=!0)=>{const ae=Y.minDate,re=Y.maxDate;T.value===re&&M.value===ae||(t("calendar-change",[ae.toDate(),re&&re.toDate()]),T.value=re,M.value=ae,ie&&R())},R=(Y=!1)=>{Cu([M.value,T.value])&&t("pick",[M.value,T.value],Y)},B=Y=>{E.value.selecting=Y,Y||(E.value.endDate=null)},H=je(_s),{shortcuts:N,disabledDate:P}=H.props,U=Kt(H.props,"format"),I=Kt(H.props,"defaultValue"),O=()=>{let Y;if(Oe(I.value)){const ie=gt(I.value[0]);let ae=gt(I.value[1]);return n.unlinkPanels||(ae=ie.add(10,Yx)),[ie,ae]}else I.value?Y=gt(I.value):Y=gt();return Y=Y.locale(o.value),[Y,Y.add(10,Yx)]};Te(()=>I.value,Y=>{if(Y){const ie=O();r.value=ie[0],i.value=ie[1]}},{immediate:!0}),Te(()=>n.parsedValue,Y=>{if(Y&&Y.length===2)if(M.value=Y[0],T.value=Y[1],r.value=M.value,n.unlinkPanels&&T.value){const ie=M.value.year(),ae=T.value.year();i.value=ie===ae?T.value.add(10,"year"):T.value}else i.value=r.value.add(10,"year");else{const ie=O();M.value=void 0,T.value=void 0,r.value=ie[0],i.value=ie[1]}},{immediate:!0});const q=Y=>Mu(Y,U.value,o.value,l),K=Y=>Oe(Y)?Y.map(ie=>ie.format(U.value)):Y.format(U.value),oe=Y=>Cu(Y)&&(P?!P(Y[0].toDate())&&!P(Y[1].toDate()):!0),X=()=>{const Y=O();r.value=Y[0],i.value=Y[1],T.value=void 0,M.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",oe]),t("set-picker-option",["parseUserInput",q]),t("set-picker-option",["formatToString",K]),t("set-picker-option",["handleClear",X]),(Y,ie)=>(D(),G("div",{class:L(c(d))},[j("div",{class:L(c(s).e("body-wrapper"))},[de(Y.$slots,"sidebar",{class:L(c(s).e("sidebar"))}),c(u)?(D(),G("div",{key:0,class:L(c(s).e("sidebar"))},[(D(!0),G(tt,null,Nt(c(N),(ae,re)=>(D(),G("button",{key:re,type:"button",class:L(c(s).e("shortcut")),onClick:fe=>c(h)(ae)},ze(ae.text),11,["onClick"]))),128))],2)):pe("v-if",!0),j("div",{class:L(c(s).e("body"))},[j("div",{class:L(c(f).content)},[j("div",{class:L(c(a).e("header"))},[j("button",{type:"button",class:L(c(f).arrowLeftBtn),onClick:c(m)},[de(Y.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["onClick"]),Y.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(S),class:L(c(f).arrowRightBtn),onClick:c(b)},[de(Y.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["disabled","onClick"])):pe("v-if",!0),j("div",null,ze(c(x)),1)],2),J(cd,{"selection-mode":"range",date:r.value,"min-date":M.value,"max-date":T.value,"range-state":E.value,"disabled-date":c(P),onChangerange:C,onPick:k,onSelect:B},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),j("div",{class:L(c(p).content)},[j("div",{class:L(c(a).e("header"))},[Y.unlinkPanels?(D(),G("button",{key:0,type:"button",disabled:!c(S),class:L(c(p).arrowLeftBtn),onClick:c(g)},[de(Y.$slots,"prev-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(ia))]),_:1})])],10,["disabled","onClick"])):pe("v-if",!0),j("button",{type:"button",class:L(c(p).arrowRightBtn),onClick:c(v)},[de(Y.$slots,"next-year",{},()=>[J(c(Je),null,{default:se(()=>[J(c(sa))]),_:1})])],10,["onClick"]),j("div",null,ze(c(y)),1)],2),J(cd,{"selection-mode":"range",date:i.value,"min-date":M.value,"max-date":T.value,"range-state":E.value,"disabled-date":c(P),onChangerange:C,onPick:k,onSelect:B},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var XH=Ve(YH,[["__file","panel-year-range.vue"]]);const ZH=function(e){switch(e){case"daterange":case"datetimerange":return BH;case"monthrange":return WH;case"yearrange":return XH;default:return LH}};gt.extend(Y3);gt.extend(L7);gt.extend(Uy);gt.extend(B7);gt.extend(V7);gt.extend(K7);gt.extend(X7);gt.extend(eH);var JH=Q({name:"ElDatePicker",install:null,props:yH,emits:[vt],setup(e,{expose:t,emit:n,slots:o}){const r=Pe("picker-panel"),i=A(()=>!e.format);Lt(jd,i),Lt(zy,Gt(Kt(e,"popperOptions"))),Lt(_0,{slots:o,pickerNs:r});const s=F();t({focus:()=>{var u;(u=s.value)==null||u.focus()},blur:()=>{var u;(u=s.value)==null||u.blur()},handleOpen:()=>{var u;(u=s.value)==null||u.handleOpen()},handleClose:()=>{var u;(u=s.value)==null||u.handleClose()}});const l=u=>{n(vt,u)};return()=>{var u;const d=(u=e.format)!=null?u:tH[e.type]||zl,f=ZH(e.type);return J(wT,Dt(e,{format:d,type:e.type,ref:s,"onUpdate:modelValue":l}),{default:p=>J(f,p,{"prev-month":o["prev-month"],"next-month":o["next-month"],"prev-year":o["prev-year"],"next-year":o["next-year"]}),"range-separator":o["range-separator"]})}}});const QH=yt(JH),jy=Symbol("elDescriptions");var cc=Q({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:je(jy,{})}},render(){var e;const t=Xz(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(g=>{const{dir:x,arg:y,modifiers:_,value:w}=g;return[x,w,y,_]}),{border:o,direction:r}=this.descriptions,i=r==="vertical",s=()=>{var g,x,y;return((y=(x=(g=this.cell)==null?void 0:g.children)==null?void 0:x.label)==null?void 0:y.call(x))||t.label},a=()=>{var g,x,y;return(y=(x=(g=this.cell)==null?void 0:g.children)==null?void 0:x.default)==null?void 0:y.call(x)},l=t.span,u=t.rowspan,d=t.align?`is-${t.align}`:"",f=t.labelAlign?`is-${t.labelAlign}`:d,p=t.className,h=t.labelClassName,m=this.type==="label"&&(t.labelWidth||this.descriptions.labelWidth)||t.width,v={width:Sn(m),minWidth:Sn(t.minWidth)},b=Pe("descriptions");switch(this.type){case"label":return _t(ut(this.tag,{style:v,class:[b.e("cell"),b.e("label"),b.is("bordered-label",o),b.is("vertical-label",i),f,h],colSpan:i?l:1,rowspan:i?1:u},s()),n);case"content":return _t(ut(this.tag,{style:v,class:[b.e("cell"),b.e("content"),b.is("bordered-content",o),b.is("vertical-content",i),d,p],colSpan:i?l:l*2-1,rowspan:i?u*2-1:u},a()),n);default:{const g=s(),x={},y=Sn(t.labelWidth||this.descriptions.labelWidth);return y&&(x.width=y,x.display="inline-block"),_t(ut("td",{style:v,class:[b.e("cell"),d],colSpan:l,rowspan:u},[qn(g)?void 0:ut("span",{style:x,class:[b.e("label"),h]},g),ut("span",{class:[b.e("content"),p]},a())]),n)}}}});const eW=Ue({row:{type:le(Array),default:()=>[]}}),tW=Q({name:"ElDescriptionsRow"}),nW=Q({...tW,props:eW,setup(e){const t=je(jy,{});return(n,o)=>c(t).direction==="vertical"?(D(),G(tt,{key:0},[j("tr",null,[(D(!0),G(tt,null,Nt(n.row,(r,i)=>(D(),_e(c(cc),{key:`tr1-${i}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),j("tr",null,[(D(!0),G(tt,null,Nt(n.row,(r,i)=>(D(),_e(c(cc),{key:`tr2-${i}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(D(),G("tr",{key:1},[(D(!0),G(tt,null,Nt(n.row,(r,i)=>(D(),G(tt,{key:`tr3-${i}`},[c(t).border?(D(),G(tt,{key:0},[J(c(cc),{cell:r,tag:"td",type:"label"},null,8,["cell"]),J(c(cc),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(D(),_e(c(cc),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var oW=Ve(nW,[["__file","descriptions-row.vue"]]);const rW=Ue({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Vn,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],default:""}}),PT="ElDescriptionsItem",iW=Q({name:"ElDescriptions"}),sW=Q({...iW,props:rW,setup(e){const t=e,n=Pe("descriptions"),o=Fn(),r=Wn();Lt(jy,t);const i=A(()=>[n.b(),n.m(o.value)]),s=(l,u,d,f=!1)=>(l.props||(l.props={}),u>d&&(l.props.span=d),f&&(l.props.span=u),l),a=()=>{if(!r.default)return[];const l=mi(r.default()).filter(m=>{var v;return((v=m==null?void 0:m.type)==null?void 0:v.name)===PT}),u=[];let d=[],f=t.column,p=0;const h=[];return l.forEach((m,v)=>{var b,g,x;const y=((b=m.props)==null?void 0:b.span)||1,_=((g=m.props)==null?void 0:g.rowspan)||1,w=u.length;if(h[w]||(h[w]=0),_>1)for(let S=1;S<_;S++)h[x=w+S]||(h[x]=0),h[w+S]++,p++;if(h[w]>0&&(f-=h[w],h[w]=0),vf?f:y),v===l.length-1){const S=t.column-p%t.column;d.push(s(m,S,f,!0)),u.push(d);return}y(D(),G("div",{class:L(c(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(D(),G("div",{key:0,class:L(c(n).e("header"))},[j("div",{class:L(c(n).e("title"))},[de(l.$slots,"title",{},()=>[Tt(ze(l.title),1)])],2),j("div",{class:L(c(n).e("extra"))},[de(l.$slots,"extra",{},()=>[Tt(ze(l.extra),1)])],2)],2)):pe("v-if",!0),j("div",{class:L(c(n).e("body"))},[j("table",{class:L([c(n).e("table"),c(n).is("bordered",l.border)])},[j("tbody",null,[(D(!0),G(tt,null,Nt(a(),(d,f)=>(D(),_e(oW,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}});var aW=Ve(sW,[["__file","description.vue"]]);const Xx=["left","center","right"],lW=Ue({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],default:""},align:{type:String,values:Xx,default:"left"},labelAlign:{type:String,values:Xx},className:{type:String,default:""},labelClassName:{type:String,default:""}}),DT=Q({name:PT,props:lW}),uW=yt(aW,{DescriptionsItem:DT}),cW=gn(DT),Yy=e=>{if(!e)return{onClick:jt,onMousedown:jt,onMouseup:jt};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}}},dW=Ue({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:le([String,Array,Object])},zIndex:{type:le([String,Number])}}),fW={click:e=>e instanceof MouseEvent},hW="overlay";var pW=Q({name:"ElOverlay",props:dW,emits:fW,setup(e,{slots:t,emit:n}){const o=Pe(hW),r=l=>{n("click",l)},{onClick:i,onMousedown:s,onMouseup:a}=Yy(e.customMaskEvent?void 0:r);return()=>e.mask?J("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:a},[de(t,"default")],wr.STYLE|wr.CLASS|wr.PROPS,["onClick","onMouseup","onMousedown"]):ut("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[de(t,"default")])}});const Xy=pW,IT=Symbol("dialogInjectionKey"),LT=Ue({center:Boolean,alignCenter:Boolean,closeIcon:{type:tn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),mW={close:()=>!0},NT=(e,t,n,o)=>{const r={offsetX:0,offsetY:0},i=(f,p)=>{if(e.value){const{offsetX:h,offsetY:m}=r,v=e.value.getBoundingClientRect(),b=v.left,g=v.top,x=v.width,y=v.height,_=document.documentElement.clientWidth,w=document.documentElement.clientHeight,S=-b+h,M=-g+m,T=_-b-x+h,E=w-g-(y{const p=f.clientX,h=f.clientY,{offsetX:m,offsetY:v}=r,b=x=>{const y=m+x.clientX-p,_=v+x.clientY-h;i(y,_)},g=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",d))},l=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",d))},u=()=>{r.offsetX=0,r.offsetY=0,e.value&&(e.value.style.transform="")},d=()=>{const{offsetX:f,offsetY:p}=r;i(f,p)};return xt(()=>{co(()=>{n.value?a():l()})}),Qt(()=>{l()}),{resetPosition:u,updatePosition:d}},x0=(...e)=>t=>{e.forEach(n=>{it(n)?n(t):n.value=t})},vW=Q({name:"ElDialogContent"}),gW=Q({...vW,props:LT,emits:mW,setup(e,{expose:t}){const n=e,{t:o}=$t(),{Close:r}=u3,{dialogRef:i,headerRef:s,bodyId:a,ns:l,style:u}=je(IT),{focusTrapRef:d}=je(My),f=A(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),p=x0(d,i),h=A(()=>n.draggable),m=A(()=>n.overflow),{resetPosition:v,updatePosition:b}=NT(i,s,h,m);return t({resetPosition:v,updatePosition:b}),(g,x)=>(D(),G("div",{ref:c(p),class:L(c(f)),style:rt(c(u)),tabindex:"-1"},[j("header",{ref_key:"headerRef",ref:s,class:L([c(l).e("header"),g.headerClass,{"show-close":g.showClose}])},[de(g.$slots,"header",{},()=>[j("span",{role:"heading","aria-level":g.ariaLevel,class:L(c(l).e("title"))},ze(g.title),11,["aria-level"])]),g.showClose?(D(),G("button",{key:0,"aria-label":c(o)("el.dialog.close"),class:L(c(l).e("headerbtn")),type:"button",onClick:y=>g.$emit("close")},[J(c(Je),{class:L(c(l).e("close"))},{default:se(()=>[(D(),_e(Rt(g.closeIcon||c(r))))]),_:1},8,["class"])],10,["aria-label","onClick"])):pe("v-if",!0)],2),j("div",{id:c(a),class:L([c(l).e("body"),g.bodyClass])},[de(g.$slots,"default")],10,["id"]),g.$slots.footer?(D(),G("footer",{key:0,class:L([c(l).e("footer"),g.footerClass])},[de(g.$slots,"footer")],2)):pe("v-if",!0)],6))}});var bW=Ve(gW,[["__file","dialog-content.vue"]]);const OT=Ue({...LT,appendToBody:Boolean,appendTo:{type:g0.to.type,default:"body"},beforeClose:{type:le(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),FT={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[vt]:e=>Jt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Zy=(e,t={})=>{hn(e)||Ln("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Pe("popup"),o=A(()=>n.bm("parent","hidden"));if(!Ft||qo(document.body,o.value))return;let r=0,i=!1,s="0";const a=()=>{setTimeout(()=>{typeof document>"u"||i&&document&&(document.body.style.width=s,Ao(document.body,o.value))},200)};Te(e,l=>{if(!l){a();return}i=!qo(document.body,o.value),i&&(s=document.body.style.width,Ar(document.body,o.value)),r=QM(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||d==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`)}),$C(()=>a())},BT=(e,t)=>{var n;const r=Pt().emit,{nextZIndex:i}=qu();let s="";const a=fo(),l=fo(),u=F(!1),d=F(!1),f=F(!1),p=F((n=e.zIndex)!=null?n:i());let h,m;const v=Vd("namespace",Ic),b=A(()=>{const N={},P=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(N[`${P}-margin-top`]=e.top),e.width&&(N[`${P}-width`]=Sn(e.width))),N}),g=A(()=>e.alignCenter?{display:"flex"}:{});function x(){r("opened")}function y(){r("closed"),r(vt,!1),e.destroyOnClose&&(f.value=!1)}function _(){r("close")}function w(){m==null||m(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=tl(()=>E(),e.openDelay):E()}function S(){h==null||h(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=tl(()=>C(),e.closeDelay):C()}function M(){function N(P){P||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(N):S()}function T(){e.closeOnClickModal&&M()}function E(){Ft&&(u.value=!0)}function C(){u.value=!1}function k(){r("openAutoFocus")}function R(){r("closeAutoFocus")}function B(N){var P;((P=N.detail)==null?void 0:P.focusReason)==="pointer"&&N.preventDefault()}e.lockScroll&&Zy(u);function H(){e.closeOnPressEscape&&M()}return Te(()=>e.zIndex,()=>{var N;p.value=(N=e.zIndex)!=null?N:i()}),Te(()=>e.modelValue,N=>{var P;N?(d.value=!1,w(),f.value=!0,p.value=(P=e.zIndex)!=null?P:i(),Qe(()=>{r("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):u.value&&S()}),Te(()=>e.fullscreen,N=>{t.value&&(N?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),xt(()=>{e.modelValue&&(u.value=!0,f.value=!0,w())}),{afterEnter:x,afterLeave:y,beforeLeave:_,handleClose:M,onModalClick:T,close:S,doClose:C,onOpenAutoFocus:k,onCloseAutoFocus:R,onCloseRequested:H,onFocusoutPrevented:B,titleId:a,bodyId:l,closed:d,style:b,overlayDialogStyle:g,rendered:f,visible:u,zIndex:p}},yW=Q({name:"ElDialog",inheritAttrs:!1}),_W=Q({...yW,props:OT,emits:FT,setup(e,{expose:t}){const n=e,o=Wn();os({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},A(()=>!!o.title));const r=Pe("dialog"),i=F(),s=F(),a=F(),{visible:l,titleId:u,bodyId:d,style:f,overlayDialogStyle:p,rendered:h,zIndex:m,afterEnter:v,afterLeave:b,beforeLeave:g,handleClose:x,onModalClick:y,onOpenAutoFocus:_,onCloseAutoFocus:w,onCloseRequested:S,onFocusoutPrevented:M}=BT(n,i);Lt(IT,{dialogRef:i,headerRef:s,bodyId:d,ns:r,rendered:h,style:f});const T=Yy(y),E=A(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:a,resetPosition:()=>{var k;(k=a.value)==null||k.resetPosition()},handleClose:x}),(k,R)=>(D(),_e(c(Xu),{to:k.appendTo,disabled:k.appendTo!=="body"?!1:!k.appendToBody},{default:se(()=>[J(Hn,{name:"dialog-fade",onAfterEnter:c(v),onAfterLeave:c(b),onBeforeLeave:c(g),persisted:""},{default:se(()=>[_t(J(c(Xy),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":c(m)},{default:se(()=>[j("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:c(u),"aria-describedby":c(d),class:L(`${c(r).namespace.value}-overlay-dialog`),style:rt(c(p)),onClick:c(T).onClick,onMousedown:c(T).onMousedown,onMouseup:c(T).onMouseup},[J(c(Yu),{loop:"",trapped:c(l),"focus-start-el":"container",onFocusAfterTrapped:c(_),onFocusAfterReleased:c(w),onFocusoutPrevented:c(M),onReleaseRequested:c(S)},{default:se(()=>[c(h)?(D(),_e(bW,Dt({key:0,ref_key:"dialogContentRef",ref:a},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:c(E),overflow:k.overflow,fullscreen:k.fullscreen,"header-class":k.headerClass,"body-class":k.bodyClass,"footer-class":k.footerClass,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:c(x)}),er({header:se(()=>[k.$slots.title?de(k.$slots,"title",{key:1}):de(k.$slots,"header",{key:0,close:c(x),titleId:c(u),titleClass:c(r).e("title")})]),default:se(()=>[de(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:se(()=>[de(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):pe("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[Vt,c(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var xW=Ve(_W,[["__file","dialog.vue"]]);const SW=yt(xW),wW=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:le(String),default:"solid"}}),CW=Q({name:"ElDivider"}),EW=Q({...CW,props:wW,setup(e){const t=e,n=Pe("divider"),o=A(()=>n.cssVar({"border-style":t.borderStyle}));return(r,i)=>(D(),G("div",{class:L([c(n).b(),c(n).m(r.direction)]),style:rt(c(o)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(D(),G("div",{key:0,class:L([c(n).e("text"),c(n).is(r.contentPosition)])},[de(r.$slots,"default")],2)):pe("v-if",!0)],6))}});var MW=Ve(EW,[["__file","divider.vue"]]);const $T=yt(MW),TW=Ue({...OT,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),AW=FT,kW=Q({name:"ElDrawer",inheritAttrs:!1}),RW=Q({...kW,props:TW,emits:AW,setup(e,{expose:t}){const n=e,o=Wn();os({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"},A(()=>!!o.title));const r=F(),i=F(),s=Pe("drawer"),{t:a}=$t(),{afterEnter:l,afterLeave:u,beforeLeave:d,visible:f,rendered:p,titleId:h,bodyId:m,zIndex:v,onModalClick:b,onOpenAutoFocus:g,onCloseAutoFocus:x,onFocusoutPrevented:y,onCloseRequested:_,handleClose:w}=BT(n,r),S=A(()=>n.direction==="rtl"||n.direction==="ltr"),M=A(()=>Sn(n.size));return t({handleClose:w,afterEnter:l,afterLeave:u}),(T,E)=>(D(),_e(c(Xu),{to:T.appendTo,disabled:T.appendTo!=="body"?!1:!T.appendToBody},{default:se(()=>[J(Hn,{name:c(s).b("fade"),onAfterEnter:c(l),onAfterLeave:c(u),onBeforeLeave:c(d),persisted:""},{default:se(()=>[_t(J(c(Xy),{mask:T.modal,"overlay-class":T.modalClass,"z-index":c(v),onClick:c(b)},{default:se(()=>[J(c(Yu),{loop:"",trapped:c(f),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:c(g),onFocusAfterReleased:c(x),onFocusoutPrevented:c(y),onReleaseRequested:c(_)},{default:se(()=>[j("div",Dt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":T.title||void 0,"aria-labelledby":T.title?void 0:c(h),"aria-describedby":c(m)},T.$attrs,{class:[c(s).b(),T.direction,c(f)&&"open"],style:c(S)?"width: "+c(M):"height: "+c(M),role:"dialog",onClick:dt(()=>{},["stop"])}),[j("span",{ref_key:"focusStartRef",ref:i,class:L(c(s).e("sr-focus")),tabindex:"-1"},null,2),T.withHeader?(D(),G("header",{key:0,class:L([c(s).e("header"),T.headerClass])},[T.$slots.title?de(T.$slots,"title",{key:1},()=>[pe(" DEPRECATED SLOT ")]):de(T.$slots,"header",{key:0,close:c(w),titleId:c(h),titleClass:c(s).e("title")},()=>[T.$slots.title?pe("v-if",!0):(D(),G("span",{key:0,id:c(h),role:"heading","aria-level":T.headerAriaLevel,class:L(c(s).e("title"))},ze(T.title),11,["id","aria-level"]))]),T.showClose?(D(),G("button",{key:2,"aria-label":c(a)("el.drawer.close"),class:L(c(s).e("close-btn")),type:"button",onClick:c(w)},[J(c(Je),{class:L(c(s).e("close"))},{default:se(()=>[J(c(Ir))]),_:1},8,["class"])],10,["aria-label","onClick"])):pe("v-if",!0)],2)):pe("v-if",!0),c(p)?(D(),G("div",{key:1,id:c(m),class:L([c(s).e("body"),T.bodyClass])},[de(T.$slots,"default")],10,["id"])):pe("v-if",!0),T.$slots.footer?(D(),G("div",{key:2,class:L([c(s).e("footer"),T.footerClass])},[de(T.$slots,"footer")],2)):pe("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Vt,c(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var PW=Ve(RW,[["__file","drawer.vue"]]);const DW=yt(PW),IW=Q({inheritAttrs:!1});function LW(e,t,n,o,r,i){return de(e.$slots,"default")}var NW=Ve(IW,[["render",LW],["__file","collection.vue"]]);const OW=Q({name:"ElCollectionItem",inheritAttrs:!1});function FW(e,t,n,o,r,i){return de(e.$slots,"default")}var BW=Ve(OW,[["render",FW],["__file","collection-item.vue"]]);const UT="data-el-collection-item",zT=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),r=Symbol(n),i={...NW,name:t,setup(){const a=F(),l=new Map;Lt(o,{itemMap:l,getItems:()=>{const d=c(a);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${UT}]`));return[...l.values()].sort((h,m)=>f.indexOf(h.ref)-f.indexOf(m.ref))},collectionRef:a})}},s={...BW,name:n,setup(a,{attrs:l}){const u=F(),d=je(o,void 0);Lt(r,{collectionItemRef:u}),xt(()=>{const f=c(u);f&&d.itemMap.set(f,{ref:f,...l})}),Qt(()=>{const f=c(u);d.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:s}},$W=Ue({style:{type:le([String,Array,Object])},currentTabId:{type:le(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:le(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:UW,ElCollectionItem:zW,COLLECTION_INJECTION_KEY:Jy,COLLECTION_ITEM_INJECTION_KEY:VW}=zT("RovingFocusGroup"),Qy=Symbol("elRovingFocusGroup"),VT=Symbol("elRovingFocusGroupItem"),HW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},WW=(e,t)=>e,GW=(e,t,n)=>{const o=WW(e.code);return HW[o]},KW=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),e1=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Zx="currentTabIdChange",Jx="rovingFocusGroup.entryFocus",qW={bubbles:!1,cancelable:!0},jW=Q({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:$W,emits:[Zx,"entryFocus"],setup(e,{emit:t}){var n;const o=F((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=F(!1),i=F(!1),s=F(),{getItems:a}=je(Jy,void 0),l=A(()=>[{outline:"none"},e.style]),u=v=>{t(Zx,v)},d=()=>{r.value=!0},f=Cn(v=>{var b;(b=e.onMousedown)==null||b.call(e,v)},()=>{i.value=!0}),p=Cn(v=>{var b;(b=e.onFocus)==null||b.call(e,v)},v=>{const b=!c(i),{target:g,currentTarget:x}=v;if(g===x&&b&&!c(r)){const y=new Event(Jx,qW);if(x==null||x.dispatchEvent(y),!y.defaultPrevented){const _=a().filter(E=>E.focusable),w=_.find(E=>E.active),S=_.find(E=>E.id===c(o)),T=[w,S,..._].filter(Boolean).map(E=>E.ref);e1(T)}}i.value=!1}),h=Cn(v=>{var b;(b=e.onBlur)==null||b.call(e,v)},()=>{r.value=!1}),m=(...v)=>{t("entryFocus",...v)};Lt(Qy,{currentTabbedId:zu(o),loop:Kt(e,"loop"),tabIndex:A(()=>c(r)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:Kt(e,"orientation"),dir:Kt(e,"dir"),onItemFocus:u,onItemShiftTab:d,onBlur:h,onFocus:p,onMousedown:f}),Te(()=>e.currentTabId,v=>{o.value=v??null}),on(s,Jx,m)}});function YW(e,t,n,o,r,i){return de(e.$slots,"default")}var XW=Ve(jW,[["render",YW],["__file","roving-focus-group-impl.vue"]]);const ZW=Q({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:UW,ElRovingFocusGroupImpl:XW}});function JW(e,t,n,o,r,i){const s=Mt("el-roving-focus-group-impl"),a=Mt("el-focus-group-collection");return D(),_e(a,null,{default:se(()=>[J(s,cr(wi(e.$attrs)),{default:se(()=>[de(e.$slots,"default")]),_:3},16)]),_:3})}var QW=Ve(ZW,[["render",JW],["__file","roving-focus-group.vue"]]);const kh=Ue({trigger:tu.trigger,triggerKeys:{type:le(Array),default:()=>[Ke.enter,Ke.numpadEnter,Ke.space,Ke.down]},effect:{...Pn.effect,default:"light"},type:{type:le(String)},placement:{type:le(String),default:"bottom"},popperOptions:{type:le(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:le([Number,String]),default:0},maxHeight:{type:le([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:p3,default:"menu"},buttonProps:{type:le(Object)},teleported:Pn.teleported,persistent:{type:Boolean,default:!0}}),HT=Ue({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:tn}}),eG=Ue({onKeydown:{type:le(Function)}}),tG=[Ke.down,Ke.pageDown,Ke.home],WT=[Ke.up,Ke.pageUp,Ke.end],nG=[...tG,...WT],{ElCollection:oG,ElCollectionItem:rG,COLLECTION_INJECTION_KEY:iG,COLLECTION_ITEM_INJECTION_KEY:sG}=zT("Dropdown"),S0=Symbol("elDropdown"),GT="elDropdown",{ButtonGroup:aG}=Qn,lG=Q({name:"ElDropdown",components:{ElButton:Qn,ElButtonGroup:aG,ElScrollbar:Ii,ElDropdownCollection:oG,ElTooltip:_o,ElRovingFocusGroup:QW,ElOnlyChild:_3,ElIcon:Je,ArrowDown:Di},props:kh,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Pt(),o=Pe("dropdown"),{t:r}=$t(),i=F(),s=F(),a=F(),l=F(),u=F(null),d=F(null),f=F(!1),p=A(()=>({maxHeight:Sn(e.maxHeight)})),h=A(()=>[o.m(_.value)]),m=A(()=>Eo(e.trigger)),v=fo().value,b=A(()=>e.id||v);Te([i,m],([P,U],[I])=>{var O,q,K;(O=I==null?void 0:I.$el)!=null&&O.removeEventListener&&I.$el.removeEventListener("pointerenter",S),(q=P==null?void 0:P.$el)!=null&&q.removeEventListener&&P.$el.removeEventListener("pointerenter",S),(K=P==null?void 0:P.$el)!=null&&K.addEventListener&&U.includes("hover")&&P.$el.addEventListener("pointerenter",S)},{immediate:!0}),Qt(()=>{var P,U;(U=(P=i.value)==null?void 0:P.$el)!=null&&U.removeEventListener&&i.value.$el.removeEventListener("pointerenter",S)});function g(){x()}function x(){var P;(P=a.value)==null||P.onClose()}function y(){var P;(P=a.value)==null||P.onOpen()}const _=Fn();function w(...P){t("command",...P)}function S(){var P,U;(U=(P=i.value)==null?void 0:P.$el)==null||U.focus()}function M(){}function T(){const P=c(l);m.value.includes("hover")&&(P==null||P.focus()),d.value=null}function E(P){d.value=P}function C(P){f.value||(P.preventDefault(),P.stopImmediatePropagation())}function k(){t("visible-change",!0)}function R(P){var U;(P==null?void 0:P.type)==="keydown"&&((U=l.value)==null||U.focus())}function B(){t("visible-change",!1)}return Lt(S0,{contentRef:l,role:A(()=>e.role),triggerId:b,isUsingKeyboard:f,onItemEnter:M,onItemLeave:T}),Lt(GT,{instance:n,dropdownSize:_,handleClick:g,commandHandler:w,trigger:Kt(e,"trigger"),hideOnClick:Kt(e,"hideOnClick")}),{t:r,ns:o,scrollbar:u,wrapStyle:p,dropdownTriggerKls:h,dropdownSize:_,triggerId:b,currentTabId:d,handleCurrentTabIdChange:E,handlerMainButtonClick:P=>{t("click",P)},handleEntryFocus:C,handleClose:x,handleOpen:y,handleBeforeShowTooltip:k,handleShowTooltip:R,handleBeforeHideTooltip:B,onFocusAfterTrapped:P=>{var U,I;P.preventDefault(),(I=(U=l.value)==null?void 0:U.focus)==null||I.call(U,{preventScroll:!0})},popperRef:a,contentRef:l,triggeringElementRef:i,referenceElementRef:s}}});function uG(e,t,n,o,r,i){var s;const a=Mt("el-dropdown-collection"),l=Mt("el-roving-focus-group"),u=Mt("el-scrollbar"),d=Mt("el-only-child"),f=Mt("el-tooltip"),p=Mt("el-button"),h=Mt("arrow-down"),m=Mt("el-icon"),v=Mt("el-button-group");return D(),G("div",{class:L([e.ns.b(),e.ns.is("disabled",e.disabled)])},[J(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},er({content:se(()=>[J(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:se(()=>[J(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:se(()=>[J(a,null,{default:se(()=>[de(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:se(()=>[J(d,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:se(()=>[de(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(D(),_e(v,{key:0},{default:se(()=>[J(p,Dt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:se(()=>[de(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),J(p,Dt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:se(()=>[J(m,{class:L(e.ns.e("icon"))},{default:se(()=>[J(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):pe("v-if",!0)],2)}var cG=Ve(lG,[["render",uG],["__file","dropdown.vue"]]);const dG=Q({components:{ElRovingFocusCollectionItem:zW},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:r,onItemShiftTab:i}=je(Qy,void 0),{getItems:s}=je(Jy,void 0),a=fo(),l=F(),u=Cn(h=>{t("mousedown",h)},h=>{e.focusable?r(c(a)):h.preventDefault()}),d=Cn(h=>{t("focus",h)},()=>{r(c(a))}),f=Cn(h=>{t("keydown",h)},h=>{const{code:m,shiftKey:v,target:b,currentTarget:g}=h;if(m===Ke.tab&&v){i();return}if(b!==g)return;const x=GW(h);if(x){h.preventDefault();let _=s().filter(w=>w.focusable).map(w=>w.ref);switch(x){case"last":{_.reverse();break}case"prev":case"next":{x==="prev"&&_.reverse();const w=_.indexOf(g);_=o.value?KW(_,w+1):_.slice(w+1);break}}Qe(()=>{e1(_)})}}),p=A(()=>n.value===c(a));return Lt(VT,{rovingFocusGroupItemRef:l,tabIndex:A(()=>c(p)?0:-1),handleMousedown:u,handleFocus:d,handleKeydown:f}),{id:a,handleKeydown:f,handleFocus:d,handleMousedown:u}}});function fG(e,t,n,o,r,i){const s=Mt("el-roving-focus-collection-item");return D(),_e(s,{id:e.id,focusable:e.focusable,active:e.active},{default:se(()=>[de(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var hG=Ve(dG,[["render",fG],["__file","roving-focus-item.vue"]]);const pG=Q({name:"DropdownItemImpl",components:{ElIcon:Je},props:HT,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Pe("dropdown"),{role:o}=je(S0,void 0),{collectionItemRef:r}=je(sG,void 0),{collectionItemRef:i}=je(VW,void 0),{rovingFocusGroupItemRef:s,tabIndex:a,handleFocus:l,handleKeydown:u,handleMousedown:d}=je(VT,void 0),f=x0(r,i,s),p=A(()=>o.value==="menu"?"menuitem":o.value==="navigation"?"link":"button"),h=Cn(m=>{if([Ke.enter,Ke.numpadEnter,Ke.space].includes(m.code))return m.preventDefault(),m.stopImmediatePropagation(),t("clickimpl",m),!0},u);return{ns:n,itemRef:f,dataset:{[UT]:""},role:p,tabIndex:a,handleFocus:l,handleKeydown:h,handleMousedown:d}}});function mG(e,t,n,o,r,i){const s=Mt("el-icon");return D(),G(tt,null,[e.divided?(D(),G("li",{key:0,role:"separator",class:L(e.ns.bem("menu","item","divided"))},null,2)):pe("v-if",!0),j("li",Dt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:a=>e.$emit("clickimpl",a),onFocus:e.handleFocus,onKeydown:dt(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:a=>e.$emit("pointermove",a),onPointerleave:a=>e.$emit("pointerleave",a)}),[e.icon?(D(),_e(s,{key:0},{default:se(()=>[(D(),_e(Rt(e.icon)))]),_:1})):pe("v-if",!0),de(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var vG=Ve(pG,[["render",mG],["__file","dropdown-item-impl.vue"]]);const KT=()=>{const e=je(GT,{}),t=A(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},gG=Q({name:"ElDropdownItem",components:{ElDropdownCollectionItem:rG,ElRovingFocusItem:hG,ElDropdownItemImpl:vG},inheritAttrs:!1,props:HT,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=KT(),r=Pt(),i=F(null),s=A(()=>{var h,m;return(m=(h=c(i))==null?void 0:h.textContent)!=null?m:""}),{onItemEnter:a,onItemLeave:l}=je(S0,void 0),u=Cn(h=>(t("pointermove",h),h.defaultPrevented),Sx(h=>{if(e.disabled){l(h);return}const m=h.currentTarget;m===document.activeElement||m.contains(document.activeElement)||(a(h),h.defaultPrevented||m==null||m.focus())})),d=Cn(h=>(t("pointerleave",h),h.defaultPrevented),Sx(l)),f=Cn(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var m,v,b;if(e.disabled){h.stopImmediatePropagation();return}(m=o==null?void 0:o.hideOnClick)!=null&&m.value&&((v=o.handleClick)==null||v.call(o)),(b=o.commandHandler)==null||b.call(o,e.command,r,h)}),p=A(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:d,textContent:s,propsAndAttrs:p}}});function bG(e,t,n,o,r,i){var s;const a=Mt("el-dropdown-item-impl"),l=Mt("el-roving-focus-item"),u=Mt("el-dropdown-collection-item");return D(),_e(u,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:se(()=>[J(l,{focusable:!e.disabled},{default:se(()=>[J(a,Dt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:se(()=>[de(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var qT=Ve(gG,[["render",bG],["__file","dropdown-item.vue"]]);const yG=Q({name:"ElDropdownMenu",props:eG,setup(e){const t=Pe("dropdown"),{_elDropdownSize:n}=KT(),o=n.value,{focusTrapRef:r,onKeydown:i}=je(My,void 0),{contentRef:s,role:a,triggerId:l}=je(S0,void 0),{collectionRef:u,getItems:d}=je(iG,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:m,onFocus:v,onMousedown:b}=je(Qy,void 0),{collectionRef:g}=je(Jy,void 0),x=A(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),y=x0(s,u,r,f,g),_=Cn(S=>{var M;(M=e.onKeydown)==null||M.call(e,S)},S=>{const{currentTarget:M,code:T,target:E}=S;if(M.contains(E),Ke.tab===T&&S.stopImmediatePropagation(),S.preventDefault(),E!==c(s)||!nG.includes(T))return;const k=d().filter(R=>!R.disabled).map(R=>R.ref);WT.includes(T)&&k.reverse(),e1(k)});return{size:o,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:x,role:a,triggerId:l,dropdownListWrapperRef:y,handleKeydown:S=>{_(S),i(S)},onBlur:m,onFocus:v,onMousedown:b}}});function _G(e,t,n,o,r,i){return D(),G("ul",{ref:e.dropdownListWrapperRef,class:L(e.dropdownKls),style:rt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:dt(e.handleKeydown,["self"]),onMousedown:dt(e.onMousedown,["self"])},[de(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var jT=Ve(yG,[["render",_G],["__file","dropdown-menu.vue"]]);const xG=yt(cG,{DropdownItem:qT,DropdownMenu:jT}),SG=gn(qT),wG=gn(jT),CG=Q({name:"ImgEmpty"}),EG=Q({...CG,setup(e){const t=Pe("empty"),n=fo();return(o,r)=>(D(),G("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[j("defs",null,[j("linearGradient",{id:`linearGradient-1-${c(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[j("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),j("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),j("linearGradient",{id:`linearGradient-2-${c(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[j("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),j("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),j("rect",{id:`path-3-${c(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),j("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[j("g",{transform:"translate(-1268.000000, -535.000000)"},[j("g",{transform:"translate(1268.000000, 535.000000)"},[j("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${c(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),j("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),j("rect",{fill:`url(#linearGradient-1-${c(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),j("rect",{fill:`url(#linearGradient-2-${c(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),j("g",{transform:"translate(53.000000, 45.000000)"},[j("use",{fill:`var(${c(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${c(n)}`},null,8,["fill","xlink:href"]),j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${c(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),j("polygon",{fill:`var(${c(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var MG=Ve(EG,[["__file","img-empty.vue"]]);const TG=Ue({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),AG=Q({name:"ElEmpty"}),kG=Q({...AG,props:TG,setup(e){const t=e,{t:n}=$t(),o=Pe("empty"),r=A(()=>t.description||n("el.table.emptyText")),i=A(()=>({width:Sn(t.imageSize)}));return(s,a)=>(D(),G("div",{class:L(c(o).b())},[j("div",{class:L(c(o).e("image")),style:rt(c(i))},[s.image?(D(),G("img",{key:0,src:s.image,ondragstart:"return false"},null,8,["src"])):de(s.$slots,"image",{key:1},()=>[J(MG)])],6),j("div",{class:L(c(o).e("description"))},[s.$slots.description?de(s.$slots,"description",{key:0}):(D(),G("p",{key:1},ze(c(r)),1))],2),s.$slots.default?(D(),G("div",{key:0,class:L(c(o).e("bottom"))},[de(s.$slots,"default")],2)):pe("v-if",!0)],2))}});var RG=Ve(kG,[["__file","empty.vue"]]);const YT=yt(RG),PG=Ue({size:{type:String,values:Pi},disabled:Boolean}),DG=Ue({...PG,model:Object,rules:{type:le(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:!0}}),IG={validate:(e,t,n)=>(Oe(e)||et(e))&&Jt(t)&&et(n)};function LG(){const e=F([]),t=A(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const s=e.value.indexOf(i);return s===-1&&t.value,s}function o(i,s){if(i&&s){const a=n(s);e.value.splice(a,1,i)}else i&&e.value.push(i)}function r(i){const s=n(i);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:r}}const Af=(e,t)=>{const n=Eo(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},NG="ElForm",OG=Q({name:NG}),FG=Q({...OG,props:DG,emits:IG,setup(e,{expose:t,emit:n}){const o=e,r=F(),i=Gt([]),s=Fn(),a=Pe("form"),l=A(()=>{const{labelPosition:_,inline:w}=o;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${_}`)]:_,[a.m("inline")]:w}]}),u=_=>i.find(w=>w.prop===_),d=_=>{i.push(_)},f=_=>{_.prop&&i.splice(i.indexOf(_),1)},p=(_=[])=>{o.model&&Af(i,_).forEach(w=>w.resetField())},h=(_=[])=>{Af(i,_).forEach(w=>w.clearValidate())},m=A(()=>!!o.model),v=_=>{if(i.length===0)return[];const w=Af(i,_);return w.length?w:[]},b=async _=>x(void 0,_),g=async(_=[])=>{if(!m.value)return!1;const w=v(_);if(w.length===0)return!0;let S={};for(const M of w)try{await M.validate(""),M.validateState==="error"&&M.resetField()}catch(T){S={...S,...T}}return Object.keys(S).length===0?!0:Promise.reject(S)},x=async(_=[],w)=>{let S=!1;const M=!it(w);try{return S=await g(_),S===!0&&await(w==null?void 0:w(S)),S}catch(T){if(T instanceof Error)throw T;const E=T;if(o.scrollToError&&r.value){const C=r.value.querySelector(`.${a.b()}-item.is-error`);C==null||C.scrollIntoView(o.scrollIntoViewOptions)}return!S&&await(w==null?void 0:w(!1,E)),M&&Promise.reject(E)}},y=_=>{var w;const S=Af(i,_)[0];S&&((w=S.$el)==null||w.scrollIntoView(o.scrollIntoViewOptions))};return Te(()=>o.rules,()=>{o.validateOnRuleChange&&b().catch(_=>void 0)},{deep:!0,flush:"post"}),Lt(pl,Gt({...jn(o),emit:n,resetFields:p,clearValidate:h,validateField:x,getField:u,addField:d,removeField:f,...LG()})),t({validate:b,validateField:x,resetFields:p,clearValidate:h,scrollToField:y,fields:i}),(_,w)=>(D(),G("form",{ref_key:"formRef",ref:r,class:L(c(l))},[de(_.$slots,"default")],2))}});var BG=Ve(FG,[["__file","form.vue"]]);function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;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 Rh(e,t,n){return UG()?Rh=Reflect.construct.bind():Rh=function(r,i,s){var a=[null];a.push.apply(a,i);var l=Function.bind.apply(r,a),u=new l;return s&&dd(u,s.prototype),u},Rh.apply(null,arguments)}function zG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function jv(e){var t=typeof Map=="function"?new Map:void 0;return jv=function(o){if(o===null||!zG(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return Rh(o,arguments,qv(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),dd(r,o)},jv(e)}var VG=/%[sdj%]/g,HG=function(){};function Yv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function dr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function WG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function to(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||WG(t)&&typeof e=="string"&&!e)}function GG(e,t,n){var o=[],r=0,i=e.length;function s(a){o.push.apply(o,a||[]),r++,r===i&&n(o)}e.forEach(function(a){t(a,s)})}function Qx(e,t,n){var o=0,r=e.length;function i(s){if(s&&s.length){n(s);return}var a=o;o=o+1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},yc={integer:function(t){return yc.number(t)&&parseInt(t,10)===t},float:function(t){return yc.number(t)&&!yc.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!yc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(oS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ZG())},hex:function(t){return typeof t=="string"&&!!t.match(oS.hex)}},JG=function(t,n,o,r,i){if(t.required&&n===void 0){XT(t,n,o,r,i);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?yc[a](n)||r.push(dr(i.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(dr(i.messages.types[a],t.fullField,t.type))},QG=function(t,n,o,r,i){var s=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(p?f="number":h?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),h&&(d=n.replace(u,"_").length),s?d!==t.len&&r.push(dr(i.messages[f].len,t.fullField,t.len)):a&&!l&&dt.max?r.push(dr(i.messages[f].max,t.fullField,t.max)):a&&l&&(dt.max)&&r.push(dr(i.messages[f].range,t.fullField,t.min,t.max))},xl="enum",eK=function(t,n,o,r,i){t[xl]=Array.isArray(t[xl])?t[xl]:[],t[xl].indexOf(n)===-1&&r.push(dr(i.messages[xl],t.fullField,t[xl].join(", ")))},tK=function(t,n,o,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(dr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||r.push(dr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},an={required:XT,whitespace:XG,type:JG,range:QG,enum:eK,pattern:tK},nK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n,"string")&&!t.required)return o();an.required(t,n,r,s,i,"string"),to(n,"string")||(an.type(t,n,r,s,i),an.range(t,n,r,s,i),an.pattern(t,n,r,s,i),t.whitespace===!0&&an.whitespace(t,n,r,s,i))}o(s)},oK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&an.type(t,n,r,s,i)}o(s)},rK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&(an.type(t,n,r,s,i),an.range(t,n,r,s,i))}o(s)},iK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&an.type(t,n,r,s,i)}o(s)},sK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),to(n)||an.type(t,n,r,s,i)}o(s)},aK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&(an.type(t,n,r,s,i),an.range(t,n,r,s,i))}o(s)},lK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&(an.type(t,n,r,s,i),an.range(t,n,r,s,i))}o(s)},uK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();an.required(t,n,r,s,i,"array"),n!=null&&(an.type(t,n,r,s,i),an.range(t,n,r,s,i))}o(s)},cK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&an.type(t,n,r,s,i)}o(s)},dK="enum",fK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i),n!==void 0&&an[dK](t,n,r,s,i)}o(s)},hK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n,"string")&&!t.required)return o();an.required(t,n,r,s,i),to(n,"string")||an.pattern(t,n,r,s,i)}o(s)},pK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n,"date")&&!t.required)return o();if(an.required(t,n,r,s,i),!to(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),an.type(t,l,r,s,i),l&&an.range(t,l.getTime(),r,s,i)}}o(s)},mK=function(t,n,o,r,i){var s=[],a=Array.isArray(n)?"array":typeof n;an.required(t,n,r,s,i,a),o(s)},dm=function(t,n,o,r,i){var s=t.type,a=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(to(n,s)&&!t.required)return o();an.required(t,n,r,a,i,s),to(n,s)||an.type(t,n,r,a,i)}o(a)},vK=function(t,n,o,r,i){var s=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(to(n)&&!t.required)return o();an.required(t,n,r,s,i)}o(s)},Bc={string:nK,method:oK,number:rK,boolean:iK,regexp:sK,integer:aK,float:lK,array:uK,object:cK,enum:fK,pattern:hK,date:pK,url:dm,hex:dm,email:dm,required:mK,any:vK};function Xv(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Zv=Xv(),Yd=function(){function e(n){this.rules=null,this._messages=Zv,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var s=o[i];r.rules[i]=Array.isArray(s)?s:[s]})},t.messages=function(o){return o&&(this._messages=nS(Xv(),o)),this._messages},t.validate=function(o,r,i){var s=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var a=o,l=r,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(v){var b=[],g={};function x(_){if(Array.isArray(_)){var w;b=(w=b).concat.apply(w,_)}else b.push(_)}for(var y=0;y");const r=Pe("form"),i=F(),s=F(0),a=()=>{var d;if((d=i.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(d="update")=>{Qe(()=>{t.default&&e.isAutoWidth&&(d==="update"?s.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(s.value)))})},u=()=>l("update");return xt(()=>{u()}),Qt(()=>{l("remove")}),ei(()=>u()),Te(s,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),vn(A(()=>{var d,f;return(f=(d=i.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!t)return null;const{isAutoWidth:p}=e;if(p){const h=n==null?void 0:n.autoLabelWidth,m=o==null?void 0:o.hasLabel,v={};if(m&&h&&h!=="auto"){const b=Math.max(0,Number.parseInt(h,10)-s.value),x=(o.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";b&&(v[x]=`${b}px`)}return J("div",{ref:i,class:[r.be("item","label-wrap")],style:v},[(d=t.default)==null?void 0:d.call(t)])}else return J(tt,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const _K=Q({name:"ElFormItem"}),xK=Q({..._K,props:bK,setup(e,{expose:t}){const n=e,o=Wn(),r=je(pl,void 0),i=je(Mi,void 0),s=Fn(void 0,{formItem:!1}),a=Pe("form-item"),l=fo().value,u=F([]),d=F(""),f=E8(d,100),p=F(""),h=F();let m,v=!1;const b=A(()=>n.labelPosition||(r==null?void 0:r.labelPosition)),g=A(()=>{if(b.value==="top")return{};const fe=Sn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return fe?{width:fe}:{}}),x=A(()=>{if(b.value==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&C)return{};const fe=Sn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!o.label?{marginLeft:fe}:{}}),y=A(()=>[a.b(),a.m(s.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",N.value||n.required),a.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:r==null?void 0:r.statusIcon,[a.m(`label-${b.value}`)]:b.value}]),_=A(()=>Jt(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),w=A(()=>[a.e("error"),{[a.em("error","inline")]:_.value}]),S=A(()=>n.prop?et(n.prop)?n.prop:n.prop.join("."):""),M=A(()=>!!(n.label||o.label)),T=A(()=>{var fe;return(fe=n.for)!=null?fe:u.value.length===1?u.value[0]:void 0}),E=A(()=>!T.value&&M.value),C=!!i,k=A(()=>{const fe=r==null?void 0:r.model;if(!(!fe||!n.prop))return Nc(fe,n.prop).value}),R=A(()=>{const{required:fe}=n,be=[];n.rules&&be.push(...Eo(n.rules));const De=r==null?void 0:r.rules;if(De&&n.prop){const Re=Nc(De,n.prop).value;Re&&be.push(...Eo(Re))}if(fe!==void 0){const Re=be.map((V,ee)=>[V,ee]).filter(([V])=>Object.keys(V).includes("required"));if(Re.length>0)for(const[V,ee]of Re)V.required!==fe&&(be[ee]={...V,required:fe});else be.push({required:fe})}return be}),B=A(()=>R.value.length>0),H=fe=>R.value.filter(De=>!De.trigger||!fe?!0:Oe(De.trigger)?De.trigger.includes(fe):De.trigger===fe).map(({trigger:De,...Re})=>Re),N=A(()=>R.value.some(fe=>fe.required)),P=A(()=>{var fe;return f.value==="error"&&n.showMessage&&((fe=r==null?void 0:r.showMessage)!=null?fe:!0)}),U=A(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),I=fe=>{d.value=fe},O=fe=>{var be,De;const{errors:Re,fields:V}=fe;(!Re||!V)&&console.error(fe),I("error"),p.value=Re?(De=(be=Re==null?void 0:Re[0])==null?void 0:be.message)!=null?De:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,p.value)},q=()=>{I("success"),r==null||r.emit("validate",n.prop,!0,"")},K=async fe=>{const be=S.value;return new Yd({[be]:fe}).validate({[be]:k.value},{firstFields:!0}).then(()=>(q(),!0)).catch(Re=>(O(Re),Promise.reject(Re)))},oe=async(fe,be)=>{if(v||!n.prop)return!1;const De=it(be);if(!B.value)return be==null||be(!1),!1;const Re=H(fe);return Re.length===0?(be==null||be(!0),!0):(I("validating"),K(Re).then(()=>(be==null||be(!0),!0)).catch(V=>{const{fields:ee}=V;return be==null||be(!1,ee),De?!1:Promise.reject(ee)}))},X=()=>{I(""),p.value="",v=!1},Y=async()=>{const fe=r==null?void 0:r.model;if(!fe||!n.prop)return;const be=Nc(fe,n.prop);v=!0,be.value=R2(m),await Qe(),X(),v=!1},ie=fe=>{u.value.includes(fe)||u.value.push(fe)},ae=fe=>{u.value=u.value.filter(be=>be!==fe)};Te(()=>n.error,fe=>{p.value=fe||"",I(fe?"error":"")},{immediate:!0}),Te(()=>n.validateStatus,fe=>I(fe||""));const re=Gt({...jn(n),$el:h,size:s,validateState:d,labelId:l,inputIds:u,isGroup:E,hasLabel:M,fieldValue:k,addInputId:ie,removeInputId:ae,resetField:Y,clearValidate:X,validate:oe});return Lt(Mi,re),xt(()=>{n.prop&&(r==null||r.addField(re),m=R2(k.value))}),Qt(()=>{r==null||r.removeField(re)}),t({size:s,validateMessage:p,validateState:d,validate:oe,clearValidate:X,resetField:Y}),(fe,be)=>{var De;return D(),G("div",{ref_key:"formItemRef",ref:h,class:L(c(y)),role:c(E)?"group":void 0,"aria-labelledby":c(E)?c(l):void 0},[J(c(yK),{"is-auto-width":c(g).width==="auto","update-all":((De=c(r))==null?void 0:De.labelWidth)==="auto"},{default:se(()=>[c(M)?(D(),_e(Rt(c(T)?"label":"div"),{key:0,id:c(l),for:c(T),class:L(c(a).e("label")),style:rt(c(g))},{default:se(()=>[de(fe.$slots,"label",{label:c(U)},()=>[Tt(ze(c(U)),1)])]),_:3},8,["id","for","class","style"])):pe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),j("div",{class:L(c(a).e("content")),style:rt(c(x))},[de(fe.$slots,"default"),J(WE,{name:`${c(a).namespace.value}-zoom-in-top`},{default:se(()=>[c(P)?de(fe.$slots,"error",{key:0,error:p.value},()=>[j("div",{class:L(c(w))},ze(p.value),3)]):pe("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var ZT=Ve(xK,[["__file","form-item.vue"]]);const SK=yt(BG,{FormItem:ZT}),wK=gn(ZT),CK=Ue({urlList:{type:le(Array),default:()=>_n([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:le(String)}}),EK={close:()=>!0,switch:e=>st(e),rotate:e=>st(e)},MK=Q({name:"ElImageViewer"}),TK=Q({...MK,props:CK,emits:EK,setup(e,{expose:t,emit:n}){var o;const r=e,i={CONTAIN:{name:"contain",icon:ts(zF)},ORIGINAL:{name:"original",icon:ts(a5)}};let s,a="";const{t:l}=$t(),u=Pe("image-viewer"),{nextZIndex:d}=qu(),f=F(),p=F([]),h=MP(),m=F(!0),v=F(r.initialIndex),b=fn(i.CONTAIN),g=F({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),x=F((o=r.zIndex)!=null?o:d()),y=A(()=>{const{urlList:ae}=r;return ae.length<=1}),_=A(()=>v.value===0),w=A(()=>v.value===r.urlList.length-1),S=A(()=>r.urlList[v.value]),M=A(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!r.infinite&&_.value)]),T=A(()=>[u.e("btn"),u.e("next"),u.is("disabled",!r.infinite&&w.value)]),E=A(()=>{const{scale:ae,deg:re,offsetX:fe,offsetY:be,enableTransition:De}=g.value;let Re=fe/ae,V=be/ae;const ee=re*Math.PI/180,z=Math.cos(ee),ve=Math.sin(ee);Re=Re*z+V*ve,V=V*z-fe/ae*ve;const ce={transform:`scale(${ae}) rotate(${re}deg) translate(${Re}px, ${V}px)`,transition:De?"transform .3s":""};return b.value.name===i.CONTAIN.name&&(ce.maxWidth=ce.maxHeight="100%"),ce}),C=A(()=>`${v.value+1} / ${r.urlList.length}`);function k(){B(),s==null||s(),document.body.style.overflow=a,n("close")}function R(){const ae=Ya(fe=>{switch(fe.code){case Ke.esc:r.closeOnPressEscape&&k();break;case Ke.space:I();break;case Ke.left:q();break;case Ke.up:oe("zoomIn");break;case Ke.right:K();break;case Ke.down:oe("zoomOut");break}}),re=Ya(fe=>{const be=fe.deltaY||fe.deltaX;oe(be<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});h.run(()=>{on(document,"keydown",ae),on(document,"wheel",re)})}function B(){h.stop()}function H(){m.value=!1}function N(ae){m.value=!1,ae.target.alt=l("el.image.error")}function P(ae){if(m.value||ae.button!==0||!f.value)return;g.value.enableTransition=!1;const{offsetX:re,offsetY:fe}=g.value,be=ae.pageX,De=ae.pageY,Re=Ya(ee=>{g.value={...g.value,offsetX:re+ee.pageX-be,offsetY:fe+ee.pageY-De}}),V=on(document,"mousemove",Re);on(document,"mouseup",()=>{V()}),ae.preventDefault()}function U(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(m.value)return;const ae=gu(i),re=Object.values(i),fe=b.value.name,De=(re.findIndex(Re=>Re.name===fe)+1)%ae.length;b.value=i[ae[De]],U()}function O(ae){const re=r.urlList.length;v.value=(ae+re)%re}function q(){_.value&&!r.infinite||O(v.value-1)}function K(){w.value&&!r.infinite||O(v.value+1)}function oe(ae,re={}){if(m.value)return;const{minScale:fe,maxScale:be}=r,{zoomRate:De,rotateDeg:Re,enableTransition:V}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...re};switch(ae){case"zoomOut":g.value.scale>fe&&(g.value.scale=Number.parseFloat((g.value.scale/De).toFixed(3)));break;case"zoomIn":g.value.scale0)return ae.preventDefault(),!1}}return Te(S,()=>{Qe(()=>{const ae=p.value[0];ae!=null&&ae.complete||(m.value=!0)})}),Te(v,ae=>{U(),n("switch",ae)}),xt(()=>{R(),s=on("wheel",ie,{passive:!1}),a=document.body.style.overflow,document.body.style.overflow="hidden"}),t({setActiveItem:O}),(ae,re)=>(D(),_e(c(Xu),{to:"body",disabled:!ae.teleported},{default:se(()=>[J(Hn,{name:"viewer-fade",appear:""},{default:se(()=>[j("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:L(c(u).e("wrapper")),style:rt({zIndex:x.value})},[J(c(Yu),{loop:"",trapped:"","focus-trap-el":f.value,"focus-start-el":"container",onFocusoutPrevented:X,onReleaseRequested:Y},{default:se(()=>[j("div",{class:L(c(u).e("mask")),onClick:dt(fe=>ae.hideOnClickModal&&k(),["self"])},null,10,["onClick"]),pe(" CLOSE "),j("span",{class:L([c(u).e("btn"),c(u).e("close")]),onClick:k},[J(c(Je),null,{default:se(()=>[J(c(Ir))]),_:1})],2),pe(" ARROW "),c(y)?pe("v-if",!0):(D(),G(tt,{key:0},[j("span",{class:L(c(M)),onClick:q},[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1})],2),j("span",{class:L(c(T)),onClick:K},[J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})],2)],64)),ae.$slots.progress||ae.showProgress?(D(),G("div",{key:1,class:L([c(u).e("btn"),c(u).e("progress")])},[de(ae.$slots,"progress",{activeIndex:v.value,total:ae.urlList.length},()=>[Tt(ze(c(C)),1)])],2)):pe("v-if",!0),pe(" ACTIONS "),j("div",{class:L([c(u).e("btn"),c(u).e("actions")])},[j("div",{class:L(c(u).e("actions__inner"))},[de(ae.$slots,"toolbar",{actions:oe,prev:q,next:K,reset:I,activeIndex:v.value,setActiveItem:O},()=>[J(c(Je),{onClick:fe=>oe("zoomOut")},{default:se(()=>[J(c(w5))]),_:1},8,["onClick"]),J(c(Je),{onClick:fe=>oe("zoomIn")},{default:se(()=>[J(c(l3))]),_:1},8,["onClick"]),j("i",{class:L(c(u).e("actions__divider"))},null,2),J(c(Je),{onClick:I},{default:se(()=>[(D(),_e(Rt(c(b).icon)))]),_:1}),j("i",{class:L(c(u).e("actions__divider"))},null,2),J(c(Je),{onClick:fe=>oe("anticlockwise")},{default:se(()=>[J(c(o5))]),_:1},8,["onClick"]),J(c(Je),{onClick:fe=>oe("clockwise")},{default:se(()=>[J(c(i5))]),_:1},8,["onClick"])])],2)],2),pe(" CANVAS "),j("div",{class:L(c(u).e("canvas"))},[(D(!0),G(tt,null,Nt(ae.urlList,(fe,be)=>(D(),G(tt,{key:be},[be===v.value?(D(),G("img",{key:0,ref_for:!0,ref:De=>p.value[be]=De,src:fe,style:rt(c(E)),class:L(c(u).e("img")),crossorigin:ae.crossorigin,onLoad:H,onError:N,onMousedown:P},null,46,["src","crossorigin"])):pe("v-if",!0)],64))),128))],2),de(ae.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});var AK=Ve(TK,[["__file","image-viewer.vue"]]);const JT=yt(AK),kK=Ue({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:le([String,Object])},previewSrcList:{type:le(Array),default:()=>_n([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:{type:Boolean,default:!1},crossorigin:{type:le(String)}}),RK={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>st(e),close:()=>!0,show:()=>!0},PK=Q({name:"ElImage",inheritAttrs:!1}),DK=Q({...PK,props:kK,emits:RK,setup(e,{expose:t,emit:n}){const o=e,{t:r}=$t(),i=Pe("image"),s=hs(),a=A(()=>rd(Object.entries(s).filter(([P])=>/^(data-|on[A-Z])/i.test(P)||["id","style"].includes(P)))),l=Wd({excludeListeners:!0,excludeKeys:A(()=>Object.keys(a.value))}),u=F(),d=F(!1),f=F(!0),p=F(!1),h=F(),m=F(),v=Ft&&"loading"in HTMLImageElement.prototype;let b;const g=A(()=>[i.e("inner"),y.value&&i.e("preview"),f.value&&i.is("loading")]),x=A(()=>{const{fit:P}=o;return Ft&&P?{objectFit:P}:{}}),y=A(()=>{const{previewSrcList:P}=o;return Oe(P)&&P.length>0}),_=A(()=>{const{previewSrcList:P,initialIndex:U}=o;let I=U;return U>P.length-1&&(I=0),I}),w=A(()=>o.loading==="eager"?!1:!v&&o.loading==="lazy"||o.lazy),S=()=>{Ft&&(f.value=!0,d.value=!1,u.value=o.src)};function M(P){f.value=!1,d.value=!1,n("load",P)}function T(P){f.value=!1,d.value=!0,n("error",P)}function E(){zV(h.value,m.value)&&(S(),R())}const C=$M(E,200,!0);async function k(){var P;if(!Ft)return;await Qe();const{scrollContainer:U}=o;Fo(U)?m.value=U:et(U)&&U!==""?m.value=(P=document.querySelector(U))!=null?P:void 0:h.value&&(m.value=vy(h.value)),m.value&&(b=on(m,"scroll",C),setTimeout(()=>E(),100))}function R(){!Ft||!m.value||!C||(b==null||b(),m.value=void 0)}function B(){y.value&&(p.value=!0,n("show"))}function H(){p.value=!1,n("close")}function N(P){n("switch",P)}return Te(()=>o.src,()=>{w.value?(f.value=!0,d.value=!1,R(),k()):S()}),xt(()=>{w.value?k():S()}),t({showPreview:B}),(P,U)=>(D(),G("div",Dt({ref_key:"container",ref:h},c(a),{class:[c(i).b(),P.$attrs.class]}),[d.value?de(P.$slots,"error",{key:0},()=>[j("div",{class:L(c(i).e("error"))},ze(c(r)("el.image.error")),3)]):(D(),G(tt,{key:1},[u.value!==void 0?(D(),G("img",Dt({key:0},c(l),{src:u.value,loading:P.loading,style:c(x),class:c(g),crossorigin:P.crossorigin,onClick:B,onLoad:M,onError:T}),null,16,["src","loading","crossorigin"])):pe("v-if",!0),f.value?(D(),G("div",{key:1,class:L(c(i).e("wrapper"))},[de(P.$slots,"placeholder",{},()=>[j("div",{class:L(c(i).e("placeholder"))},null,2)])],2)):pe("v-if",!0)],64)),c(y)?(D(),G(tt,{key:2},[p.value?(D(),_e(c(JT),{key:0,"z-index":P.zIndex,"initial-index":c(_),infinite:P.infinite,"zoom-rate":P.zoomRate,"min-scale":P.minScale,"max-scale":P.maxScale,"show-progress":P.showProgress,"url-list":P.previewSrcList,crossorigin:P.crossorigin,"hide-on-click-modal":P.hideOnClickModal,teleported:P.previewTeleported,"close-on-press-escape":P.closeOnPressEscape,onClose:H,onSwitch:N},er({toolbar:se(I=>[de(P.$slots,"toolbar",cr(wi(I)))]),default:se(()=>[P.$slots.viewer?(D(),G("div",{key:0},[de(P.$slots,"viewer")])):pe("v-if",!0)]),_:2},[P.$slots.progress?{name:"progress",fn:se(I=>[de(P.$slots,"progress",cr(wi(I)))])}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):pe("v-if",!0)],64)):pe("v-if",!0)],16))}});var IK=Ve(DK,[["__file","image.vue"]]);const LK=yt(IK),NK=Ue({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:{type:[Number,null]},readonly:Boolean,disabled:Boolean,size:Vn,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||st(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ho(["ariaLabel"])}),OK={[It]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[zn]:e=>st(e)||qn(e),[vt]:e=>st(e)||qn(e)},FK=Q({name:"ElInputNumber"}),BK=Q({...FK,props:NK,emits:OK,setup(e,{expose:t,emit:n}){const o=e,{t:r}=$t(),i=Pe("input-number"),s=F(),a=Gt({currentValue:o.modelValue,userInput:null}),{formItem:l}=xo(),u=A(()=>st(o.modelValue)&&o.modelValue<=o.min),d=A(()=>st(o.modelValue)&&o.modelValue>=o.max),f=A(()=>{const N=g(o.step);return Bt(o.precision)?Math.max(g(o.modelValue),N):(N>o.precision,o.precision)}),p=A(()=>o.controls&&o.controlsPosition==="right"),h=Fn(),m=po(),v=A(()=>{if(a.userInput!==null)return a.userInput;let N=a.currentValue;if(qn(N))return"";if(st(N)){if(Number.isNaN(N))return"";Bt(o.precision)||(N=N.toFixed(o.precision))}return N}),b=(N,P)=>{if(Bt(P)&&(P=f.value),P===0)return Math.round(N);let U=String(N);const I=U.indexOf(".");if(I===-1||!U.replace(".","").split("")[I+P])return N;const K=U.length;return U.charAt(K-1)==="5"&&(U=`${U.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(U).toFixed(P))},g=N=>{if(qn(N))return 0;const P=N.toString(),U=P.indexOf(".");let I=0;return U!==-1&&(I=P.length-U-1),I},x=(N,P=1)=>st(N)?b(N+o.step*P):a.currentValue,y=()=>{if(o.readonly||m.value||d.value)return;const N=Number(v.value)||0,P=x(N);S(P),n(zn,a.currentValue),B()},_=()=>{if(o.readonly||m.value||u.value)return;const N=Number(v.value)||0,P=x(N,-1);S(P),n(zn,a.currentValue),B()},w=(N,P)=>{const{max:U,min:I,step:O,precision:q,stepStrictly:K,valueOnClear:oe}=o;UU||XU?U:I,P&&n(vt,X)),X},S=(N,P=!0)=>{var U;const I=a.currentValue,O=w(N);if(!P){n(vt,O);return}I===O&&N||(a.userInput=null,n(vt,O),I!==O&&n(It,O,I),o.validateEvent&&((U=l==null?void 0:l.validate)==null||U.call(l,"change").catch(q=>void 0)),a.currentValue=O)},M=N=>{a.userInput=N;const P=N===""?null:Number(N);n(zn,P),S(P,!1)},T=N=>{const P=N!==""?Number(N):"";(st(P)&&!Number.isNaN(P)||N==="")&&S(P),B(),a.userInput=null},E=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},C=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},k=N=>{n("focus",N)},R=N=>{var P,U;a.userInput=null,a.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),n("blur",N),o.validateEvent&&((U=l==null?void 0:l.validate)==null||U.call(l,"blur").catch(I=>void 0))},B=()=>{a.currentValue!==o.modelValue&&(a.currentValue=o.modelValue)},H=N=>{document.activeElement===N.target&&N.preventDefault()};return Te(()=>o.modelValue,(N,P)=>{const U=w(N,!0);a.userInput===null&&U!==P&&(a.currentValue=U)},{immediate:!0}),xt(()=>{var N;const{min:P,max:U,modelValue:I}=o,O=(N=s.value)==null?void 0:N.input;if(O.setAttribute("role","spinbutton"),Number.isFinite(U)?O.setAttribute("aria-valuemax",String(U)):O.removeAttribute("aria-valuemax"),Number.isFinite(P)?O.setAttribute("aria-valuemin",String(P)):O.removeAttribute("aria-valuemin"),O.setAttribute("aria-valuenow",a.currentValue||a.currentValue===0?String(a.currentValue):""),O.setAttribute("aria-disabled",String(m.value)),!st(I)&&I!=null){let q=Number(I);Number.isNaN(q)&&(q=null),n(vt,q)}O.addEventListener("wheel",H,{passive:!1})}),ei(()=>{var N,P;const U=(N=s.value)==null?void 0:N.input;U==null||U.setAttribute("aria-valuenow",`${(P=a.currentValue)!=null?P:""}`)}),t({focus:E,blur:C}),(N,P)=>(D(),G("div",{class:L([c(i).b(),c(i).m(c(h)),c(i).is("disabled",c(m)),c(i).is("without-controls",!N.controls),c(i).is("controls-right",c(p))]),onDragstart:dt(()=>{},["prevent"])},[N.controls?_t((D(),G("span",{key:0,role:"button","aria-label":c(r)("el.inputNumber.decrease"),class:L([c(i).e("decrease"),c(i).is("disabled",c(u))]),onKeydown:Zt(_,["enter"])},[de(N.$slots,"decrease-icon",{},()=>[J(c(Je),null,{default:se(()=>[c(p)?(D(),_e(c(Di),{key:0})):(D(),_e(c(qF),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[c(dp),_]]):pe("v-if",!0),N.controls?_t((D(),G("span",{key:1,role:"button","aria-label":c(r)("el.inputNumber.increase"),class:L([c(i).e("increase"),c(i).is("disabled",c(d))]),onKeydown:Zt(y,["enter"])},[de(N.$slots,"increase-icon",{},()=>[J(c(Je),null,{default:se(()=>[c(p)?(D(),_e(c(d0),{key:0})):(D(),_e(c(s3),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[c(dp),y]]):pe("v-if",!0),J(c(To),{id:N.id,ref_key:"input",ref:s,type:"number",step:N.step,"model-value":c(v),placeholder:N.placeholder,readonly:N.readonly,disabled:c(m),size:c(h),max:N.max,min:N.min,name:N.name,"aria-label":N.ariaLabel,"validate-event":!1,onKeydown:[Zt(dt(y,["prevent"]),["up"]),Zt(dt(_,["prevent"]),["down"])],onBlur:R,onFocus:k,onInput:M,onChange:T},er({_:2},[N.$slots.prefix?{name:"prefix",fn:se(()=>[de(N.$slots,"prefix")])}:void 0,N.$slots.suffix?{name:"suffix",fn:se(()=>[de(N.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var $K=Ve(BK,[["__file","input-number.vue"]]);const QT=yt($K),UK=Ue({modelValue:{type:le(Array)},max:Number,tagType:{...us.type,default:"info"},tagEffect:us.effect,trigger:{type:le(String),default:Ke.enter},draggable:{type:Boolean,default:!1},delimiter:{type:[String,RegExp],default:""},size:Vn,clearable:Boolean,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:String,default:"off"},saveOnBlur:{type:Boolean,default:!0},ariaLabel:String}),zK={[vt]:e=>Oe(e)||Bt(e),[It]:e=>Oe(e)||Bt(e),[zn]:e=>et(e),"add-tag":e=>et(e),"remove-tag":e=>et(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function VK({props:e,emit:t,formItem:n}){const o=po(),r=Fn(),i=fn(),s=F(),a=A(()=>["small"].includes(r.value)?"small":"default"),l=A(()=>{var E;return(E=e.modelValue)!=null&&E.length?void 0:e.placeholder}),u=A(()=>!(e.readonly||o.value)),d=A(()=>{var E,C;return Bt(e.max)?!1:((C=(E=e.modelValue)==null?void 0:E.length)!=null?C:0)>=e.max}),f=E=>{var C,k;if(d.value){s.value=void 0;return}if(!w.value){if(e.delimiter){const R=(C=s.value)==null?void 0:C.replace(e.delimiter,"");(R==null?void 0:R.length)!==((k=s.value)==null?void 0:k.length)&&(s.value=R,h())}t(zn,E.target.value)}},p=E=>{var C;if(!w.value)switch(E.code){case e.trigger:E.preventDefault(),E.stopPropagation(),h();break;case Ke.numpadEnter:e.trigger===Ke.enter&&(E.preventDefault(),E.stopPropagation(),h());break;case Ke.backspace:!s.value&&((C=e.modelValue)!=null&&C.length)&&(E.preventDefault(),E.stopPropagation(),m(e.modelValue.length-1));break}},h=()=>{var E,C;const k=(E=s.value)==null?void 0:E.trim();if(!k||d.value)return;const R=[...(C=e.modelValue)!=null?C:[],k];t(vt,R),t(It,R),t("add-tag",k),s.value=void 0},m=E=>{var C;const k=((C=e.modelValue)!=null?C:[]).slice(),[R]=k.splice(E,1);t(vt,k),t(It,k),t("remove-tag",R)},v=()=>{s.value=void 0,t(vt,void 0),t(It,void 0),t("clear")},b=(E,C,k)=>{var R;const B=((R=e.modelValue)!=null?R:[]).slice(),[H]=B.splice(E,1),N=C>E&&k==="before"?-1:C{var E;(E=i.value)==null||E.focus()},x=()=>{var E;(E=i.value)==null||E.blur()},{wrapperRef:y,isFocused:_}=ma(i,{beforeFocus(){return o.value},afterBlur(){var E;e.saveOnBlur?h():s.value=void 0,e.validateEvent&&((E=n==null?void 0:n.validate)==null||E.call(n,"blur").catch(C=>void 0))}}),{isComposing:w,handleCompositionStart:S,handleCompositionUpdate:M,handleCompositionEnd:T}=Gd({afterComposition:f});return Te(()=>e.modelValue,()=>{var E;e.validateEvent&&((E=n==null?void 0:n.validate)==null||E.call(n,It).catch(C=>void 0))}),{inputRef:i,wrapperRef:y,isFocused:_,isComposing:w,inputValue:s,size:r,tagSize:a,placeholder:l,closable:u,disabled:o,inputLimit:d,handleDragged:b,handleInput:f,handleKeydown:p,handleAddTag:h,handleRemoveTag:m,handleClear:v,handleCompositionStart:S,handleCompositionUpdate:M,handleCompositionEnd:T,focus:g,blur:x}}function HK(){const e=F(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function t1(){const e=fn(),t=F(0),n=11,o=A(()=>({minWidth:`${Math.max(t.value,n)}px`}));return vn(e,()=>{var i,s;t.value=(s=(i=e.value)==null?void 0:i.getBoundingClientRect().width)!=null?s:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:o}}function WK({wrapperRef:e,handleDragged:t,afterDragged:n}){const o=Pe("input-tag"),r=fn(),i=F(!1);let s,a,l,u;function d(m){return`.${o.e("inner")} .${o.namespace.value}-tag:nth-child(${m+1})`}function f(m,v){s=v,a=e.value.querySelector(d(v)),a&&(a.style.opacity="0.5"),m.dataTransfer.effectAllowed="move"}function p(m,v){if(l=v,m.preventDefault(),m.dataTransfer.dropEffect="move",Bt(s)||s===v){i.value=!1;return}const b=e.value.querySelector(d(v)).getBoundingClientRect(),g=s+1!==v,x=s-1!==v,y=m.clientX-b.left,_=g?x?.5:1:-1,w=x?g?.5:0:1;y<=b.width*_?u="before":y>b.width*w?u="after":u=void 0;const S=e.value.querySelector(`.${o.e("inner")}`),M=S.getBoundingClientRect(),T=Number.parseFloat(Xi(S,"gap"))/2,E=b.top-M.top;let C=-9999;if(u==="before")C=Math.max(b.left-M.left-T,Math.floor(-T/2));else if(u==="after"){const k=b.right-M.left;C=k+(M.width===k?Math.floor(T/2):T)}JM(r.value,{top:`${E}px`,left:`${C}px`}),i.value=!!u}function h(m){m.preventDefault(),a&&(a.style.opacity=""),u&&!Bt(s)&&!Bt(l)&&s!==l&&t(s,l,u),i.value=!1,s=void 0,a=null,l=void 0,u=void 0,n==null||n()}return{dropIndicatorRef:r,showDropIndicator:i,handleDragStart:f,handleDragOver:p,handleDragEnd:h}}function GK({props:e,isFocused:t,hovering:n,disabled:o,inputValue:r,size:i,validateState:s,validateIcon:a,needStatusIcon:l}){const u=hs(),d=Wn(),f=Pe("input-tag"),p=Pe("input"),h=A(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",o.value),f.m(i.value),f.e("wrapper"),u.class]),m=A(()=>[u.style]),v=A(()=>{var x,y;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((x=e.modelValue)!=null&&x.length)&&!d.prefix),f.is("right-space",!((y=e.modelValue)!=null&&y.length)&&!g.value)]}),b=A(()=>{var x;return e.clearable&&!o.value&&!e.readonly&&(((x=e.modelValue)==null?void 0:x.length)||r.value)&&(t.value||n.value)}),g=A(()=>d.suffix||b.value||s.value&&a.value&&l.value);return{ns:f,nsInput:p,containerKls:h,containerStyle:m,innerKls:v,showClear:b,showSuffix:g}}const KK=Q({name:"ElInputTag",inheritAttrs:!1}),qK=Q({...KK,props:UK,emits:zK,setup(e,{expose:t,emit:n}){const o=e,r=Wd(),i=Wn(),{form:s,formItem:a}=xo(),{inputId:l}=Br(o,{formItemContext:a}),u=A(()=>{var V;return(V=s==null?void 0:s.statusIcon)!=null?V:!1}),d=A(()=>(a==null?void 0:a.validateState)||""),f=A(()=>d.value&&h0[d.value]),{inputRef:p,wrapperRef:h,isFocused:m,inputValue:v,size:b,tagSize:g,placeholder:x,closable:y,disabled:_,handleDragged:w,handleInput:S,handleKeydown:M,handleRemoveTag:T,handleClear:E,handleCompositionStart:C,handleCompositionUpdate:k,handleCompositionEnd:R,focus:B,blur:H}=VK({props:o,emit:n,formItem:a}),{hovering:N,handleMouseEnter:P,handleMouseLeave:U}=HK(),{calculatorRef:I,inputStyle:O}=t1(),{dropIndicatorRef:q,showDropIndicator:K,handleDragStart:oe,handleDragOver:X,handleDragEnd:Y}=WK({wrapperRef:h,handleDragged:w,afterDragged:B}),{ns:ie,nsInput:ae,containerKls:re,containerStyle:fe,innerKls:be,showClear:De,showSuffix:Re}=GK({props:o,hovering:N,isFocused:m,inputValue:v,disabled:_,size:b,validateState:d,validateIcon:f,needStatusIcon:u});return t({focus:B,blur:H}),(V,ee)=>(D(),G("div",{ref_key:"wrapperRef",ref:h,class:L(c(re)),style:rt(c(fe)),onMouseenter:c(P),onMouseleave:c(U)},[c(i).prefix?(D(),G("div",{key:0,class:L(c(ie).e("prefix"))},[de(V.$slots,"prefix")],2)):pe("v-if",!0),j("div",{class:L(c(be))},[(D(!0),G(tt,null,Nt(V.modelValue,(z,ve)=>(D(),_e(c(wu),{key:ve,size:c(g),closable:c(y),type:V.tagType,effect:V.tagEffect,draggable:c(y)&&V.draggable,"disable-transitions":"",onClose:ce=>c(T)(ve),onDragstart:ce=>c(oe)(ce,ve),onDragover:ce=>c(X)(ce,ve),onDragend:c(Y),onDrop:dt(()=>{},["stop"])},{default:se(()=>[de(V.$slots,"tag",{value:z,index:ve},()=>[Tt(ze(z),1)])]),_:2},1032,["size","closable","type","effect","draggable","onClose","onDragstart","onDragover","onDragend","onDrop"]))),128)),j("div",{class:L(c(ie).e("input-wrapper"))},[_t(j("input",Dt({id:c(l),ref_key:"inputRef",ref:p,"onUpdate:modelValue":z=>hn(v)?v.value=z:null},c(r),{type:"text",minlength:V.minlength,maxlength:V.maxlength,disabled:c(_),readonly:V.readonly,autocomplete:V.autocomplete,tabindex:V.tabindex,placeholder:c(x),autofocus:V.autofocus,ariaLabel:V.ariaLabel,class:c(ie).e("input"),style:c(O),onCompositionstart:c(C),onCompositionupdate:c(k),onCompositionend:c(R),onInput:c(S),onKeydown:c(M)}),null,16,["id","onUpdate:modelValue","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onKeydown"]),[[Nd,c(v)]]),j("span",{ref_key:"calculatorRef",ref:I,"aria-hidden":"true",class:L(c(ie).e("input-calculator")),textContent:ze(c(v))},null,10,["textContent"])],2),_t(j("div",{ref_key:"dropIndicatorRef",ref:q,class:L(c(ie).e("drop-indicator"))},null,2),[[Vt,c(K)]])],2),c(Re)?(D(),G("div",{key:1,class:L(c(ie).e("suffix"))},[de(V.$slots,"suffix"),c(De)?(D(),_e(c(Je),{key:0,class:L([c(ie).e("icon"),c(ie).e("clear")]),onMousedown:dt(c(jt),["prevent"]),onClick:c(E)},{default:se(()=>[J(c(gs))]),_:1},8,["class","onMousedown","onClick"])):pe("v-if",!0),c(d)&&c(f)&&c(u)?(D(),_e(c(Je),{key:1,class:L([c(ae).e("icon"),c(ae).e("validateIcon"),c(ae).is("loading",c(d)==="validating")])},{default:se(()=>[(D(),_e(Rt(c(f))))]),_:1},8,["class"])):pe("v-if",!0)],2)):pe("v-if",!0)],46,["onMouseenter","onMouseleave"]))}});var jK=Ve(qK,[["__file","input-tag.vue"]]);const YK=yt(jK),XK=Ue({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:tn}}),ZK={click:e=>e instanceof MouseEvent},JK=Q({name:"ElLink"}),QK=Q({...JK,props:XK,emits:ZK,setup(e,{emit:t}){const n=e,o=Vd("link");os({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},A(()=>Jt(n.underline)));const r=Pe("link"),i=A(()=>{var l,u,d;return[r.b(),r.m((d=(u=n.type)!=null?u:(l=o.value)==null?void 0:l.type)!=null?d:"default"),r.is("disabled",n.disabled),r.is("underline",s.value==="always"),r.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=A(()=>{var l,u,d;return Jt(n.underline)?n.underline?"hover":"never":(d=(u=n.underline)!=null?u:(l=o.value)==null?void 0:l.underline)!=null?d:"hover"});function a(l){n.disabled||t("click",l)}return(l,u)=>(D(),G("a",{class:L(c(i)),href:l.disabled||!l.href?void 0:l.href,target:l.disabled||!l.href?void 0:l.target,onClick:a},[l.icon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(l.icon)))]),_:1})):pe("v-if",!0),l.$slots.default?(D(),G("span",{key:1,class:L(c(r).e("inner"))},[de(l.$slots,"default")],2)):pe("v-if",!0),l.$slots.icon?de(l.$slots,"icon",{key:2}):pe("v-if",!0)],10,["href","target"]))}});var eq=Ve(QK,[["__file","link.vue"]]);const tq=yt(eq);let nq=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let r=!1;switch(o.code){case Ke.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case Ke.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case Ke.tab:{gh(t,"mouseleave");break}case Ke.enter:case Ke.numpadEnter:case Ke.space:{r=!0,o.currentTarget.click();break}}return r&&(o.preventDefault(),o.stopPropagation()),!1})})}},oq=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new nq(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ke.down:{gh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ke.up:{gh(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ke.tab:{gh(t.currentTarget,"mouseleave");break}case Ke.enter:case Ke.numpadEnter:case Ke.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},rq=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new oq(o,t)})}};const iq=Q({name:"ElMenuCollapseTransition"}),sq=Q({...iq,setup(e){const t=Pe("menu"),n={onBeforeEnter:o=>o.style.opacity="0.2",onEnter(o,r){Ar(o,`${t.namespace.value}-opacity-transition`),o.style.opacity="1",r()},onAfterEnter(o){Ao(o,`${t.namespace.value}-opacity-transition`),o.style.opacity=""},onBeforeLeave(o){o.dataset||(o.dataset={}),qo(o,t.m("collapse"))?(Ao(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Ar(o,t.m("collapse"))):(Ar(o,t.m("collapse")),o.dataset.oldOverflow=o.style.overflow,o.dataset.scrollWidth=o.clientWidth.toString(),Ao(o,t.m("collapse"))),o.style.width=`${o.scrollWidth}px`,o.style.overflow="hidden"},onLeave(o){Ar(o,"horizontal-collapse-transition"),o.style.width=`${o.dataset.scrollWidth}px`}};return(o,r)=>(D(),_e(Hn,Dt({mode:"out-in"},c(n)),{default:se(()=>[de(o.$slots,"default")]),_:3},16))}});var aq=Ve(sq,[["__file","menu-collapse-transition.vue"]]);function eA(e,t){const n=A(()=>{let r=e.parent;const i=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&i.unshift(r.props.index),r=r.parent;return i});return{parentMenu:A(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function lq(e){return A(()=>{const n=e.backgroundColor;return n?new Gl(n).shade(20).toString():""})}const tA=(e,t)=>{const n=Pe("menu");return A(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":lq(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},n1="rootMenu",mp="subMenu:",uq=Ue({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:tn},expandOpenIcon:{type:tn},collapseCloseIcon:{type:tn},collapseOpenIcon:{type:tn}}),fm="ElSubMenu";var o1=Q({name:fm,props:uq,setup(e,{slots:t,expose:n}){const o=Pt(),{indexPath:r,parentMenu:i}=eA(o,A(()=>e.index)),s=Pe("menu"),a=Pe("sub-menu"),l=je(n1);l||Ln(fm,"can not inject root menu");const u=je(`${mp}${i.value.uid}`);u||Ln(fm,"can not inject sub menu");const d=F({}),f=F({});let p;const h=F(!1),m=F(),v=F(),b=A(()=>T.value==="horizontal"&&x.value?"bottom-start":"right-start"),g=A(()=>T.value==="horizontal"&&x.value||T.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Di:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:ko),x=A(()=>u.level===0),y=A(()=>{const K=e.teleported;return Bt(K)?x.value:K}),_=A(()=>l.props.collapse?`${s.namespace.value}-zoom-in-left`:`${s.namespace.value}-zoom-in-top`),w=A(()=>T.value==="horizontal"&&x.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=A(()=>l.openedMenus.includes(e.index)),M=A(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:K})=>K)),T=A(()=>l.props.mode),E=A(()=>l.props.persistent),C=Gt({index:e.index,indexPath:r,active:M}),k=tA(l.props,u.level+1),R=A(()=>{var K;return(K=e.popperOffset)!=null?K:l.props.popperOffset}),B=A(()=>{var K;return(K=e.popperClass)!=null?K:l.props.popperClass}),H=A(()=>{var K;return(K=e.showTimeout)!=null?K:l.props.showTimeout}),N=A(()=>{var K;return(K=e.hideTimeout)!=null?K:l.props.hideTimeout}),P=()=>{var K,oe,X;return(X=(oe=(K=v.value)==null?void 0:K.popperRef)==null?void 0:oe.popperInstanceRef)==null?void 0:X.destroy()},U=K=>{K||P()},I=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:r.value,active:M.value})},O=(K,oe=H.value)=>{var X;if(K.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,p==null||p(),{stop:p}=tl(()=>{l.openMenu(e.index,r.value)},oe),y.value&&((X=i.value.vnode.el)==null||X.dispatchEvent(new MouseEvent("mouseenter")))}},q=(K=!1)=>{var oe;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}p==null||p(),u.mouseInChild.value=!1,{stop:p}=tl(()=>!h.value&&l.closeMenu(e.index,r.value),N.value),y.value&&K&&((oe=u.handleMouseleave)==null||oe.call(u,!0))};Te(()=>l.props.collapse,K=>U(!!K));{const K=X=>{f.value[X.index]=X},oe=X=>{delete f.value[X.index]};Lt(`${mp}${o.uid}`,{addSubMenu:K,removeSubMenu:oe,handleMouseleave:q,mouseInChild:h,level:u.level+1})}return n({opened:S}),xt(()=>{l.addSubMenu(C),u.addSubMenu(C)}),Qt(()=>{u.removeSubMenu(C),l.removeSubMenu(C)}),()=>{var K;const oe=[(K=t.title)==null?void 0:K.call(t),ut(Je,{class:a.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>et(g.value)?ut(o.appContext.components[g.value]):ut(g.value)})],X=l.isMenuPopup?ut(_o,{ref:v,visible:S.value,effect:"light",pure:!0,offset:R.value,showArrow:!1,persistent:E.value,popperClass:B.value,placement:b.value,teleported:y.value,fallbackPlacements:w.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var Y;return ut("div",{class:[s.m(T.value),s.m("popup-container"),B.value],onMouseenter:ie=>O(ie,100),onMouseleave:()=>q(!0),onFocus:ie=>O(ie,100)},[ut("ul",{class:[s.b(),s.m("popup"),s.m(`popup-${b.value}`)],style:k.value},[(Y=t.default)==null?void 0:Y.call(t)])])},default:()=>ut("div",{class:a.e("title"),onClick:I},oe)}):ut(tt,{},[ut("div",{class:a.e("title"),ref:m,onClick:I},oe),ut(y0,{},{default:()=>{var Y;return _t(ut("ul",{role:"menu",class:[s.b(),s.m("inline")],style:k.value},[(Y=t.default)==null?void 0:Y.call(t)]),[[Vt,S.value]])}})]);return ut("li",{class:[a.b(),a.is("active",M.value),a.is("opened",S.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:O,onMouseleave:()=>q(),onFocus:O},[X])}}});const cq=Ue({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:le(Array),default:()=>_n([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:tn,default:()=>XF},popperEffect:{type:le(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),hm=e=>Oe(e)&&e.every(t=>et(t)),dq={close:(e,t)=>et(e)&&hm(t),open:(e,t)=>et(e)&&hm(t),select:(e,t,n,o)=>et(e)&&hm(t)&&Ct(n)&&(Bt(o)||o instanceof Promise)};var fq=Q({name:"ElMenu",props:cq,emits:dq,setup(e,{emit:t,slots:n,expose:o}){const r=Pt(),i=r.appContext.config.globalProperties.$router,s=F(),a=Pe("menu"),l=Pe("sub-menu"),u=F(-1),d=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=F(e.defaultActive),p=F({}),h=F({}),m=A(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const N=f.value&&p.value[f.value];if(!N||e.mode==="horizontal"||e.collapse)return;N.indexPath.forEach(U=>{const I=h.value[U];I&&b(U,I.indexPath)})},b=(N,P)=>{d.value.includes(N)||(e.uniqueOpened&&(d.value=d.value.filter(U=>P.includes(U))),d.value.push(N),t("open",N,P))},g=N=>{const P=d.value.indexOf(N);P!==-1&&d.value.splice(P,1)},x=(N,P)=>{g(N),t("close",N,P)},y=({index:N,indexPath:P})=>{d.value.includes(N)?x(N,P):b(N,P)},_=N=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:P,indexPath:U}=N;if(!(qn(P)||qn(U)))if(e.router&&i){const I=N.route||P,O=i.push(I).then(q=>(q||(f.value=P),q));t("select",P,U,{index:P,indexPath:U,route:I},O)}else f.value=P,t("select",P,U,{index:P,indexPath:U})},w=N=>{var P;const U=p.value,I=U[N]||f.value&&U[f.value]||U[e.defaultActive];f.value=(P=I==null?void 0:I.index)!=null?P:N},S=N=>{const P=getComputedStyle(N),U=Number.parseInt(P.marginLeft,10),I=Number.parseInt(P.marginRight,10);return N.offsetWidth+U+I||0},M=()=>{var N,P;if(!s.value)return-1;const U=Array.from((P=(N=s.value)==null?void 0:N.childNodes)!=null?P:[]).filter(ie=>ie.nodeName!=="#text"||ie.nodeValue),I=64,O=getComputedStyle(s.value),q=Number.parseInt(O.paddingLeft,10),K=Number.parseInt(O.paddingRight,10),oe=s.value.clientWidth-q-K;let X=0,Y=0;return U.forEach((ie,ae)=>{ie.nodeName!=="#comment"&&(X+=S(ie),X<=oe-I&&(Y=ae+1))}),Y===U.length?-1:Y},T=N=>h.value[N].indexPath,E=(N,P=33.34)=>{let U;return()=>{U&&clearTimeout(U),U=setTimeout(()=>{N()},P)}};let C=!0;const k=()=>{if(u.value===M())return;const N=()=>{u.value=-1,Qe(()=>{u.value=M()})};C?N():E(N)(),C=!1};Te(()=>e.defaultActive,N=>{p.value[N]||(f.value=""),w(N)}),Te(()=>e.collapse,N=>{N&&(d.value=[])}),Te(p.value,v);let R;co(()=>{e.mode==="horizontal"&&e.ellipsis?R=vn(s,k).stop:R==null||R()});const B=F(!1);{const N=O=>{h.value[O.index]=O},P=O=>{delete h.value[O.index]};Lt(n1,Gt({props:e,openedMenus:d,items:p,subMenus:h,activeIndex:f,isMenuPopup:m,addMenuItem:O=>{p.value[O.index]=O},removeMenuItem:O=>{delete p.value[O.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:x,handleMenuItemClick:_,handleSubMenuClick:y})),Lt(`${mp}${r.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:B,level:0})}xt(()=>{e.mode==="horizontal"&&new rq(r.vnode.el,a.namespace.value)}),o({open:P=>{const{indexPath:U}=h.value[P];U.forEach(I=>b(I,U))},close:g,updateActiveIndex:w,handleResize:k});const H=tA(e,0);return()=>{var N,P;let U=(P=(N=n.default)==null?void 0:N.call(n))!=null?P:[];const I=[];if(e.mode==="horizontal"&&s.value){const K=mi(U),oe=u.value===-1?K:K.slice(0,u.value),X=u.value===-1?[]:K.slice(u.value);X!=null&&X.length&&e.ellipsis&&(U=oe,I.push(ut(o1,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ut(Je,{class:l.e("icon-more")},{default:()=>ut(e.ellipsisIcon)}),default:()=>X})))}const O=e.closeOnClickOutside?[[cs,()=>{d.value.length&&(B.value||(d.value.forEach(K=>t("close",K,T(K))),d.value=[]))}]]:[],q=_t(ut("ul",{key:String(e.collapse),role:"menubar",ref:s,style:H.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...U,...I]),O);return e.collapseTransition&&e.mode==="vertical"?ut(aq,()=>q):q}}});const hq=Ue({index:{type:le([String,null]),default:null},route:{type:le([String,Object])},disabled:Boolean}),pq={click:e=>et(e.index)&&Oe(e.indexPath)},Jv="ElMenuItem",mq=Q({name:Jv}),vq=Q({...mq,props:hq,emits:pq,setup(e,{expose:t,emit:n}){const o=e;jo(o.index)&&void 0;const r=Pt(),i=je(n1),s=Pe("menu"),a=Pe("menu-item");i||Ln(Jv,"can not inject root menu");const{parentMenu:l,indexPath:u}=eA(r,Kt(o,"index")),d=je(`${mp}${l.value.uid}`);d||Ln(Jv,"can not inject sub menu");const f=A(()=>o.index===i.activeIndex),p=Gt({index:o.index,indexPath:u,active:f}),h=()=>{o.disabled||(i.handleMenuItemClick({index:o.index,indexPath:u.value,route:o.route}),n("click",p))};return xt(()=>{d.addSubMenu(p),i.addMenuItem(p)}),Qt(()=>{d.removeSubMenu(p),i.removeMenuItem(p)}),t({parentMenu:l,rootMenu:i,active:f,nsMenu:s,nsMenuItem:a,handleClick:h}),(m,v)=>(D(),G("li",{class:L([c(a).b(),c(a).is("active",c(f)),c(a).is("disabled",m.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[c(l).type.name==="ElMenu"&&c(i).props.collapse&&m.$slots.title?(D(),_e(c(_o),{key:0,effect:c(i).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:c(i).props.persistent},{content:se(()=>[de(m.$slots,"title")]),default:se(()=>[j("div",{class:L(c(s).be("tooltip","trigger"))},[de(m.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(D(),G(tt,{key:1},[de(m.$slots,"default"),de(m.$slots,"title")],64))],2))}});var nA=Ve(vq,[["__file","menu-item.vue"]]);const gq={title:String},bq=Q({name:"ElMenuItemGroup"}),yq=Q({...bq,props:gq,setup(e){const t=Pe("menu-item-group");return(n,o)=>(D(),G("li",{class:L(c(t).b())},[j("div",{class:L(c(t).e("title"))},[n.$slots.title?de(n.$slots,"title",{key:1}):(D(),G(tt,{key:0},[Tt(ze(n.title),1)],64))],2),j("ul",null,[de(n.$slots,"default")])],2))}});var oA=Ve(yq,[["__file","menu-item-group.vue"]]);const _q=yt(fq,{MenuItem:nA,MenuItemGroup:oA,SubMenu:o1}),xq=gn(nA),Sq=gn(oA),wq=gn(o1),Cq=Ue({icon:{type:tn,default:()=>_F},title:String,content:{type:String,default:""}}),Eq={back:()=>!0},Mq=Q({name:"ElPageHeader"}),Tq=Q({...Mq,props:Cq,emits:Eq,setup(e,{emit:t}){const{t:n}=$t(),o=Pe("page-header");function r(){t("back")}return(i,s)=>(D(),G("div",{class:L([c(o).b(),{[c(o).m("has-breadcrumb")]:!!i.$slots.breadcrumb,[c(o).m("has-extra")]:!!i.$slots.extra,[c(o).is("contentful")]:!!i.$slots.default}])},[i.$slots.breadcrumb?(D(),G("div",{key:0,class:L(c(o).e("breadcrumb"))},[de(i.$slots,"breadcrumb")],2)):pe("v-if",!0),j("div",{class:L(c(o).e("header"))},[j("div",{class:L(c(o).e("left"))},[j("div",{class:L(c(o).e("back")),role:"button",tabindex:"0",onClick:r},[i.icon||i.$slots.icon?(D(),G("div",{key:0,"aria-label":i.title||c(n)("el.pageHeader.title"),class:L(c(o).e("icon"))},[de(i.$slots,"icon",{},()=>[i.icon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(i.icon)))]),_:1})):pe("v-if",!0)])],10,["aria-label"])):pe("v-if",!0),j("div",{class:L(c(o).e("title"))},[de(i.$slots,"title",{},()=>[Tt(ze(i.title||c(n)("el.pageHeader.title")),1)])],2)],2),J(c($T),{direction:"vertical"}),j("div",{class:L(c(o).e("content"))},[de(i.$slots,"content",{},()=>[Tt(ze(i.content),1)])],2)],2),i.$slots.extra?(D(),G("div",{key:0,class:L(c(o).e("extra"))},[de(i.$slots,"extra")],2)):pe("v-if",!0)],2),i.$slots.default?(D(),G("div",{key:1,class:L(c(o).e("main"))},[de(i.$slots,"default")],2)):pe("v-if",!0)],2))}});var Aq=Ve(Tq,[["__file","page-header.vue"]]);const kq=yt(Aq),rA=Symbol("elPaginationKey"),Rq=Ue({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:tn}}),Pq={click:e=>e instanceof MouseEvent},Dq=Q({name:"ElPaginationPrev"}),Iq=Q({...Dq,props:Rq,emits:Pq,setup(e){const t=e,{t:n}=$t(),o=A(()=>t.disabled||t.currentPage<=1);return(r,i)=>(D(),G("button",{type:"button",class:"btn-prev",disabled:c(o),"aria-label":r.prevText||c(n)("el.pagination.prev"),"aria-disabled":c(o),onClick:s=>r.$emit("click",s)},[r.prevText?(D(),G("span",{key:0},ze(r.prevText),1)):(D(),_e(c(Je),{key:1},{default:se(()=>[(D(),_e(Rt(r.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Lq=Ve(Iq,[["__file","prev.vue"]]);const Nq=Ue({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:tn}}),Oq=Q({name:"ElPaginationNext"}),Fq=Q({...Oq,props:Nq,emits:["click"],setup(e){const t=e,{t:n}=$t(),o=A(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(D(),G("button",{type:"button",class:"btn-next",disabled:c(o),"aria-label":r.nextText||c(n)("el.pagination.next"),"aria-disabled":c(o),onClick:s=>r.$emit("click",s)},[r.nextText?(D(),G("span",{key:0},ze(r.nextText),1)):(D(),_e(c(Je),{key:1},{default:se(()=>[(D(),_e(Rt(r.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Bq=Ve(Fq,[["__file","next.vue"]]);const iA=Symbol("ElSelectGroup"),Ju=Symbol("ElSelect"),Qv="ElOption",$q=Ue({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function Uq(e,t){const n=je(Ju);n||Ln(Qv,"usage: ");const o=je(iA,{disabled:!1}),r=A(()=>d(Eo(n.props.modelValue),e.value)),i=A(()=>{var h;if(n.props.multiple){const m=Eo((h=n.props.modelValue)!=null?h:[]);return!r.value&&m.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=A(()=>{var h;return(h=e.label)!=null?h:Ct(e.value)?"":e.value}),a=A(()=>e.value||e.label||""),l=A(()=>e.disabled||t.groupDisabled||i.value),u=Pt(),d=(h=[],m)=>{if(Ct(e.value)){const v=n.props.valueKey;return h&&h.some(b=>sn(Dn(b,v))===Dn(m,v))}else return h&&h.includes(m)},f=()=>{!e.disabled&&!o.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},p=h=>{const m=new RegExp(By(h),"i");t.visible=m.test(String(s.value))||e.created};return Te(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Te(()=>e.value,(h,m)=>{const{remote:v,valueKey:b}=n.props;if((v?h!==m:!Zn(h,m))&&(n.onOptionDestroy(m,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!v){if(b&&Ct(h)&&Ct(m)&&h[b]===m[b])return;n.setSelected()}}),Te(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:a,itemSelected:r,isDisabled:l,hoverItem:f,updateOption:p}}const zq=Q({name:Qv,componentName:Qv,props:$q,setup(e){const t=Pe("select"),n=fo(),o=A(()=>[t.be("dropdown","item"),t.is("disabled",c(a)),t.is("selected",c(s)),t.is("hovering",c(p))]),r=Gt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:a,select:l,hoverItem:u,updateOption:d}=Uq(e,r),{visible:f,hover:p}=jn(r),h=Pt().proxy;l.onOptionCreate(h),Qt(()=>{const v=h.value,{selected:b}=l.states,g=b.some(x=>x.value===h.value);Qe(()=>{l.states.cachedOptions.get(v)===h&&!g&&l.states.cachedOptions.delete(v)}),l.onOptionDestroy(v,h)});function m(){a.value||l.handleOptionSelect(h)}return{ns:t,id:n,containerKls:o,currentLabel:i,itemSelected:s,isDisabled:a,select:l,visible:f,hover:p,states:r,hoverItem:u,updateOption:d,selectOptionClick:m}}});function Vq(e,t){return _t((D(),G("li",{id:e.id,class:L(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:dt(e.selectOptionClick,["stop"])},[de(e.$slots,"default",{},()=>[j("span",null,ze(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[Vt,e.visible]])}var r1=Ve(zq,[["render",Vq],["__file","option.vue"]]);const Hq=Q({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=je(Ju),t=Pe("select"),n=A(()=>e.props.popperClass),o=A(()=>e.props.multiple),r=A(()=>e.props.fitInputWidth),i=F("");function s(){var a;i.value=`${(a=e.selectRef)==null?void 0:a.offsetWidth}px`}return xt(()=>{s(),vn(e.selectRef,s)}),{ns:t,minWidth:i,popperClass:n,isMultiple:o,isFitInputWidth:r}}});function Wq(e,t,n,o,r,i){return D(),G("div",{class:L([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:rt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(D(),G("div",{key:0,class:L(e.ns.be("dropdown","header"))},[de(e.$slots,"header")],2)):pe("v-if",!0),de(e.$slots,"default"),e.$slots.footer?(D(),G("div",{key:1,class:L(e.ns.be("dropdown","footer"))},[de(e.$slots,"footer")],2)):pe("v-if",!0)],6)}var Gq=Ve(Hq,[["render",Wq],["__file","select-dropdown.vue"]]);const Kq=(e,t)=>{const{t:n}=$t(),o=fo(),r=Pe("select"),i=Pe("input"),s=Gt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),a=F(),l=F(),u=F(),d=F(),f=F(),p=F(),h=F(),m=F(),v=F(),b=F(),g=F(),{isComposing:x,handleCompositionStart:y,handleCompositionUpdate:_,handleCompositionEnd:w}=Gd({afterComposition:We=>Ne(We)}),{wrapperRef:S,isFocused:M,handleBlur:T}=ma(f,{beforeFocus(){return P.value},afterFocus(){e.automaticDropdown&&!E.value&&(E.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(We){var pt,qt;return((pt=u.value)==null?void 0:pt.isFocusInsideContent(We))||((qt=d.value)==null?void 0:qt.isFocusInsideContent(We))},afterBlur(){var We;E.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((We=R==null?void 0:R.validate)==null||We.call(R,"blur").catch(pt=>void 0))}}),E=F(!1),C=F(),{form:k,formItem:R}=xo(),{inputId:B}=Br(e,{formItemContext:R}),{valueOnClear:H,isEmptyValue:N}=u0(e),P=A(()=>e.disabled||(k==null?void 0:k.disabled)),U=A(()=>Oe(e.modelValue)?e.modelValue.length>0:!N(e.modelValue)),I=A(()=>{var We;return(We=k==null?void 0:k.statusIcon)!=null?We:!1}),O=A(()=>e.clearable&&!P.value&&s.inputHovering&&U.value),q=A(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),K=A(()=>r.is("reverse",!!(q.value&&E.value))),oe=A(()=>(R==null?void 0:R.validateState)||""),X=A(()=>oe.value&&h0[oe.value]),Y=A(()=>e.remote?300:0),ie=A(()=>e.remote&&!s.inputValue&&s.options.size===0),ae=A(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&re.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),re=A(()=>fe.value.filter(We=>We.visible).length),fe=A(()=>{const We=Array.from(s.options.values()),pt=[];return s.optionValues.forEach(qt=>{const kn=We.findIndex(ro=>ro.value===qt);kn>-1&&pt.push(We[kn])}),pt.length>=We.length?pt:We}),be=A(()=>Array.from(s.cachedOptions.values())),De=A(()=>{const We=fe.value.filter(pt=>!pt.created).some(pt=>pt.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!We}),Re=()=>{e.filterable&&it(e.filterMethod)||e.filterable&&e.remote&&it(e.remoteMethod)||fe.value.forEach(We=>{var pt;(pt=We.updateOption)==null||pt.call(We,s.inputValue)})},V=Fn(),ee=A(()=>["small"].includes(V.value)?"small":"default"),z=A({get(){return E.value&&!ie.value},set(We){E.value=We}}),ve=A(()=>{if(e.multiple&&!Bt(e.modelValue))return Eo(e.modelValue).length===0&&!s.inputValue;const We=Oe(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Bt(We)?!s.inputValue:!0}),ce=A(()=>{var We;const pt=(We=e.placeholder)!=null?We:n("el.select.placeholder");return e.multiple||!U.value?pt:s.selectedLabel}),me=A(()=>ip?null:"mouseenter");Te(()=>e.modelValue,(We,pt)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ue("")),xe(),!Zn(We,pt)&&e.validateEvent&&(R==null||R.validate("change").catch(qt=>void 0))},{flush:"post",deep:!0}),Te(()=>E.value,We=>{We?ue(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",We)}),Te(()=>s.options.entries(),()=>{Ft&&(xe(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&ge())},{flush:"post"}),Te([()=>s.hoveringIndex,fe],([We])=>{st(We)&&We>-1?C.value=fe.value[We]||{}:C.value={},fe.value.forEach(pt=>{pt.hover=C.value===pt})}),co(()=>{s.isBeforeHide||Re()});const ue=We=>{s.previousQuery===We||x.value||(s.previousQuery=We,e.filterable&&it(e.filterMethod)?e.filterMethod(We):e.filterable&&e.remote&&it(e.remoteMethod)&&e.remoteMethod(We),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?Qe(ge):Qe(Fe))},ge=()=>{const We=fe.value.filter(ro=>ro.visible&&!ro.disabled&&!ro.states.groupDisabled),pt=We.find(ro=>ro.created),qt=We[0],kn=fe.value.map(ro=>ro.value);s.hoveringIndex=te(kn,pt||qt)},xe=()=>{if(e.multiple)s.selectedLabel="";else{const pt=Oe(e.modelValue)?e.modelValue[0]:e.modelValue,qt=Ce(pt);s.selectedLabel=qt.currentLabel,s.selected=[qt];return}const We=[];Bt(e.modelValue)||Eo(e.modelValue).forEach(pt=>{We.push(Ce(pt))}),s.selected=We},Ce=We=>{let pt;const qt=Gc(We);for(let si=s.cachedOptions.size-1;si>=0;si--){const br=be.value[si];if(qt?Dn(br.value,e.valueKey)===Dn(We,e.valueKey):br.value===We){pt={value:We,currentLabel:br.currentLabel,get isDisabled(){return br.isDisabled}};break}}if(pt)return pt;const kn=qt?We.label:We??"";return{value:We,currentLabel:kn}},Fe=()=>{s.hoveringIndex=fe.value.findIndex(We=>s.selected.some(pt=>xn(pt)===xn(We)))},Z=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width)},$=()=>{s.collapseItemWidth=b.value.getBoundingClientRect().width},he=()=>{var We,pt;(pt=(We=u.value)==null?void 0:We.updatePopper)==null||pt.call(We)},Me=()=>{var We,pt;(pt=(We=d.value)==null?void 0:We.updatePopper)==null||pt.call(We)},Be=()=>{s.inputValue.length>0&&!E.value&&(E.value=!0),ue(s.inputValue)},Ne=We=>{if(s.inputValue=We.target.value,e.remote)nt();else return Be()},nt=tr(()=>{Be()},Y.value),qe=We=>{Zn(e.modelValue,We)||t(It,We)},ht=We=>NM(We,pt=>{const qt=s.cachedOptions.get(pt);return qt&&!qt.disabled&&!qt.states.groupDisabled}),He=We=>{if(e.multiple&&We.code!==Ke.delete&&We.target.value.length<=0){const pt=Eo(e.modelValue).slice(),qt=ht(pt);if(qt<0)return;const kn=pt[qt];pt.splice(qt,1),t(vt,pt),qe(pt),t("remove-tag",kn)}},$e=(We,pt)=>{const qt=s.selected.indexOf(pt);if(qt>-1&&!P.value){const kn=Eo(e.modelValue).slice();kn.splice(qt,1),t(vt,kn),qe(kn),t("remove-tag",pt.value)}We.stopPropagation(),ft()},ne=We=>{We.stopPropagation();const pt=e.multiple?[]:H.value;if(e.multiple)for(const qt of s.selected)qt.isDisabled&&pt.push(qt.value);t(vt,pt),qe(pt),s.hoveringIndex=-1,E.value=!1,t("clear"),ft()},we=We=>{var pt;if(e.multiple){const qt=Eo((pt=e.modelValue)!=null?pt:[]).slice(),kn=te(qt,We);kn>-1?qt.splice(kn,1):(e.multipleLimit<=0||qt.length{Ee(We)})},te=(We,pt)=>Bt(pt)?-1:Ct(pt.value)?We.findIndex(qt=>Zn(Dn(qt,e.valueKey),xn(pt))):We.indexOf(pt.value),Ee=We=>{var pt,qt,kn,ro,si;const br=Oe(We)?We[0]:We;let ai=null;if(br!=null&&br.value){const li=fe.value.filter(Ss=>Ss.value===br.value);li.length>0&&(ai=li[0].$el)}if(u.value&&ai){const li=(ro=(kn=(qt=(pt=u.value)==null?void 0:pt.popperRef)==null?void 0:qt.contentRef)==null?void 0:kn.querySelector)==null?void 0:ro.call(kn,`.${r.be("dropdown","wrap")}`);li&&gy(li,ai)}(si=g.value)==null||si.handleScroll()},Ye=We=>{s.options.set(We.value,We),s.cachedOptions.set(We.value,We)},Se=(We,pt)=>{s.options.get(We)===pt&&s.options.delete(We)},ot=A(()=>{var We,pt;return(pt=(We=u.value)==null?void 0:We.popperRef)==null?void 0:pt.contentRef}),Ze=()=>{s.isBeforeHide=!1,Qe(()=>{var We;(We=g.value)==null||We.update(),Ee(s.selected)})},ft=()=>{var We;(We=f.value)==null||We.focus()},lt=()=>{var We;if(E.value){E.value=!1,Qe(()=>{var pt;return(pt=f.value)==null?void 0:pt.blur()});return}(We=f.value)==null||We.blur()},Xe=We=>{ne(We)},Et=We=>{if(E.value=!1,M.value){const pt=new FocusEvent("focus",We);Qe(()=>T(pt))}},Ge=()=>{s.inputValue.length>0?s.inputValue="":E.value=!1},St=()=>{P.value||(ip&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:E.value=!E.value)},ct=()=>{if(!E.value)St();else{const We=fe.value[s.hoveringIndex];We&&!We.isDisabled&&we(We)}},xn=We=>Ct(We.value)?Dn(We.value,e.valueKey):We.value,Gn=A(()=>fe.value.filter(We=>We.visible).every(We=>We.isDisabled)),$r=A(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Bi=A(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),gr=We=>{if(!E.value){E.value=!0;return}if(!(s.options.size===0||re.value===0||x.value)&&!Gn.value){We==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):We==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const pt=fe.value[s.hoveringIndex];(pt.isDisabled||!pt.visible)&&gr(We),Qe(()=>Ee(C.value))}},ga=()=>{if(!l.value)return 0;const We=window.getComputedStyle(l.value);return Number.parseFloat(We.gap||"6px")},vl=A(()=>{const We=ga();return{maxWidth:`${b.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-We:s.selectionWidth}px`}}),gl=A(()=>({maxWidth:`${s.selectionWidth}px`})),xs=We=>{t("popup-scroll",We)};return vn(l,Z),vn(m,he),vn(S,he),vn(v,Me),vn(b,$),xt(()=>{xe()}),{inputId:B,contentId:o,nsSelect:r,nsInput:i,states:s,isFocused:M,expanded:E,optionsArray:fe,hoverOption:C,selectSize:V,filteredOptionsCount:re,updateTooltip:he,updateTagTooltip:Me,debouncedOnInputChange:nt,onInput:Ne,deletePrevTag:He,deleteTag:$e,deleteSelected:ne,handleOptionSelect:we,scrollToOption:Ee,hasModelValue:U,shouldShowPlaceholder:ve,currentPlaceholder:ce,mouseEnterEventName:me,needStatusIcon:I,showClose:O,iconComponent:q,iconReverse:K,validateState:oe,validateIcon:X,showNewOption:De,updateOptions:Re,collapseTagSize:ee,setSelected:xe,selectDisabled:P,emptyText:ae,handleCompositionStart:y,handleCompositionUpdate:_,handleCompositionEnd:w,onOptionCreate:Ye,onOptionDestroy:Se,handleMenuEnter:Ze,focus:ft,blur:lt,handleClearClick:Xe,handleClickOutside:Et,handleEsc:Ge,toggleMenu:St,selectOption:ct,getValueKey:xn,navigateOptions:gr,dropdownMenuVisible:z,showTagList:$r,collapseTagList:Bi,popupScroll:xs,tagStyle:vl,collapseTagStyle:gl,popperRef:ot,inputRef:f,tooltipRef:u,tagTooltipRef:d,prefixRef:p,suffixRef:h,selectRef:a,wrapperRef:S,selectionRef:l,scrollbarRef:g,menuRef:m,tagMenuRef:v,collapseItemRef:b}};var qq=Q({name:"ElOptions",setup(e,{slots:t}){const n=je(Ju);let o=[];return()=>{var r,i;const s=(r=t.default)==null?void 0:r.call(t),a=[];function l(u){Oe(u)&&u.forEach(d=>{var f,p,h,m;const v=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;v==="ElOptionGroup"?l(!et(d.children)&&!Oe(d.children)&&it((p=d.children)==null?void 0:p.default)?(h=d.children)==null?void 0:h.default():d.children):v==="ElOption"?a.push((m=d.props)==null?void 0:m.value):Oe(d.children)&&l(d.children)})}return s.length&&l((i=s[0])==null?void 0:i.children),Zn(a,o)||(o=a,n&&(n.states.optionValues=a)),s}}});const jq=Ue({name:String,id:String,modelValue:{type:le([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Vn,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Pn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:tn,default:gs},fitInputWidth:Boolean,suffixIcon:{type:tn,default:Di},tagType:{...us.type,default:"info"},tagEffect:{...us.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:le(String),values:bs,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Pn.appendTo,...ju,...ho(["ariaLabel"])});f3.scroll;const iS="ElSelect",Yq=Q({name:iS,componentName:iS,components:{ElSelectMenu:Gq,ElOption:r1,ElOptions:qq,ElTag:wu,ElScrollbar:Ii,ElTooltip:_o,ElIcon:Je},directives:{ClickOutside:cs},props:jq,emits:[vt,It,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const o=A(()=>{const{modelValue:d,multiple:f}=e,p=f?[]:void 0;return Oe(d)?f?d:p:f?p:d}),r=Gt({...jn(e),modelValue:o}),i=Kq(r,t),{calculatorRef:s,inputStyle:a}=t1(),l=d=>{mi(d).filter(p=>Ct(p)&&p.type.name==="ElOption").forEach(p=>{const h={...p.props};h.currentLabel=h.label||(Ct(h.value)?"":h.value),i.onOptionCreate(h)})};co(()=>{e.persistent||Qe(()=>{var d,f;const p=ut(tt,(f=(d=n.default)==null?void 0:d.call(n))!=null?f:[]).children;l(p)})}),Lt(Ju,Gt({props:r,states:i.states,selectRef:i.selectRef,optionsArray:i.optionsArray,setSelected:i.setSelected,handleOptionSelect:i.handleOptionSelect,onOptionCreate:i.onOptionCreate,onOptionDestroy:i.onOptionDestroy}));const u=A(()=>e.multiple?i.states.selected.map(d=>d.currentLabel):i.states.selectedLabel);return{...i,modelValue:o,selectedLabel:u,calculatorRef:s,inputStyle:a}}});function Xq(e,t){const n=Mt("el-tag"),o=Mt("el-tooltip"),r=Mt("el-icon"),i=Mt("el-option"),s=Mt("el-options"),a=Mt("el-scrollbar"),l=Mt("el-select-menu"),u=jp("click-outside");return _t((D(),G("div",{ref:"selectRef",class:L([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ec(e.mouseEnterEventName)]:d=>e.states.inputHovering=!0,onMouseleave:d=>e.states.inputHovering=!1},[J(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:d=>e.states.isBeforeHide=!1},{default:se(()=>{var d;return[j("div",{ref:"wrapperRef",class:L([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:dt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(D(),G("div",{key:0,ref:"prefixRef",class:L(e.nsSelect.e("prefix"))},[de(e.$slots,"prefix")],2)):pe("v-if",!0),j("div",{ref:"selectionRef",class:L([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?de(e.$slots,"tag",{key:0},()=>[(D(!0),G(tt,null,Nt(e.showTagList,f=>(D(),G("div",{key:e.getValueKey(f),class:L(e.nsSelect.e("selected-item"))},[J(n,{closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rt(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))},[de(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[Tt(ze(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(D(),_e(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:se(()=>[j("div",{ref:"collapseItemRef",class:L(e.nsSelect.e("selected-item"))},[J(n,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rt(e.collapseTagStyle)},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))}," + "+ze(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:se(()=>[j("div",{ref:"tagMenuRef",class:L(e.nsSelect.e("selection"))},[(D(!0),G(tt,null,Nt(e.collapseTagList,f=>(D(),G("div",{key:e.getValueKey(f),class:L(e.nsSelect.e("selected-item"))},[J(n,{class:"in-tooltip",closable:!e.selectDisabled&&!f.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))},[de(e.$slots,"label",{label:f.currentLabel,value:f.value},()=>[Tt(ze(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):pe("v-if",!0)]):pe("v-if",!0),j("div",{class:L([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[_t(j("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,type:"text",name:e.name,class:L([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:rt(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((d=e.hoverOption)==null?void 0:d.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Zt(dt(f=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Zt(dt(f=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Zt(dt(e.handleEsc,["stop","prevent"]),["esc"]),Zt(dt(e.selectOption,["stop","prevent"]),["enter"]),Zt(dt(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:dt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Nd,e.states.inputValue]]),e.filterable?(D(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:L(e.nsSelect.e("input-calculator")),textContent:ze(e.states.inputValue)},null,10,["textContent"])):pe("v-if",!0)],2),e.shouldShowPlaceholder?(D(),G("div",{key:1,class:L([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?de(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[j("span",null,ze(e.currentPlaceholder),1)]):(D(),G("span",{key:1},ze(e.currentPlaceholder),1))],2)):pe("v-if",!0)],2),j("div",{ref:"suffixRef",class:L(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(D(),_e(r,{key:0,class:L([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:se(()=>[(D(),_e(Rt(e.iconComponent)))]),_:1},8,["class"])):pe("v-if",!0),e.showClose&&e.clearIcon?(D(),_e(r,{key:1,class:L([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:se(()=>[(D(),_e(Rt(e.clearIcon)))]),_:1},8,["class","onClick"])):pe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(D(),_e(r,{key:2,class:L([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:se(()=>[(D(),_e(Rt(e.validateIcon)))]),_:1},8,["class"])):pe("v-if",!0)],2)],10,["onClick"])]}),content:se(()=>[J(l,{ref:"menuRef"},{default:se(()=>[e.$slots.header?(D(),G("div",{key:0,class:L(e.nsSelect.be("dropdown","header")),onClick:dt(()=>{},["stop"])},[de(e.$slots,"header")],10,["onClick"])):pe("v-if",!0),_t(J(a,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:L([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:se(()=>[e.showNewOption?(D(),_e(i,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):pe("v-if",!0),J(s,null,{default:se(()=>[de(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Vt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(D(),G("div",{key:1,class:L(e.nsSelect.be("dropdown","loading"))},[de(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(D(),G("div",{key:2,class:L(e.nsSelect.be("dropdown","empty"))},[de(e.$slots,"empty",{},()=>[j("span",null,ze(e.emptyText),1)])],2)):pe("v-if",!0),e.$slots.footer?(D(),G("div",{key:3,class:L(e.nsSelect.be("dropdown","footer")),onClick:dt(()=>{},["stop"])},[de(e.$slots,"footer")],10,["onClick"])):pe("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[u,e.handleClickOutside,e.popperRef]])}var Zq=Ve(Yq,[["render",Xq],["__file","select.vue"]]);const Jq=Q({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Pe("select"),n=F(),o=Pt(),r=F([]);Lt(iA,Gt({...jn(e)}));const i=A(()=>r.value.some(u=>u.visible===!0)),s=u=>{var d;return u.type.name==="ElOption"&&!!((d=u.component)!=null&&d.proxy)},a=u=>{const d=Eo(u),f=[];return d.forEach(p=>{var h;ln(p)&&(s(p)?f.push(p.component.proxy):Oe(p.children)&&p.children.length?f.push(...a(p.children)):(h=p.component)!=null&&h.subTree&&f.push(...a(p.component.subTree)))}),f},l=()=>{r.value=a(o.subTree)};return xt(()=>{l()}),zM(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function Qq(e,t,n,o,r,i){return _t((D(),G("ul",{ref:"groupRef",class:L(e.ns.be("group","wrap"))},[j("li",{class:L(e.ns.be("group","title"))},ze(e.label),3),j("li",null,[j("ul",{class:L(e.ns.b("group"))},[de(e.$slots,"default")],2)])],2)),[[Vt,e.visible]])}var sA=Ve(Jq,[["render",Qq],["__file","option-group.vue"]]);const ol=yt(Zq,{Option:r1,OptionGroup:sA}),vp=gn(r1),ej=gn(sA),i1=()=>je(rA,{}),tj=Ue({pageSize:{type:Number,required:!0},pageSizes:{type:le(Array),default:()=>_n([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Pi},appendSizeTo:String}),nj=Q({name:"ElPaginationSizes"}),oj=Q({...nj,props:tj,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:o}=$t(),r=Pe("pagination"),i=i1(),s=F(n.pageSize);Te(()=>n.pageSizes,(u,d)=>{if(!Zn(u,d)&&Oe(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),Te(()=>n.pageSize,u=>{s.value=u});const a=A(()=>n.pageSizes);function l(u){var d;u!==s.value&&(s.value=u,(d=i.handleSizeChange)==null||d.call(i,Number(u)))}return(u,d)=>(D(),G("span",{class:L(c(r).e("sizes"))},[J(c(ol),{"model-value":s.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:se(()=>[(D(!0),G(tt,null,Nt(c(a),f=>(D(),_e(c(vp),{key:f,value:f,label:f+c(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var rj=Ve(oj,[["__file","sizes.vue"]]);const ij=Ue({size:{type:String,values:Pi}}),sj=Q({name:"ElPaginationJumper"}),aj=Q({...sj,props:ij,setup(e){const{t}=$t(),n=Pe("pagination"),{pageCount:o,disabled:r,currentPage:i,changeEvent:s}=i1(),a=F(),l=A(()=>{var f;return(f=a.value)!=null?f:i==null?void 0:i.value});function u(f){a.value=f?+f:""}function d(f){f=Math.trunc(+f),s==null||s(f),a.value=void 0}return(f,p)=>(D(),G("span",{class:L(c(n).e("jump")),disabled:c(r)},[j("span",{class:L([c(n).e("goto")])},ze(c(t)("el.pagination.goto")),3),J(c(To),{size:f.size,class:L([c(n).e("editor"),c(n).is("in-pagination")]),min:1,max:c(o),disabled:c(r),"model-value":c(l),"validate-event":!1,"aria-label":c(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),j("span",{class:L([c(n).e("classifier")])},ze(c(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var lj=Ve(aj,[["__file","jumper.vue"]]);const uj=Ue({total:{type:Number,default:1e3}}),cj=Q({name:"ElPaginationTotal"}),dj=Q({...cj,props:uj,setup(e){const{t}=$t(),n=Pe("pagination"),{disabled:o}=i1();return(r,i)=>(D(),G("span",{class:L(c(n).e("total")),disabled:c(o)},ze(c(t)("el.pagination.total",{total:r.total})),11,["disabled"]))}});var fj=Ve(dj,[["__file","total.vue"]]);const hj=Ue({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),pj=Q({name:"ElPaginationPager"}),mj=Q({...pj,props:hj,emits:[It],setup(e,{emit:t}){const n=e,o=Pe("pager"),r=Pe("icon"),{t:i}=$t(),s=F(!1),a=F(!1),l=F(!1),u=F(!1),d=F(!1),f=F(!1),p=A(()=>{const _=n.pagerCount,w=(_-1)/2,S=Number(n.currentPage),M=Number(n.pageCount);let T=!1,E=!1;M>_&&(S>_-w&&(T=!0),S["more","btn-quickprev",r.b(),o.is("disabled",n.disabled)]),m=A(()=>["more","btn-quicknext",r.b(),o.is("disabled",n.disabled)]),v=A(()=>n.disabled?-1:0);co(()=>{const _=(n.pagerCount-1)/2;s.value=!1,a.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(s.value=!0),n.currentPageM&&(S=M)),S!==T&&t(It,S)}return(_,w)=>(D(),G("ul",{class:L(c(o).b()),onClick:y,onKeyup:Zt(x,["enter"])},[_.pageCount>0?(D(),G("li",{key:0,class:L([[c(o).is("active",_.currentPage===1),c(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":c(i)("el.pagination.currentPage",{pager:1}),tabindex:c(v)}," 1 ",10,["aria-current","aria-label","tabindex"])):pe("v-if",!0),s.value?(D(),G("li",{key:1,class:L(c(h)),tabindex:c(v),"aria-label":c(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:S=>b(!0),onMouseleave:S=>l.value=!1,onFocus:S=>g(!0),onBlur:S=>d.value=!1},[(l.value||d.value)&&!_.disabled?(D(),_e(c(ia),{key:0})):(D(),_e(c(Q2),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):pe("v-if",!0),(D(!0),G(tt,null,Nt(c(p),S=>(D(),G("li",{key:S,class:L([[c(o).is("active",_.currentPage===S),c(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===S,"aria-label":c(i)("el.pagination.currentPage",{pager:S}),tabindex:c(v)},ze(S),11,["aria-current","aria-label","tabindex"]))),128)),a.value?(D(),G("li",{key:2,class:L(c(m)),tabindex:c(v),"aria-label":c(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:S=>b(),onMouseleave:S=>u.value=!1,onFocus:S=>g(),onBlur:S=>f.value=!1},[(u.value||f.value)&&!_.disabled?(D(),_e(c(sa),{key:0})):(D(),_e(c(Q2),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):pe("v-if",!0),_.pageCount>1?(D(),G("li",{key:3,class:L([[c(o).is("active",_.currentPage===_.pageCount),c(o).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":c(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:c(v)},ze(_.pageCount),11,["aria-current","aria-label","tabindex"])):pe("v-if",!0)],42,["onKeyup"]))}});var vj=Ve(mj,[["__file","pager.vue"]]);const Po=e=>typeof e!="number",gj=Ue({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>st(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:le(Array),default:()=>_n([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:tn,default:()=>as},nextText:{type:String,default:""},nextIcon:{type:tn,default:()=>ko},teleported:{type:Boolean,default:!0},small:Boolean,size:Vn,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),bj={"update:current-page":e=>st(e),"update:page-size":e=>st(e),"size-change":e=>st(e),change:(e,t)=>st(e)&&st(t),"current-change":e=>st(e),"prev-click":e=>st(e),"next-click":e=>st(e)},sS="ElPagination";var yj=Q({name:sS,props:gj,emits:bj,setup(e,{emit:t,slots:n}){const{t:o}=$t(),r=Pe("pagination"),i=Pt().vnode.props||{},s=jM(),a=A(()=>{var w;return e.small?"small":(w=e.size)!=null?w:s.value});os({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},A(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,d=A(()=>{if(Po(e.total)&&Po(e.pageCount)||!Po(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Po(e.pageCount)){if(!Po(e.total)&&!Po(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),f=F(Po(e.defaultPageSize)?10:e.defaultPageSize),p=F(Po(e.defaultCurrentPage)?1:e.defaultCurrentPage),h=A({get(){return Po(e.pageSize)?f.value:e.pageSize},set(w){Po(e.pageSize)&&(f.value=w),u&&(t("update:page-size",w),t("size-change",w))}}),m=A(()=>{let w=0;return Po(e.pageCount)?Po(e.total)||(w=Math.max(1,Math.ceil(e.total/h.value))):w=e.pageCount,w}),v=A({get(){return Po(e.currentPage)?p.value:e.currentPage},set(w){let S=w;w<1?S=1:w>m.value&&(S=m.value),Po(e.currentPage)&&(p.value=S),l&&(t("update:current-page",S),t("current-change",S))}});Te(m,w=>{v.value>w&&(v.value=w)}),Te([v,h],w=>{t(It,...w)},{flush:"post"});function b(w){v.value=w}function g(w){h.value=w;const S=m.value;v.value>S&&(v.value=S)}function x(){e.disabled||(v.value-=1,t("prev-click",v.value))}function y(){e.disabled||(v.value+=1,t("next-click",v.value))}function _(w,S){w&&(w.props||(w.props={}),w.props.class=[w.props.class,S].join(" "))}return Lt(rA,{pageCount:m,disabled:A(()=>e.disabled),currentPage:v,changeEvent:b,handleSizeChange:g}),()=>{var w,S;if(!d.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&m.value<=1)return null;const M=[],T=[],E=ut("div",{class:r.e("rightwrapper")},T),C={prev:ut(Lq,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:x}),jumper:ut(lj,{size:a.value}),pager:ut(vj,{currentPage:v.value,pageCount:m.value,pagerCount:e.pagerCount,onChange:b,disabled:e.disabled}),next:ut(Bq,{disabled:e.disabled,currentPage:v.value,pageCount:m.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:ut(rj,{pageSize:h.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:a.value,appendSizeTo:e.appendSizeTo}),slot:(S=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?S:null,total:ut(fj,{total:Po(e.total)?0:e.total})},k=e.layout.split(",").map(B=>B.trim());let R=!1;return k.forEach(B=>{if(B==="->"){R=!0;return}R?T.push(C[B]):M.push(C[B])}),_(M[0],r.is("first")),_(M[M.length-1],r.is("last")),R&&T.length>0&&(_(T[0],r.is("first")),_(T[T.length-1],r.is("last")),M.push(E)),ut("div",{class:[r.b(),r.is("background",e.background),r.m(a.value)]},M)}}});const _j=yt(yj),xj=Ue({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:Nv,default:"primary"},cancelButtonType:{type:String,values:Nv,default:"text"},icon:{type:tn,default:()=>t5},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Pn.teleported,persistent:Pn.persistent,width:{type:[String,Number],default:150}}),Sj={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},wj=Q({name:"ElPopconfirm"}),Cj=Q({...wj,props:xj,emits:Sj,setup(e,{emit:t}){const n=e,{t:o}=$t(),r=Pe("popconfirm"),i=F(),s=()=>{var p,h;(h=(p=i.value)==null?void 0:p.onClose)==null||h.call(p)},a=A(()=>({width:Sn(n.width)})),l=p=>{t("confirm",p),s()},u=p=>{t("cancel",p),s()},d=A(()=>n.confirmButtonText||o("el.popconfirm.confirmButtonText")),f=A(()=>n.cancelButtonText||o("el.popconfirm.cancelButtonText"));return(p,h)=>(D(),_e(c(_o),Dt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},p.$attrs,{"popper-class":`${c(r).namespace.value}-popover`,"popper-style":c(a),teleported:p.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":p.hideAfter,persistent:p.persistent}),{content:se(()=>[j("div",{class:L(c(r).b())},[j("div",{class:L(c(r).e("main"))},[!p.hideIcon&&p.icon?(D(),_e(c(Je),{key:0,class:L(c(r).e("icon")),style:rt({color:p.iconColor})},{default:se(()=>[(D(),_e(Rt(p.icon)))]),_:1},8,["class","style"])):pe("v-if",!0),Tt(" "+ze(p.title),1)],2),j("div",{class:L(c(r).e("action"))},[de(p.$slots,"actions",{confirm:l,cancel:u},()=>[J(c(Qn),{size:"small",type:p.cancelButtonType==="text"?"":p.cancelButtonType,text:p.cancelButtonType==="text",onClick:u},{default:se(()=>[Tt(ze(c(f)),1)]),_:1},8,["type","text"]),J(c(Qn),{size:"small",type:p.confirmButtonType==="text"?"":p.confirmButtonType,text:p.confirmButtonType==="text",onClick:l},{default:se(()=>[Tt(ze(c(d)),1)]),_:1},8,["type","text"])])],2)],2)]),default:se(()=>[p.$slots.reference?de(p.$slots,"reference",{key:0}):pe("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Ej=Ve(Cj,[["__file","popconfirm.vue"]]);const Mj=yt(Ej),Tj=Ue({trigger:tu.trigger,triggerKeys:tu.triggerKeys,placement:kh.placement,disabled:tu.disabled,visible:Pn.visible,transition:Pn.transition,popperOptions:kh.popperOptions,tabindex:kh.tabindex,content:Pn.content,popperStyle:Pn.popperStyle,popperClass:Pn.popperClass,enterable:{...Pn.enterable,default:!0},effect:{...Pn.effect,default:"light"},teleported:Pn.teleported,appendTo:Pn.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Aj={"update:visible":e=>Jt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},kj="onUpdate:visible",Rj=Q({name:"ElPopover"}),Pj=Q({...Rj,props:Tj,emits:Aj,setup(e,{expose:t,emit:n}){const o=e,r=A(()=>o[kj]),i=Pe("popover"),s=F(),a=A(()=>{var b;return(b=c(s))==null?void 0:b.popperRef}),l=A(()=>[{width:Sn(o.width)},o.popperStyle]),u=A(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),d=A(()=>o.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var b;(b=s.value)==null||b.hide()},p=()=>{n("before-enter")},h=()=>{n("before-leave")},m=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(b,g)=>(D(),_e(c(_o),Dt({ref_key:"tooltipRef",ref:s},b.$attrs,{trigger:b.trigger,"trigger-keys":b.triggerKeys,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":c(u),"popper-style":c(l),teleported:b.teleported,"append-to":b.appendTo,persistent:b.persistent,"gpu-acceleration":c(d),"onUpdate:visible":c(r),onBeforeShow:p,onBeforeHide:h,onShow:m,onHide:v}),{content:se(()=>[b.title?(D(),G("div",{key:0,class:L(c(i).e("title")),role:"title"},ze(b.title),3)):pe("v-if",!0),de(b.$slots,"default",{},()=>[Tt(ze(b.content),1)])]),default:se(()=>[b.$slots.reference?de(b.$slots,"reference",{key:0}):pe("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var Dj=Ve(Pj,[["__file","popover.vue"]]);const aS=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var Ij={mounted(e,t){aS(e,t)},updated(e,t){aS(e,t)}};const Lj="popover",aA=uF(Ij,Lj),Nj=yt(Dj,{directive:aA}),Oj=Ue({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:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:le(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:le([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:le(Function),default:e=>`${e}%`}}),Fj=Q({name:"ElProgress"}),Bj=Q({...Fj,props:Oj,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Pe("progress"),r=A(()=>{const y={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},_=x(t.percentage);return _.includes("gradient")?y.background=_:y.backgroundColor=_,y}),i=A(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=A(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),a=A(()=>{const y=s.value,_=t.type==="dashboard";return` M 50 50 m 0 ${_?"":"-"}${y} a ${y} ${y} 0 1 1 0 ${_?"-":""}${y*2} a ${y} ${y} 0 1 1 0 ${_?"":"-"}${y*2} `}),l=A(()=>2*Math.PI*s.value),u=A(()=>t.type==="dashboard"?.75:1),d=A(()=>`${-1*l.value*(1-u.value)/2}px`),f=A(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:d.value})),p=A(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=A(()=>{let y;return t.color?y=x(t.percentage):y=n[t.status]||n.default,y}),m=A(()=>t.status==="warning"?f0:t.type==="line"?t.status==="success"?by:gs:t.status==="success"?Hd:Ir),v=A(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=A(()=>t.format(t.percentage));function g(y){const _=100/y.length;return y.map((S,M)=>et(S)?{color:S,percentage:(M+1)*_}:S).sort((S,M)=>S.percentage-M.percentage)}const x=y=>{var _;const{color:w}=t;if(it(w))return w(y);if(et(w))return w;{const S=g(w);for(const M of S)if(M.percentage>y)return M.color;return(_=S[S.length-1])==null?void 0:_.color}};return(y,_)=>(D(),G("div",{class:L([c(o).b(),c(o).m(y.type),c(o).is(y.status),{[c(o).m("without-text")]:!y.showText,[c(o).m("text-inside")]:y.textInside}]),role:"progressbar","aria-valuenow":y.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[y.type==="line"?(D(),G("div",{key:0,class:L(c(o).b("bar"))},[j("div",{class:L(c(o).be("bar","outer")),style:rt({height:`${y.strokeWidth}px`})},[j("div",{class:L([c(o).be("bar","inner"),{[c(o).bem("bar","inner","indeterminate")]:y.indeterminate},{[c(o).bem("bar","inner","striped")]:y.striped},{[c(o).bem("bar","inner","striped-flow")]:y.stripedFlow}]),style:rt(c(r))},[(y.showText||y.$slots.default)&&y.textInside?(D(),G("div",{key:0,class:L(c(o).be("bar","innerText"))},[de(y.$slots,"default",{percentage:y.percentage},()=>[j("span",null,ze(c(b)),1)])],2)):pe("v-if",!0)],6)],6)],2)):(D(),G("div",{key:1,class:L(c(o).b("circle")),style:rt({height:`${y.width}px`,width:`${y.width}px`})},[(D(),G("svg",{viewBox:"0 0 100 100"},[j("path",{class:L(c(o).be("circle","track")),d:c(a),stroke:`var(${c(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":y.strokeLinecap,"stroke-width":c(i),fill:"none",style:rt(c(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),j("path",{class:L(c(o).be("circle","path")),d:c(a),stroke:c(h),fill:"none",opacity:y.percentage?1:0,"stroke-linecap":y.strokeLinecap,"stroke-width":c(i),style:rt(c(p))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(y.showText||y.$slots.default)&&!y.textInside?(D(),G("div",{key:2,class:L(c(o).e("text")),style:rt({fontSize:`${c(v)}px`})},[de(y.$slots,"default",{percentage:y.percentage},()=>[y.status?(D(),_e(c(Je),{key:1},{default:se(()=>[(D(),_e(Rt(c(m))))]),_:1})):(D(),G("span",{key:0},ze(c(b)),1))])],6)):pe("v-if",!0)],10,["aria-valuenow"]))}});var $j=Ve(Bj,[["__file","progress.vue"]]);const lA=yt($j),Uj=Ue({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:le([Array,Object]),default:()=>_n(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:le([Array,Object]),default:()=>[bf,bf,bf]},voidIcon:{type:tn,default:()=>v5},disabledVoidIcon:{type:tn,default:()=>bf},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:le(Array),default:()=>_n(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Vn,clearable:Boolean,...ho(["ariaLabel"])}),zj={[It]:e=>st(e),[vt]:e=>st(e)},Vj=Q({name:"ElRate"}),Hj=Q({...Vj,props:Uj,emits:zj,setup(e,{expose:t,emit:n}){const o=e;function r(P,U){const I=K=>Ct(K),O=Object.keys(U).map(K=>+K).filter(K=>{const oe=U[K];return(I(oe)?oe.excluded:!1)?PK-oe),q=U[O[0]];return I(q)&&q.value||q}const i=je(pl,void 0),s=je(Mi,void 0),a=Fn(),l=Pe("rate"),{inputId:u,isLabeledByFormItem:d}=Br(o,{formItemContext:s}),f=F(o.modelValue),p=F(-1),h=F(!0),m=A(()=>[l.b(),l.m(a.value)]),v=A(()=>o.disabled||(i==null?void 0:i.disabled)),b=A(()=>l.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":_.value})),g=A(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),x=A(()=>o.modelValue*100-Math.floor(o.modelValue)*100),y=A(()=>Oe(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),_=A(()=>{const P=r(f.value,y.value);return Ct(P)?"":P}),w=A(()=>{let P="";return v.value?P=`${x.value}%`:o.allowHalf&&(P="50%"),{color:_.value,width:P}}),S=A(()=>{let P=Oe(o.icons)?[...o.icons]:{...o.icons};return P=ts(P),Oe(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),M=A(()=>r(o.modelValue,S.value)),T=A(()=>v.value?et(o.disabledVoidIcon)?o.disabledVoidIcon:ts(o.disabledVoidIcon):et(o.voidIcon)?o.voidIcon:ts(o.voidIcon)),E=A(()=>r(f.value,S.value));function C(P){const U=v.value&&x.value>0&&P-1o.modelValue,I=o.allowHalf&&h.value&&P-.5<=f.value&&P>f.value;return U||I}function k(P){o.clearable&&P===o.modelValue&&(P=0),n(vt,P),o.modelValue!==P&&n(It,P)}function R(P){v.value||(o.allowHalf&&h.value?k(f.value):k(P))}function B(P){if(v.value)return;let U=f.value;const I=P.code;return I===Ke.up||I===Ke.right?(o.allowHalf?U+=.5:U+=1,P.stopPropagation(),P.preventDefault()):(I===Ke.left||I===Ke.down)&&(o.allowHalf?U-=.5:U-=1,P.stopPropagation(),P.preventDefault()),U=U<0?0:U,U=U>o.max?o.max:U,n(vt,U),n(It,U),U}function H(P,U){if(!v.value){if(o.allowHalf&&U){let I=U.target;qo(I,l.e("item"))&&(I=I.querySelector(`.${l.e("icon")}`)),(I.clientWidth===0||qo(I,l.e("decimal")))&&(I=I.parentNode),h.value=U.offsetX*2<=I.clientWidth,f.value=h.value?P-.5:P}else f.value=P;p.value=P}}function N(){v.value||(o.allowHalf&&(h.value=o.modelValue!==Math.floor(o.modelValue)),f.value=o.modelValue,p.value=-1)}return Te(()=>o.modelValue,P=>{f.value=P,h.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||n(vt,0),t({setCurrentValue:H,resetCurrentValue:N}),(P,U)=>{var I;return D(),G("div",{id:c(u),class:L([c(m),c(l).is("disabled",c(v))]),role:"slider","aria-label":c(d)?void 0:P.ariaLabel||"rating","aria-labelledby":c(d)?(I=c(s))==null?void 0:I.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":c(g)||void 0,"aria-valuemin":"0","aria-valuemax":P.max,tabindex:"0",style:rt(c(b)),onKeydown:B},[(D(!0),G(tt,null,Nt(P.max,(O,q)=>(D(),G("span",{key:q,class:L(c(l).e("item")),onMousemove:K=>H(O,K),onMouseleave:N,onClick:K=>R(O)},[J(c(Je),{class:L([c(l).e("icon"),{hover:p.value===O},c(l).is("active",O<=f.value)])},{default:se(()=>[C(O)?pe("v-if",!0):(D(),G(tt,{key:0},[_t((D(),_e(Rt(c(E)),null,null,512)),[[Vt,O<=f.value]]),_t((D(),_e(Rt(c(T)),null,null,512)),[[Vt,!(O<=f.value)]])],64)),C(O)?(D(),G(tt,{key:1},[(D(),_e(Rt(c(T)),{class:L([c(l).em("decimal","box")])},null,8,["class"])),J(c(Je),{style:rt(c(w)),class:L([c(l).e("icon"),c(l).e("decimal")])},{default:se(()=>[(D(),_e(Rt(c(M))))]),_:1},8,["style","class"])],64)):pe("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),P.showText||P.showScore?(D(),G("span",{key:0,class:L(c(l).e("text")),style:rt({color:P.textColor})},ze(c(g)),7)):pe("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var Wj=Ve(Hj,[["__file","rate.vue"]]);const Gj=yt(Wj),Da={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},lS={[Da.primary]:id,[Da.success]:AF,[Da.warning]:f0,[Da.error]:yy,[Da.info]:id},Kj=Ue({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),qj=Q({name:"ElResult"}),jj=Q({...qj,props:Kj,setup(e){const t=e,n=Pe("result"),o=A(()=>{const r=t.icon,i=r&&Da[r]?Da[r]:"icon-info",s=lS[i]||lS["icon-info"];return{class:i,component:s}});return(r,i)=>(D(),G("div",{class:L(c(n).b())},[j("div",{class:L(c(n).e("icon"))},[de(r.$slots,"icon",{},()=>[c(o).component?(D(),_e(Rt(c(o).component),{key:0,class:L(c(o).class)},null,8,["class"])):pe("v-if",!0)])],2),r.title||r.$slots.title?(D(),G("div",{key:0,class:L(c(n).e("title"))},[de(r.$slots,"title",{},()=>[j("p",null,ze(r.title),1)])],2)):pe("v-if",!0),r.subTitle||r.$slots["sub-title"]?(D(),G("div",{key:1,class:L(c(n).e("subtitle"))},[de(r.$slots,"sub-title",{},()=>[j("p",null,ze(r.subTitle),1)])],2)):pe("v-if",!0),r.$slots.extra?(D(),G("div",{key:2,class:L(c(n).e("extra"))},[de(r.$slots,"extra")],2)):pe("v-if",!0)],2))}});var Yj=Ve(jj,[["__file","result.vue"]]);const Xj=yt(Yj),Zj=["start","center","end","space-around","space-between","space-evenly"],Jj=["top","middle","bottom"],Qj=Ue({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Zj,default:"start"},align:{type:String,values:Jj}}),eY=Q({name:"ElRow"}),tY=Q({...eY,props:Qj,setup(e){const t=e,n=Pe("row"),o=A(()=>t.gutter);Lt(hT,{gutter:o});const r=A(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),i=A(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,a)=>(D(),_e(Rt(s.tag),{class:L(c(i)),style:rt(c(r))},{default:se(()=>[de(s.$slots,"default")]),_:3},8,["class","style"]))}});var nY=Ve(tY,[["__file","row.vue"]]);const oY=yt(nY),rY=Q({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Pe("select")}}});function iY(e,t,n,o,r,i){return D(),G("div",{class:L(e.ns.be("group","title")),style:rt({...e.style,lineHeight:`${e.height}px`})},ze(e.item.label),7)}var sY=Ve(rY,[["render",iY],["__file","group-item.vue"]]);function aY(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const uA={label:"label",value:"value",disabled:"disabled",options:"options"};function w0(e){const t=A(()=>({...uA,...e.props}));return{aliasProps:t,getLabel:s=>Dn(s,t.value.label),getValue:s=>Dn(s,t.value.value),getDisabled:s=>Dn(s,t.value.disabled),getOptions:s=>Dn(s,t.value.options)}}const lY=Ue({allowCreate:Boolean,autocomplete:{type:le(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:tn,default:gs},effect:{type:le(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:le([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:le(Array),required:!0},placeholder:{type:String},teleported:Pn.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,size:Vn,props:{type:le(Object),default:()=>uA},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},showArrow:{type:Boolean,default:!0},placement:{type:le(String),values:bs,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tagType:{...us.type,default:"info"},tagEffect:{...us.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Pn.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Jt(e)||st(e)}},suffixIcon:{type:tn,default:Di},...ju,...ho(["ariaLabel"])}),uY=Ue({data:Array,disabled:Boolean,hovering:Boolean,item:{type:le(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),cY={[vt]:e=>!0,[It]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},dY={hover:e=>st(e),select:(e,t)=>!0},s1=Symbol("ElSelectV2Injection"),fY=Q({props:uY,emits:dY,setup(e,{emit:t}){const n=je(s1),o=Pe("select"),{hoverItem:r,selectOptionClick:i}=aY(e,{emit:t}),{getLabel:s}=w0(n.props);return{ns:o,hoverItem:r,selectOptionClick:i,getLabel:s}}});function hY(e,t,n,o,r,i){return D(),G("li",{"aria-selected":e.selected,style:rt(e.style),class:L([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:e.hoverItem,onClick:dt(e.selectOptionClick,["stop"])},[de(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[j("span",null,ze(e.getLabel(e.item)),1)])],46,["aria-selected","onMousemove","onClick"])}var pY=Ve(fY,[["render",hY],["__file","option-item.vue"]]),uS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mY(e,t){return!!(e===t||uS(e)&&uS(t))}function vY(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const t=Pt().proxy.$props;return A(()=>{const n=(o,r,i)=>({});return t.perfMode?i0(n):gY(n)})},eg=50,gp="itemRendered",bp="scroll",Kl="forward",yp="backward",kr="auto",C0="smart",fd="start",vi="center",hd="end",Tu="horizontal",a1="vertical",bY="ltr",nu="rtl",pd="negative",l1="positive-ascending",u1="positive-descending",yY={[Tu]:"left",[a1]:"top"},_Y=20,xY={[Tu]:"deltaX",[a1]:"deltaY"},SY=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let r,i=0;const s=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:s,onWheel:l=>{nl(r);const u=l[xY[n.value]];s(i)&&s(i+u)||(i+=u,xy()||l.preventDefault(),r=ra(()=>{o(i),i=0}))}}},tg=ni({type:le([Number,Function]),required:!0}),ng=ni({type:Number}),og=ni({type:Number,default:2}),wY=ni({type:String,values:["ltr","rtl"],default:"ltr"}),rg=ni({type:Number,default:0}),_p=ni({type:Number,required:!0}),dA=ni({type:String,values:["horizontal","vertical"],default:a1}),fA=Ue({className:{type:String,default:""},containerElement:{type:le([String,Object]),default:"div"},data:{type:le(Array),default:()=>_n([])},direction:wY,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:le([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),hA=Ue({cache:og,estimatedItemSize:ng,layout:dA,initScrollOffset:rg,total:_p,itemSize:tg,...fA}),ig={type:Number,default:6},pA={type:Number,default:0},mA={type:Number,default:2},Za=Ue({columnCache:og,columnWidth:tg,estimatedColumnWidth:ng,estimatedRowHeight:ng,initScrollLeft:rg,initScrollTop:rg,itemKey:{type:le(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:og,rowHeight:tg,totalColumn:_p,totalRow:_p,hScrollbarSize:ig,vScrollbarSize:ig,scrollbarStartGap:pA,scrollbarEndGap:mA,role:String,...fA}),vA=Ue({alwaysOn:Boolean,class:String,layout:dA,total:_p,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ig,startGap:pA,endGap:mA,visible:Boolean}),Ua=(e,t)=>ee===bY||e===nu||e===Tu,cS=e=>e===nu;let Sl=null;function xp(e=!1){if(Sl===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),r=o.style;return r.width="100px",r.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?Sl=u1:(t.scrollLeft=1,t.scrollLeft===0?Sl=pd:Sl=l1),document.body.removeChild(t),Sl}return Sl}function CY({move:e,size:t,bar:n},o){const r={},i=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=i,o==="horizontal"?r.height="100%":r.width="100%",r}const sg=Q({name:"ElVirtualScrollBar",props:vA,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=A(()=>e.startGap+e.endGap),o=Pe("virtual-scrollbar"),r=Pe("scrollbar"),i=F(),s=F();let a=null,l=null;const u=Gt({isDragging:!1,traveled:0}),d=A(()=>d3[e.layout]),f=A(()=>e.clientSize-c(n)),p=A(()=>({position:"absolute",width:`${Tu===e.layout?f.value:e.scrollbarSize}px`,height:`${Tu===e.layout?e.scrollbarSize:f.value}px`,[yY[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=A(()=>{const S=e.ratio;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*f.value/100;const M=f.value/3;return Math.floor(Math.min(Math.max(S*f.value,_Y),M))}),m=A(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return CY({bar:d.value,size:S,move:u.traveled},e.layout)}),v=A(()=>Math.ceil(e.clientSize-h.value-c(n))),b=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",y);const S=c(s);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",_,{passive:!0}),S.addEventListener("touchend",y))},g=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",y),document.onselectstart=l,l=null;const S=c(s);S&&(S.removeEventListener("touchmove",_),S.removeEventListener("touchend",y))},x=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[d.value.axis]=S.currentTarget[d.value.offset]-(S[d.value.client]-S.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),b())},y=()=>{u.isDragging=!1,u[d.value.axis]=0,t("stop-move"),g()},_=S=>{const{isDragging:M}=u;if(!M||!s.value||!i.value)return;const T=u[d.value.axis];if(!T)return;nl(a);const E=(i.value.getBoundingClientRect()[d.value.direction]-S[d.value.client])*-1,C=s.value[d.value.offset]-T,k=E-C;a=ra(()=>{u.traveled=Math.max(0,Math.min(k,v.value)),t("scroll",k,v.value)})},w=S=>{const M=Math.abs(S.target.getBoundingClientRect()[d.value.direction]-S[d.value.client]),T=s.value[d.value.offset]/2,E=M-T;u.traveled=Math.max(0,Math.min(E,v.value)),t("scroll",E,v.value)};return Te(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*v.value))}),Qt(()=>{g()}),()=>ut("div",{role:"presentation",ref:i,class:[o.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:p.value,onMousedown:dt(w,["stop","prevent"]),onTouchstartPrevent:x},ut("div",{ref:s,class:r.e("thumb"),style:m.value,onMousedown:x},[]))}}),gA=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:r,getStartIndexForOffset:i,getStopIndexForStartIndex:s,initCache:a,clearCache:l,validateProps:u})=>Q({name:e??"ElVirtualList",props:hA,emits:[gp,bp],setup(d,{emit:f,expose:p}){u(d);const h=Pt(),m=Pe("vl"),v=F(a(d,h)),b=cA(),g=F(),x=F(),y=F(),_=F({isScrolling:!1,scrollDir:"forward",scrollOffset:st(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),w=A(()=>{const{total:X,cache:Y}=d,{isScrolling:ie,scrollDir:ae,scrollOffset:re}=c(_);if(X===0)return[0,0,0,0];const fe=i(d,re,c(v)),be=s(d,fe,re,c(v)),De=!ie||ae===yp?Math.max(1,Y):1,Re=!ie||ae===Kl?Math.max(1,Y):1;return[Math.max(0,fe-De),Math.max(0,Math.min(X-1,be+Re)),fe,be]}),S=A(()=>r(d,c(v))),M=A(()=>md(d.layout)),T=A(()=>[{position:"relative",[`overflow-${M.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:st(d.height)?`${d.height}px`:d.height,width:st(d.width)?`${d.width}px`:d.width},d.style]),E=A(()=>{const X=c(S),Y=c(M);return{height:Y?"100%":`${X}px`,pointerEvents:c(_).isScrolling?"none":void 0,width:Y?`${X}px`:"100%"}}),C=A(()=>M.value?d.width:d.height),{onWheel:k}=SY({atStartEdge:A(()=>_.value.scrollOffset<=0),atEndEdge:A(()=>_.value.scrollOffset>=S.value),layout:A(()=>d.layout)},X=>{var Y,ie;(ie=(Y=y.value).onMouseUp)==null||ie.call(Y),U(Math.min(_.value.scrollOffset+X,S.value-C.value))});on(g,"wheel",k,{passive:!1});const R=()=>{const{total:X}=d;if(X>0){const[re,fe,be,De]=c(w);f(gp,re,fe,be,De)}const{scrollDir:Y,scrollOffset:ie,updateRequested:ae}=c(_);f(bp,Y,ie,ae)},B=X=>{const{clientHeight:Y,scrollHeight:ie,scrollTop:ae}=X.currentTarget,re=c(_);if(re.scrollOffset===ae)return;const fe=Math.max(0,Math.min(ae,ie-Y));_.value={...re,isScrolling:!0,scrollDir:Ua(re.scrollOffset,fe),scrollOffset:fe,updateRequested:!1},Qe(q)},H=X=>{const{clientWidth:Y,scrollLeft:ie,scrollWidth:ae}=X.currentTarget,re=c(_);if(re.scrollOffset===ie)return;const{direction:fe}=d;let be=ie;if(fe===nu)switch(xp()){case pd:{be=-ie;break}case u1:{be=ae-Y-ie;break}}be=Math.max(0,Math.min(be,ae-Y)),_.value={...re,isScrolling:!0,scrollDir:Ua(re.scrollOffset,be),scrollOffset:be,updateRequested:!1},Qe(q)},N=X=>{c(M)?H(X):B(X),R()},P=(X,Y)=>{const ie=(S.value-C.value)/Y*X;U(Math.min(S.value-C.value,ie))},U=X=>{X=Math.max(X,0),X!==c(_).scrollOffset&&(_.value={...c(_),scrollOffset:X,scrollDir:Ua(c(_).scrollOffset,X),updateRequested:!0},Qe(q))},I=(X,Y=kr)=>{const{scrollOffset:ie}=c(_);X=Math.max(0,Math.min(X,d.total-1)),U(t(d,X,Y,ie,c(v)))},O=X=>{const{direction:Y,itemSize:ie,layout:ae}=d,re=b.value(l&&ie,l&&ae,l&&Y);let fe;if(zt(re,String(X)))fe=re[X];else{const be=o(d,X,c(v)),De=n(d,X,c(v)),Re=c(M),V=Y===nu,ee=Re?be:0;re[X]=fe={position:"absolute",left:V?void 0:`${ee}px`,right:V?`${ee}px`:void 0,top:Re?0:`${be}px`,height:Re?"100%":`${De}px`,width:Re?`${De}px`:"100%"}}return fe},q=()=>{_.value.isScrolling=!1,Qe(()=>{b.value(-1,null,null)})},K=()=>{const X=g.value;X&&(X.scrollTop=0)};xt(()=>{if(!Ft)return;const{initScrollOffset:X}=d,Y=c(g);st(X)&&Y&&(c(M)?Y.scrollLeft=X:Y.scrollTop=X),R()}),ei(()=>{const{direction:X,layout:Y}=d,{scrollOffset:ie,updateRequested:ae}=c(_),re=c(g);if(ae&&re)if(Y===Tu)if(X===nu)switch(xp()){case pd:{re.scrollLeft=-ie;break}case l1:{re.scrollLeft=ie;break}default:{const{clientWidth:fe,scrollWidth:be}=re;re.scrollLeft=be-fe-ie;break}}else re.scrollLeft=ie;else re.scrollTop=ie}),Xp(()=>{c(g).scrollTop=c(_).scrollOffset});const oe={ns:m,clientSize:C,estimatedTotalSize:S,windowStyle:T,windowRef:g,innerRef:x,innerStyle:E,itemsToRender:w,scrollbarRef:y,states:_,getItemStyle:O,onScroll:N,onScrollbarScroll:P,onWheel:k,scrollTo:U,scrollToItem:I,resetScrollTop:K};return p({windowRef:g,innerRef:x,getItemStyleCache:b,scrollTo:U,scrollToItem:I,resetScrollTop:K,states:_}),oe},render(d){var f;const{$slots:p,className:h,clientSize:m,containerElement:v,data:b,getItemStyle:g,innerElement:x,itemsToRender:y,innerStyle:_,layout:w,total:S,onScroll:M,onScrollbarScroll:T,states:E,useIsScrolling:C,windowStyle:k,ns:R}=d,[B,H]=y,N=Rt(v),P=Rt(x),U=[];if(S>0)for(let K=B;K<=H;K++)U.push(ut(tt,{key:K},(f=p.default)==null?void 0:f.call(p,{data:b,index:K,isScrolling:C?E.isScrolling:void 0,style:g(K)})));const I=[ut(P,{style:_,ref:"innerRef"},et(P)?U:{default:()=>U})],O=ut(sg,{ref:"scrollbarRef",clientSize:m,layout:w,onScroll:T,ratio:m*100/this.estimatedTotalSize,scrollFrom:E.scrollOffset/(this.estimatedTotalSize-m),total:S}),q=ut(N,{class:[R.e("window"),h],style:k,onScroll:M,ref:"windowRef",key:0},et(N)?[I]:{default:()=>[I]});return ut("div",{key:0,class:[R.e("wrapper"),E.scrollbarAlwaysOn?"always-on":""]},[q,O])}}),bA=gA({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:r},i,s,a)=>{const l=md(o)?r:e,u=Math.max(0,t*n-l),d=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(s===C0&&(a>=f-l&&a<=d+l?s=kr:s=vi),s){case fd:return d;case hd:return f;case vi:{const p=Math.round(f+(d-f)/2);return pu+Math.floor(l/2)?u:p}case kr:default:return a>=f&&a<=d?a:aMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:r},i,s)=>{const a=i*n,l=md(o)?r:e,u=Math.ceil((l+s-a)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),ql=(e,t,n)=>{const{itemSize:o}=e,{items:r,lastVisitedIndex:i}=n;if(t>i){let s=0;if(i>=0){const a=r[i];s=a.offset+a.size}for(let a=i+1;a<=t;a++){const l=o(a);r[a]={offset:s,size:l},s+=l}n.lastVisitedIndex=t}return r[t]},EY=(e,t,n)=>{const{items:o,lastVisitedIndex:r}=t;return(r>0?o[r].offset:0)>=n?yA(e,t,0,r,n):MY(e,t,Math.max(0,r),n)},yA=(e,t,n,o,r)=>{for(;n<=o;){const i=n+Math.floor((o-n)/2),s=ql(e,i,t).offset;if(s===r)return i;sr&&(o=i-1)}return Math.max(0,n-1)},MY=(e,t,n,o)=>{const{total:r}=e;let i=1;for(;n{let r=0;if(o>=e&&(o=e-1),o>=0){const a=t[o];r=a.offset+a.size}const s=(e-o-1)*n;return r+s},TY=gA({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ql(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:dS,getOffset:(e,t,n,o,r)=>{const{height:i,layout:s,width:a}=e,l=md(s)?a:i,u=ql(e,t,r),d=dS(e,r),f=Math.max(0,Math.min(d-l,u.offset)),p=Math.max(0,u.offset-l+u.size);switch(n===C0&&(o>=p-l&&o<=f+l?n=kr:n=vi),n){case fd:return f;case hd:return p;case vi:return Math.round(p+(f-p)/2);case kr:default:return o>=p&&o<=f?o:oEY(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:r,total:i,layout:s,width:a}=e,l=md(s)?a:r,u=ql(e,t,o),d=n+l;let f=u.offset+u.size,p=t;for(;p{var i,s;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(i=t.exposed)==null||i.getItemStyleCache(-1),r&&((s=t.proxy)==null||s.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),AY={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var kY=Q({name:"ElSelectDropdown",props:AY,setup(e,{slots:t,expose:n}){const o=je(s1),r=Pe("select"),{getLabel:i,getValue:s,getDisabled:a}=w0(o.props),l=F([]),u=F(),d=A(()=>e.data.length);Te(()=>d.value,()=>{var k,R;(R=(k=o.tooltipRef.value)==null?void 0:k.updatePopper)==null||R.call(k)});const f=A(()=>Bt(o.props.estimatedOptionHeight)),p=A(()=>f.value?{itemSize:o.props.itemHeight}:{estimatedSize:o.props.estimatedOptionHeight,itemSize:k=>l.value[k]}),h=(k=[],R)=>{const{props:{valueKey:B}}=o;return Ct(R)?k&&k.some(H=>sn(Dn(H,B))===Dn(R,B)):k.includes(R)},m=(k,R)=>{if(Ct(R)){const{valueKey:B}=o.props;return Dn(k,B)===Dn(R,B)}else return k===R},v=(k,R)=>o.props.multiple?h(k,s(R)):m(k,s(R)),b=(k,R)=>{const{disabled:B,multiple:H,multipleLimit:N}=o.props;return B||!R&&(H?N>0&&k.length>=N:!1)},g=k=>e.hoveringIndex===k;n({listRef:u,isSized:f,isItemDisabled:b,isItemHovering:g,isItemSelected:v,scrollToItem:k=>{const R=u.value;R&&R.scrollToItem(k)},resetScrollTop:()=>{const k=u.value;k&&k.resetScrollTop()}});const w=k=>{const{index:R,data:B,style:H}=k,N=c(f),{itemSize:P,estimatedSize:U}=c(p),{modelValue:I}=o.props,{onSelect:O,onHover:q}=o,K=B[R];if(K.type==="Group")return J(sY,{item:K,style:H,height:N?P:U},null);const oe=v(I,K),X=b(I,oe),Y=g(R);return J(pY,Dt(k,{selected:oe,disabled:a(K)||X,created:!!K.created,hovering:Y,item:K,onSelect:O,onHover:q}),{default:ie=>{var ae;return((ae=t.default)==null?void 0:ae.call(t,ie))||J("span",null,[i(K)])}})},{onKeyboardNavigate:S,onKeyboardSelect:M}=o,T=()=>{S("forward")},E=()=>{S("backward")},C=k=>{const{code:R}=k,{tab:B,esc:H,down:N,up:P,enter:U,numpadEnter:I}=Ke;switch([H,N,P,U,I].includes(R)&&(k.preventDefault(),k.stopPropagation()),R){case B:case H:break;case N:T();break;case P:E();break;case U:case I:M();break}};return()=>{var k,R,B,H;const{data:N,width:P}=e,{height:U,multiple:I,scrollbarAlwaysOn:O}=o.props,q=A(()=>ip?!0:O),K=c(f)?bA:TY;return J("div",{class:[r.b("dropdown"),r.is("multiple",I)],style:{width:`${P}px`}},[(k=t.header)==null?void 0:k.call(t),((R=t.loading)==null?void 0:R.call(t))||((B=t.empty)==null?void 0:B.call(t))||J(K,Dt({ref:u},c(p),{className:r.be("dropdown","list"),scrollbarAlwaysOn:q.value,data:N,height:U,width:P,total:N.length,onKeydown:C}),{default:oe=>J(w,oe,null)}),(H=t.footer)==null?void 0:H.call(t)])}}});function RY(e,t){const{aliasProps:n,getLabel:o,getValue:r}=w0(e),i=F(0),s=F(),a=A(()=>e.allowCreate&&e.filterable);function l(h){const m=v=>o(v)===h;return e.options&&e.options.some(m)||t.createdOptions.some(m)}function u(h){a.value&&(e.multiple&&h.created?i.value++:s.value=h)}function d(h){if(a.value)if(h&&h.length>0){if(l(h))return;const m={[n.value.value]:h,[n.value.label]:h,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=m:t.createdOptions.push(m)}else if(e.multiple)t.createdOptions.length=i.value;else{const m=s.value;t.createdOptions.length=0,m&&m.created&&t.createdOptions.push(m)}}function f(h){if(!a.value||!h||!h.created||h.created&&e.reserveKeyword&&t.inputValue===o(h))return;const m=t.createdOptions.findIndex(v=>r(v)===r(h));~m&&(t.createdOptions.splice(m,1),i.value--)}function p(){a.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:u,clearAllNewOption:p}}const PY=(e,t)=>{const{t:n}=$t(),o=Pe("select"),r=Pe("input"),{form:i,formItem:s}=xo(),{inputId:a}=Br(e,{formItemContext:s}),{aliasProps:l,getLabel:u,getValue:d,getDisabled:f,getOptions:p}=w0(e),{valueOnClear:h,isEmptyValue:m}=u0(e),v=Gt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),b=F(-1),g=F(),x=F(),y=F(),_=F(),w=F(),S=F(),M=F(),T=F(),E=F(),C=F(),{isComposing:k,handleCompositionStart:R,handleCompositionEnd:B,handleCompositionUpdate:H}=Gd({afterComposition:W=>ro(W)}),{wrapperRef:N,isFocused:P,handleBlur:U}=ma(w,{beforeFocus(){return oe.value},afterFocus(){e.automaticDropdown&&!K.value&&(K.value=!0,v.menuVisibleOnFocus=!0)},beforeBlur(W){var ye,Ae;return((ye=y.value)==null?void 0:ye.isFocusInsideContent(W))||((Ae=_.value)==null?void 0:Ae.isFocusInsideContent(W))},afterBlur(){var W;K.value=!1,v.menuVisibleOnFocus=!1,e.validateEvent&&((W=s==null?void 0:s.validate)==null||W.call(s,"blur").catch(ye=>void 0))}}),I=A(()=>ee("")),O=A(()=>e.loading?!1:e.options.length>0||v.createdOptions.length>0),q=F([]),K=F(!1),oe=A(()=>e.disabled||(i==null?void 0:i.disabled)),X=A(()=>{var W;return(W=i==null?void 0:i.statusIcon)!=null?W:!1}),Y=A(()=>{const W=q.value.length*e.itemHeight;return W>e.height?e.height:W}),ie=A(()=>e.multiple?Oe(e.modelValue)&&e.modelValue.length>0:!m(e.modelValue)),ae=A(()=>e.clearable&&!oe.value&&v.inputHovering&&ie.value),re=A(()=>e.remote&&e.filterable?"":e.suffixIcon),fe=A(()=>re.value&&o.is("reverse",K.value)),be=A(()=>(s==null?void 0:s.validateState)||""),De=A(()=>{if(be.value)return h0[be.value]}),Re=A(()=>e.remote?300:0),V=A(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!v.inputValue&&!O.value?!1:e.filterable&&v.inputValue&&O.value&&q.value.length===0?e.noMatchText||n("el.select.noMatch"):O.value?null:e.noDataText||n("el.select.noData")),ee=W=>{const ye=new RegExp(By(W),"i"),Ae=e.filterable&&it(e.filterMethod),Le=e.filterable&&e.remote&&it(e.remoteMethod),Ie=at=>Ae||Le?!0:W?ye.test(u(at)||""):!0;return e.loading?[]:[...v.createdOptions,...e.options].reduce((at,bt)=>{const kt=p(bt);if(Oe(kt)){const At=kt.filter(Ie);At.length>0&&at.push({label:u(bt),type:"Group"},...At)}else(e.remote||Ie(bt))&&at.push(bt);return at},[])},z=()=>{q.value=ee(v.inputValue)},ve=A(()=>{const W=new Map;return I.value.forEach((ye,Ae)=>{W.set(Xe(d(ye)),{option:ye,index:Ae})}),W}),ce=A(()=>{const W=new Map;return q.value.forEach((ye,Ae)=>{W.set(Xe(d(ye)),{option:ye,index:Ae})}),W}),me=A(()=>q.value.every(W=>f(W))),ue=Fn(),ge=A(()=>ue.value==="small"?"small":"default"),xe=()=>{var W;if(st(e.fitInputWidth)){b.value=e.fitInputWidth;return}const ye=((W=g.value)==null?void 0:W.offsetWidth)||200;!e.fitInputWidth&&O.value?Qe(()=>{b.value=Math.max(ye,Ce())}):b.value=ye},Ce=()=>{var W,ye;const Le=document.createElement("canvas").getContext("2d"),Ie=o.be("dropdown","item"),bt=(((ye=(W=T.value)==null?void 0:W.listRef)==null?void 0:ye.innerRef)||document).querySelector(`.${Ie}`);if(bt===null||Le===null)return 0;const kt=getComputedStyle(bt),At=Number.parseFloat(kt.paddingLeft)+Number.parseFloat(kt.paddingRight);return Le.font=`bold ${kt.font.replace(new RegExp(`\\b${kt.fontWeight}\\b`),"")}`,q.value.reduce((Wt,Ot)=>{const rn=Le.measureText(u(Ot));return Math.max(rn.width,Wt)},0)+At},Fe=()=>{if(!x.value)return 0;const W=window.getComputedStyle(x.value);return Number.parseFloat(W.gap||"6px")},Z=A(()=>{const W=Fe();return{maxWidth:`${C.value&&e.maxCollapseTags===1?v.selectionWidth-v.collapseItemWidth-W:v.selectionWidth}px`}}),$=A(()=>({maxWidth:`${v.selectionWidth}px`})),he=A(()=>Oe(e.modelValue)?e.modelValue.length===0&&!v.inputValue:e.filterable?!v.inputValue:!0),Me=A(()=>{var W;const ye=(W=e.placeholder)!=null?W:n("el.select.placeholder");return e.multiple||!ie.value?ye:v.selectedLabel}),Be=A(()=>{var W,ye;return(ye=(W=y.value)==null?void 0:W.popperRef)==null?void 0:ye.contentRef}),Ne=A(()=>{if(e.multiple){const W=e.modelValue.length;if(e.modelValue.length>0&&ce.value.has(e.modelValue[W-1])){const{index:ye}=ce.value.get(e.modelValue[W-1]);return ye}}else if(!m(e.modelValue)&&ce.value.has(e.modelValue)){const{index:W}=ce.value.get(e.modelValue);return W}return-1}),nt=A({get(){return K.value&&V.value!==!1},set(W){K.value=W}}),qe=A(()=>e.multiple?e.collapseTags?v.cachedOptions.slice(0,e.maxCollapseTags):v.cachedOptions:[]),ht=A(()=>e.multiple?e.collapseTags?v.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:He,removeNewOption:$e,selectNewOption:ne,clearAllNewOption:we}=RY(e,v),te=()=>{oe.value||(v.menuVisibleOnFocus?v.menuVisibleOnFocus=!1:K.value=!K.value)},Ee=()=>{v.inputValue.length>0&&!K.value&&(K.value=!0),He(v.inputValue),Qe(()=>{Se(v.inputValue)})},Ye=tr(Ee,Re.value),Se=W=>{v.previousQuery===W||k.value||(v.previousQuery=W,e.filterable&&it(e.filterMethod)?e.filterMethod(W):e.filterable&&e.remote&&it(e.remoteMethod)&&e.remoteMethod(W),e.defaultFirstOption&&(e.filterable||e.remote)&&q.value.length?Qe(ot):Qe(kn))},ot=()=>{const W=q.value.filter(Le=>!Le.disabled&&Le.type!=="Group"),ye=W.find(Le=>Le.created),Ae=W[0];v.hoveringIndex=lt(q.value,ye||Ae)},Ze=W=>{Zn(e.modelValue,W)||t(It,W)},ft=W=>{t(vt,W),Ze(W),v.previousValue=e.multiple?String(W):W,Qe(()=>{if(e.multiple&&Oe(e.modelValue)){const ye=v.cachedOptions.slice(),Ae=e.modelValue.map(Le=>li(Le,ye));Zn(v.cachedOptions,Ae)||(v.cachedOptions=Ae)}else Ss(!0)})},lt=(W=[],ye)=>{if(!Ct(ye))return W.indexOf(ye);const Ae=e.valueKey;let Le=-1;return W.some((Ie,at)=>Dn(Ie,Ae)===Dn(ye,Ae)?(Le=at,!0):!1),Le},Xe=W=>Ct(W)?Dn(W,e.valueKey):W,Et=()=>{xe()},Ge=()=>{v.selectionWidth=Number.parseFloat(window.getComputedStyle(x.value).width)},St=()=>{v.collapseItemWidth=C.value.getBoundingClientRect().width},ct=()=>{var W,ye;(ye=(W=y.value)==null?void 0:W.updatePopper)==null||ye.call(W)},xn=()=>{var W,ye;(ye=(W=_.value)==null?void 0:W.updatePopper)==null||ye.call(W)},Gn=W=>{if(e.multiple){let ye=e.modelValue.slice();const Ae=lt(ye,d(W));Ae>-1?(ye=[...ye.slice(0,Ae),...ye.slice(Ae+1)],v.cachedOptions.splice(Ae,1),$e(W)):(e.multipleLimit<=0||ye.length{let Ae=e.modelValue.slice();const Le=lt(Ae,d(ye));Le>-1&&!oe.value&&(Ae=[...e.modelValue.slice(0,Le),...e.modelValue.slice(Le+1)],v.cachedOptions.splice(Le,1),ft(Ae),t("remove-tag",d(ye)),$e(ye)),W.stopPropagation(),Bi()},Bi=()=>{var W;(W=w.value)==null||W.focus()},gr=()=>{var W;if(K.value){K.value=!1,Qe(()=>{var ye;return(ye=w.value)==null?void 0:ye.blur()});return}(W=w.value)==null||W.blur()},ga=()=>{v.inputValue.length>0?v.inputValue="":K.value=!1},vl=W=>NM(W,ye=>!v.cachedOptions.some(Ae=>d(Ae)===ye&&f(Ae))),gl=W=>{if(e.multiple&&W.code!==Ke.delete&&v.inputValue.length===0){W.preventDefault();const ye=e.modelValue.slice(),Ae=vl(ye);if(Ae<0)return;const Le=ye[Ae];ye.splice(Ae,1);const Ie=v.cachedOptions[Ae];v.cachedOptions.splice(Ae,1),$e(Ie),ft(ye),t("remove-tag",Le)}},xs=()=>{let W;Oe(e.modelValue)?W=[]:W=h.value,v.selectedLabel="",K.value=!1,ft(W),t("clear"),we(),Bi()},We=(W,ye=void 0)=>{const Ae=q.value;if(!["forward","backward"].includes(W)||oe.value||Ae.length<=0||me.value||k.value)return;if(!K.value)return te();Bt(ye)&&(ye=v.hoveringIndex);let Le=-1;W==="forward"?(Le=ye+1,Le>=Ae.length&&(Le=0)):W==="backward"&&(Le=ye-1,(Le<0||Le>=Ae.length)&&(Le=Ae.length-1));const Ie=Ae[Le];if(f(Ie)||Ie.type==="Group")return We(W,Le);v.hoveringIndex=Le,ai(Le)},pt=()=>{if(K.value)~v.hoveringIndex&&q.value[v.hoveringIndex]&&Gn(q.value[v.hoveringIndex]);else return te()},qt=W=>{v.hoveringIndex=W??-1},kn=()=>{e.multiple?v.hoveringIndex=q.value.findIndex(W=>e.modelValue.some(ye=>Xe(ye)===Xe(d(W)))):v.hoveringIndex=q.value.findIndex(W=>Xe(d(W))===Xe(e.modelValue))},ro=W=>{if(v.inputValue=W.target.value,e.remote)Ye();else return Ee()},si=W=>{if(K.value=!1,P.value){const ye=new FocusEvent("focus",W);U(ye)}},br=()=>(v.isBeforeHide=!1,Qe(()=>{~Ne.value&&ai(v.hoveringIndex)})),ai=W=>{T.value.scrollToItem(W)},li=(W,ye)=>{const Ae=Xe(W);if(ve.value.has(Ae)){const{option:Le}=ve.value.get(Ae);return Le}if(ye&&ye.length){const Le=ye.find(Ie=>Xe(d(Ie))===Ae);if(Le)return Le}return{[l.value.value]:W,[l.value.label]:W}},Ss=(W=!1)=>{if(e.multiple)if(e.modelValue.length>0){const ye=v.cachedOptions.slice();v.cachedOptions.length=0,v.previousValue=e.modelValue.toString();for(const Ae of e.modelValue){const Le=li(Ae,ye);v.cachedOptions.push(Le)}}else v.cachedOptions=[],v.previousValue=void 0;else if(ie.value){v.previousValue=e.modelValue;const ye=q.value,Ae=ye.findIndex(Le=>Xe(d(Le))===Xe(e.modelValue));~Ae?v.selectedLabel=u(ye[Ae]):(!v.selectedLabel||W)&&(v.selectedLabel=Xe(e.modelValue))}else v.selectedLabel="",v.previousValue=void 0;we(),xe()};return Te(()=>e.fitInputWidth,()=>{xe()}),Te(K,W=>{W?(e.persistent||xe(),Se("")):(v.inputValue="",v.previousQuery=null,v.isBeforeHide=!0,He("")),t("visible-change",W)}),Te(()=>e.modelValue,(W,ye)=>{var Ae;(!W||Oe(W)&&W.length===0||e.multiple&&!Zn(W.toString(),v.previousValue)||!e.multiple&&Xe(W)!==Xe(v.previousValue))&&Ss(!0),!Zn(W,ye)&&e.validateEvent&&((Ae=s==null?void 0:s.validate)==null||Ae.call(s,"change").catch(Ie=>void 0))},{deep:!0}),Te(()=>e.options,()=>{const W=w.value;(!W||W&&document.activeElement!==W)&&Ss()},{deep:!0,flush:"post"}),Te(()=>q.value,()=>(xe(),T.value&&Qe(T.value.resetScrollTop))),co(()=>{v.isBeforeHide||z()}),co(()=>{const{valueKey:W,options:ye}=e,Ae=new Map;for(const Le of ye){const Ie=d(Le);let at=Ie;if(Ct(at)&&(at=Dn(Ie,W)),Ae.get(at))break;Ae.set(at,!0)}}),xt(()=>{Ss()}),vn(g,Et),vn(x,Ge),vn(T,ct),vn(N,ct),vn(E,xn),vn(C,St),{inputId:a,collapseTagSize:ge,currentPlaceholder:Me,expanded:K,emptyText:V,popupHeight:Y,debounce:Re,allOptions:I,filteredOptions:q,iconComponent:re,iconReverse:fe,tagStyle:Z,collapseTagStyle:$,popperSize:b,dropdownMenuVisible:nt,hasModelValue:ie,shouldShowPlaceholder:he,selectDisabled:oe,selectSize:ue,needStatusIcon:X,showClearBtn:ae,states:v,isFocused:P,nsSelect:o,nsInput:r,inputRef:w,menuRef:T,tagMenuRef:E,tooltipRef:y,tagTooltipRef:_,selectRef:g,wrapperRef:N,selectionRef:x,prefixRef:S,suffixRef:M,collapseItemRef:C,popperRef:Be,validateState:be,validateIcon:De,showTagList:qe,collapseTagList:ht,debouncedOnInputChange:Ye,deleteTag:$r,getLabel:u,getValue:d,getDisabled:f,getValueKey:Xe,handleClear:xs,handleClickOutside:si,handleDel:gl,handleEsc:ga,focus:Bi,blur:gr,handleMenuEnter:br,handleResize:Et,resetSelectionWidth:Ge,updateTooltip:ct,updateTagTooltip:xn,updateOptions:z,toggleMenu:te,scrollTo:ai,onInput:ro,onKeyboardNavigate:We,onKeyboardSelect:pt,onSelect:Gn,onHover:qt,handleCompositionStart:R,handleCompositionEnd:B,handleCompositionUpdate:H}},DY=Q({name:"ElSelectV2",components:{ElSelectMenu:kY,ElTag:wu,ElTooltip:_o,ElIcon:Je},directives:{ClickOutside:cs},props:lY,emits:cY,setup(e,{emit:t}){const n=A(()=>{const{modelValue:a,multiple:l}=e,u=l?[]:void 0;return Oe(a)?l?a:u:l?u:a}),o=PY(Gt({...jn(e),modelValue:n}),t),{calculatorRef:r,inputStyle:i}=t1();Lt(s1,{props:Gt({...jn(e),height:o.popupHeight,modelValue:n}),expanded:o.expanded,tooltipRef:o.tooltipRef,onSelect:o.onSelect,onHover:o.onHover,onKeyboardNavigate:o.onKeyboardNavigate,onKeyboardSelect:o.onKeyboardSelect});const s=A(()=>e.multiple?o.states.cachedOptions.map(a=>a.label):o.states.selectedLabel);return{...o,modelValue:n,selectedLabel:s,calculatorRef:r,inputStyle:i}}});function IY(e,t,n,o,r,i){const s=Mt("el-tag"),a=Mt("el-tooltip"),l=Mt("el-icon"),u=Mt("el-select-menu"),d=jp("click-outside");return _t((D(),G("div",{ref:"selectRef",class:L([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[J(a,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:se(()=>[j("div",{ref:"wrapperRef",class:L([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:dt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(D(),G("div",{key:0,ref:"prefixRef",class:L(e.nsSelect.e("prefix"))},[de(e.$slots,"prefix")],2)):pe("v-if",!0),j("div",{ref:"selectionRef",class:L([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?de(e.$slots,"tag",{key:0},()=>[(D(!0),G(tt,null,Nt(e.showTagList,f=>(D(),G("div",{key:e.getValueKey(e.getValue(f)),class:L(e.nsSelect.e("selected-item"))},[J(s,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:rt(e.tagStyle),onClose:p=>e.deleteTag(p,f)},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))},[de(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Tt(ze(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(D(),_e(a,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:se(()=>[j("div",{ref:"collapseItemRef",class:L(e.nsSelect.e("selected-item"))},[J(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:rt(e.collapseTagStyle),"disable-transitions":""},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))}," + "+ze(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:se(()=>[j("div",{ref:"tagMenuRef",class:L(e.nsSelect.e("selection"))},[(D(!0),G(tt,null,Nt(e.collapseTagList,f=>(D(),G("div",{key:e.getValueKey(e.getValue(f)),class:L(e.nsSelect.e("selected-item"))},[J(s,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:p=>e.deleteTag(p,f)},{default:se(()=>[j("span",{class:L(e.nsSelect.e("tags-text"))},[de(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Tt(ze(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):pe("v-if",!0)]):pe("v-if",!0),j("div",{class:L([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[_t(j("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,style:rt(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:L([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[Zt(dt(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),Zt(dt(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),Zt(dt(e.onKeyboardSelect,["stop","prevent"]),["enter"]),Zt(dt(e.handleEsc,["stop","prevent"]),["esc"]),Zt(dt(e.handleDel,["stop"]),["delete"])],onClick:dt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","tabindex","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[Nd,e.states.inputValue]]),e.filterable?(D(),G("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:L(e.nsSelect.e("input-calculator")),textContent:ze(e.states.inputValue)},null,10,["textContent"])):pe("v-if",!0)],2),e.shouldShowPlaceholder?(D(),G("div",{key:1,class:L([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?de(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[j("span",null,ze(e.currentPlaceholder),1)]):(D(),G("span",{key:1},ze(e.currentPlaceholder),1))],2)):pe("v-if",!0)],2),j("div",{ref:"suffixRef",class:L(e.nsSelect.e("suffix"))},[e.iconComponent?_t((D(),_e(l,{key:0,class:L([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:se(()=>[(D(),_e(Rt(e.iconComponent)))]),_:1},8,["class"])),[[Vt,!e.showClearBtn]]):pe("v-if",!0),e.showClearBtn&&e.clearIcon?(D(),_e(l,{key:1,class:L([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:dt(e.handleClear,["prevent","stop"])},{default:se(()=>[(D(),_e(Rt(e.clearIcon)))]),_:1},8,["class","onClick"])):pe("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(D(),_e(l,{key:2,class:L([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:se(()=>[(D(),_e(Rt(e.validateIcon)))]),_:1},8,["class"])):pe("v-if",!0)],2)],10,["onClick"])]),content:se(()=>[J(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},er({default:se(f=>[de(e.$slots,"default",cr(wi(f)))]),_:2},[e.$slots.header?{name:"header",fn:se(()=>[j("div",{class:L(e.nsSelect.be("dropdown","header"))},[de(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:se(()=>[j("div",{class:L(e.nsSelect.be("dropdown","loading"))},[de(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:se(()=>[j("div",{class:L(e.nsSelect.be("dropdown","empty"))},[de(e.$slots,"empty",{},()=>[j("span",null,ze(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:se(()=>[j("div",{class:L(e.nsSelect.be("dropdown","footer"))},[de(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[d,e.handleClickOutside,e.popperRef]])}var LY=Ve(DY,[["render",IY],["__file","select.vue"]]);const NY=yt(LY),OY=Ue({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:le([Number,Object])}}),FY=Ue({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),BY=Q({name:"ElSkeletonItem"}),$Y=Q({...BY,props:FY,setup(e){const t=Pe("skeleton");return(n,o)=>(D(),G("div",{class:L([c(t).e("item"),c(t).e(n.variant)])},[n.variant==="image"?(D(),_e(c(JF),{key:0})):pe("v-if",!0)],2))}});var Sp=Ve($Y,[["__file","skeleton-item.vue"]]);const UY=(e,t=0)=>{if(t===0)return e;const n=Ct(t)&&!!t.initVal,o=F(n);let r=null;const i=a=>{if(Bt(a)){o.value=e.value;return}r&&clearTimeout(r),r=setTimeout(()=>{o.value=e.value},a)},s=a=>{a==="leading"?st(t)?i(t):i(t.leading):Ct(t)?i(t.trailing):o.value=!1};return xt(()=>s("leading")),Te(()=>e.value,a=>{s(a?"leading":"trailing")}),o},zY=Q({name:"ElSkeleton"}),VY=Q({...zY,props:OY,setup(e,{expose:t}){const n=e,o=Pe("skeleton"),r=UY(Kt(n,"loading"),n.throttle);return t({uiLoading:r}),(i,s)=>c(r)?(D(),G("div",Dt({key:0,class:[c(o).b(),c(o).is("animated",i.animated)]},i.$attrs),[(D(!0),G(tt,null,Nt(i.count,a=>(D(),G(tt,{key:a},[c(r)?de(i.$slots,"template",{key:a},()=>[J(Sp,{class:L(c(o).is("first")),variant:"p"},null,8,["class"]),(D(!0),G(tt,null,Nt(i.rows,l=>(D(),_e(Sp,{key:l,class:L([c(o).e("paragraph"),c(o).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):pe("v-if",!0)],64))),128))],16)):de(i.$slots,"default",cr(Dt({key:1},i.$attrs)))}});var HY=Ve(VY,[["__file","skeleton.vue"]]);const WY=yt(HY,{SkeletonItem:Sp}),GY=gn(Sp),_A=Symbol("sliderContextKey"),KY=Ue({modelValue:{type:le([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Vn,inputSize:Vn,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:le(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:le(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:bs,default:"top"},marks:{type:le(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ho(["ariaLabel"])}),pm=e=>st(e)||Oe(e)&&e.every(st),qY={[vt]:pm,[zn]:pm,[It]:pm},jY=Ue({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:bs,default:"top"}}),YY={[vt]:e=>st(e)},XY=(e,t,n)=>{const o=F(),r=F(!1),i=A(()=>t.value instanceof Function),s=A(()=>i.value&&t.value(e.modelValue)||e.modelValue),a=tr(()=>{n.value&&(r.value=!0)},50),l=tr(()=>{n.value&&(r.value=!1)},50);return{tooltip:o,tooltipVisible:r,formatValue:s,displayTooltip:a,hideTooltip:l}},ZY=(e,t,n)=>{const{disabled:o,min:r,max:i,step:s,showTooltip:a,persistent:l,precision:u,sliderSize:d,formatTooltip:f,emitChange:p,resetSize:h,updateDragging:m}=je(_A),{tooltip:v,tooltipVisible:b,formatValue:g,displayTooltip:x,hideTooltip:y}=XY(e,f,a),_=F(),w=A(()=>`${(e.modelValue-r.value)/(i.value-r.value)*100}%`),S=A(()=>e.vertical?{bottom:w.value}:{left:w.value}),M=()=>{t.hovering=!0,x()},T=()=>{t.hovering=!1,t.dragging||y()},E=X=>{o.value||(X.preventDefault(),O(X),window.addEventListener("mousemove",q),window.addEventListener("touchmove",q),window.addEventListener("mouseup",K),window.addEventListener("touchend",K),window.addEventListener("contextmenu",K),_.value.focus())},C=X=>{o.value||(t.newPosition=Number.parseFloat(w.value)+X/(i.value-r.value)*100,oe(t.newPosition),p())},k=()=>{C(-s.value)},R=()=>{C(s.value)},B=()=>{C(-s.value*4)},H=()=>{C(s.value*4)},N=()=>{o.value||(oe(0),p())},P=()=>{o.value||(oe(100),p())},U=X=>{let Y=!0;switch(X.code){case Ke.left:case Ke.down:k();break;case Ke.right:case Ke.up:R();break;case Ke.home:N();break;case Ke.end:P();break;case Ke.pageDown:B();break;case Ke.pageUp:H();break;default:Y=!1;break}Y&&X.preventDefault()},I=X=>{let Y,ie;return X.type.startsWith("touch")?(ie=X.touches[0].clientY,Y=X.touches[0].clientX):(ie=X.clientY,Y=X.clientX),{clientX:Y,clientY:ie}},O=X=>{t.dragging=!0,t.isClick=!0;const{clientX:Y,clientY:ie}=I(X);e.vertical?t.startY=ie:t.startX=Y,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},q=X=>{if(t.dragging){t.isClick=!1,x(),h();let Y;const{clientX:ie,clientY:ae}=I(X);e.vertical?(t.currentY=ae,Y=(t.startY-t.currentY)/d.value*100):(t.currentX=ie,Y=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+Y,oe(t.newPosition)}},K=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||y(),t.isClick||oe(t.newPosition),p()},0),window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),window.removeEventListener("contextmenu",K))},oe=async X=>{if(X===null||Number.isNaN(+X))return;X<0?X=0:X>100&&(X=100);const Y=100/((i.value-r.value)/s.value);let ae=Math.round(X/Y)*Y*(i.value-r.value)*.01+r.value;ae=Number.parseFloat(ae.toFixed(u.value)),ae!==e.modelValue&&n(vt,ae),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Qe(),t.dragging&&x(),v.value.updatePopper()};return Te(()=>t.dragging,X=>{m(X)}),on(_,"touchstart",E,{passive:!1}),{disabled:o,button:_,tooltip:v,tooltipVisible:b,showTooltip:a,persistent:l,wrapperStyle:S,formatValue:g,handleMouseEnter:M,handleMouseLeave:T,onButtonDown:E,onKeyDown:U,setPosition:oe}},JY=Q({name:"ElSliderButton"}),QY=Q({...JY,props:jY,emits:YY,setup(e,{expose:t,emit:n}){const o=e,r=Pe("slider"),i=Gt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),s=A(()=>d.value?f.value:!1),{disabled:a,button:l,tooltip:u,showTooltip:d,persistent:f,tooltipVisible:p,wrapperStyle:h,formatValue:m,handleMouseEnter:v,handleMouseLeave:b,onButtonDown:g,onKeyDown:x,setPosition:y}=ZY(o,i,n),{hovering:_,dragging:w}=jn(i);return t({onButtonDown:g,onKeyDown:x,setPosition:y,hovering:_,dragging:w}),(S,M)=>(D(),G("div",{ref_key:"button",ref:l,class:L([c(r).e("button-wrapper"),{hover:c(_),dragging:c(w)}]),style:rt(c(h)),tabindex:c(a)?-1:0,onMouseenter:c(v),onMouseleave:c(b),onMousedown:c(g),onFocus:c(v),onBlur:c(b),onKeydown:c(x)},[J(c(_o),{ref_key:"tooltip",ref:u,visible:c(p),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!c(d),persistent:c(s)},{content:se(()=>[j("span",null,ze(c(m)),1)]),default:se(()=>[j("div",{class:L([c(r).e("button"),{hover:c(_),dragging:c(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var fS=Ve(QY,[["__file","button.vue"]]);const eX=Ue({mark:{type:le([String,Object]),default:void 0}});var tX=Q({name:"ElSliderMarker",props:eX,setup(e){const t=Pe("slider"),n=A(()=>et(e.mark)?e.mark:e.mark.label),o=A(()=>et(e.mark)?void 0:e.mark.style);return()=>ut("div",{class:t.e("marks-text"),style:o.value},n.value)}});const nX=(e,t,n)=>{const{form:o,formItem:r}=xo(),i=fn(),s=F(),a=F(),l={firstButton:s,secondButton:a},u=A(()=>e.disabled||(o==null?void 0:o.disabled)||!1),d=A(()=>Math.min(t.firstValue,t.secondValue)),f=A(()=>Math.max(t.firstValue,t.secondValue)),p=A(()=>e.range?`${100*(f.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=A(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),m=A(()=>e.vertical?{height:e.height}:{}),v=A(()=>e.vertical?{height:p.value,bottom:h.value}:{width:p.value,left:h.value}),b=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},g=R=>{const B=e.min+R*(e.max-e.min)/100;if(!e.range)return s;let H;return Math.abs(d.value-B)t.secondValue?"firstButton":"secondButton",l[H]},x=R=>{const B=g(R);return B.value.setPosition(R),B},y=R=>{t.firstValue=R??e.min,w(e.range?[d.value,f.value]:R??e.min)},_=R=>{t.secondValue=R,e.range&&w([d.value,f.value])},w=R=>{n(vt,R),n(zn,R)},S=async()=>{await Qe(),n(It,e.range?[d.value,f.value]:e.modelValue)},M=R=>{var B,H,N,P,U,I;if(u.value||t.dragging)return;b();let O=0;if(e.vertical){const q=(N=(H=(B=R.touches)==null?void 0:B.item(0))==null?void 0:H.clientY)!=null?N:R.clientY;O=(i.value.getBoundingClientRect().bottom-q)/t.sliderSize*100}else{const q=(I=(U=(P=R.touches)==null?void 0:P.item(0))==null?void 0:U.clientX)!=null?I:R.clientX,K=i.value.getBoundingClientRect().left;O=(q-K)/t.sliderSize*100}if(!(O<0||O>100))return x(O)};return{elFormItem:r,slider:i,firstButton:s,secondButton:a,sliderDisabled:u,minValue:d,maxValue:f,runwayStyle:m,barStyle:v,resetSize:b,setPosition:x,emitChange:S,onSliderWrapperPrevent:R=>{var B,H;((B=l.firstButton.value)!=null&&B.dragging||(H=l.secondButton.value)!=null&&H.dragging)&&R.preventDefault()},onSliderClick:R=>{M(R)&&S()},onSliderDown:async R=>{const B=M(R);B&&(await Qe(),B.value.onButtonDown(R))},onSliderMarkerDown:R=>{if(u.value||t.dragging)return;x(R)&&S()},setFirstValue:y,setSecondValue:_}},oX=(e,t,n,o)=>({stops:A(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const s=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),l=Array.from({length:s-1}).map((u,d)=>(d+1)*a);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(o.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:s=>e.vertical?{bottom:`${s}%`}:{left:`${s}%`}}),rX=e=>A(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),iX=(e,t,n,o,r,i)=>{const s=u=>{r(vt,u),r(zn,u)},a=()=>e.range?![n.value,o.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,l=()=>{var u,d;e.min>e.max&&Ln("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Oe(f)?f[1]e.max?s([e.max,e.max]):f[0]e.max?s([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],a()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(p=>void 0)),t.oldValue=f.slice())):!e.range&&st(f)&&!Number.isNaN(f)&&(fe.max?s(e.max):(t.firstValue=f,a()&&(e.validateEvent&&((d=i==null?void 0:i.validate)==null||d.call(i,"change").catch(p=>void 0)),t.oldValue=f)))};l(),Te(()=>t.dragging,u=>{u||l()}),Te(()=>e.modelValue,(u,d)=>{t.dragging||Oe(u)&&Oe(d)&&u.every((f,p)=>f===d[p])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Te(()=>[e.min,e.max],()=>{l()})},sX=(e,t,n)=>{const o=F();return xt(async()=>{e.range?(Oe(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!st(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),on(window,"resize",n),await Qe(),n()}),{sliderWrapper:o}},aX=Q({name:"ElSlider"}),lX=Q({...aX,props:KY,emits:qY,setup(e,{expose:t,emit:n}){const o=e,r=Pe("slider"),{t:i}=$t(),s=Gt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:a,slider:l,firstButton:u,secondButton:d,sliderDisabled:f,minValue:p,maxValue:h,runwayStyle:m,barStyle:v,resetSize:b,emitChange:g,onSliderWrapperPrevent:x,onSliderClick:y,onSliderDown:_,onSliderMarkerDown:w,setFirstValue:S,setSecondValue:M}=nX(o,s,n),{stops:T,getStopStyle:E}=oX(o,s,p,h),{inputId:C,isLabeledByFormItem:k}=Br(o,{formItemContext:a}),R=Fn(),B=A(()=>o.inputSize||R.value),H=A(()=>o.ariaLabel||i("el.slider.defaultLabel",{min:o.min,max:o.max})),N=A(()=>o.range?o.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):H.value),P=A(()=>o.formatValueText?o.formatValueText(X.value):`${X.value}`),U=A(()=>o.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),I=A(()=>o.formatValueText?o.formatValueText(Y.value):`${Y.value}`),O=A(()=>[r.b(),r.m(R.value),r.is("vertical",o.vertical),{[r.m("with-input")]:o.showInput}]),q=rX(o);iX(o,s,p,h,n,a);const K=A(()=>{const re=[o.min,o.max,o.step].map(fe=>{const be=`${fe}`.split(".")[1];return be?be.length:0});return Math.max.apply(null,re)}),{sliderWrapper:oe}=sX(o,s,b),{firstValue:X,secondValue:Y,sliderSize:ie}=jn(s),ae=re=>{s.dragging=re};return on(oe,"touchstart",x,{passive:!1}),on(oe,"touchmove",x,{passive:!1}),Lt(_A,{...jn(o),sliderSize:ie,disabled:f,precision:K,emitChange:g,resetSize:b,updateDragging:ae}),t({onSliderClick:y}),(re,fe)=>{var be,De;return D(),G("div",{id:re.range?c(C):void 0,ref_key:"sliderWrapper",ref:oe,class:L(c(O)),role:re.range?"group":void 0,"aria-label":re.range&&!c(k)?c(H):void 0,"aria-labelledby":re.range&&c(k)?(be=c(a))==null?void 0:be.labelId:void 0},[j("div",{ref_key:"slider",ref:l,class:L([c(r).e("runway"),{"show-input":re.showInput&&!re.range},c(r).is("disabled",c(f))]),style:rt(c(m)),onMousedown:c(_),onTouchstartPassive:c(_)},[j("div",{class:L(c(r).e("bar")),style:rt(c(v))},null,6),J(fS,{id:re.range?void 0:c(C),ref_key:"firstButton",ref:u,"model-value":c(X),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":re.range||!c(k)?c(N):void 0,"aria-labelledby":!re.range&&c(k)?(De=c(a))==null?void 0:De.labelId:void 0,"aria-valuemin":re.min,"aria-valuemax":re.range?c(Y):re.max,"aria-valuenow":c(X),"aria-valuetext":c(P),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":c(f),"onUpdate:modelValue":c(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),re.range?(D(),_e(fS,{key:0,ref_key:"secondButton",ref:d,"model-value":c(Y),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":c(U),"aria-valuemin":c(X),"aria-valuemax":re.max,"aria-valuenow":c(Y),"aria-valuetext":c(I),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":c(f),"onUpdate:modelValue":c(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):pe("v-if",!0),re.showStops?(D(),G("div",{key:1},[(D(!0),G(tt,null,Nt(c(T),(Re,V)=>(D(),G("div",{key:V,class:L(c(r).e("stop")),style:rt(c(E)(Re))},null,6))),128))])):pe("v-if",!0),c(q).length>0?(D(),G(tt,{key:2},[j("div",null,[(D(!0),G(tt,null,Nt(c(q),(Re,V)=>(D(),G("div",{key:V,style:rt(c(E)(Re.position)),class:L([c(r).e("stop"),c(r).e("marks-stop")])},null,6))),128))]),j("div",{class:L(c(r).e("marks"))},[(D(!0),G(tt,null,Nt(c(q),(Re,V)=>(D(),_e(c(tX),{key:V,mark:Re.mark,style:rt(c(E)(Re.position)),onMousedown:dt(ee=>c(w)(Re.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):pe("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),re.showInput&&!re.range?(D(),_e(c(QT),{key:0,ref:"input","model-value":c(X),class:L(c(r).e("input")),step:re.step,disabled:c(f),controls:re.showInputControls,min:re.min,max:re.max,precision:c(K),debounce:re.debounce,size:c(B),"onUpdate:modelValue":c(S),onChange:c(g)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):pe("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var uX=Ve(lX,[["__file","slider.vue"]]);const cX=yt(uX),dX=Ue({prefixCls:{type:String}}),hS=Q({name:"ElSpaceItem",props:dX,setup(e,{slots:t}){const n=Pe("space"),o=A(()=>`${e.prefixCls||n.b()}__item`);return()=>ut("div",{class:o.value},de(t,"default"))}}),pS={small:8,default:12,large:16};function fX(e){const t=Pe("space"),n=A(()=>[t.b(),t.m(e.direction),e.class]),o=F(0),r=F(0),i=A(()=>{const a=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${r.value}px`,columnGap:`${o.value}px`};return[a,l,u,e.style]}),s=A(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return co(()=>{const{size:a="small",wrap:l,direction:u,fill:d}=e;if(Oe(a)){const[f=0,p=0]=a;o.value=f,r.value=p}else{let f;st(a)?f=a:f=pS[a||"small"]||pS.small,(l||d)&&u==="horizontal"?o.value=r.value=f:u==="horizontal"?(o.value=f,r.value=0):(r.value=f,o.value=0)}}),{classes:n,containerStyle:i,itemStyle:s}}const hX=Ue({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:le([String,Object,Array]),default:""},style:{type:le([String,Array,Object]),default:""},alignment:{type:le(String),default:"center"},prefixCls:{type:String},spacer:{type:le([Object,String,Number,Array]),default:null,validator:e=>ln(e)||st(e)||et(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Pi,validator:e=>st(e)||Oe(e)&&e.length===2&&e.every(st)}}),pX=Q({name:"ElSpace",props:hX,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:r}=fX(e);function i(s,a="",l=[]){const{prefixCls:u}=e;return s.forEach((d,f)=>{$v(d)?Oe(d.children)&&d.children.forEach((p,h)=>{$v(p)&&Oe(p.children)?i(p.children,`${a+h}-`,l):ln(p)&&(p==null?void 0:p.type)===Jn?l.push(p):l.push(J(hS,{style:r.value,prefixCls:u,key:`nested-${a+h}`},{default:()=>[p]},wr.PROPS|wr.STYLE,["style","prefixCls"]))}):Yz(d)?l.push(J(hS,{style:r.value,prefixCls:u,key:`LoopKey${a+f}`},{default:()=>[d]},wr.PROPS|wr.STYLE,["style","prefixCls"])):ln(d)&&d.type===Jn&&l.push(d)}),l}return()=>{var s;const{spacer:a,direction:l}=e,u=de(t,"default",{key:0},()=>[]);if(((s=u.children)!=null?s:[]).length===0)return null;if(Oe(u.children)){let d=i(u.children);if(a){const f=d.length-1;d=d.reduce((p,h,m)=>{const v=[...p,h];return m!==f&&v.push(J("span",{style:[r.value,l==="vertical"?"width: 100%":null],key:m},[ln(a)?a:Tt(a,wr.TEXT)],wr.STYLE)),v},[])}return J("div",{class:n.value,style:o.value},d,wr.STYLE|wr.CLASS)}return u.children}}}),mX=yt(pX),vX=Ue({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:le([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:le([String,Object,Array])}}),gX=Q({name:"ElStatistic"}),bX=Q({...gX,props:vX,setup(e,{expose:t}){const n=e,o=Pe("statistic"),r=A(()=>{const{value:i,formatter:s,precision:a,decimalSeparator:l,groupSeparator:u}=n;if(it(s))return s(i);if(!st(i)||Number.isNaN(i))return i;let[d,f=""]=String(i).split(".");return f=f.padEnd(a,"0").slice(0,a>0?a:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,u),[d,f].join(f?l:"")});return t({displayValue:r}),(i,s)=>(D(),G("div",{class:L(c(o).b())},[i.$slots.title||i.title?(D(),G("div",{key:0,class:L(c(o).e("head"))},[de(i.$slots,"title",{},()=>[Tt(ze(i.title),1)])],2)):pe("v-if",!0),j("div",{class:L(c(o).e("content"))},[i.$slots.prefix||i.prefix?(D(),G("div",{key:0,class:L(c(o).e("prefix"))},[de(i.$slots,"prefix",{},()=>[j("span",null,ze(i.prefix),1)])],2)):pe("v-if",!0),j("span",{class:L(c(o).e("number")),style:rt(i.valueStyle)},ze(c(r)),7),i.$slots.suffix||i.suffix?(D(),G("div",{key:1,class:L(c(o).e("suffix"))},[de(i.$slots,"suffix",{},()=>[j("span",null,ze(i.suffix),1)])],2)):pe("v-if",!0)],2)],2))}});var yX=Ve(bX,[["__file","statistic.vue"]]);const xA=yt(yX),_X=Ue({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:le([Number,Object]),default:0},valueStyle:{type:le([String,Object,Array])}}),xX={finish:()=>!0,[It]:e=>st(e)},SX=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],mS=e=>st(e)?new Date(e).getTime():e.valueOf(),vS=(e,t)=>{let n=e;const o=/\[([^\]]*)]/g;return SX.reduce((i,[s,a])=>{const l=new RegExp(`${s}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/a);return n-=u*a,i.replace(l,d=>String(u).padStart(d.length,"0"))}return i},t).replace(o,"$1")},wX=Q({name:"ElCountdown"}),CX=Q({...wX,props:_X,emits:xX,setup(e,{expose:t,emit:n}){const o=e;let r;const i=F(0),s=A(()=>vS(i.value,o.format)),a=d=>vS(d,o.format),l=()=>{r&&(nl(r),r=void 0)},u=()=>{const d=mS(o.value),f=()=>{let p=d-Date.now();n(It,p),p<=0?(p=0,l(),n("finish")):r=ra(f),i.value=p};r=ra(f)};return xt(()=>{i.value=mS(o.value)-Date.now(),Te(()=>[o.value,o.format],()=>{l(),u()},{immediate:!0})}),Qt(()=>{l()}),t({displayValue:s}),(d,f)=>(D(),_e(c(xA),{value:i.value,title:d.title,prefix:d.prefix,suffix:d.suffix,"value-style":d.valueStyle,formatter:a},er({_:2},[Nt(d.$slots,(p,h)=>({name:h,fn:se(()=>[de(d.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var EX=Ve(CX,[["__file","countdown.vue"]]);const MX=yt(EX),TX=Ue({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),AX={[It]:(e,t)=>[e,t].every(st)},SA="ElSteps",kX=Q({name:"ElSteps"}),RX=Q({...kX,props:TX,emits:AX,setup(e,{emit:t}){const n=e,o=Pe("steps"),{children:r,addChild:i,removeChild:s}=b0(Pt(),"ElStep");return Te(r,()=>{r.value.forEach((a,l)=>{a.setIndex(l)})}),Lt(SA,{props:n,steps:r,addStep:i,removeStep:s}),Te(()=>n.active,(a,l)=>{t(It,a,l)}),(a,l)=>(D(),G("div",{class:L([c(o).b(),c(o).m(a.simple?"simple":a.direction)])},[de(a.$slots,"default")],2))}});var PX=Ve(RX,[["__file","steps.vue"]]);const DX=Ue({title:{type:String,default:""},icon:{type:tn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),IX=Q({name:"ElStep"}),LX=Q({...IX,props:DX,setup(e){const t=e,n=Pe("step"),o=F(-1),r=F({}),i=F(""),s=je(SA),a=Pt();xt(()=>{Te([()=>s.props.active,()=>s.props.processStatus,()=>s.props.finishStatus],([S])=>{_(S)},{immediate:!0})}),Qt(()=>{s.removeStep(w.uid)});const l=A(()=>t.status||i.value),u=A(()=>{const S=s.steps.value[o.value-1];return S?S.currentStatus:"wait"}),d=A(()=>s.props.alignCenter),f=A(()=>s.props.direction==="vertical"),p=A(()=>s.props.simple),h=A(()=>s.steps.value.length),m=A(()=>{var S;return((S=s.steps.value[h.value-1])==null?void 0:S.uid)===(a==null?void 0:a.uid)}),v=A(()=>p.value?"":s.props.space),b=A(()=>[n.b(),n.is(p.value?"simple":s.props.direction),n.is("flex",m.value&&!v.value&&!d.value),n.is("center",d.value&&!f.value&&!p.value)]),g=A(()=>{const S={flexBasis:st(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(d.value?0:1))}%`};return f.value||m.value&&(S.maxWidth=`${100/h.value}%`),S}),x=S=>{o.value=S},y=S=>{const M=S==="wait",T={transitionDelay:`${M?"-":""}${150*o.value}ms`},E=S===s.props.processStatus||M?0:100;T.borderWidth=E&&!p.value?"1px":0,T[s.props.direction==="vertical"?"height":"width"]=`${E}%`,r.value=T},_=S=>{S>o.value?i.value=s.props.finishStatus:S===o.value&&u.value!=="error"?i.value=s.props.processStatus:i.value="wait";const M=s.steps.value[o.value-1];M&&M.calcProgress(i.value)},w=Gt({uid:a.uid,currentStatus:l,setIndex:x,calcProgress:y});return s.addStep(w),(S,M)=>(D(),G("div",{style:rt(c(g)),class:L(c(b))},[pe(" icon & line "),j("div",{class:L([c(n).e("head"),c(n).is(c(l))])},[c(p)?pe("v-if",!0):(D(),G("div",{key:0,class:L(c(n).e("line"))},[j("i",{class:L(c(n).e("line-inner")),style:rt(r.value)},null,6)],2)),j("div",{class:L([c(n).e("icon"),c(n).is(S.icon||S.$slots.icon?"icon":"text")])},[de(S.$slots,"icon",{},()=>[S.icon?(D(),_e(c(Je),{key:0,class:L(c(n).e("icon-inner"))},{default:se(()=>[(D(),_e(Rt(S.icon)))]),_:1},8,["class"])):c(l)==="success"?(D(),_e(c(Je),{key:1,class:L([c(n).e("icon-inner"),c(n).is("status")])},{default:se(()=>[J(c(Hd))]),_:1},8,["class"])):c(l)==="error"?(D(),_e(c(Je),{key:2,class:L([c(n).e("icon-inner"),c(n).is("status")])},{default:se(()=>[J(c(Ir))]),_:1},8,["class"])):c(p)?pe("v-if",!0):(D(),G("div",{key:3,class:L(c(n).e("icon-inner"))},ze(o.value+1),3))])],2)],2),pe(" title & description "),j("div",{class:L(c(n).e("main"))},[j("div",{class:L([c(n).e("title"),c(n).is(c(l))])},[de(S.$slots,"title",{},()=>[Tt(ze(S.title),1)])],2),c(p)?(D(),G("div",{key:0,class:L(c(n).e("arrow"))},null,2)):(D(),G("div",{key:1,class:L([c(n).e("description"),c(n).is(c(l))])},[de(S.$slots,"description",{},()=>[Tt(ze(S.description),1)])],2))],2)],6))}});var wA=Ve(LX,[["__file","item.vue"]]);const NX=yt(PX,{Step:wA}),OX=gn(wA),CA=e=>["",...Pi].includes(e),FX=Ue({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:CA},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:tn},activeActionIcon:{type:tn},activeIcon:{type:tn},inactiveIcon:{type:tn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:le(Function)},id:String,tabindex:{type:[String,Number]},...ho(["ariaLabel"])}),BX={[vt]:e=>Jt(e)||et(e)||st(e),[It]:e=>Jt(e)||et(e)||st(e),[zn]:e=>Jt(e)||et(e)||st(e)},EA="ElSwitch",$X=Q({name:EA}),UX=Q({...$X,props:FX,emits:BX,setup(e,{expose:t,emit:n}){const o=e,{formItem:r}=xo(),i=Fn(),s=Pe("switch"),{inputId:a}=Br(o,{formItemContext:r}),l=po(A(()=>o.loading)),u=F(o.modelValue!==!1),d=F(),f=F(),p=A(()=>[s.b(),s.m(i.value),s.is("disabled",l.value),s.is("checked",g.value)]),h=A(()=>[s.e("label"),s.em("label","left"),s.is("active",!g.value)]),m=A(()=>[s.e("label"),s.em("label","right"),s.is("active",g.value)]),v=A(()=>({width:Sn(o.width)}));Te(()=>o.modelValue,()=>{u.value=!0});const b=A(()=>u.value?o.modelValue:!1),g=A(()=>b.value===o.activeValue);[o.activeValue,o.inactiveValue].includes(b.value)||(n(vt,o.inactiveValue),n(It,o.inactiveValue),n(zn,o.inactiveValue)),Te(g,w=>{var S;d.value.checked=w,o.validateEvent&&((S=r==null?void 0:r.validate)==null||S.call(r,"change").catch(M=>void 0))});const x=()=>{const w=g.value?o.inactiveValue:o.activeValue;n(vt,w),n(It,w),n(zn,w),Qe(()=>{d.value.checked=g.value})},y=()=>{if(l.value)return;const{beforeChange:w}=o;if(!w){x();return}const S=w();[Qa(S),Jt(S)].includes(!0)||Ln(EA,"beforeChange must return type `Promise` or `boolean`"),Qa(S)?S.then(T=>{T&&x()}).catch(T=>{}):S&&x()},_=()=>{var w,S;(S=(w=d.value)==null?void 0:w.focus)==null||S.call(w)};return xt(()=>{d.value.checked=g.value}),t({focus:_,checked:g}),(w,S)=>(D(),G("div",{class:L(c(p)),onClick:dt(y,["prevent"])},[j("input",{id:c(a),ref_key:"input",ref:d,class:L(c(s).e("input")),type:"checkbox",role:"switch","aria-checked":c(g),"aria-disabled":c(l),"aria-label":w.ariaLabel,name:w.name,"true-value":w.activeValue,"false-value":w.inactiveValue,disabled:c(l),tabindex:w.tabindex,onChange:x,onKeydown:Zt(y,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!w.inlinePrompt&&(w.inactiveIcon||w.inactiveText)?(D(),G("span",{key:0,class:L(c(h))},[w.inactiveIcon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(w.inactiveIcon)))]),_:1})):pe("v-if",!0),!w.inactiveIcon&&w.inactiveText?(D(),G("span",{key:1,"aria-hidden":c(g)},ze(w.inactiveText),9,["aria-hidden"])):pe("v-if",!0)],2)):pe("v-if",!0),j("span",{ref_key:"core",ref:f,class:L(c(s).e("core")),style:rt(c(v))},[w.inlinePrompt?(D(),G("div",{key:0,class:L(c(s).e("inner"))},[w.activeIcon||w.inactiveIcon?(D(),_e(c(Je),{key:0,class:L(c(s).is("icon"))},{default:se(()=>[(D(),_e(Rt(c(g)?w.activeIcon:w.inactiveIcon)))]),_:1},8,["class"])):w.activeText||w.inactiveText?(D(),G("span",{key:1,class:L(c(s).is("text")),"aria-hidden":!c(g)},ze(c(g)?w.activeText:w.inactiveText),11,["aria-hidden"])):pe("v-if",!0)],2)):pe("v-if",!0),j("div",{class:L(c(s).e("action"))},[w.loading?(D(),_e(c(Je),{key:0,class:L(c(s).is("loading"))},{default:se(()=>[J(c(Ei))]),_:1},8,["class"])):c(g)?de(w.$slots,"active-action",{key:1},()=>[w.activeActionIcon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(w.activeActionIcon)))]),_:1})):pe("v-if",!0)]):c(g)?pe("v-if",!0):de(w.$slots,"inactive-action",{key:2},()=>[w.inactiveActionIcon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(w.inactiveActionIcon)))]),_:1})):pe("v-if",!0)])],2)],6),!w.inlinePrompt&&(w.activeIcon||w.activeText)?(D(),G("span",{key:1,class:L(c(m))},[w.activeIcon?(D(),_e(c(Je),{key:0},{default:se(()=>[(D(),_e(Rt(w.activeIcon)))]),_:1})):pe("v-if",!0),!w.activeIcon&&w.activeText?(D(),G("span",{key:1,"aria-hidden":!c(g)},ze(w.activeText),9,["aria-hidden"])):pe("v-if",!0)],2)):pe("v-if",!0)],10,["onClick"]))}});var zX=Ve(UX,[["__file","switch.vue"]]);const VX=yt(zX),mm=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},HX=function(e,t,n,o,r){if(!t&&!o&&(!r||Oe(r)&&!r.length))return e;et(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(a,l){return r?(Oe(r)||(r=[r]),r.map(u=>et(u)?Dn(a,u):u(a,l,e))):(t!=="$key"&&Ct(a)&&"$value"in a&&(a=a.$value),[Ct(a)?Dn(a,t):a])},s=function(a,l){if(o)return o(a.value,l.value);for(let u=0,d=a.key.length;ul.key[u])return 1}return 0};return e.map((a,l)=>({value:a,index:l,key:i?i(a,l):null})).sort((a,l)=>{let u=s(a,l);return u||(u=a.index-l.index),u*+n}).map(a=>a.value)},MA=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},WX=function(e,t){let n=null;for(let o=0;o{if(!e)throw new Error("Row is required when get row identity");if(et(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const r of n)o=o[r];return`${o}`}else if(it(t))return t.call(null,e)},ou=function(e,t,n=!1,o="children"){const r=e||[],i={};return r.forEach((s,a)=>{if(i[Mo(s,t)]={row:s,index:a},n){const l=s[o];Oe(l)&&Object.assign(i,ou(l,t,!0,o))}}),i};function GX(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(zt(t,o)){const r=t[o];Bt(r)||(n[o]=r)}return n}function c1(e){return e===""||Bt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function TA(e){return e===""||Bt(e)||(e=c1(e),Number.isNaN(e)&&(e=80)),e}function KX(e){return st(e)?e:et(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function qX(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function wp(e,t,n,o,r,i){let s=i??0,a=!1;const l=e.indexOf(t),u=l!==-1,d=r==null?void 0:r.call(null,t,s),f=h=>{h==="add"?e.push(t):e.splice(l,1),a=!0},p=h=>{let m=0;const v=(o==null?void 0:o.children)&&h[o.children];return v&&Oe(v)&&(m+=v.length,v.forEach(b=>{m+=p(b)})),m};return(!r||d)&&(Jt(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o!=null&&o.children)&&Oe(t[o.children])&&t[o.children].forEach(h=>{const m=wp(e,h,n??!u,o,r,s+1);s+=p(h)+1,m&&(a=m)}),a}function jX(e,t,n="children",o="hasChildren"){const r=s=>!(Oe(s)&&s.length);function i(s,a,l){t(s,a,l),a.forEach(u=>{if(u[o]){t(u,null,l+1);return}const d=u[n];r(d)||i(u,d,l+1)})}e.forEach(s=>{if(s[o]){t(s,null,0);return}const a=s[n];r(a)||i(s,a,0)})}const YX=(e,t,n,o)=>{const r={strategy:"fixed",...e.popperOptions},i=it(o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:Nc(n,o.property).value}):void 0;return ln(i)?{slotContent:i,content:null,...e,popperOptions:r}:{slotContent:null,content:i??t,...e,popperOptions:r}};let Ko=null;function XX(e,t,n,o,r,i){const s=YX(e,t,n,o),a={...s,slotContent:void 0};if((Ko==null?void 0:Ko.trigger)===r){const h=Ko.vm.component;OM(h.props,a),s.slotContent&&(h.slots.content=()=>[s.slotContent]);return}Ko==null||Ko();const l=i==null?void 0:i.refs.tableWrapper,u=l==null?void 0:l.dataset.prefix,d=J(_o,{virtualTriggering:!0,virtualRef:r,appendTo:l,placement:"top",transition:"none",offset:0,hideAfter:0,...a},s.slotContent?{content:()=>s.slotContent}:void 0);d.appContext={...i.appContext,...i};const f=document.createElement("div");na(d,f),d.component.exposed.onOpen();const p=l==null?void 0:l.querySelector(`.${u}-scrollbar__wrap`);Ko=()=>{na(null,f),p==null||p.removeEventListener("scroll",Ko),Ko=null},Ko.trigger=r,Ko.vm=d,p==null||p.addEventListener("scroll",Ko)}function AA(e){return e.children?GO(e.children,AA):[e]}function bS(e,t){return e+t.colSpan}const kA=(e,t,n,o)=>{let r=0,i=e;const s=n.states.columns.value;if(o){const l=AA(o[e]);r=s.slice(0,s.indexOf(l[0])).reduce(bS,0),i=r+l.reduce(bS,0)-1}else r=e;let a;switch(t){case"left":i=s.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:i=s.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:r,after:i}:{}},d1=(e,t,n,o,r,i=0)=>{const s=[],{direction:a,start:l,after:u}=kA(t,n,o,r);if(a){const d=a==="left";s.push(`${e}-fixed-column--${a}`),d&&u+i===o.states.fixedLeafColumnsLength.value-1?s.push("is-last-column"):!d&&l-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&s.push("is-first-column")}return s};function yS(e,t){return e+(Ud(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const f1=(e,t,n,o)=>{const{direction:r,start:i=0,after:s=0}=kA(e,t,n,o);if(!r)return;const a={},l=r==="left",u=n.states.columns.value;return l?a.left=u.slice(0,i).reduce(yS,0):a.right=u.slice(s+1).reverse().reduce(yS,0),a},Au=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function ZX(e){const t=Pt(),n=F(!1),o=F([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)o.value=l.slice();else if(u){const d=ou(o.value,u);o.value=l.reduce((f,p)=>{const h=Mo(p,u);return d[h]&&f.push(p),f},[])}else o.value=[]},toggleRowExpansion:(l,u)=>{wp(o.value,l,u)&&t.emit("expand-change",l,o.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,f=ou(u,d);o.value=l.reduce((p,h)=>{const m=f[h];return m&&p.push(m.row),p},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!ou(o.value,u)[Mo(l,u)]:o.value.includes(l)},states:{expandRows:o,defaultExpandAll:n}}}function JX(e){const t=Pt(),n=F(null),o=F(null),r=u=>{t.store.assertRowKey(),n.value=u,s(u)},i=()=>{n.value=null},s=u=>{const{data:d,rowKey:f}=e;let p=null;f.value&&(p=(c(d)||[]).find(h=>Mo(h,f.value)===u)),o.value=p,t.emit("current-change",o.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:i,setCurrentRowByKey:s,updateCurrentRow:u=>{const d=o.value;if(u&&u!==d){o.value=u,t.emit("current-change",o.value,d);return}!u&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],f=o.value;if(!d.includes(f)&&f){if(u){const p=Mo(f,u);s(p)}else o.value=null;Ud(o.value)&&t.emit("current-change",null,f)}else n.value&&(s(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function QX(e){const t=F([]),n=F({}),o=F(16),r=F(!1),i=F({}),s=F("hasChildren"),a=F("children"),l=F(!1),u=Pt(),d=A(()=>{if(!e.rowKey.value)return{};const _=e.data.value||[];return p(_)}),f=A(()=>{const _=e.rowKey.value,w=Object.keys(i.value),S={};return w.length&&w.forEach(M=>{if(i.value[M].length){const T={children:[]};i.value[M].forEach(E=>{const C=Mo(E,_);T.children.push(C),E[s.value]&&!S[C]&&(S[C]={children:[]})}),S[M]=T}}),S}),p=_=>{const w=e.rowKey.value,S={};return jX(_,(M,T,E)=>{const C=Mo(M,w);Oe(T)?S[C]={children:T.map(k=>Mo(k,w)),level:E}:r.value&&(S[C]={children:[],lazy:!0,level:E})},a.value,s.value),S},h=(_=!1,w=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const M=d.value,T=f.value,E=Object.keys(M),C={};if(E.length){const k=c(n),R=[],B=(N,P)=>{if(_)return t.value?w||t.value.includes(P):!!(w||N!=null&&N.expanded);{const U=w||t.value&&t.value.includes(P);return!!(N!=null&&N.expanded||U)}};E.forEach(N=>{const P=k[N],U={...M[N]};if(U.expanded=B(P,N),U.lazy){const{loaded:I=!1,loading:O=!1}=P||{};U.loaded=!!I,U.loading=!!O,R.push(N)}C[N]=U});const H=Object.keys(T);r.value&&H.length&&R.length&&H.forEach(N=>{const P=k[N],U=T[N].children;if(R.includes(N)){if(C[N].children.length!==0)throw new Error("[ElTable]children must be an empty array.");C[N].children=U}else{const{loaded:I=!1,loading:O=!1}=P||{};C[N]={lazy:!0,loaded:!!I,loading:!!O,expanded:B(P,N),children:U,level:""}}})}n.value=C,(S=u.store)==null||S.updateTableScrollY()};Te(()=>t.value,()=>{h(!0)}),Te(()=>d.value,()=>{h()}),Te(()=>f.value,()=>{h()});const m=_=>{t.value=_,h()},v=_=>r.value&&_&&"loaded"in _&&!_.loaded,b=(_,w)=>{u.store.assertRowKey();const S=e.rowKey.value,M=Mo(_,S),T=M&&n.value[M];if(M&&T&&"expanded"in T){const E=T.expanded;w=Bt(w)?!T.expanded:w,n.value[M].expanded=w,E!==w&&u.emit("expand-change",_,w),v(T)&&x(_,M,T),u.store.updateTableScrollY()}},g=_=>{u.store.assertRowKey();const w=e.rowKey.value,S=Mo(_,w),M=n.value[S];v(M)?x(_,S,M):b(_,void 0)},x=(_,w,S)=>{const{load:M}=u.props;M&&!n.value[w].loaded&&(n.value[w].loading=!0,M(_,S,T=>{if(!Oe(T))throw new TypeError("[ElTable] data must be an array");n.value[w].loading=!1,n.value[w].loaded=!0,n.value[w].expanded=!0,T.length&&(i.value[w]=T),u.emit("expand-change",_,!0)}))};return{loadData:x,loadOrToggle:g,toggleTreeExpansion:b,updateTreeExpandKeys:m,updateTreeData:h,updateKeyChildren:(_,w)=>{const{lazy:S,rowKey:M}=u.props;if(S){if(!M)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[_]&&(i.value[_]=w)}},normalize:p,states:{expandRowKeys:t,treeData:n,indent:o,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a,checkStrictly:l}}}const eZ=(e,t)=>{const n=t.sortingColumn;return!n||et(n.sortable)?e:HX(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Ph=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Ph(n.children)):t.push(n)}),t};function tZ(){var e;const t=Pt(),{size:n}=jn((e=t.proxy)==null?void 0:e.$props),o=F(null),r=F([]),i=F([]),s=F(!1),a=F([]),l=F([]),u=F([]),d=F([]),f=F([]),p=F([]),h=F([]),m=F([]),v=[],b=F(0),g=F(0),x=F(0),y=F(!1),_=F([]),w=F(!1),S=F(!1),M=F(null),T=F({}),E=F(null),C=F(null),k=F(null),R=F(null),B=F(null),H=A(()=>o.value?ou(_.value,o.value):void 0);Te(r,()=>{var He;t.state&&(I(!1),t.props.tableLayout==="auto"&&((He=t.refs.tableHeaderRef)==null||He.updateFixedColumnStyle()))},{deep:!0});const N=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},P=He=>{var $e;($e=He.children)==null||$e.forEach(ne=>{ne.fixed=He.fixed,P(ne)})},U=()=>{a.value.forEach(Ye=>{P(Ye)}),d.value=a.value.filter(Ye=>[!0,"left"].includes(Ye.fixed));const He=a.value.find(Ye=>Ye.type==="selection");let $e;He&&He.fixed!=="right"&&!d.value.includes(He)&&a.value.indexOf(He)===0&&d.value.length&&(d.value.unshift(He),$e=!0),f.value=a.value.filter(Ye=>Ye.fixed==="right");const ne=a.value.filter(Ye=>($e?Ye.type!=="selection":!0)&&!Ye.fixed);l.value=[].concat(d.value).concat(ne).concat(f.value);const we=Ph(ne),te=Ph(d.value),Ee=Ph(f.value);b.value=we.length,g.value=te.length,x.value=Ee.length,u.value=[].concat(te).concat(we).concat(Ee),s.value=d.value.length>0||f.value.length>0},I=(He,$e=!1)=>{He&&U(),$e?t.state.doLayout():t.state.debouncedUpdateLayout()},O=He=>H.value?!!H.value[Mo(He,o.value)]:_.value.includes(He),q=()=>{y.value=!1;const He=_.value;_.value=[],He.length&&t.emit("selection-change",[])},K=()=>{var He,$e;let ne;if(o.value){ne=[];const we=($e=(He=t==null?void 0:t.store)==null?void 0:He.states)==null?void 0:$e.childrenColumnName.value,te=ou(r.value,o.value,!0,we);for(const Ee in H.value)zt(H.value,Ee)&&!te[Ee]&&ne.push(H.value[Ee].row)}else ne=_.value.filter(we=>!r.value.includes(we));if(ne.length){const we=_.value.filter(te=>!ne.includes(te));_.value=we,t.emit("selection-change",we.slice())}},oe=()=>(_.value||[]).slice(),X=(He,$e,ne=!0,we=!1)=>{var te,Ee,Ye,Se;const ot={children:(Ee=(te=t==null?void 0:t.store)==null?void 0:te.states)==null?void 0:Ee.childrenColumnName.value,checkStrictly:(Se=(Ye=t==null?void 0:t.store)==null?void 0:Ye.states)==null?void 0:Se.checkStrictly.value};if(wp(_.value,He,$e,ot,we?void 0:M.value,r.value.indexOf(He))){const ft=(_.value||[]).slice();ne&&t.emit("select",ft,He),t.emit("selection-change",ft)}},Y=()=>{var He,$e;const ne=S.value?!y.value:!(y.value||_.value.length);y.value=ne;let we=!1,te=0;const Ee=($e=(He=t==null?void 0:t.store)==null?void 0:He.states)==null?void 0:$e.rowKey.value,{childrenColumnName:Ye}=t.store.states,Se={children:Ye.value,checkStrictly:!1};r.value.forEach((ot,Ze)=>{const ft=Ze+te;wp(_.value,ot,ne,Se,M.value,ft)&&(we=!0),te+=re(Mo(ot,Ee))}),we&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",(_.value||[]).slice())},ie=()=>{r.value.forEach(He=>{const $e=Mo(He,o.value),ne=H.value[$e];ne&&(_.value[ne.index]=He)})},ae=()=>{var He;if(((He=r.value)==null?void 0:He.length)===0){y.value=!1;return}const{childrenColumnName:$e}=t.store.states;let ne=0,we=0;const te=Ye=>{var Se;for(const ot of Ye){const Ze=M.value&&M.value.call(null,ot,ne);if(O(ot))we++;else if(!M.value||Ze)return!1;if(ne++,(Se=ot[$e.value])!=null&&Se.length&&!te(ot[$e.value]))return!1}return!0},Ee=te(r.value||[]);y.value=we===0?!1:Ee},re=He=>{var $e;if(!t||!t.store)return 0;const{treeData:ne}=t.store.states;let we=0;const te=($e=ne.value[He])==null?void 0:$e.children;return te&&(we+=te.length,te.forEach(Ee=>{we+=re(Ee)})),we},fe=(He,$e)=>{Oe(He)||(He=[He]);const ne={};return He.forEach(we=>{T.value[we.id]=$e,ne[we.columnKey||we.id]=$e}),ne},be=(He,$e,ne)=>{C.value&&C.value!==He&&(C.value.order=null),C.value=He,k.value=$e,R.value=ne},De=()=>{let He=c(i);Object.keys(T.value).forEach($e=>{const ne=T.value[$e];if(!ne||ne.length===0)return;const we=MA({columns:u.value},$e);we&&we.filterMethod&&(He=He.filter(te=>ne.some(Ee=>we.filterMethod.call(null,Ee,te,we))))}),E.value=He},Re=()=>{r.value=eZ(E.value,{sortingColumn:C.value,sortProp:k.value,sortOrder:R.value})},V=(He=void 0)=>{He&&He.filter||De(),Re()},ee=He=>{const{tableHeaderRef:$e}=t.refs;if(!$e)return;const ne=Object.assign({},$e.filterPanels),we=Object.keys(ne);if(we.length)if(et(He)&&(He=[He]),Oe(He)){const te=He.map(Ee=>WX({columns:u.value},Ee));we.forEach(Ee=>{const Ye=te.find(Se=>Se.id===Ee);Ye&&(Ye.filteredValue=[])}),t.store.commit("filterChange",{column:te,values:[],silent:!0,multi:!0})}else we.forEach(te=>{const Ee=u.value.find(Ye=>Ye.id===te);Ee&&(Ee.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},z=()=>{C.value&&(be(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ve,toggleRowExpansion:ce,updateExpandRows:me,states:ue,isRowExpanded:ge}=ZX({data:r,rowKey:o}),{updateTreeExpandKeys:xe,toggleTreeExpansion:Ce,updateTreeData:Fe,updateKeyChildren:Z,loadOrToggle:$,states:he}=QX({data:r,rowKey:o}),{updateCurrentRowData:Me,updateCurrentRow:Be,setCurrentRowKey:Ne,states:nt}=JX({data:r,rowKey:o});return{assertRowKey:N,updateColumns:U,scheduleLayout:I,isSelected:O,clearSelection:q,cleanSelection:K,getSelectionRows:oe,toggleRowSelection:X,_toggleAllSelection:Y,toggleAllSelection:null,updateSelectionByRowKey:ie,updateAllSelected:ae,updateFilters:fe,updateCurrentRow:Be,updateSort:be,execFilter:De,execSort:Re,execQuery:V,clearFilter:ee,clearSort:z,toggleRowExpansion:ce,setExpandRowKeysAdapter:He=>{ve(He),xe(He)},setCurrentRowKey:Ne,toggleRowExpansionAdapter:(He,$e)=>{u.value.some(({type:we})=>we==="expand")?ce(He,$e):Ce(He,$e)},isRowExpanded:ge,updateExpandRows:me,updateCurrentRowData:Me,loadOrToggle:$,updateTreeData:Fe,updateKeyChildren:Z,states:{tableSize:n,rowKey:o,data:r,_data:i,isComplex:s,_columns:a,originColumns:l,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:p,fixedLeafColumns:h,rightFixedLeafColumns:m,updateOrderFns:v,leafColumnsLength:b,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:x,isAllSelected:y,selection:_,reserveSelection:w,selectOnIndeterminate:S,selectable:M,filters:T,filteredData:E,sortingColumn:C,sortProp:k,sortOrder:R,hoverRow:B,...ue,...he,...nt}}}function ag(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=ag(n.children,t)),n)})}function lg(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&lg(t.children)}),e.sort((t,n)=>t.no-n.no)}function nZ(){const e=Pt(),t=tZ();return{ns:Pe("table"),...t,mutations:{setData(s,a){const l=c(s._data)!==a;s.data.value=a,s._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),c(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,a,l,u){const d=c(s._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(a),f=ag(d,l)):(d.push(a),f=d),lg(f),s._columns.value=f,s.updateOrderFns.push(u),a.type==="selection"&&(s.selectable.value=a.selectable,s.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,a){var l;((l=a.getColumnIndex)==null?void 0:l.call(a))!==a.no&&(lg(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,a,l,u){const d=c(s._columns)||[];if(l)l.children.splice(l.children.findIndex(p=>p.id===a.id),1),Qe(()=>{var p;((p=l.children)==null?void 0:p.length)===0&&delete l.children}),s._columns.value=ag(d,l);else{const p=d.indexOf(a);p>-1&&(d.splice(p,1),s._columns.value=d)}const f=s.updateOrderFns.indexOf(u);f>-1&&s.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,a){const{prop:l,order:u,init:d}=a;if(l){const f=c(s.columns).find(p=>p.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(s,a){const{sortingColumn:l,sortProp:u,sortOrder:d}=s,f=c(l),p=c(u),h=c(d);Ud(h)&&(s.sortingColumn.value=null,s.sortProp.value=null);const m={filter:!0};e.store.execQuery(m),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:f,prop:p,order:h}),e.store.updateTableScrollY()},filterChange(s,a){const{column:l,values:u,silent:d}=a,f=e.store.updateFilters(l,u);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(s,a){s.hoverRow.value=a},setCurrentRow(s,a){e.store.updateCurrentRow(a)}},commit:function(s,...a){const l=e.store.mutations;if(l[s])l[s].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Qe(()=>e.layout.updateScrollY.apply(e.layout))}}}const $c={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function oZ(e,t){if(!e)throw new Error("Table is required.");const n=nZ();return n.toggleAllSelection=tr(n._toggleAllSelection,10),Object.keys($c).forEach(o=>{RA(PA(t,o),o,n)}),rZ(n,t),n}function rZ(e,t){Object.keys($c).forEach(n=>{Te(()=>PA(t,n),o=>{RA(o,n,e)})})}function RA(e,t,n){let o=e,r=$c[t];Ct($c[t])&&(r=r.key,o=o||$c[t].default),n.states[r].value=o}function PA(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(r=>{o=o[r]}),o}else return e[t]}class iZ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.gutterWidth=0;for(const n in t)zt(t,n)&&(hn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(Ud(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let o=!0;const r=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,r!==o}return!1}setHeight(t,n="height"){if(!Ft)return;const o=this.table.vnode.el;if(t=KX(t),this.height.value=Number(t),!o&&(t||t===0))return Qe(()=>this.setHeight(t,n));st(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):et(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ft)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const r=this.getFlattenColumns(),i=r.filter(l=>!st(l.width));if(r.forEach(l=>{st(l.width)&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(r.forEach(l=>{o+=Number(l.width||l.minWidth||80)}),o<=n){this.scrollX.value=!1;const l=n-o;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((p,h)=>p+Number(h.minWidth||80),0),d=l/u;let f=0;i.forEach((p,h)=>{if(h===0)return;const m=Math.floor(Number(p.minWidth||80)*d);f+=m,p.realWidth=Number(p.minWidth||80)+m}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),o+=l.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const s=this.store.states.fixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var r,i;switch(t){case"columns":(r=o.state)==null||r.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:sZ}=Or,aZ=Q({name:"ElTableFilterPanel",components:{ElCheckbox:Or,ElCheckboxGroup:sZ,ElScrollbar:Ii,ElTooltip:_o,ElIcon:Je,ArrowDown:Di,ArrowUp:d0},directives:{ClickOutside:cs},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Pn.appendTo},setup(e){const t=Pt(),{t:n}=$t(),o=Pe("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=F(!1),s=F(null),a=A(()=>e.column&&e.column.filters),l=A(()=>e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),u=A({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{d.value&&(jo(w)?d.value.splice(0,1):d.value.splice(0,1,w))}}),d=A({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),f=A(()=>e.column?e.column.filterMultiple:!0),p=w=>w.value===u.value,h=()=>{i.value=!1},m=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},b=()=>{y(d.value),h()},g=()=>{d.value=[],y(d.value),h()},x=w=>{u.value=w,jo(w)?y([]):y(d.value),h()},y=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Te(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=A(()=>{var w,S;return(S=(w=s.value)==null?void 0:w.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:f,filterClassName:l,filteredValue:d,filterValue:u,filters:a,handleConfirm:b,handleReset:g,handleSelect:x,isPropAbsent:jo,isActive:p,t:n,ns:o,showFilterPanel:m,hideFilterPanel:v,popperPaneRef:_,tooltip:s}}});function lZ(e,t,n,o,r,i){const s=Mt("el-checkbox"),a=Mt("el-checkbox-group"),l=Mt("el-scrollbar"),u=Mt("arrow-up"),d=Mt("arrow-down"),f=Mt("el-icon"),p=Mt("el-tooltip"),h=jp("click-outside");return D(),_e(p,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:se(()=>[e.multiple?(D(),G("div",{key:0},[j("div",{class:L(e.ns.e("content"))},[J(l,{"wrap-class":e.ns.e("wrap")},{default:se(()=>[J(a,{modelValue:e.filteredValue,"onUpdate:modelValue":m=>e.filteredValue=m,class:L(e.ns.e("checkbox-group"))},{default:se(()=>[(D(!0),G(tt,null,Nt(e.filters,m=>(D(),_e(s,{key:m.value,value:m.value},{default:se(()=>[Tt(ze(m.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),j("div",{class:L(e.ns.e("bottom"))},[j("button",{class:L({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ze(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),j("button",{type:"button",onClick:e.handleReset},ze(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(D(),G("ul",{key:1,class:L(e.ns.e("list"))},[j("li",{class:L([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:m=>e.handleSelect(null)},ze(e.t("el.table.clearFilter")),11,["onClick"]),(D(!0),G(tt,null,Nt(e.filters,m=>(D(),G("li",{key:m.value,class:L([e.ns.e("list-item"),e.ns.is("active",e.isActive(m))]),label:m.value,onClick:v=>e.handleSelect(m.value)},ze(m.text),11,["label","onClick"]))),128))],2))]),default:se(()=>[_t((D(),G("span",{class:L([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[J(f,null,{default:se(()=>[de(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(D(),_e(u,{key:0})):(D(),_e(d,{key:1}))])]),_:3})],10,["onClick"])),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var uZ=Ve(aZ,[["render",lZ],["__file","filter-panel.vue"]]);function h1(e){const t=Pt();Jp(()=>{n.value.addObserver(t)}),xt(()=>{o(n.value),r(n.value)}),ei(()=>{o(n.value),r(n.value)}),fs(()=>{n.value.removeObserver(t)});const n=A(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var s;const a=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const l=i.getFlattenColumns(),u={};l.forEach(d=>{u[d.id]=d});for(let d=0,f=a.length;d{var s,a;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=l.length;d{v.stopPropagation()},i=(v,b)=>{!b.filters&&b.sortable?m(v,b,!1):b.filterable&&!b.sortable&&r(v),o==null||o.emit("header-click",b,v)},s=(v,b)=>{o==null||o.emit("header-contextmenu",b,v)},a=F(null),l=F(!1),u=F({}),d=(v,b)=>{if(Ft&&!(b.children&&b.children.length>0)&&a.value&&e.border){l.value=!0;const g=o;t("set-drag-visible",!0);const y=(g==null?void 0:g.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${b.id}`),w=_.getBoundingClientRect(),S=w.left-y+30;Ar(_,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:w.right-y,startColumnLeft:w.left-y,tableLeft:y};const M=g==null?void 0:g.refs.resizeProxy;M.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=C=>{const k=C.clientX-u.value.startMouseLeft,R=u.value.startLeft+k;M.style.left=`${Math.max(S,R)}px`},E=()=>{if(l.value){const{startColumnLeft:C,startLeft:k}=u.value,B=Number.parseInt(M.style.left,10)-C;b.width=b.realWidth=B,g==null||g.emit("header-dragend",b.width,k-C,b,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,a.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",E),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ao(_,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",E)}},f=(v,b)=>{var g;if(b.children&&b.children.length>0)return;const x=v.target;if(!Fo(x))return;const y=x==null?void 0:x.closest("th");if(!(!b||!b.resizable||!y)&&!l.value&&e.border){const _=y.getBoundingClientRect(),w=document.body.style,S=((g=y.parentNode)==null?void 0:g.lastElementChild)===y,M=e.allowDragLastColumn||!S;_.width>12&&_.right-v.clientX<8&&M?(w.cursor="col-resize",qo(y,"is-sortable")&&(y.style.cursor="col-resize"),a.value=b):l.value||(w.cursor="",qo(y,"is-sortable")&&(y.style.cursor="pointer"),a.value=null)}},p=()=>{Ft&&(document.body.style.cursor="")},h=({order:v,sortOrders:b})=>{if(v==="")return b[0];const g=b.indexOf(v||null);return b[g>b.length-2?0:g+1]},m=(v,b,g)=>{var x;v.stopPropagation();const y=b.order===g?null:g||h(b),_=(x=v.target)==null?void 0:x.closest("th");if(_&&qo(_,"noclick")){Ao(_,"noclick");return}if(!b.sortable)return;const w=v.currentTarget;if(["ascending","descending"].some(C=>qo(w,C)&&!b.sortOrders.includes(C)))return;const S=e.store.states;let M=S.sortProp.value,T;const E=S.sortingColumn.value;(E!==b||E===b&&Ud(E.order))&&(E&&(E.order=null),S.sortingColumn.value=b,M=b.property),y?T=b.order=y:T=b.order=null,S.sortProp.value=M,S.sortOrder.value=T,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:s,handleMouseDown:d,handleMouseMove:f,handleMouseOut:p,handleSortClick:m,handleFilterClick:r}}function dZ(e){const t=je(ri),n=Pe("table");return{getHeaderRowStyle:a=>{const l=t==null?void 0:t.props.headerRowStyle;return it(l)?l.call(null,{rowIndex:a}):l},getHeaderRowClass:a=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return et(u)?l.push(u):it(u)&&l.push(u.call(null,{rowIndex:a})),l.join(" ")},getHeaderCellStyle:(a,l,u,d)=>{var f;let p=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};it(p)&&(p=p.call(null,{rowIndex:a,columnIndex:l,row:u,column:d}));const h=f1(l,d.fixed,e.store,u);return Au(h,"left"),Au(h,"right"),Object.assign({},p,h)},getHeaderCellClass:(a,l,u,d)=>{const f=d1(n.b(),l,d.fixed,e.store,u),p=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||p.push("is-leaf"),d.sortable&&p.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return et(h)?p.push(h):it(h)&&p.push(h.call(null,{rowIndex:a,columnIndex:l,row:u,column:d})),p.push(n.e("cell")),p.filter(m=>!!m).join(" ")}}}const DA=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,DA(n.children))):t.push(n)}),t},IA=e=>{let t=1;const n=(i,s)=>{if(s&&(i.level=s.level+1,t{n(l,i),a+=l.colSpan}),i.colSpan=a}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i{i.children?(i.rowSpan=1,i.children.forEach(s=>s.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function fZ(e){const t=je(ri),n=A(()=>IA(e.store.states.originColumns.value));return{isGroup:A(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var hZ=Q({name:"ElTableHeader",components:{ElCheckbox:Or},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=Pt(),o=je(ri),r=Pe("table"),i=F({}),{onColumnsChange:s,onScrollableChange:a}=h1(o),l=(o==null?void 0:o.props.tableLayout)==="auto",u=Gt(new Map),d=F(),f=()=>{setTimeout(()=>{u.size>0&&(u.forEach((C,k)=>{const R=d.value.querySelector(`.${k.replace(/\s/g,".")}`);if(R){const B=R.getBoundingClientRect().width;C.width=B}}),u.clear())})};Te(u,f),xt(async()=>{await Qe(),await Qe();const{prop:C,order:k}=e.defaultSort;o==null||o.store.commit("sort",{prop:C,order:k,init:!0}),f()});const{handleHeaderClick:p,handleHeaderContextMenu:h,handleMouseDown:m,handleMouseMove:v,handleMouseOut:b,handleSortClick:g,handleFilterClick:x}=cZ(e,t),{getHeaderRowStyle:y,getHeaderRowClass:_,getHeaderCellStyle:w,getHeaderCellClass:S}=dZ(e),{isGroup:M,toggleAllSelection:T,columnRows:E}=fZ(e);return n.state={onColumnsChange:s,onScrollableChange:a},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:s,onScrollableChange:a,columnRows:E,getHeaderRowClass:_,getHeaderRowStyle:y,getHeaderCellClass:S,getHeaderCellStyle:w,handleHeaderClick:p,handleHeaderContextMenu:h,handleMouseDown:m,handleMouseMove:v,handleMouseOut:b,handleSortClick:g,handleFilterClick:x,isGroup:M,toggleAllSelection:T,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:d,updateFixedColumnStyle:f}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:r,getHeaderRowClass:i,getHeaderRowStyle:s,handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:p,store:h,$parent:m,saveIndexSelection:v,isTableLayoutAuto:b}=this;let g=1;return ut("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((x,y)=>ut("tr",{class:i(y),key:y,style:s(y)},x.map((_,w)=>{_.rowSpan>g&&(g=_.rowSpan);const S=r(y,w,x,_);return b&&_.fixed&&v.set(S,_),ut("th",{class:S,colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:o(y,w,x,_),onClick:M=>{M.currentTarget.classList.contains("noclick")||a(M,_)},onContextmenu:M=>l(M,_),onMousedown:M=>u(M,_),onMousemove:M=>d(M,_),onMouseout:p},[ut("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:w,store:h,_self:m}):_.label,_.sortable&&ut("span",{onClick:M=>f(M,_),class:"caret-wrapper"},[ut("i",{onClick:M=>f(M,_,"ascending"),class:"sort-caret ascending"}),ut("i",{onClick:M=>f(M,_,"descending"),class:"sort-caret descending"})]),_.filterable&&ut(uZ,{store:h,placement:_.filterPlacement||"bottom-start",appendTo:m.appendFilterPanelTo,column:_,upDataColumn:(M,T)=>{_[M]=T}},{"filter-icon":()=>_.renderFilterIcon?_.renderFilterIcon({filterOpened:_.filterOpened}):null})])])}))))}});function vm(e,t,n=.03){return e-t>n}function pZ(e){const t=je(ri),n=F(""),o=F(ut("div")),r=(m,v,b)=>{var g;const x=t,y=mm(m);let _;const w=(g=x==null?void 0:x.vnode.el)==null?void 0:g.dataset.prefix;y&&(_=gS({columns:e.store.states.columns.value},y,w),_&&(x==null||x.emit(`cell-${b}`,v,_,y,m))),x==null||x.emit(`row-${b}`,v,_,m)},i=(m,v)=>{r(m,v,"dblclick")},s=(m,v)=>{e.store.commit("setCurrentRow",v),r(m,v,"click")},a=(m,v)=>{r(m,v,"contextmenu")},l=tr(m=>{e.store.commit("setHoverRow",m)},30),u=tr(()=>{e.store.commit("setHoverRow",null)},30),d=m=>{const v=window.getComputedStyle(m,null),b=Number.parseInt(v.paddingLeft,10)||0,g=Number.parseInt(v.paddingRight,10)||0,x=Number.parseInt(v.paddingTop,10)||0,y=Number.parseInt(v.paddingBottom,10)||0;return{left:b,right:g,top:x,bottom:y}},f=(m,v,b)=>{let g=v.target.parentNode;for(;m>1&&(g=g==null?void 0:g.nextSibling,!(!g||g.nodeName!=="TR"));)b(g,"hover-row hover-fixed-row"),m--};return{handleDoubleClick:i,handleClick:s,handleContextMenu:a,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(m,v,b)=>{var g,x,y;const _=t,w=mm(m),S=(g=_==null?void 0:_.vnode.el)==null?void 0:g.dataset.prefix;let M;if(w){M=gS({columns:e.store.states.columns.value},w,S),w.rowSpan>1&&f(w.rowSpan,m,Ar);const q=_.hoverState={cell:w,column:M,row:v};_==null||_.emit("cell-mouse-enter",q.row,q.column,q.cell,m)}if(!b)return;const T=m.target.querySelector(".cell");if(!(qo(T,`${S}-tooltip`)&&T.childNodes.length))return;const E=document.createRange();E.setStart(T,0),E.setEnd(T,T.childNodes.length);const{width:C,height:k}=E.getBoundingClientRect(),{width:R,height:B}=T.getBoundingClientRect(),{top:H,left:N,right:P,bottom:U}=d(T),I=N+P,O=H+U;vm(C+I,R)||vm(k+O,B)||vm(T.scrollWidth,R)?XX(b,w.innerText||w.textContent,v,M,w,_):((x=Ko)==null?void 0:x.trigger)===w&&((y=Ko)==null||y())},handleCellMouseLeave:m=>{const v=mm(m);if(!v)return;v.rowSpan>1&&f(v.rowSpan,m,Ao);const b=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",b==null?void 0:b.row,b==null?void 0:b.column,b==null?void 0:b.cell,m)},tooltipContent:n,tooltipTrigger:o}}function mZ(e){const t=je(ri),n=Pe("table");return{getRowStyle:(u,d)=>{const f=t==null?void 0:t.props.rowStyle;return it(f)?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return et(p)?f.push(p):it(p)&&f.push(p.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,p)=>{const h=t==null?void 0:t.props.cellStyle;let m=h??{};it(h)&&(m=h.call(null,{rowIndex:u,columnIndex:d,row:f,column:p}));const v=f1(d,e==null?void 0:e.fixed,e.store);return Au(v,"left"),Au(v,"right"),Object.assign({},m,v)},getCellClass:(u,d,f,p,h)=>{const m=d1(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,h),v=[p.id,p.align,p.className,...m],b=t==null?void 0:t.props.cellClassName;return et(b)?v.push(b):it(b)&&v.push(b.call(null,{rowIndex:u,columnIndex:d,row:f,column:p})),v.push(n.e("cell")),v.filter(g=>!!g).join(" ")},getSpan:(u,d,f,p)=>{let h=1,m=1;const v=t==null?void 0:t.props.spanMethod;if(it(v)){const b=v({row:u,column:d,rowIndex:f,columnIndex:p});Oe(b)?(h=b[0],m=b[1]):Ct(b)&&(h=b.rowspan,m=b.colspan)}return{rowspan:h,colspan:m}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const p=u.map(({realWidth:h,width:m})=>h||m).slice(f,f+d);return Number(p.reduce((h,m)=>Number(h)+Number(m),-1))}}}const vZ=Q({name:"TableTdWrapper"}),gZ=Q({...vZ,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(D(),G("td",{colspan:e.colspan,rowspan:e.rowspan},[de(t.$slots,"default")],8,["colspan","rowspan"]))}});var bZ=Ve(gZ,[["__file","td-wrapper.vue"]]);function yZ(e){const t=je(ri),n=Pe("table"),{handleDoubleClick:o,handleClick:r,handleContextMenu:i,handleMouseEnter:s,handleMouseLeave:a,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=pZ(e),{getRowStyle:p,getRowClass:h,getCellStyle:m,getCellClass:v,getSpan:b,getColspanRealWidth:g}=mZ(e),x=A(()=>e.store.states.columns.value.findIndex(({type:M})=>M==="default")),y=(M,T)=>{const E=t.props.rowKey;return E?Mo(M,E):T},_=(M,T,E,C=!1)=>{const{tooltipEffect:k,tooltipOptions:R,store:B}=e,{indent:H,columns:N}=B.states,P=h(M,T);let U=!0;return E&&(P.push(n.em("row",`level-${E.level}`)),U=E.display),ut("tr",{style:[U?null:{display:"none"},p(M,T)],class:P,key:y(M,T),onDblclick:O=>o(O,M),onClick:O=>r(O,M),onContextmenu:O=>i(O,M),onMouseenter:()=>s(T),onMouseleave:a},N.value.map((O,q)=>{const{rowspan:K,colspan:oe}=b(M,O,T,q);if(!K||!oe)return null;const X=Object.assign({},O);X.realWidth=g(N.value,oe,q);const Y={store:e.store,_self:e.context||t,column:X,row:M,$index:T,cellIndex:q,expanded:C};q===x.value&&E&&(Y.treeNode={indent:E.level*H.value,level:E.level},Jt(E.expanded)&&(Y.treeNode.expanded=E.expanded,"loading"in E&&(Y.treeNode.loading=E.loading),"noLazyChildren"in E&&(Y.treeNode.noLazyChildren=E.noLazyChildren)));const ie=`${y(M,T)},${q}`,ae=X.columnKey||X.rawColumnKey||"",re=O.showOverflowTooltip&&OM({effect:k},R,O.showOverflowTooltip);return ut(bZ,{style:m(T,q,M,O),class:v(T,q,M,O,oe-1),key:`${ae}${ie}`,rowspan:K,colspan:oe,onMouseenter:fe=>l(fe,M,re),onMouseleave:u},{default:()=>w(q,O,Y)})}))},w=(M,T,E)=>T.renderCell(E);return{wrappedRowRender:(M,T)=>{const E=e.store,{isRowExpanded:C,assertRowKey:k}=E,{treeData:R,lazyTreeNodeMap:B,childrenColumnName:H,rowKey:N}=E.states,P=E.states.columns.value;if(P.some(({type:I})=>I==="expand")){const I=C(M),O=_(M,T,void 0,I),q=t.renderExpanded;if(!q)return console.error("[Element Error]renderExpanded is required."),O;const K=[[O]];return(t.props.preserveExpandedContent||I)&&K[0].push(ut("tr",{key:`expanded-row__${O.key}`,style:{display:I?"":"none"}},[ut("td",{colspan:P.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[q({row:M,$index:T,store:E,expanded:I})])])),K}else if(Object.keys(R.value).length){k();const I=Mo(M,N.value);let O=R.value[I],q=null;O&&(q={expanded:O.expanded,level:O.level,display:!0},Jt(O.lazy)&&(Jt(O.loaded)&&O.loaded&&(q.noLazyChildren=!(O.children&&O.children.length)),q.loading=O.loading));const K=[_(M,T,q)];if(O){let oe=0;const X=(ie,ae)=>{ie&&ie.length&&ae&&ie.forEach(re=>{const fe={display:ae.display&&ae.expanded,level:ae.level+1,expanded:!1,noLazyChildren:!1,loading:!1},be=Mo(re,N.value);if(jo(be))throw new Error("For nested data item, row-key is required.");if(O={...R.value[be]},O&&(fe.expanded=O.expanded,O.level=O.level||fe.level,O.display=!!(O.expanded&&fe.display),Jt(O.lazy)&&(Jt(O.loaded)&&O.loaded&&(fe.noLazyChildren=!(O.children&&O.children.length)),fe.loading=O.loading)),oe++,K.push(_(re,T+oe,fe)),O){const De=B.value[be]||re[H.value];X(De,O)}})};O.display=!0;const Y=B.value[I]||M[H.value];X(Y,O)}return K}else return _(M,T,void 0)},tooltipContent:d,tooltipTrigger:f}}const _Z={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var xZ=Q({name:"ElTableBody",props:_Z,setup(e){const t=Pt(),n=je(ri),o=Pe("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:s}=yZ(e),{onColumnsChange:a,onScrollableChange:l}=h1(n),u=[];return Te(e.store.states.hoverRow,(d,f)=>{var p;const h=t==null?void 0:t.vnode.el,m=Array.from((h==null?void 0:h.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${o.e("row")}`));let v=d;const b=(p=m[v])==null?void 0:p.childNodes;if(b!=null&&b.length){let g=0;Array.from(b).reduce((y,_,w)=>{var S,M;return((S=b[w])==null?void 0:S.colSpan)>1&&(g=(M=b[w])==null?void 0:M.colSpan),_.nodeName!=="TD"&&g===0&&y.push(w),g>0&&g--,y},[]).forEach(y=>{var _;for(v=d;v>0;){const w=(_=m[v-1])==null?void 0:_.childNodes;if(w[y]&&w[y].nodeName==="TD"&&w[y].rowSpan>1){Ar(w[y],"hover-cell"),u.push(w[y]);break}v--}})}else u.forEach(g=>Ao(g,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!Ft||ra(()=>{const g=m[f],x=m[d];g&&!g.classList.contains("hover-fixed-row")&&Ao(g,"hover-row"),x&&Ar(x,"hover-row")})}),fs(()=>{var d;(d=Ko)==null||d()}),{ns:o,onColumnsChange:a,onScrollableChange:l,wrappedRowRender:r,tooltipContent:i,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return ut("tbody",{tabIndex:-1},[n.reduce((o,r)=>o.concat(e(r,o.length)),[])])}});function SZ(){var e;const t=je(ri),n=t==null?void 0:t.store,o=A(()=>{var l;return(l=n==null?void 0:n.states.fixedLeafColumnsLength.value)!=null?l:0}),r=A(()=>{var l;return(l=n==null?void 0:n.states.rightFixedColumns.value.length)!=null?l:0}),i=A(()=>{var l;return(l=n==null?void 0:n.states.columns.value.length)!=null?l:0}),s=A(()=>{var l;return(l=n==null?void 0:n.states.fixedColumns.value.length)!=null?l:0}),a=A(()=>{var l;return(l=n==null?void 0:n.states.rightFixedColumns.value.length)!=null?l:0});return{leftFixedLeafCount:o,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:s,rightFixedCount:a,columns:(e=n==null?void 0:n.states.columns)!=null?e:[]}}function wZ(e){const{columns:t}=SZ(),n=Pe("table");return{getCellClasses:(i,s)=>{const a=i[s],l=[n.e("cell"),a.id,a.align,a.labelClassName,...d1(n.b(),s,a.fixed,e.store)];return a.className&&l.push(a.className),a.children||l.push(n.is("leaf")),l},getCellStyles:(i,s)=>{const a=f1(s,i.fixed,e.store);return Au(a,"left"),Au(a,"right"),a},columns:t}}var CZ=Q({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=je(ri),n=Pe("table"),{getCellClasses:o,getCellStyles:r,columns:i}=wZ(e),{onScrollableChange:s,onColumnsChange:a}=h1(t);return{ns:n,onScrollableChange:s,onColumnsChange:a,getCellClasses:o,getCellStyles:r,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:r}=this,i=this.store.states.data.value;let s=[];return o?s=o({columns:e,data:i}):e.forEach((a,l)=>{if(l===0){s[l]=r;return}const u=i.map(h=>Number(h[a.property])),d=[];let f=!0;u.forEach(h=>{if(!Number.isNaN(+h)){f=!1;const m=`${h}`.split(".")[1];d.push(m?m.length:0)}});const p=Math.max.apply(null,d);f?s[l]="":s[l]=u.reduce((h,m)=>{const v=Number(m);return Number.isNaN(+v)?h:Number.parseFloat((h+m).toFixed(Math.min(p,20)))},0)}),ut(ut("tfoot",[ut("tr",{},[...e.map((a,l)=>ut("td",{key:l,colspan:a.colSpan,rowspan:a.rowSpan,class:n(e,l),style:t(a,l)},[ut("div",{class:["cell",a.labelClassName]},[s[l]])]))])]))}});function EZ(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,p,h=!0)=>{e.toggleRowSelection(f,p,!1,h),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,p)=>{e.toggleRowExpansionAdapter(f,p)},clearSort:()=>{e.clearSort()},sort:(f,p)=>{e.commit("sort",{prop:f,order:p})},updateKeyChildren:(f,p)=>{e.updateKeyChildren(f,p)}}}function MZ(e,t,n,o){const r=F(!1),i=F(null),s=F(!1),a=I=>{s.value=I},l=F({width:null,height:null,headerHeight:null}),u=F(!1),d={display:"inline-block",verticalAlign:"middle"},f=F(),p=F(0),h=F(0),m=F(0),v=F(0),b=F(0);co(()=>{t.setHeight(e.height)}),co(()=>{t.setMaxHeight(e.maxHeight)}),Te(()=>[e.currentRowKey,n.states.rowKey],([I,O])=>{!c(O)||!c(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),Te(()=>e.data,I=>{o.store.commit("setData",I)},{immediate:!0,deep:!0}),co(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},x=(I,O)=>{const{pixelX:q,pixelY:K}=O;Math.abs(q)>=Math.abs(K)&&(o.refs.bodyWrapper.scrollLeft+=O.pixelX/5)},y=A(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=A(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(E)};xt(async()=>{await Qe(),n.updateColumns(),C(),requestAnimationFrame(w);const I=o.vnode.el,O=o.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),l.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&O?O.offsetHeight:null},n.states.columns.value.forEach(q=>{q.filteredValue&&q.filteredValue.length&&o.store.commit("filterChange",{column:q,values:q.filteredValue,silent:!0})}),o.$ready=!0});const S=(I,O)=>{if(!I)return;const q=Array.from(I.classList).filter(K=>!K.startsWith("is-scrolling-"));q.push(t.scrollX.value?O:"is-scrolling-none"),I.className=q.join(" ")},M=I=>{const{tableWrapper:O}=o.refs;S(O,I)},T=I=>{const{tableWrapper:O}=o.refs;return!!(O&&O.classList.contains(I))},E=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const ie="is-scrolling-none";T(ie)||M(ie);return}const I=o.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:O,offsetWidth:q,scrollWidth:K}=I,{headerWrapper:oe,footerWrapper:X}=o.refs;oe&&(oe.scrollLeft=O),X&&(X.scrollLeft=O);const Y=K-q-1;O>=Y?M("is-scrolling-right"):M(O===0?"is-scrolling-left":"is-scrolling-middle")},C=()=>{o.refs.scrollBarRef&&(o.refs.scrollBarRef.wrapRef&&on(o.refs.scrollBarRef.wrapRef,"scroll",E,{passive:!0}),e.fit?vn(o.vnode.el,k):on(window,"resize",k),vn(o.refs.bodyWrapper,()=>{var I,O;k(),(O=(I=o.refs)==null?void 0:I.scrollBarRef)==null||O.update()}))},k=()=>{var I,O,q,K;const oe=o.vnode.el;if(!o.$ready||!oe)return;let X=!1;const{width:Y,height:ie,headerHeight:ae}=l.value,re=f.value=oe.offsetWidth;Y!==re&&(X=!0);const fe=oe.offsetHeight;(e.height||y.value)&&ie!==fe&&(X=!0);const be=e.tableLayout==="fixed"?o.refs.headerWrapper:(I=o.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(be==null?void 0:be.offsetHeight)!==ae&&(X=!0),p.value=((O=o.refs.tableWrapper)==null?void 0:O.scrollHeight)||0,m.value=(be==null?void 0:be.scrollHeight)||0,v.value=((q=o.refs.footerWrapper)==null?void 0:q.offsetHeight)||0,b.value=((K=o.refs.appendWrapper)==null?void 0:K.offsetHeight)||0,h.value=p.value-m.value-v.value-b.value,X&&(l.value={width:re,height:fe,headerHeight:e.showHeader&&(be==null?void 0:be.offsetHeight)||0},w())},R=Fn(),B=A(()=>{const{bodyWidth:I,scrollY:O,gutterWidth:q}=t;return I.value?`${I.value-(O.value?q:0)}px`:""}),H=A(()=>e.maxHeight?"fixed":e.tableLayout),N=A(()=>{if(e.data&&e.data.length)return null;let I="100%";e.height&&h.value&&(I=`${h.value}px`);const O=f.value;return{width:O?`${O}px`:"",height:I}}),P=A(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${m.value+v.value}px)`}:{maxHeight:`${e.maxHeight-m.value-v.value}px`}:{});return{isHidden:r,renderExpanded:i,setDragVisible:a,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:x,tableSize:R,emptyBlockStyle:N,handleFixedMousewheel:(I,O)=>{const q=o.refs.bodyWrapper;if(Math.abs(O.spinY)>0){const K=q.scrollTop;O.pixelY<0&&K!==0&&I.preventDefault(),O.pixelY>0&&q.scrollHeight-q.clientHeight>K&&I.preventDefault(),q.scrollTop+=Math.ceil(O.pixelY/5)}else q.scrollLeft+=Math.ceil(O.pixelX/5)},resizeProxyVisible:s,bodyWidth:B,resizeState:l,doLayout:w,tableBodyStyles:_,tableLayout:H,scrollbarViewStyle:d,scrollbarStyle:P}}function TZ(e){const t=F(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},s=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{s.forEach(a=>a())}),t.value.observe(r,i)};xt(()=>{n()}),fs(()=>{var o;(o=t.value)==null||o.disconnect()})}var AZ={data:{type:Array,default:()=>[]},size:Vn,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:{type:Boolean,default:!1}};function LA(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:r})=>Bt(r))&&(n=[]);const o=r=>{const i={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?i.style={width:`${r.width}px`}:i.name=r.id,i};return ut("colgroup",{},n.map(r=>ut("col",o(r))))}LA.props=["columns","tableLayout"];const kZ=()=>{const e=F(),t=(i,s)=>{const a=e.value;a&&a.scrollTo(i,s)},n=(i,s)=>{const a=e.value;a&&st(s)&&["Top","Left"].includes(i)&&a[`setScroll${i}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var _S=!1,Ia,ug,cg,Dh,Ih,NA,Lh,dg,fg,hg,OA,pg,mg,FA,BA;function Vo(){if(!_S){_S=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(pg=/\b(iPhone|iP[ao]d)/.exec(e),mg=/\b(iP[ao]d)/.exec(e),hg=/Android/i.exec(e),FA=/FBAN\/\w+;/i.exec(e),BA=/Mobile/i.exec(e),OA=!!/Win64/.exec(e),t){Ia=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ia&&document&&document.documentMode&&(Ia=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);NA=o?parseFloat(o[1])+4:Ia,ug=t[2]?parseFloat(t[2]):NaN,cg=t[3]?parseFloat(t[3]):NaN,Dh=t[4]?parseFloat(t[4]):NaN,Dh?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ih=t&&t[1]?parseFloat(t[1]):NaN):Ih=NaN}else Ia=ug=cg=Ih=Dh=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Lh=r?parseFloat(r[1].replace("_",".")):!0}else Lh=!1;dg=!!n[2],fg=!!n[3]}else Lh=dg=fg=!1}}var vg={ie:function(){return Vo()||Ia},ieCompatibilityMode:function(){return Vo()||NA>Ia},ie64:function(){return vg.ie()&&OA},firefox:function(){return Vo()||ug},opera:function(){return Vo()||cg},webkit:function(){return Vo()||Dh},safari:function(){return vg.webkit()},chrome:function(){return Vo()||Ih},windows:function(){return Vo()||dg},osx:function(){return Vo()||Lh},linux:function(){return Vo()||fg},iphone:function(){return Vo()||pg},mobile:function(){return Vo()||pg||mg||hg||BA},nativeApp:function(){return Vo()||FA},android:function(){return Vo()||hg},ipad:function(){return Vo()||mg}},RZ=vg,PZ=!!(typeof window<"u"&&window.document&&window.document.createElement),DZ={canUseDOM:PZ},$A=DZ,UA;$A.canUseDOM&&(UA=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function IZ(e,t){if(!$A.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var r=document.createElement("div");r.setAttribute(n,"return;"),o=typeof r[n]=="function"}return!o&&UA&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var LZ=IZ,xS=10,SS=40,wS=800;function zA(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*xS,r=n*xS,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(e.deltaMode==1?(o*=SS,r*=SS):(o*=wS,r*=wS)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}zA.getEventType=function(){return RZ.firefox()?"DOMMouseScroll":LZ("wheel")?"wheel":"mousewheel"};var NZ=zA;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const OZ=function(e,t){if(e&&e.addEventListener){const n=function(o){const r=NZ(o);t&&Reflect.apply(t,this,[o,r])};e.addEventListener("wheel",n,{passive:!0})}},FZ={beforeMount(e,t){OZ(e,t.value)}};let BZ=1;const $Z=Q({name:"ElTable",directives:{Mousewheel:FZ},components:{TableHeader:hZ,TableBody:xZ,TableFooter:CZ,ElScrollbar:Ii,hColgroup:LA},props:AZ,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=$t(),n=Pe("table"),o=Pt();Lt(ri,o);const r=oZ(o,e);o.store=r;const i=new iZ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const s=A(()=>(r.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:p,toggleRowExpansion:h,clearSort:m,sort:v,updateKeyChildren:b}=EZ(r),{isHidden:g,renderExpanded:x,setDragVisible:y,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:S,tableSize:M,emptyBlockStyle:T,handleFixedMousewheel:E,resizeProxyVisible:C,bodyWidth:k,resizeState:R,doLayout:B,tableBodyStyles:H,tableLayout:N,scrollbarViewStyle:P,scrollbarStyle:U}=MZ(e,i,r,o),{scrollBarRef:I,scrollTo:O,setScrollLeft:q,setScrollTop:K}=kZ(),oe=tr(B,50),X=`${n.namespace.value}-table_${BZ++}`;o.tableId=X,o.state={isGroup:_,resizeState:R,doLayout:B,debouncedUpdateLayout:oe};const Y=A(()=>{var re;return(re=e.sumText)!=null?re:t("el.table.sumText")}),ie=A(()=>{var re;return(re=e.emptyText)!=null?re:t("el.table.emptyText")}),ae=A(()=>IA(r.states.originColumns.value)[0]);return TZ(o),Qt(()=>{oe.cancel()}),{ns:n,layout:i,store:r,columns:ae,handleHeaderFooterMousewheel:S,handleMouseLeave:w,tableId:X,tableSize:M,isHidden:g,isEmpty:s,renderExpanded:x,resizeProxyVisible:C,resizeState:R,isGroup:_,bodyWidth:k,tableBodyStyles:H,emptyBlockStyle:T,debouncedUpdateLayout:oe,handleFixedMousewheel:E,setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:p,toggleRowExpansion:h,clearSort:m,doLayout:B,sort:v,updateKeyChildren:b,t,setDragVisible:y,context:o,computedSumText:Y,computedEmptyText:ie,tableLayout:N,scrollbarViewStyle:P,scrollbarStyle:U,scrollBarRef:I,scrollTo:O,setScrollLeft:q,setScrollTop:K,allowDragLastColumn:e.allowDragLastColumn}}});function UZ(e,t,n,o,r,i){const s=Mt("hColgroup"),a=Mt("table-header"),l=Mt("table-body"),u=Mt("table-footer"),d=Mt("el-scrollbar"),f=jp("mousewheel");return D(),G("div",{ref:"tableWrapper",class:L([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:rt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[j("div",{class:L(e.ns.e("inner-wrapper"))},[j("div",{ref:"hiddenColumns",class:"hidden-columns"},[de(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?_t((D(),G("div",{key:0,ref:"headerWrapper",class:L(e.ns.e("header-wrapper"))},[j("table",{ref:"tableHeader",class:L(e.ns.e("header")),style:rt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[J(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):pe("v-if",!0),j("div",{ref:"bodyWrapper",class:L(e.ns.e("body-wrapper"))},[J(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:p=>e.$emit("scroll",p)},{default:se(()=>[j("table",{ref:"tableBody",class:L(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:rt({width:e.bodyWidth,tableLayout:e.tableLayout})},[J(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(D(),_e(a,{key:0,ref:"tableHeaderRef",class:L(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):pe("v-if",!0),J(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(D(),_e(u,{key:1,class:L(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):pe("v-if",!0)],6),e.isEmpty?(D(),G("div",{key:0,ref:"emptyBlock",style:rt(e.emptyBlockStyle),class:L(e.ns.e("empty-block"))},[j("span",{class:L(e.ns.e("empty-text"))},[de(e.$slots,"empty",{},()=>[Tt(ze(e.computedEmptyText),1)])],2)],6)):pe("v-if",!0),e.$slots.append?(D(),G("div",{key:1,ref:"appendWrapper",class:L(e.ns.e("append-wrapper"))},[de(e.$slots,"append")],2)):pe("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&e.tableLayout==="fixed"?_t((D(),G("div",{key:1,ref:"footerWrapper",class:L(e.ns.e("footer-wrapper"))},[j("table",{class:L(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:rt(e.tableBodyStyles)},[J(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),J(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Vt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):pe("v-if",!0),e.border||e.isGroup?(D(),G("div",{key:2,class:L(e.ns.e("border-left-patch"))},null,2)):pe("v-if",!0)],2),_t(j("div",{ref:"resizeProxy",class:L(e.ns.e("column-resize-proxy"))},null,2),[[Vt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var zZ=Ve($Z,[["render",UZ],["__file","table.vue"]]);const VZ={selection:"table-column--selection",expand:"table__expand-column"},HZ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},WZ=e=>VZ[e]||"",GZ={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return ut(Or,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:o}){return ut(Or,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return st(o)?n=t+o:it(o)&&(n=o(t)),ut("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:o}){const{ns:r}=n,i=[r.e("expand-icon")];return!e.renderExpand&&o&&i.push(r.em("expand-icon","expanded")),ut("div",{class:i,onClick:function(a){a.stopPropagation(),n.toggleRowExpansion(t)}},{default:()=>e.renderExpand?[e.renderExpand({expanded:o})]:[ut(Je,null,{default:()=>[ut(ko)]})]})},sortable:!1,resizable:!1}};function KZ({row:e,column:t,$index:n}){var o;const r=t.property,i=r&&Nc(e,r).value;return t&&t.formatter?t.formatter(e,t,i,n):((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}function qZ({row:e,treeNode:t,store:n},o=!1){const{ns:r}=n;if(!t)return o?[ut("span",{class:r.e("placeholder")})]:null;const i=[],s=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(ut("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),Jt(t.expanded)&&!t.noLazyChildren){const a=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let l=ko;t.loading&&(l=Ei),i.push(ut("div",{class:a,onClick:s},{default:()=>[ut(Je,{class:{[r.is("loading")]:t.loading}},{default:()=>[ut(l)]})]}))}else i.push(ut("span",{class:r.e("placeholder")}));return i}function CS(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function jZ(e,t){const n=Pt();return{registerComplexWatchers:()=>{const i=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},a=CS(i,s);Object.keys(a).forEach(l=>{const u=s[l];zt(t,u)&&Te(()=>t[u],d=>{let f=d;u==="width"&&l==="realWidth"&&(f=c1(d)),u==="minWidth"&&l==="realMinWidth"&&(f=TA(d)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const p=u==="fixed";e.value.store.scheduleLayout(p)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=CS(i,s);Object.keys(a).forEach(l=>{const u=s[l];zt(t,u)&&Te(()=>t[u],d=>{n.columnConfig.value[l]=d})})}}}function YZ(e,t,n){const o=Pt(),r=F(""),i=F(!1),s=F(),a=F(),l=Pe("table");co(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),co(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:s.value,a.value});const u=A(()=>{let _=o.vnode.vParent||o.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),d=A(()=>{const{store:_}=o.parent;if(!_)return!1;const{treeData:w}=_.states,S=w.value;return S&&Object.keys(S).length>0}),f=F(c1(e.width)),p=F(TA(e.minWidth)),h=_=>(f.value&&(_.width=f.value),p.value&&(_.minWidth=p.value),!f.value&&p.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(Bt(_.width)?_.minWidth:_.width),_),m=_=>{const w=_.type,S=GZ[w]||{};Object.keys(S).forEach(T=>{const E=S[T];T!=="className"&&!Bt(E)&&(_[T]=E)});const M=WZ(w);if(M){const T=`${c(l.namespace)}-${M}`;_.className=_.className?`${_.className} ${T}`:T}return _},v=_=>{Oe(_)?_.forEach(S=>w(S)):w(_);function w(S){var M;((M=S==null?void 0:S.type)==null?void 0:M.name)==="ElTableColumn"&&(S.vParent=o)}};return{columnId:r,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:m,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=S=>(o.columnConfig.value.label,de(t,"header",S,()=>[_.label]))),t["filter-icon"]&&(_.renderFilterIcon=S=>de(t,"filter-icon",S)),t.expand&&(_.renderExpand=S=>de(t,"expand",S));let w=_.renderCell;return _.type==="expand"?(_.renderCell=S=>ut("div",{class:"cell"},[w(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(w=w||KZ,_.renderCell=S=>{let M=null;if(t.default){const B=t.default(S);M=B.some(H=>H.type!==Jn)?B:w(S)}else M=w(S);const{columns:T}=n.value.store.states,E=T.value.findIndex(B=>B.type==="default"),C=d.value&&S.cellIndex===E,k=qZ(S,C),R={class:"cell",style:{}};return _.showOverflowTooltip&&(R.class=`${R.class} ${c(l.namespace)}-tooltip`,R.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),v(M),ut("div",R,[k,M])}),_},getPropsData:(..._)=>_.reduce((w,S)=>(Oe(S)&&S.forEach(M=>{w[M]=e[M]}),w),{}),getColumnElIndex:(_,w)=>Array.prototype.indexOf.call(_,w),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",o.columnConfig.value)}}}var XZ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let ZZ=1;var VA=Q({name:"ElTableColumn",components:{ElCheckbox:Or},props:XZ,setup(e,{slots:t}){const n=Pt(),o=F({}),r=A(()=>{let y=n.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:i,registerComplexWatchers:s}=jZ(r,e),{columnId:a,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:p,setColumnRenders:h,getPropsData:m,getColumnElIndex:v,realAlign:b,updateColumnOrder:g}=YZ(e,t,r),x=d.value;a.value=`${x.tableId||x.columnId}_column_${ZZ++}`,Jp(()=>{l.value=r.value!==x;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,w=y==="selection"?!1:Bt(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,S=Bt(e.tooltipFormatter)?x.props.tooltipFormatter:e.tooltipFormatter,M={...HZ[y],id:a.value,type:y,property:e.prop||e.property,align:b,headerAlign:u,showOverflowTooltip:w,tooltipFormatter:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:n.vnode.key};let R=m(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);R=GX(M,R),R=qX(h,f,p)(R),o.value=R,i(),s()}),xt(()=>{var y;const _=d.value,w=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,S=()=>v(w||[],n.vnode.el);o.value.getColumnIndex=S,S()>-1&&r.value.store.commit("insertColumn",o.value,l.value?_.columnConfig.value:null,g)}),Qt(()=>{const y=o.value.getColumnIndex;(y?y():-1)>-1&&r.value.store.commit("removeColumn",o.value,l.value?x.columnConfig.value:null,g)}),n.columnId=a.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Oe(o))for(const s of o)((n=s.type)==null?void 0:n.name)==="ElTableColumn"||s.shapeFlag&2?r.push(s):s.type===tt&&Oe(s.children)&&s.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!et(a==null?void 0:a.children)&&r.push(a)});return ut("div",r)}catch{return ut("div",[])}}});const JZ=yt(zZ,{TableColumn:VA}),QZ=gn(VA);var vd=(e=>(e.ASC="asc",e.DESC="desc",e))(vd||{}),gd=(e=>(e.CENTER="center",e.RIGHT="right",e))(gd||{}),HA=(e=>(e.LEFT="left",e.RIGHT="right",e))(HA||{});const gg={asc:"desc",desc:"asc"},bd=Symbol("placeholder"),eJ=(e,t,n)=>{var o;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(r.flexShrink=1);const i={...(o=e.style)!=null?o:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function tJ(e,t,n){const o=A(()=>c(t).map((b,g)=>{var x,y;return{...b,key:(y=(x=b.key)!=null?x:b.dataKey)!=null?y:g}})),r=A(()=>c(o).filter(b=>!b.hidden)),i=A(()=>c(r).filter(b=>b.fixed==="left"||b.fixed===!0)),s=A(()=>c(r).filter(b=>b.fixed==="right")),a=A(()=>c(r).filter(b=>!b.fixed)),l=A(()=>{const b=[];return c(i).forEach(g=>{b.push({...g,placeholderSign:bd})}),c(a).forEach(g=>{b.push(g)}),c(s).forEach(g=>{b.push({...g,placeholderSign:bd})}),b}),u=A(()=>c(i).length||c(s).length),d=A(()=>c(o).reduce((b,g)=>(b[g.key]=eJ(g,c(n),e.fixed),b),{})),f=A(()=>c(r).reduce((b,g)=>b+g.width,0)),p=b=>c(o).find(g=>g.key===b),h=b=>c(d)[b],m=(b,g)=>{b.width=g};function v(b){var g;const{key:x}=b.currentTarget.dataset;if(!x)return;const{sortState:y,sortBy:_}=e;let w=vd.ASC;Ct(y)?w=gg[y[x]]:w=gg[_.order],(g=e.onColumnSort)==null||g.call(e,{column:p(x),key:x,order:w})}return{columns:o,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,hasFixedColumns:u,mainColumns:l,normalColumns:a,visibleColumns:r,getColumn:p,getColumnStyle:h,updateColumnWidth:m,onColumnSorted:v}}const nJ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:r})=>{const i=F({scrollLeft:0,scrollTop:0});function s(h){var m,v,b;const{scrollTop:g}=h;(m=t.value)==null||m.scrollTo(h),(v=n.value)==null||v.scrollToTop(g),(b=o.value)==null||b.scrollToTop(g)}function a(h){i.value=h,s(h)}function l(h){i.value.scrollTop=h,s(c(i))}function u(h){var m,v;i.value.scrollLeft=h,(v=(m=t.value)==null?void 0:m.scrollTo)==null||v.call(m,c(i))}function d(h){var m;a(h),(m=e.onScroll)==null||m.call(e,h)}function f({scrollTop:h}){const{scrollTop:m}=c(i);h!==m&&l(h)}function p(h,m="auto"){var v;(v=t.value)==null||v.scrollToRow(h,m)}return Te(()=>c(i).scrollTop,(h,m)=>{h>m&&r()}),{scrollPos:i,scrollTo:a,scrollToLeft:u,scrollToTop:l,scrollToRow:p,onScroll:d,onVerticalScroll:f}},oJ=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:r,ns:i,isScrolling:s})=>{const a=Pt(),{emit:l}=a,u=fn(!1),d=F(e.defaultExpandedRowKeys||[]),f=F(-1),p=fn(null),h=F({}),m=F({}),v=fn({}),b=fn({}),g=fn({}),x=A(()=>st(e.estimatedRowHeight));function y(C){var k;(k=e.onRowsRendered)==null||k.call(e,C),C.rowCacheEnd>c(f)&&(f.value=C.rowCacheEnd)}function _({hovered:C,rowKey:k}){if(s.value)return;r.vnode.el.querySelectorAll(`[rowkey="${String(k)}"]`).forEach(H=>{C?H.classList.add(i.is("hovered")):H.classList.remove(i.is("hovered"))})}function w({expanded:C,rowData:k,rowIndex:R,rowKey:B}){var H,N;const P=[...c(d)],U=P.indexOf(B);C?U===-1&&P.push(B):U>-1&&P.splice(U,1),d.value=P,l("update:expandedRowKeys",P),(H=e.onRowExpand)==null||H.call(e,{expanded:C,rowData:k,rowIndex:R,rowKey:B}),(N=e.onExpandedRowsChange)==null||N.call(e,P)}const S=tr(()=>{var C,k,R,B;u.value=!0,h.value={...c(h),...c(m)},M(c(p),!1),m.value={},p.value=null,(C=t.value)==null||C.forceUpdate(),(k=n.value)==null||k.forceUpdate(),(R=o.value)==null||R.forceUpdate(),(B=a.proxy)==null||B.$forceUpdate(),u.value=!1},0);function M(C,k=!1){c(x)&&[t,n,o].forEach(R=>{const B=c(R);B&&B.resetAfterRowIndex(C,k)})}function T(C,k,R){const B=c(p);(B===null||B>R)&&(p.value=R),m.value[C]=k}function E({rowKey:C,height:k,rowIndex:R},B){B?B===HA.RIGHT?g.value[C]=k:v.value[C]=k:b.value[C]=k;const H=Math.max(...[v,g,b].map(N=>N.value[C]||0));c(h)[C]!==H&&(T(C,H,R),S())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:x,isResetting:u,rowHeights:h,resetAfterIndex:M,onRowExpanded:w,onRowHovered:_,onRowsRendered:y,onRowHeightChange:E}},rJ=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:o})=>{const r=F({}),i=A(()=>{const a={},{data:l,rowKey:u}=e,d=c(t);if(!d||!d.length)return l;const f=[],p=new Set;d.forEach(m=>p.add(m));let h=l.slice();for(h.forEach(m=>a[m[u]]=0);h.length>0;){const m=h.shift();f.push(m),p.has(m[u])&&Oe(m.children)&&m.children.length>0&&(h=[...m.children,...h],m.children.forEach(v=>a[v[u]]=a[m[u]]+1))}return r.value=a,f}),s=A(()=>{const{data:a,expandColumnKey:l}=e;return l?c(i):a});return Te(s,(a,l)=>{a!==l&&(n.value=-1,o(0,!0))}),{data:s,depthMap:r}},iJ=(e,t)=>e+t,Nh=e=>Oe(e)?e.reduce(iJ,0):e,rl=(e,t,n={})=>it(e)?e(t):e??n,Gs=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Sn(e[t])}),e),WA=e=>ln(e)?t=>ut(e,t):e,sJ=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:o,fixedColumnsOnRight:r})=>{const i=A(()=>{const{fixed:g,width:x,vScrollbarSize:y}=e,_=x-y;return g?Math.max(Math.round(c(t)),_):_}),s=A(()=>{const{height:g=0,maxHeight:x=0,footerHeight:y,hScrollbarSize:_}=e;if(x>0){const w=c(p),S=c(n),T=c(f)+w+S+_;return Math.min(T,x-y)}return g-y}),a=A(()=>{const{maxHeight:g}=e,x=c(s);if(st(g)&&g>0)return x;const y=c(n)+c(f)+c(p);return Math.min(x,y)}),l=g=>g.width,u=A(()=>Nh(c(o).map(l))),d=A(()=>Nh(c(r).map(l))),f=A(()=>Nh(e.headerHeight)),p=A(()=>{var g;return(((g=e.fixedData)==null?void 0:g.length)||0)*e.rowHeight}),h=A(()=>c(s)-c(f)-c(p)),m=A(()=>{const{style:g={},height:x,width:y}=e;return Gs({...g,height:x,width:y})}),v=A(()=>Gs({height:e.footerHeight})),b=A(()=>({top:Sn(c(f)),bottom:Sn(e.footerHeight),width:Sn(e.width)}));return{bodyWidth:i,fixedTableHeight:a,mainTableHeight:s,leftTableWidth:u,rightTableWidth:d,windowHeight:h,footerHeight:v,emptyStyle:b,rootStyle:m,headerHeight:f}};function aJ(e){const t=F(),n=F(),o=F(),{columns:r,columnsStyles:i,columnsTotalWidth:s,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:d,onColumnSorted:f}=tJ(e,Kt(e,"columns"),Kt(e,"fixed")),{scrollTo:p,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:b,onVerticalScroll:g,scrollPos:x}=nJ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,onMaybeEndReached:ee}),y=Pe("table-v2"),_=Pt(),w=fn(!1),{expandedRowKeys:S,lastRenderedRowIndex:M,isDynamic:T,isResetting:E,rowHeights:C,resetAfterIndex:k,onRowExpanded:R,onRowHeightChange:B,onRowHovered:H,onRowsRendered:N}=oJ(e,{mainTableRef:t,leftTableRef:n,rightTableRef:o,tableInstance:_,ns:y,isScrolling:w}),{data:P,depthMap:U}=rJ(e,{expandedRowKeys:S,lastRenderedRowIndex:M,resetAfterIndex:k}),I=A(()=>{const{estimatedRowHeight:z,rowHeight:ve}=e,ce=c(P);return st(z)?Object.values(c(C)).reduce((me,ue)=>me+ue,0):ce.length*ve}),{bodyWidth:O,fixedTableHeight:q,mainTableHeight:K,leftTableWidth:oe,rightTableWidth:X,windowHeight:Y,footerHeight:ie,emptyStyle:ae,rootStyle:re,headerHeight:fe}=sJ(e,{columnsTotalWidth:s,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,rowsHeight:I}),be=F(),De=A(()=>{const z=c(P).length===0;return Oe(e.fixedData)?e.fixedData.length===0&&z:z});function Re(z){const{estimatedRowHeight:ve,rowHeight:ce,rowKey:me}=e;return ve?c(C)[c(P)[z][me]]||ve:ce}const V=F(!1);function ee(){const{onEndReached:z}=e;if(!z)return;const{scrollTop:ve}=c(x),ce=c(I),me=c(Y),ue=ce-(ve+me)+e.hScrollbarSize;!V.value&&c(M)>=0&&ce<=ve+c(K)-c(fe)?(V.value=!0,z(ue)):V.value=!1}return Te(()=>c(I),()=>V.value=!1),Te(()=>e.expandedRowKeys,z=>S.value=z,{deep:!0}),{columns:r,containerRef:be,mainTableRef:t,leftTableRef:n,rightTableRef:o,isDynamic:T,isResetting:E,isScrolling:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:s,data:P,expandedRowKeys:S,depthMap:U,fixedColumnsOnLeft:a,fixedColumnsOnRight:l,mainColumns:d,bodyWidth:O,emptyStyle:ae,rootStyle:re,footerHeight:ie,mainTableHeight:K,fixedTableHeight:q,leftTableWidth:oe,rightTableWidth:X,showEmpty:De,getRowHeight:Re,onColumnSorted:f,onRowHovered:H,onRowExpanded:R,onRowsRendered:N,onRowHeightChange:B,scrollTo:p,scrollToLeft:h,scrollToTop:m,scrollToRow:v,onScroll:b,onVerticalScroll:g}}const p1=Symbol("tableV2"),GA="tableV2GridScrollLeft",KA=String,Xd={type:le(Array),required:!0},m1={type:le(Array)},qA={...m1,required:!0},lJ=String,ES={type:le(Array),default:()=>_n([])},La={type:Number,required:!0},jA={type:le([String,Number,Symbol]),default:"id"},MS={type:le(Object)},za=Ue({class:String,columns:Xd,columnsStyles:{type:le(Object),required:!0},depth:Number,expandColumnKey:lJ,estimatedRowHeight:{...Za.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:le(Function)},onRowHover:{type:le(Function)},onRowHeightChange:{type:le(Function)},rowData:{type:le(Object),required:!0},rowEventHandlers:{type:le(Object)},rowIndex:{type:Number,required:!0},rowKey:jA,style:{type:le(Object)}}),gm={type:Number,required:!0},v1=Ue({class:String,columns:Xd,fixedHeaderData:{type:le(Array)},headerData:{type:le(Array),required:!0},headerHeight:{type:le([Number,Array]),default:50},rowWidth:gm,rowHeight:{type:Number,default:50},height:gm,width:gm}),Oh=Ue({columns:Xd,data:qA,fixedData:m1,estimatedRowHeight:za.estimatedRowHeight,width:La,height:La,headerWidth:La,headerHeight:v1.headerHeight,bodyWidth:La,rowHeight:La,cache:hA.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Za.scrollbarAlwaysOn,scrollbarStartGap:Za.scrollbarStartGap,scrollbarEndGap:Za.scrollbarEndGap,class:KA,style:MS,containerStyle:MS,getRowHeight:{type:le(Function),required:!0},rowKey:za.rowKey,onRowsRendered:{type:le(Function)},onScroll:{type:le(Function)}}),uJ=Ue({cache:Oh.cache,estimatedRowHeight:za.estimatedRowHeight,rowKey:jA,headerClass:{type:le([String,Function])},headerProps:{type:le([Object,Function])},headerCellProps:{type:le([Object,Function])},headerHeight:v1.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:le([String,Function])},rowProps:{type:le([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:le([Object,Function])},columns:Xd,data:qA,dataGetter:{type:le(Function)},fixedData:m1,expandColumnKey:za.expandColumnKey,expandedRowKeys:ES,defaultExpandedRowKeys:ES,class:KA,fixed:Boolean,style:{type:le(Object)},width:La,height:La,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Za.hScrollbarSize,vScrollbarSize:Za.vScrollbarSize,scrollbarAlwaysOn:vA.alwaysOn,sortBy:{type:le(Object),default:()=>({})},sortState:{type:le(Object),default:void 0},onColumnSort:{type:le(Function)},onExpandedRowsChange:{type:le(Function)},onEndReached:{type:le(Function)},onRowExpand:za.onRowExpand,onScroll:Oh.onScroll,onRowsRendered:Oh.onRowsRendered,rowEventHandlers:za.rowEventHandlers}),cJ="ElTableV2Header",dJ=Q({name:cJ,props:v1,setup(e,{slots:t,expose:n}){const o=Pe("table-v2"),r=je(GA),i=F(),s=A(()=>Gs({width:e.width,height:e.height})),a=A(()=>Gs({width:e.rowWidth,height:e.height})),l=A(()=>Eo(c(e.headerHeight))),u=p=>{const h=c(i);Qe(()=>{h!=null&&h.scroll&&h.scroll({left:p})})},d=()=>{const p=o.e("fixed-header-row"),{columns:h,fixedHeaderData:m,rowHeight:v}=e;return m==null?void 0:m.map((b,g)=>{var x;const y=Gs({height:v,width:"100%"});return(x=t.fixed)==null?void 0:x.call(t,{class:p,columns:h,rowData:b,rowIndex:-(g+1),style:y})})},f=()=>{const p=o.e("dynamic-header-row"),{columns:h}=e;return c(l).map((m,v)=>{var b;const g=Gs({width:"100%",height:m});return(b=t.dynamic)==null?void 0:b.call(t,{class:p,columns:h,headerIndex:v,style:g})})};return ei(()=>{r!=null&&r.value&&u(r.value)}),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return J("div",{ref:i,class:e.class,style:c(s),role:"rowgroup"},[J("div",{style:c(a),class:o.e("header")},[f(),d()])])}}});var fJ=dJ;const hJ=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:o},r)=>{let i=null,s=0,a=0;const l=(d,f)=>{const p=d<=0&&t.value||d>=0&&e.value,h=f<=0&&o.value||f>=0&&n.value;return p&&h};return{hasReachedEdge:l,onWheel:d=>{nl(i);let f=d.deltaX,p=d.deltaY;Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),!(l(s,a)&&l(s+f,a+p))&&(s+=f,a+=p,d.preventDefault(),i=ra(()=>{r(s,a),s=0,a=0}))}}},YA=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:o,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:s,getColumnOffset:a,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:h,validateProps:m})=>Q({name:e??"ElVirtualList",props:Za,emits:[gp,bp],setup(v,{emit:b,expose:g,slots:x}){const y=Pe("vl");m(v);const _=Pt(),w=F(p(v,_));h==null||h(_,w);const S=F(),M=F(),T=F(),E=F(null),C=F({isScrolling:!1,scrollLeft:st(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:st(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Kl,yAxisScrollDir:Kl}),k=cA(),R=A(()=>Number.parseInt(`${v.height}`,10)),B=A(()=>Number.parseInt(`${v.width}`,10)),H=A(()=>{const{totalColumn:me,totalRow:ue,columnCache:ge}=v,{isScrolling:xe,xAxisScrollDir:Ce,scrollLeft:Fe}=c(C);if(me===0||ue===0)return[0,0,0,0];const Z=o(v,Fe,c(w)),$=r(v,Z,Fe,c(w)),he=!xe||Ce===yp?Math.max(1,ge):1,Me=!xe||Ce===Kl?Math.max(1,ge):1;return[Math.max(0,Z-he),Math.max(0,Math.min(me-1,$+Me)),Z,$]}),N=A(()=>{const{totalColumn:me,totalRow:ue,rowCache:ge}=v,{isScrolling:xe,yAxisScrollDir:Ce,scrollTop:Fe}=c(C);if(me===0||ue===0)return[0,0,0,0];const Z=d(v,Fe,c(w)),$=f(v,Z,Fe,c(w)),he=!xe||Ce===yp?Math.max(1,ge):1,Me=!xe||Ce===Kl?Math.max(1,ge):1;return[Math.max(0,Z-he),Math.max(0,Math.min(ue-1,$+Me)),Z,$]}),P=A(()=>i(v,c(w))),U=A(()=>s(v,c(w))),I=A(()=>{var me;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:st(v.height)?`${v.height}px`:v.height,width:st(v.width)?`${v.width}px`:v.width},(me=v.style)!=null?me:{}]}),O=A(()=>{const me=`${c(U)}px`;return{height:`${c(P)}px`,pointerEvents:c(C).isScrolling?"none":void 0,width:me}}),q=()=>{const{totalColumn:me,totalRow:ue}=v;if(me>0&&ue>0){const[$,he,Me,Be]=c(H),[Ne,nt,qe,ht]=c(N);b(gp,{columnCacheStart:$,columnCacheEnd:he,rowCacheStart:Ne,rowCacheEnd:nt,columnVisibleStart:Me,columnVisibleEnd:Be,rowVisibleStart:qe,rowVisibleEnd:ht})}const{scrollLeft:ge,scrollTop:xe,updateRequested:Ce,xAxisScrollDir:Fe,yAxisScrollDir:Z}=c(C);b(bp,{xAxisScrollDir:Fe,scrollLeft:ge,yAxisScrollDir:Z,scrollTop:xe,updateRequested:Ce})},K=me=>{const{clientHeight:ue,clientWidth:ge,scrollHeight:xe,scrollLeft:Ce,scrollTop:Fe,scrollWidth:Z}=me.currentTarget,$=c(C);if($.scrollTop===Fe&&$.scrollLeft===Ce)return;let he=Ce;if(cS(v.direction))switch(xp()){case pd:he=-Ce;break;case u1:he=Z-ge-Ce;break}C.value={...$,isScrolling:!0,scrollLeft:he,scrollTop:Math.max(0,Math.min(Fe,xe-ue)),updateRequested:!0,xAxisScrollDir:Ua($.scrollLeft,he),yAxisScrollDir:Ua($.scrollTop,Fe)},Qe(()=>fe()),be(),q()},oe=(me,ue)=>{const ge=c(R),xe=(P.value-ge)/ue*me;ie({scrollTop:Math.min(P.value-ge,xe)})},X=(me,ue)=>{const ge=c(B),xe=(U.value-ge)/ue*me;ie({scrollLeft:Math.min(U.value-ge,xe)})},{onWheel:Y}=hJ({atXStartEdge:A(()=>C.value.scrollLeft<=0),atXEndEdge:A(()=>C.value.scrollLeft>=U.value-c(B)),atYStartEdge:A(()=>C.value.scrollTop<=0),atYEndEdge:A(()=>C.value.scrollTop>=P.value-c(R))},(me,ue)=>{var ge,xe,Ce,Fe;(xe=(ge=M.value)==null?void 0:ge.onMouseUp)==null||xe.call(ge),(Fe=(Ce=T.value)==null?void 0:Ce.onMouseUp)==null||Fe.call(Ce);const Z=c(B),$=c(R);ie({scrollLeft:Math.min(C.value.scrollLeft+me,U.value-Z),scrollTop:Math.min(C.value.scrollTop+ue,P.value-$)})});on(S,"wheel",Y,{passive:!1});const ie=({scrollLeft:me=C.value.scrollLeft,scrollTop:ue=C.value.scrollTop})=>{me=Math.max(me,0),ue=Math.max(ue,0);const ge=c(C);ue===ge.scrollTop&&me===ge.scrollLeft||(C.value={...ge,xAxisScrollDir:Ua(ge.scrollLeft,me),yAxisScrollDir:Ua(ge.scrollTop,ue),scrollLeft:me,scrollTop:ue,updateRequested:!0},Qe(()=>fe()),be(),q())},ae=(me=0,ue=0,ge=kr)=>{const xe=c(C);ue=Math.max(0,Math.min(ue,v.totalColumn-1)),me=Math.max(0,Math.min(me,v.totalRow-1));const Ce=QM(y.namespace.value),Fe=c(w),Z=i(v,Fe),$=s(v,Fe);ie({scrollLeft:a(v,ue,ge,xe.scrollLeft,Fe,$>v.width?Ce:0),scrollTop:l(v,me,ge,xe.scrollTop,Fe,Z>v.height?Ce:0)})},re=(me,ue)=>{const{columnWidth:ge,direction:xe,rowHeight:Ce}=v,Fe=k.value(t&&ge,t&&Ce,t&&xe),Z=`${me},${ue}`;if(zt(Fe,Z))return Fe[Z];{const[,$]=n(v,ue,c(w)),he=c(w),Me=cS(xe),[Be,Ne]=u(v,me,he),[nt]=n(v,ue,he);return Fe[Z]={position:"absolute",left:Me?void 0:`${$}px`,right:Me?`${$}px`:void 0,top:`${Ne}px`,height:`${Be}px`,width:`${nt}px`},Fe[Z]}},fe=()=>{C.value.isScrolling=!1,Qe(()=>{k.value(-1,null,null)})};xt(()=>{if(!Ft)return;const{initScrollLeft:me,initScrollTop:ue}=v,ge=c(S);ge&&(st(me)&&(ge.scrollLeft=me),st(ue)&&(ge.scrollTop=ue)),q()});const be=()=>{const{direction:me}=v,{scrollLeft:ue,scrollTop:ge,updateRequested:xe}=c(C),Ce=c(S);if(xe&&Ce){if(me===nu)switch(xp()){case pd:{Ce.scrollLeft=-ue;break}case l1:{Ce.scrollLeft=ue;break}default:{const{clientWidth:Fe,scrollWidth:Z}=Ce;Ce.scrollLeft=Z-Fe-ue;break}}else Ce.scrollLeft=Math.max(0,ue);Ce.scrollTop=Math.max(0,ge)}},{resetAfterColumnIndex:De,resetAfterRowIndex:Re,resetAfter:V}=_.proxy;g({windowRef:S,innerRef:E,getItemStyleCache:k,scrollTo:ie,scrollToItem:ae,states:C,resetAfterColumnIndex:De,resetAfterRowIndex:Re,resetAfter:V});const ee=()=>{const{scrollbarAlwaysOn:me,scrollbarStartGap:ue,scrollbarEndGap:ge,totalColumn:xe,totalRow:Ce}=v,Fe=c(B),Z=c(R),$=c(U),he=c(P),{scrollLeft:Me,scrollTop:Be}=c(C),Ne=ut(sg,{ref:M,alwaysOn:me,startGap:ue,endGap:ge,class:y.e("horizontal"),clientSize:Fe,layout:"horizontal",onScroll:X,ratio:Fe*100/$,scrollFrom:Me/($-Fe),total:Ce,visible:!0}),nt=ut(sg,{ref:T,alwaysOn:me,startGap:ue,endGap:ge,class:y.e("vertical"),clientSize:Z,layout:"vertical",onScroll:oe,ratio:Z*100/he,scrollFrom:Be/(he-Z),total:xe,visible:!0});return{horizontalScrollbar:Ne,verticalScrollbar:nt}},z=()=>{var me;const[ue,ge]=c(H),[xe,Ce]=c(N),{data:Fe,totalColumn:Z,totalRow:$,useIsScrolling:he,itemKey:Me}=v,Be=[];if($>0&&Z>0)for(let Ne=xe;Ne<=Ce;Ne++)for(let nt=ue;nt<=ge;nt++){const qe=Me({columnIndex:nt,data:Fe,rowIndex:Ne});Be.push(ut(tt,{key:qe},(me=x.default)==null?void 0:me.call(x,{columnIndex:nt,data:Fe,isScrolling:he?c(C).isScrolling:void 0,style:re(Ne,nt),rowIndex:Ne})))}return Be},ve=()=>{const me=Rt(v.innerElement),ue=z();return[ut(me,{style:c(O),ref:E},et(me)?ue:{default:()=>ue})]};return()=>{const me=Rt(v.containerElement),{horizontalScrollbar:ue,verticalScrollbar:ge}=ee(),xe=ve();return ut("div",{key:0,class:y.e("wrapper"),role:v.role},[ut(me,{class:v.className,style:c(I),onScroll:K,ref:S},et(me)?xe:{default:()=>xe}),ue,ge])}}}),{max:Cp,min:XA,floor:ZA}=Math,pJ={column:"columnWidth",row:"rowHeight"},bg={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Yi=(e,t,n,o)=>{const[r,i,s]=[n[o],e[pJ[o]],n[bg[o]]];if(t>s){let a=0;if(s>=0){const l=r[s];a=l.offset+l.size}for(let l=s+1;l<=t;l++){const u=i(l);r[l]={offset:a,size:u},a+=u}n[bg[o]]=t}return r[t]},JA=(e,t,n,o,r,i)=>{for(;n<=o;){const s=n+ZA((o-n)/2),a=Yi(e,s,t,i).offset;if(a===r)return s;a{const i=r==="column"?e.totalColumn:e.totalRow;let s=1;for(;n{const[r,i]=[t[o],t[bg[o]]];return(i>0?r[i].offset:0)>=n?JA(e,t,0,i,n,o):mJ(e,t,Cp(0,i),n,o)},QA=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:o})=>{let r=0;if(n>=e&&(n=e-1),n>=0){const a=o[n];r=a.offset+a.size}const s=(e-n-1)*t;return r+s},ek=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:o})=>{let r=0;if(o>e&&(o=e-1),o>=0){const a=t[o];r=a.offset+a.size}const s=(e-o-1)*n;return r+s},vJ={column:ek,row:QA},AS=(e,t,n,o,r,i,s)=>{const[a,l]=[i==="row"?e.height:e.width,vJ[i]],u=Yi(e,t,r,i),d=l(e,r),f=Cp(0,XA(d-a,u.offset)),p=Cp(0,u.offset-a+s+u.size);switch(n===C0&&(o>=p-a&&o<=f+a?n=kr:n=vi),n){case fd:return f;case hd:return p;case vi:return Math.round(p+(f-p)/2);case kr:default:return o>=p&&o<=f?o:p>f||o{const o=Yi(e,t,n,"column");return[o.size,o.offset]},getRowPosition:(e,t,n)=>{const o=Yi(e,t,n,"row");return[o.size,o.offset]},getColumnOffset:(e,t,n,o,r,i)=>AS(e,t,n,o,r,"column",i),getRowOffset:(e,t,n,o,r,i)=>AS(e,t,n,o,r,"row",i),getColumnStartIndexForOffset:(e,t,n)=>TS(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,o)=>{const r=Yi(e,t,o,"column"),i=n+e.width;let s=r.offset+r.size,a=t;for(;aTS(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,o)=>{const{totalRow:r,height:i}=e,s=Yi(e,t,o,"row"),a=n+i;let l=s.size+s.offset,u=t;for(;u{const n=({columnIndex:i,rowIndex:s},a)=>{var l,u;a=Bt(a)?!0:a,st(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),st(s)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,s-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),a&&((u=e.proxy)==null||u.$forceUpdate())},o=(i,s)=>{n({columnIndex:i},s)},r=(i,s)=>{n({rowIndex:i},s)};Object.assign(e.proxy,{resetAfterColumnIndex:o,resetAfterRowIndex:r,resetAfter:n})},initCache:({estimatedColumnWidth:e=eg,estimatedRowHeight:t=eg})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),bJ=YA({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},o,r,i,s,a)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,o*t),d=Math.max(0,o*t-n+a+t);switch(r==="smart"&&(i>=d-n&&i<=u+n?r=kr:r=vi),r){case fd:return u;case hd:return d;case vi:{const f=Math.round(d+(u-d)/2);return fl+Math.floor(n/2)?l:f}case kr:default:return i>=d&&i<=u?i:d>u||i{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,o*e),d=Math.max(0,o*e-t+a+e);switch(r===C0&&(i>=d-t&&i<=u+t?r=kr:r=vi),r){case fd:return u;case hd:return d;case vi:{const f=Math.round(d+(u-d)/2);return fl+Math.floor(t/2)?l:f}case kr:default:return i>=d&&i<=u?i:d>u||iMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},o,r)=>{const i=o*e,s=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,o+s-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},o,r)=>{const i=o*e,s=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,o+s-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),yJ="ElTableV2Grid",_J=e=>{const t=F(),n=F(),o=F(0),r=A(()=>{const{data:b,rowHeight:g,estimatedRowHeight:x}=e;if(!x)return b.length*g}),i=A(()=>{const{fixedData:b,rowHeight:g}=e;return((b==null?void 0:b.length)||0)*g}),s=A(()=>Nh(e.headerHeight)),a=A(()=>{const{height:b}=e;return Math.max(0,b-c(s)-c(i))}),l=A(()=>c(s)+c(i)>0),u=({data:b,rowIndex:g})=>b[g][e.rowKey];function d({rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:y}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:b,rowCacheEnd:g,rowVisibleStart:x,rowVisibleEnd:y})}function f(b,g){var x;(x=n.value)==null||x.resetAfterRowIndex(b,g)}function p(b,g){const x=c(t),y=c(n);Ct(b)?(x==null||x.scrollToLeft(b.scrollLeft),o.value=b.scrollLeft,y==null||y.scrollTo(b)):(x==null||x.scrollToLeft(b),o.value=b,y==null||y.scrollTo({scrollLeft:b,scrollTop:g}))}function h(b){var g;(g=c(n))==null||g.scrollTo({scrollTop:b})}function m(b,g){var x;(x=c(n))==null||x.scrollToItem(b,1,g)}function v(){var b,g;(b=c(n))==null||b.$forceUpdate(),(g=c(t))==null||g.$forceUpdate()}return Te(()=>e.bodyWidth,()=>{var b;st(e.estimatedRowHeight)&&((b=n.value)==null||b.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:i,gridHeight:a,hasHeader:l,headerHeight:s,headerRef:t,totalHeight:r,itemKey:u,onItemRendered:d,resetAfterRowIndex:f,scrollTo:p,scrollToTop:h,scrollToRow:m,scrollLeft:o}},xJ=Q({name:yJ,props:Oh,setup(e,{slots:t,expose:n}){const{ns:o}=je(p1),{bodyRef:r,fixedRowHeight:i,gridHeight:s,hasHeader:a,headerRef:l,headerHeight:u,totalHeight:d,forceUpdate:f,itemKey:p,onItemRendered:h,resetAfterRowIndex:m,scrollTo:v,scrollToTop:b,scrollToRow:g,scrollLeft:x}=_J(e);Lt(GA,x),Xp(async()=>{var _;await Qe();const w=(_=r.value)==null?void 0:_.states.scrollTop;w&&b(Math.round(w)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:b,scrollToRow:g,resetAfterRowIndex:m});const y=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:S,fixedData:M,useIsScrolling:T,scrollbarAlwaysOn:E,scrollbarEndGap:C,scrollbarStartGap:k,style:R,rowHeight:B,bodyWidth:H,estimatedRowHeight:N,headerWidth:P,height:U,width:I,getRowHeight:O,onScroll:q}=e,K=st(N),oe=K?gJ:bJ,X=c(u);return J("div",{role:"table",class:[o.e("table"),e.class],style:R},[J(oe,{ref:r,data:S,useIsScrolling:T,itemKey:p,columnCache:0,columnWidth:K?y:H,totalColumn:1,totalRow:S.length,rowCache:_,rowHeight:K?O:B,width:I,height:c(s),class:o.e("body"),role:"rowgroup",scrollbarStartGap:k,scrollbarEndGap:C,scrollbarAlwaysOn:E,onScroll:q,onItemRendered:h,perfMode:!1},{default:Y=>{var ie;const ae=S[Y.rowIndex];return(ie=t.row)==null?void 0:ie.call(t,{...Y,columns:w,rowData:ae})}}),c(a)&&J(fJ,{ref:l,class:o.e("header-wrapper"),columns:w,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:M,rowWidth:P,rowHeight:B,width:I,height:Math.min(X+c(i),U)},{dynamic:t.header,fixed:t.row})])}}});var g1=xJ;function SJ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const wJ=(e,{slots:t})=>{const{mainTableRef:n,...o}=e;return J(g1,Dt({ref:n},o),SJ(t)?t:{default:()=>[t]})};var CJ=wJ;function EJ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const MJ=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...o}=e;return J(g1,Dt({ref:n},o),EJ(t)?t:{default:()=>[t]})};var TJ=MJ;function AJ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const kJ=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...o}=e;return J(g1,Dt({ref:n},o),AJ(t)?t:{default:()=>[t]})};var RJ=kJ;const PJ=e=>{const{isScrolling:t}=je(p1),n=F(!1),o=F(),r=A(()=>st(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=c(o);if(!u)return;const{columns:d,onRowHeightChange:f,rowKey:p,rowIndex:h,style:m}=e,{height:v}=u.getBoundingClientRect();n.value=!0,Qe(()=>{if(l||v!==Number.parseInt(m.height)){const b=d[0],g=(b==null?void 0:b.placeholderSign)===bd;f==null||f({rowKey:p,height:v,rowIndex:h},b&&!g&&b.fixed)}})},s=A(()=>{const{rowData:l,rowIndex:u,rowKey:d,onRowHover:f}=e,p=e.rowEventHandlers||{},h={};return Object.entries(p).forEach(([m,v])=>{it(v)&&(h[m]=b=>{v({event:b,rowData:l,rowIndex:u,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:m,hovered:v})=>{const b=h[m];h[m]=g=>{f({event:g,hovered:v,rowData:l,rowIndex:u,rowKey:d}),b==null||b(g)}}),h}),a=l=>{const{onRowExpand:u,rowData:d,rowIndex:f,rowKey:p}=e;u==null||u({expanded:l,rowData:d,rowIndex:f,rowKey:p})};return xt(()=>{c(r)&&i(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:o,eventHandlers:s,onExpand:a}},DJ="ElTableV2TableRow",IJ=Q({name:DJ,props:za,setup(e,{expose:t,slots:n,attrs:o}){const{eventHandlers:r,isScrolling:i,measurable:s,measured:a,rowRef:l,onExpand:u}=PJ(e);return t({onExpand:u}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:p,depth:h,rowData:m,rowIndex:v,style:b}=e;let g=d.map((x,y)=>{const _=Oe(m.children)&&m.children.length>0&&x.key===p;return n.cell({column:x,columns:d,columnIndex:y,depth:h,style:f[x.key],rowData:m,rowIndex:v,isScrolling:c(i),expandIconProps:_?{rowData:m,rowIndex:v,onExpand:u}:void 0})});if(n.row&&(g=n.row({cells:g.map(x=>Oe(x)&&x.length===1?x[0]:x),style:b,columns:d,depth:h,rowData:m,rowIndex:v,isScrolling:c(i)})),c(s)){const{height:x,...y}=b||{},_=c(a);return J("div",Dt({ref:l,class:e.class,style:_?b:y,role:"row"},o,c(r)),[g])}return J("div",Dt(o,{ref:l,class:e.class,style:b,role:"row"},c(r)),[g])}}});var LJ=IJ;function NJ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const OJ=(e,{slots:t})=>{const{columns:n,columnsStyles:o,depthMap:r,expandColumnKey:i,expandedRowKeys:s,estimatedRowHeight:a,hasFixedColumns:l,rowData:u,rowIndex:d,style:f,isScrolling:p,rowProps:h,rowClass:m,rowKey:v,rowEventHandlers:b,ns:g,onRowHovered:x,onRowExpanded:y}=e,_=rl(m,{columns:n,rowData:u,rowIndex:d},""),w=rl(h,{columns:n,rowData:u,rowIndex:d}),S=u[v],M=r[S]||0,T=!!i,E=d<0,C=[g.e("row"),_,{[g.e(`row-depth-${M}`)]:T&&d>=0,[g.is("expanded")]:T&&s.includes(S),[g.is("fixed")]:!M&&E,[g.is("customized")]:!!t.row}],k=l?x:void 0,R={...w,columns:n,columnsStyles:o,class:C,depth:M,expandColumnKey:i,estimatedRowHeight:E?void 0:a,isScrolling:p,rowIndex:d,rowData:u,rowKey:S,rowEventHandlers:b,style:f};return J(LJ,Dt(R,{onRowExpand:y,onMouseenter:N=>{k==null||k({hovered:!0,rowKey:S,event:N,rowData:u,rowIndex:d})},onMouseleave:N=>{k==null||k({hovered:!1,rowKey:S,event:N,rowData:u,rowIndex:d})},rowkey:S}),NJ(t)?t:{default:()=>[t]})};var FJ=OJ;const b1=(e,{slots:t})=>{var n;const{cellData:o,style:r}=e,i=((n=o==null?void 0:o.toString)==null?void 0:n.call(o))||"",s=de(t,"default",e,()=>[i]);return J("div",{class:e.class,title:i,style:r},[s])};b1.displayName="ElTableV2Cell";b1.inheritAttrs=!1;var BJ=b1;const $J=e=>{const{expanded:t,expandable:n,onExpand:o,style:r,size:i}=e,s={onClick:n?()=>o(!t):void 0,class:e.class};return J(Je,Dt(s,{size:i,style:r}),{default:()=>[J(ko,null,null)]})};var UJ=$J;const tk=({columns:e,column:t,columnIndex:n,depth:o,expandIconProps:r,isScrolling:i,rowData:s,rowIndex:a,style:l,expandedRowKeys:u,ns:d,cellProps:f,expandColumnKey:p,indentSize:h,iconSize:m,rowKey:v},{slots:b})=>{const g=Gs(l);if(t.placeholderSign===bd)return J("div",{class:d.em("row-cell","placeholder"),style:g},null);const{cellRenderer:x,dataKey:y,dataGetter:_}=t,w=it(_)?_({columns:e,column:t,columnIndex:n,rowData:s,rowIndex:a}):Dn(s,y??""),S=rl(f,{cellData:w,columns:e,column:t,columnIndex:n,rowIndex:a,rowData:s}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:w,isScrolling:i,rowData:s,rowIndex:a},T=WA(x),E=T?T(M):de(b,"default",M,()=>[J(BJ,M,null)]),C=[d.e("row-cell"),t.class,t.align===gd.CENTER&&d.is("align-center"),t.align===gd.RIGHT&&d.is("align-right")],k=a>=0&&p&&t.key===p,R=a>=0&&u.includes(s[v]);let B;const H=`margin-inline-start: ${o*h}px;`;return k&&(Ct(r)?B=J(UJ,Dt(r,{class:[d.e("expand-icon"),d.is("expanded",R)],size:m,expanded:R,style:H,expandable:!0}),null):B=J("div",{style:[H,`width: ${m}px; height: ${m}px;`].join(" ")},null)),J("div",Dt({class:C,style:g},S,{role:"cell"}),[B,E])};tk.inheritAttrs=!1;var kS=tk;const zJ=Ue({class:String,columns:Xd,columnsStyles:{type:le(Object),required:!0},headerIndex:Number,style:{type:le(Object)}}),VJ=Q({name:"ElTableV2HeaderRow",props:zJ,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:o,headerIndex:r,style:i}=e;let s=n.map((a,l)=>t.cell({columns:n,column:a,columnIndex:l,headerIndex:r,style:o[a.key]}));return t.header&&(s=t.header({cells:s.map(a=>Oe(a)&&a.length===1?a[0]:a),columns:n,headerIndex:r})),J("div",{class:e.class,style:i,role:"row"},[s])}}});var HJ=VJ;function WJ(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const GJ=({columns:e,columnsStyles:t,headerIndex:n,style:o,headerClass:r,headerProps:i,ns:s},{slots:a})=>{const l={columns:e,headerIndex:n},u=[s.e("header-row"),rl(r,l,""),{[s.is("customized")]:!!a.header}],d={...rl(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:o};return J(HJ,d,WJ(a)?a:{default:()=>[a]})};var KJ=GJ;const y1=(e,{slots:t})=>de(t,"default",e,()=>{var n,o;return[J("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(o=e.column)==null?void 0:o.title])]});y1.displayName="ElTableV2HeaderCell";y1.inheritAttrs=!1;var qJ=y1;const jJ=e=>{const{sortOrder:t}=e;return J(Je,{size:14,class:e.class},{default:()=>[t===vd.ASC?J(h5,null,null):J(d5,null,null)]})};var YJ=jJ;const XJ=(e,{slots:t})=>{const{column:n,ns:o,style:r,onColumnSorted:i}=e,s=Gs(r);if(n.placeholderSign===bd)return J("div",{class:o.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:a,headerClass:l,sortable:u}=n,d={...e,class:o.e("header-cell-text")},f=WA(a),p=f?f(d):de(t,"default",d,()=>[J(qJ,d,null)]),{sortBy:h,sortState:m,headerCellProps:v}=e;let b,g;if(m){const _=m[n.key];b=!!gg[_],g=b?_:vd.ASC}else b=n.key===h.key,g=b?h.order:vd.ASC;const x=[o.e("header-cell"),rl(l,e,""),n.align===gd.CENTER&&o.is("align-center"),n.align===gd.RIGHT&&o.is("align-right"),u&&o.is("sortable")],y={...rl(v,e),onClick:n.sortable?i:void 0,class:x,style:s,"data-key":n.key};return J("div",Dt(y,{role:"columnheader"}),[p,u&&J(YJ,{class:[o.e("sort-icon"),b&&o.is("sorting")],sortOrder:g},null)])};var RS=XJ;const nk=(e,{slots:t})=>{var n;return J("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};nk.displayName="ElTableV2Footer";var ZJ=nk;const ok=(e,{slots:t})=>{const n=de(t,"default",{},()=>[J(YT,null,null)]);return J("div",{class:e.class,style:e.style},[n])};ok.displayName="ElTableV2Empty";var JJ=ok;const rk=(e,{slots:t})=>{var n;return J("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};rk.displayName="ElTableV2Overlay";var QJ=rk;function dc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ln(e)}const eQ="ElTableV2",tQ=Q({name:eQ,props:uJ,setup(e,{slots:t,expose:n}){const o=Pe("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:a,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:d,rightTableWidth:f,data:p,depthMap:h,expandedRowKeys:m,hasFixedColumns:v,mainTableRef:b,leftTableRef:g,rightTableRef:x,isDynamic:y,isResetting:_,isScrolling:w,bodyWidth:S,emptyStyle:M,rootStyle:T,footerHeight:E,showEmpty:C,scrollTo:k,scrollToLeft:R,scrollToTop:B,scrollToRow:H,getRowHeight:N,onColumnSorted:P,onRowHeightChange:U,onRowHovered:I,onRowExpanded:O,onRowsRendered:q,onScroll:K,onVerticalScroll:oe}=aJ(e);return n({scrollTo:k,scrollToLeft:R,scrollToTop:B,scrollToRow:H}),Lt(p1,{ns:o,isResetting:_,isScrolling:w}),()=>{const{cache:X,cellProps:Y,estimatedRowHeight:ie,expandColumnKey:ae,fixedData:re,headerHeight:fe,headerClass:be,headerProps:De,headerCellProps:Re,sortBy:V,sortState:ee,rowHeight:z,rowClass:ve,rowEventHandlers:ce,rowKey:me,rowProps:ue,scrollbarAlwaysOn:ge,indentSize:xe,iconSize:Ce,useIsScrolling:Fe,vScrollbarSize:Z,width:$}=e,he=c(p),Me={cache:X,class:o.e("main"),columns:c(a),data:he,fixedData:re,estimatedRowHeight:ie,bodyWidth:c(S),headerHeight:fe,headerWidth:c(S),height:c(l),mainTableRef:b,rowKey:me,rowHeight:z,scrollbarAlwaysOn:ge,scrollbarStartGap:2,scrollbarEndGap:Z,useIsScrolling:Fe,width:$,getRowHeight:N,onRowsRendered:q,onScroll:K},Be=c(d),Ne=c(u),nt={cache:X,class:o.e("left"),columns:c(i),data:he,fixedData:re,estimatedRowHeight:ie,leftTableRef:g,rowHeight:z,bodyWidth:Be,headerWidth:Be,headerHeight:fe,height:Ne,rowKey:me,scrollbarAlwaysOn:ge,scrollbarStartGap:2,scrollbarEndGap:Z,useIsScrolling:Fe,width:Be,getRowHeight:N,onScroll:oe},qe=c(f),ht={cache:X,class:o.e("right"),columns:c(s),data:he,fixedData:re,estimatedRowHeight:ie,rightTableRef:x,rowHeight:z,bodyWidth:qe,headerWidth:qe,headerHeight:fe,height:Ne,rowKey:me,scrollbarAlwaysOn:ge,scrollbarStartGap:2,scrollbarEndGap:Z,width:qe,style:`--${c(o.namespace)}-table-scrollbar-size: ${Z}px`,useIsScrolling:Fe,getRowHeight:N,onScroll:oe},He=c(r),$e={ns:o,depthMap:c(h),columnsStyles:He,expandColumnKey:ae,expandedRowKeys:c(m),estimatedRowHeight:ie,hasFixedColumns:c(v),rowProps:ue,rowClass:ve,rowKey:me,rowEventHandlers:ce,onRowHovered:I,onRowExpanded:O,onRowHeightChange:U},ne={cellProps:Y,expandColumnKey:ae,indentSize:xe,iconSize:Ce,rowKey:me,expandedRowKeys:c(m),ns:o},we={ns:o,headerClass:be,headerProps:De,columnsStyles:He},te={ns:o,sortBy:V,sortState:ee,headerCellProps:Re,onColumnSorted:P},Ee={row:ot=>J(FJ,Dt(ot,$e),{row:t.row,cell:Ze=>{let ft;return t.cell?J(kS,Dt(Ze,ne,{style:He[Ze.column.key]}),dc(ft=t.cell(Ze))?ft:{default:()=>[ft]}):J(kS,Dt(Ze,ne,{style:He[Ze.column.key]}),null)}}),header:ot=>J(KJ,Dt(ot,we),{header:t.header,cell:Ze=>{let ft;return t["header-cell"]?J(RS,Dt(Ze,te,{style:He[Ze.column.key]}),dc(ft=t["header-cell"](Ze))?ft:{default:()=>[ft]}):J(RS,Dt(Ze,te,{style:He[Ze.column.key]}),null)}})},Ye=[e.class,o.b(),o.e("root"),{[o.is("dynamic")]:c(y)}],Se={class:o.e("footer"),style:c(E)};return J("div",{class:Ye,style:c(T)},[J(CJ,Me,dc(Ee)?Ee:{default:()=>[Ee]}),J(TJ,nt,dc(Ee)?Ee:{default:()=>[Ee]}),J(RJ,ht,dc(Ee)?Ee:{default:()=>[Ee]}),t.footer&&J(ZJ,Se,{default:t.footer}),c(C)&&J(JJ,{class:o.e("empty"),style:c(M)},{default:t.empty}),t.overlay&&J(QJ,{class:o.e("overlay")},{default:t.overlay})])}}});var nQ=tQ;const oQ=Ue({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:le(Function)}}),rQ=e=>{const t=F(),n=F(0),o=F(0);let r;return xt(()=>{r=vn(t,([i])=>{const{width:s,height:a}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:d,paddingBottom:f}=getComputedStyle(i.target),p=Number.parseInt(l)||0,h=Number.parseInt(u)||0,m=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=s-p-h,o.value=a-m-v}).stop}),Qt(()=>{r==null||r()}),Te([n,o],([i,s])=>{var a;(a=e.onResize)==null||a.call(e,{width:i,height:s})}),{sizer:t,width:n,height:o}},iQ=Q({name:"ElAutoResizer",props:oQ,setup(e,{slots:t}){const n=Pe("auto-resizer"),{height:o,width:r,sizer:i}=rQ(e),s={width:"100%",height:"100%"};return()=>{var a;return J("div",{ref:i,class:n.b(),style:s},[(a=t.default)==null?void 0:a.call(t,{height:o.value,width:r.value})])}}});var sQ=iQ;const aQ=yt(nQ),lQ=yt(sQ),E0=Symbol("tabsRootContextKey"),uQ=Ue({tabs:{type:le(Array),default:()=>_n([])}}),ik="ElTabBar",cQ=Q({name:ik}),dQ=Q({...cQ,props:uQ,setup(e,{expose:t}){const n=e,o=Pt(),r=je(E0);r||Ln(ik,"");const i=Pe("tabs"),s=F(),a=F(),l=()=>{let h=0,m=0;const v=["top","bottom"].includes(r.props.tabPosition)?"width":"height",b=v==="width"?"x":"y",g=b==="x"?"left":"top";return n.tabs.every(x=>{var y,_;const w=(_=(y=o.parent)==null?void 0:y.refs)==null?void 0:_[`tab-${x.uid}`];if(!w)return!1;if(!x.active)return!0;h=w[`offset${hi(g)}`],m=w[`client${hi(v)}`];const S=window.getComputedStyle(w);return v==="width"&&(m-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight),h+=Number.parseFloat(S.paddingLeft)),!1}),{[v]:`${m}px`,transform:`translate${hi(b)}(${h}px)`}},u=()=>a.value=l(),d=[],f=()=>{var h;d.forEach(v=>v.stop()),d.length=0;const m=(h=o.parent)==null?void 0:h.refs;if(m){for(const v in m)if(v.startsWith("tab-")){const b=m[v];b&&d.push(vn(b,u))}}};Te(()=>n.tabs,async()=>{await Qe(),u(),f()},{immediate:!0});const p=vn(s,()=>u());return Qt(()=>{d.forEach(h=>h.stop()),d.length=0,p.stop()}),t({ref:s,update:u}),(h,m)=>(D(),G("div",{ref_key:"barRef",ref:s,class:L([c(i).e("active-bar"),c(i).is(c(r).props.tabPosition)]),style:rt(a.value)},null,6))}});var fQ=Ve(dQ,[["__file","tab-bar.vue"]]);const hQ=Ue({panes:{type:le(Array),default:()=>_n([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),pQ={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},PS="ElTabNav",mQ=Q({name:PS,props:hQ,emits:pQ,setup(e,{expose:t,emit:n}){const o=je(E0);o||Ln(PS,"");const r=Pe("tabs"),i=R8(),s=H8(),a=F(),l=F(),u=F(),d=F(),f=F(!1),p=F(0),h=F(!1),m=F(!0),v=A(()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height"),b=A(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${p.value}px)`})),g=()=>{if(!a.value)return;const T=a.value[`offset${hi(v.value)}`],E=p.value;if(!E)return;const C=E>T?E-T:0;p.value=C},x=()=>{if(!a.value||!l.value)return;const T=l.value[`offset${hi(v.value)}`],E=a.value[`offset${hi(v.value)}`],C=p.value;if(T-C<=E)return;const k=T-C>E*2?C+E:T-E;p.value=k},y=async()=>{const T=l.value;if(!f.value||!u.value||!a.value||!T)return;await Qe();const E=u.value.querySelector(".is-active");if(!E)return;const C=a.value,k=["top","bottom"].includes(o.props.tabPosition),R=E.getBoundingClientRect(),B=C.getBoundingClientRect(),H=k?T.offsetWidth-B.width:T.offsetHeight-B.height,N=p.value;let P=N;k?(R.leftB.right&&(P=N+R.right-B.right)):(R.topB.bottom&&(P=N+(R.bottom-B.bottom))),P=Math.max(P,0),p.value=Math.min(P,H)},_=()=>{var T;if(!l.value||!a.value)return;e.stretch&&((T=d.value)==null||T.update());const E=l.value[`offset${hi(v.value)}`],C=a.value[`offset${hi(v.value)}`],k=p.value;C0&&(p.value=0))},w=T=>{let E=0;switch(T.code){case Ke.left:case Ke.up:E=-1;break;case Ke.right:case Ke.down:E=1;break;default:return}const C=Array.from(T.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let R=C.indexOf(T.target)+E;R<0?R=C.length-1:R>=C.length&&(R=0),C[R].focus({preventScroll:!0}),C[R].click(),S()},S=()=>{m.value&&(h.value=!0)},M=()=>h.value=!1;return Te(i,T=>{T==="hidden"?m.value=!1:T==="visible"&&setTimeout(()=>m.value=!0,50)}),Te(s,T=>{T?setTimeout(()=>m.value=!0,50):m.value=!1}),vn(u,_),xt(()=>setTimeout(()=>y(),0)),ei(()=>_()),t({scrollToActiveTab:y,removeFocus:M,tabListRef:l,tabBarRef:d}),()=>{const T=f.value?[J("span",{class:[r.e("nav-prev"),r.is("disabled",!f.value.prev)],onClick:g},[J(Je,null,{default:()=>[J(as,null,null)]})]),J("span",{class:[r.e("nav-next"),r.is("disabled",!f.value.next)],onClick:x},[J(Je,null,{default:()=>[J(ko,null,null)]})])]:null,E=e.panes.map((C,k)=>{var R,B,H,N;const P=C.uid,U=C.props.disabled,I=(B=(R=C.props.name)!=null?R:C.index)!=null?B:`${k}`,O=!U&&(C.isClosable||e.editable);C.index=`${k}`;const q=O?J(Je,{class:"is-icon-close",onClick:X=>n("tabRemove",C,X)},{default:()=>[J(Ir,null,null)]}):null,K=((N=(H=C.slots).label)==null?void 0:N.call(H))||C.props.label,oe=!U&&C.active?0:-1;return J("div",{ref:`tab-${P}`,class:[r.e("item"),r.is(o.props.tabPosition),r.is("active",C.active),r.is("disabled",U),r.is("closable",O),r.is("focus",h.value)],id:`tab-${I}`,key:`tab-${P}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":C.active,tabindex:oe,onFocus:()=>S(),onBlur:()=>M(),onClick:X=>{M(),n("tabClick",C,I,X)},onKeydown:X=>{O&&(X.code===Ke.delete||X.code===Ke.backspace)&&n("tabRemove",C,X)}},[K,q])});return J("div",{ref:u,class:[r.e("nav-wrap"),r.is("scrollable",!!f.value),r.is(o.props.tabPosition)]},[T,J("div",{class:r.e("nav-scroll"),ref:a},[J("div",{class:[r.e("nav"),r.is(o.props.tabPosition),r.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:l,style:b.value,role:"tablist",onKeydown:w},[e.type?null:J(fQ,{ref:d,tabs:[...e.panes]},null),E])])])}}}),vQ=Ue({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:le(Function),default:()=>!0},stretch:Boolean}),bm=e=>et(e)||st(e),gQ={[vt]:e=>bm(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>bm(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>bm(e),tabAdd:()=>!0},bQ=Q({name:"ElTabs",props:vQ,emits:gQ,setup(e,{emit:t,slots:n,expose:o}){var r;const i=Pe("tabs"),s=A(()=>["left","right"].includes(e.tabPosition)),{children:a,addChild:l,removeChild:u}=b0(Pt(),"ElTabPane"),d=F(),f=F((r=e.modelValue)!=null?r:"0"),p=async(g,x=!1)=>{var y,_;if(!(f.value===g||Bt(g)))try{let w;if(e.beforeLeave){const S=e.beforeLeave(g,f.value);w=S instanceof Promise?await S:S}else w=!0;w!==!1&&(f.value=g,x&&(t(vt,g),t("tabChange",g)),(_=(y=d.value)==null?void 0:y.removeFocus)==null||_.call(y))}catch{}},h=(g,x,y)=>{g.props.disabled||(t("tabClick",g,y),p(x,!0))},m=(g,x)=>{g.props.disabled||Bt(g.props.name)||(x.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")};Te(()=>e.modelValue,g=>p(g)),Te(f,async()=>{var g;await Qe(),(g=d.value)==null||g.scrollToActiveTab()}),Lt(E0,{props:e,currentName:f,registerPane:g=>{a.value.push(g)},sortPane:l,unregisterPane:u}),o({currentName:f,tabNavRef:d});const b=({render:g})=>g();return()=>{const g=n["add-icon"],x=e.editable||e.addable?J("div",{class:[i.e("new-tab"),s.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:v,onKeydown:w=>{[Ke.enter,Ke.numpadEnter].includes(w.code)&&v()}},[g?de(n,"add-icon"):J(Je,{class:i.is("icon-plus")},{default:()=>[J(s3,null,null)]})]):null,y=J("div",{class:[i.e("header"),s.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[J(b,{render:()=>{const w=a.value.some(S=>S.slots.label);return J(mQ,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:a.value,stretch:e.stretch,onTabClick:h,onTabRemove:m},{$stable:!w})}},null),x]),_=J("div",{class:i.e("content")},[de(n,"default")]);return J("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[_,y])}}});var yQ=bQ;const _Q=Ue({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),sk="ElTabPane",xQ=Q({name:sk}),SQ=Q({...xQ,props:_Q,setup(e){const t=e,n=Pt(),o=Wn(),r=je(E0);r||Ln(sk,"usage: ");const i=Pe("tab-pane"),s=F(),a=A(()=>t.closable||r.props.closable),l=rp(()=>{var h;return r.currentName.value===((h=t.name)!=null?h:s.value)}),u=F(l.value),d=A(()=>{var h;return(h=t.name)!=null?h:s.value}),f=rp(()=>!t.lazy||u.value||l.value);Te(l,h=>{h&&(u.value=!0)});const p=Gt({uid:n.uid,slots:o,props:t,paneName:d,active:l,index:s,isClosable:a});return r.registerPane(p),xt(()=>{r.sortPane(p)}),fs(()=>{r.unregisterPane(p.uid)}),(h,m)=>c(f)?_t((D(),G("div",{key:0,id:`pane-${c(d)}`,class:L(c(i).b()),role:"tabpanel","aria-hidden":!c(l),"aria-labelledby":`tab-${c(d)}`},[de(h.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Vt,c(l)]]):pe("v-if",!0)}});var ak=Ve(SQ,[["__file","tab-pane.vue"]]);const wQ=yt(yQ,{TabPane:ak}),CQ=gn(ak),EQ=Ue({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Pi,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),MQ=Q({name:"ElText"}),TQ=Q({...MQ,props:EQ,setup(e){const t=e,n=F(),o=Fn(),r=Pe("text"),i=A(()=>[r.b(),r.m(t.type),r.m(o.value),r.is("truncated",t.truncated),r.is("line-clamp",!Bt(t.lineClamp))]),s=()=>{var a,l,u,d,f,p,h;if(hs().title)return;let v=!1;const b=((a=n.value)==null?void 0:a.textContent)||"";if(t.truncated){const g=(l=n.value)==null?void 0:l.offsetWidth,x=(u=n.value)==null?void 0:u.scrollWidth;g&&x&&x>g&&(v=!0)}else if(!Bt(t.lineClamp)){const g=(d=n.value)==null?void 0:d.offsetHeight,x=(f=n.value)==null?void 0:f.scrollHeight;g&&x&&x>g&&(v=!0)}v?(p=n.value)==null||p.setAttribute("title",b):(h=n.value)==null||h.removeAttribute("title")};return xt(s),ei(s),(a,l)=>(D(),_e(Rt(a.tag),{ref_key:"textRef",ref:n,class:L(c(i)),style:rt({"-webkit-line-clamp":a.lineClamp})},{default:se(()=>[de(a.$slots,"default")]),_:3},8,["class","style"]))}});var AQ=Ve(TQ,[["__file","text.vue"]]);const _1=yt(AQ),kQ=Ue({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:le(String),default:"light"},clearable:{type:Boolean,default:!0},size:Vn,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:le([String,Object]),default:()=>i3},clearIcon:{type:le([String,Object]),default:()=>gs},...ju}),Zi=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&n===12?n=0:r.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},ym=(e,t)=>{const n=Zi(e);if(!n)return-1;const o=Zi(t);if(!o)return-1;const r=n.minutes+n.hours*60,i=o.minutes+o.hours*60;return r===i?0:r>i?1:-1},DS=e=>`${e}`.padStart(2,"0"),Vl=e=>`${DS(e.hours)}:${DS(e.minutes)}`,RQ=(e,t)=>{const n=Zi(e);if(!n)return"";const o=Zi(t);if(!o)return"";const r={hours:n.hours,minutes:n.minutes};return r.minutes+=o.minutes,r.hours+=o.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,Vl(r)},PQ=Q({name:"ElTimeSelect"}),DQ=Q({...PQ,props:kQ,emits:[It,"blur","focus","clear",vt],setup(e,{expose:t}){const n=e;gt.extend(Uy);const{Option:o}=ol,r=Pe("input"),i=F(),s=po(),{lang:a}=$t(),l=A(()=>n.modelValue),u=A(()=>{const g=Zi(n.start);return g?Vl(g):null}),d=A(()=>{const g=Zi(n.end);return g?Vl(g):null}),f=A(()=>{const g=Zi(n.step);return g?Vl(g):null}),p=A(()=>{const g=Zi(n.minTime||"");return g?Vl(g):null}),h=A(()=>{const g=Zi(n.maxTime||"");return g?Vl(g):null}),m=A(()=>{var g;const x=[],y=(_,w)=>{x.push({value:_,disabled:ym(w,p.value||"-1:-1")<=0||ym(w,h.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let _=u.value,w;for(;_&&d.value&&ym(_,d.value)<=0;)w=gt(_,"HH:mm").locale(a.value).format(n.format),y(w,_),_=RQ(_,f.value);if(n.includeEndTime&&d.value&&((g=x[x.length-1])==null?void 0:g.value)!==d.value){const S=gt(d.value,"HH:mm").locale(a.value).format(n.format);y(S,d.value)}}return x});return t({blur:()=>{var g,x;(x=(g=i.value)==null?void 0:g.blur)==null||x.call(g)},focus:()=>{var g,x;(x=(g=i.value)==null?void 0:g.focus)==null||x.call(g)}}),(g,x)=>(D(),_e(c(ol),{ref_key:"select",ref:i,"model-value":c(l),disabled:c(s),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"empty-values":g.emptyValues,"value-on-clear":g.valueOnClear,"onUpdate:modelValue":y=>g.$emit(c(vt),y),onChange:y=>g.$emit(c(It),y),onBlur:y=>g.$emit("blur",y),onFocus:y=>g.$emit("focus",y),onClear:()=>g.$emit("clear")},{prefix:se(()=>[g.prefixIcon?(D(),_e(c(Je),{key:0,class:L(c(r).e("prefix-icon"))},{default:se(()=>[(D(),_e(Rt(g.prefixIcon)))]),_:1},8,["class"])):pe("v-if",!0)]),default:se(()=>[(D(!0),G(tt,null,Nt(c(m),y=>(D(),_e(c(o),{key:y.value,label:y.value,value:y.value,disabled:y.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var IQ=Ve(DQ,[["__file","time-select.vue"]]);const LQ=yt(IQ),NQ="timeline",OQ=Q({name:"ElTimeline",setup(e,{slots:t}){const n=Pe("timeline");return Lt(NQ,t),()=>ut("ul",{class:[n.b()]},[de(t,"default")])}}),FQ=Ue({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:tn},hollow:Boolean}),BQ=Q({name:"ElTimelineItem"}),$Q=Q({...BQ,props:FQ,setup(e){const t=e,n=Pe("timeline-item"),o=A(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(r,i)=>(D(),G("li",{class:L([c(n).b(),{[c(n).e("center")]:r.center}])},[j("div",{class:L(c(n).e("tail"))},null,2),r.$slots.dot?pe("v-if",!0):(D(),G("div",{key:0,class:L(c(o)),style:rt({backgroundColor:r.color})},[r.icon?(D(),_e(c(Je),{key:0,class:L(c(n).e("icon"))},{default:se(()=>[(D(),_e(Rt(r.icon)))]),_:1},8,["class"])):pe("v-if",!0)],6)),r.$slots.dot?(D(),G("div",{key:1,class:L(c(n).e("dot"))},[de(r.$slots,"dot")],2)):pe("v-if",!0),j("div",{class:L(c(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(D(),G("div",{key:0,class:L([c(n).e("timestamp"),c(n).is("top")])},ze(r.timestamp),3)):pe("v-if",!0),j("div",{class:L(c(n).e("content"))},[de(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(D(),G("div",{key:1,class:L([c(n).e("timestamp"),c(n).is("bottom")])},ze(r.timestamp),3)):pe("v-if",!0)],2)],2))}});var lk=Ve($Q,[["__file","timeline-item.vue"]]);const UQ=yt(OQ,{TimelineItem:lk}),zQ=gn(lk),uk=Ue({nowrap:Boolean});var ck=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(ck||{});const VQ=Object.values(ck),x1=Ue({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:le(Object),default:null}}),HQ=Ue({side:{type:le(String),values:VQ,required:!0}}),WQ=["absolute","fixed"],GQ=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],S1=Ue({arrowPadding:{type:le(Number),default:5},effect:{type:le(String),default:"light"},contentClass:String,placement:{type:le(String),values:GQ,default:"bottom"},reference:{type:le(Object),default:null},offset:{type:Number,default:8},strategy:{type:le(String),values:WQ,default:"absolute"},showArrow:Boolean,...ho(["ariaLabel"])}),w1=Ue({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:le(Function)},"onUpdate:open":{type:le(Function)}}),wl={type:le(Function)},C1=Ue({onBlur:wl,onClick:wl,onFocus:wl,onMouseDown:wl,onMouseEnter:wl,onMouseLeave:wl}),KQ=Ue({...w1,...x1,...C1,...S1,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:le(Object),default:null},teleported:Boolean,to:{type:le([String,Object]),default:"body"}}),M0=Symbol("tooltipV2"),dk=Symbol("tooltipV2Content"),_m="tooltip_v2.open",qQ=Q({name:"ElTooltipV2Root"}),jQ=Q({...qQ,props:w1,setup(e,{expose:t}){const n=e,o=F(n.defaultOpen),r=F(null),i=A({get:()=>jo(n.open)?o.value:n.open,set:b=>{var g;o.value=b,(g=n["onUpdate:open"])==null||g.call(n,b)}}),s=A(()=>st(n.delayDuration)&&n.delayDuration>0),{start:a,stop:l}=tl(()=>{i.value=!0},A(()=>n.delayDuration),{immediate:!1}),u=Pe("tooltip-v2"),d=fo(),f=()=>{l(),i.value=!0},p=()=>{c(s)?a():f()},h=f,m=()=>{l(),i.value=!1};return Te(i,b=>{var g;b&&(document.dispatchEvent(new CustomEvent(_m)),h()),(g=n.onOpenChange)==null||g.call(n,b)}),xt(()=>{document.addEventListener(_m,m)}),Qt(()=>{l(),document.removeEventListener(_m,m)}),Lt(M0,{contentId:d,triggerRef:r,ns:u,onClose:m,onDelayOpen:p,onOpen:h}),t({onOpen:h,onClose:m}),(b,g)=>de(b.$slots,"default",{open:c(i)})}});var YQ=Ve(jQ,[["__file","root.vue"]]);const XQ=Q({name:"ElTooltipV2Arrow"}),ZQ=Q({...XQ,props:{...x1,...HQ},setup(e){const t=e,{ns:n}=je(M0),{arrowRef:o}=je(dk),r=A(()=>{const{style:i,width:s,height:a}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${s}px`,[`--${l}-tooltip-v2-arrow-height`]:`${a}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${s/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:s/2-1,...i||{}}});return(i,s)=>(D(),G("span",{ref_key:"arrowRef",ref:o,style:rt(c(r)),class:L(c(n).e("arrow"))},null,6))}});var IS=Ve(ZQ,[["__file","arrow.vue"]]);const ku=Math.min,Ja=Math.max,Ep=Math.round,Rf=Math.floor,xi=e=>({x:e,y:e}),JQ={left:"right",right:"left",bottom:"top",top:"bottom"},QQ={start:"end",end:"start"};function yg(e,t,n){return Ja(e,ku(t,n))}function Zd(e,t){return typeof e=="function"?e(t):e}function il(e){return e.split("-")[0]}function Jd(e){return e.split("-")[1]}function fk(e){return e==="x"?"y":"x"}function E1(e){return e==="y"?"height":"width"}function Ks(e){return["top","bottom"].includes(il(e))?"y":"x"}function M1(e){return fk(Ks(e))}function eee(e,t,n){n===void 0&&(n=!1);const o=Jd(e),r=M1(e),i=E1(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Mp(s)),[s,Mp(s)]}function tee(e){const t=Mp(e);return[_g(e),t,_g(t)]}function _g(e){return e.replace(/start|end/g,t=>QQ[t])}function nee(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function oee(e,t,n,o){const r=Jd(e);let i=nee(il(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(_g)))),i}function Mp(e){return e.replace(/left|right|bottom|top/g,t=>JQ[t])}function ree(e){return{top:0,right:0,bottom:0,left:0,...e}}function hk(e){return typeof e!="number"?ree(e):{top:e,right:e,bottom:e,left:e}}function Tp(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function LS(e,t,n){let{reference:o,floating:r}=e;const i=Ks(t),s=M1(t),a=E1(s),l=il(t),u=i==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(Jd(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const iee=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=LS(u,o,l),p=o,h={},m=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=Zd(e,t)||{};if(u==null)return{};const f=hk(d),p={x:n,y:o},h=M1(r),m=E1(h),v=await s.getDimensions(u),b=h==="y",g=b?"top":"left",x=b?"bottom":"right",y=b?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[h]-p[h]-i.floating[m],w=p[h]-i.reference[h],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=S?S[y]:0;(!M||!await(s.isElement==null?void 0:s.isElement(S)))&&(M=a.floating[y]||i.floating[m]);const T=_/2-w/2,E=M/2-v[m]/2-1,C=ku(f[g],E),k=ku(f[x],E),R=C,B=M-v[m]-k,H=M/2-v[m]/2+T,N=yg(R,H,B),P=!l.arrow&&Jd(r)!=null&&H!==N&&i.reference[m]/2-(HH<=0)){var k,R;const H=(((k=i.flip)==null?void 0:k.index)||0)+1,N=M[H];if(N&&(!(f==="alignment"?x!==Ks(N):!1)||C.every(I=>I.overflows[0]>0&&Ks(I.placement)===x)))return{data:{index:H,overflows:C},reset:{placement:N}};let P=(R=C.filter(U=>U.overflows[0]<=0).sort((U,I)=>U.overflows[1]-I.overflows[1])[0])==null?void 0:R.placement;if(!P)switch(h){case"bestFit":{var B;const U=(B=C.filter(I=>{if(S){const O=Ks(I.placement);return O===x||O==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,q)=>O+q,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:B[0];U&&(P=U);break}case"initialPlacement":P=a;break}if(r!==P)return{reset:{placement:P}}}return{}}}};async function lee(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=il(n),a=Jd(n),l=Ks(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,f=Zd(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const uee=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await lee(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},cee=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:g,y:x}=b;return{x:g,y:x}}},...l}=Zd(e,t),u={x:n,y:o},d=await T1(t,l),f=Ks(il(r)),p=fk(f);let h=u[p],m=u[f];if(i){const b=p==="y"?"top":"left",g=p==="y"?"bottom":"right",x=h+d[b],y=h-d[g];h=yg(x,h,y)}if(s){const b=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=m+d[b],y=m-d[g];m=yg(x,m,y)}const v=a.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[p]:i,[f]:s}}}}}};function T0(){return typeof window<"u"}function Qu(e){return pk(e)?(e.nodeName||"").toLowerCase():"#document"}function pr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(pk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pk(e){return T0()?e instanceof Node||e instanceof pr(e).Node:!1}function Jr(e){return T0()?e instanceof Element||e instanceof pr(e).Element:!1}function Ai(e){return T0()?e instanceof HTMLElement||e instanceof pr(e).HTMLElement:!1}function NS(e){return!T0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pr(e).ShadowRoot}function Qd(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function dee(e){return["table","td","th"].includes(Qu(e))}function A0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function A1(e){const t=k1(),n=Jr(e)?Qr(e):e;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function fee(e){let t=la(e);for(;Ai(t)&&!Ru(t);){if(A1(t))return t;if(A0(t))return null;t=la(t)}return null}function k1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ru(e){return["html","body","#document"].includes(Qu(e))}function Qr(e){return pr(e).getComputedStyle(e)}function k0(e){return Jr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function la(e){if(Qu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||NS(e)&&e.host||Li(e);return NS(t)?t.host:t}function mk(e){const t=la(e);return Ru(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ai(t)&&Qd(t)?t:mk(t)}function yd(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=mk(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=pr(r);if(i){const a=xg(s);return t.concat(s,s.visualViewport||[],Qd(r)?r:[],a&&n?yd(a):[])}return t.concat(r,yd(r,[],n))}function xg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vk(e){const t=Qr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ai(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Ep(n)!==i||Ep(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function R1(e){return Jr(e)?e:e.contextElement}function ru(e){const t=R1(e);if(!Ai(t))return xi(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=vk(t);let s=(i?Ep(n.width):n.width)/o,a=(i?Ep(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const hee=xi(0);function gk(e){const t=pr(e);return!k1()||!t.visualViewport?hee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pee(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pr(e)?!1:t}function sl(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=R1(e);let s=xi(1);t&&(o?Jr(o)&&(s=ru(o)):s=ru(e));const a=pee(i,n,o)?gk(i):xi(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,d=r.width/s.x,f=r.height/s.y;if(i){const p=pr(i),h=o&&Jr(o)?pr(o):o;let m=p,v=xg(m);for(;v&&o&&h!==m;){const b=ru(v),g=v.getBoundingClientRect(),x=Qr(v),y=g.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,_=g.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,f*=b.y,l+=y,u+=_,m=pr(v),v=xg(m)}}return Tp({width:d,height:f,x:l,y:u})}function P1(e,t){const n=k0(e).scrollLeft;return t?t.left+n:sl(Li(e)).left+n}function bk(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:P1(e,o)),i=o.top+t.scrollTop;return{x:r,y:i}}function mee(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=Li(o),a=t?A0(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=xi(1);const d=xi(0),f=Ai(o);if((f||!f&&!i)&&((Qu(o)!=="body"||Qd(s))&&(l=k0(o)),Ai(o))){const h=sl(o);u=ru(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const p=s&&!f&&!i?bk(s,l,!0):xi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function vee(e){return Array.from(e.getClientRects())}function gee(e){const t=Li(e),n=k0(e),o=e.ownerDocument.body,r=Ja(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Ja(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+P1(e);const a=-n.scrollTop;return Qr(o).direction==="rtl"&&(s+=Ja(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function bee(e,t){const n=pr(e),o=Li(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const u=k1();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}function yee(e,t){const n=sl(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ai(e)?ru(e):xi(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:s,height:a,x:l,y:u}}function OS(e,t,n){let o;if(t==="viewport")o=bee(e,n);else if(t==="document")o=gee(Li(e));else if(Jr(t))o=yee(t,n);else{const r=gk(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Tp(o)}function yk(e,t){const n=la(e);return n===t||!Jr(n)||Ru(n)?!1:Qr(n).position==="fixed"||yk(n,t)}function _ee(e,t){const n=t.get(e);if(n)return n;let o=yd(e,[],!1).filter(a=>Jr(a)&&Qu(a)!=="body"),r=null;const i=Qr(e).position==="fixed";let s=i?la(e):e;for(;Jr(s)&&!Ru(s);){const a=Qr(s),l=A1(s);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Qd(s)&&!l&&yk(e,s))?o=o.filter(d=>d!==s):r=a,s=la(s)}return t.set(e,o),o}function xee(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?A0(t)?[]:_ee(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((u,d)=>{const f=OS(t,d,r);return u.top=Ja(f.top,u.top),u.right=ku(f.right,u.right),u.bottom=ku(f.bottom,u.bottom),u.left=Ja(f.left,u.left),u},OS(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function See(e){const{width:t,height:n}=vk(e);return{width:t,height:n}}function wee(e,t,n){const o=Ai(t),r=Li(t),i=n==="fixed",s=sl(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=xi(0);function u(){l.x=P1(r)}if(o||!o&&!i)if((Qu(t)!=="body"||Qd(r))&&(a=k0(t)),o){const h=sl(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&u();i&&!o&&r&&u();const d=r&&!o&&!i?bk(r,a):xi(0),f=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:f,y:p,width:s.width,height:s.height}}function xm(e){return Qr(e).position==="static"}function FS(e,t){if(!Ai(e)||Qr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Li(e)===n&&(n=n.ownerDocument.body),n}function _k(e,t){const n=pr(e);if(A0(e))return n;if(!Ai(e)){let r=la(e);for(;r&&!Ru(r);){if(Jr(r)&&!xm(r))return r;r=la(r)}return n}let o=FS(e,t);for(;o&&dee(o)&&xm(o);)o=FS(o,t);return o&&Ru(o)&&xm(o)&&!A1(o)?n:o||fee(e)||n}const Cee=async function(e){const t=this.getOffsetParent||_k,n=this.getDimensions,o=await n(e.floating);return{reference:wee(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Eee(e){return Qr(e).direction==="rtl"}const Mee={convertOffsetParentRelativeRectToViewportRelativeRect:mee,getDocumentElement:Li,getClippingRect:xee,getOffsetParent:_k,getElementRects:Cee,getClientRects:vee,getDimensions:See,getScale:ru,isElement:Jr,isRTL:Eee};function xk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tee(e,t){let n=null,o;const r=Li(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Rf(f),v=Rf(r.clientWidth-(d+p)),b=Rf(r.clientHeight-(f+h)),g=Rf(d),y={rootMargin:-m+"px "+-v+"px "+-b+"px "+-g+"px",threshold:Ja(0,ku(1,l))||1};let _=!0;function w(S){const M=S[0].intersectionRatio;if(M!==l){if(!_)return s();M?s(!1,M):o=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!xk(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(w,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return s(!0),i}function Aee(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=R1(e),d=r||i?[...u?yd(u):[],...yd(t)]:[];d.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&a?Tee(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(g=>{let[x]=g;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,v=l?sl(e):null;l&&b();function b(){const g=sl(e);v&&!xk(v,g)&&n(),v=g,m=requestAnimationFrame(b)}return n(),()=>{var g;d.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const kee=T1,Sk=uee,Ree=cee,Pee=aee,wk=see,Ck=(e,t,n)=>{const o=new Map,r={platform:Mee,...n},i={...r.platform,_c:o};return iee(e,t,{...r,platform:i})},Dee=Ue({style:{type:le([String,Object,Array]),default:()=>({})}}),Iee=Q({name:"ElVisuallyHidden"}),Lee=Q({...Iee,props:Dee,setup(e){const t=e,n=A(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(o,r)=>(D(),G("span",Dt(o.$attrs,{style:c(n)}),[de(o.$slots,"default")],16))}});var Nee=Ve(Lee,[["__file","visual-hidden.vue"]]);Ue({});const Oee=e=>{if(!Ft)return;if(!e)return e;const t=lo(e);return t||(hn(e)?t:e)},Fee=({middleware:e,placement:t,strategy:n})=>{const o=F(),r=F(),i=F(),s=F(),a=F({}),l={x:i,y:s,placement:t,strategy:n,middlewareData:a},u=async()=>{if(!Ft)return;const d=Oee(o),f=lo(r);if(!d||!f)return;const p=await Ck(d,f,{placement:c(t),strategy:c(n),middleware:c(e)});gu(l).forEach(h=>{l[h].value=p[h]})};return xt(()=>{co(()=>{u()})}),{...l,update:u,referenceRef:o,contentRef:r}},Bee=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=c(e);return o?wk({element:o,padding:t}).fn(n):{}}}),$ee=Q({name:"ElTooltipV2Content"}),Uee=Q({...$ee,props:{...S1,...uk},setup(e){const t=e,{triggerRef:n,contentId:o}=je(M0),r=F(t.placement),i=F(t.strategy),s=F(null),{referenceRef:a,contentRef:l,middlewareData:u,x:d,y:f,update:p}=Fee({placement:r,strategy:i,middleware:A(()=>{const y=[Sk(t.offset)];return t.showArrow&&y.push(Bee({arrowRef:s})),y})}),h=qu().nextZIndex(),m=Pe("tooltip-v2"),v=A(()=>r.value.split("-")[0]),b=A(()=>({position:c(i),top:`${c(f)||0}px`,left:`${c(d)||0}px`,zIndex:h})),g=A(()=>{if(!t.showArrow)return{};const{arrow:y}=c(u);return{[`--${m.namespace.value}-tooltip-v2-arrow-x`]:`${y==null?void 0:y.x}px`||"",[`--${m.namespace.value}-tooltip-v2-arrow-y`]:`${y==null?void 0:y.y}px`||""}}),x=A(()=>[m.e("content"),m.is("dark",t.effect==="dark"),m.is(c(i)),t.contentClass]);return Te(s,()=>p()),Te(()=>t.placement,y=>r.value=y),xt(()=>{Te(()=>t.reference||n.value,y=>{a.value=y||void 0},{immediate:!0})}),Lt(dk,{arrowRef:s}),(y,_)=>(D(),G("div",{ref_key:"contentRef",ref:l,style:rt(c(b)),"data-tooltip-v2-root":""},[y.nowrap?pe("v-if",!0):(D(),G("div",{key:0,"data-side":c(v),class:L(c(x))},[de(y.$slots,"default",{contentStyle:c(b),contentClass:c(x)}),J(c(Nee),{id:c(o),role:"tooltip"},{default:se(()=>[y.ariaLabel?(D(),G(tt,{key:0},[Tt(ze(y.ariaLabel),1)],64)):de(y.$slots,"default",{key:1})]),_:3},8,["id"]),de(y.$slots,"arrow",{style:rt(c(g)),side:c(v)})],10,["data-side"]))],4))}});var BS=Ve(Uee,[["__file","content.vue"]]);const zee=Ue({setRef:{type:le(Function),required:!0},onlyChild:Boolean});var Vee=Q({props:zee,setup(e,{slots:t}){const n=F(),o=x0(n,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[i]=((r=t.default)==null?void 0:r.call(t))||[],s=e.onlyChild?Zz(i.children):i.children;return J(tt,{ref:o},[s])}}});const Hee=Q({name:"ElTooltipV2Trigger"}),Wee=Q({...Hee,props:{...uk,...C1},setup(e){const t=e,{onClose:n,onOpen:o,onDelayOpen:r,triggerRef:i,contentId:s}=je(M0);let a=!1;const l=x=>{i.value=x},u=()=>{a=!1},d=Cn(t.onMouseEnter,r),f=Cn(t.onMouseLeave,n),p=Cn(t.onMouseDown,()=>{n(),a=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Cn(t.onFocus,()=>{a||o()}),m=Cn(t.onBlur,n),v=Cn(t.onClick,x=>{x.detail===0&&n()}),b={blur:m,click:v,focus:h,mousedown:p,mouseenter:d,mouseleave:f},g=(x,y,_)=>{x&&Object.entries(y).forEach(([w,S])=>{x[_](w,S)})};return Te(i,(x,y)=>{g(x,b,"addEventListener"),g(y,b,"removeEventListener"),x&&x.setAttribute("aria-describedby",s.value)}),Qt(()=>{g(i.value,b,"removeEventListener"),document.removeEventListener("mouseup",u)}),(x,y)=>x.nowrap?(D(),_e(c(Vee),{key:0,"set-ref":l,"only-child":""},{default:se(()=>[de(x.$slots,"default")]),_:3})):(D(),G("button",Dt({key:1,ref_key:"triggerRef",ref:i},x.$attrs),[de(x.$slots,"default")],16))}});var Gee=Ve(Wee,[["__file","trigger.vue"]]);const Kee=Q({name:"ElTooltipV2"}),qee=Q({...Kee,props:KQ,setup(e){const n=jn(e),o=Gt(qr(n,Object.keys(x1))),r=Gt(qr(n,Object.keys(S1))),i=Gt(qr(n,Object.keys(w1))),s=Gt(qr(n,Object.keys(C1)));return(a,l)=>(D(),_e(YQ,cr(wi(i)),{default:se(({open:u})=>[J(Gee,Dt(s,{nowrap:""}),{default:se(()=>[de(a.$slots,"trigger")]),_:3},16),J(c(Xu),{to:a.to,disabled:!a.teleported},{default:se(()=>[a.fullTransition?(D(),_e(Hn,cr(Dt({key:0},a.transitionProps)),{default:se(()=>[a.alwaysOn||u?(D(),_e(BS,cr(Dt({key:0},r)),{arrow:se(({style:d,side:f})=>[a.showArrow?(D(),_e(IS,Dt({key:0},o,{style:d,side:f}),null,16,["style","side"])):pe("v-if",!0)]),default:se(()=>[de(a.$slots,"default")]),_:3},16)):pe("v-if",!0)]),_:2},1040)):(D(),G(tt,{key:1},[a.alwaysOn||u?(D(),_e(BS,cr(Dt({key:0},r)),{arrow:se(({style:d,side:f})=>[a.showArrow?(D(),_e(IS,Dt({key:0},o,{style:d,side:f}),null,16,["style","side"])):pe("v-if",!0)]),default:se(()=>[de(a.$slots,"default")]),_:3},16)):pe("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var jee=Ve(qee,[["__file","tooltip.vue"]]);const Yee=yt(jee),Ek="left-check-change",Mk="right-check-change",Hl=Ue({data:{type:le(Array),default:()=>[]},titles:{type:le(Array),default:()=>[]},buttonTexts:{type:le(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:le(Function)},leftDefaultChecked:{type:le(Array),default:()=>[]},rightDefaultChecked:{type:le(Array),default:()=>[]},renderContent:{type:le(Function)},modelValue:{type:le(Array),default:()=>[]},format:{type:le(Object),default:()=>({})},filterable:Boolean,props:{type:le(Object),default:()=>_n({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Sg=(e,t)=>[e,t].every(Oe)||Oe(e)&&qn(t),Xee={[It]:(e,t,n)=>[e,n].every(Oe)&&["left","right"].includes(t),[vt]:e=>Oe(e),[Ek]:Sg,[Mk]:Sg},wg="checked-change",Zee=Ue({data:Hl.data,optionRender:{type:le(Function)},placeholder:String,title:String,filterable:Boolean,format:Hl.format,filterMethod:Hl.filterMethod,defaultChecked:Hl.leftDefaultChecked,props:Hl.props}),Jee={[wg]:Sg},ef=e=>{const t={label:"label",key:"key",disabled:"disabled"};return A(()=>({...t,...e.props}))},Qee=(e,t,n)=>{const o=ef(e),r=A(()=>e.data.filter(d=>it(e.filterMethod)?e.filterMethod(t.query,d):String(d[o.value.label]||d[o.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=A(()=>r.value.filter(d=>!d[o.value.disabled])),s=A(()=>{const d=t.checked.length,f=e.data.length,{noChecked:p,hasChecked:h}=e.format;return p&&h?d>0?h.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):p.replace(/\${total}/g,f.toString()):`${d}/${f}`}),a=A(()=>{const d=t.checked.length;return d>0&&d{const d=i.value.map(f=>f[o.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},u=d=>{t.checked=d?i.value.map(f=>f[o.value.key]):[]};return Te(()=>t.checked,(d,f)=>{if(l(),t.checkChangeByUser){const p=d.concat(f).filter(h=>!d.includes(h)||!f.includes(h));n(wg,d,p)}else n(wg,d),t.checkChangeByUser=!0}),Te(i,()=>{l()}),Te(()=>e.data,()=>{const d=[],f=r.value.map(p=>p[o.value.key]);t.checked.forEach(p=>{f.includes(p)&&d.push(p)}),t.checkChangeByUser=!1,t.checked=d}),Te(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(m=>f.includes(m)))return;const p=[],h=i.value.map(m=>m[o.value.key]);d.forEach(m=>{h.includes(m)&&p.push(m)}),t.checkChangeByUser=!1,t.checked=p},{immediate:!0}),{filteredData:r,checkableData:i,checkedSummary:s,isIndeterminate:a,updateAllChecked:l,handleAllCheckedChange:u}},ete=Q({name:"ElTransferPanel"}),tte=Q({...ete,props:Zee,emits:Jee,setup(e,{expose:t,emit:n}){const o=e,r=Wn(),i=({option:y})=>y,{t:s}=$t(),a=Pe("transfer"),l=Gt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ef(o),{filteredData:d,checkedSummary:f,isIndeterminate:p,handleAllCheckedChange:h}=Qee(o,l,n),m=A(()=>!ur(l.query)&&ur(d.value)),v=A(()=>!ur(r.default()[0].children)),{checked:b,allChecked:g,query:x}=jn(l);return t({query:x}),(y,_)=>(D(),G("div",{class:L(c(a).b("panel"))},[j("p",{class:L(c(a).be("panel","header"))},[J(c(Or),{modelValue:c(g),"onUpdate:modelValue":w=>hn(g)?g.value=w:null,indeterminate:c(p),"validate-event":!1,onChange:c(h)},{default:se(()=>[Tt(ze(y.title)+" ",1),j("span",null,ze(c(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),j("div",{class:L([c(a).be("panel","body"),c(a).is("with-footer",c(v))])},[y.filterable?(D(),_e(c(To),{key:0,modelValue:c(x),"onUpdate:modelValue":w=>hn(x)?x.value=w:null,class:L(c(a).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":c(u5),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):pe("v-if",!0),_t(J(c(oT),{modelValue:c(b),"onUpdate:modelValue":w=>hn(b)?b.value=w:null,"validate-event":!1,class:L([c(a).is("filterable",y.filterable),c(a).be("panel","list")])},{default:se(()=>[(D(!0),G(tt,null,Nt(c(d),w=>(D(),_e(c(Or),{key:w[c(u).key],class:L(c(a).be("panel","item")),value:w[c(u).key],disabled:w[c(u).disabled],"validate-event":!1},{default:se(()=>{var S;return[J(i,{option:(S=y.optionRender)==null?void 0:S.call(y,w)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[Vt,!c(m)&&!c(ur)(y.data)]]),_t(j("div",{class:L(c(a).be("panel","empty"))},[de(y.$slots,"empty",{},()=>[Tt(ze(c(m)?c(s)("el.transfer.noMatch"):c(s)("el.transfer.noData")),1)])],2),[[Vt,c(m)||c(ur)(y.data)]])],2),c(v)?(D(),G("p",{key:0,class:L(c(a).be("panel","footer"))},[de(y.$slots,"default")],2)):pe("v-if",!0)],2))}});var $S=Ve(tte,[["__file","transfer-panel.vue"]]);const nte=e=>{const t=ef(e),n=A(()=>e.data.reduce((i,s)=>(i[s[t.value.key]]=s)&&i,{})),o=A(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),r=A(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,s)=>{const a=n.value[s];return a&&i.push(a),i},[]));return{sourceData:o,targetData:r}},ote=(e,t,n)=>{const o=ef(e),r=(a,l,u)=>{n(vt,a),n(It,a,l,u)};return{addToLeft:()=>{const a=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=a.indexOf(l);u>-1&&a.splice(u,1)}),r(a,"left",t.rightChecked)},addToRight:()=>{let a=e.modelValue.slice();const l=e.data.filter(u=>{const d=u[o.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(u=>u[o.value.key]);a=e.targetOrder==="unshift"?l.concat(a):a.concat(l),e.targetOrder==="original"&&(a=e.data.filter(u=>a.includes(u[o.value.key])).map(u=>u[o.value.key])),r(a,"right",t.leftChecked)}}},rte=(e,t)=>({onSourceCheckedChange:(r,i)=>{e.leftChecked=r,i&&t(Ek,r,i)},onTargetCheckedChange:(r,i)=>{e.rightChecked=r,i&&t(Mk,r,i)}}),ite=Q({name:"ElTransfer"}),ste=Q({...ite,props:Hl,emits:Xee,setup(e,{expose:t,emit:n}){const o=e,r=Wn(),{t:i}=$t(),s=Pe("transfer"),{formItem:a}=xo(),l=Gt({leftChecked:[],rightChecked:[]}),u=ef(o),{sourceData:d,targetData:f}=nte(o),{onSourceCheckedChange:p,onTargetCheckedChange:h}=rte(l,n),{addToLeft:m,addToRight:v}=ote(o,l,n),b=F(),g=F(),x=T=>{switch(T){case"left":b.value.query="";break;case"right":g.value.query="";break}},y=A(()=>o.buttonTexts.length===2),_=A(()=>o.titles[0]||i("el.transfer.titles.0")),w=A(()=>o.titles[1]||i("el.transfer.titles.1")),S=A(()=>o.filterPlaceholder||i("el.transfer.filterPlaceholder"));Te(()=>o.modelValue,()=>{var T;o.validateEvent&&((T=a==null?void 0:a.validate)==null||T.call(a,"change").catch(E=>void 0))});const M=A(()=>T=>{var E;if(o.renderContent)return o.renderContent(ut,T);const C=(((E=r.default)==null?void 0:E.call(r,{option:T}))||[]).filter(k=>k.type!==Jn);return C.length?C:ut("span",T[u.value.label]||T[u.value.key])});return t({clearQuery:x,leftPanel:b,rightPanel:g}),(T,E)=>(D(),G("div",{class:L(c(s).b())},[J($S,{ref_key:"leftPanel",ref:b,data:c(d),"option-render":c(M),placeholder:c(S),title:c(_),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:o.props,onCheckedChange:c(p)},{empty:se(()=>[de(T.$slots,"left-empty")]),default:se(()=>[de(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),j("div",{class:L(c(s).e("buttons"))},[J(c(Qn),{type:"primary",class:L([c(s).e("button"),c(s).is("with-texts",c(y))]),disabled:c(ur)(l.rightChecked),onClick:c(m)},{default:se(()=>[J(c(Je),null,{default:se(()=>[J(c(as))]),_:1}),c(Bt)(T.buttonTexts[0])?pe("v-if",!0):(D(),G("span",{key:0},ze(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),J(c(Qn),{type:"primary",class:L([c(s).e("button"),c(s).is("with-texts",c(y))]),disabled:c(ur)(l.leftChecked),onClick:c(v)},{default:se(()=>[c(Bt)(T.buttonTexts[1])?pe("v-if",!0):(D(),G("span",{key:0},ze(T.buttonTexts[1]),1)),J(c(Je),null,{default:se(()=>[J(c(ko))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),J($S,{ref_key:"rightPanel",ref:g,data:c(f),"option-render":c(M),placeholder:c(S),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:c(w),"default-checked":T.rightDefaultChecked,props:o.props,onCheckedChange:c(h)},{empty:se(()=>[de(T.$slots,"right-empty")]),default:se(()=>[de(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var ate=Ve(ste,[["__file","transfer.vue"]]);const lte=yt(ate),iu="$treeNodeId",US=function(e,t){!t||t[iu]||Object.defineProperty(t,iu,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},D1=(e,t)=>t==null?void 0:t[e||iu],Cg=(e,t,n)=>{const o=e.value.currentNode;n();const r=e.value.currentNode;o!==r&&t("current-change",r?r.data:null,r)},Eg=e=>{let t=!0,n=!0,o=!0;for(let r=0,i=e.length;r0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Oe(this.data)||US(this,this.data),!this.data)return;const o=t.defaultExpandedKeys,r=t.key;r&&o&&o.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Oe(t)||US(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Oe(this.data)?n=this.data:n=Pf(this,"children")||[];for(let o=0,r=n.length;o-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Fh)){if(!o){const r=this.getChildren(!0);r.includes(t.data)||(Bt(n)||n<0?r.push(t.data):r.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Gt(new Fh(t)),t instanceof Fh&&t.initialize()}t.level=this.level+1,Bt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let o=0;o{if(n){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Oe(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||_c(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,o,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:a}=Eg(this.childNodes);!this.isLeaf&&!s&&a&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let p=0,h=u.length;p{l(),_c(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||o||_c(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let r="children";return o&&(r=o.children||"children"),Bt(n[r])&&(n[r]=null),t&&!n[r]&&(n[r]=[]),n[r]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),o={},r=[];t.forEach((i,s)=>{const a=i[iu];!!a&&n.findIndex(u=>u[iu]===a)>=0?o[a]={index:s,data:i}:r.push({index:s,data:i})}),this.store.lazy||n.forEach(i=>{o[i[iu]]||this.removeChildByData(i)}),r.forEach(({index:i,data:s})=>{this.insertChild({data:s},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},r=()=>{this.loading=!1};this.store.load(this,o,r)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const o=n.shift();n.unshift(...o.childNodes),t(o)}}reInitChecked(){this.store.checkStrictly||_c(this)}};class cte{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)zt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Mg({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,r=async function(i){const s=i.root?i.root.childNodes:i.childNodes;for(const[a,l]of s.entries())l.visible=n.call(l,t,l.data,l),a%80===0&&a>0&&await Qe(),await r(l);if(!i.visible&&s.length){let a=!0;a=!s.some(l=>l.visible),i.root?i.root.visible=a===!1:i.visible=a===!1}t&&i.visible&&!i.isLeaf&&(!o||i.loaded)&&i.expand()};r(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(t){if(t instanceof Mg)return t;const n=Ct(t)?D1(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const o=this.getNode(n);o.parent.insertBefore({data:t},o)}insertAfter(t,n){const o=this.getNode(n);o.parent.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=jo(n)?this.root:this.getNode(n);o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const r=n[o];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(a=>{(a.checked||n&&a.indeterminate)&&(!t||t&&a.isLeaf)&&o.push(a.data),r(a)})};return r(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)zt(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const r=o.childNodes;for(let i=r.length-1;i>=0;i--){const s=r[i];this.remove(s.data)}for(let i=0,s=n.length;il.level-u.level),i=Object.create(null),s=Object.keys(o);r.forEach(l=>l.setChecked(!1,!1));const a=l=>{l.childNodes.forEach(u=>{var d;i[u.data[t]]=!0,(d=u.childNodes)!=null&&d.length&&a(u)})};for(let l=0,u=r.length;l{b.isLeaf||b.setChecked(!1,!1),h(b)})};h(d)}}}setCheckedNodes(t,n=!1){const o=this.key,r={};t.forEach(i=>{r[(i||{})[o]]=!0}),this._setCheckedKeys(o,n,r)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,r={};t.forEach(i=>{r[i]=!0}),this._setCheckedKeys(o,n,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const r=this.getNode(t);r&&r.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],r=this.nodesMap[o];this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(this.currentNodeKey=t,jo(t)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const I1="RootTree",Tk="NodeInstance",zS="TreeNodeMap",dte=Q({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Pe("tree"),n=je(Tk),o=je(I1);return()=>{const r=e.node,{data:i,store:s}=r;return e.renderContent?e.renderContent(ut,{_self:n,node:r,data:i,store:s}):de(o.ctx.slots,"default",{node:r,data:i},()=>[ut(_1,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[r.label])])}}});var fte=Ve(dte,[["__file","tree-node-content.vue"]]);function Ak(e){const t=je(zS,null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),Lt(zS,n),{broadcastExpanded:o=>{if(e.accordion)for(const r of n.children)r.treeNodeExpand(o)}}}const kk=Symbol("dragEvents");function hte({props:e,ctx:t,el$:n,dropIndicator$:o,store:r}){const i=Pe("tree"),s=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Lt(kk,{treeNodeDragStart:({event:d,treeNode:f})=>{if(it(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=f,t.emit("node-drag-start",f.node,d)},treeNodeDragOver:({event:d,treeNode:f})=>{const p=f,h=s.value.dropNode;h&&h.node.id!==p.node.id&&Ao(h.$el,i.is("drop-inner"));const m=s.value.draggingNode;if(!m||!p)return;let v=!0,b=!0,g=!0,x=!0;it(e.allowDrop)&&(v=e.allowDrop(m.node,p.node,"prev"),x=b=e.allowDrop(m.node,p.node,"inner"),g=e.allowDrop(m.node,p.node,"next")),d.dataTransfer.dropEffect=b||v||g?"move":"none",(v||b||g)&&(h==null?void 0:h.node.id)!==p.node.id&&(h&&t.emit("node-drag-leave",m.node,h.node,d),t.emit("node-drag-enter",m.node,p.node,d)),v||b||g?s.value.dropNode=p:s.value.dropNode=null,p.node.nextSibling===m.node&&(g=!1),p.node.previousSibling===m.node&&(v=!1),p.node.contains(m.node,!1)&&(b=!1),(m.node===p.node||m.node.contains(p.node))&&(v=!1,b=!1,g=!1);const y=p.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let w;const S=v?b?.25:g?.45:1:-1,M=g?b?.75:v?.55:0:1;let T=-9999;const E=d.clientY-y.top;Ey.height*M?w="after":b?w="inner":w="none";const C=p.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=o.value;w==="before"?T=C.top-_.top:w==="after"&&(T=C.bottom-_.top),k.style.top=`${T}px`,k.style.left=`${C.right-_.left}px`,w==="inner"?Ar(p.$el,i.is("drop-inner")):Ao(p.$el,i.is("drop-inner")),s.value.showDropIndicator=w==="before"||w==="after",s.value.allowDrop=s.value.showDropIndicator||x,s.value.dropType=w,t.emit("node-drag-over",m.node,p.node,d)},treeNodeDragEnd:d=>{const{draggingNode:f,dropType:p,dropNode:h}=s.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f&&h){const m={data:f.node.data};p!=="none"&&f.node.remove(),p==="before"?h.node.parent.insertBefore(m,h.node):p==="after"?h.node.parent.insertAfter(m,h.node):p==="inner"&&h.node.insertChild(m),p!=="none"&&(r.value.registerNode(m),r.value.key&&f.node.eachNode(v=>{var b;(b=r.value.nodesMap[v.data[r.value.key]])==null||b.setChecked(v.checked,!r.value.checkStrictly)})),Ao(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,p,d),p!=="none"&&t.emit("node-drop",f.node,h.node,p,d)}f&&!h&&t.emit("node-drag-end",f.node,null,p,d),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const pte=Q({name:"ElTreeNode",components:{ElCollapseTransition:y0,ElCheckbox:Or,NodeContent:fte,ElIcon:Je,Loading:Ei},props:{node:{type:Mg,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Pe("tree"),{broadcastExpanded:o}=Ak(e),r=je(I1),i=F(!1),s=F(!1),a=F(),l=F(),u=F(),d=je(kk),f=Pt();Lt(Tk,f),e.node.expanded&&(i.value=!0,s.value=!0);const p=r.props.props.children||"children";Te(()=>{var E;const C=(E=e.node.data)==null?void 0:E[p];return C&&[...C]},()=>{e.node.updateChildren()}),Te(()=>e.node.indeterminate,E=>{v(e.node.checked,E)}),Te(()=>e.node.checked,E=>{v(E,e.node.indeterminate)}),Te(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),Te(()=>e.node.expanded,E=>{Qe(()=>i.value=E),E&&(s.value=!0)});const h=E=>D1(r.props.nodeKey,E.data),m=E=>{const C=e.props.class;if(!C)return{};let k;if(it(C)){const{data:R}=E;k=C(R,E)}else k=C;return et(k)?{[k]:!0}:k},v=(E,C)=>{(a.value!==E||l.value!==C)&&r.ctx.emit("check-change",e.node.data,E,C),a.value=E,l.value=C},b=E=>{Cg(r.store,r.ctx.emit,()=>{var C;if((C=r==null?void 0:r.props)==null?void 0:C.nodeKey){const R=h(e.node);r.store.value.setCurrentNodeKey(R)}else r.store.value.setCurrentNode(e.node)}),r.currentNode.value=e.node,r.props.expandOnClickNode&&x(),(r.props.checkOnClickNode||e.node.isLeaf&&r.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&y(!e.node.checked),r.ctx.emit("node-click",e.node.data,e.node,f,E)},g=E=>{var C;(C=r.instance.vnode.props)!=null&&C.onNodeContextmenu&&(E.stopPropagation(),E.preventDefault()),r.ctx.emit("node-contextmenu",E,e.node.data,e.node,f)},x=()=>{e.node.isLeaf||(i.value?(r.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},y=E=>{e.node.setChecked(E,!(r!=null&&r.props.checkStrictly)),Qe(()=>{const C=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:C.getCheckedNodes(),checkedKeys:C.getCheckedKeys(),halfCheckedNodes:C.getHalfCheckedNodes(),halfCheckedKeys:C.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:r,expanded:i,childNodeRendered:s,oldChecked:a,oldIndeterminate:l,getNodeKey:h,getNodeClass:m,handleSelectChange:v,handleClick:b,handleContextMenu:g,handleExpandIconClick:x,handleCheckChange:y,handleChildNodeExpand:(E,C,k)=>{o(C),r.ctx.emit("node-expand",E,C,k)},handleDragStart:E=>{r.props.draggable&&d.treeNodeDragStart({event:E,treeNode:e})},handleDragOver:E=>{E.preventDefault(),r.props.draggable&&d.treeNodeDragOver({event:E,treeNode:{$el:u.value,node:e.node}})},handleDrop:E=>{E.preventDefault()},handleDragEnd:E=>{r.props.draggable&&d.treeNodeDragEnd(E)},CaretRight:r3}}});function mte(e,t,n,o,r,i){const s=Mt("el-icon"),a=Mt("el-checkbox"),l=Mt("loading"),u=Mt("node-content"),d=Mt("el-tree-node"),f=Mt("el-collapse-transition");return _t((D(),G("div",{ref:"node$",class:L([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:dt(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:dt(e.handleDragStart,["stop"]),onDragover:dt(e.handleDragOver,["stop"]),onDragend:dt(e.handleDragEnd,["stop"]),onDrop:dt(e.handleDrop,["stop"])},[j("div",{class:L(e.ns.be("node","content")),style:rt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(D(),_e(s,{key:0,class:L([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:dt(e.handleExpandIconClick,["stop"])},{default:se(()=>[(D(),_e(Rt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):pe("v-if",!0),e.showCheckbox?(D(),_e(a,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:dt(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):pe("v-if",!0),e.node.loading?(D(),_e(s,{key:2,class:L([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:se(()=>[J(l)]),_:1},8,["class"])):pe("v-if",!0),J(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),J(f,null,{default:se(()=>[!e.renderAfterExpand||e.childNodeRendered?_t((D(),G("div",{key:0,class:L(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:dt(()=>{},["stop"])},[(D(!0),G(tt,null,Nt(e.node.childNodes,p=>(D(),_e(d,{key:e.getNodeKey(p),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:p,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[Vt,e.expanded]]):pe("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[Vt,e.node.visible]])}var vte=Ve(pte,[["render",mte],["__file","tree-node.vue"]]);function gte({el$:e},t){const n=Pe("tree");xt(()=>{r()}),ei(()=>{Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(s=>{s.setAttribute("tabindex","-1")})}),on(e,"keydown",i=>{const s=i.target;if(!s.className.includes(n.b("node")))return;const a=i.code,l=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),u=l.indexOf(s);let d;if([Ke.up,Ke.down].includes(a)){if(i.preventDefault(),a===Ke.up){d=u===-1?0:u!==0?u-1:l.length-1;const p=d;for(;!t.value.getNode(l[d].dataset.key).canFocus;){if(d--,d===p){d=-1;break}d<0&&(d=l.length-1)}}else{d=u===-1?0:u=l.length&&(d=0)}}d!==-1&&l[d].focus()}[Ke.left,Ke.right].includes(a)&&(i.preventDefault(),s.click());const f=s.querySelector('[type="checkbox"]');[Ke.enter,Ke.numpadEnter,Ke.space].includes(a)&&f&&(i.preventDefault(),f.click())});const r=()=>{var i;const s=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(u=>{u.setAttribute("tabindex","-1")});const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(i=s[0])==null||i.setAttribute("tabindex","0")}}const bte=Q({name:"ElTree",components:{ElTreeNode:vte},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:tn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=$t(),o=Pe("tree"),r=je(Ju,null),i=F(new cte({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const s=F(i.value.root),a=F(null),l=F(null),u=F(null),{broadcastExpanded:d}=Ak(e),{dragState:f}=hte({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});gte({el$:l},i);const p=A(()=>{const{childNodes:I}=s.value,O=r?r.hasFilteredOptions!==0:!1;return(!I||I.length===0||I.every(({visible:q})=>!q))&&!O});Te(()=>e.currentNodeKey,I=>{i.value.setCurrentNodeKey(I)}),Te(()=>e.defaultCheckedKeys,I=>{i.value.setDefaultCheckedKey(I)}),Te(()=>e.defaultExpandedKeys,I=>{i.value.setDefaultExpandedKeys(I)}),Te(()=>e.data,I=>{i.value.setData(I)},{deep:!0}),Te(()=>e.checkStrictly,I=>{i.value.checkStrictly=I});const h=I=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(I)},m=I=>D1(e.nodeKey,I.data),v=I=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const O=i.value.getNode(I);if(!O)return[];const q=[O.data];let K=O.parent;for(;K&&K!==s.value;)q.push(K.data),K=K.parent;return q.reverse()},b=(I,O)=>i.value.getCheckedNodes(I,O),g=I=>i.value.getCheckedKeys(I),x=()=>{const I=i.value.getCurrentNode();return I?I.data:null},y=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const I=x();return I?I[e.nodeKey]:null},_=(I,O)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(I,O)},w=(I,O)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(I,O)},S=(I,O,q)=>{i.value.setChecked(I,O,q)},M=()=>i.value.getHalfCheckedNodes(),T=()=>i.value.getHalfCheckedKeys(),E=(I,O=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Cg(i,t.emit,()=>{d(I),i.value.setUserCurrentNode(I,O)})},C=(I,O=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Cg(i,t.emit,()=>{d(),i.value.setCurrentNodeKey(I,O)})},k=I=>i.value.getNode(I),R=I=>{i.value.remove(I)},B=(I,O)=>{i.value.append(I,O)},H=(I,O)=>{i.value.insertBefore(I,O)},N=(I,O)=>{i.value.insertAfter(I,O)},P=(I,O,q)=>{d(O),t.emit("node-expand",I,O,q)},U=(I,O)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(I,O)};return Lt(I1,{ctx:t,props:e,store:i,root:s,currentNode:a,instance:Pt()}),Lt(Mi,void 0),{ns:o,store:i,root:s,currentNode:a,dragState:f,el$:l,dropIndicator$:u,isEmpty:p,filter:h,getNodeKey:m,getNodePath:v,getCheckedNodes:b,getCheckedKeys:g,getCurrentNode:x,getCurrentKey:y,setCheckedNodes:_,setCheckedKeys:w,setChecked:S,getHalfCheckedNodes:M,getHalfCheckedKeys:T,setCurrentNode:E,setCurrentKey:C,t:n,getNode:k,remove:R,append:B,insertBefore:H,insertAfter:N,handleNodeExpand:P,updateKeyChildren:U}}});function yte(e,t,n,o,r,i){const s=Mt("el-tree-node");return D(),G("div",{ref:"el$",class:L([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(D(!0),G(tt,null,Nt(e.root.childNodes,a=>(D(),_e(s,{key:e.getNodeKey(a),node:a,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(D(),G("div",{key:0,class:L(e.ns.e("empty-block"))},[de(e.$slots,"empty",{},()=>{var a;return[j("span",{class:L(e.ns.e("empty-text"))},ze((a=e.emptyText)!=null?a:e.t("el.tree.emptyText")),3)]})],2)):pe("v-if",!0),_t(j("div",{ref:"dropIndicator$",class:L(e.ns.e("drop-indicator"))},null,2),[[Vt,e.dragState.showDropIndicator]])],2)}var _te=Ve(bte,[["render",yte],["__file","tree.vue"]]);const Ap=yt(_te),xte=(e,{attrs:t,emit:n},{select:o,tree:r,key:i})=>{const s=Pe("tree-select");return Te(()=>e.data,()=>{e.filterable&&Qe(()=>{var l,u;(u=r.value)==null||u.filter((l=o.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...qr(jn(e),Object.keys(ol.props)),...t,class:A(()=>t.class),style:A(()=>t.style),"onUpdate:modelValue":l=>n(vt,l),valueKey:i,popperClass:A(()=>{const l=[s.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=r.value)==null||u.filter(l)}}},Ste=Q({extends:vp,setup(e,t){const n=vp.setup(e,t);delete n.selectOptionClick;const o=Pt().proxy;return Qe(()=>{n.select.states.cachedOptions.get(o.value)||n.select.onOptionCreate(o)}),Te(()=>t.attrs.visible,r=>{Qe(()=>{n.states.visible=r})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Tg(e){return e||e===0}function L1(e){return Oe(e)&&e.length}function Cl(e){return Oe(e)?e:Tg(e)?[e]:[]}function Bh(e,t,n,o,r){for(let i=0;i{Te([()=>e.modelValue,i],()=>{e.showCheckbox&&Qe(()=>{const p=i.value;p&&!Zn(p.getCheckedKeys(),Cl(e.modelValue))&&p.setCheckedKeys(Cl(e.modelValue))})},{immediate:!0,deep:!0});const a=A(()=>({value:s.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(p,h)=>{var m;const v=a.value[p];return it(v)?v(h,(m=i.value)==null?void 0:m.getNode(l("value",h))):h[v]},u=Cl(e.modelValue).map(p=>Bh(e.data||[],h=>l("value",h)===p,h=>l("children",h),(h,m,v,b)=>b&&l("value",b))).filter(p=>Tg(p)),d=A(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return $h(e.data.concat(e.cacheData),h=>{const m=l("value",h);p.push({value:m,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),p}),f=()=>{var p;return(p=i.value)==null?void 0:p.getCheckedKeys().filter(h=>{var m;const v=(m=i.value)==null?void 0:m.getNode(h);return!qn(v)&&ur(v.childNodes)})};return{...qr(jn(e),Object.keys(Ap.props)),...t,nodeKey:s,expandOnClickNode:A(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:A(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(p,{node:h,data:m,store:v})=>p(Ste,{value:l("value",m),label:l("label",m),disabled:l("disabled",m),visible:h.visible},e.renderContent?()=>e.renderContent(p,{node:h,data:m,store:v}):n.default?()=>n.default({node:h,data:m,store:v}):void 0),filterNodeMethod:(p,h,m)=>e.filterNodeMethod?e.filterNodeMethod(p,h,m):p?new RegExp(By(p),"i").test(l("label",h)||""):!0,onNodeClick:(p,h,m)=>{var v,b,g,x;if((v=t.onNodeClick)==null||v.call(t,p,h,m),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||h.isLeaf)){if(!l("disabled",p)){const y=(b=r.value)==null?void 0:b.states.options.get(l("value",p));(g=r.value)==null||g.handleOptionSelect(y)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick();(x=r.value)==null||x.focus()}},onCheck:(p,h)=>{var m;if(!e.showCheckbox)return;const v=l("value",p),b={};$h([i.value.store.root],_=>b[_.key]=_,_=>_.childNodes);const g=h.checkedKeys,x=e.multiple?Cl(e.modelValue).filter(_=>!(_ in b)&&!g.includes(_)):[],y=x.concat(g);if(e.checkStrictly)o(vt,e.multiple?y:y.includes(v)?v:void 0);else if(e.multiple){const _=f();o(vt,x.concat(_))}else{const _=Bh([p],M=>!L1(l("children",M))&&!l("disabled",M),M=>l("children",M)),w=_?l("value",_):void 0,S=Tg(e.modelValue)&&!!Bh([p],M=>l("value",M)===e.modelValue,M=>l("children",M));o(vt,w===e.modelValue||S?void 0:w)}Qe(()=>{var _;const w=Cl(e.modelValue);i.value.setCheckedKeys(w),(_=t.onCheck)==null||_.call(t,p,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(m=r.value)==null||m.focus()},onNodeExpand:(p,h,m)=>{var v;(v=t.onNodeExpand)==null||v.call(t,p,h,m),Qe(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&h.checked){const b={},g=i.value.getCheckedKeys();$h([i.value.store.root],_=>b[_.key]=_,_=>_.childNodes);const x=Cl(e.modelValue).filter(_=>!(_ in b)&&!g.includes(_)),y=f();o(vt,x.concat(y))}})},cacheOptions:d}};var Cte=Q({props:{data:{type:Array,default:()=>[]}},setup(e){const t=je(Ju);return Te(()=>e.data,()=>{var n;e.data.forEach(r=>{t.states.cachedOptions.has(r.value)||t.states.cachedOptions.set(r.value,r)});const o=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Ft&&!Array.from(o).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Ete=Q({name:"ElTreeSelect",inheritAttrs:!1,props:{...ol.props,...Ap.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:o}=t,r=F(),i=F(),s=A(()=>e.nodeKey||e.valueKey||"value"),a=xte(e,t,{select:r,tree:i,key:s}),{cacheOptions:l,...u}=wte(e,t,{select:r,tree:i,key:s}),d=Gt({});return o(d),xt(()=>{Object.assign(d,{...qr(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...qr(r.value,["focus","blur","selectedLabel"])})}),()=>ut(ol,Gt({...a,ref:f=>r.value=f}),{...n,default:()=>[ut(Cte,{data:l.value}),ut(Ap,Gt({...u,ref:f=>i.value=f}))]})}});var Mte=Ve(Ete,[["__file","tree-select.vue"]]);const Tte=yt(Mte),N1=Symbol(),Ate={key:-1,level:-1,data:{}};var xc=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(xc||{}),Ag=(e=>(e.ADD="add",e.DELETE="delete",e))(Ag||{});const Rk={type:Number,default:26},kte=Ue({data:{type:le(Array),default:()=>_n([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:le(Object),default:()=>_n({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:le(Array),default:()=>_n([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:le(Array),default:()=>_n([])},indent:{type:Number,default:16},itemSize:Rk,icon:{type:tn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:le([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:le(Function)},perfMode:{type:Boolean,default:!0}}),Rte=Ue({node:{type:le(Object),default:()=>_n(Ate)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:Rk}),Pte=Ue({node:{type:le(Object),required:!0}}),Pk="node-click",Dk="node-drop",Ik="node-expand",Lk="node-collapse",Nk="current-change",Ok="check",Fk="check-change",Bk="node-contextmenu",Dte={[Pk]:(e,t,n)=>e&&t&&n,[Dk]:(e,t,n)=>e&&t&&n,[Ik]:(e,t)=>e&&t,[Lk]:(e,t)=>e&&t,[Nk]:(e,t)=>e&&t,[Ok]:(e,t)=>e&&t,[Fk]:(e,t)=>e&&Jt(t),[Bk]:(e,t,n)=>e&&t&&n},Ite={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Jt(t)};function Lte(e,t){const n=F(new Set),o=F(new Set),{emit:r}=Pt();Te([()=>t.value,()=>e.defaultCheckedKeys],()=>Qe(()=>{x(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:y,maxLevel:_}=t.value,w=n.value,S=new Set;for(let M=_-1;M>=1;--M){const T=y.get(M);T&&T.forEach(E=>{const C=E.children;if(C){let k=!0,R=!1;for(const B of C){const H=B.key;if(w.has(H))R=!0;else if(S.has(H)){k=!1,R=!0;break}else k=!1}k?w.add(E.key):R?(S.add(E.key),w.delete(E.key)):(w.delete(E.key),S.delete(E.key))}})}o.value=S},s=y=>n.value.has(y.key),a=y=>o.value.has(y.key),l=(y,_,w=!0,S=!0)=>{const M=n.value,T=(E,C)=>{M[C?Ag.ADD:Ag.DELETE](E.key);const k=E.children;!e.checkStrictly&&k&&k.forEach(R=>{R.disabled||T(R,C)})};T(y,_),S&&i(),w&&u(y,_)},u=(y,_)=>{const{checkedNodes:w,checkedKeys:S}=m(),{halfCheckedNodes:M,halfCheckedKeys:T}=v();r(Ok,y.data,{checkedKeys:S,checkedNodes:w,halfCheckedKeys:T,halfCheckedNodes:M}),r(Fk,y.data,_)};function d(y=!1){return m(y).checkedKeys}function f(y=!1){return m(y).checkedNodes}function p(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function m(y=!1){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(M=>{const T=S.get(M);T&&(!y||y&&T.isLeaf)&&(w.push(M),_.push(T.data))})}return{checkedKeys:w,checkedNodes:_}}function v(){const y=[],_=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:w}=t.value;o.value.forEach(S=>{const M=w.get(S);M&&(_.push(S),y.push(M.data))})}return{halfCheckedNodes:y,halfCheckedKeys:_}}function b(y){n.value.clear(),o.value.clear(),Qe(()=>{x(y)})}function g(y,_){if(t!=null&&t.value&&e.showCheckbox){const w=t.value.treeNodeMap.get(y);w&&l(w,_,!1)}}function x(y){if(t!=null&&t.value){const{treeNodeMap:_}=t.value;if(e.showCheckbox&&_&&(y==null?void 0:y.length)>0){for(const w of y){const S=_.get(w);S&&!s(S)&&l(S,!0,!1,!1)}i()}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:s,isIndeterminate:a,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:p,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:b}}function Nte(e,t){const n=F(new Set([])),o=F(new Set([])),r=A(()=>it(e.filterMethod));function i(a){var l;if(!r.value)return;const u=new Set,d=o.value,f=n.value,p=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],m=e.filterMethod;f.clear();function v(b){b.forEach(g=>{p.push(g),m!=null&&m(a,g.data,g)?p.forEach(y=>{u.add(y.key)}):g.isLeaf&&f.add(g.key);const x=g.children;if(x&&v(x),!g.isLeaf){if(!u.has(g.key))f.add(g.key);else if(x){let y=!0;for(const _ of x)if(!f.has(_.key)){y=!1;break}y?d.add(g.key):d.delete(g.key)}}p.pop()})}return v(h),u}function s(a){return o.value.has(a.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:s}}function Ote(e,t){const n=F(new Set(e.defaultExpandedKeys)),o=F(),r=fn(),i=F(),{isIndeterminate:s,isChecked:a,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:m}=Lte(e,r),{doFilter:v,hiddenNodeKeySet:b,isForceHiddenExpandIcon:g}=Nte(e,r),x=A(()=>{var V;return((V=e.props)==null?void 0:V.value)||xc.KEY}),y=A(()=>{var V;return((V=e.props)==null?void 0:V.children)||xc.CHILDREN}),_=A(()=>{var V;return((V=e.props)==null?void 0:V.disabled)||xc.DISABLED}),w=A(()=>{var V;return((V=e.props)==null?void 0:V.label)||xc.LABEL}),S=A(()=>{var V;const ee=n.value,z=b.value,ve=[],ce=((V=r.value)==null?void 0:V.treeNodes)||[],me=[];for(let ue=ce.length-1;ue>=0;--ue)me.push(ce[ue]);for(;me.length;){const ue=me.pop();if(!z.has(ue.key)&&(ve.push(ue),ue.children&&ee.has(ue.key)))for(let ge=ue.children.length-1;ge>=0;--ge)me.push(ue.children[ge])}return ve}),M=A(()=>S.value.length>0);function T(V){const ee=new Map,z=new Map;let ve=1;function ce(ue,ge=1,xe=void 0){var Ce;const Fe=[];for(const Z of ue){const $=k(Z),he={level:ge,key:$,data:Z};he.label=B(Z),he.parent=xe;const Me=C(Z);he.disabled=R(Z),he.isLeaf=!Me||Me.length===0,Me&&Me.length&&(he.children=ce(Me,ge+1,he)),Fe.push(he),ee.set($,he),z.has(ge)||z.set(ge,[]),(Ce=z.get(ge))==null||Ce.push(he)}return ge>ve&&(ve=ge),Fe}const me=ce(V);return{treeNodeMap:ee,levelTreeNodeMap:z,maxLevel:ve,treeNodes:me}}function E(V){const ee=v(V);ee&&(n.value=ee)}function C(V){return V[y.value]}function k(V){return V?V[x.value]:""}function R(V){return V[_.value]}function B(V){return V[w.value]}function H(V){n.value.has(V.key)?K(V):q(V)}function N(V){const ee=new Set,z=r.value.treeNodeMap;V.forEach(ve=>{let ce=z.get(ve);for(;ce&&!ee.has(ce.key);)ee.add(ce.key),ce=ce.parent}),n.value=ee}function P(V,ee){t(Pk,V.data,V,ee),I(V),e.expandOnClickNode&&H(V),e.showCheckbox&&(e.checkOnClickNode||V.isLeaf&&e.checkOnClickLeaf)&&!V.disabled&&l(V,!a(V),!0)}function U(V,ee){t(Dk,V.data,V,ee)}function I(V){Y(V)||(o.value=V.key,t(Nk,V.data,V))}function O(V,ee){l(V,ee)}function q(V){const ee=n.value;if(r.value&&e.accordion){const{treeNodeMap:z}=r.value;ee.forEach(ve=>{const ce=z.get(ve);V&&V.level===(ce==null?void 0:ce.level)&&ee.delete(ve)})}ee.add(V.key),t(Ik,V.data,V)}function K(V){n.value.delete(V.key),t(Lk,V.data,V)}function oe(V){return n.value.has(V.key)}function X(V){return!!V.disabled}function Y(V){const ee=o.value;return ee!==void 0&&ee===V.key}function ie(){var V,ee;if(o.value)return(ee=(V=r.value)==null?void 0:V.treeNodeMap.get(o.value))==null?void 0:ee.data}function ae(){return o.value}function re(V){o.value=V}function fe(V){r.value=T(V)}function be(V){var ee;const z=Ct(V)?k(V):V;return(ee=r.value)==null?void 0:ee.treeNodeMap.get(z)}function De(V,ee="auto"){const z=be(V);z&&i.value&&i.value.scrollToItem(S.value.indexOf(z),ee)}function Re(V){var ee;(ee=i.value)==null||ee.scrollTo(V)}return Te(()=>e.currentNodeKey,V=>{o.value=V},{immediate:!0}),Te(()=>e.data,V=>{fe(V)},{immediate:!0}),{tree:r,flattenTree:S,isNotEmpty:M,listRef:i,getKey:k,getChildren:C,toggleExpand:H,toggleCheckbox:l,isExpanded:oe,isChecked:a,isIndeterminate:s,isDisabled:X,isCurrent:Y,isForceHiddenExpandIcon:g,handleNodeClick:P,handleNodeDrop:U,handleNodeCheck:O,getCurrentNode:ie,getCurrentKey:ae,setCurrentKey:re,getCheckedKeys:u,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:p,setChecked:h,setCheckedKeys:m,filter:E,setData:fe,getNode:be,expandNode:q,collapseNode:K,setExpandedKeys:N,scrollToNode:De,scrollTo:Re}}var Fte=Q({name:"ElTreeNodeContent",props:Pte,setup(e){const t=je(N1),n=Pe("tree");return()=>{const o=e.node,{data:r}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:r}):ut(_1,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[o==null?void 0:o.label])}}});const Bte=Q({name:"ElTreeNode"}),$te=Q({...Bte,props:Rte,emits:Ite,setup(e,{emit:t}){const n=e,o=je(N1),r=Pe("tree"),i=A(()=>{var h;return(h=o==null?void 0:o.props.indent)!=null?h:16}),s=A(()=>{var h;return(h=o==null?void 0:o.props.icon)!=null?h:r3}),a=h=>{const m=o==null?void 0:o.props.props.class;if(!m)return{};let v;if(it(m)){const{data:b}=h;v=m(b,h)}else v=m;return et(v)?{[v]:!0}:v},l=h=>{t("click",n.node,h)},u=h=>{t("drop",n.node,h)},d=()=>{t("toggle",n.node)},f=h=>{t("check",n.node,h)},p=h=>{var m,v,b,g;(b=(v=(m=o==null?void 0:o.instance)==null?void 0:m.vnode)==null?void 0:v.props)!=null&&b.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),o==null||o.ctx.emit(Bk,h,(g=n.node)==null?void 0:g.data,n.node)};return(h,m)=>{var v,b,g;return D(),G("div",{ref:"node$",class:L([c(r).b("node"),c(r).is("expanded",h.expanded),c(r).is("current",h.current),c(r).is("focusable",!h.disabled),c(r).is("checked",!h.disabled&&h.checked),a(h.node)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(v=h.node)==null?void 0:v.key,onClick:dt(l,["stop"]),onContextmenu:p,onDragover:dt(()=>{},["prevent"]),onDragenter:dt(()=>{},["prevent"]),onDrop:dt(u,["stop"])},[j("div",{class:L(c(r).be("node","content")),style:rt({paddingLeft:`${(h.node.level-1)*c(i)}px`,height:h.itemSize+"px"})},[c(s)?(D(),_e(c(Je),{key:0,class:L([c(r).is("leaf",!!((b=h.node)!=null&&b.isLeaf)),c(r).is("hidden",h.hiddenExpandIcon),{expanded:!((g=h.node)!=null&&g.isLeaf)&&h.expanded},c(r).be("node","expand-icon")]),onClick:dt(d,["stop"])},{default:se(()=>[(D(),_e(Rt(c(s))))]),_:1},8,["class","onClick"])):pe("v-if",!0),h.showCheckbox?(D(),_e(c(Or),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:f,onClick:dt(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):pe("v-if",!0),J(c(Fte),{node:h.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Ute=Ve($te,[["__file","tree-node.vue"]]);const zte=Q({name:"ElTreeV2"}),Vte=Q({...zte,props:kte,emits:Dte,setup(e,{expose:t,emit:n}){const o=e,r=Wn(),i=A(()=>o.itemSize);Lt(N1,{ctx:{emit:n,slots:r},props:o,instance:Pt()}),Lt(Mi,void 0);const{t:s}=$t(),a=Pe("tree"),{flattenTree:l,isNotEmpty:u,listRef:d,toggleExpand:f,isExpanded:p,isIndeterminate:h,isChecked:m,isDisabled:v,isCurrent:b,isForceHiddenExpandIcon:g,handleNodeClick:x,handleNodeDrop:y,handleNodeCheck:_,toggleCheckbox:w,getCurrentNode:S,getCurrentKey:M,setCurrentKey:T,getCheckedKeys:E,getCheckedNodes:C,getHalfCheckedKeys:k,getHalfCheckedNodes:R,setChecked:B,setCheckedKeys:H,filter:N,setData:P,getNode:U,expandNode:I,collapseNode:O,setExpandedKeys:q,scrollToNode:K,scrollTo:oe}=Ote(o,n);return t({toggleCheckbox:w,getCurrentNode:S,getCurrentKey:M,setCurrentKey:T,getCheckedKeys:E,getCheckedNodes:C,getHalfCheckedKeys:k,getHalfCheckedNodes:R,setChecked:B,setCheckedKeys:H,filter:N,setData:P,getNode:U,expandNode:I,collapseNode:O,setExpandedKeys:q,scrollToNode:K,scrollTo:oe}),(X,Y)=>(D(),G("div",{class:L([c(a).b(),{[c(a).m("highlight-current")]:X.highlightCurrent}]),role:"tree"},[c(u)?(D(),_e(c(bA),{key:0,ref_key:"listRef",ref:d,"class-name":c(a).b("virtual-list"),data:c(l),total:c(l).length,height:X.height,"item-size":c(i),"perf-mode":X.perfMode},{default:se(({data:ie,index:ae,style:re})=>[(D(),_e(Ute,{key:ie[ae].key,style:rt(re),node:ie[ae],expanded:c(p)(ie[ae]),"show-checkbox":X.showCheckbox,checked:c(m)(ie[ae]),indeterminate:c(h)(ie[ae]),"item-size":c(i),disabled:c(v)(ie[ae]),current:c(b)(ie[ae]),"hidden-expand-icon":c(g)(ie[ae]),onClick:c(x),onToggle:c(f),onCheck:c(_),onDrop:c(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(D(),G("div",{key:1,class:L(c(a).e("empty-block"))},[de(X.$slots,"empty",{},()=>{var ie;return[j("span",{class:L(c(a).e("empty-text"))},ze((ie=X.emptyText)!=null?ie:c(s)("el.tree.emptyText")),3)]})],2))],2))}});var Hte=Ve(Vte,[["__file","tree.vue"]]);const Wte=yt(Hte),$k=Symbol("uploadContextKey"),Gte="ElUpload";class Kte extends Error{constructor(t,n,o,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=r}}function VS(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new Kte(o,n.status,t.method,e)}function qte(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const jte=e=>{typeof XMLHttpRequest>"u"&&Ln(Gte,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const s=i;s.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(s)});const o=new FormData;if(e.data)for(const[i,s]of Object.entries(e.data))Oe(s)&&s.length?o.append(i,...s):o.append(i,s);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(VS(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(VS(n,e,t));e.onSuccess(qte(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((i,s)=>t.setRequestHeader(s,i));else for(const[i,s]of Object.entries(r))qn(s)||t.setRequestHeader(i,String(s));return t.send(o),t},Uk=["text","picture","picture-card"];let Yte=1;const kg=()=>Date.now()+Yte++,zk=Ue({action:{type:String,default:"#"},headers:{type:le(Object)},method:{type:String,default:"post"},data:{type:le([Object,Function,Promise]),default:()=>_n({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:le(Array),default:()=>_n([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:Uk,default:"text"},httpRequest:{type:le(Function),default:jte},disabled:Boolean,limit:Number}),Xte=Ue({...zk,beforeUpload:{type:le(Function),default:jt},beforeRemove:{type:le(Function)},onRemove:{type:le(Function),default:jt},onChange:{type:le(Function),default:jt},onPreview:{type:le(Function),default:jt},onSuccess:{type:le(Function),default:jt},onProgress:{type:le(Function),default:jt},onError:{type:le(Function),default:jt},onExceed:{type:le(Function),default:jt},crossorigin:{type:le(String)}}),Zte=Ue({files:{type:le(Array),default:()=>_n([])},disabled:{type:Boolean,default:!1},handlePreview:{type:le(Function),default:jt},listType:{type:String,values:Uk,default:"text"},crossorigin:{type:le(String)}}),Jte={remove:e=>!!e},Qte=Q({name:"ElUploadList"}),ene=Q({...Qte,props:Zte,emits:Jte,setup(e,{emit:t}){const n=e,{t:o}=$t(),r=Pe("upload"),i=Pe("icon"),s=Pe("list"),a=po(),l=F(!1),u=A(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,p)=>(D(),_e(WE,{tag:"ul",class:L(c(u)),name:c(s).b()},{default:se(()=>[(D(!0),G(tt,null,Nt(f.files,(h,m)=>(D(),G("li",{key:h.uid||h.name,class:L([c(r).be("list","item"),c(r).is(h.status),{focusing:l.value}]),tabindex:"0",onKeydown:Zt(v=>!c(a)&&d(h),["delete"]),onFocus:v=>l.value=!0,onBlur:v=>l.value=!1,onClick:v=>l.value=!1},[de(f.$slots,"default",{file:h,index:m},()=>[f.listType==="picture"||h.status!=="uploading"&&f.listType==="picture-card"?(D(),G("img",{key:0,class:L(c(r).be("list","item-thumbnail")),src:h.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):pe("v-if",!0),h.status==="uploading"||f.listType!=="picture-card"?(D(),G("div",{key:1,class:L(c(r).be("list","item-info"))},[j("a",{class:L(c(r).be("list","item-name")),onClick:dt(v=>f.handlePreview(h),["prevent"])},[J(c(Je),{class:L(c(i).m("document"))},{default:se(()=>[J(c($F))]),_:1},8,["class"]),j("span",{class:L(c(r).be("list","item-file-name")),title:h.name},ze(h.name),11,["title"])],10,["onClick"]),h.status==="uploading"?(D(),_e(c(lA),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:rt(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):pe("v-if",!0)],2)):pe("v-if",!0),j("label",{class:L(c(r).be("list","item-status-label"))},[f.listType==="text"?(D(),_e(c(Je),{key:0,class:L([c(i).m("upload-success"),c(i).m("circle-check")])},{default:se(()=>[J(c(by))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(D(),_e(c(Je),{key:1,class:L([c(i).m("upload-success"),c(i).m("check")])},{default:se(()=>[J(c(Hd))]),_:1},8,["class"])):pe("v-if",!0)],2),c(a)?pe("v-if",!0):(D(),_e(c(Je),{key:2,class:L(c(i).m("close")),onClick:v=>d(h)},{default:se(()=>[J(c(Ir))]),_:2},1032,["class","onClick"])),pe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),pe(" This is a bug which needs to be fixed "),pe(" TODO: Fix the incorrect navigation interaction "),c(a)?pe("v-if",!0):(D(),G("i",{key:3,class:L(c(i).m("close-tip"))},ze(c(o)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(D(),G("span",{key:4,class:L(c(r).be("list","item-actions"))},[j("span",{class:L(c(r).be("list","item-preview")),onClick:v=>f.handlePreview(h)},[J(c(Je),{class:L(c(i).m("zoom-in"))},{default:se(()=>[J(c(l3))]),_:1},8,["class"])],10,["onClick"]),c(a)?pe("v-if",!0):(D(),G("span",{key:0,class:L(c(r).be("list","item-delete")),onClick:v=>d(h)},[J(c(Je),{class:L(c(i).m("delete"))},{default:se(()=>[J(c(FF))]),_:1},8,["class"])],10,["onClick"]))],2)):pe("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),de(f.$slots,"append")]),_:3},8,["class","name"]))}});var HS=Ve(ene,[["__file","upload-list.vue"]]);const tne=Ue({disabled:{type:Boolean,default:!1}}),nne={file:e=>Oe(e)},Vk="ElUploadDrag",one=Q({name:Vk}),rne=Q({...one,props:tne,emits:nne,setup(e,{emit:t}){je($k)||Ln(Vk,"usage: ");const o=Pe("upload"),r=F(!1),i=po(),s=l=>{if(i.value)return;r.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),d=l.dataTransfer.items||[];u.forEach((f,p)=>{var h;const m=d[p],v=(h=m==null?void 0:m.webkitGetAsEntry)==null?void 0:h.call(m);v&&(f.isDirectory=v.isDirectory)}),t("file",u)},a=()=>{i.value||(r.value=!0)};return(l,u)=>(D(),G("div",{class:L([c(o).b("dragger"),c(o).is("dragover",r.value)]),onDrop:dt(s,["prevent"]),onDragover:dt(a,["prevent"]),onDragleave:dt(d=>r.value=!1,["prevent"])},[de(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var ine=Ve(rne,[["__file","upload-dragger.vue"]]);const sne=Ue({...zk,beforeUpload:{type:le(Function),default:jt},onRemove:{type:le(Function),default:jt},onStart:{type:le(Function),default:jt},onSuccess:{type:le(Function),default:jt},onProgress:{type:le(Function),default:jt},onError:{type:le(Function),default:jt},onExceed:{type:le(Function),default:jt}}),ane=Q({name:"ElUploadContent",inheritAttrs:!1}),lne=Q({...ane,props:sne,setup(e,{expose:t}){const n=e,o=Pe("upload"),r=po(),i=fn({}),s=fn(),a=v=>{if(v.length===0)return;const{autoUpload:b,limit:g,fileList:x,multiple:y,onStart:_,onExceed:w}=n;if(g&&x.length+v.length>g){w(v,x);return}y||(v=v.slice(0,1));for(const S of v){const M=S;M.uid=kg(),_(M),b&&l(M)}},l=async v=>{if(s.value.value="",!n.beforeUpload)return d(v);let b,g={};try{const y=n.data,_=n.beforeUpload(v);g=Gc(n.data)?op(n.data):n.data,b=await _,Gc(n.data)&&Zn(y,g)&&(g=op(n.data))}catch{b=!1}if(b===!1){n.onRemove(v);return}let x=v;b instanceof Blob&&(b instanceof File?x=b:x=new File([b],v.name,{type:v.type})),d(Object.assign(x,{uid:v.uid}),g)},u=async(v,b)=>it(v)?v(b):v,d=async(v,b)=>{const{headers:g,data:x,method:y,withCredentials:_,name:w,action:S,onProgress:M,onSuccess:T,onError:E,httpRequest:C}=n;try{b=await u(b??x,v)}catch{n.onRemove(v);return}const{uid:k}=v,R={headers:g||{},withCredentials:_,file:v,data:b,method:y,filename:w,action:S,onProgress:H=>{M(H,v)},onSuccess:H=>{T(H,v),delete i.value[k]},onError:H=>{E(H,v),delete i.value[k]}},B=C(R);i.value[k]=B,B instanceof Promise&&B.then(R.onSuccess,R.onError)},f=v=>{const b=v.target.files;b&&a(Array.from(b))},p=()=>{r.value||(s.value.value="",s.value.click())},h=()=>{p()};return t({abort:v=>{XM(i.value).filter(v?([g])=>String(v.uid)===g:()=>!0).forEach(([g,x])=>{x instanceof XMLHttpRequest&&x.abort(),delete i.value[g]})},upload:l}),(v,b)=>(D(),G("div",{class:L([c(o).b(),c(o).m(v.listType),c(o).is("drag",v.drag),c(o).is("disabled",c(r))]),tabindex:c(r)?"-1":"0",onClick:p,onKeydown:Zt(dt(h,["self"]),["enter","space"])},[v.drag?(D(),_e(ine,{key:0,disabled:c(r),onFile:a},{default:se(()=>[de(v.$slots,"default")]),_:3},8,["disabled"])):de(v.$slots,"default",{key:1}),j("input",{ref_key:"inputRef",ref:s,class:L(c(o).e("input")),name:v.name,disabled:c(r),multiple:v.multiple,accept:v.accept,type:"file",onChange:f,onClick:dt(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var WS=Ve(lne,[["__file","upload-content.vue"]]);const GS="ElUpload",KS=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},une=(e,t)=>{const n=VM(e,"fileList",void 0,{passive:!0}),o=h=>n.value.find(m=>m.uid===h.uid);function r(h){var m;(m=t.value)==null||m.abort(h)}function i(h=["ready","uploading","success","fail"]){n.value=n.value.filter(m=>!h.includes(m.status))}function s(h){n.value=n.value.filter(m=>m.uid!==h.uid)}const a=(h,m)=>{const v=o(m);v&&(console.error(h),v.status="fail",s(v),e.onError(h,v,n.value),e.onChange(v,n.value))},l=(h,m)=>{const v=o(m);v&&(e.onProgress(h,v,n.value),v.status="uploading",v.percentage=Math.round(h.percent))},u=(h,m)=>{const v=o(m);v&&(v.status="success",v.response=h,e.onSuccess(h,v,n.value),e.onChange(v,n.value))},d=h=>{qn(h.uid)&&(h.uid=kg());const m={name:h.name,percentage:0,status:"ready",size:h.size,raw:h,uid:h.uid};if(e.listType==="picture-card"||e.listType==="picture")try{m.url=URL.createObjectURL(h)}catch(v){v.message,e.onError(v,m,n.value)}n.value=[...n.value,m],e.onChange(m,n.value)},f=async h=>{const m=h instanceof File?o(h):h;m||Ln(GS,"file to be removed not found");const v=b=>{r(b),s(b),e.onRemove(b,n.value),KS(b)};e.beforeRemove?await e.beforeRemove(m,n.value)!==!1&&v(m):v(m)};function p(){n.value.filter(({status:h})=>h==="ready").forEach(({raw:h})=>{var m;return h&&((m=t.value)==null?void 0:m.upload(h))})}return Te(()=>e.listType,h=>{h!=="picture-card"&&h!=="picture"||(n.value=n.value.map(m=>{const{raw:v,url:b}=m;if(!b&&v)try{m.url=URL.createObjectURL(v)}catch(g){e.onError(g,m,n.value)}return m}))}),Te(n,h=>{for(const m of h)m.uid||(m.uid=kg()),m.status||(m.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:a,handleProgress:l,handleStart:d,handleSuccess:u,handleRemove:f,submit:p,revokeFileObjectURL:KS}},cne=Q({name:"ElUpload"}),dne=Q({...cne,props:Xte,setup(e,{expose:t}){const n=e,o=po(),r=fn(),{abort:i,submit:s,clearFiles:a,uploadFiles:l,handleStart:u,handleError:d,handleRemove:f,handleSuccess:p,handleProgress:h,revokeFileObjectURL:m}=une(n,r),v=A(()=>n.listType==="picture-card"),b=A(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:p,onError:d,onRemove:f}));return Qt(()=>{l.value.forEach(m)}),Lt($k,{accept:Kt(n,"accept")}),t({abort:i,submit:s,clearFiles:a,handleStart:u,handleRemove:f}),(g,x)=>(D(),G("div",null,[c(v)&&g.showFileList?(D(),_e(HS,{key:0,disabled:c(o),"list-type":g.listType,files:c(l),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:c(f)},er({append:se(()=>[J(WS,Dt({ref_key:"uploadRef",ref:r},c(b)),{default:se(()=>[g.$slots.trigger?de(g.$slots,"trigger",{key:0}):pe("v-if",!0),!g.$slots.trigger&&g.$slots.default?de(g.$slots,"default",{key:1}):pe("v-if",!0)]),_:3},16)]),_:2},[g.$slots.file?{name:"default",fn:se(({file:y,index:_})=>[de(g.$slots,"file",{file:y,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):pe("v-if",!0),!c(v)||c(v)&&!g.showFileList?(D(),_e(WS,Dt({key:1,ref_key:"uploadRef",ref:r},c(b)),{default:se(()=>[g.$slots.trigger?de(g.$slots,"trigger",{key:0}):pe("v-if",!0),!g.$slots.trigger&&g.$slots.default?de(g.$slots,"default",{key:1}):pe("v-if",!0)]),_:3},16)):pe("v-if",!0),g.$slots.trigger?de(g.$slots,"default",{key:2}):pe("v-if",!0),de(g.$slots,"tip"),!c(v)&&g.showFileList?(D(),_e(HS,{key:3,disabled:c(o),"list-type":g.listType,files:c(l),crossorigin:g.crossorigin,"handle-preview":g.onPreview,onRemove:c(f)},er({_:2},[g.$slots.file?{name:"default",fn:se(({file:y,index:_})=>[de(g.$slots,"file",{file:y,index:_})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):pe("v-if",!0)]))}});var fne=Ve(dne,[["__file","upload.vue"]]);const hne=yt(fne),pne=Ue({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:le([String,Array]),default:"Element Plus"},font:{type:le(Object)},gap:{type:le(Array),default:()=>[100,100]},offset:{type:le(Array)}});function mne(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function vne(e){return Object.keys(e).map(t=>`${mne(t)}: ${e[t]};`).join(" ")}function gne(){return window.devicePixelRatio||1}const bne=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},Hk=3;function Sm(e,t,n=1){const o=document.createElement("canvas"),r=o.getContext("2d"),i=e*n,s=t*n;return o.setAttribute("width",`${i}px`),o.setAttribute("height",`${s}px`),r.save(),[r,o,i,s]}function yne(){function e(t,n,o,r,i,s,a,l){const[u,d,f,p]=Sm(r,i,o);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,p);else{const{color:K,fontSize:oe,fontStyle:X,fontWeight:Y,fontFamily:ie,textAlign:ae,textBaseline:re}=s,fe=Number(oe)*o;u.font=`${X} normal ${Y} ${fe}px/${i}px ${ie}`,u.fillStyle=K,u.textAlign=ae,u.textBaseline=re;const be=Oe(t)?t:[t];be==null||be.forEach((De,Re)=>{u.fillText(De??"",f/2,Re*(fe+Hk*o))})}const h=Math.PI/180*Number(n),m=Math.max(r,i),[v,b,g]=Sm(m,m,o);v.translate(g/2,g/2),v.rotate(h),f>0&&p>0&&v.drawImage(d,-f/2,-p/2);function x(K,oe){const X=K*Math.cos(h)-oe*Math.sin(h),Y=K*Math.sin(h)+oe*Math.cos(h);return[X,Y]}let y=0,_=0,w=0,S=0;const M=f/2,T=p/2;[[0-M,0-T],[0+M,0-T],[0+M,0+T],[0-M,0+T]].forEach(([K,oe])=>{const[X,Y]=x(K,oe);y=Math.min(y,X),_=Math.max(_,X),w=Math.min(w,Y),S=Math.max(S,Y)});const C=y+g/2,k=w+g/2,R=_-y,B=S-w,H=a*o,N=l*o,P=(R+H)*2,U=B+N,[I,O]=Sm(P,U);function q(K=0,oe=0){I.drawImage(b,C,k,R,B,K,oe,R,B)}return q(),q(R+H,-B/2-N/2),q(R+H,+B/2+N/2),[O.toDataURL(),P/o,U/o]}return e}const _ne=Q({name:"ElWatermark"}),xne=Q({..._ne,props:pne,setup(e){const t=e,n={position:"relative"},o=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.color)!=null?k:"rgba(0,0,0,.15)"}),r=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.fontSize)!=null?k:16}),i=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.fontWeight)!=null?k:"normal"}),s=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.fontStyle)!=null?k:"normal"}),a=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.fontFamily)!=null?k:"sans-serif"}),l=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.textAlign)!=null?k:"center"}),u=A(()=>{var C,k;return(k=(C=t.font)==null?void 0:C.textBaseline)!=null?k:"hanging"}),d=A(()=>t.gap[0]),f=A(()=>t.gap[1]),p=A(()=>d.value/2),h=A(()=>f.value/2),m=A(()=>{var C,k;return(k=(C=t.offset)==null?void 0:C[0])!=null?k:p.value}),v=A(()=>{var C,k;return(k=(C=t.offset)==null?void 0:C[1])!=null?k:h.value}),b=()=>{const C={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let k=m.value-p.value,R=v.value-h.value;return k>0&&(C.left=`${k}px`,C.width=`calc(100% - ${k}px)`,k=0),R>0&&(C.top=`${R}px`,C.height=`calc(100% - ${R}px)`,R=0),C.backgroundPosition=`${k}px ${R}px`,C},g=fn(null),x=fn(),y=F(!1),_=()=>{x.value&&(x.value.remove(),x.value=void 0)},w=(C,k)=>{var R;g.value&&x.value&&(y.value=!0,x.value.setAttribute("style",vne({...b(),backgroundImage:`url('${C}')`,backgroundSize:`${Math.floor(k)}px`})),(R=g.value)==null||R.append(x.value),setTimeout(()=>{y.value=!1}))},S=C=>{let k=120,R=64;const{image:B,content:H,width:N,height:P,rotate:U}=t;if(!B&&C.measureText){C.font=`${Number(r.value)}px ${a.value}`;const I=Oe(H)?H:[H];let O=0,q=0;I.forEach(X=>{const{width:Y,fontBoundingBoxAscent:ie,fontBoundingBoxDescent:ae,actualBoundingBoxAscent:re,actualBoundingBoxDescent:fe}=C.measureText(X),be=Bt(ie)?re+fe:ie+ae;Y>O&&(O=Math.ceil(Y)),be>q&&(q=Math.ceil(be))}),k=O,R=q*I.length+(I.length-1)*Hk;const K=Math.PI/180*Number(U),oe=Math.ceil(Math.abs(Math.sin(K)*R)/2);k+=oe}return[N??k,P??R]},M=yne(),T=()=>{const k=document.createElement("canvas").getContext("2d"),R=t.image,B=t.content,H=t.rotate;if(k){x.value||(x.value=document.createElement("div"));const N=gne(),[P,U]=S(k),I=O=>{const[q,K]=M(O||"",H,N,P,U,{color:o.value,fontSize:r.value,fontStyle:s.value,fontWeight:i.value,fontFamily:a.value,textAlign:l.value,textBaseline:u.value},d.value,f.value);w(q,K)};if(R){const O=new Image;O.onload=()=>{I(O)},O.onerror=()=>{I(B)},O.crossOrigin="anonymous",O.referrerPolicy="no-referrer",O.src=R}else I(B)}};return xt(()=>{T()}),Te(()=>t,()=>{T()},{deep:!0,flush:"post"}),Qt(()=>{_()}),zM(g,C=>{y.value||C.forEach(k=>{bne(k,x.value)&&(_(),T())})},{attributes:!0,subtree:!0,childList:!0}),(C,k)=>(D(),G("div",{ref_key:"containerRef",ref:g,style:rt([n])},[de(C.$slots,"default")],4))}});var Sne=Ve(xne,[["__file","watermark.vue"]]);const wne=yt(Sne),Cne=Ue({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:le(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Ene=(e,t,n,o,r)=>{const i=F(null),s=()=>{let f;return et(e.value)?f=document.querySelector(e.value):it(e.value)?f=e.value():f=e.value,f},a=()=>{const f=s();if(!f||!t.value){i.value=null;return}Mne(f)||f.scrollIntoView(r.value);const{left:p,top:h,width:m,height:v}=f.getBoundingClientRect();i.value={left:p,top:h,width:m,height:v,radius:0}};xt(()=>{Te([t,e],()=>{a()},{immediate:!0}),window.addEventListener("resize",a)}),Qt(()=>{window.removeEventListener("resize",a)});const l=f=>{var p;return(p=Oe(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?p:6},u=A(()=>{var f;if(!i.value)return i.value;const p=l(0),h=l(1),m=((f=n.value)==null?void 0:f.radius)||2;return{left:i.value.left-p,top:i.value.top-h,width:i.value.width+p*2,height:i.value.height+h*2,radius:m}}),d=A(()=>{const f=s();return!o.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var p,h,m,v;return window.DOMRect.fromRect({width:((p=u.value)==null?void 0:p.width)||0,height:((h=u.value)==null?void 0:h.height)||0,x:((m=u.value)==null?void 0:m.left)||0,y:((v=u.value)==null?void 0:v.top)||0})}}});return{mergedPosInfo:u,triggerTarget:d}},R0=Symbol("ElTour");function Mne(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:i,left:s}=e.getBoundingClientRect();return o>=0&&s>=0&&r<=t&&i<=n}const Tne=(e,t,n,o,r,i,s,a)=>{const l=F(),u=F(),d=F({}),f={x:l,y:u,placement:o,strategy:r,middlewareData:d},p=A(()=>{const g=[Sk(c(i)),Pee(),Ree(),Ane()];return c(a)&&c(n)&&g.push(wk({element:c(n)})),g}),h=async()=>{if(!Ft)return;const g=c(e),x=c(t);if(!g||!x)return;const y=await Ck(g,x,{placement:c(o),strategy:c(r),middleware:c(p)});gu(f).forEach(_=>{f[_].value=y[_]})},m=A(()=>{if(!c(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:c(s)};const{overflow:g}=c(d);return{position:c(r),zIndex:c(s),top:c(u)!=null?`${c(u)}px`:"",left:c(l)!=null?`${c(l)}px`:"",maxWidth:g!=null&&g.maxWidth?`${g==null?void 0:g.maxWidth}px`:""}}),v=A(()=>{if(!c(a))return{};const{arrow:g}=c(d);return{left:(g==null?void 0:g.x)!=null?`${g==null?void 0:g.x}px`:"",top:(g==null?void 0:g.y)!=null?`${g==null?void 0:g.y}px`:""}});let b;return xt(()=>{const g=c(e),x=c(t);g&&x&&(b=Aee(g,x,h)),co(()=>{h()})}),Qt(()=>{b&&b()}),{update:h,contentStyle:m,arrowStyle:v}},Ane=()=>({name:"overflow",async fn(e){const t=await kee(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),kne=Q({name:"ElTourMask",inheritAttrs:!1}),Rne=Q({...kne,props:Cne,setup(e){const t=e,{ns:n}=je(R0),o=A(()=>{var a,l;return(l=(a=t.pos)==null?void 0:a.radius)!=null?l:2}),r=A(()=>{const a=o.value,l=`a${a},${a} 0 0 1`;return{topRight:`${l} ${a},${a}`,bottomRight:`${l} ${-a},${a}`,bottomLeft:`${l} ${-a},${-a}`,topLeft:`${l} ${a},${-a}`}}),i=A(()=>{const a=window.innerWidth,l=window.innerHeight,u=r.value,d=`M${a},0 L0,0 L0,${l} L${a},${l} L${a},0 Z`,f=o.value;return t.pos?`${d} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${u.topRight} v${t.pos.height-f*2} ${u.bottomRight} h${-t.pos.width+f*2} ${u.bottomLeft} v${-t.pos.height+f*2} ${u.topLeft} z`:d}),s=A(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return Zy(Kt(t,"visible"),{ns:n}),(a,l)=>a.visible?(D(),G("div",Dt({key:0,class:c(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:a.zIndex,pointerEvents:a.pos&&a.targetAreaClickable?"none":"auto"}},a.$attrs),[(D(),G("svg",{style:{width:"100%",height:"100%"}},[j("path",{class:L(c(n).e("hollow")),style:rt(c(s)),d:c(i)},null,14,["d"])]))],16)):pe("v-if",!0)}});var Pne=Ve(Rne,[["__file","mask.vue"]]);const Dne=["absolute","fixed"],Ine=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],O1=Ue({placement:{type:le(String),values:Ine,default:"bottom"},reference:{type:le(Object),default:null},strategy:{type:le(String),values:Dne,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Lne={close:()=>!0},Nne=Q({name:"ElTourContent"}),One=Q({...Nne,props:O1,emits:Lne,setup(e,{emit:t}){const n=e,o=F(n.placement),r=F(n.strategy),i=F(null),s=F(null);Te(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:a,arrowStyle:l}=Tne(Kt(n,"reference"),i,s,o,r,Kt(n,"offset"),Kt(n,"zIndex"),Kt(n,"showArrow")),u=A(()=>o.value.split("-")[0]),{ns:d}=je(R0),f=()=>{t("close")},p=h=>{h.detail.focusReason==="pointer"&&h.preventDefault()};return(h,m)=>(D(),G("div",{ref_key:"contentRef",ref:i,style:rt(c(a)),class:L(c(d).e("content")),"data-side":c(u),tabindex:"-1"},[J(c(Yu),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:f,onFocusoutPrevented:p},{default:se(()=>[de(h.$slots,"default")]),_:3},8,["focus-trap-el"]),h.showArrow?(D(),G("span",{key:0,ref_key:"arrowRef",ref:s,style:rt(c(l)),class:L(c(d).e("arrow"))},null,6)):pe("v-if",!0)],14,["data-side"]))}});var Fne=Ve(One,[["__file","content.vue"]]),Bne=Q({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var r,i;const s=(r=t.default)==null?void 0:r.call(t),a=[];let l=0;function u(d){Oe(d)&&d.forEach(f=>{var p;((p=(f==null?void 0:f.type)||{})==null?void 0:p.name)==="ElTourStep"&&(a.push(f),l+=1)})}return s.length&&u(mi((i=s[0])==null?void 0:i.children)),o!==l&&(o=l,n("update-total",l)),a.length?a[e.current]:null}}});const $ne=Ue({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:tn},placement:O1.placement,contentStyle:{type:le([Object])},mask:{type:le([Boolean,Object]),default:!0},gap:{type:le(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:le([Boolean,Object]),default:()=>({block:"center"})},type:{type:le(String)},appendTo:{type:g0.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Une={[vt]:e=>Jt(e),"update:current":e=>st(e),close:e=>st(e),finish:()=>!0,change:e=>st(e)},zne=Q({name:"ElTour"}),Vne=Q({...zne,props:$ne,emits:Une,setup(e,{emit:t}){const n=e,o=Pe("tour"),r=F(0),i=F(),s=VM(n,"current",t,{passive:!0}),a=A(()=>{var E;return(E=i.value)==null?void 0:E.target}),l=A(()=>[o.b(),b.value==="primary"?o.m("primary"):""]),u=A(()=>{var E;return((E=i.value)==null?void 0:E.placement)||n.placement}),d=A(()=>{var E,C;return(C=(E=i.value)==null?void 0:E.contentStyle)!=null?C:n.contentStyle}),f=A(()=>{var E,C;return(C=(E=i.value)==null?void 0:E.mask)!=null?C:n.mask}),p=A(()=>!!f.value&&n.modelValue),h=A(()=>Jt(f.value)?void 0:f.value),m=A(()=>{var E,C;return!!a.value&&((C=(E=i.value)==null?void 0:E.showArrow)!=null?C:n.showArrow)}),v=A(()=>{var E,C;return(C=(E=i.value)==null?void 0:E.scrollIntoViewOptions)!=null?C:n.scrollIntoViewOptions}),b=A(()=>{var E,C;return(C=(E=i.value)==null?void 0:E.type)!=null?C:n.type}),{nextZIndex:g}=qu(),x=g(),y=A(()=>{var E;return(E=n.zIndex)!=null?E:x}),{mergedPosInfo:_,triggerTarget:w}=Ene(a,Kt(n,"modelValue"),Kt(n,"gap"),f,v);Te(()=>n.modelValue,E=>{E||(s.value=0)});const S=()=>{n.closeOnPressEscape&&(t(vt,!1),t("close",s.value))},M=E=>{r.value=E},T=Wn();return Lt(R0,{currentStep:i,current:s,total:r,showClose:Kt(n,"showClose"),closeIcon:Kt(n,"closeIcon"),mergedType:b,ns:o,slots:T,updateModelValue(E){t(vt,E)},onClose(){t("close",s.value)},onFinish(){t("finish")},onChange(){t(It,s.value)}}),(E,C)=>(D(),G(tt,null,[J(c(Xu),{to:E.appendTo},{default:se(()=>{var k,R;return[j("div",Dt({class:c(l)},E.$attrs),[J(Pne,{visible:c(p),fill:(k=c(h))==null?void 0:k.color,style:rt((R=c(h))==null?void 0:R.style),pos:c(_),"z-index":c(y),"target-area-clickable":E.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),E.modelValue?(D(),_e(Fne,{key:c(s),reference:c(w),placement:c(u),"show-arrow":c(m),"z-index":c(y),style:rt(c(d)),onClose:S},{default:se(()=>[J(c(Bne),{current:c(s),onUpdateTotal:M},{default:se(()=>[de(E.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):pe("v-if",!0)],16)]}),_:3},8,["to"]),pe(" just for IDE "),pe("v-if",!0)],64))}});var Hne=Ve(Vne,[["__file","tour.vue"]]);const Wne=Ue({target:{type:le([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:tn},showArrow:{type:Boolean,default:void 0},placement:O1.placement,mask:{type:le([Boolean,Object]),default:void 0},contentStyle:{type:le([Object])},prevButtonProps:{type:le(Object)},nextButtonProps:{type:le(Object)},scrollIntoViewOptions:{type:le([Boolean,Object]),default:void 0},type:{type:le(String)}}),Gne={close:()=>!0},Kne=Q({name:"ElTourStep"}),qne=Q({...Kne,props:Wne,emits:Gne,setup(e,{emit:t}){const n=e,{Close:o}=u3,{t:r}=$t(),{currentStep:i,current:s,total:a,showClose:l,closeIcon:u,mergedType:d,ns:f,slots:p,updateModelValue:h,onClose:m,onFinish:v,onChange:b}=je(R0);Te(n,T=>{i.value=T},{immediate:!0});const g=A(()=>{var T;return(T=n.showClose)!=null?T:l.value}),x=A(()=>{var T,E;return(E=(T=n.closeIcon)!=null?T:u.value)!=null?E:o}),y=T=>{if(T)return t8(T,["children","onClick"])},_=()=>{var T,E;s.value-=1,(T=n.prevButtonProps)!=null&&T.onClick&&((E=n.prevButtonProps)==null||E.onClick()),b()},w=()=>{var T;s.value>=a.value-1?S():s.value+=1,(T=n.nextButtonProps)!=null&&T.onClick&&n.nextButtonProps.onClick(),b()},S=()=>{M(),v()},M=()=>{h(!1),m(),t("close")};return(T,E)=>(D(),G(tt,null,[c(g)?(D(),G("button",{key:0,"aria-label":"Close",class:L(c(f).e("closebtn")),type:"button",onClick:M},[J(c(Je),{class:L(c(f).e("close"))},{default:se(()=>[(D(),_e(Rt(c(x))))]),_:1},8,["class"])],2)):pe("v-if",!0),j("header",{class:L([c(f).e("header"),{"show-close":c(l)}])},[de(T.$slots,"header",{},()=>[j("span",{role:"heading",class:L(c(f).e("title"))},ze(T.title),3)])],2),j("div",{class:L(c(f).e("body"))},[de(T.$slots,"default",{},()=>[j("span",null,ze(T.description),1)])],2),j("footer",{class:L(c(f).e("footer"))},[j("div",{class:L(c(f).b("indicators"))},[c(p).indicators?(D(),_e(Rt(c(p).indicators),{key:0,current:c(s),total:c(a)},null,8,["current","total"])):(D(!0),G(tt,{key:1},Nt(c(a),(C,k)=>(D(),G("span",{key:C,class:L([c(f).b("indicator"),k===c(s)?"is-active":""])},null,2))),128))],2),j("div",{class:L(c(f).b("buttons"))},[c(s)>0?(D(),_e(c(Qn),Dt({key:0,size:"small",type:c(d)},y(T.prevButtonProps),{onClick:_}),{default:se(()=>{var C,k;return[Tt(ze((k=(C=T.prevButtonProps)==null?void 0:C.children)!=null?k:c(r)("el.tour.previous")),1)]}),_:1},16,["type"])):pe("v-if",!0),c(s)<=c(a)-1?(D(),_e(c(Qn),Dt({key:1,size:"small",type:c(d)==="primary"?"default":"primary"},y(T.nextButtonProps),{onClick:w}),{default:se(()=>{var C,k;return[Tt(ze((k=(C=T.nextButtonProps)==null?void 0:C.children)!=null?k:c(s)===c(a)-1?c(r)("el.tour.finish"):c(r)("el.tour.next")),1)]}),_:1},16,["type"])):pe("v-if",!0)],2)],2)],64))}});var Wk=Ve(qne,[["__file","step.vue"]]);const jne=yt(Hne,{TourStep:Wk}),Yne=gn(Wk),Xne=Ue({container:{type:le([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:le(String),default:"default"},direction:{type:le(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),Zne={change:e=>et(e),click:(e,t)=>e instanceof MouseEvent&&(et(t)||Bt(t))},Gk=Symbol("anchor"),Df=e=>{if(!Ft||e==="")return null;if(et(e))try{return document.querySelector(e)}catch{return null}return e};function Jne(e){let t=0;const n=(...o)=>{t&&nl(t),t=ra(()=>{e(...o),t=0})};return n.cancel=()=>{nl(t),t=0},n}const Qne=Q({name:"ElAnchor"}),eoe=Q({...Qne,props:Xne,emits:Zne,setup(e,{expose:t,emit:n}){const o=e,r=F(""),i=F(null),s=F(null),a=F(),l={};let u=!1,d=0;const f=Pe("anchor"),p=A(()=>[f.b(),o.type==="underline"?f.m("underline"):"",f.m(o.direction)]),h=T=>{l[T.href]=T.el},m=T=>{delete l[T]},v=T=>{r.value!==T&&(r.value=T,n(It,T))};let b=null;const g=T=>{if(!a.value)return;const E=Df(T);if(!E)return;b&&b(),u=!0;const C=X2(E,a.value),k=Hv(E,C),R=C.scrollHeight-C.clientHeight,B=Math.min(k-o.offset,R);b=iF(a.value,d,B,o.duration,()=>{setTimeout(()=>{u=!1},20)})},x=T=>{T&&(v(T),g(T))},y=(T,E)=>{n("click",T,E),x(E)},_=Jne(()=>{a.value&&(d=Z2(a.value));const T=w();u||Bt(T)||v(T)}),w=()=>{if(!a.value)return;const T=Z2(a.value),E=[];for(const C of Object.keys(l)){const k=Df(C);if(!k)continue;const R=X2(k,a.value),B=Hv(k,R);E.push({top:B-o.offset-o.bound,href:C})}E.sort((C,k)=>C.top-k.top);for(let C=0;CT))return k.href}},S=()=>{const T=Df(o.container);!T||l0(T)?a.value=window:a.value=T};on(a,"scroll",_);const M=A(()=>{if(!i.value||!s.value||!r.value)return{};const T=l[r.value];if(!T)return{};const E=i.value.getBoundingClientRect(),C=s.value.getBoundingClientRect(),k=T.getBoundingClientRect();return o.direction==="horizontal"?{left:`${k.left-E.left}px`,width:`${k.width}px`,opacity:1}:{top:`${k.top-E.top+(k.height-C.height)/2}px`,opacity:1}});return xt(()=>{S();const T=decodeURIComponent(window.location.hash);Df(T)?x(T):_()}),Te(()=>o.container,()=>{S()}),Lt(Gk,{ns:f,direction:o.direction,currentAnchor:r,addLink:h,removeLink:m,handleClick:y}),t({scrollTo:x}),(T,E)=>(D(),G("div",{ref_key:"anchorRef",ref:i,class:L(c(p))},[T.marker?(D(),G("div",{key:0,ref_key:"markerRef",ref:s,class:L(c(f).e("marker")),style:rt(c(M))},null,6)):pe("v-if",!0),j("div",{class:L(c(f).e("list"))},[de(T.$slots,"default")],2)],2))}});var toe=Ve(eoe,[["__file","anchor.vue"]]);const noe=Ue({title:String,href:String}),ooe=Q({name:"ElAnchorLink"}),roe=Q({...ooe,props:noe,setup(e){const t=e,n=F(null),{ns:o,direction:r,currentAnchor:i,addLink:s,removeLink:a,handleClick:l}=je(Gk),u=A(()=>[o.e("link"),o.is("active",i.value===t.href)]),d=f=>{l(f,t.href)};return Te(()=>t.href,(f,p)=>{Qe(()=>{p&&a(p),f&&s({href:f,el:n.value})})}),xt(()=>{const{href:f}=t;f&&s({href:f,el:n.value})}),Qt(()=>{const{href:f}=t;f&&a(f)}),(f,p)=>(D(),G("div",{class:L(c(o).e("item"))},[j("a",{ref_key:"linkRef",ref:n,class:L(c(u)),href:f.href,onClick:d},[de(f.$slots,"default",{},()=>[Tt(ze(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&c(r)==="vertical"?(D(),G("div",{key:0,class:L(c(o).e("list"))},[de(f.$slots,"sub-link")],2)):pe("v-if",!0)],2))}});var Kk=Ve(roe,[["__file","anchor-link.vue"]]);const ioe=yt(toe,{AnchorLink:Kk}),soe=gn(Kk),qk={label:"label",value:"value",disabled:"disabled"},aoe=Ue({direction:{type:le(String),default:"horizontal"},options:{type:le(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:le(Object),default:()=>qk},block:Boolean,size:Vn,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...ho(["ariaLabel"])}),loe={[vt]:e=>et(e)||st(e)||Jt(e),[It]:e=>et(e)||st(e)||Jt(e)},uoe=Q({name:"ElSegmented"}),coe=Q({...uoe,props:aoe,emits:loe,setup(e,{emit:t}){const n=e,o=Pe("segmented"),r=fo(),i=Fn(),s=po(),{formItem:a}=xo(),{inputId:l,isLabeledByFormItem:u}=Br(n,{formItemContext:a}),d=F(null),f=T8(),p=Gt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),h=C=>{const k=v(C);t(vt,k),t(It,k)},m=A(()=>({...qk,...n.props})),v=C=>Ct(C)?C[m.value.value]:C,b=C=>Ct(C)?C[m.value.label]:C,g=C=>!!(s.value||Ct(C)&&C[m.value.disabled]),x=C=>n.modelValue===v(C),y=C=>n.options.find(k=>v(k)===C),_=C=>[o.e("item"),o.is("selected",x(C)),o.is("disabled",g(C))],w=()=>{if(!d.value)return;const C=d.value.querySelector(".is-selected"),k=d.value.querySelector(".is-selected input");if(!C||!k){p.width=0,p.height=0,p.translateX=0,p.translateY=0,p.focusVisible=!1;return}const R=C.getBoundingClientRect();p.isInit=!0,n.direction==="vertical"?(p.height=R.height,p.translateY=C.offsetTop):(p.width=R.width,p.translateX=C.offsetLeft);try{p.focusVisible=k.matches(":focus-visible")}catch{}},S=A(()=>[o.b(),o.m(i.value),o.is("block",n.block)]),M=A(()=>({width:n.direction==="vertical"?"100%":`${p.width}px`,height:n.direction==="vertical"?`${p.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"})),T=A(()=>[o.e("item-selected"),o.is("disabled",g(y(n.modelValue))),o.is("focus-visible",p.focusVisible)]),E=A(()=>n.name||r.value);return vn(d,w),Te(f,w),Te(()=>n.modelValue,()=>{var C;w(),n.validateEvent&&((C=a==null?void 0:a.validate)==null||C.call(a,"change").catch(k=>void 0))},{flush:"post"}),(C,k)=>C.options.length?(D(),G("div",{key:0,id:c(l),ref_key:"segmentedRef",ref:d,class:L(c(S)),role:"radiogroup","aria-label":c(u)?void 0:C.ariaLabel||"segmented","aria-labelledby":c(u)?c(a).labelId:void 0},[j("div",{class:L([c(o).e("group"),c(o).m(n.direction)])},[j("div",{style:rt(c(M)),class:L(c(T))},null,6),(D(!0),G(tt,null,Nt(C.options,(R,B)=>(D(),G("label",{key:B,class:L(_(R))},[j("input",{class:L(c(o).e("item-input")),type:"radio",name:c(E),disabled:g(R),checked:x(R),onChange:H=>h(R)},null,42,["name","disabled","checked","onChange"]),j("div",{class:L(c(o).e("item-label"))},[de(C.$slots,"default",{item:R},()=>[Tt(ze(b(R)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):pe("v-if",!0)}});var doe=Ve(coe,[["__file","segmented.vue"]]);const foe=yt(doe),hoe=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},poe=(e,t,n)=>{const{selectionEnd:o}=e;if(o===null)return;const r=e.value,i=Eo(t);let s=-1,a;for(let l=o-1;l>=0;--l){const u=r[l];if(u===n||u===` `||u==="\r"){s=l;continue}if(i.includes(u)){const d=s===-1?o:s;a={pattern:r.slice(l+1,d),start:l+1,end:d,prefix:u,prefixIndex:l,splitIndex:s,selectionEnd:o};break}}return a},moe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,o=e.selectionEnd!==null?e.selectionEnd:0,r=t.useSelectionEnd?o:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const s=document.createElement("div");s.id="input-textarea-caret-position-mirror-div",document.body.appendChild(s);const a=s.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";a.whiteSpace=u?"nowrap":"pre-wrap",u||(a.wordWrap="break-word"),a.position="absolute",t.debug||(a.visibility="hidden"),i.forEach(p=>{if(u&&p==="lineHeight")if(l.boxSizing==="border-box"){const h=Number.parseInt(l.height),m=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),v=m+Number.parseInt(l.lineHeight);h>v?a.lineHeight=`${h-m}px`:h===v?a.lineHeight=l.lineHeight:a.lineHeight="0"}else a.lineHeight=l.height;else a[p]=l[p]}),xy()?e.scrollHeight>Number.parseInt(l.height)&&(a.overflowY="scroll"):a.overflow="hidden",s.textContent=e.value.slice(0,Math.max(0,r)),u&&s.textContent&&(s.textContent=s.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,r))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,s.appendChild(d);const f={top:d.offsetTop+Number.parseInt(l.borderTopWidth),left:d.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(s),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},voe=Ue({...Sy,options:{type:le(Array),default:()=>[]},prefix:{type:le([String,Array]),default:"@",validator:e=>et(e)?e.length===1:e.every(t=>et(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:le([Boolean,Function]),default:()=>hoe,validator:e=>e===!1?!0:it(e)},placement:{type:le(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:le(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})}}),goe={[vt]:e=>et(e),input:e=>et(e),search:(e,t)=>et(e)&&et(t),select:(e,t)=>et(e.value)&&et(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},boe=Ue({options:{type:le(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),yoe={select:e=>et(e.value)},_oe=Q({name:"ElMentionDropdown"}),xoe=Q({..._oe,props:boe,emits:yoe,setup(e,{expose:t,emit:n}){const o=e,r=Pe("mention"),{t:i}=$t(),s=F(-1),a=F(),l=F(),u=F(),d=(y,_)=>[r.be("dropdown","item"),r.is("hovering",s.value===_),r.is("disabled",y.disabled||o.disabled)],f=y=>{y.disabled||o.disabled||n("select",y)},p=y=>{s.value=y},h=A(()=>o.disabled||o.options.every(y=>y.disabled)),m=A(()=>o.options[s.value]),v=()=>{m.value&&n("select",m.value)},b=y=>{const{options:_}=o;if(_.length===0||h.value)return;y==="next"?(s.value++,s.value===_.length&&(s.value=0)):y==="prev"&&(s.value--,s.value<0&&(s.value=_.length-1));const w=_[s.value];if(w.disabled){b(y);return}Qe(()=>g(w))},g=y=>{var _,w,S,M;const{options:T}=o,E=T.findIndex(k=>k.value===y.value),C=(_=l.value)==null?void 0:_[E];if(C){const k=(S=(w=u.value)==null?void 0:w.querySelector)==null?void 0:S.call(w,`.${r.be("dropdown","wrap")}`);k&&gy(k,C)}(M=a.value)==null||M.handleScroll()};return Te(()=>o.options,()=>{h.value||o.options.length===0?s.value=-1:s.value=0},{immediate:!0}),t({hoveringIndex:s,navigateOptions:b,selectHoverOption:v,hoverOption:m}),(y,_)=>(D(),G("div",{ref_key:"dropdownRef",ref:u,class:L(c(r).b("dropdown"))},[y.$slots.header?(D(),G("div",{key:0,class:L(c(r).be("dropdown","header"))},[de(y.$slots,"header")],2)):pe("v-if",!0),_t(J(c(Ii),{id:y.contentId,ref_key:"scrollbarRef",ref:a,tag:"ul","wrap-class":c(r).be("dropdown","wrap"),"view-class":c(r).be("dropdown","list"),role:"listbox","aria-label":y.ariaLabel,"aria-orientation":"vertical"},{default:se(()=>[(D(!0),G(tt,null,Nt(y.options,(w,S)=>(D(),G("li",{id:`${y.contentId}-${S}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S,class:L(d(w,S)),role:"option","aria-disabled":w.disabled||y.disabled||void 0,"aria-selected":s.value===S,onMousemove:M=>p(S),onClick:dt(M=>f(w),["stop"])},[de(y.$slots,"label",{item:w,index:S},()=>{var M;return[j("span",null,ze((M=w.label)!=null?M:w.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[Vt,y.options.length>0&&!y.loading]]),y.loading?(D(),G("div",{key:1,class:L(c(r).be("dropdown","loading"))},[de(y.$slots,"loading",{},()=>[Tt(ze(c(i)("el.mention.loading")),1)])],2)):pe("v-if",!0),y.$slots.footer?(D(),G("div",{key:2,class:L(c(r).be("dropdown","footer"))},[de(y.$slots,"footer")],2)):pe("v-if",!0)],2))}});var Soe=Ve(xoe,[["__file","mention-dropdown.vue"]]);const woe=Q({name:"ElMention",inheritAttrs:!1}),Coe=Q({...woe,props:voe,emits:goe,setup(e,{expose:t,emit:n}){const o=e,r=A(()=>qr(o,Object.keys(Sy))),i=Pe("mention"),s=po(),a=fo(),l=F(),u=F(),d=F(),f=F(!1),p=F(),h=F(),m=A(()=>o.showArrow?o.placement:`${o.placement}-start`),v=A(()=>o.showArrow?["bottom","top"]:["bottom-start","top-start"]),b=A(()=>{const{filterOption:R,options:B}=o;return!h.value||!R?B:B.filter(H=>R(h.value.pattern,H))}),g=A(()=>f.value&&(!!b.value.length||o.loading)),x=A(()=>{var R;return`${a.value}-${(R=d.value)==null?void 0:R.hoveringIndex}`}),y=R=>{n(vt,R),n(zn,R),E()},_=R=>{var B,H,N,P;if(!(!("code"in R)||(B=l.value)!=null&&B.isComposing))switch(R.code){case Ke.left:case Ke.right:E();break;case Ke.up:case Ke.down:if(!f.value)return;R.preventDefault(),(H=d.value)==null||H.navigateOptions(R.code===Ke.up?"prev":"next");break;case Ke.enter:case Ke.numpadEnter:if(!f.value)return;R.preventDefault(),(N=d.value)!=null&&N.hoverOption?(P=d.value)==null||P.selectHoverOption():f.value=!1;break;case Ke.esc:if(!f.value)return;R.preventDefault(),f.value=!1;break;case Ke.backspace:if(o.whole&&h.value){const{splitIndex:U,selectionEnd:I,pattern:O,prefixIndex:q,prefix:K}=h.value,oe=T();if(!oe)return;const X=oe.value,Y=o.options.find(ae=>ae.value===O);if((it(o.checkIsWhole)?o.checkIsWhole(O,K):Y)&&U!==-1&&U+1===I){R.preventDefault();const ae=X.slice(0,q)+X.slice(U+1);n(vt,ae),n(zn,ae);const re=q;Qe(()=>{oe.selectionStart=re,oe.selectionEnd=re,k()})}}}},{wrapperRef:w}=ma(l,{beforeFocus(){return s.value},afterFocus(){E()},beforeBlur(R){var B;return(B=u.value)==null?void 0:B.isFocusInsideContent(R)},afterBlur(){f.value=!1}}),S=()=>{E()},M=R=>{if(!h.value)return;const B=T();if(!B)return;const H=B.value,{split:N}=o,P=H.slice(h.value.end),U=P.startsWith(N),I=`${R.value}${U?"":N}`,O=H.slice(0,h.value.start)+I+P;n(vt,O),n(zn,O),n("select",R,h.value.prefix);const q=h.value.start+I.length+(U?1:0);Qe(()=>{B.selectionStart=q,B.selectionEnd=q,B.focus(),k()})},T=()=>{var R,B;return o.type==="textarea"?(R=l.value)==null?void 0:R.textarea:(B=l.value)==null?void 0:B.input},E=()=>{setTimeout(()=>{C(),k(),Qe(()=>{var R;return(R=u.value)==null?void 0:R.updatePopper()})},0)},C=()=>{const R=T();if(!R)return;const B=moe(R),H=R.getBoundingClientRect(),N=l.value.$el.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${B.height}px`,left:`${B.left+H.left-N.left}px`,top:`${B.top+H.top-N.top}px`}},k=()=>{const R=T();if(document.activeElement!==R){f.value=!1;return}const{prefix:B,split:H}=o;if(h.value=poe(R,B,H),h.value&&h.value.splitIndex===-1){f.value=!0,n("search",h.value.pattern,h.value.prefix);return}f.value=!1};return t({input:l,tooltip:u,dropdownVisible:g}),(R,B)=>(D(),G("div",{ref_key:"wrapperRef",ref:w,class:L(c(i).b())},[J(c(To),Dt(Dt(c(r),R.$attrs),{ref_key:"elInputRef",ref:l,"model-value":R.modelValue,disabled:c(s),role:c(g)?"combobox":void 0,"aria-activedescendant":c(g)?c(x)||"":void 0,"aria-controls":c(g)?c(a):void 0,"aria-expanded":c(g)||void 0,"aria-label":R.ariaLabel,"aria-autocomplete":c(g)?"none":void 0,"aria-haspopup":c(g)?"listbox":void 0,onInput:y,onKeydown:_,onMousedown:S}),er({_:2},[Nt(R.$slots,(H,N)=>({name:N,fn:se(P=>[de(R.$slots,N,cr(wi(P)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),J(c(_o),{ref_key:"tooltipRef",ref:u,visible:c(g),"popper-class":[c(i).e("popper"),R.popperClass],"popper-options":R.popperOptions,placement:c(m),"fallback-placements":c(v),effect:"light",pure:"",offset:R.offset,"show-arrow":R.showArrow},{default:se(()=>[j("div",{style:rt(p.value)},null,4)]),content:se(()=>{var H;return[J(Soe,{ref_key:"dropdownRef",ref:d,options:c(b),disabled:c(s),loading:R.loading,"content-id":c(a),"aria-label":R.ariaLabel,onSelect:M,onClick:dt((H=l.value)==null?void 0:H.focus,["stop"])},er({_:2},[Nt(R.$slots,(N,P)=>({name:P,fn:se(U=>[de(R.$slots,P,cr(wi(U)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Eoe=Ve(Coe,[["__file","mention.vue"]]);const Moe=yt(Eoe),Toe=Ue({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]}}),jk=Symbol("splitterRootContextKey");function Aoe(e){const t=F(),{width:n,height:o}=L8(t),r=A(()=>e.value==="horizontal"?n.value:o.value);return{containerEl:t,containerSize:r}}function F1(e){return Number(e.slice(0,-1))/100}function B1(e){return Number(e.slice(0,-2))}function $1(e){return et(e)&&e.endsWith("%")}function U1(e){return et(e)&&e.endsWith("px")}function koe(e,t){const n=A(()=>e.value.map(a=>a.size)),o=A(()=>e.value.length),r=F([]);Te([n,o,t],()=>{var a;let l=[],u=0;for(let f=0;ff+(p||0),0);if(d>1||!u){const f=1/d;l=l.map(p=>p===void 0?0:p*f)}else{const f=(1-d)/u;l=l.map(p=>p===void 0?f:p)}r.value=l});const i=a=>a*t.value,s=A(()=>r.value.map(i));return{percentSizes:r,pxSizes:s}}function Roe(e,t,n){const o=h=>h*t.value||0;function r(h,m){return $1(h)?o(F1(h)):U1(h)?B1(h):h??m}const i=F(null);let s=[];const a=A(()=>e.value.map(h=>[h.min,h.max])),l=h=>{i.value={index:h,confirmed:!1},s=n.value},u=(h,m)=>{var v,b;let g=null;if((!i.value||!i.value.confirmed)&&m!==0){if(m>0)g=h,i.value={index:h,confirmed:!0};else for(let C=h;C>=0;C-=1)if(s[C]>0){g=C,i.value={index:C,confirmed:!0};break}}const x=(b=g??((v=i.value)==null?void 0:v.index))!=null?b:h,y=[...s],_=x+1,w=r(a.value[x][0],0),S=r(a.value[_][0],0),M=r(a.value[x][1],t.value||0),T=r(a.value[_][1],t.value||0);let E=m;y[x]+EM&&(E=M-y[x]),y[_]-E>T&&(E=y[_]-T),y[x]+=E,y[_]-=E,e.value.forEach((C,k)=>{C.size=y[k]})},d=()=>{i.value=null,s=[]},f=[];return{onMoveStart:l,onMoving:u,onMoveEnd:d,movingIndex:i,onCollapse:(h,m)=>{const v=n.value,b=m==="start"?h:h+1,g=m==="start"?h+1:h,x=v[b],y=v[g];if(x!==0&&y!==0)v[b]=0,v[g]+=x,f[h]=x;else{const _=x+y,w=f[h],S=_-w;v[g]=w,v[b]=S}e.value.forEach((_,w)=>{_.size=v[w]})}}}const Poe=Q({name:"ElSplitter"}),Doe=Q({...Poe,props:Toe,emits:["resizeStart","resize","resizeEnd"],setup(e,{emit:t}){const n=e,o=Pe("splitter"),{containerEl:r,containerSize:i}=Aoe(Kt(n,"layout")),{removeChild:s,children:a,addChild:l}=b0(Pt(),"ElSplitterPanel");Te(a,()=>{a.value.forEach((y,_)=>{y.setIndex(_)})});const{percentSizes:u,pxSizes:d}=koe(a,i),{onMoveStart:f,onMoving:p,onMoveEnd:h,onCollapse:m,movingIndex:v}=Roe(a,i,d),b=y=>{f(y),t("resizeStart",y,d.value)},g=(y,_)=>{p(y,_),t("resize",y,d.value)},x=y=>{h(),t("resizeEnd",y,d.value)};return Lt(jk,Gt({panels:a,percentSizes:u,pxSizes:d,layout:n.layout,movingIndex:v,containerSize:i,onMoveStart:b,onMoving:g,onMoveEnd:x,onCollapse:m,registerPanel:y=>{a.value.push(y)},sortPanel:l,unregisterPanel:s})),(y,_)=>(D(),G("div",{ref_key:"containerEl",ref:r,class:L([c(o).b(),c(o).e(y.layout)])},[de(y.$slots,"default"),pe(" Prevent iframe touch events from breaking "),c(v)?(D(),G("div",{key:0,class:L([c(o).e("mask"),c(o).e(`mask-${y.layout}`)])},null,2)):pe("v-if",!0)],2))}});var Ioe=Ve(Doe,[["__file","splitter.vue"]]);function Loe(e){return e&&Ct(e)?e:{start:!!e,end:!!e}}function qS(e,t,n,o){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&o===0&&t>0)}const Noe=Q({name:"ElSplitterBar"}),Ooe=Q({...Noe,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},startCollapsible:{type:Boolean},endCollapsible:{type:Boolean}},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=e,o=Pe("splitter-bar"),r=A(()=>n.layout==="horizontal"),i=A(()=>r.value?{width:0}:{height:0}),s=A(()=>({width:r.value?"16px":"100%",height:r.value?"100%":"16px",cursor:r.value?"col-resize":"row-resize",touchAction:"none"})),a=A(()=>{const g=o.e("dragger");let x=r.value?`${g}-horizontal`:`${g}-vertical`;return l.value&&(x+=` ${g}-active`),x}),l=F(null),u=g=>{n.resizable&&(l.value=[g.pageX,g.pageY],t("moveStart",n.index),window.addEventListener("mouseup",h),window.addEventListener("mousemove",f))},d=g=>{if(n.resizable&&g.touches.length===1){g.preventDefault();const x=g.touches[0];l.value=[x.pageX,x.pageY],t("moveStart",n.index),window.addEventListener("touchend",m),window.addEventListener("touchmove",p)}},f=g=>{const{pageX:x,pageY:y}=g,_=x-l.value[0],w=y-l.value[1],S=r.value?_:w;t("moving",n.index,S)},p=g=>{if(g.touches.length===1){g.preventDefault();const x=g.touches[0],y=x.pageX-l.value[0],_=x.pageY-l.value[1],w=r.value?y:_;t("moving",n.index,w)}},h=()=>{l.value=null,window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",f),t("moveEnd",n.index)},m=()=>{l.value=null,window.removeEventListener("touchend",m),window.removeEventListener("touchmove",p),t("moveEnd",n.index)},v=A(()=>r.value?as:d0),b=A(()=>r.value?ko:Di);return(g,x)=>(D(),G("div",{class:L([c(o).b()]),style:rt(c(i))},[e.startCollapsible?(D(),G("div",{key:0,class:L([c(o).e("collapse-icon"),c(o).e(`${e.layout}-collapse-icon-start`)]),onClick:y=>t("collapse",e.index,"start")},[de(g.$slots,"start-collapsible",{},()=>[(D(),_e(Rt(c(v)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):pe("v-if",!0),j("div",{class:L([c(o).e("dragger"),c(a),e.resizable?"":c(o).e("disable")]),style:rt(c(s)),onMousedown:u,onTouchstart:d},null,38),e.endCollapsible?(D(),G("div",{key:1,class:L([c(o).e("collapse-icon"),c(o).e(`${e.layout}-collapse-icon-end`)]),onClick:y=>t("collapse",e.index,"end")},[de(g.$slots,"end-collapsible",{},()=>[(D(),_e(Rt(c(b)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):pe("v-if",!0)],6))}});var Foe=Ve(Ooe,[["__file","split-bar.vue"]]);const Boe=Ue({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!1}}),Yk="ElSplitterPanel",$oe=Q({name:Yk}),Uoe=Q({...$oe,props:Boe,emits:["update:size"],setup(e,{emit:t}){const n=e,o=Pe("splitter-panel"),r=je(jk);r||Ln(Yk,"usage: ");const{panels:i,layout:s,containerSize:a,pxSizes:l}=jn(r),{registerPanel:u,sortPanel:d,unregisterPanel:f,onCollapse:p,onMoveEnd:h,onMoveStart:m,onMoving:v}=r,b=F(),g=Pt().uid,x=F(0),y=A(()=>i.value[x.value]),_=N=>{x.value=N},w=A(()=>{var N;return y.value&&(N=l.value[x.value])!=null?N:0}),S=A(()=>{var N;return y.value&&(N=l.value[x.value+1])!=null?N:0}),M=A(()=>y.value?i.value[x.value+1]:null),T=A(()=>{var N;return M.value?n.resizable&&((N=M.value)==null?void 0:N.resizable)&&(w.value!==0||!n.min)&&(S.value!==0||!M.value.min):!1}),E=A(()=>y.value?x.value!==i.value.length-1:!1),C=A(()=>qS(y.value,w.value,M.value,S.value)),k=A(()=>qS(M.value,S.value,y.value,w.value));function R(N){return $1(N)?F1(N)*a.value||0:U1(N)?B1(N):N??0}let B=!1;Te(()=>n.size,()=>{if(y.value){const N=R(n.size),P=R(n.max),U=R(n.min),I=Math.min(Math.max(N,U||0),P||N);I!==N&&(B=!0,t("update:size",I)),y.value.size=I,Qe(()=>B=!1)}}),Te(()=>{var N;return(N=y.value)==null?void 0:N.size},N=>{!B&&N!==n.size&&t("update:size",N)}),Te(()=>n.resizable,N=>{y.value&&(y.value.resizable=N)});const H=Gt({el:b.value,uid:g,setIndex:_,...n,collapsible:Loe(n.collapsible)});return u(H),xt(()=>{d(H)}),fs(()=>f==null?void 0:f(g)),(N,P)=>(D(),G(tt,null,[j("div",Dt({ref_key:"panelEl",ref:b,class:[c(o).b()],style:{flexBasis:`${c(w)}px`}},N.$attrs),[de(N.$slots,"default")],16),c(E)?(D(),_e(Foe,{key:0,index:x.value,layout:c(s),resizable:c(T),"start-collapsible":c(C),"end-collapsible":c(k),onMoveStart:c(m),onMoving:c(v),onMoveEnd:c(h),onCollapse:c(p)},{"start-collapsible":se(()=>[de(N.$slots,"start-collapsible")]),"end-collapsible":se(()=>[de(N.$slots,"end-collapsible")]),_:3},8,["index","layout","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):pe("v-if",!0)],64))}});var Xk=Ve(Uoe,[["__file","split-panel.vue"]]);const zoe=yt(Ioe,{SplitPanel:Xk}),Voe=gn(Xk);var Hoe=[cF,R5,_U,lQ,MU,IU,U3,GU,KU,Qn,K3,Uz,Gz,l9,u9,cV,fT,vV,Or,w9,oT,xV,BV,$V,y0,l7,d7,w7,C7,E7,M7,T7,QH,uW,cW,SW,$T,DW,xG,SG,wG,YT,SK,wK,Je,LK,JT,To,QT,YK,tq,_q,xq,Sq,wq,kq,_j,Mj,Nj,O3,lA,cT,O9,N9,Gj,Xj,oY,Ii,ol,vp,ej,NY,WY,GY,cX,mX,xA,MX,NX,OX,VX,JZ,QZ,aQ,wQ,CQ,wu,_1,bH,LQ,UQ,zQ,_o,Yee,lte,Ap,Tte,Wte,hne,wne,jne,Yne,ioe,soe,foe,Moe,zoe,Voe];const Cr="ElInfiniteScroll",Woe=50,Goe=200,Koe=0,qoe={delay:{type:Number,default:Goe},distance:{type:Number,default:Koe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},z1=(e,t)=>Object.entries(qoe).reduce((n,[o,r])=>{var i,s;const{type:a,default:l}=r,u=e.getAttribute(`infinite-scroll-${o}`);let d=(s=(i=t[u])!=null?i:u)!=null?s:l;return d=d==="false"?!1:d,d=a(d),n[o]=Number.isNaN(d)?l:d,n},{}),Zk=e=>{const{observer:t}=e[Cr];t&&(t.disconnect(),delete e[Cr].observer)},joe=(e,t)=>{const{container:n,containerEl:o,instance:r,observer:i,lastScrollTop:s}=e[Cr],{disabled:a,distance:l}=z1(e,r),{clientHeight:u,scrollHeight:d,scrollTop:f}=o,p=f-s;if(e[Cr].lastScrollTop=f,i||a||p<0)return;let h=!1;if(n===e)h=d-(u+f)<=l;else{const{clientTop:m,scrollHeight:v}=e,b=Hv(e,o);h=f+u>=b+m+v-l}h&&t.call(r)};function wm(e,t){const{containerEl:n,instance:o}=e[Cr],{disabled:r}=z1(e,o);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):Zk(e))}const Yoe={async mounted(e,t){const{instance:n,value:o}=t;it(o)||Ln(Cr,"'v-infinite-scroll' binding value must be a function"),await Qe();const{delay:r,immediate:i}=z1(e,n),s=vy(e,!0),a=s===window?document.documentElement:s,l=Ya(joe.bind(null,e,o),r);if(s){if(e[Cr]={instance:n,container:s,containerEl:a,delay:r,cb:o,onScroll:l,lastScrollTop:a.scrollTop},i){const u=new MutationObserver(Ya(wm.bind(null,e,o),Woe));e[Cr].observer=u,u.observe(e,{childList:!0,subtree:!0}),wm(e,o)}s.addEventListener("scroll",l)}},unmounted(e){if(!e[Cr])return;const{container:t,onScroll:n}=e[Cr];t==null||t.removeEventListener("scroll",n),Zk(e)},async updated(e){if(!e[Cr])await Qe();else{const{containerEl:t,cb:n,observer:o}=e[Cr];t.clientHeight&&o&&wm(e,n)}}},Rg=Yoe;Rg.install=e=>{e.directive("InfiniteScroll",Rg)};const Xoe=Rg;function Zoe(e,t){let n;const o=F(!1),r=Gt({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(h){r.text=h}function s(){const h=r.parent,m=p.ns;if(!h.vLoadingAddClassList){let v=h.getAttribute("loading-number");v=Number.parseInt(v)-1,v?h.setAttribute("loading-number",v.toString()):(Ao(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),Ao(h,m.bm("parent","hidden"))}a(),f.unmount()}function a(){var h,m;(m=(h=p.$el)==null?void 0:h.parentNode)==null||m.removeChild(p.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(n),n=setTimeout(u,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function u(){if(!o.value)return;const h=r.parent;o.value=!1,h.vLoadingAddClassList=void 0,s()}const f=YE(Q({name:"ElLoading",setup(h,{expose:m}){const{ns:v,zIndex:b}=c0("loading");return m({ns:v,zIndex:b}),()=>{const g=r.spinner||r.svg,x=ut("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[ut("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),y=r.text?ut("p",{class:v.b("text")},[r.text]):void 0;return ut(Hn,{name:v.b("fade"),onAfterLeave:u},{default:se(()=>[_t(J("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[ut("div",{class:v.b("spinner")},[x,y])]),[[Vt,r.visible]])])})}}}));Object.assign(f._context,t??{});const p=f.mount(document.createElement("div"));return{...jn(r),setText:i,removeElLoadingChild:a,close:l,handleAfterLeave:u,vm:p,get $el(){return p.$el}}}let If;const su=function(e={}){if(!Ft)return;const t=Joe(e);if(t.fullscreen&&If)return If;const n=Zoe({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(If=void 0)}},su._context);Qoe(t,t.parent,n),jS(t,t.parent,n),t.parent.vLoadingAddClassList=()=>jS(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),Qe(()=>n.visible.value=t.visible),t.fullscreen&&(If=n),n},Joe=e=>{var t,n,o,r;let i;return et(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Qoe=async(e,t,n)=>{const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=Xi(document.body,"position"),n.originalOverflow.value=Xi(document.body,"overflow"),r.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Xi(document.body,"position"),await Qe();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(Xi(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Xi(t,"position");for(const[i,s]of Object.entries(r))n.$el.style[i]=s},jS=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ao(t,o.bm("parent","relative")):Ar(t,o.bm("parent","relative")),e.fullscreen&&e.lock?Ar(t,o.bm("parent","hidden")):Ao(t,o.bm("parent","hidden"))};su._context=null;const Uh=Symbol("ElLoading"),YS=(e,t)=>{var n,o,r,i;const s=t.instance,a=h=>Ct(t.value)?t.value[h]:void 0,l=h=>{const m=et(h)&&(s==null?void 0:s[h])||h;return m&&F(m)},u=h=>l(a(h)||e.getAttribute(`element-loading-${fa(h)}`)),d=(n=a("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(o=a("target"))!=null?o:d?void 0:e,body:(r=a("body"))!=null?r:t.modifiers.body,lock:(i=a("lock"))!=null?i:t.modifiers.lock},p=su(f);p._context=Uc._context,e[Uh]={options:f,instance:p}},ere=(e,t)=>{for(const n of Object.keys(t))hn(t[n])&&(t[n].value=e[n])},Uc={mounted(e,t){t.value&&YS(e,t)},updated(e,t){const n=e[Uh];t.oldValue!==t.value&&(t.value&&!t.oldValue?YS(e,t):t.value&&t.oldValue?Ct(t.value)&&ere(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Uh])==null||t.instance.close(),e[Uh]=null}};Uc._context=null;const tre={install(e){su._context=e._context,Uc._context=e._context,e.directive("loading",Uc),e.config.globalProperties.$loading=su},directive:Uc,service:su},Jk=["primary","success","info","warning","error"],Lo=_n({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ft?document.body:void 0}),nre=Ue({customClass:{type:String,default:Lo.customClass},dangerouslyUseHTMLString:{type:Boolean,default:Lo.dangerouslyUseHTMLString},duration:{type:Number,default:Lo.duration},icon:{type:tn,default:Lo.icon},id:{type:String,default:Lo.id},message:{type:le([String,Object,Function]),default:Lo.message},onClose:{type:le(Function),default:Lo.onClose},showClose:{type:Boolean,default:Lo.showClose},type:{type:String,values:Jk,default:Lo.type},plain:{type:Boolean,default:Lo.plain},offset:{type:Number,default:Lo.offset},zIndex:{type:Number,default:Lo.zIndex},grouping:{type:Boolean,default:Lo.grouping},repeatNum:{type:Number,default:Lo.repeatNum}}),ore={destroy:()=>!0},jr=ZC([]),rre=e=>{const t=jr.findIndex(r=>r.id===e),n=jr[t];let o;return t>0&&(o=jr[t-1]),{current:n,prev:o}},ire=e=>{const{prev:t}=rre(e);return t?t.vm.exposed.bottom.value:0},sre=(e,t)=>jr.findIndex(o=>o.id===e)>0?16:t,are=Q({name:"ElMessage"}),lre=Q({...are,props:nre,emits:ore,setup(e,{expose:t,emit:n}){const o=e,{Close:r}=_y,i=F(!1),{ns:s,zIndex:a}=c0("message"),{currentZIndex:l,nextZIndex:u}=a,d=F(),f=F(!1),p=F(0);let h;const m=A(()=>o.type?o.type==="error"?"danger":o.type:"info"),v=A(()=>{const E=o.type;return{[s.bm("icon",E)]:E&&aa[E]}}),b=A(()=>o.icon||aa[o.type]||""),g=A(()=>ire(o.id)),x=A(()=>sre(o.id,o.offset)+g.value),y=A(()=>p.value+x.value),_=A(()=>({top:`${x.value}px`,zIndex:l.value}));function w(){o.duration!==0&&({stop:h}=tl(()=>{M()},o.duration))}function S(){h==null||h()}function M(){f.value=!1,Qe(()=>{var E;i.value||((E=o.onClose)==null||E.call(o),n("destroy"))})}function T({code:E}){E===Ke.esc&&M()}return xt(()=>{w(),u(),f.value=!0}),Te(()=>o.repeatNum,()=>{S(),w()}),on(document,"keydown",T),vn(d,()=>{p.value=d.value.getBoundingClientRect().height}),t({visible:f,bottom:y,close:M}),(E,C)=>(D(),_e(Hn,{name:c(s).b("fade"),onBeforeEnter:k=>i.value=!0,onBeforeLeave:E.onClose,onAfterLeave:k=>E.$emit("destroy"),persisted:""},{default:se(()=>[_t(j("div",{id:E.id,ref_key:"messageRef",ref:d,class:L([c(s).b(),{[c(s).m(E.type)]:E.type},c(s).is("closable",E.showClose),c(s).is("plain",E.plain),E.customClass]),style:rt(c(_)),role:"alert",onMouseenter:S,onMouseleave:w},[E.repeatNum>1?(D(),_e(c(U3),{key:0,value:E.repeatNum,type:c(m),class:L(c(s).e("badge"))},null,8,["value","type","class"])):pe("v-if",!0),c(b)?(D(),_e(c(Je),{key:1,class:L([c(s).e("icon"),c(v)])},{default:se(()=>[(D(),_e(Rt(c(b))))]),_:1},8,["class"])):pe("v-if",!0),de(E.$slots,"default",{},()=>[E.dangerouslyUseHTMLString?(D(),G(tt,{key:1},[pe(" Caution here, message could've been compromised, never use user's input as message "),j("p",{class:L(c(s).e("content")),innerHTML:E.message},null,10,["innerHTML"])],2112)):(D(),G("p",{key:0,class:L(c(s).e("content"))},ze(E.message),3))]),E.showClose?(D(),_e(c(Je),{key:2,class:L(c(s).e("closeBtn")),onClick:dt(M,["stop"])},{default:se(()=>[J(c(r))]),_:1},8,["class","onClick"])):pe("v-if",!0)],46,["id"]),[[Vt,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var ure=Ve(lre,[["__file","message.vue"]]);let cre=1;const Qk=e=>{const t=!e||et(e)||ln(e)||it(e)?{message:e}:e,n={...Lo,...t};if(!n.appendTo)n.appendTo=document.body;else if(et(n.appendTo)){let o=document.querySelector(n.appendTo);Fo(o)||(o=document.body),n.appendTo=o}return Jt(ar.grouping)&&!n.grouping&&(n.grouping=ar.grouping),st(ar.duration)&&n.duration===3e3&&(n.duration=ar.duration),st(ar.offset)&&n.offset===16&&(n.offset=ar.offset),Jt(ar.showClose)&&!n.showClose&&(n.showClose=ar.showClose),Jt(ar.plain)&&!n.plain&&(n.plain=ar.plain),n},dre=e=>{const t=jr.indexOf(e);if(t===-1)return;jr.splice(t,1);const{handler:n}=e;n.close()},fre=({appendTo:e,...t},n)=>{const o=`message_${cre++}`,r=t.onClose,i=document.createElement("div"),s={...t,id:o,onClose:()=>{r==null||r(),dre(d)},onDestroy:()=>{na(null,i)}},a=J(ure,s,it(s.message)||ln(s.message)?{default:it(s.message)?s.message:()=>s.message}:null);a.appContext=n||Pu._context,na(a,i),e.appendChild(i.firstElementChild);const l=a.component,d={id:o,vnode:a,vm:l,handler:{close:()=>{l.exposed.close()}},props:a.component.props};return d},Pu=(e={},t)=>{if(!Ft)return{close:()=>{}};const n=Qk(e);if(n.grouping&&jr.length){const r=jr.find(({vnode:i})=>{var s;return((s=i.props)==null?void 0:s.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(st(ar.max)&&jr.length>=ar.max)return{close:()=>{}};const o=fre(n,t);return jr.push(o),o.handler};Jk.forEach(e=>{Pu[e]=(t={},n)=>{const o=Qk(t);return Pu({...o,type:e},n)}});function hre(e){const t=[...jr];for(const n of t)(!e||e===n.props.type)&&n.handler.close()}Pu.closeAll=hre;Pu._context=null;const pre=t3(Pu,"$message"),Pg="_trap-focus-children",Va=[],XS=e=>{if(Va.length===0)return;const t=Va[Va.length-1][Pg];if(t.length>0&&e.code===Ke.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],r=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),r&&!n&&(e.preventDefault(),t[0].focus())}},mre={beforeMount(e){e[Pg]=ox(e),Va.push(e),Va.length<=1&&document.addEventListener("keydown",XS)},updated(e){Qe(()=>{e[Pg]=ox(e)})},unmounted(){Va.shift(),Va.length===0&&document.removeEventListener("keydown",XS)}},vre=Q({name:"ElMessageBox",directives:{TrapFocus:mre},components:{ElButton:Qn,ElFocusTrap:Yu,ElInput:To,ElOverlay:Xy,ElIcon:Je,..._y},inheritAttrs:!1,props:{buttonSize:{type:String,validator:CA},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:r,size:i}=c0("message-box",A(()=>e.buttonSize)),{t:s}=n,{nextZIndex:a}=o,l=F(!1),u=Gt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:ts(Ei),cancelButtonLoadingIcon:ts(Ei),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),d=A(()=>{const P=u.type;return{[r.bm("icon",P)]:P&&aa[P]}}),f=fo(),p=fo(),h=A(()=>{const P=u.type;return u.icon||P&&aa[P]||""}),m=A(()=>!!u.message),v=F(),b=F(),g=F(),x=F(),y=F(),_=A(()=>u.confirmButtonClass);Te(()=>u.inputValue,async P=>{await Qe(),e.boxType==="prompt"&&P&&R()},{immediate:!0}),Te(()=>l.value,P=>{var U,I;P&&(e.boxType!=="prompt"&&(u.autofocus?g.value=(I=(U=y.value)==null?void 0:U.$el)!=null?I:v.value:g.value=v.value),u.zIndex=a()),e.boxType==="prompt"&&(P?Qe().then(()=>{var O;x.value&&x.value.$el&&(u.autofocus?g.value=(O=B())!=null?O:v.value:g.value=v.value)}):(u.editorErrorMessage="",u.validateError=!1))});const w=A(()=>e.draggable),S=A(()=>e.overflow);NT(v,b,w,S),xt(async()=>{await Qe(),e.closeOnHashChange&&window.addEventListener("hashchange",M)}),Qt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",M)});function M(){l.value&&(l.value=!1,Qe(()=>{u.action&&t("action",u.action)}))}const T=()=>{e.closeOnClickModal&&k(u.distinguishCancelAndClose?"close":"cancel")},E=Yy(T),C=P=>{if(u.inputType!=="textarea")return P.preventDefault(),k("confirm")},k=P=>{var U;e.boxType==="prompt"&&P==="confirm"&&!R()||(u.action=P,u.beforeClose?(U=u.beforeClose)==null||U.call(u,P,u,M):M())},R=()=>{if(e.boxType==="prompt"){const P=u.inputPattern;if(P&&!P.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;const U=u.inputValidator;if(it(U)){const I=U(u.inputValue);if(I===!1)return u.editorErrorMessage=u.inputErrorMessage||s("el.messagebox.error"),u.validateError=!0,!1;if(et(I))return u.editorErrorMessage=I,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},B=()=>{var P,U;const I=(P=x.value)==null?void 0:P.$refs;return(U=I==null?void 0:I.input)!=null?U:I==null?void 0:I.textarea},H=()=>{k("close")},N=()=>{e.closeOnPressEscape&&H()};return e.lockScroll&&Zy(l),{...jn(u),ns:r,overlayEvent:E,visible:l,hasMessage:m,typeClass:d,contentId:f,inputId:p,btnSize:i,iconComponent:h,confirmButtonClasses:_,rootRef:v,focusStartRef:g,headerRef:b,inputRef:x,confirmRef:y,doClose:M,handleClose:H,onCloseRequested:N,handleWrapperClick:T,handleInputEnter:C,handleAction:k,t:s}}});function gre(e,t,n,o,r,i){const s=Mt("el-icon"),a=Mt("el-input"),l=Mt("el-button"),u=Mt("el-focus-trap"),d=Mt("el-overlay");return D(),_e(Hn,{name:"fade-in-linear",onAfterLeave:f=>e.$emit("vanish"),persisted:""},{default:se(()=>[_t(J(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:se(()=>[j("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:L(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[J(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:se(()=>[j("div",{ref:"rootRef",class:L([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:rt(e.customStyle),tabindex:"-1",onClick:dt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(D(),G("div",{key:0,ref:"headerRef",class:L([e.ns.e("header"),{"show-close":e.showClose}])},[j("div",{class:L(e.ns.e("title"))},[e.iconComponent&&e.center?(D(),_e(s,{key:0,class:L([e.ns.e("status"),e.typeClass])},{default:se(()=>[(D(),_e(Rt(e.iconComponent)))]),_:1},8,["class"])):pe("v-if",!0),j("span",null,ze(e.title),1)],2),e.showClose?(D(),G("button",{key:0,type:"button",class:L(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Zt(dt(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[J(s,{class:L(e.ns.e("close"))},{default:se(()=>[(D(),_e(Rt(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):pe("v-if",!0)],2)):pe("v-if",!0),j("div",{id:e.contentId,class:L(e.ns.e("content"))},[j("div",{class:L(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(D(),_e(s,{key:0,class:L([e.ns.e("status"),e.typeClass])},{default:se(()=>[(D(),_e(Rt(e.iconComponent)))]),_:1},8,["class"])):pe("v-if",!0),e.hasMessage?(D(),G("div",{key:1,class:L(e.ns.e("message"))},[de(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(D(),_e(Rt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(D(),_e(Rt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:se(()=>[Tt(ze(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):pe("v-if",!0)],2),_t(j("div",{class:L(e.ns.e("input"))},[J(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":f=>e.inputValue=f,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:L({invalid:e.validateError}),onKeydown:Zt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),j("div",{class:L(e.ns.e("errormsg")),style:rt({visibility:e.editorErrorMessage?"visible":"hidden"})},ze(e.editorErrorMessage),7)],2),[[Vt,e.showInput]])],10,["id"]),j("div",{class:L(e.ns.e("btns"))},[e.showCancelButton?(D(),_e(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:L([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:f=>e.handleAction("cancel"),onKeydown:Zt(dt(f=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:se(()=>[Tt(ze(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):pe("v-if",!0),_t(J(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:L([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:f=>e.handleAction("confirm"),onKeydown:Zt(dt(f=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:se(()=>[Tt(ze(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[Vt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[Vt,e.visible]])]),_:3},8,["onAfterLeave"])}var bre=Ve(vre,[["render",gre],["__file","index.vue"]]);const _d=new Map,yre=e=>{let t=document.body;return e.appendTo&&(et(e.appendTo)&&(t=document.querySelector(e.appendTo)),Fo(e.appendTo)&&(t=e.appendTo),Fo(t)||(t=document.body)),t},_re=(e,t,n=null)=>{const o=J(bre,e,it(e.message)||ln(e.message)?{default:it(e.message)?e.message:()=>e.message}:null);return o.appContext=n,na(o,t),yre(e).appendChild(t.firstElementChild),o.component},xre=()=>document.createElement("div"),Sre=(e,t)=>{const n=xre();e.onVanish=()=>{na(null,n),_d.delete(r)},e.onAction=i=>{const s=_d.get(r);let a;e.showInput?a={value:r.inputValue,action:i}:a=i,e.callback?e.callback(a,o.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const o=_re(e,n,t),r=o.proxy;for(const i in e)zt(e,i)&&!zt(r.$props,i)&&(i==="closeIcon"&&Ct(e[i])?r[i]=ts(e[i]):r[i]=e[i]);return r.visible=!0,r};function ec(e,t=null){if(!Ft)return Promise.reject();let n;return et(e)||ln(e)?e={message:e}:n=e.callback,new Promise((o,r)=>{const i=Sre(e,t??ec._context);_d.set(i,{options:e,callback:n,resolve:o,reject:r})})}const wre=["alert","confirm","prompt"],Cre={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};wre.forEach(e=>{ec[e]=Ere(e)});function Ere(e){return(t,n,o,r)=>{let i="";return Ct(n)?(o=n,i=""):Bt(n)?i="":i=n,ec(Object.assign({title:i,message:t,type:"",...Cre[e]},o,{boxType:e}),r)}}ec.close=()=>{_d.forEach((e,t)=>{t.doClose()}),_d.clear()};ec._context=null;const Ls=ec;Ls.install=e=>{Ls._context=e._context,e.config.globalProperties.$msgbox=Ls,e.config.globalProperties.$messageBox=Ls,e.config.globalProperties.$alert=Ls.alert,e.config.globalProperties.$confirm=Ls.confirm,e.config.globalProperties.$prompt=Ls.prompt};const Mre=Ls,eR=["primary","success","info","warning","error"],Tre=Ue({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:tn},id:{type:String,default:""},message:{type:le([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:le(Function),default:()=>{}},onClose:{type:le(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...eR,""],default:""},zIndex:Number,closeIcon:{type:tn,default:Ir}}),Are={destroy:()=>!0},kre=Q({name:"ElNotification"}),Rre=Q({...kre,props:Tre,emits:Are,setup(e,{expose:t}){const n=e,{ns:o,zIndex:r}=c0("notification"),{nextZIndex:i,currentZIndex:s}=r,a=F(!1);let l;const u=A(()=>{const x=n.type;return x&&aa[n.type]?o.m(x):""}),d=A(()=>n.type&&aa[n.type]||n.icon),f=A(()=>n.position.endsWith("right")?"right":"left"),p=A(()=>n.position.startsWith("top")?"top":"bottom"),h=A(()=>{var x;return{[p.value]:`${n.offset}px`,zIndex:(x=n.zIndex)!=null?x:s.value}});function m(){n.duration>0&&({stop:l}=tl(()=>{a.value&&b()},n.duration))}function v(){l==null||l()}function b(){a.value=!1}function g({code:x}){x===Ke.delete||x===Ke.backspace?v():x===Ke.esc?a.value&&b():m()}return xt(()=>{m(),i(),a.value=!0}),on(document,"keydown",g),t({visible:a,close:b}),(x,y)=>(D(),_e(Hn,{name:c(o).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:_=>x.$emit("destroy"),persisted:""},{default:se(()=>[_t(j("div",{id:x.id,class:L([c(o).b(),x.customClass,c(f)]),style:rt(c(h)),role:"alert",onMouseenter:v,onMouseleave:m,onClick:x.onClick},[c(d)?(D(),_e(c(Je),{key:0,class:L([c(o).e("icon"),c(u)])},{default:se(()=>[(D(),_e(Rt(c(d))))]),_:1},8,["class"])):pe("v-if",!0),j("div",{class:L(c(o).e("group"))},[j("h2",{class:L(c(o).e("title")),textContent:ze(x.title)},null,10,["textContent"]),_t(j("div",{class:L(c(o).e("content")),style:rt(x.title?void 0:{margin:0})},[de(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(D(),G(tt,{key:1},[pe(" Caution here, message could've been compromised, never use user's input as message "),j("p",{innerHTML:x.message},null,8,["innerHTML"])],2112)):(D(),G("p",{key:0},ze(x.message),1))])],6),[[Vt,x.message]]),x.showClose?(D(),_e(c(Je),{key:0,class:L(c(o).e("closeBtn")),onClick:dt(b,["stop"])},{default:se(()=>[(D(),_e(Rt(x.closeIcon)))]),_:1},8,["class","onClick"])):pe("v-if",!0)],2)],46,["id","onClick"]),[[Vt,a.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Pre=Ve(Rre,[["__file","notification.vue"]]);const kp={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Dg=16;let Dre=1;const Du=function(e={},t){if(!Ft)return{close:()=>{}};(et(e)||ln(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;kp[n].forEach(({vm:d})=>{var f;o+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Dg}),o+=Dg;const r=`notification_${Dre++}`,i=e.onClose,s={...e,offset:o,id:r,onClose:()=>{Ire(r,n,i)}};let a=document.body;Fo(e.appendTo)?a=e.appendTo:et(e.appendTo)&&(a=document.querySelector(e.appendTo)),Fo(a)||(a=document.body);const l=document.createElement("div"),u=J(Pre,s,it(s.message)?s.message:ln(s.message)?()=>s.message:null);return u.appContext=Bt(t)?Du._context:t,u.props.onDestroy=()=>{na(null,l)},na(u,l),kp[n].push({vm:u}),a.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};eR.forEach(e=>{Du[e]=(t={},n)=>((et(t)||ln(t))&&(t={message:t}),Du({...t,type:e},n))});function Ire(e,t,n){const o=kp[t],r=o.findIndex(({vm:u})=>{var d;return((d=u.component)==null?void 0:d.props.id)===e});if(r===-1)return;const{vm:i}=o[r];if(!i)return;n==null||n(i);const s=i.el.offsetHeight,a=t.split("-")[0];o.splice(r,1);const l=o.length;if(!(l<1))for(let u=r;u{t.component.exposed.visible.value=!1})}Du.closeAll=Lre;Du._context=null;const Nre=t3(Du,"$notify");var Ore=[Xoe,tre,pre,Mre,Nre,aA],Fre=eF([...Hoe,...Ore]);const V1=e=>(Kp("data-v-1669a802"),e=e(),qp(),e),Bre={key:0,class:"building-info-panel"},$re=V1(()=>j("strong",null,"功能:",-1)),Ure=V1(()=>j("strong",null,"开放时间:",-1)),zre=V1(()=>j("strong",null,"描述:",-1)),Vre=Q({__name:"BuildingInfoPanel",setup(e,{expose:t}){const n=F(!1),o=F({});return t({show:i=>{o.value=i,n.value=!0}}),(i,s)=>n.value?(D(),G("div",Bre,[j("h3",null,ze(o.value.name),1),j("p",null,[$re,Tt(" "+ze(o.value.function),1)]),j("p",null,[Ure,Tt(" "+ze(o.value.openTime),1)]),j("p",null,[zre,Tt(" "+ze(o.value.description),1)]),j("button",{onClick:s[0]||(s[0]=a=>n.value=!1)},"关闭")])):pe("",!0)}}),tf=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},Hre=tf(Vre,[["__scopeId","data-v-1669a802"]]);/** * @license * Copyright 2010-2025 Three.js Authors * SPDX-License-Identifier: MIT */const H1="177",au={ROTATE:0,DOLLY:1,PAN:2},jl={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Wre=0,ZS=1,Gre=2,tR=1,Kre=2,qi=3,ua=0,Zo=1,pi=2,Zs=0,lu=1,JS=2,QS=3,ew=4,qre=5,Na=100,jre=101,Yre=102,Xre=103,Zre=104,Jre=200,Qre=201,eie=202,tie=203,Ig=204,Lg=205,nie=206,oie=207,rie=208,iie=209,sie=210,aie=211,lie=212,uie=213,cie=214,Ng=0,Og=1,Fg=2,Iu=3,Bg=4,$g=5,Ug=6,zg=7,nR=0,die=1,fie=2,Js=0,hie=1,pie=2,mie=3,vie=4,gie=5,bie=6,yie=7,oR=300,Lu=301,Nu=302,Vg=303,Hg=304,P0=306,Wg=1e3,Ha=1001,Gg=1002,Zr=1003,_ie=1004,Lf=1005,gi=1006,Cm=1007,Wa=1008,ki=1009,rR=1010,iR=1011,xd=1012,W1=1013,al=1014,Ji=1015,nf=1016,G1=1017,K1=1018,Sd=1020,sR=35902,aR=1021,lR=1022,Yr=1023,wd=1026,Cd=1027,uR=1028,q1=1029,cR=1030,j1=1031,Y1=1033,zh=33776,Vh=33777,Hh=33778,Wh=33779,Kg=35840,qg=35841,jg=35842,Yg=35843,Xg=36196,Zg=37492,Jg=37496,Qg=37808,eb=37809,tb=37810,nb=37811,ob=37812,rb=37813,ib=37814,sb=37815,ab=37816,lb=37817,ub=37818,cb=37819,db=37820,fb=37821,Gh=36492,hb=36494,pb=36495,dR=36283,mb=36284,vb=36285,gb=36286,xie=3200,Sie=3201,fR=0,wie=1,Vs="",Er="srgb",Ou="srgb-linear",Rp="linear",bn="srgb",El=7680,tw=519,Cie=512,Eie=513,Mie=514,hR=515,Tie=516,Aie=517,kie=518,Rie=519,nw=35044,ow="300 es",Qi=2e3,Pp=2001;class ml{addEventListener(t,n){this._listeners===void 0&&(this._listeners={});const o=this._listeners;o[t]===void 0&&(o[t]=[]),o[t].indexOf(n)===-1&&o[t].push(n)}hasEventListener(t,n){const o=this._listeners;return o===void 0?!1:o[t]!==void 0&&o[t].indexOf(n)!==-1}removeEventListener(t,n){const o=this._listeners;if(o===void 0)return;const r=o[t];if(r!==void 0){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}dispatchEvent(t){const n=this._listeners;if(n===void 0)return;const o=n[t.type];if(o!==void 0){t.target=this;const r=o.slice(0);for(let i=0,s=r.length;i>8&255]+So[e>>16&255]+So[e>>24&255]+"-"+So[t&255]+So[t>>8&255]+"-"+So[t>>16&15|64]+So[t>>24&255]+"-"+So[n&63|128]+So[n>>8&255]+"-"+So[n>>16&255]+So[n>>24&255]+So[o&255]+So[o>>8&255]+So[o>>16&255]+So[o>>24&255]).toLowerCase()}function nn(e,t,n){return Math.max(t,Math.min(n,e))}function Pie(e,t){return(e%t+t)%t}function Em(e,t,n){return(1-n)*e+n*t}function fc(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Ho(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw new Error("Invalid component type.")}}const Die={DEG2RAD:zc};class mt{constructor(t=0,n=0){mt.prototype.isVector2=!0,this.x=t,this.y=n}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,n){return this.x=t,this.y=n,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const n=this.x,o=this.y,r=t.elements;return this.x=r[0]*n+r[3]*o+r[6],this.y=r[1]*n+r[4]*o+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,n){return this.x=nn(this.x,t.x,n.x),this.y=nn(this.y,t.y,n.y),this}clampScalar(t,n){return this.x=nn(this.x,t,n),this.y=nn(this.y,t,n),this}clampLength(t,n){const o=this.length();return this.divideScalar(o||1).multiplyScalar(nn(o,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;const o=this.dot(t)/n;return Math.acos(nn(o,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const n=this.x-t.x,o=this.y-t.y;return n*n+o*o}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this}lerpVectors(t,n,o){return this.x=t.x+(n.x-t.x)*o,this.y=t.y+(n.y-t.y)*o,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this}rotateAround(t,n){const o=Math.cos(n),r=Math.sin(n),i=this.x-t.x,s=this.y-t.y;return this.x=i*o-s*r+t.x,this.y=i*r+s*o+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class ll{constructor(t=0,n=0,o=0,r=1){this.isQuaternion=!0,this._x=t,this._y=n,this._z=o,this._w=r}static slerpFlat(t,n,o,r,i,s,a){let l=o[r+0],u=o[r+1],d=o[r+2],f=o[r+3];const p=i[s+0],h=i[s+1],m=i[s+2],v=i[s+3];if(a===0){t[n+0]=l,t[n+1]=u,t[n+2]=d,t[n+3]=f;return}if(a===1){t[n+0]=p,t[n+1]=h,t[n+2]=m,t[n+3]=v;return}if(f!==v||l!==p||u!==h||d!==m){let b=1-a;const g=l*p+u*h+d*m+f*v,x=g>=0?1:-1,y=1-g*g;if(y>Number.EPSILON){const w=Math.sqrt(y),S=Math.atan2(w,g*x);b=Math.sin(b*S)/w,a=Math.sin(a*S)/w}const _=a*x;if(l=l*b+p*_,u=u*b+h*_,d=d*b+m*_,f=f*b+v*_,b===1-a){const w=1/Math.sqrt(l*l+u*u+d*d+f*f);l*=w,u*=w,d*=w,f*=w}}t[n]=l,t[n+1]=u,t[n+2]=d,t[n+3]=f}static multiplyQuaternionsFlat(t,n,o,r,i,s){const a=o[r],l=o[r+1],u=o[r+2],d=o[r+3],f=i[s],p=i[s+1],h=i[s+2],m=i[s+3];return t[n]=a*m+d*f+l*h-u*p,t[n+1]=l*m+d*p+u*f-a*h,t[n+2]=u*m+d*h+a*p-l*f,t[n+3]=d*m-a*f-l*p-u*h,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,n,o,r){return this._x=t,this._y=n,this._z=o,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,n=!0){const o=t._x,r=t._y,i=t._z,s=t._order,a=Math.cos,l=Math.sin,u=a(o/2),d=a(r/2),f=a(i/2),p=l(o/2),h=l(r/2),m=l(i/2);switch(s){case"XYZ":this._x=p*d*f+u*h*m,this._y=u*h*f-p*d*m,this._z=u*d*m+p*h*f,this._w=u*d*f-p*h*m;break;case"YXZ":this._x=p*d*f+u*h*m,this._y=u*h*f-p*d*m,this._z=u*d*m-p*h*f,this._w=u*d*f+p*h*m;break;case"ZXY":this._x=p*d*f-u*h*m,this._y=u*h*f+p*d*m,this._z=u*d*m+p*h*f,this._w=u*d*f-p*h*m;break;case"ZYX":this._x=p*d*f-u*h*m,this._y=u*h*f+p*d*m,this._z=u*d*m-p*h*f,this._w=u*d*f+p*h*m;break;case"YZX":this._x=p*d*f+u*h*m,this._y=u*h*f+p*d*m,this._z=u*d*m-p*h*f,this._w=u*d*f-p*h*m;break;case"XZY":this._x=p*d*f-u*h*m,this._y=u*h*f-p*d*m,this._z=u*d*m+p*h*f,this._w=u*d*f+p*h*m;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,n){const o=n/2,r=Math.sin(o);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(o),this._onChangeCallback(),this}setFromRotationMatrix(t){const n=t.elements,o=n[0],r=n[4],i=n[8],s=n[1],a=n[5],l=n[9],u=n[2],d=n[6],f=n[10],p=o+a+f;if(p>0){const h=.5/Math.sqrt(p+1);this._w=.25/h,this._x=(d-l)*h,this._y=(i-u)*h,this._z=(s-r)*h}else if(o>a&&o>f){const h=2*Math.sqrt(1+o-a-f);this._w=(d-l)/h,this._x=.25*h,this._y=(r+s)/h,this._z=(i+u)/h}else if(a>f){const h=2*Math.sqrt(1+a-o-f);this._w=(i-u)/h,this._x=(r+s)/h,this._y=.25*h,this._z=(l+d)/h}else{const h=2*Math.sqrt(1+f-o-a);this._w=(s-r)/h,this._x=(i+u)/h,this._y=(l+d)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(t,n){let o=t.dot(n)+1;return oMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=o):(this._x=0,this._y=-t.z,this._z=t.y,this._w=o)):(this._x=t.y*n.z-t.z*n.y,this._y=t.z*n.x-t.x*n.z,this._z=t.x*n.y-t.y*n.x,this._w=o),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(nn(this.dot(t),-1,1)))}rotateTowards(t,n){const o=this.angleTo(t);if(o===0)return this;const r=Math.min(1,n/o);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,n){const o=t._x,r=t._y,i=t._z,s=t._w,a=n._x,l=n._y,u=n._z,d=n._w;return this._x=o*d+s*a+r*u-i*l,this._y=r*d+s*l+i*a-o*u,this._z=i*d+s*u+o*l-r*a,this._w=s*d-o*a-r*l-i*u,this._onChangeCallback(),this}slerp(t,n){if(n===0)return this;if(n===1)return this.copy(t);const o=this._x,r=this._y,i=this._z,s=this._w;let a=s*t._w+o*t._x+r*t._y+i*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=o,this._y=r,this._z=i,this;const l=1-a*a;if(l<=Number.EPSILON){const h=1-n;return this._w=h*s+n*this._w,this._x=h*o+n*this._x,this._y=h*r+n*this._y,this._z=h*i+n*this._z,this.normalize(),this}const u=Math.sqrt(l),d=Math.atan2(u,a),f=Math.sin((1-n)*d)/u,p=Math.sin(n*d)/u;return this._w=s*f+this._w*p,this._x=o*f+this._x*p,this._y=r*f+this._y*p,this._z=i*f+this._z*p,this._onChangeCallback(),this}slerpQuaternions(t,n,o){return this.copy(t).slerp(n,o)}random(){const t=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),o=Math.random(),r=Math.sqrt(1-o),i=Math.sqrt(o);return this.set(r*Math.sin(t),r*Math.cos(t),i*Math.sin(n),i*Math.cos(n))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,n=0){return this._x=t[n],this._y=t[n+1],this._z=t[n+2],this._w=t[n+3],this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._w,t}fromBufferAttribute(t,n){return this._x=t.getX(n),this._y=t.getY(n),this._z=t.getZ(n),this._w=t.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ke{constructor(t=0,n=0,o=0){ke.prototype.isVector3=!0,this.x=t,this.y=n,this.z=o}set(t,n,o){return o===void 0&&(o=this.z),this.x=t,this.y=n,this.z=o,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this.z=t.z+n.z,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this.z+=t.z*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this.z=t.z-n.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,n){return this.x=t.x*n.x,this.y=t.y*n.y,this.z=t.z*n.z,this}applyEuler(t){return this.applyQuaternion(rw.setFromEuler(t))}applyAxisAngle(t,n){return this.applyQuaternion(rw.setFromAxisAngle(t,n))}applyMatrix3(t){const n=this.x,o=this.y,r=this.z,i=t.elements;return this.x=i[0]*n+i[3]*o+i[6]*r,this.y=i[1]*n+i[4]*o+i[7]*r,this.z=i[2]*n+i[5]*o+i[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const n=this.x,o=this.y,r=this.z,i=t.elements,s=1/(i[3]*n+i[7]*o+i[11]*r+i[15]);return this.x=(i[0]*n+i[4]*o+i[8]*r+i[12])*s,this.y=(i[1]*n+i[5]*o+i[9]*r+i[13])*s,this.z=(i[2]*n+i[6]*o+i[10]*r+i[14])*s,this}applyQuaternion(t){const n=this.x,o=this.y,r=this.z,i=t.x,s=t.y,a=t.z,l=t.w,u=2*(s*r-a*o),d=2*(a*n-i*r),f=2*(i*o-s*n);return this.x=n+l*u+s*f-a*d,this.y=o+l*d+a*u-i*f,this.z=r+l*f+i*d-s*u,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const n=this.x,o=this.y,r=this.z,i=t.elements;return this.x=i[0]*n+i[4]*o+i[8]*r,this.y=i[1]*n+i[5]*o+i[9]*r,this.z=i[2]*n+i[6]*o+i[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,n){return this.x=nn(this.x,t.x,n.x),this.y=nn(this.y,t.y,n.y),this.z=nn(this.z,t.z,n.z),this}clampScalar(t,n){return this.x=nn(this.x,t,n),this.y=nn(this.y,t,n),this.z=nn(this.z,t,n),this}clampLength(t,n){const o=this.length();return this.divideScalar(o||1).multiplyScalar(nn(o,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this.z+=(t.z-this.z)*n,this}lerpVectors(t,n,o){return this.x=t.x+(n.x-t.x)*o,this.y=t.y+(n.y-t.y)*o,this.z=t.z+(n.z-t.z)*o,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,n){const o=t.x,r=t.y,i=t.z,s=n.x,a=n.y,l=n.z;return this.x=r*l-i*a,this.y=i*s-o*l,this.z=o*a-r*s,this}projectOnVector(t){const n=t.lengthSq();if(n===0)return this.set(0,0,0);const o=t.dot(this)/n;return this.copy(t).multiplyScalar(o)}projectOnPlane(t){return Mm.copy(this).projectOnVector(t),this.sub(Mm)}reflect(t){return this.sub(Mm.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;const o=this.dot(t)/n;return Math.acos(nn(o,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const n=this.x-t.x,o=this.y-t.y,r=this.z-t.z;return n*n+o*o+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,n,o){const r=Math.sin(n)*t;return this.x=r*Math.sin(o),this.y=Math.cos(n)*t,this.z=r*Math.cos(o),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,n,o){return this.x=t*Math.sin(n),this.y=o,this.z=t*Math.cos(n),this}setFromMatrixPosition(t){const n=t.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(t){const n=this.setFromMatrixColumn(t,0).length(),o=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=n,this.y=o,this.z=r,this}setFromMatrixColumn(t,n){return this.fromArray(t.elements,n*4)}setFromMatrix3Column(t,n){return this.fromArray(t.elements,n*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this.z=t[n+2],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t[n+2]=this.z,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this.z=t.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,n=Math.random()*2-1,o=Math.sqrt(1-n*n);return this.x=o*Math.cos(t),this.y=n,this.z=o*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Mm=new ke,rw=new ll;class Xt{constructor(t,n,o,r,i,s,a,l,u){Xt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,n,o,r,i,s,a,l,u)}set(t,n,o,r,i,s,a,l,u){const d=this.elements;return d[0]=t,d[1]=r,d[2]=a,d[3]=n,d[4]=i,d[5]=l,d[6]=o,d[7]=s,d[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const n=this.elements,o=t.elements;return n[0]=o[0],n[1]=o[1],n[2]=o[2],n[3]=o[3],n[4]=o[4],n[5]=o[5],n[6]=o[6],n[7]=o[7],n[8]=o[8],this}extractBasis(t,n,o){return t.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),o.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const n=t.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){const o=t.elements,r=n.elements,i=this.elements,s=o[0],a=o[3],l=o[6],u=o[1],d=o[4],f=o[7],p=o[2],h=o[5],m=o[8],v=r[0],b=r[3],g=r[6],x=r[1],y=r[4],_=r[7],w=r[2],S=r[5],M=r[8];return i[0]=s*v+a*x+l*w,i[3]=s*b+a*y+l*S,i[6]=s*g+a*_+l*M,i[1]=u*v+d*x+f*w,i[4]=u*b+d*y+f*S,i[7]=u*g+d*_+f*M,i[2]=p*v+h*x+m*w,i[5]=p*b+h*y+m*S,i[8]=p*g+h*_+m*M,this}multiplyScalar(t){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=t,n[4]*=t,n[7]*=t,n[2]*=t,n[5]*=t,n[8]*=t,this}determinant(){const t=this.elements,n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=t[8];return n*s*d-n*a*u-o*i*d+o*a*l+r*i*u-r*s*l}invert(){const t=this.elements,n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=t[8],f=d*s-a*u,p=a*l-d*i,h=u*i-s*l,m=n*f+o*p+r*h;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/m;return t[0]=f*v,t[1]=(r*u-d*o)*v,t[2]=(a*o-r*s)*v,t[3]=p*v,t[4]=(d*n-r*l)*v,t[5]=(r*i-a*n)*v,t[6]=h*v,t[7]=(o*l-u*n)*v,t[8]=(s*n-o*i)*v,this}transpose(){let t;const n=this.elements;return t=n[1],n[1]=n[3],n[3]=t,t=n[2],n[2]=n[6],n[6]=t,t=n[5],n[5]=n[7],n[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const n=this.elements;return t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8],this}setUvTransform(t,n,o,r,i,s,a){const l=Math.cos(i),u=Math.sin(i);return this.set(o*l,o*u,-o*(l*s+u*a)+s+t,-r*u,r*l,-r*(-u*s+l*a)+a+n,0,0,1),this}scale(t,n){return this.premultiply(Tm.makeScale(t,n)),this}rotate(t){return this.premultiply(Tm.makeRotation(-t)),this}translate(t,n){return this.premultiply(Tm.makeTranslation(t,n)),this}makeTranslation(t,n){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,n,0,0,1),this}makeRotation(t){const n=Math.cos(t),o=Math.sin(t);return this.set(n,-o,0,o,n,0,0,0,1),this}makeScale(t,n){return this.set(t,0,0,0,n,0,0,0,1),this}equals(t){const n=this.elements,o=t.elements;for(let r=0;r<9;r++)if(n[r]!==o[r])return!1;return!0}fromArray(t,n=0){for(let o=0;o<9;o++)this.elements[o]=t[o+n];return this}toArray(t=[],n=0){const o=this.elements;return t[n]=o[0],t[n+1]=o[1],t[n+2]=o[2],t[n+3]=o[3],t[n+4]=o[4],t[n+5]=o[5],t[n+6]=o[6],t[n+7]=o[7],t[n+8]=o[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const Tm=new Xt;function pR(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Dp(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Iie(){const e=Dp("canvas");return e.style.display="block",e}const iw={};function uu(e){e in iw||(iw[e]=!0,console.warn(e))}function Lie(e,t,n){return new Promise(function(o,r){function i(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(i,n);break;default:o()}}setTimeout(i,n)})}function Nie(e){const t=e.elements;t[2]=.5*t[2]+.5*t[3],t[6]=.5*t[6]+.5*t[7],t[10]=.5*t[10]+.5*t[11],t[14]=.5*t[14]+.5*t[15]}function Oie(e){const t=e.elements;t[11]===-1?(t[10]=-t[10]-1,t[14]=-t[14]):(t[10]=-t[10],t[14]=-t[14]+1)}const sw=new Xt().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),aw=new Xt().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Fie(){const e={enabled:!0,workingColorSpace:Ou,spaces:{},convert:function(r,i,s){return this.enabled===!1||i===s||!i||!s||(this.spaces[i].transfer===bn&&(r.r=rs(r.r),r.g=rs(r.g),r.b=rs(r.b)),this.spaces[i].primaries!==this.spaces[s].primaries&&(r.applyMatrix3(this.spaces[i].toXYZ),r.applyMatrix3(this.spaces[s].fromXYZ)),this.spaces[s].transfer===bn&&(r.r=cu(r.r),r.g=cu(r.g),r.b=cu(r.b))),r},workingToColorSpace:function(r,i){return this.convert(r,this.workingColorSpace,i)},colorSpaceToWorking:function(r,i){return this.convert(r,i,this.workingColorSpace)},getPrimaries:function(r){return this.spaces[r].primaries},getTransfer:function(r){return r===Vs?Rp:this.spaces[r].transfer},getLuminanceCoefficients:function(r,i=this.workingColorSpace){return r.fromArray(this.spaces[i].luminanceCoefficients)},define:function(r){Object.assign(this.spaces,r)},_getMatrix:function(r,i,s){return r.copy(this.spaces[i].toXYZ).multiply(this.spaces[s].fromXYZ)},_getDrawingBufferColorSpace:function(r){return this.spaces[r].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(r=this.workingColorSpace){return this.spaces[r].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(r,i){return uu("THREE.ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."),e.workingToColorSpace(r,i)},toWorkingColorSpace:function(r,i){return uu("THREE.ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."),e.colorSpaceToWorking(r,i)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],o=[.3127,.329];return e.define({[Ou]:{primaries:t,whitePoint:o,transfer:Rp,toXYZ:sw,fromXYZ:aw,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Er},outputColorSpaceConfig:{drawingBufferColorSpace:Er}},[Er]:{primaries:t,whitePoint:o,transfer:bn,toXYZ:sw,fromXYZ:aw,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Er}}}),e}const dn=Fie();function rs(e){return e<.04045?e*.0773993808:Math.pow(e*.9478672986+.0521327014,2.4)}function cu(e){return e<.0031308?e*12.92:1.055*Math.pow(e,.41666)-.055}let Ml;class Bie{static getDataURL(t,n="image/png"){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let o;if(t instanceof HTMLCanvasElement)o=t;else{Ml===void 0&&(Ml=Dp("canvas")),Ml.width=t.width,Ml.height=t.height;const r=Ml.getContext("2d");t instanceof ImageData?r.putImageData(t,0,0):r.drawImage(t,0,0,t.width,t.height),o=Ml}return o.toDataURL(n)}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){const n=Dp("canvas");n.width=t.width,n.height=t.height;const o=n.getContext("2d");o.drawImage(t,0,0,t.width,t.height);const r=o.getImageData(0,0,t.width,t.height),i=r.data;for(let s=0;s1),this.pmremVersion=0}get width(){return this.source.getSize(km).x}get height(){return this.source.getSize(km).y}get depth(){return this.source.getSize(km).z}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(t,n){this.updateRanges.push({start:t,count:n})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.isArrayTexture=t.isArrayTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}setValues(t){for(const n in t){const o=t[n];if(o===void 0){console.warn(`THREE.Texture.setValues(): parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Texture.setValues(): property '${n}' does not exist.`);continue}r&&o&&r.isVector2&&o.isVector2||r&&o&&r.isVector3&&o.isVector3||r&&o&&r.isMatrix3&&o.isMatrix3?r.copy(o):this[n]=o}}toJSON(t){const n=t===void 0||typeof t=="string";if(!n&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];const o={metadata:{version:4.7,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(o.userData=this.userData),n||(t.textures[this.uuid]=o),o}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==oR)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Wg:t.x=t.x-Math.floor(t.x);break;case Ha:t.x=t.x<0?0:1;break;case Gg:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Wg:t.y=t.y-Math.floor(t.y);break;case Ha:t.y=t.y<0?0:1;break;case Gg:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}}Jo.DEFAULT_IMAGE=null;Jo.DEFAULT_MAPPING=oR;Jo.DEFAULT_ANISOTROPY=1;class Un{constructor(t=0,n=0,o=0,r=1){Un.prototype.isVector4=!0,this.x=t,this.y=n,this.z=o,this.w=r}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,n,o,r){return this.x=t,this.y=n,this.z=o,this.w=r,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w!==void 0?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this.z=t.z+n.z,this.w=t.w+n.w,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this.z+=t.z*n,this.w+=t.w*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this.z=t.z-n.z,this.w=t.w-n.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const n=this.x,o=this.y,r=this.z,i=this.w,s=t.elements;return this.x=s[0]*n+s[4]*o+s[8]*r+s[12]*i,this.y=s[1]*n+s[5]*o+s[9]*r+s[13]*i,this.z=s[2]*n+s[6]*o+s[10]*r+s[14]*i,this.w=s[3]*n+s[7]*o+s[11]*r+s[15]*i,this}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this.w/=t.w,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const n=Math.sqrt(1-t.w*t.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/n,this.y=t.y/n,this.z=t.z/n),this}setAxisAngleFromRotationMatrix(t){let n,o,r,i;const l=t.elements,u=l[0],d=l[4],f=l[8],p=l[1],h=l[5],m=l[9],v=l[2],b=l[6],g=l[10];if(Math.abs(d-p)<.01&&Math.abs(f-v)<.01&&Math.abs(m-b)<.01){if(Math.abs(d+p)<.1&&Math.abs(f+v)<.1&&Math.abs(m+b)<.1&&Math.abs(u+h+g-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const y=(u+1)/2,_=(h+1)/2,w=(g+1)/2,S=(d+p)/4,M=(f+v)/4,T=(m+b)/4;return y>_&&y>w?y<.01?(o=0,r=.707106781,i=.707106781):(o=Math.sqrt(y),r=S/o,i=M/o):_>w?_<.01?(o=.707106781,r=0,i=.707106781):(r=Math.sqrt(_),o=S/r,i=T/r):w<.01?(o=.707106781,r=.707106781,i=0):(i=Math.sqrt(w),o=M/i,r=T/i),this.set(o,r,i,n),this}let x=Math.sqrt((b-m)*(b-m)+(f-v)*(f-v)+(p-d)*(p-d));return Math.abs(x)<.001&&(x=1),this.x=(b-m)/x,this.y=(f-v)/x,this.z=(p-d)/x,this.w=Math.acos((u+h+g-1)/2),this}setFromMatrixPosition(t){const n=t.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this.w=n[15],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,n){return this.x=nn(this.x,t.x,n.x),this.y=nn(this.y,t.y,n.y),this.z=nn(this.z,t.z,n.z),this.w=nn(this.w,t.w,n.w),this}clampScalar(t,n){return this.x=nn(this.x,t,n),this.y=nn(this.y,t,n),this.z=nn(this.z,t,n),this.w=nn(this.w,t,n),this}clampLength(t,n){const o=this.length();return this.divideScalar(o||1).multiplyScalar(nn(o,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this.z+=(t.z-this.z)*n,this.w+=(t.w-this.w)*n,this}lerpVectors(t,n,o){return this.x=t.x+(n.x-t.x)*o,this.y=t.y+(n.y-t.y)*o,this.z=t.z+(n.z-t.z)*o,this.w=t.w+(n.w-t.w)*o,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this.z=t[n+2],this.w=t[n+3],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t[n+2]=this.z,t[n+3]=this.w,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this.z=t.getZ(n),this.w=t.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class zie extends ml{constructor(t=1,n=1,o={}){super(),o=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:gi,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1,depth:1,multiview:!1},o),this.isRenderTarget=!0,this.width=t,this.height=n,this.depth=o.depth,this.scissor=new Un(0,0,t,n),this.scissorTest=!1,this.viewport=new Un(0,0,t,n);const r={width:t,height:n,depth:o.depth},i=new Jo(r);this.textures=[];const s=o.count;for(let a=0;a1;this.dispose()}this.viewport.set(0,0,t,n),this.scissor.set(0,0,t,n)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.scissor.copy(t.scissor),this.scissorTest=t.scissorTest,this.viewport.copy(t.viewport),this.textures.length=0;for(let n=0,o=t.textures.length;n=this.min.x&&t.x<=this.max.x&&t.y>=this.min.y&&t.y<=this.max.y&&t.z>=this.min.z&&t.z<=this.max.z}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,n){return n.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return t.max.x>=this.min.x&&t.min.x<=this.max.x&&t.max.y>=this.min.y&&t.min.y<=this.max.y&&t.max.z>=this.min.z&&t.min.z<=this.max.z}intersectsSphere(t){return this.clampPoint(t.center,zr),zr.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let n,o;return t.normal.x>0?(n=t.normal.x*this.min.x,o=t.normal.x*this.max.x):(n=t.normal.x*this.max.x,o=t.normal.x*this.min.x),t.normal.y>0?(n+=t.normal.y*this.min.y,o+=t.normal.y*this.max.y):(n+=t.normal.y*this.max.y,o+=t.normal.y*this.min.y),t.normal.z>0?(n+=t.normal.z*this.min.z,o+=t.normal.z*this.max.z):(n+=t.normal.z*this.max.z,o+=t.normal.z*this.min.z),n<=-t.constant&&o>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(hc),Of.subVectors(this.max,hc),Tl.subVectors(t.a,hc),Al.subVectors(t.b,hc),kl.subVectors(t.c,hc),Ms.subVectors(Al,Tl),Ts.subVectors(kl,Al),wa.subVectors(Tl,kl);let n=[0,-Ms.z,Ms.y,0,-Ts.z,Ts.y,0,-wa.z,wa.y,Ms.z,0,-Ms.x,Ts.z,0,-Ts.x,wa.z,0,-wa.x,-Ms.y,Ms.x,0,-Ts.y,Ts.x,0,-wa.y,wa.x,0];return!Rm(n,Tl,Al,kl,Of)||(n=[1,0,0,0,1,0,0,0,1],!Rm(n,Tl,Al,kl,Of))?!1:(Ff.crossVectors(Ms,Ts),n=[Ff.x,Ff.y,Ff.z],Rm(n,Tl,Al,kl,Of))}clampPoint(t,n){return n.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,zr).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=this.getSize(zr).length()*.5),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(Ui[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Ui[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Ui[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Ui[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Ui[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Ui[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Ui[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Ui[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Ui),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(t){return this.min.fromArray(t.min),this.max.fromArray(t.max),this}}const Ui=[new ke,new ke,new ke,new ke,new ke,new ke,new ke,new ke],zr=new ke,Nf=new of,Tl=new ke,Al=new ke,kl=new ke,Ms=new ke,Ts=new ke,wa=new ke,hc=new ke,Of=new ke,Ff=new ke,Ca=new ke;function Rm(e,t,n,o,r){for(let i=0,s=e.length-3;i<=s;i+=3){Ca.fromArray(e,i);const a=r.x*Math.abs(Ca.x)+r.y*Math.abs(Ca.y)+r.z*Math.abs(Ca.z),l=t.dot(Ca),u=n.dot(Ca),d=o.dot(Ca);if(Math.max(-Math.max(l,u,d),Math.min(l,u,d))>a)return!1}return!0}const Hie=new of,pc=new ke,Pm=new ke;class D0{constructor(t=new ke,n=-1){this.isSphere=!0,this.center=t,this.radius=n}set(t,n){return this.center.copy(t),this.radius=n,this}setFromPoints(t,n){const o=this.center;n!==void 0?o.copy(n):Hie.setFromPoints(t).getCenter(o);let r=0;for(let i=0,s=t.length;ithis.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;pc.subVectors(t,this.center);const n=pc.lengthSq();if(n>this.radius*this.radius){const o=Math.sqrt(n),r=(o-this.radius)*.5;this.center.addScaledVector(pc,r/o),this.radius+=r}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(this.center.equals(t.center)===!0?this.radius=Math.max(this.radius,t.radius):(Pm.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(pc.copy(t.center).add(Pm)),this.expandByPoint(pc.copy(t.center).sub(Pm))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(t){return this.radius=t.radius,this.center.fromArray(t.center),this}}const zi=new ke,Dm=new ke,Bf=new ke,As=new ke,Im=new ke,$f=new ke,Lm=new ke;class I0{constructor(t=new ke,n=new ke(0,0,-1)){this.origin=t,this.direction=n}set(t,n){return this.origin.copy(t),this.direction.copy(n),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,n){return n.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,zi)),this}closestPointToPoint(t,n){n.subVectors(t,this.origin);const o=n.dot(this.direction);return o<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,o)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const n=zi.subVectors(t,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(t):(zi.copy(this.origin).addScaledVector(this.direction,n),zi.distanceToSquared(t))}distanceSqToSegment(t,n,o,r){Dm.copy(t).add(n).multiplyScalar(.5),Bf.copy(n).sub(t).normalize(),As.copy(this.origin).sub(Dm);const i=t.distanceTo(n)*.5,s=-this.direction.dot(Bf),a=As.dot(this.direction),l=-As.dot(Bf),u=As.lengthSq(),d=Math.abs(1-s*s);let f,p,h,m;if(d>0)if(f=s*l-a,p=s*a-l,m=i*d,f>=0)if(p>=-m)if(p<=m){const v=1/d;f*=v,p*=v,h=f*(f+s*p+2*a)+p*(s*f+p+2*l)+u}else p=i,f=Math.max(0,-(s*p+a)),h=-f*f+p*(p+2*l)+u;else p=-i,f=Math.max(0,-(s*p+a)),h=-f*f+p*(p+2*l)+u;else p<=-m?(f=Math.max(0,-(-s*i+a)),p=f>0?-i:Math.min(Math.max(-i,-l),i),h=-f*f+p*(p+2*l)+u):p<=m?(f=0,p=Math.min(Math.max(-i,-l),i),h=p*(p+2*l)+u):(f=Math.max(0,-(s*i+a)),p=f>0?i:Math.min(Math.max(-i,-l),i),h=-f*f+p*(p+2*l)+u);else p=s>0?-i:i,f=Math.max(0,-(s*p+a)),h=-f*f+p*(p+2*l)+u;return o&&o.copy(this.origin).addScaledVector(this.direction,f),r&&r.copy(Dm).addScaledVector(Bf,p),h}intersectSphere(t,n){zi.subVectors(t.center,this.origin);const o=zi.dot(this.direction),r=zi.dot(zi)-o*o,i=t.radius*t.radius;if(r>i)return null;const s=Math.sqrt(i-r),a=o-s,l=o+s;return l<0?null:a<0?this.at(l,n):this.at(a,n)}intersectsSphere(t){return t.radius<0?!1:this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const n=t.normal.dot(this.direction);if(n===0)return t.distanceToPoint(this.origin)===0?0:null;const o=-(this.origin.dot(t.normal)+t.constant)/n;return o>=0?o:null}intersectPlane(t,n){const o=this.distanceToPlane(t);return o===null?null:this.at(o,n)}intersectsPlane(t){const n=t.distanceToPoint(this.origin);return n===0||t.normal.dot(this.direction)*n<0}intersectBox(t,n){let o,r,i,s,a,l;const u=1/this.direction.x,d=1/this.direction.y,f=1/this.direction.z,p=this.origin;return u>=0?(o=(t.min.x-p.x)*u,r=(t.max.x-p.x)*u):(o=(t.max.x-p.x)*u,r=(t.min.x-p.x)*u),d>=0?(i=(t.min.y-p.y)*d,s=(t.max.y-p.y)*d):(i=(t.max.y-p.y)*d,s=(t.min.y-p.y)*d),o>s||i>r||((i>o||isNaN(o))&&(o=i),(s=0?(a=(t.min.z-p.z)*f,l=(t.max.z-p.z)*f):(a=(t.max.z-p.z)*f,l=(t.min.z-p.z)*f),o>l||a>r)||((a>o||o!==o)&&(o=a),(l=0?o:r,n)}intersectsBox(t){return this.intersectBox(t,zi)!==null}intersectTriangle(t,n,o,r,i){Im.subVectors(n,t),$f.subVectors(o,t),Lm.crossVectors(Im,$f);let s=this.direction.dot(Lm),a;if(s>0){if(r)return null;a=1}else if(s<0)a=-1,s=-s;else return null;As.subVectors(this.origin,t);const l=a*this.direction.dot($f.crossVectors(As,$f));if(l<0)return null;const u=a*this.direction.dot(Im.cross(As));if(u<0||l+u>s)return null;const d=-a*As.dot(Lm);return d<0?null:this.at(d/s,i)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class An{constructor(t,n,o,r,i,s,a,l,u,d,f,p,h,m,v,b){An.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,n,o,r,i,s,a,l,u,d,f,p,h,m,v,b)}set(t,n,o,r,i,s,a,l,u,d,f,p,h,m,v,b){const g=this.elements;return g[0]=t,g[4]=n,g[8]=o,g[12]=r,g[1]=i,g[5]=s,g[9]=a,g[13]=l,g[2]=u,g[6]=d,g[10]=f,g[14]=p,g[3]=h,g[7]=m,g[11]=v,g[15]=b,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new An().fromArray(this.elements)}copy(t){const n=this.elements,o=t.elements;return n[0]=o[0],n[1]=o[1],n[2]=o[2],n[3]=o[3],n[4]=o[4],n[5]=o[5],n[6]=o[6],n[7]=o[7],n[8]=o[8],n[9]=o[9],n[10]=o[10],n[11]=o[11],n[12]=o[12],n[13]=o[13],n[14]=o[14],n[15]=o[15],this}copyPosition(t){const n=this.elements,o=t.elements;return n[12]=o[12],n[13]=o[13],n[14]=o[14],this}setFromMatrix3(t){const n=t.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(t,n,o){return t.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),o.setFromMatrixColumn(this,2),this}makeBasis(t,n,o){return this.set(t.x,n.x,o.x,0,t.y,n.y,o.y,0,t.z,n.z,o.z,0,0,0,0,1),this}extractRotation(t){const n=this.elements,o=t.elements,r=1/Rl.setFromMatrixColumn(t,0).length(),i=1/Rl.setFromMatrixColumn(t,1).length(),s=1/Rl.setFromMatrixColumn(t,2).length();return n[0]=o[0]*r,n[1]=o[1]*r,n[2]=o[2]*r,n[3]=0,n[4]=o[4]*i,n[5]=o[5]*i,n[6]=o[6]*i,n[7]=0,n[8]=o[8]*s,n[9]=o[9]*s,n[10]=o[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(t){const n=this.elements,o=t.x,r=t.y,i=t.z,s=Math.cos(o),a=Math.sin(o),l=Math.cos(r),u=Math.sin(r),d=Math.cos(i),f=Math.sin(i);if(t.order==="XYZ"){const p=s*d,h=s*f,m=a*d,v=a*f;n[0]=l*d,n[4]=-l*f,n[8]=u,n[1]=h+m*u,n[5]=p-v*u,n[9]=-a*l,n[2]=v-p*u,n[6]=m+h*u,n[10]=s*l}else if(t.order==="YXZ"){const p=l*d,h=l*f,m=u*d,v=u*f;n[0]=p+v*a,n[4]=m*a-h,n[8]=s*u,n[1]=s*f,n[5]=s*d,n[9]=-a,n[2]=h*a-m,n[6]=v+p*a,n[10]=s*l}else if(t.order==="ZXY"){const p=l*d,h=l*f,m=u*d,v=u*f;n[0]=p-v*a,n[4]=-s*f,n[8]=m+h*a,n[1]=h+m*a,n[5]=s*d,n[9]=v-p*a,n[2]=-s*u,n[6]=a,n[10]=s*l}else if(t.order==="ZYX"){const p=s*d,h=s*f,m=a*d,v=a*f;n[0]=l*d,n[4]=m*u-h,n[8]=p*u+v,n[1]=l*f,n[5]=v*u+p,n[9]=h*u-m,n[2]=-u,n[6]=a*l,n[10]=s*l}else if(t.order==="YZX"){const p=s*l,h=s*u,m=a*l,v=a*u;n[0]=l*d,n[4]=v-p*f,n[8]=m*f+h,n[1]=f,n[5]=s*d,n[9]=-a*d,n[2]=-u*d,n[6]=h*f+m,n[10]=p-v*f}else if(t.order==="XZY"){const p=s*l,h=s*u,m=a*l,v=a*u;n[0]=l*d,n[4]=-f,n[8]=u*d,n[1]=p*f+v,n[5]=s*d,n[9]=h*f-m,n[2]=m*f-h,n[6]=a*d,n[10]=v*f+p}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Wie,t,Gie)}lookAt(t,n,o){const r=this.elements;return rr.subVectors(t,n),rr.lengthSq()===0&&(rr.z=1),rr.normalize(),ks.crossVectors(o,rr),ks.lengthSq()===0&&(Math.abs(o.z)===1?rr.x+=1e-4:rr.z+=1e-4,rr.normalize(),ks.crossVectors(o,rr)),ks.normalize(),Uf.crossVectors(rr,ks),r[0]=ks.x,r[4]=Uf.x,r[8]=rr.x,r[1]=ks.y,r[5]=Uf.y,r[9]=rr.y,r[2]=ks.z,r[6]=Uf.z,r[10]=rr.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){const o=t.elements,r=n.elements,i=this.elements,s=o[0],a=o[4],l=o[8],u=o[12],d=o[1],f=o[5],p=o[9],h=o[13],m=o[2],v=o[6],b=o[10],g=o[14],x=o[3],y=o[7],_=o[11],w=o[15],S=r[0],M=r[4],T=r[8],E=r[12],C=r[1],k=r[5],R=r[9],B=r[13],H=r[2],N=r[6],P=r[10],U=r[14],I=r[3],O=r[7],q=r[11],K=r[15];return i[0]=s*S+a*C+l*H+u*I,i[4]=s*M+a*k+l*N+u*O,i[8]=s*T+a*R+l*P+u*q,i[12]=s*E+a*B+l*U+u*K,i[1]=d*S+f*C+p*H+h*I,i[5]=d*M+f*k+p*N+h*O,i[9]=d*T+f*R+p*P+h*q,i[13]=d*E+f*B+p*U+h*K,i[2]=m*S+v*C+b*H+g*I,i[6]=m*M+v*k+b*N+g*O,i[10]=m*T+v*R+b*P+g*q,i[14]=m*E+v*B+b*U+g*K,i[3]=x*S+y*C+_*H+w*I,i[7]=x*M+y*k+_*N+w*O,i[11]=x*T+y*R+_*P+w*q,i[15]=x*E+y*B+_*U+w*K,this}multiplyScalar(t){const n=this.elements;return n[0]*=t,n[4]*=t,n[8]*=t,n[12]*=t,n[1]*=t,n[5]*=t,n[9]*=t,n[13]*=t,n[2]*=t,n[6]*=t,n[10]*=t,n[14]*=t,n[3]*=t,n[7]*=t,n[11]*=t,n[15]*=t,this}determinant(){const t=this.elements,n=t[0],o=t[4],r=t[8],i=t[12],s=t[1],a=t[5],l=t[9],u=t[13],d=t[2],f=t[6],p=t[10],h=t[14],m=t[3],v=t[7],b=t[11],g=t[15];return m*(+i*l*f-r*u*f-i*a*p+o*u*p+r*a*h-o*l*h)+v*(+n*l*h-n*u*p+i*s*p-r*s*h+r*u*d-i*l*d)+b*(+n*u*f-n*a*h-i*s*f+o*s*h+i*a*d-o*u*d)+g*(-r*a*d-n*l*f+n*a*p+r*s*f-o*s*p+o*l*d)}transpose(){const t=this.elements;let n;return n=t[1],t[1]=t[4],t[4]=n,n=t[2],t[2]=t[8],t[8]=n,n=t[6],t[6]=t[9],t[9]=n,n=t[3],t[3]=t[12],t[12]=n,n=t[7],t[7]=t[13],t[13]=n,n=t[11],t[11]=t[14],t[14]=n,this}setPosition(t,n,o){const r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=n,r[14]=o),this}invert(){const t=this.elements,n=t[0],o=t[1],r=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7],d=t[8],f=t[9],p=t[10],h=t[11],m=t[12],v=t[13],b=t[14],g=t[15],x=f*b*u-v*p*u+v*l*h-a*b*h-f*l*g+a*p*g,y=m*p*u-d*b*u-m*l*h+s*b*h+d*l*g-s*p*g,_=d*v*u-m*f*u+m*a*h-s*v*h-d*a*g+s*f*g,w=m*f*l-d*v*l-m*a*p+s*v*p+d*a*b-s*f*b,S=n*x+o*y+r*_+i*w;if(S===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const M=1/S;return t[0]=x*M,t[1]=(v*p*i-f*b*i-v*r*h+o*b*h+f*r*g-o*p*g)*M,t[2]=(a*b*i-v*l*i+v*r*u-o*b*u-a*r*g+o*l*g)*M,t[3]=(f*l*i-a*p*i-f*r*u+o*p*u+a*r*h-o*l*h)*M,t[4]=y*M,t[5]=(d*b*i-m*p*i+m*r*h-n*b*h-d*r*g+n*p*g)*M,t[6]=(m*l*i-s*b*i-m*r*u+n*b*u+s*r*g-n*l*g)*M,t[7]=(s*p*i-d*l*i+d*r*u-n*p*u-s*r*h+n*l*h)*M,t[8]=_*M,t[9]=(m*f*i-d*v*i-m*o*h+n*v*h+d*o*g-n*f*g)*M,t[10]=(s*v*i-m*a*i+m*o*u-n*v*u-s*o*g+n*a*g)*M,t[11]=(d*a*i-s*f*i-d*o*u+n*f*u+s*o*h-n*a*h)*M,t[12]=w*M,t[13]=(d*v*r-m*f*r+m*o*p-n*v*p-d*o*b+n*f*b)*M,t[14]=(m*a*r-s*v*r-m*o*l+n*v*l+s*o*b-n*a*b)*M,t[15]=(s*f*r-d*a*r+d*o*l-n*f*l-s*o*p+n*a*p)*M,this}scale(t){const n=this.elements,o=t.x,r=t.y,i=t.z;return n[0]*=o,n[4]*=r,n[8]*=i,n[1]*=o,n[5]*=r,n[9]*=i,n[2]*=o,n[6]*=r,n[10]*=i,n[3]*=o,n[7]*=r,n[11]*=i,this}getMaxScaleOnAxis(){const t=this.elements,n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],o=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(n,o,r))}makeTranslation(t,n,o){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,n,0,0,1,o,0,0,0,1),this}makeRotationX(t){const n=Math.cos(t),o=Math.sin(t);return this.set(1,0,0,0,0,n,-o,0,0,o,n,0,0,0,0,1),this}makeRotationY(t){const n=Math.cos(t),o=Math.sin(t);return this.set(n,0,o,0,0,1,0,0,-o,0,n,0,0,0,0,1),this}makeRotationZ(t){const n=Math.cos(t),o=Math.sin(t);return this.set(n,-o,0,0,o,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,n){const o=Math.cos(n),r=Math.sin(n),i=1-o,s=t.x,a=t.y,l=t.z,u=i*s,d=i*a;return this.set(u*s+o,u*a-r*l,u*l+r*a,0,u*a+r*l,d*a+o,d*l-r*s,0,u*l-r*a,d*l+r*s,i*l*l+o,0,0,0,0,1),this}makeScale(t,n,o){return this.set(t,0,0,0,0,n,0,0,0,0,o,0,0,0,0,1),this}makeShear(t,n,o,r,i,s){return this.set(1,o,i,0,t,1,s,0,n,r,1,0,0,0,0,1),this}compose(t,n,o){const r=this.elements,i=n._x,s=n._y,a=n._z,l=n._w,u=i+i,d=s+s,f=a+a,p=i*u,h=i*d,m=i*f,v=s*d,b=s*f,g=a*f,x=l*u,y=l*d,_=l*f,w=o.x,S=o.y,M=o.z;return r[0]=(1-(v+g))*w,r[1]=(h+_)*w,r[2]=(m-y)*w,r[3]=0,r[4]=(h-_)*S,r[5]=(1-(p+g))*S,r[6]=(b+x)*S,r[7]=0,r[8]=(m+y)*M,r[9]=(b-x)*M,r[10]=(1-(p+v))*M,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,n,o){const r=this.elements;let i=Rl.set(r[0],r[1],r[2]).length();const s=Rl.set(r[4],r[5],r[6]).length(),a=Rl.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),t.x=r[12],t.y=r[13],t.z=r[14],Vr.copy(this);const u=1/i,d=1/s,f=1/a;return Vr.elements[0]*=u,Vr.elements[1]*=u,Vr.elements[2]*=u,Vr.elements[4]*=d,Vr.elements[5]*=d,Vr.elements[6]*=d,Vr.elements[8]*=f,Vr.elements[9]*=f,Vr.elements[10]*=f,n.setFromRotationMatrix(Vr),o.x=i,o.y=s,o.z=a,this}makePerspective(t,n,o,r,i,s,a=Qi){const l=this.elements,u=2*i/(n-t),d=2*i/(o-r),f=(n+t)/(n-t),p=(o+r)/(o-r);let h,m;if(a===Qi)h=-(s+i)/(s-i),m=-2*s*i/(s-i);else if(a===Pp)h=-s/(s-i),m=-s*i/(s-i);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=f,l[12]=0,l[1]=0,l[5]=d,l[9]=p,l[13]=0,l[2]=0,l[6]=0,l[10]=h,l[14]=m,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,n,o,r,i,s,a=Qi){const l=this.elements,u=1/(n-t),d=1/(o-r),f=1/(s-i),p=(n+t)*u,h=(o+r)*d;let m,v;if(a===Qi)m=(s+i)*f,v=-2*f;else if(a===Pp)m=i*f,v=-1*f;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-p,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-h,l[2]=0,l[6]=0,l[10]=v,l[14]=-m,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){const n=this.elements,o=t.elements;for(let r=0;r<16;r++)if(n[r]!==o[r])return!1;return!0}fromArray(t,n=0){for(let o=0;o<16;o++)this.elements[o]=t[o+n];return this}toArray(t=[],n=0){const o=this.elements;return t[n]=o[0],t[n+1]=o[1],t[n+2]=o[2],t[n+3]=o[3],t[n+4]=o[4],t[n+5]=o[5],t[n+6]=o[6],t[n+7]=o[7],t[n+8]=o[8],t[n+9]=o[9],t[n+10]=o[10],t[n+11]=o[11],t[n+12]=o[12],t[n+13]=o[13],t[n+14]=o[14],t[n+15]=o[15],t}}const Rl=new ke,Vr=new An,Wie=new ke(0,0,0),Gie=new ke(1,1,1),ks=new ke,Uf=new ke,rr=new ke,lw=new An,uw=new ll;class Ri{constructor(t=0,n=0,o=0,r=Ri.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=o,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,n,o,r=this._order){return this._x=t,this._y=n,this._z=o,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,n=this._order,o=!0){const r=t.elements,i=r[0],s=r[4],a=r[8],l=r[1],u=r[5],d=r[9],f=r[2],p=r[6],h=r[10];switch(n){case"XYZ":this._y=Math.asin(nn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-d,h),this._z=Math.atan2(-s,i)):(this._x=Math.atan2(p,u),this._z=0);break;case"YXZ":this._x=Math.asin(-nn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-f,i),this._z=0);break;case"ZXY":this._x=Math.asin(nn(p,-1,1)),Math.abs(p)<.9999999?(this._y=Math.atan2(-f,h),this._z=Math.atan2(-s,u)):(this._y=0,this._z=Math.atan2(l,i));break;case"ZYX":this._y=Math.asin(-nn(f,-1,1)),Math.abs(f)<.9999999?(this._x=Math.atan2(p,h),this._z=Math.atan2(l,i)):(this._x=0,this._z=Math.atan2(-s,u));break;case"YZX":this._z=Math.asin(nn(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,u),this._y=Math.atan2(-f,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-nn(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(p,u),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-d,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,o===!0&&this._onChangeCallback(),this}setFromQuaternion(t,n,o){return lw.makeRotationFromQuaternion(t),this.setFromRotationMatrix(lw,n,o)}setFromVector3(t,n=this._order){return this.set(t.x,t.y,t.z,n)}reorder(t){return uw.setFromEuler(this),this.setFromQuaternion(uw,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ri.DEFAULT_ORDER="XYZ";class Z1{constructor(){this.mask=1}set(t){this.mask=(1<>>0}enable(t){this.mask|=1<1){for(let n=0;n1){for(let o=0;o0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(a=>({...a,boundingBox:a.boundingBox?a.boundingBox.toJSON():void 0,boundingSphere:a.boundingSphere?a.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(a=>({...a})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(t),r.indirectTexture=this._indirectTexture.toJSON(t),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(t)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(t.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,d=l.length;u0){r.children=[];for(let a=0;a0){r.animations=[];for(let a=0;a0&&(o.geometries=a),l.length>0&&(o.materials=l),u.length>0&&(o.textures=u),d.length>0&&(o.images=d),f.length>0&&(o.shapes=f),p.length>0&&(o.skeletons=p),h.length>0&&(o.animations=h),m.length>0&&(o.nodes=m)}return o.object=r,o;function s(a){const l=[];for(const u in a){const d=a[u];delete d.metadata,l.push(d)}return l}}clone(t){return new this.constructor().copy(this,t)}copy(t,n=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),n===!0)for(let o=0;o0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(t,n,o,r,i){Hr.subVectors(r,n),Hi.subVectors(o,n),Om.subVectors(t,n);const s=Hr.dot(Hr),a=Hr.dot(Hi),l=Hr.dot(Om),u=Hi.dot(Hi),d=Hi.dot(Om),f=s*u-a*a;if(f===0)return i.set(0,0,0),null;const p=1/f,h=(u*l-a*d)*p,m=(s*d-a*l)*p;return i.set(1-h-m,m,h)}static containsPoint(t,n,o,r){return this.getBarycoord(t,n,o,r,Wi)===null?!1:Wi.x>=0&&Wi.y>=0&&Wi.x+Wi.y<=1}static getInterpolation(t,n,o,r,i,s,a,l){return this.getBarycoord(t,n,o,r,Wi)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(i,Wi.x),l.addScaledVector(s,Wi.y),l.addScaledVector(a,Wi.z),l)}static getInterpolatedAttribute(t,n,o,r,i,s){return Um.setScalar(0),zm.setScalar(0),Vm.setScalar(0),Um.fromBufferAttribute(t,n),zm.fromBufferAttribute(t,o),Vm.fromBufferAttribute(t,r),s.setScalar(0),s.addScaledVector(Um,i.x),s.addScaledVector(zm,i.y),s.addScaledVector(Vm,i.z),s}static isFrontFacing(t,n,o,r){return Hr.subVectors(o,n),Hi.subVectors(t,n),Hr.cross(Hi).dot(r)<0}set(t,n,o){return this.a.copy(t),this.b.copy(n),this.c.copy(o),this}setFromPointsAndIndices(t,n,o,r){return this.a.copy(t[n]),this.b.copy(t[o]),this.c.copy(t[r]),this}setFromAttributeAndIndices(t,n,o,r){return this.a.fromBufferAttribute(t,n),this.b.fromBufferAttribute(t,o),this.c.fromBufferAttribute(t,r),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Hr.subVectors(this.c,this.b),Hi.subVectors(this.a,this.b),Hr.cross(Hi).length()*.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Tr.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return Tr.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,o,r,i){return Tr.getInterpolation(t,this.a,this.b,this.c,n,o,r,i)}containsPoint(t){return Tr.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Tr.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,n){const o=this.a,r=this.b,i=this.c;let s,a;Il.subVectors(r,o),Ll.subVectors(i,o),Fm.subVectors(t,o);const l=Il.dot(Fm),u=Ll.dot(Fm);if(l<=0&&u<=0)return n.copy(o);Bm.subVectors(t,r);const d=Il.dot(Bm),f=Ll.dot(Bm);if(d>=0&&f<=d)return n.copy(r);const p=l*f-d*u;if(p<=0&&l>=0&&d<=0)return s=l/(l-d),n.copy(o).addScaledVector(Il,s);$m.subVectors(t,i);const h=Il.dot($m),m=Ll.dot($m);if(m>=0&&h<=m)return n.copy(i);const v=h*u-l*m;if(v<=0&&u>=0&&m<=0)return a=u/(u-m),n.copy(o).addScaledVector(Ll,a);const b=d*m-h*f;if(b<=0&&f-d>=0&&h-m>=0)return mw.subVectors(i,r),a=(f-d)/(f-d+(h-m)),n.copy(r).addScaledVector(mw,a);const g=1/(b+v+p);return s=v*g,a=p*g,n.copy(o).addScaledVector(Il,s).addScaledVector(Ll,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const vR={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Rs={h:0,s:0,l:0},Vf={h:0,s:0,l:0};function Hm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}class un{constructor(t,n,o){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,n,o)}set(t,n,o){if(n===void 0&&o===void 0){const r=t;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(t,n,o);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,n=Er){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,dn.colorSpaceToWorking(this,n),this}setRGB(t,n,o,r=dn.workingColorSpace){return this.r=t,this.g=n,this.b=o,dn.colorSpaceToWorking(this,r),this}setHSL(t,n,o,r=dn.workingColorSpace){if(t=Pie(t,1),n=nn(n,0,1),o=nn(o,0,1),n===0)this.r=this.g=this.b=o;else{const i=o<=.5?o*(1+n):o+n-o*n,s=2*o-i;this.r=Hm(s,i,t+1/3),this.g=Hm(s,i,t),this.b=Hm(s,i,t-1/3)}return dn.colorSpaceToWorking(this,r),this}setStyle(t,n=Er){function o(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(t)){let i;const s=r[1],a=r[2];switch(s){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return o(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,n);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return o(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,n);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return o(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(t)){const i=r[1],s=i.length;if(s===3)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(i,16),n);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,n);return this}setColorName(t,n=Er){const o=vR[t.toLowerCase()];return o!==void 0?this.setHex(o,n):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=rs(t.r),this.g=rs(t.g),this.b=rs(t.b),this}copyLinearToSRGB(t){return this.r=cu(t.r),this.g=cu(t.g),this.b=cu(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Er){return dn.workingToColorSpace(wo.copy(this),t),Math.round(nn(wo.r*255,0,255))*65536+Math.round(nn(wo.g*255,0,255))*256+Math.round(nn(wo.b*255,0,255))}getHexString(t=Er){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,n=dn.workingColorSpace){dn.workingToColorSpace(wo.copy(this),n);const o=wo.r,r=wo.g,i=wo.b,s=Math.max(o,r,i),a=Math.min(o,r,i);let l,u;const d=(a+s)/2;if(a===s)l=0,u=0;else{const f=s-a;switch(u=d<=.5?f/(s+a):f/(2-s-a),s){case o:l=(r-i)/f+(r0!=t>0&&this.version++,this._alphaTest=t}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(t!==void 0)for(const n in t){const o=t[n];if(o===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(o):r&&r.isVector3&&o&&o.isVector3?r.copy(o):this[n]=o}}toJSON(t){const n=t===void 0||typeof t=="string";n&&(t={textures:{},images:{}});const o={metadata:{version:4.7,type:"Material",generator:"Material.toJSON"}};o.uuid=this.uuid,o.type=this.type,this.name!==""&&(o.name=this.name),this.color&&this.color.isColor&&(o.color=this.color.getHex()),this.roughness!==void 0&&(o.roughness=this.roughness),this.metalness!==void 0&&(o.metalness=this.metalness),this.sheen!==void 0&&(o.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(o.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(o.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(o.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(o.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(o.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(o.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(o.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(o.shininess=this.shininess),this.clearcoat!==void 0&&(o.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(o.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(o.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(o.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(o.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,o.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(o.dispersion=this.dispersion),this.iridescence!==void 0&&(o.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(o.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(o.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(o.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(o.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.anisotropy!==void 0&&(o.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(o.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(o.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(o.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(o.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(o.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(o.lightMap=this.lightMap.toJSON(t).uuid,o.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(o.aoMap=this.aoMap.toJSON(t).uuid,o.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(o.bumpMap=this.bumpMap.toJSON(t).uuid,o.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(o.normalMap=this.normalMap.toJSON(t).uuid,o.normalMapType=this.normalMapType,o.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(o.displacementMap=this.displacementMap.toJSON(t).uuid,o.displacementScale=this.displacementScale,o.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(o.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(o.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(o.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(o.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(o.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(o.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(o.envMap=this.envMap.toJSON(t).uuid,this.combine!==void 0&&(o.combine=this.combine)),this.envMapRotation!==void 0&&(o.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(o.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(o.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(o.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(o.gradientMap=this.gradientMap.toJSON(t).uuid),this.transmission!==void 0&&(o.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(o.transmissionMap=this.transmissionMap.toJSON(t).uuid),this.thickness!==void 0&&(o.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(o.thicknessMap=this.thicknessMap.toJSON(t).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(o.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(o.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(o.size=this.size),this.shadowSide!==null&&(o.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(o.sizeAttenuation=this.sizeAttenuation),this.blending!==lu&&(o.blending=this.blending),this.side!==ua&&(o.side=this.side),this.vertexColors===!0&&(o.vertexColors=!0),this.opacity<1&&(o.opacity=this.opacity),this.transparent===!0&&(o.transparent=!0),this.blendSrc!==Ig&&(o.blendSrc=this.blendSrc),this.blendDst!==Lg&&(o.blendDst=this.blendDst),this.blendEquation!==Na&&(o.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(o.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(o.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(o.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(o.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(o.blendAlpha=this.blendAlpha),this.depthFunc!==Iu&&(o.depthFunc=this.depthFunc),this.depthTest===!1&&(o.depthTest=this.depthTest),this.depthWrite===!1&&(o.depthWrite=this.depthWrite),this.colorWrite===!1&&(o.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(o.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==tw&&(o.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(o.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(o.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==El&&(o.stencilFail=this.stencilFail),this.stencilZFail!==El&&(o.stencilZFail=this.stencilZFail),this.stencilZPass!==El&&(o.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(o.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(o.rotation=this.rotation),this.polygonOffset===!0&&(o.polygonOffset=!0),this.polygonOffsetFactor!==0&&(o.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(o.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(o.linewidth=this.linewidth),this.dashSize!==void 0&&(o.dashSize=this.dashSize),this.gapSize!==void 0&&(o.gapSize=this.gapSize),this.scale!==void 0&&(o.scale=this.scale),this.dithering===!0&&(o.dithering=!0),this.alphaTest>0&&(o.alphaTest=this.alphaTest),this.alphaHash===!0&&(o.alphaHash=!0),this.alphaToCoverage===!0&&(o.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(o.premultipliedAlpha=!0),this.forceSinglePass===!0&&(o.forceSinglePass=!0),this.wireframe===!0&&(o.wireframe=!0),this.wireframeLinewidth>1&&(o.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(o.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(o.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(o.flatShading=!0),this.visible===!1&&(o.visible=!1),this.toneMapped===!1&&(o.toneMapped=!1),this.fog===!1&&(o.fog=!1),Object.keys(this.userData).length>0&&(o.userData=this.userData);function r(i){const s=[];for(const a in i){const l=i[a];delete l.metadata,s.push(l)}return s}if(n){const i=r(t.textures),s=r(t.images);i.length>0&&(o.textures=i),s.length>0&&(o.images=s)}return o}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const n=t.clippingPlanes;let o=null;if(n!==null){const r=n.length;o=new Array(r);for(let i=0;i!==r;++i)o[i]=n[i].clone()}return this.clippingPlanes=o,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){t===!0&&this.version++}}class J1 extends nc{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new un(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ri,this.combine=nR,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const Kn=new ke,Hf=new mt;let Zie=0;class Si{constructor(t,n,o=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Zie++}),this.name="",this.array=t,this.itemSize=n,this.count=t!==void 0?t.length/n:0,this.normalized=o,this.usage=nw,this.updateRanges=[],this.gpuType=Ji,this.version=0}onUploadCallback(){}set needsUpdate(t){t===!0&&this.version++}setUsage(t){return this.usage=t,this}addUpdateRange(t,n){this.updateRanges.push({start:t,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}copyAt(t,n,o){t*=this.itemSize,o*=n.itemSize;for(let r=0,i=this.itemSize;rn.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),n.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new of);const t=this.attributes.position,n=this.morphAttributes.position;if(t&&t.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new ke(-1/0,-1/0,-1/0),new ke(1/0,1/0,1/0));return}if(t!==void 0){if(this.boundingBox.setFromBufferAttribute(t),n)for(let o=0,r=n.length;o0&&(t.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const u in l)l[u]!==void 0&&(t[u]=l[u]);return t}t.data={attributes:{}};const n=this.index;n!==null&&(t.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const o=this.attributes;for(const l in o){const u=o[l];t.data.attributes[l]=u.toJSON(t.data)}const r={};let i=!1;for(const l in this.morphAttributes){const u=this.morphAttributes[l],d=[];for(let f=0,p=u.length;f0&&(r[l]=d,i=!0)}i&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return a!==null&&(t.data.boundingSphere=a.toJSON()),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=t.name;const o=t.index;o!==null&&this.setIndex(o.clone());const r=t.attributes;for(const u in r){const d=r[u];this.setAttribute(u,d.clone(n))}const i=t.morphAttributes;for(const u in i){const d=[],f=i[u];for(let p=0,h=f.length;p0){const r=n[o[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,s=r.length;i(t.far-t.near)**2))&&(vw.copy(i).invert(),Ea.copy(t.ray).applyMatrix4(vw),!(o.boundingBox!==null&&Ea.intersectsBox(o.boundingBox)===!1)&&this._computeIntersections(t,n,Ea)))}_computeIntersections(t,n,o){let r;const i=this.geometry,s=this.material,a=i.index,l=i.attributes.position,u=i.attributes.uv,d=i.attributes.uv1,f=i.attributes.normal,p=i.groups,h=i.drawRange;if(a!==null)if(Array.isArray(s))for(let m=0,v=p.length;mn.far?null:{distance:u,point:Yf.clone(),object:e}}function Xf(e,t,n,o,r,i,s,a,l,u){e.getVertexPosition(a,Gf),e.getVertexPosition(l,Kf),e.getVertexPosition(u,qf);const d=Qie(e,t,n,o,Gf,Kf,qf,bw);if(d){const f=new ke;Tr.getBarycoord(bw,Gf,Kf,qf,f),r&&(d.uv=Tr.getInterpolatedAttribute(r,a,l,u,f,new mt)),i&&(d.uv1=Tr.getInterpolatedAttribute(i,a,l,u,f,new mt)),s&&(d.normal=Tr.getInterpolatedAttribute(s,a,l,u,f,new ke),d.normal.dot(o.direction)>0&&d.normal.multiplyScalar(-1));const p={a,b:l,c:u,normal:new ke,materialIndex:0};Tr.getNormal(Gf,Kf,qf,p.normal),d.face=p,d.barycoord=f}return d}class Qs extends uo{constructor(t=1,n=1,o=1,r=1,i=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:n,depth:o,widthSegments:r,heightSegments:i,depthSegments:s};const a=this;r=Math.floor(r),i=Math.floor(i),s=Math.floor(s);const l=[],u=[],d=[],f=[];let p=0,h=0;m("z","y","x",-1,-1,o,n,t,s,i,0),m("z","y","x",1,-1,o,n,-t,s,i,1),m("x","z","y",1,1,t,o,n,r,s,2),m("x","z","y",1,-1,t,o,-n,r,s,3),m("x","y","z",1,-1,t,n,o,r,i,4),m("x","y","z",-1,-1,t,n,-o,r,i,5),this.setIndex(l),this.setAttribute("position",new In(u,3)),this.setAttribute("normal",new In(d,3)),this.setAttribute("uv",new In(f,2));function m(v,b,g,x,y,_,w,S,M,T,E){const C=_/M,k=w/T,R=_/2,B=w/2,H=S/2,N=M+1,P=T+1;let U=0,I=0;const O=new ke;for(let q=0;q0?1:-1,d.push(O.x,O.y,O.z),f.push(oe/M),f.push(1-q/T),U+=1}}for(let q=0;q0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const o={};for(const r in this.extensions)this.extensions[r]===!0&&(o[r]=!0);return Object.keys(o).length>0&&(n.extensions=o),n}}class _R extends yo{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new An,this.projectionMatrix=new An,this.projectionMatrixInverse=new An,this.coordinateSystem=Qi}copy(t,n){return super.copy(t,n),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this.coordinateSystem=t.coordinateSystem,this}getWorldDirection(t){return super.getWorldDirection(t).negate()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,n){super.updateWorldMatrix(t,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Ps=new ke,yw=new mt,_w=new mt;class Mr extends _R{constructor(t=50,n=1,o=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=o,this.far=r,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,n){return super.copy(t,n),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=t.view===null?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const n=.5*this.getFilmHeight()/t;this.fov=bb*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(zc*.5*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return bb*2*Math.atan(Math.tan(zc*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(t,n,o){Ps.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Ps.x,Ps.y).multiplyScalar(-t/Ps.z),Ps.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),o.set(Ps.x,Ps.y).multiplyScalar(-t/Ps.z)}getViewSize(t,n){return this.getViewBounds(t,yw,_w),n.subVectors(_w,yw)}setViewOffset(t,n,o,r,i,s){this.aspect=t/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=n,this.view.offsetX=o,this.view.offsetY=r,this.view.width=i,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let n=t*Math.tan(zc*.5*this.fov)/this.zoom,o=2*n,r=this.aspect*o,i=-.5*r;const s=this.view;if(this.view!==null&&this.view.enabled){const l=s.fullWidth,u=s.fullHeight;i+=s.offsetX*r/l,n-=s.offsetY*o/u,r*=s.width/l,o*=s.height/u}const a=this.filmOffset;a!==0&&(i+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,n,n-o,t,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const n=super.toJSON(t);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Ol=-90,Fl=1;class rse extends yo{constructor(t,n,o){super(),this.type="CubeCamera",this.renderTarget=o,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Mr(Ol,Fl,t,n);r.layers=this.layers,this.add(r);const i=new Mr(Ol,Fl,t,n);i.layers=this.layers,this.add(i);const s=new Mr(Ol,Fl,t,n);s.layers=this.layers,this.add(s);const a=new Mr(Ol,Fl,t,n);a.layers=this.layers,this.add(a);const l=new Mr(Ol,Fl,t,n);l.layers=this.layers,this.add(l);const u=new Mr(Ol,Fl,t,n);u.layers=this.layers,this.add(u)}updateCoordinateSystem(){const t=this.coordinateSystem,n=this.children.concat(),[o,r,i,s,a,l]=n;for(const u of n)this.remove(u);if(t===Qi)o.up.set(0,1,0),o.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(t===Pp)o.up.set(0,-1,0),o.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+t);for(const u of n)this.add(u),u.updateMatrixWorld()}update(t,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:o,activeMipmapLevel:r}=this;this.coordinateSystem!==t.coordinateSystem&&(this.coordinateSystem=t.coordinateSystem,this.updateCoordinateSystem());const[i,s,a,l,u,d]=this.children,f=t.getRenderTarget(),p=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),m=t.xr.enabled;t.xr.enabled=!1;const v=o.texture.generateMipmaps;o.texture.generateMipmaps=!1,t.setRenderTarget(o,0,r),t.render(n,i),t.setRenderTarget(o,1,r),t.render(n,s),t.setRenderTarget(o,2,r),t.render(n,a),t.setRenderTarget(o,3,r),t.render(n,l),t.setRenderTarget(o,4,r),t.render(n,u),o.texture.generateMipmaps=v,t.setRenderTarget(o,5,r),t.render(n,d),t.setRenderTarget(f,p,h),t.xr.enabled=m,o.texture.needsPMREMUpdate=!0}}class xR extends Jo{constructor(t=[],n=Lu,o,r,i,s,a,l,u,d){super(t,n,o,r,i,s,a,l,u,d),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class ise extends ul{constructor(t=1,n={}){super(t,t,n),this.isWebGLCubeRenderTarget=!0;const o={width:t,height:t,depth:1},r=[o,o,o,o,o,o];this.texture=new xR(r),this._setTextureOptions(n),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(t,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const o={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include } `,fragmentShader:` uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); gl_FragColor = texture2D( tEquirect, sampleUV ); } `},r=new Qs(5,5,5),i=new ca({name:"CubemapFromEquirect",uniforms:Fu(o.uniforms),vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,side:Zo,blending:Zs});i.uniforms.tEquirect.value=n;const s=new Yt(r,i),a=n.minFilter;return n.minFilter===Wa&&(n.minFilter=gi),new rse(1,10,this).update(t,s),n.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(t,n=!0,o=!0,r=!0){const i=t.getRenderTarget();for(let s=0;s<6;s++)t.setRenderTarget(this,s),t.clear(n,o,r);t.setRenderTarget(i)}}class Zf extends yo{constructor(){super(),this.isGroup=!0,this.type="Group"}}const sse={type:"move"};class Km{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Zf,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Zf,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ke,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ke),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Zf,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ke,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ke),this._grip}dispatchEvent(t){return this._targetRay!==null&&this._targetRay.dispatchEvent(t),this._grip!==null&&this._grip.dispatchEvent(t),this._hand!==null&&this._hand.dispatchEvent(t),this}connect(t){if(t&&t.hand){const n=this._hand;if(n)for(const o of t.hand.values())this._getHandJoint(n,o)}return this.dispatchEvent({type:"connected",data:t}),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(t,n,o){let r=null,i=null,s=null;const a=this._targetRay,l=this._grip,u=this._hand;if(t&&n.session.visibilityState!=="visible-blurred"){if(u&&t.hand){s=!0;for(const v of t.hand.values()){const b=n.getJointPose(v,o),g=this._getHandJoint(u,v);b!==null&&(g.matrix.fromArray(b.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale),g.matrixWorldNeedsUpdate=!0,g.jointRadius=b.radius),g.visible=b!==null}const d=u.joints["index-finger-tip"],f=u.joints["thumb-tip"],p=d.position.distanceTo(f.position),h=.02,m=.005;u.inputState.pinching&&p>h+m?(u.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!u.inputState.pinching&&p<=h-m&&(u.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else l!==null&&t.gripSpace&&(i=n.getPose(t.gripSpace,o),i!==null&&(l.matrix.fromArray(i.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,i.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(i.linearVelocity)):l.hasLinearVelocity=!1,i.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(i.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(r=n.getPose(t.targetRaySpace,o),r===null&&i!==null&&(r=i),r!==null&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(sse)))}return a!==null&&(a.visible=r!==null),l!==null&&(l.visible=i!==null),u!==null&&(u.visible=s!==null),this}_getHandJoint(t,n){if(t.joints[n.jointName]===void 0){const o=new Zf;o.matrixAutoUpdate=!1,o.visible=!1,t.joints[n.jointName]=o,t.add(o)}return t.joints[n.jointName]}}class ase extends yo{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Ri,this.environmentIntensity=1,this.environmentRotation=new Ri,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,n){return super.copy(t,n),t.background!==null&&(this.background=t.background.clone()),t.environment!==null&&(this.environment=t.environment.clone()),t.fog!==null&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,this.backgroundRotation.copy(t.backgroundRotation),this.environmentIntensity=t.environmentIntensity,this.environmentRotation.copy(t.environmentRotation),t.overrideMaterial!==null&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const n=super.toJSON(t);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(n.object.environmentIntensity=this.environmentIntensity),n.object.environmentRotation=this.environmentRotation.toArray(),n}}const qm=new ke,lse=new ke,use=new Xt;class $s{constructor(t=new ke(1,0,0),n=0){this.isPlane=!0,this.normal=t,this.constant=n}set(t,n){return this.normal.copy(t),this.constant=n,this}setComponents(t,n,o,r){return this.normal.set(t,n,o),this.constant=r,this}setFromNormalAndCoplanarPoint(t,n){return this.normal.copy(t),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(t,n,o){const r=qm.subVectors(o,n).cross(lse.subVectors(t,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,n){return n.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,n){const o=t.delta(qm),r=this.normal.dot(o);if(r===0)return this.distanceToPoint(t.start)===0?n.copy(t.start):null;const i=-(t.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:n.copy(t.start).addScaledVector(o,i)}intersectsLine(t){const n=this.distanceToPoint(t.start),o=this.distanceToPoint(t.end);return n<0&&o>0||o<0&&n>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,n){const o=n||use.getNormalMatrix(t),r=this.coplanarPoint(qm).applyMatrix4(t),i=this.normal.applyMatrix3(o).normalize();return this.constant=-r.dot(i),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ma=new D0,Jf=new ke;class Q1{constructor(t=new $s,n=new $s,o=new $s,r=new $s,i=new $s,s=new $s){this.planes=[t,n,o,r,i,s]}set(t,n,o,r,i,s){const a=this.planes;return a[0].copy(t),a[1].copy(n),a[2].copy(o),a[3].copy(r),a[4].copy(i),a[5].copy(s),this}copy(t){const n=this.planes;for(let o=0;o<6;o++)n[o].copy(t.planes[o]);return this}setFromProjectionMatrix(t,n=Qi){const o=this.planes,r=t.elements,i=r[0],s=r[1],a=r[2],l=r[3],u=r[4],d=r[5],f=r[6],p=r[7],h=r[8],m=r[9],v=r[10],b=r[11],g=r[12],x=r[13],y=r[14],_=r[15];if(o[0].setComponents(l-i,p-u,b-h,_-g).normalize(),o[1].setComponents(l+i,p+u,b+h,_+g).normalize(),o[2].setComponents(l+s,p+d,b+m,_+x).normalize(),o[3].setComponents(l-s,p-d,b-m,_-x).normalize(),o[4].setComponents(l-a,p-f,b-v,_-y).normalize(),n===Qi)o[5].setComponents(l+a,p+f,b+v,_+y).normalize();else if(n===Pp)o[5].setComponents(a,f,v,y).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(t){if(t.boundingSphere!==void 0)t.boundingSphere===null&&t.computeBoundingSphere(),Ma.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const n=t.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Ma.copy(n.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Ma)}intersectsSprite(t){return Ma.center.set(0,0,0),Ma.radius=.7071067811865476,Ma.applyMatrix4(t.matrixWorld),this.intersectsSphere(Ma)}intersectsSphere(t){const n=this.planes,o=t.center,r=-t.radius;for(let i=0;i<6;i++)if(n[i].distanceToPoint(o)0?t.max.x:t.min.x,Jf.y=r.normal.y>0?t.max.y:t.min.y,Jf.z=r.normal.z>0?t.max.z:t.min.z,r.distanceToPoint(Jf)<0)return!1}return!0}containsPoint(t){const n=this.planes;for(let o=0;o<6;o++)if(n[o].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}class yb extends nc{constructor(t){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new un(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}const Ip=new ke,Lp=new ke,xw=new An,gc=new I0,Qf=new D0,jm=new ke,Sw=new ke;class Wl extends yo{constructor(t=new uo,n=new yb){super(),this.isLine=!0,this.type="Line",this.geometry=t,this.material=n,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(t,n){return super.copy(t,n),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.index===null){const n=t.attributes.position,o=[0];for(let r=1,i=n.count;r0){const r=n[o[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let i=0,s=r.length;io)return;jm.applyMatrix4(e.matrixWorld);const u=t.ray.origin.distanceTo(jm);if(!(ut.far))return{distance:u,point:Sw.clone().applyMatrix4(e.matrixWorld),index:s,face:null,faceIndex:null,barycoord:null,object:e}}const ww=new ke,Cw=new ke;class cse extends Wl{constructor(t,n){super(t,n),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.index===null){const n=t.attributes.position,o=[];for(let r=0,i=n.count;r0&&y(!0),n>0&&y(!1)),this.setIndex(d),this.setAttribute("position",new In(f,3)),this.setAttribute("normal",new In(p,3)),this.setAttribute("uv",new In(h,2));function x(){const _=new ke,w=new ke;let S=0;const M=(n-t)/o;for(let T=0;T<=i;T++){const E=[],C=T/i,k=C*(n-t)+t;for(let R=0;R<=r;R++){const B=R/r,H=B*l+a,N=Math.sin(H),P=Math.cos(H);w.x=k*N,w.y=-C*o+b,w.z=k*P,f.push(w.x,w.y,w.z),_.set(N,M,P).normalize(),p.push(_.x,_.y,_.z),h.push(B,1-C),E.push(m++)}v.push(E)}for(let T=0;T0||E!==0)&&(d.push(C,k,B),S+=3),(n>0||E!==i-1)&&(d.push(k,R,B),S+=3)}u.addGroup(g,S,0),g+=S}function y(_){const w=m,S=new mt,M=new ke;let T=0;const E=_===!0?t:n,C=_===!0?1:-1;for(let R=1;R<=r;R++)f.push(0,b*C,0),p.push(0,C,0),h.push(.5,.5),m++;const k=m;for(let R=0;R<=r;R++){const H=R/r*l+a,N=Math.cos(H),P=Math.sin(H);M.x=E*P,M.y=b*C,M.z=E*N,f.push(M.x,M.y,M.z),p.push(0,C,0),S.x=N*.5+.5,S.y=P*.5*C+.5,h.push(S.x,S.y),m++}for(let R=0;R0)l=r-1;else{l=r;break}if(r=l,o[r]===s)return r/(i-1);const d=o[r],p=o[r+1]-d,h=(s-d)/p;return(r+h)/(i-1)}getTangent(t,n){let r=t-1e-4,i=t+1e-4;r<0&&(r=0),i>1&&(i=1);const s=this.getPoint(r),a=this.getPoint(i),l=n||(s.isVector2?new mt:new ke);return l.copy(a).sub(s).normalize(),l}getTangentAt(t,n){const o=this.getUtoTmapping(t);return this.getTangent(o,n)}computeFrenetFrames(t,n=!1){const o=new ke,r=[],i=[],s=[],a=new ke,l=new An;for(let h=0;h<=t;h++){const m=h/t;r[h]=this.getTangentAt(m,new ke)}i[0]=new ke,s[0]=new ke;let u=Number.MAX_VALUE;const d=Math.abs(r[0].x),f=Math.abs(r[0].y),p=Math.abs(r[0].z);d<=u&&(u=d,o.set(1,0,0)),f<=u&&(u=f,o.set(0,1,0)),p<=u&&o.set(0,0,1),a.crossVectors(r[0],o).normalize(),i[0].crossVectors(r[0],a),s[0].crossVectors(r[0],i[0]);for(let h=1;h<=t;h++){if(i[h]=i[h-1].clone(),s[h]=s[h-1].clone(),a.crossVectors(r[h-1],r[h]),a.length()>Number.EPSILON){a.normalize();const m=Math.acos(nn(r[h-1].dot(r[h]),-1,1));i[h].applyMatrix4(l.makeRotationAxis(a,m))}s[h].crossVectors(r[h],i[h])}if(n===!0){let h=Math.acos(nn(i[0].dot(i[t]),-1,1));h/=t,r[0].dot(a.crossVectors(i[0],i[t]))>0&&(h=-h);for(let m=1;m<=t;m++)i[m].applyMatrix4(l.makeRotationAxis(r[m],h*m)),s[m].crossVectors(r[m],i[m])}return{tangents:r,normals:i,binormals:s}}clone(){return new this.constructor().copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.7,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Ga extends Ni{constructor(t=0,n=0,o=1,r=1,i=0,s=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=n,this.xRadius=o,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=s,this.aClockwise=a,this.aRotation=l}getPoint(t,n=new mt){const o=n,r=Math.PI*2;let i=this.aEndAngle-this.aStartAngle;const s=Math.abs(i)r;)i-=r;i0?0:(Math.floor(Math.abs(a)/i)+1)*i:l===0&&a===i-1&&(a=i-2,l=1);let u,d;this.closed||a>0?u=r[(a-1)%i]:(rh.subVectors(r[0],r[1]).add(r[0]),u=rh);const f=r[a%i],p=r[(a+1)%i];if(this.closed||a+2r.length-2?r.length-1:s+1],f=r[s>r.length-3?r.length-1:s+2];return o.set(Mw(a,l.x,u.x,d.x,f.x),Mw(a,l.y,u.y,d.y,f.y)),o}copy(t){super.copy(t),this.points=[];for(let n=0,o=t.points.length;n=o){const s=r[i]-o,a=this.curves[i],l=a.getLength(),u=l===0?0:1-s/l;return a.getPointAt(u,n)}i++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let n=0;for(let o=0,r=this.curves.length;o1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n}copy(t){super.copy(t),this.curves=[];for(let n=0,o=t.curves.length;n0){const f=u.getPoint(0);f.equals(this.currentPoint)||this.lineTo(f.x,f.y)}this.curves.push(u);const d=u.getPoint(1);return this.currentPoint.copy(d),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class Wc extends xb{constructor(t){super(t),this.uuid=tc(),this.type="Shape",this.holes=[]}getPointsHoles(t){const n=[];for(let o=0,r=this.holes.length;o80*n){a=1/0,l=1/0;let d=-1/0,f=-1/0;for(let p=n;pd&&(d=h),m>f&&(f=m)}u=Math.max(d-a,f-l),u=u!==0?32767/u:0}return Ed(i,s,n,a,l,u,0),s}function TR(e,t,n,o,r){let i;if(r===Use(e,t,n,o)>0)for(let s=t;s=t;s-=o)i=Tw(s/o|0,e[s],e[s+1],i);return i&&Bu(i,i.next)&&(Td(i),i=i.next),i}function cl(e,t){if(!e)return e;t||(t=e);let n=e,o;do if(o=!1,!n.steiner&&(Bu(n,n.next)||On(n.prev,n,n.next)===0)){if(Td(n),n=t=n.prev,n===n.next)break;o=!0}else n=n.next;while(o||n!==t);return t}function Ed(e,t,n,o,r,i,s){if(!e)return;!s&&i&&Lse(e,o,r,i);let a=e;for(;e.prev!==e.next;){const l=e.prev,u=e.next;if(i?Mse(e,o,r,i):Ese(e)){t.push(l.i,e.i,u.i),Td(e),e=u.next,a=u.next;continue}if(e=u,e===a){s?s===1?(e=Tse(cl(e),t),Ed(e,t,n,o,r,i,2)):s===2&&Ase(e,t,n,o,r,i):Ed(cl(e),t,n,o,r,i,1);break}}}function Ese(e){const t=e.prev,n=e,o=e.next;if(On(t,n,o)>=0)return!1;const r=t.x,i=n.x,s=o.x,a=t.y,l=n.y,u=o.y,d=Math.min(r,i,s),f=Math.min(a,l,u),p=Math.max(r,i,s),h=Math.max(a,l,u);let m=o.next;for(;m!==t;){if(m.x>=d&&m.x<=p&&m.y>=f&&m.y<=h&&Sc(r,a,i,l,s,u,m.x,m.y)&&On(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Mse(e,t,n,o){const r=e.prev,i=e,s=e.next;if(On(r,i,s)>=0)return!1;const a=r.x,l=i.x,u=s.x,d=r.y,f=i.y,p=s.y,h=Math.min(a,l,u),m=Math.min(d,f,p),v=Math.max(a,l,u),b=Math.max(d,f,p),g=Sb(h,m,t,n,o),x=Sb(v,b,t,n,o);let y=e.prevZ,_=e.nextZ;for(;y&&y.z>=g&&_&&_.z<=x;){if(y.x>=h&&y.x<=v&&y.y>=m&&y.y<=b&&y!==r&&y!==s&&Sc(a,d,l,f,u,p,y.x,y.y)&&On(y.prev,y,y.next)>=0||(y=y.prevZ,_.x>=h&&_.x<=v&&_.y>=m&&_.y<=b&&_!==r&&_!==s&&Sc(a,d,l,f,u,p,_.x,_.y)&&On(_.prev,_,_.next)>=0))return!1;_=_.nextZ}for(;y&&y.z>=g;){if(y.x>=h&&y.x<=v&&y.y>=m&&y.y<=b&&y!==r&&y!==s&&Sc(a,d,l,f,u,p,y.x,y.y)&&On(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;_&&_.z<=x;){if(_.x>=h&&_.x<=v&&_.y>=m&&_.y<=b&&_!==r&&_!==s&&Sc(a,d,l,f,u,p,_.x,_.y)&&On(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function Tse(e,t){let n=e;do{const o=n.prev,r=n.next.next;!Bu(o,r)&&kR(o,n,n.next,r)&&Md(o,r)&&Md(r,o)&&(t.push(o.i,n.i,r.i),Td(n),Td(n.next),n=e=r),n=n.next}while(n!==e);return cl(n)}function Ase(e,t,n,o,r,i){let s=e;do{let a=s.next.next;for(;a!==s.prev;){if(s.i!==a.i&&Fse(s,a)){let l=RR(s,a);s=cl(s,s.next),l=cl(l,l.next),Ed(s,t,n,o,r,i,0),Ed(l,t,n,o,r,i,0);return}a=a.next}s=s.next}while(s!==e)}function kse(e,t,n,o){const r=[];for(let i=0,s=t.length;i=n.next.y&&n.next.y!==n.y){const f=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(f<=o&&f>i&&(i=f,s=n.x=n.x&&n.x>=l&&o!==n.x&&AR(rs.x||n.x===s.x&&Ise(s,n)))&&(s=n,d=f)}n=n.next}while(n!==a);return s}function Ise(e,t){return On(e.prev,e,t.prev)<0&&On(t.next,e,e.next)<0}function Lse(e,t,n,o){let r=e;do r.z===0&&(r.z=Sb(r.x,r.y,t,n,o)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,Nse(r)}function Nse(e){let t,n=1;do{let o=e,r;e=null;let i=null;for(t=0;o;){t++;let s=o,a=0;for(let u=0;u0||l>0&&s;)a!==0&&(l===0||!s||o.z<=s.z)?(r=o,o=o.nextZ,a--):(r=s,s=s.nextZ,l--),i?i.nextZ=r:e=r,r.prevZ=i,i=r;o=s}i.nextZ=null,n*=2}while(t>1);return e}function Sb(e,t,n,o,r){return e=(e-n)*r|0,t=(t-o)*r|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Ose(e){let t=e,n=e;do(t.x=(e-s)*(i-a)&&(e-s)*(o-a)>=(n-s)*(t-a)&&(n-s)*(i-a)>=(r-s)*(o-a)}function Sc(e,t,n,o,r,i,s,a){return!(e===s&&t===a)&&AR(e,t,n,o,r,i,s,a)}function Fse(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Bse(e,t)&&(Md(e,t)&&Md(t,e)&&$se(e,t)&&(On(e.prev,e,t.prev)||On(e,t.prev,t))||Bu(e,t)&&On(e.prev,e,e.next)>0&&On(t.prev,t,t.next)>0)}function On(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Bu(e,t){return e.x===t.x&&e.y===t.y}function kR(e,t,n,o){const r=sh(On(e,t,n)),i=sh(On(e,t,o)),s=sh(On(n,o,e)),a=sh(On(n,o,t));return!!(r!==i&&s!==a||r===0&&ih(e,n,t)||i===0&&ih(e,o,t)||s===0&&ih(n,e,o)||a===0&&ih(n,t,o))}function ih(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function sh(e){return e>0?1:e<0?-1:0}function Bse(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&kR(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function Md(e,t){return On(e.prev,e,e.next)<0?On(e,t,e.next)>=0&&On(e,e.prev,t)>=0:On(e,t,e.prev)<0||On(e,e.next,t)<0}function $se(e,t){let n=e,o=!1;const r=(e.x+t.x)/2,i=(e.y+t.y)/2;do n.y>i!=n.next.y>i&&n.next.y!==n.y&&r<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(o=!o),n=n.next;while(n!==e);return o}function RR(e,t){const n=wb(e.i,e.x,e.y),o=wb(t.i,t.x,t.y),r=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,o.next=n,n.prev=o,i.next=o,o.prev=i,o}function Tw(e,t,n,o){const r=wb(e,t,n);return o?(r.next=o.next,r.prev=o,o.next.prev=r,o.next=r):(r.prev=r,r.next=r),r}function Td(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function wb(e,t,n){return{i:e,x:t,y:n,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Use(e,t,n,o){let r=0;for(let i=t,s=n-o;i2&&e[t-1].equals(e[0])&&e.pop()}function kw(e,t){for(let n=0;nNumber.EPSILON){const Me=Math.sqrt($),Be=Math.sqrt(Fe*Fe+Z*Z),Ne=ve.x-Ce/Me,nt=ve.y+xe/Me,qe=ce.x-Z/Be,ht=ce.y+Fe/Be,He=((qe-Ne)*Z-(ht-nt)*Fe)/(xe*Z-Ce*Fe);me=Ne+xe*He-z.x,ue=nt+Ce*He-z.y;const $e=me*me+ue*ue;if($e<=2)return new mt(me,ue);ge=Math.sqrt($e/2)}else{let Me=!1;xe>Number.EPSILON?Fe>Number.EPSILON&&(Me=!0):xe<-Number.EPSILON?Fe<-Number.EPSILON&&(Me=!0):Math.sign(Ce)===Math.sign(Z)&&(Me=!0),Me?(me=-Ce,ue=xe,ge=Math.sqrt($)):(me=xe,ue=Ce,ge=Math.sqrt($/2))}return new mt(me/ge,ue/ge)}const O=[];for(let z=0,ve=N.length,ce=ve-1,me=z+1;z=0;z--){const ve=z/b,ce=h*Math.cos(ve*Math.PI/2),me=m*Math.sin(ve*Math.PI/2)+v;for(let ue=0,ge=N.length;ue=0;){const me=ce;let ue=ce-1;ue<0&&(ue=z.length-1);for(let ge=0,xe=d+b*2;ge{n&&n(i),this.manager.itemEnd(t)},0),i;if(Gi[t]!==void 0){Gi[t].push({onLoad:n,onProgress:o,onError:r});return}Gi[t]=[],Gi[t].push({onLoad:n,onProgress:o,onError:r});const s=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(s).then(u=>{if(u.status===200||u.status===0){if(u.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||u.body===void 0||u.body.getReader===void 0)return u;const d=Gi[t],f=u.body.getReader(),p=u.headers.get("X-File-Size")||u.headers.get("Content-Length"),h=p?parseInt(p):0,m=h!==0;let v=0;const b=new ReadableStream({start(g){x();function x(){f.read().then(({done:y,value:_})=>{if(y)g.close();else{v+=_.byteLength;const w=new ProgressEvent("progress",{lengthComputable:m,loaded:v,total:h});for(let S=0,M=d.length;S{g.error(y)})}}});return new Response(b)}else throw new jse(`fetch for "${u.url}" responded with ${u.status}: ${u.statusText}`,u)}).then(u=>{switch(l){case"arraybuffer":return u.arrayBuffer();case"blob":return u.blob();case"document":return u.text().then(d=>new DOMParser().parseFromString(d,a));case"json":return u.json();default:if(a==="")return u.text();{const f=/charset="?([^;"\s]*)"?/i.exec(a),p=f&&f[1]?f[1].toLowerCase():void 0,h=new TextDecoder(p);return u.arrayBuffer().then(m=>h.decode(m))}}}).then(u=>{Rw.add(t,u);const d=Gi[t];delete Gi[t];for(let f=0,p=d.length;f{const d=Gi[t];if(d===void 0)throw this.manager.itemError(t),u;delete Gi[t];for(let f=0,p=d.length;f{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class PR extends yo{constructor(t,n=1){super(),this.isLight=!0,this.type="Light",this.color=new un(t),this.intensity=n}dispose(){}copy(t,n){return super.copy(t,n),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const n=super.toJSON(t);return n.object.color=this.color.getHex(),n.object.intensity=this.intensity,this.groundColor!==void 0&&(n.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(n.object.distance=this.distance),this.angle!==void 0&&(n.object.angle=this.angle),this.decay!==void 0&&(n.object.decay=this.decay),this.penumbra!==void 0&&(n.object.penumbra=this.penumbra),this.shadow!==void 0&&(n.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(n.object.target=this.target.uuid),n}}const Qm=new An,Pw=new ke,Dw=new ke;class Xse{constructor(t){this.camera=t,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new mt(512,512),this.mapType=ki,this.map=null,this.mapPass=null,this.matrix=new An,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Q1,this._frameExtents=new mt(1,1),this._viewportCount=1,this._viewports=[new Un(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const n=this.camera,o=this.matrix;Pw.setFromMatrixPosition(t.matrixWorld),n.position.copy(Pw),Dw.setFromMatrixPosition(t.target.matrixWorld),n.lookAt(Dw),n.updateMatrixWorld(),Qm.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Qm),o.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),o.multiply(Qm)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.intensity=t.intensity,this.bias=t.bias,this.radius=t.radius,this.autoUpdate=t.autoUpdate,this.needsUpdate=t.needsUpdate,this.normalBias=t.normalBias,this.blurSamples=t.blurSamples,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return this.intensity!==1&&(t.intensity=this.intensity),this.bias!==0&&(t.bias=this.bias),this.normalBias!==0&&(t.normalBias=this.normalBias),this.radius!==1&&(t.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class DR extends _R{constructor(t=-1,n=1,o=1,r=-1,i=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=n,this.top=o,this.bottom=r,this.near=i,this.far=s,this.updateProjectionMatrix()}copy(t,n){return super.copy(t,n),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=t.view===null?null:Object.assign({},t.view),this}setViewOffset(t,n,o,r,i,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=n,this.view.offsetX=o,this.view.offsetY=r,this.view.width=i,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),o=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=o-t,s=o+t,a=r+n,l=r-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,d=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=u*this.view.offsetX,s=i+u*this.view.width,a-=d*this.view.offsetY,l=a-d*this.view.height}this.projectionMatrix.makeOrthographic(i,s,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const n=super.toJSON(t);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}class Zse extends Xse{constructor(){super(new DR(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class Jse extends PR{constructor(t,n){super(t,n),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(yo.DEFAULT_UP),this.updateMatrix(),this.target=new yo,this.shadow=new Zse}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class Qse extends PR{constructor(t,n){super(t,n),this.isAmbientLight=!0,this.type="AmbientLight"}}class eae extends Mr{constructor(t=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=t}}const Iw=new An;class tae{constructor(t,n,o=0,r=1/0){this.ray=new I0(t,n),this.near=o,this.far=r,this.camera=null,this.layers=new Z1,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,n){this.ray.set(t,n)}setFromCamera(t,n){n.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(n.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(n).sub(this.ray.origin).normalize(),this.camera=n):n.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(n.near+n.far)/(n.near-n.far)).unproject(n),this.ray.direction.set(0,0,-1).transformDirection(n.matrixWorld),this.camera=n):console.error("THREE.Raycaster: Unsupported camera type: "+n.type)}setFromXRController(t){return Iw.identity().extractRotation(t.matrixWorld),this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(Iw),this}intersectObject(t,n=!0,o=[]){return Cb(t,this,o,n),o.sort(Lw),o}intersectObjects(t,n=!0,o=[]){for(let r=0,i=t.length;rNumber.EPSILON){if(C<0&&(M=x[S],E=-E,T=x[w],C=-C),g.yT.y)continue;if(g.y===M.y){if(g.x===M.x)return!0}else{const k=C*(g.x-M.x)-E*(g.y-M.y);if(k===0)return!0;if(k<0)continue;_=!_}}else{if(g.y!==M.y)continue;if(T.x<=g.x&&g.x<=M.x||M.x<=g.x&&g.x<=T.x)return!0}}return _}const r=Ka.isClockWise,i=this.subPaths;if(i.length===0)return[];let s,a,l;const u=[];if(i.length===1)return a=i[0],l=new Wc,l.curves=a.curves,u.push(l),u;let d=!r(i[0].getPoints());d=t?!d:d;const f=[],p=[];let h=[],m=0,v;p[m]=void 0,h[m]=[];for(let g=0,x=i.length;g1){let g=!1,x=0;for(let y=0,_=p.length;y<_;y++)f[y]=[];for(let y=0,_=p.length;y<_;y++){const w=h[y];for(let S=0;S0&&g===!1&&(h=f)}let b;for(let g=0,x=p.length;gh.start-m.start);let p=0;for(let h=1;h 0 vec4 plane; #ifdef ALPHA_TO_COVERAGE float distanceToPlane, distanceGradient; float clipOpacity = 1.0; #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; distanceGradient = fwidth( distanceToPlane ) / 2.0; clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); if ( clipOpacity == 0.0 ) discard; } #pragma unroll_loop_end #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES float unionClipOpacity = 1.0; #pragma unroll_loop_start for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w; distanceGradient = fwidth( distanceToPlane ) / 2.0; unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane ); } #pragma unroll_loop_end clipOpacity *= 1.0 - unionClipOpacity; #endif diffuseColor.a *= clipOpacity; if ( diffuseColor.a == 0.0 ) discard; #else #pragma unroll_loop_start for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard; } #pragma unroll_loop_end #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES bool clipped = true; #pragma unroll_loop_start for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) { plane = clippingPlanes[ i ]; clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped; } #pragma unroll_loop_end if ( clipped ) discard; #endif #endif #endif`,Sae=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; #endif`,wae=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; #endif`,Cae=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; #endif`,Eae=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; #endif`,Mae=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; #endif`,Tae=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) varying vec3 vColor; #endif`,Aae=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) vColor = vec3( 1.0 ); #endif #ifdef USE_COLOR vColor *= color; #endif #ifdef USE_INSTANCING_COLOR vColor.xyz *= instanceColor.xyz; #endif #ifdef USE_BATCHING_COLOR vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) ); vColor.xyz *= batchingColor.xyz; #endif`,kae=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 #define RECIPROCAL_PI2 0.15915494309189535 #define EPSILON 1e-6 #ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif #define whiteComplement( a ) ( 1.0 - saturate( a ) ) float pow2( const in float x ) { return x*x; } vec3 pow2( const in vec3 x ) { return x*x; } float pow3( const in float x ) { return x*x*x; } float pow4( const in float x ) { float x2 = x*x; return x2*x2; } float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); } float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); } highp float rand( const in vec2 uv ) { const highp float a = 12.9898, b = 78.233, c = 43758.5453; highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI ); return fract( sin( sn ) * c ); } #ifdef HIGH_PRECISION float precisionSafeLength( vec3 v ) { return length( v ); } #else float precisionSafeLength( vec3 v ) { float maxComponent = max3( abs( v ) ); return length( v / maxComponent ) * maxComponent; } #endif struct IncidentLight { vec3 color; vec3 direction; bool visible; }; struct ReflectedLight { vec3 directDiffuse; vec3 directSpecular; vec3 indirectDiffuse; vec3 indirectSpecular; }; #ifdef USE_ALPHAHASH varying vec3 vPosition; #endif vec3 transformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz ); } vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) { return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz ); } mat3 transposeMat3( const in mat3 m ) { mat3 tmp; tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x ); tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y ); tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z ); return tmp; } bool isPerspectiveMatrix( mat4 m ) { return m[ 2 ][ 3 ] == - 1.0; } vec2 equirectUv( in vec3 dir ) { float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5; float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5; return vec2( u, v ); } vec3 BRDF_Lambert( const in vec3 diffuseColor ) { return RECIPROCAL_PI * diffuseColor; } vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); } float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); } // validated`,Rae=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { vec3 absDirection = abs( direction ); float face = - 1.0; if ( absDirection.x > absDirection.z ) { if ( absDirection.x > absDirection.y ) face = direction.x > 0.0 ? 0.0 : 3.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } else { if ( absDirection.z > absDirection.y ) face = direction.z > 0.0 ? 2.0 : 5.0; else face = direction.y > 0.0 ? 1.0 : 4.0; } return face; } vec2 getUV( vec3 direction, float face ) { vec2 uv; if ( face == 0.0 ) { uv = vec2( direction.z, direction.y ) / abs( direction.x ); } else if ( face == 1.0 ) { uv = vec2( - direction.x, - direction.z ) / abs( direction.y ); } else if ( face == 2.0 ) { uv = vec2( - direction.x, direction.y ) / abs( direction.z ); } else if ( face == 3.0 ) { uv = vec2( - direction.z, direction.y ) / abs( direction.x ); } else if ( face == 4.0 ) { uv = vec2( - direction.x, direction.z ) / abs( direction.y ); } else { uv = vec2( direction.x, direction.y ) / abs( direction.z ); } return 0.5 * ( uv + 1.0 ); } vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) { float face = getFace( direction ); float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 ); mipInt = max( mipInt, cubeUV_minMipLevel ); float faceSize = exp2( mipInt ); highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0; if ( face > 2.0 ) { uv.y += faceSize; face -= 3.0; } uv.x += face * faceSize; uv.x += filterInt * 3.0 * cubeUV_minTileSize; uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize ); uv.x *= CUBEUV_TEXEL_WIDTH; uv.y *= CUBEUV_TEXEL_HEIGHT; #ifdef texture2DGradEXT return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb; #else return texture2D( envMap, uv ).rgb; #endif } #define cubeUV_r0 1.0 #define cubeUV_m0 - 2.0 #define cubeUV_r1 0.8 #define cubeUV_m1 - 1.0 #define cubeUV_r4 0.4 #define cubeUV_m4 2.0 #define cubeUV_r5 0.305 #define cubeUV_m5 3.0 #define cubeUV_r6 0.21 #define cubeUV_m6 4.0 float roughnessToMip( float roughness ) { float mip = 0.0; if ( roughness >= cubeUV_r1 ) { mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0; } else if ( roughness >= cubeUV_r4 ) { mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1; } else if ( roughness >= cubeUV_r5 ) { mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4; } else if ( roughness >= cubeUV_r6 ) { mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5; } else { mip = - 2.0 * log2( 1.16 * roughness ); } return mip; } vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) { float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP ); float mipF = fract( mip ); float mipInt = floor( mip ); vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt ); if ( mipF == 0.0 ) { return vec4( color0, 1.0 ); } else { vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 ); return vec4( mix( color0, color1, mipF ), 1.0 ); } } #endif`,Pae=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif #ifdef USE_BATCHING mat3 bm = mat3( batchingMatrix ); transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) ); transformedNormal = bm * transformedNormal; #ifdef USE_TANGENT transformedTangent = bm * transformedTangent; #endif #endif #ifdef USE_INSTANCING mat3 im = mat3( instanceMatrix ); transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) ); transformedNormal = im * transformedNormal; #ifdef USE_TANGENT transformedTangent = im * transformedTangent; #endif #endif transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedNormal = - transformedNormal; #endif #ifdef USE_TANGENT transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif #endif`,Dae=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; #endif`,Iae=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); #endif`,Lae=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE emissiveColor = sRGBTransferEOTF( emissiveColor ); #endif totalEmissiveRadiance *= emissiveColor.rgb; #endif`,Nae=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; #endif`,Oae="gl_FragColor = linearToOutputTexel( gl_FragColor );",Fae=`vec4 LinearTransferOETF( in vec4 value ) { return value; } vec4 sRGBTransferEOTF( in vec4 value ) { return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a ); } vec4 sRGBTransferOETF( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); }`,Bae=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToFrag = normalize( vWorldPosition - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vec3 reflectVec = reflect( cameraToFrag, worldNormal ); #else vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio ); #endif #else vec3 reflectVec = vReflect; #endif #ifdef ENVMAP_TYPE_CUBE vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) ); #else vec4 envColor = vec4( 0.0 ); #endif #ifdef ENVMAP_BLENDING_MULTIPLY outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_MIX ) outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity ); #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif #endif`,$ae=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; uniform mat3 envMapRotation; #ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #else uniform sampler2D envMap; #endif #endif`,Uae=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; uniform float refractionRatio; #else varying vec3 vReflect; #endif #endif`,zae=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif #ifdef ENV_WORLDPOS varying vec3 vWorldPosition; #else varying vec3 vReflect; uniform float refractionRatio; #endif #endif`,Vae=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else vec3 cameraToVertex; if ( isOrthographic ) { cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) ); } else { cameraToVertex = normalize( worldPosition.xyz - cameraPosition ); } vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); #ifdef ENVMAP_MODE_REFLECTION vReflect = reflect( cameraToVertex, worldNormal ); #else vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif #endif`,Hae=`#ifdef USE_FOG vFogDepth = - mvPosition.z; #endif`,Wae=`#ifdef USE_FOG varying float vFogDepth; #endif`,Gae=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); #endif`,Kae=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 uniform float fogDensity; #else uniform float fogNear; uniform float fogFar; #endif #endif`,qae=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { float dotNL = dot( normal, lightDirection ); vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 ); #ifdef USE_GRADIENTMAP return vec3( texture2D( gradientMap, coord ).r ); #else vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif }`,jae=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; #endif`,Yae=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularStrength = specularStrength;`,Xae=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; }; void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert #define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Zae=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; #endif vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) { float x = normal.x, y = normal.y, z = normal.z; vec3 result = shCoefficients[ 0 ] * 0.886227; result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y; result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z; result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x; result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y; result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z; result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 ); result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z; result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y ); return result; } vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) { vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe ); return irradiance; } vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) { vec3 irradiance = ambientLightColor; return irradiance; } float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) { float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 ); if ( cutoffDistance > 0.0 ) { distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) ); } return distanceFalloff; } float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) { return smoothstep( coneCosine, penumbraCosine, angleCosine ); } #if NUM_DIR_LIGHTS > 0 struct DirectionalLight { vec3 direction; vec3 color; }; uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ]; void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) { light.color = directionalLight.color; light.direction = directionalLight.direction; light.visible = true; } #endif #if NUM_POINT_LIGHTS > 0 struct PointLight { vec3 position; vec3 color; float distance; float decay; }; uniform PointLight pointLights[ NUM_POINT_LIGHTS ]; void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) { vec3 lVector = pointLight.position - geometryPosition; light.direction = normalize( lVector ); float lightDistance = length( lVector ); light.color = pointLight.color; light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } #endif #if NUM_SPOT_LIGHTS > 0 struct SpotLight { vec3 position; vec3 direction; vec3 color; float distance; float decay; float coneCos; float penumbraCos; }; uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ]; void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) { vec3 lVector = spotLight.position - geometryPosition; light.direction = normalize( lVector ); float angleCos = dot( light.direction, spotLight.direction ); float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos ); if ( spotAttenuation > 0.0 ) { float lightDistance = length( lVector ); light.color = spotLight.color * spotAttenuation; light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay ); light.visible = ( light.color != vec3( 0.0 ) ); } else { light.color = vec3( 0.0 ); light.visible = false; } } #endif #if NUM_RECT_AREA_LIGHTS > 0 struct RectAreaLight { vec3 color; vec3 position; vec3 halfWidth; vec3 halfHeight; }; uniform sampler2D ltc_1; uniform sampler2D ltc_2; uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ]; #endif #if NUM_HEMI_LIGHTS > 0 struct HemisphereLight { vec3 direction; vec3 skyColor; vec3 groundColor; }; uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ]; vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) { float dotNL = dot( normal, hemiLight.direction ); float hemiDiffuseWeight = 0.5 * dotNL + 0.5; vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } #endif`,Jae=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 ); return PI * envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 reflectVec = reflect( - viewDir, normal ); reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) ); reflectVec = inverseTransformDirection( reflectVec, viewMatrix ); vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness ); return envMapColor.rgb * envMapIntensity; #else return vec3( 0.0 ); #endif } #ifdef USE_ANISOTROPY vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 bentNormal = cross( bitangent, viewDir ); bentNormal = normalize( cross( bentNormal, bitangent ) ); bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) ); return getIBLRadiance( viewDir, bentNormal, roughness ); #else return vec3( 0.0 ); #endif } #endif #endif`,Qae=`ToonMaterial material; material.diffuseColor = diffuseColor.rgb;`,ele=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon #define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,tle=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; material.specularStrength = specularStrength;`,nle=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; float specularShininess; float specularStrength; }; void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength; } void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,ole=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness; material.roughness = min( material.roughness, 1.0 ); #ifdef IOR material.ior = ior; #ifdef USE_SPECULAR float specularIntensityFactor = specularIntensity; vec3 specularColorFactor = specularColor; #ifdef USE_SPECULAR_COLORMAP specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb; #endif #ifdef USE_SPECULAR_INTENSITYMAP specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a; #endif material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor ); #else float specularIntensityFactor = 1.0; vec3 specularColorFactor = vec3( 1.0 ); material.specularF90 = 1.0; #endif material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor ); #else material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor ); material.specularF90 = 1.0; #endif #ifdef USE_CLEARCOAT material.clearcoat = clearcoat; material.clearcoatRoughness = clearcoatRoughness; material.clearcoatF0 = vec3( 0.04 ); material.clearcoatF90 = 1.0; #ifdef USE_CLEARCOATMAP material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y; #endif material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 ); material.clearcoatRoughness += geometryRoughness; material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 ); #endif #ifdef USE_DISPERSION material.dispersion = dispersion; #endif #ifdef USE_IRIDESCENCE material.iridescence = iridescence; material.iridescenceIOR = iridescenceIOR; #ifdef USE_IRIDESCENCEMAP material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum; #else material.iridescenceThickness = iridescenceThicknessMaximum; #endif #endif #ifdef USE_SHEEN material.sheenColor = sheenColor; #ifdef USE_SHEEN_COLORMAP material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb; #endif material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 ); #ifdef USE_SHEEN_ROUGHNESSMAP material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a; #endif #endif #ifdef USE_ANISOTROPY #ifdef USE_ANISOTROPYMAP mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x ); vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb; vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b; #else vec2 anisotropyV = anisotropyVector; #endif material.anisotropy = length( anisotropyV ); if( material.anisotropy == 0.0 ) { anisotropyV = vec2( 1.0, 0.0 ); } else { anisotropyV /= material.anisotropy; material.anisotropy = saturate( material.anisotropy ); } material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; #endif`,rle=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; float specularF90; float dispersion; #ifdef USE_CLEARCOAT float clearcoat; float clearcoatRoughness; vec3 clearcoatF0; float clearcoatF90; #endif #ifdef USE_IRIDESCENCE float iridescence; float iridescenceIOR; float iridescenceThickness; vec3 iridescenceFresnel; vec3 iridescenceF0; #endif #ifdef USE_SHEEN vec3 sheenColor; float sheenRoughness; #endif #ifdef IOR float ior; #endif #ifdef USE_TRANSMISSION float transmission; float transmissionAlpha; float thickness; float attenuationDistance; vec3 attenuationColor; #endif #ifdef USE_ANISOTROPY float anisotropy; float alphaT; vec3 anisotropyT; vec3 anisotropyB; #endif }; vec3 clearcoatSpecularDirect = vec3( 0.0 ); vec3 clearcoatSpecularIndirect = vec3( 0.0 ); vec3 sheenSpecularDirect = vec3( 0.0 ); vec3 sheenSpecularIndirect = vec3(0.0 ); vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) { float x = clamp( 1.0 - dotVH, 0.0, 1.0 ); float x2 = x * x; float x5 = clamp( x * x2 * x2, 0.0, 0.9999 ); return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 ); } float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) { float a2 = pow2( alpha ); float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) ); float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) ); return 0.5 / max( gv + gl, EPSILON ); } float D_GGX( const in float alpha, const in float dotNH ) { float a2 = pow2( alpha ); float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; return RECIPROCAL_PI * a2 / pow2( denom ); } #ifdef USE_ANISOTROPY float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) { float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) ); float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) ); float v = 0.5 / ( gv + gl ); return saturate(v); } float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) { float a2 = alphaT * alphaB; highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH ); highp float v2 = dot( v, v ); float w2 = a2 / v2; return RECIPROCAL_PI * a2 * pow2 ( w2 ); } #endif #ifdef USE_CLEARCOAT vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) { vec3 f0 = material.clearcoatF0; float f90 = material.clearcoatF90; float roughness = material.clearcoatRoughness; float alpha = pow2( roughness ); vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float dotVH = saturate( dot( viewDir, halfDir ) ); vec3 F = F_Schlick( f0, f90, dotVH ); float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); float D = D_GGX( alpha, dotNH ); return F * ( V * D ); } #endif vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) { vec3 f0 = material.specularColor; float f90 = material.specularF90; float roughness = material.roughness; float alpha = pow2( roughness ); vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float dotVH = saturate( dot( viewDir, halfDir ) ); vec3 F = F_Schlick( f0, f90, dotVH ); #ifdef USE_IRIDESCENCE F = mix( F, material.iridescenceFresnel, material.iridescence ); #endif #ifdef USE_ANISOTROPY float dotTL = dot( material.anisotropyT, lightDir ); float dotTV = dot( material.anisotropyT, viewDir ); float dotTH = dot( material.anisotropyT, halfDir ); float dotBL = dot( material.anisotropyB, lightDir ); float dotBV = dot( material.anisotropyB, viewDir ); float dotBH = dot( material.anisotropyB, halfDir ); float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL ); float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH ); #else float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV ); float D = D_GGX( alpha, dotNH ); #endif return F * ( V * D ); } vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) { const float LUT_SIZE = 64.0; const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE; const float LUT_BIAS = 0.5 / LUT_SIZE; float dotNV = saturate( dot( N, V ) ); vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) ); uv = uv * LUT_SCALE + LUT_BIAS; return uv; } float LTC_ClippedSphereFormFactor( const in vec3 f ) { float l = length( f ); return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 ); } vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) { float x = dot( v1, v2 ); float y = abs( x ); float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y; float b = 3.4175940 + ( 4.1616724 + y ) * y; float v = a / b; float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v; return cross( v1, v2 ) * theta_sintheta; } vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) { vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ]; vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ]; vec3 lightNormal = cross( v1, v2 ); if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 ); vec3 T1, T2; T1 = normalize( V - N * dot( V, N ) ); T2 = - cross( N, T1 ); mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) ); vec3 coords[ 4 ]; coords[ 0 ] = mat * ( rectCoords[ 0 ] - P ); coords[ 1 ] = mat * ( rectCoords[ 1 ] - P ); coords[ 2 ] = mat * ( rectCoords[ 2 ] - P ); coords[ 3 ] = mat * ( rectCoords[ 3 ] - P ); coords[ 0 ] = normalize( coords[ 0 ] ); coords[ 1 ] = normalize( coords[ 1 ] ); coords[ 2 ] = normalize( coords[ 2 ] ); coords[ 3 ] = normalize( coords[ 3 ] ); vec3 vectorFormFactor = vec3( 0.0 ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] ); vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] ); float result = LTC_ClippedSphereFormFactor( vectorFormFactor ); return vec3( result ); } #if defined( USE_SHEEN ) float D_Charlie( float roughness, float dotNH ) { float alpha = pow2( roughness ); float invAlpha = 1.0 / alpha; float cos2h = dotNH * dotNH; float sin2h = max( 1.0 - cos2h, 0.0078125 ); return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI ); } float V_Neubelt( float dotNV, float dotNL ) { return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) ); } vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) { vec3 halfDir = normalize( lightDir + viewDir ); float dotNL = saturate( dot( normal, lightDir ) ); float dotNV = saturate( dot( normal, viewDir ) ); float dotNH = saturate( dot( normal, halfDir ) ); float D = D_Charlie( sheenRoughness, dotNH ); float V = V_Neubelt( dotNV, dotNL ); return sheenColor * ( D * V ); } #endif float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { float dotNV = saturate( dot( normal, viewDir ) ); float r2 = roughness * roughness; float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95; float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72; float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) ); return saturate( DG * RECIPROCAL_PI ); } vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) { float dotNV = saturate( dot( normal, viewDir ) ); const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 ); const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 ); vec4 r = roughness * c0 + c1; float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y; vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw; return fab; } vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) { vec2 fab = DFGApprox( normal, viewDir, roughness ); return specularColor * fab.x + specularF90 * fab.y; } #ifdef USE_IRIDESCENCE void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { #else void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) { #endif vec2 fab = DFGApprox( normal, viewDir, roughness ); #ifdef USE_IRIDESCENCE vec3 Fr = mix( specularColor, iridescenceF0, iridescence ); #else vec3 Fr = specularColor; #endif vec3 FssEss = Fr * fab.x + specularF90 * fab.y; float Ess = fab.x + fab.y; float Ems = 1.0 - Ess; vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg ); singleScatter += FssEss; multiScatter += Fms * Ems; } #if NUM_RECT_AREA_LIGHTS > 0 void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { vec3 normal = geometryNormal; vec3 viewDir = geometryViewDir; vec3 position = geometryPosition; vec3 lightPos = rectAreaLight.position; vec3 halfWidth = rectAreaLight.halfWidth; vec3 halfHeight = rectAreaLight.halfHeight; vec3 lightColor = rectAreaLight.color; float roughness = material.roughness; vec3 rectCoords[ 4 ]; rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight; rectCoords[ 2 ] = lightPos - halfWidth + halfHeight; rectCoords[ 3 ] = lightPos + halfWidth + halfHeight; vec2 uv = LTC_Uv( normal, viewDir, roughness ); vec4 t1 = texture2D( ltc_1, uv ); vec4 t2 = texture2D( ltc_2, uv ); mat3 mInv = mat3( vec3( t1.x, 0, t1.y ), vec3( 0, 1, 0 ), vec3( t1.z, 0, t1.w ) ); vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y ); reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords ); reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords ); } #endif void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { float dotNL = saturate( dot( geometryNormal, directLight.direction ) ); vec3 irradiance = dotNL * directLight.color; #ifdef USE_CLEARCOAT float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) ); vec3 ccIrradiance = dotNLcc * directLight.color; clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material ); #endif #ifdef USE_SHEEN sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness ); #endif reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material ); reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) { #ifdef USE_CLEARCOAT clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness ); #endif #ifdef USE_SHEEN sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness ); #endif vec3 singleScattering = vec3( 0.0 ); vec3 multiScattering = vec3( 0.0 ); vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI; #ifdef USE_IRIDESCENCE computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering ); #else computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering ); #endif vec3 totalScattering = singleScattering + multiScattering; vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) ); reflectedLight.indirectSpecular += radiance * singleScattering; reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance; reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance; } #define RE_Direct RE_Direct_Physical #define RE_Direct_RectArea RE_Direct_RectArea_Physical #define RE_IndirectDiffuse RE_IndirectDiffuse_Physical #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); }`,ile=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); vec3 geometryClearcoatNormal = vec3( 0.0 ); #ifdef USE_CLEARCOAT geometryClearcoatNormal = clearcoatNormal; #endif #ifdef USE_IRIDESCENCE float dotNVi = saturate( dot( normal, geometryViewDir ) ); if ( material.iridescenceThickness == 0.0 ) { material.iridescence = 0.0; } else { material.iridescence = saturate( material.iridescence ); } if ( material.iridescence > 0.0 ) { material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor ); material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi ); } #endif IncidentLight directLight; #if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct ) PointLight pointLight; #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0 PointLightShadow pointLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) { pointLight = pointLights[ i ]; getPointLightInfo( pointLight, geometryPosition, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS ) pointLightShadow = pointLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct ) SpotLight spotLight; vec4 spotColor; vec3 spotLightCoord; bool inSpotLightMap; #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) { spotLight = spotLights[ i ]; getSpotLightInfo( spotLight, geometryPosition, directLight ); #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS #else #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS ) #endif #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS ) spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w; inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) ); spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy ); directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color; #endif #undef SPOT_LIGHT_MAP_INDEX #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) spotLightShadow = spotLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct ) DirectionalLight directionalLight; #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLightShadow; #endif #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) { directionalLight = directionalLights[ i ]; getDirectionalLightInfo( directionalLight, directLight ); #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS ) directionalLightShadow = directionalLightShadows[ i ]; directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; #endif RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea ) RectAreaLight rectAreaLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) { rectAreaLight = rectAreaLights[ i ]; RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); } #pragma unroll_loop_end #endif #if defined( RE_IndirectDiffuse ) vec3 iblIrradiance = vec3( 0.0 ); vec3 irradiance = getAmbientLightIrradiance( ambientLightColor ); #if defined( USE_LIGHT_PROBES ) irradiance += getLightProbeIrradiance( lightProbe, geometryNormal ); #endif #if ( NUM_HEMI_LIGHTS > 0 ) #pragma unroll_loop_start for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) { irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal ); } #pragma unroll_loop_end #endif #endif #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); #endif`,sle=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; irradiance += lightMapIrradiance; #endif #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV ) iblIrradiance += getIBLIrradiance( geometryNormal ); #endif #endif #if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular ) #ifdef USE_ANISOTROPY radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy ); #else radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness ); #endif #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif #endif`,ale=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif`,lle=`#if defined( USE_LOGDEPTHBUF ) gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif`,ule=`#if defined( USE_LOGDEPTHBUF ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; #endif`,cle=`#ifdef USE_LOGDEPTHBUF varying float vFragDepth; varying float vIsPerspective; #endif`,dle=`#ifdef USE_LOGDEPTHBUF vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); #endif`,fle=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor ); #endif diffuseColor *= sampledDiffuseColor; #endif`,hle=`#ifdef USE_MAP uniform sampler2D map; #endif`,ple=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy; #endif #endif #ifdef USE_MAP diffuseColor *= texture2D( map, uv ); #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; #endif`,mle=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) uniform mat3 uvTransform; #endif #endif #ifdef USE_MAP uniform sampler2D map; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; #endif`,vle=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; #endif`,gle=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; #endif`,ble=`#ifdef USE_INSTANCING_MORPH float morphTargetInfluences[ MORPHTARGETS_COUNT ]; float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; } #endif`,yle=`#if defined( USE_MORPHCOLORS ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ]; #elif defined( USE_COLOR ) if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } #endif`,_le=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; } #endif`,xle=`#ifdef USE_MORPHTARGETS #ifndef USE_INSTANCING_MORPH uniform float morphTargetBaseInfluence; uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; #endif uniform sampler2DArray morphTargetsTexture; uniform ivec2 morphTargetsTextureSize; vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) { int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset; int y = texelIndex / morphTargetsTextureSize.x; int x = texelIndex - y * morphTargetsTextureSize.x; ivec3 morphUV = ivec3( x, y, morphTargetIndex ); return texelFetch( morphTargetsTexture, morphUV, 0 ); } #endif`,Sle=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; } #endif`,wle=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); vec3 normal = normalize( cross( fdx, fdy ) ); #else vec3 normal = normalize( vNormal ); #ifdef DOUBLE_SIDED normal *= faceDirection; #endif #endif #if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) #ifdef USE_TANGENT mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); #else mat3 tbn = getTangentFrame( - vViewPosition, normal, #if defined( USE_NORMALMAP ) vNormalMapUv #elif defined( USE_CLEARCOAT_NORMALMAP ) vClearcoatNormalMapUv #else vUv #endif ); #endif #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) tbn[0] *= faceDirection; tbn[1] *= faceDirection; #endif #endif #ifdef USE_CLEARCOAT_NORMALMAP #ifdef USE_TANGENT mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal ); #else mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv ); #endif #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED ) tbn2[0] *= faceDirection; tbn2[1] *= faceDirection; #endif #endif vec3 nonPerturbedNormal = normal;`,Cle=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; #endif #ifdef DOUBLE_SIDED normal = normal * faceDirection; #endif normal = normalize( normalMatrix * normal ); #elif defined( USE_NORMALMAP_TANGENTSPACE ) vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; mapN.xy *= normalScale; normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); #endif`,Ele=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,Mle=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif #endif`,Tle=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif #endif`,Ale=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif #ifdef USE_NORMALMAP_OBJECTSPACE uniform mat3 normalMatrix; #endif #if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) ) mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) { vec3 q0 = dFdx( eye_pos.xyz ); vec3 q1 = dFdy( eye_pos.xyz ); vec2 st0 = dFdx( uv.st ); vec2 st1 = dFdy( uv.st ); vec3 N = surf_norm; vec3 q1perp = cross( q1, N ); vec3 q0perp = cross( N, q0 ); vec3 T = q1perp * st0.x + q0perp * st1.x; vec3 B = q1perp * st0.y + q0perp * st1.y; float det = max( dot( T, T ), dot( B, B ) ); float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } #endif`,kle=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; #endif`,Rle=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); #endif`,Ple=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP uniform sampler2D clearcoatNormalMap; uniform vec2 clearcoatNormalScale; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; #endif`,Dle=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; #endif`,Ile=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Lle=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { return 2.0 * rgb.xyz - 1.0; } const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.; const float Inv255 = 1. / 255.; const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 ); const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g ); const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b ); const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a ); vec4 packDepthToRGBA( const in float v ) { if( v <= 0.0 ) return vec4( 0., 0., 0., 0. ); if( v >= 1.0 ) return vec4( 1., 1., 1., 1. ); float vuf; float af = modf( v * PackFactors.a, vuf ); float bf = modf( vuf * ShiftRight8, vuf ); float gf = modf( vuf * ShiftRight8, vuf ); return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af ); } vec3 packDepthToRGB( const in float v ) { if( v <= 0.0 ) return vec3( 0., 0., 0. ); if( v >= 1.0 ) return vec3( 1., 1., 1. ); float vuf; float bf = modf( v * PackFactors.b, vuf ); float gf = modf( vuf * ShiftRight8, vuf ); return vec3( vuf * Inv255, gf * PackUpscale, bf ); } vec2 packDepthToRG( const in float v ) { if( v <= 0.0 ) return vec2( 0., 0. ); if( v >= 1.0 ) return vec2( 1., 1. ); float vuf; float gf = modf( v * 256., vuf ); return vec2( vuf * Inv255, gf ); } float unpackRGBAToDepth( const in vec4 v ) { return dot( v, UnpackFactors4 ); } float unpackRGBToDepth( const in vec3 v ) { return dot( v, UnpackFactors3 ); } float unpackRGToDepth( const in vec2 v ) { return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g; } vec4 pack2HalfToRGBA( const in vec2 v ) { vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) ); return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w ); } vec2 unpackRGBATo2Half( const in vec4 v ) { return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); } float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) { return ( viewZ + near ) / ( near - far ); } float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) { return depth * ( near - far ) - near; } float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) { return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ ); } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); }`,Nle=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif`,Ole=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif #ifdef USE_INSTANCING mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; gl_Position = projectionMatrix * mvPosition;`,Fle=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); #endif`,Ble=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } #endif`,$le=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; #endif`,Ule=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; #endif`,zle=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ]; #endif #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ]; struct SpotLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ]; varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif float texture2DCompare( sampler2D depths, vec2 uv, float compare ) { return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) ); } vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) { return unpackRGBATo2Half( texture2D( shadow, uv ) ); } float VSMShadow (sampler2D shadow, vec2 uv, float compare ){ float occlusion = 1.0; vec2 distribution = texture2DDistribution( shadow, uv ); float hard_shadow = step( compare , distribution.x ); if (hard_shadow != 1.0 ) { float distance = compare - distribution.x ; float variance = max( 0.00000, distribution.y * distribution.y ); float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 ); } return occlusion; } float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) { float shadow = 1.0; shadowCoord.xyz /= shadowCoord.w; shadowCoord.z += shadowBias; bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0; bool frustumTest = inFrustum && shadowCoord.z <= 1.0; if ( frustumTest ) { #if defined( SHADOWMAP_TYPE_PCF ) vec2 texelSize = vec2( 1.0 ) / shadowMapSize; float dx0 = - texelSize.x * shadowRadius; float dy0 = - texelSize.y * shadowRadius; float dx1 = + texelSize.x * shadowRadius; float dy1 = + texelSize.y * shadowRadius; float dx2 = dx0 / 2.0; float dy2 = dy0 / 2.0; float dx3 = dx1 / 2.0; float dy3 = dy1 / 2.0; shadow = ( texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) + texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z ) ) * ( 1.0 / 17.0 ); #elif defined( SHADOWMAP_TYPE_PCF_SOFT ) vec2 texelSize = vec2( 1.0 ) / shadowMapSize; float dx = texelSize.x; float dy = texelSize.y; vec2 uv = shadowCoord.xy; vec2 f = fract( uv * shadowMapSize + 0.5 ); uv -= f * texelSize; shadow = ( texture2DCompare( shadowMap, uv, shadowCoord.z ) + texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) + texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) + texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) + mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ), f.x ) + mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ), f.x ) + mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ), f.y ) + mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ), f.y ) + mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ), f.x ), mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ), f.x ), f.y ) ) * ( 1.0 / 9.0 ); #elif defined( SHADOWMAP_TYPE_VSM ) shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z ); #else shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ); #endif } return mix( 1.0, shadow, shadowIntensity ); } vec2 cubeToUV( vec3 v, float texelSizeY ) { vec3 absV = abs( v ); float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) ); absV *= scaleToCube; v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY ); vec2 planar = v.xy; float almostATexel = 1.5 * texelSizeY; float almostOne = 1.0 - almostATexel; if ( absV.z >= almostOne ) { if ( v.z > 0.0 ) planar.x = 4.0 - v.x; } else if ( absV.x >= almostOne ) { float signX = sign( v.x ); planar.x = v.z * signX + 2.0 * signX; } else if ( absV.y >= almostOne ) { float signY = sign( v.y ); planar.x = v.x + 2.0 * signY + 2.0; planar.y = v.z * signY - 2.0; } return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 ); } float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) { float shadow = 1.0; vec3 lightToPosition = shadowCoord.xyz; float lightToPositionLength = length( lightToPosition ); if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) { float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias; vec3 bd3D = normalize( lightToPosition ); vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) ); #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM ) vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y; shadow = ( texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) + texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp ) ) * ( 1.0 / 9.0 ); #else shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ); #endif } return mix( 1.0, shadow, shadowIntensity ); } #endif`,Vle=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ]; varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ]; struct DirectionalLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ]; #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 struct SpotLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; }; uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ]; #endif #if NUM_POINT_LIGHT_SHADOWS > 0 uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ]; varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ]; struct PointLightShadow { float shadowIntensity; float shadowBias; float shadowNormalBias; float shadowRadius; vec2 shadowMapSize; float shadowCameraNear; float shadowCameraFar; }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif #endif`,Hle=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif #if defined( USE_SHADOWMAP ) #if NUM_DIR_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 ); vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 ); vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif #endif #if NUM_SPOT_LIGHT_COORDS > 0 #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) { shadowWorldPosition = worldPosition; #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS ) shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias; #endif vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end #endif`,Wle=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 DirectionalLightShadow directionalLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) { directionalLight = directionalLightShadows[ i ]; shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_SPOT_LIGHT_SHADOWS > 0 SpotLightShadow spotLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) { spotLight = spotLightShadows[ i ]; shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0; } #pragma unroll_loop_end #endif #if NUM_POINT_LIGHT_SHADOWS > 0 PointLightShadow pointLight; #pragma unroll_loop_start for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) { pointLight = pointLightShadows[ i ]; shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0; } #pragma unroll_loop_end #endif #endif return shadow; }`,Gle=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); #endif`,Kle=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; mat4 getBoneMatrix( const in float i ) { int size = textureSize( boneTexture, 0 ).x; int j = int( i ) * 4; int x = j % size; int y = j / size; vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 ); vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 ); vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 ); vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } #endif`,qle=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; skinned += boneMatY * skinVertex * skinWeight.y; skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; #endif`,jle=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; skinMatrix += skinWeight.z * boneMatZ; skinMatrix += skinWeight.w * boneMatW; skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix; objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz; #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif #endif`,Yle=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; #endif`,Xle=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; #endif`,Zle=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); #endif`,Jle=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; vec3 LinearToneMapping( vec3 color ) { return saturate( toneMappingExposure * color ); } vec3 ReinhardToneMapping( vec3 color ) { color *= toneMappingExposure; return saturate( color / ( vec3( 1.0 ) + color ) ); } vec3 CineonToneMapping( vec3 color ) { color *= toneMappingExposure; color = max( vec3( 0.0 ), color - 0.004 ); return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) ); } vec3 RRTAndODTFit( vec3 v ) { vec3 a = v * ( v + 0.0245786 ) - 0.000090537; vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081; return a / b; } vec3 ACESFilmicToneMapping( vec3 color ) { const mat3 ACESInputMat = mat3( vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ), vec3( 0.04823, 0.01566, 0.83777 ) ); const mat3 ACESOutputMat = mat3( vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ), vec3( -0.07367, -0.00605, 1.07602 ) ); color *= toneMappingExposure / 0.6; color = ACESInputMat * color; color = RRTAndODTFit( color ); color = ACESOutputMat * color; return saturate( color ); } const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3( vec3( 1.6605, - 0.1246, - 0.0182 ), vec3( - 0.5876, 1.1329, - 0.1006 ), vec3( - 0.0728, - 0.0083, 1.1187 ) ); const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3( vec3( 0.6274, 0.0691, 0.0164 ), vec3( 0.3293, 0.9195, 0.0880 ), vec3( 0.0433, 0.0113, 0.8956 ) ); vec3 agxDefaultContrastApprox( vec3 x ) { vec3 x2 = x * x; vec3 x4 = x2 * x2; return + 15.5 * x4 * x2 - 40.14 * x4 * x + 31.96 * x4 - 6.868 * x2 * x + 0.4298 * x2 + 0.1191 * x - 0.00232; } vec3 AgXToneMapping( vec3 color ) { const mat3 AgXInsetMatrix = mat3( vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) ); const mat3 AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) ); const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069; color *= toneMappingExposure; color = LINEAR_SRGB_TO_LINEAR_REC2020 * color; color = AgXInsetMatrix * color; color = max( color, 1e-10 ); color = log2( color ); color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv ); color = clamp( color, 0.0, 1.0 ); color = agxDefaultContrastApprox( color ); color = AgXOutsetMatrix * color; color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) ); color = LINEAR_REC2020_TO_LINEAR_SRGB * color; color = clamp( color, 0.0, 1.0 ); return color; } vec3 NeutralToneMapping( vec3 color ) { const float StartCompression = 0.8 - 0.04; const float Desaturation = 0.15; color *= toneMappingExposure; float x = min( color.r, min( color.g, color.b ) ); float offset = x < 0.08 ? x - 6.25 * x * x : 0.04; color -= offset; float peak = max( color.r, max( color.g, color.b ) ); if ( peak < StartCompression ) return color; float d = 1. - StartCompression; float newPeak = 1. - d * d / ( peak + d - StartCompression ); color *= newPeak / peak; float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); return mix( color, vec3( newPeak ), g ); } vec3 CustomToneMapping( vec3 color ) { return color; }`,Qle=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; material.attenuationDistance = attenuationDistance; material.attenuationColor = attenuationColor; #ifdef USE_TRANSMISSIONMAP material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r; #endif #ifdef USE_THICKNESSMAP material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g; #endif vec3 pos = vWorldPosition; vec3 v = normalize( cameraPosition - pos ); vec3 n = inverseTransformDirection( normal, viewMatrix ); vec4 transmitted = getIBLVolumeRefraction( n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90, pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness, material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); #endif`,eue=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; uniform vec3 attenuationColor; #ifdef USE_TRANSMISSIONMAP uniform sampler2D transmissionMap; #endif #ifdef USE_THICKNESSMAP uniform sampler2D thicknessMap; #endif uniform vec2 transmissionSamplerSize; uniform sampler2D transmissionSamplerMap; uniform mat4 modelMatrix; uniform mat4 projectionMatrix; varying vec3 vWorldPosition; float w0( float a ) { return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 ); } float w1( float a ) { return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 ); } float w2( float a ){ return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 ); } float w3( float a ) { return ( 1.0 / 6.0 ) * ( a * a * a ); } float g0( float a ) { return w0( a ) + w1( a ); } float g1( float a ) { return w2( a ) + w3( a ); } float h0( float a ) { return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) ); } float h1( float a ) { return 1.0 + w3( a ) / ( w2( a ) + w3( a ) ); } vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) { uv = uv * texelSize.zw + 0.5; vec2 iuv = floor( uv ); vec2 fuv = fract( uv ); float g0x = g0( fuv.x ); float g1x = g1( fuv.x ); float h0x = h0( fuv.x ); float h1x = h1( fuv.x ); float h0y = h0( fuv.y ); float h1y = h1( fuv.y ); vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy; vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy; return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) + g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) ); } vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) { vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) ); vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) ); vec2 fLodSizeInv = 1.0 / fLodSize; vec2 cLodSizeInv = 1.0 / cLodSize; vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) ); vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) ); return mix( fSample, cSample, fract( lod ) ); } vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) { vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior ); vec3 modelScale; modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) ); modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) ); modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) ); return normalize( refractionVector ) * thickness * modelScale; } float applyIorToRoughness( const in float roughness, const in float ior ) { return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 ); } vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) { float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior ); return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod ); } vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) { if ( isinf( attenuationDistance ) ) { return vec3( 1.0 ); } else { vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance; vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance; } } vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor, const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix, const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness, const in vec3 attenuationColor, const in float attenuationDistance ) { vec4 transmittedLight; vec3 transmittance; #ifdef USE_DISPERSION float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion; vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread ); for ( int i = 0; i < 3; i ++ ) { vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix ); vec3 refractedRayExit = position + transmissionRay; vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); vec2 refractionCoords = ndcPos.xy / ndcPos.w; refractionCoords += 1.0; refractionCoords /= 2.0; vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] ); transmittedLight[ i ] = transmissionSample[ i ]; transmittedLight.a += transmissionSample.a; transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ]; } transmittedLight.a /= 3.0; #else vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix ); vec3 refractedRayExit = position + transmissionRay; vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 ); vec2 refractionCoords = ndcPos.xy / ndcPos.w; refractionCoords += 1.0; refractionCoords /= 2.0; transmittedLight = getTransmissionSample( refractionCoords, roughness, ior ); transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance ); #endif vec3 attenuatedColor = transmittance * transmittedLight.rgb; vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness ); float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } #endif`,tue=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP varying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP varying vec2 vAlphaMapUv; #endif #ifdef USE_LIGHTMAP varying vec2 vLightMapUv; #endif #ifdef USE_AOMAP varying vec2 vAoMapUv; #endif #ifdef USE_BUMPMAP varying vec2 vBumpMapUv; #endif #ifdef USE_NORMALMAP varying vec2 vNormalMapUv; #endif #ifdef USE_EMISSIVEMAP varying vec2 vEmissiveMapUv; #endif #ifdef USE_METALNESSMAP varying vec2 vMetalnessMapUv; #endif #ifdef USE_ROUGHNESSMAP varying vec2 vRoughnessMapUv; #endif #ifdef USE_ANISOTROPYMAP varying vec2 vAnisotropyMapUv; #endif #ifdef USE_CLEARCOATMAP varying vec2 vClearcoatMapUv; #endif #ifdef USE_CLEARCOAT_NORMALMAP varying vec2 vClearcoatNormalMapUv; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP varying vec2 vClearcoatRoughnessMapUv; #endif #ifdef USE_IRIDESCENCEMAP varying vec2 vIridescenceMapUv; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP varying vec2 vIridescenceThicknessMapUv; #endif #ifdef USE_SHEEN_COLORMAP varying vec2 vSheenColorMapUv; #endif #ifdef USE_SHEEN_ROUGHNESSMAP varying vec2 vSheenRoughnessMapUv; #endif #ifdef USE_SPECULARMAP varying vec2 vSpecularMapUv; #endif #ifdef USE_SPECULAR_COLORMAP varying vec2 vSpecularColorMapUv; #endif #ifdef USE_SPECULAR_INTENSITYMAP varying vec2 vSpecularIntensityMapUv; #endif #ifdef USE_TRANSMISSIONMAP uniform mat3 transmissionMapTransform; varying vec2 vTransmissionMapUv; #endif #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; #endif`,nue=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP uniform mat3 mapTransform; varying vec2 vMapUv; #endif #ifdef USE_ALPHAMAP uniform mat3 alphaMapTransform; varying vec2 vAlphaMapUv; #endif #ifdef USE_LIGHTMAP uniform mat3 lightMapTransform; varying vec2 vLightMapUv; #endif #ifdef USE_AOMAP uniform mat3 aoMapTransform; varying vec2 vAoMapUv; #endif #ifdef USE_BUMPMAP uniform mat3 bumpMapTransform; varying vec2 vBumpMapUv; #endif #ifdef USE_NORMALMAP uniform mat3 normalMapTransform; varying vec2 vNormalMapUv; #endif #ifdef USE_DISPLACEMENTMAP uniform mat3 displacementMapTransform; varying vec2 vDisplacementMapUv; #endif #ifdef USE_EMISSIVEMAP uniform mat3 emissiveMapTransform; varying vec2 vEmissiveMapUv; #endif #ifdef USE_METALNESSMAP uniform mat3 metalnessMapTransform; varying vec2 vMetalnessMapUv; #endif #ifdef USE_ROUGHNESSMAP uniform mat3 roughnessMapTransform; varying vec2 vRoughnessMapUv; #endif #ifdef USE_ANISOTROPYMAP uniform mat3 anisotropyMapTransform; varying vec2 vAnisotropyMapUv; #endif #ifdef USE_CLEARCOATMAP uniform mat3 clearcoatMapTransform; varying vec2 vClearcoatMapUv; #endif #ifdef USE_CLEARCOAT_NORMALMAP uniform mat3 clearcoatNormalMapTransform; varying vec2 vClearcoatNormalMapUv; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform mat3 clearcoatRoughnessMapTransform; varying vec2 vClearcoatRoughnessMapUv; #endif #ifdef USE_SHEEN_COLORMAP uniform mat3 sheenColorMapTransform; varying vec2 vSheenColorMapUv; #endif #ifdef USE_SHEEN_ROUGHNESSMAP uniform mat3 sheenRoughnessMapTransform; varying vec2 vSheenRoughnessMapUv; #endif #ifdef USE_IRIDESCENCEMAP uniform mat3 iridescenceMapTransform; varying vec2 vIridescenceMapUv; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform mat3 iridescenceThicknessMapTransform; varying vec2 vIridescenceThicknessMapUv; #endif #ifdef USE_SPECULARMAP uniform mat3 specularMapTransform; varying vec2 vSpecularMapUv; #endif #ifdef USE_SPECULAR_COLORMAP uniform mat3 specularColorMapTransform; varying vec2 vSpecularColorMapUv; #endif #ifdef USE_SPECULAR_INTENSITYMAP uniform mat3 specularIntensityMapTransform; varying vec2 vSpecularIntensityMapUv; #endif #ifdef USE_TRANSMISSIONMAP uniform mat3 transmissionMapTransform; varying vec2 vTransmissionMapUv; #endif #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; #endif`,oue=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy; #endif #ifdef USE_ALPHAMAP vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy; #endif #ifdef USE_LIGHTMAP vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy; #endif #ifdef USE_AOMAP vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy; #endif #ifdef USE_BUMPMAP vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy; #endif #ifdef USE_NORMALMAP vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy; #endif #ifdef USE_DISPLACEMENTMAP vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy; #endif #ifdef USE_EMISSIVEMAP vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy; #endif #ifdef USE_METALNESSMAP vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_ROUGHNESSMAP vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_ANISOTROPYMAP vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOATMAP vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOAT_NORMALMAP vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy; #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_IRIDESCENCEMAP vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_SHEEN_COLORMAP vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy; #endif #ifdef USE_SHEEN_ROUGHNESSMAP vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULARMAP vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULAR_COLORMAP vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy; #endif #ifdef USE_SPECULAR_INTENSITYMAP vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy; #endif #ifdef USE_TRANSMISSIONMAP vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy; #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; #endif`,rue=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; #endif #ifdef USE_INSTANCING worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; #endif`;const iue=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); }`,sue=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { vec4 texColor = texture2D( t2D, vUv ); #ifdef DECODE_VIDEO_TEXTURE texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w ); #endif texColor.rgb *= backgroundIntensity; gl_FragColor = texColor; #include #include }`,aue=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; }`,lue=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; #endif uniform float flipEnvMap; uniform float backgroundBlurriness; uniform float backgroundIntensity; uniform mat3 backgroundRotation; varying vec3 vWorldDirection; #include void main() { #ifdef ENVMAP_TYPE_CUBE vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) ); #elif defined( ENVMAP_TYPE_CUBE_UV ) vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness ); #else vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 ); #endif texColor.rgb *= backgroundIntensity; gl_FragColor = texColor; #include #include }`,uue=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; }`,cue=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; void main() { vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) ); gl_FragColor = texColor; gl_FragColor.a *= opacity; #include #include }`,due=`#include #include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { #include #include #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vHighPrecisionZW = gl_Position.zw; }`,fue=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include #include #include #include #include #include #include #include #include varying vec2 vHighPrecisionZW; void main() { vec4 diffuseColor = vec4( 1.0 ); #include #if DEPTH_PACKING == 3200 diffuseColor.a = opacity; #endif #include #include #include #include #include float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5; #if DEPTH_PACKING == 3200 gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity ); #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #elif DEPTH_PACKING == 3202 gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 ); #elif DEPTH_PACKING == 3203 gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 ); #endif }`,hue=`#define DISTANCE varying vec3 vWorldPosition; #include #include #include #include #include #include #include void main() { #include #include #include #include #ifdef USE_DISPLACEMENTMAP #include #include #include #endif #include #include #include #include #include #include #include vWorldPosition = worldPosition.xyz; }`,pue=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; varying vec3 vWorldPosition; #include #include #include #include #include #include #include #include void main () { vec4 diffuseColor = vec4( 1.0 ); #include #include #include #include #include float dist = length( vWorldPosition - referencePosition ); dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); }`,mue=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include }`,vue=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { vec3 direction = normalize( vWorldDirection ); vec2 sampleUV = equirectUv( direction ); gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include }`,gue=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include #include #include #include #include #include #include void main() { vLineDistance = scale * lineDistance; #include #include #include #include #include #include #include #include #include #include }`,bue=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; varying float vLineDistance; #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include if ( mod( vLineDistance, totalSize ) > dashSize ) { discard; } vec3 outgoingLight = vec3( 0.0 ); #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,yue=`#include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING ) #include #include #include #include #include #endif #include #include #include #include #include #include #include #include #include }`,_ue=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include #include #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI; #else reflectedLight.indirectDiffuse += vec3( 1.0 ); #endif #include reflectedLight.indirectDiffuse *= diffuseColor.rgb; vec3 outgoingLight = reflectedLight.indirectDiffuse; #include #include #include #include #include #include #include }`,xue=`#define LAMBERT varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #include }`,Sue=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,wue=`#define MATCAP varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; }`,Cue=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include #include #include #include #include #include #include #include #include vec3 viewDir = normalize( vViewPosition ); vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) ); vec3 y = cross( viewDir, x ); vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5; #ifdef USE_MATCAP vec4 matcapColor = texture2D( matcap, uv ); #else vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 ); #endif vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb; #include #include #include #include #include #include }`,Eue=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif }`,Mue=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity ); #include #include #include #include gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a ); #ifdef OPAQUE gl_FragColor.a = 1.0; #endif }`,Tue=`#define PHONG varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #include }`,Aue=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; uniform float shininess; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance; #include #include #include #include #include #include #include }`,kue=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; #endif #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif }`,Rue=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR #endif uniform vec3 diffuse; uniform vec3 emissive; uniform float roughness; uniform float metalness; uniform float opacity; #ifdef IOR uniform float ior; #endif #ifdef USE_SPECULAR uniform float specularIntensity; uniform vec3 specularColor; #ifdef USE_SPECULAR_COLORMAP uniform sampler2D specularColorMap; #endif #ifdef USE_SPECULAR_INTENSITYMAP uniform sampler2D specularIntensityMap; #endif #endif #ifdef USE_CLEARCOAT uniform float clearcoat; uniform float clearcoatRoughness; #endif #ifdef USE_DISPERSION uniform float dispersion; #endif #ifdef USE_IRIDESCENCE uniform float iridescence; uniform float iridescenceIOR; uniform float iridescenceThicknessMinimum; uniform float iridescenceThicknessMaximum; #endif #ifdef USE_SHEEN uniform vec3 sheenColor; uniform float sheenRoughness; #ifdef USE_SHEEN_COLORMAP uniform sampler2D sheenColorMap; #endif #ifdef USE_SHEEN_ROUGHNESSMAP uniform sampler2D sheenRoughnessMap; #endif #endif #ifdef USE_ANISOTROPY uniform vec2 anisotropyVector; #ifdef USE_ANISOTROPYMAP uniform sampler2D anisotropyMap; #endif #endif varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse; vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular; #include vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance; #ifdef USE_SHEEN float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor ); outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect; #endif #ifdef USE_CLEARCOAT float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) ); vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc ); outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat; #endif #include #include #include #include #include #include }`,Pue=`#define TOON varying vec3 vViewPosition; #include #include #include #include #include #include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include vViewPosition = - mvPosition.xyz; #include #include #include }`,Due=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) ); vec3 totalEmissiveRadiance = emissive; #include #include #include #include #include #include #include #include #include #include #include #include #include #include vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance; #include #include #include #include #include #include }`,Iue=`uniform float size; uniform float scale; #include #include #include #include #include #include #ifdef USE_POINTS_UV varying vec2 vUv; uniform mat3 uvTransform; #endif void main() { #ifdef USE_POINTS_UV vUv = ( uvTransform * vec3( uv, 1 ) ).xy; #endif #include #include #include #include #include #include gl_PointSize = size; #ifdef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z ); #endif #include #include #include #include }`,Lue=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include vec3 outgoingLight = vec3( 0.0 ); #include #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include #include }`,Nue=`#include #include #include #include #include #include #include void main() { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include }`,Oue=`uniform vec3 color; uniform float opacity; #include #include #include #include #include #include #include #include void main() { #include gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) ); #include #include #include }`,Fue=`uniform float rotation; uniform vec2 center; #include #include #include #include #include void main() { #include vec4 mvPosition = modelViewMatrix[ 3 ]; vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) ); #ifndef USE_SIZEATTENUATION bool isPerspective = isPerspectiveMatrix( projectionMatrix ); if ( isPerspective ) scale *= - mvPosition.z; #endif vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale; vec2 rotatedPosition; rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y; rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y; mvPosition.xy += rotatedPosition; gl_Position = projectionMatrix * mvPosition; #include #include #include }`,Bue=`uniform vec3 diffuse; uniform float opacity; #include #include #include #include #include #include #include #include #include void main() { vec4 diffuseColor = vec4( diffuse, opacity ); #include vec3 outgoingLight = vec3( 0.0 ); #include #include #include #include #include outgoingLight = diffuseColor.rgb; #include #include #include #include }`,en={alphahash_fragment:sae,alphahash_pars_fragment:aae,alphamap_fragment:lae,alphamap_pars_fragment:uae,alphatest_fragment:cae,alphatest_pars_fragment:dae,aomap_fragment:fae,aomap_pars_fragment:hae,batching_pars_vertex:pae,batching_vertex:mae,begin_vertex:vae,beginnormal_vertex:gae,bsdfs:bae,iridescence_fragment:yae,bumpmap_pars_fragment:_ae,clipping_planes_fragment:xae,clipping_planes_pars_fragment:Sae,clipping_planes_pars_vertex:wae,clipping_planes_vertex:Cae,color_fragment:Eae,color_pars_fragment:Mae,color_pars_vertex:Tae,color_vertex:Aae,common:kae,cube_uv_reflection_fragment:Rae,defaultnormal_vertex:Pae,displacementmap_pars_vertex:Dae,displacementmap_vertex:Iae,emissivemap_fragment:Lae,emissivemap_pars_fragment:Nae,colorspace_fragment:Oae,colorspace_pars_fragment:Fae,envmap_fragment:Bae,envmap_common_pars_fragment:$ae,envmap_pars_fragment:Uae,envmap_pars_vertex:zae,envmap_physical_pars_fragment:Jae,envmap_vertex:Vae,fog_vertex:Hae,fog_pars_vertex:Wae,fog_fragment:Gae,fog_pars_fragment:Kae,gradientmap_pars_fragment:qae,lightmap_pars_fragment:jae,lights_lambert_fragment:Yae,lights_lambert_pars_fragment:Xae,lights_pars_begin:Zae,lights_toon_fragment:Qae,lights_toon_pars_fragment:ele,lights_phong_fragment:tle,lights_phong_pars_fragment:nle,lights_physical_fragment:ole,lights_physical_pars_fragment:rle,lights_fragment_begin:ile,lights_fragment_maps:sle,lights_fragment_end:ale,logdepthbuf_fragment:lle,logdepthbuf_pars_fragment:ule,logdepthbuf_pars_vertex:cle,logdepthbuf_vertex:dle,map_fragment:fle,map_pars_fragment:hle,map_particle_fragment:ple,map_particle_pars_fragment:mle,metalnessmap_fragment:vle,metalnessmap_pars_fragment:gle,morphinstance_vertex:ble,morphcolor_vertex:yle,morphnormal_vertex:_le,morphtarget_pars_vertex:xle,morphtarget_vertex:Sle,normal_fragment_begin:wle,normal_fragment_maps:Cle,normal_pars_fragment:Ele,normal_pars_vertex:Mle,normal_vertex:Tle,normalmap_pars_fragment:Ale,clearcoat_normal_fragment_begin:kle,clearcoat_normal_fragment_maps:Rle,clearcoat_pars_fragment:Ple,iridescence_pars_fragment:Dle,opaque_fragment:Ile,packing:Lle,premultiplied_alpha_fragment:Nle,project_vertex:Ole,dithering_fragment:Fle,dithering_pars_fragment:Ble,roughnessmap_fragment:$le,roughnessmap_pars_fragment:Ule,shadowmap_pars_fragment:zle,shadowmap_pars_vertex:Vle,shadowmap_vertex:Hle,shadowmask_pars_fragment:Wle,skinbase_vertex:Gle,skinning_pars_vertex:Kle,skinning_vertex:qle,skinnormal_vertex:jle,specularmap_fragment:Yle,specularmap_pars_fragment:Xle,tonemapping_fragment:Zle,tonemapping_pars_fragment:Jle,transmission_fragment:Qle,transmission_pars_fragment:eue,uv_pars_fragment:tue,uv_pars_vertex:nue,uv_vertex:oue,worldpos_vertex:rue,background_vert:iue,background_frag:sue,backgroundCube_vert:aue,backgroundCube_frag:lue,cube_vert:uue,cube_frag:cue,depth_vert:due,depth_frag:fue,distanceRGBA_vert:hue,distanceRGBA_frag:pue,equirect_vert:mue,equirect_frag:vue,linedashed_vert:gue,linedashed_frag:bue,meshbasic_vert:yue,meshbasic_frag:_ue,meshlambert_vert:xue,meshlambert_frag:Sue,meshmatcap_vert:wue,meshmatcap_frag:Cue,meshnormal_vert:Eue,meshnormal_frag:Mue,meshphong_vert:Tue,meshphong_frag:Aue,meshphysical_vert:kue,meshphysical_frag:Rue,meshtoon_vert:Pue,meshtoon_frag:Due,points_vert:Iue,points_frag:Lue,shadow_vert:Nue,shadow_frag:Oue,sprite_vert:Fue,sprite_frag:Bue},wt={common:{diffuse:{value:new un(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Xt},alphaMap:{value:null},alphaMapTransform:{value:new Xt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Xt}},envmap:{envMap:{value:null},envMapRotation:{value:new Xt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Xt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Xt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Xt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Xt},normalScale:{value:new mt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Xt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Xt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Xt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Xt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new un(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new un(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Xt},alphaTest:{value:0},uvTransform:{value:new Xt}},sprite:{diffuse:{value:new un(16777215)},opacity:{value:1},center:{value:new mt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Xt},alphaMap:{value:null},alphaMapTransform:{value:new Xt},alphaTest:{value:0}}},di={basic:{uniforms:No([wt.common,wt.specularmap,wt.envmap,wt.aomap,wt.lightmap,wt.fog]),vertexShader:en.meshbasic_vert,fragmentShader:en.meshbasic_frag},lambert:{uniforms:No([wt.common,wt.specularmap,wt.envmap,wt.aomap,wt.lightmap,wt.emissivemap,wt.bumpmap,wt.normalmap,wt.displacementmap,wt.fog,wt.lights,{emissive:{value:new un(0)}}]),vertexShader:en.meshlambert_vert,fragmentShader:en.meshlambert_frag},phong:{uniforms:No([wt.common,wt.specularmap,wt.envmap,wt.aomap,wt.lightmap,wt.emissivemap,wt.bumpmap,wt.normalmap,wt.displacementmap,wt.fog,wt.lights,{emissive:{value:new un(0)},specular:{value:new un(1118481)},shininess:{value:30}}]),vertexShader:en.meshphong_vert,fragmentShader:en.meshphong_frag},standard:{uniforms:No([wt.common,wt.envmap,wt.aomap,wt.lightmap,wt.emissivemap,wt.bumpmap,wt.normalmap,wt.displacementmap,wt.roughnessmap,wt.metalnessmap,wt.fog,wt.lights,{emissive:{value:new un(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:en.meshphysical_vert,fragmentShader:en.meshphysical_frag},toon:{uniforms:No([wt.common,wt.aomap,wt.lightmap,wt.emissivemap,wt.bumpmap,wt.normalmap,wt.displacementmap,wt.gradientmap,wt.fog,wt.lights,{emissive:{value:new un(0)}}]),vertexShader:en.meshtoon_vert,fragmentShader:en.meshtoon_frag},matcap:{uniforms:No([wt.common,wt.bumpmap,wt.normalmap,wt.displacementmap,wt.fog,{matcap:{value:null}}]),vertexShader:en.meshmatcap_vert,fragmentShader:en.meshmatcap_frag},points:{uniforms:No([wt.points,wt.fog]),vertexShader:en.points_vert,fragmentShader:en.points_frag},dashed:{uniforms:No([wt.common,wt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:en.linedashed_vert,fragmentShader:en.linedashed_frag},depth:{uniforms:No([wt.common,wt.displacementmap]),vertexShader:en.depth_vert,fragmentShader:en.depth_frag},normal:{uniforms:No([wt.common,wt.bumpmap,wt.normalmap,wt.displacementmap,{opacity:{value:1}}]),vertexShader:en.meshnormal_vert,fragmentShader:en.meshnormal_frag},sprite:{uniforms:No([wt.sprite,wt.fog]),vertexShader:en.sprite_vert,fragmentShader:en.sprite_frag},background:{uniforms:{uvTransform:{value:new Xt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:en.background_vert,fragmentShader:en.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Xt}},vertexShader:en.backgroundCube_vert,fragmentShader:en.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:en.cube_vert,fragmentShader:en.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:en.equirect_vert,fragmentShader:en.equirect_frag},distanceRGBA:{uniforms:No([wt.common,wt.displacementmap,{referencePosition:{value:new ke},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:en.distanceRGBA_vert,fragmentShader:en.distanceRGBA_frag},shadow:{uniforms:No([wt.lights,wt.fog,{color:{value:new un(0)},opacity:{value:1}}]),vertexShader:en.shadow_vert,fragmentShader:en.shadow_frag}};di.physical={uniforms:No([di.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Xt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Xt},clearcoatNormalScale:{value:new mt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Xt},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Xt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Xt},sheen:{value:0},sheenColor:{value:new un(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Xt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Xt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Xt},transmissionSamplerSize:{value:new mt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Xt},attenuationDistance:{value:0},attenuationColor:{value:new un(0)},specularColor:{value:new un(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Xt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Xt},anisotropyVector:{value:new mt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Xt}}]),vertexShader:en.meshphysical_vert,fragmentShader:en.meshphysical_frag};const ah={r:0,b:0,g:0},Ta=new Ri,$ue=new An;function Uue(e,t,n,o,r,i,s){const a=new un(0);let l=i===!0?0:1,u,d,f=null,p=0,h=null;function m(y){let _=y.isScene===!0?y.background:null;return _&&_.isTexture&&(_=(y.backgroundBlurriness>0?n:t).get(_)),_}function v(y){let _=!1;const w=m(y);w===null?g(a,l):w&&w.isColor&&(g(w,1),_=!0);const S=e.xr.getEnvironmentBlendMode();S==="additive"?o.buffers.color.setClear(0,0,0,1,s):S==="alpha-blend"&&o.buffers.color.setClear(0,0,0,0,s),(e.autoClear||_)&&(o.buffers.depth.setTest(!0),o.buffers.depth.setMask(!0),o.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function b(y,_){const w=m(_);w&&(w.isCubeTexture||w.mapping===P0)?(d===void 0&&(d=new Yt(new Qs(1,1,1),new ca({name:"BackgroundCubeMaterial",uniforms:Fu(di.backgroundCube.uniforms),vertexShader:di.backgroundCube.vertexShader,fragmentShader:di.backgroundCube.fragmentShader,side:Zo,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),d.geometry.deleteAttribute("normal"),d.geometry.deleteAttribute("uv"),d.onBeforeRender=function(S,M,T){this.matrixWorld.copyPosition(T.matrixWorld)},Object.defineProperty(d.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(d)),Ta.copy(_.backgroundRotation),Ta.x*=-1,Ta.y*=-1,Ta.z*=-1,w.isCubeTexture&&w.isRenderTargetTexture===!1&&(Ta.y*=-1,Ta.z*=-1),d.material.uniforms.envMap.value=w,d.material.uniforms.flipEnvMap.value=w.isCubeTexture&&w.isRenderTargetTexture===!1?-1:1,d.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,d.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,d.material.uniforms.backgroundRotation.value.setFromMatrix4($ue.makeRotationFromEuler(Ta)),d.material.toneMapped=dn.getTransfer(w.colorSpace)!==bn,(f!==w||p!==w.version||h!==e.toneMapping)&&(d.material.needsUpdate=!0,f=w,p=w.version,h=e.toneMapping),d.layers.enableAll(),y.unshift(d,d.geometry,d.material,0,0,null)):w&&w.isTexture&&(u===void 0&&(u=new Yt(new $n(2,2),new ca({name:"BackgroundMaterial",uniforms:Fu(di.background.uniforms),vertexShader:di.background.vertexShader,fragmentShader:di.background.fragmentShader,side:ua,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),u.geometry.deleteAttribute("normal"),Object.defineProperty(u.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(u)),u.material.uniforms.t2D.value=w,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.toneMapped=dn.getTransfer(w.colorSpace)!==bn,w.matrixAutoUpdate===!0&&w.updateMatrix(),u.material.uniforms.uvTransform.value.copy(w.matrix),(f!==w||p!==w.version||h!==e.toneMapping)&&(u.material.needsUpdate=!0,f=w,p=w.version,h=e.toneMapping),u.layers.enableAll(),y.unshift(u,u.geometry,u.material,0,0,null))}function g(y,_){y.getRGB(ah,yR(e)),o.buffers.color.setClear(ah.r,ah.g,ah.b,_,s)}function x(){d!==void 0&&(d.geometry.dispose(),d.material.dispose(),d=void 0),u!==void 0&&(u.geometry.dispose(),u.material.dispose(),u=void 0)}return{getClearColor:function(){return a},setClearColor:function(y,_=1){a.set(y),l=_,g(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(y){l=y,g(a,l)},render:v,addToRenderList:b,dispose:x}}function zue(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),o={},r=p(null);let i=r,s=!1;function a(C,k,R,B,H){let N=!1;const P=f(B,R,k);i!==P&&(i=P,u(i.object)),N=h(C,B,R,H),N&&m(C,B,R,H),H!==null&&t.update(H,e.ELEMENT_ARRAY_BUFFER),(N||s)&&(s=!1,_(C,k,R,B),H!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(H).buffer))}function l(){return e.createVertexArray()}function u(C){return e.bindVertexArray(C)}function d(C){return e.deleteVertexArray(C)}function f(C,k,R){const B=R.wireframe===!0;let H=o[C.id];H===void 0&&(H={},o[C.id]=H);let N=H[k.id];N===void 0&&(N={},H[k.id]=N);let P=N[B];return P===void 0&&(P=p(l()),N[B]=P),P}function p(C){const k=[],R=[],B=[];for(let H=0;H=0){const q=H[I];let K=N[I];if(K===void 0&&(I==="instanceMatrix"&&C.instanceMatrix&&(K=C.instanceMatrix),I==="instanceColor"&&C.instanceColor&&(K=C.instanceColor)),q===void 0||q.attribute!==K||K&&q.data!==K.data)return!0;P++}return i.attributesNum!==P||i.index!==B}function m(C,k,R,B){const H={},N=k.attributes;let P=0;const U=R.getAttributes();for(const I in U)if(U[I].location>=0){let q=N[I];q===void 0&&(I==="instanceMatrix"&&C.instanceMatrix&&(q=C.instanceMatrix),I==="instanceColor"&&C.instanceColor&&(q=C.instanceColor));const K={};K.attribute=q,q&&q.data&&(K.data=q.data),H[I]=K,P++}i.attributes=H,i.attributesNum=P,i.index=B}function v(){const C=i.newAttributes;for(let k=0,R=C.length;k=0){let O=H[U];if(O===void 0&&(U==="instanceMatrix"&&C.instanceMatrix&&(O=C.instanceMatrix),U==="instanceColor"&&C.instanceColor&&(O=C.instanceColor)),O!==void 0){const q=O.normalized,K=O.itemSize,oe=t.get(O);if(oe===void 0)continue;const X=oe.buffer,Y=oe.type,ie=oe.bytesPerElement,ae=Y===e.INT||Y===e.UNSIGNED_INT||O.gpuType===W1;if(O.isInterleavedBufferAttribute){const re=O.data,fe=re.stride,be=O.offset;if(re.isInstancedInterleavedBuffer){for(let De=0;De0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";M="mediump"}return M==="mediump"&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let u=n.precision!==void 0?n.precision:"highp";const d=l(u);d!==u&&(console.warn("THREE.WebGLRenderer:",u,"not supported, using",d,"instead."),u=d);const f=n.logarithmicDepthBuffer===!0,p=n.reverseDepthBuffer===!0&&t.has("EXT_clip_control"),h=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),v=e.getParameter(e.MAX_TEXTURE_SIZE),b=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),g=e.getParameter(e.MAX_VERTEX_ATTRIBS),x=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),_=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),w=m>0,S=e.getParameter(e.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:i,getMaxPrecision:l,textureFormatReadable:s,textureTypeReadable:a,precision:u,logarithmicDepthBuffer:f,reverseDepthBuffer:p,maxTextures:h,maxVertexTextures:m,maxTextureSize:v,maxCubemapSize:b,maxAttributes:g,maxVertexUniforms:x,maxVaryings:y,maxFragmentUniforms:_,vertexTextures:w,maxSamples:S}}function Wue(e){const t=this;let n=null,o=0,r=!1,i=!1;const s=new $s,a=new Xt,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(f,p){const h=f.length!==0||p||o!==0||r;return r=p,o=f.length,h},this.beginShadows=function(){i=!0,d(null)},this.endShadows=function(){i=!1},this.setGlobalState=function(f,p){n=d(f,p,0)},this.setState=function(f,p,h){const m=f.clippingPlanes,v=f.clipIntersection,b=f.clipShadows,g=e.get(f);if(!r||m===null||m.length===0||i&&!b)i?d(null):u();else{const x=i?0:o,y=x*4;let _=g.clippingState||null;l.value=_,_=d(m,p,y,h);for(let w=0;w!==y;++w)_[w]=n[w];g.clippingState=_,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=x}};function u(){l.value!==n&&(l.value=n,l.needsUpdate=o>0),t.numPlanes=o,t.numIntersection=0}function d(f,p,h,m){const v=f!==null?f.length:0;let b=null;if(v!==0){if(b=l.value,m!==!0||b===null){const g=h+v*4,x=p.matrixWorldInverse;a.getNormalMatrix(x),(b===null||b.length0){const u=new ise(l.height);return u.fromEquirectangularTexture(e,s),t.set(s,u),s.addEventListener("dispose",r),n(u.texture,s.mapping)}else return null}}return s}function r(s){const a=s.target;a.removeEventListener("dispose",r);const l=t.get(a);l!==void 0&&(t.delete(a),l.dispose())}function i(){t=new WeakMap}return{get:o,dispose:i}}const Yl=4,Fw=[.125,.215,.35,.446,.526,.582],Oa=20,ev=new DR,Bw=new un;let tv=null,nv=0,ov=0,rv=!1;const ka=(1+Math.sqrt(5))/2,Bl=1/ka,$w=[new ke(-ka,Bl,0),new ke(ka,Bl,0),new ke(-Bl,0,ka),new ke(Bl,0,ka),new ke(0,ka,-Bl),new ke(0,ka,Bl),new ke(-1,1,-1),new ke(1,1,-1),new ke(-1,1,1),new ke(1,1,1)],Kue=new ke;class Uw{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,n=0,o=.1,r=100,i={}){const{size:s=256,position:a=Kue}=i;tv=this._renderer.getRenderTarget(),nv=this._renderer.getActiveCubeFace(),ov=this._renderer.getActiveMipmapLevel(),rv=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(s);const l=this._allocateTargets();return l.depthBuffer=!0,this._sceneToCubeUV(t,o,r,l,a),n>0&&this._blur(l,0,0,n),this._applyPMREM(l),this._cleanup(l),l}fromEquirectangular(t,n=null){return this._fromTexture(t,n)}fromCubemap(t,n=null){return this._fromTexture(t,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Hw(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Vw(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let t=0;t2?_:0,_,_),f.setRenderTarget(r),b&&f.render(v,l),f.render(t,l)}v.geometry.dispose(),v.material.dispose(),f.toneMapping=h,f.autoClear=p,t.background=g}_textureToCubeUV(t,n){const o=this._renderer,r=t.mapping===Lu||t.mapping===Nu;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Hw()),this._cubemapMaterial.uniforms.flipEnvMap.value=t.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Vw());const i=r?this._cubemapMaterial:this._equirectMaterial,s=new Yt(this._lodPlanes[0],i),a=i.uniforms;a.envMap.value=t;const l=this._cubeSize;lh(n,0,0,3*l,2*l),o.setRenderTarget(n),o.render(s,ev)}_applyPMREM(t){const n=this._renderer,o=n.autoClear;n.autoClear=!1;const r=this._lodPlanes.length;for(let i=1;iOa&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${b} samples when the maximum is set to ${Oa}`);const g=[];let x=0;for(let M=0;My-Yl?r-y+Yl:0),S=4*(this._cubeSize-_);lh(n,w,S,3*_,2*_),l.setRenderTarget(n),l.render(f,ev)}}function que(e){const t=[],n=[],o=[];let r=e;const i=e-Yl+1+Fw.length;for(let s=0;se-Yl?l=Fw[s-e+Yl-1]:s===0&&(l=0),o.push(l);const u=1/(a-2),d=-u,f=1+u,p=[d,d,f,d,f,f,d,d,f,f,d,f],h=6,m=6,v=3,b=2,g=1,x=new Float32Array(v*m*h),y=new Float32Array(b*m*h),_=new Float32Array(g*m*h);for(let S=0;S2?0:-1,E=[M,T,0,M+2/3,T,0,M+2/3,T+1,0,M,T,0,M+2/3,T+1,0,M,T+1,0];x.set(E,v*m*S),y.set(p,b*m*S);const C=[S,S,S,S,S,S];_.set(C,g*m*S)}const w=new uo;w.setAttribute("position",new Si(x,v)),w.setAttribute("uv",new Si(y,b)),w.setAttribute("faceIndex",new Si(_,g)),t.push(w),r>Yl&&r--}return{lodPlanes:t,sizeLods:n,sigmas:o}}function zw(e,t,n){const o=new ul(e,t,n);return o.texture.mapping=P0,o.texture.name="PMREM.cubeUv",o.scissorTest=!0,o}function lh(e,t,n,o,r){e.viewport.set(t,n,o,r),e.scissor.set(t,n,o,r)}function jue(e,t,n){const o=new Float32Array(Oa),r=new ke(0,1,0);return new ca({name:"SphericalGaussianBlur",defines:{n:Oa,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:o},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:i_(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform int samples; uniform float weights[ n ]; uniform bool latitudinal; uniform float dTheta; uniform float mipInt; uniform vec3 poleAxis; #define ENVMAP_TYPE_CUBE_UV #include vec3 getSample( float theta, vec3 axis ) { float cosTheta = cos( theta ); // Rodrigues' axis-angle rotation vec3 sampleDirection = vOutputDirection * cosTheta + cross( axis, vOutputDirection ) * sin( theta ) + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); return bilinearCubeUV( envMap, sampleDirection, mipInt ); } void main() { vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); if ( all( equal( axis, vec3( 0.0 ) ) ) ) { axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); } axis = normalize( axis ); gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); for ( int i = 1; i < n; i++ ) { if ( i >= samples ) { break; } float theta = dTheta * float( i ); gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); } } `,blending:Zs,depthTest:!1,depthWrite:!1})}function Vw(){return new ca({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:i_(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; #include void main() { vec3 outputDirection = normalize( vOutputDirection ); vec2 uv = equirectUv( outputDirection ); gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } `,blending:Zs,depthTest:!1,depthWrite:!1})}function Hw(){return new ca({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:i_(),fragmentShader:` precision mediump float; precision mediump int; uniform float flipEnvMap; varying vec3 vOutputDirection; uniform samplerCube envMap; void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } `,blending:Zs,depthTest:!1,depthWrite:!1})}function i_(){return` precision mediump float; precision mediump int; attribute float faceIndex; varying vec3 vOutputDirection; // RH coordinate system; PMREM face-indexing convention vec3 getDirection( vec2 uv, float face ) { uv = 2.0 * uv - 1.0; vec3 direction = vec3( uv, 1.0 ); if ( face == 0.0 ) { direction = direction.zyx; // ( 1, v, u ) pos x } else if ( face == 1.0 ) { direction = direction.xzy; direction.xz *= -1.0; // ( -u, 1, -v ) pos y } else if ( face == 2.0 ) { direction.x *= -1.0; // ( -u, v, 1 ) pos z } else if ( face == 3.0 ) { direction = direction.zyx; direction.xz *= -1.0; // ( -1, v, -u ) neg x } else if ( face == 4.0 ) { direction = direction.xzy; direction.xy *= -1.0; // ( -u, -1, v ) neg y } else if ( face == 5.0 ) { direction.z *= -1.0; // ( u, v, -1 ) neg z } return direction; } void main() { vOutputDirection = getDirection( uv, faceIndex ); gl_Position = vec4( position, 1.0 ); } `}function Yue(e){let t=new WeakMap,n=null;function o(a){if(a&&a.isTexture){const l=a.mapping,u=l===Vg||l===Hg,d=l===Lu||l===Nu;if(u||d){let f=t.get(a);const p=f!==void 0?f.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==p)return n===null&&(n=new Uw(e)),f=u?n.fromEquirectangular(a,f):n.fromCubemap(a,f),f.texture.pmremVersion=a.pmremVersion,t.set(a,f),f.texture;if(f!==void 0)return f.texture;{const h=a.image;return u&&h&&h.height>0||d&&h&&r(h)?(n===null&&(n=new Uw(e)),f=u?n.fromEquirectangular(a):n.fromCubemap(a),f.texture.pmremVersion=a.pmremVersion,t.set(a,f),a.addEventListener("dispose",i),f.texture):null}}}return a}function r(a){let l=0;const u=6;for(let d=0;dt.maxTextureSize&&(S=Math.ceil(w/t.maxTextureSize),w=t.maxTextureSize);const M=new Float32Array(w*S*4*f),T=new mR(M,w,S,f);T.type=Ji,T.needsUpdate=!0;const E=_*4;for(let k=0;k0)return e;const r=t*n;let i=Gw[r];if(i===void 0&&(i=new Float32Array(r),Gw[r]=i),t!==0){o.toArray(i,0);for(let s=1,a=0;s!==t;++s)a+=n,e[s].toArray(i,a)}return i}function no(e,t){if(e.length!==t.length)return!1;for(let n=0,o=e.length;n":" "} ${a}: ${n[s]}`)}return o.join(` `)}const Jw=new Xt;function Yce(e){dn._getMatrix(Jw,dn.workingColorSpace,e);const t=`mat3( ${Jw.elements.map(n=>n.toFixed(4))} )`;switch(dn.getTransfer(e)){case Rp:return[t,"LinearTransferOETF"];case bn:return[t,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space: ",e),[t,"LinearTransferOETF"]}}function Qw(e,t,n){const o=e.getShaderParameter(t,e.COMPILE_STATUS),r=e.getShaderInfoLog(t).trim();if(o&&r==="")return"";const i=/ERROR: 0:(\d+)/.exec(r);if(i){const s=parseInt(i[1]);return n.toUpperCase()+` `+r+` `+jce(e.getShaderSource(t),s)}else return r}function Xce(e,t){const n=Yce(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,"}"].join(` `)}function Zce(e,t){let n;switch(t){case hie:n="Linear";break;case pie:n="Reinhard";break;case mie:n="Cineon";break;case vie:n="ACESFilmic";break;case bie:n="AgX";break;case yie:n="Neutral";break;case gie:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}const uh=new ke;function Jce(){dn.getLuminanceCoefficients(uh);const e=uh.x.toFixed(4),t=uh.y.toFixed(4),n=uh.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",` const vec3 weights = vec3( ${e}, ${t}, ${n} );`," return dot( weights, rgb );","}"].join(` `)}function Qce(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(wc).join(` `)}function ede(e){const t=[];for(const n in e){const o=e[n];o!==!1&&t.push("#define "+n+" "+o)}return t.join(` `)}function tde(e,t){const n={},o=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r/gm;function Eb(e){return e.replace(nde,rde)}const ode=new Map;function rde(e,t){let n=en[t];if(n===void 0){const o=ode.get(t);if(o!==void 0)n=en[o],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,o);else throw new Error("Can not resolve #include <"+t+">")}return Eb(n)}const ide=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function nC(e){return e.replace(ide,sde)}function sde(e,t,n,o){let r="";for(let i=parseInt(t);i0&&(b+=` `),g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(wc).join(` `),g.length>0&&(g+=` `)):(b=[oC(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` `].filter(wc).join(` `),g=[oC(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",n.envMap?"#define "+f:"",p?"#define CUBEUV_TEXEL_WIDTH "+p.texelWidth:"",p?"#define CUBEUV_TEXEL_HEIGHT "+p.texelHeight:"",p?"#define CUBEUV_MAX_MIP "+p.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Js?"#define TONE_MAPPING":"",n.toneMapping!==Js?en.tonemapping_pars_fragment:"",n.toneMapping!==Js?Zce("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",en.colorspace_pars_fragment,Xce("linearToOutputTexel",n.outputColorSpace),Jce(),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",` `].filter(wc).join(` `)),s=Eb(s),s=eC(s,n),s=tC(s,n),a=Eb(a),a=eC(a,n),a=tC(a,n),s=nC(s),a=nC(a),n.isRawShaderMaterial!==!0&&(x=`#version 300 es `,b=[h,"#define attribute in","#define varying out","#define texture2D texture"].join(` `)+` `+b,g=["#define varying in",n.glslVersion===ow?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===ow?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` `)+` `+g);const y=x+b+s,_=x+g+a,w=Zw(r,r.VERTEX_SHADER,y),S=Zw(r,r.FRAGMENT_SHADER,_);r.attachShader(v,w),r.attachShader(v,S),n.index0AttributeName!==void 0?r.bindAttribLocation(v,0,n.index0AttributeName):n.morphTargets===!0&&r.bindAttribLocation(v,0,"position"),r.linkProgram(v);function M(k){if(e.debug.checkShaderErrors){const R=r.getProgramInfoLog(v).trim(),B=r.getShaderInfoLog(w).trim(),H=r.getShaderInfoLog(S).trim();let N=!0,P=!0;if(r.getProgramParameter(v,r.LINK_STATUS)===!1)if(N=!1,typeof e.debug.onShaderError=="function")e.debug.onShaderError(r,v,w,S);else{const U=Qw(r,w,"vertex"),I=Qw(r,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(v,r.VALIDATE_STATUS)+` Material Name: `+k.name+` Material Type: `+k.type+` Program Info Log: `+R+` `+U+` `+I)}else R!==""?console.warn("THREE.WebGLProgram: Program Info Log:",R):(B===""||H==="")&&(P=!1);P&&(k.diagnostics={runnable:N,programLog:R,vertexShader:{log:B,prefix:b},fragmentShader:{log:H,prefix:g}})}r.deleteShader(w),r.deleteShader(S),T=new Kh(r,v),E=tde(r,v)}let T;this.getUniforms=function(){return T===void 0&&M(this),T};let E;this.getAttributes=function(){return E===void 0&&M(this),E};let C=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return C===!1&&(C=r.getProgramParameter(v,Kce)),C},this.destroy=function(){o.releaseStatesOfProgram(this),r.deleteProgram(v),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=qce++,this.cacheKey=t,this.usedTimes=1,this.program=v,this.vertexShader=w,this.fragmentShader=S,this}let hde=0;class pde{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const n=t.vertexShader,o=t.fragmentShader,r=this._getShaderStage(n),i=this._getShaderStage(o),s=this._getShaderCacheForMaterial(t);return s.has(r)===!1&&(s.add(r),r.usedTimes++),s.has(i)===!1&&(s.add(i),i.usedTimes++),this}remove(t){const n=this.materialCache.get(t);for(const o of n)o.usedTimes--,o.usedTimes===0&&this.shaderCache.delete(o.code);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const n=this.materialCache;let o=n.get(t);return o===void 0&&(o=new Set,n.set(t,o)),o}_getShaderStage(t){const n=this.shaderCache;let o=n.get(t);return o===void 0&&(o=new mde(t),n.set(t,o)),o}}class mde{constructor(t){this.id=hde++,this.code=t,this.usedTimes=0}}function vde(e,t,n,o,r,i,s){const a=new Z1,l=new pde,u=new Set,d=[],f=r.logarithmicDepthBuffer,p=r.vertexTextures;let h=r.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(E){return u.add(E),E===0?"uv":`uv${E}`}function b(E,C,k,R,B){const H=R.fog,N=B.geometry,P=E.isMeshStandardMaterial?R.environment:null,U=(E.isMeshStandardMaterial?n:t).get(E.envMap||P),I=U&&U.mapping===P0?U.image.height:null,O=m[E.type];E.precision!==null&&(h=r.getMaxPrecision(E.precision),h!==E.precision&&console.warn("THREE.WebGLProgram.getParameters:",E.precision,"not supported, using",h,"instead."));const q=N.morphAttributes.position||N.morphAttributes.normal||N.morphAttributes.color,K=q!==void 0?q.length:0;let oe=0;N.morphAttributes.position!==void 0&&(oe=1),N.morphAttributes.normal!==void 0&&(oe=2),N.morphAttributes.color!==void 0&&(oe=3);let X,Y,ie,ae;if(O){const ct=di[O];X=ct.vertexShader,Y=ct.fragmentShader}else X=E.vertexShader,Y=E.fragmentShader,l.update(E),ie=l.getVertexShaderID(E),ae=l.getFragmentShaderID(E);const re=e.getRenderTarget(),fe=e.state.buffers.depth.getReversed(),be=B.isInstancedMesh===!0,De=B.isBatchedMesh===!0,Re=!!E.map,V=!!E.matcap,ee=!!U,z=!!E.aoMap,ve=!!E.lightMap,ce=!!E.bumpMap,me=!!E.normalMap,ue=!!E.displacementMap,ge=!!E.emissiveMap,xe=!!E.metalnessMap,Ce=!!E.roughnessMap,Fe=E.anisotropy>0,Z=E.clearcoat>0,$=E.dispersion>0,he=E.iridescence>0,Me=E.sheen>0,Be=E.transmission>0,Ne=Fe&&!!E.anisotropyMap,nt=Z&&!!E.clearcoatMap,qe=Z&&!!E.clearcoatNormalMap,ht=Z&&!!E.clearcoatRoughnessMap,He=he&&!!E.iridescenceMap,$e=he&&!!E.iridescenceThicknessMap,ne=Me&&!!E.sheenColorMap,we=Me&&!!E.sheenRoughnessMap,te=!!E.specularMap,Ee=!!E.specularColorMap,Ye=!!E.specularIntensityMap,Se=Be&&!!E.transmissionMap,ot=Be&&!!E.thicknessMap,Ze=!!E.gradientMap,ft=!!E.alphaMap,lt=E.alphaTest>0,Xe=!!E.alphaHash,Et=!!E.extensions;let Ge=Js;E.toneMapped&&(re===null||re.isXRRenderTarget===!0)&&(Ge=e.toneMapping);const St={shaderID:O,shaderType:E.type,shaderName:E.name,vertexShader:X,fragmentShader:Y,defines:E.defines,customVertexShaderID:ie,customFragmentShaderID:ae,isRawShaderMaterial:E.isRawShaderMaterial===!0,glslVersion:E.glslVersion,precision:h,batching:De,batchingColor:De&&B._colorsTexture!==null,instancing:be,instancingColor:be&&B.instanceColor!==null,instancingMorph:be&&B.morphTexture!==null,supportsVertexTextures:p,outputColorSpace:re===null?e.outputColorSpace:re.isXRRenderTarget===!0?re.texture.colorSpace:Ou,alphaToCoverage:!!E.alphaToCoverage,map:Re,matcap:V,envMap:ee,envMapMode:ee&&U.mapping,envMapCubeUVHeight:I,aoMap:z,lightMap:ve,bumpMap:ce,normalMap:me,displacementMap:p&&ue,emissiveMap:ge,normalMapObjectSpace:me&&E.normalMapType===wie,normalMapTangentSpace:me&&E.normalMapType===fR,metalnessMap:xe,roughnessMap:Ce,anisotropy:Fe,anisotropyMap:Ne,clearcoat:Z,clearcoatMap:nt,clearcoatNormalMap:qe,clearcoatRoughnessMap:ht,dispersion:$,iridescence:he,iridescenceMap:He,iridescenceThicknessMap:$e,sheen:Me,sheenColorMap:ne,sheenRoughnessMap:we,specularMap:te,specularColorMap:Ee,specularIntensityMap:Ye,transmission:Be,transmissionMap:Se,thicknessMap:ot,gradientMap:Ze,opaque:E.transparent===!1&&E.blending===lu&&E.alphaToCoverage===!1,alphaMap:ft,alphaTest:lt,alphaHash:Xe,combine:E.combine,mapUv:Re&&v(E.map.channel),aoMapUv:z&&v(E.aoMap.channel),lightMapUv:ve&&v(E.lightMap.channel),bumpMapUv:ce&&v(E.bumpMap.channel),normalMapUv:me&&v(E.normalMap.channel),displacementMapUv:ue&&v(E.displacementMap.channel),emissiveMapUv:ge&&v(E.emissiveMap.channel),metalnessMapUv:xe&&v(E.metalnessMap.channel),roughnessMapUv:Ce&&v(E.roughnessMap.channel),anisotropyMapUv:Ne&&v(E.anisotropyMap.channel),clearcoatMapUv:nt&&v(E.clearcoatMap.channel),clearcoatNormalMapUv:qe&&v(E.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ht&&v(E.clearcoatRoughnessMap.channel),iridescenceMapUv:He&&v(E.iridescenceMap.channel),iridescenceThicknessMapUv:$e&&v(E.iridescenceThicknessMap.channel),sheenColorMapUv:ne&&v(E.sheenColorMap.channel),sheenRoughnessMapUv:we&&v(E.sheenRoughnessMap.channel),specularMapUv:te&&v(E.specularMap.channel),specularColorMapUv:Ee&&v(E.specularColorMap.channel),specularIntensityMapUv:Ye&&v(E.specularIntensityMap.channel),transmissionMapUv:Se&&v(E.transmissionMap.channel),thicknessMapUv:ot&&v(E.thicknessMap.channel),alphaMapUv:ft&&v(E.alphaMap.channel),vertexTangents:!!N.attributes.tangent&&(me||Fe),vertexColors:E.vertexColors,vertexAlphas:E.vertexColors===!0&&!!N.attributes.color&&N.attributes.color.itemSize===4,pointsUvs:B.isPoints===!0&&!!N.attributes.uv&&(Re||ft),fog:!!H,useFog:E.fog===!0,fogExp2:!!H&&H.isFogExp2,flatShading:E.flatShading===!0,sizeAttenuation:E.sizeAttenuation===!0,logarithmicDepthBuffer:f,reverseDepthBuffer:fe,skinning:B.isSkinnedMesh===!0,morphTargets:N.morphAttributes.position!==void 0,morphNormals:N.morphAttributes.normal!==void 0,morphColors:N.morphAttributes.color!==void 0,morphTargetsCount:K,morphTextureStride:oe,numDirLights:C.directional.length,numPointLights:C.point.length,numSpotLights:C.spot.length,numSpotLightMaps:C.spotLightMap.length,numRectAreaLights:C.rectArea.length,numHemiLights:C.hemi.length,numDirLightShadows:C.directionalShadowMap.length,numPointLightShadows:C.pointShadowMap.length,numSpotLightShadows:C.spotShadowMap.length,numSpotLightShadowsWithMaps:C.numSpotLightShadowsWithMaps,numLightProbes:C.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:E.dithering,shadowMapEnabled:e.shadowMap.enabled&&k.length>0,shadowMapType:e.shadowMap.type,toneMapping:Ge,decodeVideoTexture:Re&&E.map.isVideoTexture===!0&&dn.getTransfer(E.map.colorSpace)===bn,decodeVideoTextureEmissive:ge&&E.emissiveMap.isVideoTexture===!0&&dn.getTransfer(E.emissiveMap.colorSpace)===bn,premultipliedAlpha:E.premultipliedAlpha,doubleSided:E.side===pi,flipSided:E.side===Zo,useDepthPacking:E.depthPacking>=0,depthPacking:E.depthPacking||0,index0AttributeName:E.index0AttributeName,extensionClipCullDistance:Et&&E.extensions.clipCullDistance===!0&&o.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(Et&&E.extensions.multiDraw===!0||De)&&o.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:o.has("KHR_parallel_shader_compile"),customProgramCacheKey:E.customProgramCacheKey()};return St.vertexUv1s=u.has(1),St.vertexUv2s=u.has(2),St.vertexUv3s=u.has(3),u.clear(),St}function g(E){const C=[];if(E.shaderID?C.push(E.shaderID):(C.push(E.customVertexShaderID),C.push(E.customFragmentShaderID)),E.defines!==void 0)for(const k in E.defines)C.push(k),C.push(E.defines[k]);return E.isRawShaderMaterial===!1&&(x(C,E),y(C,E),C.push(e.outputColorSpace)),C.push(E.customProgramCacheKey),C.join()}function x(E,C){E.push(C.precision),E.push(C.outputColorSpace),E.push(C.envMapMode),E.push(C.envMapCubeUVHeight),E.push(C.mapUv),E.push(C.alphaMapUv),E.push(C.lightMapUv),E.push(C.aoMapUv),E.push(C.bumpMapUv),E.push(C.normalMapUv),E.push(C.displacementMapUv),E.push(C.emissiveMapUv),E.push(C.metalnessMapUv),E.push(C.roughnessMapUv),E.push(C.anisotropyMapUv),E.push(C.clearcoatMapUv),E.push(C.clearcoatNormalMapUv),E.push(C.clearcoatRoughnessMapUv),E.push(C.iridescenceMapUv),E.push(C.iridescenceThicknessMapUv),E.push(C.sheenColorMapUv),E.push(C.sheenRoughnessMapUv),E.push(C.specularMapUv),E.push(C.specularColorMapUv),E.push(C.specularIntensityMapUv),E.push(C.transmissionMapUv),E.push(C.thicknessMapUv),E.push(C.combine),E.push(C.fogExp2),E.push(C.sizeAttenuation),E.push(C.morphTargetsCount),E.push(C.morphAttributeCount),E.push(C.numDirLights),E.push(C.numPointLights),E.push(C.numSpotLights),E.push(C.numSpotLightMaps),E.push(C.numHemiLights),E.push(C.numRectAreaLights),E.push(C.numDirLightShadows),E.push(C.numPointLightShadows),E.push(C.numSpotLightShadows),E.push(C.numSpotLightShadowsWithMaps),E.push(C.numLightProbes),E.push(C.shadowMapType),E.push(C.toneMapping),E.push(C.numClippingPlanes),E.push(C.numClipIntersection),E.push(C.depthPacking)}function y(E,C){a.disableAll(),C.supportsVertexTextures&&a.enable(0),C.instancing&&a.enable(1),C.instancingColor&&a.enable(2),C.instancingMorph&&a.enable(3),C.matcap&&a.enable(4),C.envMap&&a.enable(5),C.normalMapObjectSpace&&a.enable(6),C.normalMapTangentSpace&&a.enable(7),C.clearcoat&&a.enable(8),C.iridescence&&a.enable(9),C.alphaTest&&a.enable(10),C.vertexColors&&a.enable(11),C.vertexAlphas&&a.enable(12),C.vertexUv1s&&a.enable(13),C.vertexUv2s&&a.enable(14),C.vertexUv3s&&a.enable(15),C.vertexTangents&&a.enable(16),C.anisotropy&&a.enable(17),C.alphaHash&&a.enable(18),C.batching&&a.enable(19),C.dispersion&&a.enable(20),C.batchingColor&&a.enable(21),E.push(a.mask),a.disableAll(),C.fog&&a.enable(0),C.useFog&&a.enable(1),C.flatShading&&a.enable(2),C.logarithmicDepthBuffer&&a.enable(3),C.reverseDepthBuffer&&a.enable(4),C.skinning&&a.enable(5),C.morphTargets&&a.enable(6),C.morphNormals&&a.enable(7),C.morphColors&&a.enable(8),C.premultipliedAlpha&&a.enable(9),C.shadowMapEnabled&&a.enable(10),C.doubleSided&&a.enable(11),C.flipSided&&a.enable(12),C.useDepthPacking&&a.enable(13),C.dithering&&a.enable(14),C.transmission&&a.enable(15),C.sheen&&a.enable(16),C.opaque&&a.enable(17),C.pointsUvs&&a.enable(18),C.decodeVideoTexture&&a.enable(19),C.decodeVideoTextureEmissive&&a.enable(20),C.alphaToCoverage&&a.enable(21),E.push(a.mask)}function _(E){const C=m[E.type];let k;if(C){const R=di[C];k=tse.clone(R.uniforms)}else k=E.uniforms;return k}function w(E,C){let k;for(let R=0,B=d.length;R0?o.push(g):h.transparent===!0?r.push(g):n.push(g)}function l(f,p,h,m,v,b){const g=s(f,p,h,m,v,b);h.transmission>0?o.unshift(g):h.transparent===!0?r.unshift(g):n.unshift(g)}function u(f,p){n.length>1&&n.sort(f||bde),o.length>1&&o.sort(p||rC),r.length>1&&r.sort(p||rC)}function d(){for(let f=t,p=e.length;f=i.length?(s=new iC,i.push(s)):s=i[r],s}function n(){e=new WeakMap}return{get:t,dispose:n}}function _de(){const e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new ke,color:new un};break;case"SpotLight":n={position:new ke,direction:new ke,color:new un,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ke,color:new un,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ke,skyColor:new un,groundColor:new un};break;case"RectAreaLight":n={color:new un,position:new ke,halfWidth:new ke,halfHeight:new ke};break}return e[t.id]=n,n}}}function xde(){const e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case"DirectionalLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new mt};break;case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new mt};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new mt,shadowCameraNear:1,shadowCameraFar:1e3};break}return e[t.id]=n,n}}}let Sde=0;function wde(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Cde(e){const t=new _de,n=xde(),o={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let u=0;u<9;u++)o.probe.push(new ke);const r=new ke,i=new An,s=new An;function a(u){let d=0,f=0,p=0;for(let E=0;E<9;E++)o.probe[E].set(0,0,0);let h=0,m=0,v=0,b=0,g=0,x=0,y=0,_=0,w=0,S=0,M=0;u.sort(wde);for(let E=0,C=u.length;E0&&(e.has("OES_texture_float_linear")===!0?(o.rectAreaLTC1=wt.LTC_FLOAT_1,o.rectAreaLTC2=wt.LTC_FLOAT_2):(o.rectAreaLTC1=wt.LTC_HALF_1,o.rectAreaLTC2=wt.LTC_HALF_2)),o.ambient[0]=d,o.ambient[1]=f,o.ambient[2]=p;const T=o.hash;(T.directionalLength!==h||T.pointLength!==m||T.spotLength!==v||T.rectAreaLength!==b||T.hemiLength!==g||T.numDirectionalShadows!==x||T.numPointShadows!==y||T.numSpotShadows!==_||T.numSpotMaps!==w||T.numLightProbes!==M)&&(o.directional.length=h,o.spot.length=v,o.rectArea.length=b,o.point.length=m,o.hemi.length=g,o.directionalShadow.length=x,o.directionalShadowMap.length=x,o.pointShadow.length=y,o.pointShadowMap.length=y,o.spotShadow.length=_,o.spotShadowMap.length=_,o.directionalShadowMatrix.length=x,o.pointShadowMatrix.length=y,o.spotLightMatrix.length=_+w-S,o.spotLightMap.length=w,o.numSpotLightShadowsWithMaps=S,o.numLightProbes=M,T.directionalLength=h,T.pointLength=m,T.spotLength=v,T.rectAreaLength=b,T.hemiLength=g,T.numDirectionalShadows=x,T.numPointShadows=y,T.numSpotShadows=_,T.numSpotMaps=w,T.numLightProbes=M,o.version=Sde++)}function l(u,d){let f=0,p=0,h=0,m=0,v=0;const b=d.matrixWorldInverse;for(let g=0,x=u.length;g=s.length?(a=new sC(e),s.push(a)):a=s[i],a}function o(){t=new WeakMap}return{get:n,dispose:o}}const Mde=`void main() { gl_Position = vec4( position, 1.0 ); }`,Tde=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include void main() { const float samples = float( VSM_SAMPLES ); float mean = 0.0; float squared_mean = 0.0; float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 ); float uvStart = samples <= 1.0 ? 0.0 : - 1.0; for ( float i = 0.0; i < samples; i ++ ) { float uvOffset = uvStart + i * uvStride; #ifdef HORIZONTAL_PASS vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) ); mean += distribution.x; squared_mean += distribution.y * distribution.y + distribution.x * distribution.x; #else float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) ); mean += depth; squared_mean += depth * depth; #endif } mean = mean / samples; squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); }`;function Ade(e,t,n){let o=new Q1;const r=new mt,i=new mt,s=new Un,a=new Wse({depthPacking:Sie}),l=new Gse,u={},d=n.maxTextureSize,f={[ua]:Zo,[Zo]:ua,[pi]:pi},p=new ca({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new mt},radius:{value:4}},vertexShader:Mde,fragmentShader:Tde}),h=p.clone();h.defines.HORIZONTAL_PASS=1;const m=new uo;m.setAttribute("position",new Si(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new Yt(m,p),b=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=tR;let g=this.type;this.render=function(S,M,T){if(b.enabled===!1||b.autoUpdate===!1&&b.needsUpdate===!1||S.length===0)return;const E=e.getRenderTarget(),C=e.getActiveCubeFace(),k=e.getActiveMipmapLevel(),R=e.state;R.setBlending(Zs),R.buffers.color.setClear(1,1,1,1),R.buffers.depth.setTest(!0),R.setScissorTest(!1);const B=g!==qi&&this.type===qi,H=g===qi&&this.type!==qi;for(let N=0,P=S.length;Nd||r.y>d)&&(r.x>d&&(i.x=Math.floor(d/O.x),r.x=i.x*O.x,I.mapSize.x=i.x),r.y>d&&(i.y=Math.floor(d/O.y),r.y=i.y*O.y,I.mapSize.y=i.y)),I.map===null||B===!0||H===!0){const K=this.type!==qi?{minFilter:Zr,magFilter:Zr}:{};I.map!==null&&I.map.dispose(),I.map=new ul(r.x,r.y,K),I.map.texture.name=U.name+".shadowMap",I.camera.updateProjectionMatrix()}e.setRenderTarget(I.map),e.clear();const q=I.getViewportCount();for(let K=0;K0||M.map&&M.alphaTest>0||M.alphaToCoverage===!0){const R=C.uuid,B=M.uuid;let H=u[R];H===void 0&&(H={},u[R]=H);let N=H[B];N===void 0&&(N=C.clone(),H[B]=N,M.addEventListener("dispose",w)),C=N}if(C.visible=M.visible,C.wireframe=M.wireframe,E===qi?C.side=M.shadowSide!==null?M.shadowSide:M.side:C.side=M.shadowSide!==null?M.shadowSide:f[M.side],C.alphaMap=M.alphaMap,C.alphaTest=M.alphaToCoverage===!0?.5:M.alphaTest,C.map=M.map,C.clipShadows=M.clipShadows,C.clippingPlanes=M.clippingPlanes,C.clipIntersection=M.clipIntersection,C.displacementMap=M.displacementMap,C.displacementScale=M.displacementScale,C.displacementBias=M.displacementBias,C.wireframeLinewidth=M.wireframeLinewidth,C.linewidth=M.linewidth,T.isPointLight===!0&&C.isMeshDistanceMaterial===!0){const R=e.properties.get(C);R.light=T}return C}function _(S,M,T,E,C){if(S.visible===!1)return;if(S.layers.test(M.layers)&&(S.isMesh||S.isLine||S.isPoints)&&(S.castShadow||S.receiveShadow&&C===qi)&&(!S.frustumCulled||o.intersectsObject(S))){S.modelViewMatrix.multiplyMatrices(T.matrixWorldInverse,S.matrixWorld);const B=t.update(S),H=S.material;if(Array.isArray(H)){const N=B.groups;for(let P=0,U=N.length;P=1):I.indexOf("OpenGL ES")!==-1&&(U=parseFloat(/^OpenGL ES (\d)/.exec(I)[1]),P=U>=2);let O=null,q={};const K=e.getParameter(e.SCISSOR_BOX),oe=e.getParameter(e.VIEWPORT),X=new Un().fromArray(K),Y=new Un().fromArray(oe);function ie(Se,ot,Ze,ft){const lt=new Uint8Array(4),Xe=e.createTexture();e.bindTexture(Se,Xe),e.texParameteri(Se,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(Se,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let Et=0;Et"u"?!1:/OculusBrowser/g.test(navigator.userAgent),u=new mt,d=new WeakMap;let f;const p=new WeakMap;let h=!1;try{h=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function m(Z,$){return h?new OffscreenCanvas(Z,$):Dp("canvas")}function v(Z,$,he){let Me=1;const Be=Fe(Z);if((Be.width>he||Be.height>he)&&(Me=he/Math.max(Be.width,Be.height)),Me<1)if(typeof HTMLImageElement<"u"&&Z instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&Z instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&Z instanceof ImageBitmap||typeof VideoFrame<"u"&&Z instanceof VideoFrame){const Ne=Math.floor(Me*Be.width),nt=Math.floor(Me*Be.height);f===void 0&&(f=m(Ne,nt));const qe=$?m(Ne,nt):f;return qe.width=Ne,qe.height=nt,qe.getContext("2d").drawImage(Z,0,0,Ne,nt),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+Be.width+"x"+Be.height+") to ("+Ne+"x"+nt+")."),qe}else return"data"in Z&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+Be.width+"x"+Be.height+")."),Z;return Z}function b(Z){return Z.generateMipmaps}function g(Z){e.generateMipmap(Z)}function x(Z){return Z.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:Z.isWebGL3DRenderTarget?e.TEXTURE_3D:Z.isWebGLArrayRenderTarget||Z.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function y(Z,$,he,Me,Be=!1){if(Z!==null){if(e[Z]!==void 0)return e[Z];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+Z+"'")}let Ne=$;if($===e.RED&&(he===e.FLOAT&&(Ne=e.R32F),he===e.HALF_FLOAT&&(Ne=e.R16F),he===e.UNSIGNED_BYTE&&(Ne=e.R8)),$===e.RED_INTEGER&&(he===e.UNSIGNED_BYTE&&(Ne=e.R8UI),he===e.UNSIGNED_SHORT&&(Ne=e.R16UI),he===e.UNSIGNED_INT&&(Ne=e.R32UI),he===e.BYTE&&(Ne=e.R8I),he===e.SHORT&&(Ne=e.R16I),he===e.INT&&(Ne=e.R32I)),$===e.RG&&(he===e.FLOAT&&(Ne=e.RG32F),he===e.HALF_FLOAT&&(Ne=e.RG16F),he===e.UNSIGNED_BYTE&&(Ne=e.RG8)),$===e.RG_INTEGER&&(he===e.UNSIGNED_BYTE&&(Ne=e.RG8UI),he===e.UNSIGNED_SHORT&&(Ne=e.RG16UI),he===e.UNSIGNED_INT&&(Ne=e.RG32UI),he===e.BYTE&&(Ne=e.RG8I),he===e.SHORT&&(Ne=e.RG16I),he===e.INT&&(Ne=e.RG32I)),$===e.RGB_INTEGER&&(he===e.UNSIGNED_BYTE&&(Ne=e.RGB8UI),he===e.UNSIGNED_SHORT&&(Ne=e.RGB16UI),he===e.UNSIGNED_INT&&(Ne=e.RGB32UI),he===e.BYTE&&(Ne=e.RGB8I),he===e.SHORT&&(Ne=e.RGB16I),he===e.INT&&(Ne=e.RGB32I)),$===e.RGBA_INTEGER&&(he===e.UNSIGNED_BYTE&&(Ne=e.RGBA8UI),he===e.UNSIGNED_SHORT&&(Ne=e.RGBA16UI),he===e.UNSIGNED_INT&&(Ne=e.RGBA32UI),he===e.BYTE&&(Ne=e.RGBA8I),he===e.SHORT&&(Ne=e.RGBA16I),he===e.INT&&(Ne=e.RGBA32I)),$===e.RGB&&he===e.UNSIGNED_INT_5_9_9_9_REV&&(Ne=e.RGB9_E5),$===e.RGBA){const nt=Be?Rp:dn.getTransfer(Me);he===e.FLOAT&&(Ne=e.RGBA32F),he===e.HALF_FLOAT&&(Ne=e.RGBA16F),he===e.UNSIGNED_BYTE&&(Ne=nt===bn?e.SRGB8_ALPHA8:e.RGBA8),he===e.UNSIGNED_SHORT_4_4_4_4&&(Ne=e.RGBA4),he===e.UNSIGNED_SHORT_5_5_5_1&&(Ne=e.RGB5_A1)}return(Ne===e.R16F||Ne===e.R32F||Ne===e.RG16F||Ne===e.RG32F||Ne===e.RGBA16F||Ne===e.RGBA32F)&&t.get("EXT_color_buffer_float"),Ne}function _(Z,$){let he;return Z?$===null||$===al||$===Sd?he=e.DEPTH24_STENCIL8:$===Ji?he=e.DEPTH32F_STENCIL8:$===xd&&(he=e.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):$===null||$===al||$===Sd?he=e.DEPTH_COMPONENT24:$===Ji?he=e.DEPTH_COMPONENT32F:$===xd&&(he=e.DEPTH_COMPONENT16),he}function w(Z,$){return b(Z)===!0||Z.isFramebufferTexture&&Z.minFilter!==Zr&&Z.minFilter!==gi?Math.log2(Math.max($.width,$.height))+1:Z.mipmaps!==void 0&&Z.mipmaps.length>0?Z.mipmaps.length:Z.isCompressedTexture&&Array.isArray(Z.image)?$.mipmaps.length:1}function S(Z){const $=Z.target;$.removeEventListener("dispose",S),T($),$.isVideoTexture&&d.delete($)}function M(Z){const $=Z.target;$.removeEventListener("dispose",M),C($)}function T(Z){const $=o.get(Z);if($.__webglInit===void 0)return;const he=Z.source,Me=p.get(he);if(Me){const Be=Me[$.__cacheKey];Be.usedTimes--,Be.usedTimes===0&&E(Z),Object.keys(Me).length===0&&p.delete(he)}o.remove(Z)}function E(Z){const $=o.get(Z);e.deleteTexture($.__webglTexture);const he=Z.source,Me=p.get(he);delete Me[$.__cacheKey],s.memory.textures--}function C(Z){const $=o.get(Z);if(Z.depthTexture&&(Z.depthTexture.dispose(),o.remove(Z.depthTexture)),Z.isWebGLCubeRenderTarget)for(let Me=0;Me<6;Me++){if(Array.isArray($.__webglFramebuffer[Me]))for(let Be=0;Be<$.__webglFramebuffer[Me].length;Be++)e.deleteFramebuffer($.__webglFramebuffer[Me][Be]);else e.deleteFramebuffer($.__webglFramebuffer[Me]);$.__webglDepthbuffer&&e.deleteRenderbuffer($.__webglDepthbuffer[Me])}else{if(Array.isArray($.__webglFramebuffer))for(let Me=0;Me<$.__webglFramebuffer.length;Me++)e.deleteFramebuffer($.__webglFramebuffer[Me]);else e.deleteFramebuffer($.__webglFramebuffer);if($.__webglDepthbuffer&&e.deleteRenderbuffer($.__webglDepthbuffer),$.__webglMultisampledFramebuffer&&e.deleteFramebuffer($.__webglMultisampledFramebuffer),$.__webglColorRenderbuffer)for(let Me=0;Me<$.__webglColorRenderbuffer.length;Me++)$.__webglColorRenderbuffer[Me]&&e.deleteRenderbuffer($.__webglColorRenderbuffer[Me]);$.__webglDepthRenderbuffer&&e.deleteRenderbuffer($.__webglDepthRenderbuffer)}const he=Z.textures;for(let Me=0,Be=he.length;Me=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+Z+" texture units while this GPU supports only "+r.maxTextures),k+=1,Z}function H(Z){const $=[];return $.push(Z.wrapS),$.push(Z.wrapT),$.push(Z.wrapR||0),$.push(Z.magFilter),$.push(Z.minFilter),$.push(Z.anisotropy),$.push(Z.internalFormat),$.push(Z.format),$.push(Z.type),$.push(Z.generateMipmaps),$.push(Z.premultiplyAlpha),$.push(Z.flipY),$.push(Z.unpackAlignment),$.push(Z.colorSpace),$.join()}function N(Z,$){const he=o.get(Z);if(Z.isVideoTexture&&xe(Z),Z.isRenderTargetTexture===!1&&Z.version>0&&he.__version!==Z.version){const Me=Z.image;if(Me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(Me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{ae(he,Z,$);return}}n.bindTexture(e.TEXTURE_2D,he.__webglTexture,e.TEXTURE0+$)}function P(Z,$){const he=o.get(Z);if(Z.version>0&&he.__version!==Z.version){ae(he,Z,$);return}n.bindTexture(e.TEXTURE_2D_ARRAY,he.__webglTexture,e.TEXTURE0+$)}function U(Z,$){const he=o.get(Z);if(Z.version>0&&he.__version!==Z.version){ae(he,Z,$);return}n.bindTexture(e.TEXTURE_3D,he.__webglTexture,e.TEXTURE0+$)}function I(Z,$){const he=o.get(Z);if(Z.version>0&&he.__version!==Z.version){re(he,Z,$);return}n.bindTexture(e.TEXTURE_CUBE_MAP,he.__webglTexture,e.TEXTURE0+$)}const O={[Wg]:e.REPEAT,[Ha]:e.CLAMP_TO_EDGE,[Gg]:e.MIRRORED_REPEAT},q={[Zr]:e.NEAREST,[_ie]:e.NEAREST_MIPMAP_NEAREST,[Lf]:e.NEAREST_MIPMAP_LINEAR,[gi]:e.LINEAR,[Cm]:e.LINEAR_MIPMAP_NEAREST,[Wa]:e.LINEAR_MIPMAP_LINEAR},K={[Cie]:e.NEVER,[Rie]:e.ALWAYS,[Eie]:e.LESS,[hR]:e.LEQUAL,[Mie]:e.EQUAL,[kie]:e.GEQUAL,[Tie]:e.GREATER,[Aie]:e.NOTEQUAL};function oe(Z,$){if($.type===Ji&&t.has("OES_texture_float_linear")===!1&&($.magFilter===gi||$.magFilter===Cm||$.magFilter===Lf||$.magFilter===Wa||$.minFilter===gi||$.minFilter===Cm||$.minFilter===Lf||$.minFilter===Wa)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(Z,e.TEXTURE_WRAP_S,O[$.wrapS]),e.texParameteri(Z,e.TEXTURE_WRAP_T,O[$.wrapT]),(Z===e.TEXTURE_3D||Z===e.TEXTURE_2D_ARRAY)&&e.texParameteri(Z,e.TEXTURE_WRAP_R,O[$.wrapR]),e.texParameteri(Z,e.TEXTURE_MAG_FILTER,q[$.magFilter]),e.texParameteri(Z,e.TEXTURE_MIN_FILTER,q[$.minFilter]),$.compareFunction&&(e.texParameteri(Z,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(Z,e.TEXTURE_COMPARE_FUNC,K[$.compareFunction])),t.has("EXT_texture_filter_anisotropic")===!0){if($.magFilter===Zr||$.minFilter!==Lf&&$.minFilter!==Wa||$.type===Ji&&t.has("OES_texture_float_linear")===!1)return;if($.anisotropy>1||o.get($).__currentAnisotropy){const he=t.get("EXT_texture_filter_anisotropic");e.texParameterf(Z,he.TEXTURE_MAX_ANISOTROPY_EXT,Math.min($.anisotropy,r.getMaxAnisotropy())),o.get($).__currentAnisotropy=$.anisotropy}}}function X(Z,$){let he=!1;Z.__webglInit===void 0&&(Z.__webglInit=!0,$.addEventListener("dispose",S));const Me=$.source;let Be=p.get(Me);Be===void 0&&(Be={},p.set(Me,Be));const Ne=H($);if(Ne!==Z.__cacheKey){Be[Ne]===void 0&&(Be[Ne]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,he=!0),Be[Ne].usedTimes++;const nt=Be[Z.__cacheKey];nt!==void 0&&(Be[Z.__cacheKey].usedTimes--,nt.usedTimes===0&&E($)),Z.__cacheKey=Ne,Z.__webglTexture=Be[Ne].texture}return he}function Y(Z,$,he){return Math.floor(Math.floor(Z/he)/$)}function ie(Z,$,he,Me){const Ne=Z.updateRanges;if(Ne.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,$.width,$.height,he,Me,$.data);else{Ne.sort(($e,ne)=>$e.start-ne.start);let nt=0;for(let $e=1;$e0){Se&&ot&&n.texStorage2D(e.TEXTURE_2D,ft,te,Ye[0].width,Ye[0].height);for(let lt=0,Xe=Ye.length;lt0){const Et=Ow(Ee.width,Ee.height,$.format,$.type);for(const Ge of $.layerUpdates){const St=Ee.data.subarray(Ge*Et/Ee.data.BYTES_PER_ELEMENT,(Ge+1)*Et/Ee.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,lt,0,0,Ge,Ee.width,Ee.height,1,ne,St)}$.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,lt,0,0,0,Ee.width,Ee.height,$e.depth,ne,Ee.data)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,lt,te,Ee.width,Ee.height,$e.depth,0,Ee.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else Se?Ze&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,lt,0,0,0,Ee.width,Ee.height,$e.depth,ne,we,Ee.data):n.texImage3D(e.TEXTURE_2D_ARRAY,lt,te,Ee.width,Ee.height,$e.depth,0,ne,we,Ee.data)}else{Se&&ot&&n.texStorage2D(e.TEXTURE_2D,ft,te,Ye[0].width,Ye[0].height);for(let lt=0,Xe=Ye.length;lt0){const lt=Ow($e.width,$e.height,$.format,$.type);for(const Xe of $.layerUpdates){const Et=$e.data.subarray(Xe*lt/$e.data.BYTES_PER_ELEMENT,(Xe+1)*lt/$e.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,Xe,$e.width,$e.height,1,ne,we,Et)}$.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,$e.width,$e.height,$e.depth,ne,we,$e.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,te,$e.width,$e.height,$e.depth,0,ne,we,$e.data);else if($.isData3DTexture)Se?(ot&&n.texStorage3D(e.TEXTURE_3D,ft,te,$e.width,$e.height,$e.depth),Ze&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,$e.width,$e.height,$e.depth,ne,we,$e.data)):n.texImage3D(e.TEXTURE_3D,0,te,$e.width,$e.height,$e.depth,0,ne,we,$e.data);else if($.isFramebufferTexture){if(ot)if(Se)n.texStorage2D(e.TEXTURE_2D,ft,te,$e.width,$e.height);else{let lt=$e.width,Xe=$e.height;for(let Et=0;Et>=1,Xe>>=1}}else if(Ye.length>0){if(Se&&ot){const lt=Fe(Ye[0]);n.texStorage2D(e.TEXTURE_2D,ft,te,lt.width,lt.height)}for(let lt=0,Xe=Ye.length;lt0&&ft++;const Xe=Fe(ne[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,ft,Ye,Xe.width,Xe.height)}for(let Xe=0;Xe<6;Xe++)if($e){Se?Ze&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+Xe,0,0,0,ne[Xe].width,ne[Xe].height,te,Ee,ne[Xe].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+Xe,0,Ye,ne[Xe].width,ne[Xe].height,0,te,Ee,ne[Xe].data);for(let Et=0;Et>Ne),we=Math.max(1,$.height>>Ne);Be===e.TEXTURE_3D||Be===e.TEXTURE_2D_ARRAY?n.texImage3D(Be,Ne,ht,ne,we,$.depth,0,nt,qe,null):n.texImage2D(Be,Ne,ht,ne,we,0,nt,qe,null)}n.bindFramebuffer(e.FRAMEBUFFER,Z),ge($)?a.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,Me,Be,$e.__webglTexture,0,ue($)):(Be===e.TEXTURE_2D||Be>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&Be<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,Me,Be,$e.__webglTexture,Ne),n.bindFramebuffer(e.FRAMEBUFFER,null)}function be(Z,$,he){if(e.bindRenderbuffer(e.RENDERBUFFER,Z),$.depthBuffer){const Me=$.depthTexture,Be=Me&&Me.isDepthTexture?Me.type:null,Ne=_($.stencilBuffer,Be),nt=$.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,qe=ue($);ge($)?a.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,qe,Ne,$.width,$.height):he?e.renderbufferStorageMultisample(e.RENDERBUFFER,qe,Ne,$.width,$.height):e.renderbufferStorage(e.RENDERBUFFER,Ne,$.width,$.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,nt,e.RENDERBUFFER,Z)}else{const Me=$.textures;for(let Be=0;Be{delete $.__boundDepthTexture,delete $.__depthDisposeCallback,Me.removeEventListener("dispose",Be)};Me.addEventListener("dispose",Be),$.__depthDisposeCallback=Be}$.__boundDepthTexture=Me}if(Z.depthTexture&&!$.__autoAllocateDepthBuffer){if(he)throw new Error("target.depthTexture not supported in Cube render targets");const Me=Z.texture.mipmaps;Me&&Me.length>0?De($.__webglFramebuffer[0],Z):De($.__webglFramebuffer,Z)}else if(he){$.__webglDepthbuffer=[];for(let Me=0;Me<6;Me++)if(n.bindFramebuffer(e.FRAMEBUFFER,$.__webglFramebuffer[Me]),$.__webglDepthbuffer[Me]===void 0)$.__webglDepthbuffer[Me]=e.createRenderbuffer(),be($.__webglDepthbuffer[Me],Z,!1);else{const Be=Z.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,Ne=$.__webglDepthbuffer[Me];e.bindRenderbuffer(e.RENDERBUFFER,Ne),e.framebufferRenderbuffer(e.FRAMEBUFFER,Be,e.RENDERBUFFER,Ne)}}else{const Me=Z.texture.mipmaps;if(Me&&Me.length>0?n.bindFramebuffer(e.FRAMEBUFFER,$.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,$.__webglFramebuffer),$.__webglDepthbuffer===void 0)$.__webglDepthbuffer=e.createRenderbuffer(),be($.__webglDepthbuffer,Z,!1);else{const Be=Z.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,Ne=$.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,Ne),e.framebufferRenderbuffer(e.FRAMEBUFFER,Be,e.RENDERBUFFER,Ne)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function V(Z,$,he){const Me=o.get(Z);$!==void 0&&fe(Me.__webglFramebuffer,Z,Z.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),he!==void 0&&Re(Z)}function ee(Z){const $=Z.texture,he=o.get(Z),Me=o.get($);Z.addEventListener("dispose",M);const Be=Z.textures,Ne=Z.isWebGLCubeRenderTarget===!0,nt=Be.length>1;if(nt||(Me.__webglTexture===void 0&&(Me.__webglTexture=e.createTexture()),Me.__version=$.version,s.memory.textures++),Ne){he.__webglFramebuffer=[];for(let qe=0;qe<6;qe++)if($.mipmaps&&$.mipmaps.length>0){he.__webglFramebuffer[qe]=[];for(let ht=0;ht<$.mipmaps.length;ht++)he.__webglFramebuffer[qe][ht]=e.createFramebuffer()}else he.__webglFramebuffer[qe]=e.createFramebuffer()}else{if($.mipmaps&&$.mipmaps.length>0){he.__webglFramebuffer=[];for(let qe=0;qe<$.mipmaps.length;qe++)he.__webglFramebuffer[qe]=e.createFramebuffer()}else he.__webglFramebuffer=e.createFramebuffer();if(nt)for(let qe=0,ht=Be.length;qe0&&ge(Z)===!1){he.__webglMultisampledFramebuffer=e.createFramebuffer(),he.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,he.__webglMultisampledFramebuffer);for(let qe=0;qe0)for(let ht=0;ht<$.mipmaps.length;ht++)fe(he.__webglFramebuffer[qe][ht],Z,$,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+qe,ht);else fe(he.__webglFramebuffer[qe],Z,$,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+qe,0);b($)&&g(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(nt){for(let qe=0,ht=Be.length;qe0)for(let ht=0;ht<$.mipmaps.length;ht++)fe(he.__webglFramebuffer[ht],Z,$,e.COLOR_ATTACHMENT0,qe,ht);else fe(he.__webglFramebuffer,Z,$,e.COLOR_ATTACHMENT0,qe,0);b($)&&g(qe),n.unbindTexture()}Z.depthBuffer&&Re(Z)}function z(Z){const $=Z.textures;for(let he=0,Me=$.length;he0){if(ge(Z)===!1){const $=Z.textures,he=Z.width,Me=Z.height;let Be=e.COLOR_BUFFER_BIT;const Ne=Z.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,nt=o.get(Z),qe=$.length>1;if(qe)for(let He=0;He<$.length;He++)n.bindFramebuffer(e.FRAMEBUFFER,nt.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+He,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,nt.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+He,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,nt.__webglMultisampledFramebuffer);const ht=Z.texture.mipmaps;ht&&ht.length>0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,nt.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,nt.__webglFramebuffer);for(let He=0;He<$.length;He++){if(Z.resolveDepthBuffer&&(Z.depthBuffer&&(Be|=e.DEPTH_BUFFER_BIT),Z.stencilBuffer&&Z.resolveStencilBuffer&&(Be|=e.STENCIL_BUFFER_BIT)),qe){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,nt.__webglColorRenderbuffer[He]);const $e=o.get($[He]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,$e,0)}e.blitFramebuffer(0,0,he,Me,0,0,he,Me,Be,e.NEAREST),l===!0&&(ve.length=0,ce.length=0,ve.push(e.COLOR_ATTACHMENT0+He),Z.depthBuffer&&Z.resolveDepthBuffer===!1&&(ve.push(Ne),ce.push(Ne),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,ce)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,ve))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),qe)for(let He=0;He<$.length;He++){n.bindFramebuffer(e.FRAMEBUFFER,nt.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+He,e.RENDERBUFFER,nt.__webglColorRenderbuffer[He]);const $e=o.get($[He]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,nt.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+He,e.TEXTURE_2D,$e,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,nt.__webglMultisampledFramebuffer)}else if(Z.depthBuffer&&Z.resolveDepthBuffer===!1&&l){const $=Z.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[$])}}}function ue(Z){return Math.min(r.maxSamples,Z.samples)}function ge(Z){const $=o.get(Z);return Z.samples>0&&t.has("WEBGL_multisampled_render_to_texture")===!0&&$.__useRenderToTexture!==!1}function xe(Z){const $=s.render.frame;d.get(Z)!==$&&(d.set(Z,$),Z.update())}function Ce(Z,$){const he=Z.colorSpace,Me=Z.format,Be=Z.type;return Z.isCompressedTexture===!0||Z.isVideoTexture===!0||he!==Ou&&he!==Vs&&(dn.getTransfer(he)===bn?(Me!==Yr||Be!==ki)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",he)),$}function Fe(Z){return typeof HTMLImageElement<"u"&&Z instanceof HTMLImageElement?(u.width=Z.naturalWidth||Z.width,u.height=Z.naturalHeight||Z.height):typeof VideoFrame<"u"&&Z instanceof VideoFrame?(u.width=Z.displayWidth,u.height=Z.displayHeight):(u.width=Z.width,u.height=Z.height),u}this.allocateTextureUnit=B,this.resetTextureUnits=R,this.setTexture2D=N,this.setTexture2DArray=P,this.setTexture3D=U,this.setTextureCube=I,this.rebindTextures=V,this.setupRenderTarget=ee,this.updateRenderTargetMipmap=z,this.updateMultisampleRenderTarget=me,this.setupDepthRenderbuffer=Re,this.setupFrameBufferTexture=fe,this.useMultisampledRTT=ge}function Dde(e,t){function n(o,r=Vs){let i;const s=dn.getTransfer(r);if(o===ki)return e.UNSIGNED_BYTE;if(o===G1)return e.UNSIGNED_SHORT_4_4_4_4;if(o===K1)return e.UNSIGNED_SHORT_5_5_5_1;if(o===sR)return e.UNSIGNED_INT_5_9_9_9_REV;if(o===rR)return e.BYTE;if(o===iR)return e.SHORT;if(o===xd)return e.UNSIGNED_SHORT;if(o===W1)return e.INT;if(o===al)return e.UNSIGNED_INT;if(o===Ji)return e.FLOAT;if(o===nf)return e.HALF_FLOAT;if(o===aR)return e.ALPHA;if(o===lR)return e.RGB;if(o===Yr)return e.RGBA;if(o===wd)return e.DEPTH_COMPONENT;if(o===Cd)return e.DEPTH_STENCIL;if(o===uR)return e.RED;if(o===q1)return e.RED_INTEGER;if(o===cR)return e.RG;if(o===j1)return e.RG_INTEGER;if(o===Y1)return e.RGBA_INTEGER;if(o===zh||o===Vh||o===Hh||o===Wh)if(s===bn)if(i=t.get("WEBGL_compressed_texture_s3tc_srgb"),i!==null){if(o===zh)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(o===Vh)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(o===Hh)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(o===Wh)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(i=t.get("WEBGL_compressed_texture_s3tc"),i!==null){if(o===zh)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(o===Vh)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(o===Hh)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(o===Wh)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(o===Kg||o===qg||o===jg||o===Yg)if(i=t.get("WEBGL_compressed_texture_pvrtc"),i!==null){if(o===Kg)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(o===qg)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(o===jg)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(o===Yg)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(o===Xg||o===Zg||o===Jg)if(i=t.get("WEBGL_compressed_texture_etc"),i!==null){if(o===Xg||o===Zg)return s===bn?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(o===Jg)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(o===Qg||o===eb||o===tb||o===nb||o===ob||o===rb||o===ib||o===sb||o===ab||o===lb||o===ub||o===cb||o===db||o===fb)if(i=t.get("WEBGL_compressed_texture_astc"),i!==null){if(o===Qg)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(o===eb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(o===tb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(o===nb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(o===ob)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(o===rb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(o===ib)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(o===sb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(o===ab)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(o===lb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(o===ub)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(o===cb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(o===db)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(o===fb)return s===bn?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(o===Gh||o===hb||o===pb)if(i=t.get("EXT_texture_compression_bptc"),i!==null){if(o===Gh)return s===bn?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(o===hb)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(o===pb)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(o===dR||o===mb||o===vb||o===gb)if(i=t.get("EXT_texture_compression_rgtc"),i!==null){if(o===Gh)return i.COMPRESSED_RED_RGTC1_EXT;if(o===mb)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(o===vb)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(o===gb)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return o===Sd?e.UNSIGNED_INT_24_8:e[o]!==void 0?e[o]:null}return{convert:n}}const Ide=` void main() { gl_Position = vec4( position, 1.0 ); }`,Lde=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; void main() { vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight ); if ( coord.x >= 1.0 ) { gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r; } else { gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r; } }`;class Nde{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(t,n,o){if(this.texture===null){const r=new Jo,i=t.properties.get(r);i.__webglTexture=n.texture,(n.depthNear!==o.depthNear||n.depthFar!==o.depthFar)&&(this.depthNear=n.depthNear,this.depthFar=n.depthFar),this.texture=r}}getMesh(t){if(this.texture!==null&&this.mesh===null){const n=t.cameras[0].viewport,o=new ca({vertexShader:Ide,fragmentShader:Lde,uniforms:{depthColor:{value:this.texture},depthWidth:{value:n.z},depthHeight:{value:n.w}}});this.mesh=new Yt(new $n(20,20),o)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Ode extends ml{constructor(t,n){super();const o=this;let r=null,i=1,s=null,a="local-floor",l=1,u=null,d=null,f=null,p=null,h=null,m=null;const v=new Nde,b=n.getContextAttributes();let g=null,x=null;const y=[],_=[],w=new mt;let S=null;const M=new Mr;M.viewport=new Un;const T=new Mr;T.viewport=new Un;const E=[M,T],C=new eae;let k=null,R=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(Y){let ie=y[Y];return ie===void 0&&(ie=new Km,y[Y]=ie),ie.getTargetRaySpace()},this.getControllerGrip=function(Y){let ie=y[Y];return ie===void 0&&(ie=new Km,y[Y]=ie),ie.getGripSpace()},this.getHand=function(Y){let ie=y[Y];return ie===void 0&&(ie=new Km,y[Y]=ie),ie.getHandSpace()};function B(Y){const ie=_.indexOf(Y.inputSource);if(ie===-1)return;const ae=y[ie];ae!==void 0&&(ae.update(Y.inputSource,Y.frame,u||s),ae.dispatchEvent({type:Y.type,data:Y.inputSource}))}function H(){r.removeEventListener("select",B),r.removeEventListener("selectstart",B),r.removeEventListener("selectend",B),r.removeEventListener("squeeze",B),r.removeEventListener("squeezestart",B),r.removeEventListener("squeezeend",B),r.removeEventListener("end",H),r.removeEventListener("inputsourceschange",N);for(let Y=0;Y=0&&(_[re]=null,y[re].disconnect(ae))}for(let ie=0;ie=_.length){_.push(ae),re=be;break}else if(_[be]===null){_[be]=ae,re=be;break}if(re===-1)break}const fe=y[re];fe&&fe.connect(ae)}}const P=new ke,U=new ke;function I(Y,ie,ae){P.setFromMatrixPosition(ie.matrixWorld),U.setFromMatrixPosition(ae.matrixWorld);const re=P.distanceTo(U),fe=ie.projectionMatrix.elements,be=ae.projectionMatrix.elements,De=fe[14]/(fe[10]-1),Re=fe[14]/(fe[10]+1),V=(fe[9]+1)/fe[5],ee=(fe[9]-1)/fe[5],z=(fe[8]-1)/fe[0],ve=(be[8]+1)/be[0],ce=De*z,me=De*ve,ue=re/(-z+ve),ge=ue*-z;if(ie.matrixWorld.decompose(Y.position,Y.quaternion,Y.scale),Y.translateX(ge),Y.translateZ(ue),Y.matrixWorld.compose(Y.position,Y.quaternion,Y.scale),Y.matrixWorldInverse.copy(Y.matrixWorld).invert(),fe[10]===-1)Y.projectionMatrix.copy(ie.projectionMatrix),Y.projectionMatrixInverse.copy(ie.projectionMatrixInverse);else{const xe=De+ue,Ce=Re+ue,Fe=ce-ge,Z=me+(re-ge),$=V*Re/Ce*xe,he=ee*Re/Ce*xe;Y.projectionMatrix.makePerspective(Fe,Z,$,he,xe,Ce),Y.projectionMatrixInverse.copy(Y.projectionMatrix).invert()}}function O(Y,ie){ie===null?Y.matrixWorld.copy(Y.matrix):Y.matrixWorld.multiplyMatrices(ie.matrixWorld,Y.matrix),Y.matrixWorldInverse.copy(Y.matrixWorld).invert()}this.updateCamera=function(Y){if(r===null)return;let ie=Y.near,ae=Y.far;v.texture!==null&&(v.depthNear>0&&(ie=v.depthNear),v.depthFar>0&&(ae=v.depthFar)),C.near=T.near=M.near=ie,C.far=T.far=M.far=ae,(k!==C.near||R!==C.far)&&(r.updateRenderState({depthNear:C.near,depthFar:C.far}),k=C.near,R=C.far),M.layers.mask=Y.layers.mask|2,T.layers.mask=Y.layers.mask|4,C.layers.mask=M.layers.mask|T.layers.mask;const re=Y.parent,fe=C.cameras;O(C,re);for(let be=0;be0&&(b.alphaTest.value=g.alphaTest);const x=t.get(g),y=x.envMap,_=x.envMapRotation;y&&(b.envMap.value=y,Aa.copy(_),Aa.x*=-1,Aa.y*=-1,Aa.z*=-1,y.isCubeTexture&&y.isRenderTargetTexture===!1&&(Aa.y*=-1,Aa.z*=-1),b.envMapRotation.value.setFromMatrix4(Fde.makeRotationFromEuler(Aa)),b.flipEnvMap.value=y.isCubeTexture&&y.isRenderTargetTexture===!1?-1:1,b.reflectivity.value=g.reflectivity,b.ior.value=g.ior,b.refractionRatio.value=g.refractionRatio),g.lightMap&&(b.lightMap.value=g.lightMap,b.lightMapIntensity.value=g.lightMapIntensity,n(g.lightMap,b.lightMapTransform)),g.aoMap&&(b.aoMap.value=g.aoMap,b.aoMapIntensity.value=g.aoMapIntensity,n(g.aoMap,b.aoMapTransform))}function s(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,g.map&&(b.map.value=g.map,n(g.map,b.mapTransform))}function a(b,g){b.dashSize.value=g.dashSize,b.totalSize.value=g.dashSize+g.gapSize,b.scale.value=g.scale}function l(b,g,x,y){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.size.value=g.size*x,b.scale.value=y*.5,g.map&&(b.map.value=g.map,n(g.map,b.uvTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,n(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function u(b,g){b.diffuse.value.copy(g.color),b.opacity.value=g.opacity,b.rotation.value=g.rotation,g.map&&(b.map.value=g.map,n(g.map,b.mapTransform)),g.alphaMap&&(b.alphaMap.value=g.alphaMap,n(g.alphaMap,b.alphaMapTransform)),g.alphaTest>0&&(b.alphaTest.value=g.alphaTest)}function d(b,g){b.specular.value.copy(g.specular),b.shininess.value=Math.max(g.shininess,1e-4)}function f(b,g){g.gradientMap&&(b.gradientMap.value=g.gradientMap)}function p(b,g){b.metalness.value=g.metalness,g.metalnessMap&&(b.metalnessMap.value=g.metalnessMap,n(g.metalnessMap,b.metalnessMapTransform)),b.roughness.value=g.roughness,g.roughnessMap&&(b.roughnessMap.value=g.roughnessMap,n(g.roughnessMap,b.roughnessMapTransform)),g.envMap&&(b.envMapIntensity.value=g.envMapIntensity)}function h(b,g,x){b.ior.value=g.ior,g.sheen>0&&(b.sheenColor.value.copy(g.sheenColor).multiplyScalar(g.sheen),b.sheenRoughness.value=g.sheenRoughness,g.sheenColorMap&&(b.sheenColorMap.value=g.sheenColorMap,n(g.sheenColorMap,b.sheenColorMapTransform)),g.sheenRoughnessMap&&(b.sheenRoughnessMap.value=g.sheenRoughnessMap,n(g.sheenRoughnessMap,b.sheenRoughnessMapTransform))),g.clearcoat>0&&(b.clearcoat.value=g.clearcoat,b.clearcoatRoughness.value=g.clearcoatRoughness,g.clearcoatMap&&(b.clearcoatMap.value=g.clearcoatMap,n(g.clearcoatMap,b.clearcoatMapTransform)),g.clearcoatRoughnessMap&&(b.clearcoatRoughnessMap.value=g.clearcoatRoughnessMap,n(g.clearcoatRoughnessMap,b.clearcoatRoughnessMapTransform)),g.clearcoatNormalMap&&(b.clearcoatNormalMap.value=g.clearcoatNormalMap,n(g.clearcoatNormalMap,b.clearcoatNormalMapTransform),b.clearcoatNormalScale.value.copy(g.clearcoatNormalScale),g.side===Zo&&b.clearcoatNormalScale.value.negate())),g.dispersion>0&&(b.dispersion.value=g.dispersion),g.iridescence>0&&(b.iridescence.value=g.iridescence,b.iridescenceIOR.value=g.iridescenceIOR,b.iridescenceThicknessMinimum.value=g.iridescenceThicknessRange[0],b.iridescenceThicknessMaximum.value=g.iridescenceThicknessRange[1],g.iridescenceMap&&(b.iridescenceMap.value=g.iridescenceMap,n(g.iridescenceMap,b.iridescenceMapTransform)),g.iridescenceThicknessMap&&(b.iridescenceThicknessMap.value=g.iridescenceThicknessMap,n(g.iridescenceThicknessMap,b.iridescenceThicknessMapTransform))),g.transmission>0&&(b.transmission.value=g.transmission,b.transmissionSamplerMap.value=x.texture,b.transmissionSamplerSize.value.set(x.width,x.height),g.transmissionMap&&(b.transmissionMap.value=g.transmissionMap,n(g.transmissionMap,b.transmissionMapTransform)),b.thickness.value=g.thickness,g.thicknessMap&&(b.thicknessMap.value=g.thicknessMap,n(g.thicknessMap,b.thicknessMapTransform)),b.attenuationDistance.value=g.attenuationDistance,b.attenuationColor.value.copy(g.attenuationColor)),g.anisotropy>0&&(b.anisotropyVector.value.set(g.anisotropy*Math.cos(g.anisotropyRotation),g.anisotropy*Math.sin(g.anisotropyRotation)),g.anisotropyMap&&(b.anisotropyMap.value=g.anisotropyMap,n(g.anisotropyMap,b.anisotropyMapTransform))),b.specularIntensity.value=g.specularIntensity,b.specularColor.value.copy(g.specularColor),g.specularColorMap&&(b.specularColorMap.value=g.specularColorMap,n(g.specularColorMap,b.specularColorMapTransform)),g.specularIntensityMap&&(b.specularIntensityMap.value=g.specularIntensityMap,n(g.specularIntensityMap,b.specularIntensityMapTransform))}function m(b,g){g.matcap&&(b.matcap.value=g.matcap)}function v(b,g){const x=t.get(g).light;b.referencePosition.value.setFromMatrixPosition(x.matrixWorld),b.nearDistance.value=x.shadow.camera.near,b.farDistance.value=x.shadow.camera.far}return{refreshFogUniforms:o,refreshMaterialUniforms:r}}function $de(e,t,n,o){let r={},i={},s=[];const a=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(x,y){const _=y.program;o.uniformBlockBinding(x,_)}function u(x,y){let _=r[x.id];_===void 0&&(m(x),_=d(x),r[x.id]=_,x.addEventListener("dispose",b));const w=y.program;o.updateUBOMapping(x,w);const S=t.render.frame;i[x.id]!==S&&(p(x),i[x.id]=S)}function d(x){const y=f();x.__bindingPointIndex=y;const _=e.createBuffer(),w=x.__size,S=x.usage;return e.bindBuffer(e.UNIFORM_BUFFER,_),e.bufferData(e.UNIFORM_BUFFER,w,S),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,y,_),_}function f(){for(let x=0;x0&&(_+=w-S),x.__size=_,x.__cache={},this}function v(x){const y={boundary:0,storage:0};return typeof x=="number"||typeof x=="boolean"?(y.boundary=4,y.storage=4):x.isVector2?(y.boundary=8,y.storage=8):x.isVector3||x.isColor?(y.boundary=16,y.storage=12):x.isVector4?(y.boundary=16,y.storage=16):x.isMatrix3?(y.boundary=48,y.storage=48):x.isMatrix4?(y.boundary=64,y.storage=64):x.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",x),y}function b(x){const y=x.target;y.removeEventListener("dispose",b);const _=s.indexOf(y.__bindingPointIndex);s.splice(_,1),e.deleteBuffer(r[y.id]),delete r[y.id],delete i[y.id]}function g(){for(const x in r)e.deleteBuffer(r[x]);s=[],r={},i={}}return{bind:l,update:u,dispose:g}}class Ude{constructor(t={}){const{canvas:n=Iie(),context:o=null,depth:r=!0,stencil:i=!1,alpha:s=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:d="default",failIfMajorPerformanceCaveat:f=!1,reverseDepthBuffer:p=!1}=t;this.isWebGLRenderer=!0;let h;if(o!==null){if(typeof WebGLRenderingContext<"u"&&o instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");h=o.getContextAttributes().alpha}else h=s;const m=new Uint32Array(4),v=new Int32Array(4);let b=null,g=null;const x=[],y=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=Js,this.toneMappingExposure=1,this.transmissionResolutionScale=1;const _=this;let w=!1;this._outputColorSpace=Er;let S=0,M=0,T=null,E=-1,C=null;const k=new Un,R=new Un;let B=null;const H=new un(0);let N=0,P=n.width,U=n.height,I=1,O=null,q=null;const K=new Un(0,0,P,U),oe=new Un(0,0,P,U);let X=!1;const Y=new Q1;let ie=!1,ae=!1;const re=new An,fe=new An,be=new ke,De=new Un,Re={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let V=!1;function ee(){return T===null?I:1}let z=o;function ve(W,ye){return n.getContext(W,ye)}try{const W={alpha:!0,depth:r,stencil:i,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:d,failIfMajorPerformanceCaveat:f};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${H1}`),n.addEventListener("webglcontextlost",ft,!1),n.addEventListener("webglcontextrestored",lt,!1),n.addEventListener("webglcontextcreationerror",Xe,!1),z===null){const ye="webgl2";if(z=ve(ye,W),z===null)throw ve(ye)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(W){throw console.error("THREE.WebGLRenderer: "+W.message),W}let ce,me,ue,ge,xe,Ce,Fe,Z,$,he,Me,Be,Ne,nt,qe,ht,He,$e,ne,we,te,Ee,Ye,Se;function ot(){ce=new Xue(z),ce.init(),Ee=new Dde(z,ce),me=new Hue(z,ce,t,Ee),ue=new Rde(z,ce),me.reverseDepthBuffer&&p&&ue.buffers.depth.setReversed(!0),ge=new Que(z),xe=new gde,Ce=new Pde(z,ce,ue,xe,me,Ee,ge),Fe=new Gue(_),Z=new Yue(_),$=new iae(z),Ye=new zue(z,$),he=new Zue(z,$,ge,Ye),Me=new tce(z,he,$,ge),ne=new ece(z,me,Ce),ht=new Wue(xe),Be=new vde(_,Fe,Z,ce,me,Ye,ht),Ne=new Bde(_,xe),nt=new yde,qe=new Ede(ce),$e=new Uue(_,Fe,Z,ue,Me,h,l),He=new Ade(_,Me,me),Se=new $de(z,ge,me,ue),we=new Vue(z,ce,ge),te=new Jue(z,ce,ge),ge.programs=Be.programs,_.capabilities=me,_.extensions=ce,_.properties=xe,_.renderLists=nt,_.shadowMap=He,_.state=ue,_.info=ge}ot();const Ze=new Ode(_,z);this.xr=Ze,this.getContext=function(){return z},this.getContextAttributes=function(){return z.getContextAttributes()},this.forceContextLoss=function(){const W=ce.get("WEBGL_lose_context");W&&W.loseContext()},this.forceContextRestore=function(){const W=ce.get("WEBGL_lose_context");W&&W.restoreContext()},this.getPixelRatio=function(){return I},this.setPixelRatio=function(W){W!==void 0&&(I=W,this.setSize(P,U,!1))},this.getSize=function(W){return W.set(P,U)},this.setSize=function(W,ye,Ae=!0){if(Ze.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}P=W,U=ye,n.width=Math.floor(W*I),n.height=Math.floor(ye*I),Ae===!0&&(n.style.width=W+"px",n.style.height=ye+"px"),this.setViewport(0,0,W,ye)},this.getDrawingBufferSize=function(W){return W.set(P*I,U*I).floor()},this.setDrawingBufferSize=function(W,ye,Ae){P=W,U=ye,I=Ae,n.width=Math.floor(W*Ae),n.height=Math.floor(ye*Ae),this.setViewport(0,0,W,ye)},this.getCurrentViewport=function(W){return W.copy(k)},this.getViewport=function(W){return W.copy(K)},this.setViewport=function(W,ye,Ae,Le){W.isVector4?K.set(W.x,W.y,W.z,W.w):K.set(W,ye,Ae,Le),ue.viewport(k.copy(K).multiplyScalar(I).round())},this.getScissor=function(W){return W.copy(oe)},this.setScissor=function(W,ye,Ae,Le){W.isVector4?oe.set(W.x,W.y,W.z,W.w):oe.set(W,ye,Ae,Le),ue.scissor(R.copy(oe).multiplyScalar(I).round())},this.getScissorTest=function(){return X},this.setScissorTest=function(W){ue.setScissorTest(X=W)},this.setOpaqueSort=function(W){O=W},this.setTransparentSort=function(W){q=W},this.getClearColor=function(W){return W.copy($e.getClearColor())},this.setClearColor=function(){$e.setClearColor(...arguments)},this.getClearAlpha=function(){return $e.getClearAlpha()},this.setClearAlpha=function(){$e.setClearAlpha(...arguments)},this.clear=function(W=!0,ye=!0,Ae=!0){let Le=0;if(W){let Ie=!1;if(T!==null){const at=T.texture.format;Ie=at===Y1||at===j1||at===q1}if(Ie){const at=T.texture.type,bt=at===ki||at===al||at===xd||at===Sd||at===G1||at===K1,kt=$e.getClearColor(),At=$e.getClearAlpha(),Ht=kt.r,Wt=kt.g,Ot=kt.b;bt?(m[0]=Ht,m[1]=Wt,m[2]=Ot,m[3]=At,z.clearBufferuiv(z.COLOR,0,m)):(v[0]=Ht,v[1]=Wt,v[2]=Ot,v[3]=At,z.clearBufferiv(z.COLOR,0,v))}else Le|=z.COLOR_BUFFER_BIT}ye&&(Le|=z.DEPTH_BUFFER_BIT),Ae&&(Le|=z.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),z.clear(Le)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",ft,!1),n.removeEventListener("webglcontextrestored",lt,!1),n.removeEventListener("webglcontextcreationerror",Xe,!1),$e.dispose(),nt.dispose(),qe.dispose(),xe.dispose(),Fe.dispose(),Z.dispose(),Me.dispose(),Ye.dispose(),Se.dispose(),Be.dispose(),Ze.dispose(),Ze.removeEventListener("sessionstart",$r),Ze.removeEventListener("sessionend",Bi),gr.stop()};function ft(W){W.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),w=!0}function lt(){console.log("THREE.WebGLRenderer: Context Restored."),w=!1;const W=ge.autoReset,ye=He.enabled,Ae=He.autoUpdate,Le=He.needsUpdate,Ie=He.type;ot(),ge.autoReset=W,He.enabled=ye,He.autoUpdate=Ae,He.needsUpdate=Le,He.type=Ie}function Xe(W){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",W.statusMessage)}function Et(W){const ye=W.target;ye.removeEventListener("dispose",Et),Ge(ye)}function Ge(W){St(W),xe.remove(W)}function St(W){const ye=xe.get(W).programs;ye!==void 0&&(ye.forEach(function(Ae){Be.releaseProgram(Ae)}),W.isShaderMaterial&&Be.releaseShaderCache(W))}this.renderBufferDirect=function(W,ye,Ae,Le,Ie,at){ye===null&&(ye=Re);const bt=Ie.isMesh&&Ie.matrixWorld.determinant()<0,kt=ro(W,ye,Ae,Le,Ie);ue.setMaterial(Le,bt);let At=Ae.index,Ht=1;if(Le.wireframe===!0){if(At=he.getWireframeAttribute(Ae),At===void 0)return;Ht=2}const Wt=Ae.drawRange,Ot=Ae.attributes.position;let rn=Wt.start*Ht,mn=(Wt.start+Wt.count)*Ht;at!==null&&(rn=Math.max(rn,at.start*Ht),mn=Math.min(mn,(at.start+at.count)*Ht)),At!==null?(rn=Math.max(rn,0),mn=Math.min(mn,At.count)):Ot!=null&&(rn=Math.max(rn,0),mn=Math.min(mn,Ot.count));const Nn=mn-rn;if(Nn<0||Nn===1/0)return;Ye.setup(Ie,Le,kt,Ae,At);let Bn,cn=we;if(At!==null&&(Bn=$.get(At),cn=te,cn.setIndex(Bn)),Ie.isMesh)Le.wireframe===!0?(ue.setLineWidth(Le.wireframeLinewidth*ee()),cn.setMode(z.LINES)):cn.setMode(z.TRIANGLES);else if(Ie.isLine){let Ut=Le.linewidth;Ut===void 0&&(Ut=1),ue.setLineWidth(Ut*ee()),Ie.isLineSegments?cn.setMode(z.LINES):Ie.isLineLoop?cn.setMode(z.LINE_LOOP):cn.setMode(z.LINE_STRIP)}else Ie.isPoints?cn.setMode(z.POINTS):Ie.isSprite&&cn.setMode(z.TRIANGLES);if(Ie.isBatchedMesh)if(Ie._multiDrawInstances!==null)uu("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."),cn.renderMultiDrawInstances(Ie._multiDrawStarts,Ie._multiDrawCounts,Ie._multiDrawCount,Ie._multiDrawInstances);else if(ce.get("WEBGL_multi_draw"))cn.renderMultiDraw(Ie._multiDrawStarts,Ie._multiDrawCounts,Ie._multiDrawCount);else{const Ut=Ie._multiDrawStarts,mo=Ie._multiDrawCounts,pn=Ie._multiDrawCount,Ur=At?$.get(At).bytesPerElement:1,bl=xe.get(Le).currentProgram.getUniforms();for(let or=0;or{function at(){if(Le.forEach(function(bt){xe.get(bt).currentProgram.isReady()&&Le.delete(bt)}),Le.size===0){Ie(W);return}setTimeout(at,10)}ce.get("KHR_parallel_shader_compile")!==null?at():setTimeout(at,10)})};let xn=null;function Gn(W){xn&&xn(W)}function $r(){gr.stop()}function Bi(){gr.start()}const gr=new IR;gr.setAnimationLoop(Gn),typeof self<"u"&&gr.setContext(self),this.setAnimationLoop=function(W){xn=W,Ze.setAnimationLoop(W),W===null?gr.stop():gr.start()},Ze.addEventListener("sessionstart",$r),Ze.addEventListener("sessionend",Bi),this.render=function(W,ye){if(ye!==void 0&&ye.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(w===!0)return;if(W.matrixWorldAutoUpdate===!0&&W.updateMatrixWorld(),ye.parent===null&&ye.matrixWorldAutoUpdate===!0&&ye.updateMatrixWorld(),Ze.enabled===!0&&Ze.isPresenting===!0&&(Ze.cameraAutoUpdate===!0&&Ze.updateCamera(ye),ye=Ze.getCamera()),W.isScene===!0&&W.onBeforeRender(_,W,ye,T),g=qe.get(W,y.length),g.init(ye),y.push(g),fe.multiplyMatrices(ye.projectionMatrix,ye.matrixWorldInverse),Y.setFromProjectionMatrix(fe),ae=this.localClippingEnabled,ie=ht.init(this.clippingPlanes,ae),b=nt.get(W,x.length),b.init(),x.push(b),Ze.enabled===!0&&Ze.isPresenting===!0){const at=_.xr.getDepthSensingMesh();at!==null&&ga(at,ye,-1/0,_.sortObjects)}ga(W,ye,0,_.sortObjects),b.finish(),_.sortObjects===!0&&b.sort(O,q),V=Ze.enabled===!1||Ze.isPresenting===!1||Ze.hasDepthSensing()===!1,V&&$e.addToRenderList(b,W),this.info.render.frame++,ie===!0&&ht.beginShadows();const Ae=g.state.shadowsArray;He.render(Ae,W,ye),ie===!0&&ht.endShadows(),this.info.autoReset===!0&&this.info.reset();const Le=b.opaque,Ie=b.transmissive;if(g.setupLights(),ye.isArrayCamera){const at=ye.cameras;if(Ie.length>0)for(let bt=0,kt=at.length;bt0&&gl(Le,Ie,W,ye),V&&$e.render(W),vl(b,W,ye);T!==null&&M===0&&(Ce.updateMultisampleRenderTarget(T),Ce.updateRenderTargetMipmap(T)),W.isScene===!0&&W.onAfterRender(_,W,ye),Ye.resetDefaultState(),E=-1,C=null,y.pop(),y.length>0?(g=y[y.length-1],ie===!0&&ht.setGlobalState(_.clippingPlanes,g.state.camera)):g=null,x.pop(),x.length>0?b=x[x.length-1]:b=null};function ga(W,ye,Ae,Le){if(W.visible===!1)return;if(W.layers.test(ye.layers)){if(W.isGroup)Ae=W.renderOrder;else if(W.isLOD)W.autoUpdate===!0&&W.update(ye);else if(W.isLight)g.pushLight(W),W.castShadow&&g.pushShadow(W);else if(W.isSprite){if(!W.frustumCulled||Y.intersectsSprite(W)){Le&&De.setFromMatrixPosition(W.matrixWorld).applyMatrix4(fe);const bt=Me.update(W),kt=W.material;kt.visible&&b.push(W,bt,kt,Ae,De.z,null)}}else if((W.isMesh||W.isLine||W.isPoints)&&(!W.frustumCulled||Y.intersectsObject(W))){const bt=Me.update(W),kt=W.material;if(Le&&(W.boundingSphere!==void 0?(W.boundingSphere===null&&W.computeBoundingSphere(),De.copy(W.boundingSphere.center)):(bt.boundingSphere===null&&bt.computeBoundingSphere(),De.copy(bt.boundingSphere.center)),De.applyMatrix4(W.matrixWorld).applyMatrix4(fe)),Array.isArray(kt)){const At=bt.groups;for(let Ht=0,Wt=At.length;Ht0&&xs(Ie,ye,Ae),at.length>0&&xs(at,ye,Ae),bt.length>0&&xs(bt,ye,Ae),ue.buffers.depth.setTest(!0),ue.buffers.depth.setMask(!0),ue.buffers.color.setMask(!0),ue.setPolygonOffset(!1)}function gl(W,ye,Ae,Le){if((Ae.isScene===!0?Ae.overrideMaterial:null)!==null)return;g.state.transmissionRenderTarget[Le.id]===void 0&&(g.state.transmissionRenderTarget[Le.id]=new ul(1,1,{generateMipmaps:!0,type:ce.has("EXT_color_buffer_half_float")||ce.has("EXT_color_buffer_float")?nf:ki,minFilter:Wa,samples:4,stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:dn.workingColorSpace}));const at=g.state.transmissionRenderTarget[Le.id],bt=Le.viewport||k;at.setSize(bt.z*_.transmissionResolutionScale,bt.w*_.transmissionResolutionScale);const kt=_.getRenderTarget();_.setRenderTarget(at),_.getClearColor(H),N=_.getClearAlpha(),N<1&&_.setClearColor(16777215,.5),_.clear(),V&&$e.render(Ae);const At=_.toneMapping;_.toneMapping=Js;const Ht=Le.viewport;if(Le.viewport!==void 0&&(Le.viewport=void 0),g.setupLightsView(Le),ie===!0&&ht.setGlobalState(_.clippingPlanes,Le),xs(W,Ae,Le),Ce.updateMultisampleRenderTarget(at),Ce.updateRenderTargetMipmap(at),ce.has("WEBGL_multisampled_render_to_texture")===!1){let Wt=!1;for(let Ot=0,rn=ye.length;Ot0),Ot=!!Ae.morphAttributes.position,rn=!!Ae.morphAttributes.normal,mn=!!Ae.morphAttributes.color;let Nn=Js;Le.toneMapped&&(T===null||T.isXRRenderTarget===!0)&&(Nn=_.toneMapping);const Bn=Ae.morphAttributes.position||Ae.morphAttributes.normal||Ae.morphAttributes.color,cn=Bn!==void 0?Bn.length:0,Ut=xe.get(Le),mo=g.state.lights;if(ie===!0&&(ae===!0||W!==C)){const Ro=W===C&&Le.id===E;ht.setState(Le,W,Ro)}let pn=!1;Le.version===Ut.__version?(Ut.needsLights&&Ut.lightsStateVersion!==mo.state.version||Ut.outputColorSpace!==kt||Ie.isBatchedMesh&&Ut.batching===!1||!Ie.isBatchedMesh&&Ut.batching===!0||Ie.isBatchedMesh&&Ut.batchingColor===!0&&Ie.colorTexture===null||Ie.isBatchedMesh&&Ut.batchingColor===!1&&Ie.colorTexture!==null||Ie.isInstancedMesh&&Ut.instancing===!1||!Ie.isInstancedMesh&&Ut.instancing===!0||Ie.isSkinnedMesh&&Ut.skinning===!1||!Ie.isSkinnedMesh&&Ut.skinning===!0||Ie.isInstancedMesh&&Ut.instancingColor===!0&&Ie.instanceColor===null||Ie.isInstancedMesh&&Ut.instancingColor===!1&&Ie.instanceColor!==null||Ie.isInstancedMesh&&Ut.instancingMorph===!0&&Ie.morphTexture===null||Ie.isInstancedMesh&&Ut.instancingMorph===!1&&Ie.morphTexture!==null||Ut.envMap!==At||Le.fog===!0&&Ut.fog!==at||Ut.numClippingPlanes!==void 0&&(Ut.numClippingPlanes!==ht.numPlanes||Ut.numIntersection!==ht.numIntersection)||Ut.vertexAlphas!==Ht||Ut.vertexTangents!==Wt||Ut.morphTargets!==Ot||Ut.morphNormals!==rn||Ut.morphColors!==mn||Ut.toneMapping!==Nn||Ut.morphTargetsCount!==cn)&&(pn=!0):(pn=!0,Ut.__version=Le.version);let Ur=Ut.currentProgram;pn===!0&&(Ur=pt(Le,ye,Ie));let bl=!1,or=!1,ic=!1;const Rn=Ur.getUniforms(),yr=Ut.uniforms;if(ue.useProgram(Ur.program)&&(bl=!0,or=!0,ic=!0),Le.id!==E&&(E=Le.id,or=!0),bl||C!==W){ue.buffers.depth.getReversed()?(re.copy(W.projectionMatrix),Nie(re),Oie(re),Rn.setValue(z,"projectionMatrix",re)):Rn.setValue(z,"projectionMatrix",W.projectionMatrix),Rn.setValue(z,"viewMatrix",W.matrixWorldInverse);const Uo=Rn.map.cameraPosition;Uo!==void 0&&Uo.setValue(z,be.setFromMatrixPosition(W.matrixWorld)),me.logarithmicDepthBuffer&&Rn.setValue(z,"logDepthBufFC",2/(Math.log(W.far+1)/Math.LN2)),(Le.isMeshPhongMaterial||Le.isMeshToonMaterial||Le.isMeshLambertMaterial||Le.isMeshBasicMaterial||Le.isMeshStandardMaterial||Le.isShaderMaterial)&&Rn.setValue(z,"isOrthographic",W.isOrthographicCamera===!0),C!==W&&(C=W,or=!0,ic=!0)}if(Ie.isSkinnedMesh){Rn.setOptional(z,Ie,"bindMatrix"),Rn.setOptional(z,Ie,"bindMatrixInverse");const Ro=Ie.skeleton;Ro&&(Ro.boneTexture===null&&Ro.computeBoneTexture(),Rn.setValue(z,"boneTexture",Ro.boneTexture,Ce))}Ie.isBatchedMesh&&(Rn.setOptional(z,Ie,"batchingTexture"),Rn.setValue(z,"batchingTexture",Ie._matricesTexture,Ce),Rn.setOptional(z,Ie,"batchingIdTexture"),Rn.setValue(z,"batchingIdTexture",Ie._indirectTexture,Ce),Rn.setOptional(z,Ie,"batchingColorTexture"),Ie._colorsTexture!==null&&Rn.setValue(z,"batchingColorTexture",Ie._colorsTexture,Ce));const _r=Ae.morphAttributes;if((_r.position!==void 0||_r.normal!==void 0||_r.color!==void 0)&&ne.update(Ie,Ae,Ur),(or||Ut.receiveShadow!==Ie.receiveShadow)&&(Ut.receiveShadow=Ie.receiveShadow,Rn.setValue(z,"receiveShadow",Ie.receiveShadow)),Le.isMeshGouraudMaterial&&Le.envMap!==null&&(yr.envMap.value=At,yr.flipEnvMap.value=At.isCubeTexture&&At.isRenderTargetTexture===!1?-1:1),Le.isMeshStandardMaterial&&Le.envMap===null&&ye.environment!==null&&(yr.envMapIntensity.value=ye.environmentIntensity),or&&(Rn.setValue(z,"toneMappingExposure",_.toneMappingExposure),Ut.needsLights&&si(yr,ic),at&&Le.fog===!0&&Ne.refreshFogUniforms(yr,at),Ne.refreshMaterialUniforms(yr,Le,I,U,g.state.transmissionRenderTarget[W.id]),Kh.upload(z,qt(Ut),yr,Ce)),Le.isShaderMaterial&&Le.uniformsNeedUpdate===!0&&(Kh.upload(z,qt(Ut),yr,Ce),Le.uniformsNeedUpdate=!1),Le.isSpriteMaterial&&Rn.setValue(z,"center",Ie.center),Rn.setValue(z,"modelViewMatrix",Ie.modelViewMatrix),Rn.setValue(z,"normalMatrix",Ie.normalMatrix),Rn.setValue(z,"modelMatrix",Ie.matrixWorld),Le.isShaderMaterial||Le.isRawShaderMaterial){const Ro=Le.uniformsGroups;for(let Uo=0,z0=Ro.length;Uo0&&Ce.useMultisampledRTT(W)===!1?Ie=xe.get(W).__webglMultisampledFramebuffer:Array.isArray(Wt)?Ie=Wt[Ae]:Ie=Wt,k.copy(W.viewport),R.copy(W.scissor),B=W.scissorTest}else k.copy(K).multiplyScalar(I).floor(),R.copy(oe).multiplyScalar(I).floor(),B=X;if(Ae!==0&&(Ie=ai),ue.bindFramebuffer(z.FRAMEBUFFER,Ie)&&Le&&ue.drawBuffers(W,Ie),ue.viewport(k),ue.scissor(R),ue.setScissorTest(B),at){const At=xe.get(W.texture);z.framebufferTexture2D(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,z.TEXTURE_CUBE_MAP_POSITIVE_X+ye,At.__webglTexture,Ae)}else if(bt){const At=xe.get(W.texture),Ht=ye;z.framebufferTextureLayer(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,At.__webglTexture,Ae,Ht)}else if(W!==null&&Ae!==0){const At=xe.get(W.texture);z.framebufferTexture2D(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,z.TEXTURE_2D,At.__webglTexture,Ae)}E=-1},this.readRenderTargetPixels=function(W,ye,Ae,Le,Ie,at,bt,kt=0){if(!(W&&W.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let At=xe.get(W).__webglFramebuffer;if(W.isWebGLCubeRenderTarget&&bt!==void 0&&(At=At[bt]),At){ue.bindFramebuffer(z.FRAMEBUFFER,At);try{const Ht=W.textures[kt],Wt=Ht.format,Ot=Ht.type;if(!me.textureFormatReadable(Wt)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!me.textureTypeReadable(Ot)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}ye>=0&&ye<=W.width-Le&&Ae>=0&&Ae<=W.height-Ie&&(W.textures.length>1&&z.readBuffer(z.COLOR_ATTACHMENT0+kt),z.readPixels(ye,Ae,Le,Ie,Ee.convert(Wt),Ee.convert(Ot),at))}finally{const Ht=T!==null?xe.get(T).__webglFramebuffer:null;ue.bindFramebuffer(z.FRAMEBUFFER,Ht)}}},this.readRenderTargetPixelsAsync=async function(W,ye,Ae,Le,Ie,at,bt,kt=0){if(!(W&&W.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let At=xe.get(W).__webglFramebuffer;if(W.isWebGLCubeRenderTarget&&bt!==void 0&&(At=At[bt]),At)if(ye>=0&&ye<=W.width-Le&&Ae>=0&&Ae<=W.height-Ie){ue.bindFramebuffer(z.FRAMEBUFFER,At);const Ht=W.textures[kt],Wt=Ht.format,Ot=Ht.type;if(!me.textureFormatReadable(Wt))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!me.textureTypeReadable(Ot))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");const rn=z.createBuffer();z.bindBuffer(z.PIXEL_PACK_BUFFER,rn),z.bufferData(z.PIXEL_PACK_BUFFER,at.byteLength,z.STREAM_READ),W.textures.length>1&&z.readBuffer(z.COLOR_ATTACHMENT0+kt),z.readPixels(ye,Ae,Le,Ie,Ee.convert(Wt),Ee.convert(Ot),0);const mn=T!==null?xe.get(T).__webglFramebuffer:null;ue.bindFramebuffer(z.FRAMEBUFFER,mn);const Nn=z.fenceSync(z.SYNC_GPU_COMMANDS_COMPLETE,0);return z.flush(),await Lie(z,Nn,4),z.bindBuffer(z.PIXEL_PACK_BUFFER,rn),z.getBufferSubData(z.PIXEL_PACK_BUFFER,0,at),z.deleteBuffer(rn),z.deleteSync(Nn),at}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")},this.copyFramebufferToTexture=function(W,ye=null,Ae=0){const Le=Math.pow(2,-Ae),Ie=Math.floor(W.image.width*Le),at=Math.floor(W.image.height*Le),bt=ye!==null?ye.x:0,kt=ye!==null?ye.y:0;Ce.setTexture2D(W,0),z.copyTexSubImage2D(z.TEXTURE_2D,Ae,0,0,bt,kt,Ie,at),ue.unbindTexture()};const li=z.createFramebuffer(),Ss=z.createFramebuffer();this.copyTextureToTexture=function(W,ye,Ae=null,Le=null,Ie=0,at=null){at===null&&(Ie!==0?(uu("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),at=Ie,Ie=0):at=0);let bt,kt,At,Ht,Wt,Ot,rn,mn,Nn;const Bn=W.isCompressedTexture?W.mipmaps[at]:W.image;if(Ae!==null)bt=Ae.max.x-Ae.min.x,kt=Ae.max.y-Ae.min.y,At=Ae.isBox3?Ae.max.z-Ae.min.z:1,Ht=Ae.min.x,Wt=Ae.min.y,Ot=Ae.isBox3?Ae.min.z:0;else{const _r=Math.pow(2,-Ie);bt=Math.floor(Bn.width*_r),kt=Math.floor(Bn.height*_r),W.isDataArrayTexture?At=Bn.depth:W.isData3DTexture?At=Math.floor(Bn.depth*_r):At=1,Ht=0,Wt=0,Ot=0}Le!==null?(rn=Le.x,mn=Le.y,Nn=Le.z):(rn=0,mn=0,Nn=0);const cn=Ee.convert(ye.format),Ut=Ee.convert(ye.type);let mo;ye.isData3DTexture?(Ce.setTexture3D(ye,0),mo=z.TEXTURE_3D):ye.isDataArrayTexture||ye.isCompressedArrayTexture?(Ce.setTexture2DArray(ye,0),mo=z.TEXTURE_2D_ARRAY):(Ce.setTexture2D(ye,0),mo=z.TEXTURE_2D),z.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,ye.flipY),z.pixelStorei(z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,ye.premultiplyAlpha),z.pixelStorei(z.UNPACK_ALIGNMENT,ye.unpackAlignment);const pn=z.getParameter(z.UNPACK_ROW_LENGTH),Ur=z.getParameter(z.UNPACK_IMAGE_HEIGHT),bl=z.getParameter(z.UNPACK_SKIP_PIXELS),or=z.getParameter(z.UNPACK_SKIP_ROWS),ic=z.getParameter(z.UNPACK_SKIP_IMAGES);z.pixelStorei(z.UNPACK_ROW_LENGTH,Bn.width),z.pixelStorei(z.UNPACK_IMAGE_HEIGHT,Bn.height),z.pixelStorei(z.UNPACK_SKIP_PIXELS,Ht),z.pixelStorei(z.UNPACK_SKIP_ROWS,Wt),z.pixelStorei(z.UNPACK_SKIP_IMAGES,Ot);const Rn=W.isDataArrayTexture||W.isData3DTexture,yr=ye.isDataArrayTexture||ye.isData3DTexture;if(W.isDepthTexture){const _r=xe.get(W),Ro=xe.get(ye),Uo=xe.get(_r.__renderTarget),z0=xe.get(Ro.__renderTarget);ue.bindFramebuffer(z.READ_FRAMEBUFFER,Uo.__webglFramebuffer),ue.bindFramebuffer(z.DRAW_FRAMEBUFFER,z0.__webglFramebuffer);for(let ba=0;baMath.PI&&(o-=Wo),r<-Math.PI?r+=Wo:r>Math.PI&&(r-=Wo),o<=r?this._spherical.theta=Math.max(o,Math.min(r,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+r)/2?Math.max(o,this._spherical.theta):Math.min(r,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let i=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const s=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),i=s!=this._spherical.radius}if(Yn.setFromSpherical(this._spherical),Yn.applyQuaternion(this._quatInverse),n.copy(this.target).add(Yn),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let s=null;if(this.object.isPerspectiveCamera){const a=Yn.length();s=this._clampDistance(a*this._scale);const l=a-s;this.object.position.addScaledVector(this._dollyDirection,l),this.object.updateMatrixWorld(),i=!!l}else if(this.object.isOrthographicCamera){const a=new ke(this._mouse.x,this._mouse.y,0);a.unproject(this.object);const l=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),i=l!==this.object.zoom;const u=new ke(this._mouse.x,this._mouse.y,0);u.unproject(this.object),this.object.position.sub(u).add(a),this.object.updateMatrixWorld(),s=Yn.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;s!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position):(ch.origin.copy(this.object.position),ch.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(ch.direction))sv||8*(1-this._lastQuaternion.dot(this.object.quaternion))>sv||this._lastTargetPosition.distanceToSquared(this.target)>sv?(this.dispatchEvent(aC),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?Wo/60*this.autoRotateSpeed*t:Wo/60/60*this.autoRotateSpeed}_getZoomScale(t){const n=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*n)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,n){Yn.setFromMatrixColumn(n,0),Yn.multiplyScalar(-t),this._panOffset.add(Yn)}_panUp(t,n){this.screenSpacePanning===!0?Yn.setFromMatrixColumn(n,1):(Yn.setFromMatrixColumn(n,0),Yn.crossVectors(this.object.up,Yn)),Yn.multiplyScalar(t),this._panOffset.add(Yn)}_pan(t,n){const o=this.domElement;if(this.object.isPerspectiveCamera){const r=this.object.position;Yn.copy(r).sub(this.target);let i=Yn.length();i*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*i/o.clientHeight,this.object.matrix),this._panUp(2*n*i/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(n*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,n){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),r=t-o.left,i=n-o.top,s=o.width,a=o.height;this._mouse.x=r/s*2-1,this._mouse.y=-(i/a)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const n=this.domElement;this._rotateLeft(Wo*this._rotateDelta.x/n.clientHeight),this._rotateUp(Wo*this._rotateDelta.y/n.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let n=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(Wo*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),n=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-Wo*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),n=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(Wo*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),n=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-Wo*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),n=!0;break}n&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const n=this._getSecondPointerPosition(t),o=.5*(t.pageX+n.x),r=.5*(t.pageY+n.y);this._rotateStart.set(o,r)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const n=this._getSecondPointerPosition(t),o=.5*(t.pageX+n.x),r=.5*(t.pageY+n.y);this._panStart.set(o,r)}}_handleTouchStartDolly(t){const n=this._getSecondPointerPosition(t),o=t.pageX-n.x,r=t.pageY-n.y,i=Math.sqrt(o*o+r*r);this._dollyStart.set(0,i)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),r=.5*(t.pageX+o.x),i=.5*(t.pageY+o.y);this._rotateEnd.set(r,i)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const n=this.domElement;this._rotateLeft(Wo*this._rotateDelta.x/n.clientHeight),this._rotateUp(Wo*this._rotateDelta.y/n.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const n=this._getSecondPointerPosition(t),o=.5*(t.pageX+n.x),r=.5*(t.pageY+n.y);this._panEnd.set(o,r)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const n=this._getSecondPointerPosition(t),o=t.pageX-n.x,r=t.pageY-n.y,i=Math.sqrt(o*o+r*r);this._dollyEnd.set(0,i),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const s=(t.pageX+n.x)*.5,a=(t.pageY+n.y)*.5;this._updateZoomParameters(s,a)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let n=0;n{u.setSize(C,C*2/3),u.setClearColor(8900331),u.shadowMap.enabled=!0,i.value&&i.value.appendChild(u.domElement),l.position.set(0,30,60),d=new Vde(l,u.domElement),d.enableDamping=!0,d.dampingFactor=.05;const k=new Qse(16777215,.8);a.add(k);const R=new Jse(16777215,.8);R.position.set(10,20,10),R.castShadow=!0,R.shadow.mapSize.width=2048,R.shadow.mapSize.height=2048,a.add(R);const B=new $n(100,100),H=new Do({color:5025616,roughness:.8,metalness:.2}),N=new Yt(B,H);N.rotation.x=-Math.PI/2,N.receiveShadow=!0,a.add(N),g(),w(),S(0,.02,0),M(-33,.02,-16),M(-33,.02,0),M(-33,.02,16)},h=C=>{o.x=C.clientX/window.innerWidth*2-1,o.y=-(C.clientY/window.innerHeight)*2+1,n.setFromCamera(o,l);const k=n.intersectObjects(s);if(k.length>0){const R=k[0].object;m(R)}},m=C=>{console.log("点击了建筑物:",C.userData.buildingInfo),v(C),b(C.userData.buildingInfo)},v=C=>{s.forEach(R=>{R.userData.originalMaterial&&(R.material=R.userData.originalMaterial)}),C.userData.originalMaterial||(C.userData.originalMaterial=C.material);const k=new Do({color:16776960,emissive:8947712,metalness:.5,roughness:.1});C.material=k},b=C=>{if(t.value&&t.value.show(C),C.highlightObject){const k=C.highlightObject.material.color.getHex();C.highlightObject.material.color.setHex(16776960),setTimeout(()=>{C.highlightObject.material.color.setHex(k)},2e3)}},g=async()=>{const C=await x(15,8,10,13421772,0,4,38,"教学楼",{name:"主教学楼",function:"教学",openTime:"07:00-22:00",description:"校园主要教学场所,包含多个教室和实验室"});a.add(C);const k=await x(10,5,8,13421772,-30,3,36,"一号教学楼");a.add(k);const R=await x(10,5,8,13421772,30,3,36,"二号教学楼");a.add(R);const B=await x(10,5,8,13421772,30,3,16,"一号宿舍楼",{name:"一号宿舍楼",function:"休息",openTime:"07:00-22:00",description:"供学生休息"});a.add(B);const H=await x(10,5,8,13421772,30,3,-4,"二号宿舍楼",{name:"二号宿舍楼",function:"休息",openTime:"07:00-22:00",description:"供学生休息"});a.add(H);const N=await x(10,5,8,13421772,30,3,-24,"三号宿舍楼",{name:"三号宿舍楼",function:"休息",openTime:"07:00-22:00",description:"供学生休息"});a.add(N);const P=await x(10,5,8,13421772,-0,3,-35);a.add(P);const U=await x(10,5,8,13421772,-30,3,-35);a.add(U),_()},x=async(C,k,R,B,H,N,P,U="",I={})=>{const O=new Qs(C,k,R),q=new Do({color:B,roughness:.7}),K=new Yt(O,q);if(K.position.set(H,N,P),K.castShadow=!0,K.receiveShadow=!0,U){K.name=U;const oe=await y(U,{size:2,height:.1,color:16777215,position:{x:H,y:N+k/2+.5,z:P},rotation:{x:0,y:0,z:0}});a.add(oe)}return K.userData={isBuilding:!0,buildingInfo:{name:I.name||"未命名建筑",function:I.function||"教学/办公",openTime:I.openTime||"08:00-22:00",...I}},s.push(K),K},y=async(C,k={})=>{const{size:R=2,height:B=.2,color:H=16777215,position:N={x:0,y:0,z:0},rotation:P={x:0,y:0,z:0}}=k,U=await new Promise(oe=>{r.load("/FangSong_Regular.json",X=>oe(X))}),I=new ife(C,{font:U,size:R,depth:B,curveSegments:12,bevelEnabled:!1});I.computeBoundingBox();const O=I.boundingBox&&I.boundingBox.max.x-I.boundingBox.min.x;O&&I.translate(-O/2,0,0);const q=new Do({color:H}),K=new Yt(I,q);return K.position.set(N.x,N.y,N.z),K.rotation.set(P.x,P.y,P.z),K},_=()=>{for(let C=-6;C<=6;C+=3)for(let k=1;k<=6;k+=2){const R=new Yt(new $n(1,1.5),new Do({color:170}));R.position.set(C,k,43.1),a.add(R)}},w=()=>{const C=new $n(5,100),k=new Do({color:3355443}),R=new Yt(C,k);R.rotation.x=-Math.PI/2,R.position.y=.01,R.position.x=-47.5,R.position.z=0,a.add(R);const B=new Yt(C,k);B.rotation.x=-Math.PI/2,B.position.y=.01,B.position.x=47.5,B.position.z=0,a.add(B);const H=new $n(.2,95),N=new Do({color:16777215}),P=new Yt(H,N);P.rotation.x=-Math.PI/2,P.position.y=.02,P.position.x=47.5,P.position.z=0,a.add(P);const U=new Yt(H,N);U.rotation.x=-Math.PI/2,U.position.y=.02,U.position.x=-47.5,U.position.z=0,a.add(U);const I=new $n(95,.2),O=new Yt(I,N);O.rotation.x=-Math.PI/2,O.position.y=.02,O.position.z=47.5,a.add(O);const q=new Yt(new $n(100,5),k);q.rotation.x=-Math.PI/2,q.position.y=.01,q.position.z=-47.5,a.add(q);const K=new Yt(I,N);K.rotation.x=-Math.PI/2,K.position.y=.02,K.position.z=-47.5,a.add(K);const oe=new Yt(new $n(100,5),k);oe.rotation.x=-Math.PI/2,oe.position.y=.01,oe.position.z=47.5,a.add(oe);const X=new $n(5,25),Y=new Yt(X,k);Y.rotation.x=-Math.PI/2,Y.position.y=.01,Y.position.z=35,Y.position.x=-15,a.add(Y);const ie=new $n(.2,20),ae=new Yt(ie,N);ae.rotation.x=-Math.PI/2,ae.position.y=.02,ae.position.z=35,ae.position.x=-15,a.add(ae);const re=new Yt(X,k);re.rotation.x=-Math.PI/2,re.position.y=.02,re.position.z=35,re.position.x=15,a.add(re);const fe=new Yt(ie,N);fe.rotation.x=-Math.PI/2,fe.position.y=.02,fe.position.z=35,fe.position.x=15,a.add(fe);const be=new $n(25,5),De=new Yt(be,k);De.rotation.x=-Math.PI/2,De.position.y=.01,De.position.z=25,De.position.x=0,a.add(De);const Re=new $n(30,.2),V=new Yt(Re,N);V.rotation.x=-Math.PI/2,V.position.y=.1,V.position.z=25,a.add(V);const ee=new Do({color:14540253}),z=new Yt(new $n(1.5,90),ee);z.rotation.x=-Math.PI/2,z.position.y=.01,z.position.z=0,z.position.x=30.5,a.add(z);const ve=new Yt(new $n(70,1.5),ee);ve.rotation.x=-Math.PI/2,ve.position.y=.01,ve.position.z=0,ve.position.x=-10,ve.position.z=-25,a.add(ve);const ce=new Yt(new $n(1.5,30),ee);ce.rotation.x=-Math.PI/2,ce.position.y=.01,ce.position.z=0,ce.position.z=-30,a.add(ce);const me=new Yt(new $n(1.5,10),ee);me.rotation.x=-Math.PI/2,me.position.y=.01,me.position.z=-30,me.position.x=-30,a.add(me);const ue=new Yt(new $n(10,1.5),ee);ue.rotation.x=-Math.PI/2,ue.position.y=.01,ue.position.z=35,ue.position.x=40,a.add(ue);const ge=new Yt(new $n(10,1.5),ee);ge.rotation.x=-Math.PI/2,ge.position.y=.01,ge.position.z=35,ge.position.x=-40,a.add(ge)},S=(C,k,R)=>{const I=new Ga(0,0,13,18,0,2*Math.PI,!1,0),O=new Ga(0,0,10,15,0,2*Math.PI,!1,0),q=I.getPoints(100),K=O.getPoints(100),oe=new Wc;oe.moveTo(q[0].x,q[0].y);for(let ce=1;ce{const P=new $n(20,10),U=new Do({color:1719150,roughness:.7,metalness:.1}),I=new Yt(P,U);I.rotation.x=-Math.PI/2,I.position.set(C,k,R),I.rotation.y=B,I.receiveShadow=!0,a.add(I);const O=new Ew(new Qs(20,.1,10)),q=new yb({color:16777215,linewidth:2}),K=new cse(O,q);K.position.set(C,k+.01,R),K.rotation.y=B,a.add(K);const oe=new uo().setFromPoints([new ke(0,.02,-10/2),new ke(0,.02,10/2)]),X=new Wl(oe,q);X.position.set(C,k+.02,R),X.rotation.y=B,a.add(X);const Y=new n_(1.2,1.4,32),ie=new J1({color:16777215,side:pi}),ae=new Yt(Y,ie);ae.rotation.x=-Math.PI/2,ae.position.set(C,k+.02,R),ae.rotation.y=B,a.add(ae);const fe=new Ga(0,0,5.7,5.7,-Math.PI*.4,Math.PI*.4,!1,0).getPoints(50),be=new Wl(new uo().setFromPoints(fe),q);be.position.set(C-20/2+1.2,k+.02,R),be.rotation.x=Math.PI/2,be.rotation.y=B,a.add(be);const Re=new Ga(0,0,-5.7,5.7,-Math.PI*.4,Math.PI*.4,!1,0).getPoints(50),V=new Wl(new uo().setFromPoints(Re),q);V.position.set(C+20/2-1.2,k+.02,R),V.rotation.x=Math.PI/2,V.rotation.y=B,a.add(V);const ee=z=>{const ve=new Qs(1.5,1,.05),ce=new Do({color:16777215,transparent:!0,opacity:.3,metalness:.9,roughness:.1}),me=new Yt(ve,ce);me.position.set(C+z*(20/2-.4),k+2.5,R),me.rotation.y=B+(z>0?Math.PI:0),a.add(me);const ue=new L0(.05,.05,2.5,16),ge=new Do({color:13421772}),xe=new Yt(ue,ge);xe.position.set(C+z*(20/2-.4),k+1.25,R),a.add(xe);const Ce=new o_(.2,.02,16,32),Fe=new Do({color:16742144}),Z=new Yt(Ce,Fe);Z.position.set(C+z*(20/2-.4),k+2.55,R),Z.rotation.x=Math.PI/2,Z.rotation.y=B+(z>0?Math.PI:0),a.add(Z);const $=new e_(.2,.35,8),he=new Do({color:16777215,wireframe:!0,transparent:!0,opacity:.7}),Me=new Yt($,he);Me.position.set(C+z*(20/2-.4),k+2.4,R),Me.rotation.x=Math.PI,Me.rotation.y=B+(z>0?Math.PI:0),a.add(Me)};return ee(1),ee(-1),I},T=()=>{f=requestAnimationFrame(T),d.update(),u.render(a,l)},E=()=>{l.aspect=3/2,l.updateProjectionMatrix();let C=dh;i.value&&(C=i.value.clientWidth||dh),u.setSize(C,C*(2/3))};return xt(()=>{let C=dh;i.value&&(C=i.value.clientWidth||dh,p(C),T()),window.addEventListener("resize",E),window.addEventListener("click",h,!1)}),Qt(()=>{window.removeEventListener("resize",E),window.removeEventListener("click",h,!1),cancelAnimationFrame(f),i.value&&i.value.contains(u.domElement)&&i.value.removeChild(u.domElement)}),(C,k)=>(D(),G("div",{ref_key:"container",ref:i,id:"webglContainer",style:{width:"100%",height:"100%"}},[J(Hre,{ref_key:"infoPanel",ref:t},null,512)],512))}}),afe=tf(sfe,[["__scopeId","data-v-5b3e3b4c"]]),lfe=e=>(Kp("data-v-5bb25a24"),e=e(),qp(),e),ufe=lfe(()=>j("div",{class:"clip-bg"},null,-1)),cfe={class:"clip-title"},dfe={class:"clip-content"},ffe=Q({__name:"index",props:{direction:{type:String,default:"left"},title:String,customClass:String},setup(e){const t=e;return(n,o)=>(D(),G("div",{class:L(["clip-wrap",[t.direction,t.customClass]])},[ufe,j("div",cfe,ze(t.title),1),j("div",dfe,[de(n.$slots,"default",{},void 0,!0)])],2))}}),hfe=tf(ffe,[["__scopeId","data-v-5bb25a24"]]);function pfe(e){const t={},n={},o={};return e.forEach(i=>{t[i]=new WebSocket(i),t[i].onopen=()=>{console.log(`WebSocket connected to ${i}`),n[i]="connected"},t[i].onmessage=s=>{o[i]=s.data},t[i].onerror=s=>{console.error(`WebSocket error on ${i}:`,s)},t[i].onclose=()=>{console.log(`WebSocket disconnected from ${i}`),n[i]="disconnected"}}),Qt(()=>{Object.values(t).forEach(i=>{i.readyState===WebSocket.OPEN&&i.close()})}),{sockets:t,send:(i,s)=>{t[i]&&t[i].readyState===WebSocket.OPEN&&t[i].send(JSON.stringify(s))},sendData:o,status:n}}const mfe=()=>{const e=F({}),t=F({}),n=o=>new Promise((r,i)=>{if(t.value[o]="connecting",e.value[o]){r(e.value[o]);return}try{const s=new WebSocket(o)||"";s.onopen=()=>{e.value[o]=s,t.value[o]="connected",r(s)},s.onclose=a=>{t.value[o]="disconnected",i(a)},s.onerror=a=>{t.value[o]="error",i(a)}}catch(s){console.log(s),i(s)}});return Qt(()=>{Object.values(e.value).forEach(o=>{o.close()})}),{sockets:e,connectedStatus:t,connected:n}},$R=e=>(Kp("data-v-29fda689"),e=e(),qp(),e),vfe={class:"realtime-content"},gfe={style:{"text-align":"right",padding:"0 0 10px 0"}},bfe=$R(()=>j("br",null,null,-1)),yfe=$R(()=>j("br",null,null,-1)),_fe=Q({__name:"index",setup(e){const{sockets:t,connected:n}=mfe(),o=F([]),r=F(!1),i=F(!1),s=F({}),a=F([]),l=F("");xt(async()=>{u()});const u=async()=>{o.value=JSON.parse(localStorage.getItem("tableData")||"[]").map(g=>(g.status="disConnected",g.socketData="无数据",g)),o.value.length>0&&(a.value=JSON.parse(localStorage.getItem("socketUrl")||"[]"),d(a.value))},d=async g=>{await Promise.all(g.map(x=>n(x).then(y=>{y.onmessage=_=>{o.value.map(w=>{`wss://${w.ip}:5678/`==`${y.url}`&&(w.socketData=_.data,w.status="connected")})}}).catch(y=>{o.value.map(_=>{`wss://${_.ip}:5678/`===y.currentTarget.url&&(_.socketData="无数据",_.status="disConnected")})})))},f=async()=>{if(!s.value.name||!s.value.ip){alert("请填写完整信息");return}else if(a.value.includes(`wss://${s.value.ip}:5678`)){alert("该设备IP已添加,请勿重复添加");return}const{send:g,sendData:x,status:y}=await pfe([`wss://${s.value.ip}:5678`]);setTimeout(()=>{if(y[`wss://${s.value.ip}:5678`]==="connected"){let _={name:s.value.name,ip:s.value.ip,status:"connected",socketData:x[`wss://${s.value.ip}:5678`],send:g};o.value.push(_),a.value.push(`wss://${s.value.ip}:5678`),r.value=!1,localStorage.setItem("tableData",JSON.stringify(o.value)),localStorage.setItem("socketUrl",JSON.stringify(a.value)),s.value={}}else alert("请检查IP是否正确或者网络是否正常")},1e3)},p=()=>{if(console.log("检测ip",s.value.ip),!s.value.ip){alert("请填写ip");return}window.open(`https://${s.value.ip}:5678/`)},h=g=>{i.value=!0,console.log("handleEdit",g)},m=g=>{console.log("handleDelete",g)},v=()=>{let g=l.value;console.log(g),t.value["wss://192.168.232.46:5678"].send(`echo ${g} > /root/socket.txt`)},b=()=>{o.value=[],localStorage.setItem("tableData",JSON.stringify([])),localStorage.setItem("socketUrl",JSON.stringify([]))};return(g,x)=>{const y=Mt("el-button"),_=Mt("el-table-column"),w=Mt("el-table"),S=Mt("el-input"),M=Mt("el-form-item"),T=Mt("el-form"),E=Mt("el-dialog");return D(),_e(hfe,{title:"硬件信息"},{default:se(()=>[j("div",vfe,[j("div",gfe,[J(y,{onClick:b,type:"danger"},{default:se(()=>[Tt("清除设备")]),_:1}),J(y,{onClick:x[0]||(x[0]=C=>r.value=!0),type:"primary"},{default:se(()=>[Tt("添加硬件")]),_:1})]),J(w,{data:o.value,style:{width:"100%"}},{default:se(()=>[J(_,{label:"名字",prop:"name",width:"80"}),J(_,{label:"IP",prop:"ip",width:"130"}),J(_,{label:"连接状态",prop:"status",width:"120"}),J(_,{label:"数据",prop:"socketData"}),J(_,{label:"操作",width:"140"},{default:se(C=>[J(y,{type:"primary",size:"small",onClick:k=>h(C.row)},{default:se(()=>[Tt("操作")]),_:2},1032,["onClick"]),J(y,{type:"danger",size:"small",onClick:k=>m(C.row)},{default:se(()=>[Tt("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),J(E,{modelValue:r.value,"onUpdate:modelValue":x[3]||(x[3]=C=>r.value=C),title:"添加硬件",style:{"max-width":"600px"}},{default:se(()=>[J(T,{data:s.value,"label-width":"auto"},{default:se(()=>[J(M,{label:"硬件名称:"},{default:se(()=>[J(S,{modelValue:s.value.name,"onUpdate:modelValue":x[1]||(x[1]=C=>s.value.name=C),placeholder:"请输入硬件名称"},null,8,["modelValue"])]),_:1}),J(M,{label:"硬件ip:"},{default:se(()=>[J(S,{modelValue:s.value.ip,"onUpdate:modelValue":x[2]||(x[2]=C=>s.value.ip=C),placeholder:"请输入硬件IP地址",style:{width:"200px"}},null,8,["modelValue"]),J(y,{onClick:p},{default:se(()=>[Tt("检测ip 服务是否启动")]),_:1})]),_:1}),J(M,null,{default:se(()=>[J(y,{type:"primary",onClick:f},{default:se(()=>[Tt("Create")]),_:1}),J(y,null,{default:se(()=>[Tt("Cancel")]),_:1})]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"]),J(E,{modelValue:i.value,"onUpdate:modelValue":x[5]||(x[5]=C=>i.value=C),title:"操作",width:"600"},{default:se(()=>[J(S,{style:{width:"60%"},modelValue:l.value,"onUpdate:modelValue":x[4]||(x[4]=C=>l.value=C),"aria-placeholder":"请输入功能",placeholder:"请输入功能"},null,8,["modelValue"]),bfe,yfe,J(y,{onClick:v},{default:se(()=>[Tt("发送指令")]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),xfe=tf(_fe,[["__scopeId","data-v-29fda689"]]),vo=[];for(let e=0;e<256;++e)vo.push((e+256).toString(16).slice(1));function Sfe(e,t=0){return(vo[e[t+0]]+vo[e[t+1]]+vo[e[t+2]]+vo[e[t+3]]+"-"+vo[e[t+4]]+vo[e[t+5]]+"-"+vo[e[t+6]]+vo[e[t+7]]+"-"+vo[e[t+8]]+vo[e[t+9]]+"-"+vo[e[t+10]]+vo[e[t+11]]+vo[e[t+12]]+vo[e[t+13]]+vo[e[t+14]]+vo[e[t+15]]).toLowerCase()}let av;const wfe=new Uint8Array(16);function Cfe(){if(!av){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");av=crypto.getRandomValues.bind(crypto)}return av(wfe)}const Efe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),uC={randomUUID:Efe};function cC(e,t,n){var r;if(uC.randomUUID&&!e)return uC.randomUUID();e=e||{};const o=e.random??((r=e.rng)==null?void 0:r.call(e))??Cfe();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Sfe(o)}async function Mfe(e,t){const n=e.getReader();let o;for(;!(o=await n.read()).done;)t(o.value)}function Tfe(e){let t,n,o,r=!1;return function(s){t===void 0?(t=s,n=0,o=-1):t=kfe(t,s);const a=t.length;let l=0;for(;n0){const l=r.decode(s.subarray(0,a)),u=a+(s[a+1]===32?2:1),d=r.decode(s.subarray(u));switch(l){case"data":o.data=o.data?o.data+` `+d:d;break;case"event":o.event=d;break;case"id":e(o.id=d);break;case"retry":const f=parseInt(d,10);isNaN(f)||t(o.retry=f);break}}}}function kfe(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function dC(){return{data:"",event:"",id:"",retry:void 0}}var Rfe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const h=Object.assign({},o);h.accept||(h.accept=Mb);let m;function v(){m.abort(),document.hidden||w()}l||document.addEventListener("visibilitychange",v);let b=Pfe,g=0;function x(){document.removeEventListener("visibilitychange",v),window.clearTimeout(g),m.abort()}n==null||n.addEventListener("abort",()=>{x(),f()});const y=u??window.fetch,_=r??Ife;async function w(){var S;m=new AbortController;try{const M=await y(e,Object.assign(Object.assign({},d),{headers:h,signal:m.signal}));await _(M),await Mfe(M.body,Tfe(Afe(T=>{T?h[fC]=T:delete h[fC]},T=>{b=T},i))),s==null||s(),x(),f()}catch(M){if(!m.signal.aborted)try{const T=(S=a==null?void 0:a(M))!==null&&S!==void 0?S:b;window.clearTimeout(g),g=window.setTimeout(w,T)}catch(T){x(),p(T)}}}w()})}function Ife(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(Mb)))throw new Error(`Expected content-type to be ${Mb}, Actual: ${t}`)}const hC={};function Lfe(e){let t=hC[e];if(t)return t;t=hC[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);t.push(o)}for(let n=0;n=55296&&d<=57343?r+="���":r+=String.fromCharCode(d),i+=6;continue}}if((a&248)===240&&i+91114111?r+="����":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),i+=9;continue}}r+="�"}return r})}$u.defaultChars=";/?:@&=+$,#";$u.componentChars="";const pC={};function Nfe(e){let t=pC[e];if(t)return t;t=pC[e]=[];for(let n=0;n<128;n++){const o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const o=Nfe(t);let r="";for(let i=0,s=e.length;i=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1=56320&&l<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}rf.defaultChars=";/?:@&=+$,-_.!~*'()#";rf.componentChars="-_.!~*'()";function a_(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Op(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Ofe=/^([a-z0-9.+-]+:)/i,Ffe=/:[0-9]*$/,Bfe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$fe=["<",">",'"',"`"," ","\r",` `," "],Ufe=["{","}","|","\\","^","`"].concat($fe),zfe=["'"].concat(Ufe),mC=["%","/","?",";","#"].concat(zfe),vC=["/","?","#"],Vfe=255,gC=/^[+a-z0-9A-Z_-]{0,63}$/,Hfe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,bC={javascript:!0,"javascript:":!0},yC={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function l_(e,t){if(e&&e instanceof Op)return e;const n=new Op;return n.parse(e,t),n}Op.prototype.parse=function(e,t){let n,o,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const u=Bfe.exec(i);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let s=Ofe.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&bC[s])&&(i=i.substr(2),this.slashes=!0)),!bC[s]&&(r||s&&!yC[s])){let u=-1;for(let m=0;m127?x+="x":x+=g[y];if(!x.match(gC)){const y=m.slice(0,v),_=m.slice(v+1),w=g.match(Hfe);w&&(y.push(w[1]),_.unshift(w[2])),_.length&&(i=_.join(".")+i),this.hostname=y.join(".");break}}}}this.hostname.length>Vfe&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");a!==-1&&(this.hash=i.substr(a),i=i.slice(0,a));const l=i.indexOf("?");return l!==-1&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),yC[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Op.prototype.parseHost=function(e){let t=Ffe.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Wfe=Object.freeze(Object.defineProperty({__proto__:null,decode:$u,encode:rf,format:a_,parse:l_},Symbol.toStringTag,{value:"Module"})),UR=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zR=/[\0-\x1F\x7F-\x9F]/,Gfe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,u_=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,VR=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,HR=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Kfe=Object.freeze(Object.defineProperty({__proto__:null,Any:UR,Cc:zR,Cf:Gfe,P:u_,S:VR,Z:HR},Symbol.toStringTag,{value:"Module"})),qfe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),jfe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var lv;const Yfe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Xfe=(lv=String.fromCodePoint)!==null&&lv!==void 0?lv:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Zfe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Yfe.get(e))!==null&&t!==void 0?t:e}var ao;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ao||(ao={}));const Jfe=32;var qs;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(qs||(qs={}));function Tb(e){return e>=ao.ZERO&&e<=ao.NINE}function Qfe(e){return e>=ao.UPPER_A&&e<=ao.UPPER_F||e>=ao.LOWER_A&&e<=ao.LOWER_F}function ehe(e){return e>=ao.UPPER_A&&e<=ao.UPPER_Z||e>=ao.LOWER_A&&e<=ao.LOWER_Z||Tb(e)}function the(e){return e===ao.EQUALS||ehe(e)}var so;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(so||(so={}));var Hs;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Hs||(Hs={}));class nhe{constructor(t,n,o){this.decodeTree=t,this.emitCodePoint=n,this.errors=o,this.state=so.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Hs.Strict}startEntity(t){this.decodeMode=t,this.state=so.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case so.EntityStart:return t.charCodeAt(n)===ao.NUM?(this.state=so.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=so.NamedEntity,this.stateNamedEntity(t,n));case so.NumericStart:return this.stateNumericStart(t,n);case so.NumericDecimal:return this.stateNumericDecimal(t,n);case so.NumericHex:return this.stateNumericHex(t,n);case so.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Jfe)===ao.LOWER_X?(this.state=so.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=so.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,o,r){if(n!==o){const i=o-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const o=n;for(;n>14;for(;n>14,i!==0){if(s===ao.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Hs.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:o}=this,r=(o[n]&qs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,o){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~qs.VALUE_LENGTH:r[t+1],o),n===3&&this.emitCodePoint(r[t+2],o),o}end(){var t;switch(this.state){case so.NamedEntity:return this.result!==0&&(this.decodeMode!==Hs.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case so.NumericDecimal:return this.emitNumericEntity(0,2);case so.NumericHex:return this.emitNumericEntity(0,3);case so.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case so.EntityStart:return 0}}}function WR(e){let t="";const n=new nhe(e,o=>t+=Xfe(o));return function(r,i){let s=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(s,a),n.startEntity(i);const u=n.write(r,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const l=t+r.slice(s);return t="",l}}function ohe(e,t,n,o){const r=(t&qs.BRANCH_LENGTH)>>7,i=t&qs.JUMP_TABLE;if(r===0)return i!==0&&o===i?n:-1;if(i){const l=o-i;return l<0||l>=r?-1:e[n+l]-1}let s=n,a=s+r-1;for(;s<=a;){const l=s+a>>>1,u=e[l];if(uo)a=l-1;else return e[l+r]}return-1}const rhe=WR(qfe);WR(jfe);function GR(e,t=Hs.Legacy){return rhe(e,t)}function ihe(e){return Object.prototype.toString.call(e)}function c_(e){return ihe(e)==="[object String]"}const she=Object.prototype.hasOwnProperty;function ahe(e,t){return she.call(e,t)}function F0(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(o){e[o]=n[o]})}}),e}function KR(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function d_(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Fp(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const qR=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,lhe=/&([a-z#][a-z0-9]{1,31});/gi,uhe=new RegExp(qR.source+"|"+lhe.source,"gi"),che=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function dhe(e,t){if(t.charCodeAt(0)===35&&che.test(t)){const o=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return d_(o)?Fp(o):e}const n=GR(e);return n!==e?n:e}function fhe(e){return e.indexOf("\\")<0?e:e.replace(qR,"$1")}function Uu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(uhe,function(t,n,o){return n||dhe(t,o)})}const hhe=/[&<>"]/,phe=/[&<>"]/g,mhe={"&":"&","<":"<",">":">",'"':"""};function vhe(e){return mhe[e]}function da(e){return hhe.test(e)?e.replace(phe,vhe):e}const ghe=/[.?*+^$[\]\\(){}|-]/g;function bhe(e){return e.replace(ghe,"\\$&")}function En(e){switch(e){case 9:case 32:return!0}return!1}function Ad(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function kd(e){return u_.test(e)||VR.test(e)}function Rd(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function B0(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const yhe={mdurl:Wfe,ucmicro:Kfe},_he=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:KR,assign:F0,escapeHtml:da,escapeRE:bhe,fromCodePoint:Fp,has:ahe,isMdAsciiPunct:Rd,isPunctChar:kd,isSpace:En,isString:c_,isValidEntityCode:d_,isWhiteSpace:Ad,lib:yhe,normalizeReference:B0,unescapeAll:Uu,unescapeMd:fhe},Symbol.toStringTag,{value:"Module"}));function xhe(e,t,n){let o,r,i,s;const a=e.posMax,l=e.pos;for(e.pos=t+1,o=1;e.pos32))return i;if(o===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=Uu(e.slice(t,r)),i.pos=r,i.ok=!0),i}function whe(e,t,n,o){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)s.str=o.str,s.marker=o.marker;else{if(i>=n)return s;let a=e.charCodeAt(i);if(a!==34&&a!==39&&a!==40)return s;t++,i++,a===40&&(a=41),s.marker=a}for(;i"+da(i.content)+""};Oi.code_block=function(e,t,n,o,r){const i=e[t];return""+da(e[t].content)+` `};Oi.fence=function(e,t,n,o,r){const i=e[t],s=i.info?Uu(i.info).trim():"";let a="",l="";if(s){const d=s.split(/(\s+)/g);a=d[0],l=d.slice(2).join("")}let u;if(n.highlight?u=n.highlight(i.content,a,l)||da(i.content):u=da(i.content),u.indexOf("${u} `}return`
${u}
`};Oi.image=function(e,t,n,o,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,o),r.renderToken(e,t,n)};Oi.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
`};Oi.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` `};Oi.text=function(e,t){return da(e[t].content)};Oi.html_block=function(e,t){return e[t].content};Oi.html_inline=function(e,t){return e[t].content};function rc(){this.rules=F0({},Oi)}rc.prototype.renderAttrs=function(t){let n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n `:">",i};rc.prototype.renderInline=function(e,t,n){let o="";const r=this.rules;for(let i=0,s=e.length;i=0&&(o=this.attrs[n][1]),o};ii.prototype.attrJoin=function(t,n){const o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};function jR(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}jR.prototype.Token=ii;const Ehe=/\r\n?|\n/g,Mhe=/\0/g;function The(e){let t;t=e.src.replace(Ehe,` `),t=t.replace(Mhe,"�"),e.src=t}function Ahe(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function khe(e){const t=e.tokens;for(let n=0,o=t.length;n\s]/i.test(e)}function Phe(e){return/^<\/a\s*>/i.test(e)}function Dhe(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,o=t.length;n=0;s--){const a=r[s];if(a.type==="link_close"){for(s--;r[s].level!==a.level&&r[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(Rhe(a.content)&&i>0&&i--,Phe(a.content)&&i++),!(i>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const l=a.content;let u=e.md.linkify.match(l);const d=[];let f=a.level,p=0;u.length>0&&u[0].index===0&&s>0&&r[s-1].type==="text_special"&&(u=u.slice(1));for(let h=0;hp){const w=new e.Token("text","",0);w.content=l.slice(p,g),w.level=f,d.push(w)}const x=new e.Token("link_open","a",1);x.attrs=[["href",v]],x.level=f++,x.markup="linkify",x.info="auto",d.push(x);const y=new e.Token("text","",0);y.content=b,y.level=f,d.push(y);const _=new e.Token("link_close","a",-1);_.level=--f,_.markup="linkify",_.info="auto",d.push(_),p=u[h].lastIndex}if(p=0;n--){const o=e[n];o.type==="text"&&!t&&(o.content=o.content.replace(Lhe,Ohe)),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function Bhe(e){let t=0;for(let n=e.length-1;n>=0;n--){const o=e[n];o.type==="text"&&!t&&YR.test(o.content)&&(o.content=o.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function $he(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Ihe.test(e.tokens[t].content)&&Fhe(e.tokens[t].children),YR.test(e.tokens[t].content)&&Bhe(e.tokens[t].children))}const Uhe=/['"]/,_C=/['"]/g,xC="’";function fh(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function zhe(e,t){let n;const o=[];for(let r=0;r=0&&!(o[n].level<=s);n--);if(o.length=n+1,i.type!=="text")continue;let a=i.content,l=0,u=a.length;e:for(;l=0)m=a.charCodeAt(d.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(l=48&&m<=57&&(p=f=!1),f&&p&&(f=b,p=g),!f&&!p){h&&(i.content=fh(i.content,d.index,xC));continue}if(p)for(n=o.length-1;n>=0;n--){let _=o[n];if(o[n].level=0;t--)e.tokens[t].type!=="inline"||!Uhe.test(e.tokens[t].content)||zhe(e.tokens[t].children,e)}function Hhe(e){let t,n;const o=e.tokens,r=o.length;for(let i=0;i0&&this.level++,this.tokens.push(o),o};Fi.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Fi.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;tn;)if(!En(this.src.charCodeAt(--t)))return t+1;return t};Fi.prototype.skipChars=function(t,n){for(let o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Fi.prototype.getLines=function(t,n,o,r){if(t>=n)return"";const i=new Array(n-t);for(let s=0,a=t;ao?i[s]=new Array(l-o+1).join(" ")+this.src.slice(d,f):i[s]=this.src.slice(d,f)}return i.join("")};Fi.prototype.Token=ii;const Whe=65536;function cv(e,t){const n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function SC(e){const t=[],n=e.length;let o=0,r=e.charCodeAt(o),i=!1,s=0,a="";for(;on)return!1;let r=t+1;if(e.sCount[r]=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!En(a)||s===45&&En(a))return!1;for(;i=4)return!1;u=SC(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const f=u.length;if(f===0||f!==d.length)return!1;if(o)return!0;const p=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[t,0];m.map=v;const b=e.push("thead_open","thead",1);b.map=[t,t+1];const g=e.push("tr_open","tr",1);g.map=[t,t+1];for(let _=0;_=4||(u=SC(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),y+=f-u.length,y>Whe))break;if(r===t+2){const S=e.push("tbody_open","tbody",1);S.map=x=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[r,r+1];for(let S=0;S=4){o++,r=o;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+` `,i.map=[t,e.line],!0}function qhe(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=e.skipChars(r,s);let l=r-a;if(l<3)return!1;const u=e.src.slice(a,r),d=e.src.slice(r,i);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(o)return!0;let f=t,p=!1;for(;f++,!(f>=n||(r=a=e.bMarks[f]+e.tShift[f],i=e.eMarks[f],r=4)&&(r=e.skipChars(r,s),!(r-a=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;const a=[],l=[],u=[],d=[],f=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let h=!1,m;for(m=t;m=i)break;if(e.src.charCodeAt(r++)===62&&!y){let w=e.sCount[m]+1,S,M;e.src.charCodeAt(r)===32?(r++,w++,M=!1,S=!0):e.src.charCodeAt(r)===9?(S=!0,(e.bsCount[m]+w)%4===3?(r++,w++,M=!1):M=!0):S=!1;let T=w;for(a.push(e.bMarks[m]),e.bMarks[m]=r;r=i,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(S?1:0),u.push(e.sCount[m]),e.sCount[m]=T-w,d.push(e.tShift[m]),e.tShift[m]=r-e.bMarks[m];continue}if(h)break;let _=!1;for(let w=0,S=f.length;w";const g=[t,0];b.map=g,e.md.block.tokenize(e,t,m);const x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=s,e.parentType=p,g[1]=e.line;for(let y=0;y=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i=o)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=o)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(d=!0);let f,p,h;if((h=CC(e,l))>=0){if(f=!0,s=e.bMarks[l]+e.tShift[l],p=Number(e.src.slice(s,h-1)),d&&p!==1)return!1}else if((h=wC(e,l))>=0)f=!1;else return!1;if(d&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(o)return!0;const m=e.src.charCodeAt(h-1),v=e.tokens.length;f?(a=e.push("ordered_list_open","ol",1),p!==1&&(a.attrs=[["start",p]])):a=e.push("bullet_list_open","ul",1);const b=[l,0];a.map=b,a.markup=String.fromCharCode(m);let g=!1;const x=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";l=r?M=1:M=w-_,M>4&&(M=1);const T=_+M;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const E=[l,0];a.map=E,f&&(a.info=e.src.slice(s,h-1));const C=e.tight,k=e.tShift[l],R=e.sCount[l],B=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=S-e.bMarks[l],e.sCount[l]=w,S>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||g)&&(u=!1),g=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=B,e.tShift[l]=k,e.sCount[l]=R,e.tight=C,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),l=e.line,E[1]=l,l>=n||e.sCount[l]=4)break;let H=!1;for(let N=0,P=x.length;N=4||e.src.charCodeAt(r)!==91)return!1;function a(x){const y=e.lineMax;if(x>=y||e.isEmpty(x))return null;let _=!1;if(e.sCount[x]-e.blkIndent>3&&(_=!0),e.sCount[x]<0&&(_=!0),!_){const M=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let E=!1;for(let C=0,k=M.length;C"u"&&(e.env.references={}),typeof e.env.references[g]>"u"&&(e.env.references[g]={title:b,href:f}),e.line=s),!0):!1}const Qhe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],epe="[a-zA-Z_:][a-zA-Z0-9:._-]*",tpe="[^\"'=<>`\\x00-\\x20]+",npe="'[^']*'",ope='"[^"]*"',rpe="(?:"+tpe+"|"+npe+"|"+ope+")",ipe="(?:\\s+"+epe+"(?:\\s*=\\s*"+rpe+")?)",XR="<[A-Za-z][A-Za-z0-9\\-]*"+ipe+"*\\s*\\/?>",ZR="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",spe="",ape="<[?][\\s\\S]*?[?]>",lpe="]*>",upe="",cpe=new RegExp("^(?:"+XR+"|"+ZR+"|"+spe+"|"+ape+"|"+lpe+"|"+upe+")"),dpe=new RegExp("^(?:"+XR+"|"+ZR+")"),$l=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(dpe.source+"\\s*$"),/^$/,!1]];function fpe(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),a=0;for(;a<$l.length&&!$l[a][0].test(s);a++);if(a===$l.length)return!1;if(o)return $l[a][2];let l=t+1;if(!$l[a][1].test(s)){for(;l=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let a=1;for(s=e.src.charCodeAt(++r);s===35&&r6||rr&&En(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const u=e.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[t,e.line];const d=e.push("inline","",0);d.content=e.src.slice(r,i).trim(),d.map=[t,e.line],d.children=[];const f=e.push("heading_close","h"+String(a),-1);return f.markup="########".slice(0,a),!0}function ppe(e,t,n){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let h=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(h=m))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let p=!1;for(let h=0,m=o.length;h3||e.sCount[i]<0)continue;let u=!1;for(let d=0,f=o.length;d=n||e.sCount[s]=i){e.line=n;break}const l=e.line;let u=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};sf.prototype.scanDelims=function(e,t){const n=this.posMax,o=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let i=e;for(;i0)return!1;const n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(bpe);if(!r)return!1;const i=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;a=a.replace(/\*+$/,"");const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const u=e.push("link_open","a",1);u.attrs=[["href",l]],u.markup="linkify",u.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(a);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=a.length-i.length,!0}function _pe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const o=e.pending.length-1,r=e.posMax;if(!t)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let i=o-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){h_[e.charCodeAt(0)]=1});function xpe(e,t){let n=e.pos;const o=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=o))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&r<=56319&&n+1=56320&&a<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const a=e.push("text_special","",0);r<256&&h_[r]!==0?a.content=i:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function Spe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n=0;o--){const r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?a+a:a,l.content="";const u=e.tokens[i.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?a+a:a,u.content="",s&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function Mpe(e){const t=e.tokens_meta,n=e.tokens_meta.length;MC(e,e.delimiters);for(let o=0;o=f)return!1;if(l=m,r=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?m=r.pos:s="",l=m;m=f||e.src.charCodeAt(m)!==41)&&(u=!0),m++}if(u){if(typeof e.env.references>"u")return!1;if(m=0?o=e.src.slice(l,m++):m=h+1):m=h+1,o||(o=e.src.slice(p,h)),i=e.env.references[B0(o)],!i)return e.pos=d,!1;s=i.href,a=i.title}if(!t){e.pos=p,e.posMax=h;const v=e.push("link_open","a",1),b=[["href",s]];v.attrs=b,a&&b.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=f,!0}function Ape(e,t){let n,o,r,i,s,a,l,u,d="";const f=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(i=m+1,i=p)return!1;for(u=i,a=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),a.ok&&(d=e.md.normalizeLink(a.str),e.md.validateLink(d)?i=a.pos:d=""),u=i;i=p||e.src.charCodeAt(i)!==41)return e.pos=f,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i=0?r=e.src.slice(u,i++):i=m+1):i=m+1,r||(r=e.src.slice(h,m)),s=e.env.references[B0(r)],!s)return e.pos=f,!1;d=s.href,l=s.title}if(!t){o=e.src.slice(h,m);const v=[];e.md.inline.parse(o,e.md,e.env,v);const b=e.push("image","img",0),g=[["src",d],["alt",""]];b.attrs=g,b.children=v,b.content=o,l&&g.push(["title",l])}return e.pos=i,e.posMax=p,!0}const kpe=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Rpe=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Ppe(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(o+1,n);if(Rpe.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}if(kpe.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(i);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=i.length+2,!0}return!1}function Dpe(e){return/^\s]/i.test(e)}function Ipe(e){return/^<\/a\s*>/i.test(e)}function Lpe(e){const t=e|32;return t>=97&&t<=122}function Npe(e,t){if(!e.md.options.html)return!1;const n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!Lpe(r))return!1;const i=e.src.slice(o).match(cpe);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],Dpe(s.content)&&e.linkLevel++,Ipe(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const Ope=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Fpe=/^&([a-z][a-z0-9]{1,31});/i;function Bpe(e,t){const n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(Ope);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=d_(s)?Fp(s):Fp(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Fpe);if(i){const s=GR(i[0]);if(s!==i[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function TC(e){const t={},n=e.length;if(!n)return;let o=0,r=-2;const i=[];for(let s=0;sl;u-=i[u]+1){const f=e[u];if(f.marker===a.marker&&f.open&&f.end<0){let p=!1;if((f.close||a.open)&&(f.length+a.length)%3===0&&(f.length%3!==0||a.length%3!==0)&&(p=!0),!p){const h=u>0&&!e[u-1].open?i[u-1]+1:0;i[s]=s-u+h,i[u]=h,a.open=!1,f.end=s,f.close=!1,d=-1,r=-2;break}}}d!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function $pe(e){const t=e.tokens_meta,n=e.tokens_meta.length;TC(e.delimiters);for(let o=0;o0&&o++,r[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};af.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};af.prototype.parse=function(e,t,n,o){const r=new this.State(e,t,n,o);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Ab(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function U0(e){return Object.prototype.toString.call(e)}function Vpe(e){return U0(e)==="[object String]"}function Hpe(e){return U0(e)==="[object Object]"}function Wpe(e){return U0(e)==="[object RegExp]"}function AC(e){return U0(e)==="[object Function]"}function Gpe(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const eP={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Kpe(e){return Object.keys(e||{}).reduce(function(t,n){return t||eP.hasOwnProperty(n)},!1)}const qpe={"http:":{validate:function(e,t,n){const o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},jpe="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ype="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Xpe(e){e.__index__=-1,e.__text_cache__=""}function Zpe(e){return function(t,n){const o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function kC(){return function(e,t){t.normalize(e)}}function Bp(e){const t=e.re=zpe(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(jpe),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){const l=e.__schemas__[a];if(l===null)return;const u={validate:null,link:null};if(e.__compiled__[a]=u,Hpe(l)){Wpe(l.validate)?u.validate=Zpe(l.validate):AC(l.validate)?u.validate=l.validate:i(a,l),AC(l.normalize)?u.normalize=l.normalize:l.normalize?i(a,l):u.normalize=kC();return}if(Vpe(l)){r.push(a);return}i(a,l)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:kC()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Gpe).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Xpe(e)}function Jpe(e,t){const n=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(n,o);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=o+t,this.raw=r,this.text=r,this.url=r}function kb(e,t){const n=new Jpe(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function vr(e,t){if(!(this instanceof vr))return new vr(e,t);t||Kpe(e)&&(t=e,e={}),this.__opts__=Ab({},eP,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ab({},qpe,e),this.__compiled__={},this.__tlds__=Ype,this.__tlds_replaced__=!1,this.re={},Bp(this)}vr.prototype.add=function(t,n){return this.__schemas__[t]=n,Bp(this),this};vr.prototype.set=function(t){return this.__opts__=Ab(this.__opts__,t),this};vr.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,o,r,i,s,a,l,u,d;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(i=this.testSchemaAt(t,n[2],l.lastIndex),i){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(r=t.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};vr.prototype.pretest=function(t){return this.re.pretest.test(t)};vr.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};vr.prototype.match=function(t){const n=[];let o=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(kb(this,o)),o=this.__last_index__);let r=o?t.slice(o):t;for(;this.test(r);)n.push(kb(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return n.length?n:null};vr.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const o=this.testSchemaAt(t,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,kb(this,0)):null};vr.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(o,r,i){return o!==i[r-1]}).reverse(),Bp(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Bp(this),this)};vr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};vr.prototype.onCompile=function(){};const du=2147483647,bi=36,p_=1,Pd=26,Qpe=38,e0e=700,tP=72,nP=128,oP="-",t0e=/^xn--/,n0e=/[^\0-\x7F]/,o0e=/[\x2E\u3002\uFF0E\uFF61]/g,r0e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hv=bi-p_,yi=Math.floor,pv=String.fromCharCode;function Us(e){throw new RangeError(r0e[e])}function i0e(e,t){const n=[];let o=e.length;for(;o--;)n[o]=t(e[o]);return n}function rP(e,t){const n=e.split("@");let o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(o0e,".");const r=e.split("."),i=i0e(r,t).join(".");return o+i}function iP(e){const t=[];let n=0;const o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),a0e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:bi},RC=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},sP=function(e,t,n){let o=0;for(e=n?yi(e/e0e):e>>1,e+=yi(e/t);e>hv*Pd>>1;o+=bi)e=yi(e/hv);return yi(o+(hv+1)*e/(e+Qpe))},aP=function(e){const t=[],n=e.length;let o=0,r=nP,i=tP,s=e.lastIndexOf(oP);s<0&&(s=0);for(let a=0;a=128&&Us("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&Us("invalid-input");const p=a0e(e.charCodeAt(a++));p>=bi&&Us("invalid-input"),p>yi((du-o)/d)&&Us("overflow"),o+=p*d;const h=f<=i?p_:f>=i+Pd?Pd:f-i;if(pyi(du/m)&&Us("overflow"),d*=m}const u=t.length+1;i=sP(o-l,u,l==0),yi(o/u)>du-r&&Us("overflow"),r+=yi(o/u),o%=u,t.splice(o++,0,r)}return String.fromCodePoint(...t)},lP=function(e){const t=[];e=iP(e);const n=e.length;let o=nP,r=0,i=tP;for(const l of e)l<128&&t.push(pv(l));const s=t.length;let a=s;for(s&&t.push(oP);a=o&&dyi((du-r)/u)&&Us("overflow"),r+=(l-o)*u,o=l;for(const d of e)if(ddu&&Us("overflow"),d===o){let f=r;for(let p=bi;;p+=bi){const h=p<=i?p_:p>=i+Pd?Pd:p-i;if(f=0))try{t.hostname=uP.toASCII(t.hostname)}catch{}return rf(a_(t))}function b0e(e){const t=l_(e,!0);if(t.hostname&&(!t.protocol||cP.indexOf(t.protocol)>=0))try{t.hostname=uP.toUnicode(t.hostname)}catch{}return $u(a_(t),$u.defaultChars+"%")}function Fr(e,t){if(!(this instanceof Fr))return new Fr(e,t);t||c_(e)||(t=e||{},e="default"),this.inline=new af,this.block=new $0,this.core=new f_,this.renderer=new rc,this.linkify=new vr,this.validateLink=v0e,this.normalizeLink=g0e,this.normalizeLinkText=b0e,this.utils=_he,this.helpers=F0({},Che),this.options={},this.configure(e),t&&this.set(t)}Fr.prototype.set=function(e){return F0(this.options,e),this};Fr.prototype.configure=function(e){const t=this;if(c_(e)){const n=e;if(e=h0e[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Fr.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Fr.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Fr.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Fr.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Fr.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Fr.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Fr.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const y0e={class:"right"},_0e={class:"assistant-sidebar"},x0e=j("div",{class:"assistant-header"},[j("div",{class:"assistant-title"},[j("h2",null,"教学助手"),j("p",null,"随时为您提供帮助")])],-1),S0e={class:"message user-message"},w0e={class:"message assistant-message"},C0e=["innerHTML"],E0e={key:1,width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 auto"}},M0e=j("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:"#00d2ff","stroke-width":"4","stroke-linecap":"round","stroke-dasharray":"31.4 31.4",transform:"rotate(-90 25 25)"},[j("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})],-1),T0e=[M0e],A0e={class:"chat-input"},k0e=j("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 32 32",fill:"none"},[j("rect",{width:"32",height:"32",rx:"16",fill:"#68A1FD"}),j("path",{d:"M13.188 23.2586C12.9758 23.2586 12.7723 23.1954 12.6223 23.0829C12.4723 22.9703 12.388 22.8177 12.388 22.6586V17.1806C12.388 17.0006 12.496 16.8296 12.684 16.7156L19.164 12.7766C19.3289 12.6804 19.5376 12.6365 19.7452 12.6543C19.9527 12.6721 20.1428 12.7502 20.2746 12.8718C20.4064 12.9934 20.4694 13.1488 20.4503 13.3049C20.4311 13.4609 20.3312 13.6051 20.172 13.7066L13.988 17.4656V20.8556L15.932 18.9116C16.168 18.6746 16.604 18.6026 16.952 18.7436L20.176 20.0396L24 9.74359C24.076 9.54259 23.92 9.41659 23.848 9.37159C23.776 9.32659 23.588 9.23359 23.336 9.32059L8.83598 14.4236L10.716 15.2336C11.1 15.3986 11.232 15.7646 11.012 16.0526C10.792 16.3406 10.304 16.4396 9.91998 16.2746L6.70798 14.8916C6.58077 14.837 6.47612 14.7571 6.40555 14.6608C6.33497 14.5645 6.30121 14.4554 6.30798 14.3456C6.31998 14.1206 6.49598 13.9226 6.76798 13.8266L22.656 8.23459C23.4 7.97359 24.252 8.05759 24.88 8.45659C25.1856 8.64798 25.4107 8.90178 25.5279 9.1872C25.645 9.47263 25.6492 9.77741 25.54 10.0646L21.444 21.0836C21.4117 21.1701 21.3539 21.2501 21.2748 21.3176C21.1958 21.385 21.0975 21.4383 20.9872 21.4735C20.877 21.5086 20.7576 21.5247 20.638 21.5206C20.5183 21.5165 20.4014 21.4922 20.296 21.4496L16.8 20.0426L13.828 23.0186C13.672 23.1716 13.432 23.2586 13.188 23.2586Z",fill:"white"})],-1),R0e=[k0e],P0e=Q({__name:"right",setup(e){const t=F(""),n=F(""),o=F(""),r=F(null),i=F([]),s=F("");xt(()=>{s.value=localStorage.getItem("userId")||cC(),a()});const a=async()=>{fetch("https://gpt4.cocorobo.cn/get_agent_chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userid:"ce601631-50e4-11ed-8c78-005056b86db5",groupid:"d2e3c73a-7d8e-4da9-a95e-c6207782bab7"})}).then(d=>d.json()).then(d=>{i.value=JSON.parse(d.FunctionResponse).map(f=>({problem:decodeURIComponent(f.problem),codeData:decodeURIComponent(f.answer)}))}).catch(d=>{console.error("Error:",d)})},l=async()=>{o.value=cC(),localStorage.setItem("userId",s.value),n.value="123123";let d=i.value.length;const f=t.value;i.value[d]={problem:f,codeData:""};let p={id:"d2e3c73a-7d8e-4da9-a95e-c6207782bab7",message:t.value,userId:"ce601631-50e4-11ed-8c78-005056b86db5",model:"open-gpt-4.1-mini",file_ids:[],sound_url:"",temperature:.2,top_p:1,max_completion_tokens:4096,stream:!0,uid:o.value},h="",m="";t.value="";const v=new Fr({html:!0}),b=new AbortController;await Dfe("https://appapi.cocorobo.cn/api/agentchats/ai_agent_chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p),signal:b.signal,onmessage:g=>{try{const x=JSON.parse(g.data);if(x.content=="[DONE]"){const y=v.render(h);console.log(y),n.value=y,console.log(i.value[d]);const _={userId:"ce601631-50e4-11ed-8c78-005056b86db5",groupId:"d2e3c73a-7d8e-4da9-a95e-c6207782bab7",type:"chat",problem:encodeURIComponent(i.value[d].problem),answer:encodeURIComponent(y),userName:"jidechao@cocorobo.cc",file_id:"",alltext:h};u(_);return}x.content&&(h+=x.content,m=h,m=m.replace(/\\n/g,` `),m=m.replace(/\\/g,""),h.split("```").length%2===0&&(m+="\n```\n"),m=v.render(m),r.value.scrollTop=r.value.scrollHeight,i.value[d]={problem:f,codeData:m})}catch(x){console.log(x)}},onclose(){console.log("close")},onerror(g){console.log(g)}})},u=async d=>{fetch("https://gpt4.cocorobo.cn/insert_chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)}).then(f=>f.json()).then(f=>{console.log(f)}).catch(f=>{console.error("Error:",f)})};return Te(()=>i.value,d=>{d&&setTimeout(()=>{console.log(document.getElementsByClassName("assistant-chat")[0].scrollHeight),r.value.scrollTop=r.value.scrollHeight},1e3)}),(d,f)=>(D(),G("div",y0e,[j("div",_0e,[x0e,j("div",{class:"assistant-chat",ref_key:"codeRef",ref:r},[i.value.length?(D(!0),G(tt,{key:0},Nt(i.value,p=>(D(),G("div",{style:{display:"flex","flex-direction":"column",gap:"20px"},key:p.problem},[j("div",S0e,ze(p.problem),1),j("div",w0e,[p.codeData?(D(),G("span",{key:0,innerHTML:p.codeData},null,8,C0e)):(D(),G("svg",E0e,T0e))])]))),128)):pe("",!0)],512),j("div",A0e,[_t(j("textarea",{"onUpdate:modelValue":f[0]||(f[0]=p=>t.value=p),type:"text",placeholder:"输入您的问题...",onKeyup:Zt(l,["enter"])},null,544),[[Nd,t.value]]),j("button",{onClick:l},R0e)])])]))}}),D0e=e=>(Kp("data-v-db1d460a"),e=e(),qp(),e),I0e=D0e(()=>j("section",{class:"title"},[j("div",{class:"title-content"},[j("h1",null,"AI教室智慧控制中心")])],-1)),L0e={class:"right"},N0e=Q({__name:"index",setup(e){const t=F([]),n=F({pv:6666,uv:12345});return(o,r)=>{const i=Mt("el-col"),s=Mt("el-row");return D(),G(tt,null,[I0e,J(s,{gutter:20,class:"content"},{default:se(()=>[J(i,{xl:12,md:12,sm:24,xs:24},{default:se(()=>[J(xfe,{data:n.value},null,8,["data"])]),_:1}),J(i,{xl:12,md:12,sm:24,xs:24},{default:se(()=>[J(afe,{data:t.value},null,8,["data"])]),_:1})]),_:1}),j("section",L0e,[J(P0e)])],64)}}}),O0e=tf(N0e,[["__scopeId","data-v-db1d460a"]]),F0e=Q({__name:"App",setup(e){return(t,n)=>(D(),_e(O0e))}}),dP=YE(F0e);dP.use(Fre);dP.mount("#app")});export default B0e();